@wellesley/error-kit 1.0.687 → 1.0.688
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/index.mjs +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -66,7 +66,7 @@ import*as k from"https://cdn.jsdelivr.net/npm/react@18.2.0/+esm";import He,{forw
|
|
|
66
66
|
*
|
|
67
67
|
* This source code is licensed under the MIT license found in the
|
|
68
68
|
* LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/function z8(){if(OE)return un;OE=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case i:case o:case c:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case l:case p:case f:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),un.ContextConsumer=u,un.ContextProvider=a,un.Element=t,un.ForwardRef=l,un.Fragment=r,un.Lazy=p,un.Memo=f,un.Portal=n,un.Profiler=i,un.StrictMode=o,un.Suspense=c,un.SuspenseList=d,un.isAsyncMode=function(){return!1},un.isConcurrentMode=function(){return!1},un.isContextConsumer=function(e){return h(e)===u},un.isContextProvider=function(e){return h(e)===a},un.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},un.isForwardRef=function(e){return h(e)===l},un.isFragment=function(e){return h(e)===r},un.isLazy=function(e){return h(e)===p},un.isMemo=function(e){return h(e)===f},un.isPortal=function(e){return h(e)===n},un.isProfiler=function(e){return h(e)===i},un.isStrictMode=function(e){return h(e)===o},un.isSuspense=function(e){return h(e)===c},un.isSuspenseList=function(e){return h(e)===d},un.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===c||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===u||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},un.typeOf=h,un}function W8(){return AE||(AE=1,Bw.exports=z8()),Bw.exports}function B2(){if(DE)return jw;DE=1;var e=Dl(),t=aa();return jw=function(n){return"number"==typeof n||t(n)&&"[object Number]"==e(n)}}function q8(){if(NE)return Vw;NE=1;var e=B2();return Vw=function(t){return e(t)&&t!=+t}}W8(),q8(),B2();var zw,kE,Ww,ME,qw,LE,Gw,FE,Hw,BE,Kw,jE,Qw,VE,Yw,UE,Xw,zE,Jw,WE,Zw,qE,e_,GE,t_,HE,n_,KE,r_,QE,o_,YE,i_,XE,a_,JE,s_,ZE,u_,eP,l_,tP,c_,nP,d_,rP,f_,oP,Pg=function(e){return U8(e)&&e.indexOf("%")===e.length-1},G8=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},Uw=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o]};function H8(){if(kE)return zw;kE=1;var e=Cy();return zw=function(){this.__data__=new e,this.size=0}}function K8(){if(ME)return Ww;return ME=1,Ww=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}}function Q8(){if(LE)return qw;return LE=1,qw=function(e){return this.__data__.get(e)}}function Y8(){if(FE)return Gw;return FE=1,Gw=function(e){return this.__data__.has(e)}}function X8(){if(BE)return Hw;BE=1;var e=Cy(),t=S$(),n=$$();return Hw=function(r,o){var i=this.__data__;if(i instanceof e){var a=i.__data__;if(!t||a.length<199)return a.push([r,o]),this.size=++i.size,this;i=this.__data__=new n(a)}return i.set(r,o),this.size=i.size,this}}function C$(){if(jE)return Kw;jE=1;var e=Cy(),t=H8(),n=K8(),r=Q8(),o=Y8(),i=X8();function a(t){var n=this.__data__=new e(t);this.size=n.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=o,a.prototype.set=i,Kw=a}function J8(){if(VE)return Qw;VE=1;return Qw=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}}function Z8(){if(UE)return Yw;return UE=1,Yw=function(e){return this.__data__.has(e)}}function e4(){if(zE)return Xw;zE=1;var e=$$(),t=J8(),n=Z8();function r(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Xw=r}function t4(){if(WE)return Jw;return WE=1,Jw=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}}function n4(){if(qE)return Zw;return qE=1,Zw=function(e,t){return e.has(t)}}function j2(){if(GE)return e_;GE=1;var e=e4(),t=t4(),n=n4();return e_=function(r,o,i,a,u,s){var l=1&i,c=r.length,d=o.length;if(c!=d&&!(l&&d>c))return!1;var f=s.get(r),p=s.get(o);if(f&&p)return f==o&&p==r;var m=-1,h=!0,v=2&i?new e:void 0;for(s.set(r,o),s.set(o,r);++m<c;){var g=r[m],y=o[m];if(a)var b=l?a(y,g,m,o,r,s):a(g,y,m,r,o,s);if(void 0!==b){if(b)continue;h=!1;break}if(v){if(!t(o,(function(e,t){if(!n(v,t)&&(g===e||u(g,e,i,a,s)))return v.push(t)}))){h=!1;break}}else if(g!==y&&!u(g,y,i,a,s)){h=!1;break}}return s.delete(r),s.delete(o),h}}function V2(){if(HE)return t_;HE=1;var e=si().Uint8Array;return t_=e}function r4(){if(KE)return n_;return KE=1,n_=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}}function o4(){if(QE)return r_;return QE=1,r_=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}}function i4(){if(YE)return o_;YE=1;var e=Hh(),t=V2(),n=x$(),r=j2(),o=r4(),i=o4(),a=e?e.prototype:void 0,u=a?a.valueOf:void 0;return o_=function(e,a,s,l,c,d,f){switch(s){case"[object DataView]":if(e.byteLength!=a.byteLength||e.byteOffset!=a.byteOffset)return!1;e=e.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=a.byteLength||!d(new t(e),new t(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+a);case"[object Error]":return e.name==a.name&&e.message==a.message;case"[object RegExp]":case"[object String]":return e==a+"";case"[object Map]":var p=o;case"[object Set]":var m=1&l;if(p||(p=i),e.size!=a.size&&!m)return!1;var h=f.get(e);if(h)return h==a;l|=2,f.set(e,a);var v=r(p(e),p(a),l,c,d,f);return f.delete(e),v;case"[object Symbol]":if(u)return u.call(e)==u.call(a)}return!1}}function I$(){if(XE)return i_;return XE=1,i_=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}}function U2(){if(JE)return a_;JE=1;var e=I$(),t=Pi();return a_=function(n,r,o){var i=r(n);return t(n)?i:e(i,o(n))}}function a4(){if(ZE)return s_;return ZE=1,s_=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}}function z2(){if(eP)return u_;return eP=1,u_=function(){return[]}}function E$(){if(tP)return l_;tP=1;var e=a4(),t=z2(),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return l_=r?function(t){return null==t?[]:(t=Object(t),e(r(t),(function(e){return n.call(t,e)})))}:t}function s4(){if(nP)return c_;return nP=1,c_=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}}function u4(){if(rP)return d_;rP=1;var e=Dl(),t=aa();return d_=function(n){return t(n)&&"[object Arguments]"==e(n)}}function P$(){if(oP)return f_;oP=1;var e=u4(),t=aa(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!o.call(e,"callee")};return f_=i}var p_,iP,aP,h_,sP,m_,uP,v_,lP,g_,cP,nv={exports:{}};function l4(){if(iP)return p_;return iP=1,p_=function(){return!1}}function R$(){return aP||(aP=1,e=nv,t=nv.exports,n=si(),r=l4(),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,u=(a?a.isBuffer:void 0)||r,e.exports=u),nv.exports;var e,t,n,r,o,i,a,u}function T$(){if(sP)return h_;sP=1;var e=/^(?:0|[1-9]\d*)$/;return h_=function(t,n){var r=typeof t;return!!(n=n??9007199254740991)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}}function O$(){if(uP)return m_;uP=1;return m_=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function c4(){if(lP)return v_;lP=1;var e=Dl(),t=O$(),n=aa(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,v_=function(o){return n(o)&&t(o.length)&&!!r[e(o)]}}function A$(){if(cP)return g_;return cP=1,g_=function(e){return function(t){return e(t)}}}nv.exports;var dP,y_,fP,w_,pP,__,hP,b_,mP,x_,vP,S_,gP,$_,yP,C_,wP,I_,_P,E_,bP,P_,xP,R_,SP,T_,$P,O_,CP,A_,IP,D_,EP,N_,PP,k_,RP,M_,TP,L_,OP,F_,AP,B_,DP,j_,NP,V_,kP,U_,MP,z_,LP,W_,FP,q_,BP,G_,jP,H_,VP,K_,UP,Q_,zP,Y_,WP,X_,qP,J_,GP,Z_,HP,eb,KP,tb,QP,nb,YP,rb,XP,ob,JP,ib,ZP,ab,eR,sb,tR,ub,nR,lb,rR,cb,oR,db,iR,fb,aR,pb,sR,hb,uR,mb,lR,rv={exports:{}};function D$(){return dP||(dP=1,e=rv,t=rv.exports,n=O2(),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch{}}(),e.exports=a),rv.exports;var e,t,n,r,o,i,a}function W2(){if(fP)return y_;fP=1;var e=c4(),t=A$(),n=D$(),r=n&&n.isTypedArray,o=r?t(r):e;return y_=o}function q2(){if(pP)return w_;pP=1;var e=s4(),t=P$(),n=Pi(),r=R$(),o=T$(),i=W2(),a=Object.prototype.hasOwnProperty;return w_=function(u,s){var l=n(u),c=!l&&t(u),d=!l&&!c&&r(u),f=!l&&!c&&!d&&i(u),p=l||c||d||f,m=p?e(u.length,String):[],h=m.length;for(var v in u)(s||a.call(u,v))&&(!p||!("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||o(v,h)))&&m.push(v);return m}}function N$(){if(hP)return __;hP=1;var e=Object.prototype;return __=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function G2(){if(mP)return b_;return mP=1,b_=function(e,t){return function(n){return e(t(n))}}}function d4(){if(vP)return x_;vP=1;var e=G2()(Object.keys,Object);return x_=e}function H2(){if(gP)return S_;gP=1;var e=N$(),t=d4(),n=Object.prototype.hasOwnProperty;return S_=function(r){if(!e(r))return t(r);var o=[];for(var i in Object(r))n.call(r,i)&&"constructor"!=i&&o.push(i);return o}}function K2(){if(yP)return $_;yP=1;var e=xy(),t=O$();return $_=function(n){return null!=n&&t(n.length)&&!e(n)}}function Ey(){if(wP)return C_;wP=1;var e=q2(),t=H2(),n=K2();return C_=function(r){return n(r)?e(r):t(r)}}function Q2(){if(_P)return I_;_P=1;var e=U2(),t=E$(),n=Ey();return I_=function(r){return e(r,n,t)}}function f4(){if(bP)return E_;bP=1;var e=Q2(),t=Object.prototype.hasOwnProperty;return E_=function(n,r,o,i,a,u){var s=1&o,l=e(n),c=l.length;if(c!=e(r).length&&!s)return!1;for(var d=c;d--;){var f=l[d];if(!(s?f in r:t.call(r,f)))return!1}var p=u.get(n),m=u.get(r);if(p&&m)return p==r&&m==n;var h=!0;u.set(n,r),u.set(r,n);for(var v=s;++d<c;){var g=n[f=l[d]],y=r[f];if(i)var b=s?i(y,g,f,r,n,u):i(g,y,f,n,r,u);if(!(void 0===b?g===y||a(g,y,o,i,u):b)){h=!1;break}v||(v="constructor"==f)}if(h&&!v){var w=n.constructor,x=r.constructor;w!=x&&"constructor"in n&&"constructor"in r&&!("function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x)&&(h=!1)}return u.delete(n),u.delete(r),h}}function p4(){if(xP)return P_;xP=1;var e=lp()(si(),"DataView");return P_=e}function h4(){if(SP)return R_;SP=1;var e=lp()(si(),"Promise");return R_=e}function m4(){if($P)return T_;$P=1;var e=lp()(si(),"Set");return T_=e}function Y2(){if(CP)return O_;CP=1;var e=lp()(si(),"WeakMap");return O_=e}function Fv(){if(IP)return A_;IP=1;var e=p4(),t=S$(),n=h4(),r=m4(),o=Y2(),i=Dl(),a=A2(),u="[object Map]",s="[object Promise]",l="[object Set]",c="[object WeakMap]",d="[object DataView]",f=a(e),p=a(t),m=a(n),h=a(r),v=a(o),g=i;return(e&&g(new e(new ArrayBuffer(1)))!=d||t&&g(new t)!=u||n&&g(n.resolve())!=s||r&&g(new r)!=l||o&&g(new o)!=c)&&(g=function(e){var t=i(e),n="[object Object]"==t?e.constructor:void 0,r=n?a(n):"";if(r)switch(r){case f:return d;case p:return u;case m:return s;case h:return l;case v:return c}return t}),A_=g}function v4(){if(EP)return D_;EP=1;var e=C$(),t=j2(),n=i4(),r=f4(),o=Fv(),i=Pi(),a=R$(),u=W2(),s="[object Arguments]",l="[object Array]",c="[object Object]",d=Object.prototype.hasOwnProperty;return D_=function(f,p,m,h,v,g){var y=i(f),b=i(p),w=y?l:o(f),x=b?l:o(p),_=(w=w==s?c:w)==c,k=(x=x==s?c:x)==c,S=w==x;if(S&&a(f)){if(!a(p))return!1;y=!0,_=!1}if(S&&!_)return g||(g=new e),y||u(f)?t(f,p,m,h,v,g):n(f,p,w,m,h,v,g);if(!(1&m)){var A=_&&d.call(f,"__wrapped__"),E=k&&d.call(p,"__wrapped__");if(A||E){var I=A?f.value():f,C=E?p.value():p;return g||(g=new e),v(I,C,m,h,g)}}return!!S&&(g||(g=new e),r(f,p,m,h,v,g))}}function X2(){if(PP)return N_;PP=1;var e=v4(),t=aa();return N_=function n(r,o,i,a,u){return r===o||(null==r||null==o||!t(r)&&!t(o)?r!=r&&o!=o:e(r,o,i,a,n,u))},N_}function g4(){if(RP)return k_;RP=1;var e=C$(),t=X2();return k_=function(n,r,o,i){var a=o.length,u=a,s=!i;if(null==n)return!u;for(n=Object(n);a--;){var l=o[a];if(s&&l[2]?l[1]!==n[l[0]]:!(l[0]in n))return!1}for(;++a<u;){var c=(l=o[a])[0],d=n[c],f=l[1];if(s&&l[2]){if(void 0===d&&!(c in n))return!1}else{var p=new e;if(i)var m=i(d,f,c,n,r,p);if(!(void 0===m?t(f,d,3,i,p):m))return!1}}return!0}}function J2(){if(TP)return M_;TP=1;var e=xs();return M_=function(t){return t==t&&!e(t)}}function y4(){if(OP)return L_;OP=1;var e=J2(),t=Ey();return L_=function(n){for(var r=t(n),o=r.length;o--;){var i=r[o],a=n[i];r[o]=[i,a,e(a)]}return r}}function Z2(){if(AP)return F_;return AP=1,F_=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}}function w4(){if(DP)return B_;DP=1;var e=g4(),t=y4(),n=Z2();return B_=function(r){var o=t(r);return 1==o.length&&o[0][2]?n(o[0][0],o[0][1]):function(t){return t===r||e(t,r,o)}}}function _4(){if(NP)return j_;return NP=1,j_=function(e,t){return null!=e&&t in Object(e)}}function b4(){if(kP)return V_;kP=1;var e=M2(),t=P$(),n=Pi(),r=T$(),o=O$(),i=Lv();return V_=function(a,u,s){for(var l=-1,c=(u=e(u,a)).length,d=!1;++l<c;){var f=i(u[l]);if(!(d=null!=a&&s(a,f)))break;a=a[f]}return d||++l!=c?d:!!(c=null==a?0:a.length)&&o(c)&&r(f,c)&&(n(a)||t(a))}}function x4(){if(MP)return U_;MP=1;var e=_4(),t=b4();return U_=function(n,r){return null!=n&&t(n,r,e)}}function S4(){if(LP)return z_;LP=1;var e=X2(),t=F2(),n=x4(),r=b$(),o=J2(),i=Z2(),a=Lv();return z_=function(u,s){return r(u)&&o(s)?i(a(u),s):function(r){var o=t(r,u);return void 0===o&&o===s?n(r,u):e(s,o,3)}}}function k$(){if(FP)return W_;return FP=1,W_=function(e){return e}}function $4(){if(BP)return q_;return BP=1,q_=function(e){return function(t){return null==t?void 0:t[e]}}}function C4(){if(jP)return G_;jP=1;var e=L2();return G_=function(t){return function(n){return e(n,t)}}}function I4(){if(VP)return H_;VP=1;var e=$4(),t=C4(),n=b$(),r=Lv();return H_=function(o){return n(o)?e(r(o)):t(o)}}function E4(){if(UP)return K_;UP=1;var e=w4(),t=S4(),n=k$(),r=Pi(),o=I4();return K_=function(i){return"function"==typeof i?i:null==i?n:"object"==typeof i?r(i)?t(i[0],i[1]):e(i):o(i)}}function P4(){if(zP)return Q_;return zP=1,Q_=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}}function R4(){if(WP)return Y_;return WP=1,Y_=function(e){return e!=e}}function T4(){if(qP)return X_;return qP=1,X_=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}}function O4(){if(GP)return J_;GP=1;var e=P4(),t=R4(),n=T4();return J_=function(r,o,i){return o==o?n(r,o,i):e(r,t,i)}}function A4(){if(HP)return Z_;HP=1;var e=O4();return Z_=function(t,n){return!!(null==t?0:t.length)&&e(t,n,0)>-1}}function D4(){if(KP)return eb;return KP=1,eb=function(){}}function N4(){if(QP)return tb;QP=1;var e=Hh(),t=P$(),n=Pi(),r=e?e.isConcatSpreadable:void 0;return tb=function(e){return n(e)||t(e)||!!(r&&e&&e[r])}}function k4(){if(YP)return nb;YP=1;var e=I$(),t=N4();return nb=function n(r,o,i,a,u){var s=-1,l=r.length;for(i||(i=t),u||(u=[]);++s<l;){var c=r[s];o>0&&i(c)?o>1?n(c,o-1,i,a,u):e(u,c):a||(u[u.length]=c)}return u},nb}function M$(){if(XP)return rb;return XP=1,rb=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}}function M4(){if(JP)return ob;JP=1;var e=M$(),t=Math.max;return ob=function(n,r,o){return r=t(void 0===r?n.length-1:r,0),function(){for(var i=arguments,a=-1,u=t(i.length-r,0),s=Array(u);++a<u;)s[a]=i[r+a];a=-1;for(var l=Array(r+1);++a<r;)l[a]=i[a];return l[r]=o(s),e(n,this,l)}},ob}function L4(){if(ZP)return ib;return ZP=1,ib=function(e){return function(){return e}}}function eD(){if(eR)return ab;eR=1;var e=lp(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}}();return ab=t}function F4(){if(tR)return sb;tR=1;var e=L4(),t=eD(),n=k$();return sb=t?function(n,r){return t(n,"toString",{configurable:!0,enumerable:!1,value:e(r),writable:!0})}:n}function tD(){if(nR)return ub;nR=1;var e=Date.now;return ub=function(t){var n=0,r=0;return function(){var o=e(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}},ub}function nD(){if(rR)return lb;rR=1;var e=F4(),t=tD()(e);return lb=t}function B4(){if(oR)return cb;oR=1;var e=si();return cb=function(){return e.Date.now()}}function j4(){if(iR)return db;iR=1;var e=/\s/;return db=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}}function V4(){if(aR)return fb;aR=1;var e=j4(),t=/^\s+/;return fb=function(n){return n&&n.slice(0,e(n)+1).replace(t,"")}}function rD(){if(sR)return pb;sR=1;var e=V4(),t=xs(),n=Mv(),r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt;return pb=function(u){if("number"==typeof u)return u;if(n(u))return NaN;if(t(u)){var s="function"==typeof u.valueOf?u.valueOf():u;u=t(s)?s+"":s}if("string"!=typeof u)return 0===u?u:+u;u=e(u);var l=o.test(u);return l||i.test(u)?a(u.slice(2),l?2:8):r.test(u)?NaN:+u}}function oD(){if(uR)return hb;uR=1;var e=xs(),t=B4(),n=rD(),r=Math.max,o=Math.min;return hb=function(i,a,u){var s,l,c,d,f,p,m=0,h=!1,v=!1,g=!0;if("function"!=typeof i)throw new TypeError("Expected a function");function y(e){var t=s,n=l;return s=l=void 0,m=e,d=i.apply(n,t)}function b(e){var t=e-p;return void 0===p||t>=a||t<0||v&&e-m>=c}function w(){var e=t();if(b(e))return x(e);f=setTimeout(w,function(e){var t=a-(e-p);return v?o(t,c-(e-m)):t}(e))}function x(e){return f=void 0,g&&s?y(e):(s=l=void 0,d)}function _(){var e=t(),n=b(e);if(s=arguments,l=this,p=e,n){if(void 0===f)return function(e){return m=e,f=setTimeout(w,a),h?y(e):d}(p);if(v)return clearTimeout(f),f=setTimeout(w,a),y(p)}return void 0===f&&(f=setTimeout(w,a)),d}return a=n(a)||0,e(u)&&(h=!!u.leading,c=(v="maxWait"in u)?r(n(u.maxWait)||0,a):c,g="trailing"in u?!!u.trailing:g),_.cancel=function(){void 0!==f&&clearTimeout(f),m=0,s=p=l=f=void 0},_.flush=function(){return void 0===f?d:x(t())},_},hb}function U4(){if(lR)return mb;lR=1;var e=oD(),t=xs();return mb=function(n,r,o){var i=!0,a=!0;if("function"!=typeof n)throw new TypeError("Expected a function");return t(o)&&(i="leading"in o?!!o.leading:i,a="trailing"in o?!!o.trailing:a),e(n,r,{leading:i,maxWait:r,trailing:a})}}rv.exports;var z4=U4();const W4=XS(z4);function wv(e){return(wv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cR(Object(n),!0).forEach((function(t){q4(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function q4(e,t,n){return(t=G4(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G4(e){var t=H4(e,"string");return"symbol"==wv(t)?t:t+""}function H4(e,t){if("object"!=wv(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function K4(e,t){return J4(e)||X4(e,t)||Y4(e,t)||Q4()}function Q4(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Y4(e,t){if(e){if("string"==typeof e)return dR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dR(e,t)}}function dR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function X4(e,t){var n=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0!==t)for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}function J4(e){if(Array.isArray(e))return e}var vb,fR,gb,pR,yb,hR,wb,mR,_b,vR,bb,gR,xb,yR,Sb,wR,$b,_R,Cb,bR,Ib,xR,Eb,SR,Pb,$R,Z4=Le((function(e,t){var n=e.aspect,r=e.initialDimension,o=void 0===r?{width:-1,height:-1}:r,i=e.width,a=void 0===i?"100%":i,u=e.height,s=void 0===u?"100%":u,l=e.minWidth,c=void 0===l?0:l,d=e.minHeight,f=e.maxHeight,p=e.children,m=e.debounce,h=void 0===m?0:m,v=e.id,g=e.className,y=e.onResize,b=e.style,w=void 0===b?{}:b,x=We(null),_=We();_.current=y,hM(t,(function(){return Object.defineProperty(x.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),x.current},configurable:!0})}));var k=K4(ut({containerWidth:o.width,containerHeight:o.height}),2),S=k[0],A=k[1],E=yt((function(e,t){A((function(n){var r=Math.round(e),o=Math.round(t);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}}))}),[]);Ze((function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,o=n.height;E(r,o),null===(t=_.current)||void 0===t||t.call(_,r,o)};h>0&&(e=W4(e,h,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=x.current.getBoundingClientRect(),r=n.width,o=n.height;return E(r,o),t.observe(x.current),function(){t.disconnect()}}),[E,h]);var I=xn((function(){var e=S.containerWidth,t=S.containerHeight;if(e<0||t<0)return null;Uw(Pg(a)||Pg(s),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,s),Uw(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=Pg(a)?e:a,o=Pg(s)?t:s;n&&n>0&&(r?o=r/n:o&&(r=o*n),f&&o>f&&(o=f)),Uw(r>0||o>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,o,a,s,c,d,n);var i=!Array.isArray(p)&&G8(p.type).endsWith("Chart");return He.Children.map(p,(function(e){return He.isValidElement(e)?sp(e,Rg({width:r,height:o},i?{style:Rg({height:"100%",width:"100%",maxHeight:o,maxWidth:r},e.props.style)}:{})):e}))}),[n,p,s,f,d,c,S,a]);return He.createElement("div",{id:v?"".concat(v):void 0,className:DA("recharts-responsive-container",g),style:Rg(Rg({},w),{},{width:a,height:s,minWidth:c,minHeight:d,maxHeight:f}),ref:x},I)}));function L$(){if(fR)return vb;fR=1;var e=G2()(Object.getPrototypeOf,Object);return vb=e}function eF(){if(pR)return gb;pR=1;var e=Dl(),t=L$(),n=aa(),r=Function.prototype,o=Object.prototype,i=r.toString,a=o.hasOwnProperty,u=i.call(Object);return gb=function(r){if(!n(r)||"[object Object]"!=e(r))return!1;var o=t(r);if(null===o)return!0;var s=a.call(o,"constructor")&&o.constructor;return"function"==typeof s&&s instanceof s&&i.call(s)==u}}function tF(){if(hR)return yb;hR=1;var e=rD(),t=1/0;return yb=function(n){return n?(n=e(n))===t||n===-t?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}}function iD(){if(mR)return wb;mR=1;var e=eD();return wb=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}}function aD(){if(vR)return _b;vR=1;var e=tF();return _b=function(t){var n=e(t),r=n%1;return n==n?r?n-r:n:0}}function F$(){if(gR)return bb;return gR=1,bb=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}}function sD(){if(yR)return xb;yR=1;var e=iD(),t=x$(),n=Object.prototype.hasOwnProperty;return xb=function(r,o,i){var a=r[o];(!n.call(r,o)||!t(a,i)||void 0===i&&!(o in r))&&e(r,o,i)}}function Py(){if(wR)return Sb;wR=1;var e=sD(),t=iD();return Sb=function(n,r,o,i){var a=!o;o||(o={});for(var u=-1,s=r.length;++u<s;){var l=r[u],c=i?i(o[l],n[l],l,o,n):void 0;void 0===c&&(c=n[l]),a?t(o,l,c):e(o,l,c)}return o}}function uD(){if(_R)return $b;_R=1;var e=Py(),t=Ey();return $b=function(n,r){return n&&e(r,t(r),n)}}function nF(){if(bR)return Cb;return bR=1,Cb=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}}function rF(){if(xR)return Ib;xR=1;var e=xs(),t=N$(),n=nF(),r=Object.prototype.hasOwnProperty;return Ib=function(o){if(!e(o))return n(o);var i=t(o),a=[];for(var u in o)"constructor"==u&&(i||!r.call(o,u))||a.push(u);return a}}function B$(){if(SR)return Eb;SR=1;var e=q2(),t=rF(),n=K2();return Eb=function(r){return n(r)?e(r,!0):t(r)}}function oF(){if($R)return Pb;$R=1;var e=Py(),t=B$();return Pb=function(n,r){return n&&e(r,t(r),n)}}var CR,Rb,IR,Tb,ER,Ob,PR,Ab,RR,Db,TR,Nb,OR,kb,AR,Mb,DR,Lb,NR,Fb,kR,Bb,MR,jb,LR,Vb,FR,Ub,BR,zb,jR,Wb,VR,qb,UR,Gb,zR,Hb,WR,Kb,qR,Qb,GR,ov={exports:{}};function iF(){return CR||(CR=1,e=ov,t=ov.exports,n=si(),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r?n.Buffer:void 0,a=i?i.allocUnsafe:void 0,e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}),ov.exports;var e,t,n,r,o,i,a}function Ry(){if(IR)return Rb;return IR=1,Rb=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}}function aF(){if(ER)return Tb;ER=1;var e=Py(),t=E$();return Tb=function(n,r){return e(n,t(n),r)}}function lD(){if(PR)return Ob;PR=1;var e=I$(),t=L$(),n=E$(),r=z2(),o=Object.getOwnPropertySymbols;return Ob=o?function(r){for(var o=[];r;)e(o,n(r)),r=t(r);return o}:r}function sF(){if(RR)return Ab;RR=1;var e=Py(),t=lD();return Ab=function(n,r){return e(n,t(n),r)}}function uF(){if(TR)return Db;TR=1;var e=U2(),t=lD(),n=B$();return Db=function(r){return e(r,n,t)}}function lF(){if(OR)return Nb;OR=1;var e=Object.prototype.hasOwnProperty;return Nb=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}}function j$(){if(AR)return kb;AR=1;var e=V2();return kb=function(t){var n=new t.constructor(t.byteLength);return new e(n).set(new e(t)),n}}function cF(){if(DR)return Mb;DR=1;var e=j$();return Mb=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}}function dF(){if(NR)return Lb;NR=1;var e=/\w*$/;return Lb=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}}function fF(){if(kR)return Fb;kR=1;var e=Hh(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;return Fb=function(e){return n?Object(n.call(e)):{}}}function pF(){if(MR)return Bb;MR=1;var e=j$();return Bb=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}}function hF(){if(LR)return jb;LR=1;var e=j$(),t=cF(),n=dF(),r=fF(),o=pF();return jb=function(i,a,u){var s=i.constructor;switch(a){case"[object ArrayBuffer]":return e(i);case"[object Boolean]":case"[object Date]":return new s(+i);case"[object DataView]":return t(i,u);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return o(i,u);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(i);case"[object RegExp]":return n(i);case"[object Symbol]":return r(i)}}}function Ty(){if(FR)return Vb;FR=1;var e=xs(),t=Object.create;return Vb=function(){function n(){}return function(r){if(!e(r))return{};if(t)return t(r);n.prototype=r;var o=new n;return n.prototype=void 0,o}}()}function mF(){if(BR)return Ub;BR=1;var e=Ty(),t=L$(),n=N$();return Ub=function(r){return"function"!=typeof r.constructor||n(r)?{}:e(t(r))}}function vF(){if(jR)return zb;jR=1;var e=Fv(),t=aa();return zb=function(n){return t(n)&&"[object Map]"==e(n)}}function gF(){if(VR)return Wb;VR=1;var e=vF(),t=A$(),n=D$(),r=n&&n.isMap,o=r?t(r):e;return Wb=o}function yF(){if(UR)return qb;UR=1;var e=Fv(),t=aa();return qb=function(n){return t(n)&&"[object Set]"==e(n)}}function wF(){if(zR)return Gb;zR=1;var e=yF(),t=A$(),n=D$(),r=n&&n.isSet,o=r?t(r):e;return Gb=o}function cD(){if(WR)return Hb;WR=1;var e=C$(),t=F$(),n=sD(),r=uD(),o=oF(),i=iF(),a=Ry(),u=aF(),s=sF(),l=Q2(),c=uF(),d=Fv(),f=lF(),p=hF(),m=mF(),h=Pi(),v=R$(),g=gF(),y=xs(),b=wF(),w=Ey(),x=B$(),_="[object Arguments]",k="[object Function]",S="[object Object]",A={};return A[_]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[S]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[k]=A["[object WeakMap]"]=!1,Hb=function E(I,C,P,q,O,T){var N,R=1&C,D=2&C,j=4&C;if(P&&(N=O?P(I,q,O,T):P(I)),void 0!==N)return N;if(!y(I))return I;var L=h(I);if(L){if(N=f(I),!R)return a(I,N)}else{var M=d(I),$=M==k||"[object GeneratorFunction]"==M;if(v(I))return i(I,R);if(M==S||M==_||$&&!O){if(N=D||$?{}:m(I),!R)return D?s(I,o(N,I)):u(I,r(N,I))}else{if(!A[M])return O?I:{};N=p(I,M,R)}}T||(T=new e);var B=T.get(I);if(B)return B;T.set(I,N),b(I)?I.forEach((function(e){N.add(E(e,C,P,e,I,T))})):g(I)&&I.forEach((function(e,t){N.set(t,E(e,C,P,t,I,T))}));var F=L?void 0:(j?D?c:l:D?x:w)(I);return t(F||I,(function(e,t){F&&(e=I[t=e]),n(N,t,E(e,C,P,t,I,T))})),N},Hb}function _F(){if(qR)return Kb;qR=1;var e=k4();return Kb=function(t){return(null==t?0:t.length)?e(t,1):[]}}function bF(){if(GR)return Qb;GR=1;var e=_F(),t=M4(),n=nD();return Qb=function(r){return n(t(r,void 0,e),r+"")}}ov.exports;const xF={light:"",dark:".dark"},dD=k.createContext(null);function fD(){const e=k.useContext(dD);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const SF=k.forwardRef((({id:e,className:t,children:n,config:r,...o},i)=>{const a=k.useId(),u=`chart-${e||a.replace(/:/g,"")}`;return q.jsx(dD.Provider,{value:{config:r},children:q.jsxs("div",{"data-chart":u,ref:i,className:we("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...o,children:[q.jsx($F,{id:u,config:r}),q.jsx(Z4,{children:n})]})})}));SF.displayName="Chart";const $F=({id:e,config:t})=>{const n=Object.entries(t).filter((([,e])=>e.theme||e.color));return n.length?q.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(xF).map((([t,r])=>`\n${r} [data-chart=${e}] {\n${n.map((([e,n])=>{var r;const o=(null==(r=n.theme)?void 0:r[t])||n.color;return o?` --color-${e}: ${o};`:null})).join("\n")}\n}\n`)).join("\n")}}):null},CF=k.forwardRef((({active:e,payload:t,className:n,indicator:r="dot",hideLabel:o=!1,hideIndicator:i=!1,label:a,labelFormatter:u,labelClassName:s,formatter:l,color:c,nameKey:d,labelKey:f,hoveredItem:p,onItemHover:m},h)=>{const{config:v}=fD(),g=k.useMemo((()=>{var e;if(o||null==t||!t.length)return null;const[n]=t,r=`${f||(null==n?void 0:n.dataKey)||(null==n?void 0:n.name)||"value"}`,i=vS(v,n,r),l=f||"string"!=typeof a?null==i?void 0:i.label:(null==(e=v[a])?void 0:e.label)||a;return u?q.jsx("div",{className:we("font-medium",s),children:u(l,t)}):l?q.jsx("div",{className:we("font-medium",s),children:l}):null}),[a,u,t,o,s,v,f]);if(!e||null==t||!t.length)return null;const y=1===t.length&&"dot"!==r,b=t.length>10;return q.jsxs("div",{ref:h,className:we("grid min-w-[8rem] items-start gap-xxs rounded-sm border border-border/50 bg-background px-xs py-xxs text-xs shadow-xl",b&&"min-w-[16rem]",n),children:[y?null:g,q.jsx("div",{className:we("grid gap-xxs",b&&"grid-cols-2 gap-x-s"),children:t.map(((e,t)=>{var n;const o=`${d||e.name||e.dataKey||"value"}`,a=vS(v,e,o),u=c||(null==(n=e.payload)?void 0:n.fill)||e.color||"",s=o===p;return q.jsx("div",{className:we("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===r&&"items-center",s?"":p?"opacity-40":""),onMouseEnter:()=>null==m?void 0:m(o),onMouseLeave:()=>null==m?void 0:m(null),children:l&&void 0!==(null==e?void 0:e.value)&&void 0!==(null==e?void 0:e.payload)&&e.name?l(e.value,e.name,e,t,[e.payload]):q.jsxs(q.Fragment,{children:[null!=a&&a.icon?q.jsx(a.icon,{}):!i&&q.jsx("div",{className:we("shrink-0 rounded-full border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===r,"w-1":"line"===r,"w-0 border border-dashed bg-transparent":"dashed"===r,"my-0.5":y&&"dashed"===r}),style:{"--color-bg":u,"--color-border":u}}),q.jsxs("div",{className:we("flex flex-1 justify-between leading-none",y?"items-end":"items-center"),children:[q.jsxs("div",{className:"grid gap-xxs",children:[y?g:null,q.jsx("span",{className:we("text-muted-foreground",s&&"font-medium text-foreground"),children:(null==a?void 0:a.label)||e.name})]}),e.value&&q.jsx("span",{className:we("font-mono font-medium tabular-nums text-foreground",s&&"font-bold"),children:e.value.toLocaleString()})]})]})},e.dataKey)}))})]})}));CF.displayName="ChartTooltip";const IF=k.forwardRef((({className:e,hideIcon:t=!1,payload:n,nameKey:r,onItemHover:o,hoveredItem:i},a)=>{const{config:u}=fD(),s=k.useRef({});return k.useEffect((()=>{if(i&&s.current[i]){const e=s.current[i];e&&e.scrollIntoView({behavior:"smooth",block:"nearest"})}}),[i]),null!=n&&n.length?q.jsx("div",{ref:a,className:we("flex h-[150px] w-full flex-wrap items-center justify-center gap-l overflow-y-auto pb-xl",e),children:n.map((e=>{var n;const a=`${r||e.dataKey||"value"}`,l=vS(u,e,a),c=!!o&&a===i;return q.jsxs("div",{ref:e=>{e?s.current[a]=e:delete s.current[a]},className:we("group flex cursor-pointer select-none items-center gap-xs text-base transition-all duration-150",c?"scale-105 text-black":i?"text-gray-700 opacity-40":"text-gray-700"),onMouseEnter:()=>null==o?void 0:o(e.dataKey),onMouseLeave:()=>null==o?void 0:o(null),children:[null!=l&&l.icon&&!t?q.jsx(l.icon,{}):q.jsx("div",{className:"h-2 w-2 shrink-0 rounded-full",style:{backgroundColor:e.color||""}}),q.jsx("span",{className:"min-w-[max-content]",children:(null==l?void 0:l.label)||e.name})]},(null==(n=e.value)?void 0:n.toString())||a)}))}):null}));function vS(e,t,n){if("object"!=typeof t||null===t)return;const r="payload"in t&&"object"==typeof t.payload&&null!==t.payload?t.payload:void 0;let o=n;return n in t&&"string"==typeof t[n]?o=t[n]:r&&n in r&&"string"==typeof r[n]&&(o=r[n]),o in e?e[o]:e[n]}IF.displayName="ChartLegend";const EF=({children:e,className:t})=>q.jsx("div",{className:we("flex flex-wrap gap-xxxs",t),children:e}),pD=({text:e,icon:t,disabled:n,isLoading:r,avatarSrc:o,onClick:i,onRemove:a,className:u})=>q.jsxs("div",{onClick:n?void 0:i,className:we("flex cursor-pointer items-center gap-xxxs rounded-sm bg-gray-100 p-xxs text-sm font-medium text-gray-900 transition-all hover:bg-gray-200 [&_svg]:size-4",n&&"cursor-not-allowed bg-gray-100 text-gray-300",u),children:[o&&q.jsxs(x2,{className:we("size-6 text-[10px]"),children:[q.jsx(S2,{src:o,alt:e}),q.jsx($2,{className:"text-xs",children:e.charAt(0).toUpperCase()})]}),t,q.jsx("span",{children:e}),a&&!r&&q.jsx("span",{role:"button",tabIndex:-1,onClick:e=>{e.stopPropagation(),e.preventDefault(),!n&&(null==a||a())},onPointerDown:e=>{e.stopPropagation(),e.preventDefault()},className:we("pointer-events-auto cursor-pointer",n&&"pointer-events-none cursor-not-allowed opacity-50"),children:q.jsx(py,{size:16})}),r&&q.jsx(PA,{size:16,className:"animate-spin"})]});function Oy(e){const t=We({value:e,previous:e});return xn((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}function Ay(e){const[t,n]=ut(void 0);return Go((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t)||!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}const hD="Checkbox",[PF,UX]=ai(hD),[RF,TF]=PF(hD),OF=Le(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:u,value:s="on",onCheckedChange:l,...c}=e,[d,f]=ut(null),p=Ht(t,(e=>f(e))),m=We(!1),h=!d||!!d.closest("form"),[v=!1,g]=vd({prop:o,defaultProp:i,onChange:l}),y=We(v);return Ze((()=>{const e=null==d?void 0:d.form;if(e){const t=()=>g(y.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[d,g]),oe(RF,{scope:n,state:v,disabled:u},oe(ht.button,Ee({type:"button",role:"checkbox","aria-checked":Wf(v)?"mixed":v,"aria-required":a,"data-state":mD(v),"data-disabled":u?"":void 0,disabled:u,value:s},c,{ref:p,onKeyDown:ot(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:ot(e.onClick,(e=>{g((e=>!!Wf(e)||!e)),h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))})),h&&oe(NF,{control:d,bubbles:!m.current,name:r,value:s,checked:v,required:a,disabled:u,style:{transform:"translateX(-100%)"}}))})),AF="CheckboxIndicator",DF=Le(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=TF(AF,n);return oe(ia,{present:r||Wf(i.state)||!0===i.state},oe(ht.span,Ee({"data-state":mD(i.state),"data-disabled":i.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))})),NF=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=We(null),a=Oy(n),u=Ay(t);return Ze((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});e.indeterminate=Wf(n),o.call(e,!Wf(n)&&n),e.dispatchEvent(t)}}),[a,n,r]),oe("input",Ee({type:"checkbox","aria-hidden":!0,defaultChecked:!Wf(n)&&n},o,{tabIndex:-1,ref:i,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Wf(e){return"indeterminate"===e}function mD(e){return Wf(e)?"indeterminate":e?"checked":"unchecked"}const vD=OF,kF=DF,MF=wu("relative overflow-hidden ",{variants:{size:{default:"size-xs"},variant:{default:"peer shrink-0 rounded-sm border disabled:cursor-not-allowed disabled:!border-0 disabled:!bg-gray-100"}},defaultVariants:{size:"default",variant:"default"}}),V$=k.forwardRef((({className:e,size:t,variant:n,iconType:r,...o},i)=>{const a=o.checked,[u]=k.useState(a),[s,l]=k.useState(!1);k.useEffect((()=>{u!==a&&l(!0)}),[a]);const c=e=>"minus"===r?q.jsx(TL,{...e}):q.jsx(a$,{...e});return q.jsxs(vD,{ref:i,className:we(MF({size:t,variant:n}),"transition-[border] duration-100 ease-linear",a?"border-0":"border-gray-300 hover:border-2",e),...o,children:[q.jsx("div",{className:we("transform-origin-center absolute left-0 top-0 size-full rounded-full bg-blue_100",a?"scale-[1.2]":"scale-0",{"animate-fill-in":a&&s,"animate-fill-out":!a&&s})}),q.jsx(kF,{className:"relative flex items-center justify-center text-current",children:q.jsx(c,{className:"size-xxxs",color:o.disabled?"var(--gray-300)":"white"})})]})}));V$.displayName=vD.displayName;var HR=1,LF=.9,FF=.8,BF=.17,Yb=.1,Xb=.999,jF=.9999,VF=.99,UF=/[\\\/_+.#"@\[\(\{&]/,zF=/[\\\/_+.#"@\[\(\{&]/g,WF=/[\s-]/,gD=/[\s-]/g;function gS(e,t,n,r,o,i,a){if(i===t.length)return o===e.length?HR:VF;var u=`${o},${i}`;if(void 0!==a[u])return a[u];for(var s,l,c,d,f=r.charAt(i),p=n.indexOf(f,o),m=0;p>=0;)(s=gS(e,t,n,r,p+1,i+1,a))>m&&(p===o?s*=HR:UF.test(e.charAt(p-1))?(s*=FF,(c=e.slice(o,p-1).match(zF))&&o>0&&(s*=Math.pow(Xb,c.length))):WF.test(e.charAt(p-1))?(s*=LF,(d=e.slice(o,p-1).match(gD))&&o>0&&(s*=Math.pow(Xb,d.length))):(s*=BF,o>0&&(s*=Math.pow(Xb,p-o))),e.charAt(p)!==t.charAt(i)&&(s*=jF)),(s<Yb&&n.charAt(p-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&n.charAt(p-1)!==r.charAt(i))&&((l=gS(e,t,n,r,p+1,i+2,a))*Yb>s&&(s=l*Yb)),s>m&&(m=s),p=n.indexOf(f,p+1);return a[u]=m,m}function KR(e){return e.toLowerCase().replace(gD," ")}function qF(e,t,n){return gS(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,KR(e),KR(t),0,0,{})}var Ym='[cmdk-group=""]',Jb='[cmdk-group-items=""]',GF='[cmdk-group-heading=""]',U$='[cmdk-item=""]',QR=`${U$}:not([aria-disabled="true"])`,yS="cmdk-item-select",Bf="data-value",HF=(e,t,n)=>qF(e,t,n),yD=k.createContext(void 0),Bv=()=>k.useContext(yD),wD=k.createContext(void 0),z$=()=>k.useContext(wD),_D=k.createContext(void 0),bD=k.forwardRef(((e,t)=>{let n=Nh((()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",filtered:{count:0,items:new Map,groups:new Set}}})),r=Nh((()=>new Set)),o=Nh((()=>new Map)),i=Nh((()=>new Map)),a=Nh((()=>new Set)),u=xD(e),{label:s,children:l,value:c,onValueChange:d,filter:f,shouldFilter:p,loop:m,disablePointerSelection:h=!1,vimBindings:v=!0,...g}=e,y=k.useId(),b=k.useId(),w=k.useId(),x=k.useRef(null),_=o9();Yf((()=>{if(void 0!==c){let e=c.trim();n.current.value=e,S.emit()}}),[c]),Yf((()=>{_(6,q)}),[]);let S=k.useMemo((()=>({subscribe:e=>(a.current.add(e),()=>a.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,i,a;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)P(),I(),_(1,C);else if("value"===e&&(r||_(5,q),void 0!==(null==(o=u.current)?void 0:o.value))){let e=t??"";return void(null==(a=(i=u.current).onValueChange)||a.call(i,e))}S.emit()}},emit:()=>{a.current.forEach((e=>e()))}})),[]),A=k.useMemo((()=>({value:(e,t,r)=>{var o;t!==(null==(o=i.current.get(e))?void 0:o.value)&&(i.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,E(t,r)),_(2,(()=>{I(),S.emit()})))},item:(e,t)=>(r.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),_(3,(()=>{P(),I(),n.current.value||C(),S.emit()})),()=>{i.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=O();_(4,(()=>{P(),(null==t?void 0:t.getAttribute("id"))===e&&C(),S.emit()}))}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{i.current.delete(e),o.current.delete(e)}),filter:()=>u.current.shouldFilter,label:s||e["aria-label"],disablePointerSelection:h,listId:y,inputId:w,labelId:b,listInnerRef:x})),[]);function E(e,t){var r,o;let i=null!=(o=null==(r=u.current)?void 0:r.filter)?o:HF;return e?i(e,n.current.search,t):0}function I(){if(!n.current.search||!1===u.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach((n=>{let r=o.current.get(n),i=0;r.forEach((t=>{let n=e.get(t);i=Math.max(n,i)})),t.push([n,i])}));let r=x.current;T().sort(((t,n)=>{var r,o;let i=t.getAttribute("id"),a=n.getAttribute("id");return(null!=(r=e.get(a))?r:0)-(null!=(o=e.get(i))?o:0)})).forEach((e=>{let t=e.closest(Jb);t?t.appendChild(e.parentElement===t?e:e.closest(`${Jb} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${Jb} > *`))})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{let t=x.current.querySelector(`${Ym}[${Bf}="${encodeURIComponent(e[0])}"]`);null==t||t.parentElement.appendChild(t)}))}function C(){let e=T().find((e=>"true"!==e.getAttribute("aria-disabled"))),t=null==e?void 0:e.getAttribute(Bf);S.setState("value",t||void 0)}function P(){var e,t,a,s;if(!n.current.search||!1===u.current.shouldFilter)return void(n.current.filtered.count=r.current.size);n.current.filtered.groups=new Set;let l=0;for(let o of r.current){let r=E(null!=(t=null==(e=i.current.get(o))?void 0:e.value)?t:"",null!=(s=null==(a=i.current.get(o))?void 0:a.keywords)?s:[]);n.current.filtered.items.set(o,r),r>0&&l++}for(let[e,t]of o.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=l}function q(){var e,t,n;let r=O();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(Ym))?void 0:t.querySelector(GF))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function O(){var e;return null==(e=x.current)?void 0:e.querySelector(`${U$}[aria-selected="true"]`)}function T(){var e;return Array.from(null==(e=x.current)?void 0:e.querySelectorAll(QR))}function N(e){let t=T()[e];t&&S.setState("value",t.getAttribute(Bf))}function R(e){var t;let n=O(),r=T(),o=r.findIndex((e=>e===n)),i=r[o+e];null!=(t=u.current)&&t.loop&&(i=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),i&&S.setState("value",i.getAttribute(Bf))}function D(e){let t,n=O(),r=null==n?void 0:n.closest(Ym);for(;r&&!t;)r=e>0?n9(r,Ym):r9(r,Ym),t=null==r?void 0:r.querySelector(QR);t?S.setState("value",t.getAttribute(Bf)):R(e)}let j=()=>N(T().length-1),L=e=>{e.preventDefault(),e.metaKey?j():e.altKey?D(1):R(1)},M=e=>{e.preventDefault(),e.metaKey?N(0):e.altKey?D(-1):R(-1)};return k.createElement(ht.div,{ref:t,tabIndex:-1,...g,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=g.onKeyDown)||t.call(g,e),!e.defaultPrevented)switch(e.key){case"n":case"j":v&&e.ctrlKey&&L(e);break;case"ArrowDown":L(e);break;case"p":case"k":v&&e.ctrlKey&&M(e);break;case"ArrowUp":M(e);break;case"Home":e.preventDefault(),N(0);break;case"End":e.preventDefault(),j();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();let t=O();if(t){let e=new Event(yS);t.dispatchEvent(e)}}}}},k.createElement("label",{"cmdk-label":"",htmlFor:A.inputId,id:A.labelId,style:a9},s),Dy(e,(e=>k.createElement(wD.Provider,{value:S},k.createElement(yD.Provider,{value:A},e)))))})),KF=k.forwardRef(((e,t)=>{var n,r;let o=k.useId(),i=k.useRef(null),a=k.useContext(_D),u=Bv(),s=xD(e),l=null!=(r=null==(n=s.current)?void 0:n.forceMount)?r:null==a?void 0:a.forceMount;Yf((()=>{if(!l)return u.item(o,null==a?void 0:a.id)}),[l]);let c=SD(o,i,[e.value,e.children,i],e.keywords),d=z$(),f=Xf((e=>e.value&&e.value===c.current)),p=Xf((e=>!(!l&&!1!==u.filter())||(!e.search||e.filtered.items.get(o)>0)));function m(){var e,t;h(),null==(t=(e=s.current).onSelect)||t.call(e,c.current)}function h(){d.setState("value",c.current,!0)}if(k.useEffect((()=>{let t=i.current;if(t&&!e.disabled)return t.addEventListener(yS,m),()=>t.removeEventListener(yS,m)}),[p,e.onSelect,e.disabled]),!p)return null;let{disabled:v,value:g,onSelect:y,forceMount:b,keywords:w,...x}=e;return k.createElement(ht.div,{ref:_v([i,t]),...x,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!f,"data-disabled":!!v,"data-selected":!!f,onPointerMove:v||u.disablePointerSelection?void 0:h,onClick:v?void 0:m},e.children)})),QF=k.forwardRef(((e,t)=>{let{heading:n,children:r,forceMount:o,...i}=e,a=k.useId(),u=k.useRef(null),s=k.useRef(null),l=k.useId(),c=Bv(),d=Xf((e=>!(!o&&!1!==c.filter())||(!e.search||e.filtered.groups.has(a))));Yf((()=>c.group(a)),[]),SD(a,u,[e.value,e.heading,s]);let f=k.useMemo((()=>({id:a,forceMount:o})),[o]);return k.createElement(ht.div,{ref:_v([u,t]),...i,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&k.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:l},n),Dy(e,(e=>k.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?l:void 0},k.createElement(_D.Provider,{value:f},e)))))})),YF=k.forwardRef(((e,t)=>{let{alwaysRender:n,...r}=e,o=k.useRef(null),i=Xf((e=>!e.search));return n||i?k.createElement(ht.div,{ref:_v([o,t]),...r,"cmdk-separator":"",role:"separator"}):null})),XF=k.forwardRef(((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,i=z$(),a=Xf((e=>e.search)),u=Xf((e=>e.value)),s=Bv(),l=k.useMemo((()=>{var e;let t=null==(e=s.listInnerRef.current)?void 0:e.querySelector(`${U$}[${Bf}="${encodeURIComponent(u)}"]`);return null==t?void 0:t.getAttribute("id")}),[]);return k.useEffect((()=>{null!=e.value&&i.setState("search",e.value)}),[e.value]),k.createElement(ht.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":s.listId,"aria-labelledby":s.labelId,"aria-activedescendant":l,id:s.inputId,type:"text",value:o?e.value:a,onChange:e=>{o||i.setState("search",e.target.value),null==n||n(e.target.value)}})})),JF=k.forwardRef(((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,i=k.useRef(null),a=k.useRef(null),u=Bv();return k.useEffect((()=>{if(a.current&&i.current){let e,t=a.current,n=i.current,r=new ResizeObserver((()=>{e=requestAnimationFrame((()=>{let e=t.offsetHeight;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")}))}));return r.observe(t),()=>{cancelAnimationFrame(e),r.unobserve(t)}}}),[]),k.createElement(ht.div,{ref:_v([i,t]),...o,"cmdk-list":"",role:"listbox","aria-label":r,id:u.listId},Dy(e,(e=>k.createElement("div",{ref:_v([a,u.listInnerRef]),"cmdk-list-sizer":""},e))))})),ZF=k.forwardRef(((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:i,container:a,...u}=e;return k.createElement(u2,{open:n,onOpenChange:r},k.createElement(wy,{container:a},k.createElement(qh,{"cmdk-overlay":"",className:o}),k.createElement(Gh,{"aria-label":e.label,"cmdk-dialog":"",className:i},k.createElement(bD,{ref:t,...u}))))})),e9=k.forwardRef(((e,t)=>Xf((e=>0===e.filtered.count))?k.createElement(ht.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null)),t9=k.forwardRef(((e,t)=>{let{progress:n,children:r,label:o="Loading...",...i}=e;return k.createElement(ht.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Dy(e,(e=>k.createElement("div",{"aria-hidden":!0},e))))})),Ri=Object.assign(bD,{List:JF,Item:KF,Input:XF,Group:QF,Separator:YF,Dialog:ZF,Empty:e9,Loading:t9});function n9(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function r9(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function xD(e){let t=k.useRef(e);return Yf((()=>{t.current=e})),t}var Yf=typeof window>"u"?k.useEffect:k.useLayoutEffect;function Nh(e){let t=k.useRef();return void 0===t.current&&(t.current=e()),t}function _v(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function Xf(e){let t=z$(),n=()=>e(t.snapshot());return k.useSyncExternalStore(t.subscribe,n,n)}function SD(e,t,n,r=[]){let o=k.useRef(),i=Bv();return Yf((()=>{var a;let u=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),s=r.map((e=>e.trim()));i.value(e,u,s),null==(a=t.current)||a.setAttribute(Bf,u),o.current=u})),o}var o9=()=>{let[e,t]=k.useState(),n=Nh((()=>new Map));return Yf((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}};function i9(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}function Dy({asChild:e,children:t},n){return e&&k.isValidElement(t)?k.cloneElement(i9(t),{ref:t.ref},n(t.props.children)):n(t)}var a9={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const s9=wy,$D=k.forwardRef((({className:e,...t},n)=>(k.useEffect((()=>{const e=document.querySelectorAll(".blured-modal-overlay");return e.forEach((e=>e&&(e.style.filter="blur(5px)"))),()=>{0===Array.from(document.querySelectorAll('[role="dialog"]')).length&&e.forEach((e=>e&&(e.style.filter="none")))}}),[]),q.jsx(qh,{ref:n,"data-testid":"dialog_overlay",className:we("fixed inset-0 z-dialog bg-black opacity-[0.8] data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}))));$D.displayName=qh.displayName;const u9=wu("",{variants:{closeVariant:{none:"",insideCard:"absolute right-m top-m rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground text-gray-400",outsideCard:"fixed right-[30px] top-[30px] z-100 text-gray-400",mobileGallery:"fixed right-m top-[62px] text-white z-[110]"}},defaultVariants:{closeVariant:"outsideCard"}}),l9=wu("",{variants:{closeSize:{small:"size-6",big:"size-[42px]","18x18":"size-[18px]"}},defaultVariants:{closeSize:"small"}}),c9=k.forwardRef((({title:e,titleIcon:t,className:n,dialogName:r,showClose:o=!0,closeVariant:i="outsideCard",closeSize:a="big",children:u,titleClassName:s,overlayClassName:l,childrenClassName:c,footerClassName:d,onBack:f,onCloseModal:p,renderFooter:m,onScroll:h,...v},g)=>{const y=q.jsxs(_y,{className:we(u9({closeVariant:i})),children:[q.jsx(py,{onClick:p,fill:"currentColor",className:we(l9({closeSize:a}))}),q.jsx("span",{className:"sr-only",children:"Close"})]});return q.jsxs(s9,{children:[q.jsx($D,{className:l,onClick:p}),o&&"insideCard"!==i&&y,q.jsxs(Gh,{ref:g,className:we("fixed left-[50%] top-[50%] z-[101] grid max-w-[600px] translate-x-[-50%] translate-y-[-50%] !overflow-visible rounded-sm bg-background shadow-lg outline-none duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] max-md:w-[calc(100vw-32px)] md:w-full [&>div]:min-w-0",n),...v,children:[e&&q.jsxs("h3",{className:we("flex items-center justify-center gap-xxs border-b border-gray-200 p-m text-center text-lg font-semibold text-gray-700",s),children:[t,e]}),q.jsx("div",{id:r||"dialog-content",className:we("p-m",c),onScroll:h,children:u}),o&&"insideCard"===i&&y,f&&q.jsx("button",{"data-testid":"dialog-back-button","aria-label":"Back",onClick:f,className:"absolute left-m top-m",children:q.jsx(IA,{color:"var(--gray-400)",size:24})}),q.jsx(CD,{className:we("empty:hidden",d),children:null==m?void 0:m()})]})]})}));c9.displayName=Gh.displayName;const CD=({className:e,...t})=>q.jsx("div",{className:we("flex border-t border-gray-200 p-m",e),...t});CD.displayName="DialogFooter";const d9=k.forwardRef((({className:e,...t},n)=>q.jsx(Dv,{ref:n,className:we("text-lg font-semibold leading-none tracking-tight",e),...t})));d9.displayName=Dv.displayName;const f9=k.forwardRef((({className:e,...t},n)=>q.jsx(Nv,{ref:n,className:we("text-sm text-muted-foreground",e),...t})));f9.displayName=Nv.displayName;const p9=k.forwardRef((({className:e,...t},n)=>q.jsx(Ri,{ref:n,className:we("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t})));p9.displayName=Ri.displayName;const h9=k.forwardRef((({className:e,...t},n)=>q.jsx("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:q.jsx(Ri.Input,{ref:n,className:we("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})})));h9.displayName=Ri.Input.displayName;const m9=k.forwardRef((({className:e,...t},n)=>q.jsx(Ri.List,{ref:n,className:we("mt-2 max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t})));m9.displayName=Ri.List.displayName;const v9=k.forwardRef(((e,t)=>q.jsx(Ri.Empty,{ref:t,className:"py-6 text-center text-sm",...e})));v9.displayName=Ri.Empty.displayName;const g9=k.forwardRef((({className:e,...t},n)=>q.jsx(Ri.Group,{ref:n,className:we("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t})));g9.displayName=Ri.Group.displayName;const y9=k.forwardRef((({className:e,...t},n)=>q.jsx(Ri.Separator,{ref:n,className:we("-mx-1 h-px bg-border",e),...t})));y9.displayName=Ri.Separator.displayName;const w9=k.forwardRef((({className:e,...t},n)=>q.jsx(Ri.Item,{ref:n,className:we("relative flex max-w-[215px] cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...t})));function hd(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function YR(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function ID(...e){return t=>{let n=!1;const r=e.map((e=>{const r=YR(e,t);return!n&&"function"==typeof r&&(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():YR(e[t],null)}}}}function cp(...e){return k.useCallback(ID(...e),e)}function _9(e,t){const n=k.createContext(t),r=e=>{const{children:t,...r}=e,o=k.useMemo((()=>r),Object.values(r));return q.jsx(n.Provider,{value:o,children:t})};return r.displayName=e+"Provider",[r,function(r){const o=k.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}function b9(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>k.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return k.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=k.createContext(r),i=n.length;n=[...n,r];const a=t=>{var n;const{scope:r,children:a,...u}=t,s=(null==(n=null==r?void 0:r[e])?void 0:n[i])||o,l=k.useMemo((()=>u),Object.values(u));return q.jsx(s.Provider,{value:l,children:a})};return a.displayName=t+"Provider",[a,function(n,a){var u;const s=(null==(u=null==a?void 0:a[e])?void 0:u[i])||o,l=k.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},x9(r,...t)]}function x9(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return k.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}w9.displayName=Ri.Item.displayName;var Qg=null!=globalThis&&globalThis.document?k.useLayoutEffect:()=>{},S9=k[" useId ".trim().toString()]||(()=>{}),$9=0;function Zb(e){const[t,n]=k.useState(S9());return Qg((()=>{e||n((e=>e??String($9++)))}),[e]),e||(t?`radix-${t}`:"")}function Jf(e){const t=k.useRef(e);return k.useEffect((()=>{t.current=e})),k.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function C9({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=I9({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,u=Jf(n);return[a,k.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)}),[i,e,o,u])]}function I9({defaultProp:e,onChange:t}){const n=k.useState(e),[r]=n,o=k.useRef(r),i=Jf(t);return k.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}function ED(e){const t=E9(e),n=k.forwardRef(((e,n)=>{const{children:r,...o}=e,i=k.Children.toArray(r),a=i.find(R9);if(a){const e=a.props.children,r=i.map((t=>t===a?k.Children.count(e)>1?k.Children.only(null):k.isValidElement(e)?e.props.children:null:t));return q.jsx(t,{...o,ref:n,children:k.isValidElement(e)?k.cloneElement(e,void 0,r):null})}return q.jsx(t,{...o,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function E9(e){const t=k.forwardRef(((e,t)=>{const{children:n,...r}=e;if(k.isValidElement(n)){const e=O9(n),o=T9(r,n.props);return n.type!==k.Fragment&&(o.ref=t?ID(t,e):e),k.cloneElement(n,o)}return k.Children.count(n)>1?k.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var P9=Symbol("radix.slottable");function R9(e){return k.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===P9}function T9(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function O9(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var A9=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Nl=A9.reduce(((e,t)=>{const n=ED(`Primitive.${t}`),r=k.forwardRef(((e,r)=>{const{asChild:o,...i}=e,a=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),q.jsx(a,{...i,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{});function D9(e,t){e&&_u.flushSync((()=>e.dispatchEvent(t)))}function N9(e,t=(null==globalThis?void 0:globalThis.document)){const n=Jf(e);k.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}var XR,k9="DismissableLayer",wS="dismissableLayer.update",M9="dismissableLayer.pointerDownOutside",L9="dismissableLayer.focusOutside",PD=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),RD=k.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:u,...s}=e,l=k.useContext(PD),[c,d]=k.useState(null),f=(null==c?void 0:c.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,p]=k.useState({}),m=cp(t,(e=>d(e))),h=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),g=h.indexOf(v),y=c?h.indexOf(c):-1,b=l.layersWithOutsidePointerEventsDisabled.size>0,w=y>=g,x=j9((e=>{const t=e.target,n=[...l.branches].some((e=>e.contains(t)));!w||n||(null==o||o(e),null==a||a(e),e.defaultPrevented||null==u||u())}),f),_=V9((e=>{const t=e.target;[...l.branches].some((e=>e.contains(t)))||(null==i||i(e),null==a||a(e),e.defaultPrevented||null==u||u())}),f);return N9((e=>{y===l.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),f),k.useEffect((()=>{if(c)return n&&(0===l.layersWithOutsidePointerEventsDisabled.size&&(XR=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),JR(),()=>{n&&1===l.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=XR)}}),[c,f,n,l]),k.useEffect((()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),JR())}),[c,l]),k.useEffect((()=>{const e=()=>p({});return document.addEventListener(wS,e),()=>document.removeEventListener(wS,e)}),[]),q.jsx(Nl.div,{...s,ref:m,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:hd(e.onFocusCapture,_.onFocusCapture),onBlurCapture:hd(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:hd(e.onPointerDownCapture,x.onPointerDownCapture)})}));RD.displayName=k9;var F9="DismissableLayerBranch",B9=k.forwardRef(((e,t)=>{const n=k.useContext(PD),r=k.useRef(null),o=cp(t,r);return k.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),q.jsx(Nl.div,{...e,ref:o})}));function j9(e,t=(null==globalThis?void 0:globalThis.document)){const n=Jf(e),r=k.useRef(!1),o=k.useRef((()=>{}));return k.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){TD(M9,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function V9(e,t=(null==globalThis?void 0:globalThis.document)){const n=Jf(e),r=k.useRef(!1);return k.useEffect((()=>{const e=e=>{e.target&&!r.current&&TD(L9,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function JR(){const e=new CustomEvent(wS);document.dispatchEvent(e)}function TD(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?D9(o,i):o.dispatchEvent(i)}B9.displayName=F9;var ex="focusScope.autoFocusOnMount",tx="focusScope.autoFocusOnUnmount",ZR={bubbles:!1,cancelable:!0},U9="FocusScope",OD=k.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[u,s]=k.useState(null),l=Jf(o),c=Jf(i),d=k.useRef(null),f=cp(t,(e=>s(e))),p=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect((()=>{if(r){let e=function(e){if(p.paused||!u)return;const t=e.target;u.contains(t)?d.current=t:fd(d.current,{select:!0})},t=function(e){if(p.paused||!u)return;const t=e.relatedTarget;null!==t&&(u.contains(t)||fd(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&fd(u)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return u&&r.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,u,p.paused]),k.useEffect((()=>{if(u){tT.add(p);const e=document.activeElement;if(!u.contains(e)){const t=new CustomEvent(ex,ZR);u.addEventListener(ex,l),u.dispatchEvent(t),t.defaultPrevented||(z9(K9(AD(u)),{select:!0}),document.activeElement===e&&fd(u))}return()=>{u.removeEventListener(ex,l),setTimeout((()=>{const t=new CustomEvent(tx,ZR);u.addEventListener(tx,c),u.dispatchEvent(t),t.defaultPrevented||fd(e??document.body,{select:!0}),u.removeEventListener(tx,c),tT.remove(p)}),0)}}}),[u,l,c,p]);const m=k.useCallback((e=>{if(!n&&!r||p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=W9(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&fd(i,{select:!0})):(e.preventDefault(),n&&fd(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return q.jsx(Nl.div,{tabIndex:-1,...a,ref:f,onKeyDown:m})}));function z9(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(fd(r,{select:t}),document.activeElement!==n)return}function W9(e){const t=AD(e);return[eT(t,e),eT(t.reverse(),e)]}function AD(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function eT(e,t){for(const n of e)if(!q9(n,{upTo:t}))return n}function q9(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function G9(e){return e instanceof HTMLInputElement&&"select"in e}function fd(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&G9(e)&&t&&e.select()}}OD.displayName=U9;var tT=H9();function H9(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=nT(e,t),e.unshift(t)},remove(t){var n;e=nT(e,t),null==(n=e[0])||n.resume()}}}function nT(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function K9(e){return e.filter((e=>"A"!==e.tagName))}var Q9="Portal",DD=k.forwardRef(((e,t)=>{var n;const{container:r,...o}=e,[i,a]=k.useState(!1);Qg((()=>a(!0)),[]);const u=r||i&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return u?BA.createPortal(q.jsx(Nl.div,{...o,ref:t}),u):null}));function Y9(e,t){return k.useReducer(((e,n)=>t[e][n]??e),e)}DD.displayName=Q9;var Ny=e=>{const{present:t,children:n}=e,r=X9(t),o="function"==typeof n?n({present:r.isPresent}):k.Children.only(n),i=cp(r.ref,J9(o));return"function"==typeof n||r.isPresent?k.cloneElement(o,{ref:i}):null};function X9(e){const[t,n]=k.useState(),r=k.useRef({}),o=k.useRef(e),i=k.useRef("none"),a=e?"mounted":"unmounted",[u,s]=Y9(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect((()=>{const e=Tg(r.current);i.current="mounted"===u?e:"none"}),[u]),Qg((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Tg(t);e?s("MOUNT"):"none"===a||"none"===(null==t?void 0:t.display)?s("UNMOUNT"):s(n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,s]),Qg((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,a=i=>{const a=Tg(r.current).includes(i.animationName);if(i.target===t&&a&&(s("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},u=e=>{e.target===t&&(i.current=Tg(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}s("ANIMATION_END")}),[t,s]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:k.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Tg(e){return(null==e?void 0:e.animationName)||"none"}function J9(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}Ny.displayName="Presence";var nx=0;function Z9(){k.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??rT()),document.body.insertAdjacentElement("beforeend",e[1]??rT()),nx++,()=>{1===nx&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),nx--}}),[])}function rT(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ND=qA(),rx=function(){},ky=k.forwardRef((function(e,t){var n=k.useRef(null),r=k.useState({onScrollCapture:rx,onWheelCapture:rx,onTouchMoveCapture:rx}),o=r[0],i=r[1],a=e.forwardProps,u=e.children,s=e.className,l=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,h=e.allowPinchZoom,v=e.as,g=void 0===v?"div":v,y=e.gapMode,b=p$(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,x=WA([n,t]),_=qo(qo({},b),o);return k.createElement(k.Fragment,null,c&&k.createElement(w,{sideCar:ND,removeScrollBar:l,shards:d,noIsolation:p,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:n,gapMode:y}),a?k.cloneElement(k.Children.only(u),qo(qo({},_),{ref:x})):k.createElement(g,qo({},_,{className:s,ref:x}),u))}));ky.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ky.classNames={fullWidth:dv,zeroRight:cv};var _S=!1;if(typeof window<"u")try{var Og=Object.defineProperty({},"passive",{get:function(){return _S=!0,!0}});window.addEventListener("test",Og,Og),window.removeEventListener("test",Og,Og)}catch{_S=!1}var Th=!!_S&&{passive:!1},eB=function(e){return"TEXTAREA"===e.tagName},kD=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!eB(e)&&"visible"===n[t])},tB=function(e){return kD(e,"overflowY")},nB=function(e){return kD(e,"overflowX")},oT=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host),MD(e,r)){var o=LD(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},rB=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},oB=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},MD=function(e,t){return"v"===e?tB(t):nB(t)},LD=function(e,t){return"v"===e?rB(t):oB(t)},iB=function(e,t){return"h"===e&&"rtl"===t?-1:1},aB=function(e,t,n,r,o){var i=iB(e,window.getComputedStyle(t).direction),a=i*r,u=n.target,s=t.contains(u),l=!1,c=a>0,d=0,f=0;do{var p=LD(e,u),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&MD(e,u)&&(d+=h,f+=m),u=u instanceof ShadowRoot?u.host:u.parentNode}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return(c&&(Math.abs(d)<1||!o)||!c&&(Math.abs(f)<1||!o))&&(l=!0),l},Ag=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},iT=function(e){return[e.deltaX,e.deltaY]},aT=function(e){return e&&"current"in e?e.current:e},sB=function(e,t){return e[0]===t[0]&&e[1]===t[1]},uB=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},lB=0,Oh=[];function cB(e){var t=k.useRef([]),n=k.useRef([0,0]),r=k.useRef(),o=k.useState(lB++)[0],i=k.useState(h$)[0],a=k.useRef(e);k.useEffect((function(){a.current=e}),[e]),k.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=zA([e.lockRef.current],(e.shards||[]).map(aT),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var u=k.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=Ag(e),u=n.current,s="deltaX"in e?e.deltaX:u[0]-i[0],l="deltaY"in e?e.deltaY:u[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=oT(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=oT(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||l)&&(r.current=o),!o)return!0;var p=r.current||o;return aB(p,t,e,"h"===p?s:l,!0)}),[]),s=k.useCallback((function(e){var n=e;if(Oh.length&&Oh[Oh.length-1]===i){var r="deltaY"in n?iT(n):Ag(n),o=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&sB(e.delta,r)}))[0];if(o&&o.should)return void(n.cancelable&&n.preventDefault());if(!o){var s=(a.current.shards||[]).map(aT).filter(Boolean).filter((function(e){return e.contains(n.target)}));(s.length>0?u(n,s[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),l=k.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:dB(r)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),c=k.useCallback((function(e){n.current=Ag(e),r.current=void 0}),[]),d=k.useCallback((function(t){l(t.type,iT(t),t.target,u(t,e.lockRef.current))}),[]),f=k.useCallback((function(t){l(t.type,Ag(t),t.target,u(t,e.lockRef.current))}),[]);k.useEffect((function(){return Oh.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",s,Th),document.addEventListener("touchmove",s,Th),document.addEventListener("touchstart",c,Th),function(){Oh=Oh.filter((function(e){return e!==i})),document.removeEventListener("wheel",s,Th),document.removeEventListener("touchmove",s,Th),document.removeEventListener("touchstart",c,Th)}}),[]);var p=e.removeScrollBar,m=e.inert;return k.createElement(k.Fragment,null,m?k.createElement(i,{styles:uB(o)}):null,p?k.createElement(QA,{gapMode:e.gapMode}):null)}function dB(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const fB=HA(ND,cB);var FD=k.forwardRef((function(e,t){return k.createElement(ky,qo({},e,{ref:t,sideCar:fB}))}));FD.classNames=ky.classNames;var W$="Dialog",[BD,zX]=b9(W$),[pB,Ss]=BD(W$),jD=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,u=k.useRef(null),s=k.useRef(null),[l=!1,c]=C9({prop:r,defaultProp:o,onChange:i});return q.jsx(pB,{scope:t,triggerRef:u,contentRef:s,contentId:Zb(),titleId:Zb(),descriptionId:Zb(),open:l,onOpenChange:c,onOpenToggle:k.useCallback((()=>c((e=>!e))),[c]),modal:a,children:n})};jD.displayName=W$;var VD="DialogTrigger",UD=k.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ss(VD,n),i=cp(t,o.triggerRef);return q.jsx(Nl.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":H$(o.open),...r,ref:i,onClick:hd(e.onClick,o.onOpenToggle)})}));UD.displayName=VD;var q$="DialogPortal",[hB,zD]=BD(q$,{forceMount:void 0}),WD=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Ss(q$,t);return q.jsx(hB,{scope:t,forceMount:n,children:k.Children.map(r,(e=>q.jsx(Ny,{present:n||i.open,children:q.jsx(DD,{asChild:!0,container:o,children:e})})))})};WD.displayName=q$;var Yg="DialogOverlay",qD=k.forwardRef(((e,t)=>{const n=zD(Yg,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Ss(Yg,e.__scopeDialog);return i.modal?q.jsx(Ny,{present:r||i.open,children:q.jsx(vB,{...o,ref:t})}):null}));qD.displayName=Yg;var mB=ED("DialogOverlay.RemoveScroll"),vB=k.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ss(Yg,n);return q.jsx(FD,{as:mB,allowPinchZoom:!0,shards:[o.contentRef],children:q.jsx(Nl.div,{"data-state":H$(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),Zf="DialogContent",GD=k.forwardRef(((e,t)=>{const n=zD(Zf,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Ss(Zf,e.__scopeDialog);return q.jsx(Ny,{present:r||i.open,children:i.modal?q.jsx(gB,{...o,ref:t}):q.jsx(yB,{...o,ref:t})})}));GD.displayName=Zf;var gB=k.forwardRef(((e,t)=>{const n=Ss(Zf,e.__scopeDialog),r=k.useRef(null),o=cp(t,n.contentRef,r);return k.useEffect((()=>{const e=r.current;if(e)return yy(e)}),[]),q.jsx(HD,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:hd(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()})),onPointerDownOutside:hd(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:hd(e.onFocusOutside,(e=>e.preventDefault()))})})),yB=k.forwardRef(((e,t)=>{const n=Ss(Zf,e.__scopeDialog),r=k.useRef(!1),o=k.useRef(!1);return q.jsx(HD,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;null==(i=e.onCloseAutoFocus)||i.call(e,t),t.defaultPrevented||(r.current||null==(a=n.triggerRef.current)||a.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var i,a;null==(i=e.onInteractOutside)||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const u=t.target;(null==(a=n.triggerRef.current)?void 0:a.contains(u))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})})),HD=k.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,u=Ss(Zf,n),s=k.useRef(null),l=cp(t,s);return Z9(),q.jsxs(q.Fragment,{children:[q.jsx(OD,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:q.jsx(RD,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":H$(u.open),...a,ref:l,onDismiss:()=>u.onOpenChange(!1)})}),q.jsxs(q.Fragment,{children:[q.jsx(wB,{titleId:u.titleId}),q.jsx(bB,{contentRef:s,descriptionId:u.descriptionId})]})]})})),G$="DialogTitle",KD=k.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ss(G$,n);return q.jsx(Nl.h2,{id:o.titleId,...r,ref:t})}));KD.displayName=G$;var QD="DialogDescription",YD=k.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ss(QD,n);return q.jsx(Nl.p,{id:o.descriptionId,...r,ref:t})}));YD.displayName=QD;var XD="DialogClose",JD=k.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ss(XD,n);return q.jsx(Nl.button,{type:"button",...r,ref:t,onClick:hd(e.onClick,(()=>o.onOpenChange(!1)))})}));function H$(e){return e?"open":"closed"}JD.displayName=XD;var ZD="DialogTitleWarning",[WX,eN]=_9(ZD,{contentName:Zf,titleName:G$,docsSlug:"dialog"}),wB=({titleId:e})=>{const t=eN(ZD),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return k.useEffect((()=>{e&&(document.getElementById(e)||console.error(n))}),[n,e]),null},_B="DialogDescriptionWarning",bB=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${eN(_B).contentName}}.`;return k.useEffect((()=>{var r;const o=null==(r=e.current)?void 0:r.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))}),[n,e,t]),null},xB=jD,SB=UD,$B=WD,CB=qD,IB=GD,EB=KD,PB=YD,RB=JD;function TB(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const tN=He.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),Kh=()=>{const e=He.useContext(tN);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};TB("[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(\n[data-state=closed]\n){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,100%,0)}}@keyframes slideFromTop{from{transform:translate3d(0,-100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,-100%,0)}}@keyframes slideFromLeft{from{transform:translate3d(-100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(-100%,0,0)}}@keyframes slideFromRight{from{transform:translate3d(100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(100%,0,0)}}");const OB=24,AB=typeof window<"u"?ip:Ze;function sT(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function DB(){return K$(/^Mac/)}function NB(){return K$(/^iPhone/)}function uT(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function kB(){return K$(/^iPad/)||DB()&&navigator.maxTouchPoints>1}function nN(){return NB()||kB()}function K$(e){return typeof window<"u"&&null!=window.navigator?e.test(window.navigator.platform):void 0}const ox=typeof document<"u"&&window.visualViewport;function lT(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function rN(e){for(lT(e)&&(e=e.parentElement);e&&!lT(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const MB=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ix,Dg=0;function LB(e={}){let{isDisabled:t}=e;AB((()=>{if(!t)return Dg++,1===Dg&&nN()&&(ix=FB()),()=>{Dg--,0===Dg&&(null==ix||ix())}}),[t])}function FB(){let e,t=0,n=window.pageXOffset,r=window.pageYOffset,o=sT(BB(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"));window.scrollTo(0,0);let i=sT(Xm(document,"touchstart",(n=>{e=rN(n.target),(e!==document.documentElement||e!==document.body)&&(t=n.changedTouches[0].pageY)}),{passive:!1,capture:!0}),Xm(document,"touchmove",(n=>{if(!e||e===document.documentElement||e===document.body)return void n.preventDefault();let r=n.changedTouches[0].pageY,o=e.scrollTop,i=e.scrollHeight-e.clientHeight;0!==i&&((o<=0&&r>t||o>=i&&r<t)&&n.preventDefault(),t=r)}),{passive:!1,capture:!0}),Xm(document,"touchend",(e=>{let t=e.target;bS(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame((()=>{t.style.transform=""})))}),{passive:!1,capture:!0}),Xm(document,"focus",(e=>{let t=e.target;bS(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",ox&&(ox.height<window.innerHeight?requestAnimationFrame((()=>{cT(t)})):ox.addEventListener("resize",(()=>cT(t)),{once:!0}))})))}),!0),Xm(window,"scroll",(()=>{window.scrollTo(0,0)})));return()=>{o(),i(),window.scrollTo(n,r)}}function BB(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Xm(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function cT(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=rN(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+24&&(t.scrollTop+=r-n)}e=t.parentElement}}function bS(e){return e instanceof HTMLInputElement&&!MB.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function jB(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function VB(...e){return t=>e.forEach((e=>jB(e,t)))}function oN(...e){return k.useCallback(VB(...e),e)}const iN=new WeakMap;function Hr(e,t,n=!1){if(!(e&&e instanceof HTMLElement))return;let r={};Object.entries(t).forEach((([t,n])=>{t.startsWith("--")?e.style.setProperty(t,n):(r[t]=e.style[t],e.style[t]=n)})),!n&&iN.set(e,r)}function UB(e,t){if(!(e&&e instanceof HTMLElement))return;let n=iN.get(e);n&&(e.style[t]=n[t])}const Kr=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Ng(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[Kr(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[Kr(t)?5:4]):null)}function zB(e){return 8*(Math.log(e+1)-2)}function ax(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function WB(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}const Hn={DURATION:.5,EASE:[.32,.72,0,1]},aN=.4,qB=.25,GB=100,sN=8,Mf=16,xS=26,sx="vaul-dragging";function uN(e){const t=He.useRef(e);return He.useEffect((()=>{t.current=e})),He.useMemo((()=>(...e)=>null==t.current?void 0:t.current.call(t,...e)),[])}function HB({defaultProp:e,onChange:t}){const n=He.useState(e),[r]=n,o=He.useRef(r),i=uN(t);return He.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}function lN({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=HB({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,u=uN(n);return[a,He.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)}),[i,e,o,u])]}function KB({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:i,onSnapPointChange:a,direction:u="bottom",container:s,snapToSequentialPoint:l}){const[c,d]=lN({prop:e,defaultProp:null==n?void 0:n[0],onChange:t}),[f,p]=He.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);He.useEffect((()=>{function e(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]);const m=He.useMemo((()=>c===(null==n?void 0:n[n.length-1])||null),[n,c]),h=He.useMemo((()=>null==n?void 0:n.findIndex((e=>e===c))),[n,c]),v=n&&n.length>0&&(i||0===i)&&!Number.isNaN(i)&&n[i]===c||!n,g=He.useMemo((()=>{const e=s?{width:s.getBoundingClientRect().width,height:s.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var t;return null!=(t=null==n?void 0:n.map((t=>{const n="string"==typeof t;let r=0;if(n&&(r=parseInt(t,10)),Kr(u)){const o=n?r:f?t*e.height:0;return f?"bottom"===u?e.height-o:-e.height+o:o}const o=n?r:f?t*e.width:0;return f?"right"===u?e.width-o:-e.width+o:o})))?t:[]}),[n,f,s]),y=He.useMemo((()=>null!==h?null==g?void 0:g[h]:null),[g,h]),b=He.useCallback((e=>{var t;const s=null!=(t=null==g?void 0:g.findIndex((t=>t===e)))?t:null;a(s),Hr(r.current,{transition:`transform ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`,transform:Kr(u)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),g&&s!==g.length-1&&s!==i&&s<i?Hr(o.current,{transition:`opacity ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`,opacity:"0"}):Hr(o.current,{transition:`opacity ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`,opacity:"1"}),d(null==n?void 0:n[Math.max(s,0)])}),[r.current,n,g,i,o,d]);return He.useEffect((()=>{if(c||e){var t;const r=null!=(t=null==n?void 0:n.findIndex((t=>t===e||t===c)))?t:-1;g&&-1!==r&&"number"==typeof g[r]&&b(g[r])}}),[c,e,n,g,b]),{isLastSnapPoint:m,activeSnapPoint:c,shouldFade:v,getPercentageDragged:function(e,t){if(!n||"number"!=typeof h||!g||void 0===i)return null;const r=h===i-1;if(h>=i&&t)return 0;if(r&&!t)return 1;if(!v&&!r)return null;const o=r?h+1:h-1,a=r?g[o]-g[o-1]:g[o+1]-g[o],u=e/Math.abs(a);return r?1-u:u},setActiveSnapPoint:d,activeSnapPointIndex:h,onRelease:function({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:a}){if(void 0===i)return;const s="bottom"===u||"right"===u?(y??0)-e:(y??0)+e,c=0===h,d=e>0;if(h===i-1&&Hr(o.current,{transition:`opacity ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`}),!l&&r>2&&!d)return void(a?t():b(g[0]));if(!l&&r>2&&d&&g&&n)return void b(g[n.length-1]);const f=null==g?void 0:g.reduce(((e,t)=>"number"!=typeof e||"number"!=typeof t?e:Math.abs(t-s)<Math.abs(e-s)?t:e)),p=Kr(u)?window.innerHeight:window.innerWidth;if(r>aN&&Math.abs(e)<.4*p){const e=d?1:-1;if(e>0&&m)return void b(g[n.length-1]);if(c&&e<0&&a&&t(),null===h)return;b(g[h+e])}else b(f)},onDrag:function({draggedDistance:e}){if(null===y)return;const t="bottom"===u||"right"===u?y-e:y+e;("bottom"===u||"right"===u)&&t<g[g.length-1]||("top"===u||"left"===u)&&t>g[g.length-1]||Hr(r.current,{transform:Kr(u)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})},snapPointsOffset:g}}const QB=()=>()=>{};function YB(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=Kh(),i=He.useRef(null),a=xn((()=>document.body.style.backgroundColor),[]);function u(){return(window.innerWidth-26)/window.innerWidth}He.useEffect((()=>{if(t&&n){i.current&&clearTimeout(i.current);const t=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!t)return;WB(r&&!o?ax(document.body,{background:"black"}):QB,ax(t,{transformOrigin:Kr(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${Hn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Hn.EASE.join(",")})`}));const n=ax(t,{borderRadius:"8px",overflow:"hidden",...Kr(e)?{transform:`scale(${u()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${u()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{n(),i.current=window.setTimeout((()=>{a?document.body.style.background=a:document.body.style.removeProperty("background")}),1e3*Hn.DURATION)}}}),[t,n,a])}let Jm=null;function XB({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:i}){const[a,u]=He.useState((()=>typeof window<"u"?window.location.href:"")),s=He.useRef(0),l=He.useCallback((()=>{if(uT()&&null===Jm&&e&&!i){Jm={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:e,innerHeight:t}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:-s.current+"px",left:-e+"px",right:"0px",height:"auto"}),window.setTimeout((()=>window.requestAnimationFrame((()=>{const e=t-window.innerHeight;e&&s.current>=t&&(document.body.style.top=-(s.current+e)+"px")}))),300)}}),[e]),c=He.useCallback((()=>{if(uT()&&null!==Jm&&!i){const e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Jm),window.requestAnimationFrame((()=>{o&&a!==window.location.href?u(window.location.href):window.scrollTo(t,e)})),Jm=null}}),[a]);return He.useEffect((()=>{function e(){s.current=window.scrollY}return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[]),He.useEffect((()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&l(),t||window.setTimeout((()=>{c()}),500)):c())}),[e,r,a,t,n,l,c]),{restorePositionSetting:c}}function cN({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:o,snapPoints:i,shouldScaleBackground:a=!1,setBackgroundColorOnScale:u=!0,closeThreshold:s=qB,scrollLockTimeout:l=GB,dismissible:c=!0,handleOnly:d=!1,fadeFromIndex:f=i&&i.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:h,modal:v=!0,onClose:g,nested:y,noBodyStyles:b,direction:w="bottom",defaultOpen:x=!1,disablePreventScroll:_=!0,snapToSequentialPoint:k=!1,preventScrollRestoration:S=!1,repositionInputs:A=!0,onAnimationEnd:E,container:I,autoFocus:C=!1}){var P,q;const[O=!1,T]=lN({defaultProp:x,prop:e,onChange:e=>{null==t||t(e),!e&&!y&&se(),setTimeout((()=>{null==E||E(e)}),1e3*Hn.DURATION),e&&!v&&typeof window<"u"&&window.requestAnimationFrame((()=>{document.body.style.pointerEvents="auto"})),e||(document.body.style.pointerEvents="auto")}}),[N,R]=He.useState(!1),[D,j]=He.useState(!1),[L,M]=He.useState(!1),$=He.useRef(null),B=He.useRef(null),F=He.useRef(null),z=He.useRef(null),V=He.useRef(null),U=He.useRef(!1),W=He.useRef(null),H=He.useRef(0),G=He.useRef(!1),K=He.useRef(0),Q=He.useRef(null),Y=He.useRef((null==(P=Q.current)?void 0:P.getBoundingClientRect().height)||0),X=He.useRef((null==(q=Q.current)?void 0:q.getBoundingClientRect().width)||0),Z=He.useRef(0),J=He.useCallback((e=>{i&&e===oe.length-1&&(B.current=new Date)}),[]),{activeSnapPoint:ee,activeSnapPointIndex:te,setActiveSnapPoint:ne,onRelease:re,snapPointsOffset:oe,onDrag:ie,shouldFade:ae,getPercentageDragged:ue}=KB({snapPoints:i,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:Q,fadeFromIndex:f,overlayRef:$,onSnapPointChange:J,direction:w,container:I,snapToSequentialPoint:k});LB({isDisabled:!O||D||!v||L||!N||!A||!_});const{restorePositionSetting:se}=XB({isOpen:O,modal:v,nested:y,hasBeenOpened:N,preventScrollRestoration:S,noBodyStyles:b});function le(){return(window.innerWidth-26)/window.innerWidth}function ce(e,t){var n,r;let o=e;const i=null==(n=window.getSelection())?void 0:n.toString(),a=Q.current?Ng(Q.current,w):null,u=new Date;if(o.hasAttribute("data-vaul-no-drag")||o.closest("[data-vaul-no-drag]"))return!1;if("right"===w||"left"===w)return!0;if(B.current&&u.getTime()-B.current.getTime()<500)return!1;if(null!==a&&("bottom"===w?a>0:a<0))return!0;if(i&&i.length>0)return!1;if(u.getTime()-(null==(r=V.current)?void 0:r.getTime())<l&&0===a||t)return V.current=u,!1;for(;o;){if(o.scrollHeight>o.clientHeight){if(0!==o.scrollTop)return V.current=new Date,!1;if("dialog"===o.getAttribute("role"))return!0}o=o.parentNode}return!0}function de(e){!D||!Q.current||(Q.current.classList.remove(sx),U.current=!1,j(!1),z.current=new Date),null==g||g(),e||T(!1),setTimeout((()=>{i&&ne(i[0])}),1e3*Hn.DURATION)}function fe(){if(!Q.current)return;const e=document.querySelector("[data-vaul-drawer-wrapper]"),t=Ng(Q.current,w);Hr(Q.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`}),Hr($.current,{transition:`opacity ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`,opacity:"1"}),a&&t&&t>0&&O&&Hr(e,{borderRadius:"8px",overflow:"hidden",...Kr(w)?{transform:`scale(${le()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${le()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Hn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Hn.EASE.join(",")})`},!0)}return He.useEffect((()=>{var e;function t(){if(!Q.current||!A)return;if(bS(document.activeElement)||G.current){var e;const t=(null==(e=window.visualViewport)?void 0:e.height)||0,n=window.innerHeight;let r=n-t;const o=Q.current.getBoundingClientRect().height||0,a=o>.8*n;Z.current||(Z.current=o);const u=Q.current.getBoundingClientRect().top;if(Math.abs(K.current-r)>60&&(G.current=!G.current),i&&i.length>0&&oe&&te){r+=oe[te]||0}if(K.current=r,o>t||G.current){const e=Q.current.getBoundingClientRect().height;let n=e;e>t&&(n=t-(a?u:26)),Q.current.style.height=h?e-Math.max(r,0)+"px":`${Math.max(n,t-u)}px`}else Q.current.style.height=`${Z.current}px`;i&&i.length>0&&!G.current?Q.current.style.bottom="0px":Q.current.style.bottom=`${Math.max(r,0)}px`}}return null==(e=window.visualViewport)||e.addEventListener("resize",t),()=>{var e;return null==(e=window.visualViewport)?void 0:e.removeEventListener("resize",t)}}),[te,i,oe]),He.useEffect((()=>(O&&(Hr(document.documentElement,{scrollBehavior:"auto"}),B.current=new Date),()=>{UB(document.documentElement,"scrollBehavior")})),[O]),He.createElement(xB,{defaultOpen:x,onOpenChange:e=>{!c&&!e||(e?R(!0):de(!0),T(e))},open:O},He.createElement(tN.Provider,{value:{activeSnapPoint:ee,snapPoints:i,setActiveSnapPoint:ne,drawerRef:Q,overlayRef:$,onOpenChange:t,onPress:function(e){var t,n;!c&&!i||Q.current&&!Q.current.contains(e.target)||(Y.current=(null==(t=Q.current)?void 0:t.getBoundingClientRect().height)||0,X.current=(null==(n=Q.current)?void 0:n.getBoundingClientRect().width)||0,j(!0),F.current=new Date,nN()&&window.addEventListener("touchend",(()=>U.current=!1),{once:!0}),e.target.setPointerCapture(e.pointerId),H.current=Kr(w)?e.pageY:e.pageX)},onRelease:function(e){if(!D||!Q.current)return;Q.current.classList.remove(sx),U.current=!1,j(!1),z.current=new Date;const t=Ng(Q.current,w);if(!ce(e.target,!1)||!t||Number.isNaN(t)||null===F.current)return;const n=z.current.getTime()-F.current.getTime(),r=H.current-(Kr(w)?e.pageY:e.pageX),a=Math.abs(r)/n;if(a>.05&&(M(!0),setTimeout((()=>{M(!1)}),200)),i)return re({draggedDistance:r*("bottom"===w||"right"===w?1:-1),closeDrawer:de,velocity:a,dismissible:c}),void(null==o||o(e,!0));if("bottom"===w||"right"===w?r>0:r<0)return fe(),void(null==o||o(e,!0));if(a>aN)return de(),void(null==o||o(e,!1));var u;const l=Math.min(null!=(u=Q.current.getBoundingClientRect().height)?u:0,window.innerHeight);var d;const f=Math.min(null!=(d=Q.current.getBoundingClientRect().width)?d:0,window.innerWidth),p="left"===w||"right"===w;if(Math.abs(t)>=(p?f:l)*s)return de(),void(null==o||o(e,!1));null==o||o(e,!0),fe()},onDrag:function(e){if(Q.current&&D){const t="bottom"===w||"right"===w?1:-1,n=(H.current-(Kr(w)?e.pageY:e.pageX))*t,o=n>0,u=i&&!c&&!o;if(u&&0===te)return;const s=Math.abs(n),l=document.querySelector("[data-vaul-drawer-wrapper]");let d=s/("bottom"===w||"top"===w?Y.current:X.current);const p=ue(s,o);if(null!==p&&(d=p),u&&d>=1||!U.current&&!ce(e.target,o))return;if(Q.current.classList.add(sx),U.current=!0,Hr(Q.current,{transition:"none"}),Hr($.current,{transition:"none"}),i&&ie({draggedDistance:n}),o&&!i){const e=zB(n),r=Math.min(-1*e,0)*t;return void Hr(Q.current,{transform:Kr(w)?`translate3d(0, ${r}px, 0)`:`translate3d(${r}px, 0, 0)`})}const m=1-d;if((ae||f&&te===f-1)&&(null==r||r(e,d),Hr($.current,{opacity:`${m}`,transition:"none"},!0)),l&&$.current&&a){const e=Math.min(le()+d*(1-le()),1),t=8-8*d,n=Math.max(0,14-14*d);Hr(l,{borderRadius:`${t}px`,transform:Kr(w)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:"none"},!0)}if(!i){const e=s*t;Hr(Q.current,{transform:Kr(w)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}},dismissible:c,handleOnly:d,isOpen:O,isDragging:D,shouldFade:ae,closeDrawer:de,onNestedDrag:function(e,t){if(t<0)return;const n=(window.innerWidth-16)/window.innerWidth,r=n+t*(1-n),o=16*t-16;Hr(Q.current,{transform:Kr(w)?`scale(${r}) translate3d(0, ${o}px, 0)`:`scale(${r}) translate3d(${o}px, 0, 0)`,transition:"none"})},onNestedOpenChange:function(e){const t=e?(window.innerWidth-16)/window.innerWidth:1,n=e?-16:0;W.current&&window.clearTimeout(W.current),Hr(Q.current,{transition:`transform ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`,transform:`scale(${t}) translate3d(0, ${n}px, 0)`}),!e&&Q.current&&(W.current=setTimeout((()=>{const e=Ng(Q.current,w);Hr(Q.current,{transition:"none",transform:Kr(w)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}),500))},onNestedRelease:function(e,t){const n=Kr(w)?window.innerHeight:window.innerWidth,r=t?(n-16)/n:1,o=t?-16:0;t&&Hr(Q.current,{transition:`transform ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`,transform:Kr(w)?`scale(${r}) translate3d(0, ${o}px, 0)`:`scale(${r}) translate3d(${o}px, 0, 0)`})},keyboardIsOpen:G,modal:v,snapPointsOffset:oe,direction:w,shouldScaleBackground:a,setBackgroundColorOnScale:u,noBodyStyles:b,container:I,autoFocus:C}},n))}const dN=He.forwardRef((function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:i,isOpen:a,modal:u}=Kh(),s=oN(t,n),l=r&&r.length>0;return u?He.createElement(CB,{onMouseUp:o,ref:s,"data-vaul-overlay":"","data-vaul-snap-points":a&&l?"true":"false","data-vaul-snap-points-overlay":a&&i?"true":"false",...e}):(typeof window<"u"&&window.requestAnimationFrame((()=>{document.body.style.pointerEvents="auto"})),null)}));dN.displayName="Drawer.Overlay";const fN=He.forwardRef((function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},o){const{drawerRef:i,onPress:a,onRelease:u,onDrag:s,keyboardIsOpen:l,snapPointsOffset:c,modal:d,isOpen:f,direction:p,snapPoints:m,container:h,handleOnly:v,autoFocus:g}=Kh(),[y,b]=He.useState(!1),w=oN(o,i),x=He.useRef(null),_=He.useRef(null),k=He.useRef(!1),S=m&&m.length>0;YB();function A(e){x.current=null,k.current=!1,u(e)}return He.useEffect((()=>{S&&window.requestAnimationFrame((()=>{b(!0)}))}),[]),He.createElement(IB,{"data-vaul-drawer-direction":p,"data-vaul-drawer":"","data-vaul-delayed-snap-points":y?"true":"false","data-vaul-snap-points":f&&S?"true":"false","data-vaul-custom-container":h?"true":"false",...r,ref:w,style:c&&c.length>0?{"--snap-point-height":`${c[0]}px`,...t}:t,onPointerDown:e=>{v||(null==r.onPointerDown||r.onPointerDown.call(r,e),x.current={x:e.pageX,y:e.pageY},a(e))},onOpenAutoFocus:e=>{null==n||n(e),g||e.preventDefault()},onPointerDownOutside:t=>{null==e||e(t),d&&!t.defaultPrevented?l.current&&(l.current=!1):t.preventDefault()},onFocusOutside:e=>{d||e.preventDefault()},onPointerMove:e=>{if(_.current=e,v||(null==r.onPointerMove||r.onPointerMove.call(r,e),!x.current))return;const t=e.pageY-x.current.y,n=e.pageX-x.current.x,o="touch"===e.pointerType?10:2;((e,t,n=0)=>{if(k.current)return!0;const r=Math.abs(e.y),o=Math.abs(e.x),i=o>r,a=["bottom","right"].includes(t)?1:-1;if("left"===t||"right"===t){if(!(e.x*a<0)&&o>=0&&o<=n)return i}else if(!(e.y*a<0)&&r>=0&&r<=n)return!i;return k.current=!0,!0})({x:n,y:t},p,o)?s(e):(Math.abs(n)>o||Math.abs(t)>o)&&(x.current=null)},onPointerUp:e=>{null==r.onPointerUp||r.onPointerUp.call(r,e),x.current=null,k.current=!1,u(e)},onPointerOut:e=>{null==r.onPointerOut||r.onPointerOut.call(r,e),A(_.current)},onContextMenu:e=>{null==r.onContextMenu||r.onContextMenu.call(r,e),A(_.current)}})}));fN.displayName="Drawer.Content";const JB=250,ZB=120,pN=He.forwardRef((function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:o,isDragging:i,snapPoints:a,activeSnapPoint:u,setActiveSnapPoint:s,dismissible:l,handleOnly:c,isOpen:d,onPress:f,onDrag:p}=Kh(),m=He.useRef(null),h=He.useRef(!1);function v(){window.clearTimeout(m.current),h.current=!1}return He.createElement("div",{onClick:function(){h.current?v():window.setTimeout((()=>{!function(){if(i||e||h.current)return void v();if(v(),(!a||0===a.length)&&l)return void o();if(u===a[a.length-1]&&l)return void o();const t=a.findIndex((e=>e===u));if(-1===t)return;const n=a[t+1];s(n)}()}),ZB)},onPointerCancel:v,onPointerDown:e=>{c&&f(e),m.current=window.setTimeout((()=>{h.current=!0}),JB)},onPointerMove:e=>{c&&p(e)},ref:r,"data-vaul-drawer-visible":d?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},He.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))}));function ej({onDrag:e,onOpenChange:t,...n}){const{onNestedDrag:r,onNestedOpenChange:o,onNestedRelease:i}=Kh();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return He.createElement(cN,{nested:!0,onClose:()=>{o(!1)},onDrag:(t,n)=>{r(t,n),null==e||e(t,n)},onOpenChange:e=>{e&&o(e)},onRelease:i,...n})}function tj(e){const t=Kh(),{container:n=t.container,...r}=e;return He.createElement($B,{container:n,...r})}pN.displayName="Drawer.Handle";const Sd={Root:cN,NestedRoot:ej,Content:fN,Overlay:dN,Trigger:SB,Portal:tj,Handle:pN,Close:RB,Title:EB,Description:PB},nj=Sd.Portal,hN=k.forwardRef((({className:e,...t},n)=>q.jsx(Sd.Overlay,{ref:n,className:we("fixed inset-0 z-50 bg-black/5",e),...t})));hN.displayName=Sd.Overlay.displayName;const rj=k.forwardRef((({className:e,children:t,direction:n="bottom",...r},o)=>q.jsxs(nj,{children:[q.jsx(hN,{}),q.jsxs(Sd.Content,{ref:o,className:we("fixed z-50 border bg-background shadow-lg","bottom"===n&&"inset-x-0 bottom-0 mt-24 flex h-auto flex-col rounded-t-sm","top"===n&&"inset-x-0 top-0 mb-24 flex h-auto flex-col rounded-b-sm","left"===n&&"inset-y-0 left-0 flex h-full flex-col","right"===n&&"inset-y-0 right-0 flex h-full w-[346px] flex-col sm:w-[435px]",e),...r,children:["bottom"===n&&q.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]})));rj.displayName="DrawerContent";const oj=k.forwardRef((({className:e,...t},n)=>q.jsx(Sd.Title,{ref:n,className:we("text-lg font-semibold leading-none tracking-tight",e),...t})));oj.displayName=Sd.Title.displayName;const ij=k.forwardRef((({className:e,...t},n)=>q.jsx(Sd.Description,{ref:n,className:we("text-sm text-muted-foreground",e),...t})));function Q$(e){const t=e+"CollectionProvider",[n,r]=ai(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",u=e+"CollectionItemSlot",s="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=He.useRef(null),i=He.useRef(new Map).current;return He.createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},Slot:He.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=Ht(t,i(a,n).collectionRef);return He.createElement(Kf,{ref:o},r)})),ItemSlot:He.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=He.useRef(null),l=Ht(t,a),c=i(u,n);return He.useEffect((()=>(c.itemMap.set(a,{ref:a,...o}),()=>{c.itemMap.delete(a)}))),He.createElement(Kf,{[s]:"",ref:l},r)}))},function(t){const n=i(e+"CollectionConsumer",t);return He.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${s}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}ij.displayName=Sd.Description.displayName;const aj=hu(void 0);function Y$(e){const t=op(aj);return e||t||"ltr"}const sj=["top","right","bottom","left"],gd=Math.min,ta=Math.max,Xg=Math.round,kg=Math.floor,yd=e=>({x:e,y:e}),uj={left:"right",right:"left",bottom:"top",top:"bottom"},lj={start:"end",end:"start"};function SS(e,t,n){return ta(e,gd(t,n))}function Pl(e,t){return"function"==typeof e?e(t):e}function Rl(e){return e.split("-")[0]}function Qh(e){return e.split("-")[1]}function X$(e){return"x"===e?"y":"x"}function J$(e){return"y"===e?"height":"width"}function wd(e){return["top","bottom"].includes(Rl(e))?"y":"x"}function Z$(e){return X$(wd(e))}function cj(e,t,n){void 0===n&&(n=!1);const r=Qh(e),o=Z$(e),i=J$(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Jg(a)),[a,Jg(a)]}function dj(e){const t=Jg(e);return[$S(e),t,$S(t)]}function $S(e){return e.replace(/start|end/g,(e=>lj[e]))}function fj(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function pj(e,t,n,r){const o=Qh(e);let i=fj(Rl(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map($S)))),i}function Jg(e){return e.replace(/left|right|bottom|top/g,(e=>uj[e]))}function hj(e){return{top:0,right:0,bottom:0,left:0,...e}}function mN(e){return"number"!=typeof e?hj(e):{top:e,right:e,bottom:e,left:e}}function Zg(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function dT(e,t,n){let{reference:r,floating:o}=e;const i=wd(t),a=Z$(t),u=J$(a),s=Rl(t),l="y"===i,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[u]/2-o[u]/2;let p;switch(s){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Qh(t)){case"start":p[a]-=f*(n&&l?-1:1);break;case"end":p[a]+=f*(n&&l?-1:1)}return p}const mj=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,u=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=dT(l,r,s),f=r,p={},m=0;for(let n=0;n<u.length;n++){const{name:i,fn:h}=u[n],{x:v,y:g,data:y,reset:b}=await h({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:l,platform:a,elements:{reference:e,floating:t}});c=v??c,d=g??d,p={...p,[i]:{...p[i],...y}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(l=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:d}=dT(l,f,s))),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function bv(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:u,strategy:s}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Pl(t,e),m=mN(p),h=u[f?"floating"===d?"reference":"floating":d],v=Zg(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(u.floating)),boundary:l,rootBoundary:c,strategy:s})),g="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(u.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=Zg(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:g,offsetParent:y,strategy:s}):g);return{top:(v.top-w.top+m.top)/b.y,bottom:(w.bottom-v.bottom+m.bottom)/b.y,left:(v.left-w.left+m.left)/b.x,right:(w.right-v.right+m.right)/b.x}}const vj=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:u,middlewareData:s}=t,{element:l,padding:c=0}=Pl(e,t)||{};if(null==l)return{};const d=mN(c),f={x:n,y:r},p=Z$(o),m=J$(p),h=await a.getDimensions(l),v="y"===p,g=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-f[p]-i.floating[m],x=f[p]-i.reference[p],_=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let k=_?_[b]:0;(!k||!await(null==a.isElement?void 0:a.isElement(_)))&&(k=u.floating[b]||i.floating[m]);const S=w/2-x/2,A=k/2-h[m]/2-1,E=gd(d[g],A),I=gd(d[y],A),C=E,P=k-h[m]-I,q=k/2-h[m]/2+S,O=SS(C,q,P),T=!s.arrow&&null!=Qh(o)&&q!==O&&i.reference[m]/2-(q<C?E:I)-h[m]/2<0,N=T?q<C?q-C:q-P:0;return{[p]:f[p]+N,data:{[p]:O,centerOffset:q-O-N,...T&&{alignmentOffset:N}},reset:T}}}),gj=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:u,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=Pl(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const g=Rl(o),y=wd(u),b=Rl(u)===u,w=await(null==s.isRTL?void 0:s.isRTL(l.floating)),x=f||(b||!h?[Jg(u)]:dj(u)),_="none"!==m;!f&&_&&x.push(...pj(u,h,m,w));const k=[u,...x],S=await bv(t,v),A=[];let E=(null==(r=i.flip)?void 0:r.overflows)||[];if(c&&A.push(S[g]),d){const e=cj(o,a,w);A.push(S[e[0]],S[e[1]])}if(E=[...E,{placement:o,overflows:A}],!A.every((e=>e<=0))){var I,C;const e=((null==(I=i.flip)?void 0:I.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:E},reset:{placement:t}};let n=null==(C=E.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(p){case"bestFit":{var P;const e=null==(P=E.filter((e=>{if(_){const t=wd(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=u}if(o!==n)return{reset:{placement:n}}}return{}}}};function fT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function pT(e){return sj.some((t=>e[t]>=0))}const yj=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Pl(e,t);switch(r){case"referenceHidden":{const e=fT(await bv(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:pT(e)}}}case"escaped":{const e=fT(await bv(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:pT(e)}}}default:return{}}}}};async function wj(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Rl(n),u=Qh(n),s="y"===wd(n),l=["left","top"].includes(a)?-1:1,c=i&&s?-1:1,d=Pl(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return u&&"number"==typeof m&&(p="end"===u?-1*m:m),s?{x:p*c,y:f*l}:{x:f*l,y:p*c}}const _j=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:u}=t,s=await wj(t,e);return a===(null==(n=u.offset)?void 0:n.placement)&&null!=(r=u.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},bj=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=Pl(e,t),l={x:n,y:r},c=await bv(t,s),d=wd(Rl(o)),f=X$(d);let p=l[f],m=l[d];if(i){const e="y"===f?"bottom":"right";p=SS(p+c["y"===f?"top":"left"],p,p-c[e])}if(a){const e="y"===d?"bottom":"right";m=SS(m+c["y"===d?"top":"left"],m,m-c[e])}const h=u.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:a}}}}}},xj=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:u=0,mainAxis:s=!0,crossAxis:l=!0}=Pl(e,t),c={x:n,y:r},d=wd(o),f=X$(d);let p=c[f],m=c[d];const h=Pl(u,t),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+v.mainAxis,n=i.reference[f]+i.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var g,y;const e="y"===f?"width":"height",t=["top","left"].includes(Rl(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?v.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Sj=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:u}=t,{apply:s=()=>{},...l}=Pl(e,t),c=await bv(t,l),d=Rl(o),f=Qh(o),p="y"===wd(o),{width:m,height:h}=i.floating;let v,g;"top"===d||"bottom"===d?(v=d,g=f===(await(null==a.isRTL?void 0:a.isRTL(u.floating))?"start":"end")?"left":"right"):(g=d,v="end"===f?"top":"bottom");const y=h-c.top-c.bottom,b=m-c.left-c.right,w=gd(h-c[v],y),x=gd(m-c[g],b),_=!t.middlewareData.shift;let k=w,S=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=y),_&&!f){const e=ta(c.left,0),t=ta(c.right,0),n=ta(c.top,0),r=ta(c.bottom,0);p?S=m-2*(0!==e||0!==t?e+t:ta(c.left,c.right)):k=h-2*(0!==n||0!==r?n+r:ta(c.top,c.bottom))}await s({...t,availableWidth:S,availableHeight:k});const A=await a.getDimensions(u.floating);return m!==A.width||h!==A.height?{reset:{rects:!0}}:{}}}};function My(){return typeof window<"u"}function _d(e){return vN(e)?(e.nodeName||"").toLowerCase():"#document"}function ra(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function kl(e){var t;return null==(t=(vN(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function vN(e){return!!My()&&(e instanceof Node||e instanceof ra(e).Node)}function vu(e){return!!My()&&(e instanceof Element||e instanceof ra(e).Element)}function gu(e){return!!My()&&(e instanceof HTMLElement||e instanceof ra(e).HTMLElement)}function hT(e){return!(!My()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof ra(e).ShadowRoot)}function jv(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ba(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function $j(e){return["table","td","th"].includes(_d(e))}function Cj(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch{return!1}}))}function eC(e){const t=tC(),n=vu(e)?Ba(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function gN(e){let t=Vh(e);for(;gu(t)&&!Ly(t);){if(eC(t))return t;if(Cj(t))return null;t=Vh(t)}return null}function tC(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ly(e){return["html","body","#document"].includes(_d(e))}function Ba(e){return ra(e).getComputedStyle(e)}function Fy(e){return vu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vh(e){if("html"===_d(e))return e;const t=e.assignedSlot||e.parentNode||hT(e)&&e.host||kl(e);return hT(t)?t.host:t}function yN(e){const t=Vh(e);return Ly(t)?e.ownerDocument?e.ownerDocument.body:e.body:gu(t)&&jv(t)?t:yN(t)}function xv(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=yN(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=ra(o);if(i){const e=Ij(a);return t.concat(a,a.visualViewport||[],jv(o)?o:[],e&&n?xv(e):[])}return t.concat(o,xv(o,[],n))}function Ij(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wN(e){const t=Ba(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=gu(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,u=Xg(n)!==i||Xg(r)!==a;return u&&(n=i,r=a),{width:n,height:r,$:u}}function nC(e){return vu(e)?e:e.contextElement}function Lh(e){const t=nC(e);if(!gu(t))return yd(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=wN(t);let a=(i?Xg(n.width):n.width)/r,u=(i?Xg(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!u||!Number.isFinite(u))&&(u=1),{x:a,y:u}}const Ej=yd(0);function _N(e){const t=ra(e);return tC()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ej}function Pj(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ra(e))&&t}function ep(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=nC(e);let a=yd(1);t&&(r?vu(r)&&(a=Lh(r)):a=Lh(e));const u=Pj(i,n,r)?_N(i):yd(0);let s=(o.left+u.x)/a.x,l=(o.top+u.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=ra(i),t=r&&vu(r)?ra(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Lh(n),t=n.getBoundingClientRect(),r=Ba(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,l*=e.y,c*=e.x,d*=e.y,s+=o,l+=i,n=ra(n).frameElement}}return Zg({width:c,height:d,x:s,y:l})}const Rj=[":popover-open",":modal"];function bN(e){let t=!1,n=0,r=0;if(Rj.forEach((n=>{!function(n){try{t=t||e.matches(n)}catch{}}(n)})),t){const t=gN(e);if(t){const e=t.getBoundingClientRect();n=e.x,r=e.y}}return[t,n,r]}function Tj(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=kl(r),[a]=t?bN(t.floating):[!1];if(r===i||a)return n;let u={scrollLeft:0,scrollTop:0},s=yd(1);const l=yd(0),c=gu(r);if((c||!c&&"fixed"!==o)&&(("body"!==_d(r)||jv(i))&&(u=Fy(r)),gu(r))){const e=ep(r);s=Lh(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+l.x,y:n.y*s.y-u.scrollTop*s.y+l.y}}function Oj(e){return Array.from(e.getClientRects())}function xN(e){return ep(kl(e)).left+Fy(e).scrollLeft}function Aj(e){const t=kl(e),n=Fy(e),r=e.ownerDocument.body,o=ta(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ta(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+xN(e);const u=-n.scrollTop;return"rtl"===Ba(r).direction&&(a+=ta(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:u}}function Dj(e,t){const n=ra(e),r=kl(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,u=0,s=0;if(o){i=o.width,a=o.height;const e=tC();(!e||e&&"fixed"===t)&&(u=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:u,y:s}}function Nj(e,t){const n=ep(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=gu(e)?Lh(e):yd(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}function mT(e,t,n){let r;if("viewport"===t)r=Dj(e,n);else if("document"===t)r=Aj(kl(e));else if(vu(t))r=Nj(t,n);else{const n=_N(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Zg(r)}function SN(e,t){const n=Vh(e);return!(n===t||!vu(n)||Ly(n))&&("fixed"===Ba(n).position||SN(n,t))}function kj(e,t){const n=t.get(e);if(n)return n;let r=xv(e,[],!1).filter((e=>vu(e)&&"body"!==_d(e))),o=null;const i="fixed"===Ba(e).position;let a=i?Vh(e):e;for(;vu(a)&&!Ly(a);){const t=Ba(a),n=eC(a);!n&&"fixed"===t.position&&(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||jv(a)&&!n&&SN(e,a))?r=r.filter((e=>e!==a)):o=t,a=Vh(a)}return t.set(e,r),r}function Mj(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?kj(t,this._c):[].concat(n),r],a=i[0],u=i.reduce(((e,n)=>{const r=mT(t,n,o);return e.top=ta(r.top,e.top),e.right=gd(r.right,e.right),e.bottom=gd(r.bottom,e.bottom),e.left=ta(r.left,e.left),e}),mT(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Lj(e){const{width:t,height:n}=wN(e);return{width:t,height:n}}function Fj(e,t,n,r){const o=gu(t),i=kl(t),a="fixed"===n,u=ep(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=yd(0);if(o||!o&&!a)if(("body"!==_d(t)||jv(i))&&(s=Fy(t)),o){const e=ep(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=xN(i));let c=u.left+s.scrollLeft-l.x,d=u.top+s.scrollTop-l.y;const[f,p,m]=bN(r);return f&&(c+=p,d+=m,o&&(c+=t.clientLeft,d+=t.clientTop)),{x:c,y:d,width:u.width,height:u.height}}function vT(e,t){return gu(e)&&"fixed"!==Ba(e).position?t?t(e):e.offsetParent:null}function $N(e,t){const n=ra(e);if(!gu(e))return n;let r=vT(e,t);for(;r&&$j(r)&&"static"===Ba(r).position;)r=vT(r,t);return r&&("html"===_d(r)||"body"===_d(r)&&"static"===Ba(r).position&&!eC(r))?n:r||gN(e)||n}const Bj=async function(e){const t=this.getOffsetParent||$N,n=this.getDimensions;return{reference:Fj(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}};function jj(e){return"rtl"===Ba(e).direction}const Vj={convertOffsetParentRelativeRectToViewportRelativeRect:Tj,getDocumentElement:kl,getClippingRect:Mj,getOffsetParent:$N,getElementRects:Bj,getClientRects:Oj,getDimensions:Lj,getScale:Lh,isElement:vu,isRTL:jj};function Uj(e,t){let n,r=null;const o=kl(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(u,s){void 0===u&&(u=!1),void 0===s&&(s=1),i();const{left:l,top:c,width:d,height:f}=e.getBoundingClientRect();if(u||t(),!d||!f)return;const p={rootMargin:-kg(c)+"px "+-kg(o.clientWidth-(l+d))+"px "+-kg(o.clientHeight-(c+f))+"px "+-kg(l)+"px",threshold:ta(0,gd(1,s))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}m=!1}try{r=new IntersectionObserver(h,{...p,root:o.ownerDocument})}catch{r=new IntersectionObserver(h,p)}r.observe(e)}(!0),i}function zj(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,l=nC(e),c=o||i?[...l?xv(l):[],...xv(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=l&&u?Uj(l,n):null;let f=-1,p=null;a&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),l&&!s&&p.observe(l),p.observe(t));let m,h=s?ep(e):null;return s&&function t(){const r=ep(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,m=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=p)||e.disconnect(),p=null,s&&cancelAnimationFrame(m)}}const Wj=bj,qj=gj,Gj=Sj,Hj=yj,gT=vj,Kj=xj,Qj=(e,t,n)=>{const r=new Map,o={platform:Vj,...n},i={...o.platform,_c:r};return mj(e,t,{...o,platform:i})};var qg=typeof document<"u"?ip:Ze;function ey(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!ey(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||ey(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function CN(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yT(e,t){const n=CN(e);return Math.round(t*n)/n}function ux(e){const t=k.useRef(e);return qg((()=>{t.current=e})),t}function Yj(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:u=!0,whileElementsMounted:s,open:l}=e,[c,d]=k.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=k.useState(r);ey(f,r)||p(r);const[m,h]=k.useState(null),[v,g]=k.useState(null),y=k.useCallback((e=>{e!==_.current&&(_.current=e,h(e))}),[]),b=k.useCallback((e=>{e!==S.current&&(S.current=e,g(e))}),[]),w=i||m,x=a||v,_=k.useRef(null),S=k.useRef(null),A=k.useRef(c),E=null!=s,I=ux(s),C=ux(o),P=ux(l),q=k.useCallback((()=>{if(!_.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};C.current&&(e.platform=C.current),Qj(_.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};O.current&&!ey(A.current,t)&&(A.current=t,_u.flushSync((()=>{d(t)})))}))}),[f,t,n,C,P]);qg((()=>{!1===l&&A.current.isPositioned&&(A.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[l]);const O=k.useRef(!1);qg((()=>(O.current=!0,()=>{O.current=!1})),[]),qg((()=>{if(w&&(_.current=w),x&&(S.current=x),w&&x){if(I.current)return I.current(w,x,q);q()}}),[w,x,q,I,E]);const T=k.useMemo((()=>({reference:_,floating:S,setReference:y,setFloating:b})),[y,b]),N=k.useMemo((()=>({reference:w,floating:x})),[w,x]),R=k.useMemo((()=>{const e={position:n,left:0,top:0};if(!N.floating)return e;const t=yT(N.floating,c.x),r=yT(N.floating,c.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...CN(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,u,N.floating,c.x,c.y]);return k.useMemo((()=>({...c,update:q,refs:T,elements:N,floatingStyles:R})),[c,q,T,N,R])}const Xj=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?gT({element:n.current,padding:r}).fn(t):{}:n?gT({element:n,padding:r}).fn(t):{}}}),Jj=(e,t)=>({..._j(e),options:[e,t]}),Zj=(e,t)=>({...Wj(e),options:[e,t]}),eV=(e,t)=>({...Kj(e),options:[e,t]}),tV=(e,t)=>({...qj(e),options:[e,t]}),nV=(e,t)=>({...Gj(e),options:[e,t]}),rV=(e,t)=>({...Hj(e),options:[e,t]}),oV=(e,t)=>({...Xj(e),options:[e,t]}),iV=Le(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return oe(ht.svg,Ee({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:oe("polygon",{points:"0,0 30,0 15,10"}))})),aV=iV,IN="Popper",[EN,Yh]=ai(IN),[sV,PN]=EN(IN),uV=e=>{const{__scopePopper:t,children:n}=e,[r,o]=ut(null);return oe(sV,{scope:t,anchor:r,onAnchorChange:o},n)},lV="PopperAnchor",cV=Le(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=PN(lV,n),a=We(null),u=Ht(t,a);return Ze((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:oe(ht.div,Ee({},o,{ref:u}))})),RN="PopperContent",[dV,fV]=EN(RN),pV=Le(((e,t)=>{var n,r,o,i,a,u,s,l;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:v=!0,collisionBoundary:g=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:w=!1,updatePositionStrategy:x="optimized",onPlaced:_,...k}=e,S=PN(RN,c),[A,E]=ut(null),I=Ht(t,(e=>E(e))),[C,P]=ut(null),q=Ay(C),O=null!==(n=null==q?void 0:q.width)&&void 0!==n?n:0,T=null!==(r=null==q?void 0:q.height)&&void 0!==r?r:0,N=d+("center"!==p?"-"+p:""),R="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},D=Array.isArray(g)?g:[g],j=D.length>0,L={padding:R,boundary:D.filter(gV),altBoundary:j},{refs:M,floatingStyles:$,placement:B,isPositioned:F,middlewareData:z}=Yj({strategy:"fixed",placement:N,whileElementsMounted:(...e)=>zj(...e,{animationFrame:"always"===x}),elements:{reference:S.anchor},middleware:[Jj({mainAxis:f+T,alignmentAxis:m}),v&&Zj({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?eV():void 0,...L}),v&&tV({...L}),nV({...L,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),C&&oV({element:C,padding:h}),yV({arrowWidth:O,arrowHeight:T}),w&&rV({strategy:"referenceHidden",...L})]}),[V,U]=TN(B),W=bs(_);Go((()=>{F&&(null==W||W())}),[F,W]);const H=null===(o=z.arrow)||void 0===o?void 0:o.x,G=null===(i=z.arrow)||void 0===i?void 0:i.y,K=0!==(null===(a=z.arrow)||void 0===a?void 0:a.centerOffset),[Q,Y]=ut();return Go((()=>{A&&Y(window.getComputedStyle(A).zIndex)}),[A]),oe("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:F?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(u=z.transformOrigin)||void 0===u?void 0:u.x,null===(s=z.transformOrigin)||void 0===s?void 0:s.y].join(" ")},dir:e.dir},oe(dV,{scope:c,placedSide:V,onArrowChange:P,arrowX:H,arrowY:G,shouldHideArrow:K},oe(ht.div,Ee({"data-side":V,"data-align":U},k,{ref:I,style:{...k.style,animation:F?void 0:"none",opacity:null!==(l=z.hide)&&void 0!==l&&l.referenceHidden?0:void 0}}))))})),hV="PopperArrow",mV={top:"bottom",right:"left",bottom:"top",left:"right"},vV=Le((function(e,t){const{__scopePopper:n,...r}=e,o=fV(hV,n),i=mV[o.placedSide];return oe("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},oe(aV,Ee({},r,{ref:t,style:{...r.style,display:"block"}})))}));function gV(e){return null!==e}const yV=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:u,rects:s,middlewareData:l}=t,c=0!==(null===(n=l.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,m]=TN(u),h={start:"0%",center:"50%",end:"100%"}[m],v=(null!==(r=null===(o=l.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(i=null===(a=l.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=c?h:`${v}px`,b=-f+"px"):"top"===p?(y=c?h:`${v}px`,b=`${s.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?h:`${g}px`):"left"===p&&(y=`${s.floating.width+f}px`,b=c?h:`${g}px`),{data:{x:y,y:b}}}});function TN(e){const[t,n="center"]=e.split("-");return[t,n]}const ON=uV,rC=cV,oC=pV,wV=vV,lx="rovingFocusGroup.onEntryFocus",_V={bubbles:!1,cancelable:!0},iC="RovingFocusGroup",[CS,AN,bV]=Q$(iC),[xV,Xh]=ai(iC,[bV]),[SV,$V]=xV(iC),CV=Le(((e,t)=>oe(CS.Provider,{scope:e.__scopeRovingFocusGroup},oe(CS.Slot,{scope:e.__scopeRovingFocusGroup},oe(IV,Ee({},e,{ref:t})))))),IV=Le(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:s,onEntryFocus:l,...c}=e,d=We(null),f=Ht(t,d),p=Y$(i),[m=null,h]=vd({prop:a,defaultProp:u,onChange:s}),[v,g]=ut(!1),y=bs(l),b=AN(n),w=We(!1),[x,_]=ut(0);return Ze((()=>{const e=d.current;if(e)return e.addEventListener(lx,y),()=>e.removeEventListener(lx,y)}),[y]),oe(SV,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:m,onItemFocus:yt((e=>h(e)),[h]),onItemShiftTab:yt((()=>g(!0)),[]),onFocusableItemAdd:yt((()=>_((e=>e+1))),[]),onFocusableItemRemove:yt((()=>_((e=>e-1))),[])},oe(ht.div,Ee({tabIndex:v||0===x?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:ot(e.onMouseDown,(()=>{w.current=!0})),onFocus:ot(e.onFocus,(e=>{const t=!w.current;if(e.target===e.currentTarget&&t&&!v){const t=new CustomEvent(lx,_V);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=b().filter((e=>e.focusable));DN([e.find((e=>e.active)),e.find((e=>e.id===m)),...e].filter(Boolean).map((e=>e.ref.current)))}}w.current=!1})),onBlur:ot(e.onBlur,(()=>g(!1)))})))})),EV="RovingFocusGroupItem",PV=Le(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,u=pd(),s=i||u,l=$V(EV,n),c=l.currentTabStopId===s,d=AN(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=l;return Ze((()=>{if(r)return f(),()=>p()}),[r,f,p]),oe(CS.ItemSlot,{scope:n,id:s,focusable:r,active:o},oe(ht.span,Ee({tabIndex:c?0:-1,"data-orientation":l.orientation},a,{ref:t,onMouseDown:ot(e.onMouseDown,(e=>{r?l.onItemFocus(s):e.preventDefault()})),onFocus:ot(e.onFocus,(()=>l.onItemFocus(s))),onKeyDown:ot(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void l.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=OV(e,l.orientation,l.dir);if(void 0!==t){e.preventDefault();let n=d().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();const r=n.indexOf(e.currentTarget);n=l.loop?AV(n,r+1):n.slice(r+1)}setTimeout((()=>DN(n)))}}))})))})),RV={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function TV(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function OV(e,t,n){const r=TV(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return RV[r]}function DN(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function AV(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}const aC=CV,sC=PV,IS=["Enter"," "],DV=["ArrowDown","PageUp","Home"],NN=["ArrowUp","PageDown","End"],NV=[...DV,...NN],kV={ltr:[...IS,"ArrowRight"],rtl:[...IS,"ArrowLeft"]},MV={ltr:["ArrowLeft"],rtl:["ArrowRight"]},By="Menu",[Sv,LV,FV]=Q$(By),[dp,kN]=ai(By,[FV,Yh,Xh]),MN=Yh(),LN=Xh(),[qX,fp]=dp(By),[GX,Vv]=dp(By),BV=Le(((e,t)=>{const{__scopeMenu:n,...r}=e,o=MN(n);return oe(rC,Ee({},o,r,{ref:t}))})),FN="MenuPortal",[jV,BN]=dp(FN,{forceMount:void 0}),VV=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=fp(FN,t);return oe(jV,{scope:t,forceMount:n},oe(ia,{present:n||i.open},oe(my,{asChild:!0,container:o},r)))},_s="MenuContent",[UV,uC]=dp(_s),zV=Le(((e,t)=>{const n=BN(_s,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=fp(_s,e.__scopeMenu),a=Vv(_s,e.__scopeMenu);return oe(Sv.Provider,{scope:e.__scopeMenu},oe(ia,{present:r||i.open},oe(Sv.Slot,{scope:e.__scopeMenu},a.modal?oe(WV,Ee({},o,{ref:t})):oe(qV,Ee({},o,{ref:t})))))})),WV=Le(((e,t)=>{const n=fp(_s,e.__scopeMenu),r=We(null),o=Ht(t,r);return Ze((()=>{const e=r.current;if(e)return yy(e)}),[]),oe(lC,Ee({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:ot(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),qV=Le(((e,t)=>{const n=fp(_s,e.__scopeMenu);return oe(lC,Ee({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),lC=Le(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:u,onEntryFocus:s,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,v=fp(_s,n),g=Vv(_s,n),y=MN(n),b=LN(n),w=LV(n),[x,_]=ut(null),k=We(null),S=Ht(t,k,v.onContentChange),A=We(0),E=We(""),I=We(0),C=We(null),P=We("right"),q=We(0),O=m?gy:ap,T=m?{as:Kf,allowPinchZoom:!0}:void 0;Ze((()=>()=>window.clearTimeout(A.current)),[]),f$();const N=yt((e=>{var t,n;return P.current===(null===(t=C.current)||void 0===t?void 0:t.side)&&lU(e,null===(n=C.current)||void 0===n?void 0:n.area)}),[]);return oe(UV,{scope:n,searchRef:E,onItemEnter:yt((e=>{N(e)&&e.preventDefault()}),[N]),onItemLeave:yt((e=>{var t;N(e)||(null===(t=k.current)||void 0===t||t.focus(),_(null))}),[N]),onTriggerLeave:yt((e=>{N(e)&&e.preventDefault()}),[N]),pointerGraceTimerRef:I,onPointerGraceIntentChange:yt((e=>{C.current=e}),[])},oe(O,T,oe(d$,{asChild:!0,trapped:o,onMountAutoFocus:ot(i,(e=>{var t;e.preventDefault(),null===(t=k.current)||void 0===t||t.focus()})),onUnmountAutoFocus:a},oe(hy,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p},oe(aC,Ee({asChild:!0},b,{dir:g.dir,orientation:"vertical",loop:r,currentTabStopId:x,onCurrentTabStopIdChange:_,onEntryFocus:ot(s,(e=>{g.isUsingKeyboardRef.current||e.preventDefault()}))}),oe(oC,Ee({role:"menu","aria-orientation":"vertical","data-state":WN(v.open),"data-radix-menu-content":"",dir:g.dir},y,h,{ref:S,style:{outline:"none",...h.style},onKeyDown:ot(h.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;const r=E.current+e,o=w().filter((e=>!e.disabled)),i=document.activeElement,a=null===(t=o.find((e=>e.ref.current===i)))||void 0===t?void 0:t.textValue,u=sU(o.map((e=>e.textValue)),r,a),s=null===(n=o.find((e=>e.textValue===u)))||void 0===n?void 0:n.ref.current;(function e(t){E.current=t,window.clearTimeout(A.current),""!==t&&(A.current=window.setTimeout((()=>e("")),1e3))})(r),s&&setTimeout((()=>s.focus()))})(e.key));const o=k.current;if(e.target!==o||!NV.includes(e.key))return;e.preventDefault();const i=w().filter((e=>!e.disabled)).map((e=>e.ref.current));NN.includes(e.key)&&i.reverse(),iU(i)})),onBlur:ot(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(A.current),E.current="")})),onPointerMove:ot(e.onPointerMove,$v((e=>{const t=e.target,n=q.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>q.current?"right":"left";P.current=t,q.current=e.clientX}})))})))))))})),GV=Le(((e,t)=>{const{__scopeMenu:n,...r}=e;return oe(ht.div,Ee({},r,{ref:t}))})),ES="MenuItem",wT="menu.itemSelect",cC=Le(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=We(null),a=Vv(ES,e.__scopeMenu),u=uC(ES,e.__scopeMenu),s=Ht(t,i),l=We(!1);return oe(jN,Ee({},o,{ref:s,disabled:n,onClick:ot(e.onClick,(()=>{const e=i.current;if(!n&&e){const t=new CustomEvent(wT,{bubbles:!0,cancelable:!0});e.addEventListener(wT,(e=>null==r?void 0:r(e)),{once:!0}),jA(e,t),t.defaultPrevented?l.current=!1:a.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),l.current=!0},onPointerUp:ot(e.onPointerUp,(e=>{var t;l.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:ot(e.onKeyDown,(e=>{const t=""!==u.searchRef.current;n||t&&" "===e.key||IS.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),jN=Le(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=uC(ES,n),u=LN(n),s=We(null),l=Ht(t,s),[c,d]=ut(!1),[f,p]=ut("");return Ze((()=>{const e=s.current;var t;e&&p((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[i.children]),oe(Sv.ItemSlot,{scope:n,disabled:r,textValue:o??f},oe(sC,Ee({asChild:!0},u,{focusable:!r}),oe(ht.div,Ee({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},i,{ref:l,onPointerMove:ot(e.onPointerMove,$v((e=>{r?a.onItemLeave(e):(a.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())}))),onPointerLeave:ot(e.onPointerLeave,$v((e=>a.onItemLeave(e)))),onFocus:ot(e.onFocus,(()=>d(!0))),onBlur:ot(e.onBlur,(()=>d(!1)))}))))})),HV=Le(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return oe(UN,{scope:e.__scopeMenu,checked:n},oe(cC,Ee({role:"menuitemcheckbox","aria-checked":ty(n)?"mixed":n},o,{ref:t,"data-state":dC(n),onSelect:ot(o.onSelect,(()=>null==r?void 0:r(!!ty(n)||!n)),{checkForDefaultPrevented:!1})})))})),KV="MenuRadioGroup",[HX,QV]=dp(KV,{value:void 0,onValueChange:()=>{}}),YV="MenuRadioItem",XV=Le(((e,t)=>{const{value:n,...r}=e,o=QV(YV,e.__scopeMenu),i=n===o.value;return oe(UN,{scope:e.__scopeMenu,checked:i},oe(cC,Ee({role:"menuitemradio","aria-checked":i},r,{ref:t,"data-state":dC(i),onSelect:ot(r.onSelect,(()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)}),{checkForDefaultPrevented:!1})})))})),VN="MenuItemIndicator",[UN,JV]=dp(VN,{checked:!1}),ZV=Le(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=JV(VN,n);return oe(ia,{present:r||ty(i.checked)||!0===i.checked},oe(ht.span,Ee({},o,{ref:t,"data-state":dC(i.checked)})))})),eU=Le(((e,t)=>{const{__scopeMenu:n,...r}=e;return oe(ht.div,Ee({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),tU="MenuSub",[KX,zN]=dp(tU),Mg="MenuSubTrigger",nU=Le(((e,t)=>{const n=fp(Mg,e.__scopeMenu),r=Vv(Mg,e.__scopeMenu),o=zN(Mg,e.__scopeMenu),i=uC(Mg,e.__scopeMenu),a=We(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:s}=i,l={__scopeMenu:e.__scopeMenu},c=yt((()=>{a.current&&window.clearTimeout(a.current),a.current=null}),[]);return Ze((()=>c),[c]),Ze((()=>{const e=u.current;return()=>{window.clearTimeout(e),s(null)}}),[u,s]),oe(BV,Ee({asChild:!0},l),oe(jN,Ee({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":WN(n.open)},e,{ref:l$(t,o.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),!e.disabled&&!t.defaultPrevented&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:ot(e.onPointerMove,$v((t=>{i.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout((()=>{n.onOpenChange(!0),c()}),100))}))),onPointerLeave:ot(e.onPointerLeave,$v((e=>{var t;c();const r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var o;const t=null===(o=n.content)||void 0===o?void 0:o.dataset.side,a="right"===t,s=a?-5:5,l=r[a?"left":"right"],c=r[a?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+s,y:e.clientY},{x:l,y:r.top},{x:c,y:r.top},{x:c,y:r.bottom},{x:l,y:r.bottom}],side:t}),window.clearTimeout(u.current),u.current=window.setTimeout((()=>i.onPointerGraceIntentChange(null)),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}}))),onKeyDown:ot(e.onKeyDown,(t=>{const o=""!==i.searchRef.current;var a;e.disabled||o&&" "===t.key||!kV[r.dir].includes(t.key)||(n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault())}))})))})),rU="MenuSubContent",oU=Le(((e,t)=>{const n=BN(_s,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=fp(_s,e.__scopeMenu),a=Vv(_s,e.__scopeMenu),u=zN(rU,e.__scopeMenu),s=We(null),l=Ht(t,s);return oe(Sv.Provider,{scope:e.__scopeMenu},oe(ia,{present:r||i.open},oe(Sv.Slot,{scope:e.__scopeMenu},oe(lC,Ee({id:u.contentId,"aria-labelledby":u.triggerId},o,{ref:l,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;a.isUsingKeyboardRef.current&&(null===(t=s.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:ot(e.onFocusOutside,(e=>{e.target!==u.trigger&&i.onOpenChange(!1)})),onEscapeKeyDown:ot(e.onEscapeKeyDown,(e=>{a.onClose(),e.preventDefault()})),onKeyDown:ot(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=MV[a.dir].includes(e.key);var r;t&&n&&(i.onOpenChange(!1),null===(r=u.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))}));function WN(e){return e?"open":"closed"}function ty(e){return"indeterminate"===e}function dC(e){return ty(e)?"indeterminate":e?"checked":"unchecked"}function iU(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function aU(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}function sU(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let i=aU(e,Math.max(o,0));1===r.length&&(i=i.filter((e=>e!==n)));const a=i.find((e=>e.toLowerCase().startsWith(r.toLowerCase())));return a!==n?a:void 0}function uU(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,u=t[e].y,s=t[i].x,l=t[i].y;u>r!=l>r&&n<(s-a)*(r-u)/(l-u)+a&&(o=!o)}return o}function lU(e,t){if(!t)return!1;return uU({x:e.clientX,y:e.clientY},t)}function $v(e){return t=>"mouse"===t.pointerType?e(t):void 0}const cU=VV,dU=zV,fU=GV,pU=cC,hU=HV,mU=XV,vU=ZV,gU=eU,yU=nU,wU=oU,qN="DropdownMenu",[_U,QX]=ai(qN,[kN]),xu=kN(),[YX,bU]=_U(qN),xU=e=>{const{__scopeDropdownMenu:t,...n}=e,r=xu(t);return oe(cU,Ee({},r,n))},SU="DropdownMenuContent",$U=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bU(SU,n),i=xu(n),a=We(!1);return oe(dU,Ee({id:o.contentId,"aria-labelledby":o.triggerId},i,r,{ref:t,onCloseAutoFocus:ot(e.onCloseAutoFocus,(e=>{var t;a.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()})),onInteractOutside:ot(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!o.modal||r)&&(a.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),CU=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xu(n);return oe(fU,Ee({},o,r,{ref:t}))})),IU=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xu(n);return oe(pU,Ee({},o,r,{ref:t}))})),EU=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xu(n);return oe(hU,Ee({},o,r,{ref:t}))})),PU=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xu(n);return oe(mU,Ee({},o,r,{ref:t}))})),RU=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xu(n);return oe(vU,Ee({},o,r,{ref:t}))})),TU=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xu(n);return oe(gU,Ee({},o,r,{ref:t}))})),OU=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xu(n);return oe(yU,Ee({},o,r,{ref:t}))})),AU=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xu(n);return oe(wU,Ee({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),DU=xU,GN=$U,HN=CU,KN=IU,QN=EU,YN=PU,NU=RU,fC=TU,XN=OU,JN=AU,kU=k.forwardRef((({className:e,inset:t,children:n,...r},o)=>q.jsxs(XN,{ref:o,className:we("flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,q.jsx(EA,{className:"ml-auto h-4 w-4"})]})));kU.displayName=XN.displayName;const MU=k.forwardRef((({className:e,...t},n)=>q.jsx(JN,{ref:n,className:we("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})));MU.displayName=JN.displayName;const _T=e=>{e.preventDefault()},LU=k.forwardRef((({className:e,sideOffset:t=4,isPortal:n,...r},o)=>{const i=q.jsx(GN,{ref:o,sideOffset:t,onOpenAutoFocus:_T,onCloseAutoFocus:_T,className:we("z-[101] flex max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] flex-col gap-xxxs overflow-y-auto rounded-lg border border-gray-200 bg-white p-xxs text-popover-foreground ","shadow-[0px_0px_12px_0px_rgba(0,0,0,0.08)] ","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in data-[state=open]:slide-in-from-top-2","data-[state=closed]:fade-out data-[state=closed]:slide-out-to-top-2","data-[state=closed]:duration-150 data-[state=open]:duration-150","data-[state=closed]:[animation-timing-function:ease-in] data-[state=open]:[animation-timing-function:ease-out]",e),...r});return n?q.jsx(DU,{children:i}):i}));LU.displayName=GN.displayName;const FU=k.forwardRef((({className:e,inset:t,...n},r)=>q.jsx(KN,{ref:r,className:we("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs text-base font-medium text-gray-900 outline-none transition-colors hover:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-xl",e),...n})));FU.displayName=KN.displayName;const BU=k.forwardRef((({className:e,children:t,checked:n,checkboxPosition:r="right",...o},i)=>{const a=q.jsx(V$,{size:"default",variant:"default",checked:n});return q.jsxs(QN,{ref:i,className:we("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs text-base font-medium text-gray-900"," outline-none transition-colors hover:bg-gray-100 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,onSelect:e=>e.preventDefault(),...o,children:["left"===r&&a,q.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:t}),"right"===r&&a]})}));BU.displayName=QN.displayName;const jU=k.forwardRef((({className:e,children:t,radioPosition:n="right",...r},o)=>{const i=q.jsx("div",{className:"flex h-xxs items-center justify-center",children:q.jsx(NU,{children:q.jsx(a$,{size:20})})});return q.jsxs(YN,{ref:o,className:we("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs text-base font-medium text-gray-900"," outline-none transition-colors hover:bg-gray-100 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),onSelect:e=>e.preventDefault(),...r,children:["left"===n&&i,q.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:t}),"right"===n&&i]})}));jU.displayName=YN.displayName;const VU=k.forwardRef((({className:e,inset:t,...n},r)=>q.jsx(HN,{ref:r,className:we("text-sm font-semibold",t&&"pl-xl",e),...n})));VU.displayName=HN.displayName;const UU=k.forwardRef((({className:e,...t},n)=>q.jsx(fC,{ref:n,className:we("-mx-1 my-1 h-px bg-muted",e),...t})));UU.displayName=fC.displayName;const zU=Le(((e,t)=>oe(ht.label,Ee({},e,{ref:t,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}})))),ZN=zU,WU=wu("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ek=k.forwardRef((({className:e,...t},n)=>q.jsx(ZN,{ref:n,className:we(WU(),e),...t})));function bT(e,[t,n]){return Math.min(n,Math.max(t,e))}ek.displayName=ZN.displayName;const tk=Le(((e,t)=>oe(ht.span,Ee({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),qU=tk,GU=[" ","Enter","ArrowUp","ArrowDown"],HU=[" ","Enter"],jy="Select",[Vy,Uy,KU]=Q$(jy),[Jh,XX]=ai(jy,[KU,Yh]),pC=Yh(),[QU,pp]=Jh(jy),[YU,XU]=Jh(jy),JU=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:u,onValueChange:s,dir:l,name:c,autoComplete:d,disabled:f,required:p}=e,m=pC(t),[h,v]=ut(null),[g,y]=ut(null),[b,w]=ut(!1),x=Y$(l),[_=!1,k]=vd({prop:r,defaultProp:o,onChange:i}),[S,A]=vd({prop:a,defaultProp:u,onChange:s}),E=We(null),I=!h||!!h.closest("form"),[C,P]=ut(new Set),q=Array.from(C).map((e=>e.props.value)).join(";");return oe(ON,m,oe(QU,{required:p,scope:t,trigger:h,onTriggerChange:v,valueNode:g,onValueNodeChange:y,valueNodeHasChildren:b,onValueNodeHasChildrenChange:w,contentId:pd(),value:S,onValueChange:A,open:_,onOpenChange:k,dir:x,triggerPointerDownPosRef:E,disabled:f},oe(Vy.Provider,{scope:t},oe(YU,{scope:e.__scopeSelect,onNativeOptionAdd:yt((e=>{P((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:yt((e=>{P((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},n)),I?oe(ak,{key:q,"aria-hidden":!0,required:p,tabIndex:-1,name:c,autoComplete:d,value:S,onChange:e=>A(e.target.value),disabled:f},void 0===S?oe("option",{value:""}):null,Array.from(C)):null))},ZU="SelectTrigger",ez=Le(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=pC(n),a=pp(ZU,n),u=a.disabled||r,s=Ht(t,a.onTriggerChange),l=Uy(n),[c,d,f]=sk((e=>{const t=l().filter((e=>!e.disabled)),n=t.find((e=>e.value===a.value)),r=uk(t,e,n);void 0!==r&&a.onValueChange(r.value)})),p=()=>{u||(a.onOpenChange(!0),f())};return oe(rC,Ee({asChild:!0},i),oe(ht.button,Ee({type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":ik(a.value)?"":void 0},o,{ref:s,onClick:ot(o.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:ot(o.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(p(),a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:ot(o.onKeyDown,(e=>{const t=""!==c.current;!(e.ctrlKey||e.altKey||e.metaKey)&&1===e.key.length&&d(e.key),(!t||" "!==e.key)&&GU.includes(e.key)&&(p(),e.preventDefault())}))})))})),tz="SelectValue",nz=Le(((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:a="",...u}=e,s=pp(tz,n),{onValueNodeHasChildrenChange:l}=s,c=void 0!==i,d=Ht(t,s.onValueNodeChange);return Go((()=>{l(c)}),[l,c]),oe(ht.span,Ee({},u,{ref:d,style:{pointerEvents:"none"}}),ik(s.value)?oe(ap,null,a):i)})),rz=Le(((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return oe(ht.span,Ee({"aria-hidden":!0},o,{ref:t}),r||"▼")})),oz=e=>oe(my,Ee({asChild:!0},e)),Uh="SelectContent",iz=Le(((e,t)=>{const n=pp(Uh,e.__scopeSelect),[r,o]=ut();if(Go((()=>{o(new DocumentFragment)}),[]),!n.open){const t=r;return t?_u.createPortal(oe(nk,{scope:e.__scopeSelect},oe(Vy.Slot,{scope:e.__scopeSelect},oe("div",null,e.children))),t):null}return oe(az,Ee({},e,{ref:t}))})),Sl=10,[nk,hp]=Jh(Uh),az=Le(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:u,sideOffset:s,align:l,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:v,...g}=e,y=pp(Uh,n),[b,w]=ut(null),[x,_]=ut(null),k=Ht(t,(e=>w(e))),[S,A]=ut(null),[E,I]=ut(null),C=Uy(n),[P,q]=ut(!1),O=We(!1);Ze((()=>{if(b)return yy(b)}),[b]),f$();const T=yt((e=>{const[t,...n]=C().map((e=>e.ref.current)),[r]=n.slice(-1),o=document.activeElement;for(const n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&x&&(x.scrollTop=0),n===r&&x&&(x.scrollTop=x.scrollHeight),null==n||n.focus(),document.activeElement!==o))return}),[C,x]),N=yt((()=>T([S,b])),[T,S,b]);Ze((()=>{P&&N()}),[P,N]);const{onOpenChange:R,triggerPointerDownPosRef:D}=y;Ze((()=>{if(b){let e={x:0,y:0};const t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=D.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(i=D.current)||void 0===i?void 0:i.y)&&void 0!==o?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():b.contains(n.target)||R(!1),document.removeEventListener("pointermove",t),D.current=null};return null!==D.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[b,R,D]),Ze((()=>{const e=()=>R(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[R]);const[j,L]=sk((e=>{const t=C().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=uk(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),M=yt(((e,t,n)=>{const r=!O.current&&!n;(void 0!==y.value&&y.value===t||r)&&(A(e),r&&(O.current=!0))}),[y.value]),$=yt((()=>null==b?void 0:b.focus()),[b]),B=yt(((e,t,n)=>{const r=!O.current&&!n;(void 0!==y.value&&y.value===t||r)&&I(e)}),[y.value]),F="popper"===r?xT:sz,z=F===xT?{side:u,sideOffset:s,align:l,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:v}:{};return oe(nk,{scope:n,content:b,viewport:x,onViewportChange:_,itemRefCallback:M,selectedItem:S,onItemLeave:$,itemTextRefCallback:B,focusSelectedItem:N,selectedItemText:E,position:r,isPositioned:P,searchRef:j},oe(gy,{as:Kf,allowPinchZoom:!0},oe(d$,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:ot(o,(e=>{var t;null===(t=y.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},oe(hy,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1)},oe(F,Ee({role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:e=>e.preventDefault()},g,z,{onPlaced:()=>q(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:ot(g.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),!t&&1===e.key.length&&L(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=C().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>T(t))),e.preventDefault()}}))}))))))})),sz=Le(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=pp(Uh,n),a=hp(Uh,n),[u,s]=ut(null),[l,c]=ut(null),d=Ht(t,(e=>c(e))),f=Uy(n),p=We(!1),m=We(!0),{viewport:h,selectedItem:v,selectedItemText:g,focusSelectedItem:y}=a,b=yt((()=>{if(i.trigger&&i.valueNode&&u&&l&&h&&v&&g){const e=i.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),o=g.getBoundingClientRect();if("rtl"!==i.dir){const r=o.left-t.left,i=n.left-r,a=e.left-i,s=e.width+a,l=Math.max(s,t.width),c=window.innerWidth-Sl,d=bT(i,[Sl,c-l]);u.style.minWidth=s+"px",u.style.left=d+"px"}else{const r=t.right-o.right,i=window.innerWidth-n.right-r,a=window.innerWidth-e.right-i,s=e.width+a,l=Math.max(s,t.width),c=window.innerWidth-Sl,d=bT(i,[Sl,c-l]);u.style.minWidth=s+"px",u.style.right=d+"px"}const a=f(),s=window.innerHeight-2*Sl,c=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),y=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),w=m+y+c+parseInt(d.paddingBottom,10)+b,x=Math.min(5*v.offsetHeight,w),_=window.getComputedStyle(h),k=parseInt(_.paddingTop,10),S=parseInt(_.paddingBottom,10),A=e.top+e.height/2-Sl,E=s-A,I=v.offsetHeight/2,C=m+y+(v.offsetTop+I),P=w-C;if(C<=A){const e=v===a[a.length-1].ref.current;u.style.bottom="0px";const t=l.clientHeight-h.offsetTop-h.offsetHeight,n=C+Math.max(E,I+(e?S:0)+t+b);u.style.height=n+"px"}else{const e=v===a[0].ref.current;u.style.top="0px";const t=Math.max(A,m+h.offsetTop+(e?k:0)+I)+P;u.style.height=t+"px",h.scrollTop=C-A+h.offsetTop}u.style.margin=`${Sl}px 0`,u.style.minHeight=x+"px",u.style.maxHeight=s+"px",null==r||r(),requestAnimationFrame((()=>p.current=!0))}}),[f,i.trigger,i.valueNode,u,l,h,v,g,i.dir,r]);Go((()=>b()),[b]);const[w,x]=ut();Go((()=>{l&&x(window.getComputedStyle(l).zIndex)}),[l]);const _=yt((e=>{e&&!0===m.current&&(b(),null==y||y(),m.current=!1)}),[b,y]);return oe(uz,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:p,onScrollButtonChange:_},oe("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w}},oe(ht.div,Ee({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))})),xT=Le(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Sl,...i}=e,a=pC(n);return oe(oC,Ee({},a,i,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))})),[uz,hC]=Jh(Uh,{}),ST="SelectViewport",lz=Le(((e,t)=>{const{__scopeSelect:n,...r}=e,o=hp(ST,n),i=hC(ST,n),a=Ht(t,o.onViewportChange),u=We(0);return oe(ap,null,oe("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),oe(Vy.Slot,{scope:n},oe(ht.div,Ee({"data-radix-select-viewport":"",role:"presentation"},r,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:ot(r.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if(null!=r&&r.current&&n){const e=Math.abs(u.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*Sl,o=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),a=Math.max(o,i);if(a<r){const o=a+e,i=Math.min(r,o),u=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=u>0?u:0,n.style.justifyContent="flex-end")}}}u.current=t.scrollTop}))}))))})),cz="SelectGroup",[dz,fz]=Jh(cz),pz=Le(((e,t)=>{const{__scopeSelect:n,...r}=e,o=pd();return oe(dz,{scope:n,id:o},oe(ht.div,Ee({role:"group","aria-labelledby":o},r,{ref:t})))})),hz="SelectLabel",mz=Le(((e,t)=>{const{__scopeSelect:n,...r}=e,o=fz(hz,n);return oe(ht.div,Ee({id:o.id},r,{ref:t}))})),PS="SelectItem",[vz,rk]=Jh(PS),gz=Le(((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,u=pp(PS,n),s=hp(PS,n),l=u.value===r,[c,d]=ut(i??""),[f,p]=ut(!1),m=Ht(t,(e=>{var t;return null===(t=s.itemRefCallback)||void 0===t?void 0:t.call(s,e,r,o)})),h=pd(),v=()=>{o||(u.onValueChange(r),u.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return oe(vz,{scope:n,value:r,disabled:o,textId:h,isSelected:l,onItemTextChange:yt((e=>{d((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},oe(Vy.ItemSlot,{scope:n,value:r,disabled:o,textValue:c},oe(ht.div,Ee({role:"option","aria-labelledby":h,"data-highlighted":f?"":void 0,"aria-selected":l&&f,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},a,{ref:m,onFocus:ot(a.onFocus,(()=>p(!0))),onBlur:ot(a.onBlur,(()=>p(!1))),onPointerUp:ot(a.onPointerUp,v),onPointerMove:ot(a.onPointerMove,(e=>{var t;o?null===(t=s.onItemLeave)||void 0===t||t.call(s):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:ot(a.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=s.onItemLeave)||void 0===t||t.call(s))})),onKeyDown:ot(a.onKeyDown,(e=>{var t;""!==(null===(t=s.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(HU.includes(e.key)&&v()," "===e.key&&e.preventDefault())}))}))))})),Lg="SelectItemText",yz=Le(((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,a=pp(Lg,n),u=hp(Lg,n),s=rk(Lg,n),l=XU(Lg,n),[c,d]=ut(null),f=Ht(t,(e=>d(e)),s.onItemTextChange,(e=>{var t;return null===(t=u.itemTextRefCallback)||void 0===t?void 0:t.call(u,e,s.value,s.disabled)})),p=null==c?void 0:c.textContent,m=xn((()=>oe("option",{key:s.value,value:s.value,disabled:s.disabled},p)),[s.disabled,s.value,p]),{onNativeOptionAdd:h,onNativeOptionRemove:v}=l;return Go((()=>(h(m),()=>v(m))),[h,v,m]),oe(ap,null,oe(ht.span,Ee({id:s.textId},i,{ref:f})),s.isSelected&&a.valueNode&&!a.valueNodeHasChildren?_u.createPortal(i.children,a.valueNode):null)})),wz="SelectItemIndicator",_z=Le(((e,t)=>{const{__scopeSelect:n,...r}=e;return rk(wz,n).isSelected?oe(ht.span,Ee({"aria-hidden":!0},r,{ref:t})):null})),$T="SelectScrollUpButton",bz=Le(((e,t)=>{const n=hp($T,e.__scopeSelect),r=hC($T,e.__scopeSelect),[o,i]=ut(!1),a=Ht(t,r.onScrollButtonChange);return Go((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;i(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?oe(ok,Ee({},e,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),CT="SelectScrollDownButton",xz=Le(((e,t)=>{const n=hp(CT,e.__scopeSelect),r=hC(CT,e.__scopeSelect),[o,i]=ut(!1),a=Ht(t,r.onScrollButtonChange);return Go((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;i(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?oe(ok,Ee({},e,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),ok=Le(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=hp("SelectScrollButton",n),a=We(null),u=Uy(n),s=yt((()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)}),[]);return Ze((()=>()=>s()),[s]),Go((()=>{var e;const t=u().find((e=>e.ref.current===document.activeElement));null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[u]),oe(ht.div,Ee({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:ot(o.onPointerDown,(()=>{null===a.current&&(a.current=window.setInterval(r,50))})),onPointerMove:ot(o.onPointerMove,(()=>{var e;null===(e=i.onItemLeave)||void 0===e||e.call(i),null===a.current&&(a.current=window.setInterval(r,50))})),onPointerLeave:ot(o.onPointerLeave,(()=>{s()}))}))})),Sz=Le(((e,t)=>{const{__scopeSelect:n,...r}=e;return oe(ht.div,Ee({"aria-hidden":!0},r,{ref:t}))}));function ik(e){return""===e||void 0===e}const ak=Le(((e,t)=>{const{value:n,...r}=e,o=We(null),i=Ht(t,o),a=Oy(n);return Ze((()=>{const e=o.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(a!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[a,n]),oe(tk,{asChild:!0},oe("select",Ee({},r,{ref:i,defaultValue:n})))}));function sk(e){const t=bs(e),n=We(""),r=We(0),o=yt((e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(o)}),[t]),i=yt((()=>{n.current="",window.clearTimeout(r.current)}),[]);return Ze((()=>()=>window.clearTimeout(r.current)),[]),[n,o,i]}function uk(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let i=$z(e,Math.max(o,0));1===r.length&&(i=i.filter((e=>e!==n)));const a=i.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return a!==n?a:void 0}function $z(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}ak.displayName="BubbleSelect";const lk=JU,mC=ez,ck=nz,Cz=rz,Iz=oz,dk=iz,Ez=lz,fk=pz,pk=mz,hk=gz,Pz=yz,Rz=_z,mk=bz,vk=xz,gk=Sz,Tz=lk,vC=k.forwardRef((({...e},t)=>q.jsx(Tz,{ref:t,...e})));vC.displayName=lk.displayName;const yk=k.forwardRef(((e,t)=>q.jsx(fk,{ref:t,...e})));yk.displayName=fk.displayName;const wk=k.forwardRef(((e,t)=>q.jsx(ck,{ref:t,...e})));wk.displayName=ck.displayName;const gC=k.forwardRef((({className:e,children:t,caption:n,error:r,icon:o,renderCaret:i=()=>q.jsx(CA,{size:20}),...a},u)=>q.jsxs("div",{className:"w-full",children:[q.jsxs(mC,{ref:u,className:we("flex h-l w-full items-center justify-between rounded-m border bg-background p-xxs text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus-visible:ring-gray-700 focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50",r?"border-red-500":"border-input",e),...a,children:[q.jsxs("div",{className:we("flex flex-1 items-center gap-xxs",{"max-w-[90%]":!!i}),children:[o&&q.jsx("span",{className:we("text-muted-foreground",{"text-red-dark":r}),children:o}),t]}),q.jsx(Cz,{asChild:!0,children:i()})]}),n||r?r?q.jsxs("div",{className:"mt-xxs flex items-center gap-xxxs text-sm text-red-600",children:[q.jsx(RA,{size:16}),r]}):q.jsxs("div",{className:"mt-xxs flex items-center gap-xxxs text-sm text-muted-foreground",children:[q.jsx(EL,{size:16}),n]}):null]})));gC.displayName="SelectTriggerWrapper";const _k=k.forwardRef((({className:e,children:t,caption:n,error:r,icon:o,...i},a)=>q.jsx(gC,{ref:a,className:we("[&>span]:line-clamp-1 [&>span]:text-left",e),caption:n,error:r,icon:o,...i,children:t})));_k.displayName=mC.displayName;const yC=k.forwardRef((({className:e,children:t,position:n="popper",...r},o)=>{const i=k.useMemo((()=>{const e=t=>{var n,r;if(!t)return!1;if(Array.isArray(t))return t.some(e);if(k.isValidElement(t)){const o=null==(n=t.type)?void 0:n.displayName;return"SelectActions"===o||"SelectFooter"===o||e(null==(r=t.props)?void 0:r.children)}return!1};return e(t)}),[t]);return q.jsx(Iz,{children:q.jsx(dk,{ref:o,className:we("z-[101] flex max-h-[var(--radix-select-content-available-height)] min-w-[8rem] flex-col rounded-lg border border-gray-200 bg-white text-popover-foreground","shadow-[0px_0px_12px_0px_rgba(0,0,0,0.08)]","data-[state=open]:animate-in data-[state=closed]:animate-out ","data-[state=open]:fade-in data-[state=open]:slide-in-from-top-2 ","data-[state=closed]:fade-out data-[state=closed]:slide-out-to-top-2 ","data-[state=closed]:duration-150 data-[state=open]:duration-150 ","data-[state=closed]:[animation-timing-function:ease-in] data-[state=open]:[animation-timing-function:ease-out]","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:q.jsx(Ez,{className:we("flex flex-col gap-xxxs overflow-y-auto px-xxs",{"py-xxs":!i},"popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})})}));yC.displayName=dk.displayName;const bk=k.forwardRef((({className:e,...t},n)=>q.jsx(pk,{ref:n,className:we("text-sm font-medium text-gray-900",e),...t})));bk.displayName=pk.displayName;const xk=k.forwardRef((({className:e,showCheck:t=!0,checkPosition:n="right",children:r,...o},i)=>{const a=q.jsx(Rz,{children:q.jsx(a$,{size:20})});return q.jsxs(hk,{ref:i,className:we("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs","text-base font-medium text-gray-900 outline-none transition-colors hover:bg-gray-100","focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[t&&"left"===n&&a,q.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:q.jsx(Pz,{children:r})}),t&&"right"===n&&a]})}));xk.displayName=hk.displayName;const Sk=k.forwardRef((({className:e,...t},n)=>q.jsx(gk,{ref:n,className:we("-mx-1 my-1 h-px bg-gray-200",e),...t})));Sk.displayName=gk.displayName;const Oz=({selectedValues:e=[],onRemoveValue:t})=>{const n=k.useRef(null),[r,o]=k.useState(e.length);return k.useLayoutEffect((()=>{if(!n.current||0===e.length)return void o(e.length);const r=n.current.offsetWidth-60,i=document.createElement("div");Object.assign(i.style,{position:"absolute",visibility:"hidden",whiteSpace:"nowrap",display:"flex",gap:"4px",top:"-9999px",left:"-9999px"}),document.body.appendChild(i);let a=0,u=0;for(const n of e){const e=document.createElement("div");e.className="gap-xxxs p-xxs flex cursor-pointer items-center rounded-sm bg-gray-100 text-sm font-medium text-gray-900";const o=document.createElement("span");if(o.textContent="string"==typeof n?n:n.value,e.appendChild(o),"string"!=typeof n&&n.avatar){const t=document.createElement("div");t.className="w-6 h-6 rounded-full bg-gray-300 flex-shrink-0",e.insertBefore(t,o)}if(t){const t=document.createElement("button");t.innerHTML="×",t.className="ml-1 rounded-full outline-none",e.appendChild(t)}i.appendChild(e);const s=e.offsetWidth+4;if(!(a+s<=r))break;a+=s,u++}document.body.removeChild(i),o(Math.max(1,u))}),[e,t]),{containerRef:n,visibleCount:r}},$k=({hiddenCount:e,selectedValues:t=[],onRemoveValue:n})=>{const r=e=>{e.stopPropagation(),e.preventDefault()};return q.jsx("div",{onPointerDown:r,onMouseDown:r,onClick:r,children:q.jsxs(vC,{name:"hidden-chips-counter",children:[q.jsx(mC,{asChild:!0,children:q.jsx("div",{children:q.jsx(pD,{text:`+${e}`})})}),q.jsx(yC,{align:"end",className:"max-h-[250px] w-screen max-w-[300px] gap-xxxs overflow-y-auto",children:t.map((e=>{const t="string"==typeof e?e:e.value;return q.jsxs("div",{className:"flex justify-between p-xxs",onClick:e=>e.stopPropagation(),children:[q.jsx("span",{children:t}),q.jsx(py,{size:16,className:"cursor-pointer",onClick:()=>null==n?void 0:n(t)})]},t)}))})]})})};$k.displayName="SelectHiddenChipsCounter";const Az=k.forwardRef(((e,t)=>{const{className:n,selectedValues:r=[],placeholder:o,onRemoveValue:i,icon:a,caption:u,error:s,...l}=e,{containerRef:c,visibleCount:d}=Oz({selectedValues:r,onRemoveValue:i}),f=r.length-d;return q.jsx(gC,{ref:t,className:n,caption:u,error:s,icon:a,...l,children:q.jsx("div",{ref:c,className:"flex w-full flex-1 flex-nowrap overflow-hidden",children:0===r.length?q.jsx("span",{children:o||"Select options..."}):q.jsxs(EF,{children:[r.slice(0,d).map((e=>{const t="string"==typeof e?e:e.value;return q.jsx(pD,{avatarSrc:"string"==typeof e?void 0:e.avatar,text:t,onRemove:()=>null==i?void 0:i(t)},t)})),f>0&&q.jsx($k,{hiddenCount:f,onRemoveValue:i,selectedValues:r})]})})})}));Az.displayName="SelectMultiTrigger";const Dz=k.forwardRef((({value:e,isSelected:t=!1,isLoading:n=!1,checkboxPosition:r="right",onSelect:o,className:i,children:a,...u},s)=>{const l=n?q.jsx(PA,{size:24,className:"flex-shrink-0 animate-spin text-blue_100"}):q.jsx(V$,{size:"default",variant:"default",checked:t}),c=()=>{null==o||o(e)};return q.jsxs("div",{ref:s,className:we("relative flex cursor-pointer select-none items-center gap-xxs rounded-m","p-xxs text-base font-medium text-gray-900 outline-none transition-colors hover:bg-gray-100","focus:bg-accent focus:text-accent-foreground",{"pointer-events-none":n},i),onClick:c,role:"button",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),c())},...u,children:["left"===r&&l,q.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:a}),"right"===r&&l]})}));Dz.displayName="SelectCheckboxItem";const Nz=k.forwardRef((({className:e,...t},n)=>q.jsx(mk,{ref:n,className:we("flex cursor-default items-center justify-center py-xxs",e),...t,children:q.jsx(SL,{size:16})})));Nz.displayName=mk.displayName;const kz=k.forwardRef((({className:e,...t},n)=>q.jsx(vk,{ref:n,className:we("flex cursor-default items-center justify-center p-xxs",e),...t,children:q.jsx(CA,{size:16})})));kz.displayName=vk.displayName;const Mz=k.forwardRef((({className:e,children:t,...n},r)=>q.jsx("div",{ref:r,className:we("sticky top-0 z-20 bg-white p-xxs",e),...n,children:t})));Mz.displayName="SelectActions";const Lz=k.forwardRef((({className:e,children:t,...n},r)=>q.jsx("div",{ref:r,className:we("sticky bottom-0 z-20 bg-white p-xxs",e),...n,children:t})));Lz.displayName="SelectFooter";const Fz=k.createContext({}),$d=()=>{const e=k.useContext(Fz),t=k.useContext(Ck),n=SM();e||console.error("useFormContext must be used within a FormProvider");const{getFieldState:r,formState:o}=n,i=r(e.name,o);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},Ck=k.createContext({}),Bz=k.forwardRef((({className:e,...t},n)=>{const r=k.useId();return q.jsx(Ck.Provider,{value:{id:r},children:q.jsx("div",{ref:n,className:we("mt-[8px]",e),...t})})}));Bz.displayName="FormItem";const jz=k.forwardRef((({className:e,isRequired:t,...n},r)=>{const{formItemId:o}=$d();return q.jsxs(ek,{ref:r,className:we("mb-2 text-sm font-medium",e),htmlFor:o,...n,children:[t&&"*",n.children]})}));jz.displayName="FormLabel";const Vz=k.forwardRef((({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:i}=$d();return q.jsx(xd,{ref:t,id:r,"aria-describedby":n?`${o} ${i}`:`${o}`,"aria-invalid":!!n,...e})}));Vz.displayName="FormControl";const Uz=k.forwardRef((({className:e,...t},n)=>{const{formDescriptionId:r}=$d();return q.jsx("p",{ref:n,id:r,className:we("text-sm text-muted-foreground",e),...t})}));Uz.displayName="FormDescription";const zz=k.forwardRef((({className:e,children:t,...n},r)=>{const{error:o,formMessageId:i}=$d(),a=o?String(null==o?void 0:o.message):t;return a?q.jsxs("p",{ref:r,id:i,className:we("flex items-start gap-1 pt-xxs text-sm text-red-dark",e),...n,children:[q.jsx(RA,{size:16,className:"text-red-dark"})," ",a]}):null}));zz.displayName="FormMessage";const Wz=k.forwardRef((({...e},t)=>{const{name:n}=$d();return q.jsx(vC,{ref:t,name:n,...e})}));Wz.displayName="FormSelect";const qz=k.forwardRef((({className:e,children:t,...n},r)=>{const{formItemId:o}=$d();return q.jsx(_k,{ref:r,id:o,className:e,...n,children:t})}));qz.displayName="FormSelectTrigger";const Gz=k.forwardRef(((e,t)=>q.jsx(yC,{ref:t,...e})));Gz.displayName="FormSelectContent";const Hz=k.forwardRef(((e,t)=>q.jsx(xk,{ref:t,...e})));Hz.displayName="FormSelectItem";const Kz=k.forwardRef(((e,t)=>q.jsx(yk,{ref:t,...e})));Kz.displayName="FormSelectGroup";const Qz=k.forwardRef(((e,t)=>q.jsx(bk,{ref:t,...e})));Qz.displayName="FormSelectLabel";const Yz=k.forwardRef(((e,t)=>q.jsx(Sk,{ref:t,...e})));Yz.displayName="FormSelectSeparator";const Xz=k.forwardRef(((e,t)=>q.jsx(wk,{ref:t,...e})));function qf(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function Ik(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>hu(e)));return function(n){const r=(null==n?void 0:n[e])||t;return xn((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=hu(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,u=(null==n?void 0:n[e][i])||o,s=xn((()=>a),Object.values(a));return oe(u.Provider,{value:s},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const u=(null==a?void 0:a[e][i])||o,s=op(u);if(s)return s;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Jz(r,...t)]}function Jz(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return xn((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function zy(e){const t=We(e);return Ze((()=>{t.current=e})),xn((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function Zz(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function eW(...e){return t=>e.forEach((e=>Zz(e,t)))}function tW(...e){return yt(eW(...e),e)}function mp(e){return e.split("-")[0]}function Uv(e){return e.split("-")[1]}function Zh(e){return["top","bottom"].includes(mp(e))?"x":"y"}function wC(e){return"y"===e?"height":"width"}function IT(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,u=Zh(t),s=wC(u),l=r[s]/2-o[s]/2,c="x"===u;let d;switch(mp(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(Uv(t)){case"start":d[u]-=l*(n&&c?-1:1);break;case"end":d[u]+=l*(n&&c?-1:1)}return d}Xz.displayName="FormSelectValue";const nW=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,u=await(null==a.isRTL?void 0:a.isRTL(t));let s=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:c}=IT(s,r,u),d=r,f={},p=0;for(let n=0;n<i.length;n++){const{name:m,fn:h}=i[n],{x:v,y:g,data:y,reset:b}=await h({x:l,y:c,initialPlacement:r,placement:d,strategy:o,middlewareData:f,rects:s,platform:a,elements:{reference:e,floating:t}});l=v??l,c=g??c,f={...f,[m]:{...f[m],...y}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(s=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:l,y:c}=IT(s,d,u))),n=-1)}return{x:l,y:c,placement:d,strategy:o,middlewareData:f}};function Ek(e){return"number"!=typeof e?(t=e,{top:0,right:0,bottom:0,left:0,...t}):{top:e,right:e,bottom:e,left:e};var t}function ny(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Cv(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:u,strategy:s}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=t,m=Ek(p),h=u[f?"floating"===d?"reference":"floating":d],v=ny(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(u.floating)),boundary:l,rootBoundary:c,strategy:s})),g=ny(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...a.floating,x:r,y:o}:a.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(u.floating)),strategy:s}):a[d]);return{top:v.top-g.top+m.top,bottom:g.bottom-v.bottom+m.bottom,left:v.left-g.left+m.left,right:g.right-v.right+m.right}}const rW=Math.min,Lf=Math.max;function RS(e,t,n){return Lf(e,rW(t,n))}const ET=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e??{},{x:o,y:i,placement:a,rects:u,platform:s}=t;if(null==n)return{};const l=Ek(r),c={x:o,y:i},d=Zh(a),f=Uv(a),p=wC(d),m=await s.getDimensions(n),h="y"===d?"top":"left",v="y"===d?"bottom":"right",g=u.reference[p]+u.reference[d]-c[d]-u.floating[p],y=c[d]-u.reference[d],b=await(null==s.getOffsetParent?void 0:s.getOffsetParent(n));let w=b?"y"===d?b.clientHeight||0:b.clientWidth||0:0;0===w&&(w=u.floating[p]);const x=g/2-y/2,_=l[h],k=w-m[p]-l[v],S=w/2-m[p]/2+x,A=RS(_,S,k),E=("start"===f?l[h]:l[v])>0&&S!==A&&u.reference[p]<=u.floating[p];return{[d]:c[d]-(E?S<_?_-S:k-S:0),data:{[d]:A,centerOffset:S-A}}}}),oW={left:"right",right:"left",bottom:"top",top:"bottom"};function ry(e){return e.replace(/left|right|bottom|top/g,(e=>oW[e]))}function iW(e,t,n){void 0===n&&(n=!1);const r=Uv(e),o=Zh(e),i=wC(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=ry(a)),{main:a,cross:ry(a)}}const aW={start:"end",end:"start"};function PT(e){return e.replace(/start|end/g,(e=>aW[e]))}const Pk=["top","right","bottom","left"];Pk.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const sW=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:u,elements:s}=t,{mainAxis:l=!0,crossAxis:c=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:p=!0,...m}=e,h=mp(r),v=[a,...d||(h!==a&&p?function(e){const t=ry(e);return[PT(e),t,PT(t)]}(a):[ry(a)])],g=await Cv(t,m),y=[];let b=(null==(n=o.flip)?void 0:n.overflows)||[];if(l&&y.push(g[h]),c){const{main:e,cross:t}=iW(r,i,await(null==u.isRTL?void 0:u.isRTL(s.floating)));y.push(g[e],g[t])}if(b=[...b,{placement:r,overflows:y}],!y.every((e=>e<=0))){var w,x;const e=(null!=(w=null==(x=o.flip)?void 0:x.index)?w:0)+1,t=v[e];if(t)return{data:{index:e,overflows:b},reset:{placement:t}};let n="bottom";switch(f){case"bestFit":{var _;const e=null==(_=b.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:_[0].placement;e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};function RT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function TT(e){return Pk.some((t=>e[t]>=0))}const uW=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:r}=e;switch(t){case"referenceHidden":{const t=RT(await Cv(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:TT(t)}}}case"escaped":{const t=RT(await Cv(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:TT(t)}}}default:return{}}}}},lW=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=mp(n),u=Uv(n),s="x"===Zh(n),l=["left","top"].includes(a)?-1:1,c=i&&s?-1:1,d="function"==typeof t?t(e):t;let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return u&&"number"==typeof m&&(p="end"===u?-1*m:m),s?{x:p*c,y:f*l}:{x:f*l,y:p*c}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};function Rk(e){return"x"===e?"y":"x"}const cW=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=e,l={x:n,y:r},c=await Cv(t,s),d=Zh(mp(o)),f=Rk(d);let p=l[d],m=l[f];if(i){const e="y"===d?"bottom":"right";p=RS(p+c["y"===d?"top":"left"],p,p-c[e])}if(a){const e="y"===f?"bottom":"right";m=RS(m+c["y"===f?"top":"left"],m,m-c[e])}const h=u.fn({...t,[d]:p,[f]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},dW=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:u=0,mainAxis:s=!0,crossAxis:l=!0}=e,c={x:n,y:r},d=Zh(o),f=Rk(d);let p=c[d],m=c[f];const h="function"==typeof u?u({...i,placement:o}):u,v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+v.mainAxis,n=i.reference[d]+i.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var g,y,b,w;const e="y"===d?"width":"height",t=["top","left"].includes(mp(o)),n=i.reference[f]-i.floating[e]+(t&&null!=(g=null==(y=a.offset)?void 0:y[f])?g:0)+(t?0:v.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:null!=(b=null==(w=a.offset)?void 0:w[f])?b:0)-(t?v.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}},fW=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a,...u}=e,s=await Cv(t,u),l=mp(n),c=Uv(n);let d,f;"top"===l||"bottom"===l?(d=l,f=c===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(f=l,d="end"===c?"top":"bottom");const p=Lf(s.left,0),m=Lf(s.right,0),h=Lf(s.top,0),v=Lf(s.bottom,0),g={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==h||0!==v?h+v:Lf(s.top,s.bottom)):s[d]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==p||0!==m?p+m:Lf(s.left,s.right)):s[f])},y=await o.getDimensions(i.floating);null==a||a({...t,...g});const b=await o.getDimensions(i.floating);return y.width!==b.width||y.height!==b.height?{reset:{rects:!0}}:{}}}};function Tk(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Ml(e){if(null==e)return window;if(!Tk(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function zv(e){return Ml(e).getComputedStyle(e)}function $l(e){return Tk(e)?"":e?(e.nodeName||"").toLowerCase():""}function Ok(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function yu(e){return e instanceof Ml(e).HTMLElement}function bd(e){return e instanceof Ml(e).Element}function _C(e){return!(typeof ShadowRoot>"u")&&(e instanceof Ml(e).ShadowRoot||e instanceof ShadowRoot)}function Wy(e){const{overflow:t,overflowX:n,overflowY:r}=zv(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function pW(e){return["table","td","th"].includes($l(e))}function OT(e){const t=/firefox/i.test(Ok()),n=zv(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function Ak(){return!/^((?!chrome|android).)*safari/i.test(Ok())}const AT=Math.min,pv=Math.max,oy=Math.round;function Cl(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const u=e.getBoundingClientRect();let s=1,l=1;t&&yu(e)&&(s=e.offsetWidth>0&&oy(u.width)/e.offsetWidth||1,l=e.offsetHeight>0&&oy(u.height)/e.offsetHeight||1);const c=bd(e)?Ml(e):window,d=!Ak()&&n,f=(u.left+(d&&null!=(r=null==(o=c.visualViewport)?void 0:o.offsetLeft)?r:0))/s,p=(u.top+(d&&null!=(i=null==(a=c.visualViewport)?void 0:a.offsetTop)?i:0))/l,m=u.width/s,h=u.height/l;return{width:m,height:h,top:p,right:f+m,bottom:p+h,left:f,x:f,y:p}}function md(e){return(t=e,(t instanceof Ml(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function qy(e){return bd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Dk(e){return Cl(md(e)).left+qy(e).scrollLeft}function hW(e,t,n){const r=yu(t),o=md(t),i=Cl(e,r&&function(e){const t=Cl(e);return oy(t.width)!==e.offsetWidth||oy(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const u={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==$l(t)||Wy(o))&&(a=qy(t)),yu(t)){const e=Cl(t,!0);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=Dk(o));return{x:i.left+a.scrollLeft-u.x,y:i.top+a.scrollTop-u.y,width:i.width,height:i.height}}function Nk(e){return"html"===$l(e)?e:e.assignedSlot||e.parentNode||(_C(e)?e.host:null)||md(e)}function DT(e){return yu(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function TS(e){const t=Ml(e);let n=DT(e);for(;n&&pW(n)&&"static"===getComputedStyle(n).position;)n=DT(n);return n&&("html"===$l(n)||"body"===$l(n)&&"static"===getComputedStyle(n).position&&!OT(n))?t:n||function(e){let t=Nk(e);for(_C(t)&&(t=t.host);yu(t)&&!["html","body"].includes($l(t));){if(OT(t))return t;t=t.parentNode}return null}(e)||t}function NT(e){if(yu(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Cl(e);return{width:t.width,height:t.height}}function kk(e){const t=Nk(e);return["html","body","#document"].includes($l(t))?e.ownerDocument.body:yu(t)&&Wy(t)?t:kk(t)}function iy(e,t){var n;void 0===t&&(t=[]);const r=kk(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Ml(r),a=o?[i].concat(i.visualViewport||[],Wy(r)?r:[]):r,u=t.concat(a);return o?u:u.concat(iy(a))}function kT(e,t,n){return"viewport"===t?ny(function(e,t){const n=Ml(e),r=md(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,u=0,s=0;if(o){i=o.width,a=o.height;const e=Ak();(e||!e&&"fixed"===t)&&(u=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:u,y:s}}(e,n)):bd(t)?function(e,t){const n=Cl(e,!1,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:r,left:o,x:o,y:r,right:o+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):ny(function(e){var t;const n=md(e),r=qy(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=pv(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=pv(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let u=-r.scrollLeft+Dk(e);const s=-r.scrollTop;return"rtl"===zv(o||n).direction&&(u+=pv(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:u,y:s}}(md(e)))}function mW(e){const t=iy(e),n=["absolute","fixed"].includes(zv(e).position)&&yu(e)?TS(e):e;return bd(n)?t.filter((e=>bd(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&_C(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==$l(e))):[]}const vW={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?mW(t):[].concat(n),r],a=i[0],u=i.reduce(((e,n)=>{const r=kT(t,n,o);return e.top=pv(r.top,e.top),e.right=AT(r.right,e.right),e.bottom=AT(r.bottom,e.bottom),e.left=pv(r.left,e.left),e}),kT(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=yu(n),i=md(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const u={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==$l(n)||Wy(i))&&(a=qy(n)),yu(n))){const e=Cl(n,!0);u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+u.x,y:t.y-a.scrollTop+u.y}},isElement:bd,getDimensions:NT,getOffsetParent:TS,getDocumentElement:md,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:hW(t,TS(n),r),floating:{...NT(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===zv(e).direction};function gW(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:u=!1}=r,s=o&&!u,l=i&&!u,c=s||l?[...bd(e)?iy(e):[],...iy(t)]:[];c.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));let d,f=null;if(a){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),bd(e)&&!u&&f.observe(e),f.observe(t)}let p=u?Cl(e):null;return u&&function t(){const r=Cl(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{s&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,u&&cancelAnimationFrame(d)}}const yW=(e,t,n)=>nW(e,t,{platform:vW,...n});var OS=typeof document<"u"?ip:Ze;function AS(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!AS(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||AS(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function wW(e){const t=k.useRef(e);return OS((()=>{t.current=e})),t}function _W(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===e?{}:e;const i=k.useRef(null),a=k.useRef(null),u=wW(o),s=k.useRef(null),[l,c]=k.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=k.useState(t);AS(null==d?void 0:d.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||f(t);const p=k.useCallback((()=>{!i.current||!a.current||yW(i.current,a.current,{middleware:d,placement:n,strategy:r}).then((e=>{m.current&&_u.flushSync((()=>{c(e)}))}))}),[d,n,r]);OS((()=>{m.current&&p()}),[p]);const m=k.useRef(!1);OS((()=>(m.current=!0,()=>{m.current=!1})),[]);const h=k.useCallback((()=>{if("function"==typeof s.current&&(s.current(),s.current=null),i.current&&a.current)if(u.current){const e=u.current(i.current,a.current,p);s.current=e}else p()}),[p,u]),v=k.useCallback((e=>{i.current=e,h()}),[h]),g=k.useCallback((e=>{a.current=e,h()}),[h]),y=k.useMemo((()=>({reference:i,floating:a})),[]);return k.useMemo((()=>({...l,update:p,refs:y,reference:v,floating:g})),[l,p,y,v,g])}const bW=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn:e=>function(e){return Object.prototype.hasOwnProperty.call(e,"current")}(t)?null!=t.current?ET({element:t.current,padding:n}).fn(e):{}:t?ET({element:t,padding:n}).fn(e):{}}};function xW(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function SW(...e){return t=>e.forEach((e=>xW(e,t)))}const Mk=Le(((e,t)=>{const{children:n,...r}=e,o=na.toArray(n),i=o.find(CW);if(i){const e=i.props.children,n=o.map((t=>t===i?na.count(e)>1?na.only(null):mu(e)?e.props.children:null:t));return oe(DS,Ee({},r,{ref:t}),mu(e)?sp(e,void 0,n):null)}return oe(DS,Ee({},r,{ref:t}),n)}));Mk.displayName="Slot";const DS=Le(((e,t)=>{const{children:n,...r}=e;return mu(n)?sp(n,{...IW(r,n.props),ref:SW(t,n.ref)}):na.count(n)>1?na.only(null):null}));DS.displayName="SlotClone";const $W=({children:e})=>oe(ap,null,e);function CW(e){return mu(e)&&e.type===$W}function IW(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const EW=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],NS=EW.reduce(((e,t)=>{const n=Le(((e,n)=>{const{asChild:r,...o}=e,i=r?Mk:t;return Ze((()=>{window[Symbol.for("radix-ui")]=!0}),[]),oe(i,Ee({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function PW(e,t){e&&_u.flushSync((()=>e.dispatchEvent(t)))}function RW(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function TW(...e){return t=>e.forEach((e=>RW(e,t)))}function OW(...e){return yt(TW(...e),e)}const Vf=null!=globalThis&&globalThis.document?ip:()=>{};function AW(e){const[t,n]=ut(void 0);return Vf((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t)||!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}const Lk="Popper",[bC,Fk]=Ik(Lk),[JX,DW]=bC(Lk),ay="PopperContent",[NW,ZX]=bC(ay),[kW,MW]=bC(ay,{hasParent:!1,positionUpdateFns:new Set}),LW=Le(((e,t)=>{var n,r,o,i,a,u,s,l;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:m=0,arrowPadding:h=0,collisionBoundary:v=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,avoidCollisions:w=!0,onPlaced:x,..._}=e,k=DW(ay,c),[S,A]=ut(null),E=OW(t,(e=>A(e))),[I,C]=ut(null),P=AW(I),q=null!==(n=null==P?void 0:P.width)&&void 0!==n?n:0,O=null!==(r=null==P?void 0:P.height)&&void 0!==r?r:0,T=d+("center"!==p?"-"+p:""),N="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},R=Array.isArray(v)?v:[v],D=R.length>0,j={padding:N,boundary:R.filter(BW),altBoundary:D},{reference:L,floating:M,strategy:$,x:B,y:F,placement:z,middlewareData:V,update:U}=_W({strategy:"fixed",placement:T,whileElementsMounted:gW,middleware:[jW(),lW({mainAxis:f+O,alignmentAxis:m}),w?cW({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?dW():void 0,...j}):void 0,I?bW({element:I,padding:h}):void 0,w?sW({...j}):void 0,fW({...j,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}}),VW({arrowWidth:q,arrowHeight:O}),b?uW({strategy:"referenceHidden"}):void 0].filter(FW)});Vf((()=>{L(k.anchor)}),[L,k.anchor]);const W=null!==B&&null!==F,[H,G]=Bk(z),K=zy(x);Vf((()=>{W&&(null==K||K())}),[W,K]);const Q=null===(o=V.arrow)||void 0===o?void 0:o.x,Y=null===(i=V.arrow)||void 0===i?void 0:i.y,X=0!==(null===(a=V.arrow)||void 0===a?void 0:a.centerOffset),[Z,J]=ut();Vf((()=>{S&&J(window.getComputedStyle(S).zIndex)}),[S]);const{hasParent:ee,positionUpdateFns:te}=MW(ay,c),ne=!ee;ip((()=>{if(!ne)return te.add(U),()=>{te.delete(U)}}),[ne,te,U]),Vf((()=>{ne&&W&&Array.from(te).reverse().forEach((e=>requestAnimationFrame(e)))}),[ne,W,te]);const re={"data-side":H,"data-align":G,..._,ref:E,style:{..._.style,animation:W?void 0:"none",opacity:null!==(u=V.hide)&&void 0!==u&&u.referenceHidden?0:void 0}};return oe("div",{ref:M,"data-radix-popper-content-wrapper":"",style:{position:$,left:0,top:0,transform:W?`translate3d(${Math.round(B)}px, ${Math.round(F)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[null===(s=V.transformOrigin)||void 0===s?void 0:s.x,null===(l=V.transformOrigin)||void 0===l?void 0:l.y].join(" ")},dir:e.dir},oe(NW,{scope:c,placedSide:H,onArrowChange:C,arrowX:Q,arrowY:Y,shouldHideArrow:X},ne?oe(kW,{scope:c,hasParent:!0,positionUpdateFns:te},oe(NS.div,re)):oe(NS.div,re)))}));function FW(e){return void 0!==e}function BW(e){return null!==e}const jW=()=>({name:"anchorCssProperties",fn(e){const{rects:t,elements:n}=e,{width:r,height:o}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${o}px`),{}}}),VW=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:u,rects:s,middlewareData:l}=t,c=0!==(null===(n=l.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,m]=Bk(u),h={start:"0%",center:"50%",end:"100%"}[m],v=(null!==(r=null===(o=l.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(i=null===(a=l.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=c?h:`${v}px`,b=-f+"px"):"top"===p?(y=c?h:`${v}px`,b=`${s.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?h:`${g}px`):"left"===p&&(y=`${s.floating.width+f}px`,b=c?h:`${g}px`),{data:{x:y,y:b}}}});function Bk(e){const[t,n="center"]=e.split("-");return[t,n]}const UW=LW;function zW(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function WW(...e){return t=>e.forEach((e=>zW(e,t)))}function qW(...e){return yt(WW(...e),e)}function GW(e,t){return iA(((e,n)=>t[e][n]??e),e)}const jk=e=>{const{present:t,children:n}=e,r=HW(t),o="function"==typeof n?n({present:r.isPresent}):na.only(n),i=qW(r.ref,o.ref);return"function"==typeof n||r.isPresent?sp(o,{ref:i}):null};function HW(e){const[t,n]=ut(),r=We({}),o=We(e),i=We("none"),a=e?"mounted":"unmounted",[u,s]=GW(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Ze((()=>{const e=Fg(r.current);i.current="mounted"===u?e:"none"}),[u]),Vf((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Fg(t);e?s("MOUNT"):"none"===a||"none"===(null==t?void 0:t.display)?s("UNMOUNT"):s(n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,s]),Vf((()=>{if(t){const e=e=>{const n=Fg(r.current).includes(e.animationName);e.target===t&&n&&_u.flushSync((()=>s("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=Fg(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}s("ANIMATION_END")}),[t,s]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:yt((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Fg(e){return(null==e?void 0:e.animationName)||"none"}function KW(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function QW(...e){return t=>e.forEach((e=>KW(e,t)))}function YW(...e){return yt(QW(...e),e)}function XW(e,t=(null==globalThis?void 0:globalThis.document)){const n=zy(e);Ze((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}jk.displayName="Presence";const kS="dismissableLayer.update",JW="dismissableLayer.pointerDownOutside",ZW="dismissableLayer.focusOutside";let MT;const eq=hu({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tq=Le(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:u,onDismiss:s,...l}=e,c=op(eq),[d,f]=ut(null),p=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=ut({}),h=YW(t,(e=>f(e))),v=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(g),b=d?v.indexOf(d):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,x=b>=y,_=nq((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));!x||n||(null==i||i(e),null==u||u(e),e.defaultPrevented||null==s||s())}),p),k=rq((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==a||a(e),null==u||u(e),e.defaultPrevented||null==s||s())}),p);return XW((e=>{b===c.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),p),Ze((()=>{if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(MT=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),LT(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=MT)}}),[d,p,r,c]),Ze((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),LT())}),[d,c]),Ze((()=>{const e=()=>m({});return document.addEventListener(kS,e),()=>document.removeEventListener(kS,e)}),[]),oe(NS.div,Ee({},l,{ref:h,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:qf(e.onFocusCapture,k.onFocusCapture),onBlurCapture:qf(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:qf(e.onPointerDownCapture,_.onPointerDownCapture)}))}));function nq(e,t=(null==globalThis?void 0:globalThis.document)){const n=zy(e),r=We(!1),o=We((()=>{}));return Ze((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Vk(JW,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function rq(e,t=(null==globalThis?void 0:globalThis.document)){const n=zy(e),r=We(!1);return Ze((()=>{const e=e=>{e.target&&!r.current&&Vk(ZW,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function LT(){const e=new CustomEvent(kS);document.dispatchEvent(e)}function Vk(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?PW(o,i):o.dispatchEvent(i)}let cx;const Uk="HoverCard",[zk,eJ]=Ik(Uk,[Fk]),oq=Fk(),[tJ,Wk]=zk(Uk),iq="HoverCardPortal",[nJ,aq]=zk(iq,{forceMount:void 0}),MS="HoverCardContent",sq=Le(((e,t)=>{const n=aq(MS,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,i=Wk(MS,e.__scopeHoverCard);return oe(jk,{present:r||i.open},oe(uq,Ee({"data-state":i.open?"open":"closed"},o,{onPointerEnter:qf(e.onPointerEnter,FT(i.onOpen)),onPointerLeave:qf(e.onPointerLeave,FT(i.onClose)),ref:t})))})),uq=Le(((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,...u}=e,s=Wk(MS,n),l=oq(n),c=We(null),d=tW(t,c),[f,p]=ut(!1);return Ze((()=>{if(f){const e=document.body;return cx=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=cx,e.style.webkitUserSelect=cx}}}),[f]),Ze((()=>{if(c.current){const e=()=>{p(!1),s.isPointerDownOnContentRef.current=!1,setTimeout((()=>{var e;""!==(null===(e=document.getSelection())||void 0===e?void 0:e.toString())&&(s.hasSelectionRef.current=!0)}))};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),s.hasSelectionRef.current=!1,s.isPointerDownOnContentRef.current=!1}}}),[s.isPointerDownOnContentRef,s.hasSelectionRef]),Ze((()=>{c.current&&lq(c.current).forEach((e=>e.setAttribute("tabindex","-1")))})),oe(tq,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:a,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:qf(i,(e=>{e.preventDefault()})),onDismiss:s.onDismiss},oe(UW,Ee({},l,u,{onPointerDown:qf(u.onPointerDown,(e=>{e.currentTarget.contains(e.target)&&p(!0),s.hasSelectionRef.current=!1,s.isPointerDownOnContentRef.current=!0})),ref:d,style:{...u.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})))}));function FT(e){return t=>"touch"===t.pointerType?void 0:e()}function lq(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}const qk=sq,cq=k.forwardRef((({className:e,align:t="center",sideOffset:n=4,...r},o)=>q.jsx(qk,{ref:o,align:t,sideOffset:n,className:we("z-50 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})));cq.displayName=qk.displayName;const Gk=k.forwardRef((({className:e,type:t,...n},r)=>{const{error:o}=$d();return q.jsx("input",{type:t,title:n.disabled?"Disabled":"",className:we("flex w-full rounded-m px-s py-3.5 text-base text-gray-900 outline outline-1 outline-input ring-offset-background transition-all duration-200 ease-in-out file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-base placeholder:text-gray-400 placeholder:text-muted-foreground focus-visible:bg-gray-50 focus-visible:text-gray-900 focus-visible:outline-2 focus-visible:outline-blue_120 enabled:hover:outline-2 enabled:hover:outline-gray-400 disabled:bg-transparent disabled:text-gray-300 disabled:outline-gray-200 disabled:ring-0 disabled:ring-transparent disabled:placeholder:text-gray-300",{"bg-red_30_17 outline-red-dark":!!o},e),ref:r,...n})}));function dq(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>k.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return k.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=k.createContext(r),i=n.length;n=[...n,r];const a=t=>{var n;const{scope:r,children:a,...u}=t,s=(null==(n=null==r?void 0:r[e])?void 0:n[i])||o,l=k.useMemo((()=>u),Object.values(u));return q.jsx(s.Provider,{value:l,children:a})};return a.displayName=t+"Provider",[a,function(n,a){var u;const s=(null==(u=null==a?void 0:a[e])?void 0:u[i])||o,l=k.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},fq(r,...t)]}function fq(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return k.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function BT(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function pq(...e){return t=>{let n=!1;const r=e.map((e=>{const r=BT(e,t);return!n&&"function"==typeof r&&(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():BT(e[t],null)}}}}function hq(e){const t=mq(e),n=k.forwardRef(((e,n)=>{const{children:r,...o}=e,i=k.Children.toArray(r),a=i.find(gq);if(a){const e=a.props.children,r=i.map((t=>t===a?k.Children.count(e)>1?k.Children.only(null):k.isValidElement(e)?e.props.children:null:t));return q.jsx(t,{...o,ref:n,children:k.isValidElement(e)?k.cloneElement(e,void 0,r):null})}return q.jsx(t,{...o,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function mq(e){const t=k.forwardRef(((e,t)=>{const{children:n,...r}=e;if(k.isValidElement(n)){const e=wq(n),o=yq(r,n.props);return n.type!==k.Fragment&&(o.ref=t?pq(t,e):e),k.cloneElement(n,o)}return k.Children.count(n)>1?k.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}Gk.displayName="Input";var vq=Symbol("radix.slottable");function gq(e){return k.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===vq}function yq(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function wq(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var _q=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Hk=_q.reduce(((e,t)=>{const n=hq(`Primitive.${t}`),r=k.forwardRef(((e,r)=>{const{asChild:o,...i}=e,a=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),q.jsx(a,{...i,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{}),xC="Progress",SC=100,[bq,rJ]=dq(xC),[xq,Sq]=bq(xC),Kk=k.forwardRef(((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:i=$q,...a}=e;(o||0===o)&&!jT(o)&&console.error(Cq(`${o}`,"Progress"));const u=jT(o)?o:SC;null!==r&&!VT(r,u)&&console.error(Iq(`${r}`,"Progress"));const s=VT(r,u)?r:null,l=sy(s)?i(s,u):void 0;return q.jsx(xq,{scope:n,value:s,max:u,children:q.jsx(Hk.div,{"aria-valuemax":u,"aria-valuemin":0,"aria-valuenow":sy(s)?s:void 0,"aria-valuetext":l,role:"progressbar","data-state":Xk(s,u),"data-value":s??void 0,"data-max":u,...a,ref:t})})}));Kk.displayName=xC;var Qk="ProgressIndicator",Yk=k.forwardRef(((e,t)=>{const{__scopeProgress:n,...r}=e,o=Sq(Qk,n);return q.jsx(Hk.div,{"data-state":Xk(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})}));function $q(e,t){return`${Math.round(e/t*100)}%`}function Xk(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function sy(e){return"number"==typeof e}function jT(e){return sy(e)&&!isNaN(e)&&e>0}function VT(e,t){return sy(e)&&!isNaN(e)&&e<=t&&e>=0}function Cq(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${SC}\`.`}function Iq(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:\n - a positive number\n - less than the value passed to \`max\` (or ${SC} if no \`max\` prop is set)\n - \`null\` or \`undefined\` if the progress is indeterminate.\n\nDefaulting to \`null\`.`}Yk.displayName=Qk;var Jk=Kk,Eq=Yk;const Pq=k.forwardRef((({className:e,value:t,indicatorClassName:n,...r},o)=>q.jsx(Jk,{ref:o,className:we("relative h-[7px] w-full overflow-hidden rounded-full bg-blue_10",e),...r,children:q.jsx(Eq,{className:we("h-full w-full flex-1 rounded-full bg-blue_100 transition-all",n),style:{transform:`translateX(-${100-(t||0)}%)`}})})));Pq.displayName=Jk.displayName;const Zk="Radio",[Rq,e3]=ai(Zk),[Tq,Oq]=Rq(Zk),Aq=Le(((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:a,value:u="on",onCheck:s,...l}=e,[c,d]=ut(null),f=Ht(t,(e=>d(e))),p=We(!1),m=!c||!!c.closest("form");return oe(Tq,{scope:n,checked:o,disabled:a},oe(ht.button,Ee({type:"button",role:"radio","aria-checked":o,"data-state":t3(o),"data-disabled":a?"":void 0,disabled:a,value:u},l,{ref:f,onClick:ot(e.onClick,(e=>{o||null==s||s(),m&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())}))})),m&&oe(kq,{control:c,bubbles:!p.current,name:r,value:u,checked:o,required:i,disabled:a,style:{transform:"translateX(-100%)"}}))})),Dq="RadioIndicator",Nq=Le(((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,i=Oq(Dq,n);return oe(ia,{present:r||i.checked},oe(ht.span,Ee({"data-state":t3(i.checked),"data-disabled":i.disabled?"":void 0},o,{ref:t})))})),kq=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=We(null),a=Oy(n),u=Ay(t);return Ze((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[a,n,r]),oe("input",Ee({type:"radio","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:i,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function t3(e){return e?"checked":"unchecked"}const Mq=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],n3="RadioGroup",[Lq,oJ]=ai(n3,[Xh,e3]),r3=Xh(),o3=e3(),[Fq,Bq]=Lq(n3),jq=Le(((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:a=!1,disabled:u=!1,orientation:s,dir:l,loop:c=!0,onValueChange:d,...f}=e,p=r3(n),m=Y$(l),[h,v]=vd({prop:i,defaultProp:o,onChange:d});return oe(Fq,{scope:n,name:r,required:a,disabled:u,value:h,onValueChange:v},oe(aC,Ee({asChild:!0},p,{orientation:s,dir:m,loop:c}),oe(ht.div,Ee({role:"radiogroup","aria-required":a,"aria-orientation":s,"data-disabled":u?"":void 0,dir:m},f,{ref:t}))))})),Vq="RadioGroupItem",Uq=Le(((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,i=Bq(Vq,n),a=i.disabled||r,u=r3(n),s=o3(n),l=We(null),c=Ht(t,l),d=i.value===o.value,f=We(!1);return Ze((()=>{const e=e=>{Mq.includes(e.key)&&(f.current=!0)},t=()=>f.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),oe(sC,Ee({asChild:!0},u,{focusable:!a,active:d}),oe(Aq,Ee({disabled:a,required:i.required,checked:d},s,o,{name:i.name,ref:c,onCheck:()=>i.onValueChange(o.value),onKeyDown:ot((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:ot(o.onFocus,(()=>{var e;f.current&&(null===(e=l.current)||void 0===e||e.click())}))})))})),zq=Le(((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=o3(n);return oe(Nq,Ee({},o,r,{ref:t}))})),i3=jq,a3=Uq,Wq=zq,qq=k.forwardRef((({className:e,...t},n)=>q.jsx(i3,{className:we("grid gap-2",e),...t,ref:n})));qq.displayName=i3.displayName;const Gq=k.forwardRef((({className:e,...t},n)=>q.jsx(a3,{ref:n,className:we("aspect-square size-6 rounded-full border border-gray-300 disabled:cursor-not-allowed disabled:border-gray-100 disabled:bg-gray-100","data-[state=checked]:border-blue_100 data-[state=checked]:bg-blue_100 hover:data-[state=checked]:border-blue_120","disabled:data-[state=checked]:border-gray-100 disabled:data-[state=checked]:bg-gray-100","transition-[border] duration-200 hover:data-[state=checked]:bg-blue_120 md:hover:border-2",e),...t,children:q.jsx(Wq,{className:"flex items-center justify-center",children:q.jsx(CL,{className:"stack-animate size-2 border-none",style:{fill:t.disabled?"var(--gray-300)":"white",color:t.disabled?"var(--gray-300)":"white"}})})})));Gq.displayName=a3.displayName;const Hq=u2,Kq=wy,s3=k.forwardRef((({className:e,...t},n)=>q.jsx(qh,{className:we("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n})));s3.displayName=qh.displayName;const Qq=wu("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),u3=k.forwardRef((({side:e="right",className:t,overlayClassName:n,children:r,...o},i)=>q.jsxs(Kq,{children:[q.jsx(s3,{className:we("bg-gray-900/70",n)}),q.jsxs(Gh,{ref:i,className:we(Qq({side:e}),t),...o,children:[r,q.jsxs(_y,{className:"absolute right-4 top-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[q.jsx(py,{className:"h-4 w-4"}),q.jsx("span",{className:"sr-only",children:"Close"})]})]})]})));u3.displayName=Gh.displayName;const l3=({className:e,...t})=>q.jsx("div",{className:we("flex flex-col space-y-2 text-center sm:text-left",e),...t});l3.displayName="SheetHeader";const c3=k.forwardRef((({className:e,...t},n)=>q.jsx(Dv,{ref:n,className:we("text-lg font-semibold text-foreground",e),...t})));c3.displayName=Dv.displayName;const d3=k.forwardRef((({className:e,...t},n)=>q.jsx(Nv,{ref:n,className:we("text-sm text-muted-foreground",e),...t})));d3.displayName=Nv.displayName;const[Gy,iJ]=ai("Tooltip",[Yh]),Hy=Yh(),Yq="TooltipProvider",Xq=700,LS="tooltip.open",[Jq,$C]=Gy(Yq),Zq=e=>{const{__scopeTooltip:t,delayDuration:n=Xq,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[a,u]=ut(!0),s=We(!1),l=We(0);return Ze((()=>{const e=l.current;return()=>window.clearTimeout(e)}),[]),oe(Jq,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:yt((()=>{window.clearTimeout(l.current),u(!1)}),[]),onClose:yt((()=>{window.clearTimeout(l.current),l.current=window.setTimeout((()=>u(!0)),r)}),[r]),isPointerInTransitRef:s,onPointerInTransitChange:yt((e=>{s.current=e}),[]),disableHoverableContent:o},i)},CC="Tooltip",[eG,Wv]=Gy(CC),tG=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:a,delayDuration:u}=e,s=$C(CC,e.__scopeTooltip),l=Hy(t),[c,d]=ut(null),f=pd(),p=We(0),m=a??s.disableHoverableContent,h=u??s.delayDuration,v=We(!1),[g=!1,y]=vd({prop:r,defaultProp:o,onChange:e=>{e?(s.onOpen(),document.dispatchEvent(new CustomEvent(LS))):s.onClose(),null==i||i(e)}}),b=xn((()=>g?v.current?"delayed-open":"instant-open":"closed"),[g]),w=yt((()=>{window.clearTimeout(p.current),v.current=!1,y(!0)}),[y]),x=yt((()=>{window.clearTimeout(p.current),y(!1)}),[y]),_=yt((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{v.current=!0,y(!0)}),h)}),[h,y]);return Ze((()=>()=>window.clearTimeout(p.current)),[]),oe(ON,l,oe(eG,{scope:t,contentId:f,open:g,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:yt((()=>{s.isOpenDelayed?_():w()}),[s.isOpenDelayed,_,w]),onTriggerLeave:yt((()=>{m?x():window.clearTimeout(p.current)}),[x,m]),onOpen:w,onClose:x,disableHoverableContent:m},n))},UT="TooltipTrigger",nG=Le(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Wv(UT,n),i=$C(UT,n),a=Hy(n),u=Ht(t,We(null),o.onTriggerChange),s=We(!1),l=We(!1),c=yt((()=>s.current=!1),[]);return Ze((()=>()=>document.removeEventListener("pointerup",c)),[c]),oe(rC,Ee({asChild:!0},a),oe(ht.button,Ee({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:u,onPointerMove:ot(e.onPointerMove,(e=>{"touch"!==e.pointerType&&!l.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),l.current=!0)})),onPointerLeave:ot(e.onPointerLeave,(()=>{o.onTriggerLeave(),l.current=!1})),onPointerDown:ot(e.onPointerDown,(()=>{s.current=!0,document.addEventListener("pointerup",c,{once:!0})})),onFocus:ot(e.onFocus,(()=>{s.current||o.onOpen()})),onBlur:ot(e.onBlur,o.onClose),onClick:ot(e.onClick,o.onClose)})))})),f3="TooltipPortal",[rG,oG]=Gy(f3,{forceMount:void 0}),iG=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=Wv(f3,t);return oe(rG,{scope:t,forceMount:n},oe(ia,{present:n||i.open},oe(my,{asChild:!0,container:o},r)))},Iv="TooltipContent",p3=Le(((e,t)=>{const n=oG(Iv,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=Wv(Iv,e.__scopeTooltip);return oe(ia,{present:r||a.open},a.disableHoverableContent?oe(h3,Ee({side:o},i,{ref:t})):oe(aG,Ee({side:o},i,{ref:t})))})),aG=Le(((e,t)=>{const n=Wv(Iv,e.__scopeTooltip),r=$C(Iv,e.__scopeTooltip),o=We(null),i=Ht(t,o),[a,u]=ut(null),{trigger:s,onClose:l}=n,c=o.current,{onPointerInTransitChange:d}=r,f=yt((()=>{u(null),d(!1)}),[d]),p=yt(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=mG([...fG(r,dG(r,n.getBoundingClientRect())),...pG(t.getBoundingClientRect())]);u(o),d(!0)}),[d]);return Ze((()=>()=>f()),[f]),Ze((()=>{if(s&&c){const e=e=>p(e,c),t=e=>p(e,s);return s.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{s.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}}),[s,c,p,f]),Ze((()=>{if(a){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==s?void 0:s.contains(t))||(null==c?void 0:c.contains(t)),o=!hG(n,a);r?f():o&&(f(),l())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[s,c,a,l,f]),oe(h3,Ee({},e,{ref:i}))})),[sG,uG]=Gy(CC,{isInside:!1}),h3=Le(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...u}=e,s=Wv(Iv,n),l=Hy(n),{onClose:c}=s;return Ze((()=>(document.addEventListener(LS,c),()=>document.removeEventListener(LS,c))),[c]),Ze((()=>{if(s.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(s.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[s.trigger,c]),oe(hy,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},oe(oC,Ee({"data-state":s.stateAttribute},l,u,{ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),oe(c$,null,r),oe(sG,{scope:n,isInside:!0},oe(qU,{id:s.contentId,role:"tooltip"},o||r))))})),lG="TooltipArrow",cG=Le(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Hy(n);return uG(lG,n).isInside?null:oe(wV,Ee({},o,r,{ref:t}))}));function dG(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function fG(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}function pG(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function hG(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,u=t[e].y,s=t[i].x,l=t[i].y;u>r!=l>r&&n<(s-a)*(r-u)/(l-u)+a&&(o=!o)}return o}function mG(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),vG(t)}function vG(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const gG=iG,m3=p3,yG=cG,wG=()=>{const e=window.innerWidth;return e<768?"mobile":e<1024?"tablet":"desktop"},_G=e=>{if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)},bG=e=>_G(e)&&"type"in e&&"string"==typeof e.type,Ct=e=>{const t=t=>({type:e,payload:t});return t.toString=()=>`${e}`,t.type=e,t.match=t=>bG(t)&&t.type===e,t};Ct("remoteReady"),Ct("askLogin"),Ct("reselectUser"),Ct("requestLogout");const xG=Ct("setConfirmLeavePage"),v3=Ct("requestChangePath");Ct("wsSubscribe"),Ct("wsUnSubscribe"),Ct("hostStoreConnect"),Ct("remoteLogin");const SG=Ct("remoteLogout");Ct("wsOnMessage");const $G=Ct("setRouterPath"),CG=Ct("setDeviceType"),IG=Ct("setDeviceWidth"),EG=Ct("setUserError"),PG=Ct("setUserIsError"),RG=Ct("setUserPending"),TG=Ct("setUserSuccess"),OG=Ct("setUserData"),AG=Ct("updateAccountData"),DG=Ct("updateUser"),NG=Ct("addNotification"),kG=Ct("markNotification"),MG=Ct("setNotificationsError"),LG=Ct("setNotificationsList"),FG=Ct("setNotificationsPending"),BG=Ct("setNotificationsTotalCount"),jG=Ct("setNotificationsUnreadCount"),VG=Ct("acceptAllFollowRequests"),UG=Ct("resetNotificationsState"),zG=Ct("undoNotification"),WG=Ct("setInstanceInfo"),qG=Ct("setInstanceInfoPending"),GG=Ct("setInstanceInfoError"),HG=Ct("setPlatformSettings"),KG=Ct("setProfileSettings");Ct("setGroupData"),Ct("setGroupLoading"),Ct("requestLocalStorageGet"),Ct("requestLocalStorageSet"),Ct("requestLocalStorageRemove"),Ct("requestLocalStorageClear"),Ct("requestLocalStorageKeys"),Ct("requestLocalStorageHas"),Ct("sendLocalStorageResponse"),Ct("sendLocalStorageChanged");const QG=e=>{try{const{type:t,payload:n}=e,r={type:t};return void 0!==n&&(r.payload=JSON.parse(JSON.stringify(n))),r}catch(t){return El.warn(`Could not serialize action type: ${e.type}`,t),{type:e.type,payload:`[Non-serializable payload for action: ${e.type}]`}}},YG=({action:e,windowElement:t,whitelist:n})=>{if(t)try{const{type:r}=e;if(!n.some((({type:e})=>e===r||"*"===e)))return;const o=QG(e);t.postMessage(o,"*")}catch(e){El.error("Failed to process or send message:",e)}},XG=({onMessage:e,whitelist:t,sourceWindow:n})=>{const r=r=>{const o=r.origin===window.location.origin,i=!n||r.source===n,a=r.data&&"object"==typeof r.data&&"type"in r.data,u=t.some((({type:e})=>e===r.data.type||"*"===e));!o&&i&&a&&u&&e(r.data)};return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}},zT=Al("requestMicroFrontendFetch"),JG=Al("sendMicroFrontendFetchResponse"),ZG={deviceType:wG(),deviceWidth:window.innerWidth},g3=Wo({name:"ui",initialState:ZG,reducers:{},extraReducers:e=>{e.addCase(CG,((e,{payload:t})=>{e.deviceType=t})),e.addCase(IG,((e,{payload:t})=>{e.deviceWidth=t}))},selectors:{selectDeviceType:e=>e.deviceType,selectDeviceWidth:e=>e.deviceWidth,selectIsMobile:e=>"mobile"===e.deviceType,selectIsTablet:e=>"tablet"===e.deviceType,selectIsDesktop:e=>"desktop"===e.deviceType}});var dx,WT,fx,qT,px,GT,hx,HT,mx,KT,vx,QT,gx,YT,yx,XT,wx,JT,_x,ZT,bx,eO,xx,tO,Sx,nO,$x,rO,Cx,oO,Ix,iO,Ex,aO,Px,sO,Rx,uO,Tx,lO,Ox,cO,Ax,dO,Dx,fO,Nx,pO,kx,hO,Mx,mO,Lx,vO,Fx,gO,Bx,yO,jx,wO,Vx,_O,Ux,bO,zx,xO,Wx,SO,qx,$O,Gx,CO,Hx,IO,Kx,EO,Qx,PO,Yx,RO,Xx,TO;function y3(){if(WT)return dx;WT=1;var e=Y2(),t=e&&new e;return dx=t}function w3(){if(qT)return fx;qT=1;var e=k$(),t=y3();return fx=t?function(e,n){return t.set(e,n),e}:e}function Ky(){if(GT)return px;GT=1;var e=Ty(),t=xs();return px=function(n){return function(){var r=arguments;switch(r.length){case 0:return new n;case 1:return new n(r[0]);case 2:return new n(r[0],r[1]);case 3:return new n(r[0],r[1],r[2]);case 4:return new n(r[0],r[1],r[2],r[3]);case 5:return new n(r[0],r[1],r[2],r[3],r[4]);case 6:return new n(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new n(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var o=e(n.prototype),i=n.apply(o,r);return t(i)?i:o}},px}function eH(){if(HT)return hx;HT=1;var e=Ky(),t=si();return hx=function(n,r,o){var i=1&r,a=e(n);return function e(){return(this&&this!==t&&this instanceof e?a:n).apply(i?o:this,arguments)}},hx}function _3(){if(KT)return mx;KT=1;var e=Math.max;return mx=function(t,n,r,o){for(var i=-1,a=t.length,u=r.length,s=-1,l=n.length,c=e(a-u,0),d=Array(l+c),f=!o;++s<l;)d[s]=n[s];for(;++i<u;)(f||i<a)&&(d[r[i]]=t[i]);for(;c--;)d[s++]=t[i++];return d}}function b3(){if(QT)return vx;QT=1;var e=Math.max;return vx=function(t,n,r,o){for(var i=-1,a=t.length,u=-1,s=r.length,l=-1,c=n.length,d=e(a-s,0),f=Array(d+c),p=!o;++i<d;)f[i]=t[i];for(var m=i;++l<c;)f[m+l]=n[l];for(;++u<s;)(p||i<a)&&(f[m+r[u]]=t[i++]);return f}}function tH(){if(YT)return gx;return YT=1,gx=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}}function IC(){if(XT)return yx;return XT=1,yx=function(){}}function EC(){if(JT)return wx;JT=1;var e=Ty(),t=IC();function n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}return n.prototype=e(t.prototype),n.prototype.constructor=n,wx=n}function x3(){if(ZT)return _x;ZT=1;var e=y3(),t=D4();return _x=e?function(t){return e.get(t)}:t}function nH(){if(eO)return bx;eO=1;return bx={}}function rH(){if(tO)return xx;tO=1;var e=nH(),t=Object.prototype.hasOwnProperty;return xx=function(n){for(var r=n.name+"",o=e[r],i=t.call(e,r)?o.length:0;i--;){var a=o[i],u=a.func;if(null==u||u==n)return a.name}return r}}function S3(){if(nO)return Sx;nO=1;var e=Ty(),t=IC();function n(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}return n.prototype=e(t.prototype),n.prototype.constructor=n,Sx=n}function oH(){if(rO)return $x;rO=1;var e=EC(),t=S3(),n=Ry();return $x=function(r){if(r instanceof e)return r.clone();var o=new t(r.__wrapped__,r.__chain__);return o.__actions__=n(r.__actions__),o.__index__=r.__index__,o.__values__=r.__values__,o}}function iH(){if(oO)return Cx;oO=1;var e=EC(),t=S3(),n=IC(),r=Pi(),o=aa(),i=oH(),a=Object.prototype.hasOwnProperty;function u(n){if(o(n)&&!r(n)&&!(n instanceof e)){if(n instanceof t)return n;if(a.call(n,"__wrapped__"))return i(n)}return new t(n)}return u.prototype=n.prototype,u.prototype.constructor=u,Cx=u}function aH(){if(iO)return Ix;iO=1;var e=EC(),t=x3(),n=rH(),r=iH();return Ix=function(o){var i=n(o),a=r[i];if("function"!=typeof a||!(i in e.prototype))return!1;if(o===a)return!0;var u=t(a);return!!u&&o===u[0]}}function $3(){if(aO)return Ex;aO=1;var e=w3(),t=tD()(e);return Ex=t}function sH(){if(sO)return Px;sO=1;var e=/\{\n\/\* \[wrapped with (.+)\] \*/,t=/,? & /;return Px=function(n){var r=n.match(e);return r?r[1].split(t):[]}}function uH(){if(uO)return Rx;uO=1;var e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;return Rx=function(t,n){var r=n.length;if(!r)return t;var o=r-1;return n[o]=(r>1?"& ":"")+n[o],n=n.join(r>2?", ":" "),t.replace(e,"{\n/* [wrapped with "+n+"] */\n")}}function lH(){if(lO)return Tx;lO=1;var e=F$(),t=A4(),n=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];return Tx=function(r,o){return e(n,(function(e){var n="_."+e[0];o&e[1]&&!t(r,n)&&r.push(n)})),r.sort()}}function C3(){if(cO)return Ox;cO=1;var e=sH(),t=uH(),n=nD(),r=lH();return Ox=function(o,i,a){var u=i+"";return n(o,t(u,r(e(u),a)))}}function I3(){if(dO)return Ax;dO=1;var e=aH(),t=$3(),n=C3();return Ax=function(r,o,i,a,u,s,l,c,d,f){var p=8&o;o|=p?32:64,4&(o&=~(p?64:32))||(o&=-4);var m=[r,o,u,p?s:void 0,p?l:void 0,p?void 0:s,p?void 0:l,c,d,f],h=i.apply(void 0,m);return e(r)&&t(h,m),h.placeholder=a,n(h,r,o)}}function E3(){if(fO)return Dx;return fO=1,Dx=function(e){return e.placeholder}}function cH(){if(pO)return Nx;pO=1;var e=Ry(),t=T$(),n=Math.min;return Nx=function(r,o){for(var i=r.length,a=n(o.length,i),u=e(r);a--;){var s=o[a];r[a]=t(s,i)?u[s]:void 0}return r}}function PC(){if(hO)return kx;hO=1;var e="__lodash_placeholder__";return kx=function(t,n){for(var r=-1,o=t.length,i=0,a=[];++r<o;){var u=t[r];(u===n||u===e)&&(t[r]=e,a[i++]=r)}return a}}function P3(){if(mO)return Mx;mO=1;var e=_3(),t=b3(),n=tH(),r=Ky(),o=I3(),i=E3(),a=cH(),u=PC(),s=si();return Mx=function l(c,d,f,p,m,h,v,g,y,b){var w=128&d,x=1&d,_=2&d,k=24&d,S=512&d,A=_?void 0:r(c);return function E(){for(var I=arguments.length,C=Array(I),P=I;P--;)C[P]=arguments[P];if(k)var q=i(E),O=n(C,q);if(p&&(C=e(C,p,m,k)),h&&(C=t(C,h,v,k)),I-=O,k&&I<b){var T=u(C,q);return o(c,d,l,E.placeholder,f,C,T,g,y,b-I)}var N=x?f:this,R=_?N[c]:c;return I=C.length,g?C=a(C,g):S&&I>1&&C.reverse(),w&&y<I&&(C.length=y),this&&this!==s&&this instanceof E&&(R=A||r(R)),R.apply(N,C)}},Mx}function dH(){if(vO)return Lx;vO=1;var e=M$(),t=Ky(),n=P3(),r=I3(),o=E3(),i=PC(),a=si();return Lx=function(u,s,l){var c=t(u);return function t(){for(var d=arguments.length,f=Array(d),p=d,m=o(t);p--;)f[p]=arguments[p];var h=d<3&&f[0]!==m&&f[d-1]!==m?[]:i(f,m);return(d-=h.length)<l?r(u,s,n,t.placeholder,void 0,f,h,void 0,void 0,l-d):e(this&&this!==a&&this instanceof t?c:u,this,f)}},Lx}function fH(){if(gO)return Fx;gO=1;var e=M$(),t=Ky(),n=si();return Fx=function(r,o,i,a){var u=1&o,s=t(r);return function t(){for(var o=-1,l=arguments.length,c=-1,d=a.length,f=Array(d+l),p=this&&this!==n&&this instanceof t?s:r;++c<d;)f[c]=a[c];for(;l--;)f[c++]=arguments[++o];return e(p,u?i:this,f)}},Fx}function pH(){if(yO)return Bx;yO=1;var e=_3(),t=b3(),n=PC(),r="__lodash_placeholder__",o=128,i=Math.min;return Bx=function(a,u){var s=a[1],l=u[1],c=s|l,d=c<131,f=l==o&&8==s||l==o&&256==s&&a[7].length<=u[8]||384==l&&u[7].length<=u[8]&&8==s;if(!d&&!f)return a;1&l&&(a[2]=u[2],c|=1&s?0:4);var p=u[3];if(p){var m=a[3];a[3]=m?e(m,p,u[4]):p,a[4]=m?n(a[3],r):u[4]}return(p=u[5])&&(m=a[5],a[5]=m?t(m,p,u[6]):p,a[6]=m?n(a[5],r):u[6]),(p=u[7])&&(a[7]=p),l&o&&(a[8]=null==a[8]?u[8]:i(a[8],u[8])),null==a[9]&&(a[9]=u[9]),a[0]=u[0],a[1]=c,a}}function RC(){if(wO)return jx;wO=1;var e=w3(),t=eH(),n=dH(),r=P3(),o=fH(),i=x3(),a=pH(),u=$3(),s=C3(),l=aD(),c=Math.max;return jx=function(d,f,p,m,h,v,g,y){var b=2&f;if(!b&&"function"!=typeof d)throw new TypeError("Expected a function");var w=m?m.length:0;if(w||(f&=-97,m=h=void 0),g=void 0===g?g:c(l(g),0),y=void 0===y?y:l(y),w-=h?h.length:0,64&f){var x=m,_=h;m=h=void 0}var k=b?void 0:i(d),S=[d,f,p,m,h,x,_,v,g,y];if(k&&a(S,k),d=S[0],f=S[1],p=S[2],m=S[3],h=S[4],!(y=S[9]=void 0===S[9]?b?0:d.length:c(S[9]-w,0))&&24&f&&(f&=-25),f&&1!=f)A=8==f||16==f?n(d,f,y):32!=f&&33!=f||h.length?r.apply(void 0,S):o(d,f,p,m);else var A=t(d,f,p);return s((k?e:u)(A,S),d,f)}}function hH(){if(_O)return Vx;_O=1;var e=RC();return Vx=function(t,n,r){return n=r?void 0:n,n=t&&null==n?t.length:n,e(t,128,void 0,void 0,void 0,void 0,n)}}function mH(){if(bO)return Ux;bO=1;var e=cD();return Ux=function(t){return e(t,4)}}function vH(){if(xO)return zx;xO=1;var e=RC();function t(n,r,o){var i=e(n,8,void 0,void 0,void 0,void 0,void 0,r=o?void 0:r);return i.placeholder=t.placeholder,i}return t.placeholder={},zx=t}function gH(){if(SO)return Wx;SO=1;var e=Dl(),t=aa(),n=eF();return Wx=function(r){if(!t(r))return!1;var o=e(r);return"[object Error]"==o||"[object DOMException]"==o||"string"==typeof r.message&&"string"==typeof r.name&&!n(r)}}function yH(){if($O)return qx;$O=1;var e=Fv(),t=aa();return qx=function(n){return t(n)&&"[object WeakMap]"==e(n)}}function wH(){if(CO)return Gx;CO=1;var e=cD(),t=E4();return Gx=function(n){return t("function"==typeof n?n:e(n,1))}}function _H(){if(IO)return Hx;IO=1;var e=RC(),t=bF(),n=t((function(t,n){return e(t,256,void 0,void 0,void 0,n)}));return Hx=n}function bH(){if(EO)return Kx;EO=1;var e=N2(),t=Ry(),n=Pi(),r=Mv(),o=D2(),i=Lv(),a=k2();return Kx=function(u){return n(u)?e(u,i):r(u)?[u]:t(o(a(u)))}}function xH(){return PO||(PO=1,Qx={ary:hH(),assign:uD(),clone:mH(),curry:vH(),forEach:F$(),isArray:Pi(),isError:gH(),isFunction:xy(),isWeakMap:yH(),iteratee:wH(),keys:H2(),rearg:_H(),toInteger:aD(),toPath:bH()}),Qx}function SH(){if(RO)return Yx;RO=1;var e=SA(),t=xH();return Yx=function(n,r,o){return e(t,n,r,o)}}function $H(){if(TO)return Xx;TO=1;var e=SH()("debounce",oD());return e.placeholder=xA(),Xx=e}$H();const CH=()=>dy(g3.selectors.selectIsMobile);function OO({className:e,...t}){return q.jsx("div",{className:we("animate-pulse rounded-md bg-muted",e),...t})}const IH="sidebar_state",EH=604800,PH="12rem",RH="18rem",TH="2rem",OH="b",R3=k.createContext(null);function Qy(){const e=k.useContext(R3);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const AH=k.forwardRef((({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:i,...a},u)=>{const s=CH(),[l,c]=k.useState(!1),[d,f]=k.useState(e),p=t??d,m=k.useCallback((e=>{const t="function"==typeof e?e(p):e;n?n(t):f(t),document.cookie=`${IH}=${t}; path=/; max-age=${EH}`}),[n,p]),h=k.useCallback((()=>s?c((e=>!e)):m((e=>!e))),[s,m,c]);k.useEffect((()=>{const e=e=>{e.key===OH&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),h())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[h]);const v=p?"expanded":"collapsed",g=k.useMemo((()=>({state:v,open:p,setOpen:m,isMobile:s,openMobile:l,setOpenMobile:c,toggleSidebar:h})),[v,p,m,s,l,c,h]);return q.jsx(R3.Provider,{value:g,children:q.jsx(Zq,{delayDuration:0,children:q.jsx("div",{style:{"--sidebar-width":PH,"--sidebar-width-icon":TH,...o},className:we("group/sidebar-wrapper flex min-h-svh w-full bg-gray-100 has-[[data-variant=inset]]:bg-sidebar",r),ref:u,...a,children:i})})})}));AH.displayName="SidebarProvider";const DH=k.forwardRef((({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...i},a)=>{const{isMobile:u,state:s,openMobile:l,setOpenMobile:c}=Qy();return"none"===n?q.jsx("div",{className:we("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:a,...i,children:o}):u?q.jsx(Hq,{open:l,onOpenChange:c,children:q.jsxs(u3,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":RH},side:e,children:[q.jsxs(l3,{className:"sr-only",children:[q.jsx(c3,{children:"Sidebar"}),q.jsx(d3,{children:"Displays the mobile sidebar."})]}),q.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):q.jsxs("div",{ref:a,className:"group peer hidden text-sidebar-foreground md:block","data-state":s,"data-collapsible":"collapsed"===s?n:"","data-variant":t,"data-side":e,children:[q.jsx("div",{className:we("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===t||"inset"===t?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),q.jsx("div",{className:we("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex","left"===e?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===t||"inset"===t?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...i,children:q.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-sm group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})}));DH.displayName="Sidebar";const NH=k.forwardRef((({className:e,onClick:t,...n},r)=>{const{toggleSidebar:o,open:i}=Qy();return q.jsx(Av,{ref:r,"data-sidebar":"trigger",variant:"tertiary",size:"icon_m",className:we("size-6 text-gray-900",e),onClick:e=>{null==t||t(e),o()},...n,children:i?q.jsx(NL,{size:16}):q.jsx(AL,{size:16})})}));NH.displayName="SidebarTrigger";const kH=k.forwardRef((({className:e,...t},n)=>{const{toggleSidebar:r}=Qy();return q.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:we("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}));kH.displayName="SidebarRail";const MH=k.forwardRef((({className:e,...t},n)=>q.jsx("main",{ref:n,className:we("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-m md:peer-data-[variant=inset]:shadow",e),...t})));MH.displayName="SidebarInset";const LH=k.forwardRef((({className:e,...t},n)=>q.jsx(Gk,{ref:n,"data-sidebar":"input",className:we("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t})));LH.displayName="SidebarInput";const FH=k.forwardRef((({className:e,...t},n)=>q.jsx("div",{ref:n,"data-sidebar":"header",className:we("flex flex-col gap-xxs p-xs",e),...t})));FH.displayName="SidebarHeader";const BH=k.forwardRef((({className:e,...t},n)=>q.jsx("div",{ref:n,"data-sidebar":"footer",className:we("flex flex-col gap-2 p-2",e),...t})));BH.displayName="SidebarFooter";const jH=k.forwardRef((({className:e,...t},n)=>q.jsx(fC,{ref:n,"data-sidebar":"separator",className:we("mx-2 w-auto bg-sidebar-border",e),...t})));jH.displayName="SidebarSeparator";const VH=k.forwardRef((({className:e,...t},n)=>q.jsx("div",{ref:n,"data-sidebar":"content",className:we("flex min-h-0 flex-1 flex-col gap-xxxs overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})));VH.displayName="SidebarContent";const UH=k.forwardRef((({className:e,...t},n)=>q.jsx("div",{ref:n,"data-sidebar":"group",className:we("relative flex w-full min-w-0 flex-col pt-xs",e),...t})));UH.displayName="SidebarGroup";const zH=k.forwardRef((({className:e,asChild:t=!1,...n},r)=>{const o=t?xd:"div";return q.jsx(o,{ref:r,"data-sidebar":"group-label",className:we("flex h-s shrink-0 items-center rounded-md px-xxs py-xxs text-xs font-semibold text-gray-700 opacity-60 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-xl group-data-[collapsible=icon]:opacity-0",e),...n})}));zH.displayName="SidebarGroupLabel";const WH=k.forwardRef((({className:e,asChild:t=!1,...n},r)=>{const o=t?xd:"button";return q.jsx(o,{ref:r,"data-sidebar":"group-action",className:we("absolute right-xs top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})}));WH.displayName="SidebarGroupAction";const qH=k.forwardRef((({className:e,...t},n)=>q.jsx("div",{ref:n,"data-sidebar":"group-content",className:we("w-full text-sm",e),...t})));qH.displayName="SidebarGroupContent";const GH=k.forwardRef((({className:e,...t},n)=>q.jsx("ul",{ref:n,"data-sidebar":"menu",className:we("flex w-full min-w-0 flex-col p-xs font-semibold text-gray-700 [&_svg]:size-4",e),...t})));GH.displayName="SidebarMenu";const HH=k.forwardRef((({className:e,...t},n)=>q.jsx("li",{ref:n,"data-sidebar":"menu-item",className:we("group/menu-item relative",e),...t})));HH.displayName="SidebarMenuItem";const KH=wu("peer/menu-button flex w-full items-center gap-xxs overflow-hidden rounded-sm p-xxs text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:text-blue_100 hover:bg-white focus-visible:ring-2 active:bg-white active:text-blue_100 disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-white data-[active=true]:font-medium data-[active=true]:text-blue_100 data-[state=open]:hover:bg-white data-[state=open]:hover:text-blue_100 group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:text-blue_100 hover:bg-white",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-white hover:text-blue_100 hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-s text-sm",sm:"h-m text-xs",lg:"h-l text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),QH=k.forwardRef((({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:i,...a},u)=>{const s=e?xd:"button",{isMobile:l,state:c}=Qy(),d=q.jsx(s,{ref:u,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:we(KH({variant:n,size:r}),i),...a});return o?("string"==typeof o&&(o={children:o}),q.jsxs(tG,{children:[q.jsx(nG,{asChild:!0,children:d}),q.jsx(p3,{side:"right",align:"center",hidden:"collapsed"!==c||l,...o})]})):d}));QH.displayName="SidebarMenuButton";const YH=k.forwardRef((({className:e,asChild:t=!1,showOnHover:n=!1,...r},o)=>{const i=t?xd:"button";return q.jsx(i,{ref:o,"data-sidebar":"menu-action",className:we("absolute right-xxxs top-xxs flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-xxxs","peer-data-[size=default]/menu-button:top-xxs","peer-data-[size=lg]/menu-button:top-xs","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})}));YH.displayName="SidebarMenuAction";const XH=k.forwardRef((({className:e,...t},n)=>q.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:we("pointer-events-none absolute right-xxxs flex h-m min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-xxxs","peer-data-[size=default]/menu-button:top-xxs","peer-data-[size=lg]/menu-button:top-xs","group-data-[collapsible=icon]:hidden",e),...t})));XH.displayName="SidebarMenuBadge";const JH=k.forwardRef((({className:e,showIcon:t=!1,...n},r)=>{const o=k.useMemo((()=>`${Math.floor(40*Math.random())+50}%`),[]);return q.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:we("flex h-8 items-center gap-xxs rounded-md px-xxs",e),...n,children:[t&&q.jsx(OO,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),q.jsx(OO,{className:"h-xxxs max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})}));JH.displayName="SidebarMenuSkeleton";const ZH=k.forwardRef((({className:e,...t},n)=>q.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:we("flex min-w-0 translate-x-px flex-col gap-xxxs border-l border-sidebar-border","group-data-[collapsible=icon]:hidden",e),...t})));ZH.displayName="SidebarMenuSub";const eK=k.forwardRef((({...e},t)=>q.jsx("li",{ref:t,...e})));eK.displayName="SidebarMenuSubItem";const tK=k.forwardRef((({asChild:e=!1,size:t="md",isActive:n,className:r,...o},i)=>{const a=e?xd:"a";return q.jsx(a,{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:we("flex h-s min-w-0 -translate-x-px items-center gap-xxs overflow-hidden rounded-sm px-xxs text-sm text-gray-700 outline-none ring-sidebar-ring hover:bg-white hover:text-blue_100 focus-visible:ring-2 active:bg-white active:text-blue_100 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-blue_100","data-[active=true]:bg-white data-[active=true]:text-blue_100","sm"===t&&"text-xs","md"===t&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})}));tK.displayName="SidebarMenuSubButton";const T3="Switch",[nK,aJ]=ai(T3),[rK,oK]=nK(T3),iK=Le(((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:a,disabled:u,value:s="on",onCheckedChange:l,...c}=e,[d,f]=ut(null),p=Ht(t,(e=>f(e))),m=We(!1),h=!d||!!d.closest("form"),[v=!1,g]=vd({prop:o,defaultProp:i,onChange:l});return oe(rK,{scope:n,checked:v,disabled:u},oe(ht.button,Ee({type:"button",role:"switch","aria-checked":v,"aria-required":a,"data-state":O3(v),"data-disabled":u?"":void 0,disabled:u,value:s},c,{ref:p,onClick:ot(e.onClick,(e=>{g((e=>!e)),h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))})),h&&oe(uK,{control:d,bubbles:!m.current,name:r,value:s,checked:v,required:a,disabled:u,style:{transform:"translateX(-100%)"}}))})),aK="SwitchThumb",sK=Le(((e,t)=>{const{__scopeSwitch:n,...r}=e,o=oK(aK,n);return oe(ht.span,Ee({"data-state":O3(o.checked),"data-disabled":o.disabled?"":void 0},r,{ref:t}))})),uK=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=We(null),a=Oy(n),u=Ay(t);return Ze((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[a,n,r]),oe("input",Ee({type:"checkbox","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:i,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function O3(e){return e?"checked":"unchecked"}const A3=iK,lK=sK,cK=k.forwardRef((({className:e,...t},n)=>q.jsx(A3,{className:we("group peer inline-flex h-xs w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background data-[state=checked]:bg-blue_100 data-[state=unchecked]:bg-gray-200","disabled:cursor-not-allowed disabled:!bg-gray-100 md:hover:data-[state=checked]:bg-blue_120 md:hover:data-[state=unchecked]:!bg-gray-300",e),...t,ref:n,children:q.jsx(lK,{className:we("pointer-events-none block size-xxs rounded-full bg-background shadow-lg ring-0 transition-[transform,width] data-[state=checked]:translate-x-[20px] data-[state=unchecked]:translate-x-0",{"md:group-hover:w-[26px] md:group-hover:data-[state=checked]:translate-x-[14px]":!t.disabled,"bg-gray-300":t.disabled})})})));cK.displayName=A3.displayName;const dK=(e,t,{skipParams:n=!1}={})=>{const{props:r,params:o}=Object.keys(t).reduce(((n,r)=>(e.includes(`:${r}`)?n.props[r]=t[r]:n.params.set(r,t[r]),n)),{props:{},params:new URLSearchParams}),i=Object.keys(r).reduce(((e,t)=>{const n=new RegExp(`/:${t}\\?`,"g");return(e=e.replace(n,`/${r[t]}`)).replace(new RegExp(`:${t}`,"g"),r[t])}),e).replace(/\/:[^/]+?\?/g,"");return o.toString()&&!n?`${i}?${o.toString()}`:i},fK=e=>e&&zf.values(e).length?"?"+new URLSearchParams(e).toString():"";var TC=Symbol.for("immer-nothing"),hv=Symbol.for("immer-draftable"),Ii=Symbol.for("immer-state");function Po(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var tp=Object.getPrototypeOf;function Tl(e){return!!e&&!!e[Ii]}function Ol(e){var t;return!!e&&(D3(e)||Array.isArray(e)||!!e[hv]||!(null==(t=e.constructor)||!t[hv])||qv(e)||Gv(e))}var pK=Object.prototype.constructor.toString();function D3(e){if(!e||"object"!=typeof e)return!1;const t=tp(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===pK}function hK(e){return Tl(e)||Po(15,e),e[Ii].base_}function zh(e,t){0===np(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function np(e){const t=e[Ii];return t?t.type_:Array.isArray(e)?1:qv(e)?2:Gv(e)?3:0}function Ev(e,t){return 2===np(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Jx(e,t){return 2===np(e)?e.get(t):e[t]}function N3(e,t,n){const r=np(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function mK(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function qv(e){return e instanceof Map}function Gv(e){return e instanceof Set}function Ff(e){return e.copy_||e.base_}function FS(e,t){if(qv(e))return new Map(e);if(Gv(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&D3(e))return tp(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Ii];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const o=r[t],i=n[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(tp(e),n)}function OC(e,t=!1){return Yy(e)||Tl(e)||!Ol(e)||(np(e)>1&&(e.set=e.add=e.clear=e.delete=vK),Object.freeze(e),t&&zh(e,((e,t)=>OC(t,!0)))),e}function vK(){Po(2)}function Yy(e){return Object.isFrozen(e)}var Pv,BS={};function rp(e){const t=BS[e];return t||Po(0,e),t}function gK(e,t){BS[e]||(BS[e]=t)}function k3(){return Pv}function yK(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function AO(e,t){t&&(rp("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function jS(e){VS(e),e.drafts_.forEach(wK),e.drafts_=null}function VS(e){e===Pv&&(Pv=e.parent_)}function DO(e){return Pv=yK(Pv,e)}function wK(e){const t=e[Ii];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function NO(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[Ii].modified_&&(jS(t),Po(4)),Ol(e)&&(e=uy(t,e),t.parent_||ly(t,e)),t.patches_&&rp("Patches").generateReplacementPatches_(n[Ii].base_,e,t.patches_,t.inversePatches_)):e=uy(t,n,[]),jS(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==TC?e:void 0}function uy(e,t,n){if(Yy(t))return t;const r=t[Ii];if(!r)return zh(t,((o,i)=>kO(e,r,t,o,i,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return ly(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),zh(o,((o,a)=>kO(e,r,t,o,a,n,i))),ly(e,t,!1),n&&e.patches_&&rp("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function kO(e,t,n,r,o,i,a){if(Tl(o)){const a=uy(e,o,i&&t&&3!==t.type_&&!Ev(t.assigned_,r)?i.concat(r):void 0);if(N3(n,r,a),!Tl(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(Ol(o)&&!Yy(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;uy(e,o),(!t||!t.scope_.parent_)&&ly(e,o)}}function ly(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&OC(t,n)}function _K(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:k3(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=AC;n&&(o=[r],i=Rv);const{revoke:a,proxy:u}=Proxy.revocable(o,i);return r.draft_=u,r.revoke_=a,u}var AC={get(e,t){if(t===Ii)return e;const n=Ff(e);if(!Ev(n,t))return bK(e,n,t);const r=n[t];return e.finalized_||!Ol(r)?r:r===Zx(e.base_,t)?(eS(e),e.copy_[t]=zS(r,e)):r},has:(e,t)=>t in Ff(e),ownKeys:e=>Reflect.ownKeys(Ff(e)),set(e,t,n){const r=M3(Ff(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Zx(Ff(e),t),o=null==r?void 0:r[Ii];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(mK(n,r)&&(void 0!==n||Ev(e.base_,t)))return!0;eS(e),US(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Zx(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,eS(e),US(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Ff(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){Po(11)},getPrototypeOf:e=>tp(e.base_),setPrototypeOf(){Po(12)}},Rv={};function Zx(e,t){const n=e[Ii];return(n?Ff(n):e)[t]}function bK(e,t,n){var r;const o=M3(t,n);return o?"value"in o?o.value:null==(r=o.get)?void 0:r.call(e.draft_):void 0}function M3(e,t){if(!(t in e))return;let n=tp(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=tp(n)}}function US(e){e.modified_||(e.modified_=!0,e.parent_&&US(e.parent_))}function eS(e){e.copy_||(e.copy_=FS(e.base_,e.scope_.immer_.useStrictShallowCopy_))}zh(AC,((e,t)=>{Rv[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Rv.deleteProperty=function(e,t){return Rv.set.call(this,e,t,void 0)},Rv.set=function(e,t,n){return AC.set.call(this,e[0],t,n,e[0])};var xK=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,(e=>t.call(this,e,...o)))}}let r;if("function"!=typeof t&&Po(6),void 0!==n&&"function"!=typeof n&&Po(7),Ol(e)){const o=DO(this),i=zS(e,void 0);let a=!0;try{r=t(i),a=!1}finally{a?jS(o):VS(o)}return AO(o,n),NO(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===TC&&(r=void 0),this.autoFreeze_&&OC(r,!0),n){const t=[],o=[];rp("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}Po(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof(null==e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Ol(e)||Po(8),Tl(e)&&(e=SK(e));const t=DO(this),n=zS(e,void 0);return n[Ii].isManual_=!0,VS(t),n}finishDraft(e,t){const n=e&&e[Ii];(!n||!n.isManual_)&&Po(9);const{scope_:r}=n;return AO(r,t),NO(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=rp("Patches").applyPatches_;return Tl(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function zS(e,t){const n=qv(e)?rp("MapSet").proxyMap_(e,t):Gv(e)?rp("MapSet").proxySet_(e,t):_K(e,t);return(t?t.scope_:k3()).drafts_.push(n),n}function SK(e){return Tl(e)||Po(10,e),L3(e)}function L3(e){if(!Ol(e)||Yy(e))return e;const t=e[Ii];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=FS(e,t.scope_.immer_.useStrictShallowCopy_)}else n=FS(e,!0);return zh(n,((e,t)=>{N3(n,e,L3(t))})),t&&(t.finalized_=!1),n}function $K(){const e="replace",t="remove";function n(e){if(!Ol(e))return e;if(Array.isArray(e))return e.map(n);if(qv(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,n(t)])));if(Gv(e))return new Set(Array.from(e).map(n));const t=Object.create(tp(e));for(const r in e)t[r]=n(e[r]);return Ev(e,hv)&&(t[hv]=e[hv]),t}function r(e){return Tl(e)?n(e):e}gK("Patches",{applyPatches_:function(r,o){return o.forEach((o=>{const{path:i,op:a}=o;let u=r;for(let e=0;e<i.length-1;e++){const t=np(u);let n=i[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&Po(19),"function"==typeof u&&"prototype"===n&&Po(19),u=Jx(u,n),"object"!=typeof u&&Po(18,i.join("/"))}const s=np(u),l=n(o.value),c=i[i.length-1];switch(a){case e:switch(s){case 2:return u.set(c,l);case 3:Po(16);default:return u[c]=l}case"add":switch(s){case 1:return"-"===c?u.push(l):u.splice(c,0,l);case 2:return u.set(c,l);case 3:return u.add(l);default:return u[c]=l}case t:switch(s){case 1:return u.splice(c,1);case 2:return u.delete(c);case 3:return u.delete(o.value);default:return delete u[c]}default:Po(17,a)}})),r},generatePatches_:function(n,o,i,a){switch(n.type_){case 0:case 2:return function(n,o,i,a){const{base_:u,copy_:s}=n;zh(n.assigned_,((n,l)=>{const c=Jx(u,n),d=Jx(s,n),f=l?Ev(u,n)?e:"add":t;if(c===d&&f===e)return;const p=o.concat(n);i.push(f===t?{op:f,path:p}:{op:f,path:p,value:d}),a.push("add"===f?{op:t,path:p}:f===t?{op:"add",path:p,value:r(c)}:{op:e,path:p,value:r(c)})}))}(n,o,i,a);case 1:return function(n,o,i,a){let{base_:u,assigned_:s}=n,l=n.copy_;l.length<u.length&&([u,l]=[l,u],[i,a]=[a,i]);for(let t=0;t<u.length;t++)if(s[t]&&l[t]!==u[t]){const n=o.concat([t]);i.push({op:e,path:n,value:r(l[t])}),a.push({op:e,path:n,value:r(u[t])})}for(let e=u.length;e<l.length;e++){const t=o.concat([e]);i.push({op:"add",path:t,value:r(l[e])})}for(let e=l.length-1;u.length<=e;--e){const n=o.concat([e]);a.push({op:t,path:n})}}(n,o,i,a);case 3:return function(e,n,r,o){let{base_:i,copy_:a}=e,u=0;i.forEach((e=>{if(!a.has(e)){const i=n.concat([u]);r.push({op:t,path:i,value:e}),o.unshift({op:"add",path:i,value:e})}u++})),u=0,a.forEach((e=>{if(!i.has(e)){const i=n.concat([u]);r.push({op:"add",path:i,value:e}),o.unshift({op:t,path:i,value:e})}u++}))}(n,o,i,a)}},generateReplacementPatches_:function(t,n,r,o){r.push({op:e,path:[],value:n===TC?void 0:n}),o.push({op:e,path:[],value:t})}})}var oa=new xK;oa.produce;var F3=oa.produceWithPatches.bind(oa);oa.setAutoFreeze.bind(oa),oa.setUseStrictShallowCopy.bind(oa);var MO=oa.applyPatches.bind(oa);function CK(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function IK(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function EK(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}oa.createDraft.bind(oa),oa.finishDraft.bind(oa);var LO=e=>Array.isArray(e)?e:[e];function PK(e){const t=Array.isArray(e[0])?e[0]:e;return EK(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function RK(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var TK=class{constructor(e){this.value=e}deref(){return this.value}},OK=typeof WeakRef<"u"?WeakRef:TK,AK=0,FO=1;function Bg(){return{s:AK,v:void 0,o:null,p:null}}function cy(e,t={}){let n=Bg();const{resultEqualityCheck:r}=t;let o,i=0;function a(){var t;let a=n;const{length:u}=arguments;for(let e=0,t=u;e<t;e++){const t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=a.o;null===e&&(a.o=e=new WeakMap);const n=e.get(t);void 0===n?(a=Bg(),e.set(t,a)):a=n}else{let e=a.p;null===e&&(a.p=e=new Map);const n=e.get(t);void 0===n?(a=Bg(),e.set(t,a)):a=n}}const s=a;let l;if(a.s===FO?l=a.v:(l=e.apply(null,arguments),i++),s.s=FO,r){const e=(null==(t=null==o?void 0:o.deref)?void 0:t.call(o))??o;null!=e&&r(e,l)&&(l=e,0!==i&&i--),o="object"==typeof l&&null!==l||"function"==typeof l?new OK(l):l}return s.v=l,l}return a.clearCache=()=>{n=Bg(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function DK(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),CK(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const u={...n,...i},{memoize:s,memoizeOptions:l=[],argsMemoize:c=cy,argsMemoizeOptions:d=[],devModeChecks:f={}}=u,p=LO(l),m=LO(d),h=PK(e),v=s((function(){return r++,a.apply(null,arguments)}),...p),g=c((function(){o++;const e=RK(h,arguments);return t=v.apply(null,e),t}),...m);return Object.assign(g,{resultFunc:a,memoizedResultFunc:v,dependencies:h,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:s,argsMemoize:c})};return Object.assign(r,{withTypes:()=>r}),r}var B3=DK(cy),NK=Object.assign(((e,t=B3)=>{IK(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>NK}),kK={USER:"teamcity",npm_config_user_agent:"npm/10.9.3 node/v22.18.0 linux x64 workspaces/true",SENTRY_AUTH_TOKEN:"1d93ff28a44e4c3aaaaff854277cd8583c1de670bd8744bc895670dfd9300840",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/error-kit/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.18.0",npm_config_npm_version:"10.9.3",npm_config_cache:"/home/teamcity/.npm",USE_NPM_LIBS:"true",npm_config_ignore_scripts:"true",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/error-kit/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.9/bin:/home/teamcity/.rvm/gems/ruby-3.3.9@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.9/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.18.0/bin",TURBO_HASH:"2b0c5b79a3ff0b08",NODE:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_package_name:"@wellesley/error-kit",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"vite build",SHELL:"/bin/bash",npm_package_version:"1.0.687",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.18.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/error-kit",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.18.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",USE_PACKAGES_FROM_NPM:"false",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/error-kit",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"3761",APP_NAME:"@wellesley/error-kit"},j3=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(j3||{});function MK(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function LK(e){return new RegExp("(^|:)//").test(e)}var FK=e=>e.replace(/\/$/,""),BK=e=>e.replace(/^\//,"");function jK(e,t){if(!e)return t;if(!t)return e;if(LK(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=FK(e)}${n}${t=BK(t)}`}var BO=e=>[].concat(...e);function VK(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function UK(){return typeof document>"u"||"hidden"!==document.visibilityState}var jO=Gf;function V3(e,t){if(e===t||!(jO(e)&&jO(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let o=n.length===r.length;const i=Array.isArray(t)?[]:{};for(const r of n)i[r]=V3(e[r],t[r]),o&&(o=e[r]===i[r]);return o?e:i}var VO=(...e)=>fetch(...e),zK=e=>e.status>=200&&e.status<=299,WK=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function UO(e){if(!Gf(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function qK({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=VO,paramsSerializer:r,isJsonContentType:o=WK,jsonContentType:i="application/json",jsonReplacer:a,timeout:u,responseHandler:s,validateStatus:l,...c}={}){return typeof fetch>"u"&&n===VO&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(f,p)=>{const{signal:m,getState:h,extra:v,endpoint:g,forced:y,type:b}=p;let w,{url:x,headers:_=new Headers(c.headers),params:k,responseHandler:S=s??"json",validateStatus:A=l??zK,timeout:E=u,...I}="string"==typeof f?{url:f}:f,C={...c,signal:m,...I};_=new Headers(UO(_)),C.headers=await t(_,{getState:h,extra:v,endpoint:g,forced:y,type:b})||_;const P=e=>"object"==typeof e&&(Gf(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!C.headers.has("content-type")&&P(C.body)&&C.headers.set("content-type",i),P(C.body)&&o(C.headers)&&(C.body=JSON.stringify(C.body,a)),k){const e=~x.indexOf("?")?"&":"?";x+=e+(r?r(k):new URLSearchParams(UO(k)))}x=jK(e,x);const q=new Request(x,C);w={request:new Request(x,C)};let O,T=!1,N=E&&setTimeout((()=>{T=!0,p.abort()}),E);try{O=await n(q)}catch(e){return{error:{status:T?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:w}}finally{N&&clearTimeout(N)}const R=O.clone();w.response=R;let D,j="";try{let e;if(await Promise.all([d(O,S).then((e=>D=e),(t=>e=t)),R.text().then((e=>j=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:O.status,data:j,error:String(e)},meta:w}}return A(O,D)?{data:D,meta:w}:{error:{status:O.status,data:D},meta:w}};async function d(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=o(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var zO=class{constructor(e,t=void 0){this.value=e,this.meta=t}},DC=Al("__rtkq/focused"),U3=Al("__rtkq/unfocused"),NC=Al("__rtkq/online"),z3=Al("__rtkq/offline");function W3(e){return"query"===e.type}function GK(e){return"mutation"===e.type}function kC(e,t,n,r,o,i){return HK(e)?e(t,n,r,o).map(WS).map(i):Array.isArray(e)?e.map(WS).map(i):[]}function HK(e){return"function"==typeof e}function WS(e){return"string"==typeof e?{type:e}:e}function WO(e){return null!=e}function Fh(e){let t=0;for(const n in e)t++;return t}function KK(e,t){return e.catch(t)}var Tv=Symbol("forceQueryFn"),qS=e=>"function"==typeof e[Tv];function QK({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:o}){const i=new Map,a=new Map,{unsubscribeQueryResult:u,removeMutationResult:s,updateSubscriptionOptions:l}=r.internalActions;return{buildInitiateQuery:function(n,o){const a=(s,{subscribe:c=!0,forceRefetch:d,subscriptionOptions:f,[Tv]:p,...m}={})=>(h,v)=>{var g;const y=e({queryArgs:s,endpointDefinition:o,endpointName:n}),b=t({...m,type:"query",subscribe:c,forceRefetch:d,subscriptionOptions:f,endpointName:n,originalArgs:s,queryCacheKey:y,[Tv]:p}),w=r.endpoints[n].select(s),x=h(b),_=w(v()),{requestId:k,abort:S}=x,A=_.requestId!==k,E=null==(g=i.get(h))?void 0:g[y],I=()=>w(v()),C=Object.assign(p?x.then(I):A&&!E?Promise.resolve(_):Promise.all([E,x]).then(I),{arg:s,requestId:k,subscriptionOptions:f,queryCacheKey:y,abort:S,async unwrap(){const e=await C;if(e.isError)throw e.error;return e.data},refetch:()=>h(a(s,{subscribe:!1,forceRefetch:!0})),unsubscribe(){c&&h(u({queryCacheKey:y,requestId:k}))},updateSubscriptionOptions(e){C.subscriptionOptions=e,h(l({endpointName:n,requestId:k,queryCacheKey:y,options:e}))}});if(!E&&!A&&!p){const e=i.get(h)||{};e[y]=C,i.set(h,e),C.then((()=>{delete e[y],Fh(e)||i.delete(h)}))}return C};return a},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:o}={})=>(i,u)=>{const l=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:o}),c=i(l),{requestId:d,abort:f,unwrap:p}=c,m=KK(c.unwrap().then((e=>({data:e}))),(e=>({error:e}))),h=Object.assign(m,{arg:c.arg,requestId:d,abort:f,unwrap:p,reset:()=>{i(s({requestId:d,fixedCacheKey:o}))}}),v=a.get(i)||{};return a.set(i,v),v[d]=h,h.then((()=>{delete v[d],Fh(v)||a.delete(i)})),o&&(v[o]=h,h.then((()=>{v[o]===h&&(delete v[o],Fh(v)||a.delete(i))}))),h}},getRunningQueryThunk:function(t,n){return r=>{var a;const u=o.endpointDefinitions[t],s=e({queryArgs:n,endpointDefinition:u,endpointName:t});return null==(a=i.get(r))?void 0:a[s]}},getRunningMutationThunk:function(e,t){return e=>{var n;return null==(n=a.get(e))?void 0:n[t]}},getRunningQueriesThunk:function(){return e=>Object.values(i.get(e)||{}).filter(WO)},getRunningMutationsThunk:function(){return e=>Object.values(a.get(e)||{}).filter(WO)}}}function qO(e){return e}function YK({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:o,assertTagType:i}){const a=async(e,{signal:r,abort:o,rejectWithValue:i,fulfillWithValue:a,dispatch:s,getState:l,extra:c})=>{const d=n[e.endpointName];try{let n,i=qO;const f={signal:r,abort:o,dispatch:s,getState:l,extra:c,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?u(e,l()):void 0},p="query"===e.type?e[Tv]:void 0;if(p?n=p():d.query?(n=await t(d.query(e.originalArgs),f,d.extraOptions),d.transformResponse&&(i=d.transformResponse)):n=await d.queryFn(e.originalArgs,f,d.extraOptions,(e=>t(e,f,d.extraOptions))),typeof process<"u"&&kK.NODE_ENV,n.error)throw new zO(n.error,n.meta);return a(await i(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[_g]:!0})}catch(t){let n=t;if(n instanceof zO){let t=qO;d.query&&d.transformErrorResponse&&(t=d.transformErrorResponse);try{return i(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[_g]:!0})}catch(e){n=e}}throw console.error(n),n}};function u(t,n){var r,o,i;const a=null==(o=null==(r=n[e])?void 0:r.queries)?void 0:o[t.queryCacheKey],u=null==(i=n[e])?void 0:i.config.refetchOnMountOrArgChange,s=null==a?void 0:a.fulfilledTimeStamp,l=t.forceRefetch??(t.subscribe&&u);return!!l&&(!0===l||(Number(new Date)-Number(s))/1e3>=l)}const s=zC(`${e}/executeQuery`,a,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[_g]:!0}),condition(t,{getState:r}){var o,i,a;const s=r(),l=null==(i=null==(o=s[e])?void 0:o.queries)?void 0:i[t.queryCacheKey],c=null==l?void 0:l.fulfilledTimeStamp,d=t.originalArgs,f=null==l?void 0:l.originalArgs,p=n[t.endpointName];return!!qS(t)||"pending"!==(null==l?void 0:l.status)&&(!!(u(t,s)||W3(p)&&null!=(a=null==p?void 0:p.forceRefetch)&&a.call(p,{currentArg:d,previousArg:f,endpointState:l,state:s}))||!c)},dispatchConditionRejection:!0}),l=zC(`${e}/executeMutation`,a,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[_g]:!0})});function c(e){return t=>{var n,r;return(null==(r=null==(n=null==t?void 0:t.meta)?void 0:n.arg)?void 0:r.endpointName)===e}}return{queryThunk:s,mutationThunk:l,prefetch:(e,t,n)=>(r,i)=>{const a=(e=>"force"in e)(n)&&n.force,u=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,s=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return o.endpoints[e].initiate(t,r)},l=o.endpoints[e].select(t)(i());if(a)r(s());else if(u){const e=null==l?void 0:l.fulfilledTimeStamp;if(!e)return void r(s());(Number(new Date)-Number(new Date(e)))/1e3>=u&&r(s())}else r(s(!1))},updateQueryData:(e,t,n,r=!0)=>(i,a)=>{const u=o.endpoints[e].select(t)(a());let s,l={patches:[],inversePatches:[],undo:()=>i(o.util.patchQueryData(e,t,l.inversePatches,r))};if("uninitialized"===u.status)return l;if("data"in u)if(Ol(u.data)){const[e,t,r]=F3(u.data,n);l.patches.push(...t),l.inversePatches.push(...r),s=e}else s=n(u.data),l.patches.push({op:"replace",path:[],value:s}),l.inversePatches.push({op:"replace",path:[],value:u.data});return i(o.util.patchQueryData(e,t,l.patches,r)),l},upsertQueryData:(e,t,n)=>r=>r(o.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[Tv]:()=>({data:n})})),patchQueryData:(e,t,a,u)=>(s,l)=>{const c=n[e],d=r({queryArgs:t,endpointDefinition:c,endpointName:e});if(s(o.internalActions.queryResultPatched({queryCacheKey:d,patches:a})),!u)return;const f=o.endpoints[e].select(t)(l()),p=kC(c.providesTags,f.data,void 0,t,{},i);s(o.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:$1(uA(e),c(t)),matchFulfilled:$1(Hf(e),c(t)),matchRejected:$1(QS(e),c(t))}}}}function q3(e,t,n,r){return kC(n[e.meta.arg.endpointName][t],Hf(e)?e.payload:void 0,KS(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function jg(e,t,n){const r=e[t];r&&n(r)}function Ov(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function GO(e,t,n){const r=e[Ov(t)];r&&n(r)}var Zm={};function XK({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:o,extractRehydrationInfo:i,hasRehydrationInfo:a},assertTagType:u,config:s}){const l=Al(`${e}/resetApiState`),c=Wo({name:`${e}/queries`,initialState:Zm,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Gm()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){jg(e,t,(e=>{e.data=MO(e.data,n.concat())}))},prepare:Gm()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const o=qS(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),jg(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=o&&e.requestId?e.requestId:t.requestId,void 0!==n.originalArgs&&(e.originalArgs=n.originalArgs),e.startedTimeStamp=t.startedTimeStamp}))})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{jg(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!qS(t.arg))return;const{merge:o}=r[t.arg.endpointName];if(e.status="fulfilled",o)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:i,baseQueryMeta:a,requestId:u}=t;let s=YS(e.data,(e=>o(e,n,{arg:i.originalArgs,baseQueryMeta:a,fulfilledTimeStamp:r,requestId:u})));e.data=s}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?V3(Tl(e.data)?hK(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:o,payload:i})=>{jg(e,n.queryCacheKey,(e=>{if(!t){if(e.requestId!==r)return;e.status="rejected",e.error=i??o}}))})).addMatcher(a,((e,t)=>{const{queries:n}=i(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&(e[t]=r)}))}}),d=Wo({name:`${e}/mutations`,initialState:Zm,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=Ov(t);n in e&&delete e[n]},prepare:Gm()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:o}})=>{r.track&&(e[Ov(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:o})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&GO(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&GO(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(a,((e,t)=>{const{mutations:n}=i(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&t!==(null==r?void 0:r.requestId)&&(e[t]=r)}))}}),f=Wo({name:`${e}/invalidation`,initialState:Zm,reducers:{updateProvidedBy:{reducer(e,t){var n,r;const{queryCacheKey:o,providedTags:i}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(o);-1!==t&&e.splice(t,1)}for(const{type:t,id:a}of i){const i=(n=e[t]??(e[t]={}))[r=a||"__internal_without_id"]??(n[r]=[]);i.includes(o)||i.push(o)}},prepare:Gm()}},extraReducers(e){e.addCase(c.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(a,((e,t)=>{var n,r;const{provided:o}=i(t);for(const[t,i]of Object.entries(o))for(const[o,a]of Object.entries(i)){const i=(n=e[t]??(e[t]={}))[r=o||"__internal_without_id"]??(n[r]=[]);for(const e of a)i.includes(e)||i.push(e)}})).addMatcher(sS(Hf(t),KS(t)),((e,t)=>{const n=q3(t,"providesTags",r,u),{queryCacheKey:o}=t.meta.arg;f.caseReducers.updateProvidedBy(e,f.actions.updateProvidedBy({queryCacheKey:o,providedTags:n}))}))}}),p=Wo({name:`${e}/subscriptions`,initialState:Zm,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),m=Wo({name:`${e}/internalSubscriptions`,initialState:Zm,reducers:{subscriptionsUpdated:{reducer:(e,t)=>MO(e,t.payload),prepare:Gm()}}}),h=Wo({name:`${e}/config`,initialState:{online:VK(),focused:UK(),middlewareRegistered:!1,...s},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&o===t||"conflict"}},extraReducers:e=>{e.addCase(NC,(e=>{e.online=!0})).addCase(z3,(e=>{e.online=!1})).addCase(DC,(e=>{e.focused=!0})).addCase(U3,(e=>{e.focused=!1})).addMatcher(a,(e=>({...e})))}}),v=gM({queries:c.reducer,mutations:d.reducer,provided:f.reducer,subscriptions:m.reducer,config:h.reducer});return{reducer:(e,t)=>v(l.match(t)?void 0:e,t),actions:{...h.actions,...c.actions,...p.actions,...m.actions,...d.actions,...f.actions,resetApiState:l}}}var Uf=Symbol.for("RTKQ/skipToken"),G3={status:"uninitialized"},HO=YS(G3,(()=>{})),KO=YS(G3,(()=>{}));function JK({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>HO,o=e=>KO;return{buildQuerySelector:function(t,o){return u=>{const s=e({queryArgs:u,endpointDefinition:o,endpointName:t});return n(u===Uf?r:e=>{var t,n;return(null==(n=null==(t=a(e))?void 0:t.queries)?void 0:n[s])??HO},i)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Ov(e)??Uf:e,n(t===Uf?o:e=>{var n,r;return(null==(r=null==(n=a(e))?void 0:n.mutations)?void 0:r[t])??KO},i)}},selectInvalidatedBy:function(e,n){const r=e[t],o=new Set;for(const e of n.map(WS)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:BO(Object.values(t)))??[];for(const e of n)o.add(e)}return BO(Array.from(o.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>(null==e?void 0:e.endpointName)===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function i(e){return{...e,...MK(e.status)}}function a(e){return e[t]}}var Ah=WeakMap?new WeakMap:void 0,QO=({endpointName:e,queryArgs:t})=>{let n="";const r=null==Ah?void 0:Ah.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Gf(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Gf(t)&&(null==Ah||Ah.set(t,e)),n=e}return`${e}(${n})`};function ZK(...e){return function(t){const n=cy((e=>{var n;return null==(n=t.extractRehydrationInfo)?void 0:n.call(t,e,{reducerPath:t.reducerPath??"api"})})),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=QO;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:QO({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},o={endpointDefinitions:{},batch(e){e()},apiUid:vM(),extractRehydrationInfo:n,hasRehydrationInfo:cy((e=>null!=n(e)))},i={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in o.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(sA(39))}else{o.endpointDefinitions[n]=r;for(const e of a)e.injectEndpoint(n,r)}return i},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(const[e,n]of Object.entries(t))"function"==typeof n?n(o.endpointDefinitions[e]):Object.assign(o.endpointDefinitions[e]||{},n);return i}},a=e.map((e=>e.init(i,r,o)));return i.injectEndpoints({endpoints:t.endpoints})}}function eQ(e){for(let t in e)return!1;return!0}var tQ=2147482.647,nQ=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:o,unsubscribeQueryResult:i}=t.internalActions;function a(e){const t=r.currentSubscriptions[e];return!!t&&!eQ(t)}const u={};function s(e,t,r,i){const s=n.endpointDefinitions[t],l=(null==s?void 0:s.keepUnusedDataFor)??i.keepUnusedDataFor;if(l===1/0)return;const c=Math.max(0,Math.min(l,tQ));if(!a(e)){const t=u[e];t&&clearTimeout(t),u[e]=setTimeout((()=>{a(e)||r.dispatch(o({queryCacheKey:e})),delete u[e]}),1e3*c)}}return(r,o,a)=>{var l;if(i.match(r)){const t=o.getState()[e],{queryCacheKey:n}=r.payload;s(n,null==(l=t.queries[n])?void 0:l.endpointName,o,t.config)}if(t.util.resetApiState.match(r))for(const[e,t]of Object.entries(u))t&&clearTimeout(t),delete u[e];if(n.hasRehydrationInfo(r)){const t=o.getState()[e],{queries:i}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(i))s(e,null==n?void 0:n.endpointName,o,t.config)}}},rQ=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:i,assertTagType:a,refetchQuery:u,internalState:s})=>{const{removeQueryResult:l}=i.internalActions,c=sS(Hf(r),KS(r)),d=sS(Hf(r,o),QS(r,o));let f=[];function p(n,r){const o=r.getState(),a=o[e];if(f.push(...n),"delayed"===a.config.invalidationBehavior&&function(e){var t,n;for(const n in e.queries)if("pending"===(null==(t=e.queries[n])?void 0:t.status))return!0;for(const t in e.mutations)if("pending"===(null==(n=e.mutations[t])?void 0:n.status))return!0;return!1}(a))return;const c=f;if(f=[],0===c.length)return;const d=i.util.selectInvalidatedBy(o,c);t.batch((()=>{const e=Array.from(d.values());for(const{queryCacheKey:t}of e){const e=a.queries[t],n=s.currentSubscriptions[t]??{};e&&(0===Fh(n)?r.dispatch(l({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(u(e,t)))}}))}return(e,t)=>{c(e)?p(q3(e,"invalidatesTags",n,a),t):d(e)?p([],t):i.util.invalidateTags.match(e)&&p(kC(e.payload,void 0,void 0,void 0,void 0,a),t)}},oQ=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:o})=>{const i={};function a({queryCacheKey:t},n){const u=n.getState()[e],s=u.queries[t],c=o.currentSubscriptions[t];if(!s||"uninitialized"===s.status)return;const{lowestPollingInterval:d,skipPollingIfUnfocused:f}=l(c);if(!Number.isFinite(d))return;const p=i[t];null!=p&&p.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const m=Date.now()+d;i[t]={nextPollTimestamp:m,pollingInterval:d,timeout:setTimeout((()=>{(u.config.focused||!f)&&n.dispatch(r(s,t)),a({queryCacheKey:t},n)}),d)}}function u({queryCacheKey:t},n){const r=n.getState()[e].queries[t],u=o.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:c}=l(u);if(!Number.isFinite(c))return void s(t);const d=i[t],f=Date.now()+c;(!d||f<d.nextPollTimestamp)&&a({queryCacheKey:t},n)}function s(e){const t=i[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete i[e]}function l(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&u(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&u(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&a(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(i))s(e)}()}},iQ=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:o})=>{const{removeQueryResult:i}=n.internalActions;function a(n,a){const u=n.getState()[e],s=u.queries,l=o.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(l)){const t=s[e],o=l[e];o&&t&&((Object.values(o).some((e=>!0===e[a]))||Object.values(o).every((e=>void 0===e[a]))&&u.config[a])&&(0===Fh(o)?n.dispatch(i({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{DC.match(e)&&a(t,"refetchOnFocus"),NC.match(e)&&a(t,"refetchOnReconnect")}},YO=new Error("Promise never resolved before cacheEntryRemoved."),aQ=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:o,internalState:i})=>{const a=WC(r),u=WC(o),s=Hf(r,o),l={};function c(t,r,o,i,a){const u=n.endpointDefinitions[t],s=null==u?void 0:u.onCacheEntryAdded;if(!s)return;let c={};const d=new Promise((e=>{c.cacheEntryRemoved=e})),f=Promise.race([new Promise((e=>{c.valueResolved=e})),d.then((()=>{throw YO}))]);f.catch((()=>{})),l[o]=c;const p=e.endpoints[t].select("query"===u.type?r:o),m=i.dispatch(((e,t,n)=>n)),h={...i,getCacheEntry:()=>p(i.getState()),requestId:a,extra:m,updateCachedData:"query"===u.type?n=>i.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:d},v=s(r,h);Promise.resolve(v).catch((e=>{if(e!==YO)throw e}))}return(n,i,d)=>{const f=function(t){return a(t)?t.meta.arg.queryCacheKey:u(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?Ov(t.payload):""}(n);if(r.pending.match(n)){const e=d[t].queries[f],r=i.getState()[t].queries[f];!e&&r&&c(n.meta.arg.endpointName,n.meta.arg.originalArgs,f,i,n.meta.requestId)}else if(o.pending.match(n))i.getState()[t].mutations[f]&&c(n.meta.arg.endpointName,n.meta.arg.originalArgs,f,i,n.meta.requestId);else if(s(n)){const e=l[f];null!=e&&e.valueResolved&&(e.valueResolved({data:n.payload,meta:n.meta.baseQueryMeta}),delete e.valueResolved)}else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n)){const e=l[f];e&&(delete l[f],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(l))delete l[e],t.cacheEntryRemoved()}},sQ=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const o=uA(n,r),i=QS(n,r),a=Hf(n,r),u={};return(n,r)=>{var s,l;if(o(n)){const{requestId:o,arg:{endpointName:i,originalArgs:a}}=n.meta,s=t.endpointDefinitions[i],l=null==s?void 0:s.onQueryStarted;if(l){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),u[o]=t;const c=e.endpoints[i].select("query"===s.type?a:o),d=r.dispatch(((e,t,n)=>n)),f={...r,getCacheEntry:()=>c(r.getState()),requestId:o,extra:d,updateCachedData:"query"===s.type?t=>r.dispatch(e.util.updateQueryData(i,a,t)):void 0,queryFulfilled:n};l(a,f)}}else if(a(n)){const{requestId:e,baseQueryMeta:t}=n.meta;null==(s=u[e])||s.resolve({data:n.payload,meta:t}),delete u[e]}else if(i(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;null==(l=u[e])||l.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete u[e]}}},uQ=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},lQ=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let o=null,i=null;const{updateSubscriptionOptions:a,unsubscribeQueryResult:u}=e.internalActions,s=()=>n.currentSubscriptions,l={getSubscriptions:s,getSubscriptionCount:e=>Fh(s()[e]??{}),isRequestSubscribed:(e,t)=>{var n;const r=s();return!(null==(n=null==r?void 0:r[e])||!n[t])}};return(s,c)=>{if(o||(o=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(s))return o=n.currentSubscriptions={},i=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(s))return[!1,l];const d=((n,r)=>{var o,i,s;if(a.match(r)){const{queryCacheKey:e,requestId:t,options:i}=r.payload;return null!=(o=null==n?void 0:n[e])&&o[t]&&(n[e][t]=i),!0}if(u.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,o=n[i=e.queryCacheKey]??(n[i]={});return o[`${t}_running`]={},e.subscribe&&(o[t]=e.subscriptionOptions??o[t]??{}),!0}let l=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;l||(l=!!e[t]),delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:o}}=r;if(e&&t.subscribe){const e=n[s=t.queryCacheKey]??(n[s]={});e[o]=t.subscriptionOptions??e[o]??{},l=!0}}return l})(n.currentSubscriptions,s);let f=!0;if(d){i||(i=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=F3(o,(()=>t));c.next(e.internalActions.subscriptionsUpdated(r)),o=t,i=null}),500));const a="string"==typeof s.type&&!!s.type.startsWith(r),u=t.rejected.match(s)&&s.meta.condition&&!!s.meta.arg.subscribe;f=!a&&!u}return[f,!1]}};function cQ(e){const{reducerPath:t,queryThunk:n,api:r,context:o}=e,{apiUid:i}=o,a={invalidateTags:Al(`${t}/invalidateTags`)},u=e=>e.type.startsWith(`${t}/`),s=[uQ,nQ,rQ,oQ,aQ,sQ];return{middleware:n=>{let a=!1;const c={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:u},d=s.map((e=>e(c))),f=lQ(c),p=iQ(c);return e=>s=>{if(!yM(s))return e(s);a||(a=!0,n.dispatch(r.internalActions.middlewareRegistered(i)));const l={...n,next:e},c=n.getState(),[m,h]=f(s,l,c);let v;if(v=m?e(s):h,n.getState()[t]&&(p(s,l,c),u(s)||o.hasRehydrationInfo(s)))for(let e of d)e(s,l,c);return v}},actions:a};function l(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}function cd(e,...t){return Object.assign(e,...t)}var XO=Symbol(),dQ=({createSelector:e=Qr}={})=>({name:XO,init(t,{baseQuery:n,tagTypes:r,reducerPath:o,serializeQueryArgs:i,keepUnusedDataFor:a,refetchOnMountOrArgChange:u,refetchOnFocus:s,refetchOnReconnect:l,invalidationBehavior:c},d){$K();const f=e=>e;Object.assign(t,{reducerPath:o,endpoints:{},internalActions:{onOnline:NC,onOffline:z3,onFocus:DC,onFocusLost:U3},util:{}});const{queryThunk:p,mutationThunk:m,patchQueryData:h,updateQueryData:v,upsertQueryData:g,prefetch:y,buildMatchThunkActions:b}=YK({baseQuery:n,reducerPath:o,context:d,api:t,serializeQueryArgs:i,assertTagType:f}),{reducer:w,actions:x}=XK({context:d,queryThunk:p,mutationThunk:m,reducerPath:o,assertTagType:f,config:{refetchOnFocus:s,refetchOnReconnect:l,refetchOnMountOrArgChange:u,keepUnusedDataFor:a,reducerPath:o,invalidationBehavior:c}});cd(t.util,{patchQueryData:h,updateQueryData:v,upsertQueryData:g,prefetch:y,resetApiState:x.resetApiState}),cd(t.internalActions,x);const{middleware:_,actions:k}=cQ({reducerPath:o,context:d,queryThunk:p,mutationThunk:m,api:t,assertTagType:f});cd(t.util,k),cd(t,{reducer:w,middleware:_});const{buildQuerySelector:S,buildMutationSelector:A,selectInvalidatedBy:E,selectCachedArgsForQuery:I}=JK({serializeQueryArgs:i,reducerPath:o,createSelector:e});cd(t.util,{selectInvalidatedBy:E,selectCachedArgsForQuery:I});const{buildInitiateQuery:C,buildInitiateMutation:P,getRunningMutationThunk:q,getRunningMutationsThunk:O,getRunningQueriesThunk:T,getRunningQueryThunk:N}=QK({queryThunk:p,mutationThunk:m,api:t,serializeQueryArgs:i,context:d});return cd(t.util,{getRunningMutationThunk:q,getRunningMutationsThunk:O,getRunningQueryThunk:N,getRunningQueriesThunk:T}),{name:XO,injectEndpoint(e,n){var r;const o=t;(r=o.endpoints)[e]??(r[e]={}),W3(n)?cd(o.endpoints[e],{name:e,select:S(e,n),initiate:C(e,n)},b(p,e)):GK(n)&&cd(o.endpoints[e],{name:e,select:A(),initiate:P(e)},b(m,e))}}}});function fQ(e){return"query"===e.type}function pQ(e){return"mutation"===e.type}function Vg(e,...t){return Object.assign(e,...t)}function tS(e){return e.replace(e[0],e[0].toUpperCase())}var Dh=WeakMap?new WeakMap:void 0,hQ=({endpointName:e,queryArgs:t})=>{let n="";const r=null==Dh?void 0:Dh.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Gf(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Gf(t)&&(null==Dh||Dh.set(t,e)),n=e}return`${e}(${n})`},nS=Symbol();function JO(e,t,n,r){const o=xn((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),i=We(o);return Ze((()=>{i.current.serialized!==o.serialized&&(i.current=o)}),[o]),i.current.serialized===o.serialized?i.current.queryArgs:e}function rS(e){const t=We(e);return Ze((()=>{sv(t.current,e)||(t.current=e)}),[e]),sv(t.current,e)?t.current:e}var mQ=typeof window<"u"&&window.document&&window.document.createElement?ip:Ze,vQ=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:j3.pending}:e;function gQ({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:o},unstable__sideEffectsInRender:i,createSelector:a},serializeQueryArgs:u,context:s}){const l=i?e=>e():Ze;return{buildQueryHooks:function(i){const d=(t,{refetchOnReconnect:r,refetchOnFocus:o,refetchOnMountOrArgChange:a,skip:u=!1,pollingInterval:c=0,skipPollingIfUnfocused:d=!1}={})=>{const{initiate:f}=e.endpoints[i],p=n(),m=We();if(!m.current){const t=p(e.internalActions.internal_getRTKQSubscriptions());m.current=t}const h=JO(u?Uf:t,hQ,s.endpointDefinitions[i],i),v=rS({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:c,skipPollingIfUnfocused:d}),g=We(!1),y=We();let{queryCacheKey:b,requestId:w}=y.current||{},x=!1;b&&w&&(x=m.current.isRequestSubscribed(b,w));const _=!x&&g.current;return l((()=>{g.current=x})),l((()=>{_&&(y.current=void 0)}),[_]),l((()=>{var e;const t=y.current;if(h===Uf)return null==t||t.unsubscribe(),void(y.current=void 0);const n=null==(e=y.current)?void 0:e.subscriptionOptions;if(t&&t.arg===h)v!==n&&t.updateSubscriptionOptions(v);else{null==t||t.unsubscribe();const e=p(f(h,{subscriptionOptions:v,forceRefetch:a}));y.current=e}}),[p,f,a,h,v,_]),Ze((()=>()=>{var e;null==(e=y.current)||e.unsubscribe(),y.current=void 0}),[]),xn((()=>({refetch:()=>{var e;if(!y.current)throw new Error(sA(38));return null==(e=y.current)?void 0:e.refetch()}})),[])},f=({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:a=0,skipPollingIfUnfocused:u=!1}={})=>{const{initiate:s}=e.endpoints[i],c=n(),[d,f]=ut(nS),p=We(),m=rS({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:a,skipPollingIfUnfocused:u});l((()=>{var e,t;const n=null==(e=p.current)?void 0:e.subscriptionOptions;m!==n&&(null==(t=p.current)||t.updateSubscriptionOptions(m))}),[m]);const h=We(m);l((()=>{h.current=m}),[m]);const v=yt((function(e,n=!1){let r;return t((()=>{var t;null==(t=p.current)||t.unsubscribe(),p.current=r=c(s(e,{subscriptionOptions:h.current,forceRefetch:!n})),f(e)})),r}),[c,s]);return Ze((()=>()=>{var e;null==(e=null==p?void 0:p.current)||e.unsubscribe()}),[]),Ze((()=>{d!==nS&&!p.current&&v(d,!0)}),[d,v]),xn((()=>[v,d]),[v,d])},p=(t,{skip:n=!1,selectFromResult:l}={})=>{const{select:d}=e.endpoints[i],f=JO(n?Uf:t,u,s.endpointDefinitions[i],i),p=We(),m=xn((()=>a([d(f),(e,t)=>t,e=>f],c,{memoizeOptions:{resultEqualityCheck:sv}})),[d,f]),h=xn((()=>l?a([m],l,{devModeChecks:{identityFunctionCheck:"never"}}):m),[m,l]),v=r((e=>h(e,p.current)),sv),g=o(),y=m(g.getState(),p.current);return mQ((()=>{p.current=y}),[y]),v};return{useQueryState:p,useQuerySubscription:d,useLazyQuerySubscription:f,useLazyQuery(e){const[t,n]=f(e),r=p(n,{...e,skip:n===nS}),o=xn((()=>({lastArg:n})),[n]);return xn((()=>[t,r,o]),[t,r,o])},useQuery(e,t){const n=d(e,t),r=p(e,{selectFromResult:e===Uf||null!=t&&t.skip?void 0:vQ,...t}),{data:o,status:i,isLoading:a,isSuccess:u,isError:s,error:l}=r;return UC({data:o,status:i,isLoading:a,isSuccess:u,isError:s,error:l}),xn((()=>({...r,...n})),[r,n])}}},buildMutationHook:function(o){return({selectFromResult:i,fixedCacheKey:u}={})=>{const{select:s,initiate:l}=e.endpoints[o],c=n(),[d,f]=ut();Ze((()=>()=>{null!=d&&d.arg.fixedCacheKey||null==d||d.reset()}),[d]);const p=yt((function(e){const t=c(l(e,{fixedCacheKey:u}));return f(t),t}),[c,l,u]),{requestId:m}=d||{},h=xn((()=>s({fixedCacheKey:u,requestId:null==d?void 0:d.requestId})),[u,d,s]),v=xn((()=>i?a([h],i):h),[i,h]),g=r(v,sv),y=null==u?null==d?void 0:d.arg.originalArgs:void 0,b=yt((()=>{t((()=>{d&&f(void 0),u&&c(e.internalActions.removeMutationResult({requestId:m,fixedCacheKey:u}))}))}),[c,u,d,m]),{endpointName:w,data:x,status:_,isLoading:k,isSuccess:S,isError:A,error:E}=g;UC({endpointName:w,data:x,status:_,isLoading:k,isSuccess:S,isError:A,error:E});const I=xn((()=>({...g,originalArgs:y,reset:b})),[g,y,b]);return xn((()=>[p,I]),[p,I])}},usePrefetch:function(t,r){const o=n(),i=rS(r);return yt(((n,r)=>o(e.util.prefetch(t,n,{...i,...r}))),[t,o,i])}};function c(e,t,n){if(null!=t&&t.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=s.endpointDefinitions[e];u({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===u({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:null==t?void 0:t.data;void 0===r&&(r=e.data);const o=void 0!==r,i=e.isLoading,a=!o&&i,l=e.isSuccess||i&&o;return{...e,data:r,currentData:e.data,isFetching:i,isLoading:a,isSuccess:l}}}var yQ=Symbol(),wQ=({batch:e=_M,hooks:t={useDispatch:bM,useSelector:dy,useStore:xM},createSelector:n=B3,unstable__sideEffectsInRender:r=!1,...o}={})=>({name:yQ,init(o,{serializeQueryArgs:i},a){const u=o,{buildQueryHooks:s,buildMutationHook:l,usePrefetch:c}=gQ({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:i,context:a});return Vg(u,{usePrefetch:c}),Vg(a,{batch:e}),{injectEndpoint(e,t){if(fQ(t)){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}=s(e);Vg(u.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}),o[`use${tS(e)}Query`]=t,o[`useLazy${tS(e)}Query`]=n}else if(pQ(t)){const t=l(e);Vg(u.endpoints[e],{useMutation:t}),o[`use${tS(e)}Mutation`]=t}}}}}),_Q=ZK(dQ(),wQ());const bQ=e=>{i$.removeToken(),e(SG()),n$("user").clear()},xQ=e=>async(t,n,r)=>{const o=await e(t,n,r);return o.error&&[401].includes(o.error.status)&&bQ(n.dispatch),o},SQ=async(e,t=2e3)=>{for(;!e();)await new Promise((e=>setTimeout(e,t)))},$Q=5,CQ=e=>t=>!!e&&t.includes(e.status),ZO=e=>new Promise((t=>setTimeout(t,1e3*e))),IQ=e=>async(t,n,r)=>{const o=(null==r?void 0:r.maxRetries)??5;await SQ((()=>n.getState().network.isOnline));let i=0;const a=async()=>{var u,s,l,c;const d=await e(t,n,r),f=d.error;if(i>=o)return d;i>0&&await ZO(Math.pow(2,i)),i++;const p=CQ(f);switch(!0){case"mutation"===n.type:return d;case!navigator.onLine:case p([408,404]):case f&&"FETCH_ERROR"===(null==f?void 0:f.status):case f&&f.status>=500:return await a();case 429===(null==(u=null==d?void 0:d.error)?void 0:u.status):{const e=null==(c=null==(l=null==(s=d.meta)?void 0:s.response)?void 0:l.headers)?void 0:c.get("Retry-After");return await ZO(+(e||"0")),await a()}default:return d}};return await a()};var H3=(e=>(e.SERVER_RULES="serverRules",e.INVITE_PEOPLE="invitePeople",e))(H3||{});const Xy="staticState",K3=n$(),Gg={path:"",baseUrl:"",search:""},EQ=e=>{if(!e)return Gg;try{return JSON.parse(decodeURIComponent(e))||Gg}catch(e){return El.error("Error parsing static state",e),Gg}},Q3=()=>new URLSearchParams(window.location.search).get(Xy),PQ=({path:e,baseUrl:t,search:n}={})=>{const{pathname:r,origin:o,search:i}=window.location;return`${Xy}=${encodeURIComponent(JSON.stringify({path:e||r,baseUrl:t||o,search:n||i}))}`},RQ=()=>{const e=Q3();return e&&K3.setItem(Xy,e),Y3()},Y3=()=>{try{const e=K3.getItem(Xy)||Q3();return EQ(e)}catch(e){return El.error("Error parsing static state",e),Gg}},X3={create:PQ,init:RQ,get:Y3},TQ=async e=>{const t={};e.headers.forEach(((e,n)=>{t[n]=e}));return{body:["get","head"].includes(e.method.toLowerCase())?null:await(async()=>{try{return await e.text()}catch(e){return El.error("No body or error reading body:",e),null}})(),headers:t,url:e.url,method:e.method,mode:e.mode,credentials:e.credentials,cache:e.cache,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity}},OQ=e=>{const{url:t,status:n,statusText:r,headers:o,body:i}=e,a=new Response(JSON.stringify(i),{status:n,statusText:r,headers:o});return Object.defineProperties(a,{url:{value:t},type:{value:"cors"}}),a},AQ=async e=>{const t=crypto.randomUUID();return new Promise(((n,r)=>{const o=XG({onMessage:({payload:{id:e,response:r}})=>{t===e&&(null==o||o(),n(OQ(r)))},whitelist:[JG]});(async()=>{try{YG({action:zT({id:t,options:await TQ(e)}),windowElement:window.parent,whitelist:[zT]})}catch(e){r(e)}})()}))};new EventTarget;const J3=()=>{var e;try{return(null==(e=window.wellesley)?void 0:e.v1)||window.wellesley}catch(e){El.error("Error getting window.wellesley:",e)}},DQ=e=>new Response(JSON.stringify(e),{status:200,statusText:"OK",headers:{"Content-Type":"application/json"}}),NQ=e=>{var t,n;if(e.url.includes("accounts/profile")){const e=null==(n=null==(t=J3())?void 0:t.initialState)?void 0:n.currentAccount;return!(null==e||!e.selectedUserId)&&DQ(e)}},kQ=Object.freeze(Object.defineProperty({__proto__:null,userHandler:NQ},Symbol.toStringTag,{value:"Module"})),MQ=e=>Object.values(kQ).reduce(((t,n)=>t||n(e)),void 0),LQ=async e=>MQ(e)||await fetch(e),FQ=()=>{try{return window.self!==window.top}catch{return!0}},BQ=()=>e=>FQ()?AQ(e):LQ(e),jQ=X3.get().baseUrl,VQ=jQ||"",UQ=qK({fetchFn:BQ(),baseUrl:VQ,responseHandler:e=>{const t=e.headers.get("content-type");if(!(null==t?void 0:t.startsWith("application/json")))return e.text();try{return e.json()}catch{return e.text()}},prepareHeaders:e=>{const t=i$.getToken();return t&&e.set("authorization",`Bearer ${t}`),e}}),zQ=xQ(IQ(UQ)),WQ=_Q({tagTypes:["Secure","Post","Follow","Like","Settings","UserSettings","RBAC","Rbac_Config","Admin_Apps","Admin_Platform_Data","Admin_Ai_Agents_Assignments","Admin_Users","Admin_Groups","Admin_Audit_Logs","Admin_Reports","Admin_Signup_Requests","Admin_Posts","Admin_Uploads","Admin_Roles","Admin_Jobs_Stats","Admin_Federation","Admin_Domain_Block","Admin_Custom_Emojis","Admin_Domain_Allow","Admin_Link_Service_Configure","Groups","Group_Channels","GroupMembers","GroupMembership","GroupRules","Group_Roles","Group_Join_Requests","Group_Apps","Group_Ai_Agents_Assignments","User_Apps","Account","Profile","UserNoHtml","Relationship","Bookmarks","Global_Search","Events","Event","EventAttendees",...Object.values(H3)],reducerPath:"openapi",baseQuery:zQ,endpoints:()=>({})}),qQ=WQ.injectEndpoints({endpoints:e=>({getApiMetaCompat:e.query({query:()=>({url:"/api/meta/compat"})}),postApiV1AccountsAddReason:e.mutation({query:e=>({url:"/api/v1/accounts/add-reason",method:"POST",body:e.signupReasonParams})}),postApiV1AccountsAuthenticateEmail:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/email",method:"POST",body:e.authRequest})}),postApiV1AccountsAuthenticatePhone:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/phone",method:"POST",body:e.authPhoneRequest})}),putApiV1AccountsChangeName:e.mutation({query:e=>({url:"/api/v1/accounts/change/name",method:"PUT",params:{id:e.id,name:e.name,username:e.username}})}),postApiV1AccountsCheckCaptcha:e.mutation({query:e=>({url:"/api/v1/accounts/check-captcha",method:"POST",body:e.captchaVerificationParams})}),postApiV1AccountsConfirmEmail:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-email",method:"POST",body:e.codeVerificationParams})}),postApiV1AccountsConfirmPhone:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-phone",method:"POST",body:e.codeVerificationParams})}),deleteApiV1AccountsDelete:e.mutation({query:()=>({url:"/api/v1/accounts/delete",method:"DELETE"})}),postApiV1AccountsEmailChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsEmailChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/request",method:"POST",body:e.emailChangeRequest})}),putApiV1AccountsEmailChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/email/change/resend-code",method:"PUT"})}),postApiV1AccountsFinishCreating:e.mutation({query:e=>({url:"/api/v1/accounts/finish-creating",method:"POST",body:e.finishCreatingAccountParams,params:{htmlContent:e.htmlContent}})}),putApiV1AccountsGetTokenByHash:e.mutation({query:e=>({url:`/api/v1/accounts/get-token/${e.hash}`,method:"PUT"})}),postApiV1AccountsLoginsAddEmailPassword:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password",method:"POST",body:e.addEmailRequest})}),postApiV1AccountsLoginsAddEmailPasswordConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password/confirm",method:"POST",body:e.body})}),putApiV1AccountsLoginsAddEmailPasswordResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/logins/add-email-password/resend-code",method:"PUT"})}),postApiV1AccountsLoginsAddPhone:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-phone",method:"POST",body:e.addPhoneRequest})}),deleteApiV1AccountsLoginsRemoveEmailPassword:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-email-password",method:"DELETE"})}),deleteApiV1AccountsLoginsRemovePhone:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-phone",method:"DELETE"})}),postApiV1AccountsPasswordChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsPasswordChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/request",method:"POST",body:e.passwordChangeRequest})}),putApiV1AccountsPasswordChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/password/change/resend-code",method:"PUT"})}),postApiV1AccountsPasswordRecover:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover",method:"POST",body:e.passwordRecoveryRequest})}),postApiV1AccountsPasswordRecoverChange:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/change",method:"POST",body:e.passwordRecoveryChange})}),postApiV1AccountsPasswordRecoverCheckCode:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/check-code",method:"POST",body:e.passwordRecoveryCode})}),postApiV1AccountsPhoneChangeConfirmAuth:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/auth",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeConfirmNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/new-phone",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/new-phone",method:"POST",body:e.addPhoneRequest})}),putApiV1AccountsPhoneChangeRequest:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/request",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeAuth:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/auth",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeNewPhone:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/new-phone",method:"PUT"})}),getApiV1AccountsProfile:e.query({query:e=>({url:"/api/v1/accounts/profile",params:{htmlContent:e.htmlContent}})}),putApiV1AccountsResendCodeByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-code/${e.hash}`,method:"PUT"})}),putApiV1AccountsResendEmailByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-email/${e.hash}`,method:"PUT"})}),postApiV1AccountsSignup:e.mutation({query:e=>({url:"/api/v1/accounts/signup",method:"POST",body:e.accountCreate})}),postApiV1AccountsSignupPhone:e.mutation({query:e=>({url:"/api/v1/accounts/signup-phone",method:"POST",body:e.phoneSignup})}),postApiV1AccountsUserReselectUser:e.mutation({query:e=>({url:"/api/v1/accounts/user/reselect-user",method:"POST",params:{userId:e.userId,userName:e.userName}})}),getApiV1AddressesSuggest:e.query({query:e=>({url:"/api/v1/addresses/suggest",params:{lang:e.lang,text:e.text}})}),getApiV1AdminAccountByAccountId:e.query({query:e=>({url:`/api/v1/admin/account/${e.accountId}`,params:{htmlContent:e.htmlContent}})}),getApiV1AdminAuditLog:e.query({query:e=>({url:"/api/v1/admin/audit_log",params:{accountId:e.accountId,action:e.action,appId:e.appId,domainSearch:e.domainSearch,email:e.email,group:e.group,groupId:e.groupId,lastId:e.lastId,limit:e.limit,offset:e.offset,ruleId:e.ruleId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminChangeEmail:e.mutation({query:e=>({url:"/api/v1/admin/change/email",method:"PUT",params:{email:e.email,id:e.id,username:e.username}})}),putApiV1AdminChangePassword:e.mutation({query:e=>({url:"/api/v1/admin/change/password",method:"PUT",params:{id:e.id,password:e.password,username:e.username}})}),putApiV1AdminChangeRoleAssign:e.mutation({query:e=>({url:"/api/v1/admin/change/role/assign",method:"PUT",params:{id:e.id,role:e.role,username:e.username,htmlContent:e.htmlContent}})}),putApiV1AdminChangeRoleRevoke:e.mutation({query:e=>({url:"/api/v1/admin/change/role/revoke",method:"PUT",params:{id:e.id,role:e.role,username:e.username,htmlContent:e.htmlContent}})}),postApiV1AdminClearApErrors:e.mutation({query:e=>({url:"/api/v1/admin/clear-ap-errors",method:"POST",params:{domain:e.domain}})}),postApiV1AdminCreateAccount:e.mutation({query:e=>({url:"/api/v1/admin/create-account",method:"POST",body:e.accountCreate,params:{htmlContent:e.htmlContent}})}),postApiV1AdminCreateUser:e.mutation({query:e=>({url:"/api/v1/admin/create-user",method:"POST",body:e.userCreate,params:{account_id:e.accountId,htmlContent:e.htmlContent}})}),deleteApiV1AdminDelete:e.mutation({query:e=>({url:"/api/v1/admin/delete",method:"DELETE",params:{email:e.email,id:e.id,username:e.username}})}),deleteApiV1AdminDeleteUser:e.mutation({query:e=>({url:"/api/v1/admin/delete-user",method:"DELETE",params:{id:e.id,username:e.username}})}),getApiV1AdminDomainAllow:e.query({query:e=>({url:"/api/v1/admin/domain-allow",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainAllow:e.mutation({query:e=>({url:"/api/v1/admin/domain-allow",method:"POST",body:e.allowedDomainReq})}),deleteApiV1AdminDomainAllowByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-allow/${e.domain}`,method:"DELETE"})}),putApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"PUT",body:e.blockDomainReq})}),getApiV1AdminDomainBlock:e.query({query:e=>({url:"/api/v1/admin/domain-block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"POST",body:e.blockDomainReq})}),deleteApiV1AdminDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-block/${e.domain}`,method:"DELETE"})}),getApiV1AdminEmailAllow:e.query({query:()=>({url:"/api/v1/admin/email-allow"})}),postApiV1AdminEmailAllow:e.mutation({query:e=>({url:"/api/v1/admin/email-allow",method:"POST",body:e.allowedDomainReq})}),deleteApiV1AdminEmailAllowByDomain:e.mutation({query:e=>({url:`/api/v1/admin/email-allow/${e.domain}`,method:"DELETE"})}),getApiV1AdminEmailBlock:e.query({query:()=>({url:"/api/v1/admin/email-block"})}),postApiV1AdminEmailBlock:e.mutation({query:e=>({url:"/api/v1/admin/email-block",method:"POST",body:e.blockEmailRequest})}),deleteApiV1AdminEmailBlockByPattern:e.mutation({query:e=>({url:`/api/v1/admin/email-block/${e.pattern}`,method:"DELETE"})}),getApiV1AdminFederation:e.query({query:e=>({url:"/api/v1/admin/federation",params:{blockState:e.blockState,lastId:e.lastId,limit:e.limit,offset:e.offset,search:e.search,sortBy:e.sortBy,sortOrder:e.sortOrder,unavailable:e.unavailable,untilId:e.untilId,warning:e.warning}})}),getApiV1AdminFederationMetricsOperations:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/operations",params:{window:e.window}})}),getApiV1AdminFederationMetricsRunningAverageSingle:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/running-average-single",params:{operation:e.operation,window:e.window}})}),getApiV1AdminFederationMetricsRunningAveragesAll:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/running-averages-all",params:{operations:e.operations,window:e.window}})}),getApiV1AdminFederationByDomain:e.query({query:e=>({url:`/api/v1/admin/federation/${e.domain}`})}),postApiV1AdminFeedClearUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/clear-user-feed",method:"POST",params:{userId:e.userId,username:e.username}})}),getApiV1AdminFeedDiagnose:e.query({query:e=>({url:"/api/v1/admin/feed/diagnose",params:{limit:e.limit,skipExactMatch:e.skipExactMatch,skipFull:e.skipFull,skipOrderMismatch:e.skipOrderMismatch,userId:e.userId,username:e.username}})}),getApiV1AdminFeedMetricsGlobalAllOperation:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-all-operation",params:{window:e.window}})}),getApiV1AdminFeedMetricsGlobalSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-single",params:{operation:e.operation,window:e.window}})}),getApiV1AdminFeedMetricsHistory:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history",params:{limit:e.limit,operation:e.operation,userId:e.userId}})}),getApiV1AdminFeedMetricsHistoryAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history/all",params:{limit:e.limit,userId:e.userId}})}),getApiV1AdminFeedMetricsRunningAverageSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/running-average-single",params:{operation:e.operation,userId:e.userId,window:e.window}})}),getApiV1AdminFeedMetricsRunningAveragesAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/running-averages-all",params:{userId:e.userId,window:e.window}})}),getApiV1AdminFeedMetricsSlowestOperations:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-operations",params:{limit:e.limit,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsers:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users",params:{limit:e.limit,operation:e.operation,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsersAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users-all",params:{limit:e.limit,sortDesc:e.sortDesc,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsersSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users-single",params:{limit:e.limit,operation:e.operation,sortDesc:e.sortDesc,window:e.window}})}),getApiV1AdminFeedMetricsSummary:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/summary",params:{includeUserCounts:e.includeUserCounts,window:e.window}})}),getApiV1AdminFeedMetricsUserCountAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/user-count-all",params:{window:e.window}})}),getApiV1AdminFeedMetricsUserCountSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/user-count-single",params:{operation:e.operation,window:e.window}})}),postApiV1AdminFeedRegenerateUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/regenerate-user-feed",method:"POST",params:{clear:e.clear,userId:e.userId,username:e.username}})}),getApiV1AdminGroupsSearch:e.query({query:e=>({url:"/api/v1/admin/groups/search",params:{accountId:e.accountId,displayName:e.displayName,domain:e.domain,email:e.email,joinMode:e.joinMode,lastId:e.lastId,limit:e.limit,offset:e.offset,privacy:e.privacy,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username,visibility:e.visibility}})}),getApiV1AdminGroupsUserByUserId:e.query({query:e=>({url:`/api/v1/admin/groups/user/${e.userId}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,roles:e.roles,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1AdminGroupsByAccountId:e.query({query:e=>({url:`/api/v1/admin/groups/${e.accountId}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1AdminGroupsByGroupIdCategories:e.query({query:e=>({url:`/api/v1/admin/groups/${e.groupId}/categories`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1AdminGroupsByGroupIdChannels:e.query({query:e=>({url:`/api/v1/admin/groups/${e.groupId}/channels`})}),getApiV1AdminGroupsByGroupIdEvents:e.query({query:e=>({url:`/api/v1/admin/groups/${e.groupId}/events`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withTranslation:e.withTranslation}})}),getApiV1AdminImpersonate:e.query({query:e=>({url:"/api/v1/admin/impersonate",params:{username:e.username}})}),getApiV1AdminLinkService:e.query({query:()=>({url:"/api/v1/admin/link-service"})}),postApiV1AdminLinkServiceConfigure:e.mutation({query:e=>({url:"/api/v1/admin/link-service/configure",method:"POST",body:e.configureRequest})}),postApiV1AdminPostsDelete:e.mutation({query:e=>({url:"/api/v1/admin/posts/delete",method:"POST",body:e.postDelete})}),deleteApiV1AdminPurge:e.mutation({query:e=>({url:"/api/v1/admin/purge",method:"DELETE",params:{id:e.id}})}),postApiV1AdminRegenerateKeys:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys",method:"POST",params:{userId:e.userId,username:e.username}})}),postApiV1AdminRegenerateKeysAll:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys-all",method:"POST",params:{batch:e.batch}})}),postApiV1AdminReleaseUsername:e.mutation({query:e=>({url:"/api/v1/admin/release-username",method:"POST",params:{username:e.username}})}),postApiV1AdminReportsDeletePosts:e.mutation({query:e=>({url:"/api/v1/admin/reports/delete-posts",method:"POST",body:e.body})}),getApiV1AdminReportsList:e.query({query:e=>({url:"/api/v1/admin/reports/list",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,open:e.open,postId:e.postId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId}})}),getApiV1AdminReportsByReportId:e.query({query:e=>({url:`/api/v1/admin/reports/${e.reportId}`})}),postApiV1AdminReportsByReportIdAddNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/add-note`,method:"POST",body:e.body})}),postApiV1AdminReportsByReportIdAssignToSelf:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/assign-to-self`,method:"POST"})}),deleteApiV1AdminReportsByReportIdDelete:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/delete`,method:"DELETE"})}),postApiV1AdminReportsByReportIdRemoveNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/remove-note`,method:"POST",params:{index:e.index}})}),postApiV1AdminReportsByReportIdReopen:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/reopen`,method:"POST"})}),postApiV1AdminReportsByReportIdResolve:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/resolve`,method:"POST"})}),postApiV1AdminReportsByReportIdUnassign:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/unassign`,method:"POST"})}),postApiV1AdminRestartApDelivery:e.mutation({query:e=>({url:"/api/v1/admin/restart-ap-delivery",method:"POST",params:{domain:e.domain}})}),getApiV1AdminSearch:e.query({query:e=>({url:"/api/v1/admin/search",params:{accountId:e.accountId,actorType:e.actorType,country:e.country,displayName:e.displayName,domain:e.domain,email:e.email,ip:e.ip,kind:e.kind,lastId:e.lastId,limit:e.limit,offset:e.offset,role:e.role,search:e.search,sortBy:e.sortBy,sortOrder:e.sortOrder,state:e.state,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminSignupRequestsApproveByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/approve/${e.hash}`,method:"PUT"})}),deleteApiV1AdminSignupRequestsDeleteByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/delete/${e.hash}`,method:"DELETE"})}),getApiV1AdminSignupRequestsList:e.query({query:e=>({url:"/api/v1/admin/signup_requests/list",params:{email:e.email,hash:e.hash,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1AdminSignupRequestsRejectByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/reject/${e.hash}`,method:"PUT",params:{reason:e.reason}})}),getApiV1AdminUploadsJobsQueueByQueueName:e.query({query:e=>({url:`/api/v1/admin/uploads/jobs/queue/${e.queueName}`,params:{limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,uploadType:e.uploadType}})}),getApiV1AdminUploadsJobsSummary:e.query({query:()=>({url:"/api/v1/admin/uploads/jobs/summary"})}),getApiV1AdminUploadsSearch:e.query({query:e=>({url:"/api/v1/admin/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType,userId:e.userId}})}),getApiV1AdminUploadsStorageByUserId:e.query({query:e=>({url:`/api/v1/admin/uploads/storage/${e.userId}`})}),postApiV1AdminUserChangeState:e.mutation({query:e=>({url:"/api/v1/admin/user/change-state",method:"POST",body:e.changeUserState})}),postApiV1AdminUserChangeStateBulk:e.mutation({query:e=>({url:"/api/v1/admin/user/change-state-bulk",method:"POST",body:e.changeUserStateBulk})}),getApiV1AdminUserByUserId:e.query({query:e=>({url:`/api/v1/admin/user/${e.userId}`})}),getApiV1AiAgentsAssignments:e.query({query:e=>({url:"/api/v1/ai-agents/assignments",params:{resourceId:e.resourceId,type:e.type}})}),deleteApiV1AiAgentsAssignments:e.mutation({query:e=>({url:"/api/v1/ai-agents/assignments",method:"DELETE",params:{id:e.id}})}),postApiV1AiAgentsAssignments:e.mutation({query:e=>({url:"/api/v1/ai-agents/assignments",method:"POST",body:e.aiAgentAssignmentCreate})}),getApiV1AiAgentsPosts:e.query({query:e=>({url:"/api/v1/ai-agents/posts",params:{limit:e.limit,ownerId:e.ownerId,since:e.since,htmlContent:e.htmlContent}})}),getApiV1AiModels:e.query({query:e=>({url:"/api/v1/ai-models",params:{capabilities:e.capabilities,deprecated:e.deprecated,enabled:e.enabled,maxContextWindow:e.maxContextWindow,maxInputPrice:e.maxInputPrice,maxMaxOutputTokens:e.maxMaxOutputTokens,maxOutputPrice:e.maxOutputPrice,minContextWindow:e.minContextWindow,minMaxOutputTokens:e.minMaxOutputTokens,modalities:e.modalities,openWeights:e.openWeights,page:e.page,pageSize:e.pageSize,providerId:e.providerId,search:e.search}})}),putApiV1AiModelsByModelId:e.mutation({query:e=>({url:`/api/v1/ai-models/${e.modelId}`,method:"PUT",body:e.aiModelUpdate,params:{scope:e.scope}})}),getApiV1AiModelsByModelId:e.query({query:e=>({url:`/api/v1/ai-models/${e.modelId}`})}),deleteApiV1AiModelsByModelId:e.mutation({query:e=>({url:`/api/v1/ai-models/${e.modelId}`,method:"DELETE",params:{scope:e.scope}})}),getApiV1AiModelsByModelIdMigrationPath:e.query({query:e=>({url:`/api/v1/ai-models/${e.modelId}/migration-path`})}),getApiV1AiModelsByModelIdResolve:e.query({query:e=>({url:`/api/v1/ai-models/${e.modelId}/resolve`})}),getApiV1AiProviders:e.query({query:e=>({url:"/api/v1/ai-providers",params:{enabledOnly:e.enabledOnly,scope:e.scope}})}),postApiV1AiProviders:e.mutation({query:e=>({url:"/api/v1/ai-providers",method:"POST",body:e.aiProviderCreate,params:{scope:e.scope}})}),putApiV1AiProvidersByProviderId:e.mutation({query:e=>({url:`/api/v1/ai-providers/${e.providerId}`,method:"PUT",body:e.aiProviderUpdate,params:{scope:e.scope}})}),getApiV1AiProvidersByProviderId:e.query({query:e=>({url:`/api/v1/ai-providers/${e.providerId}`,params:{scope:e.scope}})}),deleteApiV1AiProvidersByProviderId:e.mutation({query:e=>({url:`/api/v1/ai-providers/${e.providerId}`,method:"DELETE",params:{scope:e.scope}})}),getApiV1AiProvidersByProviderIdModels:e.query({query:e=>({url:`/api/v1/ai-providers/${e.providerId}/models`,params:{enabledOnly:e.enabledOnly,includeDeprecated:e.includeDeprecated}})}),postApiV1AiProvidersByProviderIdModels:e.mutation({query:e=>({url:`/api/v1/ai-providers/${e.providerId}/models`,method:"POST",body:e.aiModelCreate,params:{scope:e.scope}})}),postApiV1Apps:e.mutation({query:e=>({url:"/api/v1/apps",method:"POST",body:e.body,params:{enable:e.enable}})}),getApiV1Apps:e.query({query:()=>({url:"/api/v1/apps"})}),getApiV1AppsEnabled:e.query({query:()=>({url:"/api/v1/apps/enabled"})}),getApiV1AppsInstalled:e.query({query:()=>({url:"/api/v1/apps/installed"})}),getApiV1AppsUser:e.query({query:()=>({url:"/api/v1/apps/user"})}),deleteApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"DELETE"})}),putApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"PUT"})}),putApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"PUT",body:e.body,params:{enable:e.enable}})}),getApiV1AppsByAppId:e.query({query:e=>({url:`/api/v1/apps/${e.appId}`})}),deleteApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"DELETE"})}),getApiV1AppsByAppIdData:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/data`,params:{owner:e.owner,tags:e.tags,type:e.type}})}),postApiV1AppsByAppIdData:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data`,method:"POST",body:e.dataCreate})}),putApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"PUT",body:e.dataCreate})}),deleteApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"DELETE"})}),putApiV1AppsByAppIdDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/default`,method:"PUT"})}),putApiV1AppsByAppIdDisable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/disable`,method:"PUT"})}),putApiV1AppsByAppIdEnable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/enable`,method:"PUT"})}),getApiV1AppsByAppIdStats:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/stats`})}),putApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"PUT"})}),deleteApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"DELETE"})}),getApiV1Block:e.query({query:e=>({url:"/api/v1/block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1BlockBy:e.query({query:e=>({url:"/api/v1/block/by",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"DELETE"})}),postApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"POST"})}),getApiV1CustomEmojis:e.query({query:e=>({url:"/api/v1/custom_emojis",params:{category:e.category,lastId:e.lastId,limit:e.limit,offset:e.offset,shortcode:e.shortcode,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"DELETE",params:{category:e.category,shortcode:e.shortcode}})}),postApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"POST",body:e.emoji,params:{overwrite:e.overwrite}})}),getApiV1CustomEmojisCategories:e.query({query:e=>({url:"/api/v1/custom_emojis/categories",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,q:e.q,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1CustomEmojisExport:e.query({query:e=>({url:"/api/v1/custom_emojis/export",params:{category:e.category}})}),postApiV1CustomEmojisImport:e.mutation({query:e=>({url:"/api/v1/custom_emojis/import",method:"POST",body:e.body,params:{category:e.category,domain:e.domain,overwrite:e.overwrite,visible:e.visible}})}),postApiV1CustomEmojisImportUpload:e.mutation({query:e=>({url:"/api/v1/custom_emojis/import/upload",method:"POST",params:{category:e.category,domain:e.domain,overwrite:e.overwrite,uploadId:e.uploadId,visible:e.visible}})}),getApiV1CustomEmojisSearch:e.query({query:e=>({url:"/api/v1/custom_emojis/search",params:{category:e.category,lastId:e.lastId,limit:e.limit,offset:e.offset,shortcode:e.shortcode,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1CustomEmojisUpload:e.mutation({query:e=>({url:"/api/v1/custom_emojis/upload",method:"POST",params:{category:e.category,domain:e.domain,overwrite:e.overwrite,shortcode:e.shortcode,uploadId:e.uploadId,visible:e.visible}})}),patchApiV1CustomEmojisByShortcode:e.mutation({query:e=>({url:`/api/v1/custom_emojis/${e.shortcode}`,method:"PATCH",body:e.emojiPatchRequest})}),getApiV1Data:e.query({query:e=>({url:"/api/v1/data",params:{owner:e.owner,tags:e.tags,type:e.type}})}),postApiV1Data:e.mutation({query:e=>({url:"/api/v1/data",method:"POST",body:e.dataCreate})}),putApiV1DataById:e.mutation({query:e=>({url:`/api/v1/data/${e.id}`,method:"PUT",body:e.dataCreate})}),deleteApiV1DataById:e.mutation({query:e=>({url:`/api/v1/data/${e.id}`,method:"DELETE"})}),putApiV1Devices:e.mutation({query:e=>({url:"/api/v1/devices",method:"PUT",body:e.deviceRegistrationRequest})}),getApiV1Devices:e.query({query:()=>({url:"/api/v1/devices"})}),deleteApiV1DevicesAll:e.mutation({query:()=>({url:"/api/v1/devices/all",method:"DELETE"})}),getApiV1DevicesVapidPublicKey:e.query({query:()=>({url:"/api/v1/devices/vapid-public-key"})}),deleteApiV1DevicesByDeviceId:e.mutation({query:e=>({url:`/api/v1/devices/${e.deviceId}`,method:"DELETE"})}),getApiV1DomainBlock:e.query({query:e=>({url:"/api/v1/domain-block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Drafts:e.query({query:e=>({url:"/api/v1/drafts",params:{ownerId:e.ownerId}})}),postApiV1Drafts:e.mutation({query:e=>({url:"/api/v1/drafts",method:"POST",body:e.createDraftRequest,params:{ownerId:e.ownerId}})}),getApiV1DraftsPostByPostId:e.query({query:e=>({url:`/api/v1/drafts/post/${e.postId}`})}),putApiV1DraftsByDraftId:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}`,method:"PUT",body:e.updateDraftRequest})}),getApiV1DraftsByDraftId:e.query({query:e=>({url:`/api/v1/drafts/${e.draftId}`})}),deleteApiV1DraftsByDraftId:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}`,method:"DELETE"})}),postApiV1DraftsByDraftIdPublish:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}/publish`,method:"POST",params:{htmlContent:e.htmlContent}})}),getApiV1Events:e.query({query:e=>({url:"/api/v1/events",params:{groupId:e.groupId,limit:e.limit,offset:e.offset,organizerId:e.organizerId,username:e.username,withTranslation:e.withTranslation}})}),postApiV1Events:e.mutation({query:e=>({url:"/api/v1/events",method:"POST",body:e.createEvent})}),getApiV1EventsCalendarGByGroupnameIcs:e.query({query:e=>({url:`/api/v1/events/calendar/g/${e.groupname}.ics`})}),getApiV1EventsCalendarPByIdIcs:e.query({query:e=>({url:`/api/v1/events/calendar/p/${e.id}.ics`})}),getApiV1EventsCalendarUByUsernameIcs:e.query({query:e=>({url:`/api/v1/events/calendar/u/${e.username}.ics`})}),getApiV1EventsFollowing:e.query({query:e=>({url:"/api/v1/events/following",params:{limit:e.limit,offset:e.offset,withTranslation:e.withTranslation}})}),getApiV1EventsMy:e.query({query:e=>({url:"/api/v1/events/my",params:{limit:e.limit,notRespondedOnly:e.notRespondedOnly,offset:e.offset,organizedOnly:e.organizedOnly,past:e.past,withTranslation:e.withTranslation}})}),getApiV1EventsSettings:e.query({query:e=>({url:"/api/v1/events/settings",params:{ownerId:e.ownerId}})}),postApiV1EventsSettingsRegeneratePrivateId:e.mutation({query:e=>({url:"/api/v1/events/settings/regeneratePrivateId",method:"POST",params:{ownerId:e.ownerId}})}),postApiV1EventsSettingsUpdate:e.mutation({query:e=>({url:"/api/v1/events/settings/update",method:"POST",body:e.updateEventsSettings,params:{ownerId:e.ownerId}})}),putApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"PUT",body:e.updateEvent})}),getApiV1EventsByEventId:e.query({query:e=>({url:`/api/v1/events/${e.eventId}`,params:{withTranslation:e.withTranslation}})}),deleteApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"DELETE"})}),getApiV1EventsByEventIdIcs:e.query({query:e=>({url:`/api/v1/events/${e.eventId}.ics`})}),postApiV1EventsByEventIdAccept:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/accept`,method:"POST"})}),getApiV1EventsByEventIdAttendees:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/attendees`,params:{limit:e.limit,offset:e.offset}})}),deleteApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"DELETE"})}),postApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"POST"})}),postApiV1EventsByEventIdCancel:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/cancel`,method:"POST"})}),postApiV1EventsByEventIdInterested:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/interested`,method:"POST"})}),postApiV1EventsByEventIdJoin:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/join`,method:"POST"})}),deleteApiV1EventsByEventIdJoinOrInterested:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/joinOrInterested`,method:"DELETE"})}),postApiV1EventsByEventIdMaybe:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/maybe`,method:"POST"})}),getApiV1EventsByEventIdMutual:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/mutual`,params:{limit:e.limit,offset:e.offset}})}),postApiV1EventsByEventIdReject:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/reject`,method:"POST"})}),postApiV1EventsByEventIdTranslate:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/translate`,method:"POST",params:{lang:e.lang}})}),postApiV1FaspClear:e.mutation({query:()=>({url:"/api/v1/fasp/clear",method:"POST"})}),getApiV1FaspDebugV0CallbackCallbacks:e.query({query:()=>({url:"/api/v1/fasp/debug/v0/callback/callbacks"})}),deleteApiV1FaspDebugV0CallbackCallbacksById:e.mutation({query:e=>({url:`/api/v1/fasp/debug/v0/callback/callbacks/${e.id}`,method:"DELETE"})}),postApiV1FaspRegistration:e.mutation({query:e=>({url:"/api/v1/fasp/registration",method:"POST",body:e.registrationRequest})}),postApiV1FaspByProviderIdCapabilities:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/capabilities`,method:"POST",body:e.body})}),postApiV1FaspByProviderIdDebugCall:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/debug-call`,method:"POST",body:e.body})}),getApiV1FaspByProviderIdRegistrationFinish:e.query({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`})}),postApiV1FaspByProviderIdRegistrationFinish:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`,method:"POST"})}),postApiV1FaspByProviderIdRequestBackfill:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/request_backfill`,method:"POST",params:{category:e.category}})}),postApiV1FederationTokens:e.mutation({query:e=>({url:"/api/v1/federation/tokens",method:"POST",body:e.groupFederationTokenRequest})}),getApiV1Geo:e.query({query:e=>({url:"/api/v1/geo",params:{latitude:e.latitude,longitude:e.longitude}})}),getApiV1Groups:e.query({query:e=>({url:"/api/v1/groups",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1Groups:e.mutation({query:e=>({url:"/api/v1/groups",method:"POST",body:e.groupCreate})}),getApiV1GroupsApps:e.query({query:()=>({url:"/api/v1/groups/apps"})}),getApiV1GroupsInvites:e.query({query:e=>({url:"/api/v1/groups/invites",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1GroupsInvitesByGroupInviteId:e.query({query:e=>({url:`/api/v1/groups/invites/${e.groupInviteId}`})}),getApiV1GroupsMemberByUserId:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMemberByUserIdGroups:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}/groups`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMyGroups:e.query({query:e=>({url:"/api/v1/groups/my-groups",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsNameByGroupname:e.query({query:e=>({url:`/api/v1/groups/name/${e.groupname}`})}),getApiV1GroupsOwned:e.query({query:e=>({url:"/api/v1/groups/owned",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsPinned:e.query({query:e=>({url:"/api/v1/groups/pinned",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsSearch:e.query({query:e=>({url:"/api/v1/groups/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,substring:e.substring,untilId:e.untilId}})}),getApiV1GroupsUsersByUserIdMutual:e.query({query:e=>({url:`/api/v1/groups/users/${e.userId}/mutual`})}),putApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"PUT",body:e.groupUpdate})}),getApiV1GroupsByGroupId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}`})}),deleteApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"DELETE"})}),getApiV1GroupsByGroupIdAiAgentsAssignments:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/ai-agents/assignments`,params:{resourceId:e.resourceId,type:e.type}})}),deleteApiV1GroupsByGroupIdAiAgentsAssignments:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/ai-agents/assignments`,method:"DELETE",params:{assignmentId:e.assignmentId}})}),postApiV1GroupsByGroupIdAiAgentsAssignments:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/ai-agents/assignments`,method:"POST",body:e.aiAgentAssignmentCreate})}),getApiV1GroupsByGroupIdApps:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/apps`})}),deleteApiV1GroupsByGroupIdAppsAndAppId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/apps/${e.appId}`,method:"DELETE"})}),putApiV1GroupsByGroupIdAppsAndAppId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/apps/${e.appId}`,method:"PUT"})}),putApiV1GroupsByGroupIdBranding:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/branding`,method:"PUT",body:e.groupBrandingUpdate})}),getApiV1GroupsByGroupIdCategories:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/categories`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1GroupsByGroupIdCategories:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/categories`,method:"POST",body:e.categoryCreate})}),getApiV1GroupsByGroupIdCategoriesNameAndCategoryName:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/categories/name/${e.categoryName}`})}),putApiV1GroupsByGroupIdCategoriesAndCategoryId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/categories/${e.categoryId}`,method:"PUT",body:e.categoryUpdate})}),getApiV1GroupsByGroupIdCategoriesAndCategoryId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/categories/${e.categoryId}`})}),deleteApiV1GroupsByGroupIdCategoriesAndCategoryId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/categories/${e.categoryId}`,method:"DELETE"})}),getApiV1GroupsByGroupIdChannels:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels`})}),postApiV1GroupsByGroupIdChannels:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels`,method:"POST",body:e.body,params:{htmlContent:e.htmlContent}})}),getApiV1GroupsByGroupIdChannelsDefault:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/default`})}),getApiV1GroupsByGroupIdChannelsLookup:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/lookup`,params:{full:e.full,username:e.username,htmlContent:e.htmlContent}})}),getApiV1GroupsByGroupIdChannelsMain:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/main`,params:{htmlContent:e.htmlContent}})}),getApiV1GroupsByGroupIdChannelsPublic:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/public`})}),putApiV1GroupsByGroupIdChannelsAndChannelId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}`,method:"PUT",body:e.body,params:{htmlContent:e.htmlContent}})}),getApiV1GroupsByGroupIdChannelsAndChannelId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}`,params:{full:e.full,htmlContent:e.htmlContent}})}),deleteApiV1GroupsByGroupIdChannelsAndChannelId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}`,method:"DELETE"})}),putApiV1GroupsByGroupIdChannelsAndChannelIdDefault:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}/default`,method:"PUT",params:{isDefault:e.isDefault,htmlContent:e.htmlContent}})}),putApiV1GroupsByGroupIdChannelsAndChannelIdMain:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}/main`,method:"PUT",params:{htmlContent:e.htmlContent}})}),putApiV1GroupsByGroupIdChannelsAndChannelIdUsername:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}/username`,method:"PUT",body:e.body,params:{htmlContent:e.htmlContent}})}),postApiV1GroupsByGroupIdFederationToken:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/federation-token`,method:"POST"})}),putApiV1GroupsByGroupIdForum:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`,method:"PUT",body:e.forumUpdate})}),getApiV1GroupsByGroupIdForum:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`})}),deleteApiV1GroupsByGroupIdForum:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`,method:"DELETE"})}),deleteApiV1GroupsByGroupIdForumHard:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/forum/hard`,method:"DELETE"})}),getApiV1GroupsByGroupIdForumStats:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum/stats`})}),getApiV1GroupsByGroupIdForumTags:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum/tags`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsByGroupIdForumTagsSearch:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum/tags/search`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,q:e.q,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsByGroupIdInvites:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/invites`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1GroupsByGroupIdInvites:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/invites`,method:"POST",body:e.groupInviteCreate})}),deleteApiV1GroupsByGroupIdInvitesAndGroupInviteId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/invites/${e.groupInviteId}`,method:"DELETE"})}),postApiV1GroupsByGroupIdInvitesAndGroupInviteIdAccept:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/invites/${e.groupInviteId}/accept`,method:"POST"})}),postApiV1GroupsByGroupIdInvitesAndGroupInviteIdReject:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/invites/${e.groupInviteId}/reject`,method:"POST"})}),postApiV1GroupsByGroupIdJoin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join`,method:"POST",params:{answerToken:e.answerToken}})}),deleteApiV1GroupsByGroupIdJoin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join`,method:"DELETE"})}),getApiV1GroupsByGroupIdJoinRequests:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/join-requests`,params:{createdFrom:e.createdFrom,createdTo:e.createdTo,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId,username:e.username}})}),deleteApiV1GroupsByGroupIdJoinRequestsAndGroupJoinRequestId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join-requests/${e.groupJoinRequestId}`,method:"DELETE",params:{purge:e.purge,reason:e.reason}})}),putApiV1GroupsByGroupIdJoinRequestsAndGroupJoinRequestId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join-requests/${e.groupJoinRequestId}`,method:"PUT",params:{reason:e.reason}})}),putApiV1GroupsByGroupIdMemberSettings:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/member-settings`,method:"PUT",body:e.groupMemberSettings})}),getApiV1GroupsByGroupIdMemberSettings:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/member-settings`,params:{keys:e.keys}})}),deleteApiV1GroupsByGroupIdMemberSettings:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/member-settings`,method:"DELETE",params:{keys:e.keys}})}),getApiV1GroupsByGroupIdMembers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,params:{actorType:e.actorType,createdAfter:e.createdAfter,displayName:e.displayName,domain:e.domain,limit:e.limit,offset:e.offset,order:e.order,role:e.role,sort:e.sort,username:e.username}})}),postApiV1GroupsByGroupIdMembers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,method:"POST",body:e.groupMemberCreate})}),getApiV1GroupsByGroupIdMembersSearch:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/members/search`,params:{actorType:e.actorType,country:e.country,createdAfter:e.createdAfter,displayName:e.displayName,domain:e.domain,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,role:e.role,roles:e.roles,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,username:e.username}})}),putApiV1GroupsByGroupIdMembersAndMemberId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members/${e.memberId}`,method:"PUT",body:e.groupMemberUpdate})}),deleteApiV1GroupsByGroupIdMembersAndMemberId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members/${e.memberId}`,method:"DELETE",params:{reason:e.reason}})}),deleteApiV1GroupsByGroupIdMembership:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/membership`,method:"DELETE"})}),getApiV1GroupsByGroupIdMembership:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/membership`})}),deleteApiV1GroupsByGroupIdPin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/pin`,method:"DELETE"})}),putApiV1GroupsByGroupIdPin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/pin`,method:"PUT",params:{pin:e.pin}})}),getApiV1GroupsByGroupIdQuestions:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/questions`})}),postApiV1GroupsByGroupIdQuestions:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/questions`,method:"POST",body:e.questionCreate})}),postApiV1GroupsByGroupIdQuestionsAnswers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/questions/answers`,method:"POST",body:e.questionAnswerCreate})}),putApiV1GroupsByGroupIdQuestionsAndQuestionId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/questions/${e.questionId}`,method:"PUT",body:e.questionUpdate})}),deleteApiV1GroupsByGroupIdQuestionsAndQuestionId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/questions/${e.questionId}`,method:"DELETE"})}),postApiV1GroupsByGroupIdReportsDeletePosts:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/delete-posts`,method:"POST",body:e.body})}),getApiV1GroupsByGroupIdReportsList:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/list`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,open:e.open,postId:e.postId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId}})}),getApiV1GroupsByGroupIdReportsAndReportId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/${e.reportId}`})}),postApiV1GroupsByGroupIdReportsAndReportIdAddNote:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/${e.reportId}/add-note`,method:"POST",body:e.body})}),postApiV1GroupsByGroupIdReportsAndReportIdRemoveNote:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/${e.reportId}/remove-note`,method:"POST",params:{index:e.index}})}),postApiV1GroupsByGroupIdReportsAndReportIdReopen:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/${e.reportId}/reopen`,method:"POST"})}),postApiV1GroupsByGroupIdReportsAndReportIdResolve:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/${e.reportId}/resolve`,method:"POST"})}),getApiV1GroupsByGroupIdRules:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/rules`})}),postApiV1GroupsByGroupIdRules:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules`,method:"POST",params:{hint:e.hint,ordering:e.ordering,text:e.text}})}),postApiV1GroupsByGroupIdRulesReorder:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules/reorder`,method:"POST",body:e.body})}),deleteApiV1GroupsByGroupIdRulesAndId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules/${e.id}`,method:"DELETE"})}),putApiV1GroupsByGroupIdRulesAndRuleId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules/${e.ruleId}`,method:"PUT",body:e.ruleUpdate})}),putApiV1GroupsByGroupIdSettings:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/settings`,method:"PUT",body:e.groupSettings})}),getApiV1GroupsByGroupIdSettings:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/settings`,params:{keys:e.keys}})}),deleteApiV1GroupsByGroupIdSettings:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/settings`,method:"DELETE",params:{keys:e.keys}})}),getApiV1GroupsByGroupIdUsers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/users`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,order:e.order,role:e.role,sort:e.sort,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Import:e.query({query:()=>({url:"/api/v1/import"})}),postApiV1Import:e.mutation({query:e=>({url:"/api/v1/import",method:"POST",body:e.body,params:{overwrite:e.overwrite,type:e.type}})}),postApiV1ImportStartById:e.mutation({query:e=>({url:`/api/v1/import/start/${e.id}`,method:"POST"})}),getApiV1ImportById:e.query({query:e=>({url:`/api/v1/import/${e.id}`})}),getApiV1Instance:e.query({query:()=>({url:"/api/v1/instance"})}),getApiV1InstanceCountries:e.query({query:()=>({url:"/api/v1/instance/countries"})}),getApiV1InstanceDomains:e.query({query:e=>({url:"/api/v1/instance/domains",params:{domain:e.domain,limit:e.limit,software:e.software}})}),getApiV1InstanceExtendedDescription:e.query({query:()=>({url:"/api/v1/instance/extended_description"})}),getApiV1InstanceSupportedLanguages:e.query({query:()=>({url:"/api/v1/instance/supported_languages"})}),getApiV1InstanceTimezones:e.query({query:()=>({url:"/api/v1/instance/timezones"})}),getApiV1JobsListJobs:e.query({query:e=>({url:"/api/v1/jobs/list-jobs",params:{limit:e.limit,offset:e.offset}})}),getApiV1JobsListStats:e.query({query:e=>({url:"/api/v1/jobs/list-stats",params:{queue:e.queue}})}),getApiV1JobsListStatsAll:e.query({query:()=>({url:"/api/v1/jobs/list-stats-all"})}),getApiV1JobsLists:e.query({query:e=>({url:"/api/v1/jobs/lists",params:{limit:e.limit,listKind:e.listKind,offset:e.offset,queue:e.queue}})}),getApiV1JobsStats:e.query({query:()=>({url:"/api/v1/jobs/stats"})}),getApiV1JobsStatsPerDay:e.query({query:e=>({url:"/api/v1/jobs/stats-per-day",params:{lastDays:e.lastDays,queue:e.queue}})}),getApiV1Links:e.query({query:e=>({url:"/api/v1/links",params:{url:e.url}})}),getApiV1Lists:e.query({query:()=>({url:"/api/v1/lists"})}),postApiV1Lists:e.mutation({query:e=>({url:"/api/v1/lists",method:"POST",body:e.userListCreate})}),putApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"PUT",body:e.userListCreate})}),getApiV1ListsByListId:e.query({query:e=>({url:`/api/v1/lists/${e.listId}`})}),deleteApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"DELETE"})}),getApiV1ListsByListIdUsers:e.query({query:e=>({url:`/api/v1/lists/${e.listId}/users`})}),deleteApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"DELETE"})}),postApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"POST"})}),getApiV1Metrics:e.query({query:e=>({url:"/api/v1/metrics",params:{from:e.from,period:e.period,to:e.to}})}),getApiV1MetricsTotals:e.query({query:()=>({url:"/api/v1/metrics/totals"})}),getApiV1Mute:e.query({query:e=>({url:"/api/v1/mute",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"DELETE"})}),postApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"POST",params:{duration:e.duration}})}),getApiV1NamesCheck:e.query({query:e=>({url:"/api/v1/names/check",params:{name:e.name,nameScope:e.nameScope,scope:e.scope}})}),putApiV1Notes:e.mutation({query:e=>({url:"/api/v1/notes",method:"PUT",body:e.noteUpdate})}),getApiV1Notes:e.query({query:e=>({url:"/api/v1/notes",params:{userIds:e.userIds}})}),deleteApiV1NotesByUserId:e.mutation({query:e=>({url:`/api/v1/notes/${e.userId}`,method:"DELETE"})}),getApiV1Notifications:e.query({query:e=>({url:"/api/v1/notifications",params:{excludeTypes:e.excludeTypes,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,types:e.types,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1NotificationsCount:e.query({query:e=>({url:"/api/v1/notifications/count",params:{excludeTypes:e.excludeTypes,status:e.status,types:e.types}})}),postApiV1NotificationsMarkAll:e.mutation({query:e=>({url:"/api/v1/notifications/mark-all",method:"POST",params:{status:e.status}})}),getApiV1NotificationsById:e.query({query:e=>({url:`/api/v1/notifications/${e.id}`,params:{htmlContent:e.htmlContent}})}),postApiV1NotificationsByIdMark:e.mutation({query:e=>({url:`/api/v1/notifications/${e.id}/mark`,method:"POST",params:{status:e.status,htmlContent:e.htmlContent}})}),getApiV1Passkeys:e.query({query:()=>({url:"/api/v1/passkeys"})}),getApiV1PasskeysBeginAuth:e.query({query:e=>({url:"/api/v1/passkeys/begin-auth",params:{username:e.username}})}),getApiV1PasskeysBeginRegister:e.query({query:()=>({url:"/api/v1/passkeys/begin-register"})}),postApiV1PasskeysFinishAuth:e.mutation({query:e=>({url:"/api/v1/passkeys/finish-auth",method:"POST",body:e.jsonObject})}),postApiV1PasskeysFinishRegister:e.mutation({query:e=>({url:"/api/v1/passkeys/finish-register",method:"POST",body:e.jsonObject})}),deleteApiV1PasskeysByCredentialId:e.mutation({query:e=>({url:`/api/v1/passkeys/${e.credentialId}`,method:"DELETE"})}),postApiV1PollsByPollIdRefresh:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/refresh`,method:"POST"})}),postApiV1PollsByPollIdVote:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/vote`,method:"POST",body:e.body})}),getApiV1Posts:e.query({query:e=>({url:"/api/v1/posts",params:{all:e.all,bookmarkedOnly:e.bookmarkedOnly,forumTags:e.forumTags,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,includeFollowStatus:e.includeFollowStatus,includePinnedStatus:e.includePinnedStatus,includeReply:e.includeReply,lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,listId:e.listId,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,ownerId:e.ownerId,pinned:e.pinned,repostKind:e.repostKind,repostOf:e.repostOf,repostsOnly:e.repostsOnly,search:e.search,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,userId:e.userId,username:e.username,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),postApiV1Posts:e.mutation({query:e=>({url:"/api/v1/posts",method:"POST",body:e.createPost,params:{ownerId:e.ownerId,htmlContent:e.htmlContent}})}),getApiV1PostsBookmarked:e.query({query:e=>({url:"/api/v1/posts/bookmarked",params:{includeComments:e.includeComments,includeReply:e.includeReply,lastId:e.lastId,limit:e.limit,my:e.my,offset:e.offset,ownerId:e.ownerId,search:e.search,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsFeedsFollowing:e.query({query:e=>({url:"/api/v1/posts/feeds/following",params:{ignoreCache:e.ignoreCache,includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,htmlContent:e.htmlContent}})}),getApiV1PostsFeedsPublic:e.query({query:e=>({url:"/api/v1/posts/feeds/public",params:{includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,local:e.local,offset:e.offset,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),getApiV1PostsLiked:e.query({query:e=>({url:"/api/v1/posts/liked",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerId:e.ownerId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),putApiV1PostsMarkdown2Html:e.mutation({query:e=>({url:"/api/v1/posts/markdown2html",method:"PUT",body:e.body})}),getApiV1PostsMentioned:e.query({query:e=>({url:"/api/v1/posts/mentioned",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerId:e.ownerId,private:e.private,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsMy:e.query({query:e=>({url:"/api/v1/posts/my",params:{bookmarkedOnly:e.bookmarkedOnly,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerId:e.ownerId,repostsOnly:e.repostsOnly,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsPins:e.query({query:e=>({url:"/api/v1/posts/pins",params:{ownerId:e.ownerId,postOnly:e.postOnly}})}),deleteApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"DELETE"})}),postApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"POST"})}),getApiV1PostsReplies:e.query({query:e=>({url:"/api/v1/posts/replies",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerId:e.ownerId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username,htmlContent:e.htmlContent}})}),getApiV1PostsSubscribe:e.query({query:e=>({url:"/api/v1/posts/subscribe",params:{all:e.all,ownerId:e.ownerId,htmlContent:e.htmlContent}})}),putApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostId:e.query({query:e=>({url:`/api/v1/posts/${e.postId}`,params:{includeBookmarkStatus:e.includeBookmarkStatus,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,withComments:e.withComments,withParents:e.withParents,withRepostedBy:e.withRepostedBy,withRootParent:e.withRootParent,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"DELETE"})}),getApiV1PostsByPostIdActiveUsers:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/active-users`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"DELETE"})}),postApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"POST"})}),getApiV1PostsByPostIdComments:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,params:{lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdComments:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),putApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"DELETE"})}),postApiV1PostsByPostIdDetach:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/detach`,method:"POST"})}),postApiV1PostsByPostIdDownvote:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/downvote`,method:"POST",params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdEdits:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/edits`,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdLikes:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"DELETE"})}),postApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"POST"})}),postApiV1PostsByPostIdRefreshCard:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/refresh-card`,method:"POST"})}),deleteApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"DELETE"})}),postApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdReposts:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/reposts`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,kind:e.kind,lastId:e.lastId,limit:e.limit,offset:e.offset,skipDuplicates:e.skipDuplicates,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"POST"})}),deleteApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"DELETE"})}),postApiV1PostsByPostIdTrackView:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/track-view`,method:"POST"})}),postApiV1PostsByPostIdTranslate:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/translate`,method:"POST",params:{htmlContent:e.htmlContent,lang:e.lang}})}),postApiV1PostsByPostIdUpvote:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/upvote`,method:"POST",params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdVotes:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/votes`,params:{htmlContent:e.htmlContent}})}),getApiV1Rbac:e.query({query:()=>({url:"/api/v1/rbac"})}),getApiV1RbacActorsByActorIdPermissions:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/permissions`,params:{targetScope:e.targetScope}})}),getApiV1RbacActorsByActorIdRoles:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/roles`,params:{targetScope:e.targetScope}})}),putApiV1RbacRolesByRoleId:e.mutation({query:e=>({url:`/api/v1/rbac/roles/${e.roleId}`,method:"PUT",body:e.rbacRoleTemplate})}),getApiV1RbacScopesByScopeRoles:e.query({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`})}),postApiV1RbacScopesByScopeRoles:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`,method:"POST",body:e.rbacRoleTemplate})}),deleteApiV1RbacScopesByScopeRolesAndRoleName:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles/${e.roleName}`,method:"DELETE"})}),getApiV1RbacByResource:e.query({query:e=>({url:`/api/v1/rbac/${e.resource}`})}),postApiV1Reports:e.mutation({query:e=>({url:"/api/v1/reports",method:"POST",body:e.createReport})}),putApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"PUT",body:e.rule})}),getApiV1Rules:e.query({query:()=>({url:"/api/v1/rules"})}),postApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"POST",body:e.ruleCreate})}),postApiV1RulesReorder:e.mutation({query:e=>({url:"/api/v1/rules/reorder",method:"POST",body:e.body})}),deleteApiV1RulesById:e.mutation({query:e=>({url:`/api/v1/rules/${e.id}`,method:"DELETE"})}),getApiV1Search:e.query({query:e=>({url:"/api/v1/search",params:{actorType:e.actorType,fasp:e.fasp,faspHydrated:e.faspHydrated,filter:e.filter,followStatus:e.followStatus,followers:e.followers,following:e.following,groupId:e.groupId,groupMemberRole:e.groupMemberRole,includeRelations:e.includeRelations,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerId:e.ownerId,q:e.q,resolve:e.resolve,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withComments:e.withComments,withParent:e.withParent,htmlContent:e.htmlContent}})}),deleteApiV1SessionsAll:e.mutation({query:()=>({url:"/api/v1/sessions/all",method:"DELETE"})}),getApiV1SessionsList:e.query({query:()=>({url:"/api/v1/sessions/list"})}),putApiV1SessionsRevokeAll:e.mutation({query:()=>({url:"/api/v1/sessions/revoke/all",method:"PUT"})}),putApiV1SessionsRevokeBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/revoke/${e.sessionKey}`,method:"PUT"})}),deleteApiV1SessionsBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/${e.sessionKey}`,method:"DELETE"})}),putApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"PUT",body:e.platformSettings})}),getApiV1Settings:e.query({query:e=>({url:"/api/v1/settings",params:{keys:e.keys}})}),deleteApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"DELETE",params:{keys:e.keys}})}),getApiV1SettingsNames:e.query({query:e=>({url:"/api/v1/settings/names",params:{type:e.type}})}),putApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"PUT",body:e.userSettings})}),getApiV1SettingsUser:e.query({query:e=>({url:"/api/v1/settings/user",params:{keys:e.keys}})}),deleteApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"DELETE",params:{keys:e.keys}})}),getApiV1TagsFeatured:e.query({query:e=>({url:"/api/v1/tags/featured",params:{scope:e.scope,userId:e.userId}})}),deleteApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"DELETE",params:{scope:e.scope}})}),postApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"POST",params:{scope:e.scope}})}),postApiV1TagsFollowByName:e.mutation({query:e=>({url:`/api/v1/tags/follow/${e.name}`,method:"POST",params:{scope:e.scope}})}),getApiV1TagsFollowed:e.query({query:e=>({url:"/api/v1/tags/followed",params:{scope:e.scope}})}),putApiV1TagsList:e.mutation({query:e=>({url:"/api/v1/tags/list",method:"PUT",body:e.body,params:{scope:e.scope,soft:e.soft,type:e.type}})}),patchApiV1TagsList:e.mutation({query:e=>({url:"/api/v1/tags/list",method:"PATCH",body:e.body,params:{scope:e.scope,soft:e.soft,type:e.type}})}),getApiV1TagsList:e.query({query:e=>({url:"/api/v1/tags/list",params:{scope:e.scope,soft:e.soft,type:e.type}})}),deleteApiV1TagsList:e.mutation({query:e=>({url:"/api/v1/tags/list",method:"DELETE",body:e.body,params:{scope:e.scope,soft:e.soft,type:e.type}})}),putApiV1TagsPolicy:e.mutation({query:e=>({url:"/api/v1/tags/policy",method:"PUT",body:e.setTagPolicyRequest,params:{scope:e.scope}})}),getApiV1TagsPolicy:e.query({query:e=>({url:"/api/v1/tags/policy",params:{scope:e.scope}})}),postApiV1TagsReport:e.mutation({query:e=>({url:"/api/v1/tags/report",method:"POST",body:e.createTagReportRequest,params:{name:e.name,scope:e.scope}})}),getApiV1TagsReports:e.query({query:e=>({url:"/api/v1/tags/reports",params:{scope:e.scope}})}),getApiV1TagsSearch:e.query({query:e=>({url:"/api/v1/tags/search",params:{limit:e.limit,name:e.name,offset:e.offset,scope:e.scope}})}),getApiV1TagsTrending:e.query({query:e=>({url:"/api/v1/tags/trending",params:{limit:e.limit,offset:e.offset,scope:e.scope,sortBy:e.sortBy,sortOrder:e.sortOrder}})}),postApiV1TagsUnfollowByName:e.mutation({query:e=>({url:`/api/v1/tags/unfollow/${e.name}`,method:"POST",params:{scope:e.scope}})}),getApiV1TagsByName:e.query({query:e=>({url:`/api/v1/tags/${e.name}`,params:{historySince:e.historySince,scope:e.scope}})}),postApiV1TranslateText:e.mutation({query:e=>({url:"/api/v1/translate/text",method:"POST",body:e.translationRequest})}),getApiV1TrendsLinks:e.query({query:()=>({url:"/api/v1/trends/links"})}),getApiV1TrendsPosts:e.query({query:e=>({url:"/api/v1/trends/posts",params:{htmlContent:e.htmlContent}})}),getApiV1TrendsTags:e.query({query:e=>({url:"/api/v1/trends/tags",params:{scope:e.scope}})}),postApiV1Uploads:e.mutation({query:e=>({url:"/api/v1/uploads",method:"POST",body:e.createUpload})}),postApiV1UploadsBatch:e.mutation({query:e=>({url:"/api/v1/uploads/batch",method:"POST",body:e.body})}),postApiV1UploadsList:e.mutation({query:e=>({url:"/api/v1/uploads/list",method:"POST",body:e.uploadList})}),getApiV1UploadsSearch:e.query({query:e=>({url:"/api/v1/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType}})}),getApiV1UploadsUsages:e.query({query:e=>({url:"/api/v1/uploads/usages",params:{ids:e.ids}})}),getApiV1UploadsById:e.query({query:e=>({url:`/api/v1/uploads/${e.id}`})}),deleteApiV1UploadsById:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}`,method:"DELETE"})}),postApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"POST",body:e.body})}),putApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"PUT",body:e.body})}),postApiV1UploadsByIdPrivacy:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/privacy`,method:"POST",body:e.updateUploadPrivacy})}),postApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"POST",body:e.body})}),putApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"PUT",body:e.body})}),postApiV1UploadsByIdThumbnail:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/thumbnail`,method:"POST",body:e.changeVideoThumbnail})}),getApiV1UserAlias:e.query({query:()=>({url:"/api/v1/user-alias"})}),deleteApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"DELETE",params:{uri:e.uri}})}),postApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"POST",params:{acct:e.acct}})}),getApiV1UserDomainBlock:e.query({query:()=>({url:"/api/v1/user-domain-block"})}),deleteApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"DELETE"})}),postApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"POST"})}),deleteApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"DELETE",params:{id:e.id,name:e.name}})}),postApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"POST",body:e.userCreate,params:{htmlContent:e.htmlContent}})}),getApiV1Users:e.query({query:e=>({url:"/api/v1/users",params:{full:e.full,includeBlockedByStatus:e.includeBlockedByStatus,includeBlockedStatus:e.includeBlockedStatus,includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,includeMutedStatus:e.includeMutedStatus,relations:e.relations,username:e.username,htmlContent:e.htmlContent}})}),getApiV1UsersConnections:e.query({query:e=>({url:"/api/v1/users/connections",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersFollowByUsername:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),postApiV1UsersFollowByUsernameAccept:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/accept`,method:"POST"})}),postApiV1UsersFollowByUsernamePend:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/pend`,method:"POST"})}),postApiV1UsersFollowByUsernameReject:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/reject`,method:"POST"})}),postApiV1UsersFollowByUsernameUndo:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/undo`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),getApiV1UsersFollowees:e.query({query:e=>({url:"/api/v1/users/followees",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersFollowers:e.query({query:e=>({url:"/api/v1/users/followers",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteLinks:e.query({query:e=>({url:"/api/v1/users/invite-links",params:{active:e.active,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1UsersInviteLinks:e.mutation({query:e=>({url:"/api/v1/users/invite-links",method:"POST",body:e.signupInviteLinkCreate})}),putApiV1UsersInviteLinksDeactivateByCode:e.mutation({query:e=>({url:`/api/v1/users/invite-links/deactivate/${e.code}`,method:"PUT"})}),getApiV1UsersRelationships:e.query({query:e=>({url:"/api/v1/users/relationships",params:{filter:e.filter,targets:e.targets}})}),getApiV1UsersRemoteByUserNameFullFollowers:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/followers`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRemoteByUserNameFullFollowing:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/following`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRenameHistory:e.query({query:()=>({url:"/api/v1/users/rename-history"})}),putApiV1UsersByUserId:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}`,method:"PUT",body:e.userUpdate,params:{htmlContent:e.htmlContent}})}),getApiV1UsersByUserId:e.query({query:e=>({url:`/api/v1/users/${e.userId}`,params:{full:e.full,includeBlockedByStatus:e.includeBlockedByStatus,includeBlockedStatus:e.includeBlockedStatus,includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,includeMutedStatus:e.includeMutedStatus,relations:e.relations,htmlContent:e.htmlContent}})}),getApiV1UsersByUserIdFollowers:e.query({query:e=>({url:`/api/v1/users/${e.userId}/followers`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1UsersByUserIdFollowing:e.query({query:e=>({url:`/api/v1/users/${e.userId}/following`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1UsersByUserIdMedia:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}/media`,method:"PUT",body:e.userUpdateMedia,params:{htmlContent:e.htmlContent}})}),getRoot:e.query({query:e=>({url:"/",params:{format:e.format}})}),getUser:e.query({query:e=>({url:`/@${e.username}`,params:{format:e.format}})}),getUserEvent:e.query({query:e=>({url:`/@${e.username}/events/${e.eventId}`,params:{format:e.format}})}),getUserPost:e.query({query:e=>({url:`/@${e.username}/posts/${e.postId}`,params:{format:e.format}})}),getAbout:e.query({query:e=>({url:"/about",params:{format:e.format}})}),getFeed:e.query({query:e=>({url:"/feed",params:{format:e.format}})}),getFeedDiscover:e.query({query:e=>({url:"/feed/discover",params:{format:e.format}})}),getFeedFollowing:e.query({query:e=>({url:"/feed/following",params:{format:e.format}})}),getGroup:e.query({query:e=>({url:`/g/${e.groupName}`,params:{format:e.format}})}),getGroupChannel:e.query({query:e=>({url:`/g/${e.groupName}/@${e.channelName}`,params:{format:e.format}})}),getGroupChannelPost:e.query({query:e=>({url:`/g/${e.groupName}/@${e.channelName}/posts/${e.postId}`,params:{format:e.format}})}),getGroupEvent:e.query({query:e=>({url:`/g/${e.groupName}/events/${e.eventId}`,params:{format:e.format}})}),getGroupForumCategory:e.query({query:e=>({url:`/g/${e.groupName}/forum/c/${e.categoryName}`,params:{format:e.format}})}),getGroupForumPost:e.query({query:e=>({url:`/g/${e.groupName}/forum/posts/${e.postId}`,params:{format:e.format}})}),getForumTag:e.query({query:e=>({url:`/g/${e.groupName}/forum/tag/${e.tagName}`,params:{format:e.format}})}),getPrivacy:e.query({query:e=>({url:"/privacy",params:{format:e.format}})}),getTerms:e.query({query:e=>({url:"/terms",params:{format:e.format}})})}),overrideExisting:!1}),GQ={data:null,isPending:!1,isSuccess:!1},HQ=Wo({name:"userNoHTML",initialState:GQ,reducers:{setUser:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectUser:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),eA={data:null,isError:!1,isPending:!1,isSuccess:!1},KQ=Wo({name:"user",initialState:eA,reducers:{reset:e=>{Object.assign(e,eA)}},extraReducers:e=>{e.addCase(OG,((e,{payload:t})=>{e.data=t})).addCase(AG,((e,{payload:t})=>{e.data&&Object.assign(e.data,t||{})})).addCase(TG,((e,{payload:t})=>{e.isSuccess=t})).addCase(RG,((e,{payload:t})=>{e.isPending=t})).addCase(PG,((e,{payload:t})=>{e.isError=t})).addCase(EG,((e,{payload:t})=>{e.error=t})).addCase(DG,((e,{payload:t})=>{var n;null!=(n=e.data)&&n.users&&(e.data.users=e.data.users.map((e=>t.id===e.id?t:e)))}))},selectors:{selectIsError:e=>e.isError,selectError:e=>e.error,selectPending:e=>e.isPending,selectData:e=>e.data,selectAccount:e=>{var t;return null==(t=e.data)?void 0:t.account},selectAccountId:e=>{var t;return null==(t=e.data)?void 0:t.account.id},selectUsers:e=>{var t;return null==(t=e.data)?void 0:t.users},selectUserById:(e,t)=>{var n;return null==(n=e.data)?void 0:n.users.find((({id:e})=>e===t))},selectCurrentUser:e=>{var t;return null==(t=e.data)?void 0:t.users.find((({id:t})=>{var n;return t===(null==(n=e.data)?void 0:n.selectedUserId)}))},selectSelectedUserId:e=>{var t;return null==(t=e.data)?void 0:t.selectedUserId},selectSuccess:e=>e.isSuccess}}),MC=e=>e,Jy=Qr(MC,(e=>e.data)),QQ=Qr(MC,(e=>e.error)),YQ=Qr(MC,(e=>e.isPending)),XQ=Qr(Jy,(e=>null==e?void 0:e.rules)),JQ=Qr(Jy,(e=>null==e?void 0:e.contact_account)),ZQ=Qr(Jy,(e=>(null==e?void 0:e.stats)&&Object.fromEntries(Object.entries(e.stats).map((([e,t])=>[e,t??0]))))),eY={data:null,isPending:!1},tY=Wo({name:"instanceInfo",initialState:eY,reducers:{},extraReducers:e=>{e.addCase(WG,((e,{payload:t})=>{e.data=t})).addCase(qG,((e,{payload:t})=>{e.isPending=t})).addCase(GG,((e,{payload:t})=>{e.error=t}))},selectors:{selectInstanceInfo:Jy,selectInstanceInfoError:QQ,selectInstanceInfoPending:YQ,selectPlatformRules:XQ,selectInstanceContacts:JQ,selectInstanceStats:ZQ,selectDescription:e=>{var t;return null==(t=e.data)?void 0:t.description},selectStats:e=>{var t;return null==(t=e.data)?void 0:t.stats},selectRegistrations:e=>{var t;return null==(t=e.data)?void 0:t.configuration.registrations}}}),nY={data:null,isPending:!1,isSuccess:!1},rY=Wo({name:"profileSettings",initialState:nY,reducers:{setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},extraReducers:e=>{e.addCase(KG,((e,{payload:t})=>{e.data=t}))},selectors:{selectProfileSettings:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),oY={sms:"wellesley.admin.sms",openai:"wellesley.admin.openai",uploads:"wellesley.admin.uploads",captcha:"wellesley.admin.captcha",language:"wellesley.admin.language",mediacache:"wellesley.admin.mediacache",translation:"wellesley.admin.translation",link_service:"wellesley.admin.link_service"},GS={posts:"wellesley.posts",translation:"wellesley.translation",registration:"wellesley.registration",confirmationCode:"wellesley.confirmationCode",uploadsPolicyDoc:"wellesley.uploads.policy.doc",uploadsPolicyAudio:"wellesley.uploads.policy.audio",uploadsPolicyImage:"wellesley.uploads.policy.image",uploadsPolicyVideo:"wellesley.uploads.policy.video",captcha:"wellesley.captcha",access:"wellesley.access",branding:"wellesley.branding",instanceAdmin:"wellesley.instance.admin",legal:"wellesley.instance.legal",domainBlocks:"wellesley.instance.domainBlocks",contacts:"wellesley.instance.contacts"},iv=e=>(null==e?void 0:e.map((e=>e.value||e)))||[],iY={data:null,isPending:!1},{posts:oS,uploadsPolicyDoc:tA,uploadsPolicyAudio:iS,uploadsPolicyImage:Ug,uploadsPolicyVideo:ev,registration:Z3,captcha:aY,instanceAdmin:sY,branding:uY,translation:lY,domainBlocks:cY,access:dY}=GS,{captcha:fY,language:pY,translation:hY,openai:mY,link_service:vY}=oY,vp=e=>e.data,gY=Qr(vp,(e=>{var t,n,r;return{max_characters:(null==(t=null==e?void 0:e[oS])?void 0:t.max_characters)||0,max_media_attachments:(null==(n=null==e?void 0:e[oS])?void 0:n.max_media_attachments)||0,max_pins:(null==(r=null==e?void 0:e[oS])?void 0:r.max_pins)||0}})),LC=Qr(vp,(e=>{var t,n,r;return{...null==e?void 0:e[Ug],maxSize:(null==(t=null==e?void 0:e[Ug])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[Ug])?void 0:n.maxMatrix)||0,maxResolution:(null==(r=null==e?void 0:e[Ug])?void 0:r.maxResolution)||0}})),yY=Qr(LC,(e=>iv(e.extensions))),eM=Qr(vp,(e=>{var t,n,r,o;return{...null==e?void 0:e[ev],maxSize:(null==(t=null==e?void 0:e[ev])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[ev])?void 0:n.maxMatrix)||0,maxDuration:(null==(r=null==e?void 0:e[ev])?void 0:r.maxDuration)||0,maxResolution:(null==(o=null==e?void 0:e[ev])?void 0:o.maxResolution)||0}})),tM=Qr(vp,(e=>{var t,n;return{...null==e?void 0:e[iS],maxSize:null==(t=null==e?void 0:e[iS])?void 0:t.maxSize,keepOriginal:(null==(n=null==e?void 0:e[iS])?void 0:n.keepOriginal)||0}})),nM=Qr(vp,(e=>{var t;return{...null==e?void 0:e[tA],maxSize:(null==(t=null==e?void 0:e[tA])?void 0:t.maxSize)||0}})),rM=Qr([LC,eM,tM,nM],((e,t,n,r)=>({IMAGE:iv(null==e?void 0:e.extensions),VIDEO:iv(null==t?void 0:t.extensions),AUDIO:iv(null==n?void 0:n.extensions),DOCUMENT:iv(null==r?void 0:r.extensions)}))),wY=Qr(rM,(e=>Object.keys(e).reduce(((t,n)=>[...t,...e[n]||[]]),[]))),_Y=Qr(vp,(e=>{var t;return null==(t=null==e?void 0:e[Z3])?void 0:t.invites})),bY=Wo({name:"platformSettings",initialState:iY,reducers:{setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},extraReducers:e=>{e.addCase(HG,((e,{payload:t})=>{e.data={...e.data,...t}}))},selectors:{selectSettings:vp,selectPostConfig:gY,selectDocPolicy:nM,selectImagePolicy:LC,selectVideoPolicy:eM,selectAudioPolicy:tM,selectInvitesEnabled:_Y,selectImageExtensions:yY,selectSupportedExtensions:rM,selectFullExtensionsList:wY,selectRegistration:e=>{var t;return null==(t=e.data)?void 0:t[Z3]},selectLanguageDetection:e=>{var t;return null==(t=e.data)?void 0:t[pY]},selectLanguageTranslation:e=>{var t;return null==(t=e.data)?void 0:t[hY]},selectOpenai:e=>{var t;return null==(t=e.data)?void 0:t[mY]},selectCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[aY]},selectAdminCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[fY]},selectPlatformTranslation:e=>{var t;return null==(t=e.data)?void 0:t[lY]},selectAccess:e=>{var t;return null==(t=e.data)?void 0:t[dY]},selectBranding:e=>{var t;return null==(t=e.data)?void 0:t[uY]},selectLinkService:e=>{var t;return null==(t=e.data)?void 0:t[vY]},selectInstanceAdmin:e=>{var t;return null==(t=e.data)?void 0:t[sY]},selectLegal:e=>{var t;return null==(t=e.data)?void 0:t[GS.legal]},selectDomainBlocks:e=>{var t;return null==(t=e.data)?void 0:t[cY]},selectContacts:e=>{var t;return null==(t=e.data)?void 0:t[GS.contacts]}}}),nA={data:{userId:"",list:[]},count:{},isPending:!1},xY=e=>e,SY=e=>e.error,$Y=e=>e.isPending,CY=e=>{var t;return null==(t=e.count)?void 0:t.total},IY=e=>{var t;return null==(t=e.count)?void 0:t.unread},EY=e=>e.data.userId,FC=Qr(xY,(e=>e.data.list)),PY=Qr(FC,(e=>null==e?void 0:e.filter((e=>"UNREAD"===e.status)))),RY=Qr(FC,(e=>null==e?void 0:e.at(-1))),TY=Wo({name:"notifications",initialState:nA,reducers:{updateNotification:(e,t)=>{var n;if(!e.data.list)return;const r=t.payload;e.data.list=null==(n=e.data.list)?void 0:n.map((e=>e.id===r.id?{...e,...r}:e))},readAll:e=>{var t;e.data.list&&(e.data.list=null==(t=e.data.list)?void 0:t.map((e=>({...e,status:"READ"}))))}},extraReducers:e=>{e.addCase(FG,((e,t)=>{e.isPending=t.payload})).addCase(MG,((e,t)=>{e.error=t.payload})).addCase(LG,((e,t)=>{const n=t.payload.userId,r=t.payload.list;e.data={userId:n,list:[...e.data.list||[],...r.filter((t=>{var n;return!(null!=(n=e.data.list)&&n.some((e=>e.id===t.id)))}))]}})).addCase(NG,((e,t)=>{e.count.unread=(e.count.unread||0)+1,e.data.list&&(e.data.list=[t.payload,...e.data.list||[]])})).addCase(kG,((e,t)=>{e.data.list&&(e.data.list=e.data.list.map((e=>e.id===t.payload.id?{...e,status:t.payload.status}:e)))})).addCase(BG,((e,t)=>{e.count.total=t.payload})).addCase(jG,((e,t)=>{e.count.unread=t.payload})).addCase(UG,(()=>nA)).addCase(zG,((e,t)=>{var n,r,o;const i=t.payload;"UNREAD"===(null==(r=null==(n=e.data.list)?void 0:n.find((e=>e.id===i)))?void 0:r.status)&&e.count.unread&&(e.count.unread-=1),e.data.list=(null==(o=e.data.list)?void 0:o.filter((e=>e.id!==i)))||[]})).addCase(VG,(e=>{e.data.list&&(e.data.list=e.data.list.map((e=>"FOLLOW_REQUEST"===e.type?{...e,followResponse:"Accepted"}:e)))}))},selectors:{selectError:SY,selectIsPending:$Y,selectTotalCount:CY,selectUnreadCount:IY,selectNotifications:FC,selectUnreadNotifications:PY,selectLastNotification:RY,selectNotificationsOwner:EY}});function OY(){return!(typeof navigator<"u"&&"boolean"==typeof navigator.onLine)||navigator.onLine}const AY={isOnline:OY()},DY=Wo({name:"network",initialState:AY,reducers:{setOnline:(e,{payload:t})=>{e.isOnline=t}},selectors:{selectOnline:e=>e.isOnline}}),NY=wM(qQ,DY,g3,bA,KQ,HQ,tY,TY,rY,bY);Al("app/hydrate");const kY=()=>window._wlsy_store,oM=(e,t)=>(null!=t&&t.props&&!zf.isNumber(e)?dK(e,null==t?void 0:t.props):e)+fK(null==t?void 0:t.queryParams),MY=e=>!(null==e||!e.target);function LY(e,t){const n=oM(e,t);if(MY(t)&&"_blank"===t.target){const{origin:e}=new URL(document.referrer||window.location.origin),t=n.includes("://")?n:e+n;window.open(t,"_blank")}else kY().dispatch(v3(n))}const FY=()=>LY,BY=({to:e,props:t,children:n,target:r,queryParams:o,className:i,disabled:a,onClick:u,...s})=>{const l=FY(),c=oM(e,{queryParams:o,props:t}),{baseUrl:d}=X3.get(),f=r?c:`${d}${c}`;return q.jsx("a",{href:f,target:r,onClick:n=>{n.preventDefault(),!a&&(null==u||u(n),l(e,{queryParams:o,props:t,target:n.ctrlKey||n.metaKey?"_blank":r}))},className:i,...s,children:n})};var rA,av={exports:{}},jY=av.exports;
|
|
69
|
+
*/function z8(){if(OE)return un;OE=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case i:case o:case c:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case l:case p:case f:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),un.ContextConsumer=u,un.ContextProvider=a,un.Element=t,un.ForwardRef=l,un.Fragment=r,un.Lazy=p,un.Memo=f,un.Portal=n,un.Profiler=i,un.StrictMode=o,un.Suspense=c,un.SuspenseList=d,un.isAsyncMode=function(){return!1},un.isConcurrentMode=function(){return!1},un.isContextConsumer=function(e){return h(e)===u},un.isContextProvider=function(e){return h(e)===a},un.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},un.isForwardRef=function(e){return h(e)===l},un.isFragment=function(e){return h(e)===r},un.isLazy=function(e){return h(e)===p},un.isMemo=function(e){return h(e)===f},un.isPortal=function(e){return h(e)===n},un.isProfiler=function(e){return h(e)===i},un.isStrictMode=function(e){return h(e)===o},un.isSuspense=function(e){return h(e)===c},un.isSuspenseList=function(e){return h(e)===d},un.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===c||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===u||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},un.typeOf=h,un}function W8(){return AE||(AE=1,Bw.exports=z8()),Bw.exports}function B2(){if(DE)return jw;DE=1;var e=Dl(),t=aa();return jw=function(n){return"number"==typeof n||t(n)&&"[object Number]"==e(n)}}function q8(){if(NE)return Vw;NE=1;var e=B2();return Vw=function(t){return e(t)&&t!=+t}}W8(),q8(),B2();var zw,kE,Ww,ME,qw,LE,Gw,FE,Hw,BE,Kw,jE,Qw,VE,Yw,UE,Xw,zE,Jw,WE,Zw,qE,e_,GE,t_,HE,n_,KE,r_,QE,o_,YE,i_,XE,a_,JE,s_,ZE,u_,eP,l_,tP,c_,nP,d_,rP,f_,oP,Pg=function(e){return U8(e)&&e.indexOf("%")===e.length-1},G8=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},Uw=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o]};function H8(){if(kE)return zw;kE=1;var e=Cy();return zw=function(){this.__data__=new e,this.size=0}}function K8(){if(ME)return Ww;return ME=1,Ww=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}}function Q8(){if(LE)return qw;return LE=1,qw=function(e){return this.__data__.get(e)}}function Y8(){if(FE)return Gw;return FE=1,Gw=function(e){return this.__data__.has(e)}}function X8(){if(BE)return Hw;BE=1;var e=Cy(),t=S$(),n=$$();return Hw=function(r,o){var i=this.__data__;if(i instanceof e){var a=i.__data__;if(!t||a.length<199)return a.push([r,o]),this.size=++i.size,this;i=this.__data__=new n(a)}return i.set(r,o),this.size=i.size,this}}function C$(){if(jE)return Kw;jE=1;var e=Cy(),t=H8(),n=K8(),r=Q8(),o=Y8(),i=X8();function a(t){var n=this.__data__=new e(t);this.size=n.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=o,a.prototype.set=i,Kw=a}function J8(){if(VE)return Qw;VE=1;return Qw=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}}function Z8(){if(UE)return Yw;return UE=1,Yw=function(e){return this.__data__.has(e)}}function e4(){if(zE)return Xw;zE=1;var e=$$(),t=J8(),n=Z8();function r(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Xw=r}function t4(){if(WE)return Jw;return WE=1,Jw=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}}function n4(){if(qE)return Zw;return qE=1,Zw=function(e,t){return e.has(t)}}function j2(){if(GE)return e_;GE=1;var e=e4(),t=t4(),n=n4();return e_=function(r,o,i,a,u,s){var l=1&i,c=r.length,d=o.length;if(c!=d&&!(l&&d>c))return!1;var f=s.get(r),p=s.get(o);if(f&&p)return f==o&&p==r;var m=-1,h=!0,v=2&i?new e:void 0;for(s.set(r,o),s.set(o,r);++m<c;){var g=r[m],y=o[m];if(a)var b=l?a(y,g,m,o,r,s):a(g,y,m,r,o,s);if(void 0!==b){if(b)continue;h=!1;break}if(v){if(!t(o,(function(e,t){if(!n(v,t)&&(g===e||u(g,e,i,a,s)))return v.push(t)}))){h=!1;break}}else if(g!==y&&!u(g,y,i,a,s)){h=!1;break}}return s.delete(r),s.delete(o),h}}function V2(){if(HE)return t_;HE=1;var e=si().Uint8Array;return t_=e}function r4(){if(KE)return n_;return KE=1,n_=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}}function o4(){if(QE)return r_;return QE=1,r_=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}}function i4(){if(YE)return o_;YE=1;var e=Hh(),t=V2(),n=x$(),r=j2(),o=r4(),i=o4(),a=e?e.prototype:void 0,u=a?a.valueOf:void 0;return o_=function(e,a,s,l,c,d,f){switch(s){case"[object DataView]":if(e.byteLength!=a.byteLength||e.byteOffset!=a.byteOffset)return!1;e=e.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=a.byteLength||!d(new t(e),new t(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+a);case"[object Error]":return e.name==a.name&&e.message==a.message;case"[object RegExp]":case"[object String]":return e==a+"";case"[object Map]":var p=o;case"[object Set]":var m=1&l;if(p||(p=i),e.size!=a.size&&!m)return!1;var h=f.get(e);if(h)return h==a;l|=2,f.set(e,a);var v=r(p(e),p(a),l,c,d,f);return f.delete(e),v;case"[object Symbol]":if(u)return u.call(e)==u.call(a)}return!1}}function I$(){if(XE)return i_;return XE=1,i_=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}}function U2(){if(JE)return a_;JE=1;var e=I$(),t=Pi();return a_=function(n,r,o){var i=r(n);return t(n)?i:e(i,o(n))}}function a4(){if(ZE)return s_;return ZE=1,s_=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}}function z2(){if(eP)return u_;return eP=1,u_=function(){return[]}}function E$(){if(tP)return l_;tP=1;var e=a4(),t=z2(),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return l_=r?function(t){return null==t?[]:(t=Object(t),e(r(t),(function(e){return n.call(t,e)})))}:t}function s4(){if(nP)return c_;return nP=1,c_=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}}function u4(){if(rP)return d_;rP=1;var e=Dl(),t=aa();return d_=function(n){return t(n)&&"[object Arguments]"==e(n)}}function P$(){if(oP)return f_;oP=1;var e=u4(),t=aa(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!o.call(e,"callee")};return f_=i}var p_,iP,aP,h_,sP,m_,uP,v_,lP,g_,cP,nv={exports:{}};function l4(){if(iP)return p_;return iP=1,p_=function(){return!1}}function R$(){return aP||(aP=1,e=nv,t=nv.exports,n=si(),r=l4(),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,u=(a?a.isBuffer:void 0)||r,e.exports=u),nv.exports;var e,t,n,r,o,i,a,u}function T$(){if(sP)return h_;sP=1;var e=/^(?:0|[1-9]\d*)$/;return h_=function(t,n){var r=typeof t;return!!(n=n??9007199254740991)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}}function O$(){if(uP)return m_;uP=1;return m_=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function c4(){if(lP)return v_;lP=1;var e=Dl(),t=O$(),n=aa(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,v_=function(o){return n(o)&&t(o.length)&&!!r[e(o)]}}function A$(){if(cP)return g_;return cP=1,g_=function(e){return function(t){return e(t)}}}nv.exports;var dP,y_,fP,w_,pP,__,hP,b_,mP,x_,vP,S_,gP,$_,yP,C_,wP,I_,_P,E_,bP,P_,xP,R_,SP,T_,$P,O_,CP,A_,IP,D_,EP,N_,PP,k_,RP,M_,TP,L_,OP,F_,AP,B_,DP,j_,NP,V_,kP,U_,MP,z_,LP,W_,FP,q_,BP,G_,jP,H_,VP,K_,UP,Q_,zP,Y_,WP,X_,qP,J_,GP,Z_,HP,eb,KP,tb,QP,nb,YP,rb,XP,ob,JP,ib,ZP,ab,eR,sb,tR,ub,nR,lb,rR,cb,oR,db,iR,fb,aR,pb,sR,hb,uR,mb,lR,rv={exports:{}};function D$(){return dP||(dP=1,e=rv,t=rv.exports,n=O2(),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch{}}(),e.exports=a),rv.exports;var e,t,n,r,o,i,a}function W2(){if(fP)return y_;fP=1;var e=c4(),t=A$(),n=D$(),r=n&&n.isTypedArray,o=r?t(r):e;return y_=o}function q2(){if(pP)return w_;pP=1;var e=s4(),t=P$(),n=Pi(),r=R$(),o=T$(),i=W2(),a=Object.prototype.hasOwnProperty;return w_=function(u,s){var l=n(u),c=!l&&t(u),d=!l&&!c&&r(u),f=!l&&!c&&!d&&i(u),p=l||c||d||f,m=p?e(u.length,String):[],h=m.length;for(var v in u)(s||a.call(u,v))&&(!p||!("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||o(v,h)))&&m.push(v);return m}}function N$(){if(hP)return __;hP=1;var e=Object.prototype;return __=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function G2(){if(mP)return b_;return mP=1,b_=function(e,t){return function(n){return e(t(n))}}}function d4(){if(vP)return x_;vP=1;var e=G2()(Object.keys,Object);return x_=e}function H2(){if(gP)return S_;gP=1;var e=N$(),t=d4(),n=Object.prototype.hasOwnProperty;return S_=function(r){if(!e(r))return t(r);var o=[];for(var i in Object(r))n.call(r,i)&&"constructor"!=i&&o.push(i);return o}}function K2(){if(yP)return $_;yP=1;var e=xy(),t=O$();return $_=function(n){return null!=n&&t(n.length)&&!e(n)}}function Ey(){if(wP)return C_;wP=1;var e=q2(),t=H2(),n=K2();return C_=function(r){return n(r)?e(r):t(r)}}function Q2(){if(_P)return I_;_P=1;var e=U2(),t=E$(),n=Ey();return I_=function(r){return e(r,n,t)}}function f4(){if(bP)return E_;bP=1;var e=Q2(),t=Object.prototype.hasOwnProperty;return E_=function(n,r,o,i,a,u){var s=1&o,l=e(n),c=l.length;if(c!=e(r).length&&!s)return!1;for(var d=c;d--;){var f=l[d];if(!(s?f in r:t.call(r,f)))return!1}var p=u.get(n),m=u.get(r);if(p&&m)return p==r&&m==n;var h=!0;u.set(n,r),u.set(r,n);for(var v=s;++d<c;){var g=n[f=l[d]],y=r[f];if(i)var b=s?i(y,g,f,r,n,u):i(g,y,f,n,r,u);if(!(void 0===b?g===y||a(g,y,o,i,u):b)){h=!1;break}v||(v="constructor"==f)}if(h&&!v){var w=n.constructor,x=r.constructor;w!=x&&"constructor"in n&&"constructor"in r&&!("function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x)&&(h=!1)}return u.delete(n),u.delete(r),h}}function p4(){if(xP)return P_;xP=1;var e=lp()(si(),"DataView");return P_=e}function h4(){if(SP)return R_;SP=1;var e=lp()(si(),"Promise");return R_=e}function m4(){if($P)return T_;$P=1;var e=lp()(si(),"Set");return T_=e}function Y2(){if(CP)return O_;CP=1;var e=lp()(si(),"WeakMap");return O_=e}function Fv(){if(IP)return A_;IP=1;var e=p4(),t=S$(),n=h4(),r=m4(),o=Y2(),i=Dl(),a=A2(),u="[object Map]",s="[object Promise]",l="[object Set]",c="[object WeakMap]",d="[object DataView]",f=a(e),p=a(t),m=a(n),h=a(r),v=a(o),g=i;return(e&&g(new e(new ArrayBuffer(1)))!=d||t&&g(new t)!=u||n&&g(n.resolve())!=s||r&&g(new r)!=l||o&&g(new o)!=c)&&(g=function(e){var t=i(e),n="[object Object]"==t?e.constructor:void 0,r=n?a(n):"";if(r)switch(r){case f:return d;case p:return u;case m:return s;case h:return l;case v:return c}return t}),A_=g}function v4(){if(EP)return D_;EP=1;var e=C$(),t=j2(),n=i4(),r=f4(),o=Fv(),i=Pi(),a=R$(),u=W2(),s="[object Arguments]",l="[object Array]",c="[object Object]",d=Object.prototype.hasOwnProperty;return D_=function(f,p,m,h,v,g){var y=i(f),b=i(p),w=y?l:o(f),x=b?l:o(p),_=(w=w==s?c:w)==c,k=(x=x==s?c:x)==c,S=w==x;if(S&&a(f)){if(!a(p))return!1;y=!0,_=!1}if(S&&!_)return g||(g=new e),y||u(f)?t(f,p,m,h,v,g):n(f,p,w,m,h,v,g);if(!(1&m)){var A=_&&d.call(f,"__wrapped__"),E=k&&d.call(p,"__wrapped__");if(A||E){var I=A?f.value():f,C=E?p.value():p;return g||(g=new e),v(I,C,m,h,g)}}return!!S&&(g||(g=new e),r(f,p,m,h,v,g))}}function X2(){if(PP)return N_;PP=1;var e=v4(),t=aa();return N_=function n(r,o,i,a,u){return r===o||(null==r||null==o||!t(r)&&!t(o)?r!=r&&o!=o:e(r,o,i,a,n,u))},N_}function g4(){if(RP)return k_;RP=1;var e=C$(),t=X2();return k_=function(n,r,o,i){var a=o.length,u=a,s=!i;if(null==n)return!u;for(n=Object(n);a--;){var l=o[a];if(s&&l[2]?l[1]!==n[l[0]]:!(l[0]in n))return!1}for(;++a<u;){var c=(l=o[a])[0],d=n[c],f=l[1];if(s&&l[2]){if(void 0===d&&!(c in n))return!1}else{var p=new e;if(i)var m=i(d,f,c,n,r,p);if(!(void 0===m?t(f,d,3,i,p):m))return!1}}return!0}}function J2(){if(TP)return M_;TP=1;var e=xs();return M_=function(t){return t==t&&!e(t)}}function y4(){if(OP)return L_;OP=1;var e=J2(),t=Ey();return L_=function(n){for(var r=t(n),o=r.length;o--;){var i=r[o],a=n[i];r[o]=[i,a,e(a)]}return r}}function Z2(){if(AP)return F_;return AP=1,F_=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}}function w4(){if(DP)return B_;DP=1;var e=g4(),t=y4(),n=Z2();return B_=function(r){var o=t(r);return 1==o.length&&o[0][2]?n(o[0][0],o[0][1]):function(t){return t===r||e(t,r,o)}}}function _4(){if(NP)return j_;return NP=1,j_=function(e,t){return null!=e&&t in Object(e)}}function b4(){if(kP)return V_;kP=1;var e=M2(),t=P$(),n=Pi(),r=T$(),o=O$(),i=Lv();return V_=function(a,u,s){for(var l=-1,c=(u=e(u,a)).length,d=!1;++l<c;){var f=i(u[l]);if(!(d=null!=a&&s(a,f)))break;a=a[f]}return d||++l!=c?d:!!(c=null==a?0:a.length)&&o(c)&&r(f,c)&&(n(a)||t(a))}}function x4(){if(MP)return U_;MP=1;var e=_4(),t=b4();return U_=function(n,r){return null!=n&&t(n,r,e)}}function S4(){if(LP)return z_;LP=1;var e=X2(),t=F2(),n=x4(),r=b$(),o=J2(),i=Z2(),a=Lv();return z_=function(u,s){return r(u)&&o(s)?i(a(u),s):function(r){var o=t(r,u);return void 0===o&&o===s?n(r,u):e(s,o,3)}}}function k$(){if(FP)return W_;return FP=1,W_=function(e){return e}}function $4(){if(BP)return q_;return BP=1,q_=function(e){return function(t){return null==t?void 0:t[e]}}}function C4(){if(jP)return G_;jP=1;var e=L2();return G_=function(t){return function(n){return e(n,t)}}}function I4(){if(VP)return H_;VP=1;var e=$4(),t=C4(),n=b$(),r=Lv();return H_=function(o){return n(o)?e(r(o)):t(o)}}function E4(){if(UP)return K_;UP=1;var e=w4(),t=S4(),n=k$(),r=Pi(),o=I4();return K_=function(i){return"function"==typeof i?i:null==i?n:"object"==typeof i?r(i)?t(i[0],i[1]):e(i):o(i)}}function P4(){if(zP)return Q_;return zP=1,Q_=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}}function R4(){if(WP)return Y_;return WP=1,Y_=function(e){return e!=e}}function T4(){if(qP)return X_;return qP=1,X_=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}}function O4(){if(GP)return J_;GP=1;var e=P4(),t=R4(),n=T4();return J_=function(r,o,i){return o==o?n(r,o,i):e(r,t,i)}}function A4(){if(HP)return Z_;HP=1;var e=O4();return Z_=function(t,n){return!!(null==t?0:t.length)&&e(t,n,0)>-1}}function D4(){if(KP)return eb;return KP=1,eb=function(){}}function N4(){if(QP)return tb;QP=1;var e=Hh(),t=P$(),n=Pi(),r=e?e.isConcatSpreadable:void 0;return tb=function(e){return n(e)||t(e)||!!(r&&e&&e[r])}}function k4(){if(YP)return nb;YP=1;var e=I$(),t=N4();return nb=function n(r,o,i,a,u){var s=-1,l=r.length;for(i||(i=t),u||(u=[]);++s<l;){var c=r[s];o>0&&i(c)?o>1?n(c,o-1,i,a,u):e(u,c):a||(u[u.length]=c)}return u},nb}function M$(){if(XP)return rb;return XP=1,rb=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}}function M4(){if(JP)return ob;JP=1;var e=M$(),t=Math.max;return ob=function(n,r,o){return r=t(void 0===r?n.length-1:r,0),function(){for(var i=arguments,a=-1,u=t(i.length-r,0),s=Array(u);++a<u;)s[a]=i[r+a];a=-1;for(var l=Array(r+1);++a<r;)l[a]=i[a];return l[r]=o(s),e(n,this,l)}},ob}function L4(){if(ZP)return ib;return ZP=1,ib=function(e){return function(){return e}}}function eD(){if(eR)return ab;eR=1;var e=lp(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}}();return ab=t}function F4(){if(tR)return sb;tR=1;var e=L4(),t=eD(),n=k$();return sb=t?function(n,r){return t(n,"toString",{configurable:!0,enumerable:!1,value:e(r),writable:!0})}:n}function tD(){if(nR)return ub;nR=1;var e=Date.now;return ub=function(t){var n=0,r=0;return function(){var o=e(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}},ub}function nD(){if(rR)return lb;rR=1;var e=F4(),t=tD()(e);return lb=t}function B4(){if(oR)return cb;oR=1;var e=si();return cb=function(){return e.Date.now()}}function j4(){if(iR)return db;iR=1;var e=/\s/;return db=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}}function V4(){if(aR)return fb;aR=1;var e=j4(),t=/^\s+/;return fb=function(n){return n&&n.slice(0,e(n)+1).replace(t,"")}}function rD(){if(sR)return pb;sR=1;var e=V4(),t=xs(),n=Mv(),r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt;return pb=function(u){if("number"==typeof u)return u;if(n(u))return NaN;if(t(u)){var s="function"==typeof u.valueOf?u.valueOf():u;u=t(s)?s+"":s}if("string"!=typeof u)return 0===u?u:+u;u=e(u);var l=o.test(u);return l||i.test(u)?a(u.slice(2),l?2:8):r.test(u)?NaN:+u}}function oD(){if(uR)return hb;uR=1;var e=xs(),t=B4(),n=rD(),r=Math.max,o=Math.min;return hb=function(i,a,u){var s,l,c,d,f,p,m=0,h=!1,v=!1,g=!0;if("function"!=typeof i)throw new TypeError("Expected a function");function y(e){var t=s,n=l;return s=l=void 0,m=e,d=i.apply(n,t)}function b(e){var t=e-p;return void 0===p||t>=a||t<0||v&&e-m>=c}function w(){var e=t();if(b(e))return x(e);f=setTimeout(w,function(e){var t=a-(e-p);return v?o(t,c-(e-m)):t}(e))}function x(e){return f=void 0,g&&s?y(e):(s=l=void 0,d)}function _(){var e=t(),n=b(e);if(s=arguments,l=this,p=e,n){if(void 0===f)return function(e){return m=e,f=setTimeout(w,a),h?y(e):d}(p);if(v)return clearTimeout(f),f=setTimeout(w,a),y(p)}return void 0===f&&(f=setTimeout(w,a)),d}return a=n(a)||0,e(u)&&(h=!!u.leading,c=(v="maxWait"in u)?r(n(u.maxWait)||0,a):c,g="trailing"in u?!!u.trailing:g),_.cancel=function(){void 0!==f&&clearTimeout(f),m=0,s=p=l=f=void 0},_.flush=function(){return void 0===f?d:x(t())},_},hb}function U4(){if(lR)return mb;lR=1;var e=oD(),t=xs();return mb=function(n,r,o){var i=!0,a=!0;if("function"!=typeof n)throw new TypeError("Expected a function");return t(o)&&(i="leading"in o?!!o.leading:i,a="trailing"in o?!!o.trailing:a),e(n,r,{leading:i,maxWait:r,trailing:a})}}rv.exports;var z4=U4();const W4=XS(z4);function wv(e){return(wv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cR(Object(n),!0).forEach((function(t){q4(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function q4(e,t,n){return(t=G4(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G4(e){var t=H4(e,"string");return"symbol"==wv(t)?t:t+""}function H4(e,t){if("object"!=wv(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function K4(e,t){return J4(e)||X4(e,t)||Y4(e,t)||Q4()}function Q4(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Y4(e,t){if(e){if("string"==typeof e)return dR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dR(e,t)}}function dR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function X4(e,t){var n=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0!==t)for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}function J4(e){if(Array.isArray(e))return e}var vb,fR,gb,pR,yb,hR,wb,mR,_b,vR,bb,gR,xb,yR,Sb,wR,$b,_R,Cb,bR,Ib,xR,Eb,SR,Pb,$R,Z4=Le((function(e,t){var n=e.aspect,r=e.initialDimension,o=void 0===r?{width:-1,height:-1}:r,i=e.width,a=void 0===i?"100%":i,u=e.height,s=void 0===u?"100%":u,l=e.minWidth,c=void 0===l?0:l,d=e.minHeight,f=e.maxHeight,p=e.children,m=e.debounce,h=void 0===m?0:m,v=e.id,g=e.className,y=e.onResize,b=e.style,w=void 0===b?{}:b,x=We(null),_=We();_.current=y,hM(t,(function(){return Object.defineProperty(x.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),x.current},configurable:!0})}));var k=K4(ut({containerWidth:o.width,containerHeight:o.height}),2),S=k[0],A=k[1],E=yt((function(e,t){A((function(n){var r=Math.round(e),o=Math.round(t);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}}))}),[]);Ze((function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,o=n.height;E(r,o),null===(t=_.current)||void 0===t||t.call(_,r,o)};h>0&&(e=W4(e,h,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=x.current.getBoundingClientRect(),r=n.width,o=n.height;return E(r,o),t.observe(x.current),function(){t.disconnect()}}),[E,h]);var I=xn((function(){var e=S.containerWidth,t=S.containerHeight;if(e<0||t<0)return null;Uw(Pg(a)||Pg(s),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,s),Uw(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=Pg(a)?e:a,o=Pg(s)?t:s;n&&n>0&&(r?o=r/n:o&&(r=o*n),f&&o>f&&(o=f)),Uw(r>0||o>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,o,a,s,c,d,n);var i=!Array.isArray(p)&&G8(p.type).endsWith("Chart");return He.Children.map(p,(function(e){return He.isValidElement(e)?sp(e,Rg({width:r,height:o},i?{style:Rg({height:"100%",width:"100%",maxHeight:o,maxWidth:r},e.props.style)}:{})):e}))}),[n,p,s,f,d,c,S,a]);return He.createElement("div",{id:v?"".concat(v):void 0,className:DA("recharts-responsive-container",g),style:Rg(Rg({},w),{},{width:a,height:s,minWidth:c,minHeight:d,maxHeight:f}),ref:x},I)}));function L$(){if(fR)return vb;fR=1;var e=G2()(Object.getPrototypeOf,Object);return vb=e}function eF(){if(pR)return gb;pR=1;var e=Dl(),t=L$(),n=aa(),r=Function.prototype,o=Object.prototype,i=r.toString,a=o.hasOwnProperty,u=i.call(Object);return gb=function(r){if(!n(r)||"[object Object]"!=e(r))return!1;var o=t(r);if(null===o)return!0;var s=a.call(o,"constructor")&&o.constructor;return"function"==typeof s&&s instanceof s&&i.call(s)==u}}function tF(){if(hR)return yb;hR=1;var e=rD(),t=1/0;return yb=function(n){return n?(n=e(n))===t||n===-t?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}}function iD(){if(mR)return wb;mR=1;var e=eD();return wb=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}}function aD(){if(vR)return _b;vR=1;var e=tF();return _b=function(t){var n=e(t),r=n%1;return n==n?r?n-r:n:0}}function F$(){if(gR)return bb;return gR=1,bb=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}}function sD(){if(yR)return xb;yR=1;var e=iD(),t=x$(),n=Object.prototype.hasOwnProperty;return xb=function(r,o,i){var a=r[o];(!n.call(r,o)||!t(a,i)||void 0===i&&!(o in r))&&e(r,o,i)}}function Py(){if(wR)return Sb;wR=1;var e=sD(),t=iD();return Sb=function(n,r,o,i){var a=!o;o||(o={});for(var u=-1,s=r.length;++u<s;){var l=r[u],c=i?i(o[l],n[l],l,o,n):void 0;void 0===c&&(c=n[l]),a?t(o,l,c):e(o,l,c)}return o}}function uD(){if(_R)return $b;_R=1;var e=Py(),t=Ey();return $b=function(n,r){return n&&e(r,t(r),n)}}function nF(){if(bR)return Cb;return bR=1,Cb=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}}function rF(){if(xR)return Ib;xR=1;var e=xs(),t=N$(),n=nF(),r=Object.prototype.hasOwnProperty;return Ib=function(o){if(!e(o))return n(o);var i=t(o),a=[];for(var u in o)"constructor"==u&&(i||!r.call(o,u))||a.push(u);return a}}function B$(){if(SR)return Eb;SR=1;var e=q2(),t=rF(),n=K2();return Eb=function(r){return n(r)?e(r,!0):t(r)}}function oF(){if($R)return Pb;$R=1;var e=Py(),t=B$();return Pb=function(n,r){return n&&e(r,t(r),n)}}var CR,Rb,IR,Tb,ER,Ob,PR,Ab,RR,Db,TR,Nb,OR,kb,AR,Mb,DR,Lb,NR,Fb,kR,Bb,MR,jb,LR,Vb,FR,Ub,BR,zb,jR,Wb,VR,qb,UR,Gb,zR,Hb,WR,Kb,qR,Qb,GR,ov={exports:{}};function iF(){return CR||(CR=1,e=ov,t=ov.exports,n=si(),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r?n.Buffer:void 0,a=i?i.allocUnsafe:void 0,e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}),ov.exports;var e,t,n,r,o,i,a}function Ry(){if(IR)return Rb;return IR=1,Rb=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}}function aF(){if(ER)return Tb;ER=1;var e=Py(),t=E$();return Tb=function(n,r){return e(n,t(n),r)}}function lD(){if(PR)return Ob;PR=1;var e=I$(),t=L$(),n=E$(),r=z2(),o=Object.getOwnPropertySymbols;return Ob=o?function(r){for(var o=[];r;)e(o,n(r)),r=t(r);return o}:r}function sF(){if(RR)return Ab;RR=1;var e=Py(),t=lD();return Ab=function(n,r){return e(n,t(n),r)}}function uF(){if(TR)return Db;TR=1;var e=U2(),t=lD(),n=B$();return Db=function(r){return e(r,n,t)}}function lF(){if(OR)return Nb;OR=1;var e=Object.prototype.hasOwnProperty;return Nb=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}}function j$(){if(AR)return kb;AR=1;var e=V2();return kb=function(t){var n=new t.constructor(t.byteLength);return new e(n).set(new e(t)),n}}function cF(){if(DR)return Mb;DR=1;var e=j$();return Mb=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}}function dF(){if(NR)return Lb;NR=1;var e=/\w*$/;return Lb=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}}function fF(){if(kR)return Fb;kR=1;var e=Hh(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;return Fb=function(e){return n?Object(n.call(e)):{}}}function pF(){if(MR)return Bb;MR=1;var e=j$();return Bb=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}}function hF(){if(LR)return jb;LR=1;var e=j$(),t=cF(),n=dF(),r=fF(),o=pF();return jb=function(i,a,u){var s=i.constructor;switch(a){case"[object ArrayBuffer]":return e(i);case"[object Boolean]":case"[object Date]":return new s(+i);case"[object DataView]":return t(i,u);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return o(i,u);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(i);case"[object RegExp]":return n(i);case"[object Symbol]":return r(i)}}}function Ty(){if(FR)return Vb;FR=1;var e=xs(),t=Object.create;return Vb=function(){function n(){}return function(r){if(!e(r))return{};if(t)return t(r);n.prototype=r;var o=new n;return n.prototype=void 0,o}}()}function mF(){if(BR)return Ub;BR=1;var e=Ty(),t=L$(),n=N$();return Ub=function(r){return"function"!=typeof r.constructor||n(r)?{}:e(t(r))}}function vF(){if(jR)return zb;jR=1;var e=Fv(),t=aa();return zb=function(n){return t(n)&&"[object Map]"==e(n)}}function gF(){if(VR)return Wb;VR=1;var e=vF(),t=A$(),n=D$(),r=n&&n.isMap,o=r?t(r):e;return Wb=o}function yF(){if(UR)return qb;UR=1;var e=Fv(),t=aa();return qb=function(n){return t(n)&&"[object Set]"==e(n)}}function wF(){if(zR)return Gb;zR=1;var e=yF(),t=A$(),n=D$(),r=n&&n.isSet,o=r?t(r):e;return Gb=o}function cD(){if(WR)return Hb;WR=1;var e=C$(),t=F$(),n=sD(),r=uD(),o=oF(),i=iF(),a=Ry(),u=aF(),s=sF(),l=Q2(),c=uF(),d=Fv(),f=lF(),p=hF(),m=mF(),h=Pi(),v=R$(),g=gF(),y=xs(),b=wF(),w=Ey(),x=B$(),_="[object Arguments]",k="[object Function]",S="[object Object]",A={};return A[_]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[S]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[k]=A["[object WeakMap]"]=!1,Hb=function E(I,C,P,q,O,T){var N,R=1&C,D=2&C,j=4&C;if(P&&(N=O?P(I,q,O,T):P(I)),void 0!==N)return N;if(!y(I))return I;var L=h(I);if(L){if(N=f(I),!R)return a(I,N)}else{var M=d(I),$=M==k||"[object GeneratorFunction]"==M;if(v(I))return i(I,R);if(M==S||M==_||$&&!O){if(N=D||$?{}:m(I),!R)return D?s(I,o(N,I)):u(I,r(N,I))}else{if(!A[M])return O?I:{};N=p(I,M,R)}}T||(T=new e);var B=T.get(I);if(B)return B;T.set(I,N),b(I)?I.forEach((function(e){N.add(E(e,C,P,e,I,T))})):g(I)&&I.forEach((function(e,t){N.set(t,E(e,C,P,t,I,T))}));var F=L?void 0:(j?D?c:l:D?x:w)(I);return t(F||I,(function(e,t){F&&(e=I[t=e]),n(N,t,E(e,C,P,t,I,T))})),N},Hb}function _F(){if(qR)return Kb;qR=1;var e=k4();return Kb=function(t){return(null==t?0:t.length)?e(t,1):[]}}function bF(){if(GR)return Qb;GR=1;var e=_F(),t=M4(),n=nD();return Qb=function(r){return n(t(r,void 0,e),r+"")}}ov.exports;const xF={light:"",dark:".dark"},dD=k.createContext(null);function fD(){const e=k.useContext(dD);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const SF=k.forwardRef((({id:e,className:t,children:n,config:r,...o},i)=>{const a=k.useId(),u=`chart-${e||a.replace(/:/g,"")}`;return q.jsx(dD.Provider,{value:{config:r},children:q.jsxs("div",{"data-chart":u,ref:i,className:we("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...o,children:[q.jsx($F,{id:u,config:r}),q.jsx(Z4,{children:n})]})})}));SF.displayName="Chart";const $F=({id:e,config:t})=>{const n=Object.entries(t).filter((([,e])=>e.theme||e.color));return n.length?q.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(xF).map((([t,r])=>`\n${r} [data-chart=${e}] {\n${n.map((([e,n])=>{var r;const o=(null==(r=n.theme)?void 0:r[t])||n.color;return o?` --color-${e}: ${o};`:null})).join("\n")}\n}\n`)).join("\n")}}):null},CF=k.forwardRef((({active:e,payload:t,className:n,indicator:r="dot",hideLabel:o=!1,hideIndicator:i=!1,label:a,labelFormatter:u,labelClassName:s,formatter:l,color:c,nameKey:d,labelKey:f,hoveredItem:p,onItemHover:m},h)=>{const{config:v}=fD(),g=k.useMemo((()=>{var e;if(o||null==t||!t.length)return null;const[n]=t,r=`${f||(null==n?void 0:n.dataKey)||(null==n?void 0:n.name)||"value"}`,i=vS(v,n,r),l=f||"string"!=typeof a?null==i?void 0:i.label:(null==(e=v[a])?void 0:e.label)||a;return u?q.jsx("div",{className:we("font-medium",s),children:u(l,t)}):l?q.jsx("div",{className:we("font-medium",s),children:l}):null}),[a,u,t,o,s,v,f]);if(!e||null==t||!t.length)return null;const y=1===t.length&&"dot"!==r,b=t.length>10;return q.jsxs("div",{ref:h,className:we("grid min-w-[8rem] items-start gap-xxs rounded-sm border border-border/50 bg-background px-xs py-xxs text-xs shadow-xl",b&&"min-w-[16rem]",n),children:[y?null:g,q.jsx("div",{className:we("grid gap-xxs",b&&"grid-cols-2 gap-x-s"),children:t.map(((e,t)=>{var n;const o=`${d||e.name||e.dataKey||"value"}`,a=vS(v,e,o),u=c||(null==(n=e.payload)?void 0:n.fill)||e.color||"",s=o===p;return q.jsx("div",{className:we("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===r&&"items-center",s?"":p?"opacity-40":""),onMouseEnter:()=>null==m?void 0:m(o),onMouseLeave:()=>null==m?void 0:m(null),children:l&&void 0!==(null==e?void 0:e.value)&&void 0!==(null==e?void 0:e.payload)&&e.name?l(e.value,e.name,e,t,[e.payload]):q.jsxs(q.Fragment,{children:[null!=a&&a.icon?q.jsx(a.icon,{}):!i&&q.jsx("div",{className:we("shrink-0 rounded-full border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===r,"w-1":"line"===r,"w-0 border border-dashed bg-transparent":"dashed"===r,"my-0.5":y&&"dashed"===r}),style:{"--color-bg":u,"--color-border":u}}),q.jsxs("div",{className:we("flex flex-1 justify-between leading-none",y?"items-end":"items-center"),children:[q.jsxs("div",{className:"grid gap-xxs",children:[y?g:null,q.jsx("span",{className:we("text-muted-foreground",s&&"font-medium text-foreground"),children:(null==a?void 0:a.label)||e.name})]}),e.value&&q.jsx("span",{className:we("font-mono font-medium tabular-nums text-foreground",s&&"font-bold"),children:e.value.toLocaleString()})]})]})},e.dataKey)}))})]})}));CF.displayName="ChartTooltip";const IF=k.forwardRef((({className:e,hideIcon:t=!1,payload:n,nameKey:r,onItemHover:o,hoveredItem:i},a)=>{const{config:u}=fD(),s=k.useRef({});return k.useEffect((()=>{if(i&&s.current[i]){const e=s.current[i];e&&e.scrollIntoView({behavior:"smooth",block:"nearest"})}}),[i]),null!=n&&n.length?q.jsx("div",{ref:a,className:we("flex h-[150px] w-full flex-wrap items-center justify-center gap-l overflow-y-auto pb-xl",e),children:n.map((e=>{var n;const a=`${r||e.dataKey||"value"}`,l=vS(u,e,a),c=!!o&&a===i;return q.jsxs("div",{ref:e=>{e?s.current[a]=e:delete s.current[a]},className:we("group flex cursor-pointer select-none items-center gap-xs text-base transition-all duration-150",c?"scale-105 text-black":i?"text-gray-700 opacity-40":"text-gray-700"),onMouseEnter:()=>null==o?void 0:o(e.dataKey),onMouseLeave:()=>null==o?void 0:o(null),children:[null!=l&&l.icon&&!t?q.jsx(l.icon,{}):q.jsx("div",{className:"h-2 w-2 shrink-0 rounded-full",style:{backgroundColor:e.color||""}}),q.jsx("span",{className:"min-w-[max-content]",children:(null==l?void 0:l.label)||e.name})]},(null==(n=e.value)?void 0:n.toString())||a)}))}):null}));function vS(e,t,n){if("object"!=typeof t||null===t)return;const r="payload"in t&&"object"==typeof t.payload&&null!==t.payload?t.payload:void 0;let o=n;return n in t&&"string"==typeof t[n]?o=t[n]:r&&n in r&&"string"==typeof r[n]&&(o=r[n]),o in e?e[o]:e[n]}IF.displayName="ChartLegend";const EF=({children:e,className:t})=>q.jsx("div",{className:we("flex flex-wrap gap-xxxs",t),children:e}),pD=({text:e,icon:t,disabled:n,isLoading:r,avatarSrc:o,onClick:i,onRemove:a,className:u})=>q.jsxs("div",{onClick:n?void 0:i,className:we("flex cursor-pointer items-center gap-xxxs rounded-sm bg-gray-100 p-xxs text-sm font-medium text-gray-900 transition-all hover:bg-gray-200 [&_svg]:size-4",n&&"cursor-not-allowed bg-gray-100 text-gray-300",u),children:[o&&q.jsxs(x2,{className:we("size-6 text-[10px]"),children:[q.jsx(S2,{src:o,alt:e}),q.jsx($2,{className:"text-xs",children:e.charAt(0).toUpperCase()})]}),t,q.jsx("span",{children:e}),a&&!r&&q.jsx("span",{role:"button",tabIndex:-1,onClick:e=>{e.stopPropagation(),e.preventDefault(),!n&&(null==a||a())},onPointerDown:e=>{e.stopPropagation(),e.preventDefault()},className:we("pointer-events-auto cursor-pointer",n&&"pointer-events-none cursor-not-allowed opacity-50"),children:q.jsx(py,{size:16})}),r&&q.jsx(PA,{size:16,className:"animate-spin"})]});function Oy(e){const t=We({value:e,previous:e});return xn((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}function Ay(e){const[t,n]=ut(void 0);return Go((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t)||!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}const hD="Checkbox",[PF,UX]=ai(hD),[RF,TF]=PF(hD),OF=Le(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:u,value:s="on",onCheckedChange:l,...c}=e,[d,f]=ut(null),p=Ht(t,(e=>f(e))),m=We(!1),h=!d||!!d.closest("form"),[v=!1,g]=vd({prop:o,defaultProp:i,onChange:l}),y=We(v);return Ze((()=>{const e=null==d?void 0:d.form;if(e){const t=()=>g(y.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[d,g]),oe(RF,{scope:n,state:v,disabled:u},oe(ht.button,Ee({type:"button",role:"checkbox","aria-checked":Wf(v)?"mixed":v,"aria-required":a,"data-state":mD(v),"data-disabled":u?"":void 0,disabled:u,value:s},c,{ref:p,onKeyDown:ot(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:ot(e.onClick,(e=>{g((e=>!!Wf(e)||!e)),h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))})),h&&oe(NF,{control:d,bubbles:!m.current,name:r,value:s,checked:v,required:a,disabled:u,style:{transform:"translateX(-100%)"}}))})),AF="CheckboxIndicator",DF=Le(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=TF(AF,n);return oe(ia,{present:r||Wf(i.state)||!0===i.state},oe(ht.span,Ee({"data-state":mD(i.state),"data-disabled":i.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))})),NF=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=We(null),a=Oy(n),u=Ay(t);return Ze((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});e.indeterminate=Wf(n),o.call(e,!Wf(n)&&n),e.dispatchEvent(t)}}),[a,n,r]),oe("input",Ee({type:"checkbox","aria-hidden":!0,defaultChecked:!Wf(n)&&n},o,{tabIndex:-1,ref:i,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Wf(e){return"indeterminate"===e}function mD(e){return Wf(e)?"indeterminate":e?"checked":"unchecked"}const vD=OF,kF=DF,MF=wu("relative overflow-hidden ",{variants:{size:{default:"size-xs"},variant:{default:"peer shrink-0 rounded-sm border disabled:cursor-not-allowed disabled:!border-0 disabled:!bg-gray-100"}},defaultVariants:{size:"default",variant:"default"}}),V$=k.forwardRef((({className:e,size:t,variant:n,iconType:r,...o},i)=>{const a=o.checked,[u]=k.useState(a),[s,l]=k.useState(!1);k.useEffect((()=>{u!==a&&l(!0)}),[a]);const c=e=>"minus"===r?q.jsx(TL,{...e}):q.jsx(a$,{...e});return q.jsxs(vD,{ref:i,className:we(MF({size:t,variant:n}),"transition-[border] duration-100 ease-linear",a?"border-0":"border-gray-300 hover:border-2",e),...o,children:[q.jsx("div",{className:we("transform-origin-center absolute left-0 top-0 size-full rounded-full bg-blue_100",a?"scale-[1.2]":"scale-0",{"animate-fill-in":a&&s,"animate-fill-out":!a&&s})}),q.jsx(kF,{className:"relative flex items-center justify-center text-current",children:q.jsx(c,{className:"size-xxxs",color:o.disabled?"var(--gray-300)":"white"})})]})}));V$.displayName=vD.displayName;var HR=1,LF=.9,FF=.8,BF=.17,Yb=.1,Xb=.999,jF=.9999,VF=.99,UF=/[\\\/_+.#"@\[\(\{&]/,zF=/[\\\/_+.#"@\[\(\{&]/g,WF=/[\s-]/,gD=/[\s-]/g;function gS(e,t,n,r,o,i,a){if(i===t.length)return o===e.length?HR:VF;var u=`${o},${i}`;if(void 0!==a[u])return a[u];for(var s,l,c,d,f=r.charAt(i),p=n.indexOf(f,o),m=0;p>=0;)(s=gS(e,t,n,r,p+1,i+1,a))>m&&(p===o?s*=HR:UF.test(e.charAt(p-1))?(s*=FF,(c=e.slice(o,p-1).match(zF))&&o>0&&(s*=Math.pow(Xb,c.length))):WF.test(e.charAt(p-1))?(s*=LF,(d=e.slice(o,p-1).match(gD))&&o>0&&(s*=Math.pow(Xb,d.length))):(s*=BF,o>0&&(s*=Math.pow(Xb,p-o))),e.charAt(p)!==t.charAt(i)&&(s*=jF)),(s<Yb&&n.charAt(p-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&n.charAt(p-1)!==r.charAt(i))&&((l=gS(e,t,n,r,p+1,i+2,a))*Yb>s&&(s=l*Yb)),s>m&&(m=s),p=n.indexOf(f,p+1);return a[u]=m,m}function KR(e){return e.toLowerCase().replace(gD," ")}function qF(e,t,n){return gS(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,KR(e),KR(t),0,0,{})}var Ym='[cmdk-group=""]',Jb='[cmdk-group-items=""]',GF='[cmdk-group-heading=""]',U$='[cmdk-item=""]',QR=`${U$}:not([aria-disabled="true"])`,yS="cmdk-item-select",Bf="data-value",HF=(e,t,n)=>qF(e,t,n),yD=k.createContext(void 0),Bv=()=>k.useContext(yD),wD=k.createContext(void 0),z$=()=>k.useContext(wD),_D=k.createContext(void 0),bD=k.forwardRef(((e,t)=>{let n=Nh((()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",filtered:{count:0,items:new Map,groups:new Set}}})),r=Nh((()=>new Set)),o=Nh((()=>new Map)),i=Nh((()=>new Map)),a=Nh((()=>new Set)),u=xD(e),{label:s,children:l,value:c,onValueChange:d,filter:f,shouldFilter:p,loop:m,disablePointerSelection:h=!1,vimBindings:v=!0,...g}=e,y=k.useId(),b=k.useId(),w=k.useId(),x=k.useRef(null),_=o9();Yf((()=>{if(void 0!==c){let e=c.trim();n.current.value=e,S.emit()}}),[c]),Yf((()=>{_(6,q)}),[]);let S=k.useMemo((()=>({subscribe:e=>(a.current.add(e),()=>a.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,i,a;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)P(),I(),_(1,C);else if("value"===e&&(r||_(5,q),void 0!==(null==(o=u.current)?void 0:o.value))){let e=t??"";return void(null==(a=(i=u.current).onValueChange)||a.call(i,e))}S.emit()}},emit:()=>{a.current.forEach((e=>e()))}})),[]),A=k.useMemo((()=>({value:(e,t,r)=>{var o;t!==(null==(o=i.current.get(e))?void 0:o.value)&&(i.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,E(t,r)),_(2,(()=>{I(),S.emit()})))},item:(e,t)=>(r.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),_(3,(()=>{P(),I(),n.current.value||C(),S.emit()})),()=>{i.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=O();_(4,(()=>{P(),(null==t?void 0:t.getAttribute("id"))===e&&C(),S.emit()}))}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{i.current.delete(e),o.current.delete(e)}),filter:()=>u.current.shouldFilter,label:s||e["aria-label"],disablePointerSelection:h,listId:y,inputId:w,labelId:b,listInnerRef:x})),[]);function E(e,t){var r,o;let i=null!=(o=null==(r=u.current)?void 0:r.filter)?o:HF;return e?i(e,n.current.search,t):0}function I(){if(!n.current.search||!1===u.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach((n=>{let r=o.current.get(n),i=0;r.forEach((t=>{let n=e.get(t);i=Math.max(n,i)})),t.push([n,i])}));let r=x.current;T().sort(((t,n)=>{var r,o;let i=t.getAttribute("id"),a=n.getAttribute("id");return(null!=(r=e.get(a))?r:0)-(null!=(o=e.get(i))?o:0)})).forEach((e=>{let t=e.closest(Jb);t?t.appendChild(e.parentElement===t?e:e.closest(`${Jb} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${Jb} > *`))})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{let t=x.current.querySelector(`${Ym}[${Bf}="${encodeURIComponent(e[0])}"]`);null==t||t.parentElement.appendChild(t)}))}function C(){let e=T().find((e=>"true"!==e.getAttribute("aria-disabled"))),t=null==e?void 0:e.getAttribute(Bf);S.setState("value",t||void 0)}function P(){var e,t,a,s;if(!n.current.search||!1===u.current.shouldFilter)return void(n.current.filtered.count=r.current.size);n.current.filtered.groups=new Set;let l=0;for(let o of r.current){let r=E(null!=(t=null==(e=i.current.get(o))?void 0:e.value)?t:"",null!=(s=null==(a=i.current.get(o))?void 0:a.keywords)?s:[]);n.current.filtered.items.set(o,r),r>0&&l++}for(let[e,t]of o.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=l}function q(){var e,t,n;let r=O();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(Ym))?void 0:t.querySelector(GF))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function O(){var e;return null==(e=x.current)?void 0:e.querySelector(`${U$}[aria-selected="true"]`)}function T(){var e;return Array.from(null==(e=x.current)?void 0:e.querySelectorAll(QR))}function N(e){let t=T()[e];t&&S.setState("value",t.getAttribute(Bf))}function R(e){var t;let n=O(),r=T(),o=r.findIndex((e=>e===n)),i=r[o+e];null!=(t=u.current)&&t.loop&&(i=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),i&&S.setState("value",i.getAttribute(Bf))}function D(e){let t,n=O(),r=null==n?void 0:n.closest(Ym);for(;r&&!t;)r=e>0?n9(r,Ym):r9(r,Ym),t=null==r?void 0:r.querySelector(QR);t?S.setState("value",t.getAttribute(Bf)):R(e)}let j=()=>N(T().length-1),L=e=>{e.preventDefault(),e.metaKey?j():e.altKey?D(1):R(1)},M=e=>{e.preventDefault(),e.metaKey?N(0):e.altKey?D(-1):R(-1)};return k.createElement(ht.div,{ref:t,tabIndex:-1,...g,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=g.onKeyDown)||t.call(g,e),!e.defaultPrevented)switch(e.key){case"n":case"j":v&&e.ctrlKey&&L(e);break;case"ArrowDown":L(e);break;case"p":case"k":v&&e.ctrlKey&&M(e);break;case"ArrowUp":M(e);break;case"Home":e.preventDefault(),N(0);break;case"End":e.preventDefault(),j();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();let t=O();if(t){let e=new Event(yS);t.dispatchEvent(e)}}}}},k.createElement("label",{"cmdk-label":"",htmlFor:A.inputId,id:A.labelId,style:a9},s),Dy(e,(e=>k.createElement(wD.Provider,{value:S},k.createElement(yD.Provider,{value:A},e)))))})),KF=k.forwardRef(((e,t)=>{var n,r;let o=k.useId(),i=k.useRef(null),a=k.useContext(_D),u=Bv(),s=xD(e),l=null!=(r=null==(n=s.current)?void 0:n.forceMount)?r:null==a?void 0:a.forceMount;Yf((()=>{if(!l)return u.item(o,null==a?void 0:a.id)}),[l]);let c=SD(o,i,[e.value,e.children,i],e.keywords),d=z$(),f=Xf((e=>e.value&&e.value===c.current)),p=Xf((e=>!(!l&&!1!==u.filter())||(!e.search||e.filtered.items.get(o)>0)));function m(){var e,t;h(),null==(t=(e=s.current).onSelect)||t.call(e,c.current)}function h(){d.setState("value",c.current,!0)}if(k.useEffect((()=>{let t=i.current;if(t&&!e.disabled)return t.addEventListener(yS,m),()=>t.removeEventListener(yS,m)}),[p,e.onSelect,e.disabled]),!p)return null;let{disabled:v,value:g,onSelect:y,forceMount:b,keywords:w,...x}=e;return k.createElement(ht.div,{ref:_v([i,t]),...x,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!f,"data-disabled":!!v,"data-selected":!!f,onPointerMove:v||u.disablePointerSelection?void 0:h,onClick:v?void 0:m},e.children)})),QF=k.forwardRef(((e,t)=>{let{heading:n,children:r,forceMount:o,...i}=e,a=k.useId(),u=k.useRef(null),s=k.useRef(null),l=k.useId(),c=Bv(),d=Xf((e=>!(!o&&!1!==c.filter())||(!e.search||e.filtered.groups.has(a))));Yf((()=>c.group(a)),[]),SD(a,u,[e.value,e.heading,s]);let f=k.useMemo((()=>({id:a,forceMount:o})),[o]);return k.createElement(ht.div,{ref:_v([u,t]),...i,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&k.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:l},n),Dy(e,(e=>k.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?l:void 0},k.createElement(_D.Provider,{value:f},e)))))})),YF=k.forwardRef(((e,t)=>{let{alwaysRender:n,...r}=e,o=k.useRef(null),i=Xf((e=>!e.search));return n||i?k.createElement(ht.div,{ref:_v([o,t]),...r,"cmdk-separator":"",role:"separator"}):null})),XF=k.forwardRef(((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,i=z$(),a=Xf((e=>e.search)),u=Xf((e=>e.value)),s=Bv(),l=k.useMemo((()=>{var e;let t=null==(e=s.listInnerRef.current)?void 0:e.querySelector(`${U$}[${Bf}="${encodeURIComponent(u)}"]`);return null==t?void 0:t.getAttribute("id")}),[]);return k.useEffect((()=>{null!=e.value&&i.setState("search",e.value)}),[e.value]),k.createElement(ht.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":s.listId,"aria-labelledby":s.labelId,"aria-activedescendant":l,id:s.inputId,type:"text",value:o?e.value:a,onChange:e=>{o||i.setState("search",e.target.value),null==n||n(e.target.value)}})})),JF=k.forwardRef(((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,i=k.useRef(null),a=k.useRef(null),u=Bv();return k.useEffect((()=>{if(a.current&&i.current){let e,t=a.current,n=i.current,r=new ResizeObserver((()=>{e=requestAnimationFrame((()=>{let e=t.offsetHeight;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")}))}));return r.observe(t),()=>{cancelAnimationFrame(e),r.unobserve(t)}}}),[]),k.createElement(ht.div,{ref:_v([i,t]),...o,"cmdk-list":"",role:"listbox","aria-label":r,id:u.listId},Dy(e,(e=>k.createElement("div",{ref:_v([a,u.listInnerRef]),"cmdk-list-sizer":""},e))))})),ZF=k.forwardRef(((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:i,container:a,...u}=e;return k.createElement(u2,{open:n,onOpenChange:r},k.createElement(wy,{container:a},k.createElement(qh,{"cmdk-overlay":"",className:o}),k.createElement(Gh,{"aria-label":e.label,"cmdk-dialog":"",className:i},k.createElement(bD,{ref:t,...u}))))})),e9=k.forwardRef(((e,t)=>Xf((e=>0===e.filtered.count))?k.createElement(ht.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null)),t9=k.forwardRef(((e,t)=>{let{progress:n,children:r,label:o="Loading...",...i}=e;return k.createElement(ht.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Dy(e,(e=>k.createElement("div",{"aria-hidden":!0},e))))})),Ri=Object.assign(bD,{List:JF,Item:KF,Input:XF,Group:QF,Separator:YF,Dialog:ZF,Empty:e9,Loading:t9});function n9(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function r9(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function xD(e){let t=k.useRef(e);return Yf((()=>{t.current=e})),t}var Yf=typeof window>"u"?k.useEffect:k.useLayoutEffect;function Nh(e){let t=k.useRef();return void 0===t.current&&(t.current=e()),t}function _v(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function Xf(e){let t=z$(),n=()=>e(t.snapshot());return k.useSyncExternalStore(t.subscribe,n,n)}function SD(e,t,n,r=[]){let o=k.useRef(),i=Bv();return Yf((()=>{var a;let u=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),s=r.map((e=>e.trim()));i.value(e,u,s),null==(a=t.current)||a.setAttribute(Bf,u),o.current=u})),o}var o9=()=>{let[e,t]=k.useState(),n=Nh((()=>new Map));return Yf((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}};function i9(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}function Dy({asChild:e,children:t},n){return e&&k.isValidElement(t)?k.cloneElement(i9(t),{ref:t.ref},n(t.props.children)):n(t)}var a9={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const s9=wy,$D=k.forwardRef((({className:e,...t},n)=>(k.useEffect((()=>{const e=document.querySelectorAll(".blured-modal-overlay");return e.forEach((e=>e&&(e.style.filter="blur(5px)"))),()=>{0===Array.from(document.querySelectorAll('[role="dialog"]')).length&&e.forEach((e=>e&&(e.style.filter="none")))}}),[]),q.jsx(qh,{ref:n,"data-testid":"dialog_overlay",className:we("fixed inset-0 z-dialog bg-black opacity-[0.8] data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}))));$D.displayName=qh.displayName;const u9=wu("",{variants:{closeVariant:{none:"",insideCard:"absolute right-m top-m rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground text-gray-400",outsideCard:"fixed right-[30px] top-[30px] z-100 text-gray-400",mobileGallery:"fixed right-m top-[62px] text-white z-[110]"}},defaultVariants:{closeVariant:"outsideCard"}}),l9=wu("",{variants:{closeSize:{small:"size-6",big:"size-[42px]","18x18":"size-[18px]"}},defaultVariants:{closeSize:"small"}}),c9=k.forwardRef((({title:e,titleIcon:t,className:n,dialogName:r,showClose:o=!0,closeVariant:i="outsideCard",closeSize:a="big",children:u,titleClassName:s,overlayClassName:l,childrenClassName:c,footerClassName:d,onBack:f,onCloseModal:p,renderFooter:m,onScroll:h,...v},g)=>{const y=q.jsxs(_y,{className:we(u9({closeVariant:i})),children:[q.jsx(py,{onClick:p,fill:"currentColor",className:we(l9({closeSize:a}))}),q.jsx("span",{className:"sr-only",children:"Close"})]});return q.jsxs(s9,{children:[q.jsx($D,{className:l,onClick:p}),o&&"insideCard"!==i&&y,q.jsxs(Gh,{ref:g,className:we("fixed left-[50%] top-[50%] z-[101] grid max-w-[600px] translate-x-[-50%] translate-y-[-50%] !overflow-visible rounded-sm bg-background shadow-lg outline-none duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] max-md:w-[calc(100vw-32px)] md:w-full [&>div]:min-w-0",n),...v,children:[e&&q.jsxs("h3",{className:we("flex items-center justify-center gap-xxs border-b border-gray-200 p-m text-center text-lg font-semibold text-gray-700",s),children:[t,e]}),q.jsx("div",{id:r||"dialog-content",className:we("p-m",c),onScroll:h,children:u}),o&&"insideCard"===i&&y,f&&q.jsx("button",{"data-testid":"dialog-back-button","aria-label":"Back",onClick:f,className:"absolute left-m top-m",children:q.jsx(IA,{color:"var(--gray-400)",size:24})}),q.jsx(CD,{className:we("empty:hidden",d),children:null==m?void 0:m()})]})]})}));c9.displayName=Gh.displayName;const CD=({className:e,...t})=>q.jsx("div",{className:we("flex border-t border-gray-200 p-m",e),...t});CD.displayName="DialogFooter";const d9=k.forwardRef((({className:e,...t},n)=>q.jsx(Dv,{ref:n,className:we("text-lg font-semibold leading-none tracking-tight",e),...t})));d9.displayName=Dv.displayName;const f9=k.forwardRef((({className:e,...t},n)=>q.jsx(Nv,{ref:n,className:we("text-sm text-muted-foreground",e),...t})));f9.displayName=Nv.displayName;const p9=k.forwardRef((({className:e,...t},n)=>q.jsx(Ri,{ref:n,className:we("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t})));p9.displayName=Ri.displayName;const h9=k.forwardRef((({className:e,...t},n)=>q.jsx("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:q.jsx(Ri.Input,{ref:n,className:we("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})})));h9.displayName=Ri.Input.displayName;const m9=k.forwardRef((({className:e,...t},n)=>q.jsx(Ri.List,{ref:n,className:we("mt-2 max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t})));m9.displayName=Ri.List.displayName;const v9=k.forwardRef(((e,t)=>q.jsx(Ri.Empty,{ref:t,className:"py-6 text-center text-sm",...e})));v9.displayName=Ri.Empty.displayName;const g9=k.forwardRef((({className:e,...t},n)=>q.jsx(Ri.Group,{ref:n,className:we("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t})));g9.displayName=Ri.Group.displayName;const y9=k.forwardRef((({className:e,...t},n)=>q.jsx(Ri.Separator,{ref:n,className:we("-mx-1 h-px bg-border",e),...t})));y9.displayName=Ri.Separator.displayName;const w9=k.forwardRef((({className:e,...t},n)=>q.jsx(Ri.Item,{ref:n,className:we("relative flex max-w-[215px] cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...t})));function hd(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function YR(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function ID(...e){return t=>{let n=!1;const r=e.map((e=>{const r=YR(e,t);return!n&&"function"==typeof r&&(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():YR(e[t],null)}}}}function cp(...e){return k.useCallback(ID(...e),e)}function _9(e,t){const n=k.createContext(t),r=e=>{const{children:t,...r}=e,o=k.useMemo((()=>r),Object.values(r));return q.jsx(n.Provider,{value:o,children:t})};return r.displayName=e+"Provider",[r,function(r){const o=k.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}function b9(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>k.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return k.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=k.createContext(r),i=n.length;n=[...n,r];const a=t=>{var n;const{scope:r,children:a,...u}=t,s=(null==(n=null==r?void 0:r[e])?void 0:n[i])||o,l=k.useMemo((()=>u),Object.values(u));return q.jsx(s.Provider,{value:l,children:a})};return a.displayName=t+"Provider",[a,function(n,a){var u;const s=(null==(u=null==a?void 0:a[e])?void 0:u[i])||o,l=k.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},x9(r,...t)]}function x9(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return k.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}w9.displayName=Ri.Item.displayName;var Qg=null!=globalThis&&globalThis.document?k.useLayoutEffect:()=>{},S9=k[" useId ".trim().toString()]||(()=>{}),$9=0;function Zb(e){const[t,n]=k.useState(S9());return Qg((()=>{e||n((e=>e??String($9++)))}),[e]),e||(t?`radix-${t}`:"")}function Jf(e){const t=k.useRef(e);return k.useEffect((()=>{t.current=e})),k.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function C9({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=I9({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,u=Jf(n);return[a,k.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)}),[i,e,o,u])]}function I9({defaultProp:e,onChange:t}){const n=k.useState(e),[r]=n,o=k.useRef(r),i=Jf(t);return k.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}function ED(e){const t=E9(e),n=k.forwardRef(((e,n)=>{const{children:r,...o}=e,i=k.Children.toArray(r),a=i.find(R9);if(a){const e=a.props.children,r=i.map((t=>t===a?k.Children.count(e)>1?k.Children.only(null):k.isValidElement(e)?e.props.children:null:t));return q.jsx(t,{...o,ref:n,children:k.isValidElement(e)?k.cloneElement(e,void 0,r):null})}return q.jsx(t,{...o,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function E9(e){const t=k.forwardRef(((e,t)=>{const{children:n,...r}=e;if(k.isValidElement(n)){const e=O9(n),o=T9(r,n.props);return n.type!==k.Fragment&&(o.ref=t?ID(t,e):e),k.cloneElement(n,o)}return k.Children.count(n)>1?k.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var P9=Symbol("radix.slottable");function R9(e){return k.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===P9}function T9(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function O9(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var A9=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Nl=A9.reduce(((e,t)=>{const n=ED(`Primitive.${t}`),r=k.forwardRef(((e,r)=>{const{asChild:o,...i}=e,a=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),q.jsx(a,{...i,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{});function D9(e,t){e&&_u.flushSync((()=>e.dispatchEvent(t)))}function N9(e,t=(null==globalThis?void 0:globalThis.document)){const n=Jf(e);k.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}var XR,k9="DismissableLayer",wS="dismissableLayer.update",M9="dismissableLayer.pointerDownOutside",L9="dismissableLayer.focusOutside",PD=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),RD=k.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:u,...s}=e,l=k.useContext(PD),[c,d]=k.useState(null),f=(null==c?void 0:c.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,p]=k.useState({}),m=cp(t,(e=>d(e))),h=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),g=h.indexOf(v),y=c?h.indexOf(c):-1,b=l.layersWithOutsidePointerEventsDisabled.size>0,w=y>=g,x=j9((e=>{const t=e.target,n=[...l.branches].some((e=>e.contains(t)));!w||n||(null==o||o(e),null==a||a(e),e.defaultPrevented||null==u||u())}),f),_=V9((e=>{const t=e.target;[...l.branches].some((e=>e.contains(t)))||(null==i||i(e),null==a||a(e),e.defaultPrevented||null==u||u())}),f);return N9((e=>{y===l.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),f),k.useEffect((()=>{if(c)return n&&(0===l.layersWithOutsidePointerEventsDisabled.size&&(XR=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),JR(),()=>{n&&1===l.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=XR)}}),[c,f,n,l]),k.useEffect((()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),JR())}),[c,l]),k.useEffect((()=>{const e=()=>p({});return document.addEventListener(wS,e),()=>document.removeEventListener(wS,e)}),[]),q.jsx(Nl.div,{...s,ref:m,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:hd(e.onFocusCapture,_.onFocusCapture),onBlurCapture:hd(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:hd(e.onPointerDownCapture,x.onPointerDownCapture)})}));RD.displayName=k9;var F9="DismissableLayerBranch",B9=k.forwardRef(((e,t)=>{const n=k.useContext(PD),r=k.useRef(null),o=cp(t,r);return k.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),q.jsx(Nl.div,{...e,ref:o})}));function j9(e,t=(null==globalThis?void 0:globalThis.document)){const n=Jf(e),r=k.useRef(!1),o=k.useRef((()=>{}));return k.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){TD(M9,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function V9(e,t=(null==globalThis?void 0:globalThis.document)){const n=Jf(e),r=k.useRef(!1);return k.useEffect((()=>{const e=e=>{e.target&&!r.current&&TD(L9,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function JR(){const e=new CustomEvent(wS);document.dispatchEvent(e)}function TD(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?D9(o,i):o.dispatchEvent(i)}B9.displayName=F9;var ex="focusScope.autoFocusOnMount",tx="focusScope.autoFocusOnUnmount",ZR={bubbles:!1,cancelable:!0},U9="FocusScope",OD=k.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[u,s]=k.useState(null),l=Jf(o),c=Jf(i),d=k.useRef(null),f=cp(t,(e=>s(e))),p=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect((()=>{if(r){let e=function(e){if(p.paused||!u)return;const t=e.target;u.contains(t)?d.current=t:fd(d.current,{select:!0})},t=function(e){if(p.paused||!u)return;const t=e.relatedTarget;null!==t&&(u.contains(t)||fd(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&fd(u)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return u&&r.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,u,p.paused]),k.useEffect((()=>{if(u){tT.add(p);const e=document.activeElement;if(!u.contains(e)){const t=new CustomEvent(ex,ZR);u.addEventListener(ex,l),u.dispatchEvent(t),t.defaultPrevented||(z9(K9(AD(u)),{select:!0}),document.activeElement===e&&fd(u))}return()=>{u.removeEventListener(ex,l),setTimeout((()=>{const t=new CustomEvent(tx,ZR);u.addEventListener(tx,c),u.dispatchEvent(t),t.defaultPrevented||fd(e??document.body,{select:!0}),u.removeEventListener(tx,c),tT.remove(p)}),0)}}}),[u,l,c,p]);const m=k.useCallback((e=>{if(!n&&!r||p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=W9(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&fd(i,{select:!0})):(e.preventDefault(),n&&fd(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return q.jsx(Nl.div,{tabIndex:-1,...a,ref:f,onKeyDown:m})}));function z9(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(fd(r,{select:t}),document.activeElement!==n)return}function W9(e){const t=AD(e);return[eT(t,e),eT(t.reverse(),e)]}function AD(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function eT(e,t){for(const n of e)if(!q9(n,{upTo:t}))return n}function q9(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function G9(e){return e instanceof HTMLInputElement&&"select"in e}function fd(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&G9(e)&&t&&e.select()}}OD.displayName=U9;var tT=H9();function H9(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=nT(e,t),e.unshift(t)},remove(t){var n;e=nT(e,t),null==(n=e[0])||n.resume()}}}function nT(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function K9(e){return e.filter((e=>"A"!==e.tagName))}var Q9="Portal",DD=k.forwardRef(((e,t)=>{var n;const{container:r,...o}=e,[i,a]=k.useState(!1);Qg((()=>a(!0)),[]);const u=r||i&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return u?BA.createPortal(q.jsx(Nl.div,{...o,ref:t}),u):null}));function Y9(e,t){return k.useReducer(((e,n)=>t[e][n]??e),e)}DD.displayName=Q9;var Ny=e=>{const{present:t,children:n}=e,r=X9(t),o="function"==typeof n?n({present:r.isPresent}):k.Children.only(n),i=cp(r.ref,J9(o));return"function"==typeof n||r.isPresent?k.cloneElement(o,{ref:i}):null};function X9(e){const[t,n]=k.useState(),r=k.useRef({}),o=k.useRef(e),i=k.useRef("none"),a=e?"mounted":"unmounted",[u,s]=Y9(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect((()=>{const e=Tg(r.current);i.current="mounted"===u?e:"none"}),[u]),Qg((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Tg(t);e?s("MOUNT"):"none"===a||"none"===(null==t?void 0:t.display)?s("UNMOUNT"):s(n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,s]),Qg((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,a=i=>{const a=Tg(r.current).includes(i.animationName);if(i.target===t&&a&&(s("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},u=e=>{e.target===t&&(i.current=Tg(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}s("ANIMATION_END")}),[t,s]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:k.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Tg(e){return(null==e?void 0:e.animationName)||"none"}function J9(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}Ny.displayName="Presence";var nx=0;function Z9(){k.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??rT()),document.body.insertAdjacentElement("beforeend",e[1]??rT()),nx++,()=>{1===nx&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),nx--}}),[])}function rT(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ND=qA(),rx=function(){},ky=k.forwardRef((function(e,t){var n=k.useRef(null),r=k.useState({onScrollCapture:rx,onWheelCapture:rx,onTouchMoveCapture:rx}),o=r[0],i=r[1],a=e.forwardProps,u=e.children,s=e.className,l=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,h=e.allowPinchZoom,v=e.as,g=void 0===v?"div":v,y=e.gapMode,b=p$(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,x=WA([n,t]),_=qo(qo({},b),o);return k.createElement(k.Fragment,null,c&&k.createElement(w,{sideCar:ND,removeScrollBar:l,shards:d,noIsolation:p,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:n,gapMode:y}),a?k.cloneElement(k.Children.only(u),qo(qo({},_),{ref:x})):k.createElement(g,qo({},_,{className:s,ref:x}),u))}));ky.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ky.classNames={fullWidth:dv,zeroRight:cv};var _S=!1;if(typeof window<"u")try{var Og=Object.defineProperty({},"passive",{get:function(){return _S=!0,!0}});window.addEventListener("test",Og,Og),window.removeEventListener("test",Og,Og)}catch{_S=!1}var Th=!!_S&&{passive:!1},eB=function(e){return"TEXTAREA"===e.tagName},kD=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!eB(e)&&"visible"===n[t])},tB=function(e){return kD(e,"overflowY")},nB=function(e){return kD(e,"overflowX")},oT=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host),MD(e,r)){var o=LD(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},rB=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},oB=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},MD=function(e,t){return"v"===e?tB(t):nB(t)},LD=function(e,t){return"v"===e?rB(t):oB(t)},iB=function(e,t){return"h"===e&&"rtl"===t?-1:1},aB=function(e,t,n,r,o){var i=iB(e,window.getComputedStyle(t).direction),a=i*r,u=n.target,s=t.contains(u),l=!1,c=a>0,d=0,f=0;do{var p=LD(e,u),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&MD(e,u)&&(d+=h,f+=m),u=u instanceof ShadowRoot?u.host:u.parentNode}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return(c&&(Math.abs(d)<1||!o)||!c&&(Math.abs(f)<1||!o))&&(l=!0),l},Ag=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},iT=function(e){return[e.deltaX,e.deltaY]},aT=function(e){return e&&"current"in e?e.current:e},sB=function(e,t){return e[0]===t[0]&&e[1]===t[1]},uB=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},lB=0,Oh=[];function cB(e){var t=k.useRef([]),n=k.useRef([0,0]),r=k.useRef(),o=k.useState(lB++)[0],i=k.useState(h$)[0],a=k.useRef(e);k.useEffect((function(){a.current=e}),[e]),k.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=zA([e.lockRef.current],(e.shards||[]).map(aT),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var u=k.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=Ag(e),u=n.current,s="deltaX"in e?e.deltaX:u[0]-i[0],l="deltaY"in e?e.deltaY:u[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=oT(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=oT(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||l)&&(r.current=o),!o)return!0;var p=r.current||o;return aB(p,t,e,"h"===p?s:l,!0)}),[]),s=k.useCallback((function(e){var n=e;if(Oh.length&&Oh[Oh.length-1]===i){var r="deltaY"in n?iT(n):Ag(n),o=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&sB(e.delta,r)}))[0];if(o&&o.should)return void(n.cancelable&&n.preventDefault());if(!o){var s=(a.current.shards||[]).map(aT).filter(Boolean).filter((function(e){return e.contains(n.target)}));(s.length>0?u(n,s[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),l=k.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:dB(r)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),c=k.useCallback((function(e){n.current=Ag(e),r.current=void 0}),[]),d=k.useCallback((function(t){l(t.type,iT(t),t.target,u(t,e.lockRef.current))}),[]),f=k.useCallback((function(t){l(t.type,Ag(t),t.target,u(t,e.lockRef.current))}),[]);k.useEffect((function(){return Oh.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",s,Th),document.addEventListener("touchmove",s,Th),document.addEventListener("touchstart",c,Th),function(){Oh=Oh.filter((function(e){return e!==i})),document.removeEventListener("wheel",s,Th),document.removeEventListener("touchmove",s,Th),document.removeEventListener("touchstart",c,Th)}}),[]);var p=e.removeScrollBar,m=e.inert;return k.createElement(k.Fragment,null,m?k.createElement(i,{styles:uB(o)}):null,p?k.createElement(QA,{gapMode:e.gapMode}):null)}function dB(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const fB=HA(ND,cB);var FD=k.forwardRef((function(e,t){return k.createElement(ky,qo({},e,{ref:t,sideCar:fB}))}));FD.classNames=ky.classNames;var W$="Dialog",[BD,zX]=b9(W$),[pB,Ss]=BD(W$),jD=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,u=k.useRef(null),s=k.useRef(null),[l=!1,c]=C9({prop:r,defaultProp:o,onChange:i});return q.jsx(pB,{scope:t,triggerRef:u,contentRef:s,contentId:Zb(),titleId:Zb(),descriptionId:Zb(),open:l,onOpenChange:c,onOpenToggle:k.useCallback((()=>c((e=>!e))),[c]),modal:a,children:n})};jD.displayName=W$;var VD="DialogTrigger",UD=k.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ss(VD,n),i=cp(t,o.triggerRef);return q.jsx(Nl.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":H$(o.open),...r,ref:i,onClick:hd(e.onClick,o.onOpenToggle)})}));UD.displayName=VD;var q$="DialogPortal",[hB,zD]=BD(q$,{forceMount:void 0}),WD=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Ss(q$,t);return q.jsx(hB,{scope:t,forceMount:n,children:k.Children.map(r,(e=>q.jsx(Ny,{present:n||i.open,children:q.jsx(DD,{asChild:!0,container:o,children:e})})))})};WD.displayName=q$;var Yg="DialogOverlay",qD=k.forwardRef(((e,t)=>{const n=zD(Yg,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Ss(Yg,e.__scopeDialog);return i.modal?q.jsx(Ny,{present:r||i.open,children:q.jsx(vB,{...o,ref:t})}):null}));qD.displayName=Yg;var mB=ED("DialogOverlay.RemoveScroll"),vB=k.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ss(Yg,n);return q.jsx(FD,{as:mB,allowPinchZoom:!0,shards:[o.contentRef],children:q.jsx(Nl.div,{"data-state":H$(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),Zf="DialogContent",GD=k.forwardRef(((e,t)=>{const n=zD(Zf,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Ss(Zf,e.__scopeDialog);return q.jsx(Ny,{present:r||i.open,children:i.modal?q.jsx(gB,{...o,ref:t}):q.jsx(yB,{...o,ref:t})})}));GD.displayName=Zf;var gB=k.forwardRef(((e,t)=>{const n=Ss(Zf,e.__scopeDialog),r=k.useRef(null),o=cp(t,n.contentRef,r);return k.useEffect((()=>{const e=r.current;if(e)return yy(e)}),[]),q.jsx(HD,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:hd(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()})),onPointerDownOutside:hd(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:hd(e.onFocusOutside,(e=>e.preventDefault()))})})),yB=k.forwardRef(((e,t)=>{const n=Ss(Zf,e.__scopeDialog),r=k.useRef(!1),o=k.useRef(!1);return q.jsx(HD,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;null==(i=e.onCloseAutoFocus)||i.call(e,t),t.defaultPrevented||(r.current||null==(a=n.triggerRef.current)||a.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var i,a;null==(i=e.onInteractOutside)||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const u=t.target;(null==(a=n.triggerRef.current)?void 0:a.contains(u))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})})),HD=k.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,u=Ss(Zf,n),s=k.useRef(null),l=cp(t,s);return Z9(),q.jsxs(q.Fragment,{children:[q.jsx(OD,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:q.jsx(RD,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":H$(u.open),...a,ref:l,onDismiss:()=>u.onOpenChange(!1)})}),q.jsxs(q.Fragment,{children:[q.jsx(wB,{titleId:u.titleId}),q.jsx(bB,{contentRef:s,descriptionId:u.descriptionId})]})]})})),G$="DialogTitle",KD=k.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ss(G$,n);return q.jsx(Nl.h2,{id:o.titleId,...r,ref:t})}));KD.displayName=G$;var QD="DialogDescription",YD=k.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ss(QD,n);return q.jsx(Nl.p,{id:o.descriptionId,...r,ref:t})}));YD.displayName=QD;var XD="DialogClose",JD=k.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ss(XD,n);return q.jsx(Nl.button,{type:"button",...r,ref:t,onClick:hd(e.onClick,(()=>o.onOpenChange(!1)))})}));function H$(e){return e?"open":"closed"}JD.displayName=XD;var ZD="DialogTitleWarning",[WX,eN]=_9(ZD,{contentName:Zf,titleName:G$,docsSlug:"dialog"}),wB=({titleId:e})=>{const t=eN(ZD),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return k.useEffect((()=>{e&&(document.getElementById(e)||console.error(n))}),[n,e]),null},_B="DialogDescriptionWarning",bB=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${eN(_B).contentName}}.`;return k.useEffect((()=>{var r;const o=null==(r=e.current)?void 0:r.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))}),[n,e,t]),null},xB=jD,SB=UD,$B=WD,CB=qD,IB=GD,EB=KD,PB=YD,RB=JD;function TB(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const tN=He.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),Kh=()=>{const e=He.useContext(tN);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};TB("[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(\n[data-state=closed]\n){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,100%,0)}}@keyframes slideFromTop{from{transform:translate3d(0,-100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,-100%,0)}}@keyframes slideFromLeft{from{transform:translate3d(-100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(-100%,0,0)}}@keyframes slideFromRight{from{transform:translate3d(100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(100%,0,0)}}");const OB=24,AB=typeof window<"u"?ip:Ze;function sT(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function DB(){return K$(/^Mac/)}function NB(){return K$(/^iPhone/)}function uT(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function kB(){return K$(/^iPad/)||DB()&&navigator.maxTouchPoints>1}function nN(){return NB()||kB()}function K$(e){return typeof window<"u"&&null!=window.navigator?e.test(window.navigator.platform):void 0}const ox=typeof document<"u"&&window.visualViewport;function lT(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function rN(e){for(lT(e)&&(e=e.parentElement);e&&!lT(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const MB=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ix,Dg=0;function LB(e={}){let{isDisabled:t}=e;AB((()=>{if(!t)return Dg++,1===Dg&&nN()&&(ix=FB()),()=>{Dg--,0===Dg&&(null==ix||ix())}}),[t])}function FB(){let e,t=0,n=window.pageXOffset,r=window.pageYOffset,o=sT(BB(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"));window.scrollTo(0,0);let i=sT(Xm(document,"touchstart",(n=>{e=rN(n.target),(e!==document.documentElement||e!==document.body)&&(t=n.changedTouches[0].pageY)}),{passive:!1,capture:!0}),Xm(document,"touchmove",(n=>{if(!e||e===document.documentElement||e===document.body)return void n.preventDefault();let r=n.changedTouches[0].pageY,o=e.scrollTop,i=e.scrollHeight-e.clientHeight;0!==i&&((o<=0&&r>t||o>=i&&r<t)&&n.preventDefault(),t=r)}),{passive:!1,capture:!0}),Xm(document,"touchend",(e=>{let t=e.target;bS(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame((()=>{t.style.transform=""})))}),{passive:!1,capture:!0}),Xm(document,"focus",(e=>{let t=e.target;bS(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",ox&&(ox.height<window.innerHeight?requestAnimationFrame((()=>{cT(t)})):ox.addEventListener("resize",(()=>cT(t)),{once:!0}))})))}),!0),Xm(window,"scroll",(()=>{window.scrollTo(0,0)})));return()=>{o(),i(),window.scrollTo(n,r)}}function BB(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Xm(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function cT(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=rN(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+24&&(t.scrollTop+=r-n)}e=t.parentElement}}function bS(e){return e instanceof HTMLInputElement&&!MB.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function jB(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function VB(...e){return t=>e.forEach((e=>jB(e,t)))}function oN(...e){return k.useCallback(VB(...e),e)}const iN=new WeakMap;function Hr(e,t,n=!1){if(!(e&&e instanceof HTMLElement))return;let r={};Object.entries(t).forEach((([t,n])=>{t.startsWith("--")?e.style.setProperty(t,n):(r[t]=e.style[t],e.style[t]=n)})),!n&&iN.set(e,r)}function UB(e,t){if(!(e&&e instanceof HTMLElement))return;let n=iN.get(e);n&&(e.style[t]=n[t])}const Kr=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Ng(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[Kr(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[Kr(t)?5:4]):null)}function zB(e){return 8*(Math.log(e+1)-2)}function ax(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function WB(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}const Hn={DURATION:.5,EASE:[.32,.72,0,1]},aN=.4,qB=.25,GB=100,sN=8,Mf=16,xS=26,sx="vaul-dragging";function uN(e){const t=He.useRef(e);return He.useEffect((()=>{t.current=e})),He.useMemo((()=>(...e)=>null==t.current?void 0:t.current.call(t,...e)),[])}function HB({defaultProp:e,onChange:t}){const n=He.useState(e),[r]=n,o=He.useRef(r),i=uN(t);return He.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}function lN({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=HB({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,u=uN(n);return[a,He.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)}),[i,e,o,u])]}function KB({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:i,onSnapPointChange:a,direction:u="bottom",container:s,snapToSequentialPoint:l}){const[c,d]=lN({prop:e,defaultProp:null==n?void 0:n[0],onChange:t}),[f,p]=He.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);He.useEffect((()=>{function e(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]);const m=He.useMemo((()=>c===(null==n?void 0:n[n.length-1])||null),[n,c]),h=He.useMemo((()=>null==n?void 0:n.findIndex((e=>e===c))),[n,c]),v=n&&n.length>0&&(i||0===i)&&!Number.isNaN(i)&&n[i]===c||!n,g=He.useMemo((()=>{const e=s?{width:s.getBoundingClientRect().width,height:s.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var t;return null!=(t=null==n?void 0:n.map((t=>{const n="string"==typeof t;let r=0;if(n&&(r=parseInt(t,10)),Kr(u)){const o=n?r:f?t*e.height:0;return f?"bottom"===u?e.height-o:-e.height+o:o}const o=n?r:f?t*e.width:0;return f?"right"===u?e.width-o:-e.width+o:o})))?t:[]}),[n,f,s]),y=He.useMemo((()=>null!==h?null==g?void 0:g[h]:null),[g,h]),b=He.useCallback((e=>{var t;const s=null!=(t=null==g?void 0:g.findIndex((t=>t===e)))?t:null;a(s),Hr(r.current,{transition:`transform ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`,transform:Kr(u)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),g&&s!==g.length-1&&s!==i&&s<i?Hr(o.current,{transition:`opacity ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`,opacity:"0"}):Hr(o.current,{transition:`opacity ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`,opacity:"1"}),d(null==n?void 0:n[Math.max(s,0)])}),[r.current,n,g,i,o,d]);return He.useEffect((()=>{if(c||e){var t;const r=null!=(t=null==n?void 0:n.findIndex((t=>t===e||t===c)))?t:-1;g&&-1!==r&&"number"==typeof g[r]&&b(g[r])}}),[c,e,n,g,b]),{isLastSnapPoint:m,activeSnapPoint:c,shouldFade:v,getPercentageDragged:function(e,t){if(!n||"number"!=typeof h||!g||void 0===i)return null;const r=h===i-1;if(h>=i&&t)return 0;if(r&&!t)return 1;if(!v&&!r)return null;const o=r?h+1:h-1,a=r?g[o]-g[o-1]:g[o+1]-g[o],u=e/Math.abs(a);return r?1-u:u},setActiveSnapPoint:d,activeSnapPointIndex:h,onRelease:function({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:a}){if(void 0===i)return;const s="bottom"===u||"right"===u?(y??0)-e:(y??0)+e,c=0===h,d=e>0;if(h===i-1&&Hr(o.current,{transition:`opacity ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`}),!l&&r>2&&!d)return void(a?t():b(g[0]));if(!l&&r>2&&d&&g&&n)return void b(g[n.length-1]);const f=null==g?void 0:g.reduce(((e,t)=>"number"!=typeof e||"number"!=typeof t?e:Math.abs(t-s)<Math.abs(e-s)?t:e)),p=Kr(u)?window.innerHeight:window.innerWidth;if(r>aN&&Math.abs(e)<.4*p){const e=d?1:-1;if(e>0&&m)return void b(g[n.length-1]);if(c&&e<0&&a&&t(),null===h)return;b(g[h+e])}else b(f)},onDrag:function({draggedDistance:e}){if(null===y)return;const t="bottom"===u||"right"===u?y-e:y+e;("bottom"===u||"right"===u)&&t<g[g.length-1]||("top"===u||"left"===u)&&t>g[g.length-1]||Hr(r.current,{transform:Kr(u)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})},snapPointsOffset:g}}const QB=()=>()=>{};function YB(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=Kh(),i=He.useRef(null),a=xn((()=>document.body.style.backgroundColor),[]);function u(){return(window.innerWidth-26)/window.innerWidth}He.useEffect((()=>{if(t&&n){i.current&&clearTimeout(i.current);const t=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!t)return;WB(r&&!o?ax(document.body,{background:"black"}):QB,ax(t,{transformOrigin:Kr(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${Hn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Hn.EASE.join(",")})`}));const n=ax(t,{borderRadius:"8px",overflow:"hidden",...Kr(e)?{transform:`scale(${u()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${u()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{n(),i.current=window.setTimeout((()=>{a?document.body.style.background=a:document.body.style.removeProperty("background")}),1e3*Hn.DURATION)}}}),[t,n,a])}let Jm=null;function XB({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:i}){const[a,u]=He.useState((()=>typeof window<"u"?window.location.href:"")),s=He.useRef(0),l=He.useCallback((()=>{if(uT()&&null===Jm&&e&&!i){Jm={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:e,innerHeight:t}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:-s.current+"px",left:-e+"px",right:"0px",height:"auto"}),window.setTimeout((()=>window.requestAnimationFrame((()=>{const e=t-window.innerHeight;e&&s.current>=t&&(document.body.style.top=-(s.current+e)+"px")}))),300)}}),[e]),c=He.useCallback((()=>{if(uT()&&null!==Jm&&!i){const e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Jm),window.requestAnimationFrame((()=>{o&&a!==window.location.href?u(window.location.href):window.scrollTo(t,e)})),Jm=null}}),[a]);return He.useEffect((()=>{function e(){s.current=window.scrollY}return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[]),He.useEffect((()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&l(),t||window.setTimeout((()=>{c()}),500)):c())}),[e,r,a,t,n,l,c]),{restorePositionSetting:c}}function cN({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:o,snapPoints:i,shouldScaleBackground:a=!1,setBackgroundColorOnScale:u=!0,closeThreshold:s=qB,scrollLockTimeout:l=GB,dismissible:c=!0,handleOnly:d=!1,fadeFromIndex:f=i&&i.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:h,modal:v=!0,onClose:g,nested:y,noBodyStyles:b,direction:w="bottom",defaultOpen:x=!1,disablePreventScroll:_=!0,snapToSequentialPoint:k=!1,preventScrollRestoration:S=!1,repositionInputs:A=!0,onAnimationEnd:E,container:I,autoFocus:C=!1}){var P,q;const[O=!1,T]=lN({defaultProp:x,prop:e,onChange:e=>{null==t||t(e),!e&&!y&&se(),setTimeout((()=>{null==E||E(e)}),1e3*Hn.DURATION),e&&!v&&typeof window<"u"&&window.requestAnimationFrame((()=>{document.body.style.pointerEvents="auto"})),e||(document.body.style.pointerEvents="auto")}}),[N,R]=He.useState(!1),[D,j]=He.useState(!1),[L,M]=He.useState(!1),$=He.useRef(null),B=He.useRef(null),F=He.useRef(null),z=He.useRef(null),V=He.useRef(null),U=He.useRef(!1),W=He.useRef(null),H=He.useRef(0),G=He.useRef(!1),K=He.useRef(0),Q=He.useRef(null),Y=He.useRef((null==(P=Q.current)?void 0:P.getBoundingClientRect().height)||0),X=He.useRef((null==(q=Q.current)?void 0:q.getBoundingClientRect().width)||0),Z=He.useRef(0),J=He.useCallback((e=>{i&&e===oe.length-1&&(B.current=new Date)}),[]),{activeSnapPoint:ee,activeSnapPointIndex:te,setActiveSnapPoint:ne,onRelease:re,snapPointsOffset:oe,onDrag:ie,shouldFade:ae,getPercentageDragged:ue}=KB({snapPoints:i,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:Q,fadeFromIndex:f,overlayRef:$,onSnapPointChange:J,direction:w,container:I,snapToSequentialPoint:k});LB({isDisabled:!O||D||!v||L||!N||!A||!_});const{restorePositionSetting:se}=XB({isOpen:O,modal:v,nested:y,hasBeenOpened:N,preventScrollRestoration:S,noBodyStyles:b});function le(){return(window.innerWidth-26)/window.innerWidth}function ce(e,t){var n,r;let o=e;const i=null==(n=window.getSelection())?void 0:n.toString(),a=Q.current?Ng(Q.current,w):null,u=new Date;if(o.hasAttribute("data-vaul-no-drag")||o.closest("[data-vaul-no-drag]"))return!1;if("right"===w||"left"===w)return!0;if(B.current&&u.getTime()-B.current.getTime()<500)return!1;if(null!==a&&("bottom"===w?a>0:a<0))return!0;if(i&&i.length>0)return!1;if(u.getTime()-(null==(r=V.current)?void 0:r.getTime())<l&&0===a||t)return V.current=u,!1;for(;o;){if(o.scrollHeight>o.clientHeight){if(0!==o.scrollTop)return V.current=new Date,!1;if("dialog"===o.getAttribute("role"))return!0}o=o.parentNode}return!0}function de(e){!D||!Q.current||(Q.current.classList.remove(sx),U.current=!1,j(!1),z.current=new Date),null==g||g(),e||T(!1),setTimeout((()=>{i&&ne(i[0])}),1e3*Hn.DURATION)}function fe(){if(!Q.current)return;const e=document.querySelector("[data-vaul-drawer-wrapper]"),t=Ng(Q.current,w);Hr(Q.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`}),Hr($.current,{transition:`opacity ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`,opacity:"1"}),a&&t&&t>0&&O&&Hr(e,{borderRadius:"8px",overflow:"hidden",...Kr(w)?{transform:`scale(${le()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${le()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Hn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Hn.EASE.join(",")})`},!0)}return He.useEffect((()=>{var e;function t(){if(!Q.current||!A)return;if(bS(document.activeElement)||G.current){var e;const t=(null==(e=window.visualViewport)?void 0:e.height)||0,n=window.innerHeight;let r=n-t;const o=Q.current.getBoundingClientRect().height||0,a=o>.8*n;Z.current||(Z.current=o);const u=Q.current.getBoundingClientRect().top;if(Math.abs(K.current-r)>60&&(G.current=!G.current),i&&i.length>0&&oe&&te){r+=oe[te]||0}if(K.current=r,o>t||G.current){const e=Q.current.getBoundingClientRect().height;let n=e;e>t&&(n=t-(a?u:26)),Q.current.style.height=h?e-Math.max(r,0)+"px":`${Math.max(n,t-u)}px`}else Q.current.style.height=`${Z.current}px`;i&&i.length>0&&!G.current?Q.current.style.bottom="0px":Q.current.style.bottom=`${Math.max(r,0)}px`}}return null==(e=window.visualViewport)||e.addEventListener("resize",t),()=>{var e;return null==(e=window.visualViewport)?void 0:e.removeEventListener("resize",t)}}),[te,i,oe]),He.useEffect((()=>(O&&(Hr(document.documentElement,{scrollBehavior:"auto"}),B.current=new Date),()=>{UB(document.documentElement,"scrollBehavior")})),[O]),He.createElement(xB,{defaultOpen:x,onOpenChange:e=>{!c&&!e||(e?R(!0):de(!0),T(e))},open:O},He.createElement(tN.Provider,{value:{activeSnapPoint:ee,snapPoints:i,setActiveSnapPoint:ne,drawerRef:Q,overlayRef:$,onOpenChange:t,onPress:function(e){var t,n;!c&&!i||Q.current&&!Q.current.contains(e.target)||(Y.current=(null==(t=Q.current)?void 0:t.getBoundingClientRect().height)||0,X.current=(null==(n=Q.current)?void 0:n.getBoundingClientRect().width)||0,j(!0),F.current=new Date,nN()&&window.addEventListener("touchend",(()=>U.current=!1),{once:!0}),e.target.setPointerCapture(e.pointerId),H.current=Kr(w)?e.pageY:e.pageX)},onRelease:function(e){if(!D||!Q.current)return;Q.current.classList.remove(sx),U.current=!1,j(!1),z.current=new Date;const t=Ng(Q.current,w);if(!ce(e.target,!1)||!t||Number.isNaN(t)||null===F.current)return;const n=z.current.getTime()-F.current.getTime(),r=H.current-(Kr(w)?e.pageY:e.pageX),a=Math.abs(r)/n;if(a>.05&&(M(!0),setTimeout((()=>{M(!1)}),200)),i)return re({draggedDistance:r*("bottom"===w||"right"===w?1:-1),closeDrawer:de,velocity:a,dismissible:c}),void(null==o||o(e,!0));if("bottom"===w||"right"===w?r>0:r<0)return fe(),void(null==o||o(e,!0));if(a>aN)return de(),void(null==o||o(e,!1));var u;const l=Math.min(null!=(u=Q.current.getBoundingClientRect().height)?u:0,window.innerHeight);var d;const f=Math.min(null!=(d=Q.current.getBoundingClientRect().width)?d:0,window.innerWidth),p="left"===w||"right"===w;if(Math.abs(t)>=(p?f:l)*s)return de(),void(null==o||o(e,!1));null==o||o(e,!0),fe()},onDrag:function(e){if(Q.current&&D){const t="bottom"===w||"right"===w?1:-1,n=(H.current-(Kr(w)?e.pageY:e.pageX))*t,o=n>0,u=i&&!c&&!o;if(u&&0===te)return;const s=Math.abs(n),l=document.querySelector("[data-vaul-drawer-wrapper]");let d=s/("bottom"===w||"top"===w?Y.current:X.current);const p=ue(s,o);if(null!==p&&(d=p),u&&d>=1||!U.current&&!ce(e.target,o))return;if(Q.current.classList.add(sx),U.current=!0,Hr(Q.current,{transition:"none"}),Hr($.current,{transition:"none"}),i&&ie({draggedDistance:n}),o&&!i){const e=zB(n),r=Math.min(-1*e,0)*t;return void Hr(Q.current,{transform:Kr(w)?`translate3d(0, ${r}px, 0)`:`translate3d(${r}px, 0, 0)`})}const m=1-d;if((ae||f&&te===f-1)&&(null==r||r(e,d),Hr($.current,{opacity:`${m}`,transition:"none"},!0)),l&&$.current&&a){const e=Math.min(le()+d*(1-le()),1),t=8-8*d,n=Math.max(0,14-14*d);Hr(l,{borderRadius:`${t}px`,transform:Kr(w)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:"none"},!0)}if(!i){const e=s*t;Hr(Q.current,{transform:Kr(w)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}},dismissible:c,handleOnly:d,isOpen:O,isDragging:D,shouldFade:ae,closeDrawer:de,onNestedDrag:function(e,t){if(t<0)return;const n=(window.innerWidth-16)/window.innerWidth,r=n+t*(1-n),o=16*t-16;Hr(Q.current,{transform:Kr(w)?`scale(${r}) translate3d(0, ${o}px, 0)`:`scale(${r}) translate3d(${o}px, 0, 0)`,transition:"none"})},onNestedOpenChange:function(e){const t=e?(window.innerWidth-16)/window.innerWidth:1,n=e?-16:0;W.current&&window.clearTimeout(W.current),Hr(Q.current,{transition:`transform ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`,transform:`scale(${t}) translate3d(0, ${n}px, 0)`}),!e&&Q.current&&(W.current=setTimeout((()=>{const e=Ng(Q.current,w);Hr(Q.current,{transition:"none",transform:Kr(w)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}),500))},onNestedRelease:function(e,t){const n=Kr(w)?window.innerHeight:window.innerWidth,r=t?(n-16)/n:1,o=t?-16:0;t&&Hr(Q.current,{transition:`transform ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`,transform:Kr(w)?`scale(${r}) translate3d(0, ${o}px, 0)`:`scale(${r}) translate3d(${o}px, 0, 0)`})},keyboardIsOpen:G,modal:v,snapPointsOffset:oe,direction:w,shouldScaleBackground:a,setBackgroundColorOnScale:u,noBodyStyles:b,container:I,autoFocus:C}},n))}const dN=He.forwardRef((function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:i,isOpen:a,modal:u}=Kh(),s=oN(t,n),l=r&&r.length>0;return u?He.createElement(CB,{onMouseUp:o,ref:s,"data-vaul-overlay":"","data-vaul-snap-points":a&&l?"true":"false","data-vaul-snap-points-overlay":a&&i?"true":"false",...e}):(typeof window<"u"&&window.requestAnimationFrame((()=>{document.body.style.pointerEvents="auto"})),null)}));dN.displayName="Drawer.Overlay";const fN=He.forwardRef((function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},o){const{drawerRef:i,onPress:a,onRelease:u,onDrag:s,keyboardIsOpen:l,snapPointsOffset:c,modal:d,isOpen:f,direction:p,snapPoints:m,container:h,handleOnly:v,autoFocus:g}=Kh(),[y,b]=He.useState(!1),w=oN(o,i),x=He.useRef(null),_=He.useRef(null),k=He.useRef(!1),S=m&&m.length>0;YB();function A(e){x.current=null,k.current=!1,u(e)}return He.useEffect((()=>{S&&window.requestAnimationFrame((()=>{b(!0)}))}),[]),He.createElement(IB,{"data-vaul-drawer-direction":p,"data-vaul-drawer":"","data-vaul-delayed-snap-points":y?"true":"false","data-vaul-snap-points":f&&S?"true":"false","data-vaul-custom-container":h?"true":"false",...r,ref:w,style:c&&c.length>0?{"--snap-point-height":`${c[0]}px`,...t}:t,onPointerDown:e=>{v||(null==r.onPointerDown||r.onPointerDown.call(r,e),x.current={x:e.pageX,y:e.pageY},a(e))},onOpenAutoFocus:e=>{null==n||n(e),g||e.preventDefault()},onPointerDownOutside:t=>{null==e||e(t),d&&!t.defaultPrevented?l.current&&(l.current=!1):t.preventDefault()},onFocusOutside:e=>{d||e.preventDefault()},onPointerMove:e=>{if(_.current=e,v||(null==r.onPointerMove||r.onPointerMove.call(r,e),!x.current))return;const t=e.pageY-x.current.y,n=e.pageX-x.current.x,o="touch"===e.pointerType?10:2;((e,t,n=0)=>{if(k.current)return!0;const r=Math.abs(e.y),o=Math.abs(e.x),i=o>r,a=["bottom","right"].includes(t)?1:-1;if("left"===t||"right"===t){if(!(e.x*a<0)&&o>=0&&o<=n)return i}else if(!(e.y*a<0)&&r>=0&&r<=n)return!i;return k.current=!0,!0})({x:n,y:t},p,o)?s(e):(Math.abs(n)>o||Math.abs(t)>o)&&(x.current=null)},onPointerUp:e=>{null==r.onPointerUp||r.onPointerUp.call(r,e),x.current=null,k.current=!1,u(e)},onPointerOut:e=>{null==r.onPointerOut||r.onPointerOut.call(r,e),A(_.current)},onContextMenu:e=>{null==r.onContextMenu||r.onContextMenu.call(r,e),A(_.current)}})}));fN.displayName="Drawer.Content";const JB=250,ZB=120,pN=He.forwardRef((function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:o,isDragging:i,snapPoints:a,activeSnapPoint:u,setActiveSnapPoint:s,dismissible:l,handleOnly:c,isOpen:d,onPress:f,onDrag:p}=Kh(),m=He.useRef(null),h=He.useRef(!1);function v(){window.clearTimeout(m.current),h.current=!1}return He.createElement("div",{onClick:function(){h.current?v():window.setTimeout((()=>{!function(){if(i||e||h.current)return void v();if(v(),(!a||0===a.length)&&l)return void o();if(u===a[a.length-1]&&l)return void o();const t=a.findIndex((e=>e===u));if(-1===t)return;const n=a[t+1];s(n)}()}),ZB)},onPointerCancel:v,onPointerDown:e=>{c&&f(e),m.current=window.setTimeout((()=>{h.current=!0}),JB)},onPointerMove:e=>{c&&p(e)},ref:r,"data-vaul-drawer-visible":d?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},He.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))}));function ej({onDrag:e,onOpenChange:t,...n}){const{onNestedDrag:r,onNestedOpenChange:o,onNestedRelease:i}=Kh();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return He.createElement(cN,{nested:!0,onClose:()=>{o(!1)},onDrag:(t,n)=>{r(t,n),null==e||e(t,n)},onOpenChange:e=>{e&&o(e)},onRelease:i,...n})}function tj(e){const t=Kh(),{container:n=t.container,...r}=e;return He.createElement($B,{container:n,...r})}pN.displayName="Drawer.Handle";const Sd={Root:cN,NestedRoot:ej,Content:fN,Overlay:dN,Trigger:SB,Portal:tj,Handle:pN,Close:RB,Title:EB,Description:PB},nj=Sd.Portal,hN=k.forwardRef((({className:e,...t},n)=>q.jsx(Sd.Overlay,{ref:n,className:we("fixed inset-0 z-50 bg-black/5",e),...t})));hN.displayName=Sd.Overlay.displayName;const rj=k.forwardRef((({className:e,children:t,direction:n="bottom",...r},o)=>q.jsxs(nj,{children:[q.jsx(hN,{}),q.jsxs(Sd.Content,{ref:o,className:we("fixed z-50 border bg-background shadow-lg","bottom"===n&&"inset-x-0 bottom-0 mt-24 flex h-auto flex-col rounded-t-sm","top"===n&&"inset-x-0 top-0 mb-24 flex h-auto flex-col rounded-b-sm","left"===n&&"inset-y-0 left-0 flex h-full flex-col","right"===n&&"inset-y-0 right-0 flex h-full w-[346px] flex-col sm:w-[435px]",e),...r,children:["bottom"===n&&q.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]})));rj.displayName="DrawerContent";const oj=k.forwardRef((({className:e,...t},n)=>q.jsx(Sd.Title,{ref:n,className:we("text-lg font-semibold leading-none tracking-tight",e),...t})));oj.displayName=Sd.Title.displayName;const ij=k.forwardRef((({className:e,...t},n)=>q.jsx(Sd.Description,{ref:n,className:we("text-sm text-muted-foreground",e),...t})));function Q$(e){const t=e+"CollectionProvider",[n,r]=ai(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",u=e+"CollectionItemSlot",s="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=He.useRef(null),i=He.useRef(new Map).current;return He.createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},Slot:He.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=Ht(t,i(a,n).collectionRef);return He.createElement(Kf,{ref:o},r)})),ItemSlot:He.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=He.useRef(null),l=Ht(t,a),c=i(u,n);return He.useEffect((()=>(c.itemMap.set(a,{ref:a,...o}),()=>{c.itemMap.delete(a)}))),He.createElement(Kf,{[s]:"",ref:l},r)}))},function(t){const n=i(e+"CollectionConsumer",t);return He.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${s}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}ij.displayName=Sd.Description.displayName;const aj=hu(void 0);function Y$(e){const t=op(aj);return e||t||"ltr"}const sj=["top","right","bottom","left"],gd=Math.min,ta=Math.max,Xg=Math.round,kg=Math.floor,yd=e=>({x:e,y:e}),uj={left:"right",right:"left",bottom:"top",top:"bottom"},lj={start:"end",end:"start"};function SS(e,t,n){return ta(e,gd(t,n))}function Pl(e,t){return"function"==typeof e?e(t):e}function Rl(e){return e.split("-")[0]}function Qh(e){return e.split("-")[1]}function X$(e){return"x"===e?"y":"x"}function J$(e){return"y"===e?"height":"width"}function wd(e){return["top","bottom"].includes(Rl(e))?"y":"x"}function Z$(e){return X$(wd(e))}function cj(e,t,n){void 0===n&&(n=!1);const r=Qh(e),o=Z$(e),i=J$(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Jg(a)),[a,Jg(a)]}function dj(e){const t=Jg(e);return[$S(e),t,$S(t)]}function $S(e){return e.replace(/start|end/g,(e=>lj[e]))}function fj(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function pj(e,t,n,r){const o=Qh(e);let i=fj(Rl(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map($S)))),i}function Jg(e){return e.replace(/left|right|bottom|top/g,(e=>uj[e]))}function hj(e){return{top:0,right:0,bottom:0,left:0,...e}}function mN(e){return"number"!=typeof e?hj(e):{top:e,right:e,bottom:e,left:e}}function Zg(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function dT(e,t,n){let{reference:r,floating:o}=e;const i=wd(t),a=Z$(t),u=J$(a),s=Rl(t),l="y"===i,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[u]/2-o[u]/2;let p;switch(s){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Qh(t)){case"start":p[a]-=f*(n&&l?-1:1);break;case"end":p[a]+=f*(n&&l?-1:1)}return p}const mj=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,u=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=dT(l,r,s),f=r,p={},m=0;for(let n=0;n<u.length;n++){const{name:i,fn:h}=u[n],{x:v,y:g,data:y,reset:b}=await h({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:l,platform:a,elements:{reference:e,floating:t}});c=v??c,d=g??d,p={...p,[i]:{...p[i],...y}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(l=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:d}=dT(l,f,s))),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function bv(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:u,strategy:s}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Pl(t,e),m=mN(p),h=u[f?"floating"===d?"reference":"floating":d],v=Zg(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(u.floating)),boundary:l,rootBoundary:c,strategy:s})),g="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(u.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=Zg(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:g,offsetParent:y,strategy:s}):g);return{top:(v.top-w.top+m.top)/b.y,bottom:(w.bottom-v.bottom+m.bottom)/b.y,left:(v.left-w.left+m.left)/b.x,right:(w.right-v.right+m.right)/b.x}}const vj=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:u,middlewareData:s}=t,{element:l,padding:c=0}=Pl(e,t)||{};if(null==l)return{};const d=mN(c),f={x:n,y:r},p=Z$(o),m=J$(p),h=await a.getDimensions(l),v="y"===p,g=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-f[p]-i.floating[m],x=f[p]-i.reference[p],_=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let k=_?_[b]:0;(!k||!await(null==a.isElement?void 0:a.isElement(_)))&&(k=u.floating[b]||i.floating[m]);const S=w/2-x/2,A=k/2-h[m]/2-1,E=gd(d[g],A),I=gd(d[y],A),C=E,P=k-h[m]-I,q=k/2-h[m]/2+S,O=SS(C,q,P),T=!s.arrow&&null!=Qh(o)&&q!==O&&i.reference[m]/2-(q<C?E:I)-h[m]/2<0,N=T?q<C?q-C:q-P:0;return{[p]:f[p]+N,data:{[p]:O,centerOffset:q-O-N,...T&&{alignmentOffset:N}},reset:T}}}),gj=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:u,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=Pl(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const g=Rl(o),y=wd(u),b=Rl(u)===u,w=await(null==s.isRTL?void 0:s.isRTL(l.floating)),x=f||(b||!h?[Jg(u)]:dj(u)),_="none"!==m;!f&&_&&x.push(...pj(u,h,m,w));const k=[u,...x],S=await bv(t,v),A=[];let E=(null==(r=i.flip)?void 0:r.overflows)||[];if(c&&A.push(S[g]),d){const e=cj(o,a,w);A.push(S[e[0]],S[e[1]])}if(E=[...E,{placement:o,overflows:A}],!A.every((e=>e<=0))){var I,C;const e=((null==(I=i.flip)?void 0:I.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:E},reset:{placement:t}};let n=null==(C=E.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(p){case"bestFit":{var P;const e=null==(P=E.filter((e=>{if(_){const t=wd(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=u}if(o!==n)return{reset:{placement:n}}}return{}}}};function fT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function pT(e){return sj.some((t=>e[t]>=0))}const yj=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Pl(e,t);switch(r){case"referenceHidden":{const e=fT(await bv(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:pT(e)}}}case"escaped":{const e=fT(await bv(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:pT(e)}}}default:return{}}}}};async function wj(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Rl(n),u=Qh(n),s="y"===wd(n),l=["left","top"].includes(a)?-1:1,c=i&&s?-1:1,d=Pl(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return u&&"number"==typeof m&&(p="end"===u?-1*m:m),s?{x:p*c,y:f*l}:{x:f*l,y:p*c}}const _j=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:u}=t,s=await wj(t,e);return a===(null==(n=u.offset)?void 0:n.placement)&&null!=(r=u.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},bj=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=Pl(e,t),l={x:n,y:r},c=await bv(t,s),d=wd(Rl(o)),f=X$(d);let p=l[f],m=l[d];if(i){const e="y"===f?"bottom":"right";p=SS(p+c["y"===f?"top":"left"],p,p-c[e])}if(a){const e="y"===d?"bottom":"right";m=SS(m+c["y"===d?"top":"left"],m,m-c[e])}const h=u.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:a}}}}}},xj=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:u=0,mainAxis:s=!0,crossAxis:l=!0}=Pl(e,t),c={x:n,y:r},d=wd(o),f=X$(d);let p=c[f],m=c[d];const h=Pl(u,t),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+v.mainAxis,n=i.reference[f]+i.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var g,y;const e="y"===f?"width":"height",t=["top","left"].includes(Rl(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?v.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Sj=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:u}=t,{apply:s=()=>{},...l}=Pl(e,t),c=await bv(t,l),d=Rl(o),f=Qh(o),p="y"===wd(o),{width:m,height:h}=i.floating;let v,g;"top"===d||"bottom"===d?(v=d,g=f===(await(null==a.isRTL?void 0:a.isRTL(u.floating))?"start":"end")?"left":"right"):(g=d,v="end"===f?"top":"bottom");const y=h-c.top-c.bottom,b=m-c.left-c.right,w=gd(h-c[v],y),x=gd(m-c[g],b),_=!t.middlewareData.shift;let k=w,S=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=y),_&&!f){const e=ta(c.left,0),t=ta(c.right,0),n=ta(c.top,0),r=ta(c.bottom,0);p?S=m-2*(0!==e||0!==t?e+t:ta(c.left,c.right)):k=h-2*(0!==n||0!==r?n+r:ta(c.top,c.bottom))}await s({...t,availableWidth:S,availableHeight:k});const A=await a.getDimensions(u.floating);return m!==A.width||h!==A.height?{reset:{rects:!0}}:{}}}};function My(){return typeof window<"u"}function _d(e){return vN(e)?(e.nodeName||"").toLowerCase():"#document"}function ra(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function kl(e){var t;return null==(t=(vN(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function vN(e){return!!My()&&(e instanceof Node||e instanceof ra(e).Node)}function vu(e){return!!My()&&(e instanceof Element||e instanceof ra(e).Element)}function gu(e){return!!My()&&(e instanceof HTMLElement||e instanceof ra(e).HTMLElement)}function hT(e){return!(!My()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof ra(e).ShadowRoot)}function jv(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ba(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function $j(e){return["table","td","th"].includes(_d(e))}function Cj(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch{return!1}}))}function eC(e){const t=tC(),n=vu(e)?Ba(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function gN(e){let t=Vh(e);for(;gu(t)&&!Ly(t);){if(eC(t))return t;if(Cj(t))return null;t=Vh(t)}return null}function tC(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ly(e){return["html","body","#document"].includes(_d(e))}function Ba(e){return ra(e).getComputedStyle(e)}function Fy(e){return vu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vh(e){if("html"===_d(e))return e;const t=e.assignedSlot||e.parentNode||hT(e)&&e.host||kl(e);return hT(t)?t.host:t}function yN(e){const t=Vh(e);return Ly(t)?e.ownerDocument?e.ownerDocument.body:e.body:gu(t)&&jv(t)?t:yN(t)}function xv(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=yN(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=ra(o);if(i){const e=Ij(a);return t.concat(a,a.visualViewport||[],jv(o)?o:[],e&&n?xv(e):[])}return t.concat(o,xv(o,[],n))}function Ij(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wN(e){const t=Ba(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=gu(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,u=Xg(n)!==i||Xg(r)!==a;return u&&(n=i,r=a),{width:n,height:r,$:u}}function nC(e){return vu(e)?e:e.contextElement}function Lh(e){const t=nC(e);if(!gu(t))return yd(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=wN(t);let a=(i?Xg(n.width):n.width)/r,u=(i?Xg(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!u||!Number.isFinite(u))&&(u=1),{x:a,y:u}}const Ej=yd(0);function _N(e){const t=ra(e);return tC()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ej}function Pj(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ra(e))&&t}function ep(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=nC(e);let a=yd(1);t&&(r?vu(r)&&(a=Lh(r)):a=Lh(e));const u=Pj(i,n,r)?_N(i):yd(0);let s=(o.left+u.x)/a.x,l=(o.top+u.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=ra(i),t=r&&vu(r)?ra(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Lh(n),t=n.getBoundingClientRect(),r=Ba(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,l*=e.y,c*=e.x,d*=e.y,s+=o,l+=i,n=ra(n).frameElement}}return Zg({width:c,height:d,x:s,y:l})}const Rj=[":popover-open",":modal"];function bN(e){let t=!1,n=0,r=0;if(Rj.forEach((n=>{!function(n){try{t=t||e.matches(n)}catch{}}(n)})),t){const t=gN(e);if(t){const e=t.getBoundingClientRect();n=e.x,r=e.y}}return[t,n,r]}function Tj(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=kl(r),[a]=t?bN(t.floating):[!1];if(r===i||a)return n;let u={scrollLeft:0,scrollTop:0},s=yd(1);const l=yd(0),c=gu(r);if((c||!c&&"fixed"!==o)&&(("body"!==_d(r)||jv(i))&&(u=Fy(r)),gu(r))){const e=ep(r);s=Lh(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+l.x,y:n.y*s.y-u.scrollTop*s.y+l.y}}function Oj(e){return Array.from(e.getClientRects())}function xN(e){return ep(kl(e)).left+Fy(e).scrollLeft}function Aj(e){const t=kl(e),n=Fy(e),r=e.ownerDocument.body,o=ta(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ta(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+xN(e);const u=-n.scrollTop;return"rtl"===Ba(r).direction&&(a+=ta(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:u}}function Dj(e,t){const n=ra(e),r=kl(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,u=0,s=0;if(o){i=o.width,a=o.height;const e=tC();(!e||e&&"fixed"===t)&&(u=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:u,y:s}}function Nj(e,t){const n=ep(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=gu(e)?Lh(e):yd(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}function mT(e,t,n){let r;if("viewport"===t)r=Dj(e,n);else if("document"===t)r=Aj(kl(e));else if(vu(t))r=Nj(t,n);else{const n=_N(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Zg(r)}function SN(e,t){const n=Vh(e);return!(n===t||!vu(n)||Ly(n))&&("fixed"===Ba(n).position||SN(n,t))}function kj(e,t){const n=t.get(e);if(n)return n;let r=xv(e,[],!1).filter((e=>vu(e)&&"body"!==_d(e))),o=null;const i="fixed"===Ba(e).position;let a=i?Vh(e):e;for(;vu(a)&&!Ly(a);){const t=Ba(a),n=eC(a);!n&&"fixed"===t.position&&(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||jv(a)&&!n&&SN(e,a))?r=r.filter((e=>e!==a)):o=t,a=Vh(a)}return t.set(e,r),r}function Mj(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?kj(t,this._c):[].concat(n),r],a=i[0],u=i.reduce(((e,n)=>{const r=mT(t,n,o);return e.top=ta(r.top,e.top),e.right=gd(r.right,e.right),e.bottom=gd(r.bottom,e.bottom),e.left=ta(r.left,e.left),e}),mT(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Lj(e){const{width:t,height:n}=wN(e);return{width:t,height:n}}function Fj(e,t,n,r){const o=gu(t),i=kl(t),a="fixed"===n,u=ep(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=yd(0);if(o||!o&&!a)if(("body"!==_d(t)||jv(i))&&(s=Fy(t)),o){const e=ep(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=xN(i));let c=u.left+s.scrollLeft-l.x,d=u.top+s.scrollTop-l.y;const[f,p,m]=bN(r);return f&&(c+=p,d+=m,o&&(c+=t.clientLeft,d+=t.clientTop)),{x:c,y:d,width:u.width,height:u.height}}function vT(e,t){return gu(e)&&"fixed"!==Ba(e).position?t?t(e):e.offsetParent:null}function $N(e,t){const n=ra(e);if(!gu(e))return n;let r=vT(e,t);for(;r&&$j(r)&&"static"===Ba(r).position;)r=vT(r,t);return r&&("html"===_d(r)||"body"===_d(r)&&"static"===Ba(r).position&&!eC(r))?n:r||gN(e)||n}const Bj=async function(e){const t=this.getOffsetParent||$N,n=this.getDimensions;return{reference:Fj(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}};function jj(e){return"rtl"===Ba(e).direction}const Vj={convertOffsetParentRelativeRectToViewportRelativeRect:Tj,getDocumentElement:kl,getClippingRect:Mj,getOffsetParent:$N,getElementRects:Bj,getClientRects:Oj,getDimensions:Lj,getScale:Lh,isElement:vu,isRTL:jj};function Uj(e,t){let n,r=null;const o=kl(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(u,s){void 0===u&&(u=!1),void 0===s&&(s=1),i();const{left:l,top:c,width:d,height:f}=e.getBoundingClientRect();if(u||t(),!d||!f)return;const p={rootMargin:-kg(c)+"px "+-kg(o.clientWidth-(l+d))+"px "+-kg(o.clientHeight-(c+f))+"px "+-kg(l)+"px",threshold:ta(0,gd(1,s))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}m=!1}try{r=new IntersectionObserver(h,{...p,root:o.ownerDocument})}catch{r=new IntersectionObserver(h,p)}r.observe(e)}(!0),i}function zj(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,l=nC(e),c=o||i?[...l?xv(l):[],...xv(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=l&&u?Uj(l,n):null;let f=-1,p=null;a&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),l&&!s&&p.observe(l),p.observe(t));let m,h=s?ep(e):null;return s&&function t(){const r=ep(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,m=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=p)||e.disconnect(),p=null,s&&cancelAnimationFrame(m)}}const Wj=bj,qj=gj,Gj=Sj,Hj=yj,gT=vj,Kj=xj,Qj=(e,t,n)=>{const r=new Map,o={platform:Vj,...n},i={...o.platform,_c:r};return mj(e,t,{...o,platform:i})};var qg=typeof document<"u"?ip:Ze;function ey(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!ey(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||ey(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function CN(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yT(e,t){const n=CN(e);return Math.round(t*n)/n}function ux(e){const t=k.useRef(e);return qg((()=>{t.current=e})),t}function Yj(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:u=!0,whileElementsMounted:s,open:l}=e,[c,d]=k.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=k.useState(r);ey(f,r)||p(r);const[m,h]=k.useState(null),[v,g]=k.useState(null),y=k.useCallback((e=>{e!==_.current&&(_.current=e,h(e))}),[]),b=k.useCallback((e=>{e!==S.current&&(S.current=e,g(e))}),[]),w=i||m,x=a||v,_=k.useRef(null),S=k.useRef(null),A=k.useRef(c),E=null!=s,I=ux(s),C=ux(o),P=ux(l),q=k.useCallback((()=>{if(!_.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};C.current&&(e.platform=C.current),Qj(_.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};O.current&&!ey(A.current,t)&&(A.current=t,_u.flushSync((()=>{d(t)})))}))}),[f,t,n,C,P]);qg((()=>{!1===l&&A.current.isPositioned&&(A.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[l]);const O=k.useRef(!1);qg((()=>(O.current=!0,()=>{O.current=!1})),[]),qg((()=>{if(w&&(_.current=w),x&&(S.current=x),w&&x){if(I.current)return I.current(w,x,q);q()}}),[w,x,q,I,E]);const T=k.useMemo((()=>({reference:_,floating:S,setReference:y,setFloating:b})),[y,b]),N=k.useMemo((()=>({reference:w,floating:x})),[w,x]),R=k.useMemo((()=>{const e={position:n,left:0,top:0};if(!N.floating)return e;const t=yT(N.floating,c.x),r=yT(N.floating,c.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...CN(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,u,N.floating,c.x,c.y]);return k.useMemo((()=>({...c,update:q,refs:T,elements:N,floatingStyles:R})),[c,q,T,N,R])}const Xj=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?gT({element:n.current,padding:r}).fn(t):{}:n?gT({element:n,padding:r}).fn(t):{}}}),Jj=(e,t)=>({..._j(e),options:[e,t]}),Zj=(e,t)=>({...Wj(e),options:[e,t]}),eV=(e,t)=>({...Kj(e),options:[e,t]}),tV=(e,t)=>({...qj(e),options:[e,t]}),nV=(e,t)=>({...Gj(e),options:[e,t]}),rV=(e,t)=>({...Hj(e),options:[e,t]}),oV=(e,t)=>({...Xj(e),options:[e,t]}),iV=Le(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return oe(ht.svg,Ee({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:oe("polygon",{points:"0,0 30,0 15,10"}))})),aV=iV,IN="Popper",[EN,Yh]=ai(IN),[sV,PN]=EN(IN),uV=e=>{const{__scopePopper:t,children:n}=e,[r,o]=ut(null);return oe(sV,{scope:t,anchor:r,onAnchorChange:o},n)},lV="PopperAnchor",cV=Le(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=PN(lV,n),a=We(null),u=Ht(t,a);return Ze((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:oe(ht.div,Ee({},o,{ref:u}))})),RN="PopperContent",[dV,fV]=EN(RN),pV=Le(((e,t)=>{var n,r,o,i,a,u,s,l;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:v=!0,collisionBoundary:g=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:w=!1,updatePositionStrategy:x="optimized",onPlaced:_,...k}=e,S=PN(RN,c),[A,E]=ut(null),I=Ht(t,(e=>E(e))),[C,P]=ut(null),q=Ay(C),O=null!==(n=null==q?void 0:q.width)&&void 0!==n?n:0,T=null!==(r=null==q?void 0:q.height)&&void 0!==r?r:0,N=d+("center"!==p?"-"+p:""),R="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},D=Array.isArray(g)?g:[g],j=D.length>0,L={padding:R,boundary:D.filter(gV),altBoundary:j},{refs:M,floatingStyles:$,placement:B,isPositioned:F,middlewareData:z}=Yj({strategy:"fixed",placement:N,whileElementsMounted:(...e)=>zj(...e,{animationFrame:"always"===x}),elements:{reference:S.anchor},middleware:[Jj({mainAxis:f+T,alignmentAxis:m}),v&&Zj({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?eV():void 0,...L}),v&&tV({...L}),nV({...L,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),C&&oV({element:C,padding:h}),yV({arrowWidth:O,arrowHeight:T}),w&&rV({strategy:"referenceHidden",...L})]}),[V,U]=TN(B),W=bs(_);Go((()=>{F&&(null==W||W())}),[F,W]);const H=null===(o=z.arrow)||void 0===o?void 0:o.x,G=null===(i=z.arrow)||void 0===i?void 0:i.y,K=0!==(null===(a=z.arrow)||void 0===a?void 0:a.centerOffset),[Q,Y]=ut();return Go((()=>{A&&Y(window.getComputedStyle(A).zIndex)}),[A]),oe("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:F?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(u=z.transformOrigin)||void 0===u?void 0:u.x,null===(s=z.transformOrigin)||void 0===s?void 0:s.y].join(" ")},dir:e.dir},oe(dV,{scope:c,placedSide:V,onArrowChange:P,arrowX:H,arrowY:G,shouldHideArrow:K},oe(ht.div,Ee({"data-side":V,"data-align":U},k,{ref:I,style:{...k.style,animation:F?void 0:"none",opacity:null!==(l=z.hide)&&void 0!==l&&l.referenceHidden?0:void 0}}))))})),hV="PopperArrow",mV={top:"bottom",right:"left",bottom:"top",left:"right"},vV=Le((function(e,t){const{__scopePopper:n,...r}=e,o=fV(hV,n),i=mV[o.placedSide];return oe("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},oe(aV,Ee({},r,{ref:t,style:{...r.style,display:"block"}})))}));function gV(e){return null!==e}const yV=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:u,rects:s,middlewareData:l}=t,c=0!==(null===(n=l.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,m]=TN(u),h={start:"0%",center:"50%",end:"100%"}[m],v=(null!==(r=null===(o=l.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(i=null===(a=l.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=c?h:`${v}px`,b=-f+"px"):"top"===p?(y=c?h:`${v}px`,b=`${s.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?h:`${g}px`):"left"===p&&(y=`${s.floating.width+f}px`,b=c?h:`${g}px`),{data:{x:y,y:b}}}});function TN(e){const[t,n="center"]=e.split("-");return[t,n]}const ON=uV,rC=cV,oC=pV,wV=vV,lx="rovingFocusGroup.onEntryFocus",_V={bubbles:!1,cancelable:!0},iC="RovingFocusGroup",[CS,AN,bV]=Q$(iC),[xV,Xh]=ai(iC,[bV]),[SV,$V]=xV(iC),CV=Le(((e,t)=>oe(CS.Provider,{scope:e.__scopeRovingFocusGroup},oe(CS.Slot,{scope:e.__scopeRovingFocusGroup},oe(IV,Ee({},e,{ref:t})))))),IV=Le(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:s,onEntryFocus:l,...c}=e,d=We(null),f=Ht(t,d),p=Y$(i),[m=null,h]=vd({prop:a,defaultProp:u,onChange:s}),[v,g]=ut(!1),y=bs(l),b=AN(n),w=We(!1),[x,_]=ut(0);return Ze((()=>{const e=d.current;if(e)return e.addEventListener(lx,y),()=>e.removeEventListener(lx,y)}),[y]),oe(SV,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:m,onItemFocus:yt((e=>h(e)),[h]),onItemShiftTab:yt((()=>g(!0)),[]),onFocusableItemAdd:yt((()=>_((e=>e+1))),[]),onFocusableItemRemove:yt((()=>_((e=>e-1))),[])},oe(ht.div,Ee({tabIndex:v||0===x?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:ot(e.onMouseDown,(()=>{w.current=!0})),onFocus:ot(e.onFocus,(e=>{const t=!w.current;if(e.target===e.currentTarget&&t&&!v){const t=new CustomEvent(lx,_V);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=b().filter((e=>e.focusable));DN([e.find((e=>e.active)),e.find((e=>e.id===m)),...e].filter(Boolean).map((e=>e.ref.current)))}}w.current=!1})),onBlur:ot(e.onBlur,(()=>g(!1)))})))})),EV="RovingFocusGroupItem",PV=Le(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,u=pd(),s=i||u,l=$V(EV,n),c=l.currentTabStopId===s,d=AN(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=l;return Ze((()=>{if(r)return f(),()=>p()}),[r,f,p]),oe(CS.ItemSlot,{scope:n,id:s,focusable:r,active:o},oe(ht.span,Ee({tabIndex:c?0:-1,"data-orientation":l.orientation},a,{ref:t,onMouseDown:ot(e.onMouseDown,(e=>{r?l.onItemFocus(s):e.preventDefault()})),onFocus:ot(e.onFocus,(()=>l.onItemFocus(s))),onKeyDown:ot(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void l.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=OV(e,l.orientation,l.dir);if(void 0!==t){e.preventDefault();let n=d().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();const r=n.indexOf(e.currentTarget);n=l.loop?AV(n,r+1):n.slice(r+1)}setTimeout((()=>DN(n)))}}))})))})),RV={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function TV(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function OV(e,t,n){const r=TV(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return RV[r]}function DN(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function AV(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}const aC=CV,sC=PV,IS=["Enter"," "],DV=["ArrowDown","PageUp","Home"],NN=["ArrowUp","PageDown","End"],NV=[...DV,...NN],kV={ltr:[...IS,"ArrowRight"],rtl:[...IS,"ArrowLeft"]},MV={ltr:["ArrowLeft"],rtl:["ArrowRight"]},By="Menu",[Sv,LV,FV]=Q$(By),[dp,kN]=ai(By,[FV,Yh,Xh]),MN=Yh(),LN=Xh(),[qX,fp]=dp(By),[GX,Vv]=dp(By),BV=Le(((e,t)=>{const{__scopeMenu:n,...r}=e,o=MN(n);return oe(rC,Ee({},o,r,{ref:t}))})),FN="MenuPortal",[jV,BN]=dp(FN,{forceMount:void 0}),VV=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=fp(FN,t);return oe(jV,{scope:t,forceMount:n},oe(ia,{present:n||i.open},oe(my,{asChild:!0,container:o},r)))},_s="MenuContent",[UV,uC]=dp(_s),zV=Le(((e,t)=>{const n=BN(_s,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=fp(_s,e.__scopeMenu),a=Vv(_s,e.__scopeMenu);return oe(Sv.Provider,{scope:e.__scopeMenu},oe(ia,{present:r||i.open},oe(Sv.Slot,{scope:e.__scopeMenu},a.modal?oe(WV,Ee({},o,{ref:t})):oe(qV,Ee({},o,{ref:t})))))})),WV=Le(((e,t)=>{const n=fp(_s,e.__scopeMenu),r=We(null),o=Ht(t,r);return Ze((()=>{const e=r.current;if(e)return yy(e)}),[]),oe(lC,Ee({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:ot(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),qV=Le(((e,t)=>{const n=fp(_s,e.__scopeMenu);return oe(lC,Ee({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),lC=Le(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:u,onEntryFocus:s,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,v=fp(_s,n),g=Vv(_s,n),y=MN(n),b=LN(n),w=LV(n),[x,_]=ut(null),k=We(null),S=Ht(t,k,v.onContentChange),A=We(0),E=We(""),I=We(0),C=We(null),P=We("right"),q=We(0),O=m?gy:ap,T=m?{as:Kf,allowPinchZoom:!0}:void 0;Ze((()=>()=>window.clearTimeout(A.current)),[]),f$();const N=yt((e=>{var t,n;return P.current===(null===(t=C.current)||void 0===t?void 0:t.side)&&lU(e,null===(n=C.current)||void 0===n?void 0:n.area)}),[]);return oe(UV,{scope:n,searchRef:E,onItemEnter:yt((e=>{N(e)&&e.preventDefault()}),[N]),onItemLeave:yt((e=>{var t;N(e)||(null===(t=k.current)||void 0===t||t.focus(),_(null))}),[N]),onTriggerLeave:yt((e=>{N(e)&&e.preventDefault()}),[N]),pointerGraceTimerRef:I,onPointerGraceIntentChange:yt((e=>{C.current=e}),[])},oe(O,T,oe(d$,{asChild:!0,trapped:o,onMountAutoFocus:ot(i,(e=>{var t;e.preventDefault(),null===(t=k.current)||void 0===t||t.focus()})),onUnmountAutoFocus:a},oe(hy,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p},oe(aC,Ee({asChild:!0},b,{dir:g.dir,orientation:"vertical",loop:r,currentTabStopId:x,onCurrentTabStopIdChange:_,onEntryFocus:ot(s,(e=>{g.isUsingKeyboardRef.current||e.preventDefault()}))}),oe(oC,Ee({role:"menu","aria-orientation":"vertical","data-state":WN(v.open),"data-radix-menu-content":"",dir:g.dir},y,h,{ref:S,style:{outline:"none",...h.style},onKeyDown:ot(h.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;const r=E.current+e,o=w().filter((e=>!e.disabled)),i=document.activeElement,a=null===(t=o.find((e=>e.ref.current===i)))||void 0===t?void 0:t.textValue,u=sU(o.map((e=>e.textValue)),r,a),s=null===(n=o.find((e=>e.textValue===u)))||void 0===n?void 0:n.ref.current;(function e(t){E.current=t,window.clearTimeout(A.current),""!==t&&(A.current=window.setTimeout((()=>e("")),1e3))})(r),s&&setTimeout((()=>s.focus()))})(e.key));const o=k.current;if(e.target!==o||!NV.includes(e.key))return;e.preventDefault();const i=w().filter((e=>!e.disabled)).map((e=>e.ref.current));NN.includes(e.key)&&i.reverse(),iU(i)})),onBlur:ot(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(A.current),E.current="")})),onPointerMove:ot(e.onPointerMove,$v((e=>{const t=e.target,n=q.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>q.current?"right":"left";P.current=t,q.current=e.clientX}})))})))))))})),GV=Le(((e,t)=>{const{__scopeMenu:n,...r}=e;return oe(ht.div,Ee({},r,{ref:t}))})),ES="MenuItem",wT="menu.itemSelect",cC=Le(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=We(null),a=Vv(ES,e.__scopeMenu),u=uC(ES,e.__scopeMenu),s=Ht(t,i),l=We(!1);return oe(jN,Ee({},o,{ref:s,disabled:n,onClick:ot(e.onClick,(()=>{const e=i.current;if(!n&&e){const t=new CustomEvent(wT,{bubbles:!0,cancelable:!0});e.addEventListener(wT,(e=>null==r?void 0:r(e)),{once:!0}),jA(e,t),t.defaultPrevented?l.current=!1:a.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),l.current=!0},onPointerUp:ot(e.onPointerUp,(e=>{var t;l.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:ot(e.onKeyDown,(e=>{const t=""!==u.searchRef.current;n||t&&" "===e.key||IS.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),jN=Le(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=uC(ES,n),u=LN(n),s=We(null),l=Ht(t,s),[c,d]=ut(!1),[f,p]=ut("");return Ze((()=>{const e=s.current;var t;e&&p((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[i.children]),oe(Sv.ItemSlot,{scope:n,disabled:r,textValue:o??f},oe(sC,Ee({asChild:!0},u,{focusable:!r}),oe(ht.div,Ee({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},i,{ref:l,onPointerMove:ot(e.onPointerMove,$v((e=>{r?a.onItemLeave(e):(a.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())}))),onPointerLeave:ot(e.onPointerLeave,$v((e=>a.onItemLeave(e)))),onFocus:ot(e.onFocus,(()=>d(!0))),onBlur:ot(e.onBlur,(()=>d(!1)))}))))})),HV=Le(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return oe(UN,{scope:e.__scopeMenu,checked:n},oe(cC,Ee({role:"menuitemcheckbox","aria-checked":ty(n)?"mixed":n},o,{ref:t,"data-state":dC(n),onSelect:ot(o.onSelect,(()=>null==r?void 0:r(!!ty(n)||!n)),{checkForDefaultPrevented:!1})})))})),KV="MenuRadioGroup",[HX,QV]=dp(KV,{value:void 0,onValueChange:()=>{}}),YV="MenuRadioItem",XV=Le(((e,t)=>{const{value:n,...r}=e,o=QV(YV,e.__scopeMenu),i=n===o.value;return oe(UN,{scope:e.__scopeMenu,checked:i},oe(cC,Ee({role:"menuitemradio","aria-checked":i},r,{ref:t,"data-state":dC(i),onSelect:ot(r.onSelect,(()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)}),{checkForDefaultPrevented:!1})})))})),VN="MenuItemIndicator",[UN,JV]=dp(VN,{checked:!1}),ZV=Le(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=JV(VN,n);return oe(ia,{present:r||ty(i.checked)||!0===i.checked},oe(ht.span,Ee({},o,{ref:t,"data-state":dC(i.checked)})))})),eU=Le(((e,t)=>{const{__scopeMenu:n,...r}=e;return oe(ht.div,Ee({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),tU="MenuSub",[KX,zN]=dp(tU),Mg="MenuSubTrigger",nU=Le(((e,t)=>{const n=fp(Mg,e.__scopeMenu),r=Vv(Mg,e.__scopeMenu),o=zN(Mg,e.__scopeMenu),i=uC(Mg,e.__scopeMenu),a=We(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:s}=i,l={__scopeMenu:e.__scopeMenu},c=yt((()=>{a.current&&window.clearTimeout(a.current),a.current=null}),[]);return Ze((()=>c),[c]),Ze((()=>{const e=u.current;return()=>{window.clearTimeout(e),s(null)}}),[u,s]),oe(BV,Ee({asChild:!0},l),oe(jN,Ee({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":WN(n.open)},e,{ref:l$(t,o.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),!e.disabled&&!t.defaultPrevented&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:ot(e.onPointerMove,$v((t=>{i.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout((()=>{n.onOpenChange(!0),c()}),100))}))),onPointerLeave:ot(e.onPointerLeave,$v((e=>{var t;c();const r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var o;const t=null===(o=n.content)||void 0===o?void 0:o.dataset.side,a="right"===t,s=a?-5:5,l=r[a?"left":"right"],c=r[a?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+s,y:e.clientY},{x:l,y:r.top},{x:c,y:r.top},{x:c,y:r.bottom},{x:l,y:r.bottom}],side:t}),window.clearTimeout(u.current),u.current=window.setTimeout((()=>i.onPointerGraceIntentChange(null)),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}}))),onKeyDown:ot(e.onKeyDown,(t=>{const o=""!==i.searchRef.current;var a;e.disabled||o&&" "===t.key||!kV[r.dir].includes(t.key)||(n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault())}))})))})),rU="MenuSubContent",oU=Le(((e,t)=>{const n=BN(_s,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=fp(_s,e.__scopeMenu),a=Vv(_s,e.__scopeMenu),u=zN(rU,e.__scopeMenu),s=We(null),l=Ht(t,s);return oe(Sv.Provider,{scope:e.__scopeMenu},oe(ia,{present:r||i.open},oe(Sv.Slot,{scope:e.__scopeMenu},oe(lC,Ee({id:u.contentId,"aria-labelledby":u.triggerId},o,{ref:l,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;a.isUsingKeyboardRef.current&&(null===(t=s.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:ot(e.onFocusOutside,(e=>{e.target!==u.trigger&&i.onOpenChange(!1)})),onEscapeKeyDown:ot(e.onEscapeKeyDown,(e=>{a.onClose(),e.preventDefault()})),onKeyDown:ot(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=MV[a.dir].includes(e.key);var r;t&&n&&(i.onOpenChange(!1),null===(r=u.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))}));function WN(e){return e?"open":"closed"}function ty(e){return"indeterminate"===e}function dC(e){return ty(e)?"indeterminate":e?"checked":"unchecked"}function iU(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function aU(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}function sU(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let i=aU(e,Math.max(o,0));1===r.length&&(i=i.filter((e=>e!==n)));const a=i.find((e=>e.toLowerCase().startsWith(r.toLowerCase())));return a!==n?a:void 0}function uU(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,u=t[e].y,s=t[i].x,l=t[i].y;u>r!=l>r&&n<(s-a)*(r-u)/(l-u)+a&&(o=!o)}return o}function lU(e,t){if(!t)return!1;return uU({x:e.clientX,y:e.clientY},t)}function $v(e){return t=>"mouse"===t.pointerType?e(t):void 0}const cU=VV,dU=zV,fU=GV,pU=cC,hU=HV,mU=XV,vU=ZV,gU=eU,yU=nU,wU=oU,qN="DropdownMenu",[_U,QX]=ai(qN,[kN]),xu=kN(),[YX,bU]=_U(qN),xU=e=>{const{__scopeDropdownMenu:t,...n}=e,r=xu(t);return oe(cU,Ee({},r,n))},SU="DropdownMenuContent",$U=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bU(SU,n),i=xu(n),a=We(!1);return oe(dU,Ee({id:o.contentId,"aria-labelledby":o.triggerId},i,r,{ref:t,onCloseAutoFocus:ot(e.onCloseAutoFocus,(e=>{var t;a.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()})),onInteractOutside:ot(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!o.modal||r)&&(a.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),CU=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xu(n);return oe(fU,Ee({},o,r,{ref:t}))})),IU=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xu(n);return oe(pU,Ee({},o,r,{ref:t}))})),EU=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xu(n);return oe(hU,Ee({},o,r,{ref:t}))})),PU=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xu(n);return oe(mU,Ee({},o,r,{ref:t}))})),RU=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xu(n);return oe(vU,Ee({},o,r,{ref:t}))})),TU=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xu(n);return oe(gU,Ee({},o,r,{ref:t}))})),OU=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xu(n);return oe(yU,Ee({},o,r,{ref:t}))})),AU=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xu(n);return oe(wU,Ee({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),DU=xU,GN=$U,HN=CU,KN=IU,QN=EU,YN=PU,NU=RU,fC=TU,XN=OU,JN=AU,kU=k.forwardRef((({className:e,inset:t,children:n,...r},o)=>q.jsxs(XN,{ref:o,className:we("flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,q.jsx(EA,{className:"ml-auto h-4 w-4"})]})));kU.displayName=XN.displayName;const MU=k.forwardRef((({className:e,...t},n)=>q.jsx(JN,{ref:n,className:we("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})));MU.displayName=JN.displayName;const _T=e=>{e.preventDefault()},LU=k.forwardRef((({className:e,sideOffset:t=4,isPortal:n,...r},o)=>{const i=q.jsx(GN,{ref:o,sideOffset:t,onOpenAutoFocus:_T,onCloseAutoFocus:_T,className:we("z-[101] flex max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] flex-col gap-xxxs overflow-y-auto rounded-lg border border-gray-200 bg-white p-xxs text-popover-foreground ","shadow-[0px_0px_12px_0px_rgba(0,0,0,0.08)] ","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in data-[state=open]:slide-in-from-top-2","data-[state=closed]:fade-out data-[state=closed]:slide-out-to-top-2","data-[state=closed]:duration-150 data-[state=open]:duration-150","data-[state=closed]:[animation-timing-function:ease-in] data-[state=open]:[animation-timing-function:ease-out]",e),...r});return n?q.jsx(DU,{children:i}):i}));LU.displayName=GN.displayName;const FU=k.forwardRef((({className:e,inset:t,...n},r)=>q.jsx(KN,{ref:r,className:we("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs text-base font-medium text-gray-900 outline-none transition-colors hover:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-xl",e),...n})));FU.displayName=KN.displayName;const BU=k.forwardRef((({className:e,children:t,checked:n,checkboxPosition:r="right",...o},i)=>{const a=q.jsx(V$,{size:"default",variant:"default",checked:n});return q.jsxs(QN,{ref:i,className:we("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs text-base font-medium text-gray-900"," outline-none transition-colors hover:bg-gray-100 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,onSelect:e=>e.preventDefault(),...o,children:["left"===r&&a,q.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:t}),"right"===r&&a]})}));BU.displayName=QN.displayName;const jU=k.forwardRef((({className:e,children:t,radioPosition:n="right",...r},o)=>{const i=q.jsx("div",{className:"flex h-xxs items-center justify-center",children:q.jsx(NU,{children:q.jsx(a$,{size:20})})});return q.jsxs(YN,{ref:o,className:we("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs text-base font-medium text-gray-900"," outline-none transition-colors hover:bg-gray-100 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),onSelect:e=>e.preventDefault(),...r,children:["left"===n&&i,q.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:t}),"right"===n&&i]})}));jU.displayName=YN.displayName;const VU=k.forwardRef((({className:e,inset:t,...n},r)=>q.jsx(HN,{ref:r,className:we("text-sm font-semibold",t&&"pl-xl",e),...n})));VU.displayName=HN.displayName;const UU=k.forwardRef((({className:e,...t},n)=>q.jsx(fC,{ref:n,className:we("-mx-1 my-1 h-px bg-muted",e),...t})));UU.displayName=fC.displayName;const zU=Le(((e,t)=>oe(ht.label,Ee({},e,{ref:t,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}})))),ZN=zU,WU=wu("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ek=k.forwardRef((({className:e,...t},n)=>q.jsx(ZN,{ref:n,className:we(WU(),e),...t})));function bT(e,[t,n]){return Math.min(n,Math.max(t,e))}ek.displayName=ZN.displayName;const tk=Le(((e,t)=>oe(ht.span,Ee({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),qU=tk,GU=[" ","Enter","ArrowUp","ArrowDown"],HU=[" ","Enter"],jy="Select",[Vy,Uy,KU]=Q$(jy),[Jh,XX]=ai(jy,[KU,Yh]),pC=Yh(),[QU,pp]=Jh(jy),[YU,XU]=Jh(jy),JU=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:u,onValueChange:s,dir:l,name:c,autoComplete:d,disabled:f,required:p}=e,m=pC(t),[h,v]=ut(null),[g,y]=ut(null),[b,w]=ut(!1),x=Y$(l),[_=!1,k]=vd({prop:r,defaultProp:o,onChange:i}),[S,A]=vd({prop:a,defaultProp:u,onChange:s}),E=We(null),I=!h||!!h.closest("form"),[C,P]=ut(new Set),q=Array.from(C).map((e=>e.props.value)).join(";");return oe(ON,m,oe(QU,{required:p,scope:t,trigger:h,onTriggerChange:v,valueNode:g,onValueNodeChange:y,valueNodeHasChildren:b,onValueNodeHasChildrenChange:w,contentId:pd(),value:S,onValueChange:A,open:_,onOpenChange:k,dir:x,triggerPointerDownPosRef:E,disabled:f},oe(Vy.Provider,{scope:t},oe(YU,{scope:e.__scopeSelect,onNativeOptionAdd:yt((e=>{P((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:yt((e=>{P((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},n)),I?oe(ak,{key:q,"aria-hidden":!0,required:p,tabIndex:-1,name:c,autoComplete:d,value:S,onChange:e=>A(e.target.value),disabled:f},void 0===S?oe("option",{value:""}):null,Array.from(C)):null))},ZU="SelectTrigger",ez=Le(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=pC(n),a=pp(ZU,n),u=a.disabled||r,s=Ht(t,a.onTriggerChange),l=Uy(n),[c,d,f]=sk((e=>{const t=l().filter((e=>!e.disabled)),n=t.find((e=>e.value===a.value)),r=uk(t,e,n);void 0!==r&&a.onValueChange(r.value)})),p=()=>{u||(a.onOpenChange(!0),f())};return oe(rC,Ee({asChild:!0},i),oe(ht.button,Ee({type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":ik(a.value)?"":void 0},o,{ref:s,onClick:ot(o.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:ot(o.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(p(),a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:ot(o.onKeyDown,(e=>{const t=""!==c.current;!(e.ctrlKey||e.altKey||e.metaKey)&&1===e.key.length&&d(e.key),(!t||" "!==e.key)&&GU.includes(e.key)&&(p(),e.preventDefault())}))})))})),tz="SelectValue",nz=Le(((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:a="",...u}=e,s=pp(tz,n),{onValueNodeHasChildrenChange:l}=s,c=void 0!==i,d=Ht(t,s.onValueNodeChange);return Go((()=>{l(c)}),[l,c]),oe(ht.span,Ee({},u,{ref:d,style:{pointerEvents:"none"}}),ik(s.value)?oe(ap,null,a):i)})),rz=Le(((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return oe(ht.span,Ee({"aria-hidden":!0},o,{ref:t}),r||"▼")})),oz=e=>oe(my,Ee({asChild:!0},e)),Uh="SelectContent",iz=Le(((e,t)=>{const n=pp(Uh,e.__scopeSelect),[r,o]=ut();if(Go((()=>{o(new DocumentFragment)}),[]),!n.open){const t=r;return t?_u.createPortal(oe(nk,{scope:e.__scopeSelect},oe(Vy.Slot,{scope:e.__scopeSelect},oe("div",null,e.children))),t):null}return oe(az,Ee({},e,{ref:t}))})),Sl=10,[nk,hp]=Jh(Uh),az=Le(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:u,sideOffset:s,align:l,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:v,...g}=e,y=pp(Uh,n),[b,w]=ut(null),[x,_]=ut(null),k=Ht(t,(e=>w(e))),[S,A]=ut(null),[E,I]=ut(null),C=Uy(n),[P,q]=ut(!1),O=We(!1);Ze((()=>{if(b)return yy(b)}),[b]),f$();const T=yt((e=>{const[t,...n]=C().map((e=>e.ref.current)),[r]=n.slice(-1),o=document.activeElement;for(const n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&x&&(x.scrollTop=0),n===r&&x&&(x.scrollTop=x.scrollHeight),null==n||n.focus(),document.activeElement!==o))return}),[C,x]),N=yt((()=>T([S,b])),[T,S,b]);Ze((()=>{P&&N()}),[P,N]);const{onOpenChange:R,triggerPointerDownPosRef:D}=y;Ze((()=>{if(b){let e={x:0,y:0};const t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=D.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(i=D.current)||void 0===i?void 0:i.y)&&void 0!==o?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():b.contains(n.target)||R(!1),document.removeEventListener("pointermove",t),D.current=null};return null!==D.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[b,R,D]),Ze((()=>{const e=()=>R(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[R]);const[j,L]=sk((e=>{const t=C().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=uk(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),M=yt(((e,t,n)=>{const r=!O.current&&!n;(void 0!==y.value&&y.value===t||r)&&(A(e),r&&(O.current=!0))}),[y.value]),$=yt((()=>null==b?void 0:b.focus()),[b]),B=yt(((e,t,n)=>{const r=!O.current&&!n;(void 0!==y.value&&y.value===t||r)&&I(e)}),[y.value]),F="popper"===r?xT:sz,z=F===xT?{side:u,sideOffset:s,align:l,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:v}:{};return oe(nk,{scope:n,content:b,viewport:x,onViewportChange:_,itemRefCallback:M,selectedItem:S,onItemLeave:$,itemTextRefCallback:B,focusSelectedItem:N,selectedItemText:E,position:r,isPositioned:P,searchRef:j},oe(gy,{as:Kf,allowPinchZoom:!0},oe(d$,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:ot(o,(e=>{var t;null===(t=y.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},oe(hy,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1)},oe(F,Ee({role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:e=>e.preventDefault()},g,z,{onPlaced:()=>q(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:ot(g.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),!t&&1===e.key.length&&L(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=C().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>T(t))),e.preventDefault()}}))}))))))})),sz=Le(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=pp(Uh,n),a=hp(Uh,n),[u,s]=ut(null),[l,c]=ut(null),d=Ht(t,(e=>c(e))),f=Uy(n),p=We(!1),m=We(!0),{viewport:h,selectedItem:v,selectedItemText:g,focusSelectedItem:y}=a,b=yt((()=>{if(i.trigger&&i.valueNode&&u&&l&&h&&v&&g){const e=i.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),o=g.getBoundingClientRect();if("rtl"!==i.dir){const r=o.left-t.left,i=n.left-r,a=e.left-i,s=e.width+a,l=Math.max(s,t.width),c=window.innerWidth-Sl,d=bT(i,[Sl,c-l]);u.style.minWidth=s+"px",u.style.left=d+"px"}else{const r=t.right-o.right,i=window.innerWidth-n.right-r,a=window.innerWidth-e.right-i,s=e.width+a,l=Math.max(s,t.width),c=window.innerWidth-Sl,d=bT(i,[Sl,c-l]);u.style.minWidth=s+"px",u.style.right=d+"px"}const a=f(),s=window.innerHeight-2*Sl,c=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),y=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),w=m+y+c+parseInt(d.paddingBottom,10)+b,x=Math.min(5*v.offsetHeight,w),_=window.getComputedStyle(h),k=parseInt(_.paddingTop,10),S=parseInt(_.paddingBottom,10),A=e.top+e.height/2-Sl,E=s-A,I=v.offsetHeight/2,C=m+y+(v.offsetTop+I),P=w-C;if(C<=A){const e=v===a[a.length-1].ref.current;u.style.bottom="0px";const t=l.clientHeight-h.offsetTop-h.offsetHeight,n=C+Math.max(E,I+(e?S:0)+t+b);u.style.height=n+"px"}else{const e=v===a[0].ref.current;u.style.top="0px";const t=Math.max(A,m+h.offsetTop+(e?k:0)+I)+P;u.style.height=t+"px",h.scrollTop=C-A+h.offsetTop}u.style.margin=`${Sl}px 0`,u.style.minHeight=x+"px",u.style.maxHeight=s+"px",null==r||r(),requestAnimationFrame((()=>p.current=!0))}}),[f,i.trigger,i.valueNode,u,l,h,v,g,i.dir,r]);Go((()=>b()),[b]);const[w,x]=ut();Go((()=>{l&&x(window.getComputedStyle(l).zIndex)}),[l]);const _=yt((e=>{e&&!0===m.current&&(b(),null==y||y(),m.current=!1)}),[b,y]);return oe(uz,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:p,onScrollButtonChange:_},oe("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w}},oe(ht.div,Ee({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))})),xT=Le(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Sl,...i}=e,a=pC(n);return oe(oC,Ee({},a,i,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))})),[uz,hC]=Jh(Uh,{}),ST="SelectViewport",lz=Le(((e,t)=>{const{__scopeSelect:n,...r}=e,o=hp(ST,n),i=hC(ST,n),a=Ht(t,o.onViewportChange),u=We(0);return oe(ap,null,oe("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),oe(Vy.Slot,{scope:n},oe(ht.div,Ee({"data-radix-select-viewport":"",role:"presentation"},r,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:ot(r.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if(null!=r&&r.current&&n){const e=Math.abs(u.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*Sl,o=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),a=Math.max(o,i);if(a<r){const o=a+e,i=Math.min(r,o),u=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=u>0?u:0,n.style.justifyContent="flex-end")}}}u.current=t.scrollTop}))}))))})),cz="SelectGroup",[dz,fz]=Jh(cz),pz=Le(((e,t)=>{const{__scopeSelect:n,...r}=e,o=pd();return oe(dz,{scope:n,id:o},oe(ht.div,Ee({role:"group","aria-labelledby":o},r,{ref:t})))})),hz="SelectLabel",mz=Le(((e,t)=>{const{__scopeSelect:n,...r}=e,o=fz(hz,n);return oe(ht.div,Ee({id:o.id},r,{ref:t}))})),PS="SelectItem",[vz,rk]=Jh(PS),gz=Le(((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,u=pp(PS,n),s=hp(PS,n),l=u.value===r,[c,d]=ut(i??""),[f,p]=ut(!1),m=Ht(t,(e=>{var t;return null===(t=s.itemRefCallback)||void 0===t?void 0:t.call(s,e,r,o)})),h=pd(),v=()=>{o||(u.onValueChange(r),u.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return oe(vz,{scope:n,value:r,disabled:o,textId:h,isSelected:l,onItemTextChange:yt((e=>{d((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},oe(Vy.ItemSlot,{scope:n,value:r,disabled:o,textValue:c},oe(ht.div,Ee({role:"option","aria-labelledby":h,"data-highlighted":f?"":void 0,"aria-selected":l&&f,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},a,{ref:m,onFocus:ot(a.onFocus,(()=>p(!0))),onBlur:ot(a.onBlur,(()=>p(!1))),onPointerUp:ot(a.onPointerUp,v),onPointerMove:ot(a.onPointerMove,(e=>{var t;o?null===(t=s.onItemLeave)||void 0===t||t.call(s):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:ot(a.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=s.onItemLeave)||void 0===t||t.call(s))})),onKeyDown:ot(a.onKeyDown,(e=>{var t;""!==(null===(t=s.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(HU.includes(e.key)&&v()," "===e.key&&e.preventDefault())}))}))))})),Lg="SelectItemText",yz=Le(((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,a=pp(Lg,n),u=hp(Lg,n),s=rk(Lg,n),l=XU(Lg,n),[c,d]=ut(null),f=Ht(t,(e=>d(e)),s.onItemTextChange,(e=>{var t;return null===(t=u.itemTextRefCallback)||void 0===t?void 0:t.call(u,e,s.value,s.disabled)})),p=null==c?void 0:c.textContent,m=xn((()=>oe("option",{key:s.value,value:s.value,disabled:s.disabled},p)),[s.disabled,s.value,p]),{onNativeOptionAdd:h,onNativeOptionRemove:v}=l;return Go((()=>(h(m),()=>v(m))),[h,v,m]),oe(ap,null,oe(ht.span,Ee({id:s.textId},i,{ref:f})),s.isSelected&&a.valueNode&&!a.valueNodeHasChildren?_u.createPortal(i.children,a.valueNode):null)})),wz="SelectItemIndicator",_z=Le(((e,t)=>{const{__scopeSelect:n,...r}=e;return rk(wz,n).isSelected?oe(ht.span,Ee({"aria-hidden":!0},r,{ref:t})):null})),$T="SelectScrollUpButton",bz=Le(((e,t)=>{const n=hp($T,e.__scopeSelect),r=hC($T,e.__scopeSelect),[o,i]=ut(!1),a=Ht(t,r.onScrollButtonChange);return Go((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;i(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?oe(ok,Ee({},e,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),CT="SelectScrollDownButton",xz=Le(((e,t)=>{const n=hp(CT,e.__scopeSelect),r=hC(CT,e.__scopeSelect),[o,i]=ut(!1),a=Ht(t,r.onScrollButtonChange);return Go((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;i(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?oe(ok,Ee({},e,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),ok=Le(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=hp("SelectScrollButton",n),a=We(null),u=Uy(n),s=yt((()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)}),[]);return Ze((()=>()=>s()),[s]),Go((()=>{var e;const t=u().find((e=>e.ref.current===document.activeElement));null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[u]),oe(ht.div,Ee({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:ot(o.onPointerDown,(()=>{null===a.current&&(a.current=window.setInterval(r,50))})),onPointerMove:ot(o.onPointerMove,(()=>{var e;null===(e=i.onItemLeave)||void 0===e||e.call(i),null===a.current&&(a.current=window.setInterval(r,50))})),onPointerLeave:ot(o.onPointerLeave,(()=>{s()}))}))})),Sz=Le(((e,t)=>{const{__scopeSelect:n,...r}=e;return oe(ht.div,Ee({"aria-hidden":!0},r,{ref:t}))}));function ik(e){return""===e||void 0===e}const ak=Le(((e,t)=>{const{value:n,...r}=e,o=We(null),i=Ht(t,o),a=Oy(n);return Ze((()=>{const e=o.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(a!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[a,n]),oe(tk,{asChild:!0},oe("select",Ee({},r,{ref:i,defaultValue:n})))}));function sk(e){const t=bs(e),n=We(""),r=We(0),o=yt((e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(o)}),[t]),i=yt((()=>{n.current="",window.clearTimeout(r.current)}),[]);return Ze((()=>()=>window.clearTimeout(r.current)),[]),[n,o,i]}function uk(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let i=$z(e,Math.max(o,0));1===r.length&&(i=i.filter((e=>e!==n)));const a=i.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return a!==n?a:void 0}function $z(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}ak.displayName="BubbleSelect";const lk=JU,mC=ez,ck=nz,Cz=rz,Iz=oz,dk=iz,Ez=lz,fk=pz,pk=mz,hk=gz,Pz=yz,Rz=_z,mk=bz,vk=xz,gk=Sz,Tz=lk,vC=k.forwardRef((({...e},t)=>q.jsx(Tz,{ref:t,...e})));vC.displayName=lk.displayName;const yk=k.forwardRef(((e,t)=>q.jsx(fk,{ref:t,...e})));yk.displayName=fk.displayName;const wk=k.forwardRef(((e,t)=>q.jsx(ck,{ref:t,...e})));wk.displayName=ck.displayName;const gC=k.forwardRef((({className:e,children:t,caption:n,error:r,icon:o,renderCaret:i,...a},u)=>{const s=i?i():i?null:q.jsx(CA,{size:20,className:"transition-transform duration-200 group-data-[state=open]/select:rotate-180"});return q.jsxs("div",{className:"w-full",children:[q.jsxs(mC,{ref:u,className:we("group/select flex h-l w-full items-center justify-between rounded-m border bg-background p-xxs text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus-visible:ring-gray-700 focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50",r?"border-red-500":"border-input",e),...a,children:[q.jsxs("div",{className:we("flex flex-1 items-center gap-xxs",{"max-w-[90%]":!!i}),children:[o&&q.jsx("span",{className:we("text-muted-foreground",{"text-red-dark":r}),children:o}),t]}),q.jsx(Cz,{asChild:!0,children:s})]}),n||r?r?q.jsxs("div",{className:"mt-xxs flex items-center gap-xxxs text-sm text-red-600",children:[q.jsx(RA,{size:16}),r]}):q.jsxs("div",{className:"mt-xxs flex items-center gap-xxxs text-sm text-muted-foreground",children:[q.jsx(EL,{size:16}),n]}):null]})}));gC.displayName="SelectTriggerWrapper";const _k=k.forwardRef((({className:e,children:t,caption:n,error:r,icon:o,...i},a)=>q.jsx(gC,{ref:a,className:we("[&>span]:line-clamp-1 [&>span]:text-left",e),caption:n,error:r,icon:o,...i,children:t})));_k.displayName=mC.displayName;const yC=k.forwardRef((({className:e,children:t,position:n="popper",...r},o)=>{const i=k.useMemo((()=>{const e=t=>{var n,r;if(!t)return!1;if(Array.isArray(t))return t.some(e);if(k.isValidElement(t)){const o=null==(n=t.type)?void 0:n.displayName;return"SelectActions"===o||"SelectFooter"===o||e(null==(r=t.props)?void 0:r.children)}return!1};return e(t)}),[t]);return q.jsx(Iz,{children:q.jsx(dk,{ref:o,className:we("z-[101] flex max-h-[var(--radix-select-content-available-height)] min-w-[8rem] flex-col rounded-lg border border-gray-200 bg-white text-popover-foreground","shadow-[0px_0px_12px_0px_rgba(0,0,0,0.08)]","data-[state=open]:animate-in data-[state=closed]:animate-out ","data-[state=open]:fade-in data-[state=open]:slide-in-from-top-2 ","data-[state=closed]:fade-out data-[state=closed]:slide-out-to-top-2 ","data-[state=closed]:duration-150 data-[state=open]:duration-150 ","data-[state=closed]:[animation-timing-function:ease-in] data-[state=open]:[animation-timing-function:ease-out]","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:q.jsx(Ez,{className:we("flex flex-col gap-xxxs overflow-y-auto px-xxs",{"py-xxs":!i},"popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})})}));yC.displayName=dk.displayName;const bk=k.forwardRef((({className:e,...t},n)=>q.jsx(pk,{ref:n,className:we("text-sm font-medium text-gray-900",e),...t})));bk.displayName=pk.displayName;const xk=k.forwardRef((({className:e,showCheck:t=!0,checkPosition:n="right",children:r,...o},i)=>{const a=q.jsx(Rz,{children:q.jsx(a$,{size:20})});return q.jsxs(hk,{ref:i,className:we("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs","text-base font-medium text-gray-900 outline-none transition-colors hover:bg-gray-100","focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[t&&"left"===n&&a,q.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:q.jsx(Pz,{children:r})}),t&&"right"===n&&a]})}));xk.displayName=hk.displayName;const Sk=k.forwardRef((({className:e,...t},n)=>q.jsx(gk,{ref:n,className:we("-mx-1 my-1 h-px bg-gray-200",e),...t})));Sk.displayName=gk.displayName;const Oz=({selectedValues:e=[],onRemoveValue:t})=>{const n=k.useRef(null),[r,o]=k.useState(e.length);return k.useLayoutEffect((()=>{if(!n.current||0===e.length)return void o(e.length);const r=n.current.offsetWidth-60,i=document.createElement("div");Object.assign(i.style,{position:"absolute",visibility:"hidden",whiteSpace:"nowrap",display:"flex",gap:"4px",top:"-9999px",left:"-9999px"}),document.body.appendChild(i);let a=0,u=0;for(const n of e){const e=document.createElement("div");e.className="gap-xxxs p-xxs flex cursor-pointer items-center rounded-sm bg-gray-100 text-sm font-medium text-gray-900";const o=document.createElement("span");if(o.textContent="string"==typeof n?n:n.value,e.appendChild(o),"string"!=typeof n&&n.avatar){const t=document.createElement("div");t.className="w-6 h-6 rounded-full bg-gray-300 flex-shrink-0",e.insertBefore(t,o)}if(t){const t=document.createElement("button");t.innerHTML="×",t.className="ml-1 rounded-full outline-none",e.appendChild(t)}i.appendChild(e);const s=e.offsetWidth+4;if(!(a+s<=r))break;a+=s,u++}document.body.removeChild(i),o(Math.max(1,u))}),[e,t]),{containerRef:n,visibleCount:r}},$k=({hiddenCount:e,selectedValues:t=[],onRemoveValue:n})=>{const r=e=>{e.stopPropagation(),e.preventDefault()};return q.jsx("div",{onPointerDown:r,onMouseDown:r,onClick:r,children:q.jsxs(vC,{name:"hidden-chips-counter",children:[q.jsx(mC,{asChild:!0,children:q.jsx("div",{children:q.jsx(pD,{text:`+${e}`})})}),q.jsx(yC,{align:"end",className:"max-h-[250px] w-screen max-w-[300px] gap-xxxs overflow-y-auto",children:t.map((e=>{const t="string"==typeof e?e:e.value;return q.jsxs("div",{className:"flex justify-between p-xxs",onClick:e=>e.stopPropagation(),children:[q.jsx("span",{children:t}),q.jsx(py,{size:16,className:"cursor-pointer",onClick:()=>null==n?void 0:n(t)})]},t)}))})]})})};$k.displayName="SelectHiddenChipsCounter";const Az=k.forwardRef(((e,t)=>{const{className:n,selectedValues:r=[],placeholder:o,onRemoveValue:i,icon:a,caption:u,error:s,...l}=e,{containerRef:c,visibleCount:d}=Oz({selectedValues:r,onRemoveValue:i}),f=r.length-d;return q.jsx(gC,{ref:t,className:n,caption:u,error:s,icon:a,...l,children:q.jsx("div",{ref:c,className:"flex w-full flex-1 flex-nowrap overflow-hidden",children:0===r.length?q.jsx("span",{children:o||"Select options..."}):q.jsxs(EF,{children:[r.slice(0,d).map((e=>{const t="string"==typeof e?e:e.value;return q.jsx(pD,{avatarSrc:"string"==typeof e?void 0:e.avatar,text:t,onRemove:()=>null==i?void 0:i(t)},t)})),f>0&&q.jsx($k,{hiddenCount:f,onRemoveValue:i,selectedValues:r})]})})})}));Az.displayName="SelectMultiTrigger";const Dz=k.forwardRef((({value:e,isSelected:t=!1,isLoading:n=!1,checkboxPosition:r="right",onSelect:o,className:i,children:a,...u},s)=>{const l=n?q.jsx(PA,{size:24,className:"flex-shrink-0 animate-spin text-blue_100"}):q.jsx(V$,{size:"default",variant:"default",checked:t}),c=()=>{null==o||o(e)};return q.jsxs("div",{ref:s,className:we("relative flex cursor-pointer select-none items-center gap-xxs rounded-m","p-xxs text-base font-medium text-gray-900 outline-none transition-colors hover:bg-gray-100","focus:bg-accent focus:text-accent-foreground",{"pointer-events-none":n},i),onClick:c,role:"button",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),c())},...u,children:["left"===r&&l,q.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:a}),"right"===r&&l]})}));Dz.displayName="SelectCheckboxItem";const Nz=k.forwardRef((({className:e,...t},n)=>q.jsx(mk,{ref:n,className:we("flex cursor-default items-center justify-center py-xxs",e),...t,children:q.jsx(SL,{size:16})})));Nz.displayName=mk.displayName;const kz=k.forwardRef((({className:e,...t},n)=>q.jsx(vk,{ref:n,className:we("flex cursor-default items-center justify-center p-xxs",e),...t,children:q.jsx(CA,{size:16})})));kz.displayName=vk.displayName;const Mz=k.forwardRef((({className:e,children:t,...n},r)=>q.jsx("div",{ref:r,className:we("sticky top-0 z-20 bg-white p-xxs",e),...n,children:t})));Mz.displayName="SelectActions";const Lz=k.forwardRef((({className:e,children:t,...n},r)=>q.jsx("div",{ref:r,className:we("sticky bottom-0 z-20 bg-white p-xxs",e),...n,children:t})));Lz.displayName="SelectFooter";const Fz=k.createContext({}),$d=()=>{const e=k.useContext(Fz),t=k.useContext(Ck),n=SM();e||console.error("useFormContext must be used within a FormProvider");const{getFieldState:r,formState:o}=n,i=r(e.name,o);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},Ck=k.createContext({}),Bz=k.forwardRef((({className:e,...t},n)=>{const r=k.useId();return q.jsx(Ck.Provider,{value:{id:r},children:q.jsx("div",{ref:n,className:we("mt-[8px]",e),...t})})}));Bz.displayName="FormItem";const jz=k.forwardRef((({className:e,isRequired:t,...n},r)=>{const{formItemId:o}=$d();return q.jsxs(ek,{ref:r,className:we("mb-2 text-sm font-medium",e),htmlFor:o,...n,children:[t&&"*",n.children]})}));jz.displayName="FormLabel";const Vz=k.forwardRef((({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:i}=$d();return q.jsx(xd,{ref:t,id:r,"aria-describedby":n?`${o} ${i}`:`${o}`,"aria-invalid":!!n,...e})}));Vz.displayName="FormControl";const Uz=k.forwardRef((({className:e,...t},n)=>{const{formDescriptionId:r}=$d();return q.jsx("p",{ref:n,id:r,className:we("text-sm text-muted-foreground",e),...t})}));Uz.displayName="FormDescription";const zz=k.forwardRef((({className:e,children:t,...n},r)=>{const{error:o,formMessageId:i}=$d(),a=o?String(null==o?void 0:o.message):t;return a?q.jsxs("p",{ref:r,id:i,className:we("flex items-start gap-1 pt-xxs text-sm text-red-dark",e),...n,children:[q.jsx(RA,{size:16,className:"text-red-dark"})," ",a]}):null}));zz.displayName="FormMessage";const Wz=k.forwardRef((({...e},t)=>{const{name:n}=$d();return q.jsx(vC,{ref:t,name:n,...e})}));Wz.displayName="FormSelect";const qz=k.forwardRef((({className:e,children:t,...n},r)=>{const{formItemId:o}=$d();return q.jsx(_k,{ref:r,id:o,className:e,...n,children:t})}));qz.displayName="FormSelectTrigger";const Gz=k.forwardRef(((e,t)=>q.jsx(yC,{ref:t,...e})));Gz.displayName="FormSelectContent";const Hz=k.forwardRef(((e,t)=>q.jsx(xk,{ref:t,...e})));Hz.displayName="FormSelectItem";const Kz=k.forwardRef(((e,t)=>q.jsx(yk,{ref:t,...e})));Kz.displayName="FormSelectGroup";const Qz=k.forwardRef(((e,t)=>q.jsx(bk,{ref:t,...e})));Qz.displayName="FormSelectLabel";const Yz=k.forwardRef(((e,t)=>q.jsx(Sk,{ref:t,...e})));Yz.displayName="FormSelectSeparator";const Xz=k.forwardRef(((e,t)=>q.jsx(wk,{ref:t,...e})));function qf(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function Ik(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>hu(e)));return function(n){const r=(null==n?void 0:n[e])||t;return xn((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=hu(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,u=(null==n?void 0:n[e][i])||o,s=xn((()=>a),Object.values(a));return oe(u.Provider,{value:s},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const u=(null==a?void 0:a[e][i])||o,s=op(u);if(s)return s;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Jz(r,...t)]}function Jz(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return xn((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function zy(e){const t=We(e);return Ze((()=>{t.current=e})),xn((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function Zz(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function eW(...e){return t=>e.forEach((e=>Zz(e,t)))}function tW(...e){return yt(eW(...e),e)}function mp(e){return e.split("-")[0]}function Uv(e){return e.split("-")[1]}function Zh(e){return["top","bottom"].includes(mp(e))?"x":"y"}function wC(e){return"y"===e?"height":"width"}function IT(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,u=Zh(t),s=wC(u),l=r[s]/2-o[s]/2,c="x"===u;let d;switch(mp(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(Uv(t)){case"start":d[u]-=l*(n&&c?-1:1);break;case"end":d[u]+=l*(n&&c?-1:1)}return d}Xz.displayName="FormSelectValue";const nW=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,u=await(null==a.isRTL?void 0:a.isRTL(t));let s=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:c}=IT(s,r,u),d=r,f={},p=0;for(let n=0;n<i.length;n++){const{name:m,fn:h}=i[n],{x:v,y:g,data:y,reset:b}=await h({x:l,y:c,initialPlacement:r,placement:d,strategy:o,middlewareData:f,rects:s,platform:a,elements:{reference:e,floating:t}});l=v??l,c=g??c,f={...f,[m]:{...f[m],...y}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(s=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:l,y:c}=IT(s,d,u))),n=-1)}return{x:l,y:c,placement:d,strategy:o,middlewareData:f}};function Ek(e){return"number"!=typeof e?(t=e,{top:0,right:0,bottom:0,left:0,...t}):{top:e,right:e,bottom:e,left:e};var t}function ny(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Cv(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:u,strategy:s}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=t,m=Ek(p),h=u[f?"floating"===d?"reference":"floating":d],v=ny(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(u.floating)),boundary:l,rootBoundary:c,strategy:s})),g=ny(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...a.floating,x:r,y:o}:a.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(u.floating)),strategy:s}):a[d]);return{top:v.top-g.top+m.top,bottom:g.bottom-v.bottom+m.bottom,left:v.left-g.left+m.left,right:g.right-v.right+m.right}}const rW=Math.min,Lf=Math.max;function RS(e,t,n){return Lf(e,rW(t,n))}const ET=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e??{},{x:o,y:i,placement:a,rects:u,platform:s}=t;if(null==n)return{};const l=Ek(r),c={x:o,y:i},d=Zh(a),f=Uv(a),p=wC(d),m=await s.getDimensions(n),h="y"===d?"top":"left",v="y"===d?"bottom":"right",g=u.reference[p]+u.reference[d]-c[d]-u.floating[p],y=c[d]-u.reference[d],b=await(null==s.getOffsetParent?void 0:s.getOffsetParent(n));let w=b?"y"===d?b.clientHeight||0:b.clientWidth||0:0;0===w&&(w=u.floating[p]);const x=g/2-y/2,_=l[h],k=w-m[p]-l[v],S=w/2-m[p]/2+x,A=RS(_,S,k),E=("start"===f?l[h]:l[v])>0&&S!==A&&u.reference[p]<=u.floating[p];return{[d]:c[d]-(E?S<_?_-S:k-S:0),data:{[d]:A,centerOffset:S-A}}}}),oW={left:"right",right:"left",bottom:"top",top:"bottom"};function ry(e){return e.replace(/left|right|bottom|top/g,(e=>oW[e]))}function iW(e,t,n){void 0===n&&(n=!1);const r=Uv(e),o=Zh(e),i=wC(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=ry(a)),{main:a,cross:ry(a)}}const aW={start:"end",end:"start"};function PT(e){return e.replace(/start|end/g,(e=>aW[e]))}const Pk=["top","right","bottom","left"];Pk.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const sW=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:u,elements:s}=t,{mainAxis:l=!0,crossAxis:c=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:p=!0,...m}=e,h=mp(r),v=[a,...d||(h!==a&&p?function(e){const t=ry(e);return[PT(e),t,PT(t)]}(a):[ry(a)])],g=await Cv(t,m),y=[];let b=(null==(n=o.flip)?void 0:n.overflows)||[];if(l&&y.push(g[h]),c){const{main:e,cross:t}=iW(r,i,await(null==u.isRTL?void 0:u.isRTL(s.floating)));y.push(g[e],g[t])}if(b=[...b,{placement:r,overflows:y}],!y.every((e=>e<=0))){var w,x;const e=(null!=(w=null==(x=o.flip)?void 0:x.index)?w:0)+1,t=v[e];if(t)return{data:{index:e,overflows:b},reset:{placement:t}};let n="bottom";switch(f){case"bestFit":{var _;const e=null==(_=b.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:_[0].placement;e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};function RT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function TT(e){return Pk.some((t=>e[t]>=0))}const uW=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:r}=e;switch(t){case"referenceHidden":{const t=RT(await Cv(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:TT(t)}}}case"escaped":{const t=RT(await Cv(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:TT(t)}}}default:return{}}}}},lW=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=mp(n),u=Uv(n),s="x"===Zh(n),l=["left","top"].includes(a)?-1:1,c=i&&s?-1:1,d="function"==typeof t?t(e):t;let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return u&&"number"==typeof m&&(p="end"===u?-1*m:m),s?{x:p*c,y:f*l}:{x:f*l,y:p*c}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};function Rk(e){return"x"===e?"y":"x"}const cW=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=e,l={x:n,y:r},c=await Cv(t,s),d=Zh(mp(o)),f=Rk(d);let p=l[d],m=l[f];if(i){const e="y"===d?"bottom":"right";p=RS(p+c["y"===d?"top":"left"],p,p-c[e])}if(a){const e="y"===f?"bottom":"right";m=RS(m+c["y"===f?"top":"left"],m,m-c[e])}const h=u.fn({...t,[d]:p,[f]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},dW=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:u=0,mainAxis:s=!0,crossAxis:l=!0}=e,c={x:n,y:r},d=Zh(o),f=Rk(d);let p=c[d],m=c[f];const h="function"==typeof u?u({...i,placement:o}):u,v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+v.mainAxis,n=i.reference[d]+i.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var g,y,b,w;const e="y"===d?"width":"height",t=["top","left"].includes(mp(o)),n=i.reference[f]-i.floating[e]+(t&&null!=(g=null==(y=a.offset)?void 0:y[f])?g:0)+(t?0:v.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:null!=(b=null==(w=a.offset)?void 0:w[f])?b:0)-(t?v.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}},fW=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a,...u}=e,s=await Cv(t,u),l=mp(n),c=Uv(n);let d,f;"top"===l||"bottom"===l?(d=l,f=c===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(f=l,d="end"===c?"top":"bottom");const p=Lf(s.left,0),m=Lf(s.right,0),h=Lf(s.top,0),v=Lf(s.bottom,0),g={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==h||0!==v?h+v:Lf(s.top,s.bottom)):s[d]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==p||0!==m?p+m:Lf(s.left,s.right)):s[f])},y=await o.getDimensions(i.floating);null==a||a({...t,...g});const b=await o.getDimensions(i.floating);return y.width!==b.width||y.height!==b.height?{reset:{rects:!0}}:{}}}};function Tk(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Ml(e){if(null==e)return window;if(!Tk(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function zv(e){return Ml(e).getComputedStyle(e)}function $l(e){return Tk(e)?"":e?(e.nodeName||"").toLowerCase():""}function Ok(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function yu(e){return e instanceof Ml(e).HTMLElement}function bd(e){return e instanceof Ml(e).Element}function _C(e){return!(typeof ShadowRoot>"u")&&(e instanceof Ml(e).ShadowRoot||e instanceof ShadowRoot)}function Wy(e){const{overflow:t,overflowX:n,overflowY:r}=zv(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function pW(e){return["table","td","th"].includes($l(e))}function OT(e){const t=/firefox/i.test(Ok()),n=zv(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function Ak(){return!/^((?!chrome|android).)*safari/i.test(Ok())}const AT=Math.min,pv=Math.max,oy=Math.round;function Cl(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const u=e.getBoundingClientRect();let s=1,l=1;t&&yu(e)&&(s=e.offsetWidth>0&&oy(u.width)/e.offsetWidth||1,l=e.offsetHeight>0&&oy(u.height)/e.offsetHeight||1);const c=bd(e)?Ml(e):window,d=!Ak()&&n,f=(u.left+(d&&null!=(r=null==(o=c.visualViewport)?void 0:o.offsetLeft)?r:0))/s,p=(u.top+(d&&null!=(i=null==(a=c.visualViewport)?void 0:a.offsetTop)?i:0))/l,m=u.width/s,h=u.height/l;return{width:m,height:h,top:p,right:f+m,bottom:p+h,left:f,x:f,y:p}}function md(e){return(t=e,(t instanceof Ml(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function qy(e){return bd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Dk(e){return Cl(md(e)).left+qy(e).scrollLeft}function hW(e,t,n){const r=yu(t),o=md(t),i=Cl(e,r&&function(e){const t=Cl(e);return oy(t.width)!==e.offsetWidth||oy(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const u={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==$l(t)||Wy(o))&&(a=qy(t)),yu(t)){const e=Cl(t,!0);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=Dk(o));return{x:i.left+a.scrollLeft-u.x,y:i.top+a.scrollTop-u.y,width:i.width,height:i.height}}function Nk(e){return"html"===$l(e)?e:e.assignedSlot||e.parentNode||(_C(e)?e.host:null)||md(e)}function DT(e){return yu(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function TS(e){const t=Ml(e);let n=DT(e);for(;n&&pW(n)&&"static"===getComputedStyle(n).position;)n=DT(n);return n&&("html"===$l(n)||"body"===$l(n)&&"static"===getComputedStyle(n).position&&!OT(n))?t:n||function(e){let t=Nk(e);for(_C(t)&&(t=t.host);yu(t)&&!["html","body"].includes($l(t));){if(OT(t))return t;t=t.parentNode}return null}(e)||t}function NT(e){if(yu(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Cl(e);return{width:t.width,height:t.height}}function kk(e){const t=Nk(e);return["html","body","#document"].includes($l(t))?e.ownerDocument.body:yu(t)&&Wy(t)?t:kk(t)}function iy(e,t){var n;void 0===t&&(t=[]);const r=kk(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Ml(r),a=o?[i].concat(i.visualViewport||[],Wy(r)?r:[]):r,u=t.concat(a);return o?u:u.concat(iy(a))}function kT(e,t,n){return"viewport"===t?ny(function(e,t){const n=Ml(e),r=md(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,u=0,s=0;if(o){i=o.width,a=o.height;const e=Ak();(e||!e&&"fixed"===t)&&(u=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:u,y:s}}(e,n)):bd(t)?function(e,t){const n=Cl(e,!1,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:r,left:o,x:o,y:r,right:o+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):ny(function(e){var t;const n=md(e),r=qy(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=pv(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=pv(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let u=-r.scrollLeft+Dk(e);const s=-r.scrollTop;return"rtl"===zv(o||n).direction&&(u+=pv(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:u,y:s}}(md(e)))}function mW(e){const t=iy(e),n=["absolute","fixed"].includes(zv(e).position)&&yu(e)?TS(e):e;return bd(n)?t.filter((e=>bd(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&_C(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==$l(e))):[]}const vW={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?mW(t):[].concat(n),r],a=i[0],u=i.reduce(((e,n)=>{const r=kT(t,n,o);return e.top=pv(r.top,e.top),e.right=AT(r.right,e.right),e.bottom=AT(r.bottom,e.bottom),e.left=pv(r.left,e.left),e}),kT(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=yu(n),i=md(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const u={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==$l(n)||Wy(i))&&(a=qy(n)),yu(n))){const e=Cl(n,!0);u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+u.x,y:t.y-a.scrollTop+u.y}},isElement:bd,getDimensions:NT,getOffsetParent:TS,getDocumentElement:md,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:hW(t,TS(n),r),floating:{...NT(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===zv(e).direction};function gW(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:u=!1}=r,s=o&&!u,l=i&&!u,c=s||l?[...bd(e)?iy(e):[],...iy(t)]:[];c.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));let d,f=null;if(a){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),bd(e)&&!u&&f.observe(e),f.observe(t)}let p=u?Cl(e):null;return u&&function t(){const r=Cl(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{s&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,u&&cancelAnimationFrame(d)}}const yW=(e,t,n)=>nW(e,t,{platform:vW,...n});var OS=typeof document<"u"?ip:Ze;function AS(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!AS(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||AS(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function wW(e){const t=k.useRef(e);return OS((()=>{t.current=e})),t}function _W(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===e?{}:e;const i=k.useRef(null),a=k.useRef(null),u=wW(o),s=k.useRef(null),[l,c]=k.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=k.useState(t);AS(null==d?void 0:d.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||f(t);const p=k.useCallback((()=>{!i.current||!a.current||yW(i.current,a.current,{middleware:d,placement:n,strategy:r}).then((e=>{m.current&&_u.flushSync((()=>{c(e)}))}))}),[d,n,r]);OS((()=>{m.current&&p()}),[p]);const m=k.useRef(!1);OS((()=>(m.current=!0,()=>{m.current=!1})),[]);const h=k.useCallback((()=>{if("function"==typeof s.current&&(s.current(),s.current=null),i.current&&a.current)if(u.current){const e=u.current(i.current,a.current,p);s.current=e}else p()}),[p,u]),v=k.useCallback((e=>{i.current=e,h()}),[h]),g=k.useCallback((e=>{a.current=e,h()}),[h]),y=k.useMemo((()=>({reference:i,floating:a})),[]);return k.useMemo((()=>({...l,update:p,refs:y,reference:v,floating:g})),[l,p,y,v,g])}const bW=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn:e=>function(e){return Object.prototype.hasOwnProperty.call(e,"current")}(t)?null!=t.current?ET({element:t.current,padding:n}).fn(e):{}:t?ET({element:t,padding:n}).fn(e):{}}};function xW(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function SW(...e){return t=>e.forEach((e=>xW(e,t)))}const Mk=Le(((e,t)=>{const{children:n,...r}=e,o=na.toArray(n),i=o.find(CW);if(i){const e=i.props.children,n=o.map((t=>t===i?na.count(e)>1?na.only(null):mu(e)?e.props.children:null:t));return oe(DS,Ee({},r,{ref:t}),mu(e)?sp(e,void 0,n):null)}return oe(DS,Ee({},r,{ref:t}),n)}));Mk.displayName="Slot";const DS=Le(((e,t)=>{const{children:n,...r}=e;return mu(n)?sp(n,{...IW(r,n.props),ref:SW(t,n.ref)}):na.count(n)>1?na.only(null):null}));DS.displayName="SlotClone";const $W=({children:e})=>oe(ap,null,e);function CW(e){return mu(e)&&e.type===$W}function IW(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const EW=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],NS=EW.reduce(((e,t)=>{const n=Le(((e,n)=>{const{asChild:r,...o}=e,i=r?Mk:t;return Ze((()=>{window[Symbol.for("radix-ui")]=!0}),[]),oe(i,Ee({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function PW(e,t){e&&_u.flushSync((()=>e.dispatchEvent(t)))}function RW(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function TW(...e){return t=>e.forEach((e=>RW(e,t)))}function OW(...e){return yt(TW(...e),e)}const Vf=null!=globalThis&&globalThis.document?ip:()=>{};function AW(e){const[t,n]=ut(void 0);return Vf((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t)||!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}const Lk="Popper",[bC,Fk]=Ik(Lk),[JX,DW]=bC(Lk),ay="PopperContent",[NW,ZX]=bC(ay),[kW,MW]=bC(ay,{hasParent:!1,positionUpdateFns:new Set}),LW=Le(((e,t)=>{var n,r,o,i,a,u,s,l;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:m=0,arrowPadding:h=0,collisionBoundary:v=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,avoidCollisions:w=!0,onPlaced:x,..._}=e,k=DW(ay,c),[S,A]=ut(null),E=OW(t,(e=>A(e))),[I,C]=ut(null),P=AW(I),q=null!==(n=null==P?void 0:P.width)&&void 0!==n?n:0,O=null!==(r=null==P?void 0:P.height)&&void 0!==r?r:0,T=d+("center"!==p?"-"+p:""),N="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},R=Array.isArray(v)?v:[v],D=R.length>0,j={padding:N,boundary:R.filter(BW),altBoundary:D},{reference:L,floating:M,strategy:$,x:B,y:F,placement:z,middlewareData:V,update:U}=_W({strategy:"fixed",placement:T,whileElementsMounted:gW,middleware:[jW(),lW({mainAxis:f+O,alignmentAxis:m}),w?cW({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?dW():void 0,...j}):void 0,I?bW({element:I,padding:h}):void 0,w?sW({...j}):void 0,fW({...j,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}}),VW({arrowWidth:q,arrowHeight:O}),b?uW({strategy:"referenceHidden"}):void 0].filter(FW)});Vf((()=>{L(k.anchor)}),[L,k.anchor]);const W=null!==B&&null!==F,[H,G]=Bk(z),K=zy(x);Vf((()=>{W&&(null==K||K())}),[W,K]);const Q=null===(o=V.arrow)||void 0===o?void 0:o.x,Y=null===(i=V.arrow)||void 0===i?void 0:i.y,X=0!==(null===(a=V.arrow)||void 0===a?void 0:a.centerOffset),[Z,J]=ut();Vf((()=>{S&&J(window.getComputedStyle(S).zIndex)}),[S]);const{hasParent:ee,positionUpdateFns:te}=MW(ay,c),ne=!ee;ip((()=>{if(!ne)return te.add(U),()=>{te.delete(U)}}),[ne,te,U]),Vf((()=>{ne&&W&&Array.from(te).reverse().forEach((e=>requestAnimationFrame(e)))}),[ne,W,te]);const re={"data-side":H,"data-align":G,..._,ref:E,style:{..._.style,animation:W?void 0:"none",opacity:null!==(u=V.hide)&&void 0!==u&&u.referenceHidden?0:void 0}};return oe("div",{ref:M,"data-radix-popper-content-wrapper":"",style:{position:$,left:0,top:0,transform:W?`translate3d(${Math.round(B)}px, ${Math.round(F)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[null===(s=V.transformOrigin)||void 0===s?void 0:s.x,null===(l=V.transformOrigin)||void 0===l?void 0:l.y].join(" ")},dir:e.dir},oe(NW,{scope:c,placedSide:H,onArrowChange:C,arrowX:Q,arrowY:Y,shouldHideArrow:X},ne?oe(kW,{scope:c,hasParent:!0,positionUpdateFns:te},oe(NS.div,re)):oe(NS.div,re)))}));function FW(e){return void 0!==e}function BW(e){return null!==e}const jW=()=>({name:"anchorCssProperties",fn(e){const{rects:t,elements:n}=e,{width:r,height:o}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${o}px`),{}}}),VW=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:u,rects:s,middlewareData:l}=t,c=0!==(null===(n=l.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,m]=Bk(u),h={start:"0%",center:"50%",end:"100%"}[m],v=(null!==(r=null===(o=l.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(i=null===(a=l.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=c?h:`${v}px`,b=-f+"px"):"top"===p?(y=c?h:`${v}px`,b=`${s.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?h:`${g}px`):"left"===p&&(y=`${s.floating.width+f}px`,b=c?h:`${g}px`),{data:{x:y,y:b}}}});function Bk(e){const[t,n="center"]=e.split("-");return[t,n]}const UW=LW;function zW(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function WW(...e){return t=>e.forEach((e=>zW(e,t)))}function qW(...e){return yt(WW(...e),e)}function GW(e,t){return iA(((e,n)=>t[e][n]??e),e)}const jk=e=>{const{present:t,children:n}=e,r=HW(t),o="function"==typeof n?n({present:r.isPresent}):na.only(n),i=qW(r.ref,o.ref);return"function"==typeof n||r.isPresent?sp(o,{ref:i}):null};function HW(e){const[t,n]=ut(),r=We({}),o=We(e),i=We("none"),a=e?"mounted":"unmounted",[u,s]=GW(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Ze((()=>{const e=Fg(r.current);i.current="mounted"===u?e:"none"}),[u]),Vf((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Fg(t);e?s("MOUNT"):"none"===a||"none"===(null==t?void 0:t.display)?s("UNMOUNT"):s(n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,s]),Vf((()=>{if(t){const e=e=>{const n=Fg(r.current).includes(e.animationName);e.target===t&&n&&_u.flushSync((()=>s("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=Fg(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}s("ANIMATION_END")}),[t,s]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:yt((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Fg(e){return(null==e?void 0:e.animationName)||"none"}function KW(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function QW(...e){return t=>e.forEach((e=>KW(e,t)))}function YW(...e){return yt(QW(...e),e)}function XW(e,t=(null==globalThis?void 0:globalThis.document)){const n=zy(e);Ze((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}jk.displayName="Presence";const kS="dismissableLayer.update",JW="dismissableLayer.pointerDownOutside",ZW="dismissableLayer.focusOutside";let MT;const eq=hu({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tq=Le(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:u,onDismiss:s,...l}=e,c=op(eq),[d,f]=ut(null),p=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=ut({}),h=YW(t,(e=>f(e))),v=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(g),b=d?v.indexOf(d):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,x=b>=y,_=nq((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));!x||n||(null==i||i(e),null==u||u(e),e.defaultPrevented||null==s||s())}),p),k=rq((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==a||a(e),null==u||u(e),e.defaultPrevented||null==s||s())}),p);return XW((e=>{b===c.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),p),Ze((()=>{if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(MT=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),LT(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=MT)}}),[d,p,r,c]),Ze((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),LT())}),[d,c]),Ze((()=>{const e=()=>m({});return document.addEventListener(kS,e),()=>document.removeEventListener(kS,e)}),[]),oe(NS.div,Ee({},l,{ref:h,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:qf(e.onFocusCapture,k.onFocusCapture),onBlurCapture:qf(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:qf(e.onPointerDownCapture,_.onPointerDownCapture)}))}));function nq(e,t=(null==globalThis?void 0:globalThis.document)){const n=zy(e),r=We(!1),o=We((()=>{}));return Ze((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Vk(JW,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function rq(e,t=(null==globalThis?void 0:globalThis.document)){const n=zy(e),r=We(!1);return Ze((()=>{const e=e=>{e.target&&!r.current&&Vk(ZW,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function LT(){const e=new CustomEvent(kS);document.dispatchEvent(e)}function Vk(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?PW(o,i):o.dispatchEvent(i)}let cx;const Uk="HoverCard",[zk,eJ]=Ik(Uk,[Fk]),oq=Fk(),[tJ,Wk]=zk(Uk),iq="HoverCardPortal",[nJ,aq]=zk(iq,{forceMount:void 0}),MS="HoverCardContent",sq=Le(((e,t)=>{const n=aq(MS,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,i=Wk(MS,e.__scopeHoverCard);return oe(jk,{present:r||i.open},oe(uq,Ee({"data-state":i.open?"open":"closed"},o,{onPointerEnter:qf(e.onPointerEnter,FT(i.onOpen)),onPointerLeave:qf(e.onPointerLeave,FT(i.onClose)),ref:t})))})),uq=Le(((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,...u}=e,s=Wk(MS,n),l=oq(n),c=We(null),d=tW(t,c),[f,p]=ut(!1);return Ze((()=>{if(f){const e=document.body;return cx=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=cx,e.style.webkitUserSelect=cx}}}),[f]),Ze((()=>{if(c.current){const e=()=>{p(!1),s.isPointerDownOnContentRef.current=!1,setTimeout((()=>{var e;""!==(null===(e=document.getSelection())||void 0===e?void 0:e.toString())&&(s.hasSelectionRef.current=!0)}))};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),s.hasSelectionRef.current=!1,s.isPointerDownOnContentRef.current=!1}}}),[s.isPointerDownOnContentRef,s.hasSelectionRef]),Ze((()=>{c.current&&lq(c.current).forEach((e=>e.setAttribute("tabindex","-1")))})),oe(tq,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:a,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:qf(i,(e=>{e.preventDefault()})),onDismiss:s.onDismiss},oe(UW,Ee({},l,u,{onPointerDown:qf(u.onPointerDown,(e=>{e.currentTarget.contains(e.target)&&p(!0),s.hasSelectionRef.current=!1,s.isPointerDownOnContentRef.current=!0})),ref:d,style:{...u.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})))}));function FT(e){return t=>"touch"===t.pointerType?void 0:e()}function lq(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}const qk=sq,cq=k.forwardRef((({className:e,align:t="center",sideOffset:n=4,...r},o)=>q.jsx(qk,{ref:o,align:t,sideOffset:n,className:we("z-50 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})));cq.displayName=qk.displayName;const Gk=k.forwardRef((({className:e,type:t,...n},r)=>{const{error:o}=$d();return q.jsx("input",{type:t,title:n.disabled?"Disabled":"",className:we("flex w-full rounded-m px-s py-3.5 text-base text-gray-900 outline outline-1 outline-input ring-offset-background transition-all duration-200 ease-in-out file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-base placeholder:text-gray-400 placeholder:text-muted-foreground focus-visible:bg-gray-50 focus-visible:text-gray-900 focus-visible:outline-2 focus-visible:outline-blue_120 enabled:hover:outline-2 enabled:hover:outline-gray-400 disabled:bg-transparent disabled:text-gray-300 disabled:outline-gray-200 disabled:ring-0 disabled:ring-transparent disabled:placeholder:text-gray-300",{"bg-red_30_17 outline-red-dark":!!o},e),ref:r,...n})}));function dq(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>k.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return k.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=k.createContext(r),i=n.length;n=[...n,r];const a=t=>{var n;const{scope:r,children:a,...u}=t,s=(null==(n=null==r?void 0:r[e])?void 0:n[i])||o,l=k.useMemo((()=>u),Object.values(u));return q.jsx(s.Provider,{value:l,children:a})};return a.displayName=t+"Provider",[a,function(n,a){var u;const s=(null==(u=null==a?void 0:a[e])?void 0:u[i])||o,l=k.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},fq(r,...t)]}function fq(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return k.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function BT(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function pq(...e){return t=>{let n=!1;const r=e.map((e=>{const r=BT(e,t);return!n&&"function"==typeof r&&(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():BT(e[t],null)}}}}function hq(e){const t=mq(e),n=k.forwardRef(((e,n)=>{const{children:r,...o}=e,i=k.Children.toArray(r),a=i.find(gq);if(a){const e=a.props.children,r=i.map((t=>t===a?k.Children.count(e)>1?k.Children.only(null):k.isValidElement(e)?e.props.children:null:t));return q.jsx(t,{...o,ref:n,children:k.isValidElement(e)?k.cloneElement(e,void 0,r):null})}return q.jsx(t,{...o,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function mq(e){const t=k.forwardRef(((e,t)=>{const{children:n,...r}=e;if(k.isValidElement(n)){const e=wq(n),o=yq(r,n.props);return n.type!==k.Fragment&&(o.ref=t?pq(t,e):e),k.cloneElement(n,o)}return k.Children.count(n)>1?k.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}Gk.displayName="Input";var vq=Symbol("radix.slottable");function gq(e){return k.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===vq}function yq(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function wq(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var _q=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Hk=_q.reduce(((e,t)=>{const n=hq(`Primitive.${t}`),r=k.forwardRef(((e,r)=>{const{asChild:o,...i}=e,a=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),q.jsx(a,{...i,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{}),xC="Progress",SC=100,[bq,rJ]=dq(xC),[xq,Sq]=bq(xC),Kk=k.forwardRef(((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:i=$q,...a}=e;(o||0===o)&&!jT(o)&&console.error(Cq(`${o}`,"Progress"));const u=jT(o)?o:SC;null!==r&&!VT(r,u)&&console.error(Iq(`${r}`,"Progress"));const s=VT(r,u)?r:null,l=sy(s)?i(s,u):void 0;return q.jsx(xq,{scope:n,value:s,max:u,children:q.jsx(Hk.div,{"aria-valuemax":u,"aria-valuemin":0,"aria-valuenow":sy(s)?s:void 0,"aria-valuetext":l,role:"progressbar","data-state":Xk(s,u),"data-value":s??void 0,"data-max":u,...a,ref:t})})}));Kk.displayName=xC;var Qk="ProgressIndicator",Yk=k.forwardRef(((e,t)=>{const{__scopeProgress:n,...r}=e,o=Sq(Qk,n);return q.jsx(Hk.div,{"data-state":Xk(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})}));function $q(e,t){return`${Math.round(e/t*100)}%`}function Xk(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function sy(e){return"number"==typeof e}function jT(e){return sy(e)&&!isNaN(e)&&e>0}function VT(e,t){return sy(e)&&!isNaN(e)&&e<=t&&e>=0}function Cq(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${SC}\`.`}function Iq(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:\n - a positive number\n - less than the value passed to \`max\` (or ${SC} if no \`max\` prop is set)\n - \`null\` or \`undefined\` if the progress is indeterminate.\n\nDefaulting to \`null\`.`}Yk.displayName=Qk;var Jk=Kk,Eq=Yk;const Pq=k.forwardRef((({className:e,value:t,indicatorClassName:n,...r},o)=>q.jsx(Jk,{ref:o,className:we("relative h-[7px] w-full overflow-hidden rounded-full bg-blue_10",e),...r,children:q.jsx(Eq,{className:we("h-full w-full flex-1 rounded-full bg-blue_100 transition-all",n),style:{transform:`translateX(-${100-(t||0)}%)`}})})));Pq.displayName=Jk.displayName;const Zk="Radio",[Rq,e3]=ai(Zk),[Tq,Oq]=Rq(Zk),Aq=Le(((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:a,value:u="on",onCheck:s,...l}=e,[c,d]=ut(null),f=Ht(t,(e=>d(e))),p=We(!1),m=!c||!!c.closest("form");return oe(Tq,{scope:n,checked:o,disabled:a},oe(ht.button,Ee({type:"button",role:"radio","aria-checked":o,"data-state":t3(o),"data-disabled":a?"":void 0,disabled:a,value:u},l,{ref:f,onClick:ot(e.onClick,(e=>{o||null==s||s(),m&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())}))})),m&&oe(kq,{control:c,bubbles:!p.current,name:r,value:u,checked:o,required:i,disabled:a,style:{transform:"translateX(-100%)"}}))})),Dq="RadioIndicator",Nq=Le(((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,i=Oq(Dq,n);return oe(ia,{present:r||i.checked},oe(ht.span,Ee({"data-state":t3(i.checked),"data-disabled":i.disabled?"":void 0},o,{ref:t})))})),kq=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=We(null),a=Oy(n),u=Ay(t);return Ze((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[a,n,r]),oe("input",Ee({type:"radio","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:i,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function t3(e){return e?"checked":"unchecked"}const Mq=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],n3="RadioGroup",[Lq,oJ]=ai(n3,[Xh,e3]),r3=Xh(),o3=e3(),[Fq,Bq]=Lq(n3),jq=Le(((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:a=!1,disabled:u=!1,orientation:s,dir:l,loop:c=!0,onValueChange:d,...f}=e,p=r3(n),m=Y$(l),[h,v]=vd({prop:i,defaultProp:o,onChange:d});return oe(Fq,{scope:n,name:r,required:a,disabled:u,value:h,onValueChange:v},oe(aC,Ee({asChild:!0},p,{orientation:s,dir:m,loop:c}),oe(ht.div,Ee({role:"radiogroup","aria-required":a,"aria-orientation":s,"data-disabled":u?"":void 0,dir:m},f,{ref:t}))))})),Vq="RadioGroupItem",Uq=Le(((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,i=Bq(Vq,n),a=i.disabled||r,u=r3(n),s=o3(n),l=We(null),c=Ht(t,l),d=i.value===o.value,f=We(!1);return Ze((()=>{const e=e=>{Mq.includes(e.key)&&(f.current=!0)},t=()=>f.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),oe(sC,Ee({asChild:!0},u,{focusable:!a,active:d}),oe(Aq,Ee({disabled:a,required:i.required,checked:d},s,o,{name:i.name,ref:c,onCheck:()=>i.onValueChange(o.value),onKeyDown:ot((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:ot(o.onFocus,(()=>{var e;f.current&&(null===(e=l.current)||void 0===e||e.click())}))})))})),zq=Le(((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=o3(n);return oe(Nq,Ee({},o,r,{ref:t}))})),i3=jq,a3=Uq,Wq=zq,qq=k.forwardRef((({className:e,...t},n)=>q.jsx(i3,{className:we("grid gap-2",e),...t,ref:n})));qq.displayName=i3.displayName;const Gq=k.forwardRef((({className:e,...t},n)=>q.jsx(a3,{ref:n,className:we("aspect-square size-6 rounded-full border border-gray-300 disabled:cursor-not-allowed disabled:border-gray-100 disabled:bg-gray-100","data-[state=checked]:border-blue_100 data-[state=checked]:bg-blue_100 hover:data-[state=checked]:border-blue_120","disabled:data-[state=checked]:border-gray-100 disabled:data-[state=checked]:bg-gray-100","transition-[border] duration-200 hover:data-[state=checked]:bg-blue_120 md:hover:border-2",e),...t,children:q.jsx(Wq,{className:"flex items-center justify-center",children:q.jsx(CL,{className:"stack-animate size-2 border-none",style:{fill:t.disabled?"var(--gray-300)":"white",color:t.disabled?"var(--gray-300)":"white"}})})})));Gq.displayName=a3.displayName;const Hq=u2,Kq=wy,s3=k.forwardRef((({className:e,...t},n)=>q.jsx(qh,{className:we("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n})));s3.displayName=qh.displayName;const Qq=wu("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),u3=k.forwardRef((({side:e="right",className:t,overlayClassName:n,children:r,...o},i)=>q.jsxs(Kq,{children:[q.jsx(s3,{className:we("bg-gray-900/70",n)}),q.jsxs(Gh,{ref:i,className:we(Qq({side:e}),t),...o,children:[r,q.jsxs(_y,{className:"absolute right-4 top-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[q.jsx(py,{className:"h-4 w-4"}),q.jsx("span",{className:"sr-only",children:"Close"})]})]})]})));u3.displayName=Gh.displayName;const l3=({className:e,...t})=>q.jsx("div",{className:we("flex flex-col space-y-2 text-center sm:text-left",e),...t});l3.displayName="SheetHeader";const c3=k.forwardRef((({className:e,...t},n)=>q.jsx(Dv,{ref:n,className:we("text-lg font-semibold text-foreground",e),...t})));c3.displayName=Dv.displayName;const d3=k.forwardRef((({className:e,...t},n)=>q.jsx(Nv,{ref:n,className:we("text-sm text-muted-foreground",e),...t})));d3.displayName=Nv.displayName;const[Gy,iJ]=ai("Tooltip",[Yh]),Hy=Yh(),Yq="TooltipProvider",Xq=700,LS="tooltip.open",[Jq,$C]=Gy(Yq),Zq=e=>{const{__scopeTooltip:t,delayDuration:n=Xq,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[a,u]=ut(!0),s=We(!1),l=We(0);return Ze((()=>{const e=l.current;return()=>window.clearTimeout(e)}),[]),oe(Jq,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:yt((()=>{window.clearTimeout(l.current),u(!1)}),[]),onClose:yt((()=>{window.clearTimeout(l.current),l.current=window.setTimeout((()=>u(!0)),r)}),[r]),isPointerInTransitRef:s,onPointerInTransitChange:yt((e=>{s.current=e}),[]),disableHoverableContent:o},i)},CC="Tooltip",[eG,Wv]=Gy(CC),tG=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:a,delayDuration:u}=e,s=$C(CC,e.__scopeTooltip),l=Hy(t),[c,d]=ut(null),f=pd(),p=We(0),m=a??s.disableHoverableContent,h=u??s.delayDuration,v=We(!1),[g=!1,y]=vd({prop:r,defaultProp:o,onChange:e=>{e?(s.onOpen(),document.dispatchEvent(new CustomEvent(LS))):s.onClose(),null==i||i(e)}}),b=xn((()=>g?v.current?"delayed-open":"instant-open":"closed"),[g]),w=yt((()=>{window.clearTimeout(p.current),v.current=!1,y(!0)}),[y]),x=yt((()=>{window.clearTimeout(p.current),y(!1)}),[y]),_=yt((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{v.current=!0,y(!0)}),h)}),[h,y]);return Ze((()=>()=>window.clearTimeout(p.current)),[]),oe(ON,l,oe(eG,{scope:t,contentId:f,open:g,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:yt((()=>{s.isOpenDelayed?_():w()}),[s.isOpenDelayed,_,w]),onTriggerLeave:yt((()=>{m?x():window.clearTimeout(p.current)}),[x,m]),onOpen:w,onClose:x,disableHoverableContent:m},n))},UT="TooltipTrigger",nG=Le(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Wv(UT,n),i=$C(UT,n),a=Hy(n),u=Ht(t,We(null),o.onTriggerChange),s=We(!1),l=We(!1),c=yt((()=>s.current=!1),[]);return Ze((()=>()=>document.removeEventListener("pointerup",c)),[c]),oe(rC,Ee({asChild:!0},a),oe(ht.button,Ee({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:u,onPointerMove:ot(e.onPointerMove,(e=>{"touch"!==e.pointerType&&!l.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),l.current=!0)})),onPointerLeave:ot(e.onPointerLeave,(()=>{o.onTriggerLeave(),l.current=!1})),onPointerDown:ot(e.onPointerDown,(()=>{s.current=!0,document.addEventListener("pointerup",c,{once:!0})})),onFocus:ot(e.onFocus,(()=>{s.current||o.onOpen()})),onBlur:ot(e.onBlur,o.onClose),onClick:ot(e.onClick,o.onClose)})))})),f3="TooltipPortal",[rG,oG]=Gy(f3,{forceMount:void 0}),iG=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=Wv(f3,t);return oe(rG,{scope:t,forceMount:n},oe(ia,{present:n||i.open},oe(my,{asChild:!0,container:o},r)))},Iv="TooltipContent",p3=Le(((e,t)=>{const n=oG(Iv,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=Wv(Iv,e.__scopeTooltip);return oe(ia,{present:r||a.open},a.disableHoverableContent?oe(h3,Ee({side:o},i,{ref:t})):oe(aG,Ee({side:o},i,{ref:t})))})),aG=Le(((e,t)=>{const n=Wv(Iv,e.__scopeTooltip),r=$C(Iv,e.__scopeTooltip),o=We(null),i=Ht(t,o),[a,u]=ut(null),{trigger:s,onClose:l}=n,c=o.current,{onPointerInTransitChange:d}=r,f=yt((()=>{u(null),d(!1)}),[d]),p=yt(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=mG([...fG(r,dG(r,n.getBoundingClientRect())),...pG(t.getBoundingClientRect())]);u(o),d(!0)}),[d]);return Ze((()=>()=>f()),[f]),Ze((()=>{if(s&&c){const e=e=>p(e,c),t=e=>p(e,s);return s.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{s.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}}),[s,c,p,f]),Ze((()=>{if(a){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==s?void 0:s.contains(t))||(null==c?void 0:c.contains(t)),o=!hG(n,a);r?f():o&&(f(),l())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[s,c,a,l,f]),oe(h3,Ee({},e,{ref:i}))})),[sG,uG]=Gy(CC,{isInside:!1}),h3=Le(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...u}=e,s=Wv(Iv,n),l=Hy(n),{onClose:c}=s;return Ze((()=>(document.addEventListener(LS,c),()=>document.removeEventListener(LS,c))),[c]),Ze((()=>{if(s.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(s.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[s.trigger,c]),oe(hy,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},oe(oC,Ee({"data-state":s.stateAttribute},l,u,{ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),oe(c$,null,r),oe(sG,{scope:n,isInside:!0},oe(qU,{id:s.contentId,role:"tooltip"},o||r))))})),lG="TooltipArrow",cG=Le(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Hy(n);return uG(lG,n).isInside?null:oe(wV,Ee({},o,r,{ref:t}))}));function dG(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function fG(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}function pG(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function hG(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,u=t[e].y,s=t[i].x,l=t[i].y;u>r!=l>r&&n<(s-a)*(r-u)/(l-u)+a&&(o=!o)}return o}function mG(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),vG(t)}function vG(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const gG=iG,m3=p3,yG=cG,wG=()=>{const e=window.innerWidth;return e<768?"mobile":e<1024?"tablet":"desktop"},_G=e=>{if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)},bG=e=>_G(e)&&"type"in e&&"string"==typeof e.type,Ct=e=>{const t=t=>({type:e,payload:t});return t.toString=()=>`${e}`,t.type=e,t.match=t=>bG(t)&&t.type===e,t};Ct("remoteReady"),Ct("askLogin"),Ct("reselectUser"),Ct("requestLogout");const xG=Ct("setConfirmLeavePage"),v3=Ct("requestChangePath");Ct("wsSubscribe"),Ct("wsUnSubscribe"),Ct("hostStoreConnect"),Ct("remoteLogin");const SG=Ct("remoteLogout");Ct("wsOnMessage");const $G=Ct("setRouterPath"),CG=Ct("setDeviceType"),IG=Ct("setDeviceWidth"),EG=Ct("setUserError"),PG=Ct("setUserIsError"),RG=Ct("setUserPending"),TG=Ct("setUserSuccess"),OG=Ct("setUserData"),AG=Ct("updateAccountData"),DG=Ct("updateUser"),NG=Ct("addNotification"),kG=Ct("markNotification"),MG=Ct("setNotificationsError"),LG=Ct("setNotificationsList"),FG=Ct("setNotificationsPending"),BG=Ct("setNotificationsTotalCount"),jG=Ct("setNotificationsUnreadCount"),VG=Ct("acceptAllFollowRequests"),UG=Ct("resetNotificationsState"),zG=Ct("undoNotification"),WG=Ct("setInstanceInfo"),qG=Ct("setInstanceInfoPending"),GG=Ct("setInstanceInfoError"),HG=Ct("setPlatformSettings"),KG=Ct("setProfileSettings");Ct("setGroupData"),Ct("setGroupLoading"),Ct("requestLocalStorageGet"),Ct("requestLocalStorageSet"),Ct("requestLocalStorageRemove"),Ct("requestLocalStorageClear"),Ct("requestLocalStorageKeys"),Ct("requestLocalStorageHas"),Ct("sendLocalStorageResponse"),Ct("sendLocalStorageChanged");const QG=e=>{try{const{type:t,payload:n}=e,r={type:t};return void 0!==n&&(r.payload=JSON.parse(JSON.stringify(n))),r}catch(t){return El.warn(`Could not serialize action type: ${e.type}`,t),{type:e.type,payload:`[Non-serializable payload for action: ${e.type}]`}}},YG=({action:e,windowElement:t,whitelist:n})=>{if(t)try{const{type:r}=e;if(!n.some((({type:e})=>e===r||"*"===e)))return;const o=QG(e);t.postMessage(o,"*")}catch(e){El.error("Failed to process or send message:",e)}},XG=({onMessage:e,whitelist:t,sourceWindow:n})=>{const r=r=>{const o=r.origin===window.location.origin,i=!n||r.source===n,a=r.data&&"object"==typeof r.data&&"type"in r.data,u=t.some((({type:e})=>e===r.data.type||"*"===e));!o&&i&&a&&u&&e(r.data)};return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}},zT=Al("requestMicroFrontendFetch"),JG=Al("sendMicroFrontendFetchResponse"),ZG={deviceType:wG(),deviceWidth:window.innerWidth},g3=Wo({name:"ui",initialState:ZG,reducers:{},extraReducers:e=>{e.addCase(CG,((e,{payload:t})=>{e.deviceType=t})),e.addCase(IG,((e,{payload:t})=>{e.deviceWidth=t}))},selectors:{selectDeviceType:e=>e.deviceType,selectDeviceWidth:e=>e.deviceWidth,selectIsMobile:e=>"mobile"===e.deviceType,selectIsTablet:e=>"tablet"===e.deviceType,selectIsDesktop:e=>"desktop"===e.deviceType}});var dx,WT,fx,qT,px,GT,hx,HT,mx,KT,vx,QT,gx,YT,yx,XT,wx,JT,_x,ZT,bx,eO,xx,tO,Sx,nO,$x,rO,Cx,oO,Ix,iO,Ex,aO,Px,sO,Rx,uO,Tx,lO,Ox,cO,Ax,dO,Dx,fO,Nx,pO,kx,hO,Mx,mO,Lx,vO,Fx,gO,Bx,yO,jx,wO,Vx,_O,Ux,bO,zx,xO,Wx,SO,qx,$O,Gx,CO,Hx,IO,Kx,EO,Qx,PO,Yx,RO,Xx,TO;function y3(){if(WT)return dx;WT=1;var e=Y2(),t=e&&new e;return dx=t}function w3(){if(qT)return fx;qT=1;var e=k$(),t=y3();return fx=t?function(e,n){return t.set(e,n),e}:e}function Ky(){if(GT)return px;GT=1;var e=Ty(),t=xs();return px=function(n){return function(){var r=arguments;switch(r.length){case 0:return new n;case 1:return new n(r[0]);case 2:return new n(r[0],r[1]);case 3:return new n(r[0],r[1],r[2]);case 4:return new n(r[0],r[1],r[2],r[3]);case 5:return new n(r[0],r[1],r[2],r[3],r[4]);case 6:return new n(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new n(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var o=e(n.prototype),i=n.apply(o,r);return t(i)?i:o}},px}function eH(){if(HT)return hx;HT=1;var e=Ky(),t=si();return hx=function(n,r,o){var i=1&r,a=e(n);return function e(){return(this&&this!==t&&this instanceof e?a:n).apply(i?o:this,arguments)}},hx}function _3(){if(KT)return mx;KT=1;var e=Math.max;return mx=function(t,n,r,o){for(var i=-1,a=t.length,u=r.length,s=-1,l=n.length,c=e(a-u,0),d=Array(l+c),f=!o;++s<l;)d[s]=n[s];for(;++i<u;)(f||i<a)&&(d[r[i]]=t[i]);for(;c--;)d[s++]=t[i++];return d}}function b3(){if(QT)return vx;QT=1;var e=Math.max;return vx=function(t,n,r,o){for(var i=-1,a=t.length,u=-1,s=r.length,l=-1,c=n.length,d=e(a-s,0),f=Array(d+c),p=!o;++i<d;)f[i]=t[i];for(var m=i;++l<c;)f[m+l]=n[l];for(;++u<s;)(p||i<a)&&(f[m+r[u]]=t[i++]);return f}}function tH(){if(YT)return gx;return YT=1,gx=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}}function IC(){if(XT)return yx;return XT=1,yx=function(){}}function EC(){if(JT)return wx;JT=1;var e=Ty(),t=IC();function n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}return n.prototype=e(t.prototype),n.prototype.constructor=n,wx=n}function x3(){if(ZT)return _x;ZT=1;var e=y3(),t=D4();return _x=e?function(t){return e.get(t)}:t}function nH(){if(eO)return bx;eO=1;return bx={}}function rH(){if(tO)return xx;tO=1;var e=nH(),t=Object.prototype.hasOwnProperty;return xx=function(n){for(var r=n.name+"",o=e[r],i=t.call(e,r)?o.length:0;i--;){var a=o[i],u=a.func;if(null==u||u==n)return a.name}return r}}function S3(){if(nO)return Sx;nO=1;var e=Ty(),t=IC();function n(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}return n.prototype=e(t.prototype),n.prototype.constructor=n,Sx=n}function oH(){if(rO)return $x;rO=1;var e=EC(),t=S3(),n=Ry();return $x=function(r){if(r instanceof e)return r.clone();var o=new t(r.__wrapped__,r.__chain__);return o.__actions__=n(r.__actions__),o.__index__=r.__index__,o.__values__=r.__values__,o}}function iH(){if(oO)return Cx;oO=1;var e=EC(),t=S3(),n=IC(),r=Pi(),o=aa(),i=oH(),a=Object.prototype.hasOwnProperty;function u(n){if(o(n)&&!r(n)&&!(n instanceof e)){if(n instanceof t)return n;if(a.call(n,"__wrapped__"))return i(n)}return new t(n)}return u.prototype=n.prototype,u.prototype.constructor=u,Cx=u}function aH(){if(iO)return Ix;iO=1;var e=EC(),t=x3(),n=rH(),r=iH();return Ix=function(o){var i=n(o),a=r[i];if("function"!=typeof a||!(i in e.prototype))return!1;if(o===a)return!0;var u=t(a);return!!u&&o===u[0]}}function $3(){if(aO)return Ex;aO=1;var e=w3(),t=tD()(e);return Ex=t}function sH(){if(sO)return Px;sO=1;var e=/\{\n\/\* \[wrapped with (.+)\] \*/,t=/,? & /;return Px=function(n){var r=n.match(e);return r?r[1].split(t):[]}}function uH(){if(uO)return Rx;uO=1;var e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;return Rx=function(t,n){var r=n.length;if(!r)return t;var o=r-1;return n[o]=(r>1?"& ":"")+n[o],n=n.join(r>2?", ":" "),t.replace(e,"{\n/* [wrapped with "+n+"] */\n")}}function lH(){if(lO)return Tx;lO=1;var e=F$(),t=A4(),n=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];return Tx=function(r,o){return e(n,(function(e){var n="_."+e[0];o&e[1]&&!t(r,n)&&r.push(n)})),r.sort()}}function C3(){if(cO)return Ox;cO=1;var e=sH(),t=uH(),n=nD(),r=lH();return Ox=function(o,i,a){var u=i+"";return n(o,t(u,r(e(u),a)))}}function I3(){if(dO)return Ax;dO=1;var e=aH(),t=$3(),n=C3();return Ax=function(r,o,i,a,u,s,l,c,d,f){var p=8&o;o|=p?32:64,4&(o&=~(p?64:32))||(o&=-4);var m=[r,o,u,p?s:void 0,p?l:void 0,p?void 0:s,p?void 0:l,c,d,f],h=i.apply(void 0,m);return e(r)&&t(h,m),h.placeholder=a,n(h,r,o)}}function E3(){if(fO)return Dx;return fO=1,Dx=function(e){return e.placeholder}}function cH(){if(pO)return Nx;pO=1;var e=Ry(),t=T$(),n=Math.min;return Nx=function(r,o){for(var i=r.length,a=n(o.length,i),u=e(r);a--;){var s=o[a];r[a]=t(s,i)?u[s]:void 0}return r}}function PC(){if(hO)return kx;hO=1;var e="__lodash_placeholder__";return kx=function(t,n){for(var r=-1,o=t.length,i=0,a=[];++r<o;){var u=t[r];(u===n||u===e)&&(t[r]=e,a[i++]=r)}return a}}function P3(){if(mO)return Mx;mO=1;var e=_3(),t=b3(),n=tH(),r=Ky(),o=I3(),i=E3(),a=cH(),u=PC(),s=si();return Mx=function l(c,d,f,p,m,h,v,g,y,b){var w=128&d,x=1&d,_=2&d,k=24&d,S=512&d,A=_?void 0:r(c);return function E(){for(var I=arguments.length,C=Array(I),P=I;P--;)C[P]=arguments[P];if(k)var q=i(E),O=n(C,q);if(p&&(C=e(C,p,m,k)),h&&(C=t(C,h,v,k)),I-=O,k&&I<b){var T=u(C,q);return o(c,d,l,E.placeholder,f,C,T,g,y,b-I)}var N=x?f:this,R=_?N[c]:c;return I=C.length,g?C=a(C,g):S&&I>1&&C.reverse(),w&&y<I&&(C.length=y),this&&this!==s&&this instanceof E&&(R=A||r(R)),R.apply(N,C)}},Mx}function dH(){if(vO)return Lx;vO=1;var e=M$(),t=Ky(),n=P3(),r=I3(),o=E3(),i=PC(),a=si();return Lx=function(u,s,l){var c=t(u);return function t(){for(var d=arguments.length,f=Array(d),p=d,m=o(t);p--;)f[p]=arguments[p];var h=d<3&&f[0]!==m&&f[d-1]!==m?[]:i(f,m);return(d-=h.length)<l?r(u,s,n,t.placeholder,void 0,f,h,void 0,void 0,l-d):e(this&&this!==a&&this instanceof t?c:u,this,f)}},Lx}function fH(){if(gO)return Fx;gO=1;var e=M$(),t=Ky(),n=si();return Fx=function(r,o,i,a){var u=1&o,s=t(r);return function t(){for(var o=-1,l=arguments.length,c=-1,d=a.length,f=Array(d+l),p=this&&this!==n&&this instanceof t?s:r;++c<d;)f[c]=a[c];for(;l--;)f[c++]=arguments[++o];return e(p,u?i:this,f)}},Fx}function pH(){if(yO)return Bx;yO=1;var e=_3(),t=b3(),n=PC(),r="__lodash_placeholder__",o=128,i=Math.min;return Bx=function(a,u){var s=a[1],l=u[1],c=s|l,d=c<131,f=l==o&&8==s||l==o&&256==s&&a[7].length<=u[8]||384==l&&u[7].length<=u[8]&&8==s;if(!d&&!f)return a;1&l&&(a[2]=u[2],c|=1&s?0:4);var p=u[3];if(p){var m=a[3];a[3]=m?e(m,p,u[4]):p,a[4]=m?n(a[3],r):u[4]}return(p=u[5])&&(m=a[5],a[5]=m?t(m,p,u[6]):p,a[6]=m?n(a[5],r):u[6]),(p=u[7])&&(a[7]=p),l&o&&(a[8]=null==a[8]?u[8]:i(a[8],u[8])),null==a[9]&&(a[9]=u[9]),a[0]=u[0],a[1]=c,a}}function RC(){if(wO)return jx;wO=1;var e=w3(),t=eH(),n=dH(),r=P3(),o=fH(),i=x3(),a=pH(),u=$3(),s=C3(),l=aD(),c=Math.max;return jx=function(d,f,p,m,h,v,g,y){var b=2&f;if(!b&&"function"!=typeof d)throw new TypeError("Expected a function");var w=m?m.length:0;if(w||(f&=-97,m=h=void 0),g=void 0===g?g:c(l(g),0),y=void 0===y?y:l(y),w-=h?h.length:0,64&f){var x=m,_=h;m=h=void 0}var k=b?void 0:i(d),S=[d,f,p,m,h,x,_,v,g,y];if(k&&a(S,k),d=S[0],f=S[1],p=S[2],m=S[3],h=S[4],!(y=S[9]=void 0===S[9]?b?0:d.length:c(S[9]-w,0))&&24&f&&(f&=-25),f&&1!=f)A=8==f||16==f?n(d,f,y):32!=f&&33!=f||h.length?r.apply(void 0,S):o(d,f,p,m);else var A=t(d,f,p);return s((k?e:u)(A,S),d,f)}}function hH(){if(_O)return Vx;_O=1;var e=RC();return Vx=function(t,n,r){return n=r?void 0:n,n=t&&null==n?t.length:n,e(t,128,void 0,void 0,void 0,void 0,n)}}function mH(){if(bO)return Ux;bO=1;var e=cD();return Ux=function(t){return e(t,4)}}function vH(){if(xO)return zx;xO=1;var e=RC();function t(n,r,o){var i=e(n,8,void 0,void 0,void 0,void 0,void 0,r=o?void 0:r);return i.placeholder=t.placeholder,i}return t.placeholder={},zx=t}function gH(){if(SO)return Wx;SO=1;var e=Dl(),t=aa(),n=eF();return Wx=function(r){if(!t(r))return!1;var o=e(r);return"[object Error]"==o||"[object DOMException]"==o||"string"==typeof r.message&&"string"==typeof r.name&&!n(r)}}function yH(){if($O)return qx;$O=1;var e=Fv(),t=aa();return qx=function(n){return t(n)&&"[object WeakMap]"==e(n)}}function wH(){if(CO)return Gx;CO=1;var e=cD(),t=E4();return Gx=function(n){return t("function"==typeof n?n:e(n,1))}}function _H(){if(IO)return Hx;IO=1;var e=RC(),t=bF(),n=t((function(t,n){return e(t,256,void 0,void 0,void 0,n)}));return Hx=n}function bH(){if(EO)return Kx;EO=1;var e=N2(),t=Ry(),n=Pi(),r=Mv(),o=D2(),i=Lv(),a=k2();return Kx=function(u){return n(u)?e(u,i):r(u)?[u]:t(o(a(u)))}}function xH(){return PO||(PO=1,Qx={ary:hH(),assign:uD(),clone:mH(),curry:vH(),forEach:F$(),isArray:Pi(),isError:gH(),isFunction:xy(),isWeakMap:yH(),iteratee:wH(),keys:H2(),rearg:_H(),toInteger:aD(),toPath:bH()}),Qx}function SH(){if(RO)return Yx;RO=1;var e=SA(),t=xH();return Yx=function(n,r,o){return e(t,n,r,o)}}function $H(){if(TO)return Xx;TO=1;var e=SH()("debounce",oD());return e.placeholder=xA(),Xx=e}$H();const CH=()=>dy(g3.selectors.selectIsMobile);function OO({className:e,...t}){return q.jsx("div",{className:we("animate-pulse rounded-md bg-muted",e),...t})}const IH="sidebar_state",EH=604800,PH="12rem",RH="18rem",TH="2rem",OH="b",R3=k.createContext(null);function Qy(){const e=k.useContext(R3);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const AH=k.forwardRef((({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:i,...a},u)=>{const s=CH(),[l,c]=k.useState(!1),[d,f]=k.useState(e),p=t??d,m=k.useCallback((e=>{const t="function"==typeof e?e(p):e;n?n(t):f(t),document.cookie=`${IH}=${t}; path=/; max-age=${EH}`}),[n,p]),h=k.useCallback((()=>s?c((e=>!e)):m((e=>!e))),[s,m,c]);k.useEffect((()=>{const e=e=>{e.key===OH&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),h())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[h]);const v=p?"expanded":"collapsed",g=k.useMemo((()=>({state:v,open:p,setOpen:m,isMobile:s,openMobile:l,setOpenMobile:c,toggleSidebar:h})),[v,p,m,s,l,c,h]);return q.jsx(R3.Provider,{value:g,children:q.jsx(Zq,{delayDuration:0,children:q.jsx("div",{style:{"--sidebar-width":PH,"--sidebar-width-icon":TH,...o},className:we("group/sidebar-wrapper flex min-h-svh w-full bg-gray-100 has-[[data-variant=inset]]:bg-sidebar",r),ref:u,...a,children:i})})})}));AH.displayName="SidebarProvider";const DH=k.forwardRef((({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...i},a)=>{const{isMobile:u,state:s,openMobile:l,setOpenMobile:c}=Qy();return"none"===n?q.jsx("div",{className:we("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:a,...i,children:o}):u?q.jsx(Hq,{open:l,onOpenChange:c,children:q.jsxs(u3,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":RH},side:e,children:[q.jsxs(l3,{className:"sr-only",children:[q.jsx(c3,{children:"Sidebar"}),q.jsx(d3,{children:"Displays the mobile sidebar."})]}),q.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):q.jsxs("div",{ref:a,className:"group peer hidden text-sidebar-foreground md:block","data-state":s,"data-collapsible":"collapsed"===s?n:"","data-variant":t,"data-side":e,children:[q.jsx("div",{className:we("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===t||"inset"===t?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),q.jsx("div",{className:we("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex","left"===e?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===t||"inset"===t?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...i,children:q.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-sm group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})}));DH.displayName="Sidebar";const NH=k.forwardRef((({className:e,onClick:t,...n},r)=>{const{toggleSidebar:o,open:i}=Qy();return q.jsx(Av,{ref:r,"data-sidebar":"trigger",variant:"tertiary",size:"icon_m",className:we("size-6 text-gray-900",e),onClick:e=>{null==t||t(e),o()},...n,children:i?q.jsx(NL,{size:16}):q.jsx(AL,{size:16})})}));NH.displayName="SidebarTrigger";const kH=k.forwardRef((({className:e,...t},n)=>{const{toggleSidebar:r}=Qy();return q.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:we("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}));kH.displayName="SidebarRail";const MH=k.forwardRef((({className:e,...t},n)=>q.jsx("main",{ref:n,className:we("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-m md:peer-data-[variant=inset]:shadow",e),...t})));MH.displayName="SidebarInset";const LH=k.forwardRef((({className:e,...t},n)=>q.jsx(Gk,{ref:n,"data-sidebar":"input",className:we("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t})));LH.displayName="SidebarInput";const FH=k.forwardRef((({className:e,...t},n)=>q.jsx("div",{ref:n,"data-sidebar":"header",className:we("flex flex-col gap-xxs p-xs",e),...t})));FH.displayName="SidebarHeader";const BH=k.forwardRef((({className:e,...t},n)=>q.jsx("div",{ref:n,"data-sidebar":"footer",className:we("flex flex-col gap-2 p-2",e),...t})));BH.displayName="SidebarFooter";const jH=k.forwardRef((({className:e,...t},n)=>q.jsx(fC,{ref:n,"data-sidebar":"separator",className:we("mx-2 w-auto bg-sidebar-border",e),...t})));jH.displayName="SidebarSeparator";const VH=k.forwardRef((({className:e,...t},n)=>q.jsx("div",{ref:n,"data-sidebar":"content",className:we("flex min-h-0 flex-1 flex-col gap-xxxs overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})));VH.displayName="SidebarContent";const UH=k.forwardRef((({className:e,...t},n)=>q.jsx("div",{ref:n,"data-sidebar":"group",className:we("relative flex w-full min-w-0 flex-col pt-xs",e),...t})));UH.displayName="SidebarGroup";const zH=k.forwardRef((({className:e,asChild:t=!1,...n},r)=>{const o=t?xd:"div";return q.jsx(o,{ref:r,"data-sidebar":"group-label",className:we("flex h-s shrink-0 items-center rounded-md px-xxs py-xxs text-xs font-semibold text-gray-700 opacity-60 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-xl group-data-[collapsible=icon]:opacity-0",e),...n})}));zH.displayName="SidebarGroupLabel";const WH=k.forwardRef((({className:e,asChild:t=!1,...n},r)=>{const o=t?xd:"button";return q.jsx(o,{ref:r,"data-sidebar":"group-action",className:we("absolute right-xs top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})}));WH.displayName="SidebarGroupAction";const qH=k.forwardRef((({className:e,...t},n)=>q.jsx("div",{ref:n,"data-sidebar":"group-content",className:we("w-full text-sm",e),...t})));qH.displayName="SidebarGroupContent";const GH=k.forwardRef((({className:e,...t},n)=>q.jsx("ul",{ref:n,"data-sidebar":"menu",className:we("flex w-full min-w-0 flex-col p-xs font-semibold text-gray-700 [&_svg]:size-4",e),...t})));GH.displayName="SidebarMenu";const HH=k.forwardRef((({className:e,...t},n)=>q.jsx("li",{ref:n,"data-sidebar":"menu-item",className:we("group/menu-item relative",e),...t})));HH.displayName="SidebarMenuItem";const KH=wu("peer/menu-button flex w-full items-center gap-xxs overflow-hidden rounded-sm p-xxs text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:text-blue_100 hover:bg-white focus-visible:ring-2 active:bg-white active:text-blue_100 disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-white data-[active=true]:font-medium data-[active=true]:text-blue_100 data-[state=open]:hover:bg-white data-[state=open]:hover:text-blue_100 group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:text-blue_100 hover:bg-white",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-white hover:text-blue_100 hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-s text-sm",sm:"h-m text-xs",lg:"h-l text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),QH=k.forwardRef((({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:i,...a},u)=>{const s=e?xd:"button",{isMobile:l,state:c}=Qy(),d=q.jsx(s,{ref:u,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:we(KH({variant:n,size:r}),i),...a});return o?("string"==typeof o&&(o={children:o}),q.jsxs(tG,{children:[q.jsx(nG,{asChild:!0,children:d}),q.jsx(p3,{side:"right",align:"center",hidden:"collapsed"!==c||l,...o})]})):d}));QH.displayName="SidebarMenuButton";const YH=k.forwardRef((({className:e,asChild:t=!1,showOnHover:n=!1,...r},o)=>{const i=t?xd:"button";return q.jsx(i,{ref:o,"data-sidebar":"menu-action",className:we("absolute right-xxxs top-xxs flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-xxxs","peer-data-[size=default]/menu-button:top-xxs","peer-data-[size=lg]/menu-button:top-xs","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})}));YH.displayName="SidebarMenuAction";const XH=k.forwardRef((({className:e,...t},n)=>q.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:we("pointer-events-none absolute right-xxxs flex h-m min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-xxxs","peer-data-[size=default]/menu-button:top-xxs","peer-data-[size=lg]/menu-button:top-xs","group-data-[collapsible=icon]:hidden",e),...t})));XH.displayName="SidebarMenuBadge";const JH=k.forwardRef((({className:e,showIcon:t=!1,...n},r)=>{const o=k.useMemo((()=>`${Math.floor(40*Math.random())+50}%`),[]);return q.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:we("flex h-8 items-center gap-xxs rounded-md px-xxs",e),...n,children:[t&&q.jsx(OO,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),q.jsx(OO,{className:"h-xxxs max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})}));JH.displayName="SidebarMenuSkeleton";const ZH=k.forwardRef((({className:e,...t},n)=>q.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:we("flex min-w-0 translate-x-px flex-col gap-xxxs border-l border-sidebar-border","group-data-[collapsible=icon]:hidden",e),...t})));ZH.displayName="SidebarMenuSub";const eK=k.forwardRef((({...e},t)=>q.jsx("li",{ref:t,...e})));eK.displayName="SidebarMenuSubItem";const tK=k.forwardRef((({asChild:e=!1,size:t="md",isActive:n,className:r,...o},i)=>{const a=e?xd:"a";return q.jsx(a,{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:we("flex h-s min-w-0 -translate-x-px items-center gap-xxs overflow-hidden rounded-sm px-xxs text-sm text-gray-700 outline-none ring-sidebar-ring hover:bg-white hover:text-blue_100 focus-visible:ring-2 active:bg-white active:text-blue_100 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-blue_100","data-[active=true]:bg-white data-[active=true]:text-blue_100","sm"===t&&"text-xs","md"===t&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})}));tK.displayName="SidebarMenuSubButton";const T3="Switch",[nK,aJ]=ai(T3),[rK,oK]=nK(T3),iK=Le(((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:a,disabled:u,value:s="on",onCheckedChange:l,...c}=e,[d,f]=ut(null),p=Ht(t,(e=>f(e))),m=We(!1),h=!d||!!d.closest("form"),[v=!1,g]=vd({prop:o,defaultProp:i,onChange:l});return oe(rK,{scope:n,checked:v,disabled:u},oe(ht.button,Ee({type:"button",role:"switch","aria-checked":v,"aria-required":a,"data-state":O3(v),"data-disabled":u?"":void 0,disabled:u,value:s},c,{ref:p,onClick:ot(e.onClick,(e=>{g((e=>!e)),h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))})),h&&oe(uK,{control:d,bubbles:!m.current,name:r,value:s,checked:v,required:a,disabled:u,style:{transform:"translateX(-100%)"}}))})),aK="SwitchThumb",sK=Le(((e,t)=>{const{__scopeSwitch:n,...r}=e,o=oK(aK,n);return oe(ht.span,Ee({"data-state":O3(o.checked),"data-disabled":o.disabled?"":void 0},r,{ref:t}))})),uK=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=We(null),a=Oy(n),u=Ay(t);return Ze((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[a,n,r]),oe("input",Ee({type:"checkbox","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:i,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function O3(e){return e?"checked":"unchecked"}const A3=iK,lK=sK,cK=k.forwardRef((({className:e,...t},n)=>q.jsx(A3,{className:we("group peer inline-flex h-xs w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background data-[state=checked]:bg-blue_100 data-[state=unchecked]:bg-gray-200","disabled:cursor-not-allowed disabled:!bg-gray-100 md:hover:data-[state=checked]:bg-blue_120 md:hover:data-[state=unchecked]:!bg-gray-300",e),...t,ref:n,children:q.jsx(lK,{className:we("pointer-events-none block size-xxs rounded-full bg-background shadow-lg ring-0 transition-[transform,width] data-[state=checked]:translate-x-[20px] data-[state=unchecked]:translate-x-0",{"md:group-hover:w-[26px] md:group-hover:data-[state=checked]:translate-x-[14px]":!t.disabled,"bg-gray-300":t.disabled})})})));cK.displayName=A3.displayName;const dK=(e,t,{skipParams:n=!1}={})=>{const{props:r,params:o}=Object.keys(t).reduce(((n,r)=>(e.includes(`:${r}`)?n.props[r]=t[r]:n.params.set(r,t[r]),n)),{props:{},params:new URLSearchParams}),i=Object.keys(r).reduce(((e,t)=>{const n=new RegExp(`/:${t}\\?`,"g");return(e=e.replace(n,`/${r[t]}`)).replace(new RegExp(`:${t}`,"g"),r[t])}),e).replace(/\/:[^/]+?\?/g,"");return o.toString()&&!n?`${i}?${o.toString()}`:i},fK=e=>e&&zf.values(e).length?"?"+new URLSearchParams(e).toString():"";var TC=Symbol.for("immer-nothing"),hv=Symbol.for("immer-draftable"),Ii=Symbol.for("immer-state");function Po(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var tp=Object.getPrototypeOf;function Tl(e){return!!e&&!!e[Ii]}function Ol(e){var t;return!!e&&(D3(e)||Array.isArray(e)||!!e[hv]||!(null==(t=e.constructor)||!t[hv])||qv(e)||Gv(e))}var pK=Object.prototype.constructor.toString();function D3(e){if(!e||"object"!=typeof e)return!1;const t=tp(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===pK}function hK(e){return Tl(e)||Po(15,e),e[Ii].base_}function zh(e,t){0===np(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function np(e){const t=e[Ii];return t?t.type_:Array.isArray(e)?1:qv(e)?2:Gv(e)?3:0}function Ev(e,t){return 2===np(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Jx(e,t){return 2===np(e)?e.get(t):e[t]}function N3(e,t,n){const r=np(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function mK(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function qv(e){return e instanceof Map}function Gv(e){return e instanceof Set}function Ff(e){return e.copy_||e.base_}function FS(e,t){if(qv(e))return new Map(e);if(Gv(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&D3(e))return tp(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Ii];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const o=r[t],i=n[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(tp(e),n)}function OC(e,t=!1){return Yy(e)||Tl(e)||!Ol(e)||(np(e)>1&&(e.set=e.add=e.clear=e.delete=vK),Object.freeze(e),t&&zh(e,((e,t)=>OC(t,!0)))),e}function vK(){Po(2)}function Yy(e){return Object.isFrozen(e)}var Pv,BS={};function rp(e){const t=BS[e];return t||Po(0,e),t}function gK(e,t){BS[e]||(BS[e]=t)}function k3(){return Pv}function yK(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function AO(e,t){t&&(rp("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function jS(e){VS(e),e.drafts_.forEach(wK),e.drafts_=null}function VS(e){e===Pv&&(Pv=e.parent_)}function DO(e){return Pv=yK(Pv,e)}function wK(e){const t=e[Ii];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function NO(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[Ii].modified_&&(jS(t),Po(4)),Ol(e)&&(e=uy(t,e),t.parent_||ly(t,e)),t.patches_&&rp("Patches").generateReplacementPatches_(n[Ii].base_,e,t.patches_,t.inversePatches_)):e=uy(t,n,[]),jS(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==TC?e:void 0}function uy(e,t,n){if(Yy(t))return t;const r=t[Ii];if(!r)return zh(t,((o,i)=>kO(e,r,t,o,i,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return ly(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),zh(o,((o,a)=>kO(e,r,t,o,a,n,i))),ly(e,t,!1),n&&e.patches_&&rp("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function kO(e,t,n,r,o,i,a){if(Tl(o)){const a=uy(e,o,i&&t&&3!==t.type_&&!Ev(t.assigned_,r)?i.concat(r):void 0);if(N3(n,r,a),!Tl(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(Ol(o)&&!Yy(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;uy(e,o),(!t||!t.scope_.parent_)&&ly(e,o)}}function ly(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&OC(t,n)}function _K(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:k3(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=AC;n&&(o=[r],i=Rv);const{revoke:a,proxy:u}=Proxy.revocable(o,i);return r.draft_=u,r.revoke_=a,u}var AC={get(e,t){if(t===Ii)return e;const n=Ff(e);if(!Ev(n,t))return bK(e,n,t);const r=n[t];return e.finalized_||!Ol(r)?r:r===Zx(e.base_,t)?(eS(e),e.copy_[t]=zS(r,e)):r},has:(e,t)=>t in Ff(e),ownKeys:e=>Reflect.ownKeys(Ff(e)),set(e,t,n){const r=M3(Ff(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Zx(Ff(e),t),o=null==r?void 0:r[Ii];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(mK(n,r)&&(void 0!==n||Ev(e.base_,t)))return!0;eS(e),US(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Zx(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,eS(e),US(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Ff(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){Po(11)},getPrototypeOf:e=>tp(e.base_),setPrototypeOf(){Po(12)}},Rv={};function Zx(e,t){const n=e[Ii];return(n?Ff(n):e)[t]}function bK(e,t,n){var r;const o=M3(t,n);return o?"value"in o?o.value:null==(r=o.get)?void 0:r.call(e.draft_):void 0}function M3(e,t){if(!(t in e))return;let n=tp(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=tp(n)}}function US(e){e.modified_||(e.modified_=!0,e.parent_&&US(e.parent_))}function eS(e){e.copy_||(e.copy_=FS(e.base_,e.scope_.immer_.useStrictShallowCopy_))}zh(AC,((e,t)=>{Rv[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Rv.deleteProperty=function(e,t){return Rv.set.call(this,e,t,void 0)},Rv.set=function(e,t,n){return AC.set.call(this,e[0],t,n,e[0])};var xK=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,(e=>t.call(this,e,...o)))}}let r;if("function"!=typeof t&&Po(6),void 0!==n&&"function"!=typeof n&&Po(7),Ol(e)){const o=DO(this),i=zS(e,void 0);let a=!0;try{r=t(i),a=!1}finally{a?jS(o):VS(o)}return AO(o,n),NO(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===TC&&(r=void 0),this.autoFreeze_&&OC(r,!0),n){const t=[],o=[];rp("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}Po(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof(null==e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Ol(e)||Po(8),Tl(e)&&(e=SK(e));const t=DO(this),n=zS(e,void 0);return n[Ii].isManual_=!0,VS(t),n}finishDraft(e,t){const n=e&&e[Ii];(!n||!n.isManual_)&&Po(9);const{scope_:r}=n;return AO(r,t),NO(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=rp("Patches").applyPatches_;return Tl(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function zS(e,t){const n=qv(e)?rp("MapSet").proxyMap_(e,t):Gv(e)?rp("MapSet").proxySet_(e,t):_K(e,t);return(t?t.scope_:k3()).drafts_.push(n),n}function SK(e){return Tl(e)||Po(10,e),L3(e)}function L3(e){if(!Ol(e)||Yy(e))return e;const t=e[Ii];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=FS(e,t.scope_.immer_.useStrictShallowCopy_)}else n=FS(e,!0);return zh(n,((e,t)=>{N3(n,e,L3(t))})),t&&(t.finalized_=!1),n}function $K(){const e="replace",t="remove";function n(e){if(!Ol(e))return e;if(Array.isArray(e))return e.map(n);if(qv(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,n(t)])));if(Gv(e))return new Set(Array.from(e).map(n));const t=Object.create(tp(e));for(const r in e)t[r]=n(e[r]);return Ev(e,hv)&&(t[hv]=e[hv]),t}function r(e){return Tl(e)?n(e):e}gK("Patches",{applyPatches_:function(r,o){return o.forEach((o=>{const{path:i,op:a}=o;let u=r;for(let e=0;e<i.length-1;e++){const t=np(u);let n=i[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&Po(19),"function"==typeof u&&"prototype"===n&&Po(19),u=Jx(u,n),"object"!=typeof u&&Po(18,i.join("/"))}const s=np(u),l=n(o.value),c=i[i.length-1];switch(a){case e:switch(s){case 2:return u.set(c,l);case 3:Po(16);default:return u[c]=l}case"add":switch(s){case 1:return"-"===c?u.push(l):u.splice(c,0,l);case 2:return u.set(c,l);case 3:return u.add(l);default:return u[c]=l}case t:switch(s){case 1:return u.splice(c,1);case 2:return u.delete(c);case 3:return u.delete(o.value);default:return delete u[c]}default:Po(17,a)}})),r},generatePatches_:function(n,o,i,a){switch(n.type_){case 0:case 2:return function(n,o,i,a){const{base_:u,copy_:s}=n;zh(n.assigned_,((n,l)=>{const c=Jx(u,n),d=Jx(s,n),f=l?Ev(u,n)?e:"add":t;if(c===d&&f===e)return;const p=o.concat(n);i.push(f===t?{op:f,path:p}:{op:f,path:p,value:d}),a.push("add"===f?{op:t,path:p}:f===t?{op:"add",path:p,value:r(c)}:{op:e,path:p,value:r(c)})}))}(n,o,i,a);case 1:return function(n,o,i,a){let{base_:u,assigned_:s}=n,l=n.copy_;l.length<u.length&&([u,l]=[l,u],[i,a]=[a,i]);for(let t=0;t<u.length;t++)if(s[t]&&l[t]!==u[t]){const n=o.concat([t]);i.push({op:e,path:n,value:r(l[t])}),a.push({op:e,path:n,value:r(u[t])})}for(let e=u.length;e<l.length;e++){const t=o.concat([e]);i.push({op:"add",path:t,value:r(l[e])})}for(let e=l.length-1;u.length<=e;--e){const n=o.concat([e]);a.push({op:t,path:n})}}(n,o,i,a);case 3:return function(e,n,r,o){let{base_:i,copy_:a}=e,u=0;i.forEach((e=>{if(!a.has(e)){const i=n.concat([u]);r.push({op:t,path:i,value:e}),o.unshift({op:"add",path:i,value:e})}u++})),u=0,a.forEach((e=>{if(!i.has(e)){const i=n.concat([u]);r.push({op:"add",path:i,value:e}),o.unshift({op:t,path:i,value:e})}u++}))}(n,o,i,a)}},generateReplacementPatches_:function(t,n,r,o){r.push({op:e,path:[],value:n===TC?void 0:n}),o.push({op:e,path:[],value:t})}})}var oa=new xK;oa.produce;var F3=oa.produceWithPatches.bind(oa);oa.setAutoFreeze.bind(oa),oa.setUseStrictShallowCopy.bind(oa);var MO=oa.applyPatches.bind(oa);function CK(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function IK(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function EK(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}oa.createDraft.bind(oa),oa.finishDraft.bind(oa);var LO=e=>Array.isArray(e)?e:[e];function PK(e){const t=Array.isArray(e[0])?e[0]:e;return EK(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function RK(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var TK=class{constructor(e){this.value=e}deref(){return this.value}},OK=typeof WeakRef<"u"?WeakRef:TK,AK=0,FO=1;function Bg(){return{s:AK,v:void 0,o:null,p:null}}function cy(e,t={}){let n=Bg();const{resultEqualityCheck:r}=t;let o,i=0;function a(){var t;let a=n;const{length:u}=arguments;for(let e=0,t=u;e<t;e++){const t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=a.o;null===e&&(a.o=e=new WeakMap);const n=e.get(t);void 0===n?(a=Bg(),e.set(t,a)):a=n}else{let e=a.p;null===e&&(a.p=e=new Map);const n=e.get(t);void 0===n?(a=Bg(),e.set(t,a)):a=n}}const s=a;let l;if(a.s===FO?l=a.v:(l=e.apply(null,arguments),i++),s.s=FO,r){const e=(null==(t=null==o?void 0:o.deref)?void 0:t.call(o))??o;null!=e&&r(e,l)&&(l=e,0!==i&&i--),o="object"==typeof l&&null!==l||"function"==typeof l?new OK(l):l}return s.v=l,l}return a.clearCache=()=>{n=Bg(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function DK(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),CK(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const u={...n,...i},{memoize:s,memoizeOptions:l=[],argsMemoize:c=cy,argsMemoizeOptions:d=[],devModeChecks:f={}}=u,p=LO(l),m=LO(d),h=PK(e),v=s((function(){return r++,a.apply(null,arguments)}),...p),g=c((function(){o++;const e=RK(h,arguments);return t=v.apply(null,e),t}),...m);return Object.assign(g,{resultFunc:a,memoizedResultFunc:v,dependencies:h,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:s,argsMemoize:c})};return Object.assign(r,{withTypes:()=>r}),r}var B3=DK(cy),NK=Object.assign(((e,t=B3)=>{IK(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>NK}),kK={USER:"teamcity",npm_config_user_agent:"npm/10.9.3 node/v22.18.0 linux x64 workspaces/true",SENTRY_AUTH_TOKEN:"1d93ff28a44e4c3aaaaff854277cd8583c1de670bd8744bc895670dfd9300840",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/error-kit/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.18.0",npm_config_npm_version:"10.9.3",npm_config_cache:"/home/teamcity/.npm",USE_NPM_LIBS:"true",npm_config_ignore_scripts:"true",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/error-kit/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.9/bin:/home/teamcity/.rvm/gems/ruby-3.3.9@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.9/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.18.0/bin",TURBO_HASH:"87aad5e1d2eec9a5",NODE:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_package_name:"@wellesley/error-kit",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"vite build",SHELL:"/bin/bash",npm_package_version:"1.0.688",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.18.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/error-kit",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.18.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",USE_PACKAGES_FROM_NPM:"false",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/error-kit",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"3762",APP_NAME:"@wellesley/error-kit"},j3=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(j3||{});function MK(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function LK(e){return new RegExp("(^|:)//").test(e)}var FK=e=>e.replace(/\/$/,""),BK=e=>e.replace(/^\//,"");function jK(e,t){if(!e)return t;if(!t)return e;if(LK(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=FK(e)}${n}${t=BK(t)}`}var BO=e=>[].concat(...e);function VK(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function UK(){return typeof document>"u"||"hidden"!==document.visibilityState}var jO=Gf;function V3(e,t){if(e===t||!(jO(e)&&jO(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let o=n.length===r.length;const i=Array.isArray(t)?[]:{};for(const r of n)i[r]=V3(e[r],t[r]),o&&(o=e[r]===i[r]);return o?e:i}var VO=(...e)=>fetch(...e),zK=e=>e.status>=200&&e.status<=299,WK=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function UO(e){if(!Gf(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function qK({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=VO,paramsSerializer:r,isJsonContentType:o=WK,jsonContentType:i="application/json",jsonReplacer:a,timeout:u,responseHandler:s,validateStatus:l,...c}={}){return typeof fetch>"u"&&n===VO&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(f,p)=>{const{signal:m,getState:h,extra:v,endpoint:g,forced:y,type:b}=p;let w,{url:x,headers:_=new Headers(c.headers),params:k,responseHandler:S=s??"json",validateStatus:A=l??zK,timeout:E=u,...I}="string"==typeof f?{url:f}:f,C={...c,signal:m,...I};_=new Headers(UO(_)),C.headers=await t(_,{getState:h,extra:v,endpoint:g,forced:y,type:b})||_;const P=e=>"object"==typeof e&&(Gf(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!C.headers.has("content-type")&&P(C.body)&&C.headers.set("content-type",i),P(C.body)&&o(C.headers)&&(C.body=JSON.stringify(C.body,a)),k){const e=~x.indexOf("?")?"&":"?";x+=e+(r?r(k):new URLSearchParams(UO(k)))}x=jK(e,x);const q=new Request(x,C);w={request:new Request(x,C)};let O,T=!1,N=E&&setTimeout((()=>{T=!0,p.abort()}),E);try{O=await n(q)}catch(e){return{error:{status:T?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:w}}finally{N&&clearTimeout(N)}const R=O.clone();w.response=R;let D,j="";try{let e;if(await Promise.all([d(O,S).then((e=>D=e),(t=>e=t)),R.text().then((e=>j=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:O.status,data:j,error:String(e)},meta:w}}return A(O,D)?{data:D,meta:w}:{error:{status:O.status,data:D},meta:w}};async function d(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=o(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var zO=class{constructor(e,t=void 0){this.value=e,this.meta=t}},DC=Al("__rtkq/focused"),U3=Al("__rtkq/unfocused"),NC=Al("__rtkq/online"),z3=Al("__rtkq/offline");function W3(e){return"query"===e.type}function GK(e){return"mutation"===e.type}function kC(e,t,n,r,o,i){return HK(e)?e(t,n,r,o).map(WS).map(i):Array.isArray(e)?e.map(WS).map(i):[]}function HK(e){return"function"==typeof e}function WS(e){return"string"==typeof e?{type:e}:e}function WO(e){return null!=e}function Fh(e){let t=0;for(const n in e)t++;return t}function KK(e,t){return e.catch(t)}var Tv=Symbol("forceQueryFn"),qS=e=>"function"==typeof e[Tv];function QK({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:o}){const i=new Map,a=new Map,{unsubscribeQueryResult:u,removeMutationResult:s,updateSubscriptionOptions:l}=r.internalActions;return{buildInitiateQuery:function(n,o){const a=(s,{subscribe:c=!0,forceRefetch:d,subscriptionOptions:f,[Tv]:p,...m}={})=>(h,v)=>{var g;const y=e({queryArgs:s,endpointDefinition:o,endpointName:n}),b=t({...m,type:"query",subscribe:c,forceRefetch:d,subscriptionOptions:f,endpointName:n,originalArgs:s,queryCacheKey:y,[Tv]:p}),w=r.endpoints[n].select(s),x=h(b),_=w(v()),{requestId:k,abort:S}=x,A=_.requestId!==k,E=null==(g=i.get(h))?void 0:g[y],I=()=>w(v()),C=Object.assign(p?x.then(I):A&&!E?Promise.resolve(_):Promise.all([E,x]).then(I),{arg:s,requestId:k,subscriptionOptions:f,queryCacheKey:y,abort:S,async unwrap(){const e=await C;if(e.isError)throw e.error;return e.data},refetch:()=>h(a(s,{subscribe:!1,forceRefetch:!0})),unsubscribe(){c&&h(u({queryCacheKey:y,requestId:k}))},updateSubscriptionOptions(e){C.subscriptionOptions=e,h(l({endpointName:n,requestId:k,queryCacheKey:y,options:e}))}});if(!E&&!A&&!p){const e=i.get(h)||{};e[y]=C,i.set(h,e),C.then((()=>{delete e[y],Fh(e)||i.delete(h)}))}return C};return a},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:o}={})=>(i,u)=>{const l=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:o}),c=i(l),{requestId:d,abort:f,unwrap:p}=c,m=KK(c.unwrap().then((e=>({data:e}))),(e=>({error:e}))),h=Object.assign(m,{arg:c.arg,requestId:d,abort:f,unwrap:p,reset:()=>{i(s({requestId:d,fixedCacheKey:o}))}}),v=a.get(i)||{};return a.set(i,v),v[d]=h,h.then((()=>{delete v[d],Fh(v)||a.delete(i)})),o&&(v[o]=h,h.then((()=>{v[o]===h&&(delete v[o],Fh(v)||a.delete(i))}))),h}},getRunningQueryThunk:function(t,n){return r=>{var a;const u=o.endpointDefinitions[t],s=e({queryArgs:n,endpointDefinition:u,endpointName:t});return null==(a=i.get(r))?void 0:a[s]}},getRunningMutationThunk:function(e,t){return e=>{var n;return null==(n=a.get(e))?void 0:n[t]}},getRunningQueriesThunk:function(){return e=>Object.values(i.get(e)||{}).filter(WO)},getRunningMutationsThunk:function(){return e=>Object.values(a.get(e)||{}).filter(WO)}}}function qO(e){return e}function YK({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:o,assertTagType:i}){const a=async(e,{signal:r,abort:o,rejectWithValue:i,fulfillWithValue:a,dispatch:s,getState:l,extra:c})=>{const d=n[e.endpointName];try{let n,i=qO;const f={signal:r,abort:o,dispatch:s,getState:l,extra:c,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?u(e,l()):void 0},p="query"===e.type?e[Tv]:void 0;if(p?n=p():d.query?(n=await t(d.query(e.originalArgs),f,d.extraOptions),d.transformResponse&&(i=d.transformResponse)):n=await d.queryFn(e.originalArgs,f,d.extraOptions,(e=>t(e,f,d.extraOptions))),typeof process<"u"&&kK.NODE_ENV,n.error)throw new zO(n.error,n.meta);return a(await i(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[_g]:!0})}catch(t){let n=t;if(n instanceof zO){let t=qO;d.query&&d.transformErrorResponse&&(t=d.transformErrorResponse);try{return i(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[_g]:!0})}catch(e){n=e}}throw console.error(n),n}};function u(t,n){var r,o,i;const a=null==(o=null==(r=n[e])?void 0:r.queries)?void 0:o[t.queryCacheKey],u=null==(i=n[e])?void 0:i.config.refetchOnMountOrArgChange,s=null==a?void 0:a.fulfilledTimeStamp,l=t.forceRefetch??(t.subscribe&&u);return!!l&&(!0===l||(Number(new Date)-Number(s))/1e3>=l)}const s=zC(`${e}/executeQuery`,a,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[_g]:!0}),condition(t,{getState:r}){var o,i,a;const s=r(),l=null==(i=null==(o=s[e])?void 0:o.queries)?void 0:i[t.queryCacheKey],c=null==l?void 0:l.fulfilledTimeStamp,d=t.originalArgs,f=null==l?void 0:l.originalArgs,p=n[t.endpointName];return!!qS(t)||"pending"!==(null==l?void 0:l.status)&&(!!(u(t,s)||W3(p)&&null!=(a=null==p?void 0:p.forceRefetch)&&a.call(p,{currentArg:d,previousArg:f,endpointState:l,state:s}))||!c)},dispatchConditionRejection:!0}),l=zC(`${e}/executeMutation`,a,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[_g]:!0})});function c(e){return t=>{var n,r;return(null==(r=null==(n=null==t?void 0:t.meta)?void 0:n.arg)?void 0:r.endpointName)===e}}return{queryThunk:s,mutationThunk:l,prefetch:(e,t,n)=>(r,i)=>{const a=(e=>"force"in e)(n)&&n.force,u=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,s=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return o.endpoints[e].initiate(t,r)},l=o.endpoints[e].select(t)(i());if(a)r(s());else if(u){const e=null==l?void 0:l.fulfilledTimeStamp;if(!e)return void r(s());(Number(new Date)-Number(new Date(e)))/1e3>=u&&r(s())}else r(s(!1))},updateQueryData:(e,t,n,r=!0)=>(i,a)=>{const u=o.endpoints[e].select(t)(a());let s,l={patches:[],inversePatches:[],undo:()=>i(o.util.patchQueryData(e,t,l.inversePatches,r))};if("uninitialized"===u.status)return l;if("data"in u)if(Ol(u.data)){const[e,t,r]=F3(u.data,n);l.patches.push(...t),l.inversePatches.push(...r),s=e}else s=n(u.data),l.patches.push({op:"replace",path:[],value:s}),l.inversePatches.push({op:"replace",path:[],value:u.data});return i(o.util.patchQueryData(e,t,l.patches,r)),l},upsertQueryData:(e,t,n)=>r=>r(o.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[Tv]:()=>({data:n})})),patchQueryData:(e,t,a,u)=>(s,l)=>{const c=n[e],d=r({queryArgs:t,endpointDefinition:c,endpointName:e});if(s(o.internalActions.queryResultPatched({queryCacheKey:d,patches:a})),!u)return;const f=o.endpoints[e].select(t)(l()),p=kC(c.providesTags,f.data,void 0,t,{},i);s(o.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:$1(uA(e),c(t)),matchFulfilled:$1(Hf(e),c(t)),matchRejected:$1(QS(e),c(t))}}}}function q3(e,t,n,r){return kC(n[e.meta.arg.endpointName][t],Hf(e)?e.payload:void 0,KS(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function jg(e,t,n){const r=e[t];r&&n(r)}function Ov(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function GO(e,t,n){const r=e[Ov(t)];r&&n(r)}var Zm={};function XK({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:o,extractRehydrationInfo:i,hasRehydrationInfo:a},assertTagType:u,config:s}){const l=Al(`${e}/resetApiState`),c=Wo({name:`${e}/queries`,initialState:Zm,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Gm()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){jg(e,t,(e=>{e.data=MO(e.data,n.concat())}))},prepare:Gm()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const o=qS(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),jg(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=o&&e.requestId?e.requestId:t.requestId,void 0!==n.originalArgs&&(e.originalArgs=n.originalArgs),e.startedTimeStamp=t.startedTimeStamp}))})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{jg(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!qS(t.arg))return;const{merge:o}=r[t.arg.endpointName];if(e.status="fulfilled",o)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:i,baseQueryMeta:a,requestId:u}=t;let s=YS(e.data,(e=>o(e,n,{arg:i.originalArgs,baseQueryMeta:a,fulfilledTimeStamp:r,requestId:u})));e.data=s}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?V3(Tl(e.data)?hK(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:o,payload:i})=>{jg(e,n.queryCacheKey,(e=>{if(!t){if(e.requestId!==r)return;e.status="rejected",e.error=i??o}}))})).addMatcher(a,((e,t)=>{const{queries:n}=i(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&(e[t]=r)}))}}),d=Wo({name:`${e}/mutations`,initialState:Zm,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=Ov(t);n in e&&delete e[n]},prepare:Gm()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:o}})=>{r.track&&(e[Ov(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:o})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&GO(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&GO(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(a,((e,t)=>{const{mutations:n}=i(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&t!==(null==r?void 0:r.requestId)&&(e[t]=r)}))}}),f=Wo({name:`${e}/invalidation`,initialState:Zm,reducers:{updateProvidedBy:{reducer(e,t){var n,r;const{queryCacheKey:o,providedTags:i}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(o);-1!==t&&e.splice(t,1)}for(const{type:t,id:a}of i){const i=(n=e[t]??(e[t]={}))[r=a||"__internal_without_id"]??(n[r]=[]);i.includes(o)||i.push(o)}},prepare:Gm()}},extraReducers(e){e.addCase(c.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(a,((e,t)=>{var n,r;const{provided:o}=i(t);for(const[t,i]of Object.entries(o))for(const[o,a]of Object.entries(i)){const i=(n=e[t]??(e[t]={}))[r=o||"__internal_without_id"]??(n[r]=[]);for(const e of a)i.includes(e)||i.push(e)}})).addMatcher(sS(Hf(t),KS(t)),((e,t)=>{const n=q3(t,"providesTags",r,u),{queryCacheKey:o}=t.meta.arg;f.caseReducers.updateProvidedBy(e,f.actions.updateProvidedBy({queryCacheKey:o,providedTags:n}))}))}}),p=Wo({name:`${e}/subscriptions`,initialState:Zm,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),m=Wo({name:`${e}/internalSubscriptions`,initialState:Zm,reducers:{subscriptionsUpdated:{reducer:(e,t)=>MO(e,t.payload),prepare:Gm()}}}),h=Wo({name:`${e}/config`,initialState:{online:VK(),focused:UK(),middlewareRegistered:!1,...s},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&o===t||"conflict"}},extraReducers:e=>{e.addCase(NC,(e=>{e.online=!0})).addCase(z3,(e=>{e.online=!1})).addCase(DC,(e=>{e.focused=!0})).addCase(U3,(e=>{e.focused=!1})).addMatcher(a,(e=>({...e})))}}),v=gM({queries:c.reducer,mutations:d.reducer,provided:f.reducer,subscriptions:m.reducer,config:h.reducer});return{reducer:(e,t)=>v(l.match(t)?void 0:e,t),actions:{...h.actions,...c.actions,...p.actions,...m.actions,...d.actions,...f.actions,resetApiState:l}}}var Uf=Symbol.for("RTKQ/skipToken"),G3={status:"uninitialized"},HO=YS(G3,(()=>{})),KO=YS(G3,(()=>{}));function JK({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>HO,o=e=>KO;return{buildQuerySelector:function(t,o){return u=>{const s=e({queryArgs:u,endpointDefinition:o,endpointName:t});return n(u===Uf?r:e=>{var t,n;return(null==(n=null==(t=a(e))?void 0:t.queries)?void 0:n[s])??HO},i)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Ov(e)??Uf:e,n(t===Uf?o:e=>{var n,r;return(null==(r=null==(n=a(e))?void 0:n.mutations)?void 0:r[t])??KO},i)}},selectInvalidatedBy:function(e,n){const r=e[t],o=new Set;for(const e of n.map(WS)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:BO(Object.values(t)))??[];for(const e of n)o.add(e)}return BO(Array.from(o.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>(null==e?void 0:e.endpointName)===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function i(e){return{...e,...MK(e.status)}}function a(e){return e[t]}}var Ah=WeakMap?new WeakMap:void 0,QO=({endpointName:e,queryArgs:t})=>{let n="";const r=null==Ah?void 0:Ah.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Gf(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Gf(t)&&(null==Ah||Ah.set(t,e)),n=e}return`${e}(${n})`};function ZK(...e){return function(t){const n=cy((e=>{var n;return null==(n=t.extractRehydrationInfo)?void 0:n.call(t,e,{reducerPath:t.reducerPath??"api"})})),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=QO;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:QO({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},o={endpointDefinitions:{},batch(e){e()},apiUid:vM(),extractRehydrationInfo:n,hasRehydrationInfo:cy((e=>null!=n(e)))},i={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in o.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(sA(39))}else{o.endpointDefinitions[n]=r;for(const e of a)e.injectEndpoint(n,r)}return i},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(const[e,n]of Object.entries(t))"function"==typeof n?n(o.endpointDefinitions[e]):Object.assign(o.endpointDefinitions[e]||{},n);return i}},a=e.map((e=>e.init(i,r,o)));return i.injectEndpoints({endpoints:t.endpoints})}}function eQ(e){for(let t in e)return!1;return!0}var tQ=2147482.647,nQ=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:o,unsubscribeQueryResult:i}=t.internalActions;function a(e){const t=r.currentSubscriptions[e];return!!t&&!eQ(t)}const u={};function s(e,t,r,i){const s=n.endpointDefinitions[t],l=(null==s?void 0:s.keepUnusedDataFor)??i.keepUnusedDataFor;if(l===1/0)return;const c=Math.max(0,Math.min(l,tQ));if(!a(e)){const t=u[e];t&&clearTimeout(t),u[e]=setTimeout((()=>{a(e)||r.dispatch(o({queryCacheKey:e})),delete u[e]}),1e3*c)}}return(r,o,a)=>{var l;if(i.match(r)){const t=o.getState()[e],{queryCacheKey:n}=r.payload;s(n,null==(l=t.queries[n])?void 0:l.endpointName,o,t.config)}if(t.util.resetApiState.match(r))for(const[e,t]of Object.entries(u))t&&clearTimeout(t),delete u[e];if(n.hasRehydrationInfo(r)){const t=o.getState()[e],{queries:i}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(i))s(e,null==n?void 0:n.endpointName,o,t.config)}}},rQ=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:i,assertTagType:a,refetchQuery:u,internalState:s})=>{const{removeQueryResult:l}=i.internalActions,c=sS(Hf(r),KS(r)),d=sS(Hf(r,o),QS(r,o));let f=[];function p(n,r){const o=r.getState(),a=o[e];if(f.push(...n),"delayed"===a.config.invalidationBehavior&&function(e){var t,n;for(const n in e.queries)if("pending"===(null==(t=e.queries[n])?void 0:t.status))return!0;for(const t in e.mutations)if("pending"===(null==(n=e.mutations[t])?void 0:n.status))return!0;return!1}(a))return;const c=f;if(f=[],0===c.length)return;const d=i.util.selectInvalidatedBy(o,c);t.batch((()=>{const e=Array.from(d.values());for(const{queryCacheKey:t}of e){const e=a.queries[t],n=s.currentSubscriptions[t]??{};e&&(0===Fh(n)?r.dispatch(l({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(u(e,t)))}}))}return(e,t)=>{c(e)?p(q3(e,"invalidatesTags",n,a),t):d(e)?p([],t):i.util.invalidateTags.match(e)&&p(kC(e.payload,void 0,void 0,void 0,void 0,a),t)}},oQ=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:o})=>{const i={};function a({queryCacheKey:t},n){const u=n.getState()[e],s=u.queries[t],c=o.currentSubscriptions[t];if(!s||"uninitialized"===s.status)return;const{lowestPollingInterval:d,skipPollingIfUnfocused:f}=l(c);if(!Number.isFinite(d))return;const p=i[t];null!=p&&p.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const m=Date.now()+d;i[t]={nextPollTimestamp:m,pollingInterval:d,timeout:setTimeout((()=>{(u.config.focused||!f)&&n.dispatch(r(s,t)),a({queryCacheKey:t},n)}),d)}}function u({queryCacheKey:t},n){const r=n.getState()[e].queries[t],u=o.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:c}=l(u);if(!Number.isFinite(c))return void s(t);const d=i[t],f=Date.now()+c;(!d||f<d.nextPollTimestamp)&&a({queryCacheKey:t},n)}function s(e){const t=i[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete i[e]}function l(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&u(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&u(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&a(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(i))s(e)}()}},iQ=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:o})=>{const{removeQueryResult:i}=n.internalActions;function a(n,a){const u=n.getState()[e],s=u.queries,l=o.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(l)){const t=s[e],o=l[e];o&&t&&((Object.values(o).some((e=>!0===e[a]))||Object.values(o).every((e=>void 0===e[a]))&&u.config[a])&&(0===Fh(o)?n.dispatch(i({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{DC.match(e)&&a(t,"refetchOnFocus"),NC.match(e)&&a(t,"refetchOnReconnect")}},YO=new Error("Promise never resolved before cacheEntryRemoved."),aQ=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:o,internalState:i})=>{const a=WC(r),u=WC(o),s=Hf(r,o),l={};function c(t,r,o,i,a){const u=n.endpointDefinitions[t],s=null==u?void 0:u.onCacheEntryAdded;if(!s)return;let c={};const d=new Promise((e=>{c.cacheEntryRemoved=e})),f=Promise.race([new Promise((e=>{c.valueResolved=e})),d.then((()=>{throw YO}))]);f.catch((()=>{})),l[o]=c;const p=e.endpoints[t].select("query"===u.type?r:o),m=i.dispatch(((e,t,n)=>n)),h={...i,getCacheEntry:()=>p(i.getState()),requestId:a,extra:m,updateCachedData:"query"===u.type?n=>i.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:d},v=s(r,h);Promise.resolve(v).catch((e=>{if(e!==YO)throw e}))}return(n,i,d)=>{const f=function(t){return a(t)?t.meta.arg.queryCacheKey:u(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?Ov(t.payload):""}(n);if(r.pending.match(n)){const e=d[t].queries[f],r=i.getState()[t].queries[f];!e&&r&&c(n.meta.arg.endpointName,n.meta.arg.originalArgs,f,i,n.meta.requestId)}else if(o.pending.match(n))i.getState()[t].mutations[f]&&c(n.meta.arg.endpointName,n.meta.arg.originalArgs,f,i,n.meta.requestId);else if(s(n)){const e=l[f];null!=e&&e.valueResolved&&(e.valueResolved({data:n.payload,meta:n.meta.baseQueryMeta}),delete e.valueResolved)}else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n)){const e=l[f];e&&(delete l[f],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(l))delete l[e],t.cacheEntryRemoved()}},sQ=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const o=uA(n,r),i=QS(n,r),a=Hf(n,r),u={};return(n,r)=>{var s,l;if(o(n)){const{requestId:o,arg:{endpointName:i,originalArgs:a}}=n.meta,s=t.endpointDefinitions[i],l=null==s?void 0:s.onQueryStarted;if(l){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),u[o]=t;const c=e.endpoints[i].select("query"===s.type?a:o),d=r.dispatch(((e,t,n)=>n)),f={...r,getCacheEntry:()=>c(r.getState()),requestId:o,extra:d,updateCachedData:"query"===s.type?t=>r.dispatch(e.util.updateQueryData(i,a,t)):void 0,queryFulfilled:n};l(a,f)}}else if(a(n)){const{requestId:e,baseQueryMeta:t}=n.meta;null==(s=u[e])||s.resolve({data:n.payload,meta:t}),delete u[e]}else if(i(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;null==(l=u[e])||l.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete u[e]}}},uQ=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},lQ=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let o=null,i=null;const{updateSubscriptionOptions:a,unsubscribeQueryResult:u}=e.internalActions,s=()=>n.currentSubscriptions,l={getSubscriptions:s,getSubscriptionCount:e=>Fh(s()[e]??{}),isRequestSubscribed:(e,t)=>{var n;const r=s();return!(null==(n=null==r?void 0:r[e])||!n[t])}};return(s,c)=>{if(o||(o=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(s))return o=n.currentSubscriptions={},i=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(s))return[!1,l];const d=((n,r)=>{var o,i,s;if(a.match(r)){const{queryCacheKey:e,requestId:t,options:i}=r.payload;return null!=(o=null==n?void 0:n[e])&&o[t]&&(n[e][t]=i),!0}if(u.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,o=n[i=e.queryCacheKey]??(n[i]={});return o[`${t}_running`]={},e.subscribe&&(o[t]=e.subscriptionOptions??o[t]??{}),!0}let l=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;l||(l=!!e[t]),delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:o}}=r;if(e&&t.subscribe){const e=n[s=t.queryCacheKey]??(n[s]={});e[o]=t.subscriptionOptions??e[o]??{},l=!0}}return l})(n.currentSubscriptions,s);let f=!0;if(d){i||(i=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=F3(o,(()=>t));c.next(e.internalActions.subscriptionsUpdated(r)),o=t,i=null}),500));const a="string"==typeof s.type&&!!s.type.startsWith(r),u=t.rejected.match(s)&&s.meta.condition&&!!s.meta.arg.subscribe;f=!a&&!u}return[f,!1]}};function cQ(e){const{reducerPath:t,queryThunk:n,api:r,context:o}=e,{apiUid:i}=o,a={invalidateTags:Al(`${t}/invalidateTags`)},u=e=>e.type.startsWith(`${t}/`),s=[uQ,nQ,rQ,oQ,aQ,sQ];return{middleware:n=>{let a=!1;const c={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:u},d=s.map((e=>e(c))),f=lQ(c),p=iQ(c);return e=>s=>{if(!yM(s))return e(s);a||(a=!0,n.dispatch(r.internalActions.middlewareRegistered(i)));const l={...n,next:e},c=n.getState(),[m,h]=f(s,l,c);let v;if(v=m?e(s):h,n.getState()[t]&&(p(s,l,c),u(s)||o.hasRehydrationInfo(s)))for(let e of d)e(s,l,c);return v}},actions:a};function l(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}function cd(e,...t){return Object.assign(e,...t)}var XO=Symbol(),dQ=({createSelector:e=Qr}={})=>({name:XO,init(t,{baseQuery:n,tagTypes:r,reducerPath:o,serializeQueryArgs:i,keepUnusedDataFor:a,refetchOnMountOrArgChange:u,refetchOnFocus:s,refetchOnReconnect:l,invalidationBehavior:c},d){$K();const f=e=>e;Object.assign(t,{reducerPath:o,endpoints:{},internalActions:{onOnline:NC,onOffline:z3,onFocus:DC,onFocusLost:U3},util:{}});const{queryThunk:p,mutationThunk:m,patchQueryData:h,updateQueryData:v,upsertQueryData:g,prefetch:y,buildMatchThunkActions:b}=YK({baseQuery:n,reducerPath:o,context:d,api:t,serializeQueryArgs:i,assertTagType:f}),{reducer:w,actions:x}=XK({context:d,queryThunk:p,mutationThunk:m,reducerPath:o,assertTagType:f,config:{refetchOnFocus:s,refetchOnReconnect:l,refetchOnMountOrArgChange:u,keepUnusedDataFor:a,reducerPath:o,invalidationBehavior:c}});cd(t.util,{patchQueryData:h,updateQueryData:v,upsertQueryData:g,prefetch:y,resetApiState:x.resetApiState}),cd(t.internalActions,x);const{middleware:_,actions:k}=cQ({reducerPath:o,context:d,queryThunk:p,mutationThunk:m,api:t,assertTagType:f});cd(t.util,k),cd(t,{reducer:w,middleware:_});const{buildQuerySelector:S,buildMutationSelector:A,selectInvalidatedBy:E,selectCachedArgsForQuery:I}=JK({serializeQueryArgs:i,reducerPath:o,createSelector:e});cd(t.util,{selectInvalidatedBy:E,selectCachedArgsForQuery:I});const{buildInitiateQuery:C,buildInitiateMutation:P,getRunningMutationThunk:q,getRunningMutationsThunk:O,getRunningQueriesThunk:T,getRunningQueryThunk:N}=QK({queryThunk:p,mutationThunk:m,api:t,serializeQueryArgs:i,context:d});return cd(t.util,{getRunningMutationThunk:q,getRunningMutationsThunk:O,getRunningQueryThunk:N,getRunningQueriesThunk:T}),{name:XO,injectEndpoint(e,n){var r;const o=t;(r=o.endpoints)[e]??(r[e]={}),W3(n)?cd(o.endpoints[e],{name:e,select:S(e,n),initiate:C(e,n)},b(p,e)):GK(n)&&cd(o.endpoints[e],{name:e,select:A(),initiate:P(e)},b(m,e))}}}});function fQ(e){return"query"===e.type}function pQ(e){return"mutation"===e.type}function Vg(e,...t){return Object.assign(e,...t)}function tS(e){return e.replace(e[0],e[0].toUpperCase())}var Dh=WeakMap?new WeakMap:void 0,hQ=({endpointName:e,queryArgs:t})=>{let n="";const r=null==Dh?void 0:Dh.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Gf(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Gf(t)&&(null==Dh||Dh.set(t,e)),n=e}return`${e}(${n})`},nS=Symbol();function JO(e,t,n,r){const o=xn((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),i=We(o);return Ze((()=>{i.current.serialized!==o.serialized&&(i.current=o)}),[o]),i.current.serialized===o.serialized?i.current.queryArgs:e}function rS(e){const t=We(e);return Ze((()=>{sv(t.current,e)||(t.current=e)}),[e]),sv(t.current,e)?t.current:e}var mQ=typeof window<"u"&&window.document&&window.document.createElement?ip:Ze,vQ=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:j3.pending}:e;function gQ({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:o},unstable__sideEffectsInRender:i,createSelector:a},serializeQueryArgs:u,context:s}){const l=i?e=>e():Ze;return{buildQueryHooks:function(i){const d=(t,{refetchOnReconnect:r,refetchOnFocus:o,refetchOnMountOrArgChange:a,skip:u=!1,pollingInterval:c=0,skipPollingIfUnfocused:d=!1}={})=>{const{initiate:f}=e.endpoints[i],p=n(),m=We();if(!m.current){const t=p(e.internalActions.internal_getRTKQSubscriptions());m.current=t}const h=JO(u?Uf:t,hQ,s.endpointDefinitions[i],i),v=rS({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:c,skipPollingIfUnfocused:d}),g=We(!1),y=We();let{queryCacheKey:b,requestId:w}=y.current||{},x=!1;b&&w&&(x=m.current.isRequestSubscribed(b,w));const _=!x&&g.current;return l((()=>{g.current=x})),l((()=>{_&&(y.current=void 0)}),[_]),l((()=>{var e;const t=y.current;if(h===Uf)return null==t||t.unsubscribe(),void(y.current=void 0);const n=null==(e=y.current)?void 0:e.subscriptionOptions;if(t&&t.arg===h)v!==n&&t.updateSubscriptionOptions(v);else{null==t||t.unsubscribe();const e=p(f(h,{subscriptionOptions:v,forceRefetch:a}));y.current=e}}),[p,f,a,h,v,_]),Ze((()=>()=>{var e;null==(e=y.current)||e.unsubscribe(),y.current=void 0}),[]),xn((()=>({refetch:()=>{var e;if(!y.current)throw new Error(sA(38));return null==(e=y.current)?void 0:e.refetch()}})),[])},f=({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:a=0,skipPollingIfUnfocused:u=!1}={})=>{const{initiate:s}=e.endpoints[i],c=n(),[d,f]=ut(nS),p=We(),m=rS({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:a,skipPollingIfUnfocused:u});l((()=>{var e,t;const n=null==(e=p.current)?void 0:e.subscriptionOptions;m!==n&&(null==(t=p.current)||t.updateSubscriptionOptions(m))}),[m]);const h=We(m);l((()=>{h.current=m}),[m]);const v=yt((function(e,n=!1){let r;return t((()=>{var t;null==(t=p.current)||t.unsubscribe(),p.current=r=c(s(e,{subscriptionOptions:h.current,forceRefetch:!n})),f(e)})),r}),[c,s]);return Ze((()=>()=>{var e;null==(e=null==p?void 0:p.current)||e.unsubscribe()}),[]),Ze((()=>{d!==nS&&!p.current&&v(d,!0)}),[d,v]),xn((()=>[v,d]),[v,d])},p=(t,{skip:n=!1,selectFromResult:l}={})=>{const{select:d}=e.endpoints[i],f=JO(n?Uf:t,u,s.endpointDefinitions[i],i),p=We(),m=xn((()=>a([d(f),(e,t)=>t,e=>f],c,{memoizeOptions:{resultEqualityCheck:sv}})),[d,f]),h=xn((()=>l?a([m],l,{devModeChecks:{identityFunctionCheck:"never"}}):m),[m,l]),v=r((e=>h(e,p.current)),sv),g=o(),y=m(g.getState(),p.current);return mQ((()=>{p.current=y}),[y]),v};return{useQueryState:p,useQuerySubscription:d,useLazyQuerySubscription:f,useLazyQuery(e){const[t,n]=f(e),r=p(n,{...e,skip:n===nS}),o=xn((()=>({lastArg:n})),[n]);return xn((()=>[t,r,o]),[t,r,o])},useQuery(e,t){const n=d(e,t),r=p(e,{selectFromResult:e===Uf||null!=t&&t.skip?void 0:vQ,...t}),{data:o,status:i,isLoading:a,isSuccess:u,isError:s,error:l}=r;return UC({data:o,status:i,isLoading:a,isSuccess:u,isError:s,error:l}),xn((()=>({...r,...n})),[r,n])}}},buildMutationHook:function(o){return({selectFromResult:i,fixedCacheKey:u}={})=>{const{select:s,initiate:l}=e.endpoints[o],c=n(),[d,f]=ut();Ze((()=>()=>{null!=d&&d.arg.fixedCacheKey||null==d||d.reset()}),[d]);const p=yt((function(e){const t=c(l(e,{fixedCacheKey:u}));return f(t),t}),[c,l,u]),{requestId:m}=d||{},h=xn((()=>s({fixedCacheKey:u,requestId:null==d?void 0:d.requestId})),[u,d,s]),v=xn((()=>i?a([h],i):h),[i,h]),g=r(v,sv),y=null==u?null==d?void 0:d.arg.originalArgs:void 0,b=yt((()=>{t((()=>{d&&f(void 0),u&&c(e.internalActions.removeMutationResult({requestId:m,fixedCacheKey:u}))}))}),[c,u,d,m]),{endpointName:w,data:x,status:_,isLoading:k,isSuccess:S,isError:A,error:E}=g;UC({endpointName:w,data:x,status:_,isLoading:k,isSuccess:S,isError:A,error:E});const I=xn((()=>({...g,originalArgs:y,reset:b})),[g,y,b]);return xn((()=>[p,I]),[p,I])}},usePrefetch:function(t,r){const o=n(),i=rS(r);return yt(((n,r)=>o(e.util.prefetch(t,n,{...i,...r}))),[t,o,i])}};function c(e,t,n){if(null!=t&&t.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=s.endpointDefinitions[e];u({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===u({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:null==t?void 0:t.data;void 0===r&&(r=e.data);const o=void 0!==r,i=e.isLoading,a=!o&&i,l=e.isSuccess||i&&o;return{...e,data:r,currentData:e.data,isFetching:i,isLoading:a,isSuccess:l}}}var yQ=Symbol(),wQ=({batch:e=_M,hooks:t={useDispatch:bM,useSelector:dy,useStore:xM},createSelector:n=B3,unstable__sideEffectsInRender:r=!1,...o}={})=>({name:yQ,init(o,{serializeQueryArgs:i},a){const u=o,{buildQueryHooks:s,buildMutationHook:l,usePrefetch:c}=gQ({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:i,context:a});return Vg(u,{usePrefetch:c}),Vg(a,{batch:e}),{injectEndpoint(e,t){if(fQ(t)){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}=s(e);Vg(u.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}),o[`use${tS(e)}Query`]=t,o[`useLazy${tS(e)}Query`]=n}else if(pQ(t)){const t=l(e);Vg(u.endpoints[e],{useMutation:t}),o[`use${tS(e)}Mutation`]=t}}}}}),_Q=ZK(dQ(),wQ());const bQ=e=>{i$.removeToken(),e(SG()),n$("user").clear()},xQ=e=>async(t,n,r)=>{const o=await e(t,n,r);return o.error&&[401].includes(o.error.status)&&bQ(n.dispatch),o},SQ=async(e,t=2e3)=>{for(;!e();)await new Promise((e=>setTimeout(e,t)))},$Q=5,CQ=e=>t=>!!e&&t.includes(e.status),ZO=e=>new Promise((t=>setTimeout(t,1e3*e))),IQ=e=>async(t,n,r)=>{const o=(null==r?void 0:r.maxRetries)??5;await SQ((()=>n.getState().network.isOnline));let i=0;const a=async()=>{var u,s,l,c;const d=await e(t,n,r),f=d.error;if(i>=o)return d;i>0&&await ZO(Math.pow(2,i)),i++;const p=CQ(f);switch(!0){case"mutation"===n.type:return d;case!navigator.onLine:case p([408,404]):case f&&"FETCH_ERROR"===(null==f?void 0:f.status):case f&&f.status>=500:return await a();case 429===(null==(u=null==d?void 0:d.error)?void 0:u.status):{const e=null==(c=null==(l=null==(s=d.meta)?void 0:s.response)?void 0:l.headers)?void 0:c.get("Retry-After");return await ZO(+(e||"0")),await a()}default:return d}};return await a()};var H3=(e=>(e.SERVER_RULES="serverRules",e.INVITE_PEOPLE="invitePeople",e))(H3||{});const Xy="staticState",K3=n$(),Gg={path:"",baseUrl:"",search:""},EQ=e=>{if(!e)return Gg;try{return JSON.parse(decodeURIComponent(e))||Gg}catch(e){return El.error("Error parsing static state",e),Gg}},Q3=()=>new URLSearchParams(window.location.search).get(Xy),PQ=({path:e,baseUrl:t,search:n}={})=>{const{pathname:r,origin:o,search:i}=window.location;return`${Xy}=${encodeURIComponent(JSON.stringify({path:e||r,baseUrl:t||o,search:n||i}))}`},RQ=()=>{const e=Q3();return e&&K3.setItem(Xy,e),Y3()},Y3=()=>{try{const e=K3.getItem(Xy)||Q3();return EQ(e)}catch(e){return El.error("Error parsing static state",e),Gg}},X3={create:PQ,init:RQ,get:Y3},TQ=async e=>{const t={};e.headers.forEach(((e,n)=>{t[n]=e}));return{body:["get","head"].includes(e.method.toLowerCase())?null:await(async()=>{try{return await e.text()}catch(e){return El.error("No body or error reading body:",e),null}})(),headers:t,url:e.url,method:e.method,mode:e.mode,credentials:e.credentials,cache:e.cache,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity}},OQ=e=>{const{url:t,status:n,statusText:r,headers:o,body:i}=e,a=new Response(JSON.stringify(i),{status:n,statusText:r,headers:o});return Object.defineProperties(a,{url:{value:t},type:{value:"cors"}}),a},AQ=async e=>{const t=crypto.randomUUID();return new Promise(((n,r)=>{const o=XG({onMessage:({payload:{id:e,response:r}})=>{t===e&&(null==o||o(),n(OQ(r)))},whitelist:[JG]});(async()=>{try{YG({action:zT({id:t,options:await TQ(e)}),windowElement:window.parent,whitelist:[zT]})}catch(e){r(e)}})()}))};new EventTarget;const J3=()=>{var e;try{return(null==(e=window.wellesley)?void 0:e.v1)||window.wellesley}catch(e){El.error("Error getting window.wellesley:",e)}},DQ=e=>new Response(JSON.stringify(e),{status:200,statusText:"OK",headers:{"Content-Type":"application/json"}}),NQ=e=>{var t,n;if(e.url.includes("accounts/profile")){const e=null==(n=null==(t=J3())?void 0:t.initialState)?void 0:n.currentAccount;return!(null==e||!e.selectedUserId)&&DQ(e)}},kQ=Object.freeze(Object.defineProperty({__proto__:null,userHandler:NQ},Symbol.toStringTag,{value:"Module"})),MQ=e=>Object.values(kQ).reduce(((t,n)=>t||n(e)),void 0),LQ=async e=>MQ(e)||await fetch(e),FQ=()=>{try{return window.self!==window.top}catch{return!0}},BQ=()=>e=>FQ()?AQ(e):LQ(e),jQ=X3.get().baseUrl,VQ=jQ||"",UQ=qK({fetchFn:BQ(),baseUrl:VQ,responseHandler:e=>{const t=e.headers.get("content-type");if(!(null==t?void 0:t.startsWith("application/json")))return e.text();try{return e.json()}catch{return e.text()}},prepareHeaders:e=>{const t=i$.getToken();return t&&e.set("authorization",`Bearer ${t}`),e}}),zQ=xQ(IQ(UQ)),WQ=_Q({tagTypes:["Secure","Post","Follow","Like","Settings","UserSettings","RBAC","Rbac_Config","Admin_Apps","Admin_Platform_Data","Admin_Ai_Agents_Assignments","Admin_Users","Admin_Groups","Admin_Audit_Logs","Admin_Reports","Admin_Signup_Requests","Admin_Posts","Admin_Uploads","Admin_Roles","Admin_Jobs_Stats","Admin_Federation","Admin_Domain_Block","Admin_Custom_Emojis","Admin_Domain_Allow","Admin_Link_Service_Configure","Groups","Group_Channels","GroupMembers","GroupMembership","GroupRules","Group_Roles","Group_Join_Requests","Group_Apps","Group_Ai_Agents_Assignments","User_Apps","Account","Profile","UserNoHtml","Relationship","Bookmarks","Global_Search","Events","Event","EventAttendees",...Object.values(H3)],reducerPath:"openapi",baseQuery:zQ,endpoints:()=>({})}),qQ=WQ.injectEndpoints({endpoints:e=>({getApiMetaCompat:e.query({query:()=>({url:"/api/meta/compat"})}),postApiV1AccountsAddReason:e.mutation({query:e=>({url:"/api/v1/accounts/add-reason",method:"POST",body:e.signupReasonParams})}),postApiV1AccountsAuthenticateEmail:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/email",method:"POST",body:e.authRequest})}),postApiV1AccountsAuthenticatePhone:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/phone",method:"POST",body:e.authPhoneRequest})}),putApiV1AccountsChangeName:e.mutation({query:e=>({url:"/api/v1/accounts/change/name",method:"PUT",params:{id:e.id,name:e.name,username:e.username}})}),postApiV1AccountsCheckCaptcha:e.mutation({query:e=>({url:"/api/v1/accounts/check-captcha",method:"POST",body:e.captchaVerificationParams})}),postApiV1AccountsConfirmEmail:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-email",method:"POST",body:e.codeVerificationParams})}),postApiV1AccountsConfirmPhone:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-phone",method:"POST",body:e.codeVerificationParams})}),deleteApiV1AccountsDelete:e.mutation({query:()=>({url:"/api/v1/accounts/delete",method:"DELETE"})}),postApiV1AccountsEmailChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsEmailChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/request",method:"POST",body:e.emailChangeRequest})}),putApiV1AccountsEmailChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/email/change/resend-code",method:"PUT"})}),postApiV1AccountsFinishCreating:e.mutation({query:e=>({url:"/api/v1/accounts/finish-creating",method:"POST",body:e.finishCreatingAccountParams,params:{htmlContent:e.htmlContent}})}),putApiV1AccountsGetTokenByHash:e.mutation({query:e=>({url:`/api/v1/accounts/get-token/${e.hash}`,method:"PUT"})}),postApiV1AccountsLoginsAddEmailPassword:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password",method:"POST",body:e.addEmailRequest})}),postApiV1AccountsLoginsAddEmailPasswordConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password/confirm",method:"POST",body:e.body})}),putApiV1AccountsLoginsAddEmailPasswordResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/logins/add-email-password/resend-code",method:"PUT"})}),postApiV1AccountsLoginsAddPhone:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-phone",method:"POST",body:e.addPhoneRequest})}),deleteApiV1AccountsLoginsRemoveEmailPassword:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-email-password",method:"DELETE"})}),deleteApiV1AccountsLoginsRemovePhone:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-phone",method:"DELETE"})}),postApiV1AccountsPasswordChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsPasswordChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/request",method:"POST",body:e.passwordChangeRequest})}),putApiV1AccountsPasswordChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/password/change/resend-code",method:"PUT"})}),postApiV1AccountsPasswordRecover:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover",method:"POST",body:e.passwordRecoveryRequest})}),postApiV1AccountsPasswordRecoverChange:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/change",method:"POST",body:e.passwordRecoveryChange})}),postApiV1AccountsPasswordRecoverCheckCode:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/check-code",method:"POST",body:e.passwordRecoveryCode})}),postApiV1AccountsPhoneChangeConfirmAuth:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/auth",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeConfirmNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/new-phone",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/new-phone",method:"POST",body:e.addPhoneRequest})}),putApiV1AccountsPhoneChangeRequest:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/request",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeAuth:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/auth",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeNewPhone:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/new-phone",method:"PUT"})}),getApiV1AccountsProfile:e.query({query:e=>({url:"/api/v1/accounts/profile",params:{htmlContent:e.htmlContent}})}),putApiV1AccountsResendCodeByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-code/${e.hash}`,method:"PUT"})}),putApiV1AccountsResendEmailByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-email/${e.hash}`,method:"PUT"})}),postApiV1AccountsSignup:e.mutation({query:e=>({url:"/api/v1/accounts/signup",method:"POST",body:e.accountCreate})}),postApiV1AccountsSignupPhone:e.mutation({query:e=>({url:"/api/v1/accounts/signup-phone",method:"POST",body:e.phoneSignup})}),postApiV1AccountsUserReselectUser:e.mutation({query:e=>({url:"/api/v1/accounts/user/reselect-user",method:"POST",params:{userId:e.userId,userName:e.userName}})}),getApiV1AddressesSuggest:e.query({query:e=>({url:"/api/v1/addresses/suggest",params:{lang:e.lang,text:e.text}})}),getApiV1AdminAccountByAccountId:e.query({query:e=>({url:`/api/v1/admin/account/${e.accountId}`,params:{htmlContent:e.htmlContent}})}),getApiV1AdminAuditLog:e.query({query:e=>({url:"/api/v1/admin/audit_log",params:{accountId:e.accountId,action:e.action,appId:e.appId,domainSearch:e.domainSearch,email:e.email,group:e.group,groupId:e.groupId,lastId:e.lastId,limit:e.limit,offset:e.offset,ruleId:e.ruleId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminChangeEmail:e.mutation({query:e=>({url:"/api/v1/admin/change/email",method:"PUT",params:{email:e.email,id:e.id,username:e.username}})}),putApiV1AdminChangePassword:e.mutation({query:e=>({url:"/api/v1/admin/change/password",method:"PUT",params:{id:e.id,password:e.password,username:e.username}})}),putApiV1AdminChangeRoleAssign:e.mutation({query:e=>({url:"/api/v1/admin/change/role/assign",method:"PUT",params:{id:e.id,role:e.role,username:e.username,htmlContent:e.htmlContent}})}),putApiV1AdminChangeRoleRevoke:e.mutation({query:e=>({url:"/api/v1/admin/change/role/revoke",method:"PUT",params:{id:e.id,role:e.role,username:e.username,htmlContent:e.htmlContent}})}),postApiV1AdminClearApErrors:e.mutation({query:e=>({url:"/api/v1/admin/clear-ap-errors",method:"POST",params:{domain:e.domain}})}),postApiV1AdminCreateAccount:e.mutation({query:e=>({url:"/api/v1/admin/create-account",method:"POST",body:e.accountCreate,params:{htmlContent:e.htmlContent}})}),postApiV1AdminCreateUser:e.mutation({query:e=>({url:"/api/v1/admin/create-user",method:"POST",body:e.userCreate,params:{account_id:e.accountId,htmlContent:e.htmlContent}})}),deleteApiV1AdminDelete:e.mutation({query:e=>({url:"/api/v1/admin/delete",method:"DELETE",params:{email:e.email,id:e.id,username:e.username}})}),deleteApiV1AdminDeleteUser:e.mutation({query:e=>({url:"/api/v1/admin/delete-user",method:"DELETE",params:{id:e.id,username:e.username}})}),getApiV1AdminDomainAllow:e.query({query:e=>({url:"/api/v1/admin/domain-allow",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainAllow:e.mutation({query:e=>({url:"/api/v1/admin/domain-allow",method:"POST",body:e.allowedDomainReq})}),deleteApiV1AdminDomainAllowByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-allow/${e.domain}`,method:"DELETE"})}),putApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"PUT",body:e.blockDomainReq})}),getApiV1AdminDomainBlock:e.query({query:e=>({url:"/api/v1/admin/domain-block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"POST",body:e.blockDomainReq})}),deleteApiV1AdminDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-block/${e.domain}`,method:"DELETE"})}),getApiV1AdminEmailAllow:e.query({query:()=>({url:"/api/v1/admin/email-allow"})}),postApiV1AdminEmailAllow:e.mutation({query:e=>({url:"/api/v1/admin/email-allow",method:"POST",body:e.allowedDomainReq})}),deleteApiV1AdminEmailAllowByDomain:e.mutation({query:e=>({url:`/api/v1/admin/email-allow/${e.domain}`,method:"DELETE"})}),getApiV1AdminEmailBlock:e.query({query:()=>({url:"/api/v1/admin/email-block"})}),postApiV1AdminEmailBlock:e.mutation({query:e=>({url:"/api/v1/admin/email-block",method:"POST",body:e.blockEmailRequest})}),deleteApiV1AdminEmailBlockByPattern:e.mutation({query:e=>({url:`/api/v1/admin/email-block/${e.pattern}`,method:"DELETE"})}),getApiV1AdminFederation:e.query({query:e=>({url:"/api/v1/admin/federation",params:{blockState:e.blockState,lastId:e.lastId,limit:e.limit,offset:e.offset,search:e.search,sortBy:e.sortBy,sortOrder:e.sortOrder,unavailable:e.unavailable,untilId:e.untilId,warning:e.warning}})}),getApiV1AdminFederationMetricsOperations:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/operations",params:{window:e.window}})}),getApiV1AdminFederationMetricsRunningAverageSingle:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/running-average-single",params:{operation:e.operation,window:e.window}})}),getApiV1AdminFederationMetricsRunningAveragesAll:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/running-averages-all",params:{operations:e.operations,window:e.window}})}),getApiV1AdminFederationByDomain:e.query({query:e=>({url:`/api/v1/admin/federation/${e.domain}`})}),postApiV1AdminFeedClearUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/clear-user-feed",method:"POST",params:{userId:e.userId,username:e.username}})}),getApiV1AdminFeedDiagnose:e.query({query:e=>({url:"/api/v1/admin/feed/diagnose",params:{limit:e.limit,skipExactMatch:e.skipExactMatch,skipFull:e.skipFull,skipOrderMismatch:e.skipOrderMismatch,userId:e.userId,username:e.username}})}),getApiV1AdminFeedMetricsGlobalAllOperation:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-all-operation",params:{window:e.window}})}),getApiV1AdminFeedMetricsGlobalSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-single",params:{operation:e.operation,window:e.window}})}),getApiV1AdminFeedMetricsHistory:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history",params:{limit:e.limit,operation:e.operation,userId:e.userId}})}),getApiV1AdminFeedMetricsHistoryAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history/all",params:{limit:e.limit,userId:e.userId}})}),getApiV1AdminFeedMetricsRunningAverageSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/running-average-single",params:{operation:e.operation,userId:e.userId,window:e.window}})}),getApiV1AdminFeedMetricsRunningAveragesAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/running-averages-all",params:{userId:e.userId,window:e.window}})}),getApiV1AdminFeedMetricsSlowestOperations:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-operations",params:{limit:e.limit,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsers:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users",params:{limit:e.limit,operation:e.operation,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsersAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users-all",params:{limit:e.limit,sortDesc:e.sortDesc,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsersSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users-single",params:{limit:e.limit,operation:e.operation,sortDesc:e.sortDesc,window:e.window}})}),getApiV1AdminFeedMetricsSummary:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/summary",params:{includeUserCounts:e.includeUserCounts,window:e.window}})}),getApiV1AdminFeedMetricsUserCountAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/user-count-all",params:{window:e.window}})}),getApiV1AdminFeedMetricsUserCountSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/user-count-single",params:{operation:e.operation,window:e.window}})}),postApiV1AdminFeedRegenerateUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/regenerate-user-feed",method:"POST",params:{clear:e.clear,userId:e.userId,username:e.username}})}),getApiV1AdminGroupsSearch:e.query({query:e=>({url:"/api/v1/admin/groups/search",params:{accountId:e.accountId,displayName:e.displayName,domain:e.domain,email:e.email,joinMode:e.joinMode,lastId:e.lastId,limit:e.limit,offset:e.offset,privacy:e.privacy,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username,visibility:e.visibility}})}),getApiV1AdminGroupsUserByUserId:e.query({query:e=>({url:`/api/v1/admin/groups/user/${e.userId}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,roles:e.roles,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1AdminGroupsByAccountId:e.query({query:e=>({url:`/api/v1/admin/groups/${e.accountId}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1AdminGroupsByGroupIdCategories:e.query({query:e=>({url:`/api/v1/admin/groups/${e.groupId}/categories`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1AdminGroupsByGroupIdChannels:e.query({query:e=>({url:`/api/v1/admin/groups/${e.groupId}/channels`})}),getApiV1AdminGroupsByGroupIdEvents:e.query({query:e=>({url:`/api/v1/admin/groups/${e.groupId}/events`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withTranslation:e.withTranslation}})}),getApiV1AdminImpersonate:e.query({query:e=>({url:"/api/v1/admin/impersonate",params:{username:e.username}})}),getApiV1AdminLinkService:e.query({query:()=>({url:"/api/v1/admin/link-service"})}),postApiV1AdminLinkServiceConfigure:e.mutation({query:e=>({url:"/api/v1/admin/link-service/configure",method:"POST",body:e.configureRequest})}),postApiV1AdminPostsDelete:e.mutation({query:e=>({url:"/api/v1/admin/posts/delete",method:"POST",body:e.postDelete})}),deleteApiV1AdminPurge:e.mutation({query:e=>({url:"/api/v1/admin/purge",method:"DELETE",params:{id:e.id}})}),postApiV1AdminRegenerateKeys:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys",method:"POST",params:{userId:e.userId,username:e.username}})}),postApiV1AdminRegenerateKeysAll:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys-all",method:"POST",params:{batch:e.batch}})}),postApiV1AdminReleaseUsername:e.mutation({query:e=>({url:"/api/v1/admin/release-username",method:"POST",params:{username:e.username}})}),postApiV1AdminReportsDeletePosts:e.mutation({query:e=>({url:"/api/v1/admin/reports/delete-posts",method:"POST",body:e.body})}),getApiV1AdminReportsList:e.query({query:e=>({url:"/api/v1/admin/reports/list",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,open:e.open,postId:e.postId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId}})}),getApiV1AdminReportsByReportId:e.query({query:e=>({url:`/api/v1/admin/reports/${e.reportId}`})}),postApiV1AdminReportsByReportIdAddNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/add-note`,method:"POST",body:e.body})}),postApiV1AdminReportsByReportIdAssignToSelf:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/assign-to-self`,method:"POST"})}),deleteApiV1AdminReportsByReportIdDelete:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/delete`,method:"DELETE"})}),postApiV1AdminReportsByReportIdRemoveNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/remove-note`,method:"POST",params:{index:e.index}})}),postApiV1AdminReportsByReportIdReopen:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/reopen`,method:"POST"})}),postApiV1AdminReportsByReportIdResolve:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/resolve`,method:"POST"})}),postApiV1AdminReportsByReportIdUnassign:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/unassign`,method:"POST"})}),postApiV1AdminRestartApDelivery:e.mutation({query:e=>({url:"/api/v1/admin/restart-ap-delivery",method:"POST",params:{domain:e.domain}})}),getApiV1AdminSearch:e.query({query:e=>({url:"/api/v1/admin/search",params:{accountId:e.accountId,actorType:e.actorType,country:e.country,displayName:e.displayName,domain:e.domain,email:e.email,ip:e.ip,kind:e.kind,lastId:e.lastId,limit:e.limit,offset:e.offset,role:e.role,search:e.search,sortBy:e.sortBy,sortOrder:e.sortOrder,state:e.state,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminSignupRequestsApproveByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/approve/${e.hash}`,method:"PUT"})}),deleteApiV1AdminSignupRequestsDeleteByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/delete/${e.hash}`,method:"DELETE"})}),getApiV1AdminSignupRequestsList:e.query({query:e=>({url:"/api/v1/admin/signup_requests/list",params:{email:e.email,hash:e.hash,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1AdminSignupRequestsRejectByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/reject/${e.hash}`,method:"PUT",params:{reason:e.reason}})}),getApiV1AdminUploadsJobsQueueByQueueName:e.query({query:e=>({url:`/api/v1/admin/uploads/jobs/queue/${e.queueName}`,params:{limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,uploadType:e.uploadType}})}),getApiV1AdminUploadsJobsSummary:e.query({query:()=>({url:"/api/v1/admin/uploads/jobs/summary"})}),getApiV1AdminUploadsSearch:e.query({query:e=>({url:"/api/v1/admin/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType,userId:e.userId}})}),getApiV1AdminUploadsStorageByUserId:e.query({query:e=>({url:`/api/v1/admin/uploads/storage/${e.userId}`})}),postApiV1AdminUserChangeState:e.mutation({query:e=>({url:"/api/v1/admin/user/change-state",method:"POST",body:e.changeUserState})}),postApiV1AdminUserChangeStateBulk:e.mutation({query:e=>({url:"/api/v1/admin/user/change-state-bulk",method:"POST",body:e.changeUserStateBulk})}),getApiV1AdminUserByUserId:e.query({query:e=>({url:`/api/v1/admin/user/${e.userId}`})}),getApiV1AiAgentsAssignments:e.query({query:e=>({url:"/api/v1/ai-agents/assignments",params:{resourceId:e.resourceId,type:e.type}})}),deleteApiV1AiAgentsAssignments:e.mutation({query:e=>({url:"/api/v1/ai-agents/assignments",method:"DELETE",params:{id:e.id}})}),postApiV1AiAgentsAssignments:e.mutation({query:e=>({url:"/api/v1/ai-agents/assignments",method:"POST",body:e.aiAgentAssignmentCreate})}),getApiV1AiAgentsPosts:e.query({query:e=>({url:"/api/v1/ai-agents/posts",params:{limit:e.limit,ownerId:e.ownerId,since:e.since,htmlContent:e.htmlContent}})}),getApiV1AiModels:e.query({query:e=>({url:"/api/v1/ai-models",params:{capabilities:e.capabilities,deprecated:e.deprecated,enabled:e.enabled,maxContextWindow:e.maxContextWindow,maxInputPrice:e.maxInputPrice,maxMaxOutputTokens:e.maxMaxOutputTokens,maxOutputPrice:e.maxOutputPrice,minContextWindow:e.minContextWindow,minMaxOutputTokens:e.minMaxOutputTokens,modalities:e.modalities,openWeights:e.openWeights,page:e.page,pageSize:e.pageSize,providerId:e.providerId,search:e.search}})}),putApiV1AiModelsByModelId:e.mutation({query:e=>({url:`/api/v1/ai-models/${e.modelId}`,method:"PUT",body:e.aiModelUpdate,params:{scope:e.scope}})}),getApiV1AiModelsByModelId:e.query({query:e=>({url:`/api/v1/ai-models/${e.modelId}`})}),deleteApiV1AiModelsByModelId:e.mutation({query:e=>({url:`/api/v1/ai-models/${e.modelId}`,method:"DELETE",params:{scope:e.scope}})}),getApiV1AiModelsByModelIdMigrationPath:e.query({query:e=>({url:`/api/v1/ai-models/${e.modelId}/migration-path`})}),getApiV1AiModelsByModelIdResolve:e.query({query:e=>({url:`/api/v1/ai-models/${e.modelId}/resolve`})}),getApiV1AiProviders:e.query({query:e=>({url:"/api/v1/ai-providers",params:{enabledOnly:e.enabledOnly,scope:e.scope}})}),postApiV1AiProviders:e.mutation({query:e=>({url:"/api/v1/ai-providers",method:"POST",body:e.aiProviderCreate,params:{scope:e.scope}})}),putApiV1AiProvidersByProviderId:e.mutation({query:e=>({url:`/api/v1/ai-providers/${e.providerId}`,method:"PUT",body:e.aiProviderUpdate,params:{scope:e.scope}})}),getApiV1AiProvidersByProviderId:e.query({query:e=>({url:`/api/v1/ai-providers/${e.providerId}`,params:{scope:e.scope}})}),deleteApiV1AiProvidersByProviderId:e.mutation({query:e=>({url:`/api/v1/ai-providers/${e.providerId}`,method:"DELETE",params:{scope:e.scope}})}),getApiV1AiProvidersByProviderIdModels:e.query({query:e=>({url:`/api/v1/ai-providers/${e.providerId}/models`,params:{enabledOnly:e.enabledOnly,includeDeprecated:e.includeDeprecated}})}),postApiV1AiProvidersByProviderIdModels:e.mutation({query:e=>({url:`/api/v1/ai-providers/${e.providerId}/models`,method:"POST",body:e.aiModelCreate,params:{scope:e.scope}})}),postApiV1Apps:e.mutation({query:e=>({url:"/api/v1/apps",method:"POST",body:e.body,params:{enable:e.enable}})}),getApiV1Apps:e.query({query:()=>({url:"/api/v1/apps"})}),getApiV1AppsEnabled:e.query({query:()=>({url:"/api/v1/apps/enabled"})}),getApiV1AppsInstalled:e.query({query:()=>({url:"/api/v1/apps/installed"})}),getApiV1AppsUser:e.query({query:()=>({url:"/api/v1/apps/user"})}),deleteApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"DELETE"})}),putApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"PUT"})}),putApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"PUT",body:e.body,params:{enable:e.enable}})}),getApiV1AppsByAppId:e.query({query:e=>({url:`/api/v1/apps/${e.appId}`})}),deleteApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"DELETE"})}),getApiV1AppsByAppIdData:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/data`,params:{owner:e.owner,tags:e.tags,type:e.type}})}),postApiV1AppsByAppIdData:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data`,method:"POST",body:e.dataCreate})}),putApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"PUT",body:e.dataCreate})}),deleteApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"DELETE"})}),putApiV1AppsByAppIdDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/default`,method:"PUT"})}),putApiV1AppsByAppIdDisable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/disable`,method:"PUT"})}),putApiV1AppsByAppIdEnable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/enable`,method:"PUT"})}),getApiV1AppsByAppIdStats:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/stats`})}),putApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"PUT"})}),deleteApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"DELETE"})}),getApiV1Block:e.query({query:e=>({url:"/api/v1/block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1BlockBy:e.query({query:e=>({url:"/api/v1/block/by",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"DELETE"})}),postApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"POST"})}),getApiV1CustomEmojis:e.query({query:e=>({url:"/api/v1/custom_emojis",params:{category:e.category,lastId:e.lastId,limit:e.limit,offset:e.offset,shortcode:e.shortcode,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"DELETE",params:{category:e.category,shortcode:e.shortcode}})}),postApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"POST",body:e.emoji,params:{overwrite:e.overwrite}})}),getApiV1CustomEmojisCategories:e.query({query:e=>({url:"/api/v1/custom_emojis/categories",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,q:e.q,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1CustomEmojisExport:e.query({query:e=>({url:"/api/v1/custom_emojis/export",params:{category:e.category}})}),postApiV1CustomEmojisImport:e.mutation({query:e=>({url:"/api/v1/custom_emojis/import",method:"POST",body:e.body,params:{category:e.category,domain:e.domain,overwrite:e.overwrite,visible:e.visible}})}),postApiV1CustomEmojisImportUpload:e.mutation({query:e=>({url:"/api/v1/custom_emojis/import/upload",method:"POST",params:{category:e.category,domain:e.domain,overwrite:e.overwrite,uploadId:e.uploadId,visible:e.visible}})}),getApiV1CustomEmojisSearch:e.query({query:e=>({url:"/api/v1/custom_emojis/search",params:{category:e.category,lastId:e.lastId,limit:e.limit,offset:e.offset,shortcode:e.shortcode,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1CustomEmojisUpload:e.mutation({query:e=>({url:"/api/v1/custom_emojis/upload",method:"POST",params:{category:e.category,domain:e.domain,overwrite:e.overwrite,shortcode:e.shortcode,uploadId:e.uploadId,visible:e.visible}})}),patchApiV1CustomEmojisByShortcode:e.mutation({query:e=>({url:`/api/v1/custom_emojis/${e.shortcode}`,method:"PATCH",body:e.emojiPatchRequest})}),getApiV1Data:e.query({query:e=>({url:"/api/v1/data",params:{owner:e.owner,tags:e.tags,type:e.type}})}),postApiV1Data:e.mutation({query:e=>({url:"/api/v1/data",method:"POST",body:e.dataCreate})}),putApiV1DataById:e.mutation({query:e=>({url:`/api/v1/data/${e.id}`,method:"PUT",body:e.dataCreate})}),deleteApiV1DataById:e.mutation({query:e=>({url:`/api/v1/data/${e.id}`,method:"DELETE"})}),putApiV1Devices:e.mutation({query:e=>({url:"/api/v1/devices",method:"PUT",body:e.deviceRegistrationRequest})}),getApiV1Devices:e.query({query:()=>({url:"/api/v1/devices"})}),deleteApiV1DevicesAll:e.mutation({query:()=>({url:"/api/v1/devices/all",method:"DELETE"})}),getApiV1DevicesVapidPublicKey:e.query({query:()=>({url:"/api/v1/devices/vapid-public-key"})}),deleteApiV1DevicesByDeviceId:e.mutation({query:e=>({url:`/api/v1/devices/${e.deviceId}`,method:"DELETE"})}),getApiV1DomainBlock:e.query({query:e=>({url:"/api/v1/domain-block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Drafts:e.query({query:e=>({url:"/api/v1/drafts",params:{ownerId:e.ownerId}})}),postApiV1Drafts:e.mutation({query:e=>({url:"/api/v1/drafts",method:"POST",body:e.createDraftRequest,params:{ownerId:e.ownerId}})}),getApiV1DraftsPostByPostId:e.query({query:e=>({url:`/api/v1/drafts/post/${e.postId}`})}),putApiV1DraftsByDraftId:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}`,method:"PUT",body:e.updateDraftRequest})}),getApiV1DraftsByDraftId:e.query({query:e=>({url:`/api/v1/drafts/${e.draftId}`})}),deleteApiV1DraftsByDraftId:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}`,method:"DELETE"})}),postApiV1DraftsByDraftIdPublish:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}/publish`,method:"POST",params:{htmlContent:e.htmlContent}})}),getApiV1Events:e.query({query:e=>({url:"/api/v1/events",params:{groupId:e.groupId,limit:e.limit,offset:e.offset,organizerId:e.organizerId,username:e.username,withTranslation:e.withTranslation}})}),postApiV1Events:e.mutation({query:e=>({url:"/api/v1/events",method:"POST",body:e.createEvent})}),getApiV1EventsCalendarGByGroupnameIcs:e.query({query:e=>({url:`/api/v1/events/calendar/g/${e.groupname}.ics`})}),getApiV1EventsCalendarPByIdIcs:e.query({query:e=>({url:`/api/v1/events/calendar/p/${e.id}.ics`})}),getApiV1EventsCalendarUByUsernameIcs:e.query({query:e=>({url:`/api/v1/events/calendar/u/${e.username}.ics`})}),getApiV1EventsFollowing:e.query({query:e=>({url:"/api/v1/events/following",params:{limit:e.limit,offset:e.offset,withTranslation:e.withTranslation}})}),getApiV1EventsMy:e.query({query:e=>({url:"/api/v1/events/my",params:{limit:e.limit,notRespondedOnly:e.notRespondedOnly,offset:e.offset,organizedOnly:e.organizedOnly,past:e.past,withTranslation:e.withTranslation}})}),getApiV1EventsSettings:e.query({query:e=>({url:"/api/v1/events/settings",params:{ownerId:e.ownerId}})}),postApiV1EventsSettingsRegeneratePrivateId:e.mutation({query:e=>({url:"/api/v1/events/settings/regeneratePrivateId",method:"POST",params:{ownerId:e.ownerId}})}),postApiV1EventsSettingsUpdate:e.mutation({query:e=>({url:"/api/v1/events/settings/update",method:"POST",body:e.updateEventsSettings,params:{ownerId:e.ownerId}})}),putApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"PUT",body:e.updateEvent})}),getApiV1EventsByEventId:e.query({query:e=>({url:`/api/v1/events/${e.eventId}`,params:{withTranslation:e.withTranslation}})}),deleteApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"DELETE"})}),getApiV1EventsByEventIdIcs:e.query({query:e=>({url:`/api/v1/events/${e.eventId}.ics`})}),postApiV1EventsByEventIdAccept:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/accept`,method:"POST"})}),getApiV1EventsByEventIdAttendees:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/attendees`,params:{limit:e.limit,offset:e.offset}})}),deleteApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"DELETE"})}),postApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"POST"})}),postApiV1EventsByEventIdCancel:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/cancel`,method:"POST"})}),postApiV1EventsByEventIdInterested:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/interested`,method:"POST"})}),postApiV1EventsByEventIdJoin:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/join`,method:"POST"})}),deleteApiV1EventsByEventIdJoinOrInterested:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/joinOrInterested`,method:"DELETE"})}),postApiV1EventsByEventIdMaybe:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/maybe`,method:"POST"})}),getApiV1EventsByEventIdMutual:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/mutual`,params:{limit:e.limit,offset:e.offset}})}),postApiV1EventsByEventIdReject:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/reject`,method:"POST"})}),postApiV1EventsByEventIdTranslate:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/translate`,method:"POST",params:{lang:e.lang}})}),postApiV1FaspClear:e.mutation({query:()=>({url:"/api/v1/fasp/clear",method:"POST"})}),getApiV1FaspDebugV0CallbackCallbacks:e.query({query:()=>({url:"/api/v1/fasp/debug/v0/callback/callbacks"})}),deleteApiV1FaspDebugV0CallbackCallbacksById:e.mutation({query:e=>({url:`/api/v1/fasp/debug/v0/callback/callbacks/${e.id}`,method:"DELETE"})}),postApiV1FaspRegistration:e.mutation({query:e=>({url:"/api/v1/fasp/registration",method:"POST",body:e.registrationRequest})}),postApiV1FaspByProviderIdCapabilities:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/capabilities`,method:"POST",body:e.body})}),postApiV1FaspByProviderIdDebugCall:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/debug-call`,method:"POST",body:e.body})}),getApiV1FaspByProviderIdRegistrationFinish:e.query({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`})}),postApiV1FaspByProviderIdRegistrationFinish:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`,method:"POST"})}),postApiV1FaspByProviderIdRequestBackfill:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/request_backfill`,method:"POST",params:{category:e.category}})}),postApiV1FederationTokens:e.mutation({query:e=>({url:"/api/v1/federation/tokens",method:"POST",body:e.groupFederationTokenRequest})}),getApiV1Geo:e.query({query:e=>({url:"/api/v1/geo",params:{latitude:e.latitude,longitude:e.longitude}})}),getApiV1Groups:e.query({query:e=>({url:"/api/v1/groups",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1Groups:e.mutation({query:e=>({url:"/api/v1/groups",method:"POST",body:e.groupCreate})}),getApiV1GroupsApps:e.query({query:()=>({url:"/api/v1/groups/apps"})}),getApiV1GroupsInvites:e.query({query:e=>({url:"/api/v1/groups/invites",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1GroupsInvitesByGroupInviteId:e.query({query:e=>({url:`/api/v1/groups/invites/${e.groupInviteId}`})}),getApiV1GroupsMemberByUserId:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMemberByUserIdGroups:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}/groups`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMyGroups:e.query({query:e=>({url:"/api/v1/groups/my-groups",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsNameByGroupname:e.query({query:e=>({url:`/api/v1/groups/name/${e.groupname}`})}),getApiV1GroupsOwned:e.query({query:e=>({url:"/api/v1/groups/owned",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsPinned:e.query({query:e=>({url:"/api/v1/groups/pinned",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsSearch:e.query({query:e=>({url:"/api/v1/groups/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,substring:e.substring,untilId:e.untilId}})}),getApiV1GroupsUsersByUserIdMutual:e.query({query:e=>({url:`/api/v1/groups/users/${e.userId}/mutual`})}),putApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"PUT",body:e.groupUpdate})}),getApiV1GroupsByGroupId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}`})}),deleteApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"DELETE"})}),getApiV1GroupsByGroupIdAiAgentsAssignments:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/ai-agents/assignments`,params:{resourceId:e.resourceId,type:e.type}})}),deleteApiV1GroupsByGroupIdAiAgentsAssignments:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/ai-agents/assignments`,method:"DELETE",params:{assignmentId:e.assignmentId}})}),postApiV1GroupsByGroupIdAiAgentsAssignments:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/ai-agents/assignments`,method:"POST",body:e.aiAgentAssignmentCreate})}),getApiV1GroupsByGroupIdApps:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/apps`})}),deleteApiV1GroupsByGroupIdAppsAndAppId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/apps/${e.appId}`,method:"DELETE"})}),putApiV1GroupsByGroupIdAppsAndAppId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/apps/${e.appId}`,method:"PUT"})}),putApiV1GroupsByGroupIdBranding:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/branding`,method:"PUT",body:e.groupBrandingUpdate})}),getApiV1GroupsByGroupIdCategories:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/categories`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1GroupsByGroupIdCategories:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/categories`,method:"POST",body:e.categoryCreate})}),getApiV1GroupsByGroupIdCategoriesNameAndCategoryName:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/categories/name/${e.categoryName}`})}),putApiV1GroupsByGroupIdCategoriesAndCategoryId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/categories/${e.categoryId}`,method:"PUT",body:e.categoryUpdate})}),getApiV1GroupsByGroupIdCategoriesAndCategoryId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/categories/${e.categoryId}`})}),deleteApiV1GroupsByGroupIdCategoriesAndCategoryId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/categories/${e.categoryId}`,method:"DELETE"})}),getApiV1GroupsByGroupIdChannels:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels`})}),postApiV1GroupsByGroupIdChannels:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels`,method:"POST",body:e.body,params:{htmlContent:e.htmlContent}})}),getApiV1GroupsByGroupIdChannelsDefault:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/default`})}),getApiV1GroupsByGroupIdChannelsLookup:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/lookup`,params:{full:e.full,username:e.username,htmlContent:e.htmlContent}})}),getApiV1GroupsByGroupIdChannelsMain:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/main`,params:{htmlContent:e.htmlContent}})}),getApiV1GroupsByGroupIdChannelsPublic:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/public`})}),putApiV1GroupsByGroupIdChannelsAndChannelId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}`,method:"PUT",body:e.body,params:{htmlContent:e.htmlContent}})}),getApiV1GroupsByGroupIdChannelsAndChannelId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}`,params:{full:e.full,htmlContent:e.htmlContent}})}),deleteApiV1GroupsByGroupIdChannelsAndChannelId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}`,method:"DELETE"})}),putApiV1GroupsByGroupIdChannelsAndChannelIdDefault:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}/default`,method:"PUT",params:{isDefault:e.isDefault,htmlContent:e.htmlContent}})}),putApiV1GroupsByGroupIdChannelsAndChannelIdMain:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}/main`,method:"PUT",params:{htmlContent:e.htmlContent}})}),putApiV1GroupsByGroupIdChannelsAndChannelIdUsername:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/channels/${e.channelId}/username`,method:"PUT",body:e.body,params:{htmlContent:e.htmlContent}})}),postApiV1GroupsByGroupIdFederationToken:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/federation-token`,method:"POST"})}),putApiV1GroupsByGroupIdForum:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`,method:"PUT",body:e.forumUpdate})}),getApiV1GroupsByGroupIdForum:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`})}),deleteApiV1GroupsByGroupIdForum:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`,method:"DELETE"})}),deleteApiV1GroupsByGroupIdForumHard:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/forum/hard`,method:"DELETE"})}),getApiV1GroupsByGroupIdForumStats:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum/stats`})}),getApiV1GroupsByGroupIdForumTags:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum/tags`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsByGroupIdForumTagsSearch:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum/tags/search`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,q:e.q,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsByGroupIdInvites:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/invites`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1GroupsByGroupIdInvites:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/invites`,method:"POST",body:e.groupInviteCreate})}),deleteApiV1GroupsByGroupIdInvitesAndGroupInviteId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/invites/${e.groupInviteId}`,method:"DELETE"})}),postApiV1GroupsByGroupIdInvitesAndGroupInviteIdAccept:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/invites/${e.groupInviteId}/accept`,method:"POST"})}),postApiV1GroupsByGroupIdInvitesAndGroupInviteIdReject:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/invites/${e.groupInviteId}/reject`,method:"POST"})}),postApiV1GroupsByGroupIdJoin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join`,method:"POST",params:{answerToken:e.answerToken}})}),deleteApiV1GroupsByGroupIdJoin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join`,method:"DELETE"})}),getApiV1GroupsByGroupIdJoinRequests:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/join-requests`,params:{createdFrom:e.createdFrom,createdTo:e.createdTo,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId,username:e.username}})}),deleteApiV1GroupsByGroupIdJoinRequestsAndGroupJoinRequestId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join-requests/${e.groupJoinRequestId}`,method:"DELETE",params:{purge:e.purge,reason:e.reason}})}),putApiV1GroupsByGroupIdJoinRequestsAndGroupJoinRequestId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join-requests/${e.groupJoinRequestId}`,method:"PUT",params:{reason:e.reason}})}),putApiV1GroupsByGroupIdMemberSettings:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/member-settings`,method:"PUT",body:e.groupMemberSettings})}),getApiV1GroupsByGroupIdMemberSettings:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/member-settings`,params:{keys:e.keys}})}),deleteApiV1GroupsByGroupIdMemberSettings:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/member-settings`,method:"DELETE",params:{keys:e.keys}})}),getApiV1GroupsByGroupIdMembers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,params:{actorType:e.actorType,createdAfter:e.createdAfter,displayName:e.displayName,domain:e.domain,limit:e.limit,offset:e.offset,order:e.order,role:e.role,sort:e.sort,username:e.username}})}),postApiV1GroupsByGroupIdMembers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,method:"POST",body:e.groupMemberCreate})}),getApiV1GroupsByGroupIdMembersSearch:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/members/search`,params:{actorType:e.actorType,country:e.country,createdAfter:e.createdAfter,displayName:e.displayName,domain:e.domain,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,role:e.role,roles:e.roles,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,username:e.username}})}),putApiV1GroupsByGroupIdMembersAndMemberId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members/${e.memberId}`,method:"PUT",body:e.groupMemberUpdate})}),deleteApiV1GroupsByGroupIdMembersAndMemberId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members/${e.memberId}`,method:"DELETE",params:{reason:e.reason}})}),deleteApiV1GroupsByGroupIdMembership:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/membership`,method:"DELETE"})}),getApiV1GroupsByGroupIdMembership:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/membership`})}),deleteApiV1GroupsByGroupIdPin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/pin`,method:"DELETE"})}),putApiV1GroupsByGroupIdPin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/pin`,method:"PUT",params:{pin:e.pin}})}),getApiV1GroupsByGroupIdQuestions:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/questions`})}),postApiV1GroupsByGroupIdQuestions:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/questions`,method:"POST",body:e.questionCreate})}),postApiV1GroupsByGroupIdQuestionsAnswers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/questions/answers`,method:"POST",body:e.questionAnswerCreate})}),putApiV1GroupsByGroupIdQuestionsAndQuestionId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/questions/${e.questionId}`,method:"PUT",body:e.questionUpdate})}),deleteApiV1GroupsByGroupIdQuestionsAndQuestionId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/questions/${e.questionId}`,method:"DELETE"})}),postApiV1GroupsByGroupIdReportsDeletePosts:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/delete-posts`,method:"POST",body:e.body})}),getApiV1GroupsByGroupIdReportsList:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/list`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,open:e.open,postId:e.postId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId}})}),getApiV1GroupsByGroupIdReportsAndReportId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/${e.reportId}`})}),postApiV1GroupsByGroupIdReportsAndReportIdAddNote:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/${e.reportId}/add-note`,method:"POST",body:e.body})}),postApiV1GroupsByGroupIdReportsAndReportIdRemoveNote:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/${e.reportId}/remove-note`,method:"POST",params:{index:e.index}})}),postApiV1GroupsByGroupIdReportsAndReportIdReopen:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/${e.reportId}/reopen`,method:"POST"})}),postApiV1GroupsByGroupIdReportsAndReportIdResolve:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/reports/${e.reportId}/resolve`,method:"POST"})}),getApiV1GroupsByGroupIdRules:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/rules`})}),postApiV1GroupsByGroupIdRules:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules`,method:"POST",params:{hint:e.hint,ordering:e.ordering,text:e.text}})}),postApiV1GroupsByGroupIdRulesReorder:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules/reorder`,method:"POST",body:e.body})}),deleteApiV1GroupsByGroupIdRulesAndId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules/${e.id}`,method:"DELETE"})}),putApiV1GroupsByGroupIdRulesAndRuleId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules/${e.ruleId}`,method:"PUT",body:e.ruleUpdate})}),putApiV1GroupsByGroupIdSettings:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/settings`,method:"PUT",body:e.groupSettings})}),getApiV1GroupsByGroupIdSettings:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/settings`,params:{keys:e.keys}})}),deleteApiV1GroupsByGroupIdSettings:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/settings`,method:"DELETE",params:{keys:e.keys}})}),getApiV1GroupsByGroupIdUsers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/users`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,order:e.order,role:e.role,sort:e.sort,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Import:e.query({query:()=>({url:"/api/v1/import"})}),postApiV1Import:e.mutation({query:e=>({url:"/api/v1/import",method:"POST",body:e.body,params:{overwrite:e.overwrite,type:e.type}})}),postApiV1ImportStartById:e.mutation({query:e=>({url:`/api/v1/import/start/${e.id}`,method:"POST"})}),getApiV1ImportById:e.query({query:e=>({url:`/api/v1/import/${e.id}`})}),getApiV1Instance:e.query({query:()=>({url:"/api/v1/instance"})}),getApiV1InstanceCountries:e.query({query:()=>({url:"/api/v1/instance/countries"})}),getApiV1InstanceDomains:e.query({query:e=>({url:"/api/v1/instance/domains",params:{domain:e.domain,limit:e.limit,software:e.software}})}),getApiV1InstanceExtendedDescription:e.query({query:()=>({url:"/api/v1/instance/extended_description"})}),getApiV1InstanceSupportedLanguages:e.query({query:()=>({url:"/api/v1/instance/supported_languages"})}),getApiV1InstanceTimezones:e.query({query:()=>({url:"/api/v1/instance/timezones"})}),getApiV1JobsListJobs:e.query({query:e=>({url:"/api/v1/jobs/list-jobs",params:{limit:e.limit,offset:e.offset}})}),getApiV1JobsListStats:e.query({query:e=>({url:"/api/v1/jobs/list-stats",params:{queue:e.queue}})}),getApiV1JobsListStatsAll:e.query({query:()=>({url:"/api/v1/jobs/list-stats-all"})}),getApiV1JobsLists:e.query({query:e=>({url:"/api/v1/jobs/lists",params:{limit:e.limit,listKind:e.listKind,offset:e.offset,queue:e.queue}})}),getApiV1JobsStats:e.query({query:()=>({url:"/api/v1/jobs/stats"})}),getApiV1JobsStatsPerDay:e.query({query:e=>({url:"/api/v1/jobs/stats-per-day",params:{lastDays:e.lastDays,queue:e.queue}})}),getApiV1Links:e.query({query:e=>({url:"/api/v1/links",params:{url:e.url}})}),getApiV1Lists:e.query({query:()=>({url:"/api/v1/lists"})}),postApiV1Lists:e.mutation({query:e=>({url:"/api/v1/lists",method:"POST",body:e.userListCreate})}),putApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"PUT",body:e.userListCreate})}),getApiV1ListsByListId:e.query({query:e=>({url:`/api/v1/lists/${e.listId}`})}),deleteApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"DELETE"})}),getApiV1ListsByListIdUsers:e.query({query:e=>({url:`/api/v1/lists/${e.listId}/users`})}),deleteApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"DELETE"})}),postApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"POST"})}),getApiV1Metrics:e.query({query:e=>({url:"/api/v1/metrics",params:{from:e.from,period:e.period,to:e.to}})}),getApiV1MetricsTotals:e.query({query:()=>({url:"/api/v1/metrics/totals"})}),getApiV1Mute:e.query({query:e=>({url:"/api/v1/mute",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"DELETE"})}),postApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"POST",params:{duration:e.duration}})}),getApiV1NamesCheck:e.query({query:e=>({url:"/api/v1/names/check",params:{name:e.name,nameScope:e.nameScope,scope:e.scope}})}),putApiV1Notes:e.mutation({query:e=>({url:"/api/v1/notes",method:"PUT",body:e.noteUpdate})}),getApiV1Notes:e.query({query:e=>({url:"/api/v1/notes",params:{userIds:e.userIds}})}),deleteApiV1NotesByUserId:e.mutation({query:e=>({url:`/api/v1/notes/${e.userId}`,method:"DELETE"})}),getApiV1Notifications:e.query({query:e=>({url:"/api/v1/notifications",params:{excludeTypes:e.excludeTypes,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,types:e.types,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1NotificationsCount:e.query({query:e=>({url:"/api/v1/notifications/count",params:{excludeTypes:e.excludeTypes,status:e.status,types:e.types}})}),postApiV1NotificationsMarkAll:e.mutation({query:e=>({url:"/api/v1/notifications/mark-all",method:"POST",params:{status:e.status}})}),getApiV1NotificationsById:e.query({query:e=>({url:`/api/v1/notifications/${e.id}`,params:{htmlContent:e.htmlContent}})}),postApiV1NotificationsByIdMark:e.mutation({query:e=>({url:`/api/v1/notifications/${e.id}/mark`,method:"POST",params:{status:e.status,htmlContent:e.htmlContent}})}),getApiV1Passkeys:e.query({query:()=>({url:"/api/v1/passkeys"})}),getApiV1PasskeysBeginAuth:e.query({query:e=>({url:"/api/v1/passkeys/begin-auth",params:{username:e.username}})}),getApiV1PasskeysBeginRegister:e.query({query:()=>({url:"/api/v1/passkeys/begin-register"})}),postApiV1PasskeysFinishAuth:e.mutation({query:e=>({url:"/api/v1/passkeys/finish-auth",method:"POST",body:e.jsonObject})}),postApiV1PasskeysFinishRegister:e.mutation({query:e=>({url:"/api/v1/passkeys/finish-register",method:"POST",body:e.jsonObject})}),deleteApiV1PasskeysByCredentialId:e.mutation({query:e=>({url:`/api/v1/passkeys/${e.credentialId}`,method:"DELETE"})}),postApiV1PollsByPollIdRefresh:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/refresh`,method:"POST"})}),postApiV1PollsByPollIdVote:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/vote`,method:"POST",body:e.body})}),getApiV1Posts:e.query({query:e=>({url:"/api/v1/posts",params:{all:e.all,bookmarkedOnly:e.bookmarkedOnly,forumTags:e.forumTags,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,includeFollowStatus:e.includeFollowStatus,includePinnedStatus:e.includePinnedStatus,includeReply:e.includeReply,lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,listId:e.listId,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,ownerId:e.ownerId,pinned:e.pinned,repostKind:e.repostKind,repostOf:e.repostOf,repostsOnly:e.repostsOnly,search:e.search,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,userId:e.userId,username:e.username,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),postApiV1Posts:e.mutation({query:e=>({url:"/api/v1/posts",method:"POST",body:e.createPost,params:{ownerId:e.ownerId,htmlContent:e.htmlContent}})}),getApiV1PostsBookmarked:e.query({query:e=>({url:"/api/v1/posts/bookmarked",params:{includeComments:e.includeComments,includeReply:e.includeReply,lastId:e.lastId,limit:e.limit,my:e.my,offset:e.offset,ownerId:e.ownerId,search:e.search,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsFeedsFollowing:e.query({query:e=>({url:"/api/v1/posts/feeds/following",params:{ignoreCache:e.ignoreCache,includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,htmlContent:e.htmlContent}})}),getApiV1PostsFeedsPublic:e.query({query:e=>({url:"/api/v1/posts/feeds/public",params:{includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,local:e.local,offset:e.offset,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),getApiV1PostsLiked:e.query({query:e=>({url:"/api/v1/posts/liked",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerId:e.ownerId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),putApiV1PostsMarkdown2Html:e.mutation({query:e=>({url:"/api/v1/posts/markdown2html",method:"PUT",body:e.body})}),getApiV1PostsMentioned:e.query({query:e=>({url:"/api/v1/posts/mentioned",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerId:e.ownerId,private:e.private,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsMy:e.query({query:e=>({url:"/api/v1/posts/my",params:{bookmarkedOnly:e.bookmarkedOnly,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerId:e.ownerId,repostsOnly:e.repostsOnly,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsPins:e.query({query:e=>({url:"/api/v1/posts/pins",params:{ownerId:e.ownerId,postOnly:e.postOnly}})}),deleteApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"DELETE"})}),postApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"POST"})}),getApiV1PostsReplies:e.query({query:e=>({url:"/api/v1/posts/replies",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerId:e.ownerId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username,htmlContent:e.htmlContent}})}),getApiV1PostsSubscribe:e.query({query:e=>({url:"/api/v1/posts/subscribe",params:{all:e.all,ownerId:e.ownerId,htmlContent:e.htmlContent}})}),putApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostId:e.query({query:e=>({url:`/api/v1/posts/${e.postId}`,params:{includeBookmarkStatus:e.includeBookmarkStatus,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,withComments:e.withComments,withParents:e.withParents,withRepostedBy:e.withRepostedBy,withRootParent:e.withRootParent,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"DELETE"})}),getApiV1PostsByPostIdActiveUsers:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/active-users`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"DELETE"})}),postApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"POST"})}),getApiV1PostsByPostIdComments:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,params:{lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdComments:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),putApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"DELETE"})}),postApiV1PostsByPostIdDetach:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/detach`,method:"POST"})}),postApiV1PostsByPostIdDownvote:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/downvote`,method:"POST",params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdEdits:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/edits`,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdLikes:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"DELETE"})}),postApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"POST"})}),postApiV1PostsByPostIdRefreshCard:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/refresh-card`,method:"POST"})}),deleteApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"DELETE"})}),postApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdReposts:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/reposts`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,kind:e.kind,lastId:e.lastId,limit:e.limit,offset:e.offset,skipDuplicates:e.skipDuplicates,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"POST"})}),deleteApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"DELETE"})}),postApiV1PostsByPostIdTrackView:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/track-view`,method:"POST"})}),postApiV1PostsByPostIdTranslate:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/translate`,method:"POST",params:{htmlContent:e.htmlContent,lang:e.lang}})}),postApiV1PostsByPostIdUpvote:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/upvote`,method:"POST",params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdVotes:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/votes`,params:{htmlContent:e.htmlContent}})}),getApiV1Rbac:e.query({query:()=>({url:"/api/v1/rbac"})}),getApiV1RbacActorsByActorIdPermissions:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/permissions`,params:{targetScope:e.targetScope}})}),getApiV1RbacActorsByActorIdRoles:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/roles`,params:{targetScope:e.targetScope}})}),putApiV1RbacRolesByRoleId:e.mutation({query:e=>({url:`/api/v1/rbac/roles/${e.roleId}`,method:"PUT",body:e.rbacRoleTemplate})}),getApiV1RbacScopesByScopeRoles:e.query({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`})}),postApiV1RbacScopesByScopeRoles:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`,method:"POST",body:e.rbacRoleTemplate})}),deleteApiV1RbacScopesByScopeRolesAndRoleName:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles/${e.roleName}`,method:"DELETE"})}),getApiV1RbacByResource:e.query({query:e=>({url:`/api/v1/rbac/${e.resource}`})}),postApiV1Reports:e.mutation({query:e=>({url:"/api/v1/reports",method:"POST",body:e.createReport})}),putApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"PUT",body:e.rule})}),getApiV1Rules:e.query({query:()=>({url:"/api/v1/rules"})}),postApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"POST",body:e.ruleCreate})}),postApiV1RulesReorder:e.mutation({query:e=>({url:"/api/v1/rules/reorder",method:"POST",body:e.body})}),deleteApiV1RulesById:e.mutation({query:e=>({url:`/api/v1/rules/${e.id}`,method:"DELETE"})}),getApiV1Search:e.query({query:e=>({url:"/api/v1/search",params:{actorType:e.actorType,fasp:e.fasp,faspHydrated:e.faspHydrated,filter:e.filter,followStatus:e.followStatus,followers:e.followers,following:e.following,groupId:e.groupId,groupMemberRole:e.groupMemberRole,includeRelations:e.includeRelations,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerId:e.ownerId,q:e.q,resolve:e.resolve,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withComments:e.withComments,withParent:e.withParent,htmlContent:e.htmlContent}})}),deleteApiV1SessionsAll:e.mutation({query:()=>({url:"/api/v1/sessions/all",method:"DELETE"})}),getApiV1SessionsList:e.query({query:()=>({url:"/api/v1/sessions/list"})}),putApiV1SessionsRevokeAll:e.mutation({query:()=>({url:"/api/v1/sessions/revoke/all",method:"PUT"})}),putApiV1SessionsRevokeBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/revoke/${e.sessionKey}`,method:"PUT"})}),deleteApiV1SessionsBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/${e.sessionKey}`,method:"DELETE"})}),putApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"PUT",body:e.platformSettings})}),getApiV1Settings:e.query({query:e=>({url:"/api/v1/settings",params:{keys:e.keys}})}),deleteApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"DELETE",params:{keys:e.keys}})}),getApiV1SettingsNames:e.query({query:e=>({url:"/api/v1/settings/names",params:{type:e.type}})}),putApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"PUT",body:e.userSettings})}),getApiV1SettingsUser:e.query({query:e=>({url:"/api/v1/settings/user",params:{keys:e.keys}})}),deleteApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"DELETE",params:{keys:e.keys}})}),getApiV1TagsFeatured:e.query({query:e=>({url:"/api/v1/tags/featured",params:{scope:e.scope,userId:e.userId}})}),deleteApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"DELETE",params:{scope:e.scope}})}),postApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"POST",params:{scope:e.scope}})}),postApiV1TagsFollowByName:e.mutation({query:e=>({url:`/api/v1/tags/follow/${e.name}`,method:"POST",params:{scope:e.scope}})}),getApiV1TagsFollowed:e.query({query:e=>({url:"/api/v1/tags/followed",params:{scope:e.scope}})}),putApiV1TagsList:e.mutation({query:e=>({url:"/api/v1/tags/list",method:"PUT",body:e.body,params:{scope:e.scope,soft:e.soft,type:e.type}})}),patchApiV1TagsList:e.mutation({query:e=>({url:"/api/v1/tags/list",method:"PATCH",body:e.body,params:{scope:e.scope,soft:e.soft,type:e.type}})}),getApiV1TagsList:e.query({query:e=>({url:"/api/v1/tags/list",params:{scope:e.scope,soft:e.soft,type:e.type}})}),deleteApiV1TagsList:e.mutation({query:e=>({url:"/api/v1/tags/list",method:"DELETE",body:e.body,params:{scope:e.scope,soft:e.soft,type:e.type}})}),putApiV1TagsPolicy:e.mutation({query:e=>({url:"/api/v1/tags/policy",method:"PUT",body:e.setTagPolicyRequest,params:{scope:e.scope}})}),getApiV1TagsPolicy:e.query({query:e=>({url:"/api/v1/tags/policy",params:{scope:e.scope}})}),postApiV1TagsReport:e.mutation({query:e=>({url:"/api/v1/tags/report",method:"POST",body:e.createTagReportRequest,params:{name:e.name,scope:e.scope}})}),getApiV1TagsReports:e.query({query:e=>({url:"/api/v1/tags/reports",params:{scope:e.scope}})}),getApiV1TagsSearch:e.query({query:e=>({url:"/api/v1/tags/search",params:{limit:e.limit,name:e.name,offset:e.offset,scope:e.scope}})}),getApiV1TagsTrending:e.query({query:e=>({url:"/api/v1/tags/trending",params:{limit:e.limit,offset:e.offset,scope:e.scope,sortBy:e.sortBy,sortOrder:e.sortOrder}})}),postApiV1TagsUnfollowByName:e.mutation({query:e=>({url:`/api/v1/tags/unfollow/${e.name}`,method:"POST",params:{scope:e.scope}})}),getApiV1TagsByName:e.query({query:e=>({url:`/api/v1/tags/${e.name}`,params:{historySince:e.historySince,scope:e.scope}})}),postApiV1TranslateText:e.mutation({query:e=>({url:"/api/v1/translate/text",method:"POST",body:e.translationRequest})}),getApiV1TrendsLinks:e.query({query:()=>({url:"/api/v1/trends/links"})}),getApiV1TrendsPosts:e.query({query:e=>({url:"/api/v1/trends/posts",params:{htmlContent:e.htmlContent}})}),getApiV1TrendsTags:e.query({query:e=>({url:"/api/v1/trends/tags",params:{scope:e.scope}})}),postApiV1Uploads:e.mutation({query:e=>({url:"/api/v1/uploads",method:"POST",body:e.createUpload})}),postApiV1UploadsBatch:e.mutation({query:e=>({url:"/api/v1/uploads/batch",method:"POST",body:e.body})}),postApiV1UploadsList:e.mutation({query:e=>({url:"/api/v1/uploads/list",method:"POST",body:e.uploadList})}),getApiV1UploadsSearch:e.query({query:e=>({url:"/api/v1/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType}})}),getApiV1UploadsUsages:e.query({query:e=>({url:"/api/v1/uploads/usages",params:{ids:e.ids}})}),getApiV1UploadsById:e.query({query:e=>({url:`/api/v1/uploads/${e.id}`})}),deleteApiV1UploadsById:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}`,method:"DELETE"})}),postApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"POST",body:e.body})}),putApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"PUT",body:e.body})}),postApiV1UploadsByIdPrivacy:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/privacy`,method:"POST",body:e.updateUploadPrivacy})}),postApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"POST",body:e.body})}),putApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"PUT",body:e.body})}),postApiV1UploadsByIdThumbnail:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/thumbnail`,method:"POST",body:e.changeVideoThumbnail})}),getApiV1UserAlias:e.query({query:()=>({url:"/api/v1/user-alias"})}),deleteApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"DELETE",params:{uri:e.uri}})}),postApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"POST",params:{acct:e.acct}})}),getApiV1UserDomainBlock:e.query({query:()=>({url:"/api/v1/user-domain-block"})}),deleteApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"DELETE"})}),postApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"POST"})}),deleteApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"DELETE",params:{id:e.id,name:e.name}})}),postApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"POST",body:e.userCreate,params:{htmlContent:e.htmlContent}})}),getApiV1Users:e.query({query:e=>({url:"/api/v1/users",params:{full:e.full,includeBlockedByStatus:e.includeBlockedByStatus,includeBlockedStatus:e.includeBlockedStatus,includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,includeMutedStatus:e.includeMutedStatus,relations:e.relations,username:e.username,htmlContent:e.htmlContent}})}),getApiV1UsersConnections:e.query({query:e=>({url:"/api/v1/users/connections",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersFollowByUsername:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),postApiV1UsersFollowByUsernameAccept:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/accept`,method:"POST"})}),postApiV1UsersFollowByUsernamePend:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/pend`,method:"POST"})}),postApiV1UsersFollowByUsernameReject:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/reject`,method:"POST"})}),postApiV1UsersFollowByUsernameUndo:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/undo`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),getApiV1UsersFollowees:e.query({query:e=>({url:"/api/v1/users/followees",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersFollowers:e.query({query:e=>({url:"/api/v1/users/followers",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteLinks:e.query({query:e=>({url:"/api/v1/users/invite-links",params:{active:e.active,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1UsersInviteLinks:e.mutation({query:e=>({url:"/api/v1/users/invite-links",method:"POST",body:e.signupInviteLinkCreate})}),putApiV1UsersInviteLinksDeactivateByCode:e.mutation({query:e=>({url:`/api/v1/users/invite-links/deactivate/${e.code}`,method:"PUT"})}),getApiV1UsersRelationships:e.query({query:e=>({url:"/api/v1/users/relationships",params:{filter:e.filter,targets:e.targets}})}),getApiV1UsersRemoteByUserNameFullFollowers:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/followers`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRemoteByUserNameFullFollowing:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/following`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRenameHistory:e.query({query:()=>({url:"/api/v1/users/rename-history"})}),putApiV1UsersByUserId:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}`,method:"PUT",body:e.userUpdate,params:{htmlContent:e.htmlContent}})}),getApiV1UsersByUserId:e.query({query:e=>({url:`/api/v1/users/${e.userId}`,params:{full:e.full,includeBlockedByStatus:e.includeBlockedByStatus,includeBlockedStatus:e.includeBlockedStatus,includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,includeMutedStatus:e.includeMutedStatus,relations:e.relations,htmlContent:e.htmlContent}})}),getApiV1UsersByUserIdFollowers:e.query({query:e=>({url:`/api/v1/users/${e.userId}/followers`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1UsersByUserIdFollowing:e.query({query:e=>({url:`/api/v1/users/${e.userId}/following`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1UsersByUserIdMedia:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}/media`,method:"PUT",body:e.userUpdateMedia,params:{htmlContent:e.htmlContent}})}),getRoot:e.query({query:e=>({url:"/",params:{format:e.format}})}),getUser:e.query({query:e=>({url:`/@${e.username}`,params:{format:e.format}})}),getUserEvent:e.query({query:e=>({url:`/@${e.username}/events/${e.eventId}`,params:{format:e.format}})}),getUserPost:e.query({query:e=>({url:`/@${e.username}/posts/${e.postId}`,params:{format:e.format}})}),getAbout:e.query({query:e=>({url:"/about",params:{format:e.format}})}),getFeed:e.query({query:e=>({url:"/feed",params:{format:e.format}})}),getFeedDiscover:e.query({query:e=>({url:"/feed/discover",params:{format:e.format}})}),getFeedFollowing:e.query({query:e=>({url:"/feed/following",params:{format:e.format}})}),getGroup:e.query({query:e=>({url:`/g/${e.groupName}`,params:{format:e.format}})}),getGroupChannel:e.query({query:e=>({url:`/g/${e.groupName}/@${e.channelName}`,params:{format:e.format}})}),getGroupChannelPost:e.query({query:e=>({url:`/g/${e.groupName}/@${e.channelName}/posts/${e.postId}`,params:{format:e.format}})}),getGroupEvent:e.query({query:e=>({url:`/g/${e.groupName}/events/${e.eventId}`,params:{format:e.format}})}),getGroupForumCategory:e.query({query:e=>({url:`/g/${e.groupName}/forum/c/${e.categoryName}`,params:{format:e.format}})}),getGroupForumPost:e.query({query:e=>({url:`/g/${e.groupName}/forum/posts/${e.postId}`,params:{format:e.format}})}),getForumTag:e.query({query:e=>({url:`/g/${e.groupName}/forum/tag/${e.tagName}`,params:{format:e.format}})}),getPrivacy:e.query({query:e=>({url:"/privacy",params:{format:e.format}})}),getTerms:e.query({query:e=>({url:"/terms",params:{format:e.format}})})}),overrideExisting:!1}),GQ={data:null,isPending:!1,isSuccess:!1},HQ=Wo({name:"userNoHTML",initialState:GQ,reducers:{setUser:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectUser:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),eA={data:null,isError:!1,isPending:!1,isSuccess:!1},KQ=Wo({name:"user",initialState:eA,reducers:{reset:e=>{Object.assign(e,eA)}},extraReducers:e=>{e.addCase(OG,((e,{payload:t})=>{e.data=t})).addCase(AG,((e,{payload:t})=>{e.data&&Object.assign(e.data,t||{})})).addCase(TG,((e,{payload:t})=>{e.isSuccess=t})).addCase(RG,((e,{payload:t})=>{e.isPending=t})).addCase(PG,((e,{payload:t})=>{e.isError=t})).addCase(EG,((e,{payload:t})=>{e.error=t})).addCase(DG,((e,{payload:t})=>{var n;null!=(n=e.data)&&n.users&&(e.data.users=e.data.users.map((e=>t.id===e.id?t:e)))}))},selectors:{selectIsError:e=>e.isError,selectError:e=>e.error,selectPending:e=>e.isPending,selectData:e=>e.data,selectAccount:e=>{var t;return null==(t=e.data)?void 0:t.account},selectAccountId:e=>{var t;return null==(t=e.data)?void 0:t.account.id},selectUsers:e=>{var t;return null==(t=e.data)?void 0:t.users},selectUserById:(e,t)=>{var n;return null==(n=e.data)?void 0:n.users.find((({id:e})=>e===t))},selectCurrentUser:e=>{var t;return null==(t=e.data)?void 0:t.users.find((({id:t})=>{var n;return t===(null==(n=e.data)?void 0:n.selectedUserId)}))},selectSelectedUserId:e=>{var t;return null==(t=e.data)?void 0:t.selectedUserId},selectSuccess:e=>e.isSuccess}}),MC=e=>e,Jy=Qr(MC,(e=>e.data)),QQ=Qr(MC,(e=>e.error)),YQ=Qr(MC,(e=>e.isPending)),XQ=Qr(Jy,(e=>null==e?void 0:e.rules)),JQ=Qr(Jy,(e=>null==e?void 0:e.contact_account)),ZQ=Qr(Jy,(e=>(null==e?void 0:e.stats)&&Object.fromEntries(Object.entries(e.stats).map((([e,t])=>[e,t??0]))))),eY={data:null,isPending:!1},tY=Wo({name:"instanceInfo",initialState:eY,reducers:{},extraReducers:e=>{e.addCase(WG,((e,{payload:t})=>{e.data=t})).addCase(qG,((e,{payload:t})=>{e.isPending=t})).addCase(GG,((e,{payload:t})=>{e.error=t}))},selectors:{selectInstanceInfo:Jy,selectInstanceInfoError:QQ,selectInstanceInfoPending:YQ,selectPlatformRules:XQ,selectInstanceContacts:JQ,selectInstanceStats:ZQ,selectDescription:e=>{var t;return null==(t=e.data)?void 0:t.description},selectStats:e=>{var t;return null==(t=e.data)?void 0:t.stats},selectRegistrations:e=>{var t;return null==(t=e.data)?void 0:t.configuration.registrations}}}),nY={data:null,isPending:!1,isSuccess:!1},rY=Wo({name:"profileSettings",initialState:nY,reducers:{setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},extraReducers:e=>{e.addCase(KG,((e,{payload:t})=>{e.data=t}))},selectors:{selectProfileSettings:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),oY={sms:"wellesley.admin.sms",openai:"wellesley.admin.openai",uploads:"wellesley.admin.uploads",captcha:"wellesley.admin.captcha",language:"wellesley.admin.language",mediacache:"wellesley.admin.mediacache",translation:"wellesley.admin.translation",link_service:"wellesley.admin.link_service"},GS={posts:"wellesley.posts",translation:"wellesley.translation",registration:"wellesley.registration",confirmationCode:"wellesley.confirmationCode",uploadsPolicyDoc:"wellesley.uploads.policy.doc",uploadsPolicyAudio:"wellesley.uploads.policy.audio",uploadsPolicyImage:"wellesley.uploads.policy.image",uploadsPolicyVideo:"wellesley.uploads.policy.video",captcha:"wellesley.captcha",access:"wellesley.access",branding:"wellesley.branding",instanceAdmin:"wellesley.instance.admin",legal:"wellesley.instance.legal",domainBlocks:"wellesley.instance.domainBlocks",contacts:"wellesley.instance.contacts"},iv=e=>(null==e?void 0:e.map((e=>e.value||e)))||[],iY={data:null,isPending:!1},{posts:oS,uploadsPolicyDoc:tA,uploadsPolicyAudio:iS,uploadsPolicyImage:Ug,uploadsPolicyVideo:ev,registration:Z3,captcha:aY,instanceAdmin:sY,branding:uY,translation:lY,domainBlocks:cY,access:dY}=GS,{captcha:fY,language:pY,translation:hY,openai:mY,link_service:vY}=oY,vp=e=>e.data,gY=Qr(vp,(e=>{var t,n,r;return{max_characters:(null==(t=null==e?void 0:e[oS])?void 0:t.max_characters)||0,max_media_attachments:(null==(n=null==e?void 0:e[oS])?void 0:n.max_media_attachments)||0,max_pins:(null==(r=null==e?void 0:e[oS])?void 0:r.max_pins)||0}})),LC=Qr(vp,(e=>{var t,n,r;return{...null==e?void 0:e[Ug],maxSize:(null==(t=null==e?void 0:e[Ug])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[Ug])?void 0:n.maxMatrix)||0,maxResolution:(null==(r=null==e?void 0:e[Ug])?void 0:r.maxResolution)||0}})),yY=Qr(LC,(e=>iv(e.extensions))),eM=Qr(vp,(e=>{var t,n,r,o;return{...null==e?void 0:e[ev],maxSize:(null==(t=null==e?void 0:e[ev])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[ev])?void 0:n.maxMatrix)||0,maxDuration:(null==(r=null==e?void 0:e[ev])?void 0:r.maxDuration)||0,maxResolution:(null==(o=null==e?void 0:e[ev])?void 0:o.maxResolution)||0}})),tM=Qr(vp,(e=>{var t,n;return{...null==e?void 0:e[iS],maxSize:null==(t=null==e?void 0:e[iS])?void 0:t.maxSize,keepOriginal:(null==(n=null==e?void 0:e[iS])?void 0:n.keepOriginal)||0}})),nM=Qr(vp,(e=>{var t;return{...null==e?void 0:e[tA],maxSize:(null==(t=null==e?void 0:e[tA])?void 0:t.maxSize)||0}})),rM=Qr([LC,eM,tM,nM],((e,t,n,r)=>({IMAGE:iv(null==e?void 0:e.extensions),VIDEO:iv(null==t?void 0:t.extensions),AUDIO:iv(null==n?void 0:n.extensions),DOCUMENT:iv(null==r?void 0:r.extensions)}))),wY=Qr(rM,(e=>Object.keys(e).reduce(((t,n)=>[...t,...e[n]||[]]),[]))),_Y=Qr(vp,(e=>{var t;return null==(t=null==e?void 0:e[Z3])?void 0:t.invites})),bY=Wo({name:"platformSettings",initialState:iY,reducers:{setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},extraReducers:e=>{e.addCase(HG,((e,{payload:t})=>{e.data={...e.data,...t}}))},selectors:{selectSettings:vp,selectPostConfig:gY,selectDocPolicy:nM,selectImagePolicy:LC,selectVideoPolicy:eM,selectAudioPolicy:tM,selectInvitesEnabled:_Y,selectImageExtensions:yY,selectSupportedExtensions:rM,selectFullExtensionsList:wY,selectRegistration:e=>{var t;return null==(t=e.data)?void 0:t[Z3]},selectLanguageDetection:e=>{var t;return null==(t=e.data)?void 0:t[pY]},selectLanguageTranslation:e=>{var t;return null==(t=e.data)?void 0:t[hY]},selectOpenai:e=>{var t;return null==(t=e.data)?void 0:t[mY]},selectCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[aY]},selectAdminCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[fY]},selectPlatformTranslation:e=>{var t;return null==(t=e.data)?void 0:t[lY]},selectAccess:e=>{var t;return null==(t=e.data)?void 0:t[dY]},selectBranding:e=>{var t;return null==(t=e.data)?void 0:t[uY]},selectLinkService:e=>{var t;return null==(t=e.data)?void 0:t[vY]},selectInstanceAdmin:e=>{var t;return null==(t=e.data)?void 0:t[sY]},selectLegal:e=>{var t;return null==(t=e.data)?void 0:t[GS.legal]},selectDomainBlocks:e=>{var t;return null==(t=e.data)?void 0:t[cY]},selectContacts:e=>{var t;return null==(t=e.data)?void 0:t[GS.contacts]}}}),nA={data:{userId:"",list:[]},count:{},isPending:!1},xY=e=>e,SY=e=>e.error,$Y=e=>e.isPending,CY=e=>{var t;return null==(t=e.count)?void 0:t.total},IY=e=>{var t;return null==(t=e.count)?void 0:t.unread},EY=e=>e.data.userId,FC=Qr(xY,(e=>e.data.list)),PY=Qr(FC,(e=>null==e?void 0:e.filter((e=>"UNREAD"===e.status)))),RY=Qr(FC,(e=>null==e?void 0:e.at(-1))),TY=Wo({name:"notifications",initialState:nA,reducers:{updateNotification:(e,t)=>{var n;if(!e.data.list)return;const r=t.payload;e.data.list=null==(n=e.data.list)?void 0:n.map((e=>e.id===r.id?{...e,...r}:e))},readAll:e=>{var t;e.data.list&&(e.data.list=null==(t=e.data.list)?void 0:t.map((e=>({...e,status:"READ"}))))}},extraReducers:e=>{e.addCase(FG,((e,t)=>{e.isPending=t.payload})).addCase(MG,((e,t)=>{e.error=t.payload})).addCase(LG,((e,t)=>{const n=t.payload.userId,r=t.payload.list;e.data={userId:n,list:[...e.data.list||[],...r.filter((t=>{var n;return!(null!=(n=e.data.list)&&n.some((e=>e.id===t.id)))}))]}})).addCase(NG,((e,t)=>{e.count.unread=(e.count.unread||0)+1,e.data.list&&(e.data.list=[t.payload,...e.data.list||[]])})).addCase(kG,((e,t)=>{e.data.list&&(e.data.list=e.data.list.map((e=>e.id===t.payload.id?{...e,status:t.payload.status}:e)))})).addCase(BG,((e,t)=>{e.count.total=t.payload})).addCase(jG,((e,t)=>{e.count.unread=t.payload})).addCase(UG,(()=>nA)).addCase(zG,((e,t)=>{var n,r,o;const i=t.payload;"UNREAD"===(null==(r=null==(n=e.data.list)?void 0:n.find((e=>e.id===i)))?void 0:r.status)&&e.count.unread&&(e.count.unread-=1),e.data.list=(null==(o=e.data.list)?void 0:o.filter((e=>e.id!==i)))||[]})).addCase(VG,(e=>{e.data.list&&(e.data.list=e.data.list.map((e=>"FOLLOW_REQUEST"===e.type?{...e,followResponse:"Accepted"}:e)))}))},selectors:{selectError:SY,selectIsPending:$Y,selectTotalCount:CY,selectUnreadCount:IY,selectNotifications:FC,selectUnreadNotifications:PY,selectLastNotification:RY,selectNotificationsOwner:EY}});function OY(){return!(typeof navigator<"u"&&"boolean"==typeof navigator.onLine)||navigator.onLine}const AY={isOnline:OY()},DY=Wo({name:"network",initialState:AY,reducers:{setOnline:(e,{payload:t})=>{e.isOnline=t}},selectors:{selectOnline:e=>e.isOnline}}),NY=wM(qQ,DY,g3,bA,KQ,HQ,tY,TY,rY,bY);Al("app/hydrate");const kY=()=>window._wlsy_store,oM=(e,t)=>(null!=t&&t.props&&!zf.isNumber(e)?dK(e,null==t?void 0:t.props):e)+fK(null==t?void 0:t.queryParams),MY=e=>!(null==e||!e.target);function LY(e,t){const n=oM(e,t);if(MY(t)&&"_blank"===t.target){const{origin:e}=new URL(document.referrer||window.location.origin),t=n.includes("://")?n:e+n;window.open(t,"_blank")}else kY().dispatch(v3(n))}const FY=()=>LY,BY=({to:e,props:t,children:n,target:r,queryParams:o,className:i,disabled:a,onClick:u,...s})=>{const l=FY(),c=oM(e,{queryParams:o,props:t}),{baseUrl:d}=X3.get(),f=r?c:`${d}${c}`;return q.jsx("a",{href:f,target:r,onClick:n=>{n.preventDefault(),!a&&(null==u||u(n),l(e,{queryParams:o,props:t,target:n.ctrlKey||n.metaKey?"_blank":r}))},className:i,...s,children:n})};var rA,av={exports:{}},jY=av.exports;
|
|
70
70
|
/**
|
|
71
71
|
* @license
|
|
72
72
|
* Lodash <https://lodash.com/>
|
|
@@ -74,4 +74,4 @@ import*as k from"https://cdn.jsdelivr.net/npm/react@18.2.0/+esm";import He,{forw
|
|
|
74
74
|
* Released under MIT license <https://lodash.com/license>
|
|
75
75
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
76
76
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
77
|
-
*/function VY(){return rA||(rA=1,e=av,t=av.exports,function(){var n,r="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",a=16,u=32,s=64,l=128,c=256,d=1/0,f=9007199254740991,p=NaN,m=4294967295,h=m-1,v=m>>>1,g=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",u],["partialRight",s],["rearg",c]],y="[object Arguments]",b="[object Array]",w="[object Boolean]",x="[object Date]",_="[object Error]",k="[object Function]",S="[object GeneratorFunction]",A="[object Map]",E="[object Number]",I="[object Object]",C="[object Promise]",P="[object RegExp]",q="[object Set]",O="[object String]",T="[object Symbol]",N="[object WeakMap]",R="[object ArrayBuffer]",D="[object DataView]",j="[object Float32Array]",L="[object Float64Array]",M="[object Int8Array]",$="[object Int16Array]",B="[object Int32Array]",F="[object Uint8Array]",z="[object Uint8ClampedArray]",V="[object Uint16Array]",U="[object Uint32Array]",W=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,Q=/[&<>"']/g,Y=RegExp(K.source),X=RegExp(Q.source),Z=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,ue=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,ve=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,Se="\\ud800-\\udfff",Ae="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",Ie="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Pe="\\ufe0e\\ufe0f",qe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oe="['’]",Te="["+Se+"]",Ne="["+qe+"]",Re="["+Ae+"]",De="\\d+",je="["+Ee+"]",Le="["+Ie+"]",Me="[^"+Se+qe+De+Ee+Ie+Ce+"]",$e="\\ud83c[\\udffb-\\udfff]",Be="[^"+Se+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+Ce+"]",Ue="\\u200d",We="(?:"+Le+"|"+Me+")",He="(?:"+Ve+"|"+Me+")",Ge="(?:['’](?:d|ll|m|re|s|t|ve))?",Ke="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qe="(?:"+Re+"|"+$e+")?",Ye="["+Pe+"]?",Xe=Ye+Qe+"(?:"+Ue+"(?:"+[Be,Fe,ze].join("|")+")"+Ye+Qe+")*",Ze="(?:"+[je,Fe,ze].join("|")+")"+Xe,Je="(?:"+[Be+Re+"?",Re,Fe,ze,Te].join("|")+")",et=RegExp(Oe,"g"),tt=RegExp(Re,"g"),nt=RegExp($e+"(?="+$e+")|"+Je+Xe,"g"),rt=RegExp([Ve+"?"+Le+"+"+Ge+"(?="+[Ne,Ve,"$"].join("|")+")",He+"+"+Ke+"(?="+[Ne,Ve+We,"$"].join("|")+")",Ve+"?"+We+"+"+Ge,Ve+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,Ze].join("|"),"g"),ot=RegExp("["+Ue+Se+Ae+Pe+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ut=-1,st={};st[j]=st[L]=st[M]=st[$]=st[B]=st[F]=st[z]=st[V]=st[U]=!0,st[y]=st[b]=st[R]=st[w]=st[D]=st[x]=st[_]=st[k]=st[A]=st[E]=st[I]=st[P]=st[q]=st[O]=st[N]=!1;var lt={};lt[y]=lt[b]=lt[R]=lt[D]=lt[w]=lt[x]=lt[j]=lt[L]=lt[M]=lt[$]=lt[B]=lt[A]=lt[E]=lt[I]=lt[P]=lt[q]=lt[O]=lt[T]=lt[F]=lt[z]=lt[V]=lt[U]=!0,lt[_]=lt[k]=lt[N]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ft=parseInt,pt="object"==typeof Fa&&Fa&&Fa.Object===Object&&Fa,mt="object"==typeof self&&self&&self.Object===Object&&self,ht=pt||mt||Function("return this")(),vt=t&&!t.nodeType&&t,gt=vt&&e&&!e.nodeType&&e,yt=gt&>.exports===vt,bt=yt&&pt.process,wt=function(){try{return gt&>.require&>.require("util").types||bt&&bt.binding&&bt.binding("util")}catch{}}(),xt=wt&&wt.isArrayBuffer,_t=wt&&wt.isDate,kt=wt&&wt.isMap,St=wt&&wt.isRegExp,At=wt&&wt.isSet,Et=wt&&wt.isTypedArray;function It(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ct(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function qt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ot(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Tt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Nt(e,t){return!(null==e||!e.length)&&Vt(e,t,0)>-1}function Rt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function jt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Lt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Mt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function $t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Bt=Gt("length");function Ft(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function zt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Vt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):zt(e,Wt,n)}function Ut(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Wt(e){return e!=e}function Ht(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:p}function Gt(e){return function(t){return null==t?n:t[e]}}function Kt(e){return function(t){return null==e?n:e[t]}}function Qt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Yt(e,t){for(var r,o=-1,i=e.length;++o<i;){var a=t(e[o]);a!==n&&(r=r===n?a:r+a)}return r}function Xt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Zt(e){return e&&e.slice(0,hn(e)+1).replace(ae,"")}function Jt(e){return function(t){return e(t)}}function en(e,t){return Dt(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Vt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Vt(t,e[n],0)>-1;);return n}var on=Kt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),an=Kt({"&":"&","<":"<",">":">",'"':""","'":"'"});function un(e){return"\\"+ct[e]}function sn(e){return ot.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var u=e[n];(u===t||u===i)&&(e[n]=i,a[o++]=n)}return a}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){return sn(e)?function(e){for(var t=nt.lastIndex=0;nt.test(e);)++t;return t}(e):Bt(e)}function mn(e){return sn(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function hn(e){for(var t=e.length;t--&&ue.test(e.charAt(t)););return t}var vn=Kt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),gn=function e(t){var ue,Se=(t=null==t?ht:gn.defaults(ht.Object(),t,gn.pick(ht,at))).Array,Ae=t.Date,Ee=t.Error,Ie=t.Function,Ce=t.Math,Pe=t.Object,qe=t.RegExp,Oe=t.String,Te=t.TypeError,Ne=Se.prototype,Re=Ie.prototype,De=Pe.prototype,je=t["__core-js_shared__"],Le=Re.toString,Me=De.hasOwnProperty,$e=0,Be=(ue=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||""))?"Symbol(src)_1."+ue:"",Fe=De.toString,ze=Le.call(Pe),Ve=ht._,Ue=qe("^"+Le.call(Me).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=yt?t.Buffer:n,He=t.Symbol,Ge=t.Uint8Array,Ke=We?We.allocUnsafe:n,Qe=cn(Pe.getPrototypeOf,Pe),Ye=Pe.create,Xe=De.propertyIsEnumerable,Ze=Ne.splice,Je=He?He.isConcatSpreadable:n,nt=He?He.iterator:n,ot=He?He.toStringTag:n,ct=function(){try{var e=mi(Pe,"defineProperty");return e({},"",{}),e}catch{}}(),pt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,mt=Ae&&Ae.now!==ht.Date.now&&Ae.now,vt=t.setTimeout!==ht.setTimeout&&t.setTimeout,gt=Ce.ceil,bt=Ce.floor,wt=Pe.getOwnPropertySymbols,Bt=We?We.isBuffer:n,Kt=t.isFinite,yn=Ne.join,bn=cn(Pe.keys,Pe),wn=Ce.max,xn=Ce.min,_n=Ae.now,kn=t.parseInt,Sn=Ce.random,An=Ne.reverse,En=mi(t,"DataView"),In=mi(t,"Map"),Cn=mi(t,"Promise"),Pn=mi(t,"Set"),qn=mi(t,"WeakMap"),On=mi(Pe,"create"),Tn=qn&&new qn,Nn={},Rn=Bi(En),Dn=Bi(In),jn=Bi(Cn),Ln=Bi(Pn),Mn=Bi(qn),$n=He?He.prototype:n,Bn=$n?$n.valueOf:n,Fn=$n?$n.toString:n;function zn(e){if(ru(e)&&!Ha(e)&&!(e instanceof Hn)){if(e instanceof Wn)return e;if(Me.call(e,"__wrapped__"))return Fi(e)}return new Wn(e)}var Vn=function(){function e(){}return function(t){if(!nu(t))return{};if(Ye)return Ye(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Un(){}function Wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Qn;++t<n;)this.add(e[t])}function Xn(e){var t=this.__data__=new Kn(e);this.size=t.size}function Zn(e,t){var n=Ha(e),r=!n&&Wa(e),o=!n&&!r&&Ya(e),i=!n&&!r&&!o&&du(e),a=n||r||o||i,u=a?Xt(e.length,Oe):[],s=u.length;for(var l in e)(t||Me.call(e,l))&&(!a||!("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||xi(l,s)))&&u.push(l);return u}function Jn(e){var t=e.length;return t?e[Yr(0,t-1)]:n}function er(e,t){return Li(To(e),lr(t,0,e.length))}function tr(e){return Li(To(e))}function nr(e,t,r){(r!==n&&!za(e[t],r)||r===n&&!(t in e))&&ur(e,t,r)}function rr(e,t,r){var o=e[t];(!Me.call(e,t)||!za(o,r)||r===n&&!(t in e))&&ur(e,t,r)}function or(e,t){for(var n=e.length;n--;)if(za(e[n][0],t))return n;return-1}function ir(e,t,n,r){return mr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ar(e,t){return e&&No(t,Nu(t),e)}function ur(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var r=-1,o=t.length,i=Se(o),a=null==e;++r<o;)i[r]=a?n:Cu(e,t[r]);return i}function lr(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function cr(e,t,r,o,i,a){var u,s=1&t,l=2&t,c=4&t;if(r&&(u=i?r(e,o,i,a):r(e)),u!==n)return u;if(!nu(e))return e;var d=Ha(e);if(d){if(u=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Me.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return To(e,u)}else{var f=gi(e),p=f==k||f==S;if(Ya(e))return Eo(e,s);if(f==I||f==y||p&&!i){if(u=l||p?{}:bi(e),!s)return l?function(e,t){return No(e,vi(e),t)}(e,function(e,t){return e&&No(t,Ru(t),e)}(u,e)):function(e,t){return No(e,hi(e),t)}(e,ar(u,e))}else{if(!lt[f])return i?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case R:return Io(e);case w:case x:return new r(+e);case D:return function(e,t){var n=t?Io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case j:case L:case M:case $:case B:case F:case z:case V:case U:return Co(e,n);case A:return new r;case E:case O:return new r(e);case P:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case q:return new r;case T:return function(e){return Bn?Pe(Bn.call(e)):{}}(e)}}(e,f,s)}}a||(a=new Xn);var m=a.get(e);if(m)return m;a.set(e,u),su(e)?e.forEach((function(n){u.add(cr(n,t,r,n,e,a))})):ou(e)&&e.forEach((function(n,o){u.set(o,cr(n,t,r,o,e,a))}));var h=d?n:(c?l?ui:ai:l?Ru:Nu)(e);return Pt(h||e,(function(n,o){h&&(n=e[o=n]),rr(u,o,cr(n,t,r,o,e,a))})),u}function dr(e,t,r){var o=r.length;if(null==e)return!o;for(e=Pe(e);o--;){var i=r[o],a=t[i],u=e[i];if(u===n&&!(i in e)||!a(u))return!1}return!0}function fr(e,t,o){if("function"!=typeof e)throw new Te(r);return Ni((function(){e.apply(n,o)}),t)}function pr(e,t,n,r){var o=-1,i=Nt,a=!0,u=e.length,s=[],l=t.length;if(!u)return s;n&&(t=Dt(t,Jt(n))),r?(i=Rt,a=!1):t.length>=200&&(i=tn,a=!1,t=new Yn(t));e:for(;++o<u;){var c=e[o],d=null==n?c:n(c);if(c=r||0!==c?c:0,a&&d==d){for(var f=l;f--;)if(t[f]===d)continue e;s.push(c)}else i(t,d,r)||s.push(c)}return s}zn.templateSettings={escape:Z,evaluate:J,interpolate:ee,variable:"",imports:{_:zn}},zn.prototype=Un.prototype,zn.prototype.constructor=zn,Wn.prototype=Vn(Un.prototype),Wn.prototype.constructor=Wn,Hn.prototype=Vn(Un.prototype),Hn.prototype.constructor=Hn,Gn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},Gn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Gn.prototype.get=function(e){var t=this.__data__;if(On){var r=t[e];return r===o?n:r}return Me.call(t,e)?t[e]:n},Gn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==n:Me.call(t,e)},Gn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=On&&t===n?o:t,this},Kn.prototype.clear=function(){this.__data__=[],this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=or(t,e);return!(n<0||(n==t.length-1?t.pop():Ze.call(t,n,1),--this.size,0))},Kn.prototype.get=function(e){var t=this.__data__,r=or(t,e);return r<0?n:t[r][1]},Kn.prototype.has=function(e){return or(this.__data__,e)>-1},Kn.prototype.set=function(e,t){var n=this.__data__,r=or(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(In||Kn),string:new Gn}},Qn.prototype.delete=function(e){var t=fi(this,e).delete(e);return this.size-=t?1:0,t},Qn.prototype.get=function(e){return fi(this,e).get(e)},Qn.prototype.has=function(e){return fi(this,e).has(e)},Qn.prototype.set=function(e,t){var n=fi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,o),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Kn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!In||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qn(r)}return n.set(e,t),this.size=n.size,this};var mr=jo(_r),hr=jo(kr,!0);function vr(e,t){var n=!0;return mr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function gr(e,t,r){for(var o=-1,i=e.length;++o<i;){var a=e[o],u=t(a);if(null!=u&&(s===n?u==u&&!cu(u):r(u,s)))var s=u,l=a}return l}function yr(e,t){var n=[];return mr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function br(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=wi),o||(o=[]);++i<a;){var u=e[i];t>0&&n(u)?t>1?br(u,t-1,n,r,o):jt(o,u):r||(o[o.length]=u)}return o}var wr=Lo(),xr=Lo(!0);function _r(e,t){return e&&wr(e,t,Nu)}function kr(e,t){return e&&xr(e,t,Nu)}function Sr(e,t){return Tt(t,(function(t){return Ja(e[t])}))}function Ar(e,t){for(var r=0,o=(t=_o(t,e)).length;null!=e&&r<o;)e=e[$i(t[r++])];return r&&r==o?e:n}function Er(e,t,n){var r=t(e);return Ha(e)?r:jt(r,n(e))}function Ir(e){return null==e?e===n?"[object Undefined]":"[object Null]":ot&&ot in Pe(e)?function(e){var t=Me.call(e,ot),r=e[ot];try{e[ot]=n;var o=!0}catch{}var i=Fe.call(e);return o&&(t?e[ot]=r:delete e[ot]),i}(e):function(e){return Fe.call(e)}(e)}function Cr(e,t){return e>t}function Pr(e,t){return null!=e&&Me.call(e,t)}function qr(e,t){return null!=e&&t in Pe(e)}function Or(e,t,r){for(var o=r?Rt:Nt,i=e[0].length,a=e.length,u=a,s=Se(a),l=1/0,c=[];u--;){var d=e[u];u&&t&&(d=Dt(d,Jt(t))),l=xn(d.length,l),s[u]=!r&&(t||i>=120&&d.length>=120)?new Yn(u&&d):n}d=e[0];var f=-1,p=s[0];e:for(;++f<i&&c.length<l;){var m=d[f],h=t?t(m):m;if(m=r||0!==m?m:0,!(p?tn(p,h):o(c,h,r))){for(u=a;--u;){var v=s[u];if(!(v?tn(v,h):o(e[u],h,r)))continue e}p&&p.push(h),c.push(m)}}return c}function Tr(e,t,r){var o=null==(e=qi(e,t=_o(t,e)))?e:e[$i(Zi(t))];return null==o?n:It(o,e,r)}function Nr(e){return ru(e)&&Ir(e)==y}function Rr(e,t,r,o,i){return e===t||(null==e||null==t||!ru(e)&&!ru(t)?e!=e&&t!=t:function(e,t,r,o,i,a){var u=Ha(e),s=Ha(t),l=u?b:gi(e),c=s?b:gi(t),d=(l=l==y?I:l)==I,f=(c=c==y?I:c)==I,p=l==c;if(p&&Ya(e)){if(!Ya(t))return!1;u=!0,d=!1}if(p&&!d)return a||(a=new Xn),u||du(e)?oi(e,t,r,o,i,a):function(e,t,n,r,o,i,a){switch(n){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!i(new Ge(e),new Ge(t)));case w:case x:case E:return za(+e,+t);case _:return e.name==t.name&&e.message==t.message;case P:case O:return e==t+"";case A:var u=ln;case q:var s=1&r;if(u||(u=fn),e.size!=t.size&&!s)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var c=oi(u(e),u(t),r,o,i,a);return a.delete(e),c;case T:if(Bn)return Bn.call(e)==Bn.call(t)}return!1}(e,t,l,r,o,i,a);if(!(1&r)){var m=d&&Me.call(e,"__wrapped__"),h=f&&Me.call(t,"__wrapped__");if(m||h){var v=m?e.value():e,g=h?t.value():t;return a||(a=new Xn),i(v,g,r,o,a)}}return!!p&&(a||(a=new Xn),function(e,t,r,o,i,a){var u=1&r,s=ai(e),l=s.length,c=ai(t),d=c.length;if(l!=d&&!u)return!1;for(var f=l;f--;){var p=s[f];if(!(u?p in t:Me.call(t,p)))return!1}var m=a.get(e),h=a.get(t);if(m&&h)return m==t&&h==e;var v=!0;a.set(e,t),a.set(t,e);for(var g=u;++f<l;){var y=e[p=s[f]],b=t[p];if(o)var w=u?o(b,y,p,t,e,a):o(y,b,p,e,t,a);if(!(w===n?y===b||i(y,b,r,o,a):w)){v=!1;break}g||(g="constructor"==p)}if(v&&!g){var x=e.constructor,_=t.constructor;x!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _)&&(v=!1)}return a.delete(e),a.delete(t),v}(e,t,r,o,i,a))}(e,t,r,o,Rr,i))}function Dr(e,t,r,o){var i=r.length,a=i,u=!o;if(null==e)return!a;for(e=Pe(e);i--;){var s=r[i];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var l=(s=r[i])[0],c=e[l],d=s[1];if(u&&s[2]){if(c===n&&!(l in e))return!1}else{var f=new Xn;if(o)var p=o(c,d,l,e,t,f);if(!(p===n?Rr(d,c,3,o,f):p))return!1}}return!0}function jr(e){return!(!nu(e)||function(e){return!!Be&&Be in e}(e))&&(Ja(e)?Ue:ye).test(Bi(e))}function Lr(e){return"function"==typeof e?e:null==e?is:"object"==typeof e?Ha(e)?Vr(e[0],e[1]):zr(e):ms(e)}function Mr(e){if(!Ei(e))return bn(e);var t=[];for(var n in Pe(e))Me.call(e,n)&&"constructor"!=n&&t.push(n);return t}function $r(e){if(!nu(e))return function(e){var t=[];if(null!=e)for(var n in Pe(e))t.push(n);return t}(e);var t=Ei(e),n=[];for(var r in e)"constructor"==r&&(t||!Me.call(e,r))||n.push(r);return n}function Br(e,t){return e<t}function Fr(e,t){var n=-1,r=Ka(e)?Se(e.length):[];return mr(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function zr(e){var t=pi(e);return 1==t.length&&t[0][2]?Ci(t[0][0],t[0][1]):function(n){return n===e||Dr(n,e,t)}}function Vr(e,t){return ki(e)&&Ii(t)?Ci($i(e),t):function(r){var o=Cu(r,e);return o===n&&o===t?Pu(r,e):Rr(t,o,3)}}function Ur(e,t,r,o,i){e!==t&&wr(t,(function(a,u){if(i||(i=new Xn),nu(a))!function(e,t,r,o,i,a,u){var s=Oi(e,r),l=Oi(t,r),c=u.get(l);if(c)nr(e,r,c);else{var d=a?a(s,l,r+"",e,t,u):n,f=d===n;if(f){var p=Ha(l),m=!p&&Ya(l),h=!p&&!m&&du(l);d=l,p||m||h?Ha(s)?d=s:Qa(s)?d=To(s):m?(f=!1,d=Eo(l,!0)):h?(f=!1,d=Co(l,!0)):d=[]:au(l)||Wa(l)?(d=s,Wa(s)?d=bu(s):(!nu(s)||Ja(s))&&(d=bi(l))):f=!1}f&&(u.set(l,d),i(d,l,o,a,u),u.delete(l)),nr(e,r,d)}}(e,t,u,r,Ur,o,i);else{var s=o?o(Oi(e,u),a,u+"",e,t,i):n;s===n&&(s=a),nr(e,u,s)}}),Ru)}function Wr(e,t){var r=e.length;if(r)return xi(t+=t<0?r:0,r)?e[t]:n}function Hr(e,t,n){t=t.length?Dt(t,(function(e){return Ha(e)?function(t){return Ar(t,1===e.length?e[0]:e)}:e})):[is];var r=-1;return t=Dt(t,Jt(di())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Fr(e,(function(e,n,o){return{criteria:Dt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,u=n.length;++r<a;){var s=Po(o[r],i[r]);if(s)return r>=u?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Gr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],u=Ar(e,a);n(u,a)&&to(i,_o(a,e),u)}return i}function Kr(e,t,n,r){var o=r?Ut:Vt,i=-1,a=t.length,u=e;for(e===t&&(t=To(t)),n&&(u=Dt(e,Jt(n)));++i<a;)for(var s=0,l=t[i],c=n?n(l):l;(s=o(u,c,s,r))>-1;)u!==e&&Ze.call(u,s,1),Ze.call(e,s,1);return e}function Qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;xi(o)?Ze.call(e,o,1):mo(e,o)}}return e}function Yr(e,t){return e+bt(Sn()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=bt(t/2))&&(e+=e)}while(t);return n}function Zr(e,t){return Ri(Pi(e,t,is),e+"")}function Jr(e){return Jn(zu(e))}function eo(e,t){var n=zu(e);return Li(n,lr(t,0,n.length))}function to(e,t,r,o){if(!nu(e))return e;for(var i=-1,a=(t=_o(t,e)).length,u=a-1,s=e;null!=s&&++i<a;){var l=$i(t[i]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=u){var d=s[l];(c=o?o(d,l,s):n)===n&&(c=nu(d)?d:xi(t[i+1])?[]:{})}rr(s,l,c),s=s[l]}return e}var no=Tn?function(e,t){return Tn.set(e,t),e}:is,ro=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:ns(t),writable:!0})}:is;function oo(e){return Li(zu(e))}function io(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Se(o);++r<o;)i[r]=e[r+t];return i}function ao(e,t){var n;return mr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function uo(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=v){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!cu(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return so(e,t,is,n)}function so(e,t,r,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var u=(t=r(t))!=t,s=null===t,l=cu(t),c=t===n;i<a;){var d=bt((i+a)/2),f=r(e[d]),p=f!==n,m=null===f,v=f==f,g=cu(f);if(u)var y=o||v;else y=c?v&&(o||p):s?v&&p&&(o||!m):l?v&&p&&!m&&(o||!g):!m&&!g&&(o?f<=t:f<t);y?i=d+1:a=d}return xn(a,h)}function lo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],u=t?t(a):a;if(!n||!za(u,s)){var s=u;i[o++]=0===a?0:a}}return i}function co(e){return"number"==typeof e?e:cu(e)?p:+e}function fo(e){if("string"==typeof e)return e;if(Ha(e))return Dt(e,fo)+"";if(cu(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-d?"-0":t}function po(e,t,n){var r=-1,o=Nt,i=e.length,a=!0,u=[],s=u;if(n)a=!1,o=Rt;else if(i>=200){var l=t?null:Zo(e);if(l)return fn(l);a=!1,o=tn,s=new Yn}else s=t?[]:u;e:for(;++r<i;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d==d){for(var f=s.length;f--;)if(s[f]===d)continue e;t&&s.push(d),u.push(c)}else o(s,d,n)||(s!==u&&s.push(d),u.push(c))}return u}function mo(e,t){return null==(e=qi(e,t=_o(t,e)))||delete e[$i(Zi(t))]}function ho(e,t,n,r){return to(e,t,n(Ar(e,t)),r)}function vo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?io(e,r?0:i,r?i+1:o):io(e,r?i+1:0,r?o:i)}function go(e,t){var n=e;return n instanceof Hn&&(n=n.value()),Lt(t,(function(e,t){return t.func.apply(t.thisArg,jt([e],t.args))}),n)}function yo(e,t,n){var r=e.length;if(r<2)return r?po(e[0]):[];for(var o=-1,i=Se(r);++o<r;)for(var a=e[o],u=-1;++u<r;)u!=o&&(i[o]=pr(i[o]||a,e[u],t,n));return po(br(i,1),t,n)}function bo(e,t,r){for(var o=-1,i=e.length,a=t.length,u={};++o<i;){var s=o<a?t[o]:n;r(u,e[o],s)}return u}function wo(e){return Qa(e)?e:[]}function xo(e){return"function"==typeof e?e:is}function _o(e,t){return Ha(e)?e:ki(e,t)?[e]:Mi(wu(e))}var ko=Zr;function So(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:io(e,t,r)}var Ao=pt||function(e){return ht.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=Ke?Ke(n):new e.constructor(n);return e.copy(r),r}function Io(e){var t=new e.constructor(e.byteLength);return new Ge(t).set(new Ge(e)),t}function Co(e,t){var n=t?Io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Po(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,a=cu(e),u=t!==n,s=null===t,l=t==t,c=cu(t);if(!s&&!c&&!a&&e>t||a&&u&&l&&!s&&!c||o&&u&&l||!r&&l||!i)return 1;if(!o&&!a&&!c&&e<t||c&&r&&i&&!o&&!a||s&&r&&i||!u&&i||!l)return-1}return 0}function qo(e,t,n,r){for(var o=-1,i=e.length,a=n.length,u=-1,s=t.length,l=wn(i-a,0),c=Se(s+l),d=!r;++u<s;)c[u]=t[u];for(;++o<a;)(d||o<i)&&(c[n[o]]=e[o]);for(;l--;)c[u++]=e[o++];return c}function Oo(e,t,n,r){for(var o=-1,i=e.length,a=-1,u=n.length,s=-1,l=t.length,c=wn(i-u,0),d=Se(c+l),f=!r;++o<c;)d[o]=e[o];for(var p=o;++s<l;)d[p+s]=t[s];for(;++a<u;)(f||o<i)&&(d[p+n[a]]=e[o++]);return d}function To(e,t){var n=-1,r=e.length;for(t||(t=Se(r));++n<r;)t[n]=e[n];return t}function No(e,t,r,o){var i=!r;r||(r={});for(var a=-1,u=t.length;++a<u;){var s=t[a],l=o?o(r[s],e[s],s,r,e):n;l===n&&(l=e[s]),i?ur(r,s,l):rr(r,s,l)}return r}function Ro(e,t){return function(n,r){var o=Ha(n)?Ct:ir,i=t?t():{};return o(n,e,di(r,2),i)}}function Do(e){return Zr((function(t,r){var o=-1,i=r.length,a=i>1?r[i-1]:n,u=i>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(i--,a):n,u&&_i(r[0],r[1],u)&&(a=i<3?n:a,i=1),t=Pe(t);++o<i;){var s=r[o];s&&e(t,s,o,a)}return t}))}function jo(e,t){return function(n,r){if(null==n)return n;if(!Ka(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Pe(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Lo(e){return function(t,n,r){for(var o=-1,i=Pe(t),a=r(t),u=a.length;u--;){var s=a[e?u:++o];if(!1===n(i[s],s,i))break}return t}}function Mo(e){return function(t){var r=sn(t=wu(t))?mn(t):n,o=r?r[0]:t.charAt(0),i=r?So(r,1).join(""):t.slice(1);return o[e]()+i}}function $o(e){return function(t){return Lt(Ju(Wu(t).replace(et,"")),e,"")}}function Bo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Vn(e.prototype),r=e.apply(n,t);return nu(r)?r:n}}function Fo(e){return function(t,r,o){var i=Pe(t);if(!Ka(t)){var a=di(r,3);t=Nu(t),r=function(e){return a(i[e],e,i)}}var u=e(t,r,o);return u>-1?i[a?t[u]:u]:n}}function zo(e){return ii((function(t){var o=t.length,i=o,a=Wn.prototype.thru;for(e&&t.reverse();i--;){var u=t[i];if("function"!=typeof u)throw new Te(r);if(a&&!s&&"wrapper"==li(u))var s=new Wn([],!0)}for(i=s?i:o;++i<o;){var l=li(u=t[i]),c="wrapper"==l?si(u):n;s=c&&Si(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[li(c[0])].apply(s,c[3]):1==u.length&&Si(u)?s[l]():s.thru(u)}return function(){var e=arguments,n=e[0];if(s&&1==e.length&&Ha(n))return s.plant(n).value();for(var r=0,i=o?t[r].apply(this,e):n;++r<o;)i=t[r].call(this,i);return i}}))}function Vo(e,t,r,o,i,a,u,s,c,d){var f=t&l,p=1&t,m=2&t,h=24&t,v=512&t,g=m?n:Bo(e);return function l(){for(var y=arguments.length,b=Se(y),w=y;w--;)b[w]=arguments[w];if(h)var x=ci(l),_=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,x);if(o&&(b=qo(b,o,i,h)),a&&(b=Oo(b,a,u,h)),y-=_,h&&y<d){var k=dn(b,x);return Yo(e,t,Vo,l.placeholder,r,b,k,s,c,d-y)}var S=p?r:this,A=m?S[e]:e;return y=b.length,s?b=function(e,t){for(var r=e.length,o=xn(t.length,r),i=To(e);o--;){var a=t[o];e[o]=xi(a,r)?i[a]:n}return e}(b,s):v&&y>1&&b.reverse(),f&&c<y&&(b.length=c),this&&this!==ht&&this instanceof l&&(A=g||Bo(A)),A.apply(S,b)}}function Uo(e,t){return function(n,r){return function(e,t,n,r){return _r(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Wo(e,t){return function(r,o){var i;if(r===n&&o===n)return t;if(r!==n&&(i=r),o!==n){if(i===n)return o;"string"==typeof r||"string"==typeof o?(r=fo(r),o=fo(o)):(r=co(r),o=co(o)),i=e(r,o)}return i}}function Ho(e){return ii((function(t){return t=Dt(t,Jt(di())),Zr((function(n){var r=this;return e(t,(function(e){return It(e,r,n)}))}))}))}function Go(e,t){var r=(t=t===n?" ":fo(t)).length;if(r<2)return r?Xr(t,e):t;var o=Xr(t,gt(e/pn(t)));return sn(t)?So(mn(o),0,e).join(""):o.slice(0,e)}function Ko(e){return function(t,r,o){return o&&"number"!=typeof o&&_i(t,r,o)&&(r=o=n),t=hu(t),r===n?(r=t,t=0):r=hu(r),function(e,t,n,r){for(var o=-1,i=wn(gt((t-e)/(n||1)),0),a=Se(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,r,o=o===n?t<r?1:-1:hu(o),e)}}function Qo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=yu(t),n=yu(n)),e(t,n)}}function Yo(e,t,r,o,i,a,l,c,d,f){var p=8&t;t|=p?u:s,4&(t&=~(p?s:u))||(t&=-4);var m=[e,t,i,p?a:n,p?l:n,p?n:a,p?n:l,c,d,f],h=r.apply(n,m);return Si(e)&&Ti(h,m),h.placeholder=o,Di(h,e,t)}function Xo(e){var t=Ce[e];return function(e,n){if(e=yu(e),(n=null==n?0:xn(vu(n),292))&&Kt(e)){var r=(wu(e)+"e").split("e");return+((r=(wu(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Zo=Pn&&1/fn(new Pn([,-0]))[1]==d?function(e){return new Pn(e)}:cs;function Jo(e){return function(t){var n=gi(t);return n==A?ln(t):n==q?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return Dt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function ei(e,t,o,d,f,p,m,h){var v=2&t;if(!v&&"function"!=typeof e)throw new Te(r);var g=d?d.length:0;if(g||(t&=-97,d=f=n),m=m===n?m:wn(vu(m),0),h=h===n?h:vu(h),g-=f?f.length:0,t&s){var y=d,b=f;d=f=n}var w=v?n:si(e),x=[e,t,o,d,f,y,b,p,m,h];if(w&&function(e,t){var n=e[1],r=t[1],o=n|r,a=o<131,u=r==l&&8==n||r==l&&n==c&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!u)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var s=t[3];if(s){var d=e[3];e[3]=d?qo(d,s,t[4]):s,e[4]=d?dn(e[3],i):t[4]}(s=t[5])&&(d=e[5],e[5]=d?Oo(d,s,t[6]):s,e[6]=d?dn(e[5],i):t[6]),(s=t[7])&&(e[7]=s),r&l&&(e[8]=null==e[8]?t[8]:xn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(x,w),e=x[0],t=x[1],o=x[2],d=x[3],f=x[4],!(h=x[9]=x[9]===n?v?0:e.length:wn(x[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||t==a?function(e,t,r){var o=Bo(e);return function i(){for(var a=arguments.length,u=Se(a),s=a,l=ci(i);s--;)u[s]=arguments[s];var c=a<3&&u[0]!==l&&u[a-1]!==l?[]:dn(u,l);return(a-=c.length)<r?Yo(e,t,Vo,i.placeholder,n,u,c,n,n,r-a):It(this&&this!==ht&&this instanceof i?o:e,this,u)}}(e,t,h):t!=u&&33!=t||f.length?Vo.apply(n,x):function(e,t,n,r){var o=1&t,i=Bo(e);return function t(){for(var a=-1,u=arguments.length,s=-1,l=r.length,c=Se(l+u),d=this&&this!==ht&&this instanceof t?i:e;++s<l;)c[s]=r[s];for(;u--;)c[s++]=arguments[++a];return It(d,o?n:this,c)}}(e,t,o,d);else var _=function(e,t,n){var r=1&t,o=Bo(e);return function t(){return(this&&this!==ht&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,o);return Di((w?no:Ti)(_,x),e,t)}function ti(e,t,r,o){return e===n||za(e,De[r])&&!Me.call(o,r)?t:e}function ni(e,t,r,o,i,a){return nu(e)&&nu(t)&&(a.set(t,e),Ur(e,t,n,ni,a),a.delete(t)),e}function ri(e){return au(e)?n:e}function oi(e,t,r,o,i,a){var u=1&r,s=e.length,l=t.length;if(s!=l&&!(u&&l>s))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var f=-1,p=!0,m=2&r?new Yn:n;for(a.set(e,t),a.set(t,e);++f<s;){var h=e[f],v=t[f];if(o)var g=u?o(v,h,f,t,e,a):o(h,v,f,e,t,a);if(g!==n){if(g)continue;p=!1;break}if(m){if(!$t(t,(function(e,t){if(!tn(m,t)&&(h===e||i(h,e,r,o,a)))return m.push(t)}))){p=!1;break}}else if(h!==v&&!i(h,v,r,o,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function ii(e){return Ri(Pi(e,n,Gi),e+"")}function ai(e){return Er(e,Nu,hi)}function ui(e){return Er(e,Ru,vi)}var si=Tn?function(e){return Tn.get(e)}:cs;function li(e){for(var t=e.name+"",n=Nn[t],r=Me.call(Nn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ci(e){return(Me.call(zn,"placeholder")?zn:e).placeholder}function di(){var e=zn.iteratee||as;return e=e===as?Lr:e,arguments.length?e(arguments[0],arguments[1]):e}function fi(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function pi(e){for(var t=Nu(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ii(o)]}return t}function mi(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return jr(r)?r:n}var hi=wt?function(e){return null==e?[]:(e=Pe(e),Tt(wt(e),(function(t){return Xe.call(e,t)})))}:gs,vi=wt?function(e){for(var t=[];e;)jt(t,hi(e)),e=Qe(e);return t}:gs,gi=Ir;function yi(e,t,n){for(var r=-1,o=(t=_o(t,e)).length,i=!1;++r<o;){var a=$i(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&tu(o)&&xi(a,o)&&(Ha(e)||Wa(e))}function bi(e){return"function"!=typeof e.constructor||Ei(e)?{}:Vn(Qe(e))}function wi(e){return Ha(e)||Wa(e)||!!(Je&&e&&e[Je])}function xi(e,t){var n=typeof e;return!!(t=t??f)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function _i(e,t,n){if(!nu(n))return!1;var r=typeof t;return!!("number"==r?Ka(n)&&xi(t,n.length):"string"==r&&t in n)&&za(n[t],e)}function ki(e,t){if(Ha(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cu(e))||ne.test(e)||!te.test(e)||null!=t&&e in Pe(t)}function Si(e){var t=li(e),n=zn[t];if("function"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var r=si(n);return!!r&&e===r[0]}(En&&gi(new En(new ArrayBuffer(1)))!=D||In&&gi(new In)!=A||Cn&&gi(Cn.resolve())!=C||Pn&&gi(new Pn)!=q||qn&&gi(new qn)!=N)&&(gi=function(e){var t=Ir(e),r=t==I?e.constructor:n,o=r?Bi(r):"";if(o)switch(o){case Rn:return D;case Dn:return A;case jn:return C;case Ln:return q;case Mn:return N}return t});var Ai=je?Ja:ys;function Ei(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||De)}function Ii(e){return e==e&&!nu(e)}function Ci(e,t){return function(r){return null!=r&&r[e]===t&&(t!==n||e in Pe(r))}}function Pi(e,t,r){return t=wn(t===n?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=wn(n.length-t,0),a=Se(i);++o<i;)a[o]=n[t+o];o=-1;for(var u=Se(t+1);++o<t;)u[o]=n[o];return u[t]=r(a),It(e,this,u)}}function qi(e,t){return t.length<2?e:Ar(e,io(t,0,-1))}function Oi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ti=ji(no),Ni=vt||function(e,t){return ht.setTimeout(e,t)},Ri=ji(ro);function Di(e,t,n){var r=t+"";return Ri(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Pt(g,(function(n){var r="_."+n[0];t&n[1]&&!Nt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(ce):[]}(r),n)))}function ji(e){var t=0,r=0;return function(){var o=_n(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Li(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r<t;){var a=Yr(r,i),u=e[a];e[a]=e[r],e[r]=u}return e.length=t,e}var Mi=function(e){var t=ja(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,o){t.push(r?o.replace(pe,"$1"):n||e)})),t}));function $i(e){if("string"==typeof e||cu(e))return e;var t=e+"";return"0"==t&&1/e==-d?"-0":t}function Bi(e){if(null!=e){try{return Le.call(e)}catch{}try{return e+""}catch{}}return""}function Fi(e){if(e instanceof Hn)return e.clone();var t=new Wn(e.__wrapped__,e.__chain__);return t.__actions__=To(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zi=Zr((function(e,t){return Qa(e)?pr(e,br(t,1,Qa,!0)):[]})),Vi=Zr((function(e,t){var r=Zi(t);return Qa(r)&&(r=n),Qa(e)?pr(e,br(t,1,Qa,!0),di(r,2)):[]})),Ui=Zr((function(e,t){var r=Zi(t);return Qa(r)&&(r=n),Qa(e)?pr(e,br(t,1,Qa,!0),n,r):[]}));function Wi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vu(n);return o<0&&(o=wn(r+o,0)),zt(e,di(t,3),o)}function Hi(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==n&&(i=vu(r),i=r<0?wn(o+i,0):xn(i,o-1)),zt(e,di(t,3),i,!0)}function Gi(e){return null!=e&&e.length?br(e,1):[]}function Ki(e){return e&&e.length?e[0]:n}var Qi=Zr((function(e){var t=Dt(e,wo);return t.length&&t[0]===e[0]?Or(t):[]})),Yi=Zr((function(e){var t=Zi(e),r=Dt(e,wo);return t===Zi(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Or(r,di(t,2)):[]})),Xi=Zr((function(e){var t=Zi(e),r=Dt(e,wo);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Or(r,n,t):[]}));function Zi(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Ji=Zr(ea);function ea(e,t){return e&&e.length&&t&&t.length?Kr(e,t):e}var ta=ii((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Qr(e,Dt(t,(function(e){return xi(e,n)?+e:e})).sort(Po)),r}));function na(e){return null==e?e:An.call(e)}var ra=Zr((function(e){return po(br(e,1,Qa,!0))})),oa=Zr((function(e){var t=Zi(e);return Qa(t)&&(t=n),po(br(e,1,Qa,!0),di(t,2))})),ia=Zr((function(e){var t=Zi(e);return t="function"==typeof t?t:n,po(br(e,1,Qa,!0),n,t)}));function aa(e){if(!e||!e.length)return[];var t=0;return e=Tt(e,(function(e){if(Qa(e))return t=wn(e.length,t),!0})),Xt(t,(function(t){return Dt(e,Gt(t))}))}function ua(e,t){if(!e||!e.length)return[];var r=aa(e);return null==t?r:Dt(r,(function(e){return It(t,n,e)}))}var sa=Zr((function(e,t){return Qa(e)?pr(e,t):[]})),la=Zr((function(e){return yo(Tt(e,Qa))})),ca=Zr((function(e){var t=Zi(e);return Qa(t)&&(t=n),yo(Tt(e,Qa),di(t,2))})),da=Zr((function(e){var t=Zi(e);return t="function"==typeof t?t:n,yo(Tt(e,Qa),n,t)})),fa=Zr(aa),pa=Zr((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ua(e,r)}));function ma(e){var t=zn(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var va=ii((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Hn&&xi(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:n}),new Wn(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)})),ga=Ro((function(e,t,n){Me.call(e,n)?++e[n]:ur(e,n,1)})),ya=Fo(Wi),ba=Fo(Hi);function wa(e,t){return(Ha(e)?Pt:mr)(e,di(t,3))}function xa(e,t){return(Ha(e)?qt:hr)(e,di(t,3))}var _a=Ro((function(e,t,n){Me.call(e,n)?e[n].push(t):ur(e,n,[t])})),ka=Zr((function(e,t,n){var r=-1,o="function"==typeof t,i=Ka(e)?Se(e.length):[];return mr(e,(function(e){i[++r]=o?It(t,e,n):Tr(e,t,n)})),i})),Sa=Ro((function(e,t,n){ur(e,n,t)}));function Aa(e,t){return(Ha(e)?Dt:Fr)(e,di(t,3))}var Ea=Ro((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Ia=Zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&_i(e,t[0],t[1])?t=[]:n>2&&_i(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,br(t,1),[])})),Ca=mt||function(){return ht.Date.now()};function Pa(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,ei(e,l,n,n,n,n,t)}function qa(e,t){var o;if("function"!=typeof t)throw new Te(r);return e=vu(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var Oa=Zr((function(e,t,n){var r=1;if(n.length){var o=dn(n,ci(Oa));r|=u}return ei(e,r,t,n,o)})),Ta=Zr((function(e,t,n){var r=3;if(n.length){var o=dn(n,ci(Ta));r|=u}return ei(t,r,e,n,o)}));function Na(e,t,o){var i,a,u,s,l,c,d=0,f=!1,p=!1,m=!0;if("function"!=typeof e)throw new Te(r);function h(t){var r=i,o=a;return i=a=n,d=t,s=e.apply(o,r)}function v(e){var r=e-c;return c===n||r>=t||r<0||p&&e-d>=u}function g(){var e=Ca();if(v(e))return y(e);l=Ni(g,function(e){var n=t-(e-c);return p?xn(n,u-(e-d)):n}(e))}function y(e){return l=n,m&&i?h(e):(i=a=n,s)}function b(){var e=Ca(),r=v(e);if(i=arguments,a=this,c=e,r){if(l===n)return function(e){return d=e,l=Ni(g,t),f?h(e):s}(c);if(p)return Ao(l),l=Ni(g,t),h(c)}return l===n&&(l=Ni(g,t)),s}return t=yu(t)||0,nu(o)&&(f=!!o.leading,u=(p="maxWait"in o)?wn(yu(o.maxWait)||0,t):u,m="trailing"in o?!!o.trailing:m),b.cancel=function(){l!==n&&Ao(l),d=0,i=c=a=l=n},b.flush=function(){return l===n?s:y(Ca())},b}var Ra=Zr((function(e,t){return fr(e,1,t)})),Da=Zr((function(e,t,n){return fr(e,yu(t)||0,n)}));function ja(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ja.Cache||Qn),n}function La(e){if("function"!=typeof e)throw new Te(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ja.Cache=Qn;var Ma=ko((function(e,t){var n=(t=1==t.length&&Ha(t[0])?Dt(t[0],Jt(di())):Dt(br(t,1),Jt(di()))).length;return Zr((function(r){for(var o=-1,i=xn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return It(e,this,r)}))})),$a=Zr((function(e,t){var r=dn(t,ci($a));return ei(e,u,n,t,r)})),Ba=Zr((function(e,t){var r=dn(t,ci(Ba));return ei(e,s,n,t,r)})),Fa=ii((function(e,t){return ei(e,c,n,n,n,t)}));function za(e,t){return e===t||e!=e&&t!=t}var Va=Qo(Cr),Ua=Qo((function(e,t){return e>=t})),Wa=Nr(function(){return arguments}())?Nr:function(e){return ru(e)&&Me.call(e,"callee")&&!Xe.call(e,"callee")},Ha=Se.isArray,Ga=xt?Jt(xt):function(e){return ru(e)&&Ir(e)==R};function Ka(e){return null!=e&&tu(e.length)&&!Ja(e)}function Qa(e){return ru(e)&&Ka(e)}var Ya=Bt||ys,Xa=_t?Jt(_t):function(e){return ru(e)&&Ir(e)==x};function Za(e){if(!ru(e))return!1;var t=Ir(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!au(e)}function Ja(e){if(!nu(e))return!1;var t=Ir(e);return t==k||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eu(e){return"number"==typeof e&&e==vu(e)}function tu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function nu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ru(e){return null!=e&&"object"==typeof e}var ou=kt?Jt(kt):function(e){return ru(e)&&gi(e)==A};function iu(e){return"number"==typeof e||ru(e)&&Ir(e)==E}function au(e){if(!ru(e)||Ir(e)!=I)return!1;var t=Qe(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Le.call(n)==ze}var uu=St?Jt(St):function(e){return ru(e)&&Ir(e)==P},su=At?Jt(At):function(e){return ru(e)&&gi(e)==q};function lu(e){return"string"==typeof e||!Ha(e)&&ru(e)&&Ir(e)==O}function cu(e){return"symbol"==typeof e||ru(e)&&Ir(e)==T}var du=Et?Jt(Et):function(e){return ru(e)&&tu(e.length)&&!!st[Ir(e)]},fu=Qo(Br),pu=Qo((function(e,t){return e<=t}));function mu(e){if(!e)return[];if(Ka(e))return lu(e)?mn(e):To(e);if(nt&&e[nt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[nt]());var t=gi(e);return(t==A?ln:t==q?fn:zu)(e)}function hu(e){return e?(e=yu(e))===d||e===-d?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vu(e){var t=hu(e),n=t%1;return t==t?n?t-n:t:0}function gu(e){return e?lr(vu(e),0,m):0}function yu(e){if("number"==typeof e)return e;if(cu(e))return p;if(nu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=nu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=ge.test(e);return n||be.test(e)?ft(e.slice(2),n?2:8):ve.test(e)?p:+e}function bu(e){return No(e,Ru(e))}function wu(e){return null==e?"":fo(e)}var xu=Do((function(e,t){if(Ei(t)||Ka(t))No(t,Nu(t),e);else for(var n in t)Me.call(t,n)&&rr(e,n,t[n])})),_u=Do((function(e,t){No(t,Ru(t),e)})),ku=Do((function(e,t,n,r){No(t,Ru(t),e,r)})),Su=Do((function(e,t,n,r){No(t,Nu(t),e,r)})),Au=ii(sr),Eu=Zr((function(e,t){e=Pe(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&_i(t[0],t[1],i)&&(o=1);++r<o;)for(var a=t[r],u=Ru(a),s=-1,l=u.length;++s<l;){var c=u[s],d=e[c];(d===n||za(d,De[c])&&!Me.call(e,c))&&(e[c]=a[c])}return e})),Iu=Zr((function(e){return e.push(n,ni),It(ju,n,e)}));function Cu(e,t,r){var o=null==e?n:Ar(e,t);return o===n?r:o}function Pu(e,t){return null!=e&&yi(e,t,qr)}var qu=Uo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n}),ns(is)),Ou=Uo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),Me.call(e,t)?e[t].push(n):e[t]=[n]}),di),Tu=Zr(Tr);function Nu(e){return Ka(e)?Zn(e):Mr(e)}function Ru(e){return Ka(e)?Zn(e,!0):$r(e)}var Du=Do((function(e,t,n){Ur(e,t,n)})),ju=Do((function(e,t,n,r){Ur(e,t,n,r)})),Lu=ii((function(e,t){var n={};if(null==e)return n;var r=!1;t=Dt(t,(function(t){return t=_o(t,e),r||(r=t.length>1),t})),No(e,ui(e),n),r&&(n=cr(n,7,ri));for(var o=t.length;o--;)mo(n,t[o]);return n})),Mu=ii((function(e,t){return null==e?{}:function(e,t){return Gr(e,t,(function(t,n){return Pu(e,n)}))}(e,t)}));function $u(e,t){if(null==e)return{};var n=Dt(ui(e),(function(e){return[e]}));return t=di(t),Gr(e,n,(function(e,n){return t(e,n[0])}))}var Bu=Jo(Nu),Fu=Jo(Ru);function zu(e){return null==e?[]:en(e,Nu(e))}var Vu=$o((function(e,t,n){return t=t.toLowerCase(),e+(n?Uu(t):t)}));function Uu(e){return Zu(wu(e).toLowerCase())}function Wu(e){return(e=wu(e))&&e.replace(xe,on).replace(tt,"")}var Hu=$o((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Gu=$o((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ku=Mo("toLowerCase"),Qu=$o((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Yu=$o((function(e,t,n){return e+(n?" ":"")+Zu(t)})),Xu=$o((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Zu=Mo("toUpperCase");function Ju(e,t,r){return e=wu(e),(t=r?n:t)===n?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var es=Zr((function(e,t){try{return It(e,n,t)}catch(e){return Za(e)?e:new Ee(e)}})),ts=ii((function(e,t){return Pt(t,(function(t){t=$i(t),ur(e,t,Oa(e[t],e))})),e}));function ns(e){return function(){return e}}var rs=zo(),os=zo(!0);function is(e){return e}function as(e){return Lr("function"==typeof e?e:cr(e,1))}var us=Zr((function(e,t){return function(n){return Tr(n,e,t)}})),ss=Zr((function(e,t){return function(n){return Tr(e,n,t)}}));function ls(e,t,n){var r=Nu(t),o=Sr(t,r);null==n&&(!nu(t)||!o.length&&r.length)&&(n=t,t=e,e=this,o=Sr(t,Nu(t)));var i=!(nu(n)&&"chain"in n&&!n.chain),a=Ja(e);return Pt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=To(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,jt([this.value()],arguments))})})),e}function cs(){}var ds=Ho(Dt),fs=Ho(Ot),ps=Ho($t);function ms(e){return ki(e)?Gt($i(e)):function(e){return function(t){return Ar(t,e)}}(e)}var hs=Ko(),vs=Ko(!0);function gs(){return[]}function ys(){return!1}var bs=Wo((function(e,t){return e+t}),0),ws=Xo("ceil"),xs=Wo((function(e,t){return e/t}),1),_s=Xo("floor"),ks=Wo((function(e,t){return e*t}),1),Ss=Xo("round"),As=Wo((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new Te(r);return e=vu(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Pa,zn.assign=xu,zn.assignIn=_u,zn.assignInWith=ku,zn.assignWith=Su,zn.at=Au,zn.before=qa,zn.bind=Oa,zn.bindAll=ts,zn.bindKey=Ta,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ha(e)?e:[e]},zn.chain=ma,zn.chunk=function(e,t,r){t=(r?_i(e,t,r):t===n)?1:wn(vu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,u=Se(gt(o/t));i<o;)u[a++]=io(e,i,i+=t);return u},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Se(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return jt(Ha(n)?To(n):[n],br(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=di();return e=t?Dt(e,(function(e){if("function"!=typeof e[1])throw new Te(r);return[n(e[0]),e[1]]})):[],Zr((function(n){for(var r=-1;++r<t;){var o=e[r];if(It(o[0],this,n))return It(o[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=Nu(e);return function(n){return dr(n,e,t)}}(cr(e,1))},zn.constant=ns,zn.countBy=ga,zn.create=function(e,t){var n=Vn(e);return null==t?n:ar(n,t)},zn.curry=function e(t,r,o){var i=ei(t,8,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},zn.curryRight=function e(t,r,o){var i=ei(t,a,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},zn.debounce=Na,zn.defaults=Eu,zn.defaultsDeep=Iu,zn.defer=Ra,zn.delay=Da,zn.difference=zi,zn.differenceBy=Vi,zn.differenceWith=Ui,zn.drop=function(e,t,r){var o=null==e?0:e.length;return o?io(e,(t=r||t===n?1:vu(t))<0?0:t,o):[]},zn.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?io(e,0,(t=o-(t=r||t===n?1:vu(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?vo(e,di(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?vo(e,di(t,3),!0):[]},zn.fill=function(e,t,r,o){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&_i(e,t,r)&&(r=0,o=i),function(e,t,r,o){var i=e.length;for((r=vu(r))<0&&(r=-r>i?0:i+r),(o=o===n||o>i?i:vu(o))<0&&(o+=i),o=r>o?0:gu(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},zn.filter=function(e,t){return(Ha(e)?Tt:yr)(e,di(t,3))},zn.flatMap=function(e,t){return br(Aa(e,t),1)},zn.flatMapDeep=function(e,t){return br(Aa(e,t),d)},zn.flatMapDepth=function(e,t,r){return r=r===n?1:vu(r),br(Aa(e,t),r)},zn.flatten=Gi,zn.flattenDeep=function(e){return null!=e&&e.length?br(e,d):[]},zn.flattenDepth=function(e,t){return null!=e&&e.length?br(e,t=t===n?1:vu(t)):[]},zn.flip=function(e){return ei(e,512)},zn.flow=rs,zn.flowRight=os,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},zn.functions=function(e){return null==e?[]:Sr(e,Nu(e))},zn.functionsIn=function(e){return null==e?[]:Sr(e,Ru(e))},zn.groupBy=_a,zn.initial=function(e){return null!=e&&e.length?io(e,0,-1):[]},zn.intersection=Qi,zn.intersectionBy=Yi,zn.intersectionWith=Xi,zn.invert=qu,zn.invertBy=Ou,zn.invokeMap=ka,zn.iteratee=as,zn.keyBy=Sa,zn.keys=Nu,zn.keysIn=Ru,zn.map=Aa,zn.mapKeys=function(e,t){var n={};return t=di(t,3),_r(e,(function(e,r,o){ur(n,t(e,r,o),e)})),n},zn.mapValues=function(e,t){var n={};return t=di(t,3),_r(e,(function(e,r,o){ur(n,r,t(e,r,o))})),n},zn.matches=function(e){return zr(cr(e,1))},zn.matchesProperty=function(e,t){return Vr(e,cr(t,1))},zn.memoize=ja,zn.merge=Du,zn.mergeWith=ju,zn.method=us,zn.methodOf=ss,zn.mixin=ls,zn.negate=La,zn.nthArg=function(e){return e=vu(e),Zr((function(t){return Wr(t,e)}))},zn.omit=Lu,zn.omitBy=function(e,t){return $u(e,La(di(t)))},zn.once=function(e){return qa(2,e)},zn.orderBy=function(e,t,r,o){return null==e?[]:(Ha(t)||(t=null==t?[]:[t]),Ha(r=o?n:r)||(r=null==r?[]:[r]),Hr(e,t,r))},zn.over=ds,zn.overArgs=Ma,zn.overEvery=fs,zn.overSome=ps,zn.partial=$a,zn.partialRight=Ba,zn.partition=Ea,zn.pick=Mu,zn.pickBy=$u,zn.property=ms,zn.propertyOf=function(e){return function(t){return null==e?n:Ar(e,t)}},zn.pull=Ji,zn.pullAll=ea,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,di(n,2)):e},zn.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Kr(e,t,n,r):e},zn.pullAt=ta,zn.range=hs,zn.rangeRight=vs,zn.rearg=Fa,zn.reject=function(e,t){return(Ha(e)?Tt:yr)(e,La(di(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=di(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Qr(e,o),n},zn.rest=function(e,t){if("function"!=typeof e)throw new Te(r);return Zr(e,t=t===n?t:vu(t))},zn.reverse=na,zn.sampleSize=function(e,t,r){return t=(r?_i(e,t,r):t===n)?1:vu(t),(Ha(e)?er:eo)(e,t)},zn.set=function(e,t,n){return null==e?e:to(e,t,n)},zn.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:to(e,t,r,o)},zn.shuffle=function(e){return(Ha(e)?tr:oo)(e)},zn.slice=function(e,t,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&_i(e,t,r)?(t=0,r=o):(t=null==t?0:vu(t),r=r===n?o:vu(r)),io(e,t,r)):[]},zn.sortBy=Ia,zn.sortedUniq=function(e){return e&&e.length?lo(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?lo(e,di(t,2)):[]},zn.split=function(e,t,r){return r&&"number"!=typeof r&&_i(e,t,r)&&(t=r=n),(r=r===n?m:r>>>0)?(e=wu(e))&&("string"==typeof t||null!=t&&!uu(t))&&!(t=fo(t))&&sn(e)?So(mn(e),0,r):e.split(t,r):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Te(r);return t=null==t?0:wn(vu(t),0),Zr((function(n){var r=n[t],o=So(n,0,t);return r&&jt(o,r),It(e,this,o)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?io(e,1,t):[]},zn.take=function(e,t,r){return e&&e.length?io(e,0,(t=r||t===n?1:vu(t))<0?0:t):[]},zn.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?io(e,(t=o-(t=r||t===n?1:vu(t)))<0?0:t,o):[]},zn.takeRightWhile=function(e,t){return e&&e.length?vo(e,di(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?vo(e,di(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new Te(r);return nu(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),Na(e,t,{leading:o,maxWait:t,trailing:i})},zn.thru=ha,zn.toArray=mu,zn.toPairs=Bu,zn.toPairsIn=Fu,zn.toPath=function(e){return Ha(e)?Dt(e,$i):cu(e)?[e]:To(Mi(wu(e)))},zn.toPlainObject=bu,zn.transform=function(e,t,n){var r=Ha(e),o=r||Ya(e)||du(e);if(t=di(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:nu(e)&&Ja(i)?Vn(Qe(e)):{}}return(o?Pt:_r)(e,(function(e,r,o){return t(n,e,r,o)})),n},zn.unary=function(e){return Pa(e,1)},zn.union=ra,zn.unionBy=oa,zn.unionWith=ia,zn.uniq=function(e){return e&&e.length?po(e):[]},zn.uniqBy=function(e,t){return e&&e.length?po(e,di(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?po(e,n,t):[]},zn.unset=function(e,t){return null==e||mo(e,t)},zn.unzip=aa,zn.unzipWith=ua,zn.update=function(e,t,n){return null==e?e:ho(e,t,xo(n))},zn.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:ho(e,t,xo(r),o)},zn.values=zu,zn.valuesIn=function(e){return null==e?[]:en(e,Ru(e))},zn.without=sa,zn.words=Ju,zn.wrap=function(e,t){return $a(xo(t),e)},zn.xor=la,zn.xorBy=ca,zn.xorWith=da,zn.zip=fa,zn.zipObject=function(e,t){return bo(e||[],t||[],rr)},zn.zipObjectDeep=function(e,t){return bo(e||[],t||[],to)},zn.zipWith=pa,zn.entries=Bu,zn.entriesIn=Fu,zn.extend=_u,zn.extendWith=ku,ls(zn,zn),zn.add=bs,zn.attempt=es,zn.camelCase=Vu,zn.capitalize=Uu,zn.ceil=ws,zn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=yu(r))==r?r:0),t!==n&&(t=(t=yu(t))==t?t:0),lr(yu(e),t,r)},zn.clone=function(e){return cr(e,4)},zn.cloneDeep=function(e){return cr(e,5)},zn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:n)},zn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:n)},zn.conformsTo=function(e,t){return null==t||dr(e,t,Nu(t))},zn.deburr=Wu,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=xs,zn.endsWith=function(e,t,r){e=wu(e),t=fo(t);var o=e.length,i=r=r===n?o:lr(vu(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},zn.eq=za,zn.escape=function(e){return(e=wu(e))&&X.test(e)?e.replace(Q,an):e},zn.escapeRegExp=function(e){return(e=wu(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},zn.every=function(e,t,r){var o=Ha(e)?Ot:vr;return r&&_i(e,t,r)&&(t=n),o(e,di(t,3))},zn.find=ya,zn.findIndex=Wi,zn.findKey=function(e,t){return Ft(e,di(t,3),_r)},zn.findLast=ba,zn.findLastIndex=Hi,zn.findLastKey=function(e,t){return Ft(e,di(t,3),kr)},zn.floor=_s,zn.forEach=wa,zn.forEachRight=xa,zn.forIn=function(e,t){return null==e?e:wr(e,di(t,3),Ru)},zn.forInRight=function(e,t){return null==e?e:xr(e,di(t,3),Ru)},zn.forOwn=function(e,t){return e&&_r(e,di(t,3))},zn.forOwnRight=function(e,t){return e&&kr(e,di(t,3))},zn.get=Cu,zn.gt=Va,zn.gte=Ua,zn.has=function(e,t){return null!=e&&yi(e,t,Pr)},zn.hasIn=Pu,zn.head=Ki,zn.identity=is,zn.includes=function(e,t,n,r){e=Ka(e)?e:zu(e),n=n&&!r?vu(n):0;var o=e.length;return n<0&&(n=wn(o+n,0)),lu(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Vt(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vu(n);return o<0&&(o=wn(r+o,0)),Vt(e,t,o)},zn.inRange=function(e,t,r){return t=hu(t),r===n?(r=t,t=0):r=hu(r),function(e,t,n){return e>=xn(t,n)&&e<wn(t,n)}(e=yu(e),t,r)},zn.invoke=Tu,zn.isArguments=Wa,zn.isArray=Ha,zn.isArrayBuffer=Ga,zn.isArrayLike=Ka,zn.isArrayLikeObject=Qa,zn.isBoolean=function(e){return!0===e||!1===e||ru(e)&&Ir(e)==w},zn.isBuffer=Ya,zn.isDate=Xa,zn.isElement=function(e){return ru(e)&&1===e.nodeType&&!au(e)},zn.isEmpty=function(e){if(null==e)return!0;if(Ka(e)&&(Ha(e)||"string"==typeof e||"function"==typeof e.splice||Ya(e)||du(e)||Wa(e)))return!e.length;var t=gi(e);if(t==A||t==q)return!e.size;if(Ei(e))return!Mr(e).length;for(var n in e)if(Me.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return Rr(e,t)},zn.isEqualWith=function(e,t,r){var o=(r="function"==typeof r?r:n)?r(e,t):n;return o===n?Rr(e,t,n,r):!!o},zn.isError=Za,zn.isFinite=function(e){return"number"==typeof e&&Kt(e)},zn.isFunction=Ja,zn.isInteger=eu,zn.isLength=tu,zn.isMap=ou,zn.isMatch=function(e,t){return e===t||Dr(e,t,pi(t))},zn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Dr(e,t,pi(t),r)},zn.isNaN=function(e){return iu(e)&&e!=+e},zn.isNative=function(e){if(Ai(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return jr(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=iu,zn.isObject=nu,zn.isObjectLike=ru,zn.isPlainObject=au,zn.isRegExp=uu,zn.isSafeInteger=function(e){return eu(e)&&e>=-f&&e<=f},zn.isSet=su,zn.isString=lu,zn.isSymbol=cu,zn.isTypedArray=du,zn.isUndefined=function(e){return e===n},zn.isWeakMap=function(e){return ru(e)&&gi(e)==N},zn.isWeakSet=function(e){return ru(e)&&"[object WeakSet]"==Ir(e)},zn.join=function(e,t){return null==e?"":yn.call(e,t)},zn.kebabCase=Hu,zn.last=Zi,zn.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=vu(r))<0?wn(o+i,0):xn(i,o-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):zt(e,Wt,i,!0)},zn.lowerCase=Gu,zn.lowerFirst=Ku,zn.lt=fu,zn.lte=pu,zn.max=function(e){return e&&e.length?gr(e,is,Cr):n},zn.maxBy=function(e,t){return e&&e.length?gr(e,di(t,2),Cr):n},zn.mean=function(e){return Ht(e,is)},zn.meanBy=function(e,t){return Ht(e,di(t,2))},zn.min=function(e){return e&&e.length?gr(e,is,Br):n},zn.minBy=function(e,t){return e&&e.length?gr(e,di(t,2),Br):n},zn.stubArray=gs,zn.stubFalse=ys,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=ks,zn.nth=function(e,t){return e&&e.length?Wr(e,vu(t)):n},zn.noConflict=function(){return ht._===this&&(ht._=Ve),this},zn.noop=cs,zn.now=Ca,zn.pad=function(e,t,n){e=wu(e);var r=(t=vu(t))?pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Go(bt(o),n)+e+Go(gt(o),n)},zn.padEnd=function(e,t,n){e=wu(e);var r=(t=vu(t))?pn(e):0;return t&&r<t?e+Go(t-r,n):e},zn.padStart=function(e,t,n){e=wu(e);var r=(t=vu(t))?pn(e):0;return t&&r<t?Go(t-r,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),kn(wu(e).replace(ae,""),t||0)},zn.random=function(e,t,r){if(r&&"boolean"!=typeof r&&_i(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=hu(e),t===n?(t=e,e=0):t=hu(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var i=Sn();return xn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Yr(e,t)},zn.reduce=function(e,t,n){var r=Ha(e)?Lt:Qt,o=arguments.length<3;return r(e,di(t,4),n,o,mr)},zn.reduceRight=function(e,t,n){var r=Ha(e)?Mt:Qt,o=arguments.length<3;return r(e,di(t,4),n,o,hr)},zn.repeat=function(e,t,r){return t=(r?_i(e,t,r):t===n)?1:vu(t),Xr(wu(e),t)},zn.replace=function(){var e=arguments,t=wu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,r){var o=-1,i=(t=_o(t,e)).length;for(i||(i=1,e=n);++o<i;){var a=null==e?n:e[$i(t[o])];a===n&&(o=i,a=r),e=Ja(a)?a.call(e):a}return e},zn.round=Ss,zn.runInContext=e,zn.sample=function(e){return(Ha(e)?Jn:Jr)(e)},zn.size=function(e){if(null==e)return 0;if(Ka(e))return lu(e)?pn(e):e.length;var t=gi(e);return t==A||t==q?e.size:Mr(e).length},zn.snakeCase=Qu,zn.some=function(e,t,r){var o=Ha(e)?$t:ao;return r&&_i(e,t,r)&&(t=n),o(e,di(t,3))},zn.sortedIndex=function(e,t){return uo(e,t)},zn.sortedIndexBy=function(e,t,n){return so(e,t,di(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=uo(e,t);if(r<n&&za(e[r],t))return r}return-1},zn.sortedLastIndex=function(e,t){return uo(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return so(e,t,di(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=uo(e,t,!0)-1;if(za(e[n],t))return n}return-1},zn.startCase=Yu,zn.startsWith=function(e,t,n){return e=wu(e),n=null==n?0:lr(vu(n),0,e.length),t=fo(t),e.slice(n,n+t.length)==t},zn.subtract=As,zn.sum=function(e){return e&&e.length?Yt(e,is):0},zn.sumBy=function(e,t){return e&&e.length?Yt(e,di(t,2)):0},zn.template=function(e,t,r){var o=zn.templateSettings;r&&_i(e,t,r)&&(t=n),e=wu(e),t=ku({},t,o,ti);var i,a,u=ku({},t.imports,o.imports,ti),s=Nu(u),l=en(u,s),c=0,d=t.interpolate||_e,f="__p += '",p=qe((t.escape||_e).source+"|"+d.source+"|"+(d===ee?me:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),m="//# sourceURL="+(Me.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ut+"]")+"\n";e.replace(p,(function(t,n,r,o,u,s){return r||(r=o),f+=e.slice(c,s).replace(ke,un),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),u&&(a=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+t.length,t})),f+="';\n";var h=Me.call(t,"variable")&&t.variable;if(h){if(fe.test(h))throw new Ee("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(W,""):f).replace(H,"$1").replace(G,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=es((function(){return Ie(s,m+"return "+f).apply(n,l)}));if(v.source=f,Za(v))throw v;return v},zn.times=function(e,t){if((e=vu(e))<1||e>f)return[];var n=m,r=xn(e,m);t=di(t),e-=m;for(var o=Xt(r,t);++n<e;)t(n);return o},zn.toFinite=hu,zn.toInteger=vu,zn.toLength=gu,zn.toLower=function(e){return wu(e).toLowerCase()},zn.toNumber=yu,zn.toSafeInteger=function(e){return e?lr(vu(e),-f,f):0===e?e:0},zn.toString=wu,zn.toUpper=function(e){return wu(e).toUpperCase()},zn.trim=function(e,t,r){if((e=wu(e))&&(r||t===n))return Zt(e);if(!e||!(t=fo(t)))return e;var o=mn(e),i=mn(t);return So(o,nn(o,i),rn(o,i)+1).join("")},zn.trimEnd=function(e,t,r){if((e=wu(e))&&(r||t===n))return e.slice(0,hn(e)+1);if(!e||!(t=fo(t)))return e;var o=mn(e);return So(o,0,rn(o,mn(t))+1).join("")},zn.trimStart=function(e,t,r){if((e=wu(e))&&(r||t===n))return e.replace(ae,"");if(!e||!(t=fo(t)))return e;var o=mn(e);return So(o,nn(o,mn(t))).join("")},zn.truncate=function(e,t){var r=30,o="...";if(nu(t)){var i="separator"in t?t.separator:i;r="length"in t?vu(t.length):r,o="omission"in t?fo(t.omission):o}var a=(e=wu(e)).length;if(sn(e)){var u=mn(e);a=u.length}if(r>=a)return e;var s=r-pn(o);if(s<1)return o;var l=u?So(u,0,s).join(""):e.slice(0,s);if(i===n)return l+o;if(u&&(s+=l.length-s),uu(i)){if(e.slice(s).search(i)){var c,d=l;for(i.global||(i=qe(i.source,wu(he.exec(i))+"g")),i.lastIndex=0;c=i.exec(d);)var f=c.index;l=l.slice(0,f===n?s:f)}}else if(e.indexOf(fo(i),s)!=s){var p=l.lastIndexOf(i);p>-1&&(l=l.slice(0,p))}return l+o},zn.unescape=function(e){return(e=wu(e))&&Y.test(e)?e.replace(K,vn):e},zn.uniqueId=function(e){var t=++$e;return wu(e)+t},zn.upperCase=Xu,zn.upperFirst=Zu,zn.each=wa,zn.eachRight=xa,zn.first=Ki,ls(zn,function(){var e={};return _r(zn,(function(t,n){Me.call(zn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),zn.VERSION="4.17.21",Pt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),Pt(["drop","take"],(function(e,t){Hn.prototype[e]=function(r){r=r===n?1:wn(vu(r),0);var o=this.__filtered__&&!t?new Hn(this):this.clone();return o.__filtered__?o.__takeCount__=xn(r,o.__takeCount__):o.__views__.push({size:xn(r,m),type:e+(o.__dir__<0?"Right":"")}),o},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Pt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:di(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Pt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}})),Pt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(is)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Zr((function(e,t){return"function"==typeof e?new Hn(this):this.map((function(n){return Tr(n,e,t)}))})),Hn.prototype.reject=function(e){return this.filter(La(di(e)))},Hn.prototype.slice=function(e,t){e=vu(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Hn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=vu(t))<0?r.dropRight(-t):r.take(t-e)),r)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(m)},_r(Hn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=zn[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(zn.prototype[t]=function(){var t=this.__wrapped__,u=o?[1]:arguments,s=t instanceof Hn,l=u[0],c=s||Ha(t),d=function(e){var t=i.apply(zn,jt([e],u));return o&&f?t[0]:t};c&&r&&"function"==typeof l&&1!=l.length&&(s=c=!1);var f=this.__chain__,p=!!this.__actions__.length,m=a&&!f,h=s&&!p;if(!a&&c){t=h?t:new Hn(this);var v=e.apply(t,u);return v.__actions__.push({func:ha,args:[d],thisArg:n}),new Wn(v,f)}return m&&h?e.apply(this,u):(v=this.thru(d),m?o?v.value()[0]:v.value():v)})})),Pt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ne[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ha(o)?o:[],e)}return this[n]((function(n){return t.apply(Ha(n)?n:[],e)}))}})),_r(Hn.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Me.call(Nn,r)||(Nn[r]=[]),Nn[r].push({name:t,func:n})}})),Nn[Vo(n,2).name]=[{name:"wrapper",func:n}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=To(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=To(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=To(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ha(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=xn(t,e+a);break;case"takeRight":e=wn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,u=i.end,s=u-a,l=r?u:a-1,c=this.__iteratees__,d=c.length,f=0,p=xn(s,this.__takeCount__);if(!n||!r&&o==s&&p==s)return go(e,this.__actions__);var m=[];e:for(;s--&&f<p;){for(var h=-1,v=e[l+=t];++h<d;){var g=c[h],y=g.iteratee,b=g.type,w=y(v);if(2==b)v=w;else if(!w){if(1==b)continue e;break e}}m[f++]=v}return m},zn.prototype.at=va,zn.prototype.chain=function(){return ma(this)},zn.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===n&&(this.__values__=mu(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,r=this;r instanceof Un;){var o=Fi(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[na],thisArg:n}),new Wn(t,this.__chain__)}return this.thru(na)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,nt&&(zn.prototype[nt]=function(){return this}),zn}();gt?((gt.exports=gn)._=gn,vt._=gn):ht._=gn}.call(jY)),av.exports;var e,t}VY();const UY={$user:"/:username","$user-post":"/:username/posts/:postId","$user-event":"/:username/events/:eventId","$user-channel":"/:username/channels/:channelId","$user-media":"/:username/media/:mediaId"},zY={$group:"/g/:groupname","$group-post":"/g/:groupname/posts/:postId","$group-event":"/g/:groupname/events/:eventId","$group-forum-post":"/g/:groupname/forum/:postId","$group-forum-category":"/g/:groupname/forum/:categorySlug","$group-forum-category-post":"/g/:groupname/forum/:categorySlug/:postId","$group-forum-tag":"/g/:groupname/forum/tag/:tag","$group-channel":"/g/:groupname/:channelname","$group-channel-post":"/g/:groupname/:channelname/posts/:postId","$group-media":"/g/:groupname/media/:mediaId"},WY={$root:"/",$tag:"/tags/:tag"},qY=()=>{const e=J3();if(!e)return;const{platformData:t}=e;return t.apps.flatMap((e=>e.paths.map((n=>({path:n.path,name:e.name,url:`${t.baseUrl}${e.baseUrl}index.html`,build:e.build,buildDate:e.buildDate})))))},GY={...UY,...zY,...WY},HY=()=>{var e;const t=(null==(e=qY())?void 0:e.filter((({path:e})=>e.startsWith("$")&&!e.includes("/")&&!GY[e])))||[];t.length>0&&El.warn("Unrecognized routes found:",t)};HY();const KY={path:"",history:[],transitionPath:"",confirmLeavePage:null},QY=Wo({name:"router",initialState:KY,reducers:{},extraReducers:e=>{e.addCase(xG,((e,{payload:t})=>{e.confirmLeavePage=t})).addCase(v3,((e,{payload:t})=>{t!==e.transitionPath&&(e.transitionPath=t)})).addCase($G,((e,{payload:t})=>{t!==e.path&&(e.path=t,e.history.unshift(t))}))},selectors:{selectPath:e=>e.path,selectPreviousRoute:e=>{const t=e.history.indexOf(e.path);return e.history[t+1]},selectTransitionPath:e=>e.transitionPath,selectConfirmLeavePage:e=>e.confirmLeavePage}}).injectInto(NY),iM="Tabs",[YY,sJ]=ai(iM,[Xh]),aM=Xh(),[uJ,BC]=YY(iM),XY="TabsList",JY=Le(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=BC(XY,n),a=aM(n);return oe(aC,Ee({asChild:!0},a,{orientation:i.orientation,dir:i.dir,loop:r}),oe(ht.div,Ee({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))})),ZY="TabsTrigger",eX=Le(((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=BC(ZY,n),u=aM(n),s=sM(a.baseId,r),l=uM(a.baseId,r),c=r===a.value;return oe(sC,Ee({asChild:!0},u,{focusable:!o,active:c}),oe(ht.button,Ee({type:"button",role:"tab","aria-selected":c,"aria-controls":l,"data-state":c?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s},i,{ref:t,onMouseDown:ot(e.onMouseDown,(e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)})),onKeyDown:ot(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)})),onFocus:ot(e.onFocus,(()=>{const e="manual"!==a.activationMode;!c&&!o&&e&&a.onValueChange(r)}))})))})),tX="TabsContent",nX=Le(((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,u=BC(tX,n),s=sM(u.baseId,r),l=uM(u.baseId,r),c=r===u.value,d=We(c);return Ze((()=>{const e=requestAnimationFrame((()=>d.current=!1));return()=>cancelAnimationFrame(e)}),[]),oe(ia,{present:o||c},(({present:n})=>oe(ht.div,Ee({"data-state":c?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":s,hidden:!n,id:l,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),n&&i)))}));function sM(e,t){return`${e}-trigger-${t}`}function uM(e,t){return`${e}-content-${t}`}const lM=JY,cM=eX,dM=nX,rX=k.forwardRef((({className:e,useDefaults:t=!0,...n},r)=>q.jsx(lM,{ref:r,"data-testid":"tabsList",className:t?we("inline-flex w-full items-center justify-start gap-s p-none text-muted-foreground","relative after:absolute after:bottom-0 after:left-0 after:h-[1px] after:w-full after:bg-gray-200",e):e,...n})));rX.displayName=lM.displayName;const oX=k.forwardRef((({className:e,children:t,isFullWidthTab:n,...r},o)=>q.jsx(cM,{ref:o,asChild:!0,className:e??we("inline-flex items-center justify-center whitespace-nowrap text-base","z-2 transition-background h-m cursor-pointer focus-visible:outline-none","font-semibold focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50","group relative text-gray-500 hover:[&_svg]:fill-gray-900","after:absolute after:bottom-0 after:left-0 after:z-[1] after:h-0.5 after:w-full data-[state=active]:after:bg-gray-900",{"flex-1":n}),...r,children:t})));oX.displayName=cM.displayName;const iX=k.forwardRef((({className:e,...t},n)=>q.jsx(dM,{ref:n,className:we("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t})));iX.displayName=dM.displayName;const aX=k.forwardRef((({className:e,...t},n)=>q.jsx("table",{ref:n,className:we("w-full caption-bottom text-sm",e),...t})));aX.displayName="Table";const sX=k.forwardRef((({className:e,...t},n)=>q.jsx("thead",{ref:n,className:we("[&_tr]:border-b",e),...t})));sX.displayName="TableHeader";const uX=k.forwardRef((({className:e,...t},n)=>q.jsx("tbody",{ref:n,className:we("[&_tr:last-child]:border-0",e),...t})));uX.displayName="TableBody";const lX=k.forwardRef((({className:e,...t},n)=>q.jsx("tfoot",{ref:n,className:we("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t})));lX.displayName="TableFooter";const cX=k.forwardRef((({className:e,...t},n)=>q.jsx("tr",{ref:n,className:we("border-b bg-background transition-colors hover:bg-gray-100 data-[state=selected]:bg-gray-200 dark:hover:bg-muted dark:data-[state=selected]:bg-muted","[&:hover_button[data-disabled]]:!bg-gray-200 [&:hover_button[disabled]]:!bg-gray-200",e),...t})));cX.displayName="TableRow";const dX=k.forwardRef((({className:e,...t},n)=>q.jsx("th",{ref:n,className:we("h-m bg-inherit px-xs py-xxs text-left align-middle font-normal text-muted-foreground","whitespace-nowrap border-gray-200 text-sm text-gray-500 [&:not(:last-child)]:border-r",e),...t})));dX.displayName="TableHead";const fX=k.forwardRef((({className:e,...t},n)=>q.jsx("td",{ref:n,className:we("bg-inherit p-xs py-xxs align-middle","overflow-hidden truncate text-ellipsis border-gray-200 text-base text-gray-700 [&:not(:last-child)]:border-r",e),...t})));fX.displayName="TableCell";const pX=k.forwardRef((({className:e,...t},n)=>q.jsx("caption",{ref:n,className:we("mt-s text-sm text-muted-foreground",e),...t})));pX.displayName="TableCaption";const hX=(e,t)=>we("flex w-full rounded-m px-s py-xs text-base text-gray-900 outline outline-1 outline-input ring-offset-background transition-all duration-200 ease-in-out placeholder:inherit placeholder:text-gray-400 placeholder:text-muted-foreground hover:outline-2 hover:outline-gray-400 focus-visible:bg-gray-50 focus-visible:text-gray-900 focus-visible:outline-2 focus-visible:outline-blue_120 disabled:cursor-not-allowed disabled:select-none disabled:text-gray-300 disabled:outline-gray-200",{"bg-red_30_17 outline-red-dark":!!e},t),mX=k.forwardRef((({className:e,...t},n)=>{const{error:r}=$d();return q.jsx("textarea",{className:hX(!!r,e),ref:n,...t})}));mX.displayName="Textarea";const vX=hu(void 0),gX=()=>{const e=op(vX);if(!e)throw new Error("useColorPicker must be used within a ColorPickerProvider");return e},yX=aA((({className:e,...t})=>{const n=We(null),[r,o]=ut(!1),[i,a]=ut(0),[u,s]=ut(0),{hue:l,saturation:c,lightness:d,setSaturation:f,setLightness:p}=gX(),m=xn((()=>`linear-gradient(0deg, rgba(0,0,0,1), rgba(0,0,0,0)),\n linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0)),\n hsl(${l}, 100%, 50%)`),[l]);Ze((()=>{if(!r){const e=c/100,t=e<.01?100:50+50*(1-e),n=t>0?1-d/t:0;a(Math.max(0,Math.min(1,e))),s(Math.max(0,Math.min(1,n)))}}),[c,d,r]);const h=yt(((e,t)=>{if(!n.current)return;const r=n.current.getBoundingClientRect(),o=Math.max(0,Math.min(1,(e-r.left)/r.width)),i=Math.max(0,Math.min(1,(t-r.top)/r.height));a(o),s(i),f(100*o);p((o<.01?100:50+50*(1-o))*(1-i))}),[f,p]),v=yt((e=>{r&&h(e.clientX,e.clientY)}),[r,h]);return Ze((()=>{const e=()=>o(!1);return r&&(window.addEventListener("pointermove",v),window.addEventListener("pointerup",e)),()=>{window.removeEventListener("pointermove",v),window.removeEventListener("pointerup",e)}}),[r,v]),q.jsx("div",{className:we("relative size-full cursor-crosshair rounded",e),onPointerDown:e=>{e.preventDefault(),o(!0),h(e.clientX,e.clientY)},ref:n,style:{background:m},...t,children:q.jsx("div",{className:"pointer-events-none absolute h-4 w-4 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white",style:{left:100*i+"%",top:100*u+"%",boxShadow:"0 0 0 1px rgba(0,0,0,0.5)"}})})}));yX.displayName="ColorPickerSelection";const wX=wu("z-tooltip animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 relative data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",{variants:{size:{default:"rounded-md text-sm px-3 py-1.5",small:"rounded-sm p-xxs text-sm"},theme:{default:"bg-popover text-popover-foreground",dark:"bg-gray-800 text-gray-50 [&_svg]:fill-gray-700"},defaultVariants:{size:"small",theme:"dark"}}}),_X=k.forwardRef((({className:e,sideOffset:t=1,size:n,theme:r,children:o,isPortal:i=!0,withArrow:a=!0,...u},s)=>{const l=q.jsx(q.Fragment,{children:q.jsxs(m3,{ref:s,sideOffset:t,className:we(wX({size:n,theme:r,className:e})),...u,children:[o,a&&q.jsxs(q.Fragment,{children:[q.jsx(yG,{height:4,width:8}),q.jsx("div",{className:"absolute bottom-0 left-0 h-full w-full rounded-sm border border-gray-700"})]})]})});return i?q.jsx(gG,{children:l}):l}));_X.displayName=m3.displayName;var oA,Hg={exports:{}},bX=Hg.exports;function xX(){return oA||(oA=1,Hg.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",u="day",s="week",l="month",c="quarter",d="year",f="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,l),i=n-o<0,a=t.clone().add(r+(i?-1:1),l);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:s,d:u,D:f,h:a,m:i,s:o,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=v;var x="$isDayjsObject",_=function(e){return e instanceof E||!(!e||!e[x])},k=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var u=t.name;w[u]=t,o=u}return!r&&o&&(b=o),o||!r&&b},S=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},A=y;A.l=k,A.i=_,A.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function v(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var g=v.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(A.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(m);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return A},g.isValid=function(){return this.$d.toString()!==p},g.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return S(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<S(e)},g.$g=function(e,t,n){return A.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,r=!!A.u(t)||t,c=A.p(e),p=function(e,t){var o=A.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(u)},m=function(e,t){return A.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,v=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(c){case d:return r?p(1,0):p(31,11);case l:return r?p(1,v):p(0,v+1);case s:var b=this.$locale().weekStart||0,w=(h<b?h+7:h)-b;return p(r?g-w:g+(6-w),v);case u:case f:return m(y+"Hours",0);case a:return m(y+"Minutes",1);case i:return m(y+"Seconds",2);case o:return m(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,s=A.p(e),c="set"+(this.$u?"UTC":""),p=(n={},n[u]=c+"Date",n[f]=c+"Date",n[l]=c+"Month",n[d]=c+"FullYear",n[a]=c+"Hours",n[i]=c+"Minutes",n[o]=c+"Seconds",n[r]=c+"Milliseconds",n)[s],m=s===u?this.$D+(t-this.$W):t;if(s===l||s===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[A.p(e)]()},g.add=function(r,c){var f,p=this;r=Number(r);var m=A.p(c),h=function(e){var t=S(p);return A.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===u)return h(1);if(m===s)return h(7);var v=(f={},f[i]=t,f[a]=n,f[o]=e,f)[m]||1,g=this.$d.getTime()+r*v;return A.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=A.z(this),i=this.$H,a=this.$m,u=this.$M,s=n.weekdays,l=n.months,c=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return A.s(i%12||12,e,"0")},m=c||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return A.s(t.$y,4,"0");case"M":return u+1;case"MM":return A.s(u+1,2,"0");case"MMM":return d(n.monthsShort,u,l,3);case"MMMM":return d(l,u);case"D":return t.$D;case"DD":return A.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,s,2);case"ddd":return d(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(i);case"HH":return A.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(i,a,!0);case"A":return m(i,a,!1);case"m":return String(a);case"mm":return A.s(a,2,"0");case"s":return String(t.$s);case"ss":return A.s(t.$s,2,"0");case"SSS":return A.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,f,p){var m,h=this,v=A.p(f),g=S(r),y=(g.utcOffset()-this.utcOffset())*t,b=this-g,w=function(){return A.m(h,g)};switch(v){case d:m=w()/12;break;case l:m=w();break;case c:m=w()/3;break;case s:m=(b-y)/6048e5;break;case u:m=(b-y)/864e5;break;case a:m=b/n;break;case i:m=b/t;break;case o:m=b/e;break;default:m=b}return p?m:A.a(m)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return w[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=k(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return A.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),I=E.prototype;return S.prototype=I,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",u],["$M",l],["$y",d],["$D",f]].forEach((function(e){I[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,E,S),e.$i=!0),S},S.locale=k,S.isDayjs=_,S.unix=function(e){return S(1e3*e)},S.en=w[b],S.Ls=w,S.p={},S}()),Hg.exports}xX();const HS="horizontal",SX=["horizontal","vertical"],jC=Le(((e,t)=>{const{decorative:n,orientation:r=HS,...o}=e,i=fM(r)?r:HS,a=n?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"};return oe(ht.div,Ee({"data-orientation":i},a,o,{ref:t}))}));function $X(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \`${HS}\`.`}function fM(e){return SX.includes(e)}jC.propTypes={orientation(e,t,n){const r=e[t],o=String(r);return r&&!fM(r)?new Error($X(o,n)):null}};const CX=wu("\n shrink-0 bg-gray-200\n data-[orientation=horizontal]:h-px data-[orientation=horizontal]:my-xxs\n data-[orientation=vertical]:w-px data-[orientation=vertical]:mx-xxs\n ",{variants:{size:{xs:"data-[orientation=horizontal]:w-4 data-[orientation=vertical]:h-4",s:"data-[orientation=horizontal]:w-6 data-[orientation=vertical]:h-6",m:"data-[orientation=horizontal]:w-8 data-[orientation=vertical]:h-8",l:"data-[orientation=horizontal]:w-10 data-[orientation=vertical]:h-10"}},defaultVariants:{size:"s"}}),IX=k.forwardRef((({className:e,size:t,...n},r)=>q.jsx(jC,{ref:r,className:we(CX({size:t,className:e})),...n})));IX.displayName=jC.displayName;const EX=({linksList:e})=>q.jsx("div",{className:"text-gray-700",children:q.jsx("div",{className:"gap-xs flex flex-col items-center",children:e.map((({text:e,link:t,icon:n},r)=>q.jsx(BY,{to:t,children:q.jsxs(Av,{className:"min-w-[200px]",variant:r?"tertiary":"primary",children:[n,e]})},t)))})}),PX=(e,t)=>{switch(!0){case BL(e):return e;case jL(e):return 500===e&&El.error("ErrorPage: ",e),lv(e,t);case e&&!!sI(e):return{title:sI(e)};default:return El.error("ErrorPage: ",e),lv(500,t)}},VC=({error:e,icon:t})=>{const n=dy(bA.selectors.selectIsAuthenticated),{title:r,description:o,links:i}=PX(e,n),a=mu(o);return q.jsx("div",{className:"flex min-h-[100vh] items-center justify-center",children:q.jsxs("div",{className:"gap-l flex max-w-[490px] translate-y-[-10%] flex-col items-center justify-center",children:[t||q.jsx("img",{src:UL}),q.jsxs("div",{className:"gap-s flex flex-col items-center justify-center",children:[r&&q.jsx("h1",{className:"text-center text-[24px] font-semibold text-gray-900",children:r}),o&&q.jsx("p",{className:"max-w-[343px] text-center text-base font-medium text-gray-900",...!a&&{dangerouslySetInnerHTML:{__html:o}},children:a?o:null})]}),null!=i&&i.length?q.jsx(EX,{linksList:i}):null]})})},RX=()=>{const e=$M();return e.pathname+e.search},TX=()=>{const e=CM(),t=We(""),n=RX(),r=dy(QY.selectors.selectPath);Ze((()=>{r&&r!==t.current&&(t.current=r,n!==r&&e(r,{replace:!0}))}),[r,e,n])},pM=aA((()=>(TX(),null)));pM.displayName="RemoteRouteObserver";const lJ=()=>{const e=IM();return q.jsxs(q.Fragment,{children:[q.jsx(pM,{}),q.jsx(VC,{error:e})]})},OX=hu(null),aS={didCatch:!1,error:null};class AX extends mM{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=aS}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:o,reason:"imperative-api"}),this.setState(aS)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var o,i;n&&null!==t.error&&DX(e.resetKeys,r)&&(null===(o=(i=this.props).onReset)||void 0===o||o.call(i,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(aS))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let a=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)a=t(e);else if(n)a=oe(n,e);else{if(null!==r&&!mu(r))throw i;a=r}}return oe(OX.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}function DX(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some(((e,n)=>!Object.is(e,t[n])))}const cJ=()=>q.jsx(AX,{FallbackComponent:VC,children:q.jsx(EM,{})}),dJ=e=>{throw e},fJ=e=>{var t,n,r;if(!e||zf.isString(e))return null;if("data"in e&&null!=(t=e.data)&&t.errorCode)return null==(n=e.data)?void 0:n.errorCode;if("error"in e&&"object"==typeof e.error&&null!==e.error){const t=e.error;if(null!=(r=t.data)&&r.errorCode)return t.data.errorCode}return null},pJ=e=>{if(!e||zf.isString(e))return null;if("status"in e)return null==e?void 0:e.status;if("error"in e&&"object"==typeof e.error&&null!==e.error){const t=e.error;if(t.status)return t.status}return null},hJ=({children:e,...t})=>null!=t&&t.error?q.jsx(VC,{...t}):q.jsx(q.Fragment,{children:e});export{cJ as ErrorBoundaryLayout,VC as ErrorPage,hJ as ErrorWrapper,lJ as RouterErrorPage,lv as getErrorByStatusCode,sI as getErrorMsg,fJ as getServerApiErrorCode,pJ as getServerStatusCode,dJ as throwError};
|
|
77
|
+
*/function VY(){return rA||(rA=1,e=av,t=av.exports,function(){var n,r="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",a=16,u=32,s=64,l=128,c=256,d=1/0,f=9007199254740991,p=NaN,m=4294967295,h=m-1,v=m>>>1,g=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",u],["partialRight",s],["rearg",c]],y="[object Arguments]",b="[object Array]",w="[object Boolean]",x="[object Date]",_="[object Error]",k="[object Function]",S="[object GeneratorFunction]",A="[object Map]",E="[object Number]",I="[object Object]",C="[object Promise]",P="[object RegExp]",q="[object Set]",O="[object String]",T="[object Symbol]",N="[object WeakMap]",R="[object ArrayBuffer]",D="[object DataView]",j="[object Float32Array]",L="[object Float64Array]",M="[object Int8Array]",$="[object Int16Array]",B="[object Int32Array]",F="[object Uint8Array]",z="[object Uint8ClampedArray]",V="[object Uint16Array]",U="[object Uint32Array]",W=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,Q=/[&<>"']/g,Y=RegExp(K.source),X=RegExp(Q.source),Z=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,ue=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,ve=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,Se="\\ud800-\\udfff",Ae="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",Ie="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Pe="\\ufe0e\\ufe0f",qe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oe="['’]",Te="["+Se+"]",Ne="["+qe+"]",Re="["+Ae+"]",De="\\d+",je="["+Ee+"]",Le="["+Ie+"]",Me="[^"+Se+qe+De+Ee+Ie+Ce+"]",$e="\\ud83c[\\udffb-\\udfff]",Be="[^"+Se+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+Ce+"]",Ue="\\u200d",We="(?:"+Le+"|"+Me+")",He="(?:"+Ve+"|"+Me+")",Ge="(?:['’](?:d|ll|m|re|s|t|ve))?",Ke="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qe="(?:"+Re+"|"+$e+")?",Ye="["+Pe+"]?",Xe=Ye+Qe+"(?:"+Ue+"(?:"+[Be,Fe,ze].join("|")+")"+Ye+Qe+")*",Ze="(?:"+[je,Fe,ze].join("|")+")"+Xe,Je="(?:"+[Be+Re+"?",Re,Fe,ze,Te].join("|")+")",et=RegExp(Oe,"g"),tt=RegExp(Re,"g"),nt=RegExp($e+"(?="+$e+")|"+Je+Xe,"g"),rt=RegExp([Ve+"?"+Le+"+"+Ge+"(?="+[Ne,Ve,"$"].join("|")+")",He+"+"+Ke+"(?="+[Ne,Ve+We,"$"].join("|")+")",Ve+"?"+We+"+"+Ge,Ve+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,Ze].join("|"),"g"),ot=RegExp("["+Ue+Se+Ae+Pe+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ut=-1,st={};st[j]=st[L]=st[M]=st[$]=st[B]=st[F]=st[z]=st[V]=st[U]=!0,st[y]=st[b]=st[R]=st[w]=st[D]=st[x]=st[_]=st[k]=st[A]=st[E]=st[I]=st[P]=st[q]=st[O]=st[N]=!1;var lt={};lt[y]=lt[b]=lt[R]=lt[D]=lt[w]=lt[x]=lt[j]=lt[L]=lt[M]=lt[$]=lt[B]=lt[A]=lt[E]=lt[I]=lt[P]=lt[q]=lt[O]=lt[T]=lt[F]=lt[z]=lt[V]=lt[U]=!0,lt[_]=lt[k]=lt[N]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ft=parseInt,pt="object"==typeof Fa&&Fa&&Fa.Object===Object&&Fa,mt="object"==typeof self&&self&&self.Object===Object&&self,ht=pt||mt||Function("return this")(),vt=t&&!t.nodeType&&t,gt=vt&&e&&!e.nodeType&&e,yt=gt&>.exports===vt,bt=yt&&pt.process,wt=function(){try{return gt&>.require&>.require("util").types||bt&&bt.binding&&bt.binding("util")}catch{}}(),xt=wt&&wt.isArrayBuffer,_t=wt&&wt.isDate,kt=wt&&wt.isMap,St=wt&&wt.isRegExp,At=wt&&wt.isSet,Et=wt&&wt.isTypedArray;function It(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ct(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function qt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ot(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Tt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Nt(e,t){return!(null==e||!e.length)&&Vt(e,t,0)>-1}function Rt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function jt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Lt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Mt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function $t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Bt=Gt("length");function Ft(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function zt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Vt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):zt(e,Wt,n)}function Ut(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Wt(e){return e!=e}function Ht(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:p}function Gt(e){return function(t){return null==t?n:t[e]}}function Kt(e){return function(t){return null==e?n:e[t]}}function Qt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Yt(e,t){for(var r,o=-1,i=e.length;++o<i;){var a=t(e[o]);a!==n&&(r=r===n?a:r+a)}return r}function Xt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Zt(e){return e&&e.slice(0,hn(e)+1).replace(ae,"")}function Jt(e){return function(t){return e(t)}}function en(e,t){return Dt(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Vt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Vt(t,e[n],0)>-1;);return n}var on=Kt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),an=Kt({"&":"&","<":"<",">":">",'"':""","'":"'"});function un(e){return"\\"+ct[e]}function sn(e){return ot.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var u=e[n];(u===t||u===i)&&(e[n]=i,a[o++]=n)}return a}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){return sn(e)?function(e){for(var t=nt.lastIndex=0;nt.test(e);)++t;return t}(e):Bt(e)}function mn(e){return sn(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function hn(e){for(var t=e.length;t--&&ue.test(e.charAt(t)););return t}var vn=Kt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),gn=function e(t){var ue,Se=(t=null==t?ht:gn.defaults(ht.Object(),t,gn.pick(ht,at))).Array,Ae=t.Date,Ee=t.Error,Ie=t.Function,Ce=t.Math,Pe=t.Object,qe=t.RegExp,Oe=t.String,Te=t.TypeError,Ne=Se.prototype,Re=Ie.prototype,De=Pe.prototype,je=t["__core-js_shared__"],Le=Re.toString,Me=De.hasOwnProperty,$e=0,Be=(ue=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||""))?"Symbol(src)_1."+ue:"",Fe=De.toString,ze=Le.call(Pe),Ve=ht._,Ue=qe("^"+Le.call(Me).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=yt?t.Buffer:n,He=t.Symbol,Ge=t.Uint8Array,Ke=We?We.allocUnsafe:n,Qe=cn(Pe.getPrototypeOf,Pe),Ye=Pe.create,Xe=De.propertyIsEnumerable,Ze=Ne.splice,Je=He?He.isConcatSpreadable:n,nt=He?He.iterator:n,ot=He?He.toStringTag:n,ct=function(){try{var e=mi(Pe,"defineProperty");return e({},"",{}),e}catch{}}(),pt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,mt=Ae&&Ae.now!==ht.Date.now&&Ae.now,vt=t.setTimeout!==ht.setTimeout&&t.setTimeout,gt=Ce.ceil,bt=Ce.floor,wt=Pe.getOwnPropertySymbols,Bt=We?We.isBuffer:n,Kt=t.isFinite,yn=Ne.join,bn=cn(Pe.keys,Pe),wn=Ce.max,xn=Ce.min,_n=Ae.now,kn=t.parseInt,Sn=Ce.random,An=Ne.reverse,En=mi(t,"DataView"),In=mi(t,"Map"),Cn=mi(t,"Promise"),Pn=mi(t,"Set"),qn=mi(t,"WeakMap"),On=mi(Pe,"create"),Tn=qn&&new qn,Nn={},Rn=Bi(En),Dn=Bi(In),jn=Bi(Cn),Ln=Bi(Pn),Mn=Bi(qn),$n=He?He.prototype:n,Bn=$n?$n.valueOf:n,Fn=$n?$n.toString:n;function zn(e){if(ru(e)&&!Ha(e)&&!(e instanceof Hn)){if(e instanceof Wn)return e;if(Me.call(e,"__wrapped__"))return Fi(e)}return new Wn(e)}var Vn=function(){function e(){}return function(t){if(!nu(t))return{};if(Ye)return Ye(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Un(){}function Wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Qn;++t<n;)this.add(e[t])}function Xn(e){var t=this.__data__=new Kn(e);this.size=t.size}function Zn(e,t){var n=Ha(e),r=!n&&Wa(e),o=!n&&!r&&Ya(e),i=!n&&!r&&!o&&du(e),a=n||r||o||i,u=a?Xt(e.length,Oe):[],s=u.length;for(var l in e)(t||Me.call(e,l))&&(!a||!("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||xi(l,s)))&&u.push(l);return u}function Jn(e){var t=e.length;return t?e[Yr(0,t-1)]:n}function er(e,t){return Li(To(e),lr(t,0,e.length))}function tr(e){return Li(To(e))}function nr(e,t,r){(r!==n&&!za(e[t],r)||r===n&&!(t in e))&&ur(e,t,r)}function rr(e,t,r){var o=e[t];(!Me.call(e,t)||!za(o,r)||r===n&&!(t in e))&&ur(e,t,r)}function or(e,t){for(var n=e.length;n--;)if(za(e[n][0],t))return n;return-1}function ir(e,t,n,r){return mr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ar(e,t){return e&&No(t,Nu(t),e)}function ur(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var r=-1,o=t.length,i=Se(o),a=null==e;++r<o;)i[r]=a?n:Cu(e,t[r]);return i}function lr(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function cr(e,t,r,o,i,a){var u,s=1&t,l=2&t,c=4&t;if(r&&(u=i?r(e,o,i,a):r(e)),u!==n)return u;if(!nu(e))return e;var d=Ha(e);if(d){if(u=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Me.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return To(e,u)}else{var f=gi(e),p=f==k||f==S;if(Ya(e))return Eo(e,s);if(f==I||f==y||p&&!i){if(u=l||p?{}:bi(e),!s)return l?function(e,t){return No(e,vi(e),t)}(e,function(e,t){return e&&No(t,Ru(t),e)}(u,e)):function(e,t){return No(e,hi(e),t)}(e,ar(u,e))}else{if(!lt[f])return i?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case R:return Io(e);case w:case x:return new r(+e);case D:return function(e,t){var n=t?Io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case j:case L:case M:case $:case B:case F:case z:case V:case U:return Co(e,n);case A:return new r;case E:case O:return new r(e);case P:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case q:return new r;case T:return function(e){return Bn?Pe(Bn.call(e)):{}}(e)}}(e,f,s)}}a||(a=new Xn);var m=a.get(e);if(m)return m;a.set(e,u),su(e)?e.forEach((function(n){u.add(cr(n,t,r,n,e,a))})):ou(e)&&e.forEach((function(n,o){u.set(o,cr(n,t,r,o,e,a))}));var h=d?n:(c?l?ui:ai:l?Ru:Nu)(e);return Pt(h||e,(function(n,o){h&&(n=e[o=n]),rr(u,o,cr(n,t,r,o,e,a))})),u}function dr(e,t,r){var o=r.length;if(null==e)return!o;for(e=Pe(e);o--;){var i=r[o],a=t[i],u=e[i];if(u===n&&!(i in e)||!a(u))return!1}return!0}function fr(e,t,o){if("function"!=typeof e)throw new Te(r);return Ni((function(){e.apply(n,o)}),t)}function pr(e,t,n,r){var o=-1,i=Nt,a=!0,u=e.length,s=[],l=t.length;if(!u)return s;n&&(t=Dt(t,Jt(n))),r?(i=Rt,a=!1):t.length>=200&&(i=tn,a=!1,t=new Yn(t));e:for(;++o<u;){var c=e[o],d=null==n?c:n(c);if(c=r||0!==c?c:0,a&&d==d){for(var f=l;f--;)if(t[f]===d)continue e;s.push(c)}else i(t,d,r)||s.push(c)}return s}zn.templateSettings={escape:Z,evaluate:J,interpolate:ee,variable:"",imports:{_:zn}},zn.prototype=Un.prototype,zn.prototype.constructor=zn,Wn.prototype=Vn(Un.prototype),Wn.prototype.constructor=Wn,Hn.prototype=Vn(Un.prototype),Hn.prototype.constructor=Hn,Gn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},Gn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Gn.prototype.get=function(e){var t=this.__data__;if(On){var r=t[e];return r===o?n:r}return Me.call(t,e)?t[e]:n},Gn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==n:Me.call(t,e)},Gn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=On&&t===n?o:t,this},Kn.prototype.clear=function(){this.__data__=[],this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=or(t,e);return!(n<0||(n==t.length-1?t.pop():Ze.call(t,n,1),--this.size,0))},Kn.prototype.get=function(e){var t=this.__data__,r=or(t,e);return r<0?n:t[r][1]},Kn.prototype.has=function(e){return or(this.__data__,e)>-1},Kn.prototype.set=function(e,t){var n=this.__data__,r=or(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(In||Kn),string:new Gn}},Qn.prototype.delete=function(e){var t=fi(this,e).delete(e);return this.size-=t?1:0,t},Qn.prototype.get=function(e){return fi(this,e).get(e)},Qn.prototype.has=function(e){return fi(this,e).has(e)},Qn.prototype.set=function(e,t){var n=fi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,o),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Kn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!In||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qn(r)}return n.set(e,t),this.size=n.size,this};var mr=jo(_r),hr=jo(kr,!0);function vr(e,t){var n=!0;return mr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function gr(e,t,r){for(var o=-1,i=e.length;++o<i;){var a=e[o],u=t(a);if(null!=u&&(s===n?u==u&&!cu(u):r(u,s)))var s=u,l=a}return l}function yr(e,t){var n=[];return mr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function br(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=wi),o||(o=[]);++i<a;){var u=e[i];t>0&&n(u)?t>1?br(u,t-1,n,r,o):jt(o,u):r||(o[o.length]=u)}return o}var wr=Lo(),xr=Lo(!0);function _r(e,t){return e&&wr(e,t,Nu)}function kr(e,t){return e&&xr(e,t,Nu)}function Sr(e,t){return Tt(t,(function(t){return Ja(e[t])}))}function Ar(e,t){for(var r=0,o=(t=_o(t,e)).length;null!=e&&r<o;)e=e[$i(t[r++])];return r&&r==o?e:n}function Er(e,t,n){var r=t(e);return Ha(e)?r:jt(r,n(e))}function Ir(e){return null==e?e===n?"[object Undefined]":"[object Null]":ot&&ot in Pe(e)?function(e){var t=Me.call(e,ot),r=e[ot];try{e[ot]=n;var o=!0}catch{}var i=Fe.call(e);return o&&(t?e[ot]=r:delete e[ot]),i}(e):function(e){return Fe.call(e)}(e)}function Cr(e,t){return e>t}function Pr(e,t){return null!=e&&Me.call(e,t)}function qr(e,t){return null!=e&&t in Pe(e)}function Or(e,t,r){for(var o=r?Rt:Nt,i=e[0].length,a=e.length,u=a,s=Se(a),l=1/0,c=[];u--;){var d=e[u];u&&t&&(d=Dt(d,Jt(t))),l=xn(d.length,l),s[u]=!r&&(t||i>=120&&d.length>=120)?new Yn(u&&d):n}d=e[0];var f=-1,p=s[0];e:for(;++f<i&&c.length<l;){var m=d[f],h=t?t(m):m;if(m=r||0!==m?m:0,!(p?tn(p,h):o(c,h,r))){for(u=a;--u;){var v=s[u];if(!(v?tn(v,h):o(e[u],h,r)))continue e}p&&p.push(h),c.push(m)}}return c}function Tr(e,t,r){var o=null==(e=qi(e,t=_o(t,e)))?e:e[$i(Zi(t))];return null==o?n:It(o,e,r)}function Nr(e){return ru(e)&&Ir(e)==y}function Rr(e,t,r,o,i){return e===t||(null==e||null==t||!ru(e)&&!ru(t)?e!=e&&t!=t:function(e,t,r,o,i,a){var u=Ha(e),s=Ha(t),l=u?b:gi(e),c=s?b:gi(t),d=(l=l==y?I:l)==I,f=(c=c==y?I:c)==I,p=l==c;if(p&&Ya(e)){if(!Ya(t))return!1;u=!0,d=!1}if(p&&!d)return a||(a=new Xn),u||du(e)?oi(e,t,r,o,i,a):function(e,t,n,r,o,i,a){switch(n){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!i(new Ge(e),new Ge(t)));case w:case x:case E:return za(+e,+t);case _:return e.name==t.name&&e.message==t.message;case P:case O:return e==t+"";case A:var u=ln;case q:var s=1&r;if(u||(u=fn),e.size!=t.size&&!s)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var c=oi(u(e),u(t),r,o,i,a);return a.delete(e),c;case T:if(Bn)return Bn.call(e)==Bn.call(t)}return!1}(e,t,l,r,o,i,a);if(!(1&r)){var m=d&&Me.call(e,"__wrapped__"),h=f&&Me.call(t,"__wrapped__");if(m||h){var v=m?e.value():e,g=h?t.value():t;return a||(a=new Xn),i(v,g,r,o,a)}}return!!p&&(a||(a=new Xn),function(e,t,r,o,i,a){var u=1&r,s=ai(e),l=s.length,c=ai(t),d=c.length;if(l!=d&&!u)return!1;for(var f=l;f--;){var p=s[f];if(!(u?p in t:Me.call(t,p)))return!1}var m=a.get(e),h=a.get(t);if(m&&h)return m==t&&h==e;var v=!0;a.set(e,t),a.set(t,e);for(var g=u;++f<l;){var y=e[p=s[f]],b=t[p];if(o)var w=u?o(b,y,p,t,e,a):o(y,b,p,e,t,a);if(!(w===n?y===b||i(y,b,r,o,a):w)){v=!1;break}g||(g="constructor"==p)}if(v&&!g){var x=e.constructor,_=t.constructor;x!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _)&&(v=!1)}return a.delete(e),a.delete(t),v}(e,t,r,o,i,a))}(e,t,r,o,Rr,i))}function Dr(e,t,r,o){var i=r.length,a=i,u=!o;if(null==e)return!a;for(e=Pe(e);i--;){var s=r[i];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var l=(s=r[i])[0],c=e[l],d=s[1];if(u&&s[2]){if(c===n&&!(l in e))return!1}else{var f=new Xn;if(o)var p=o(c,d,l,e,t,f);if(!(p===n?Rr(d,c,3,o,f):p))return!1}}return!0}function jr(e){return!(!nu(e)||function(e){return!!Be&&Be in e}(e))&&(Ja(e)?Ue:ye).test(Bi(e))}function Lr(e){return"function"==typeof e?e:null==e?is:"object"==typeof e?Ha(e)?Vr(e[0],e[1]):zr(e):ms(e)}function Mr(e){if(!Ei(e))return bn(e);var t=[];for(var n in Pe(e))Me.call(e,n)&&"constructor"!=n&&t.push(n);return t}function $r(e){if(!nu(e))return function(e){var t=[];if(null!=e)for(var n in Pe(e))t.push(n);return t}(e);var t=Ei(e),n=[];for(var r in e)"constructor"==r&&(t||!Me.call(e,r))||n.push(r);return n}function Br(e,t){return e<t}function Fr(e,t){var n=-1,r=Ka(e)?Se(e.length):[];return mr(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function zr(e){var t=pi(e);return 1==t.length&&t[0][2]?Ci(t[0][0],t[0][1]):function(n){return n===e||Dr(n,e,t)}}function Vr(e,t){return ki(e)&&Ii(t)?Ci($i(e),t):function(r){var o=Cu(r,e);return o===n&&o===t?Pu(r,e):Rr(t,o,3)}}function Ur(e,t,r,o,i){e!==t&&wr(t,(function(a,u){if(i||(i=new Xn),nu(a))!function(e,t,r,o,i,a,u){var s=Oi(e,r),l=Oi(t,r),c=u.get(l);if(c)nr(e,r,c);else{var d=a?a(s,l,r+"",e,t,u):n,f=d===n;if(f){var p=Ha(l),m=!p&&Ya(l),h=!p&&!m&&du(l);d=l,p||m||h?Ha(s)?d=s:Qa(s)?d=To(s):m?(f=!1,d=Eo(l,!0)):h?(f=!1,d=Co(l,!0)):d=[]:au(l)||Wa(l)?(d=s,Wa(s)?d=bu(s):(!nu(s)||Ja(s))&&(d=bi(l))):f=!1}f&&(u.set(l,d),i(d,l,o,a,u),u.delete(l)),nr(e,r,d)}}(e,t,u,r,Ur,o,i);else{var s=o?o(Oi(e,u),a,u+"",e,t,i):n;s===n&&(s=a),nr(e,u,s)}}),Ru)}function Wr(e,t){var r=e.length;if(r)return xi(t+=t<0?r:0,r)?e[t]:n}function Hr(e,t,n){t=t.length?Dt(t,(function(e){return Ha(e)?function(t){return Ar(t,1===e.length?e[0]:e)}:e})):[is];var r=-1;return t=Dt(t,Jt(di())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Fr(e,(function(e,n,o){return{criteria:Dt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,u=n.length;++r<a;){var s=Po(o[r],i[r]);if(s)return r>=u?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Gr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],u=Ar(e,a);n(u,a)&&to(i,_o(a,e),u)}return i}function Kr(e,t,n,r){var o=r?Ut:Vt,i=-1,a=t.length,u=e;for(e===t&&(t=To(t)),n&&(u=Dt(e,Jt(n)));++i<a;)for(var s=0,l=t[i],c=n?n(l):l;(s=o(u,c,s,r))>-1;)u!==e&&Ze.call(u,s,1),Ze.call(e,s,1);return e}function Qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;xi(o)?Ze.call(e,o,1):mo(e,o)}}return e}function Yr(e,t){return e+bt(Sn()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=bt(t/2))&&(e+=e)}while(t);return n}function Zr(e,t){return Ri(Pi(e,t,is),e+"")}function Jr(e){return Jn(zu(e))}function eo(e,t){var n=zu(e);return Li(n,lr(t,0,n.length))}function to(e,t,r,o){if(!nu(e))return e;for(var i=-1,a=(t=_o(t,e)).length,u=a-1,s=e;null!=s&&++i<a;){var l=$i(t[i]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=u){var d=s[l];(c=o?o(d,l,s):n)===n&&(c=nu(d)?d:xi(t[i+1])?[]:{})}rr(s,l,c),s=s[l]}return e}var no=Tn?function(e,t){return Tn.set(e,t),e}:is,ro=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:ns(t),writable:!0})}:is;function oo(e){return Li(zu(e))}function io(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Se(o);++r<o;)i[r]=e[r+t];return i}function ao(e,t){var n;return mr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function uo(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=v){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!cu(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return so(e,t,is,n)}function so(e,t,r,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var u=(t=r(t))!=t,s=null===t,l=cu(t),c=t===n;i<a;){var d=bt((i+a)/2),f=r(e[d]),p=f!==n,m=null===f,v=f==f,g=cu(f);if(u)var y=o||v;else y=c?v&&(o||p):s?v&&p&&(o||!m):l?v&&p&&!m&&(o||!g):!m&&!g&&(o?f<=t:f<t);y?i=d+1:a=d}return xn(a,h)}function lo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],u=t?t(a):a;if(!n||!za(u,s)){var s=u;i[o++]=0===a?0:a}}return i}function co(e){return"number"==typeof e?e:cu(e)?p:+e}function fo(e){if("string"==typeof e)return e;if(Ha(e))return Dt(e,fo)+"";if(cu(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-d?"-0":t}function po(e,t,n){var r=-1,o=Nt,i=e.length,a=!0,u=[],s=u;if(n)a=!1,o=Rt;else if(i>=200){var l=t?null:Zo(e);if(l)return fn(l);a=!1,o=tn,s=new Yn}else s=t?[]:u;e:for(;++r<i;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d==d){for(var f=s.length;f--;)if(s[f]===d)continue e;t&&s.push(d),u.push(c)}else o(s,d,n)||(s!==u&&s.push(d),u.push(c))}return u}function mo(e,t){return null==(e=qi(e,t=_o(t,e)))||delete e[$i(Zi(t))]}function ho(e,t,n,r){return to(e,t,n(Ar(e,t)),r)}function vo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?io(e,r?0:i,r?i+1:o):io(e,r?i+1:0,r?o:i)}function go(e,t){var n=e;return n instanceof Hn&&(n=n.value()),Lt(t,(function(e,t){return t.func.apply(t.thisArg,jt([e],t.args))}),n)}function yo(e,t,n){var r=e.length;if(r<2)return r?po(e[0]):[];for(var o=-1,i=Se(r);++o<r;)for(var a=e[o],u=-1;++u<r;)u!=o&&(i[o]=pr(i[o]||a,e[u],t,n));return po(br(i,1),t,n)}function bo(e,t,r){for(var o=-1,i=e.length,a=t.length,u={};++o<i;){var s=o<a?t[o]:n;r(u,e[o],s)}return u}function wo(e){return Qa(e)?e:[]}function xo(e){return"function"==typeof e?e:is}function _o(e,t){return Ha(e)?e:ki(e,t)?[e]:Mi(wu(e))}var ko=Zr;function So(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:io(e,t,r)}var Ao=pt||function(e){return ht.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=Ke?Ke(n):new e.constructor(n);return e.copy(r),r}function Io(e){var t=new e.constructor(e.byteLength);return new Ge(t).set(new Ge(e)),t}function Co(e,t){var n=t?Io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Po(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,a=cu(e),u=t!==n,s=null===t,l=t==t,c=cu(t);if(!s&&!c&&!a&&e>t||a&&u&&l&&!s&&!c||o&&u&&l||!r&&l||!i)return 1;if(!o&&!a&&!c&&e<t||c&&r&&i&&!o&&!a||s&&r&&i||!u&&i||!l)return-1}return 0}function qo(e,t,n,r){for(var o=-1,i=e.length,a=n.length,u=-1,s=t.length,l=wn(i-a,0),c=Se(s+l),d=!r;++u<s;)c[u]=t[u];for(;++o<a;)(d||o<i)&&(c[n[o]]=e[o]);for(;l--;)c[u++]=e[o++];return c}function Oo(e,t,n,r){for(var o=-1,i=e.length,a=-1,u=n.length,s=-1,l=t.length,c=wn(i-u,0),d=Se(c+l),f=!r;++o<c;)d[o]=e[o];for(var p=o;++s<l;)d[p+s]=t[s];for(;++a<u;)(f||o<i)&&(d[p+n[a]]=e[o++]);return d}function To(e,t){var n=-1,r=e.length;for(t||(t=Se(r));++n<r;)t[n]=e[n];return t}function No(e,t,r,o){var i=!r;r||(r={});for(var a=-1,u=t.length;++a<u;){var s=t[a],l=o?o(r[s],e[s],s,r,e):n;l===n&&(l=e[s]),i?ur(r,s,l):rr(r,s,l)}return r}function Ro(e,t){return function(n,r){var o=Ha(n)?Ct:ir,i=t?t():{};return o(n,e,di(r,2),i)}}function Do(e){return Zr((function(t,r){var o=-1,i=r.length,a=i>1?r[i-1]:n,u=i>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(i--,a):n,u&&_i(r[0],r[1],u)&&(a=i<3?n:a,i=1),t=Pe(t);++o<i;){var s=r[o];s&&e(t,s,o,a)}return t}))}function jo(e,t){return function(n,r){if(null==n)return n;if(!Ka(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Pe(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Lo(e){return function(t,n,r){for(var o=-1,i=Pe(t),a=r(t),u=a.length;u--;){var s=a[e?u:++o];if(!1===n(i[s],s,i))break}return t}}function Mo(e){return function(t){var r=sn(t=wu(t))?mn(t):n,o=r?r[0]:t.charAt(0),i=r?So(r,1).join(""):t.slice(1);return o[e]()+i}}function $o(e){return function(t){return Lt(Ju(Wu(t).replace(et,"")),e,"")}}function Bo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Vn(e.prototype),r=e.apply(n,t);return nu(r)?r:n}}function Fo(e){return function(t,r,o){var i=Pe(t);if(!Ka(t)){var a=di(r,3);t=Nu(t),r=function(e){return a(i[e],e,i)}}var u=e(t,r,o);return u>-1?i[a?t[u]:u]:n}}function zo(e){return ii((function(t){var o=t.length,i=o,a=Wn.prototype.thru;for(e&&t.reverse();i--;){var u=t[i];if("function"!=typeof u)throw new Te(r);if(a&&!s&&"wrapper"==li(u))var s=new Wn([],!0)}for(i=s?i:o;++i<o;){var l=li(u=t[i]),c="wrapper"==l?si(u):n;s=c&&Si(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[li(c[0])].apply(s,c[3]):1==u.length&&Si(u)?s[l]():s.thru(u)}return function(){var e=arguments,n=e[0];if(s&&1==e.length&&Ha(n))return s.plant(n).value();for(var r=0,i=o?t[r].apply(this,e):n;++r<o;)i=t[r].call(this,i);return i}}))}function Vo(e,t,r,o,i,a,u,s,c,d){var f=t&l,p=1&t,m=2&t,h=24&t,v=512&t,g=m?n:Bo(e);return function l(){for(var y=arguments.length,b=Se(y),w=y;w--;)b[w]=arguments[w];if(h)var x=ci(l),_=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,x);if(o&&(b=qo(b,o,i,h)),a&&(b=Oo(b,a,u,h)),y-=_,h&&y<d){var k=dn(b,x);return Yo(e,t,Vo,l.placeholder,r,b,k,s,c,d-y)}var S=p?r:this,A=m?S[e]:e;return y=b.length,s?b=function(e,t){for(var r=e.length,o=xn(t.length,r),i=To(e);o--;){var a=t[o];e[o]=xi(a,r)?i[a]:n}return e}(b,s):v&&y>1&&b.reverse(),f&&c<y&&(b.length=c),this&&this!==ht&&this instanceof l&&(A=g||Bo(A)),A.apply(S,b)}}function Uo(e,t){return function(n,r){return function(e,t,n,r){return _r(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Wo(e,t){return function(r,o){var i;if(r===n&&o===n)return t;if(r!==n&&(i=r),o!==n){if(i===n)return o;"string"==typeof r||"string"==typeof o?(r=fo(r),o=fo(o)):(r=co(r),o=co(o)),i=e(r,o)}return i}}function Ho(e){return ii((function(t){return t=Dt(t,Jt(di())),Zr((function(n){var r=this;return e(t,(function(e){return It(e,r,n)}))}))}))}function Go(e,t){var r=(t=t===n?" ":fo(t)).length;if(r<2)return r?Xr(t,e):t;var o=Xr(t,gt(e/pn(t)));return sn(t)?So(mn(o),0,e).join(""):o.slice(0,e)}function Ko(e){return function(t,r,o){return o&&"number"!=typeof o&&_i(t,r,o)&&(r=o=n),t=hu(t),r===n?(r=t,t=0):r=hu(r),function(e,t,n,r){for(var o=-1,i=wn(gt((t-e)/(n||1)),0),a=Se(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,r,o=o===n?t<r?1:-1:hu(o),e)}}function Qo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=yu(t),n=yu(n)),e(t,n)}}function Yo(e,t,r,o,i,a,l,c,d,f){var p=8&t;t|=p?u:s,4&(t&=~(p?s:u))||(t&=-4);var m=[e,t,i,p?a:n,p?l:n,p?n:a,p?n:l,c,d,f],h=r.apply(n,m);return Si(e)&&Ti(h,m),h.placeholder=o,Di(h,e,t)}function Xo(e){var t=Ce[e];return function(e,n){if(e=yu(e),(n=null==n?0:xn(vu(n),292))&&Kt(e)){var r=(wu(e)+"e").split("e");return+((r=(wu(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Zo=Pn&&1/fn(new Pn([,-0]))[1]==d?function(e){return new Pn(e)}:cs;function Jo(e){return function(t){var n=gi(t);return n==A?ln(t):n==q?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return Dt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function ei(e,t,o,d,f,p,m,h){var v=2&t;if(!v&&"function"!=typeof e)throw new Te(r);var g=d?d.length:0;if(g||(t&=-97,d=f=n),m=m===n?m:wn(vu(m),0),h=h===n?h:vu(h),g-=f?f.length:0,t&s){var y=d,b=f;d=f=n}var w=v?n:si(e),x=[e,t,o,d,f,y,b,p,m,h];if(w&&function(e,t){var n=e[1],r=t[1],o=n|r,a=o<131,u=r==l&&8==n||r==l&&n==c&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!u)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var s=t[3];if(s){var d=e[3];e[3]=d?qo(d,s,t[4]):s,e[4]=d?dn(e[3],i):t[4]}(s=t[5])&&(d=e[5],e[5]=d?Oo(d,s,t[6]):s,e[6]=d?dn(e[5],i):t[6]),(s=t[7])&&(e[7]=s),r&l&&(e[8]=null==e[8]?t[8]:xn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(x,w),e=x[0],t=x[1],o=x[2],d=x[3],f=x[4],!(h=x[9]=x[9]===n?v?0:e.length:wn(x[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||t==a?function(e,t,r){var o=Bo(e);return function i(){for(var a=arguments.length,u=Se(a),s=a,l=ci(i);s--;)u[s]=arguments[s];var c=a<3&&u[0]!==l&&u[a-1]!==l?[]:dn(u,l);return(a-=c.length)<r?Yo(e,t,Vo,i.placeholder,n,u,c,n,n,r-a):It(this&&this!==ht&&this instanceof i?o:e,this,u)}}(e,t,h):t!=u&&33!=t||f.length?Vo.apply(n,x):function(e,t,n,r){var o=1&t,i=Bo(e);return function t(){for(var a=-1,u=arguments.length,s=-1,l=r.length,c=Se(l+u),d=this&&this!==ht&&this instanceof t?i:e;++s<l;)c[s]=r[s];for(;u--;)c[s++]=arguments[++a];return It(d,o?n:this,c)}}(e,t,o,d);else var _=function(e,t,n){var r=1&t,o=Bo(e);return function t(){return(this&&this!==ht&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,o);return Di((w?no:Ti)(_,x),e,t)}function ti(e,t,r,o){return e===n||za(e,De[r])&&!Me.call(o,r)?t:e}function ni(e,t,r,o,i,a){return nu(e)&&nu(t)&&(a.set(t,e),Ur(e,t,n,ni,a),a.delete(t)),e}function ri(e){return au(e)?n:e}function oi(e,t,r,o,i,a){var u=1&r,s=e.length,l=t.length;if(s!=l&&!(u&&l>s))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var f=-1,p=!0,m=2&r?new Yn:n;for(a.set(e,t),a.set(t,e);++f<s;){var h=e[f],v=t[f];if(o)var g=u?o(v,h,f,t,e,a):o(h,v,f,e,t,a);if(g!==n){if(g)continue;p=!1;break}if(m){if(!$t(t,(function(e,t){if(!tn(m,t)&&(h===e||i(h,e,r,o,a)))return m.push(t)}))){p=!1;break}}else if(h!==v&&!i(h,v,r,o,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function ii(e){return Ri(Pi(e,n,Gi),e+"")}function ai(e){return Er(e,Nu,hi)}function ui(e){return Er(e,Ru,vi)}var si=Tn?function(e){return Tn.get(e)}:cs;function li(e){for(var t=e.name+"",n=Nn[t],r=Me.call(Nn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ci(e){return(Me.call(zn,"placeholder")?zn:e).placeholder}function di(){var e=zn.iteratee||as;return e=e===as?Lr:e,arguments.length?e(arguments[0],arguments[1]):e}function fi(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function pi(e){for(var t=Nu(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ii(o)]}return t}function mi(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return jr(r)?r:n}var hi=wt?function(e){return null==e?[]:(e=Pe(e),Tt(wt(e),(function(t){return Xe.call(e,t)})))}:gs,vi=wt?function(e){for(var t=[];e;)jt(t,hi(e)),e=Qe(e);return t}:gs,gi=Ir;function yi(e,t,n){for(var r=-1,o=(t=_o(t,e)).length,i=!1;++r<o;){var a=$i(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&tu(o)&&xi(a,o)&&(Ha(e)||Wa(e))}function bi(e){return"function"!=typeof e.constructor||Ei(e)?{}:Vn(Qe(e))}function wi(e){return Ha(e)||Wa(e)||!!(Je&&e&&e[Je])}function xi(e,t){var n=typeof e;return!!(t=t??f)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function _i(e,t,n){if(!nu(n))return!1;var r=typeof t;return!!("number"==r?Ka(n)&&xi(t,n.length):"string"==r&&t in n)&&za(n[t],e)}function ki(e,t){if(Ha(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cu(e))||ne.test(e)||!te.test(e)||null!=t&&e in Pe(t)}function Si(e){var t=li(e),n=zn[t];if("function"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var r=si(n);return!!r&&e===r[0]}(En&&gi(new En(new ArrayBuffer(1)))!=D||In&&gi(new In)!=A||Cn&&gi(Cn.resolve())!=C||Pn&&gi(new Pn)!=q||qn&&gi(new qn)!=N)&&(gi=function(e){var t=Ir(e),r=t==I?e.constructor:n,o=r?Bi(r):"";if(o)switch(o){case Rn:return D;case Dn:return A;case jn:return C;case Ln:return q;case Mn:return N}return t});var Ai=je?Ja:ys;function Ei(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||De)}function Ii(e){return e==e&&!nu(e)}function Ci(e,t){return function(r){return null!=r&&r[e]===t&&(t!==n||e in Pe(r))}}function Pi(e,t,r){return t=wn(t===n?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=wn(n.length-t,0),a=Se(i);++o<i;)a[o]=n[t+o];o=-1;for(var u=Se(t+1);++o<t;)u[o]=n[o];return u[t]=r(a),It(e,this,u)}}function qi(e,t){return t.length<2?e:Ar(e,io(t,0,-1))}function Oi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ti=ji(no),Ni=vt||function(e,t){return ht.setTimeout(e,t)},Ri=ji(ro);function Di(e,t,n){var r=t+"";return Ri(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Pt(g,(function(n){var r="_."+n[0];t&n[1]&&!Nt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(ce):[]}(r),n)))}function ji(e){var t=0,r=0;return function(){var o=_n(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Li(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r<t;){var a=Yr(r,i),u=e[a];e[a]=e[r],e[r]=u}return e.length=t,e}var Mi=function(e){var t=ja(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,o){t.push(r?o.replace(pe,"$1"):n||e)})),t}));function $i(e){if("string"==typeof e||cu(e))return e;var t=e+"";return"0"==t&&1/e==-d?"-0":t}function Bi(e){if(null!=e){try{return Le.call(e)}catch{}try{return e+""}catch{}}return""}function Fi(e){if(e instanceof Hn)return e.clone();var t=new Wn(e.__wrapped__,e.__chain__);return t.__actions__=To(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zi=Zr((function(e,t){return Qa(e)?pr(e,br(t,1,Qa,!0)):[]})),Vi=Zr((function(e,t){var r=Zi(t);return Qa(r)&&(r=n),Qa(e)?pr(e,br(t,1,Qa,!0),di(r,2)):[]})),Ui=Zr((function(e,t){var r=Zi(t);return Qa(r)&&(r=n),Qa(e)?pr(e,br(t,1,Qa,!0),n,r):[]}));function Wi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vu(n);return o<0&&(o=wn(r+o,0)),zt(e,di(t,3),o)}function Hi(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==n&&(i=vu(r),i=r<0?wn(o+i,0):xn(i,o-1)),zt(e,di(t,3),i,!0)}function Gi(e){return null!=e&&e.length?br(e,1):[]}function Ki(e){return e&&e.length?e[0]:n}var Qi=Zr((function(e){var t=Dt(e,wo);return t.length&&t[0]===e[0]?Or(t):[]})),Yi=Zr((function(e){var t=Zi(e),r=Dt(e,wo);return t===Zi(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Or(r,di(t,2)):[]})),Xi=Zr((function(e){var t=Zi(e),r=Dt(e,wo);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Or(r,n,t):[]}));function Zi(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Ji=Zr(ea);function ea(e,t){return e&&e.length&&t&&t.length?Kr(e,t):e}var ta=ii((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Qr(e,Dt(t,(function(e){return xi(e,n)?+e:e})).sort(Po)),r}));function na(e){return null==e?e:An.call(e)}var ra=Zr((function(e){return po(br(e,1,Qa,!0))})),oa=Zr((function(e){var t=Zi(e);return Qa(t)&&(t=n),po(br(e,1,Qa,!0),di(t,2))})),ia=Zr((function(e){var t=Zi(e);return t="function"==typeof t?t:n,po(br(e,1,Qa,!0),n,t)}));function aa(e){if(!e||!e.length)return[];var t=0;return e=Tt(e,(function(e){if(Qa(e))return t=wn(e.length,t),!0})),Xt(t,(function(t){return Dt(e,Gt(t))}))}function ua(e,t){if(!e||!e.length)return[];var r=aa(e);return null==t?r:Dt(r,(function(e){return It(t,n,e)}))}var sa=Zr((function(e,t){return Qa(e)?pr(e,t):[]})),la=Zr((function(e){return yo(Tt(e,Qa))})),ca=Zr((function(e){var t=Zi(e);return Qa(t)&&(t=n),yo(Tt(e,Qa),di(t,2))})),da=Zr((function(e){var t=Zi(e);return t="function"==typeof t?t:n,yo(Tt(e,Qa),n,t)})),fa=Zr(aa),pa=Zr((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ua(e,r)}));function ma(e){var t=zn(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var va=ii((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Hn&&xi(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:n}),new Wn(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)})),ga=Ro((function(e,t,n){Me.call(e,n)?++e[n]:ur(e,n,1)})),ya=Fo(Wi),ba=Fo(Hi);function wa(e,t){return(Ha(e)?Pt:mr)(e,di(t,3))}function xa(e,t){return(Ha(e)?qt:hr)(e,di(t,3))}var _a=Ro((function(e,t,n){Me.call(e,n)?e[n].push(t):ur(e,n,[t])})),ka=Zr((function(e,t,n){var r=-1,o="function"==typeof t,i=Ka(e)?Se(e.length):[];return mr(e,(function(e){i[++r]=o?It(t,e,n):Tr(e,t,n)})),i})),Sa=Ro((function(e,t,n){ur(e,n,t)}));function Aa(e,t){return(Ha(e)?Dt:Fr)(e,di(t,3))}var Ea=Ro((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Ia=Zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&_i(e,t[0],t[1])?t=[]:n>2&&_i(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,br(t,1),[])})),Ca=mt||function(){return ht.Date.now()};function Pa(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,ei(e,l,n,n,n,n,t)}function qa(e,t){var o;if("function"!=typeof t)throw new Te(r);return e=vu(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var Oa=Zr((function(e,t,n){var r=1;if(n.length){var o=dn(n,ci(Oa));r|=u}return ei(e,r,t,n,o)})),Ta=Zr((function(e,t,n){var r=3;if(n.length){var o=dn(n,ci(Ta));r|=u}return ei(t,r,e,n,o)}));function Na(e,t,o){var i,a,u,s,l,c,d=0,f=!1,p=!1,m=!0;if("function"!=typeof e)throw new Te(r);function h(t){var r=i,o=a;return i=a=n,d=t,s=e.apply(o,r)}function v(e){var r=e-c;return c===n||r>=t||r<0||p&&e-d>=u}function g(){var e=Ca();if(v(e))return y(e);l=Ni(g,function(e){var n=t-(e-c);return p?xn(n,u-(e-d)):n}(e))}function y(e){return l=n,m&&i?h(e):(i=a=n,s)}function b(){var e=Ca(),r=v(e);if(i=arguments,a=this,c=e,r){if(l===n)return function(e){return d=e,l=Ni(g,t),f?h(e):s}(c);if(p)return Ao(l),l=Ni(g,t),h(c)}return l===n&&(l=Ni(g,t)),s}return t=yu(t)||0,nu(o)&&(f=!!o.leading,u=(p="maxWait"in o)?wn(yu(o.maxWait)||0,t):u,m="trailing"in o?!!o.trailing:m),b.cancel=function(){l!==n&&Ao(l),d=0,i=c=a=l=n},b.flush=function(){return l===n?s:y(Ca())},b}var Ra=Zr((function(e,t){return fr(e,1,t)})),Da=Zr((function(e,t,n){return fr(e,yu(t)||0,n)}));function ja(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ja.Cache||Qn),n}function La(e){if("function"!=typeof e)throw new Te(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ja.Cache=Qn;var Ma=ko((function(e,t){var n=(t=1==t.length&&Ha(t[0])?Dt(t[0],Jt(di())):Dt(br(t,1),Jt(di()))).length;return Zr((function(r){for(var o=-1,i=xn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return It(e,this,r)}))})),$a=Zr((function(e,t){var r=dn(t,ci($a));return ei(e,u,n,t,r)})),Ba=Zr((function(e,t){var r=dn(t,ci(Ba));return ei(e,s,n,t,r)})),Fa=ii((function(e,t){return ei(e,c,n,n,n,t)}));function za(e,t){return e===t||e!=e&&t!=t}var Va=Qo(Cr),Ua=Qo((function(e,t){return e>=t})),Wa=Nr(function(){return arguments}())?Nr:function(e){return ru(e)&&Me.call(e,"callee")&&!Xe.call(e,"callee")},Ha=Se.isArray,Ga=xt?Jt(xt):function(e){return ru(e)&&Ir(e)==R};function Ka(e){return null!=e&&tu(e.length)&&!Ja(e)}function Qa(e){return ru(e)&&Ka(e)}var Ya=Bt||ys,Xa=_t?Jt(_t):function(e){return ru(e)&&Ir(e)==x};function Za(e){if(!ru(e))return!1;var t=Ir(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!au(e)}function Ja(e){if(!nu(e))return!1;var t=Ir(e);return t==k||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eu(e){return"number"==typeof e&&e==vu(e)}function tu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function nu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ru(e){return null!=e&&"object"==typeof e}var ou=kt?Jt(kt):function(e){return ru(e)&&gi(e)==A};function iu(e){return"number"==typeof e||ru(e)&&Ir(e)==E}function au(e){if(!ru(e)||Ir(e)!=I)return!1;var t=Qe(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Le.call(n)==ze}var uu=St?Jt(St):function(e){return ru(e)&&Ir(e)==P},su=At?Jt(At):function(e){return ru(e)&&gi(e)==q};function lu(e){return"string"==typeof e||!Ha(e)&&ru(e)&&Ir(e)==O}function cu(e){return"symbol"==typeof e||ru(e)&&Ir(e)==T}var du=Et?Jt(Et):function(e){return ru(e)&&tu(e.length)&&!!st[Ir(e)]},fu=Qo(Br),pu=Qo((function(e,t){return e<=t}));function mu(e){if(!e)return[];if(Ka(e))return lu(e)?mn(e):To(e);if(nt&&e[nt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[nt]());var t=gi(e);return(t==A?ln:t==q?fn:zu)(e)}function hu(e){return e?(e=yu(e))===d||e===-d?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vu(e){var t=hu(e),n=t%1;return t==t?n?t-n:t:0}function gu(e){return e?lr(vu(e),0,m):0}function yu(e){if("number"==typeof e)return e;if(cu(e))return p;if(nu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=nu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=ge.test(e);return n||be.test(e)?ft(e.slice(2),n?2:8):ve.test(e)?p:+e}function bu(e){return No(e,Ru(e))}function wu(e){return null==e?"":fo(e)}var xu=Do((function(e,t){if(Ei(t)||Ka(t))No(t,Nu(t),e);else for(var n in t)Me.call(t,n)&&rr(e,n,t[n])})),_u=Do((function(e,t){No(t,Ru(t),e)})),ku=Do((function(e,t,n,r){No(t,Ru(t),e,r)})),Su=Do((function(e,t,n,r){No(t,Nu(t),e,r)})),Au=ii(sr),Eu=Zr((function(e,t){e=Pe(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&_i(t[0],t[1],i)&&(o=1);++r<o;)for(var a=t[r],u=Ru(a),s=-1,l=u.length;++s<l;){var c=u[s],d=e[c];(d===n||za(d,De[c])&&!Me.call(e,c))&&(e[c]=a[c])}return e})),Iu=Zr((function(e){return e.push(n,ni),It(ju,n,e)}));function Cu(e,t,r){var o=null==e?n:Ar(e,t);return o===n?r:o}function Pu(e,t){return null!=e&&yi(e,t,qr)}var qu=Uo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n}),ns(is)),Ou=Uo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),Me.call(e,t)?e[t].push(n):e[t]=[n]}),di),Tu=Zr(Tr);function Nu(e){return Ka(e)?Zn(e):Mr(e)}function Ru(e){return Ka(e)?Zn(e,!0):$r(e)}var Du=Do((function(e,t,n){Ur(e,t,n)})),ju=Do((function(e,t,n,r){Ur(e,t,n,r)})),Lu=ii((function(e,t){var n={};if(null==e)return n;var r=!1;t=Dt(t,(function(t){return t=_o(t,e),r||(r=t.length>1),t})),No(e,ui(e),n),r&&(n=cr(n,7,ri));for(var o=t.length;o--;)mo(n,t[o]);return n})),Mu=ii((function(e,t){return null==e?{}:function(e,t){return Gr(e,t,(function(t,n){return Pu(e,n)}))}(e,t)}));function $u(e,t){if(null==e)return{};var n=Dt(ui(e),(function(e){return[e]}));return t=di(t),Gr(e,n,(function(e,n){return t(e,n[0])}))}var Bu=Jo(Nu),Fu=Jo(Ru);function zu(e){return null==e?[]:en(e,Nu(e))}var Vu=$o((function(e,t,n){return t=t.toLowerCase(),e+(n?Uu(t):t)}));function Uu(e){return Zu(wu(e).toLowerCase())}function Wu(e){return(e=wu(e))&&e.replace(xe,on).replace(tt,"")}var Hu=$o((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Gu=$o((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ku=Mo("toLowerCase"),Qu=$o((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Yu=$o((function(e,t,n){return e+(n?" ":"")+Zu(t)})),Xu=$o((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Zu=Mo("toUpperCase");function Ju(e,t,r){return e=wu(e),(t=r?n:t)===n?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var es=Zr((function(e,t){try{return It(e,n,t)}catch(e){return Za(e)?e:new Ee(e)}})),ts=ii((function(e,t){return Pt(t,(function(t){t=$i(t),ur(e,t,Oa(e[t],e))})),e}));function ns(e){return function(){return e}}var rs=zo(),os=zo(!0);function is(e){return e}function as(e){return Lr("function"==typeof e?e:cr(e,1))}var us=Zr((function(e,t){return function(n){return Tr(n,e,t)}})),ss=Zr((function(e,t){return function(n){return Tr(e,n,t)}}));function ls(e,t,n){var r=Nu(t),o=Sr(t,r);null==n&&(!nu(t)||!o.length&&r.length)&&(n=t,t=e,e=this,o=Sr(t,Nu(t)));var i=!(nu(n)&&"chain"in n&&!n.chain),a=Ja(e);return Pt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=To(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,jt([this.value()],arguments))})})),e}function cs(){}var ds=Ho(Dt),fs=Ho(Ot),ps=Ho($t);function ms(e){return ki(e)?Gt($i(e)):function(e){return function(t){return Ar(t,e)}}(e)}var hs=Ko(),vs=Ko(!0);function gs(){return[]}function ys(){return!1}var bs=Wo((function(e,t){return e+t}),0),ws=Xo("ceil"),xs=Wo((function(e,t){return e/t}),1),_s=Xo("floor"),ks=Wo((function(e,t){return e*t}),1),Ss=Xo("round"),As=Wo((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new Te(r);return e=vu(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Pa,zn.assign=xu,zn.assignIn=_u,zn.assignInWith=ku,zn.assignWith=Su,zn.at=Au,zn.before=qa,zn.bind=Oa,zn.bindAll=ts,zn.bindKey=Ta,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ha(e)?e:[e]},zn.chain=ma,zn.chunk=function(e,t,r){t=(r?_i(e,t,r):t===n)?1:wn(vu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,u=Se(gt(o/t));i<o;)u[a++]=io(e,i,i+=t);return u},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Se(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return jt(Ha(n)?To(n):[n],br(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=di();return e=t?Dt(e,(function(e){if("function"!=typeof e[1])throw new Te(r);return[n(e[0]),e[1]]})):[],Zr((function(n){for(var r=-1;++r<t;){var o=e[r];if(It(o[0],this,n))return It(o[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=Nu(e);return function(n){return dr(n,e,t)}}(cr(e,1))},zn.constant=ns,zn.countBy=ga,zn.create=function(e,t){var n=Vn(e);return null==t?n:ar(n,t)},zn.curry=function e(t,r,o){var i=ei(t,8,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},zn.curryRight=function e(t,r,o){var i=ei(t,a,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},zn.debounce=Na,zn.defaults=Eu,zn.defaultsDeep=Iu,zn.defer=Ra,zn.delay=Da,zn.difference=zi,zn.differenceBy=Vi,zn.differenceWith=Ui,zn.drop=function(e,t,r){var o=null==e?0:e.length;return o?io(e,(t=r||t===n?1:vu(t))<0?0:t,o):[]},zn.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?io(e,0,(t=o-(t=r||t===n?1:vu(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?vo(e,di(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?vo(e,di(t,3),!0):[]},zn.fill=function(e,t,r,o){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&_i(e,t,r)&&(r=0,o=i),function(e,t,r,o){var i=e.length;for((r=vu(r))<0&&(r=-r>i?0:i+r),(o=o===n||o>i?i:vu(o))<0&&(o+=i),o=r>o?0:gu(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},zn.filter=function(e,t){return(Ha(e)?Tt:yr)(e,di(t,3))},zn.flatMap=function(e,t){return br(Aa(e,t),1)},zn.flatMapDeep=function(e,t){return br(Aa(e,t),d)},zn.flatMapDepth=function(e,t,r){return r=r===n?1:vu(r),br(Aa(e,t),r)},zn.flatten=Gi,zn.flattenDeep=function(e){return null!=e&&e.length?br(e,d):[]},zn.flattenDepth=function(e,t){return null!=e&&e.length?br(e,t=t===n?1:vu(t)):[]},zn.flip=function(e){return ei(e,512)},zn.flow=rs,zn.flowRight=os,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},zn.functions=function(e){return null==e?[]:Sr(e,Nu(e))},zn.functionsIn=function(e){return null==e?[]:Sr(e,Ru(e))},zn.groupBy=_a,zn.initial=function(e){return null!=e&&e.length?io(e,0,-1):[]},zn.intersection=Qi,zn.intersectionBy=Yi,zn.intersectionWith=Xi,zn.invert=qu,zn.invertBy=Ou,zn.invokeMap=ka,zn.iteratee=as,zn.keyBy=Sa,zn.keys=Nu,zn.keysIn=Ru,zn.map=Aa,zn.mapKeys=function(e,t){var n={};return t=di(t,3),_r(e,(function(e,r,o){ur(n,t(e,r,o),e)})),n},zn.mapValues=function(e,t){var n={};return t=di(t,3),_r(e,(function(e,r,o){ur(n,r,t(e,r,o))})),n},zn.matches=function(e){return zr(cr(e,1))},zn.matchesProperty=function(e,t){return Vr(e,cr(t,1))},zn.memoize=ja,zn.merge=Du,zn.mergeWith=ju,zn.method=us,zn.methodOf=ss,zn.mixin=ls,zn.negate=La,zn.nthArg=function(e){return e=vu(e),Zr((function(t){return Wr(t,e)}))},zn.omit=Lu,zn.omitBy=function(e,t){return $u(e,La(di(t)))},zn.once=function(e){return qa(2,e)},zn.orderBy=function(e,t,r,o){return null==e?[]:(Ha(t)||(t=null==t?[]:[t]),Ha(r=o?n:r)||(r=null==r?[]:[r]),Hr(e,t,r))},zn.over=ds,zn.overArgs=Ma,zn.overEvery=fs,zn.overSome=ps,zn.partial=$a,zn.partialRight=Ba,zn.partition=Ea,zn.pick=Mu,zn.pickBy=$u,zn.property=ms,zn.propertyOf=function(e){return function(t){return null==e?n:Ar(e,t)}},zn.pull=Ji,zn.pullAll=ea,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,di(n,2)):e},zn.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Kr(e,t,n,r):e},zn.pullAt=ta,zn.range=hs,zn.rangeRight=vs,zn.rearg=Fa,zn.reject=function(e,t){return(Ha(e)?Tt:yr)(e,La(di(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=di(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Qr(e,o),n},zn.rest=function(e,t){if("function"!=typeof e)throw new Te(r);return Zr(e,t=t===n?t:vu(t))},zn.reverse=na,zn.sampleSize=function(e,t,r){return t=(r?_i(e,t,r):t===n)?1:vu(t),(Ha(e)?er:eo)(e,t)},zn.set=function(e,t,n){return null==e?e:to(e,t,n)},zn.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:to(e,t,r,o)},zn.shuffle=function(e){return(Ha(e)?tr:oo)(e)},zn.slice=function(e,t,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&_i(e,t,r)?(t=0,r=o):(t=null==t?0:vu(t),r=r===n?o:vu(r)),io(e,t,r)):[]},zn.sortBy=Ia,zn.sortedUniq=function(e){return e&&e.length?lo(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?lo(e,di(t,2)):[]},zn.split=function(e,t,r){return r&&"number"!=typeof r&&_i(e,t,r)&&(t=r=n),(r=r===n?m:r>>>0)?(e=wu(e))&&("string"==typeof t||null!=t&&!uu(t))&&!(t=fo(t))&&sn(e)?So(mn(e),0,r):e.split(t,r):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Te(r);return t=null==t?0:wn(vu(t),0),Zr((function(n){var r=n[t],o=So(n,0,t);return r&&jt(o,r),It(e,this,o)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?io(e,1,t):[]},zn.take=function(e,t,r){return e&&e.length?io(e,0,(t=r||t===n?1:vu(t))<0?0:t):[]},zn.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?io(e,(t=o-(t=r||t===n?1:vu(t)))<0?0:t,o):[]},zn.takeRightWhile=function(e,t){return e&&e.length?vo(e,di(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?vo(e,di(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new Te(r);return nu(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),Na(e,t,{leading:o,maxWait:t,trailing:i})},zn.thru=ha,zn.toArray=mu,zn.toPairs=Bu,zn.toPairsIn=Fu,zn.toPath=function(e){return Ha(e)?Dt(e,$i):cu(e)?[e]:To(Mi(wu(e)))},zn.toPlainObject=bu,zn.transform=function(e,t,n){var r=Ha(e),o=r||Ya(e)||du(e);if(t=di(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:nu(e)&&Ja(i)?Vn(Qe(e)):{}}return(o?Pt:_r)(e,(function(e,r,o){return t(n,e,r,o)})),n},zn.unary=function(e){return Pa(e,1)},zn.union=ra,zn.unionBy=oa,zn.unionWith=ia,zn.uniq=function(e){return e&&e.length?po(e):[]},zn.uniqBy=function(e,t){return e&&e.length?po(e,di(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?po(e,n,t):[]},zn.unset=function(e,t){return null==e||mo(e,t)},zn.unzip=aa,zn.unzipWith=ua,zn.update=function(e,t,n){return null==e?e:ho(e,t,xo(n))},zn.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:ho(e,t,xo(r),o)},zn.values=zu,zn.valuesIn=function(e){return null==e?[]:en(e,Ru(e))},zn.without=sa,zn.words=Ju,zn.wrap=function(e,t){return $a(xo(t),e)},zn.xor=la,zn.xorBy=ca,zn.xorWith=da,zn.zip=fa,zn.zipObject=function(e,t){return bo(e||[],t||[],rr)},zn.zipObjectDeep=function(e,t){return bo(e||[],t||[],to)},zn.zipWith=pa,zn.entries=Bu,zn.entriesIn=Fu,zn.extend=_u,zn.extendWith=ku,ls(zn,zn),zn.add=bs,zn.attempt=es,zn.camelCase=Vu,zn.capitalize=Uu,zn.ceil=ws,zn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=yu(r))==r?r:0),t!==n&&(t=(t=yu(t))==t?t:0),lr(yu(e),t,r)},zn.clone=function(e){return cr(e,4)},zn.cloneDeep=function(e){return cr(e,5)},zn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:n)},zn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:n)},zn.conformsTo=function(e,t){return null==t||dr(e,t,Nu(t))},zn.deburr=Wu,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=xs,zn.endsWith=function(e,t,r){e=wu(e),t=fo(t);var o=e.length,i=r=r===n?o:lr(vu(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},zn.eq=za,zn.escape=function(e){return(e=wu(e))&&X.test(e)?e.replace(Q,an):e},zn.escapeRegExp=function(e){return(e=wu(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},zn.every=function(e,t,r){var o=Ha(e)?Ot:vr;return r&&_i(e,t,r)&&(t=n),o(e,di(t,3))},zn.find=ya,zn.findIndex=Wi,zn.findKey=function(e,t){return Ft(e,di(t,3),_r)},zn.findLast=ba,zn.findLastIndex=Hi,zn.findLastKey=function(e,t){return Ft(e,di(t,3),kr)},zn.floor=_s,zn.forEach=wa,zn.forEachRight=xa,zn.forIn=function(e,t){return null==e?e:wr(e,di(t,3),Ru)},zn.forInRight=function(e,t){return null==e?e:xr(e,di(t,3),Ru)},zn.forOwn=function(e,t){return e&&_r(e,di(t,3))},zn.forOwnRight=function(e,t){return e&&kr(e,di(t,3))},zn.get=Cu,zn.gt=Va,zn.gte=Ua,zn.has=function(e,t){return null!=e&&yi(e,t,Pr)},zn.hasIn=Pu,zn.head=Ki,zn.identity=is,zn.includes=function(e,t,n,r){e=Ka(e)?e:zu(e),n=n&&!r?vu(n):0;var o=e.length;return n<0&&(n=wn(o+n,0)),lu(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Vt(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vu(n);return o<0&&(o=wn(r+o,0)),Vt(e,t,o)},zn.inRange=function(e,t,r){return t=hu(t),r===n?(r=t,t=0):r=hu(r),function(e,t,n){return e>=xn(t,n)&&e<wn(t,n)}(e=yu(e),t,r)},zn.invoke=Tu,zn.isArguments=Wa,zn.isArray=Ha,zn.isArrayBuffer=Ga,zn.isArrayLike=Ka,zn.isArrayLikeObject=Qa,zn.isBoolean=function(e){return!0===e||!1===e||ru(e)&&Ir(e)==w},zn.isBuffer=Ya,zn.isDate=Xa,zn.isElement=function(e){return ru(e)&&1===e.nodeType&&!au(e)},zn.isEmpty=function(e){if(null==e)return!0;if(Ka(e)&&(Ha(e)||"string"==typeof e||"function"==typeof e.splice||Ya(e)||du(e)||Wa(e)))return!e.length;var t=gi(e);if(t==A||t==q)return!e.size;if(Ei(e))return!Mr(e).length;for(var n in e)if(Me.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return Rr(e,t)},zn.isEqualWith=function(e,t,r){var o=(r="function"==typeof r?r:n)?r(e,t):n;return o===n?Rr(e,t,n,r):!!o},zn.isError=Za,zn.isFinite=function(e){return"number"==typeof e&&Kt(e)},zn.isFunction=Ja,zn.isInteger=eu,zn.isLength=tu,zn.isMap=ou,zn.isMatch=function(e,t){return e===t||Dr(e,t,pi(t))},zn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Dr(e,t,pi(t),r)},zn.isNaN=function(e){return iu(e)&&e!=+e},zn.isNative=function(e){if(Ai(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return jr(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=iu,zn.isObject=nu,zn.isObjectLike=ru,zn.isPlainObject=au,zn.isRegExp=uu,zn.isSafeInteger=function(e){return eu(e)&&e>=-f&&e<=f},zn.isSet=su,zn.isString=lu,zn.isSymbol=cu,zn.isTypedArray=du,zn.isUndefined=function(e){return e===n},zn.isWeakMap=function(e){return ru(e)&&gi(e)==N},zn.isWeakSet=function(e){return ru(e)&&"[object WeakSet]"==Ir(e)},zn.join=function(e,t){return null==e?"":yn.call(e,t)},zn.kebabCase=Hu,zn.last=Zi,zn.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=vu(r))<0?wn(o+i,0):xn(i,o-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):zt(e,Wt,i,!0)},zn.lowerCase=Gu,zn.lowerFirst=Ku,zn.lt=fu,zn.lte=pu,zn.max=function(e){return e&&e.length?gr(e,is,Cr):n},zn.maxBy=function(e,t){return e&&e.length?gr(e,di(t,2),Cr):n},zn.mean=function(e){return Ht(e,is)},zn.meanBy=function(e,t){return Ht(e,di(t,2))},zn.min=function(e){return e&&e.length?gr(e,is,Br):n},zn.minBy=function(e,t){return e&&e.length?gr(e,di(t,2),Br):n},zn.stubArray=gs,zn.stubFalse=ys,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=ks,zn.nth=function(e,t){return e&&e.length?Wr(e,vu(t)):n},zn.noConflict=function(){return ht._===this&&(ht._=Ve),this},zn.noop=cs,zn.now=Ca,zn.pad=function(e,t,n){e=wu(e);var r=(t=vu(t))?pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Go(bt(o),n)+e+Go(gt(o),n)},zn.padEnd=function(e,t,n){e=wu(e);var r=(t=vu(t))?pn(e):0;return t&&r<t?e+Go(t-r,n):e},zn.padStart=function(e,t,n){e=wu(e);var r=(t=vu(t))?pn(e):0;return t&&r<t?Go(t-r,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),kn(wu(e).replace(ae,""),t||0)},zn.random=function(e,t,r){if(r&&"boolean"!=typeof r&&_i(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=hu(e),t===n?(t=e,e=0):t=hu(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var i=Sn();return xn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Yr(e,t)},zn.reduce=function(e,t,n){var r=Ha(e)?Lt:Qt,o=arguments.length<3;return r(e,di(t,4),n,o,mr)},zn.reduceRight=function(e,t,n){var r=Ha(e)?Mt:Qt,o=arguments.length<3;return r(e,di(t,4),n,o,hr)},zn.repeat=function(e,t,r){return t=(r?_i(e,t,r):t===n)?1:vu(t),Xr(wu(e),t)},zn.replace=function(){var e=arguments,t=wu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,r){var o=-1,i=(t=_o(t,e)).length;for(i||(i=1,e=n);++o<i;){var a=null==e?n:e[$i(t[o])];a===n&&(o=i,a=r),e=Ja(a)?a.call(e):a}return e},zn.round=Ss,zn.runInContext=e,zn.sample=function(e){return(Ha(e)?Jn:Jr)(e)},zn.size=function(e){if(null==e)return 0;if(Ka(e))return lu(e)?pn(e):e.length;var t=gi(e);return t==A||t==q?e.size:Mr(e).length},zn.snakeCase=Qu,zn.some=function(e,t,r){var o=Ha(e)?$t:ao;return r&&_i(e,t,r)&&(t=n),o(e,di(t,3))},zn.sortedIndex=function(e,t){return uo(e,t)},zn.sortedIndexBy=function(e,t,n){return so(e,t,di(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=uo(e,t);if(r<n&&za(e[r],t))return r}return-1},zn.sortedLastIndex=function(e,t){return uo(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return so(e,t,di(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=uo(e,t,!0)-1;if(za(e[n],t))return n}return-1},zn.startCase=Yu,zn.startsWith=function(e,t,n){return e=wu(e),n=null==n?0:lr(vu(n),0,e.length),t=fo(t),e.slice(n,n+t.length)==t},zn.subtract=As,zn.sum=function(e){return e&&e.length?Yt(e,is):0},zn.sumBy=function(e,t){return e&&e.length?Yt(e,di(t,2)):0},zn.template=function(e,t,r){var o=zn.templateSettings;r&&_i(e,t,r)&&(t=n),e=wu(e),t=ku({},t,o,ti);var i,a,u=ku({},t.imports,o.imports,ti),s=Nu(u),l=en(u,s),c=0,d=t.interpolate||_e,f="__p += '",p=qe((t.escape||_e).source+"|"+d.source+"|"+(d===ee?me:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),m="//# sourceURL="+(Me.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ut+"]")+"\n";e.replace(p,(function(t,n,r,o,u,s){return r||(r=o),f+=e.slice(c,s).replace(ke,un),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),u&&(a=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+t.length,t})),f+="';\n";var h=Me.call(t,"variable")&&t.variable;if(h){if(fe.test(h))throw new Ee("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(W,""):f).replace(H,"$1").replace(G,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=es((function(){return Ie(s,m+"return "+f).apply(n,l)}));if(v.source=f,Za(v))throw v;return v},zn.times=function(e,t){if((e=vu(e))<1||e>f)return[];var n=m,r=xn(e,m);t=di(t),e-=m;for(var o=Xt(r,t);++n<e;)t(n);return o},zn.toFinite=hu,zn.toInteger=vu,zn.toLength=gu,zn.toLower=function(e){return wu(e).toLowerCase()},zn.toNumber=yu,zn.toSafeInteger=function(e){return e?lr(vu(e),-f,f):0===e?e:0},zn.toString=wu,zn.toUpper=function(e){return wu(e).toUpperCase()},zn.trim=function(e,t,r){if((e=wu(e))&&(r||t===n))return Zt(e);if(!e||!(t=fo(t)))return e;var o=mn(e),i=mn(t);return So(o,nn(o,i),rn(o,i)+1).join("")},zn.trimEnd=function(e,t,r){if((e=wu(e))&&(r||t===n))return e.slice(0,hn(e)+1);if(!e||!(t=fo(t)))return e;var o=mn(e);return So(o,0,rn(o,mn(t))+1).join("")},zn.trimStart=function(e,t,r){if((e=wu(e))&&(r||t===n))return e.replace(ae,"");if(!e||!(t=fo(t)))return e;var o=mn(e);return So(o,nn(o,mn(t))).join("")},zn.truncate=function(e,t){var r=30,o="...";if(nu(t)){var i="separator"in t?t.separator:i;r="length"in t?vu(t.length):r,o="omission"in t?fo(t.omission):o}var a=(e=wu(e)).length;if(sn(e)){var u=mn(e);a=u.length}if(r>=a)return e;var s=r-pn(o);if(s<1)return o;var l=u?So(u,0,s).join(""):e.slice(0,s);if(i===n)return l+o;if(u&&(s+=l.length-s),uu(i)){if(e.slice(s).search(i)){var c,d=l;for(i.global||(i=qe(i.source,wu(he.exec(i))+"g")),i.lastIndex=0;c=i.exec(d);)var f=c.index;l=l.slice(0,f===n?s:f)}}else if(e.indexOf(fo(i),s)!=s){var p=l.lastIndexOf(i);p>-1&&(l=l.slice(0,p))}return l+o},zn.unescape=function(e){return(e=wu(e))&&Y.test(e)?e.replace(K,vn):e},zn.uniqueId=function(e){var t=++$e;return wu(e)+t},zn.upperCase=Xu,zn.upperFirst=Zu,zn.each=wa,zn.eachRight=xa,zn.first=Ki,ls(zn,function(){var e={};return _r(zn,(function(t,n){Me.call(zn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),zn.VERSION="4.17.21",Pt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),Pt(["drop","take"],(function(e,t){Hn.prototype[e]=function(r){r=r===n?1:wn(vu(r),0);var o=this.__filtered__&&!t?new Hn(this):this.clone();return o.__filtered__?o.__takeCount__=xn(r,o.__takeCount__):o.__views__.push({size:xn(r,m),type:e+(o.__dir__<0?"Right":"")}),o},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Pt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:di(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Pt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}})),Pt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(is)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Zr((function(e,t){return"function"==typeof e?new Hn(this):this.map((function(n){return Tr(n,e,t)}))})),Hn.prototype.reject=function(e){return this.filter(La(di(e)))},Hn.prototype.slice=function(e,t){e=vu(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Hn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=vu(t))<0?r.dropRight(-t):r.take(t-e)),r)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(m)},_r(Hn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=zn[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(zn.prototype[t]=function(){var t=this.__wrapped__,u=o?[1]:arguments,s=t instanceof Hn,l=u[0],c=s||Ha(t),d=function(e){var t=i.apply(zn,jt([e],u));return o&&f?t[0]:t};c&&r&&"function"==typeof l&&1!=l.length&&(s=c=!1);var f=this.__chain__,p=!!this.__actions__.length,m=a&&!f,h=s&&!p;if(!a&&c){t=h?t:new Hn(this);var v=e.apply(t,u);return v.__actions__.push({func:ha,args:[d],thisArg:n}),new Wn(v,f)}return m&&h?e.apply(this,u):(v=this.thru(d),m?o?v.value()[0]:v.value():v)})})),Pt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ne[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ha(o)?o:[],e)}return this[n]((function(n){return t.apply(Ha(n)?n:[],e)}))}})),_r(Hn.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Me.call(Nn,r)||(Nn[r]=[]),Nn[r].push({name:t,func:n})}})),Nn[Vo(n,2).name]=[{name:"wrapper",func:n}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=To(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=To(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=To(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ha(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=xn(t,e+a);break;case"takeRight":e=wn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,u=i.end,s=u-a,l=r?u:a-1,c=this.__iteratees__,d=c.length,f=0,p=xn(s,this.__takeCount__);if(!n||!r&&o==s&&p==s)return go(e,this.__actions__);var m=[];e:for(;s--&&f<p;){for(var h=-1,v=e[l+=t];++h<d;){var g=c[h],y=g.iteratee,b=g.type,w=y(v);if(2==b)v=w;else if(!w){if(1==b)continue e;break e}}m[f++]=v}return m},zn.prototype.at=va,zn.prototype.chain=function(){return ma(this)},zn.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===n&&(this.__values__=mu(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,r=this;r instanceof Un;){var o=Fi(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[na],thisArg:n}),new Wn(t,this.__chain__)}return this.thru(na)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,nt&&(zn.prototype[nt]=function(){return this}),zn}();gt?((gt.exports=gn)._=gn,vt._=gn):ht._=gn}.call(jY)),av.exports;var e,t}VY();const UY={$user:"/:username","$user-post":"/:username/posts/:postId","$user-event":"/:username/events/:eventId","$user-channel":"/:username/channels/:channelId","$user-media":"/:username/media/:mediaId"},zY={$group:"/g/:groupname","$group-post":"/g/:groupname/posts/:postId","$group-event":"/g/:groupname/events/:eventId","$group-forum-post":"/g/:groupname/forum/:postId","$group-forum-category":"/g/:groupname/forum/:categorySlug","$group-forum-category-post":"/g/:groupname/forum/:categorySlug/:postId","$group-forum-tag":"/g/:groupname/forum/tag/:tag","$group-channel":"/g/:groupname/:channelname","$group-channel-post":"/g/:groupname/:channelname/posts/:postId","$group-media":"/g/:groupname/media/:mediaId"},WY={$root:"/",$tag:"/tags/:tag"},qY=()=>{const e=J3();if(!e)return;const{platformData:t}=e;return t.apps.flatMap((e=>e.paths.map((n=>({path:n.path,name:e.name,url:`${t.baseUrl}${e.baseUrl}index.html`,build:e.build,buildDate:e.buildDate})))))},GY={...UY,...zY,...WY},HY=()=>{var e;const t=(null==(e=qY())?void 0:e.filter((({path:e})=>e.startsWith("$")&&!e.includes("/")&&!GY[e])))||[];t.length>0&&El.warn("Unrecognized routes found:",t)};HY();const KY={path:"",history:[],transitionPath:"",confirmLeavePage:null},QY=Wo({name:"router",initialState:KY,reducers:{},extraReducers:e=>{e.addCase(xG,((e,{payload:t})=>{e.confirmLeavePage=t})).addCase(v3,((e,{payload:t})=>{t!==e.transitionPath&&(e.transitionPath=t)})).addCase($G,((e,{payload:t})=>{t!==e.path&&(e.path=t,e.history.unshift(t))}))},selectors:{selectPath:e=>e.path,selectPreviousRoute:e=>{const t=e.history.indexOf(e.path);return e.history[t+1]},selectTransitionPath:e=>e.transitionPath,selectConfirmLeavePage:e=>e.confirmLeavePage}}).injectInto(NY),iM="Tabs",[YY,sJ]=ai(iM,[Xh]),aM=Xh(),[uJ,BC]=YY(iM),XY="TabsList",JY=Le(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=BC(XY,n),a=aM(n);return oe(aC,Ee({asChild:!0},a,{orientation:i.orientation,dir:i.dir,loop:r}),oe(ht.div,Ee({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))})),ZY="TabsTrigger",eX=Le(((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=BC(ZY,n),u=aM(n),s=sM(a.baseId,r),l=uM(a.baseId,r),c=r===a.value;return oe(sC,Ee({asChild:!0},u,{focusable:!o,active:c}),oe(ht.button,Ee({type:"button",role:"tab","aria-selected":c,"aria-controls":l,"data-state":c?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s},i,{ref:t,onMouseDown:ot(e.onMouseDown,(e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)})),onKeyDown:ot(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)})),onFocus:ot(e.onFocus,(()=>{const e="manual"!==a.activationMode;!c&&!o&&e&&a.onValueChange(r)}))})))})),tX="TabsContent",nX=Le(((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,u=BC(tX,n),s=sM(u.baseId,r),l=uM(u.baseId,r),c=r===u.value,d=We(c);return Ze((()=>{const e=requestAnimationFrame((()=>d.current=!1));return()=>cancelAnimationFrame(e)}),[]),oe(ia,{present:o||c},(({present:n})=>oe(ht.div,Ee({"data-state":c?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":s,hidden:!n,id:l,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),n&&i)))}));function sM(e,t){return`${e}-trigger-${t}`}function uM(e,t){return`${e}-content-${t}`}const lM=JY,cM=eX,dM=nX,rX=k.forwardRef((({className:e,useDefaults:t=!0,...n},r)=>q.jsx(lM,{ref:r,"data-testid":"tabsList",className:t?we("inline-flex w-full items-center justify-start gap-s p-none text-muted-foreground","relative after:absolute after:bottom-0 after:left-0 after:h-[1px] after:w-full after:bg-gray-200",e):e,...n})));rX.displayName=lM.displayName;const oX=k.forwardRef((({className:e,children:t,isFullWidthTab:n,...r},o)=>q.jsx(cM,{ref:o,asChild:!0,className:e??we("inline-flex items-center justify-center whitespace-nowrap text-base","z-2 transition-background h-m cursor-pointer focus-visible:outline-none","font-semibold focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50","group relative text-gray-500 hover:[&_svg]:fill-gray-900","after:absolute after:bottom-0 after:left-0 after:z-[1] after:h-0.5 after:w-full data-[state=active]:after:bg-gray-900",{"flex-1":n}),...r,children:t})));oX.displayName=cM.displayName;const iX=k.forwardRef((({className:e,...t},n)=>q.jsx(dM,{ref:n,className:we("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t})));iX.displayName=dM.displayName;const aX=k.forwardRef((({className:e,...t},n)=>q.jsx("table",{ref:n,className:we("w-full caption-bottom text-sm",e),...t})));aX.displayName="Table";const sX=k.forwardRef((({className:e,...t},n)=>q.jsx("thead",{ref:n,className:we("[&_tr]:border-b",e),...t})));sX.displayName="TableHeader";const uX=k.forwardRef((({className:e,...t},n)=>q.jsx("tbody",{ref:n,className:we("[&_tr:last-child]:border-0",e),...t})));uX.displayName="TableBody";const lX=k.forwardRef((({className:e,...t},n)=>q.jsx("tfoot",{ref:n,className:we("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t})));lX.displayName="TableFooter";const cX=k.forwardRef((({className:e,...t},n)=>q.jsx("tr",{ref:n,className:we("border-b bg-background transition-colors hover:bg-gray-100 data-[state=selected]:bg-gray-200 dark:hover:bg-muted dark:data-[state=selected]:bg-muted","[&:hover_button[data-disabled]]:!bg-gray-200 [&:hover_button[disabled]]:!bg-gray-200",e),...t})));cX.displayName="TableRow";const dX=k.forwardRef((({className:e,...t},n)=>q.jsx("th",{ref:n,className:we("h-14 bg-inherit px-xs py-xxs text-left align-middle font-normal text-muted-foreground","whitespace-nowrap text-sm text-gray-500",e),...t})));dX.displayName="TableHead";const fX=k.forwardRef((({className:e,...t},n)=>q.jsx("td",{ref:n,className:we("h-14 bg-inherit p-xs py-xxs align-middle","overflow-hidden truncate text-ellipsis text-base text-gray-700",e),...t})));fX.displayName="TableCell";const pX=k.forwardRef((({className:e,...t},n)=>q.jsx("caption",{ref:n,className:we("mt-s text-sm text-muted-foreground",e),...t})));pX.displayName="TableCaption";const hX=(e,t)=>we("flex w-full rounded-m px-s py-xs text-base text-gray-900 outline outline-1 outline-input ring-offset-background transition-all duration-200 ease-in-out placeholder:inherit placeholder:text-gray-400 placeholder:text-muted-foreground hover:outline-2 hover:outline-gray-400 focus-visible:bg-gray-50 focus-visible:text-gray-900 focus-visible:outline-2 focus-visible:outline-blue_120 disabled:cursor-not-allowed disabled:select-none disabled:text-gray-300 disabled:outline-gray-200",{"bg-red_30_17 outline-red-dark":!!e},t),mX=k.forwardRef((({className:e,...t},n)=>{const{error:r}=$d();return q.jsx("textarea",{className:hX(!!r,e),ref:n,...t})}));mX.displayName="Textarea";const vX=hu(void 0),gX=()=>{const e=op(vX);if(!e)throw new Error("useColorPicker must be used within a ColorPickerProvider");return e},yX=aA((({className:e,...t})=>{const n=We(null),[r,o]=ut(!1),[i,a]=ut(0),[u,s]=ut(0),{hue:l,saturation:c,lightness:d,setSaturation:f,setLightness:p}=gX(),m=xn((()=>`linear-gradient(0deg, rgba(0,0,0,1), rgba(0,0,0,0)),\n linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0)),\n hsl(${l}, 100%, 50%)`),[l]);Ze((()=>{if(!r){const e=c/100,t=e<.01?100:50+50*(1-e),n=t>0?1-d/t:0;a(Math.max(0,Math.min(1,e))),s(Math.max(0,Math.min(1,n)))}}),[c,d,r]);const h=yt(((e,t)=>{if(!n.current)return;const r=n.current.getBoundingClientRect(),o=Math.max(0,Math.min(1,(e-r.left)/r.width)),i=Math.max(0,Math.min(1,(t-r.top)/r.height));a(o),s(i),f(100*o);p((o<.01?100:50+50*(1-o))*(1-i))}),[f,p]),v=yt((e=>{r&&h(e.clientX,e.clientY)}),[r,h]);return Ze((()=>{const e=()=>o(!1);return r&&(window.addEventListener("pointermove",v),window.addEventListener("pointerup",e)),()=>{window.removeEventListener("pointermove",v),window.removeEventListener("pointerup",e)}}),[r,v]),q.jsx("div",{className:we("relative size-full cursor-crosshair rounded",e),onPointerDown:e=>{e.preventDefault(),o(!0),h(e.clientX,e.clientY)},ref:n,style:{background:m},...t,children:q.jsx("div",{className:"pointer-events-none absolute h-4 w-4 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white",style:{left:100*i+"%",top:100*u+"%",boxShadow:"0 0 0 1px rgba(0,0,0,0.5)"}})})}));yX.displayName="ColorPickerSelection";const wX=wu("z-tooltip animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 relative data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",{variants:{size:{default:"rounded-md text-sm px-3 py-1.5",small:"rounded-sm p-xxs text-sm"},theme:{default:"bg-popover text-popover-foreground",dark:"bg-gray-800 text-gray-50 [&_svg]:fill-gray-700"},defaultVariants:{size:"small",theme:"dark"}}}),_X=k.forwardRef((({className:e,sideOffset:t=1,size:n,theme:r,children:o,isPortal:i=!0,withArrow:a=!0,...u},s)=>{const l=q.jsx(q.Fragment,{children:q.jsxs(m3,{ref:s,sideOffset:t,className:we(wX({size:n,theme:r,className:e})),...u,children:[o,a&&q.jsxs(q.Fragment,{children:[q.jsx(yG,{height:4,width:8}),q.jsx("div",{className:"absolute bottom-0 left-0 h-full w-full rounded-sm border border-gray-700"})]})]})});return i?q.jsx(gG,{children:l}):l}));_X.displayName=m3.displayName;var oA,Hg={exports:{}},bX=Hg.exports;function xX(){return oA||(oA=1,Hg.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",u="day",s="week",l="month",c="quarter",d="year",f="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,l),i=n-o<0,a=t.clone().add(r+(i?-1:1),l);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:s,d:u,D:f,h:a,m:i,s:o,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=v;var x="$isDayjsObject",_=function(e){return e instanceof E||!(!e||!e[x])},k=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var u=t.name;w[u]=t,o=u}return!r&&o&&(b=o),o||!r&&b},S=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},A=y;A.l=k,A.i=_,A.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function v(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var g=v.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(A.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(m);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return A},g.isValid=function(){return this.$d.toString()!==p},g.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return S(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<S(e)},g.$g=function(e,t,n){return A.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,r=!!A.u(t)||t,c=A.p(e),p=function(e,t){var o=A.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(u)},m=function(e,t){return A.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,v=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(c){case d:return r?p(1,0):p(31,11);case l:return r?p(1,v):p(0,v+1);case s:var b=this.$locale().weekStart||0,w=(h<b?h+7:h)-b;return p(r?g-w:g+(6-w),v);case u:case f:return m(y+"Hours",0);case a:return m(y+"Minutes",1);case i:return m(y+"Seconds",2);case o:return m(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,s=A.p(e),c="set"+(this.$u?"UTC":""),p=(n={},n[u]=c+"Date",n[f]=c+"Date",n[l]=c+"Month",n[d]=c+"FullYear",n[a]=c+"Hours",n[i]=c+"Minutes",n[o]=c+"Seconds",n[r]=c+"Milliseconds",n)[s],m=s===u?this.$D+(t-this.$W):t;if(s===l||s===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[A.p(e)]()},g.add=function(r,c){var f,p=this;r=Number(r);var m=A.p(c),h=function(e){var t=S(p);return A.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===u)return h(1);if(m===s)return h(7);var v=(f={},f[i]=t,f[a]=n,f[o]=e,f)[m]||1,g=this.$d.getTime()+r*v;return A.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=A.z(this),i=this.$H,a=this.$m,u=this.$M,s=n.weekdays,l=n.months,c=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return A.s(i%12||12,e,"0")},m=c||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return A.s(t.$y,4,"0");case"M":return u+1;case"MM":return A.s(u+1,2,"0");case"MMM":return d(n.monthsShort,u,l,3);case"MMMM":return d(l,u);case"D":return t.$D;case"DD":return A.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,s,2);case"ddd":return d(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(i);case"HH":return A.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(i,a,!0);case"A":return m(i,a,!1);case"m":return String(a);case"mm":return A.s(a,2,"0");case"s":return String(t.$s);case"ss":return A.s(t.$s,2,"0");case"SSS":return A.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,f,p){var m,h=this,v=A.p(f),g=S(r),y=(g.utcOffset()-this.utcOffset())*t,b=this-g,w=function(){return A.m(h,g)};switch(v){case d:m=w()/12;break;case l:m=w();break;case c:m=w()/3;break;case s:m=(b-y)/6048e5;break;case u:m=(b-y)/864e5;break;case a:m=b/n;break;case i:m=b/t;break;case o:m=b/e;break;default:m=b}return p?m:A.a(m)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return w[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=k(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return A.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),I=E.prototype;return S.prototype=I,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",u],["$M",l],["$y",d],["$D",f]].forEach((function(e){I[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,E,S),e.$i=!0),S},S.locale=k,S.isDayjs=_,S.unix=function(e){return S(1e3*e)},S.en=w[b],S.Ls=w,S.p={},S}()),Hg.exports}xX();const HS="horizontal",SX=["horizontal","vertical"],jC=Le(((e,t)=>{const{decorative:n,orientation:r=HS,...o}=e,i=fM(r)?r:HS,a=n?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"};return oe(ht.div,Ee({"data-orientation":i},a,o,{ref:t}))}));function $X(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \`${HS}\`.`}function fM(e){return SX.includes(e)}jC.propTypes={orientation(e,t,n){const r=e[t],o=String(r);return r&&!fM(r)?new Error($X(o,n)):null}};const CX=wu("\n shrink-0 bg-gray-200\n data-[orientation=horizontal]:h-px data-[orientation=horizontal]:my-xxs\n data-[orientation=vertical]:w-px data-[orientation=vertical]:mx-xxs\n ",{variants:{size:{xs:"data-[orientation=horizontal]:w-4 data-[orientation=vertical]:h-4",s:"data-[orientation=horizontal]:w-6 data-[orientation=vertical]:h-6",m:"data-[orientation=horizontal]:w-8 data-[orientation=vertical]:h-8",l:"data-[orientation=horizontal]:w-10 data-[orientation=vertical]:h-10"}},defaultVariants:{size:"s"}}),IX=k.forwardRef((({className:e,size:t,...n},r)=>q.jsx(jC,{ref:r,className:we(CX({size:t,className:e})),...n})));IX.displayName=jC.displayName;const EX=({linksList:e})=>q.jsx("div",{className:"text-gray-700",children:q.jsx("div",{className:"gap-xs flex flex-col items-center",children:e.map((({text:e,link:t,icon:n},r)=>q.jsx(BY,{to:t,children:q.jsxs(Av,{className:"min-w-[200px]",variant:r?"tertiary":"primary",children:[n,e]})},t)))})}),PX=(e,t)=>{switch(!0){case BL(e):return e;case jL(e):return 500===e&&El.error("ErrorPage: ",e),lv(e,t);case e&&!!sI(e):return{title:sI(e)};default:return El.error("ErrorPage: ",e),lv(500,t)}},VC=({error:e,icon:t})=>{const n=dy(bA.selectors.selectIsAuthenticated),{title:r,description:o,links:i}=PX(e,n),a=mu(o);return q.jsx("div",{className:"flex min-h-[100vh] items-center justify-center",children:q.jsxs("div",{className:"gap-l flex max-w-[490px] translate-y-[-10%] flex-col items-center justify-center",children:[t||q.jsx("img",{src:UL}),q.jsxs("div",{className:"gap-s flex flex-col items-center justify-center",children:[r&&q.jsx("h1",{className:"text-center text-[24px] font-semibold text-gray-900",children:r}),o&&q.jsx("p",{className:"max-w-[343px] text-center text-base font-medium text-gray-900",...!a&&{dangerouslySetInnerHTML:{__html:o}},children:a?o:null})]}),null!=i&&i.length?q.jsx(EX,{linksList:i}):null]})})},RX=()=>{const e=$M();return e.pathname+e.search},TX=()=>{const e=CM(),t=We(""),n=RX(),r=dy(QY.selectors.selectPath);Ze((()=>{r&&r!==t.current&&(t.current=r,n!==r&&e(r,{replace:!0}))}),[r,e,n])},pM=aA((()=>(TX(),null)));pM.displayName="RemoteRouteObserver";const lJ=()=>{const e=IM();return q.jsxs(q.Fragment,{children:[q.jsx(pM,{}),q.jsx(VC,{error:e})]})},OX=hu(null),aS={didCatch:!1,error:null};class AX extends mM{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=aS}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:o,reason:"imperative-api"}),this.setState(aS)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var o,i;n&&null!==t.error&&DX(e.resetKeys,r)&&(null===(o=(i=this.props).onReset)||void 0===o||o.call(i,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(aS))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let a=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)a=t(e);else if(n)a=oe(n,e);else{if(null!==r&&!mu(r))throw i;a=r}}return oe(OX.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}function DX(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some(((e,n)=>!Object.is(e,t[n])))}const cJ=()=>q.jsx(AX,{FallbackComponent:VC,children:q.jsx(EM,{})}),dJ=e=>{throw e},fJ=e=>{var t,n,r;if(!e||zf.isString(e))return null;if("data"in e&&null!=(t=e.data)&&t.errorCode)return null==(n=e.data)?void 0:n.errorCode;if("error"in e&&"object"==typeof e.error&&null!==e.error){const t=e.error;if(null!=(r=t.data)&&r.errorCode)return t.data.errorCode}return null},pJ=e=>{if(!e||zf.isString(e))return null;if("status"in e)return null==e?void 0:e.status;if("error"in e&&"object"==typeof e.error&&null!==e.error){const t=e.error;if(t.status)return t.status}return null},hJ=({children:e,...t})=>null!=t&&t.error?q.jsx(VC,{...t}):q.jsx(q.Fragment,{children:e});export{cJ as ErrorBoundaryLayout,VC as ErrorPage,hJ as ErrorWrapper,lJ as RouterErrorPage,lv as getErrorByStatusCode,sI as getErrorMsg,fJ as getServerApiErrorCode,pJ as getServerStatusCode,dJ as throwError};
|