@wellesley/system-toast 1.0.182 → 1.0.183
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
|
@@ -67,7 +67,7 @@ const sL=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gO=(...e)=>e.f
|
|
|
67
67
|
*
|
|
68
68
|
* This source code is licensed under the MIT license found in the
|
|
69
69
|
* LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/function E4(){if(TE)return vn;TE=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"),s=Symbol.for("react.context"),u=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 u:case s:case l:case p:case f:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),vn.ContextConsumer=s,vn.ContextProvider=a,vn.Element=t,vn.ForwardRef=l,vn.Fragment=r,vn.Lazy=p,vn.Memo=f,vn.Portal=n,vn.Profiler=i,vn.StrictMode=o,vn.Suspense=c,vn.SuspenseList=d,vn.isAsyncMode=function(){return!1},vn.isConcurrentMode=function(){return!1},vn.isContextConsumer=function(e){return h(e)===s},vn.isContextProvider=function(e){return h(e)===a},vn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},vn.isForwardRef=function(e){return h(e)===l},vn.isFragment=function(e){return h(e)===r},vn.isLazy=function(e){return h(e)===p},vn.isMemo=function(e){return h(e)===f},vn.isPortal=function(e){return h(e)===n},vn.isProfiler=function(e){return h(e)===i},vn.isStrictMode=function(e){return h(e)===o},vn.isSuspense=function(e){return h(e)===c},vn.isSuspenseList=function(e){return h(e)===d},vn.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===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},vn.typeOf=h,vn}function T4(){return RE||(RE=1,Fw.exports=E4()),Fw.exports}function RA(){if(PE)return jw;PE=1;var e=Ml(),t=da();return jw=function(n){return"number"==typeof n||t(n)&&"[object Number]"==e(n)}}function R4(){if(OE)return zw;OE=1;var e=RA();return zw=function(t){return e(t)&&t!=+t}}T4(),R4(),RA();var Vw,AE,Ww,NE,qw,DE,Gw,ME,Hw,kE,Kw,LE,Yw,BE,Qw,FE,Xw,jE,Jw,zE,Zw,UE,eb,VE,tb,WE,nb,qE,rb,GE,ob,HE,ib,KE,ab,YE,sb,QE,ub,XE,lb,JE,cb,ZE,db,eT,fb,tT,Eg=function(e){return C4(e)&&e.indexOf("%")===e.length-1},P4=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 O4(){if(AE)return Vw;AE=1;var e=$0();return Vw=function(){this.__data__=new e,this.size=0}}function A4(){if(NE)return Ww;return NE=1,Ww=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}}function N4(){if(DE)return qw;return DE=1,qw=function(e){return this.__data__.get(e)}}function D4(){if(ME)return Gw;return ME=1,Gw=function(e){return this.__data__.has(e)}}function M4(){if(kE)return Hw;kE=1;var e=$0(),t=_$(),n=x$();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 S$(){if(LE)return Kw;LE=1;var e=$0(),t=O4(),n=A4(),r=N4(),o=D4(),i=M4();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 k4(){if(BE)return Yw;BE=1;return Yw=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}}function L4(){if(FE)return Qw;return FE=1,Qw=function(e){return this.__data__.has(e)}}function B4(){if(jE)return Xw;jE=1;var e=x$(),t=k4(),n=L4();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 F4(){if(zE)return Jw;return zE=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 j4(){if(UE)return Zw;return UE=1,Zw=function(e,t){return e.has(t)}}function PA(){if(VE)return eb;VE=1;var e=B4(),t=F4(),n=j4();return eb=function(r,o,i,a,s,u){var l=1&i,c=r.length,d=o.length;if(c!=d&&!(l&&d>c))return!1;var f=u.get(r),p=u.get(o);if(f&&p)return f==o&&p==r;var m=-1,h=!0,g=2&i?new e:void 0;for(u.set(r,o),u.set(o,r);++m<c;){var v=r[m],y=o[m];if(a)var b=l?a(y,v,m,o,r,u):a(v,y,m,r,o,u);if(void 0!==b){if(b)continue;h=!1;break}if(g){if(!t(o,(function(e,t){if(!n(g,t)&&(v===e||s(v,e,i,a,u)))return g.push(t)}))){h=!1;break}}else if(v!==y&&!s(v,y,i,a,u)){h=!1;break}}return u.delete(r),u.delete(o),h}}function OA(){if(WE)return tb;WE=1;var e=fi().Uint8Array;return tb=e}function z4(){if(qE)return nb;return qE=1,nb=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}}function U4(){if(GE)return rb;return GE=1,rb=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}}function V4(){if(HE)return ob;HE=1;var e=Kh(),t=OA(),n=b$(),r=PA(),o=z4(),i=U4(),a=e?e.prototype:void 0,s=a?a.valueOf:void 0;return ob=function(e,a,u,l,c,d,f){switch(u){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 g=r(p(e),p(a),l,c,d,f);return f.delete(e),g;case"[object Symbol]":if(s)return s.call(e)==s.call(a)}return!1}}function $$(){if(KE)return ib;return KE=1,ib=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}}function AA(){if(YE)return ab;YE=1;var e=$$(),t=Di();return ab=function(n,r,o){var i=r(n);return t(n)?i:e(i,o(n))}}function W4(){if(QE)return sb;return QE=1,sb=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 NA(){if(XE)return ub;return XE=1,ub=function(){return[]}}function I$(){if(JE)return lb;JE=1;var e=W4(),t=NA(),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return lb=r?function(t){return null==t?[]:(t=Object(t),e(r(t),(function(e){return n.call(t,e)})))}:t}function q4(){if(ZE)return cb;return ZE=1,cb=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}}function G4(){if(eT)return db;eT=1;var e=Ml(),t=da();return db=function(n){return t(n)&&"[object Arguments]"==e(n)}}function C$(){if(tT)return fb;tT=1;var e=G4(),t=da(),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 fb=i}var pb,nT,rT,hb,oT,mb,iT,vb,aT,gb,sT,rv={exports:{}};function H4(){if(nT)return pb;return nT=1,pb=function(){return!1}}function E$(){return rT||(rT=1,e=rv,t=rv.exports,n=fi(),r=H4(),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r,e.exports=s),rv.exports;var e,t,n,r,o,i,a,s}function T$(){if(oT)return hb;oT=1;var e=/^(?:0|[1-9]\d*)$/;return hb=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 R$(){if(iT)return mb;iT=1;return mb=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function K4(){if(aT)return vb;aT=1;var e=Ml(),t=R$(),n=da(),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,vb=function(o){return n(o)&&t(o.length)&&!!r[e(o)]}}function P$(){if(sT)return gb;return sT=1,gb=function(e){return function(t){return e(t)}}}rv.exports;var uT,yb,lT,wb,cT,bb,dT,_b,fT,xb,pT,Sb,hT,$b,mT,Ib,vT,Cb,gT,Eb,yT,Tb,wT,Rb,bT,Pb,_T,Ob,xT,Ab,ST,Nb,$T,Db,IT,Mb,CT,kb,ET,Lb,TT,Bb,RT,Fb,PT,jb,OT,zb,AT,Ub,NT,Vb,DT,Wb,MT,qb,kT,Gb,LT,Hb,BT,Kb,FT,Yb,jT,Qb,zT,Xb,UT,Jb,VT,Zb,WT,e_,qT,t_,GT,n_,HT,r_,KT,o_,YT,i_,QT,a_,XT,s_,JT,u_,ZT,l_,eR,c_,tR,d_,nR,f_,rR,p_,oR,h_,iR,m_,aR,ov={exports:{}};function O$(){return uT||(uT=1,e=ov,t=ov.exports,n=_A(),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),ov.exports;var e,t,n,r,o,i,a}function DA(){if(lT)return yb;lT=1;var e=K4(),t=P$(),n=O$(),r=n&&n.isTypedArray,o=r?t(r):e;return yb=o}function MA(){if(cT)return wb;cT=1;var e=q4(),t=C$(),n=Di(),r=E$(),o=T$(),i=DA(),a=Object.prototype.hasOwnProperty;return wb=function(s,u){var l=n(s),c=!l&&t(s),d=!l&&!c&&r(s),f=!l&&!c&&!d&&i(s),p=l||c||d||f,m=p?e(s.length,String):[],h=m.length;for(var g in s)(u||a.call(s,g))&&(!p||!("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||o(g,h)))&&m.push(g);return m}}function A$(){if(dT)return bb;dT=1;var e=Object.prototype;return bb=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function kA(){if(fT)return _b;return fT=1,_b=function(e,t){return function(n){return e(t(n))}}}function Y4(){if(pT)return xb;pT=1;var e=kA()(Object.keys,Object);return xb=e}function LA(){if(hT)return Sb;hT=1;var e=A$(),t=Y4(),n=Object.prototype.hasOwnProperty;return Sb=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 BA(){if(mT)return $b;mT=1;var e=_0(),t=R$();return $b=function(n){return null!=n&&t(n.length)&&!e(n)}}function C0(){if(vT)return Ib;vT=1;var e=MA(),t=LA(),n=BA();return Ib=function(r){return n(r)?e(r):t(r)}}function FA(){if(gT)return Cb;gT=1;var e=AA(),t=I$(),n=C0();return Cb=function(r){return e(r,n,t)}}function Q4(){if(yT)return Eb;yT=1;var e=FA(),t=Object.prototype.hasOwnProperty;return Eb=function(n,r,o,i,a,s){var u=1&o,l=e(n),c=l.length;if(c!=e(r).length&&!u)return!1;for(var d=c;d--;){var f=l[d];if(!(u?f in r:t.call(r,f)))return!1}var p=s.get(n),m=s.get(r);if(p&&m)return p==r&&m==n;var h=!0;s.set(n,r),s.set(r,n);for(var g=u;++d<c;){var v=n[f=l[d]],y=r[f];if(i)var b=u?i(y,v,f,r,n,s):i(v,y,f,n,r,s);if(!(void 0===b?v===y||a(v,y,o,i,s):b)){h=!1;break}g||(g="constructor"==f)}if(h&&!g){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 s.delete(n),s.delete(r),h}}function X4(){if(wT)return Tb;wT=1;var e=lp()(fi(),"DataView");return Tb=e}function J4(){if(bT)return Rb;bT=1;var e=lp()(fi(),"Promise");return Rb=e}function Z4(){if(_T)return Pb;_T=1;var e=lp()(fi(),"Set");return Pb=e}function jA(){if(xT)return Ob;xT=1;var e=lp()(fi(),"WeakMap");return Ob=e}function Lv(){if(ST)return Ab;ST=1;var e=X4(),t=_$(),n=J4(),r=Z4(),o=jA(),i=Ml(),a=xA(),s="[object Map]",u="[object Promise]",l="[object Set]",c="[object WeakMap]",d="[object DataView]",f=a(e),p=a(t),m=a(n),h=a(r),g=a(o),v=i;return(e&&v(new e(new ArrayBuffer(1)))!=d||t&&v(new t)!=s||n&&v(n.resolve())!=u||r&&v(new r)!=l||o&&v(new o)!=c)&&(v=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 s;case m:return u;case h:return l;case g:return c}return t}),Ab=v}function e8(){if($T)return Nb;$T=1;var e=S$(),t=PA(),n=V4(),r=Q4(),o=Lv(),i=Di(),a=E$(),s=DA(),u="[object Arguments]",l="[object Array]",c="[object Object]",d=Object.prototype.hasOwnProperty;return Nb=function(f,p,m,h,g,v){var y=i(f),b=i(p),w=y?l:o(f),x=b?l:o(p),_=(w=w==u?c:w)==c,S=(x=x==u?c:x)==c,A=w==x;if(A&&a(f)){if(!a(p))return!1;y=!0,_=!1}if(A&&!_)return v||(v=new e),y||s(f)?t(f,p,m,h,g,v):n(f,p,w,m,h,g,v);if(!(1&m)){var I=_&&d.call(f,"__wrapped__"),E=S&&d.call(p,"__wrapped__");if(I||E){var k=I?f.value():f,M=E?p.value():p;return v||(v=new e),g(k,M,m,h,v)}}return!!A&&(v||(v=new e),r(f,p,m,h,g,v))}}function zA(){if(IT)return Db;IT=1;var e=e8(),t=da();return Db=function n(r,o,i,a,s){return r===o||(null==r||null==o||!t(r)&&!t(o)?r!=r&&o!=o:e(r,o,i,a,n,s))},Db}function t8(){if(CT)return Mb;CT=1;var e=S$(),t=zA();return Mb=function(n,r,o,i){var a=o.length,s=a,u=!i;if(null==n)return!s;for(n=Object(n);a--;){var l=o[a];if(u&&l[2]?l[1]!==n[l[0]]:!(l[0]in n))return!1}for(;++a<s;){var c=(l=o[a])[0],d=n[c],f=l[1];if(u&&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 UA(){if(ET)return kb;ET=1;var e=Es();return kb=function(t){return t==t&&!e(t)}}function n8(){if(TT)return Lb;TT=1;var e=UA(),t=C0();return Lb=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 VA(){if(RT)return Bb;return RT=1,Bb=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}}function r8(){if(PT)return Fb;PT=1;var e=t8(),t=n8(),n=VA();return Fb=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 o8(){if(OT)return jb;return OT=1,jb=function(e,t){return null!=e&&t in Object(e)}}function i8(){if(AT)return zb;AT=1;var e=CA(),t=C$(),n=Di(),r=T$(),o=R$(),i=kv();return zb=function(a,s,u){for(var l=-1,c=(s=e(s,a)).length,d=!1;++l<c;){var f=i(s[l]);if(!(d=null!=a&&u(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 a8(){if(NT)return Ub;NT=1;var e=o8(),t=i8();return Ub=function(n,r){return null!=n&&t(n,r,e)}}function s8(){if(DT)return Vb;DT=1;var e=zA(),t=TA(),n=a8(),r=w$(),o=UA(),i=VA(),a=kv();return Vb=function(s,u){return r(s)&&o(u)?i(a(s),u):function(r){var o=t(r,s);return void 0===o&&o===u?n(r,s):e(u,o,3)}}}function N$(){if(MT)return Wb;return MT=1,Wb=function(e){return e}}function u8(){if(kT)return qb;return kT=1,qb=function(e){return function(t){return null==t?void 0:t[e]}}}function l8(){if(LT)return Gb;LT=1;var e=EA();return Gb=function(t){return function(n){return e(n,t)}}}function c8(){if(BT)return Hb;BT=1;var e=u8(),t=l8(),n=w$(),r=kv();return Hb=function(o){return n(o)?e(r(o)):t(o)}}function d8(){if(FT)return Kb;FT=1;var e=r8(),t=s8(),n=N$(),r=Di(),o=c8();return Kb=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 f8(){if(jT)return Yb;return jT=1,Yb=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 p8(){if(zT)return Qb;return zT=1,Qb=function(e){return e!=e}}function h8(){if(UT)return Xb;return UT=1,Xb=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}}function m8(){if(VT)return Jb;VT=1;var e=f8(),t=p8(),n=h8();return Jb=function(r,o,i){return o==o?n(r,o,i):e(r,t,i)}}function v8(){if(WT)return Zb;WT=1;var e=m8();return Zb=function(t,n){return!!(null==t?0:t.length)&&e(t,n,0)>-1}}function g8(){if(qT)return e_;return qT=1,e_=function(){}}function y8(){if(GT)return t_;GT=1;var e=Kh(),t=C$(),n=Di(),r=e?e.isConcatSpreadable:void 0;return t_=function(e){return n(e)||t(e)||!!(r&&e&&e[r])}}function w8(){if(HT)return n_;HT=1;var e=$$(),t=y8();return n_=function n(r,o,i,a,s){var u=-1,l=r.length;for(i||(i=t),s||(s=[]);++u<l;){var c=r[u];o>0&&i(c)?o>1?n(c,o-1,i,a,s):e(s,c):a||(s[s.length]=c)}return s},n_}function D$(){if(KT)return r_;return KT=1,r_=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 b8(){if(YT)return o_;YT=1;var e=D$(),t=Math.max;return o_=function(n,r,o){return r=t(void 0===r?n.length-1:r,0),function(){for(var i=arguments,a=-1,s=t(i.length-r,0),u=Array(s);++a<s;)u[a]=i[r+a];a=-1;for(var l=Array(r+1);++a<r;)l[a]=i[a];return l[r]=o(u),e(n,this,l)}},o_}function _8(){if(QT)return i_;return QT=1,i_=function(e){return function(){return e}}}function WA(){if(XT)return a_;XT=1;var e=lp(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}}();return a_=t}function x8(){if(JT)return s_;JT=1;var e=_8(),t=WA(),n=N$();return s_=t?function(n,r){return t(n,"toString",{configurable:!0,enumerable:!1,value:e(r),writable:!0})}:n}function qA(){if(ZT)return u_;ZT=1;var e=Date.now;return u_=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)}},u_}function GA(){if(eR)return l_;eR=1;var e=x8(),t=qA()(e);return l_=t}function S8(){if(tR)return c_;tR=1;var e=fi();return c_=function(){return e.Date.now()}}function $8(){if(nR)return d_;nR=1;var e=/\s/;return d_=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}}function I8(){if(rR)return f_;rR=1;var e=$8(),t=/^\s+/;return f_=function(n){return n&&n.slice(0,e(n)+1).replace(t,"")}}function HA(){if(oR)return p_;oR=1;var e=I8(),t=Es(),n=Mv(),r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt;return p_=function(s){if("number"==typeof s)return s;if(n(s))return NaN;if(t(s)){var u="function"==typeof s.valueOf?s.valueOf():s;s=t(u)?u+"":u}if("string"!=typeof s)return 0===s?s:+s;s=e(s);var l=o.test(s);return l||i.test(s)?a(s.slice(2),l?2:8):r.test(s)?NaN:+s}}function KA(){if(iR)return h_;iR=1;var e=Es(),t=S8(),n=HA(),r=Math.max,o=Math.min;return h_=function(i,a,s){var u,l,c,d,f,p,m=0,h=!1,g=!1,v=!0;if("function"!=typeof i)throw new TypeError("Expected a function");function y(e){var t=u,n=l;return u=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||g&&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 g?o(t,c-(e-m)):t}(e))}function x(e){return f=void 0,v&&u?y(e):(u=l=void 0,d)}function _(){var e=t(),n=b(e);if(u=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(g)return clearTimeout(f),f=setTimeout(w,a),y(p)}return void 0===f&&(f=setTimeout(w,a)),d}return a=n(a)||0,e(s)&&(h=!!s.leading,c=(g="maxWait"in s)?r(n(s.maxWait)||0,a):c,v="trailing"in s?!!s.trailing:v),_.cancel=function(){void 0!==f&&clearTimeout(f),m=0,u=p=l=f=void 0},_.flush=function(){return void 0===f?d:x(t())},_},h_}function C8(){if(aR)return m_;aR=1;var e=KA(),t=Es();return m_=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})}}ov.exports;var E8=C8();const T8=t$(E8);function yv(e){return(yv="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 sR(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 Tg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sR(Object(n),!0).forEach((function(t){R8(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R8(e,t,n){return(t=P8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P8(e){var t=O8(e,"string");return"symbol"==yv(t)?t:t+""}function O8(e,t){if("object"!=yv(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=yv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function A8(e,t){return k8(e)||M8(e,t)||D8(e,t)||N8()}function N8(){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 D8(e,t){if(e){if("string"==typeof e)return uR(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 uR(e,t)}}function uR(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 M8(e,t){var n=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0!==t)for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}function k8(e){if(Array.isArray(e))return e}var v_,lR,g_,cR,y_,dR,w_,fR,b_,pR,__,hR,x_,mR,S_,vR,$_,gR,I_,yR,C_,wR,E_,bR,T_,_R,L8=Fe((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,s=e.height,u=void 0===s?"100%":s,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,g=e.id,v=e.className,y=e.onResize,b=e.style,w=void 0===b?{}:b,x=Ge(null),_=Ge();_.current=y,h3(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 S=A8(lt({containerWidth:o.width,containerHeight:o.height}),2),A=S[0],I=S[1],E=_t((function(e,t){I((function(n){var r=Math.round(e),o=Math.round(t);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}}))}),[]);Qe((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=T8(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 k=An((function(){var e=A.containerWidth,t=A.containerHeight;if(e<0||t<0)return null;Uw(Eg(a)||Eg(u),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,u),Uw(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=Eg(a)?e:a,o=Eg(u)?t:u;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,u,c,d,n);var i=!Array.isArray(p)&&P4(p.type).endsWith("Chart");return ge.Children.map(p,(function(e){return ge.isValidElement(e)?sp(e,Tg({width:r,height:o},i?{style:Tg({height:"100%",width:"100%",maxHeight:o,maxWidth:r},e.props.style)}:{})):e}))}),[n,p,u,f,d,c,A,a]);return ge.createElement("div",{id:g?"".concat(g):void 0,className:$O("recharts-responsive-container",v),style:Tg(Tg({},w),{},{width:a,height:u,minWidth:c,minHeight:d,maxHeight:f}),ref:x},k)}));function M$(){if(lR)return v_;lR=1;var e=kA()(Object.getPrototypeOf,Object);return v_=e}function B8(){if(cR)return g_;cR=1;var e=Ml(),t=M$(),n=da(),r=Function.prototype,o=Object.prototype,i=r.toString,a=o.hasOwnProperty,s=i.call(Object);return g_=function(r){if(!n(r)||"[object Object]"!=e(r))return!1;var o=t(r);if(null===o)return!0;var u=a.call(o,"constructor")&&o.constructor;return"function"==typeof u&&u instanceof u&&i.call(u)==s}}function F8(){if(dR)return y_;dR=1;var e=HA(),t=1/0;return y_=function(n){return n?(n=e(n))===t||n===-t?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}}function YA(){if(fR)return w_;fR=1;var e=WA();return w_=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}}function QA(){if(pR)return b_;pR=1;var e=F8();return b_=function(t){var n=e(t),r=n%1;return n==n?r?n-r:n:0}}function k$(){if(hR)return __;return hR=1,__=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}}function XA(){if(mR)return x_;mR=1;var e=YA(),t=b$(),n=Object.prototype.hasOwnProperty;return x_=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 E0(){if(vR)return S_;vR=1;var e=XA(),t=YA();return S_=function(n,r,o,i){var a=!o;o||(o={});for(var s=-1,u=r.length;++s<u;){var l=r[s],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 JA(){if(gR)return $_;gR=1;var e=E0(),t=C0();return $_=function(n,r){return n&&e(r,t(r),n)}}function j8(){if(yR)return I_;return yR=1,I_=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}}function z8(){if(wR)return C_;wR=1;var e=Es(),t=A$(),n=j8(),r=Object.prototype.hasOwnProperty;return C_=function(o){if(!e(o))return n(o);var i=t(o),a=[];for(var s in o)"constructor"==s&&(i||!r.call(o,s))||a.push(s);return a}}function L$(){if(bR)return E_;bR=1;var e=MA(),t=z8(),n=BA();return E_=function(r){return n(r)?e(r,!0):t(r)}}function U8(){if(_R)return T_;_R=1;var e=E0(),t=L$();return T_=function(n,r){return n&&e(r,t(r),n)}}var xR,R_,SR,P_,$R,O_,IR,A_,CR,N_,ER,D_,TR,M_,RR,k_,PR,L_,OR,B_,AR,F_,NR,j_,DR,z_,MR,U_,kR,V_,LR,W_,BR,q_,FR,G_,jR,H_,zR,K_,UR,Y_,VR,iv={exports:{}};function V8(){return xR||(xR=1,e=iv,t=iv.exports,n=fi(),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}),iv.exports;var e,t,n,r,o,i,a}function T0(){if(SR)return R_;return SR=1,R_=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}}function W8(){if($R)return P_;$R=1;var e=E0(),t=I$();return P_=function(n,r){return e(n,t(n),r)}}function ZA(){if(IR)return O_;IR=1;var e=$$(),t=M$(),n=I$(),r=NA(),o=Object.getOwnPropertySymbols;return O_=o?function(r){for(var o=[];r;)e(o,n(r)),r=t(r);return o}:r}function q8(){if(CR)return A_;CR=1;var e=E0(),t=ZA();return A_=function(n,r){return e(n,t(n),r)}}function G8(){if(ER)return N_;ER=1;var e=AA(),t=ZA(),n=L$();return N_=function(r){return e(r,n,t)}}function H8(){if(TR)return D_;TR=1;var e=Object.prototype.hasOwnProperty;return D_=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 B$(){if(RR)return M_;RR=1;var e=OA();return M_=function(t){var n=new t.constructor(t.byteLength);return new e(n).set(new e(t)),n}}function K8(){if(PR)return k_;PR=1;var e=B$();return k_=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}}function Y8(){if(OR)return L_;OR=1;var e=/\w*$/;return L_=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}}function Q8(){if(AR)return B_;AR=1;var e=Kh(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;return B_=function(e){return n?Object(n.call(e)):{}}}function X8(){if(NR)return F_;NR=1;var e=B$();return F_=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}}function J8(){if(DR)return j_;DR=1;var e=B$(),t=K8(),n=Y8(),r=Q8(),o=X8();return j_=function(i,a,s){var u=i.constructor;switch(a){case"[object ArrayBuffer]":return e(i);case"[object Boolean]":case"[object Date]":return new u(+i);case"[object DataView]":return t(i,s);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,s);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(i);case"[object RegExp]":return n(i);case"[object Symbol]":return r(i)}}}function R0(){if(MR)return z_;MR=1;var e=Es(),t=Object.create;return z_=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 Z8(){if(kR)return U_;kR=1;var e=R0(),t=M$(),n=A$();return U_=function(r){return"function"!=typeof r.constructor||n(r)?{}:e(t(r))}}function e9(){if(LR)return V_;LR=1;var e=Lv(),t=da();return V_=function(n){return t(n)&&"[object Map]"==e(n)}}function t9(){if(BR)return W_;BR=1;var e=e9(),t=P$(),n=O$(),r=n&&n.isMap,o=r?t(r):e;return W_=o}function n9(){if(FR)return q_;FR=1;var e=Lv(),t=da();return q_=function(n){return t(n)&&"[object Set]"==e(n)}}function r9(){if(jR)return G_;jR=1;var e=n9(),t=P$(),n=O$(),r=n&&n.isSet,o=r?t(r):e;return G_=o}function eN(){if(zR)return H_;zR=1;var e=S$(),t=k$(),n=XA(),r=JA(),o=U8(),i=V8(),a=T0(),s=W8(),u=q8(),l=FA(),c=G8(),d=Lv(),f=H8(),p=J8(),m=Z8(),h=Di(),g=E$(),v=t9(),y=Es(),b=r9(),w=C0(),x=L$(),_="[object Arguments]",S="[object Function]",A="[object Object]",I={};return I[_]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[A]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[S]=I["[object WeakMap]"]=!1,H_=function E(k,M,C,N,P,O){var T,R=1&M,D=2&M,j=4&M;if(C&&(T=P?C(k,N,P,O):C(k)),void 0!==T)return T;if(!y(k))return k;var q=h(k);if(q){if(T=f(k),!R)return a(k,T)}else{var L=d(k),z=L==S||"[object GeneratorFunction]"==L;if(g(k))return i(k,R);if(L==A||L==_||z&&!P){if(T=D||z?{}:m(k),!R)return D?u(k,o(T,k)):s(k,r(T,k))}else{if(!I[L])return P?k:{};T=p(k,L,R)}}O||(O=new e);var $=O.get(k);if($)return $;O.set(k,T),b(k)?k.forEach((function(e){T.add(E(e,M,C,e,k,O))})):v(k)&&k.forEach((function(e,t){T.set(t,E(e,M,C,t,k,O))}));var B=q?void 0:(j?D?c:l:D?x:w)(k);return t(B||k,(function(e,t){B&&(e=k[t=e]),n(T,t,E(e,M,C,t,k,O))})),T},H_}function o9(){if(UR)return K_;UR=1;var e=w8();return K_=function(t){return(null==t?0:t.length)?e(t,1):[]}}function i9(){if(VR)return Y_;VR=1;var e=o9(),t=b8(),n=GA();return Y_=function(r){return n(t(r,void 0,e),r+"")}}iv.exports;const a9={light:"",dark:".dark"},tN=M.createContext(null);function nN(){const e=M.useContext(tN);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const s9=M.forwardRef((({id:e,className:t,children:n,config:r,...o},i)=>{const a=M.useId(),s=`chart-${e||a.replace(/:/g,"")}`;return G.jsx(tN.Provider,{value:{config:r},children:G.jsxs("div",{"data-chart":s,ref:i,className:xe("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:[G.jsx(u9,{id:s,config:r}),G.jsx(L8,{children:n})]})})}));s9.displayName="Chart";const u9=({id:e,config:t})=>{const n=Object.entries(t).filter((([,e])=>e.theme||e.color));return n.length?G.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(a9).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},l9=M.forwardRef((({active:e,payload:t,className:n,indicator:r="dot",hideLabel:o=!1,hideIndicator:i=!1,label:a,labelFormatter:s,labelClassName:u,formatter:l,color:c,nameKey:d,labelKey:f,hoveredItem:p,onItemHover:m},h)=>{const{config:g}=nN(),v=M.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=yS(g,n,r),l=f||"string"!=typeof a?null==i?void 0:i.label:(null==(e=g[a])?void 0:e.label)||a;return s?G.jsx("div",{className:xe("font-medium",u),children:s(l,t)}):l?G.jsx("div",{className:xe("font-medium",u),children:l}):null}),[a,s,t,o,u,g,f]);if(!e||null==t||!t.length)return null;const y=1===t.length&&"dot"!==r,b=t.length>10;return G.jsxs("div",{ref:h,className:xe("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:v,G.jsx("div",{className:xe("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=yS(g,e,o),s=c||(null==(n=e.payload)?void 0:n.fill)||e.color||"",u=o===p;return G.jsx("div",{className:xe("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",u?"":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]):G.jsxs(G.Fragment,{children:[null!=a&&a.icon?G.jsx(a.icon,{}):!i&&G.jsx("div",{className:xe("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":s,"--color-border":s}}),G.jsxs("div",{className:xe("flex flex-1 justify-between leading-none",y?"items-end":"items-center"),children:[G.jsxs("div",{className:"grid gap-xxs",children:[y?v:null,G.jsx("span",{className:xe("text-muted-foreground",u&&"font-medium text-foreground"),children:(null==a?void 0:a.label)||e.name})]}),e.value&&G.jsx("span",{className:xe("font-mono font-medium tabular-nums text-foreground",u&&"font-bold"),children:e.value.toLocaleString()})]})]})},e.dataKey)}))})]})}));l9.displayName="ChartTooltip";const c9=M.forwardRef((({className:e,hideIcon:t=!1,payload:n,nameKey:r,onItemHover:o,hoveredItem:i},a)=>{const{config:s}=nN(),u=M.useRef({});return M.useEffect((()=>{if(i&&u.current[i]){const e=u.current[i];e&&e.scrollIntoView({behavior:"smooth",block:"nearest"})}}),[i]),null!=n&&n.length?G.jsx("div",{ref:a,className:xe("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=yS(s,e,a),c=!!o&&a===i;return G.jsxs("div",{ref:e=>{e?u.current[a]=e:delete u.current[a]},className:xe("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?G.jsx(l.icon,{}):G.jsx("div",{className:"h-2 w-2 shrink-0 rounded-full",style:{backgroundColor:e.color||""}}),G.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 yS(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]}c9.displayName="ChartLegend";const d9=({children:e,className:t})=>G.jsx("div",{className:xe("flex flex-wrap gap-xxxs",t),children:e}),rN=({text:e,icon:t,disabled:n,isLoading:r,avatarSrc:o,onClick:i,onRemove:a,className:s})=>G.jsxs("div",{onClick:n?void 0:i,className:xe("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",s),children:[o&&G.jsxs(fA,{className:xe("size-6 text-[10px]"),children:[G.jsx(pA,{src:o,alt:e}),G.jsx(hA,{className:"text-xs",children:e.charAt(0).toUpperCase()})]}),t,G.jsx("span",{children:e}),a&&!r&&G.jsx("span",{role:"button",tabIndex:-1,onClick:e=>{e.stopPropagation(),e.preventDefault(),!n&&(null==a||a())},onPointerDown:e=>{e.stopPropagation(),e.preventDefault()},className:xe("pointer-events-auto cursor-pointer",n&&"pointer-events-none cursor-not-allowed opacity-50"),children:G.jsx(d0,{size:16})}),r&&G.jsx(_O,{size:16,className:"animate-spin"})]});function P0(e){const t=Ge({value:e,previous:e});return An((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}function O0(e){const[t,n]=lt(void 0);return Qo((()=>{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 oN="Checkbox",[f9,tJ]=di(oN),[p9,h9]=f9(oN),m9=Fe(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:u="on",onCheckedChange:l,...c}=e,[d,f]=lt(null),p=Zt(t,(e=>f(e))),m=Ge(!1),h=!d||!!d.closest("form"),[g=!1,v]=gd({prop:o,defaultProp:i,onChange:l}),y=Ge(g);return Qe((()=>{const e=null==d?void 0:d.form;if(e){const t=()=>v(y.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[d,v]),se(p9,{scope:n,state:g,disabled:s},se(gt.button,Ae({type:"button",role:"checkbox","aria-checked":Wf(g)?"mixed":g,"aria-required":a,"data-state":iN(g),"data-disabled":s?"":void 0,disabled:s,value:u},c,{ref:p,onKeyDown:it(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:it(e.onClick,(e=>{v((e=>!!Wf(e)||!e)),h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))})),h&&se(y9,{control:d,bubbles:!m.current,name:r,value:u,checked:g,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))})),v9="CheckboxIndicator",g9=Fe(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=h9(v9,n);return se(ca,{present:r||Wf(i.state)||!0===i.state},se(gt.span,Ae({"data-state":iN(i.state),"data-disabled":i.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))})),y9=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=Ge(null),a=P0(n),s=O0(t);return Qe((()=>{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]),se("input",Ae({type:"checkbox","aria-hidden":!0,defaultChecked:!Wf(n)&&n},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Wf(e){return"indeterminate"===e}function iN(e){return Wf(e)?"indeterminate":e?"checked":"unchecked"}const aN=m9,w9=g9,b9=xu("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"}}),F$=M.forwardRef((({className:e,size:t,variant:n,iconType:r,...o},i)=>{const a=o.checked,[s]=M.useState(a),[u,l]=M.useState(!1);M.useEffect((()=>{s!==a&&l(!0)}),[a]);const c=e=>"minus"===r?G.jsx($L,{...e}):G.jsx(r$,{...e});return G.jsxs(aN,{ref:i,className:xe(b9({size:t,variant:n}),"transition-[border] duration-100 ease-linear",a?"border-0":"border-gray-300 hover:border-2",e),...o,children:[G.jsx("div",{className:xe("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&&u,"animate-fill-out":!a&&u})}),G.jsx(w9,{className:"relative flex items-center justify-center text-current",children:G.jsx(c,{className:"size-xxxs",color:o.disabled?"var(--gray-300)":"white"})})]})}));F$.displayName=aN.displayName;var WR=1,_9=.9,x9=.8,S9=.17,Q_=.1,X_=.999,$9=.9999,I9=.99,C9=/[\\\/_+.#"@\[\(\{&]/,E9=/[\\\/_+.#"@\[\(\{&]/g,T9=/[\s-]/,sN=/[\s-]/g;function wS(e,t,n,r,o,i,a){if(i===t.length)return o===e.length?WR:I9;var s=`${o},${i}`;if(void 0!==a[s])return a[s];for(var u,l,c,d,f=r.charAt(i),p=n.indexOf(f,o),m=0;p>=0;)(u=wS(e,t,n,r,p+1,i+1,a))>m&&(p===o?u*=WR:C9.test(e.charAt(p-1))?(u*=x9,(c=e.slice(o,p-1).match(E9))&&o>0&&(u*=Math.pow(X_,c.length))):T9.test(e.charAt(p-1))?(u*=_9,(d=e.slice(o,p-1).match(sN))&&o>0&&(u*=Math.pow(X_,d.length))):(u*=S9,o>0&&(u*=Math.pow(X_,p-o))),e.charAt(p)!==t.charAt(i)&&(u*=$9)),(u<Q_&&n.charAt(p-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&n.charAt(p-1)!==r.charAt(i))&&((l=wS(e,t,n,r,p+1,i+2,a))*Q_>u&&(u=l*Q_)),u>m&&(m=u),p=n.indexOf(f,p+1);return a[s]=m,m}function qR(e){return e.toLowerCase().replace(sN," ")}function R9(e,t,n){return wS(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,qR(e),qR(t),0,0,{})}var Xm='[cmdk-group=""]',J_='[cmdk-group-items=""]',P9='[cmdk-group-heading=""]',j$='[cmdk-item=""]',GR=`${j$}:not([aria-disabled="true"])`,bS="cmdk-item-select",jf="data-value",O9=(e,t,n)=>R9(e,t,n),uN=M.createContext(void 0),Bv=()=>M.useContext(uN),lN=M.createContext(void 0),z$=()=>M.useContext(lN),cN=M.createContext(void 0),dN=M.forwardRef(((e,t)=>{let n=Mh((()=>{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=Mh((()=>new Set)),o=Mh((()=>new Map)),i=Mh((()=>new Map)),a=Mh((()=>new Set)),s=fN(e),{label:u,children:l,value:c,onValueChange:d,filter:f,shouldFilter:p,loop:m,disablePointerSelection:h=!1,vimBindings:g=!0,...v}=e,y=M.useId(),b=M.useId(),w=M.useId(),x=M.useRef(null),_=U9();Qf((()=>{if(void 0!==c){let e=c.trim();n.current.value=e,S.emit()}}),[c]),Qf((()=>{_(6,N)}),[]);let S=M.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)C(),E(),_(1,k);else if("value"===e&&(r||_(5,N),void 0!==(null==(o=s.current)?void 0:o.value))){let e=t??"";return void(null==(a=(i=s.current).onValueChange)||a.call(i,e))}S.emit()}},emit:()=>{a.current.forEach((e=>e()))}})),[]),A=M.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,I(t,r)),_(2,(()=>{E(),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,(()=>{C(),E(),n.current.value||k(),S.emit()})),()=>{i.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=P();_(4,(()=>{C(),(null==t?void 0:t.getAttribute("id"))===e&&k(),S.emit()}))}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{i.current.delete(e),o.current.delete(e)}),filter:()=>s.current.shouldFilter,label:u||e["aria-label"],disablePointerSelection:h,listId:y,inputId:w,labelId:b,listInnerRef:x})),[]);function I(e,t){var r,o;let i=null!=(o=null==(r=s.current)?void 0:r.filter)?o:O9;return e?i(e,n.current.search,t):0}function E(){if(!n.current.search||!1===s.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;O().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(J_);t?t.appendChild(e.parentElement===t?e:e.closest(`${J_} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${J_} > *`))})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{let t=x.current.querySelector(`${Xm}[${jf}="${encodeURIComponent(e[0])}"]`);null==t||t.parentElement.appendChild(t)}))}function k(){let e=O().find((e=>"true"!==e.getAttribute("aria-disabled"))),t=null==e?void 0:e.getAttribute(jf);S.setState("value",t||void 0)}function C(){var e,t,a,u;if(!n.current.search||!1===s.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=I(null!=(t=null==(e=i.current.get(o))?void 0:e.value)?t:"",null!=(u=null==(a=i.current.get(o))?void 0:a.keywords)?u:[]);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 N(){var e,t,n;let r=P();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(Xm))?void 0:t.querySelector(P9))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function P(){var e;return null==(e=x.current)?void 0:e.querySelector(`${j$}[aria-selected="true"]`)}function O(){var e;return Array.from(null==(e=x.current)?void 0:e.querySelectorAll(GR))}function T(e){let t=O()[e];t&&S.setState("value",t.getAttribute(jf))}function R(e){var t;let n=P(),r=O(),o=r.findIndex((e=>e===n)),i=r[o+e];null!=(t=s.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(jf))}function D(e){let t,n=P(),r=null==n?void 0:n.closest(Xm);for(;r&&!t;)r=e>0?j9(r,Xm):z9(r,Xm),t=null==r?void 0:r.querySelector(GR);t?S.setState("value",t.getAttribute(jf)):R(e)}let j=()=>T(O().length-1),q=e=>{e.preventDefault(),e.metaKey?j():e.altKey?D(1):R(1)},L=e=>{e.preventDefault(),e.metaKey?T(0):e.altKey?D(-1):R(-1)};return M.createElement(gt.div,{ref:t,tabIndex:-1,...v,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=v.onKeyDown)||t.call(v,e),!e.defaultPrevented)switch(e.key){case"n":case"j":g&&e.ctrlKey&&q(e);break;case"ArrowDown":q(e);break;case"p":case"k":g&&e.ctrlKey&&L(e);break;case"ArrowUp":L(e);break;case"Home":e.preventDefault(),T(0);break;case"End":e.preventDefault(),j();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();let t=P();if(t){let e=new Event(bS);t.dispatchEvent(e)}}}}},M.createElement("label",{"cmdk-label":"",htmlFor:A.inputId,id:A.labelId,style:W9},u),A0(e,(e=>M.createElement(lN.Provider,{value:S},M.createElement(uN.Provider,{value:A},e)))))})),A9=M.forwardRef(((e,t)=>{var n,r;let o=M.useId(),i=M.useRef(null),a=M.useContext(cN),s=Bv(),u=fN(e),l=null!=(r=null==(n=u.current)?void 0:n.forceMount)?r:null==a?void 0:a.forceMount;Qf((()=>{if(!l)return s.item(o,null==a?void 0:a.id)}),[l]);let c=pN(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!==s.filter())||(!e.search||e.filtered.items.get(o)>0)));function m(){var e,t;h(),null==(t=(e=u.current).onSelect)||t.call(e,c.current)}function h(){d.setState("value",c.current,!0)}if(M.useEffect((()=>{let t=i.current;if(t&&!e.disabled)return t.addEventListener(bS,m),()=>t.removeEventListener(bS,m)}),[p,e.onSelect,e.disabled]),!p)return null;let{disabled:g,value:v,onSelect:y,forceMount:b,keywords:w,...x}=e;return M.createElement(gt.div,{ref:wv([i,t]),...x,id:o,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!f,"data-disabled":!!g,"data-selected":!!f,onPointerMove:g||s.disablePointerSelection?void 0:h,onClick:g?void 0:m},e.children)})),N9=M.forwardRef(((e,t)=>{let{heading:n,children:r,forceMount:o,...i}=e,a=M.useId(),s=M.useRef(null),u=M.useRef(null),l=M.useId(),c=Bv(),d=Xf((e=>!(!o&&!1!==c.filter())||(!e.search||e.filtered.groups.has(a))));Qf((()=>c.group(a)),[]),pN(a,s,[e.value,e.heading,u]);let f=M.useMemo((()=>({id:a,forceMount:o})),[o]);return M.createElement(gt.div,{ref:wv([s,t]),...i,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&M.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:l},n),A0(e,(e=>M.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?l:void 0},M.createElement(cN.Provider,{value:f},e)))))})),D9=M.forwardRef(((e,t)=>{let{alwaysRender:n,...r}=e,o=M.useRef(null),i=Xf((e=>!e.search));return n||i?M.createElement(gt.div,{ref:wv([o,t]),...r,"cmdk-separator":"",role:"separator"}):null})),M9=M.forwardRef(((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,i=z$(),a=Xf((e=>e.search)),s=Xf((e=>e.value)),u=Bv(),l=M.useMemo((()=>{var e;let t=null==(e=u.listInnerRef.current)?void 0:e.querySelector(`${j$}[${jf}="${encodeURIComponent(s)}"]`);return null==t?void 0:t.getAttribute("id")}),[]);return M.useEffect((()=>{null!=e.value&&i.setState("search",e.value)}),[e.value]),M.createElement(gt.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":l,id:u.inputId,type:"text",value:o?e.value:a,onChange:e=>{o||i.setState("search",e.target.value),null==n||n(e.target.value)}})})),k9=M.forwardRef(((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,i=M.useRef(null),a=M.useRef(null),s=Bv();return M.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)}}}),[]),M.createElement(gt.div,{ref:wv([i,t]),...o,"cmdk-list":"",role:"listbox","aria-label":r,id:s.listId},A0(e,(e=>M.createElement("div",{ref:wv([a,s.listInnerRef]),"cmdk-list-sizer":""},e))))})),L9=M.forwardRef(((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:i,container:a,...s}=e;return M.createElement(JO,{open:n,onOpenChange:r},M.createElement(y0,{container:a},M.createElement(Gh,{"cmdk-overlay":"",className:o}),M.createElement(Hh,{"aria-label":e.label,"cmdk-dialog":"",className:i},M.createElement(dN,{ref:t,...s}))))})),B9=M.forwardRef(((e,t)=>Xf((e=>0===e.filtered.count))?M.createElement(gt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null)),F9=M.forwardRef(((e,t)=>{let{progress:n,children:r,label:o="Loading...",...i}=e;return M.createElement(gt.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},A0(e,(e=>M.createElement("div",{"aria-hidden":!0},e))))})),Mi=Object.assign(dN,{List:k9,Item:A9,Input:M9,Group:N9,Separator:D9,Dialog:L9,Empty:B9,Loading:F9});function j9(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function z9(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function fN(e){let t=M.useRef(e);return Qf((()=>{t.current=e})),t}var Qf=typeof window>"u"?M.useEffect:M.useLayoutEffect;function Mh(e){let t=M.useRef();return void 0===t.current&&(t.current=e()),t}function wv(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 M.useSyncExternalStore(t.subscribe,n,n)}function pN(e,t,n,r=[]){let o=M.useRef(),i=Bv();return Qf((()=>{var a;let s=(()=>{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}})(),u=r.map((e=>e.trim()));i.value(e,s,u),null==(a=t.current)||a.setAttribute(jf,s),o.current=s})),o}var U9=()=>{let[e,t]=M.useState(),n=Mh((()=>new Map));return Qf((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}};function V9(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}function A0({asChild:e,children:t},n){return e&&M.isValidElement(t)?M.cloneElement(V9(t),{ref:t.ref},n(t.props.children)):n(t)}var W9={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const q9=y0,hN=M.forwardRef((({className:e,...t},n)=>(M.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")))}}),[]),G.jsx(Gh,{ref:n,"data-testid":"dialog_overlay",className:xe("fixed inset-0 z-dialog bg-black opacity-[0.8] data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}))));hN.displayName=Gh.displayName;const G9=xu("",{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"}}),H9=xu("",{variants:{closeSize:{small:"size-6",big:"size-[42px]","18x18":"size-[18px]"}},defaultVariants:{closeSize:"small"}}),K9=M.forwardRef((({title:e,titleIcon:t,className:n,dialogName:r,showClose:o=!0,closeVariant:i="outsideCard",closeSize:a="big",children:s,titleClassName:u,overlayClassName:l,childrenClassName:c,footerClassName:d,onBack:f,onCloseModal:p,renderFooter:m,onScroll:h,...g},v)=>{const y=G.jsxs(w0,{className:xe(G9({closeVariant:i})),children:[G.jsx(d0,{onClick:p,fill:"currentColor",className:xe(H9({closeSize:a}))}),G.jsx("span",{className:"sr-only",children:"Close"})]});return G.jsxs(q9,{children:[G.jsx(hN,{className:l,onClick:p}),o&&"insideCard"!==i&&y,G.jsxs(Hh,{ref:v,className:xe("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),...g,children:[e&&G.jsxs("h3",{className:xe("flex items-center justify-center gap-xxs border-b border-gray-200 p-m text-center text-lg font-semibold text-gray-700",u),children:[t,e]}),G.jsx("div",{id:r||"dialog-content",className:xe("p-m",c),onScroll:h,children:s}),o&&"insideCard"===i&&y,f&&G.jsx("button",{"data-testid":"dialog-back-button","aria-label":"Back",onClick:f,className:"absolute left-m top-m",children:G.jsx(wO,{color:"var(--gray-400)",size:24})}),G.jsx(mN,{className:xe("empty:hidden",d),children:null==m?void 0:m()})]})]})}));K9.displayName=Hh.displayName;const mN=({className:e,...t})=>G.jsx("div",{className:xe("flex border-t border-gray-200 p-m",e),...t});mN.displayName="DialogFooter";const Y9=M.forwardRef((({className:e,...t},n)=>G.jsx(Av,{ref:n,className:xe("text-lg font-semibold leading-none tracking-tight",e),...t})));Y9.displayName=Av.displayName;const Q9=M.forwardRef((({className:e,...t},n)=>G.jsx(Nv,{ref:n,className:xe("text-sm text-muted-foreground",e),...t})));Q9.displayName=Nv.displayName;const X9=M.forwardRef((({className:e,...t},n)=>G.jsx(Mi,{ref:n,className:xe("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t})));X9.displayName=Mi.displayName;const J9=M.forwardRef((({className:e,...t},n)=>G.jsx("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:G.jsx(Mi.Input,{ref:n,className:xe("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})})));J9.displayName=Mi.Input.displayName;const Z9=M.forwardRef((({className:e,...t},n)=>G.jsx(Mi.List,{ref:n,className:xe("mt-2 max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t})));Z9.displayName=Mi.List.displayName;const eB=M.forwardRef(((e,t)=>G.jsx(Mi.Empty,{ref:t,className:"py-6 text-center text-sm",...e})));eB.displayName=Mi.Empty.displayName;const tB=M.forwardRef((({className:e,...t},n)=>G.jsx(Mi.Group,{ref:n,className:xe("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})));tB.displayName=Mi.Group.displayName;const nB=M.forwardRef((({className:e,...t},n)=>G.jsx(Mi.Separator,{ref:n,className:xe("-mx-1 h-px bg-border",e),...t})));nB.displayName=Mi.Separator.displayName;const rB=M.forwardRef((({className:e,...t},n)=>G.jsx(Mi.Item,{ref:n,className:xe("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 HR(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function vN(...e){return t=>{let n=!1;const r=e.map((e=>{const r=HR(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():HR(e[t],null)}}}}function cp(...e){return M.useCallback(vN(...e),e)}function oB(e,t){const n=M.createContext(t),r=e=>{const{children:t,...r}=e,o=M.useMemo((()=>r),Object.values(r));return G.jsx(n.Provider,{value:o,children:t})};return r.displayName=e+"Provider",[r,function(r){const o=M.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}function iB(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>M.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return M.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=M.createContext(r),i=n.length;n=[...n,r];const a=t=>{var n;const{scope:r,children:a,...s}=t,u=(null==(n=null==r?void 0:r[e])?void 0:n[i])||o,l=M.useMemo((()=>s),Object.values(s));return G.jsx(u.Provider,{value:l,children:a})};return a.displayName=t+"Provider",[a,function(n,a){var s;const u=(null==(s=null==a?void 0:a[e])?void 0:s[i])||o,l=M.useContext(u);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},aB(r,...t)]}function aB(...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 M.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}rB.displayName=Mi.Item.displayName;var Yg=null!=globalThis&&globalThis.document?M.useLayoutEffect:()=>{},sB=M[" useId ".trim().toString()]||(()=>{}),uB=0;function Z_(e){const[t,n]=M.useState(sB());return Yg((()=>{e||n((e=>e??String(uB++)))}),[e]),e||(t?`radix-${t}`:"")}function Jf(e){const t=M.useRef(e);return M.useEffect((()=>{t.current=e})),M.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function lB({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=cB({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=Jf(n);return[a,M.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}function cB({defaultProp:e,onChange:t}){const n=M.useState(e),[r]=n,o=M.useRef(r),i=Jf(t);return M.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}function gN(e){const t=dB(e),n=M.forwardRef(((e,n)=>{const{children:r,...o}=e,i=M.Children.toArray(r),a=i.find(pB);if(a){const e=a.props.children,r=i.map((t=>t===a?M.Children.count(e)>1?M.Children.only(null):M.isValidElement(e)?e.props.children:null:t));return G.jsx(t,{...o,ref:n,children:M.isValidElement(e)?M.cloneElement(e,void 0,r):null})}return G.jsx(t,{...o,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function dB(e){const t=M.forwardRef(((e,t)=>{const{children:n,...r}=e;if(M.isValidElement(n)){const e=mB(n),o=hB(r,n.props);return n.type!==M.Fragment&&(o.ref=t?vN(t,e):e),M.cloneElement(n,o)}return M.Children.count(n)>1?M.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var fB=Symbol("radix.slottable");function pB(e){return M.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===fB}function hB(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 mB(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 vB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],kl=vB.reduce(((e,t)=>{const n=gN(`Primitive.${t}`),r=M.forwardRef(((e,r)=>{const{asChild:o,...i}=e,a=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),G.jsx(a,{...i,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{});function gB(e,t){e&&Cs.flushSync((()=>e.dispatchEvent(t)))}function yB(e,t=(null==globalThis?void 0:globalThis.document)){const n=Jf(e);M.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 KR,wB="DismissableLayer",_S="dismissableLayer.update",bB="dismissableLayer.pointerDownOutside",_B="dismissableLayer.focusOutside",yN=M.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wN=M.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...u}=e,l=M.useContext(yN),[c,d]=M.useState(null),f=(null==c?void 0:c.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,p]=M.useState({}),m=cp(t,(e=>d(e))),h=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=h.indexOf(g),y=c?h.indexOf(c):-1,b=l.layersWithOutsidePointerEventsDisabled.size>0,w=y>=v,x=$B((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==s||s())}),f),_=IB((e=>{const t=e.target;[...l.branches].some((e=>e.contains(t)))||(null==i||i(e),null==a||a(e),e.defaultPrevented||null==s||s())}),f);return yB((e=>{y===l.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),f),M.useEffect((()=>{if(c)return n&&(0===l.layersWithOutsidePointerEventsDisabled.size&&(KR=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),YR(),()=>{n&&1===l.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=KR)}}),[c,f,n,l]),M.useEffect((()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),YR())}),[c,l]),M.useEffect((()=>{const e=()=>p({});return document.addEventListener(_S,e),()=>document.removeEventListener(_S,e)}),[]),G.jsx(kl.div,{...u,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)})}));wN.displayName=wB;var xB="DismissableLayerBranch",SB=M.forwardRef(((e,t)=>{const n=M.useContext(yN),r=M.useRef(null),o=cp(t,r);return M.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),G.jsx(kl.div,{...e,ref:o})}));function $B(e,t=(null==globalThis?void 0:globalThis.document)){const n=Jf(e),r=M.useRef(!1),o=M.useRef((()=>{}));return M.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){bN(bB,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 IB(e,t=(null==globalThis?void 0:globalThis.document)){const n=Jf(e),r=M.useRef(!1);return M.useEffect((()=>{const e=e=>{e.target&&!r.current&&bN(_B,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 YR(){const e=new CustomEvent(_S);document.dispatchEvent(e)}function bN(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?gB(o,i):o.dispatchEvent(i)}SB.displayName=xB;var ex="focusScope.autoFocusOnMount",tx="focusScope.autoFocusOnUnmount",QR={bubbles:!1,cancelable:!0},CB="FocusScope",_N=M.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,u]=M.useState(null),l=Jf(o),c=Jf(i),d=M.useRef(null),f=cp(t,(e=>u(e))),p=M.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;M.useEffect((()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:fd(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.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(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,p.paused]),M.useEffect((()=>{if(s){JR.add(p);const e=document.activeElement;if(!s.contains(e)){const t=new CustomEvent(ex,QR);s.addEventListener(ex,l),s.dispatchEvent(t),t.defaultPrevented||(EB(AB(xN(s)),{select:!0}),document.activeElement===e&&fd(s))}return()=>{s.removeEventListener(ex,l),setTimeout((()=>{const t=new CustomEvent(tx,QR);s.addEventListener(tx,c),s.dispatchEvent(t),t.defaultPrevented||fd(e??document.body,{select:!0}),s.removeEventListener(tx,c),JR.remove(p)}),0)}}}),[s,l,c,p]);const m=M.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]=TB(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 G.jsx(kl.div,{tabIndex:-1,...a,ref:f,onKeyDown:m})}));function EB(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(fd(r,{select:t}),document.activeElement!==n)return}function TB(e){const t=xN(e);return[XR(t,e),XR(t.reverse(),e)]}function xN(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 XR(e,t){for(const n of e)if(!RB(n,{upTo:t}))return n}function RB(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 PB(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&&PB(e)&&t&&e.select()}}_N.displayName=CB;var JR=OB();function OB(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=ZR(e,t),e.unshift(t)},remove(t){var n;e=ZR(e,t),null==(n=e[0])||n.resume()}}}function ZR(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function AB(e){return e.filter((e=>"A"!==e.tagName))}var NB="Portal",SN=M.forwardRef(((e,t)=>{var n;const{container:r,...o}=e,[i,a]=M.useState(!1);Yg((()=>a(!0)),[]);const s=r||i&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return s?n$.createPortal(G.jsx(kl.div,{...o,ref:t}),s):null}));function DB(e,t){return M.useReducer(((e,n)=>t[e][n]??e),e)}SN.displayName=NB;var N0=e=>{const{present:t,children:n}=e,r=MB(t),o="function"==typeof n?n({present:r.isPresent}):M.Children.only(n),i=cp(r.ref,kB(o));return"function"==typeof n||r.isPresent?M.cloneElement(o,{ref:i}):null};function MB(e){const[t,n]=M.useState(),r=M.useRef({}),o=M.useRef(e),i=M.useRef("none"),a=e?"mounted":"unmounted",[s,u]=DB(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return M.useEffect((()=>{const e=Rg(r.current);i.current="mounted"===s?e:"none"}),[s]),Yg((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Rg(t);e?u("MOUNT"):"none"===a||"none"===(null==t?void 0:t.display)?u("UNMOUNT"):u(n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,u]),Yg((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,a=i=>{const a=Rg(r.current).includes(i.animationName);if(i.target===t&&a&&(u("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(i.current=Rg(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:M.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Rg(e){return(null==e?void 0:e.animationName)||"none"}function kB(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)}N0.displayName="Presence";var nx=0;function LB(){M.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??eP()),document.body.insertAdjacentElement("beforeend",e[1]??eP()),nx++,()=>{1===nx&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),nx--}}),[])}function eP(){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 $N=MO(),rx=function(){},D0=M.forwardRef((function(e,t){var n=M.useRef(null),r=M.useState({onScrollCapture:rx,onWheelCapture:rx,onTouchMoveCapture:rx}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,u=e.className,l=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,h=e.allowPinchZoom,g=e.as,v=void 0===g?"div":g,y=e.gapMode,b=d$(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,x=DO([n,t]),_=Yo(Yo({},b),o);return M.createElement(M.Fragment,null,c&&M.createElement(w,{sideCar:$N,removeScrollBar:l,shards:d,noIsolation:p,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:n,gapMode:y}),a?M.cloneElement(M.Children.only(s),Yo(Yo({},_),{ref:x})):M.createElement(v,Yo({},_,{className:u,ref:x}),s))}));D0.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},D0.classNames={fullWidth:cv,zeroRight:lv};var xS=!1;if(typeof window<"u")try{var Pg=Object.defineProperty({},"passive",{get:function(){return xS=!0,!0}});window.addEventListener("test",Pg,Pg),window.removeEventListener("test",Pg,Pg)}catch{xS=!1}var Oh=!!xS&&{passive:!1},BB=function(e){return"TEXTAREA"===e.tagName},IN=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!BB(e)&&"visible"===n[t])},FB=function(e){return IN(e,"overflowY")},jB=function(e){return IN(e,"overflowX")},tP=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host),CN(e,r)){var o=EN(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},zB=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},UB=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},CN=function(e,t){return"v"===e?FB(t):jB(t)},EN=function(e,t){return"v"===e?zB(t):UB(t)},VB=function(e,t){return"h"===e&&"rtl"===t?-1:1},WB=function(e,t,n,r,o){var i=VB(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,u=t.contains(s),l=!1,c=a>0,d=0,f=0;do{var p=EN(e,s),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&CN(e,s)&&(d+=h,f+=m),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return(c&&(Math.abs(d)<1||!o)||!c&&(Math.abs(f)<1||!o))&&(l=!0),l},Og=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nP=function(e){return[e.deltaX,e.deltaY]},rP=function(e){return e&&"current"in e?e.current:e},qB=function(e,t){return e[0]===t[0]&&e[1]===t[1]},GB=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},HB=0,Ah=[];function KB(e){var t=M.useRef([]),n=M.useRef([0,0]),r=M.useRef(),o=M.useState(HB++)[0],i=M.useState(f$)[0],a=M.useRef(e);M.useEffect((function(){a.current=e}),[e]),M.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=NO([e.lockRef.current],(e.shards||[]).map(rP),!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 s=M.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=Og(e),s=n.current,u="deltaX"in e?e.deltaX:s[0]-i[0],l="deltaY"in e?e.deltaY:s[1]-i[1],c=e.target,d=Math.abs(u)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=tP(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=tP(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||l)&&(r.current=o),!o)return!0;var p=r.current||o;return WB(p,t,e,"h"===p?u:l,!0)}),[]),u=M.useCallback((function(e){var n=e;if(Ah.length&&Ah[Ah.length-1]===i){var r="deltaY"in n?nP(n):Og(n),o=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&qB(e.delta,r)}))[0];if(o&&o.should)return void(n.cancelable&&n.preventDefault());if(!o){var u=(a.current.shards||[]).map(rP).filter(Boolean).filter((function(e){return e.contains(n.target)}));(u.length>0?s(n,u[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),l=M.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:YB(r)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),c=M.useCallback((function(e){n.current=Og(e),r.current=void 0}),[]),d=M.useCallback((function(t){l(t.type,nP(t),t.target,s(t,e.lockRef.current))}),[]),f=M.useCallback((function(t){l(t.type,Og(t),t.target,s(t,e.lockRef.current))}),[]);M.useEffect((function(){return Ah.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",u,Oh),document.addEventListener("touchmove",u,Oh),document.addEventListener("touchstart",c,Oh),function(){Ah=Ah.filter((function(e){return e!==i})),document.removeEventListener("wheel",u,Oh),document.removeEventListener("touchmove",u,Oh),document.removeEventListener("touchstart",c,Oh)}}),[]);var p=e.removeScrollBar,m=e.inert;return M.createElement(M.Fragment,null,m?M.createElement(i,{styles:GB(o)}):null,p?M.createElement(FO,{gapMode:e.gapMode}):null)}function YB(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const QB=LO($N,KB);var TN=M.forwardRef((function(e,t){return M.createElement(D0,Yo({},e,{ref:t,sideCar:QB}))}));TN.classNames=D0.classNames;var U$="Dialog",[RN,nJ]=iB(U$),[XB,Ts]=RN(U$),PN=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=M.useRef(null),u=M.useRef(null),[l=!1,c]=lB({prop:r,defaultProp:o,onChange:i});return G.jsx(XB,{scope:t,triggerRef:s,contentRef:u,contentId:Z_(),titleId:Z_(),descriptionId:Z_(),open:l,onOpenChange:c,onOpenToggle:M.useCallback((()=>c((e=>!e))),[c]),modal:a,children:n})};PN.displayName=U$;var ON="DialogTrigger",AN=M.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ts(ON,n),i=cp(t,o.triggerRef);return G.jsx(kl.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":q$(o.open),...r,ref:i,onClick:hd(e.onClick,o.onOpenToggle)})}));AN.displayName=ON;var V$="DialogPortal",[JB,NN]=RN(V$,{forceMount:void 0}),DN=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Ts(V$,t);return G.jsx(JB,{scope:t,forceMount:n,children:M.Children.map(r,(e=>G.jsx(N0,{present:n||i.open,children:G.jsx(SN,{asChild:!0,container:o,children:e})})))})};DN.displayName=V$;var Qg="DialogOverlay",MN=M.forwardRef(((e,t)=>{const n=NN(Qg,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Ts(Qg,e.__scopeDialog);return i.modal?G.jsx(N0,{present:r||i.open,children:G.jsx(eF,{...o,ref:t})}):null}));MN.displayName=Qg;var ZB=gN("DialogOverlay.RemoveScroll"),eF=M.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ts(Qg,n);return G.jsx(TN,{as:ZB,allowPinchZoom:!0,shards:[o.contentRef],children:G.jsx(kl.div,{"data-state":q$(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),Zf="DialogContent",kN=M.forwardRef(((e,t)=>{const n=NN(Zf,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Ts(Zf,e.__scopeDialog);return G.jsx(N0,{present:r||i.open,children:i.modal?G.jsx(tF,{...o,ref:t}):G.jsx(nF,{...o,ref:t})})}));kN.displayName=Zf;var tF=M.forwardRef(((e,t)=>{const n=Ts(Zf,e.__scopeDialog),r=M.useRef(null),o=cp(t,n.contentRef,r);return M.useEffect((()=>{const e=r.current;if(e)return g0(e)}),[]),G.jsx(LN,{...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()))})})),nF=M.forwardRef(((e,t)=>{const n=Ts(Zf,e.__scopeDialog),r=M.useRef(!1),o=M.useRef(!1);return G.jsx(LN,{...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 s=t.target;(null==(a=n.triggerRef.current)?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})})),LN=M.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=Ts(Zf,n),u=M.useRef(null),l=cp(t,u);return LB(),G.jsxs(G.Fragment,{children:[G.jsx(_N,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:G.jsx(wN,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":q$(s.open),...a,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),G.jsxs(G.Fragment,{children:[G.jsx(rF,{titleId:s.titleId}),G.jsx(iF,{contentRef:u,descriptionId:s.descriptionId})]})]})})),W$="DialogTitle",BN=M.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ts(W$,n);return G.jsx(kl.h2,{id:o.titleId,...r,ref:t})}));BN.displayName=W$;var FN="DialogDescription",jN=M.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ts(FN,n);return G.jsx(kl.p,{id:o.descriptionId,...r,ref:t})}));jN.displayName=FN;var zN="DialogClose",UN=M.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ts(zN,n);return G.jsx(kl.button,{type:"button",...r,ref:t,onClick:hd(e.onClick,(()=>o.onOpenChange(!1)))})}));function q$(e){return e?"open":"closed"}UN.displayName=zN;var VN="DialogTitleWarning",[rJ,WN]=oB(VN,{contentName:Zf,titleName:W$,docsSlug:"dialog"}),rF=({titleId:e})=>{const t=WN(VN),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 M.useEffect((()=>{e&&(document.getElementById(e)||console.error(n))}),[n,e]),null},oF="DialogDescriptionWarning",iF=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${WN(oF).contentName}}.`;return M.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},aF=PN,sF=AN,uF=DN,lF=MN,cF=kN,dF=BN,fF=jN,pF=UN;function hF(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 qN=ge.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}),Yh=()=>{const e=ge.useContext(qN);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};hF("[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 mF=24,vF=typeof window<"u"?ip:Qe;function oP(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function gF(){return G$(/^Mac/)}function yF(){return G$(/^iPhone/)}function iP(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function wF(){return G$(/^iPad/)||gF()&&navigator.maxTouchPoints>1}function GN(){return yF()||wF()}function G$(e){return typeof window<"u"&&null!=window.navigator?e.test(window.navigator.platform):void 0}const ox=typeof document<"u"&&window.visualViewport;function aP(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function HN(e){for(aP(e)&&(e=e.parentElement);e&&!aP(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const bF=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ix,Ag=0;function _F(e={}){let{isDisabled:t}=e;vF((()=>{if(!t)return Ag++,1===Ag&&GN()&&(ix=xF()),()=>{Ag--,0===Ag&&(null==ix||ix())}}),[t])}function xF(){let e,t=0,n=window.pageXOffset,r=window.pageYOffset,o=oP(SF(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"));window.scrollTo(0,0);let i=oP(Jm(document,"touchstart",(n=>{e=HN(n.target),(e!==document.documentElement||e!==document.body)&&(t=n.changedTouches[0].pageY)}),{passive:!1,capture:!0}),Jm(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}),Jm(document,"touchend",(e=>{let t=e.target;SS(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame((()=>{t.style.transform=""})))}),{passive:!1,capture:!0}),Jm(document,"focus",(e=>{let t=e.target;SS(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",ox&&(ox.height<window.innerHeight?requestAnimationFrame((()=>{sP(t)})):ox.addEventListener("resize",(()=>sP(t)),{once:!0}))})))}),!0),Jm(window,"scroll",(()=>{window.scrollTo(0,0)})));return()=>{o(),i(),window.scrollTo(n,r)}}function SF(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Jm(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function sP(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=HN(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 SS(e){return e instanceof HTMLInputElement&&!bF.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function $F(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function IF(...e){return t=>e.forEach((e=>$F(e,t)))}function KN(...e){return M.useCallback(IF(...e),e)}const YN=new WeakMap;function eo(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&&YN.set(e,r)}function CF(e,t){if(!(e&&e instanceof HTMLElement))return;let n=YN.get(e);n&&(e.style[t]=n[t])}const to=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(", ")[to(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[to(t)?5:4]):null)}function EF(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 TF(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}const rr={DURATION:.5,EASE:[.32,.72,0,1]},QN=.4,RF=.25,PF=100,XN=8,Lf=16,$S=26,sx="vaul-dragging";function JN(e){const t=ge.useRef(e);return ge.useEffect((()=>{t.current=e})),ge.useMemo((()=>(...e)=>null==t.current?void 0:t.current.call(t,...e)),[])}function OF({defaultProp:e,onChange:t}){const n=ge.useState(e),[r]=n,o=ge.useRef(r),i=JN(t);return ge.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}function ZN({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=OF({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=JN(n);return[a,ge.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}function AF({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:i,onSnapPointChange:a,direction:s="bottom",container:u,snapToSequentialPoint:l}){const[c,d]=ZN({prop:e,defaultProp:null==n?void 0:n[0],onChange:t}),[f,p]=ge.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);ge.useEffect((()=>{function e(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]);const m=ge.useMemo((()=>c===(null==n?void 0:n[n.length-1])||null),[n,c]),h=ge.useMemo((()=>null==n?void 0:n.findIndex((e=>e===c))),[n,c]),g=n&&n.length>0&&(i||0===i)&&!Number.isNaN(i)&&n[i]===c||!n,v=ge.useMemo((()=>{const e=u?{width:u.getBoundingClientRect().width,height:u.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)),to(s)){const o=n?r:f?t*e.height:0;return f?"bottom"===s?e.height-o:-e.height+o:o}const o=n?r:f?t*e.width:0;return f?"right"===s?e.width-o:-e.width+o:o})))?t:[]}),[n,f,u]),y=ge.useMemo((()=>null!==h?null==v?void 0:v[h]:null),[v,h]),b=ge.useCallback((e=>{var t;const u=null!=(t=null==v?void 0:v.findIndex((t=>t===e)))?t:null;a(u),eo(r.current,{transition:`transform ${rr.DURATION}s cubic-bezier(${rr.EASE.join(",")})`,transform:to(s)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),v&&u!==v.length-1&&u!==i&&u<i?eo(o.current,{transition:`opacity ${rr.DURATION}s cubic-bezier(${rr.EASE.join(",")})`,opacity:"0"}):eo(o.current,{transition:`opacity ${rr.DURATION}s cubic-bezier(${rr.EASE.join(",")})`,opacity:"1"}),d(null==n?void 0:n[Math.max(u,0)])}),[r.current,n,v,i,o,d]);return ge.useEffect((()=>{if(c||e){var t;const r=null!=(t=null==n?void 0:n.findIndex((t=>t===e||t===c)))?t:-1;v&&-1!==r&&"number"==typeof v[r]&&b(v[r])}}),[c,e,n,v,b]),{isLastSnapPoint:m,activeSnapPoint:c,shouldFade:g,getPercentageDragged:function(e,t){if(!n||"number"!=typeof h||!v||void 0===i)return null;const r=h===i-1;if(h>=i&&t)return 0;if(r&&!t)return 1;if(!g&&!r)return null;const o=r?h+1:h-1,a=r?v[o]-v[o-1]:v[o+1]-v[o],s=e/Math.abs(a);return r?1-s:s},setActiveSnapPoint:d,activeSnapPointIndex:h,onRelease:function({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:a}){if(void 0===i)return;const u="bottom"===s||"right"===s?(y??0)-e:(y??0)+e,c=0===h,d=e>0;if(h===i-1&&eo(o.current,{transition:`opacity ${rr.DURATION}s cubic-bezier(${rr.EASE.join(",")})`}),!l&&r>2&&!d)return void(a?t():b(v[0]));if(!l&&r>2&&d&&v&&n)return void b(v[n.length-1]);const f=null==v?void 0:v.reduce(((e,t)=>"number"!=typeof e||"number"!=typeof t?e:Math.abs(t-u)<Math.abs(e-u)?t:e)),p=to(s)?window.innerHeight:window.innerWidth;if(r>QN&&Math.abs(e)<.4*p){const e=d?1:-1;if(e>0&&m)return void b(v[n.length-1]);if(c&&e<0&&a&&t(),null===h)return;b(v[h+e])}else b(f)},onDrag:function({draggedDistance:e}){if(null===y)return;const t="bottom"===s||"right"===s?y-e:y+e;("bottom"===s||"right"===s)&&t<v[v.length-1]||("top"===s||"left"===s)&&t>v[v.length-1]||eo(r.current,{transform:to(s)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})},snapPointsOffset:v}}const NF=()=>()=>{};function DF(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=Yh(),i=ge.useRef(null),a=An((()=>document.body.style.backgroundColor),[]);function s(){return(window.innerWidth-26)/window.innerWidth}ge.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;TF(r&&!o?ax(document.body,{background:"black"}):NF,ax(t,{transformOrigin:to(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${rr.DURATION}s`,transitionTimingFunction:`cubic-bezier(${rr.EASE.join(",")})`}));const n=ax(t,{borderRadius:"8px",overflow:"hidden",...to(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) 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*rr.DURATION)}}}),[t,n,a])}let Zm=null;function MF({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:i}){const[a,s]=ge.useState((()=>typeof window<"u"?window.location.href:"")),u=ge.useRef(0),l=ge.useCallback((()=>{if(iP()&&null===Zm&&e&&!i){Zm={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:-u.current+"px",left:-e+"px",right:"0px",height:"auto"}),window.setTimeout((()=>window.requestAnimationFrame((()=>{const e=t-window.innerHeight;e&&u.current>=t&&(document.body.style.top=-(u.current+e)+"px")}))),300)}}),[e]),c=ge.useCallback((()=>{if(iP()&&null!==Zm&&!i){const e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Zm),window.requestAnimationFrame((()=>{o&&a!==window.location.href?s(window.location.href):window.scrollTo(t,e)})),Zm=null}}),[a]);return ge.useEffect((()=>{function e(){u.current=window.scrollY}return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[]),ge.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 eD({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:o,snapPoints:i,shouldScaleBackground:a=!1,setBackgroundColorOnScale:s=!0,closeThreshold:u=RF,scrollLockTimeout:l=PF,dismissible:c=!0,handleOnly:d=!1,fadeFromIndex:f=i&&i.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:h,modal:g=!0,onClose:v,nested:y,noBodyStyles:b,direction:w="bottom",defaultOpen:x=!1,disablePreventScroll:_=!0,snapToSequentialPoint:S=!1,preventScrollRestoration:A=!1,repositionInputs:I=!0,onAnimationEnd:E,container:k,autoFocus:M=!1}){var C,N;const[P=!1,O]=ZN({defaultProp:x,prop:e,onChange:e=>{null==t||t(e),!e&&!y&&ue(),setTimeout((()=>{null==E||E(e)}),1e3*rr.DURATION),e&&!g&&typeof window<"u"&&window.requestAnimationFrame((()=>{document.body.style.pointerEvents="auto"})),e||(document.body.style.pointerEvents="auto")}}),[T,R]=ge.useState(!1),[D,j]=ge.useState(!1),[q,L]=ge.useState(!1),z=ge.useRef(null),$=ge.useRef(null),B=ge.useRef(null),F=ge.useRef(null),V=ge.useRef(null),G=ge.useRef(!1),U=ge.useRef(null),W=ge.useRef(0),Q=ge.useRef(!1),H=ge.useRef(0),K=ge.useRef(null),Y=ge.useRef((null==(C=K.current)?void 0:C.getBoundingClientRect().height)||0),X=ge.useRef((null==(N=K.current)?void 0:N.getBoundingClientRect().width)||0),J=ge.useRef(0),Z=ge.useCallback((e=>{i&&e===oe.length-1&&($.current=new Date)}),[]),{activeSnapPoint:ee,activeSnapPointIndex:te,setActiveSnapPoint:ne,onRelease:re,snapPointsOffset:oe,onDrag:ie,shouldFade:ae,getPercentageDragged:se}=AF({snapPoints:i,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:K,fadeFromIndex:f,overlayRef:z,onSnapPointChange:Z,direction:w,container:k,snapToSequentialPoint:S});_F({isDisabled:!P||D||!g||q||!T||!I||!_});const{restorePositionSetting:ue}=MF({isOpen:P,modal:g,nested:y,hasBeenOpened:T,preventScrollRestoration:A,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=K.current?Ng(K.current,w):null,s=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($.current&&s.getTime()-$.current.getTime()<500)return!1;if(null!==a&&("bottom"===w?a>0:a<0))return!0;if(i&&i.length>0)return!1;if(s.getTime()-(null==(r=V.current)?void 0:r.getTime())<l&&0===a||t)return V.current=s,!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||!K.current||(K.current.classList.remove(sx),G.current=!1,j(!1),F.current=new Date),null==v||v(),e||O(!1),setTimeout((()=>{i&&ne(i[0])}),1e3*rr.DURATION)}function fe(){if(!K.current)return;const e=document.querySelector("[data-vaul-drawer-wrapper]"),t=Ng(K.current,w);eo(K.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${rr.DURATION}s cubic-bezier(${rr.EASE.join(",")})`}),eo(z.current,{transition:`opacity ${rr.DURATION}s cubic-bezier(${rr.EASE.join(",")})`,opacity:"1"}),a&&t&&t>0&&P&&eo(e,{borderRadius:"8px",overflow:"hidden",...to(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:`${rr.DURATION}s`,transitionTimingFunction:`cubic-bezier(${rr.EASE.join(",")})`},!0)}return ge.useEffect((()=>{var e;function t(){if(!K.current||!I)return;if(SS(document.activeElement)||Q.current){var e;const t=(null==(e=window.visualViewport)?void 0:e.height)||0,n=window.innerHeight;let r=n-t;const o=K.current.getBoundingClientRect().height||0,a=o>.8*n;J.current||(J.current=o);const s=K.current.getBoundingClientRect().top;if(Math.abs(H.current-r)>60&&(Q.current=!Q.current),i&&i.length>0&&oe&&te){r+=oe[te]||0}if(H.current=r,o>t||Q.current){const e=K.current.getBoundingClientRect().height;let n=e;e>t&&(n=t-(a?s:26)),K.current.style.height=h?e-Math.max(r,0)+"px":`${Math.max(n,t-s)}px`}else K.current.style.height=`${J.current}px`;i&&i.length>0&&!Q.current?K.current.style.bottom="0px":K.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]),ge.useEffect((()=>(P&&(eo(document.documentElement,{scrollBehavior:"auto"}),$.current=new Date),()=>{CF(document.documentElement,"scrollBehavior")})),[P]),ge.createElement(aF,{defaultOpen:x,onOpenChange:e=>{!c&&!e||(e?R(!0):de(!0),O(e))},open:P},ge.createElement(qN.Provider,{value:{activeSnapPoint:ee,snapPoints:i,setActiveSnapPoint:ne,drawerRef:K,overlayRef:z,onOpenChange:t,onPress:function(e){var t,n;!c&&!i||K.current&&!K.current.contains(e.target)||(Y.current=(null==(t=K.current)?void 0:t.getBoundingClientRect().height)||0,X.current=(null==(n=K.current)?void 0:n.getBoundingClientRect().width)||0,j(!0),B.current=new Date,GN()&&window.addEventListener("touchend",(()=>G.current=!1),{once:!0}),e.target.setPointerCapture(e.pointerId),W.current=to(w)?e.pageY:e.pageX)},onRelease:function(e){if(!D||!K.current)return;K.current.classList.remove(sx),G.current=!1,j(!1),F.current=new Date;const t=Ng(K.current,w);if(!ce(e.target,!1)||!t||Number.isNaN(t)||null===B.current)return;const n=F.current.getTime()-B.current.getTime(),r=W.current-(to(w)?e.pageY:e.pageX),a=Math.abs(r)/n;if(a>.05&&(L(!0),setTimeout((()=>{L(!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>QN)return de(),void(null==o||o(e,!1));var s;const l=Math.min(null!=(s=K.current.getBoundingClientRect().height)?s:0,window.innerHeight);var d;const f=Math.min(null!=(d=K.current.getBoundingClientRect().width)?d:0,window.innerWidth),p="left"===w||"right"===w;if(Math.abs(t)>=(p?f:l)*u)return de(),void(null==o||o(e,!1));null==o||o(e,!0),fe()},onDrag:function(e){if(K.current&&D){const t="bottom"===w||"right"===w?1:-1,n=(W.current-(to(w)?e.pageY:e.pageX))*t,o=n>0,s=i&&!c&&!o;if(s&&0===te)return;const u=Math.abs(n),l=document.querySelector("[data-vaul-drawer-wrapper]");let d=u/("bottom"===w||"top"===w?Y.current:X.current);const p=se(u,o);if(null!==p&&(d=p),s&&d>=1||!G.current&&!ce(e.target,o))return;if(K.current.classList.add(sx),G.current=!0,eo(K.current,{transition:"none"}),eo(z.current,{transition:"none"}),i&&ie({draggedDistance:n}),o&&!i){const e=EF(n),r=Math.min(-1*e,0)*t;return void eo(K.current,{transform:to(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),eo(z.current,{opacity:`${m}`,transition:"none"},!0)),l&&z.current&&a){const e=Math.min(le()+d*(1-le()),1),t=8-8*d,n=Math.max(0,14-14*d);eo(l,{borderRadius:`${t}px`,transform:to(w)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:"none"},!0)}if(!i){const e=u*t;eo(K.current,{transform:to(w)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}},dismissible:c,handleOnly:d,isOpen:P,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;eo(K.current,{transform:to(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;U.current&&window.clearTimeout(U.current),eo(K.current,{transition:`transform ${rr.DURATION}s cubic-bezier(${rr.EASE.join(",")})`,transform:`scale(${t}) translate3d(0, ${n}px, 0)`}),!e&&K.current&&(U.current=setTimeout((()=>{const e=Ng(K.current,w);eo(K.current,{transition:"none",transform:to(w)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}),500))},onNestedRelease:function(e,t){const n=to(w)?window.innerHeight:window.innerWidth,r=t?(n-16)/n:1,o=t?-16:0;t&&eo(K.current,{transition:`transform ${rr.DURATION}s cubic-bezier(${rr.EASE.join(",")})`,transform:to(w)?`scale(${r}) translate3d(0, ${o}px, 0)`:`scale(${r}) translate3d(${o}px, 0, 0)`})},keyboardIsOpen:Q,modal:g,snapPointsOffset:oe,direction:w,shouldScaleBackground:a,setBackgroundColorOnScale:s,noBodyStyles:b,container:k,autoFocus:M}},n))}const tD=ge.forwardRef((function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:i,isOpen:a,modal:s}=Yh(),u=KN(t,n),l=r&&r.length>0;return s?ge.createElement(lF,{onMouseUp:o,ref:u,"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)}));tD.displayName="Drawer.Overlay";const nD=ge.forwardRef((function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},o){const{drawerRef:i,onPress:a,onRelease:s,onDrag:u,keyboardIsOpen:l,snapPointsOffset:c,modal:d,isOpen:f,direction:p,snapPoints:m,container:h,handleOnly:g,autoFocus:v}=Yh(),[y,b]=ge.useState(!1),w=KN(o,i),x=ge.useRef(null),_=ge.useRef(null),S=ge.useRef(!1),A=m&&m.length>0;DF();function I(e){x.current=null,S.current=!1,s(e)}return ge.useEffect((()=>{A&&window.requestAnimationFrame((()=>{b(!0)}))}),[]),ge.createElement(cF,{"data-vaul-drawer-direction":p,"data-vaul-drawer":"","data-vaul-delayed-snap-points":y?"true":"false","data-vaul-snap-points":f&&A?"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=>{g||(null==r.onPointerDown||r.onPointerDown.call(r,e),x.current={x:e.pageX,y:e.pageY},a(e))},onOpenAutoFocus:e=>{null==n||n(e),v||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,g||(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(S.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 S.current=!0,!0})({x:n,y:t},p,o)?u(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,S.current=!1,s(e)},onPointerOut:e=>{null==r.onPointerOut||r.onPointerOut.call(r,e),I(_.current)},onContextMenu:e=>{null==r.onContextMenu||r.onContextMenu.call(r,e),I(_.current)}})}));nD.displayName="Drawer.Content";const kF=250,LF=120,rD=ge.forwardRef((function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:o,isDragging:i,snapPoints:a,activeSnapPoint:s,setActiveSnapPoint:u,dismissible:l,handleOnly:c,isOpen:d,onPress:f,onDrag:p}=Yh(),m=ge.useRef(null),h=ge.useRef(!1);function g(){window.clearTimeout(m.current),h.current=!1}return ge.createElement("div",{onClick:function(){h.current?g():window.setTimeout((()=>{!function(){if(i||e||h.current)return void g();if(g(),(!a||0===a.length)&&l)return void o();if(s===a[a.length-1]&&l)return void o();const t=a.findIndex((e=>e===s));if(-1===t)return;const n=a[t+1];u(n)}()}),LF)},onPointerCancel:g,onPointerDown:e=>{c&&f(e),m.current=window.setTimeout((()=>{h.current=!0}),kF)},onPointerMove:e=>{c&&p(e)},ref:r,"data-vaul-drawer-visible":d?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},ge.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))}));function BF({onDrag:e,onOpenChange:t,...n}){const{onNestedDrag:r,onNestedOpenChange:o,onNestedRelease:i}=Yh();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return ge.createElement(eD,{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 FF(e){const t=Yh(),{container:n=t.container,...r}=e;return ge.createElement(uF,{container:n,...r})}rD.displayName="Drawer.Handle";const $d={Root:eD,NestedRoot:BF,Content:nD,Overlay:tD,Trigger:sF,Portal:FF,Handle:rD,Close:pF,Title:dF,Description:fF},jF=$d.Portal,oD=M.forwardRef((({className:e,...t},n)=>G.jsx($d.Overlay,{ref:n,className:xe("fixed inset-0 z-50 bg-black/5",e),...t})));oD.displayName=$d.Overlay.displayName;const zF=M.forwardRef((({className:e,children:t,direction:n="bottom",...r},o)=>G.jsxs(jF,{children:[G.jsx(oD,{}),G.jsxs($d.Content,{ref:o,className:xe("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&&G.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]})));zF.displayName="DrawerContent";const UF=M.forwardRef((({className:e,...t},n)=>G.jsx($d.Title,{ref:n,className:xe("text-lg font-semibold leading-none tracking-tight",e),...t})));UF.displayName=$d.Title.displayName;const VF=M.forwardRef((({className:e,...t},n)=>G.jsx($d.Description,{ref:n,className:xe("text-sm text-muted-foreground",e),...t})));function H$(e){const t=e+"CollectionProvider",[n,r]=di(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=e+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=ge.useRef(null),i=ge.useRef(new Map).current;return ge.createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},Slot:ge.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=Zt(t,i(a,n).collectionRef);return ge.createElement(Kf,{ref:o},r)})),ItemSlot:ge.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=ge.useRef(null),l=Zt(t,a),c=i(s,n);return ge.useEffect((()=>(c.itemMap.set(a,{ref:a,...o}),()=>{c.itemMap.delete(a)}))),ge.createElement(Kf,{[u]:"",ref:l},r)}))},function(t){const n=i(e+"CollectionConsumer",t);return ge.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}VF.displayName=$d.Description.displayName;const WF=Tl(void 0);function K$(e){const t=op(WF);return e||t||"ltr"}const qF=["top","right","bottom","left"],yd=Math.min,aa=Math.max,Xg=Math.round,Dg=Math.floor,wd=e=>({x:e,y:e}),GF={left:"right",right:"left",bottom:"top",top:"bottom"},HF={start:"end",end:"start"};function IS(e,t,n){return aa(e,yd(t,n))}function Rl(e,t){return"function"==typeof e?e(t):e}function Pl(e){return e.split("-")[0]}function Qh(e){return e.split("-")[1]}function Y$(e){return"x"===e?"y":"x"}function Q$(e){return"y"===e?"height":"width"}function bd(e){return["top","bottom"].includes(Pl(e))?"y":"x"}function X$(e){return Y$(bd(e))}function KF(e,t,n){void 0===n&&(n=!1);const r=Qh(e),o=X$(e),i=Q$(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 YF(e){const t=Jg(e);return[CS(e),t,CS(t)]}function CS(e){return e.replace(/start|end/g,(e=>HF[e]))}function QF(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 XF(e,t,n,r){const o=Qh(e);let i=QF(Pl(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(CS)))),i}function Jg(e){return e.replace(/left|right|bottom|top/g,(e=>GF[e]))}function JF(e){return{top:0,right:0,bottom:0,left:0,...e}}function iD(e){return"number"!=typeof e?JF(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 uP(e,t,n){let{reference:r,floating:o}=e;const i=bd(t),a=X$(t),s=Q$(a),u=Pl(t),l="y"===i,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(u){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 ZF=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),u=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=uP(l,r,u),f=r,p={},m=0;for(let n=0;n<s.length;n++){const{name:i,fn:h}=s[n],{x:g,y:v,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=g??c,d=v??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}=uP(l,f,u))),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:s,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Rl(t,e),m=iD(p),h=s[f?"floating"===d?"reference":"floating":d],g=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(s.floating)),boundary:l,rootBoundary:c,strategy:u})),v="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(s.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:s,rect:v,offsetParent:y,strategy:u}):v);return{top:(g.top-w.top+m.top)/b.y,bottom:(w.bottom-g.bottom+m.bottom)/b.y,left:(g.left-w.left+m.left)/b.x,right:(w.right-g.right+m.right)/b.x}}const ej=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:u}=t,{element:l,padding:c=0}=Rl(e,t)||{};if(null==l)return{};const d=iD(c),f={x:n,y:r},p=X$(o),m=Q$(p),h=await a.getDimensions(l),g="y"===p,v=g?"top":"left",y=g?"bottom":"right",b=g?"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 S=_?_[b]:0;(!S||!await(null==a.isElement?void 0:a.isElement(_)))&&(S=s.floating[b]||i.floating[m]);const A=w/2-x/2,I=S/2-h[m]/2-1,E=yd(d[v],I),k=yd(d[y],I),M=E,C=S-h[m]-k,N=S/2-h[m]/2+A,P=IS(M,N,C),O=!u.arrow&&null!=Qh(o)&&N!==P&&i.reference[m]/2-(N<M?E:k)-h[m]/2<0,T=O?N<M?N-M:N-C:0;return{[p]:f[p]+T,data:{[p]:P,centerOffset:N-P-T,...O&&{alignmentOffset:T}},reset:O}}}),tj=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:s,platform:u,elements:l}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=Rl(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Pl(o),y=bd(s),b=Pl(s)===s,w=await(null==u.isRTL?void 0:u.isRTL(l.floating)),x=f||(b||!h?[Jg(s)]:YF(s)),_="none"!==m;!f&&_&&x.push(...XF(s,h,m,w));const S=[s,...x],A=await bv(t,g),I=[];let E=(null==(r=i.flip)?void 0:r.overflows)||[];if(c&&I.push(A[v]),d){const e=KF(o,a,w);I.push(A[e[0]],A[e[1]])}if(E=[...E,{placement:o,overflows:I}],!I.every((e=>e<=0))){var k,M;const e=((null==(k=i.flip)?void 0:k.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:E},reset:{placement:t}};let n=null==(M=E.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:M.placement;if(!n)switch(p){case"bestFit":{var C;const e=null==(C=E.filter((e=>{if(_){const t=bd(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:C[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}};function lP(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function cP(e){return qF.some((t=>e[t]>=0))}const nj=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Rl(e,t);switch(r){case"referenceHidden":{const e=lP(await bv(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:cP(e)}}}case"escaped":{const e=lP(await bv(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:cP(e)}}}default:return{}}}}};async function rj(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Pl(n),s=Qh(n),u="y"===bd(n),l=["left","top"].includes(a)?-1:1,c=i&&u?-1:1,d=Rl(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 s&&"number"==typeof m&&(p="end"===s?-1*m:m),u?{x:p*c,y:f*l}:{x:f*l,y:p*c}}const oj=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:s}=t,u=await rj(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:a}}}}},ij=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:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=Rl(e,t),l={x:n,y:r},c=await bv(t,u),d=bd(Pl(o)),f=Y$(d);let p=l[f],m=l[d];if(i){const e="y"===f?"bottom":"right";p=IS(p+c["y"===f?"top":"left"],p,p-c[e])}if(a){const e="y"===d?"bottom":"right";m=IS(m+c["y"===d?"top":"left"],m,m-c[e])}const h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:a}}}}}},aj=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:u=!0,crossAxis:l=!0}=Rl(e,t),c={x:n,y:r},d=bd(o),f=Y$(d);let p=c[f],m=c[d];const h=Rl(s,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var v,y;const e="y"===f?"width":"height",t=["top","left"].includes(Pl(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?g.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:s}=t,{apply:u=()=>{},...l}=Rl(e,t),c=await bv(t,l),d=Pl(o),f=Qh(o),p="y"===bd(o),{width:m,height:h}=i.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=f===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,g="end"===f?"top":"bottom");const y=h-c.top-c.bottom,b=m-c.left-c.right,w=yd(h-c[g],y),x=yd(m-c[v],b),_=!t.middlewareData.shift;let S=w,A=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(A=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=y),_&&!f){const e=aa(c.left,0),t=aa(c.right,0),n=aa(c.top,0),r=aa(c.bottom,0);p?A=m-2*(0!==e||0!==t?e+t:aa(c.left,c.right)):S=h-2*(0!==n||0!==r?n+r:aa(c.top,c.bottom))}await u({...t,availableWidth:A,availableHeight:S});const I=await a.getDimensions(s.floating);return m!==I.width||h!==I.height?{reset:{rects:!0}}:{}}}};function M0(){return typeof window<"u"}function _d(e){return aD(e)?(e.nodeName||"").toLowerCase():"#document"}function ua(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ll(e){var t;return null==(t=(aD(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function aD(e){return!!M0()&&(e instanceof Node||e instanceof ua(e).Node)}function wu(e){return!!M0()&&(e instanceof Element||e instanceof ua(e).Element)}function bu(e){return!!M0()&&(e instanceof HTMLElement||e instanceof ua(e).HTMLElement)}function dP(e){return!(!M0()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof ua(e).ShadowRoot)}function Fv(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Va(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function uj(e){return["table","td","th"].includes(_d(e))}function lj(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch{return!1}}))}function J$(e){const t=Z$(),n=wu(e)?Va(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 sD(e){let t=zh(e);for(;bu(t)&&!k0(t);){if(J$(t))return t;if(lj(t))return null;t=zh(t)}return null}function Z$(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function k0(e){return["html","body","#document"].includes(_d(e))}function Va(e){return ua(e).getComputedStyle(e)}function L0(e){return wu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zh(e){if("html"===_d(e))return e;const t=e.assignedSlot||e.parentNode||dP(e)&&e.host||Ll(e);return dP(t)?t.host:t}function uD(e){const t=zh(e);return k0(t)?e.ownerDocument?e.ownerDocument.body:e.body:bu(t)&&Fv(t)?t:uD(t)}function _v(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=uD(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=ua(o);if(i){const e=cj(a);return t.concat(a,a.visualViewport||[],Fv(o)?o:[],e&&n?_v(e):[])}return t.concat(o,_v(o,[],n))}function cj(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lD(e){const t=Va(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=bu(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Xg(n)!==i||Xg(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function eI(e){return wu(e)?e:e.contextElement}function Lh(e){const t=eI(e);if(!bu(t))return wd(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=lD(t);let a=(i?Xg(n.width):n.width)/r,s=(i?Xg(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const dj=wd(0);function cD(e){const t=ua(e);return Z$()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:dj}function fj(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ua(e))&&t}function ep(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=eI(e);let a=wd(1);t&&(r?wu(r)&&(a=Lh(r)):a=Lh(e));const s=fj(i,n,r)?cD(i):wd(0);let u=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=ua(i),t=r&&wu(r)?ua(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Lh(n),t=n.getBoundingClientRect(),r=Va(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,l*=e.y,c*=e.x,d*=e.y,u+=o,l+=i,n=ua(n).frameElement}}return Zg({width:c,height:d,x:u,y:l})}const pj=[":popover-open",":modal"];function dD(e){let t=!1,n=0,r=0;if(pj.forEach((n=>{!function(n){try{t=t||e.matches(n)}catch{}}(n)})),t){const t=sD(e);if(t){const e=t.getBoundingClientRect();n=e.x,r=e.y}}return[t,n,r]}function hj(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=Ll(r),[a]=t?dD(t.floating):[!1];if(r===i||a)return n;let s={scrollLeft:0,scrollTop:0},u=wd(1);const l=wd(0),c=bu(r);if((c||!c&&"fixed"!==o)&&(("body"!==_d(r)||Fv(i))&&(s=L0(r)),bu(r))){const e=ep(r);u=Lh(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+l.x,y:n.y*u.y-s.scrollTop*u.y+l.y}}function mj(e){return Array.from(e.getClientRects())}function fD(e){return ep(Ll(e)).left+L0(e).scrollLeft}function vj(e){const t=Ll(e),n=L0(e),r=e.ownerDocument.body,o=aa(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=aa(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+fD(e);const s=-n.scrollTop;return"rtl"===Va(r).direction&&(a+=aa(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function gj(e,t){const n=ua(e),r=Ll(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,u=0;if(o){i=o.width,a=o.height;const e=Z$();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:s,y:u}}function yj(e,t){const n=ep(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=bu(e)?Lh(e):wd(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}function fP(e,t,n){let r;if("viewport"===t)r=gj(e,n);else if("document"===t)r=vj(Ll(e));else if(wu(t))r=yj(t,n);else{const n=cD(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Zg(r)}function pD(e,t){const n=zh(e);return!(n===t||!wu(n)||k0(n))&&("fixed"===Va(n).position||pD(n,t))}function wj(e,t){const n=t.get(e);if(n)return n;let r=_v(e,[],!1).filter((e=>wu(e)&&"body"!==_d(e))),o=null;const i="fixed"===Va(e).position;let a=i?zh(e):e;for(;wu(a)&&!k0(a);){const t=Va(a),n=J$(a);!n&&"fixed"===t.position&&(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Fv(a)&&!n&&pD(e,a))?r=r.filter((e=>e!==a)):o=t,a=zh(a)}return t.set(e,r),r}function bj(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?wj(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=fP(t,n,o);return e.top=aa(r.top,e.top),e.right=yd(r.right,e.right),e.bottom=yd(r.bottom,e.bottom),e.left=aa(r.left,e.left),e}),fP(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function _j(e){const{width:t,height:n}=lD(e);return{width:t,height:n}}function xj(e,t,n,r){const o=bu(t),i=Ll(t),a="fixed"===n,s=ep(e,!0,a,t);let u={scrollLeft:0,scrollTop:0};const l=wd(0);if(o||!o&&!a)if(("body"!==_d(t)||Fv(i))&&(u=L0(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=fD(i));let c=s.left+u.scrollLeft-l.x,d=s.top+u.scrollTop-l.y;const[f,p,m]=dD(r);return f&&(c+=p,d+=m,o&&(c+=t.clientLeft,d+=t.clientTop)),{x:c,y:d,width:s.width,height:s.height}}function pP(e,t){return bu(e)&&"fixed"!==Va(e).position?t?t(e):e.offsetParent:null}function hD(e,t){const n=ua(e);if(!bu(e))return n;let r=pP(e,t);for(;r&&uj(r)&&"static"===Va(r).position;)r=pP(r,t);return r&&("html"===_d(r)||"body"===_d(r)&&"static"===Va(r).position&&!J$(r))?n:r||sD(e)||n}const Sj=async function(e){const t=this.getOffsetParent||hD,n=this.getDimensions;return{reference:xj(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}};function $j(e){return"rtl"===Va(e).direction}const Ij={convertOffsetParentRelativeRectToViewportRelativeRect:hj,getDocumentElement:Ll,getClippingRect:bj,getOffsetParent:hD,getElementRects:Sj,getClientRects:mj,getDimensions:_j,getScale:Lh,isElement:wu,isRTL:$j};function Cj(e,t){let n,r=null;const o=Ll(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),i();const{left:l,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-Dg(c)+"px "+-Dg(o.clientWidth-(l+d))+"px "+-Dg(o.clientHeight-(c+f))+"px "+-Dg(l)+"px",threshold:aa(0,yd(1,u))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==u){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 Ej(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,l=eI(e),c=o||i?[...l?_v(l):[],..._v(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=l&&s?Cj(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&&!u&&p.observe(l),p.observe(t));let m,h=u?ep(e):null;return u&&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,u&&cancelAnimationFrame(m)}}const Tj=ij,Rj=tj,Pj=sj,Oj=nj,hP=ej,Aj=aj,Nj=(e,t,n)=>{const r=new Map,o={platform:Ij,...n},i={...o.platform,_c:r};return ZF(e,t,{...o,platform:i})};var Wg=typeof document<"u"?ip:Qe;function e0(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(!e0(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||e0(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function mD(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mP(e,t){const n=mD(e);return Math.round(t*n)/n}function ux(e){const t=M.useRef(e);return Wg((()=>{t.current=e})),t}function Dj(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:u,open:l}=e,[c,d]=M.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=M.useState(r);e0(f,r)||p(r);const[m,h]=M.useState(null),[g,v]=M.useState(null),y=M.useCallback((e=>{e!==_.current&&(_.current=e,h(e))}),[]),b=M.useCallback((e=>{e!==S.current&&(S.current=e,v(e))}),[]),w=i||m,x=a||g,_=M.useRef(null),S=M.useRef(null),A=M.useRef(c),I=null!=u,E=ux(u),k=ux(o),C=ux(l),N=M.useCallback((()=>{if(!_.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};k.current&&(e.platform=k.current),Nj(_.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==C.current};P.current&&!e0(A.current,t)&&(A.current=t,Cs.flushSync((()=>{d(t)})))}))}),[f,t,n,k,C]);Wg((()=>{!1===l&&A.current.isPositioned&&(A.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[l]);const P=M.useRef(!1);Wg((()=>(P.current=!0,()=>{P.current=!1})),[]),Wg((()=>{if(w&&(_.current=w),x&&(S.current=x),w&&x){if(E.current)return E.current(w,x,N);N()}}),[w,x,N,E,I]);const O=M.useMemo((()=>({reference:_,floating:S,setReference:y,setFloating:b})),[y,b]),T=M.useMemo((()=>({reference:w,floating:x})),[w,x]),R=M.useMemo((()=>{const e={position:n,left:0,top:0};if(!T.floating)return e;const t=mP(T.floating,c.x),r=mP(T.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...mD(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,T.floating,c.x,c.y]);return M.useMemo((()=>({...c,update:N,refs:O,elements:T,floatingStyles:R})),[c,N,O,T,R])}const Mj=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?hP({element:n.current,padding:r}).fn(t):{}:n?hP({element:n,padding:r}).fn(t):{}}}),kj=(e,t)=>({...oj(e),options:[e,t]}),Lj=(e,t)=>({...Tj(e),options:[e,t]}),Bj=(e,t)=>({...Aj(e),options:[e,t]}),Fj=(e,t)=>({...Rj(e),options:[e,t]}),jj=(e,t)=>({...Pj(e),options:[e,t]}),zj=(e,t)=>({...Oj(e),options:[e,t]}),Uj=(e,t)=>({...Mj(e),options:[e,t]}),Vj=Fe(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return se(gt.svg,Ae({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:se("polygon",{points:"0,0 30,0 15,10"}))})),Wj=Vj,vD="Popper",[gD,Xh]=di(vD),[qj,yD]=gD(vD),Gj=e=>{const{__scopePopper:t,children:n}=e,[r,o]=lt(null);return se(qj,{scope:t,anchor:r,onAnchorChange:o},n)},Hj="PopperAnchor",Kj=Fe(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=yD(Hj,n),a=Ge(null),s=Zt(t,a);return Qe((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:se(gt.div,Ae({},o,{ref:s}))})),wD="PopperContent",[Yj,Qj]=gD(wD),Xj=Fe(((e,t)=>{var n,r,o,i,a,s,u,l;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:v=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:w=!1,updatePositionStrategy:x="optimized",onPlaced:_,...S}=e,A=yD(wD,c),[I,E]=lt(null),k=Zt(t,(e=>E(e))),[M,C]=lt(null),N=O0(M),P=null!==(n=null==N?void 0:N.width)&&void 0!==n?n:0,O=null!==(r=null==N?void 0:N.height)&&void 0!==r?r:0,T=d+("center"!==p?"-"+p:""),R="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},D=Array.isArray(v)?v:[v],j=D.length>0,q={padding:R,boundary:D.filter(tz),altBoundary:j},{refs:L,floatingStyles:z,placement:$,isPositioned:B,middlewareData:F}=Dj({strategy:"fixed",placement:T,whileElementsMounted:(...e)=>Ej(...e,{animationFrame:"always"===x}),elements:{reference:A.anchor},middleware:[kj({mainAxis:f+O,alignmentAxis:m}),g&&Lj({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?Bj():void 0,...q}),g&&Fj({...q}),jj({...q,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`)}}),M&&Uj({element:M,padding:h}),nz({arrowWidth:P,arrowHeight:O}),w&&zj({strategy:"referenceHidden",...q})]}),[V,G]=bD($),U=Is(_);Qo((()=>{B&&(null==U||U())}),[B,U]);const W=null===(o=F.arrow)||void 0===o?void 0:o.x,Q=null===(i=F.arrow)||void 0===i?void 0:i.y,H=0!==(null===(a=F.arrow)||void 0===a?void 0:a.centerOffset),[K,Y]=lt();return Qo((()=>{I&&Y(window.getComputedStyle(I).zIndex)}),[I]),se("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:B?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[null===(s=F.transformOrigin)||void 0===s?void 0:s.x,null===(u=F.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},se(Yj,{scope:c,placedSide:V,onArrowChange:C,arrowX:W,arrowY:Q,shouldHideArrow:H},se(gt.div,Ae({"data-side":V,"data-align":G},S,{ref:k,style:{...S.style,animation:B?void 0:"none",opacity:null!==(l=F.hide)&&void 0!==l&&l.referenceHidden?0:void 0}}))))})),Jj="PopperArrow",Zj={top:"bottom",right:"left",bottom:"top",left:"right"},ez=Fe((function(e,t){const{__scopePopper:n,...r}=e,o=Qj(Jj,n),i=Zj[o.placedSide];return se("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}},se(Wj,Ae({},r,{ref:t,style:{...r.style,display:"block"}})))}));function tz(e){return null!==e}const nz=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:u,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]=bD(s),h={start:"0%",center:"50%",end:"100%"}[m],g=(null!==(r=null===(o=l.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(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:`${g}px`,b=-f+"px"):"top"===p?(y=c?h:`${g}px`,b=`${u.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?h:`${v}px`):"left"===p&&(y=`${u.floating.width+f}px`,b=c?h:`${v}px`),{data:{x:y,y:b}}}});function bD(e){const[t,n="center"]=e.split("-");return[t,n]}const _D=Gj,tI=Kj,nI=Xj,rz=ez,lx="rovingFocusGroup.onEntryFocus",oz={bubbles:!1,cancelable:!0},rI="RovingFocusGroup",[ES,xD,iz]=H$(rI),[az,Jh]=di(rI,[iz]),[sz,uz]=az(rI),lz=Fe(((e,t)=>se(ES.Provider,{scope:e.__scopeRovingFocusGroup},se(ES.Slot,{scope:e.__scopeRovingFocusGroup},se(cz,Ae({},e,{ref:t})))))),cz=Fe(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:l,...c}=e,d=Ge(null),f=Zt(t,d),p=K$(i),[m=null,h]=gd({prop:a,defaultProp:s,onChange:u}),[g,v]=lt(!1),y=Is(l),b=xD(n),w=Ge(!1),[x,_]=lt(0);return Qe((()=>{const e=d.current;if(e)return e.addEventListener(lx,y),()=>e.removeEventListener(lx,y)}),[y]),se(sz,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:m,onItemFocus:_t((e=>h(e)),[h]),onItemShiftTab:_t((()=>v(!0)),[]),onFocusableItemAdd:_t((()=>_((e=>e+1))),[]),onFocusableItemRemove:_t((()=>_((e=>e-1))),[])},se(gt.div,Ae({tabIndex:g||0===x?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:it(e.onMouseDown,(()=>{w.current=!0})),onFocus:it(e.onFocus,(e=>{const t=!w.current;if(e.target===e.currentTarget&&t&&!g){const t=new CustomEvent(lx,oz);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=b().filter((e=>e.focusable));SD([e.find((e=>e.active)),e.find((e=>e.id===m)),...e].filter(Boolean).map((e=>e.ref.current)))}}w.current=!1})),onBlur:it(e.onBlur,(()=>v(!1)))})))})),dz="RovingFocusGroupItem",fz=Fe(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,s=pd(),u=i||s,l=uz(dz,n),c=l.currentTabStopId===u,d=xD(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=l;return Qe((()=>{if(r)return f(),()=>p()}),[r,f,p]),se(ES.ItemSlot,{scope:n,id:u,focusable:r,active:o},se(gt.span,Ae({tabIndex:c?0:-1,"data-orientation":l.orientation},a,{ref:t,onMouseDown:it(e.onMouseDown,(e=>{r?l.onItemFocus(u):e.preventDefault()})),onFocus:it(e.onFocus,(()=>l.onItemFocus(u))),onKeyDown:it(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void l.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=mz(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?vz(n,r+1):n.slice(r+1)}setTimeout((()=>SD(n)))}}))})))})),pz={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function hz(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function mz(e,t,n){const r=hz(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return pz[r]}function SD(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function vz(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}const oI=lz,iI=fz,TS=["Enter"," "],gz=["ArrowDown","PageUp","Home"],$D=["ArrowUp","PageDown","End"],yz=[...gz,...$D],wz={ltr:[...TS,"ArrowRight"],rtl:[...TS,"ArrowLeft"]},bz={ltr:["ArrowLeft"],rtl:["ArrowRight"]},B0="Menu",[xv,_z,xz]=H$(B0),[dp,ID]=di(B0,[xz,Xh,Jh]),CD=Xh(),ED=Jh(),[oJ,fp]=dp(B0),[iJ,jv]=dp(B0),Sz=Fe(((e,t)=>{const{__scopeMenu:n,...r}=e,o=CD(n);return se(tI,Ae({},o,r,{ref:t}))})),TD="MenuPortal",[$z,RD]=dp(TD,{forceMount:void 0}),Iz=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=fp(TD,t);return se($z,{scope:t,forceMount:n},se(ca,{present:n||i.open},se(h0,{asChild:!0,container:o},r)))},$s="MenuContent",[Cz,aI]=dp($s),Ez=Fe(((e,t)=>{const n=RD($s,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=fp($s,e.__scopeMenu),a=jv($s,e.__scopeMenu);return se(xv.Provider,{scope:e.__scopeMenu},se(ca,{present:r||i.open},se(xv.Slot,{scope:e.__scopeMenu},a.modal?se(Tz,Ae({},o,{ref:t})):se(Rz,Ae({},o,{ref:t})))))})),Tz=Fe(((e,t)=>{const n=fp($s,e.__scopeMenu),r=Ge(null),o=Zt(t,r);return Qe((()=>{const e=r.current;if(e)return g0(e)}),[]),se(sI,Ae({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:it(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),Rz=Fe(((e,t)=>{const n=fp($s,e.__scopeMenu);return se(sI,Ae({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),sI=Fe(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:u,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=fp($s,n),v=jv($s,n),y=CD(n),b=ED(n),w=_z(n),[x,_]=lt(null),S=Ge(null),A=Zt(t,S,g.onContentChange),I=Ge(0),E=Ge(""),k=Ge(0),M=Ge(null),C=Ge("right"),N=Ge(0),P=m?v0:ap,O=m?{as:Kf,allowPinchZoom:!0}:void 0;Qe((()=>()=>window.clearTimeout(I.current)),[]),c$();const T=_t((e=>{var t,n;return C.current===(null===(t=M.current)||void 0===t?void 0:t.side)&&Hz(e,null===(n=M.current)||void 0===n?void 0:n.area)}),[]);return se(Cz,{scope:n,searchRef:E,onItemEnter:_t((e=>{T(e)&&e.preventDefault()}),[T]),onItemLeave:_t((e=>{var t;T(e)||(null===(t=S.current)||void 0===t||t.focus(),_(null))}),[T]),onTriggerLeave:_t((e=>{T(e)&&e.preventDefault()}),[T]),pointerGraceTimerRef:k,onPointerGraceIntentChange:_t((e=>{M.current=e}),[])},se(P,O,se(l$,{asChild:!0,trapped:o,onMountAutoFocus:it(i,(e=>{var t;e.preventDefault(),null===(t=S.current)||void 0===t||t.focus()})),onUnmountAutoFocus:a},se(p0,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p},se(oI,Ae({asChild:!0},b,{dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:x,onCurrentTabStopIdChange:_,onEntryFocus:it(u,(e=>{v.isUsingKeyboardRef.current||e.preventDefault()}))}),se(nI,Ae({role:"menu","aria-orientation":"vertical","data-state":DD(g.open),"data-radix-menu-content":"",dir:v.dir},y,h,{ref:A,style:{outline:"none",...h.style},onKeyDown:it(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,s=qz(o.map((e=>e.textValue)),r,a),u=null===(n=o.find((e=>e.textValue===s)))||void 0===n?void 0:n.ref.current;(function e(t){E.current=t,window.clearTimeout(I.current),""!==t&&(I.current=window.setTimeout((()=>e("")),1e3))})(r),u&&setTimeout((()=>u.focus()))})(e.key));const o=S.current;if(e.target!==o||!yz.includes(e.key))return;e.preventDefault();const i=w().filter((e=>!e.disabled)).map((e=>e.ref.current));$D.includes(e.key)&&i.reverse(),Vz(i)})),onBlur:it(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(I.current),E.current="")})),onPointerMove:it(e.onPointerMove,Sv((e=>{const t=e.target,n=N.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>N.current?"right":"left";C.current=t,N.current=e.clientX}})))})))))))})),Pz=Fe(((e,t)=>{const{__scopeMenu:n,...r}=e;return se(gt.div,Ae({},r,{ref:t}))})),RS="MenuItem",vP="menu.itemSelect",uI=Fe(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=Ge(null),a=jv(RS,e.__scopeMenu),s=aI(RS,e.__scopeMenu),u=Zt(t,i),l=Ge(!1);return se(PD,Ae({},o,{ref:u,disabled:n,onClick:it(e.onClick,(()=>{const e=i.current;if(!n&&e){const t=new CustomEvent(vP,{bubbles:!0,cancelable:!0});e.addEventListener(vP,(e=>null==r?void 0:r(e)),{once:!0}),PO(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:it(e.onPointerUp,(e=>{var t;l.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:it(e.onKeyDown,(e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||TS.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),PD=Fe(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=aI(RS,n),s=ED(n),u=Ge(null),l=Zt(t,u),[c,d]=lt(!1),[f,p]=lt("");return Qe((()=>{const e=u.current;var t;e&&p((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[i.children]),se(xv.ItemSlot,{scope:n,disabled:r,textValue:o??f},se(iI,Ae({asChild:!0},s,{focusable:!r}),se(gt.div,Ae({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},i,{ref:l,onPointerMove:it(e.onPointerMove,Sv((e=>{r?a.onItemLeave(e):(a.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())}))),onPointerLeave:it(e.onPointerLeave,Sv((e=>a.onItemLeave(e)))),onFocus:it(e.onFocus,(()=>d(!0))),onBlur:it(e.onBlur,(()=>d(!1)))}))))})),Oz=Fe(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return se(AD,{scope:e.__scopeMenu,checked:n},se(uI,Ae({role:"menuitemcheckbox","aria-checked":t0(n)?"mixed":n},o,{ref:t,"data-state":lI(n),onSelect:it(o.onSelect,(()=>null==r?void 0:r(!!t0(n)||!n)),{checkForDefaultPrevented:!1})})))})),Az="MenuRadioGroup",[aJ,Nz]=dp(Az,{value:void 0,onValueChange:()=>{}}),Dz="MenuRadioItem",Mz=Fe(((e,t)=>{const{value:n,...r}=e,o=Nz(Dz,e.__scopeMenu),i=n===o.value;return se(AD,{scope:e.__scopeMenu,checked:i},se(uI,Ae({role:"menuitemradio","aria-checked":i},r,{ref:t,"data-state":lI(i),onSelect:it(r.onSelect,(()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)}),{checkForDefaultPrevented:!1})})))})),OD="MenuItemIndicator",[AD,kz]=dp(OD,{checked:!1}),Lz=Fe(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=kz(OD,n);return se(ca,{present:r||t0(i.checked)||!0===i.checked},se(gt.span,Ae({},o,{ref:t,"data-state":lI(i.checked)})))})),Bz=Fe(((e,t)=>{const{__scopeMenu:n,...r}=e;return se(gt.div,Ae({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),Fz="MenuSub",[sJ,ND]=dp(Fz),Mg="MenuSubTrigger",jz=Fe(((e,t)=>{const n=fp(Mg,e.__scopeMenu),r=jv(Mg,e.__scopeMenu),o=ND(Mg,e.__scopeMenu),i=aI(Mg,e.__scopeMenu),a=Ge(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:u}=i,l={__scopeMenu:e.__scopeMenu},c=_t((()=>{a.current&&window.clearTimeout(a.current),a.current=null}),[]);return Qe((()=>c),[c]),Qe((()=>{const e=s.current;return()=>{window.clearTimeout(e),u(null)}}),[s,u]),se(Sz,Ae({asChild:!0},l),se(PD,Ae({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":DD(n.open)},e,{ref:s$(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:it(e.onPointerMove,Sv((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:it(e.onPointerLeave,Sv((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,u=a?-5:5,l=r[a?"left":"right"],c=r[a?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+u,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(s.current),s.current=window.setTimeout((()=>i.onPointerGraceIntentChange(null)),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}}))),onKeyDown:it(e.onKeyDown,(t=>{const o=""!==i.searchRef.current;var a;e.disabled||o&&" "===t.key||!wz[r.dir].includes(t.key)||(n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault())}))})))})),zz="MenuSubContent",Uz=Fe(((e,t)=>{const n=RD($s,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=fp($s,e.__scopeMenu),a=jv($s,e.__scopeMenu),s=ND(zz,e.__scopeMenu),u=Ge(null),l=Zt(t,u);return se(xv.Provider,{scope:e.__scopeMenu},se(ca,{present:r||i.open},se(xv.Slot,{scope:e.__scopeMenu},se(sI,Ae({id:s.contentId,"aria-labelledby":s.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=u.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:it(e.onFocusOutside,(e=>{e.target!==s.trigger&&i.onOpenChange(!1)})),onEscapeKeyDown:it(e.onEscapeKeyDown,(e=>{a.onClose(),e.preventDefault()})),onKeyDown:it(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=bz[a.dir].includes(e.key);var r;t&&n&&(i.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))}));function DD(e){return e?"open":"closed"}function t0(e){return"indeterminate"===e}function lI(e){return t0(e)?"indeterminate":e?"checked":"unchecked"}function Vz(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Wz(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}function qz(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=Wz(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 Gz(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,s=t[e].y,u=t[i].x,l=t[i].y;s>r!=l>r&&n<(u-a)*(r-s)/(l-s)+a&&(o=!o)}return o}function Hz(e,t){if(!t)return!1;return Gz({x:e.clientX,y:e.clientY},t)}function Sv(e){return t=>"mouse"===t.pointerType?e(t):void 0}const Kz=Iz,Yz=Ez,Qz=Pz,Xz=uI,Jz=Oz,Zz=Mz,eU=Lz,tU=Bz,nU=jz,rU=Uz,MD="DropdownMenu",[oU,uJ]=di(MD,[ID]),$u=ID(),[lJ,iU]=oU(MD),aU=e=>{const{__scopeDropdownMenu:t,...n}=e,r=$u(t);return se(Kz,Ae({},r,n))},sU="DropdownMenuContent",uU=Fe(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=iU(sU,n),i=$u(n),a=Ge(!1);return se(Yz,Ae({id:o.contentId,"aria-labelledby":o.triggerId},i,r,{ref:t,onCloseAutoFocus:it(e.onCloseAutoFocus,(e=>{var t;a.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()})),onInteractOutside:it(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)"}}))})),lU=Fe(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$u(n);return se(Qz,Ae({},o,r,{ref:t}))})),cU=Fe(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$u(n);return se(Xz,Ae({},o,r,{ref:t}))})),dU=Fe(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$u(n);return se(Jz,Ae({},o,r,{ref:t}))})),fU=Fe(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$u(n);return se(Zz,Ae({},o,r,{ref:t}))})),pU=Fe(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$u(n);return se(eU,Ae({},o,r,{ref:t}))})),hU=Fe(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$u(n);return se(tU,Ae({},o,r,{ref:t}))})),mU=Fe(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$u(n);return se(nU,Ae({},o,r,{ref:t}))})),vU=Fe(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$u(n);return se(rU,Ae({},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)"}}))})),gU=aU,kD=uU,LD=lU,BD=cU,FD=dU,jD=fU,yU=pU,cI=hU,zD=mU,UD=vU,wU=M.forwardRef((({className:e,inset:t,children:n,...r},o)=>G.jsxs(zD,{ref:o,className:xe("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,G.jsx(bO,{className:"ml-auto h-4 w-4"})]})));wU.displayName=zD.displayName;const bU=M.forwardRef((({className:e,...t},n)=>G.jsx(UD,{ref:n,className:xe("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})));bU.displayName=UD.displayName;const gP=e=>{e.preventDefault()},_U=M.forwardRef((({className:e,sideOffset:t=4,isPortal:n,...r},o)=>{const i=G.jsx(kD,{ref:o,sideOffset:t,onOpenAutoFocus:gP,onCloseAutoFocus:gP,className:xe("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?G.jsx(gU,{children:i}):i}));_U.displayName=kD.displayName;const xU=M.forwardRef((({className:e,inset:t,...n},r)=>G.jsx(BD,{ref:r,className:xe("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})));xU.displayName=BD.displayName;const SU=M.forwardRef((({className:e,children:t,checked:n,checkboxPosition:r="right",...o},i)=>{const a=G.jsx(F$,{size:"default",variant:"default",checked:n});return G.jsxs(FD,{ref:i,className:xe("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,G.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:t}),"right"===r&&a]})}));SU.displayName=FD.displayName;const $U=M.forwardRef((({className:e,children:t,radioPosition:n="right",...r},o)=>{const i=G.jsx("div",{className:"flex h-xxs items-center justify-center",children:G.jsx(yU,{children:G.jsx(r$,{size:20})})});return G.jsxs(jD,{ref:o,className:xe("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,G.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:t}),"right"===n&&i]})}));$U.displayName=jD.displayName;const IU=M.forwardRef((({className:e,inset:t,...n},r)=>G.jsx(LD,{ref:r,className:xe("text-sm font-semibold",t&&"pl-xl",e),...n})));IU.displayName=LD.displayName;const CU=M.forwardRef((({className:e,...t},n)=>G.jsx(cI,{ref:n,className:xe("-mx-1 my-1 h-px bg-muted",e),...t})));CU.displayName=cI.displayName;const EU=Fe(((e,t)=>se(gt.label,Ae({},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()}})))),VD=EU,TU=xu("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),WD=M.forwardRef((({className:e,...t},n)=>G.jsx(VD,{ref:n,className:xe(TU(),e),...t})));function yP(e,[t,n]){return Math.min(n,Math.max(t,e))}WD.displayName=VD.displayName;const qD=Fe(((e,t)=>se(gt.span,Ae({},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}})))),RU=qD,PU=[" ","Enter","ArrowUp","ArrowDown"],OU=[" ","Enter"],F0="Select",[j0,z0,AU]=H$(F0),[Zh,cJ]=di(F0,[AU,Xh]),dI=Xh(),[NU,pp]=Zh(F0),[DU,MU]=Zh(F0),kU=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:u,dir:l,name:c,autoComplete:d,disabled:f,required:p}=e,m=dI(t),[h,g]=lt(null),[v,y]=lt(null),[b,w]=lt(!1),x=K$(l),[_=!1,S]=gd({prop:r,defaultProp:o,onChange:i}),[A,I]=gd({prop:a,defaultProp:s,onChange:u}),E=Ge(null),k=!h||!!h.closest("form"),[M,C]=lt(new Set),N=Array.from(M).map((e=>e.props.value)).join(";");return se(_D,m,se(NU,{required:p,scope:t,trigger:h,onTriggerChange:g,valueNode:v,onValueNodeChange:y,valueNodeHasChildren:b,onValueNodeHasChildrenChange:w,contentId:pd(),value:A,onValueChange:I,open:_,onOpenChange:S,dir:x,triggerPointerDownPosRef:E,disabled:f},se(j0.Provider,{scope:t},se(DU,{scope:e.__scopeSelect,onNativeOptionAdd:_t((e=>{C((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:_t((e=>{C((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},n)),k?se(QD,{key:N,"aria-hidden":!0,required:p,tabIndex:-1,name:c,autoComplete:d,value:A,onChange:e=>I(e.target.value),disabled:f},void 0===A?se("option",{value:""}):null,Array.from(M)):null))},LU="SelectTrigger",BU=Fe(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=dI(n),a=pp(LU,n),s=a.disabled||r,u=Zt(t,a.onTriggerChange),l=z0(n),[c,d,f]=XD((e=>{const t=l().filter((e=>!e.disabled)),n=t.find((e=>e.value===a.value)),r=JD(t,e,n);void 0!==r&&a.onValueChange(r.value)})),p=()=>{s||(a.onOpenChange(!0),f())};return se(tI,Ae({asChild:!0},i),se(gt.button,Ae({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:s,"data-disabled":s?"":void 0,"data-placeholder":YD(a.value)?"":void 0},o,{ref:u,onClick:it(o.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:it(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:it(o.onKeyDown,(e=>{const t=""!==c.current;!(e.ctrlKey||e.altKey||e.metaKey)&&1===e.key.length&&d(e.key),(!t||" "!==e.key)&&PU.includes(e.key)&&(p(),e.preventDefault())}))})))})),FU="SelectValue",jU=Fe(((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:a="",...s}=e,u=pp(FU,n),{onValueNodeHasChildrenChange:l}=u,c=void 0!==i,d=Zt(t,u.onValueNodeChange);return Qo((()=>{l(c)}),[l,c]),se(gt.span,Ae({},s,{ref:d,style:{pointerEvents:"none"}}),YD(u.value)?se(ap,null,a):i)})),zU=Fe(((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return se(gt.span,Ae({"aria-hidden":!0},o,{ref:t}),r||"▼")})),UU=e=>se(h0,Ae({asChild:!0},e)),Uh="SelectContent",VU=Fe(((e,t)=>{const n=pp(Uh,e.__scopeSelect),[r,o]=lt();if(Qo((()=>{o(new DocumentFragment)}),[]),!n.open){const t=r;return t?Cs.createPortal(se(GD,{scope:e.__scopeSelect},se(j0.Slot,{scope:e.__scopeSelect},se("div",null,e.children))),t):null}return se(WU,Ae({},e,{ref:t}))})),Il=10,[GD,hp]=Zh(Uh),WU=Fe(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:u,align:l,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,...v}=e,y=pp(Uh,n),[b,w]=lt(null),[x,_]=lt(null),S=Zt(t,(e=>w(e))),[A,I]=lt(null),[E,k]=lt(null),M=z0(n),[C,N]=lt(!1),P=Ge(!1);Qe((()=>{if(b)return g0(b)}),[b]),c$();const O=_t((e=>{const[t,...n]=M().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}),[M,x]),T=_t((()=>O([A,b])),[O,A,b]);Qe((()=>{C&&T()}),[C,T]);const{onOpenChange:R,triggerPointerDownPosRef:D}=y;Qe((()=>{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]),Qe((()=>{const e=()=>R(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[R]);const[j,q]=XD((e=>{const t=M().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=JD(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),L=_t(((e,t,n)=>{const r=!P.current&&!n;(void 0!==y.value&&y.value===t||r)&&(I(e),r&&(P.current=!0))}),[y.value]),z=_t((()=>null==b?void 0:b.focus()),[b]),$=_t(((e,t,n)=>{const r=!P.current&&!n;(void 0!==y.value&&y.value===t||r)&&k(e)}),[y.value]),B="popper"===r?wP:qU,F=B===wP?{side:s,sideOffset:u,align:l,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return se(GD,{scope:n,content:b,viewport:x,onViewportChange:_,itemRefCallback:L,selectedItem:A,onItemLeave:z,itemTextRefCallback:$,focusSelectedItem:T,selectedItemText:E,position:r,isPositioned:C,searchRef:j},se(v0,{as:Kf,allowPinchZoom:!0},se(l$,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:it(o,(e=>{var t;null===(t=y.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},se(p0,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1)},se(B,Ae({role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:e=>e.preventDefault()},v,F,{onPlaced:()=>N(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:it(v.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),!t&&1===e.key.length&&q(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=M().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((()=>O(t))),e.preventDefault()}}))}))))))})),qU=Fe(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=pp(Uh,n),a=hp(Uh,n),[s,u]=lt(null),[l,c]=lt(null),d=Zt(t,(e=>c(e))),f=z0(n),p=Ge(!1),m=Ge(!0),{viewport:h,selectedItem:g,selectedItemText:v,focusSelectedItem:y}=a,b=_t((()=>{if(i.trigger&&i.valueNode&&s&&l&&h&&g&&v){const e=i.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),o=v.getBoundingClientRect();if("rtl"!==i.dir){const r=o.left-t.left,i=n.left-r,a=e.left-i,u=e.width+a,l=Math.max(u,t.width),c=window.innerWidth-Il,d=yP(i,[Il,c-l]);s.style.minWidth=u+"px",s.style.left=d+"px"}else{const r=t.right-o.right,i=window.innerWidth-n.right-r,a=window.innerWidth-e.right-i,u=e.width+a,l=Math.max(u,t.width),c=window.innerWidth-Il,d=yP(i,[Il,c-l]);s.style.minWidth=u+"px",s.style.right=d+"px"}const a=f(),u=window.innerHeight-2*Il,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*g.offsetHeight,w),_=window.getComputedStyle(h),S=parseInt(_.paddingTop,10),A=parseInt(_.paddingBottom,10),I=e.top+e.height/2-Il,E=u-I,k=g.offsetHeight/2,M=m+y+(g.offsetTop+k),C=w-M;if(M<=I){const e=g===a[a.length-1].ref.current;s.style.bottom="0px";const t=l.clientHeight-h.offsetTop-h.offsetHeight,n=M+Math.max(E,k+(e?A:0)+t+b);s.style.height=n+"px"}else{const e=g===a[0].ref.current;s.style.top="0px";const t=Math.max(I,m+h.offsetTop+(e?S:0)+k)+C;s.style.height=t+"px",h.scrollTop=M-I+h.offsetTop}s.style.margin=`${Il}px 0`,s.style.minHeight=x+"px",s.style.maxHeight=u+"px",null==r||r(),requestAnimationFrame((()=>p.current=!0))}}),[f,i.trigger,i.valueNode,s,l,h,g,v,i.dir,r]);Qo((()=>b()),[b]);const[w,x]=lt();Qo((()=>{l&&x(window.getComputedStyle(l).zIndex)}),[l]);const _=_t((e=>{e&&!0===m.current&&(b(),null==y||y(),m.current=!1)}),[b,y]);return se(GU,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:_},se("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w}},se(gt.div,Ae({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))})),wP=Fe(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Il,...i}=e,a=dI(n);return se(nI,Ae({},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)"}}))})),[GU,fI]=Zh(Uh,{}),bP="SelectViewport",HU=Fe(((e,t)=>{const{__scopeSelect:n,...r}=e,o=hp(bP,n),i=fI(bP,n),a=Zt(t,o.onViewportChange),s=Ge(0);return se(ap,null,se("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}"}}),se(j0.Slot,{scope:n},se(gt.div,Ae({"data-radix-select-viewport":"",role:"presentation"},r,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:it(r.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if(null!=r&&r.current&&n){const e=Math.abs(s.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*Il,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),s=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}s.current=t.scrollTop}))}))))})),KU="SelectGroup",[YU,QU]=Zh(KU),XU=Fe(((e,t)=>{const{__scopeSelect:n,...r}=e,o=pd();return se(YU,{scope:n,id:o},se(gt.div,Ae({role:"group","aria-labelledby":o},r,{ref:t})))})),JU="SelectLabel",ZU=Fe(((e,t)=>{const{__scopeSelect:n,...r}=e,o=QU(JU,n);return se(gt.div,Ae({id:o.id},r,{ref:t}))})),PS="SelectItem",[eV,HD]=Zh(PS),tV=Fe(((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,s=pp(PS,n),u=hp(PS,n),l=s.value===r,[c,d]=lt(i??""),[f,p]=lt(!1),m=Zt(t,(e=>{var t;return null===(t=u.itemRefCallback)||void 0===t?void 0:t.call(u,e,r,o)})),h=pd(),g=()=>{o||(s.onValueChange(r),s.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 se(eV,{scope:n,value:r,disabled:o,textId:h,isSelected:l,onItemTextChange:_t((e=>{d((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},se(j0.ItemSlot,{scope:n,value:r,disabled:o,textValue:c},se(gt.div,Ae({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:it(a.onFocus,(()=>p(!0))),onBlur:it(a.onBlur,(()=>p(!1))),onPointerUp:it(a.onPointerUp,g),onPointerMove:it(a.onPointerMove,(e=>{var t;o?null===(t=u.onItemLeave)||void 0===t||t.call(u):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:it(a.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=u.onItemLeave)||void 0===t||t.call(u))})),onKeyDown:it(a.onKeyDown,(e=>{var t;""!==(null===(t=u.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(OU.includes(e.key)&&g()," "===e.key&&e.preventDefault())}))}))))})),kg="SelectItemText",nV=Fe(((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,a=pp(kg,n),s=hp(kg,n),u=HD(kg,n),l=MU(kg,n),[c,d]=lt(null),f=Zt(t,(e=>d(e)),u.onItemTextChange,(e=>{var t;return null===(t=s.itemTextRefCallback)||void 0===t?void 0:t.call(s,e,u.value,u.disabled)})),p=null==c?void 0:c.textContent,m=An((()=>se("option",{key:u.value,value:u.value,disabled:u.disabled},p)),[u.disabled,u.value,p]),{onNativeOptionAdd:h,onNativeOptionRemove:g}=l;return Qo((()=>(h(m),()=>g(m))),[h,g,m]),se(ap,null,se(gt.span,Ae({id:u.textId},i,{ref:f})),u.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Cs.createPortal(i.children,a.valueNode):null)})),rV="SelectItemIndicator",oV=Fe(((e,t)=>{const{__scopeSelect:n,...r}=e;return HD(rV,n).isSelected?se(gt.span,Ae({"aria-hidden":!0},r,{ref:t})):null})),_P="SelectScrollUpButton",iV=Fe(((e,t)=>{const n=hp(_P,e.__scopeSelect),r=fI(_P,e.__scopeSelect),[o,i]=lt(!1),a=Zt(t,r.onScrollButtonChange);return Qo((()=>{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?se(KD,Ae({},e,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),xP="SelectScrollDownButton",aV=Fe(((e,t)=>{const n=hp(xP,e.__scopeSelect),r=fI(xP,e.__scopeSelect),[o,i]=lt(!1),a=Zt(t,r.onScrollButtonChange);return Qo((()=>{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?se(KD,Ae({},e,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),KD=Fe(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=hp("SelectScrollButton",n),a=Ge(null),s=z0(n),u=_t((()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)}),[]);return Qe((()=>()=>u()),[u]),Qo((()=>{var e;const t=s().find((e=>e.ref.current===document.activeElement));null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[s]),se(gt.div,Ae({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:it(o.onPointerDown,(()=>{null===a.current&&(a.current=window.setInterval(r,50))})),onPointerMove:it(o.onPointerMove,(()=>{var e;null===(e=i.onItemLeave)||void 0===e||e.call(i),null===a.current&&(a.current=window.setInterval(r,50))})),onPointerLeave:it(o.onPointerLeave,(()=>{u()}))}))})),sV=Fe(((e,t)=>{const{__scopeSelect:n,...r}=e;return se(gt.div,Ae({"aria-hidden":!0},r,{ref:t}))}));function YD(e){return""===e||void 0===e}const QD=Fe(((e,t)=>{const{value:n,...r}=e,o=Ge(null),i=Zt(t,o),a=P0(n);return Qe((()=>{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]),se(qD,{asChild:!0},se("select",Ae({},r,{ref:i,defaultValue:n})))}));function XD(e){const t=Is(e),n=Ge(""),r=Ge(0),o=_t((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=_t((()=>{n.current="",window.clearTimeout(r.current)}),[]);return Qe((()=>()=>window.clearTimeout(r.current)),[]),[n,o,i]}function JD(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=uV(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 uV(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}QD.displayName="BubbleSelect";const ZD=kU,pI=BU,eM=jU,lV=zU,cV=UU,tM=VU,dV=HU,nM=XU,rM=ZU,oM=tV,fV=nV,pV=oV,iM=iV,aM=aV,sM=sV,hV=ZD,hI=M.forwardRef((({...e},t)=>G.jsx(hV,{ref:t,...e})));hI.displayName=ZD.displayName;const uM=M.forwardRef(((e,t)=>G.jsx(nM,{ref:t,...e})));uM.displayName=nM.displayName;const lM=M.forwardRef(((e,t)=>G.jsx(eM,{ref:t,...e})));lM.displayName=eM.displayName;const mI=M.forwardRef((({className:e,children:t,caption:n,error:r,icon:o,renderCaret:i=()=>G.jsx(yO,{size:20}),...a},s)=>G.jsxs("div",{className:"w-full",children:[G.jsxs(pI,{ref:s,className:xe("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:[G.jsxs("div",{className:xe("flex flex-1 items-center gap-xxs",{"max-w-[90%]":!!i}),children:[o&&G.jsx("span",{className:xe("text-muted-foreground",{"text-red-dark":r}),children:o}),t]}),G.jsx(lV,{asChild:!0,children:i()})]}),n||r?r?G.jsxs("div",{className:"mt-xxs flex items-center gap-xxxs text-sm text-red-600",children:[G.jsx(o$,{size:16}),r]}):G.jsxs("div",{className:"mt-xxs flex items-center gap-xxxs text-sm text-muted-foreground",children:[G.jsx(_L,{size:16}),n]}):null]})));mI.displayName="SelectTriggerWrapper";const cM=M.forwardRef((({className:e,children:t,caption:n,error:r,icon:o,...i},a)=>G.jsx(mI,{ref:a,className:xe("[&>span]:line-clamp-1 [&>span]:text-left",e),caption:n,error:r,icon:o,...i,children:t})));cM.displayName=pI.displayName;const vI=M.forwardRef((({className:e,children:t,position:n="popper",...r},o)=>{const i=M.useMemo((()=>{const e=t=>{var n,r;if(!t)return!1;if(Array.isArray(t))return t.some(e);if(M.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 G.jsx(cV,{children:G.jsx(tM,{ref:o,className:xe("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:G.jsx(dV,{className:xe("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})})})}));vI.displayName=tM.displayName;const dM=M.forwardRef((({className:e,...t},n)=>G.jsx(rM,{ref:n,className:xe("text-sm font-medium text-gray-900",e),...t})));dM.displayName=rM.displayName;const fM=M.forwardRef((({className:e,showCheck:t=!0,checkPosition:n="right",children:r,...o},i)=>{const a=G.jsx(pV,{children:G.jsx(r$,{size:20})});return G.jsxs(oM,{ref:i,className:xe("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,G.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:G.jsx(fV,{children:r})}),t&&"right"===n&&a]})}));fM.displayName=oM.displayName;const pM=M.forwardRef((({className:e,...t},n)=>G.jsx(sM,{ref:n,className:xe("-mx-1 my-1 h-px bg-gray-200",e),...t})));pM.displayName=sM.displayName;const mV=({selectedValues:e=[],onRemoveValue:t})=>{const n=M.useRef(null),[r,o]=M.useState(e.length);return M.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,s=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 u=e.offsetWidth+4;if(!(a+u<=r))break;a+=u,s++}document.body.removeChild(i),o(Math.max(1,s))}),[e,t]),{containerRef:n,visibleCount:r}},hM=({hiddenCount:e,selectedValues:t=[],onRemoveValue:n})=>{const r=e=>{e.stopPropagation(),e.preventDefault()};return G.jsx("div",{onPointerDown:r,onMouseDown:r,onClick:r,children:G.jsxs(hI,{name:"hidden-chips-counter",children:[G.jsx(pI,{asChild:!0,children:G.jsx("div",{children:G.jsx(rN,{text:`+${e}`})})}),G.jsx(vI,{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 G.jsxs("div",{className:"flex justify-between p-xxs",onClick:e=>e.stopPropagation(),children:[G.jsx("span",{children:t}),G.jsx(d0,{size:16,className:"cursor-pointer",onClick:()=>null==n?void 0:n(t)})]},t)}))})]})})};hM.displayName="SelectHiddenChipsCounter";const vV=M.forwardRef(((e,t)=>{const{className:n,selectedValues:r=[],placeholder:o,onRemoveValue:i,icon:a,caption:s,error:u,...l}=e,{containerRef:c,visibleCount:d}=mV({selectedValues:r,onRemoveValue:i}),f=r.length-d;return G.jsx(mI,{ref:t,className:n,caption:s,error:u,icon:a,...l,children:G.jsx("div",{ref:c,className:"flex w-full flex-1 flex-nowrap overflow-hidden",children:0===r.length?G.jsx("span",{children:o||"Select options..."}):G.jsxs(d9,{children:[r.slice(0,d).map((e=>{const t="string"==typeof e?e:e.value;return G.jsx(rN,{avatarSrc:"string"==typeof e?void 0:e.avatar,text:t,onRemove:()=>null==i?void 0:i(t)},t)})),f>0&&G.jsx(hM,{hiddenCount:f,onRemoveValue:i,selectedValues:r})]})})})}));vV.displayName="SelectMultiTrigger";const gV=M.forwardRef((({value:e,isSelected:t=!1,isLoading:n=!1,checkboxPosition:r="right",onSelect:o,className:i,children:a,...s},u)=>{const l=n?G.jsx(_O,{size:24,className:"flex-shrink-0 animate-spin text-blue_100"}):G.jsx(F$,{size:"default",variant:"default",checked:t}),c=()=>{null==o||o(e)};return G.jsxs("div",{ref:u,className:xe("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())},...s,children:["left"===r&&l,G.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:a}),"right"===r&&l]})}));gV.displayName="SelectCheckboxItem";const yV=M.forwardRef((({className:e,...t},n)=>G.jsx(iM,{ref:n,className:xe("flex cursor-default items-center justify-center py-xxs",e),...t,children:G.jsx(mL,{size:16})})));yV.displayName=iM.displayName;const wV=M.forwardRef((({className:e,...t},n)=>G.jsx(aM,{ref:n,className:xe("flex cursor-default items-center justify-center p-xxs",e),...t,children:G.jsx(yO,{size:16})})));wV.displayName=aM.displayName;const bV=M.forwardRef((({className:e,children:t,...n},r)=>G.jsx("div",{ref:r,className:xe("sticky top-0 z-20 bg-white p-xxs",e),...n,children:t})));bV.displayName="SelectActions";const _V=M.forwardRef((({className:e,children:t,...n},r)=>G.jsx("div",{ref:r,className:xe("sticky bottom-0 z-20 bg-white p-xxs",e),...n,children:t})));_V.displayName="SelectFooter";const xV=M.createContext({}),Id=()=>{const e=M.useContext(xV),t=M.useContext(mM),n=v3();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}},mM=M.createContext({}),SV=M.forwardRef((({className:e,...t},n)=>{const r=M.useId();return G.jsx(mM.Provider,{value:{id:r},children:G.jsx("div",{ref:n,className:xe("mt-[8px]",e),...t})})}));SV.displayName="FormItem";const $V=M.forwardRef((({className:e,isRequired:t,...n},r)=>{const{formItemId:o}=Id();return G.jsxs(WD,{ref:r,className:xe("mb-2 text-sm font-medium",e),htmlFor:o,...n,children:[t&&"*",n.children]})}));$V.displayName="FormLabel";const IV=M.forwardRef((({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:i}=Id();return G.jsx(Sd,{ref:t,id:r,"aria-describedby":n?`${o} ${i}`:`${o}`,"aria-invalid":!!n,...e})}));IV.displayName="FormControl";const CV=M.forwardRef((({className:e,...t},n)=>{const{formDescriptionId:r}=Id();return G.jsx("p",{ref:n,id:r,className:xe("text-sm text-muted-foreground",e),...t})}));CV.displayName="FormDescription";const EV=M.forwardRef((({className:e,children:t,...n},r)=>{const{error:o,formMessageId:i}=Id(),a=o?String(null==o?void 0:o.message):t;return a?G.jsxs("p",{ref:r,id:i,className:xe("flex items-start gap-1 pt-xxs text-sm text-red-dark",e),...n,children:[G.jsx(o$,{size:16,className:"text-red-dark"})," ",a]}):null}));EV.displayName="FormMessage";const TV=M.forwardRef((({...e},t)=>{const{name:n}=Id();return G.jsx(hI,{ref:t,name:n,...e})}));TV.displayName="FormSelect";const RV=M.forwardRef((({className:e,children:t,...n},r)=>{const{formItemId:o}=Id();return G.jsx(cM,{ref:r,id:o,className:e,...n,children:t})}));RV.displayName="FormSelectTrigger";const PV=M.forwardRef(((e,t)=>G.jsx(vI,{ref:t,...e})));PV.displayName="FormSelectContent";const OV=M.forwardRef(((e,t)=>G.jsx(fM,{ref:t,...e})));OV.displayName="FormSelectItem";const AV=M.forwardRef(((e,t)=>G.jsx(uM,{ref:t,...e})));AV.displayName="FormSelectGroup";const NV=M.forwardRef(((e,t)=>G.jsx(dM,{ref:t,...e})));NV.displayName="FormSelectLabel";const DV=M.forwardRef(((e,t)=>G.jsx(pM,{ref:t,...e})));DV.displayName="FormSelectSeparator";const MV=M.forwardRef(((e,t)=>G.jsx(lM,{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 vM(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>Tl(e)));return function(n){const r=(null==n?void 0:n[e])||t;return An((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=Tl(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][i])||o,u=An((()=>a),Object.values(a));return se(s.Provider,{value:u},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const s=(null==a?void 0:a[e][i])||o,u=op(s);if(u)return u;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},kV(r,...t)]}function kV(...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 An((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function U0(e){const t=Ge(e);return Qe((()=>{t.current=e})),An((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function LV(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function BV(...e){return t=>e.forEach((e=>LV(e,t)))}function FV(...e){return _t(BV(...e),e)}function mp(e){return e.split("-")[0]}function zv(e){return e.split("-")[1]}function em(e){return["top","bottom"].includes(mp(e))?"x":"y"}function gI(e){return"y"===e?"height":"width"}function SP(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,s=em(t),u=gI(s),l=r[u]/2-o[u]/2,c="x"===s;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(zv(t)){case"start":d[s]-=l*(n&&c?-1:1);break;case"end":d[s]+=l*(n&&c?-1:1)}return d}MV.displayName="FormSelectValue";const jV=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:c}=SP(u,r,s),d=r,f={},p=0;for(let n=0;n<i.length;n++){const{name:m,fn:h}=i[n],{x:g,y:v,data:y,reset:b}=await h({x:l,y:c,initialPlacement:r,placement:d,strategy:o,middlewareData:f,rects:u,platform:a,elements:{reference:e,floating:t}});l=g??l,c=v??c,f={...f,[m]:{...f[m],...y}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:l,y:c}=SP(u,d,s))),n=-1)}return{x:l,y:c,placement:d,strategy:o,middlewareData:f}};function gM(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 n0(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function $v(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=t,m=gM(p),h=s[f?"floating"===d?"reference":"floating":d],g=n0(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(s.floating)),boundary:l,rootBoundary:c,strategy:u})),v=n0(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(s.floating)),strategy:u}):a[d]);return{top:g.top-v.top+m.top,bottom:v.bottom-g.bottom+m.bottom,left:g.left-v.left+m.left,right:v.right-g.right+m.right}}const zV=Math.min,Bf=Math.max;function OS(e,t,n){return Bf(e,zV(t,n))}const $P=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e??{},{x:o,y:i,placement:a,rects:s,platform:u}=t;if(null==n)return{};const l=gM(r),c={x:o,y:i},d=em(a),f=zv(a),p=gI(d),m=await u.getDimensions(n),h="y"===d?"top":"left",g="y"===d?"bottom":"right",v=s.reference[p]+s.reference[d]-c[d]-s.floating[p],y=c[d]-s.reference[d],b=await(null==u.getOffsetParent?void 0:u.getOffsetParent(n));let w=b?"y"===d?b.clientHeight||0:b.clientWidth||0:0;0===w&&(w=s.floating[p]);const x=v/2-y/2,_=l[h],S=w-m[p]-l[g],A=w/2-m[p]/2+x,I=OS(_,A,S),E=("start"===f?l[h]:l[g])>0&&A!==I&&s.reference[p]<=s.floating[p];return{[d]:c[d]-(E?A<_?_-A:S-A:0),data:{[d]:I,centerOffset:A-I}}}}),UV={left:"right",right:"left",bottom:"top",top:"bottom"};function r0(e){return e.replace(/left|right|bottom|top/g,(e=>UV[e]))}function VV(e,t,n){void 0===n&&(n=!1);const r=zv(e),o=em(e),i=gI(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=r0(a)),{main:a,cross:r0(a)}}const WV={start:"end",end:"start"};function IP(e){return e.replace(/start|end/g,(e=>WV[e]))}const yM=["top","right","bottom","left"];yM.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const qV=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:s,elements:u}=t,{mainAxis:l=!0,crossAxis:c=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:p=!0,...m}=e,h=mp(r),g=[a,...d||(h!==a&&p?function(e){const t=r0(e);return[IP(e),t,IP(t)]}(a):[r0(a)])],v=await $v(t,m),y=[];let b=(null==(n=o.flip)?void 0:n.overflows)||[];if(l&&y.push(v[h]),c){const{main:e,cross:t}=VV(r,i,await(null==s.isRTL?void 0:s.isRTL(u.floating)));y.push(v[e],v[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=g[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 CP(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function EP(e){return yM.some((t=>e[t]>=0))}const GV=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=CP(await $v(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:EP(t)}}}case"escaped":{const t=CP(await $v(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:EP(t)}}}default:return{}}}}},HV=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),s=zv(n),u="x"===em(n),l=["left","top"].includes(a)?-1:1,c=i&&u?-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 s&&"number"==typeof m&&(p="end"===s?-1*m:m),u?{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 wM(e){return"x"===e?"y":"x"}const KV=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:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=e,l={x:n,y:r},c=await $v(t,u),d=em(mp(o)),f=wM(d);let p=l[d],m=l[f];if(i){const e="y"===d?"bottom":"right";p=OS(p+c["y"===d?"top":"left"],p,p-c[e])}if(a){const e="y"===f?"bottom":"right";m=OS(m+c["y"===f?"top":"left"],m,m-c[e])}const h=s.fn({...t,[d]:p,[f]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},YV=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:u=!0,crossAxis:l=!0}=e,c={x:n,y:r},d=em(o),f=wM(d);let p=c[d],m=c[f];const h="function"==typeof s?s({...i,placement:o}):s,g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+g.mainAxis,n=i.reference[d]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var v,y,b,w;const e="y"===d?"width":"height",t=["top","left"].includes(mp(o)),n=i.reference[f]-i.floating[e]+(t&&null!=(v=null==(y=a.offset)?void 0:y[f])?v:0)+(t?0:g.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:null!=(b=null==(w=a.offset)?void 0:w[f])?b:0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}},QV=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,...s}=e,u=await $v(t,s),l=mp(n),c=zv(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=Bf(u.left,0),m=Bf(u.right,0),h=Bf(u.top,0),g=Bf(u.bottom,0),v={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==h||0!==g?h+g:Bf(u.top,u.bottom)):u[d]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==p||0!==m?p+m:Bf(u.left,u.right)):u[f])},y=await o.getDimensions(i.floating);null==a||a({...t,...v});const b=await o.getDimensions(i.floating);return y.width!==b.width||y.height!==b.height?{reset:{rects:!0}}:{}}}};function bM(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Bl(e){if(null==e)return window;if(!bM(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Uv(e){return Bl(e).getComputedStyle(e)}function Cl(e){return bM(e)?"":e?(e.nodeName||"").toLowerCase():""}function _M(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function _u(e){return e instanceof Bl(e).HTMLElement}function xd(e){return e instanceof Bl(e).Element}function yI(e){return!(typeof ShadowRoot>"u")&&(e instanceof Bl(e).ShadowRoot||e instanceof ShadowRoot)}function V0(e){const{overflow:t,overflowX:n,overflowY:r}=Uv(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function XV(e){return["table","td","th"].includes(Cl(e))}function TP(e){const t=/firefox/i.test(_M()),n=Uv(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 xM(){return!/^((?!chrome|android).)*safari/i.test(_M())}const RP=Math.min,fv=Math.max,o0=Math.round;function El(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let u=1,l=1;t&&_u(e)&&(u=e.offsetWidth>0&&o0(s.width)/e.offsetWidth||1,l=e.offsetHeight>0&&o0(s.height)/e.offsetHeight||1);const c=xd(e)?Bl(e):window,d=!xM()&&n,f=(s.left+(d&&null!=(r=null==(o=c.visualViewport)?void 0:o.offsetLeft)?r:0))/u,p=(s.top+(d&&null!=(i=null==(a=c.visualViewport)?void 0:a.offsetTop)?i:0))/l,m=s.width/u,h=s.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 Bl(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function W0(e){return xd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function SM(e){return El(md(e)).left+W0(e).scrollLeft}function JV(e,t,n){const r=_u(t),o=md(t),i=El(e,r&&function(e){const t=El(e);return o0(t.width)!==e.offsetWidth||o0(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==Cl(t)||V0(o))&&(a=W0(t)),_u(t)){const e=El(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=SM(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function $M(e){return"html"===Cl(e)?e:e.assignedSlot||e.parentNode||(yI(e)?e.host:null)||md(e)}function PP(e){return _u(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function AS(e){const t=Bl(e);let n=PP(e);for(;n&&XV(n)&&"static"===getComputedStyle(n).position;)n=PP(n);return n&&("html"===Cl(n)||"body"===Cl(n)&&"static"===getComputedStyle(n).position&&!TP(n))?t:n||function(e){let t=$M(e);for(yI(t)&&(t=t.host);_u(t)&&!["html","body"].includes(Cl(t));){if(TP(t))return t;t=t.parentNode}return null}(e)||t}function OP(e){if(_u(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=El(e);return{width:t.width,height:t.height}}function IM(e){const t=$M(e);return["html","body","#document"].includes(Cl(t))?e.ownerDocument.body:_u(t)&&V0(t)?t:IM(t)}function i0(e,t){var n;void 0===t&&(t=[]);const r=IM(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Bl(r),a=o?[i].concat(i.visualViewport||[],V0(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(i0(a))}function AP(e,t,n){return"viewport"===t?n0(function(e,t){const n=Bl(e),r=md(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,u=0;if(o){i=o.width,a=o.height;const e=xM();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:s,y:u}}(e,n)):xd(t)?function(e,t){const n=El(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):n0(function(e){var t;const n=md(e),r=W0(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=fv(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=fv(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+SM(e);const u=-r.scrollTop;return"rtl"===Uv(o||n).direction&&(s+=fv(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}(md(e)))}function ZV(e){const t=i0(e),n=["absolute","fixed"].includes(Uv(e).position)&&_u(e)?AS(e):e;return xd(n)?t.filter((e=>xd(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&yI(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==Cl(e))):[]}const eW={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?ZV(t):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=AP(t,n,o);return e.top=fv(r.top,e.top),e.right=RP(r.right,e.right),e.bottom=RP(r.bottom,e.bottom),e.left=fv(r.left,e.left),e}),AP(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=_u(n),i=md(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==Cl(n)||V0(i))&&(a=W0(n)),_u(n))){const e=El(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:xd,getDimensions:OP,getOffsetParent:AS,getDocumentElement:md,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:JV(t,AS(n),r),floating:{...OP(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===Uv(e).direction};function tW(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,u=o&&!s,l=i&&!s,c=u||l?[...xd(e)?i0(e):[],...i0(t)]:[];c.forEach((e=>{u&&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})),xd(e)&&!s&&f.observe(e),f.observe(t)}let p=s?El(e):null;return s&&function t(){const r=El(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=>{u&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}const nW=(e,t,n)=>jV(e,t,{platform:eW,...n});var NS=typeof document<"u"?ip:Qe;function DS(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(!DS(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||DS(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function rW(e){const t=M.useRef(e);return NS((()=>{t.current=e})),t}function oW(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===e?{}:e;const i=M.useRef(null),a=M.useRef(null),s=rW(o),u=M.useRef(null),[l,c]=M.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=M.useState(t);DS(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=M.useCallback((()=>{!i.current||!a.current||nW(i.current,a.current,{middleware:d,placement:n,strategy:r}).then((e=>{m.current&&Cs.flushSync((()=>{c(e)}))}))}),[d,n,r]);NS((()=>{m.current&&p()}),[p]);const m=M.useRef(!1);NS((()=>(m.current=!0,()=>{m.current=!1})),[]);const h=M.useCallback((()=>{if("function"==typeof u.current&&(u.current(),u.current=null),i.current&&a.current)if(s.current){const e=s.current(i.current,a.current,p);u.current=e}else p()}),[p,s]),g=M.useCallback((e=>{i.current=e,h()}),[h]),v=M.useCallback((e=>{a.current=e,h()}),[h]),y=M.useMemo((()=>({reference:i,floating:a})),[]);return M.useMemo((()=>({...l,update:p,refs:y,reference:g,floating:v})),[l,p,y,g,v])}const iW=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?$P({element:t.current,padding:n}).fn(e):{}:t?$P({element:t,padding:n}).fn(e):{}}};function aW(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function sW(...e){return t=>e.forEach((e=>aW(e,t)))}const CM=Fe(((e,t)=>{const{children:n,...r}=e,o=sa.toArray(n),i=o.find(lW);if(i){const e=i.props.children,n=o.map((t=>t===i?sa.count(e)>1?sa.only(null):vd(e)?e.props.children:null:t));return se(MS,Ae({},r,{ref:t}),vd(e)?sp(e,void 0,n):null)}return se(MS,Ae({},r,{ref:t}),n)}));CM.displayName="Slot";const MS=Fe(((e,t)=>{const{children:n,...r}=e;return vd(n)?sp(n,{...cW(r,n.props),ref:sW(t,n.ref)}):sa.count(n)>1?sa.only(null):null}));MS.displayName="SlotClone";const uW=({children:e})=>se(ap,null,e);function lW(e){return vd(e)&&e.type===uW}function cW(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 dW=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],kS=dW.reduce(((e,t)=>{const n=Fe(((e,n)=>{const{asChild:r,...o}=e,i=r?CM:t;return Qe((()=>{window[Symbol.for("radix-ui")]=!0}),[]),se(i,Ae({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function fW(e,t){e&&Cs.flushSync((()=>e.dispatchEvent(t)))}function pW(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function hW(...e){return t=>e.forEach((e=>pW(e,t)))}function mW(...e){return _t(hW(...e),e)}const Uf=null!=globalThis&&globalThis.document?ip:()=>{};function vW(e){const[t,n]=lt(void 0);return Uf((()=>{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 EM="Popper",[wI,TM]=vM(EM),[dJ,gW]=wI(EM),a0="PopperContent",[yW,fJ]=wI(a0),[wW,bW]=wI(a0,{hasParent:!1,positionUpdateFns:new Set}),_W=Fe(((e,t)=>{var n,r,o,i,a,s,u,l;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:m=0,arrowPadding:h=0,collisionBoundary:g=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:b=!1,avoidCollisions:w=!0,onPlaced:x,..._}=e,S=gW(a0,c),[A,I]=lt(null),E=mW(t,(e=>I(e))),[k,M]=lt(null),C=vW(k),N=null!==(n=null==C?void 0:C.width)&&void 0!==n?n:0,P=null!==(r=null==C?void 0:C.height)&&void 0!==r?r:0,O=d+("center"!==p?"-"+p:""),T="number"==typeof v?v:{top:0,right:0,bottom:0,left:0,...v},R=Array.isArray(g)?g:[g],D=R.length>0,j={padding:T,boundary:R.filter(SW),altBoundary:D},{reference:q,floating:L,strategy:z,x:$,y:B,placement:F,middlewareData:V,update:G}=oW({strategy:"fixed",placement:O,whileElementsMounted:tW,middleware:[$W(),HV({mainAxis:f+P,alignmentAxis:m}),w?KV({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?YV():void 0,...j}):void 0,k?iW({element:k,padding:h}):void 0,w?qV({...j}):void 0,QV({...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`)}}),IW({arrowWidth:N,arrowHeight:P}),b?GV({strategy:"referenceHidden"}):void 0].filter(xW)});Uf((()=>{q(S.anchor)}),[q,S.anchor]);const U=null!==$&&null!==B,[W,Q]=RM(F),H=U0(x);Uf((()=>{U&&(null==H||H())}),[U,H]);const K=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),[J,Z]=lt();Uf((()=>{A&&Z(window.getComputedStyle(A).zIndex)}),[A]);const{hasParent:ee,positionUpdateFns:te}=bW(a0,c),ne=!ee;ip((()=>{if(!ne)return te.add(G),()=>{te.delete(G)}}),[ne,te,G]),Uf((()=>{ne&&U&&Array.from(te).reverse().forEach((e=>requestAnimationFrame(e)))}),[ne,U,te]);const re={"data-side":W,"data-align":Q,..._,ref:E,style:{..._.style,animation:U?void 0:"none",opacity:null!==(s=V.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return se("div",{ref:L,"data-radix-popper-content-wrapper":"",style:{position:z,left:0,top:0,transform:U?`translate3d(${Math.round($)}px, ${Math.round(B)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[null===(u=V.transformOrigin)||void 0===u?void 0:u.x,null===(l=V.transformOrigin)||void 0===l?void 0:l.y].join(" ")},dir:e.dir},se(yW,{scope:c,placedSide:W,onArrowChange:M,arrowX:K,arrowY:Y,shouldHideArrow:X},ne?se(wW,{scope:c,hasParent:!0,positionUpdateFns:te},se(kS.div,re)):se(kS.div,re)))}));function xW(e){return void 0!==e}function SW(e){return null!==e}const $W=()=>({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`),{}}}),IW=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:u,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]=RM(s),h={start:"0%",center:"50%",end:"100%"}[m],g=(null!==(r=null===(o=l.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(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:`${g}px`,b=-f+"px"):"top"===p?(y=c?h:`${g}px`,b=`${u.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?h:`${v}px`):"left"===p&&(y=`${u.floating.width+f}px`,b=c?h:`${v}px`),{data:{x:y,y:b}}}});function RM(e){const[t,n="center"]=e.split("-");return[t,n]}const CW=_W;function EW(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function TW(...e){return t=>e.forEach((e=>EW(e,t)))}function RW(...e){return _t(TW(...e),e)}function PW(e,t){return dO(((e,n)=>t[e][n]??e),e)}const PM=e=>{const{present:t,children:n}=e,r=OW(t),o="function"==typeof n?n({present:r.isPresent}):sa.only(n),i=RW(r.ref,o.ref);return"function"==typeof n||r.isPresent?sp(o,{ref:i}):null};function OW(e){const[t,n]=lt(),r=Ge({}),o=Ge(e),i=Ge("none"),a=e?"mounted":"unmounted",[s,u]=PW(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Qe((()=>{const e=Lg(r.current);i.current="mounted"===s?e:"none"}),[s]),Uf((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Lg(t);e?u("MOUNT"):"none"===a||"none"===(null==t?void 0:t.display)?u("UNMOUNT"):u(n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,u]),Uf((()=>{if(t){const e=e=>{const n=Lg(r.current).includes(e.animationName);e.target===t&&n&&Cs.flushSync((()=>u("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=Lg(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)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:_t((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Lg(e){return(null==e?void 0:e.animationName)||"none"}function AW(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function NW(...e){return t=>e.forEach((e=>AW(e,t)))}function DW(...e){return _t(NW(...e),e)}function MW(e,t=(null==globalThis?void 0:globalThis.document)){const n=U0(e);Qe((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}PM.displayName="Presence";const LS="dismissableLayer.update",kW="dismissableLayer.pointerDownOutside",LW="dismissableLayer.focusOutside";let NP;const BW=Tl({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),FW=Fe(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:u,...l}=e,c=op(BW),[d,f]=lt(null),p=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=lt({}),h=DW(t,(e=>f(e))),g=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(v),b=d?g.indexOf(d):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,x=b>=y,_=jW((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));!x||n||(null==i||i(e),null==s||s(e),e.defaultPrevented||null==u||u())}),p),S=zW((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==u||u())}),p);return MW((e=>{b===c.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),p),Qe((()=>{if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(NP=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),DP(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=NP)}}),[d,p,r,c]),Qe((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),DP())}),[d,c]),Qe((()=>{const e=()=>m({});return document.addEventListener(LS,e),()=>document.removeEventListener(LS,e)}),[]),se(kS.div,Ae({},l,{ref:h,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:qf(e.onFocusCapture,S.onFocusCapture),onBlurCapture:qf(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:qf(e.onPointerDownCapture,_.onPointerDownCapture)}))}));function jW(e,t=(null==globalThis?void 0:globalThis.document)){const n=U0(e),r=Ge(!1),o=Ge((()=>{}));return Qe((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){OM(kW,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 zW(e,t=(null==globalThis?void 0:globalThis.document)){const n=U0(e),r=Ge(!1);return Qe((()=>{const e=e=>{e.target&&!r.current&&OM(LW,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 DP(){const e=new CustomEvent(LS);document.dispatchEvent(e)}function OM(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?fW(o,i):o.dispatchEvent(i)}let cx;const AM="HoverCard",[NM,pJ]=vM(AM,[TM]),UW=TM(),[hJ,DM]=NM(AM),VW="HoverCardPortal",[mJ,WW]=NM(VW,{forceMount:void 0}),BS="HoverCardContent",qW=Fe(((e,t)=>{const n=WW(BS,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,i=DM(BS,e.__scopeHoverCard);return se(PM,{present:r||i.open},se(GW,Ae({"data-state":i.open?"open":"closed"},o,{onPointerEnter:qf(e.onPointerEnter,MP(i.onOpen)),onPointerLeave:qf(e.onPointerLeave,MP(i.onClose)),ref:t})))})),GW=Fe(((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,...s}=e,u=DM(BS,n),l=UW(n),c=Ge(null),d=FV(t,c),[f,p]=lt(!1);return Qe((()=>{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]),Qe((()=>{if(c.current){const e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout((()=>{var e;""!==(null===(e=document.getSelection())||void 0===e?void 0:e.toString())&&(u.hasSelectionRef.current=!0)}))};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!1}}}),[u.isPointerDownOnContentRef,u.hasSelectionRef]),Qe((()=>{c.current&&HW(c.current).forEach((e=>e.setAttribute("tabindex","-1")))})),se(FW,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:a,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:qf(i,(e=>{e.preventDefault()})),onDismiss:u.onDismiss},se(CW,Ae({},l,s,{onPointerDown:qf(s.onPointerDown,(e=>{e.currentTarget.contains(e.target)&&p(!0),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!0})),ref:d,style:{...s.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 MP(e){return t=>"touch"===t.pointerType?void 0:e()}function HW(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 MM=qW,KW=M.forwardRef((({className:e,align:t="center",sideOffset:n=4,...r},o)=>G.jsx(MM,{ref:o,align:t,sideOffset:n,className:xe("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})));KW.displayName=MM.displayName;const kM=M.forwardRef((({className:e,type:t,...n},r)=>{const{error:o}=Id();return G.jsx("input",{type:t,title:n.disabled?"Disabled":"",className:xe("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 YW(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>M.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return M.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=M.createContext(r),i=n.length;n=[...n,r];const a=t=>{var n;const{scope:r,children:a,...s}=t,u=(null==(n=null==r?void 0:r[e])?void 0:n[i])||o,l=M.useMemo((()=>s),Object.values(s));return G.jsx(u.Provider,{value:l,children:a})};return a.displayName=t+"Provider",[a,function(n,a){var s;const u=(null==(s=null==a?void 0:a[e])?void 0:s[i])||o,l=M.useContext(u);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},QW(r,...t)]}function QW(...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 M.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function kP(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function XW(...e){return t=>{let n=!1;const r=e.map((e=>{const r=kP(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():kP(e[t],null)}}}}function JW(e){const t=ZW(e),n=M.forwardRef(((e,n)=>{const{children:r,...o}=e,i=M.Children.toArray(r),a=i.find(tq);if(a){const e=a.props.children,r=i.map((t=>t===a?M.Children.count(e)>1?M.Children.only(null):M.isValidElement(e)?e.props.children:null:t));return G.jsx(t,{...o,ref:n,children:M.isValidElement(e)?M.cloneElement(e,void 0,r):null})}return G.jsx(t,{...o,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function ZW(e){const t=M.forwardRef(((e,t)=>{const{children:n,...r}=e;if(M.isValidElement(n)){const e=rq(n),o=nq(r,n.props);return n.type!==M.Fragment&&(o.ref=t?XW(t,e):e),M.cloneElement(n,o)}return M.Children.count(n)>1?M.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}kM.displayName="Input";var eq=Symbol("radix.slottable");function tq(e){return M.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eq}function nq(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 rq(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 oq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],LM=oq.reduce(((e,t)=>{const n=JW(`Primitive.${t}`),r=M.forwardRef(((e,r)=>{const{asChild:o,...i}=e,a=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),G.jsx(a,{...i,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{}),bI="Progress",_I=100,[iq,vJ]=YW(bI),[aq,sq]=iq(bI),BM=M.forwardRef(((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:i=uq,...a}=e;(o||0===o)&&!LP(o)&&console.error(lq(`${o}`,"Progress"));const s=LP(o)?o:_I;null!==r&&!BP(r,s)&&console.error(cq(`${r}`,"Progress"));const u=BP(r,s)?r:null,l=s0(u)?i(u,s):void 0;return G.jsx(aq,{scope:n,value:u,max:s,children:G.jsx(LM.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":s0(u)?u:void 0,"aria-valuetext":l,role:"progressbar","data-state":zM(u,s),"data-value":u??void 0,"data-max":s,...a,ref:t})})}));BM.displayName=bI;var FM="ProgressIndicator",jM=M.forwardRef(((e,t)=>{const{__scopeProgress:n,...r}=e,o=sq(FM,n);return G.jsx(LM.div,{"data-state":zM(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})}));function uq(e,t){return`${Math.round(e/t*100)}%`}function zM(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function s0(e){return"number"==typeof e}function LP(e){return s0(e)&&!isNaN(e)&&e>0}function BP(e,t){return s0(e)&&!isNaN(e)&&e<=t&&e>=0}function lq(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${_I}\`.`}function cq(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 ${_I} if no \`max\` prop is set)\n - \`null\` or \`undefined\` if the progress is indeterminate.\n\nDefaulting to \`null\`.`}jM.displayName=FM;var UM=BM,dq=jM;const fq=M.forwardRef((({className:e,value:t,indicatorClassName:n,...r},o)=>G.jsx(UM,{ref:o,className:xe("relative h-[7px] w-full overflow-hidden rounded-full bg-blue_10",e),...r,children:G.jsx(dq,{className:xe("h-full w-full flex-1 rounded-full bg-blue_100 transition-all",n),style:{transform:`translateX(-${100-(t||0)}%)`}})})));fq.displayName=UM.displayName;const VM="Radio",[pq,WM]=di(VM),[hq,mq]=pq(VM),vq=Fe(((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:a,value:s="on",onCheck:u,...l}=e,[c,d]=lt(null),f=Zt(t,(e=>d(e))),p=Ge(!1),m=!c||!!c.closest("form");return se(hq,{scope:n,checked:o,disabled:a},se(gt.button,Ae({type:"button",role:"radio","aria-checked":o,"data-state":qM(o),"data-disabled":a?"":void 0,disabled:a,value:s},l,{ref:f,onClick:it(e.onClick,(e=>{o||null==u||u(),m&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())}))})),m&&se(wq,{control:c,bubbles:!p.current,name:r,value:s,checked:o,required:i,disabled:a,style:{transform:"translateX(-100%)"}}))})),gq="RadioIndicator",yq=Fe(((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,i=mq(gq,n);return se(ca,{present:r||i.checked},se(gt.span,Ae({"data-state":qM(i.checked),"data-disabled":i.disabled?"":void 0},o,{ref:t})))})),wq=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=Ge(null),a=P0(n),s=O0(t);return Qe((()=>{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]),se("input",Ae({type:"radio","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function qM(e){return e?"checked":"unchecked"}const bq=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],GM="RadioGroup",[_q,gJ]=di(GM,[Jh,WM]),HM=Jh(),KM=WM(),[xq,Sq]=_q(GM),$q=Fe(((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:a=!1,disabled:s=!1,orientation:u,dir:l,loop:c=!0,onValueChange:d,...f}=e,p=HM(n),m=K$(l),[h,g]=gd({prop:i,defaultProp:o,onChange:d});return se(xq,{scope:n,name:r,required:a,disabled:s,value:h,onValueChange:g},se(oI,Ae({asChild:!0},p,{orientation:u,dir:m,loop:c}),se(gt.div,Ae({role:"radiogroup","aria-required":a,"aria-orientation":u,"data-disabled":s?"":void 0,dir:m},f,{ref:t}))))})),Iq="RadioGroupItem",Cq=Fe(((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,i=Sq(Iq,n),a=i.disabled||r,s=HM(n),u=KM(n),l=Ge(null),c=Zt(t,l),d=i.value===o.value,f=Ge(!1);return Qe((()=>{const e=e=>{bq.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)}}),[]),se(iI,Ae({asChild:!0},s,{focusable:!a,active:d}),se(vq,Ae({disabled:a,required:i.required,checked:d},u,o,{name:i.name,ref:c,onCheck:()=>i.onValueChange(o.value),onKeyDown:it((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:it(o.onFocus,(()=>{var e;f.current&&(null===(e=l.current)||void 0===e||e.click())}))})))})),Eq=Fe(((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=KM(n);return se(yq,Ae({},o,r,{ref:t}))})),YM=$q,QM=Cq,Tq=Eq,Rq=M.forwardRef((({className:e,...t},n)=>G.jsx(YM,{className:xe("grid gap-2",e),...t,ref:n})));Rq.displayName=YM.displayName;const Pq=M.forwardRef((({className:e,...t},n)=>G.jsx(QM,{ref:n,className:xe("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:G.jsx(Tq,{className:"flex items-center justify-center",children:G.jsx(wL,{className:"stack-animate size-2 border-none",style:{fill:t.disabled?"var(--gray-300)":"white",color:t.disabled?"var(--gray-300)":"white"}})})})));Pq.displayName=QM.displayName;const Oq=JO,Aq=y0,XM=M.forwardRef((({className:e,...t},n)=>G.jsx(Gh,{className:xe("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})));XM.displayName=Gh.displayName;const Nq=xu("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"}}),JM=M.forwardRef((({side:e="right",className:t,overlayClassName:n,children:r,...o},i)=>G.jsxs(Aq,{children:[G.jsx(XM,{className:xe("bg-gray-900/70",n)}),G.jsxs(Hh,{ref:i,className:xe(Nq({side:e}),t),...o,children:[r,G.jsxs(w0,{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:[G.jsx(d0,{className:"h-4 w-4"}),G.jsx("span",{className:"sr-only",children:"Close"})]})]})]})));JM.displayName=Hh.displayName;const ZM=({className:e,...t})=>G.jsx("div",{className:xe("flex flex-col space-y-2 text-center sm:text-left",e),...t});ZM.displayName="SheetHeader";const ek=M.forwardRef((({className:e,...t},n)=>G.jsx(Av,{ref:n,className:xe("text-lg font-semibold text-foreground",e),...t})));ek.displayName=Av.displayName;const tk=M.forwardRef((({className:e,...t},n)=>G.jsx(Nv,{ref:n,className:xe("text-sm text-muted-foreground",e),...t})));tk.displayName=Nv.displayName;const[q0,yJ]=di("Tooltip",[Xh]),G0=Xh(),Dq="TooltipProvider",Mq=700,FS="tooltip.open",[kq,xI]=q0(Dq),Lq=e=>{const{__scopeTooltip:t,delayDuration:n=Mq,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[a,s]=lt(!0),u=Ge(!1),l=Ge(0);return Qe((()=>{const e=l.current;return()=>window.clearTimeout(e)}),[]),se(kq,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:_t((()=>{window.clearTimeout(l.current),s(!1)}),[]),onClose:_t((()=>{window.clearTimeout(l.current),l.current=window.setTimeout((()=>s(!0)),r)}),[r]),isPointerInTransitRef:u,onPointerInTransitChange:_t((e=>{u.current=e}),[]),disableHoverableContent:o},i)},SI="Tooltip",[Bq,Vv]=q0(SI),Fq=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,u=xI(SI,e.__scopeTooltip),l=G0(t),[c,d]=lt(null),f=pd(),p=Ge(0),m=a??u.disableHoverableContent,h=s??u.delayDuration,g=Ge(!1),[v=!1,y]=gd({prop:r,defaultProp:o,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(FS))):u.onClose(),null==i||i(e)}}),b=An((()=>v?g.current?"delayed-open":"instant-open":"closed"),[v]),w=_t((()=>{window.clearTimeout(p.current),g.current=!1,y(!0)}),[y]),x=_t((()=>{window.clearTimeout(p.current),y(!1)}),[y]),_=_t((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{g.current=!0,y(!0)}),h)}),[h,y]);return Qe((()=>()=>window.clearTimeout(p.current)),[]),se(_D,l,se(Bq,{scope:t,contentId:f,open:v,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:_t((()=>{u.isOpenDelayed?_():w()}),[u.isOpenDelayed,_,w]),onTriggerLeave:_t((()=>{m?x():window.clearTimeout(p.current)}),[x,m]),onOpen:w,onClose:x,disableHoverableContent:m},n))},FP="TooltipTrigger",jq=Fe(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Vv(FP,n),i=xI(FP,n),a=G0(n),s=Zt(t,Ge(null),o.onTriggerChange),u=Ge(!1),l=Ge(!1),c=_t((()=>u.current=!1),[]);return Qe((()=>()=>document.removeEventListener("pointerup",c)),[c]),se(tI,Ae({asChild:!0},a),se(gt.button,Ae({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:s,onPointerMove:it(e.onPointerMove,(e=>{"touch"!==e.pointerType&&!l.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),l.current=!0)})),onPointerLeave:it(e.onPointerLeave,(()=>{o.onTriggerLeave(),l.current=!1})),onPointerDown:it(e.onPointerDown,(()=>{u.current=!0,document.addEventListener("pointerup",c,{once:!0})})),onFocus:it(e.onFocus,(()=>{u.current||o.onOpen()})),onBlur:it(e.onBlur,o.onClose),onClick:it(e.onClick,o.onClose)})))})),nk="TooltipPortal",[zq,Uq]=q0(nk,{forceMount:void 0}),Vq=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=Vv(nk,t);return se(zq,{scope:t,forceMount:n},se(ca,{present:n||i.open},se(h0,{asChild:!0,container:o},r)))},Iv="TooltipContent",rk=Fe(((e,t)=>{const n=Uq(Iv,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=Vv(Iv,e.__scopeTooltip);return se(ca,{present:r||a.open},a.disableHoverableContent?se(ok,Ae({side:o},i,{ref:t})):se(Wq,Ae({side:o},i,{ref:t})))})),Wq=Fe(((e,t)=>{const n=Vv(Iv,e.__scopeTooltip),r=xI(Iv,e.__scopeTooltip),o=Ge(null),i=Zt(t,o),[a,s]=lt(null),{trigger:u,onClose:l}=n,c=o.current,{onPointerInTransitChange:d}=r,f=_t((()=>{s(null),d(!1)}),[d]),p=_t(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=Zq([...Qq(r,Yq(r,n.getBoundingClientRect())),...Xq(t.getBoundingClientRect())]);s(o),d(!0)}),[d]);return Qe((()=>()=>f()),[f]),Qe((()=>{if(u&&c){const e=e=>p(e,c),t=e=>p(e,u);return u.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}}),[u,c,p,f]),Qe((()=>{if(a){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==u?void 0:u.contains(t))||(null==c?void 0:c.contains(t)),o=!Jq(n,a);r?f():o&&(f(),l())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[u,c,a,l,f]),se(ok,Ae({},e,{ref:i}))})),[qq,Gq]=q0(SI,{isInside:!1}),ok=Fe(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,u=Vv(Iv,n),l=G0(n),{onClose:c}=u;return Qe((()=>(document.addEventListener(FS,c),()=>document.removeEventListener(FS,c))),[c]),Qe((()=>{if(u.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(u.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[u.trigger,c]),se(p0,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},se(nI,Ae({"data-state":u.stateAttribute},l,s,{ref:t,style:{...s.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)"}}),se(u$,null,r),se(qq,{scope:n,isInside:!0},se(RU,{id:u.contentId,role:"tooltip"},o||r))))})),Hq="TooltipArrow",Kq=Fe(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=G0(n);return Gq(Hq,n).isInside?null:se(rz,Ae({},o,r,{ref:t}))}));function Yq(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 Qq(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 Xq(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 Jq(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,s=t[e].y,u=t[i].x,l=t[i].y;s>r!=l>r&&n<(u-a)*(r-s)/(l-s)+a&&(o=!o)}return o}function Zq(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)),eG(t)}function eG(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 tG=Vq,ik=rk,nG=Kq,rG=()=>{const e=window.innerWidth;return e<768?"mobile":e<1024?"tablet":"desktop"},oG=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)},iG=e=>oG(e)&&"type"in e&&"string"==typeof e.type,Et=e=>{const t=t=>({type:e,payload:t});return t.toString=()=>`${e}`,t.type=e,t.match=t=>iG(t)&&t.type===e,t};Et("remoteReady"),Et("askLogin"),Et("reselectUser"),Et("requestLogout");const aG=Et("setConfirmLeavePage"),sG=Et("requestChangePath");Et("wsSubscribe"),Et("wsUnSubscribe"),Et("hostStoreConnect"),Et("remoteLogin");const uG=Et("remoteLogout");Et("wsOnMessage");const lG=Et("setRouterPath"),cG=Et("setDeviceType"),dG=Et("setDeviceWidth"),fG=Et("setUserError"),pG=Et("setUserIsError"),hG=Et("setUserPending"),mG=Et("setUserSuccess"),vG=Et("setUserData"),gG=Et("updateAccountData"),yG=Et("updateUser"),wG=Et("addNotification"),bG=Et("markNotification"),_G=Et("setNotificationsError"),xG=Et("setNotificationsList"),SG=Et("setNotificationsPending"),$G=Et("setNotificationsTotalCount"),IG=Et("setNotificationsUnreadCount"),CG=Et("acceptAllFollowRequests"),EG=Et("resetNotificationsState"),TG=Et("undoNotification"),RG=Et("setInstanceInfo"),PG=Et("setInstanceInfoPending"),OG=Et("setInstanceInfoError"),AG=Et("setPlatformSettings"),NG=Et("setProfileSettings");Et("setGroupData"),Et("setGroupLoading"),Et("requestLocalStorageGet"),Et("requestLocalStorageSet"),Et("requestLocalStorageRemove"),Et("requestLocalStorageClear"),Et("requestLocalStorageKeys"),Et("requestLocalStorageHas"),Et("sendLocalStorageResponse"),Et("sendLocalStorageChanged");const pv="8.48.0",Ol=globalThis;function $I(e,t,n){const r=Ol,o=r.__SENTRY__=r.__SENTRY__||{},i=o[pv]=o[pv]||{};return i[e]||(i[e]=t())}const ak=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,DG="Sentry Logger ",jP=["debug","info","warn","error","log","assert","trace"],zP={};function MG(e){if(!("console"in Ol))return e();const t=Ol.console,n={},r=Object.keys(zP);r.forEach((e=>{const r=zP[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}function kG(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return ak?jP.forEach((n=>{t[n]=(...t)=>{e&&MG((()=>{Ol.console[n](`${DG}[${n}]:`,...t)}))}})):jP.forEach((e=>{t[e]=()=>{}})),t}const qg=$I("logger",kG);function II(){return CI(Ol),Ol}function CI(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||pv,t[pv]=t[pv]||{}}const LG=Object.prototype.toString;function BG(e,t){return LG.call(e)===`[object ${t}]`}function FG(e){return BG(e,"Object")}function jG(e){return!(!e||!e.then||"function"!=typeof e.then)}function zG(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{ak&&qg.log(`Failed to add non-enumerable property "${t}" to object`,e)}}const sk=1e3;function uk(){return Date.now()/sk}function UG(){const{performance:e}=Ol;if(!e||!e.now)return uk;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/sk}const VG=UG();function Bh(){const e=Ol,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function WG(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||VG(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Bh()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function UP(){return Bh()}function VP(){return Bh().substring(16)}function lk(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const r={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=lk(r[e],t[e],n-1));return r}(()=>{const{performance:e}=Ol;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,a=e.timing&&e.timing.navigationStart,s="number"==typeof a?Math.abs(a+n-r):t;(i||s<t)&&(o<=s&&e.timeOrigin)})();const jS="_sentrySpan";function WP(e,t){t?zG(e,jS,t):delete e[jS]}function qP(e){return e[jS]}const qG=100;class EI{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:UP(),spanId:VP()}}clone(){const e=new EI;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,WP(e,qP(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&WG(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof Cv?[t.getScopeData(),t.getRequestSession()]:FG(t)?[e,e.requestSession]:[],{tags:o,extra:i,user:a,contexts:s,level:u,fingerprint:l=[],propagationContext:c}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...s},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),l.length&&(this._fingerprint=l),c&&(this._propagationContext=c),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,WP(this,void 0),this._attachments=[],this.setPropagationContext({traceId:UP()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:qG;if(n<=0)return this;const r={timestamp:uk(),...e},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:qP(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=lk(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:VP(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:Bh();if(!this._client)return qg.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:Bh();if(!this._client)return qg.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Bh();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(qg.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const Cv=EI;function GG(){return $I("defaultCurrentScope",(()=>new Cv))}function HG(){return $I("defaultIsolationScope",(()=>new Cv))}class KG{constructor(e,t){let n,r;n=e||new Cv,r=t||new Cv,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return jG(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function Vh(){const e=CI(II());return e.stack=e.stack||new KG(GG(),HG())}function YG(e){return Vh().withScope(e)}function QG(e,t){const n=Vh();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function GP(e){return Vh().withScope((()=>e(Vh().getIsolationScope())))}function XG(){return{withIsolationScope:GP,withScope:YG,withSetScope:QG,withSetIsolationScope:(e,t)=>GP(t),getCurrentScope:()=>Vh().getScope(),getIsolationScope:()=>Vh().getIsolationScope()}}function ck(e){const t=CI(e);return t.acs?t.acs:XG()}function dk(){return ck(II()).getCurrentScope()}function JG(){return ck(II()).getIsolationScope()}function ZG(e,t){return dk().captureException(e,void 0)}function eH(e,t){const n={captureContext:t};return dk().captureMessage(e,void 0,n)}function tH(e,t){JG().setExtra(e,t)}const nH=(...e)=>{let t="";for(const n of e){if(n instanceof Error){const e=n;return tH("exceptionMessage",t),void ZG(e)}if("object"!=typeof n)t+=n;else try{t+=" "+JSON.stringify(n)}catch{t+=" "+n}}eH(t)},H0=()=>"object"!=typeof window,rH="wlsy",fk=()=>{try{return window.localStorage}catch(e){console.warn("Error getting window.localStorage storage",e)}},oH=()=>{const e=new Set,t=fk();if(!t)return[];for(let n=0;n<(null==t?void 0:t.length);n+=1){const r=null==t?void 0:t.key(n);"string"==typeof r&&e.add(r)}return Array.from(e)},TI=e=>{const t=`${rH}${e?`:${e}`:""}`,n=e=>`${t}:${e}`,r=()=>oH().filter((e=>e.startsWith(`${t}:`))),o=e=>e.slice(t.length+1),i=fk(),a=e=>{try{return null==i?void 0:i.getItem(n(e))}catch{return null}},s=(e,t)=>{try{null==i||i.setItem(n(e),String(t))}catch{return}};return{getItem:a,setItem:s,removeItem:e=>{try{null==i||i.removeItem(n(e))}catch{return}},clear:()=>{try{r().forEach((e=>null==i?void 0:i.removeItem(e)))}catch{return}},keys:()=>r().map(o),has:e=>null!==a(e),getJSON:e=>{const t=a(e);if(null==t)return null;try{return JSON.parse(t)}catch{return null}},setJSON:(e,t)=>{try{s(e,JSON.stringify(t))}catch{return}}}},HP=["debug","info","warn","error"],iH=(e,t)=>{const n=HP.indexOf(e);return HP.indexOf(t)>=n},Bg=(e,t,n,...r)=>{iH(t,e)&&console.log(`[${e}] ${n}`,...r)},aH=()=>TI().getItem("logger_lvl"),sH=(e=(H0()?"info":aH()||"warn"))=>{let t=e;return{debug:(e,...n)=>Bg("debug",t,e,...n),info:(e,...n)=>Bg("info",t,e,...n),warn:(e,...n)=>Bg("warn",t,e,...n),error:(e,...n)=>(nH(e,...n),Bg("error",t,e,...n)),setLevel:e=>{t=e},getLevel:()=>t}},vp=sH(),uH=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 vp.warn(`Could not serialize action type: ${e.type}`,t),{type:e.type,payload:`[Non-serializable payload for action: ${e.type}]`}}},lH=({action:e,windowElement:t,whitelist:n})=>{if(t)try{const{type:r}=e;if(!n.some((({type:e})=>e===r||"*"===e)))return;const o=uH(e);t.postMessage(o,"*")}catch(e){vp.error("Failed to process or send message:",e)}},cH=({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,s=t.some((({type:e})=>e===r.data.type||"*"===e));!o&&i&&a&&s&&e(r.data)};return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}},KP=Dl("requestMicroFrontendFetch"),dH=Dl("sendMicroFrontendFetchResponse"),fH={deviceType:rG(),deviceWidth:window.innerWidth},pk=No({name:"ui",initialState:fH,reducers:{},extraReducers:e=>{e.addCase(cG,((e,{payload:t})=>{e.deviceType=t})),e.addCase(dG,((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,YP,fx,QP,px,XP,hx,JP,mx,ZP,vx,e2,gx,t2,yx,n2,wx,r2,bx,o2,_x,i2,xx,a2,Sx,s2,$x,u2,Ix,l2,Cx,c2,Ex,d2,Tx,f2,Rx,p2,Px,h2,Ox,m2,Ax,v2,Nx,g2,Dx,y2,Mx,w2,kx,b2,Lx,_2,Bx,x2,Fx,S2,jx,$2,zx,I2,Ux,C2,Vx,E2,Wx,T2,qx,R2,Gx,P2,Hx,O2,Kx,A2,Yx,N2,Qx,D2,Xx,M2;function hk(){if(YP)return dx;YP=1;var e=jA(),t=e&&new e;return dx=t}function mk(){if(QP)return fx;QP=1;var e=N$(),t=hk();return fx=t?function(e,n){return t.set(e,n),e}:e}function K0(){if(XP)return px;XP=1;var e=R0(),t=Es();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 pH(){if(JP)return hx;JP=1;var e=K0(),t=fi();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 vk(){if(ZP)return mx;ZP=1;var e=Math.max;return mx=function(t,n,r,o){for(var i=-1,a=t.length,s=r.length,u=-1,l=n.length,c=e(a-s,0),d=Array(l+c),f=!o;++u<l;)d[u]=n[u];for(;++i<s;)(f||i<a)&&(d[r[i]]=t[i]);for(;c--;)d[u++]=t[i++];return d}}function gk(){if(e2)return vx;e2=1;var e=Math.max;return vx=function(t,n,r,o){for(var i=-1,a=t.length,s=-1,u=r.length,l=-1,c=n.length,d=e(a-u,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(;++s<u;)(p||i<a)&&(f[m+r[s]]=t[i++]);return f}}function hH(){if(t2)return gx;return t2=1,gx=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}}function RI(){if(n2)return yx;return n2=1,yx=function(){}}function PI(){if(r2)return wx;r2=1;var e=R0(),t=RI();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 yk(){if(o2)return bx;o2=1;var e=hk(),t=g8();return bx=e?function(t){return e.get(t)}:t}function mH(){if(i2)return _x;i2=1;return _x={}}function vH(){if(a2)return xx;a2=1;var e=mH(),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],s=a.func;if(null==s||s==n)return a.name}return r}}function wk(){if(s2)return Sx;s2=1;var e=R0(),t=RI();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 gH(){if(u2)return $x;u2=1;var e=PI(),t=wk(),n=T0();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 yH(){if(l2)return Ix;l2=1;var e=PI(),t=wk(),n=RI(),r=Di(),o=da(),i=gH(),a=Object.prototype.hasOwnProperty;function s(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 s.prototype=n.prototype,s.prototype.constructor=s,Ix=s}function wH(){if(c2)return Cx;c2=1;var e=PI(),t=yk(),n=vH(),r=yH();return Cx=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 s=t(a);return!!s&&o===s[0]}}function bk(){if(d2)return Ex;d2=1;var e=mk(),t=qA()(e);return Ex=t}function bH(){if(f2)return Tx;f2=1;var e=/\{\n\/\* \[wrapped with (.+)\] \*/,t=/,? & /;return Tx=function(n){var r=n.match(e);return r?r[1].split(t):[]}}function _H(){if(p2)return Rx;p2=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 xH(){if(h2)return Px;h2=1;var e=k$(),t=v8(),n=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];return Px=function(r,o){return e(n,(function(e){var n="_."+e[0];o&e[1]&&!t(r,n)&&r.push(n)})),r.sort()}}function _k(){if(m2)return Ox;m2=1;var e=bH(),t=_H(),n=GA(),r=xH();return Ox=function(o,i,a){var s=i+"";return n(o,t(s,r(e(s),a)))}}function xk(){if(v2)return Ax;v2=1;var e=wH(),t=bk(),n=_k();return Ax=function(r,o,i,a,s,u,l,c,d,f){var p=8&o;o|=p?32:64,4&(o&=~(p?64:32))||(o&=-4);var m=[r,o,s,p?u:void 0,p?l:void 0,p?void 0:u,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 Sk(){if(g2)return Nx;return g2=1,Nx=function(e){return e.placeholder}}function SH(){if(y2)return Dx;y2=1;var e=T0(),t=T$(),n=Math.min;return Dx=function(r,o){for(var i=r.length,a=n(o.length,i),s=e(r);a--;){var u=o[a];r[a]=t(u,i)?s[u]:void 0}return r}}function OI(){if(w2)return Mx;w2=1;var e="__lodash_placeholder__";return Mx=function(t,n){for(var r=-1,o=t.length,i=0,a=[];++r<o;){var s=t[r];(s===n||s===e)&&(t[r]=e,a[i++]=r)}return a}}function $k(){if(b2)return kx;b2=1;var e=vk(),t=gk(),n=hH(),r=K0(),o=xk(),i=Sk(),a=SH(),s=OI(),u=fi();return kx=function l(c,d,f,p,m,h,g,v,y,b){var w=128&d,x=1&d,_=2&d,S=24&d,A=512&d,I=_?void 0:r(c);return function E(){for(var k=arguments.length,M=Array(k),C=k;C--;)M[C]=arguments[C];if(S)var N=i(E),P=n(M,N);if(p&&(M=e(M,p,m,S)),h&&(M=t(M,h,g,S)),k-=P,S&&k<b){var O=s(M,N);return o(c,d,l,E.placeholder,f,M,O,v,y,b-k)}var T=x?f:this,R=_?T[c]:c;return k=M.length,v?M=a(M,v):A&&k>1&&M.reverse(),w&&y<k&&(M.length=y),this&&this!==u&&this instanceof E&&(R=I||r(R)),R.apply(T,M)}},kx}function $H(){if(_2)return Lx;_2=1;var e=D$(),t=K0(),n=$k(),r=xk(),o=Sk(),i=OI(),a=fi();return Lx=function(s,u,l){var c=t(s);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(s,u,n,t.placeholder,void 0,f,h,void 0,void 0,l-d):e(this&&this!==a&&this instanceof t?c:s,this,f)}},Lx}function IH(){if(x2)return Bx;x2=1;var e=D$(),t=K0(),n=fi();return Bx=function(r,o,i,a){var s=1&o,u=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?u:r;++c<d;)f[c]=a[c];for(;l--;)f[c++]=arguments[++o];return e(p,s?i:this,f)}},Bx}function CH(){if(S2)return Fx;S2=1;var e=vk(),t=gk(),n=OI(),r="__lodash_placeholder__",o=128,i=Math.min;return Fx=function(a,s){var u=a[1],l=s[1],c=u|l,d=c<131,f=l==o&&8==u||l==o&&256==u&&a[7].length<=s[8]||384==l&&s[7].length<=s[8]&&8==u;if(!d&&!f)return a;1&l&&(a[2]=s[2],c|=1&u?0:4);var p=s[3];if(p){var m=a[3];a[3]=m?e(m,p,s[4]):p,a[4]=m?n(a[3],r):s[4]}return(p=s[5])&&(m=a[5],a[5]=m?t(m,p,s[6]):p,a[6]=m?n(a[5],r):s[6]),(p=s[7])&&(a[7]=p),l&o&&(a[8]=null==a[8]?s[8]:i(a[8],s[8])),null==a[9]&&(a[9]=s[9]),a[0]=s[0],a[1]=c,a}}function AI(){if($2)return jx;$2=1;var e=mk(),t=pH(),n=$H(),r=$k(),o=IH(),i=yk(),a=CH(),s=bk(),u=_k(),l=QA(),c=Math.max;return jx=function(d,f,p,m,h,g,v,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),v=void 0===v?v:c(l(v),0),y=void 0===y?y:l(y),w-=h?h.length:0,64&f){var x=m,_=h;m=h=void 0}var S=b?void 0:i(d),A=[d,f,p,m,h,x,_,g,v,y];if(S&&a(A,S),d=A[0],f=A[1],p=A[2],m=A[3],h=A[4],!(y=A[9]=void 0===A[9]?b?0:d.length:c(A[9]-w,0))&&24&f&&(f&=-25),f&&1!=f)I=8==f||16==f?n(d,f,y):32!=f&&33!=f||h.length?r.apply(void 0,A):o(d,f,p,m);else var I=t(d,f,p);return u((S?e:s)(I,A),d,f)}}function EH(){if(I2)return zx;I2=1;var e=AI();return zx=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 TH(){if(C2)return Ux;C2=1;var e=eN();return Ux=function(t){return e(t,4)}}function RH(){if(E2)return Vx;E2=1;var e=AI();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={},Vx=t}function PH(){if(T2)return Wx;T2=1;var e=Ml(),t=da(),n=B8();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 OH(){if(R2)return qx;R2=1;var e=Lv(),t=da();return qx=function(n){return t(n)&&"[object WeakMap]"==e(n)}}function AH(){if(P2)return Gx;P2=1;var e=eN(),t=d8();return Gx=function(n){return t("function"==typeof n?n:e(n,1))}}function NH(){if(O2)return Hx;O2=1;var e=AI(),t=i9(),n=t((function(t,n){return e(t,256,void 0,void 0,void 0,n)}));return Hx=n}function DH(){if(A2)return Kx;A2=1;var e=$A(),t=T0(),n=Di(),r=Mv(),o=SA(),i=kv(),a=IA();return Kx=function(s){return n(s)?e(s,i):r(s)?[s]:t(o(a(s)))}}function MH(){return N2||(N2=1,Yx={ary:EH(),assign:JA(),clone:TH(),curry:RH(),forEach:k$(),isArray:Di(),isError:PH(),isFunction:_0(),isWeakMap:OH(),iteratee:AH(),keys:LA(),rearg:NH(),toInteger:QA(),toPath:DH()}),Yx}function kH(){if(D2)return Qx;D2=1;var e=vO(),t=MH();return Qx=function(n,r,o){return e(t,n,r,o)}}function LH(){if(M2)return Xx;M2=1;var e=kH()("debounce",KA());return e.placeholder=mO(),Xx=e}LH();const BH=()=>e$(pk.selectors.selectIsMobile);function k2({className:e,...t}){return G.jsx("div",{className:xe("animate-pulse rounded-md bg-muted",e),...t})}const FH="sidebar_state",jH=604800,zH="12rem",UH="18rem",VH="2rem",WH="b",Ik=M.createContext(null);function Y0(){const e=M.useContext(Ik);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const qH=M.forwardRef((({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:i,...a},s)=>{const u=BH(),[l,c]=M.useState(!1),[d,f]=M.useState(e),p=t??d,m=M.useCallback((e=>{const t="function"==typeof e?e(p):e;n?n(t):f(t),document.cookie=`${FH}=${t}; path=/; max-age=${jH}`}),[n,p]),h=M.useCallback((()=>u?c((e=>!e)):m((e=>!e))),[u,m,c]);M.useEffect((()=>{const e=e=>{e.key===WH&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),h())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[h]);const g=p?"expanded":"collapsed",v=M.useMemo((()=>({state:g,open:p,setOpen:m,isMobile:u,openMobile:l,setOpenMobile:c,toggleSidebar:h})),[g,p,m,u,l,c,h]);return G.jsx(Ik.Provider,{value:v,children:G.jsx(Lq,{delayDuration:0,children:G.jsx("div",{style:{"--sidebar-width":zH,"--sidebar-width-icon":VH,...o},className:xe("group/sidebar-wrapper flex min-h-svh w-full bg-gray-100 has-[[data-variant=inset]]:bg-sidebar",r),ref:s,...a,children:i})})})}));qH.displayName="SidebarProvider";const GH=M.forwardRef((({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...i},a)=>{const{isMobile:s,state:u,openMobile:l,setOpenMobile:c}=Y0();return"none"===n?G.jsx("div",{className:xe("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:a,...i,children:o}):s?G.jsx(Oq,{open:l,onOpenChange:c,children:G.jsxs(JM,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":UH},side:e,children:[G.jsxs(ZM,{className:"sr-only",children:[G.jsx(ek,{children:"Sidebar"}),G.jsx(tk,{children:"Displays the mobile sidebar."})]}),G.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):G.jsxs("div",{ref:a,className:"group peer hidden text-sidebar-foreground md:block","data-state":u,"data-collapsible":"collapsed"===u?n:"","data-variant":t,"data-side":e,children:[G.jsx("div",{className:xe("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]")}),G.jsx("div",{className:xe("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:G.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})})]})}));GH.displayName="Sidebar";const HH=M.forwardRef((({className:e,onClick:t,...n},r)=>{const{toggleSidebar:o,open:i}=Y0();return G.jsx(f0,{ref:r,"data-sidebar":"trigger",variant:"tertiary",size:"icon_m",className:xe("size-6 text-gray-900",e),onClick:e=>{null==t||t(e),o()},...n,children:i?G.jsx(TL,{size:16}):G.jsx(CL,{size:16})})}));HH.displayName="SidebarTrigger";const KH=M.forwardRef((({className:e,...t},n)=>{const{toggleSidebar:r}=Y0();return G.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:xe("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 YH=M.forwardRef((({className:e,...t},n)=>G.jsx("main",{ref:n,className:xe("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})));YH.displayName="SidebarInset";const QH=M.forwardRef((({className:e,...t},n)=>G.jsx(kM,{ref:n,"data-sidebar":"input",className:xe("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t})));QH.displayName="SidebarInput";const XH=M.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"header",className:xe("flex flex-col gap-xxs p-xs",e),...t})));XH.displayName="SidebarHeader";const JH=M.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"footer",className:xe("flex flex-col gap-2 p-2",e),...t})));JH.displayName="SidebarFooter";const ZH=M.forwardRef((({className:e,...t},n)=>G.jsx(cI,{ref:n,"data-sidebar":"separator",className:xe("mx-2 w-auto bg-sidebar-border",e),...t})));ZH.displayName="SidebarSeparator";const eK=M.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"content",className:xe("flex min-h-0 flex-1 flex-col gap-xxxs overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})));eK.displayName="SidebarContent";const tK=M.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"group",className:xe("relative flex w-full min-w-0 flex-col pt-xs",e),...t})));tK.displayName="SidebarGroup";const nK=M.forwardRef((({className:e,asChild:t=!1,...n},r)=>{const o=t?Sd:"div";return G.jsx(o,{ref:r,"data-sidebar":"group-label",className:xe("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})}));nK.displayName="SidebarGroupLabel";const rK=M.forwardRef((({className:e,asChild:t=!1,...n},r)=>{const o=t?Sd:"button";return G.jsx(o,{ref:r,"data-sidebar":"group-action",className:xe("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})}));rK.displayName="SidebarGroupAction";const oK=M.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"group-content",className:xe("w-full text-sm",e),...t})));oK.displayName="SidebarGroupContent";const iK=M.forwardRef((({className:e,...t},n)=>G.jsx("ul",{ref:n,"data-sidebar":"menu",className:xe("flex w-full min-w-0 flex-col p-xs font-semibold text-gray-700 [&_svg]:size-4",e),...t})));iK.displayName="SidebarMenu";const aK=M.forwardRef((({className:e,...t},n)=>G.jsx("li",{ref:n,"data-sidebar":"menu-item",className:xe("group/menu-item relative",e),...t})));aK.displayName="SidebarMenuItem";const sK=xu("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"}}),uK=M.forwardRef((({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:i,...a},s)=>{const u=e?Sd:"button",{isMobile:l,state:c}=Y0(),d=G.jsx(u,{ref:s,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:xe(sK({variant:n,size:r}),i),...a});return o?("string"==typeof o&&(o={children:o}),G.jsxs(Fq,{children:[G.jsx(jq,{asChild:!0,children:d}),G.jsx(rk,{side:"right",align:"center",hidden:"collapsed"!==c||l,...o})]})):d}));uK.displayName="SidebarMenuButton";const lK=M.forwardRef((({className:e,asChild:t=!1,showOnHover:n=!1,...r},o)=>{const i=t?Sd:"button";return G.jsx(i,{ref:o,"data-sidebar":"menu-action",className:xe("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})}));lK.displayName="SidebarMenuAction";const cK=M.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:xe("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})));cK.displayName="SidebarMenuBadge";const dK=M.forwardRef((({className:e,showIcon:t=!1,...n},r)=>{const o=M.useMemo((()=>`${Math.floor(40*Math.random())+50}%`),[]);return G.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:xe("flex h-8 items-center gap-xxs rounded-md px-xxs",e),...n,children:[t&&G.jsx(k2,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),G.jsx(k2,{className:"h-xxxs max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})}));dK.displayName="SidebarMenuSkeleton";const fK=M.forwardRef((({className:e,...t},n)=>G.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:xe("flex min-w-0 translate-x-px flex-col gap-xxxs border-l border-sidebar-border","group-data-[collapsible=icon]:hidden",e),...t})));fK.displayName="SidebarMenuSub";const pK=M.forwardRef((({...e},t)=>G.jsx("li",{ref:t,...e})));pK.displayName="SidebarMenuSubItem";const hK=M.forwardRef((({asChild:e=!1,size:t="md",isActive:n,className:r,...o},i)=>{const a=e?Sd:"a";return G.jsx(a,{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:xe("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})}));hK.displayName="SidebarMenuSubButton";const Ck="Switch",[mK,wJ]=di(Ck),[vK,gK]=mK(Ck),yK=Fe(((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:u="on",onCheckedChange:l,...c}=e,[d,f]=lt(null),p=Zt(t,(e=>f(e))),m=Ge(!1),h=!d||!!d.closest("form"),[g=!1,v]=gd({prop:o,defaultProp:i,onChange:l});return se(vK,{scope:n,checked:g,disabled:s},se(gt.button,Ae({type:"button",role:"switch","aria-checked":g,"aria-required":a,"data-state":Ek(g),"data-disabled":s?"":void 0,disabled:s,value:u},c,{ref:p,onClick:it(e.onClick,(e=>{v((e=>!e)),h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))})),h&&se(_K,{control:d,bubbles:!m.current,name:r,value:u,checked:g,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))})),wK="SwitchThumb",bK=Fe(((e,t)=>{const{__scopeSwitch:n,...r}=e,o=gK(wK,n);return se(gt.span,Ae({"data-state":Ek(o.checked),"data-disabled":o.disabled?"":void 0},r,{ref:t}))})),_K=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=Ge(null),a=P0(n),s=O0(t);return Qe((()=>{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]),se("input",Ae({type:"checkbox","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Ek(e){return e?"checked":"unchecked"}const Tk=yK,xK=bK,SK=M.forwardRef((({className:e,...t},n)=>G.jsx(Tk,{className:xe("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:G.jsx(xK,{className:xe("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})})})));SK.displayName=Tk.displayName;var NI=Symbol.for("immer-nothing"),hv=Symbol.for("immer-draftable"),Ai=Symbol.for("immer-state");function Do(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var tp=Object.getPrototypeOf;function Al(e){return!!e&&!!e[Ai]}function Nl(e){var t;return!!e&&(Rk(e)||Array.isArray(e)||!!e[hv]||!(null==(t=e.constructor)||!t[hv])||Wv(e)||qv(e))}var $K=Object.prototype.constructor.toString();function Rk(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)===$K}function IK(e){return Al(e)||Do(15,e),e[Ai].base_}function Wh(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[Ai];return t?t.type_:Array.isArray(e)?1:Wv(e)?2:qv(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 Pk(e,t,n){const r=np(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function CK(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Wv(e){return e instanceof Map}function qv(e){return e instanceof Set}function Ff(e){return e.copy_||e.base_}function zS(e,t){if(Wv(e))return new Map(e);if(qv(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Rk(e))return tp(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Ai];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 DI(e,t=!1){return Q0(e)||Al(e)||!Nl(e)||(np(e)>1&&(e.set=e.add=e.clear=e.delete=EK),Object.freeze(e),t&&Wh(e,((e,t)=>DI(t,!0)))),e}function EK(){Do(2)}function Q0(e){return Object.isFrozen(e)}var Tv,US={};function rp(e){const t=US[e];return t||Do(0,e),t}function TK(e,t){US[e]||(US[e]=t)}function Ok(){return Tv}function RK(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function L2(e,t){t&&(rp("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function VS(e){WS(e),e.drafts_.forEach(PK),e.drafts_=null}function WS(e){e===Tv&&(Tv=e.parent_)}function B2(e){return Tv=RK(Tv,e)}function PK(e){const t=e[Ai];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function F2(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[Ai].modified_&&(VS(t),Do(4)),Nl(e)&&(e=u0(t,e),t.parent_||l0(t,e)),t.patches_&&rp("Patches").generateReplacementPatches_(n[Ai].base_,e,t.patches_,t.inversePatches_)):e=u0(t,n,[]),VS(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==NI?e:void 0}function u0(e,t,n){if(Q0(t))return t;const r=t[Ai];if(!r)return Wh(t,((o,i)=>j2(e,r,t,o,i,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return l0(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),Wh(o,((o,a)=>j2(e,r,t,o,a,n,i))),l0(e,t,!1),n&&e.patches_&&rp("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function j2(e,t,n,r,o,i,a){if(Al(o)){const a=u0(e,o,i&&t&&3!==t.type_&&!Ev(t.assigned_,r)?i.concat(r):void 0);if(Pk(n,r,a),!Al(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(Nl(o)&&!Q0(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;u0(e,o),(!t||!t.scope_.parent_)&&l0(e,o)}}function l0(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&DI(t,n)}function OK(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Ok(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=MI;n&&(o=[r],i=Rv);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}var MI={get(e,t){if(t===Ai)return e;const n=Ff(e);if(!Ev(n,t))return AK(e,n,t);const r=n[t];return e.finalized_||!Nl(r)?r:r===Zx(e.base_,t)?(eS(e),e.copy_[t]=GS(r,e)):r},has:(e,t)=>t in Ff(e),ownKeys:e=>Reflect.ownKeys(Ff(e)),set(e,t,n){const r=Ak(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[Ai];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(CK(n,r)&&(void 0!==n||Ev(e.base_,t)))return!0;eS(e),qS(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),qS(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(){Do(11)},getPrototypeOf:e=>tp(e.base_),setPrototypeOf(){Do(12)}},Rv={};function Zx(e,t){const n=e[Ai];return(n?Ff(n):e)[t]}function AK(e,t,n){var r;const o=Ak(t,n);return o?"value"in o?o.value:null==(r=o.get)?void 0:r.call(e.draft_):void 0}function Ak(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 qS(e){e.modified_||(e.modified_=!0,e.parent_&&qS(e.parent_))}function eS(e){e.copy_||(e.copy_=zS(e.base_,e.scope_.immer_.useStrictShallowCopy_))}Wh(MI,((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 MI.set.call(this,e[0],t,n,e[0])};var NK=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&&Do(6),void 0!==n&&"function"!=typeof n&&Do(7),Nl(e)){const o=B2(this),i=GS(e,void 0);let a=!0;try{r=t(i),a=!1}finally{a?VS(o):WS(o)}return L2(o,n),F2(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===NI&&(r=void 0),this.autoFreeze_&&DI(r,!0),n){const t=[],o=[];rp("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}Do(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){Nl(e)||Do(8),Al(e)&&(e=DK(e));const t=B2(this),n=GS(e,void 0);return n[Ai].isManual_=!0,WS(t),n}finishDraft(e,t){const n=e&&e[Ai];(!n||!n.isManual_)&&Do(9);const{scope_:r}=n;return L2(r,t),F2(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 Al(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function GS(e,t){const n=Wv(e)?rp("MapSet").proxyMap_(e,t):qv(e)?rp("MapSet").proxySet_(e,t):OK(e,t);return(t?t.scope_:Ok()).drafts_.push(n),n}function DK(e){return Al(e)||Do(10,e),Nk(e)}function Nk(e){if(!Nl(e)||Q0(e))return e;const t=e[Ai];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=zS(e,t.scope_.immer_.useStrictShallowCopy_)}else n=zS(e,!0);return Wh(n,((e,t)=>{Pk(n,e,Nk(t))})),t&&(t.finalized_=!1),n}function MK(){const e="replace",t="remove";function n(e){if(!Nl(e))return e;if(Array.isArray(e))return e.map(n);if(Wv(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,n(t)])));if(qv(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 Al(e)?n(e):e}TK("Patches",{applyPatches_:function(r,o){return o.forEach((o=>{const{path:i,op:a}=o;let s=r;for(let e=0;e<i.length-1;e++){const t=np(s);let n=i[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&Do(19),"function"==typeof s&&"prototype"===n&&Do(19),s=Jx(s,n),"object"!=typeof s&&Do(18,i.join("/"))}const u=np(s),l=n(o.value),c=i[i.length-1];switch(a){case e:switch(u){case 2:return s.set(c,l);case 3:Do(16);default:return s[c]=l}case"add":switch(u){case 1:return"-"===c?s.push(l):s.splice(c,0,l);case 2:return s.set(c,l);case 3:return s.add(l);default:return s[c]=l}case t:switch(u){case 1:return s.splice(c,1);case 2:return s.delete(c);case 3:return s.delete(o.value);default:return delete s[c]}default:Do(17,a)}})),r},generatePatches_:function(n,o,i,a){switch(n.type_){case 0:case 2:return function(n,o,i,a){const{base_:s,copy_:u}=n;Wh(n.assigned_,((n,l)=>{const c=Jx(s,n),d=Jx(u,n),f=l?Ev(s,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_:s,assigned_:u}=n,l=n.copy_;l.length<s.length&&([s,l]=[l,s],[i,a]=[a,i]);for(let t=0;t<s.length;t++)if(u[t]&&l[t]!==s[t]){const n=o.concat([t]);i.push({op:e,path:n,value:r(l[t])}),a.push({op:e,path:n,value:r(s[t])})}for(let e=s.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;s.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,s=0;i.forEach((e=>{if(!a.has(e)){const i=n.concat([s]);r.push({op:t,path:i,value:e}),o.unshift({op:"add",path:i,value:e})}s++})),s=0,a.forEach((e=>{if(!i.has(e)){const i=n.concat([s]);r.push({op:"add",path:i,value:e}),o.unshift({op:t,path:i,value:e})}s++}))}(n,o,i,a)}},generateReplacementPatches_:function(t,n,r,o){r.push({op:e,path:[],value:n===NI?void 0:n}),o.push({op:e,path:[],value:t})}})}var la=new NK;la.produce;var Dk=la.produceWithPatches.bind(la);la.setAutoFreeze.bind(la),la.setUseStrictShallowCopy.bind(la);var z2=la.applyPatches.bind(la);function kK(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function LK(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function BK(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}]`)}}la.createDraft.bind(la),la.finishDraft.bind(la);var U2=e=>Array.isArray(e)?e:[e];function FK(e){const t=Array.isArray(e[0])?e[0]:e;return BK(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function jK(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var zK=class{constructor(e){this.value=e}deref(){return this.value}},UK=typeof WeakRef<"u"?WeakRef:zK,VK=0,V2=1;function Fg(){return{s:VK,v:void 0,o:null,p:null}}function c0(e,t={}){let n=Fg();const{resultEqualityCheck:r}=t;let o,i=0;function a(){var t;let a=n;const{length:s}=arguments;for(let e=0,t=s;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=Fg(),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=Fg(),e.set(t,a)):a=n}}const u=a;let l;if(a.s===V2?l=a.v:(l=e.apply(null,arguments),i++),u.s=V2,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 UK(l):l}return u.v=l,l}return a.clearCache=()=>{n=Fg(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function WK(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()),kK(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const s={...n,...i},{memoize:u,memoizeOptions:l=[],argsMemoize:c=c0,argsMemoizeOptions:d=[],devModeChecks:f={}}=s,p=U2(l),m=U2(d),h=FK(e),g=u((function(){return r++,a.apply(null,arguments)}),...p),v=c((function(){o++;const e=jK(h,arguments);return t=g.apply(null,e),t}),...m);return Object.assign(v,{resultFunc:a,memoizedResultFunc:g,dependencies:h,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:u,argsMemoize:c})};return Object.assign(r,{withTypes:()=>r}),r}var Mk=WK(c0),qK=Object.assign(((e,t=Mk)=>{LK(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:()=>qK}),GK={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/system-toast/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/system-toast/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:"72fa7f921be3636f",NODE:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_package_name:"@wellesley/system-toast",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.182",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/system-toast",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/system-toast",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"3761",APP_NAME:"@wellesley/system-toast"},kk=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(kk||{});function HK(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function KK(e){return new RegExp("(^|:)//").test(e)}var YK=e=>e.replace(/\/$/,""),QK=e=>e.replace(/^\//,"");function XK(e,t){if(!e)return t;if(!t)return e;if(KK(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=YK(e)}${n}${t=QK(t)}`}var W2=e=>[].concat(...e);function JK(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function ZK(){return typeof document>"u"||"hidden"!==document.visibilityState}var q2=Gf;function Lk(e,t){if(e===t||!(q2(e)&&q2(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]=Lk(e[r],t[r]),o&&(o=e[r]===i[r]);return o?e:i}var G2=(...e)=>fetch(...e),eY=e=>e.status>=200&&e.status<=299,tY=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function H2(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 nY({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=G2,paramsSerializer:r,isJsonContentType:o=tY,jsonContentType:i="application/json",jsonReplacer:a,timeout:s,responseHandler:u,validateStatus:l,...c}={}){return typeof fetch>"u"&&n===G2&&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:g,endpoint:v,forced:y,type:b}=p;let w,{url:x,headers:_=new Headers(c.headers),params:S,responseHandler:A=u??"json",validateStatus:I=l??eY,timeout:E=s,...k}="string"==typeof f?{url:f}:f,M={...c,signal:m,...k};_=new Headers(H2(_)),M.headers=await t(_,{getState:h,extra:g,endpoint:v,forced:y,type:b})||_;const C=e=>"object"==typeof e&&(Gf(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!M.headers.has("content-type")&&C(M.body)&&M.headers.set("content-type",i),C(M.body)&&o(M.headers)&&(M.body=JSON.stringify(M.body,a)),S){const e=~x.indexOf("?")?"&":"?";x+=e+(r?r(S):new URLSearchParams(H2(S)))}x=XK(e,x);const N=new Request(x,M);w={request:new Request(x,M)};let P,O=!1,T=E&&setTimeout((()=>{O=!0,p.abort()}),E);try{P=await n(N)}catch(e){return{error:{status:O?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:w}}finally{T&&clearTimeout(T)}const R=P.clone();w.response=R;let D,j="";try{let e;if(await Promise.all([d(P,A).then((e=>D=e),(t=>e=t)),R.text().then((e=>j=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:P.status,data:j,error:String(e)},meta:w}}return I(P,D)?{data:D,meta:w}:{error:{status:P.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 K2=class{constructor(e,t=void 0){this.value=e,this.meta=t}},kI=Dl("__rtkq/focused"),Bk=Dl("__rtkq/unfocused"),LI=Dl("__rtkq/online"),Fk=Dl("__rtkq/offline");function jk(e){return"query"===e.type}function rY(e){return"mutation"===e.type}function BI(e,t,n,r,o,i){return oY(e)?e(t,n,r,o).map(HS).map(i):Array.isArray(e)?e.map(HS).map(i):[]}function oY(e){return"function"==typeof e}function HS(e){return"string"==typeof e?{type:e}:e}function Y2(e){return null!=e}function Fh(e){let t=0;for(const n in e)t++;return t}function iY(e,t){return e.catch(t)}var Pv=Symbol("forceQueryFn"),KS=e=>"function"==typeof e[Pv];function aY({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:o}){const i=new Map,a=new Map,{unsubscribeQueryResult:s,removeMutationResult:u,updateSubscriptionOptions:l}=r.internalActions;return{buildInitiateQuery:function(n,o){const a=(u,{subscribe:c=!0,forceRefetch:d,subscriptionOptions:f,[Pv]:p,...m}={})=>(h,g)=>{var v;const y=e({queryArgs:u,endpointDefinition:o,endpointName:n}),b=t({...m,type:"query",subscribe:c,forceRefetch:d,subscriptionOptions:f,endpointName:n,originalArgs:u,queryCacheKey:y,[Pv]:p}),w=r.endpoints[n].select(u),x=h(b),_=w(g()),{requestId:S,abort:A}=x,I=_.requestId!==S,E=null==(v=i.get(h))?void 0:v[y],k=()=>w(g()),M=Object.assign(p?x.then(k):I&&!E?Promise.resolve(_):Promise.all([E,x]).then(k),{arg:u,requestId:S,subscriptionOptions:f,queryCacheKey:y,abort:A,async unwrap(){const e=await M;if(e.isError)throw e.error;return e.data},refetch:()=>h(a(u,{subscribe:!1,forceRefetch:!0})),unsubscribe(){c&&h(s({queryCacheKey:y,requestId:S}))},updateSubscriptionOptions(e){M.subscriptionOptions=e,h(l({endpointName:n,requestId:S,queryCacheKey:y,options:e}))}});if(!E&&!I&&!p){const e=i.get(h)||{};e[y]=M,i.set(h,e),M.then((()=>{delete e[y],Fh(e)||i.delete(h)}))}return M};return a},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:o}={})=>(i,s)=>{const l=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:o}),c=i(l),{requestId:d,abort:f,unwrap:p}=c,m=iY(c.unwrap().then((e=>({data:e}))),(e=>({error:e}))),h=Object.assign(m,{arg:c.arg,requestId:d,abort:f,unwrap:p,reset:()=>{i(u({requestId:d,fixedCacheKey:o}))}}),g=a.get(i)||{};return a.set(i,g),g[d]=h,h.then((()=>{delete g[d],Fh(g)||a.delete(i)})),o&&(g[o]=h,h.then((()=>{g[o]===h&&(delete g[o],Fh(g)||a.delete(i))}))),h}},getRunningQueryThunk:function(t,n){return r=>{var a;const s=o.endpointDefinitions[t],u=e({queryArgs:n,endpointDefinition:s,endpointName:t});return null==(a=i.get(r))?void 0:a[u]}},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(Y2)},getRunningMutationsThunk:function(){return e=>Object.values(a.get(e)||{}).filter(Y2)}}}function Q2(e){return e}function sY({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:u,getState:l,extra:c})=>{const d=n[e.endpointName];try{let n,i=Q2;const f={signal:r,abort:o,dispatch:u,getState:l,extra:c,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?s(e,l()):void 0},p="query"===e.type?e[Pv]: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"&&GK.NODE_ENV,n.error)throw new K2(n.error,n.meta);return a(await i(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[wg]:!0})}catch(t){let n=t;if(n instanceof K2){let t=Q2;d.query&&d.transformErrorResponse&&(t=d.transformErrorResponse);try{return i(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[wg]:!0})}catch(e){n=e}}throw console.error(n),n}};function s(t,n){var r,o,i;const a=null==(o=null==(r=n[e])?void 0:r.queries)?void 0:o[t.queryCacheKey],s=null==(i=n[e])?void 0:i.config.refetchOnMountOrArgChange,u=null==a?void 0:a.fulfilledTimeStamp,l=t.forceRefetch??(t.subscribe&&s);return!!l&&(!0===l||(Number(new Date)-Number(u))/1e3>=l)}const u=KI(`${e}/executeQuery`,a,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[wg]:!0}),condition(t,{getState:r}){var o,i,a;const u=r(),l=null==(i=null==(o=u[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!!KS(t)||"pending"!==(null==l?void 0:l.status)&&(!!(s(t,u)||jk(p)&&null!=(a=null==p?void 0:p.forceRefetch)&&a.call(p,{currentArg:d,previousArg:f,endpointState:l,state:u}))||!c)},dispatchConditionRejection:!0}),l=KI(`${e}/executeMutation`,a,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[wg]:!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:u,mutationThunk:l,prefetch:(e,t,n)=>(r,i)=>{const a=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,u=(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(u());else if(s){const e=null==l?void 0:l.fulfilledTimeStamp;if(!e)return void r(u());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(u())}else r(u(!1))},updateQueryData:(e,t,n,r=!0)=>(i,a)=>{const s=o.endpoints[e].select(t)(a());let u,l={patches:[],inversePatches:[],undo:()=>i(o.util.patchQueryData(e,t,l.inversePatches,r))};if("uninitialized"===s.status)return l;if("data"in s)if(Nl(s.data)){const[e,t,r]=Dk(s.data,n);l.patches.push(...t),l.inversePatches.push(...r),u=e}else u=n(s.data),l.patches.push({op:"replace",path:[],value:u}),l.inversePatches.push({op:"replace",path:[],value:s.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,[Pv]:()=>({data:n})})),patchQueryData:(e,t,a,s)=>(u,l)=>{const c=n[e],d=r({queryArgs:t,endpointDefinition:c,endpointName:e});if(u(o.internalActions.queryResultPatched({queryCacheKey:d,patches:a})),!s)return;const f=o.endpoints[e].select(t)(l()),p=BI(c.providesTags,f.data,void 0,t,{},i);u(o.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:$1(pO(e),c(t)),matchFulfilled:$1(Hf(e),c(t)),matchRejected:$1(JS(e),c(t))}}}}function zk(e,t,n,r){return BI(n[e.meta.arg.endpointName][t],Hf(e)?e.payload:void 0,XS(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 X2(e,t,n){const r=e[Ov(t)];r&&n(r)}var ev={};function uY({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:o,extractRehydrationInfo:i,hasRehydrationInfo:a},assertTagType:s,config:u}){const l=Dl(`${e}/resetApiState`),c=No({name:`${e}/queries`,initialState:ev,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Hm()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){jg(e,t,(e=>{e.data=z2(e.data,n.concat())}))},prepare:Hm()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const o=KS(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&&!KS(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:s}=t;let u=ZS(e.data,(e=>o(e,n,{arg:i.originalArgs,baseQueryMeta:a,fulfilledTimeStamp:r,requestId:s})));e.data=u}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?Lk(Al(e.data)?IK(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=No({name:`${e}/mutations`,initialState:ev,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=Ov(t);n in e&&delete e[n]},prepare:Hm()}},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&&X2(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&&X2(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=No({name:`${e}/invalidation`,initialState:ev,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:Hm()}},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(uS(Hf(t),XS(t)),((e,t)=>{const n=zk(t,"providesTags",r,s),{queryCacheKey:o}=t.meta.arg;f.caseReducers.updateProvidedBy(e,f.actions.updateProvidedBy({queryCacheKey:o,providedTags:n}))}))}}),p=No({name:`${e}/subscriptions`,initialState:ev,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),m=No({name:`${e}/internalSubscriptions`,initialState:ev,reducers:{subscriptionsUpdated:{reducer:(e,t)=>z2(e,t.payload),prepare:Hm()}}}),h=No({name:`${e}/config`,initialState:{online:JK(),focused:ZK(),middlewareRegistered:!1,...u},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&o===t||"conflict"}},extraReducers:e=>{e.addCase(LI,(e=>{e.online=!0})).addCase(Fk,(e=>{e.online=!1})).addCase(kI,(e=>{e.focused=!0})).addCase(Bk,(e=>{e.focused=!1})).addMatcher(a,(e=>({...e})))}}),g=y3({queries:c.reducer,mutations:d.reducer,provided:f.reducer,subscriptions:m.reducer,config:h.reducer});return{reducer:(e,t)=>g(l.match(t)?void 0:e,t),actions:{...h.actions,...c.actions,...p.actions,...m.actions,...d.actions,...f.actions,resetApiState:l}}}var Vf=Symbol.for("RTKQ/skipToken"),Uk={status:"uninitialized"},J2=ZS(Uk,(()=>{})),Z2=ZS(Uk,(()=>{}));function lY({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>J2,o=e=>Z2;return{buildQuerySelector:function(t,o){return s=>{const u=e({queryArgs:s,endpointDefinition:o,endpointName:t});return n(s===Vf?r:e=>{var t,n;return(null==(n=null==(t=a(e))?void 0:t.queries)?void 0:n[u])??J2},i)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Ov(e)??Vf:e,n(t===Vf?o:e=>{var n,r;return(null==(r=null==(n=a(e))?void 0:n.mutations)?void 0:r[t])??Z2},i)}},selectInvalidatedBy:function(e,n){const r=e[t],o=new Set;for(const e of n.map(HS)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:W2(Object.values(t)))??[];for(const e of n)o.add(e)}return W2(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,...HK(e.status)}}function a(e){return e[t]}}var Nh=WeakMap?new WeakMap:void 0,eO=({endpointName:e,queryArgs:t})=>{let n="";const r=null==Nh?void 0:Nh.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==Nh||Nh.set(t,e)),n=e}return`${e}(${n})`};function cY(...e){return function(t){const n=c0((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=eO;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:eO({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},o={endpointDefinitions:{},batch(e){e()},apiUid:g3(),extractRehydrationInfo:n,hasRehydrationInfo:c0((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(fO(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 dY(e){for(let t in e)return!1;return!0}var fY=2147482.647,pY=({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&&!dY(t)}const s={};function u(e,t,r,i){const u=n.endpointDefinitions[t],l=(null==u?void 0:u.keepUnusedDataFor)??i.keepUnusedDataFor;if(l===1/0)return;const c=Math.max(0,Math.min(l,fY));if(!a(e)){const t=s[e];t&&clearTimeout(t),s[e]=setTimeout((()=>{a(e)||r.dispatch(o({queryCacheKey:e})),delete s[e]}),1e3*c)}}return(r,o,a)=>{var l;if(i.match(r)){const t=o.getState()[e],{queryCacheKey:n}=r.payload;u(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(s))t&&clearTimeout(t),delete s[e];if(n.hasRehydrationInfo(r)){const t=o.getState()[e],{queries:i}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(i))u(e,null==n?void 0:n.endpointName,o,t.config)}}},hY=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:i,assertTagType:a,refetchQuery:s,internalState:u})=>{const{removeQueryResult:l}=i.internalActions,c=uS(Hf(r),XS(r)),d=uS(Hf(r,o),JS(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=u.currentSubscriptions[t]??{};e&&(0===Fh(n)?r.dispatch(l({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(s(e,t)))}}))}return(e,t)=>{c(e)?p(zk(e,"invalidatesTags",n,a),t):d(e)?p([],t):i.util.invalidateTags.match(e)&&p(BI(e.payload,void 0,void 0,void 0,void 0,a),t)}},mY=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:o})=>{const i={};function a({queryCacheKey:t},n){const s=n.getState()[e],u=s.queries[t],c=o.currentSubscriptions[t];if(!u||"uninitialized"===u.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((()=>{(s.config.focused||!f)&&n.dispatch(r(u,t)),a({queryCacheKey:t},n)}),d)}}function s({queryCacheKey:t},n){const r=n.getState()[e].queries[t],s=o.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:c}=l(s);if(!Number.isFinite(c))return void u(t);const d=i[t],f=Date.now()+c;(!d||f<d.nextPollTimestamp)&&a({queryCacheKey:t},n)}function u(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))&&s(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(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))u(e)}()}},vY=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:o})=>{const{removeQueryResult:i}=n.internalActions;function a(n,a){const s=n.getState()[e],u=s.queries,l=o.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(l)){const t=u[e],o=l[e];o&&t&&((Object.values(o).some((e=>!0===e[a]))||Object.values(o).every((e=>void 0===e[a]))&&s.config[a])&&(0===Fh(o)?n.dispatch(i({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{kI.match(e)&&a(t,"refetchOnFocus"),LI.match(e)&&a(t,"refetchOnReconnect")}},tO=new Error("Promise never resolved before cacheEntryRemoved."),gY=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:o,internalState:i})=>{const a=YI(r),s=YI(o),u=Hf(r,o),l={};function c(t,r,o,i,a){const s=n.endpointDefinitions[t],u=null==s?void 0:s.onCacheEntryAdded;if(!u)return;let c={};const d=new Promise((e=>{c.cacheEntryRemoved=e})),f=Promise.race([new Promise((e=>{c.valueResolved=e})),d.then((()=>{throw tO}))]);f.catch((()=>{})),l[o]=c;const p=e.endpoints[t].select("query"===s.type?r:o),m=i.dispatch(((e,t,n)=>n)),h={...i,getCacheEntry:()=>p(i.getState()),requestId:a,extra:m,updateCachedData:"query"===s.type?n=>i.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:d},g=u(r,h);Promise.resolve(g).catch((e=>{if(e!==tO)throw e}))}return(n,i,d)=>{const f=function(t){return a(t)?t.meta.arg.queryCacheKey:s(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(u(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()}},yY=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const o=pO(n,r),i=JS(n,r),a=Hf(n,r),s={};return(n,r)=>{var u,l;if(o(n)){const{requestId:o,arg:{endpointName:i,originalArgs:a}}=n.meta,u=t.endpointDefinitions[i],l=null==u?void 0:u.onQueryStarted;if(l){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),s[o]=t;const c=e.endpoints[i].select("query"===u.type?a:o),d=r.dispatch(((e,t,n)=>n)),f={...r,getCacheEntry:()=>c(r.getState()),requestId:o,extra:d,updateCachedData:"query"===u.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==(u=s[e])||u.resolve({data:n.payload,meta:t}),delete s[e]}else if(i(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;null==(l=s[e])||l.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete s[e]}}},wY=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},bY=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let o=null,i=null;const{updateSubscriptionOptions:a,unsubscribeQueryResult:s}=e.internalActions,u=()=>n.currentSubscriptions,l={getSubscriptions:u,getSubscriptionCount:e=>Fh(u()[e]??{}),isRequestSubscribed:(e,t)=>{var n;const r=u();return!(null==(n=null==r?void 0:r[e])||!n[t])}};return(u,c)=>{if(o||(o=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(u))return o=n.currentSubscriptions={},i=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(u))return[!1,l];const d=((n,r)=>{var o,i,u;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(s.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[u=t.queryCacheKey]??(n[u]={});e[o]=t.subscriptionOptions??e[o]??{},l=!0}}return l})(n.currentSubscriptions,u);let f=!0;if(d){i||(i=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=Dk(o,(()=>t));c.next(e.internalActions.subscriptionsUpdated(r)),o=t,i=null}),500));const a="string"==typeof u.type&&!!u.type.startsWith(r),s=t.rejected.match(u)&&u.meta.condition&&!!u.meta.arg.subscribe;f=!a&&!s}return[f,!1]}};function _Y(e){const{reducerPath:t,queryThunk:n,api:r,context:o}=e,{apiUid:i}=o,a={invalidateTags:Dl(`${t}/invalidateTags`)},s=e=>e.type.startsWith(`${t}/`),u=[wY,pY,hY,mY,gY,yY];return{middleware:n=>{let a=!1;const c={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:s},d=u.map((e=>e(c))),f=bY(c),p=vY(c);return e=>u=>{if(!w3(u))return e(u);a||(a=!0,n.dispatch(r.internalActions.middlewareRegistered(i)));const l={...n,next:e},c=n.getState(),[m,h]=f(u,l,c);let g;if(g=m?e(u):h,n.getState()[t]&&(p(u,l,c),s(u)||o.hasRehydrationInfo(u)))for(let e of d)e(u,l,c);return g}},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 nO=Symbol(),xY=({createSelector:e=no}={})=>({name:nO,init(t,{baseQuery:n,tagTypes:r,reducerPath:o,serializeQueryArgs:i,keepUnusedDataFor:a,refetchOnMountOrArgChange:s,refetchOnFocus:u,refetchOnReconnect:l,invalidationBehavior:c},d){MK();const f=e=>e;Object.assign(t,{reducerPath:o,endpoints:{},internalActions:{onOnline:LI,onOffline:Fk,onFocus:kI,onFocusLost:Bk},util:{}});const{queryThunk:p,mutationThunk:m,patchQueryData:h,updateQueryData:g,upsertQueryData:v,prefetch:y,buildMatchThunkActions:b}=sY({baseQuery:n,reducerPath:o,context:d,api:t,serializeQueryArgs:i,assertTagType:f}),{reducer:w,actions:x}=uY({context:d,queryThunk:p,mutationThunk:m,reducerPath:o,assertTagType:f,config:{refetchOnFocus:u,refetchOnReconnect:l,refetchOnMountOrArgChange:s,keepUnusedDataFor:a,reducerPath:o,invalidationBehavior:c}});cd(t.util,{patchQueryData:h,updateQueryData:g,upsertQueryData:v,prefetch:y,resetApiState:x.resetApiState}),cd(t.internalActions,x);const{middleware:_,actions:S}=_Y({reducerPath:o,context:d,queryThunk:p,mutationThunk:m,api:t,assertTagType:f});cd(t.util,S),cd(t,{reducer:w,middleware:_});const{buildQuerySelector:A,buildMutationSelector:I,selectInvalidatedBy:E,selectCachedArgsForQuery:k}=lY({serializeQueryArgs:i,reducerPath:o,createSelector:e});cd(t.util,{selectInvalidatedBy:E,selectCachedArgsForQuery:k});const{buildInitiateQuery:M,buildInitiateMutation:C,getRunningMutationThunk:N,getRunningMutationsThunk:P,getRunningQueriesThunk:O,getRunningQueryThunk:T}=aY({queryThunk:p,mutationThunk:m,api:t,serializeQueryArgs:i,context:d});return cd(t.util,{getRunningMutationThunk:N,getRunningMutationsThunk:P,getRunningQueryThunk:T,getRunningQueriesThunk:O}),{name:nO,injectEndpoint(e,n){var r;const o=t;(r=o.endpoints)[e]??(r[e]={}),jk(n)?cd(o.endpoints[e],{name:e,select:A(e,n),initiate:M(e,n)},b(p,e)):rY(n)&&cd(o.endpoints[e],{name:e,select:I(),initiate:C(e)},b(m,e))}}}});function SY(e){return"query"===e.type}function $Y(e){return"mutation"===e.type}function zg(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,IY=({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 rO(e,t,n,r){const o=An((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),i=Ge(o);return Qe((()=>{i.current.serialized!==o.serialized&&(i.current=o)}),[o]),i.current.serialized===o.serialized?i.current.queryArgs:e}function rS(e){const t=Ge(e);return Qe((()=>{uv(t.current,e)||(t.current=e)}),[e]),uv(t.current,e)?t.current:e}var CY=typeof window<"u"&&window.document&&window.document.createElement?ip:Qe,EY=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:kk.pending}:e;function TY({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:o},unstable__sideEffectsInRender:i,createSelector:a},serializeQueryArgs:s,context:u}){const l=i?e=>e():Qe;return{buildQueryHooks:function(i){const d=(t,{refetchOnReconnect:r,refetchOnFocus:o,refetchOnMountOrArgChange:a,skip:s=!1,pollingInterval:c=0,skipPollingIfUnfocused:d=!1}={})=>{const{initiate:f}=e.endpoints[i],p=n(),m=Ge();if(!m.current){const t=p(e.internalActions.internal_getRTKQSubscriptions());m.current=t}const h=rO(s?Vf:t,IY,u.endpointDefinitions[i],i),g=rS({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:c,skipPollingIfUnfocused:d}),v=Ge(!1),y=Ge();let{queryCacheKey:b,requestId:w}=y.current||{},x=!1;b&&w&&(x=m.current.isRequestSubscribed(b,w));const _=!x&&v.current;return l((()=>{v.current=x})),l((()=>{_&&(y.current=void 0)}),[_]),l((()=>{var e;const t=y.current;if(h===Vf)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)g!==n&&t.updateSubscriptionOptions(g);else{null==t||t.unsubscribe();const e=p(f(h,{subscriptionOptions:g,forceRefetch:a}));y.current=e}}),[p,f,a,h,g,_]),Qe((()=>()=>{var e;null==(e=y.current)||e.unsubscribe(),y.current=void 0}),[]),An((()=>({refetch:()=>{var e;if(!y.current)throw new Error(fO(38));return null==(e=y.current)?void 0:e.refetch()}})),[])},f=({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:a=0,skipPollingIfUnfocused:s=!1}={})=>{const{initiate:u}=e.endpoints[i],c=n(),[d,f]=lt(nS),p=Ge(),m=rS({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:a,skipPollingIfUnfocused:s});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=Ge(m);l((()=>{h.current=m}),[m]);const g=_t((function(e,n=!1){let r;return t((()=>{var t;null==(t=p.current)||t.unsubscribe(),p.current=r=c(u(e,{subscriptionOptions:h.current,forceRefetch:!n})),f(e)})),r}),[c,u]);return Qe((()=>()=>{var e;null==(e=null==p?void 0:p.current)||e.unsubscribe()}),[]),Qe((()=>{d!==nS&&!p.current&&g(d,!0)}),[d,g]),An((()=>[g,d]),[g,d])},p=(t,{skip:n=!1,selectFromResult:l}={})=>{const{select:d}=e.endpoints[i],f=rO(n?Vf:t,s,u.endpointDefinitions[i],i),p=Ge(),m=An((()=>a([d(f),(e,t)=>t,e=>f],c,{memoizeOptions:{resultEqualityCheck:uv}})),[d,f]),h=An((()=>l?a([m],l,{devModeChecks:{identityFunctionCheck:"never"}}):m),[m,l]),g=r((e=>h(e,p.current)),uv),v=o(),y=m(v.getState(),p.current);return CY((()=>{p.current=y}),[y]),g};return{useQueryState:p,useQuerySubscription:d,useLazyQuerySubscription:f,useLazyQuery(e){const[t,n]=f(e),r=p(n,{...e,skip:n===nS}),o=An((()=>({lastArg:n})),[n]);return An((()=>[t,r,o]),[t,r,o])},useQuery(e,t){const n=d(e,t),r=p(e,{selectFromResult:e===Vf||null!=t&&t.skip?void 0:EY,...t}),{data:o,status:i,isLoading:a,isSuccess:s,isError:u,error:l}=r;return HI({data:o,status:i,isLoading:a,isSuccess:s,isError:u,error:l}),An((()=>({...r,...n})),[r,n])}}},buildMutationHook:function(o){return({selectFromResult:i,fixedCacheKey:s}={})=>{const{select:u,initiate:l}=e.endpoints[o],c=n(),[d,f]=lt();Qe((()=>()=>{null!=d&&d.arg.fixedCacheKey||null==d||d.reset()}),[d]);const p=_t((function(e){const t=c(l(e,{fixedCacheKey:s}));return f(t),t}),[c,l,s]),{requestId:m}=d||{},h=An((()=>u({fixedCacheKey:s,requestId:null==d?void 0:d.requestId})),[s,d,u]),g=An((()=>i?a([h],i):h),[i,h]),v=r(g,uv),y=null==s?null==d?void 0:d.arg.originalArgs:void 0,b=_t((()=>{t((()=>{d&&f(void 0),s&&c(e.internalActions.removeMutationResult({requestId:m,fixedCacheKey:s}))}))}),[c,s,d,m]),{endpointName:w,data:x,status:_,isLoading:S,isSuccess:A,isError:I,error:E}=v;HI({endpointName:w,data:x,status:_,isLoading:S,isSuccess:A,isError:I,error:E});const k=An((()=>({...v,originalArgs:y,reset:b})),[v,y,b]);return An((()=>[p,k]),[p,k])}},usePrefetch:function(t,r){const o=n(),i=rS(r);return _t(((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=u.endpointDefinitions[e];s({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===s({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 RY=Symbol(),PY=({batch:e=_3,hooks:t={useDispatch:hO,useSelector:e$,useStore:x3},createSelector:n=Mk,unstable__sideEffectsInRender:r=!1,...o}={})=>({name:RY,init(o,{serializeQueryArgs:i},a){const s=o,{buildQueryHooks:u,buildMutationHook:l,usePrefetch:c}=TY({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:i,context:a});return zg(s,{usePrefetch:c}),zg(a,{batch:e}),{injectEndpoint(e,t){if(SY(t)){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}=u(e);zg(s.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($Y(t)){const t=l(e);zg(s.endpoints[e],{useMutation:t}),o[`use${tS(e)}Mutation`]=t}}}}}),OY=cY(xY(),PY());const Vk=()=>Gk()?location.hostname:location.hostname.replace(/\w\w\w\.|^/,"."),Wk=e=>{const t=new Date;return t.setTime(t.getTime()+24*e*60*60*1e3),t.toUTCString()},qk=e=>Object.keys(e).reduce(((t,n)=>`${t}${n}${!0===e[n]?"":`=${e[n]}`};`),""),AY=(e,t)=>{const n=H0()?"":document.cookie,r=`; ${t||n}`.split(`; ${e}=`);if(2===r.length)return(r.pop()||"").replace("=","").split(";").shift()},NY=(e,t)=>{H0()||(document.cookie=qk({[e]:"",path:"/",domain:t||Vk(),expires:"Thu, 01 Jan 1970 00:00:01 GMT"}))},DY=["localhost","127.0.0.1","dev.localtest.me","wellesleydev.localtest.me"],Gk=()=>DY.includes(location.hostname),MY=(e,t="",n=10,r)=>{H0()||(document.cookie=qk({[e]:t,path:"/",domain:r||Vk(),expires:Wk(n),...!Gk()&&{SameSite:"None",Secure:!0}}))},FI={set:MY,remove:NY,get:AY,getExpireDate:Wk},jI="auth_token",Hk=()=>FI.get(jI)||void 0,kY=e=>FI.set(jI,e),LY=()=>FI.remove(jI),BY=()=>!!Hk(),zI={getToken:Hk,setToken:kY,removeToken:LY,hasToken:BY},FY=e=>{zI.removeToken(),e(uG()),TI("user").clear()},jY=e=>async(t,n,r)=>{const o=await e(t,n,r);return o.error&&[401].includes(o.error.status)&&FY(n.dispatch),o},zY=async(e,t=2e3)=>{for(;!e();)await new Promise((e=>setTimeout(e,t)))},UY=5,VY=e=>t=>!!e&&t.includes(e.status),oO=e=>new Promise((t=>setTimeout(t,1e3*e))),WY=e=>async(t,n,r)=>{const o=(null==r?void 0:r.maxRetries)??5;await zY((()=>n.getState().network.isOnline));let i=0;const a=async()=>{var s,u,l,c;const d=await e(t,n,r),f=d.error;if(i>=o)return d;i>0&&await oO(Math.pow(2,i)),i++;const p=VY(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==(s=null==d?void 0:d.error)?void 0:s.status):{const e=null==(c=null==(l=null==(u=d.meta)?void 0:u.response)?void 0:l.headers)?void 0:c.get("Retry-After");return await oO(+(e||"0")),await a()}default:return d}};return await a()};var Kk=(e=>(e.SERVER_RULES="serverRules",e.INVITE_PEOPLE="invitePeople",e))(Kk||{});const X0="staticState",Yk=TI(),Gg={path:"",baseUrl:"",search:""},qY=e=>{if(!e)return Gg;try{return JSON.parse(decodeURIComponent(e))||Gg}catch(e){return vp.error("Error parsing static state",e),Gg}},Qk=()=>new URLSearchParams(window.location.search).get(X0),GY=({path:e,baseUrl:t,search:n}={})=>{const{pathname:r,origin:o,search:i}=window.location;return`${X0}=${encodeURIComponent(JSON.stringify({path:e||r,baseUrl:t||o,search:n||i}))}`},HY=()=>{const e=Qk();return e&&Yk.setItem(X0,e),Xk()},Xk=()=>{try{const e=Yk.getItem(X0)||Qk();return qY(e)}catch(e){return vp.error("Error parsing static state",e),Gg}},KY={create:GY,init:HY,get:Xk},YY=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 vp.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}},QY=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},XY=async e=>{const t=crypto.randomUUID();return new Promise(((n,r)=>{const o=cH({onMessage:({payload:{id:e,response:r}})=>{t===e&&(null==o||o(),n(QY(r)))},whitelist:[dH]});(async()=>{try{lH({action:KP({id:t,options:await YY(e)}),windowElement:window.parent,whitelist:[KP]})}catch(e){r(e)}})()}))};new EventTarget;const Jk=()=>{var e;try{return(null==(e=window.wellesley)?void 0:e.v1)||window.wellesley}catch(e){vp.error("Error getting window.wellesley:",e)}},JY=e=>new Response(JSON.stringify(e),{status:200,statusText:"OK",headers:{"Content-Type":"application/json"}}),ZY=e=>{var t,n;if(e.url.includes("accounts/profile")){const e=null==(n=null==(t=Jk())?void 0:t.initialState)?void 0:n.currentAccount;return!(null==e||!e.selectedUserId)&&JY(e)}},eQ=Object.freeze(Object.defineProperty({__proto__:null,userHandler:ZY},Symbol.toStringTag,{value:"Module"})),tQ=e=>Object.values(eQ).reduce(((t,n)=>t||n(e)),void 0),nQ=async e=>tQ(e)||await fetch(e),rQ=()=>{try{return window.self!==window.top}catch{return!0}},oQ=()=>e=>rQ()?XY(e):nQ(e),iQ=KY.get().baseUrl,aQ=iQ||"",sQ=nY({fetchFn:oQ(),baseUrl:aQ,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=zI.getToken();return t&&e.set("authorization",`Bearer ${t}`),e}}),uQ=jY(WY(sQ)),lQ=OY({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(Kk)],reducerPath:"openapi",baseQuery:uQ,endpoints:()=>({})}),cQ=lQ.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}),iO={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isPending:!!zI.getToken(),isAuthenticated:!1,isAskLoginOpen:!1},dQ=No({name:"auth",initialState:iO,reducers:{setAskLoginOpen:(e,t)=>{e.isAskLoginOpen=t.payload},login:(e,t)=>{e.isAuthenticated=!0,e.token=t.payload||null,e.isPending=!1},logout:()=>({...iO,isPending:!1}),setNewEmail:(e,t)=>{e.newEmail=t.payload},setForgotPasswordStep:(e,t)=>{e.forgotPasswordStep=t.payload},updateForgotPasswordFields:(e,t)=>{e.forgotPasswordFields={...e.forgotPasswordFields,...t.payload}},resetForgotPasswordFields:e=>{e.forgotPasswordFields=null},setSignupStep:(e,t)=>{e.signupStep=t.payload},updateSignupFields:(e,t)=>{e.signupFields={...e.signupFields,...t.payload}},resetSignupFields:e=>{e.signupFields=null},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectAskLoginOpen:e=>e.isAskLoginOpen,selectToken:e=>e.token,selectNewEmail:e=>e.newEmail,selectForgotPasswordStep:e=>e.forgotPasswordStep,selectForgotPasswordFields:e=>e.forgotPasswordFields,selectSignupStep:e=>e.signupStep,selectSignupFields:e=>e.signupFields,selectPending:e=>e.isPending,selectIsAuthenticated:e=>e.isAuthenticated}}),fQ={data:null,isPending:!1,isSuccess:!1},pQ=No({name:"userNoHTML",initialState:fQ,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}}),aO={data:null,isError:!1,isPending:!1,isSuccess:!1},hQ=No({name:"user",initialState:aO,reducers:{reset:e=>{Object.assign(e,aO)}},extraReducers:e=>{e.addCase(vG,((e,{payload:t})=>{e.data=t})).addCase(gG,((e,{payload:t})=>{e.data&&Object.assign(e.data,t||{})})).addCase(mG,((e,{payload:t})=>{e.isSuccess=t})).addCase(hG,((e,{payload:t})=>{e.isPending=t})).addCase(pG,((e,{payload:t})=>{e.isError=t})).addCase(fG,((e,{payload:t})=>{e.error=t})).addCase(yG,((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}}),UI=e=>e,J0=no(UI,(e=>e.data)),mQ=no(UI,(e=>e.error)),vQ=no(UI,(e=>e.isPending)),gQ=no(J0,(e=>null==e?void 0:e.rules)),yQ=no(J0,(e=>null==e?void 0:e.contact_account)),wQ=no(J0,(e=>(null==e?void 0:e.stats)&&Object.fromEntries(Object.entries(e.stats).map((([e,t])=>[e,t??0]))))),bQ={data:null,isPending:!1},_Q=No({name:"instanceInfo",initialState:bQ,reducers:{},extraReducers:e=>{e.addCase(RG,((e,{payload:t})=>{e.data=t})).addCase(PG,((e,{payload:t})=>{e.isPending=t})).addCase(OG,((e,{payload:t})=>{e.error=t}))},selectors:{selectInstanceInfo:J0,selectInstanceInfoError:mQ,selectInstanceInfoPending:vQ,selectPlatformRules:gQ,selectInstanceContacts:yQ,selectInstanceStats:wQ,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}}}),xQ={data:null,isPending:!1,isSuccess:!1},SQ=No({name:"profileSettings",initialState:xQ,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(NG,((e,{payload:t})=>{e.data=t}))},selectors:{selectProfileSettings:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),$Q={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"},YS={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"},av=e=>(null==e?void 0:e.map((e=>e.value||e)))||[],IQ={data:null,isPending:!1},{posts:oS,uploadsPolicyDoc:sO,uploadsPolicyAudio:iS,uploadsPolicyImage:Ug,uploadsPolicyVideo:tv,registration:Zk,captcha:CQ,instanceAdmin:EQ,branding:TQ,translation:RQ,domainBlocks:PQ,access:OQ}=YS,{captcha:AQ,language:NQ,translation:DQ,openai:MQ,link_service:kQ}=$Q,gp=e=>e.data,LQ=no(gp,(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}})),VI=no(gp,(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}})),BQ=no(VI,(e=>av(e.extensions))),e3=no(gp,(e=>{var t,n,r,o;return{...null==e?void 0:e[tv],maxSize:(null==(t=null==e?void 0:e[tv])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[tv])?void 0:n.maxMatrix)||0,maxDuration:(null==(r=null==e?void 0:e[tv])?void 0:r.maxDuration)||0,maxResolution:(null==(o=null==e?void 0:e[tv])?void 0:o.maxResolution)||0}})),t3=no(gp,(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}})),n3=no(gp,(e=>{var t;return{...null==e?void 0:e[sO],maxSize:(null==(t=null==e?void 0:e[sO])?void 0:t.maxSize)||0}})),r3=no([VI,e3,t3,n3],((e,t,n,r)=>({IMAGE:av(null==e?void 0:e.extensions),VIDEO:av(null==t?void 0:t.extensions),AUDIO:av(null==n?void 0:n.extensions),DOCUMENT:av(null==r?void 0:r.extensions)}))),FQ=no(r3,(e=>Object.keys(e).reduce(((t,n)=>[...t,...e[n]||[]]),[]))),jQ=no(gp,(e=>{var t;return null==(t=null==e?void 0:e[Zk])?void 0:t.invites})),zQ=No({name:"platformSettings",initialState:IQ,reducers:{setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},extraReducers:e=>{e.addCase(AG,((e,{payload:t})=>{e.data={...e.data,...t}}))},selectors:{selectSettings:gp,selectPostConfig:LQ,selectDocPolicy:n3,selectImagePolicy:VI,selectVideoPolicy:e3,selectAudioPolicy:t3,selectInvitesEnabled:jQ,selectImageExtensions:BQ,selectSupportedExtensions:r3,selectFullExtensionsList:FQ,selectRegistration:e=>{var t;return null==(t=e.data)?void 0:t[Zk]},selectLanguageDetection:e=>{var t;return null==(t=e.data)?void 0:t[NQ]},selectLanguageTranslation:e=>{var t;return null==(t=e.data)?void 0:t[DQ]},selectOpenai:e=>{var t;return null==(t=e.data)?void 0:t[MQ]},selectCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[CQ]},selectAdminCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[AQ]},selectPlatformTranslation:e=>{var t;return null==(t=e.data)?void 0:t[RQ]},selectAccess:e=>{var t;return null==(t=e.data)?void 0:t[OQ]},selectBranding:e=>{var t;return null==(t=e.data)?void 0:t[TQ]},selectLinkService:e=>{var t;return null==(t=e.data)?void 0:t[kQ]},selectInstanceAdmin:e=>{var t;return null==(t=e.data)?void 0:t[EQ]},selectLegal:e=>{var t;return null==(t=e.data)?void 0:t[YS.legal]},selectDomainBlocks:e=>{var t;return null==(t=e.data)?void 0:t[PQ]},selectContacts:e=>{var t;return null==(t=e.data)?void 0:t[YS.contacts]}}}),uO={data:{userId:"",list:[]},count:{},isPending:!1},UQ=e=>e,VQ=e=>e.error,WQ=e=>e.isPending,qQ=e=>{var t;return null==(t=e.count)?void 0:t.total},GQ=e=>{var t;return null==(t=e.count)?void 0:t.unread},HQ=e=>e.data.userId,WI=no(UQ,(e=>e.data.list)),KQ=no(WI,(e=>null==e?void 0:e.filter((e=>"UNREAD"===e.status)))),YQ=no(WI,(e=>null==e?void 0:e.at(-1))),QQ=No({name:"notifications",initialState:uO,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(SG,((e,t)=>{e.isPending=t.payload})).addCase(_G,((e,t)=>{e.error=t.payload})).addCase(xG,((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(wG,((e,t)=>{e.count.unread=(e.count.unread||0)+1,e.data.list&&(e.data.list=[t.payload,...e.data.list||[]])})).addCase(bG,((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($G,((e,t)=>{e.count.total=t.payload})).addCase(IG,((e,t)=>{e.count.unread=t.payload})).addCase(EG,(()=>uO)).addCase(TG,((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(CG,(e=>{e.data.list&&(e.data.list=e.data.list.map((e=>"FOLLOW_REQUEST"===e.type?{...e,followResponse:"Accepted"}:e)))}))},selectors:{selectError:VQ,selectIsPending:WQ,selectTotalCount:qQ,selectUnreadCount:GQ,selectNotifications:WI,selectUnreadNotifications:KQ,selectLastNotification:YQ,selectNotificationsOwner:HQ}});function XQ(){return!(typeof navigator<"u"&&"boolean"==typeof navigator.onLine)||navigator.onLine}const JQ={isOnline:XQ()},ZQ=No({name:"network",initialState:JQ,reducers:{setOnline:(e,{payload:t})=>{e.isOnline=t}},selectors:{selectOnline:e=>e.isOnline}}),o3=b3(cQ,ZQ,pk,dQ,hQ,pQ,_Q,QQ,SQ,zQ);Dl("app/hydrate");var lO,sv={exports:{}},eX=sv.exports;
|
|
70
|
+
*/function E4(){if(TE)return vn;TE=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"),s=Symbol.for("react.context"),u=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 u:case s:case l:case p:case f:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),vn.ContextConsumer=s,vn.ContextProvider=a,vn.Element=t,vn.ForwardRef=l,vn.Fragment=r,vn.Lazy=p,vn.Memo=f,vn.Portal=n,vn.Profiler=i,vn.StrictMode=o,vn.Suspense=c,vn.SuspenseList=d,vn.isAsyncMode=function(){return!1},vn.isConcurrentMode=function(){return!1},vn.isContextConsumer=function(e){return h(e)===s},vn.isContextProvider=function(e){return h(e)===a},vn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},vn.isForwardRef=function(e){return h(e)===l},vn.isFragment=function(e){return h(e)===r},vn.isLazy=function(e){return h(e)===p},vn.isMemo=function(e){return h(e)===f},vn.isPortal=function(e){return h(e)===n},vn.isProfiler=function(e){return h(e)===i},vn.isStrictMode=function(e){return h(e)===o},vn.isSuspense=function(e){return h(e)===c},vn.isSuspenseList=function(e){return h(e)===d},vn.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===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},vn.typeOf=h,vn}function T4(){return RE||(RE=1,Fw.exports=E4()),Fw.exports}function RA(){if(PE)return jw;PE=1;var e=Ml(),t=da();return jw=function(n){return"number"==typeof n||t(n)&&"[object Number]"==e(n)}}function R4(){if(OE)return zw;OE=1;var e=RA();return zw=function(t){return e(t)&&t!=+t}}T4(),R4(),RA();var Vw,AE,Ww,NE,qw,DE,Gw,ME,Hw,kE,Kw,LE,Yw,BE,Qw,FE,Xw,jE,Jw,zE,Zw,UE,eb,VE,tb,WE,nb,qE,rb,GE,ob,HE,ib,KE,ab,YE,sb,QE,ub,XE,lb,JE,cb,ZE,db,eT,fb,tT,Eg=function(e){return C4(e)&&e.indexOf("%")===e.length-1},P4=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 O4(){if(AE)return Vw;AE=1;var e=$0();return Vw=function(){this.__data__=new e,this.size=0}}function A4(){if(NE)return Ww;return NE=1,Ww=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}}function N4(){if(DE)return qw;return DE=1,qw=function(e){return this.__data__.get(e)}}function D4(){if(ME)return Gw;return ME=1,Gw=function(e){return this.__data__.has(e)}}function M4(){if(kE)return Hw;kE=1;var e=$0(),t=_$(),n=x$();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 S$(){if(LE)return Kw;LE=1;var e=$0(),t=O4(),n=A4(),r=N4(),o=D4(),i=M4();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 k4(){if(BE)return Yw;BE=1;return Yw=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}}function L4(){if(FE)return Qw;return FE=1,Qw=function(e){return this.__data__.has(e)}}function B4(){if(jE)return Xw;jE=1;var e=x$(),t=k4(),n=L4();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 F4(){if(zE)return Jw;return zE=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 j4(){if(UE)return Zw;return UE=1,Zw=function(e,t){return e.has(t)}}function PA(){if(VE)return eb;VE=1;var e=B4(),t=F4(),n=j4();return eb=function(r,o,i,a,s,u){var l=1&i,c=r.length,d=o.length;if(c!=d&&!(l&&d>c))return!1;var f=u.get(r),p=u.get(o);if(f&&p)return f==o&&p==r;var m=-1,h=!0,g=2&i?new e:void 0;for(u.set(r,o),u.set(o,r);++m<c;){var v=r[m],y=o[m];if(a)var b=l?a(y,v,m,o,r,u):a(v,y,m,r,o,u);if(void 0!==b){if(b)continue;h=!1;break}if(g){if(!t(o,(function(e,t){if(!n(g,t)&&(v===e||s(v,e,i,a,u)))return g.push(t)}))){h=!1;break}}else if(v!==y&&!s(v,y,i,a,u)){h=!1;break}}return u.delete(r),u.delete(o),h}}function OA(){if(WE)return tb;WE=1;var e=fi().Uint8Array;return tb=e}function z4(){if(qE)return nb;return qE=1,nb=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}}function U4(){if(GE)return rb;return GE=1,rb=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}}function V4(){if(HE)return ob;HE=1;var e=Kh(),t=OA(),n=b$(),r=PA(),o=z4(),i=U4(),a=e?e.prototype:void 0,s=a?a.valueOf:void 0;return ob=function(e,a,u,l,c,d,f){switch(u){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 g=r(p(e),p(a),l,c,d,f);return f.delete(e),g;case"[object Symbol]":if(s)return s.call(e)==s.call(a)}return!1}}function $$(){if(KE)return ib;return KE=1,ib=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}}function AA(){if(YE)return ab;YE=1;var e=$$(),t=Di();return ab=function(n,r,o){var i=r(n);return t(n)?i:e(i,o(n))}}function W4(){if(QE)return sb;return QE=1,sb=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 NA(){if(XE)return ub;return XE=1,ub=function(){return[]}}function I$(){if(JE)return lb;JE=1;var e=W4(),t=NA(),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return lb=r?function(t){return null==t?[]:(t=Object(t),e(r(t),(function(e){return n.call(t,e)})))}:t}function q4(){if(ZE)return cb;return ZE=1,cb=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}}function G4(){if(eT)return db;eT=1;var e=Ml(),t=da();return db=function(n){return t(n)&&"[object Arguments]"==e(n)}}function C$(){if(tT)return fb;tT=1;var e=G4(),t=da(),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 fb=i}var pb,nT,rT,hb,oT,mb,iT,vb,aT,gb,sT,rv={exports:{}};function H4(){if(nT)return pb;return nT=1,pb=function(){return!1}}function E$(){return rT||(rT=1,e=rv,t=rv.exports,n=fi(),r=H4(),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r,e.exports=s),rv.exports;var e,t,n,r,o,i,a,s}function T$(){if(oT)return hb;oT=1;var e=/^(?:0|[1-9]\d*)$/;return hb=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 R$(){if(iT)return mb;iT=1;return mb=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function K4(){if(aT)return vb;aT=1;var e=Ml(),t=R$(),n=da(),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,vb=function(o){return n(o)&&t(o.length)&&!!r[e(o)]}}function P$(){if(sT)return gb;return sT=1,gb=function(e){return function(t){return e(t)}}}rv.exports;var uT,yb,lT,wb,cT,bb,dT,_b,fT,xb,pT,Sb,hT,$b,mT,Ib,vT,Cb,gT,Eb,yT,Tb,wT,Rb,bT,Pb,_T,Ob,xT,Ab,ST,Nb,$T,Db,IT,Mb,CT,kb,ET,Lb,TT,Bb,RT,Fb,PT,jb,OT,zb,AT,Ub,NT,Vb,DT,Wb,MT,qb,kT,Gb,LT,Hb,BT,Kb,FT,Yb,jT,Qb,zT,Xb,UT,Jb,VT,Zb,WT,e_,qT,t_,GT,n_,HT,r_,KT,o_,YT,i_,QT,a_,XT,s_,JT,u_,ZT,l_,eR,c_,tR,d_,nR,f_,rR,p_,oR,h_,iR,m_,aR,ov={exports:{}};function O$(){return uT||(uT=1,e=ov,t=ov.exports,n=_A(),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),ov.exports;var e,t,n,r,o,i,a}function DA(){if(lT)return yb;lT=1;var e=K4(),t=P$(),n=O$(),r=n&&n.isTypedArray,o=r?t(r):e;return yb=o}function MA(){if(cT)return wb;cT=1;var e=q4(),t=C$(),n=Di(),r=E$(),o=T$(),i=DA(),a=Object.prototype.hasOwnProperty;return wb=function(s,u){var l=n(s),c=!l&&t(s),d=!l&&!c&&r(s),f=!l&&!c&&!d&&i(s),p=l||c||d||f,m=p?e(s.length,String):[],h=m.length;for(var g in s)(u||a.call(s,g))&&(!p||!("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||o(g,h)))&&m.push(g);return m}}function A$(){if(dT)return bb;dT=1;var e=Object.prototype;return bb=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function kA(){if(fT)return _b;return fT=1,_b=function(e,t){return function(n){return e(t(n))}}}function Y4(){if(pT)return xb;pT=1;var e=kA()(Object.keys,Object);return xb=e}function LA(){if(hT)return Sb;hT=1;var e=A$(),t=Y4(),n=Object.prototype.hasOwnProperty;return Sb=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 BA(){if(mT)return $b;mT=1;var e=_0(),t=R$();return $b=function(n){return null!=n&&t(n.length)&&!e(n)}}function C0(){if(vT)return Ib;vT=1;var e=MA(),t=LA(),n=BA();return Ib=function(r){return n(r)?e(r):t(r)}}function FA(){if(gT)return Cb;gT=1;var e=AA(),t=I$(),n=C0();return Cb=function(r){return e(r,n,t)}}function Q4(){if(yT)return Eb;yT=1;var e=FA(),t=Object.prototype.hasOwnProperty;return Eb=function(n,r,o,i,a,s){var u=1&o,l=e(n),c=l.length;if(c!=e(r).length&&!u)return!1;for(var d=c;d--;){var f=l[d];if(!(u?f in r:t.call(r,f)))return!1}var p=s.get(n),m=s.get(r);if(p&&m)return p==r&&m==n;var h=!0;s.set(n,r),s.set(r,n);for(var g=u;++d<c;){var v=n[f=l[d]],y=r[f];if(i)var b=u?i(y,v,f,r,n,s):i(v,y,f,n,r,s);if(!(void 0===b?v===y||a(v,y,o,i,s):b)){h=!1;break}g||(g="constructor"==f)}if(h&&!g){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 s.delete(n),s.delete(r),h}}function X4(){if(wT)return Tb;wT=1;var e=lp()(fi(),"DataView");return Tb=e}function J4(){if(bT)return Rb;bT=1;var e=lp()(fi(),"Promise");return Rb=e}function Z4(){if(_T)return Pb;_T=1;var e=lp()(fi(),"Set");return Pb=e}function jA(){if(xT)return Ob;xT=1;var e=lp()(fi(),"WeakMap");return Ob=e}function Lv(){if(ST)return Ab;ST=1;var e=X4(),t=_$(),n=J4(),r=Z4(),o=jA(),i=Ml(),a=xA(),s="[object Map]",u="[object Promise]",l="[object Set]",c="[object WeakMap]",d="[object DataView]",f=a(e),p=a(t),m=a(n),h=a(r),g=a(o),v=i;return(e&&v(new e(new ArrayBuffer(1)))!=d||t&&v(new t)!=s||n&&v(n.resolve())!=u||r&&v(new r)!=l||o&&v(new o)!=c)&&(v=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 s;case m:return u;case h:return l;case g:return c}return t}),Ab=v}function e8(){if($T)return Nb;$T=1;var e=S$(),t=PA(),n=V4(),r=Q4(),o=Lv(),i=Di(),a=E$(),s=DA(),u="[object Arguments]",l="[object Array]",c="[object Object]",d=Object.prototype.hasOwnProperty;return Nb=function(f,p,m,h,g,v){var y=i(f),b=i(p),w=y?l:o(f),x=b?l:o(p),_=(w=w==u?c:w)==c,S=(x=x==u?c:x)==c,A=w==x;if(A&&a(f)){if(!a(p))return!1;y=!0,_=!1}if(A&&!_)return v||(v=new e),y||s(f)?t(f,p,m,h,g,v):n(f,p,w,m,h,g,v);if(!(1&m)){var I=_&&d.call(f,"__wrapped__"),E=S&&d.call(p,"__wrapped__");if(I||E){var k=I?f.value():f,M=E?p.value():p;return v||(v=new e),g(k,M,m,h,v)}}return!!A&&(v||(v=new e),r(f,p,m,h,g,v))}}function zA(){if(IT)return Db;IT=1;var e=e8(),t=da();return Db=function n(r,o,i,a,s){return r===o||(null==r||null==o||!t(r)&&!t(o)?r!=r&&o!=o:e(r,o,i,a,n,s))},Db}function t8(){if(CT)return Mb;CT=1;var e=S$(),t=zA();return Mb=function(n,r,o,i){var a=o.length,s=a,u=!i;if(null==n)return!s;for(n=Object(n);a--;){var l=o[a];if(u&&l[2]?l[1]!==n[l[0]]:!(l[0]in n))return!1}for(;++a<s;){var c=(l=o[a])[0],d=n[c],f=l[1];if(u&&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 UA(){if(ET)return kb;ET=1;var e=Es();return kb=function(t){return t==t&&!e(t)}}function n8(){if(TT)return Lb;TT=1;var e=UA(),t=C0();return Lb=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 VA(){if(RT)return Bb;return RT=1,Bb=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}}function r8(){if(PT)return Fb;PT=1;var e=t8(),t=n8(),n=VA();return Fb=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 o8(){if(OT)return jb;return OT=1,jb=function(e,t){return null!=e&&t in Object(e)}}function i8(){if(AT)return zb;AT=1;var e=CA(),t=C$(),n=Di(),r=T$(),o=R$(),i=kv();return zb=function(a,s,u){for(var l=-1,c=(s=e(s,a)).length,d=!1;++l<c;){var f=i(s[l]);if(!(d=null!=a&&u(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 a8(){if(NT)return Ub;NT=1;var e=o8(),t=i8();return Ub=function(n,r){return null!=n&&t(n,r,e)}}function s8(){if(DT)return Vb;DT=1;var e=zA(),t=TA(),n=a8(),r=w$(),o=UA(),i=VA(),a=kv();return Vb=function(s,u){return r(s)&&o(u)?i(a(s),u):function(r){var o=t(r,s);return void 0===o&&o===u?n(r,s):e(u,o,3)}}}function N$(){if(MT)return Wb;return MT=1,Wb=function(e){return e}}function u8(){if(kT)return qb;return kT=1,qb=function(e){return function(t){return null==t?void 0:t[e]}}}function l8(){if(LT)return Gb;LT=1;var e=EA();return Gb=function(t){return function(n){return e(n,t)}}}function c8(){if(BT)return Hb;BT=1;var e=u8(),t=l8(),n=w$(),r=kv();return Hb=function(o){return n(o)?e(r(o)):t(o)}}function d8(){if(FT)return Kb;FT=1;var e=r8(),t=s8(),n=N$(),r=Di(),o=c8();return Kb=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 f8(){if(jT)return Yb;return jT=1,Yb=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 p8(){if(zT)return Qb;return zT=1,Qb=function(e){return e!=e}}function h8(){if(UT)return Xb;return UT=1,Xb=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}}function m8(){if(VT)return Jb;VT=1;var e=f8(),t=p8(),n=h8();return Jb=function(r,o,i){return o==o?n(r,o,i):e(r,t,i)}}function v8(){if(WT)return Zb;WT=1;var e=m8();return Zb=function(t,n){return!!(null==t?0:t.length)&&e(t,n,0)>-1}}function g8(){if(qT)return e_;return qT=1,e_=function(){}}function y8(){if(GT)return t_;GT=1;var e=Kh(),t=C$(),n=Di(),r=e?e.isConcatSpreadable:void 0;return t_=function(e){return n(e)||t(e)||!!(r&&e&&e[r])}}function w8(){if(HT)return n_;HT=1;var e=$$(),t=y8();return n_=function n(r,o,i,a,s){var u=-1,l=r.length;for(i||(i=t),s||(s=[]);++u<l;){var c=r[u];o>0&&i(c)?o>1?n(c,o-1,i,a,s):e(s,c):a||(s[s.length]=c)}return s},n_}function D$(){if(KT)return r_;return KT=1,r_=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 b8(){if(YT)return o_;YT=1;var e=D$(),t=Math.max;return o_=function(n,r,o){return r=t(void 0===r?n.length-1:r,0),function(){for(var i=arguments,a=-1,s=t(i.length-r,0),u=Array(s);++a<s;)u[a]=i[r+a];a=-1;for(var l=Array(r+1);++a<r;)l[a]=i[a];return l[r]=o(u),e(n,this,l)}},o_}function _8(){if(QT)return i_;return QT=1,i_=function(e){return function(){return e}}}function WA(){if(XT)return a_;XT=1;var e=lp(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}}();return a_=t}function x8(){if(JT)return s_;JT=1;var e=_8(),t=WA(),n=N$();return s_=t?function(n,r){return t(n,"toString",{configurable:!0,enumerable:!1,value:e(r),writable:!0})}:n}function qA(){if(ZT)return u_;ZT=1;var e=Date.now;return u_=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)}},u_}function GA(){if(eR)return l_;eR=1;var e=x8(),t=qA()(e);return l_=t}function S8(){if(tR)return c_;tR=1;var e=fi();return c_=function(){return e.Date.now()}}function $8(){if(nR)return d_;nR=1;var e=/\s/;return d_=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}}function I8(){if(rR)return f_;rR=1;var e=$8(),t=/^\s+/;return f_=function(n){return n&&n.slice(0,e(n)+1).replace(t,"")}}function HA(){if(oR)return p_;oR=1;var e=I8(),t=Es(),n=Mv(),r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt;return p_=function(s){if("number"==typeof s)return s;if(n(s))return NaN;if(t(s)){var u="function"==typeof s.valueOf?s.valueOf():s;s=t(u)?u+"":u}if("string"!=typeof s)return 0===s?s:+s;s=e(s);var l=o.test(s);return l||i.test(s)?a(s.slice(2),l?2:8):r.test(s)?NaN:+s}}function KA(){if(iR)return h_;iR=1;var e=Es(),t=S8(),n=HA(),r=Math.max,o=Math.min;return h_=function(i,a,s){var u,l,c,d,f,p,m=0,h=!1,g=!1,v=!0;if("function"!=typeof i)throw new TypeError("Expected a function");function y(e){var t=u,n=l;return u=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||g&&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 g?o(t,c-(e-m)):t}(e))}function x(e){return f=void 0,v&&u?y(e):(u=l=void 0,d)}function _(){var e=t(),n=b(e);if(u=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(g)return clearTimeout(f),f=setTimeout(w,a),y(p)}return void 0===f&&(f=setTimeout(w,a)),d}return a=n(a)||0,e(s)&&(h=!!s.leading,c=(g="maxWait"in s)?r(n(s.maxWait)||0,a):c,v="trailing"in s?!!s.trailing:v),_.cancel=function(){void 0!==f&&clearTimeout(f),m=0,u=p=l=f=void 0},_.flush=function(){return void 0===f?d:x(t())},_},h_}function C8(){if(aR)return m_;aR=1;var e=KA(),t=Es();return m_=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})}}ov.exports;var E8=C8();const T8=t$(E8);function yv(e){return(yv="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 sR(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 Tg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sR(Object(n),!0).forEach((function(t){R8(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R8(e,t,n){return(t=P8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P8(e){var t=O8(e,"string");return"symbol"==yv(t)?t:t+""}function O8(e,t){if("object"!=yv(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=yv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function A8(e,t){return k8(e)||M8(e,t)||D8(e,t)||N8()}function N8(){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 D8(e,t){if(e){if("string"==typeof e)return uR(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 uR(e,t)}}function uR(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 M8(e,t){var n=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0!==t)for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}function k8(e){if(Array.isArray(e))return e}var v_,lR,g_,cR,y_,dR,w_,fR,b_,pR,__,hR,x_,mR,S_,vR,$_,gR,I_,yR,C_,wR,E_,bR,T_,_R,L8=Fe((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,s=e.height,u=void 0===s?"100%":s,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,g=e.id,v=e.className,y=e.onResize,b=e.style,w=void 0===b?{}:b,x=Ge(null),_=Ge();_.current=y,h3(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 S=A8(lt({containerWidth:o.width,containerHeight:o.height}),2),A=S[0],I=S[1],E=_t((function(e,t){I((function(n){var r=Math.round(e),o=Math.round(t);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}}))}),[]);Qe((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=T8(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 k=An((function(){var e=A.containerWidth,t=A.containerHeight;if(e<0||t<0)return null;Uw(Eg(a)||Eg(u),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,u),Uw(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=Eg(a)?e:a,o=Eg(u)?t:u;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,u,c,d,n);var i=!Array.isArray(p)&&P4(p.type).endsWith("Chart");return ge.Children.map(p,(function(e){return ge.isValidElement(e)?sp(e,Tg({width:r,height:o},i?{style:Tg({height:"100%",width:"100%",maxHeight:o,maxWidth:r},e.props.style)}:{})):e}))}),[n,p,u,f,d,c,A,a]);return ge.createElement("div",{id:g?"".concat(g):void 0,className:$O("recharts-responsive-container",v),style:Tg(Tg({},w),{},{width:a,height:u,minWidth:c,minHeight:d,maxHeight:f}),ref:x},k)}));function M$(){if(lR)return v_;lR=1;var e=kA()(Object.getPrototypeOf,Object);return v_=e}function B8(){if(cR)return g_;cR=1;var e=Ml(),t=M$(),n=da(),r=Function.prototype,o=Object.prototype,i=r.toString,a=o.hasOwnProperty,s=i.call(Object);return g_=function(r){if(!n(r)||"[object Object]"!=e(r))return!1;var o=t(r);if(null===o)return!0;var u=a.call(o,"constructor")&&o.constructor;return"function"==typeof u&&u instanceof u&&i.call(u)==s}}function F8(){if(dR)return y_;dR=1;var e=HA(),t=1/0;return y_=function(n){return n?(n=e(n))===t||n===-t?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}}function YA(){if(fR)return w_;fR=1;var e=WA();return w_=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}}function QA(){if(pR)return b_;pR=1;var e=F8();return b_=function(t){var n=e(t),r=n%1;return n==n?r?n-r:n:0}}function k$(){if(hR)return __;return hR=1,__=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}}function XA(){if(mR)return x_;mR=1;var e=YA(),t=b$(),n=Object.prototype.hasOwnProperty;return x_=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 E0(){if(vR)return S_;vR=1;var e=XA(),t=YA();return S_=function(n,r,o,i){var a=!o;o||(o={});for(var s=-1,u=r.length;++s<u;){var l=r[s],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 JA(){if(gR)return $_;gR=1;var e=E0(),t=C0();return $_=function(n,r){return n&&e(r,t(r),n)}}function j8(){if(yR)return I_;return yR=1,I_=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}}function z8(){if(wR)return C_;wR=1;var e=Es(),t=A$(),n=j8(),r=Object.prototype.hasOwnProperty;return C_=function(o){if(!e(o))return n(o);var i=t(o),a=[];for(var s in o)"constructor"==s&&(i||!r.call(o,s))||a.push(s);return a}}function L$(){if(bR)return E_;bR=1;var e=MA(),t=z8(),n=BA();return E_=function(r){return n(r)?e(r,!0):t(r)}}function U8(){if(_R)return T_;_R=1;var e=E0(),t=L$();return T_=function(n,r){return n&&e(r,t(r),n)}}var xR,R_,SR,P_,$R,O_,IR,A_,CR,N_,ER,D_,TR,M_,RR,k_,PR,L_,OR,B_,AR,F_,NR,j_,DR,z_,MR,U_,kR,V_,LR,W_,BR,q_,FR,G_,jR,H_,zR,K_,UR,Y_,VR,iv={exports:{}};function V8(){return xR||(xR=1,e=iv,t=iv.exports,n=fi(),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}),iv.exports;var e,t,n,r,o,i,a}function T0(){if(SR)return R_;return SR=1,R_=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}}function W8(){if($R)return P_;$R=1;var e=E0(),t=I$();return P_=function(n,r){return e(n,t(n),r)}}function ZA(){if(IR)return O_;IR=1;var e=$$(),t=M$(),n=I$(),r=NA(),o=Object.getOwnPropertySymbols;return O_=o?function(r){for(var o=[];r;)e(o,n(r)),r=t(r);return o}:r}function q8(){if(CR)return A_;CR=1;var e=E0(),t=ZA();return A_=function(n,r){return e(n,t(n),r)}}function G8(){if(ER)return N_;ER=1;var e=AA(),t=ZA(),n=L$();return N_=function(r){return e(r,n,t)}}function H8(){if(TR)return D_;TR=1;var e=Object.prototype.hasOwnProperty;return D_=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 B$(){if(RR)return M_;RR=1;var e=OA();return M_=function(t){var n=new t.constructor(t.byteLength);return new e(n).set(new e(t)),n}}function K8(){if(PR)return k_;PR=1;var e=B$();return k_=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}}function Y8(){if(OR)return L_;OR=1;var e=/\w*$/;return L_=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}}function Q8(){if(AR)return B_;AR=1;var e=Kh(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;return B_=function(e){return n?Object(n.call(e)):{}}}function X8(){if(NR)return F_;NR=1;var e=B$();return F_=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}}function J8(){if(DR)return j_;DR=1;var e=B$(),t=K8(),n=Y8(),r=Q8(),o=X8();return j_=function(i,a,s){var u=i.constructor;switch(a){case"[object ArrayBuffer]":return e(i);case"[object Boolean]":case"[object Date]":return new u(+i);case"[object DataView]":return t(i,s);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,s);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(i);case"[object RegExp]":return n(i);case"[object Symbol]":return r(i)}}}function R0(){if(MR)return z_;MR=1;var e=Es(),t=Object.create;return z_=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 Z8(){if(kR)return U_;kR=1;var e=R0(),t=M$(),n=A$();return U_=function(r){return"function"!=typeof r.constructor||n(r)?{}:e(t(r))}}function e9(){if(LR)return V_;LR=1;var e=Lv(),t=da();return V_=function(n){return t(n)&&"[object Map]"==e(n)}}function t9(){if(BR)return W_;BR=1;var e=e9(),t=P$(),n=O$(),r=n&&n.isMap,o=r?t(r):e;return W_=o}function n9(){if(FR)return q_;FR=1;var e=Lv(),t=da();return q_=function(n){return t(n)&&"[object Set]"==e(n)}}function r9(){if(jR)return G_;jR=1;var e=n9(),t=P$(),n=O$(),r=n&&n.isSet,o=r?t(r):e;return G_=o}function eN(){if(zR)return H_;zR=1;var e=S$(),t=k$(),n=XA(),r=JA(),o=U8(),i=V8(),a=T0(),s=W8(),u=q8(),l=FA(),c=G8(),d=Lv(),f=H8(),p=J8(),m=Z8(),h=Di(),g=E$(),v=t9(),y=Es(),b=r9(),w=C0(),x=L$(),_="[object Arguments]",S="[object Function]",A="[object Object]",I={};return I[_]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[A]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[S]=I["[object WeakMap]"]=!1,H_=function E(k,M,C,N,P,O){var T,R=1&M,D=2&M,j=4&M;if(C&&(T=P?C(k,N,P,O):C(k)),void 0!==T)return T;if(!y(k))return k;var q=h(k);if(q){if(T=f(k),!R)return a(k,T)}else{var L=d(k),z=L==S||"[object GeneratorFunction]"==L;if(g(k))return i(k,R);if(L==A||L==_||z&&!P){if(T=D||z?{}:m(k),!R)return D?u(k,o(T,k)):s(k,r(T,k))}else{if(!I[L])return P?k:{};T=p(k,L,R)}}O||(O=new e);var $=O.get(k);if($)return $;O.set(k,T),b(k)?k.forEach((function(e){T.add(E(e,M,C,e,k,O))})):v(k)&&k.forEach((function(e,t){T.set(t,E(e,M,C,t,k,O))}));var B=q?void 0:(j?D?c:l:D?x:w)(k);return t(B||k,(function(e,t){B&&(e=k[t=e]),n(T,t,E(e,M,C,t,k,O))})),T},H_}function o9(){if(UR)return K_;UR=1;var e=w8();return K_=function(t){return(null==t?0:t.length)?e(t,1):[]}}function i9(){if(VR)return Y_;VR=1;var e=o9(),t=b8(),n=GA();return Y_=function(r){return n(t(r,void 0,e),r+"")}}iv.exports;const a9={light:"",dark:".dark"},tN=M.createContext(null);function nN(){const e=M.useContext(tN);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const s9=M.forwardRef((({id:e,className:t,children:n,config:r,...o},i)=>{const a=M.useId(),s=`chart-${e||a.replace(/:/g,"")}`;return G.jsx(tN.Provider,{value:{config:r},children:G.jsxs("div",{"data-chart":s,ref:i,className:xe("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:[G.jsx(u9,{id:s,config:r}),G.jsx(L8,{children:n})]})})}));s9.displayName="Chart";const u9=({id:e,config:t})=>{const n=Object.entries(t).filter((([,e])=>e.theme||e.color));return n.length?G.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(a9).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},l9=M.forwardRef((({active:e,payload:t,className:n,indicator:r="dot",hideLabel:o=!1,hideIndicator:i=!1,label:a,labelFormatter:s,labelClassName:u,formatter:l,color:c,nameKey:d,labelKey:f,hoveredItem:p,onItemHover:m},h)=>{const{config:g}=nN(),v=M.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=yS(g,n,r),l=f||"string"!=typeof a?null==i?void 0:i.label:(null==(e=g[a])?void 0:e.label)||a;return s?G.jsx("div",{className:xe("font-medium",u),children:s(l,t)}):l?G.jsx("div",{className:xe("font-medium",u),children:l}):null}),[a,s,t,o,u,g,f]);if(!e||null==t||!t.length)return null;const y=1===t.length&&"dot"!==r,b=t.length>10;return G.jsxs("div",{ref:h,className:xe("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:v,G.jsx("div",{className:xe("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=yS(g,e,o),s=c||(null==(n=e.payload)?void 0:n.fill)||e.color||"",u=o===p;return G.jsx("div",{className:xe("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",u?"":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]):G.jsxs(G.Fragment,{children:[null!=a&&a.icon?G.jsx(a.icon,{}):!i&&G.jsx("div",{className:xe("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":s,"--color-border":s}}),G.jsxs("div",{className:xe("flex flex-1 justify-between leading-none",y?"items-end":"items-center"),children:[G.jsxs("div",{className:"grid gap-xxs",children:[y?v:null,G.jsx("span",{className:xe("text-muted-foreground",u&&"font-medium text-foreground"),children:(null==a?void 0:a.label)||e.name})]}),e.value&&G.jsx("span",{className:xe("font-mono font-medium tabular-nums text-foreground",u&&"font-bold"),children:e.value.toLocaleString()})]})]})},e.dataKey)}))})]})}));l9.displayName="ChartTooltip";const c9=M.forwardRef((({className:e,hideIcon:t=!1,payload:n,nameKey:r,onItemHover:o,hoveredItem:i},a)=>{const{config:s}=nN(),u=M.useRef({});return M.useEffect((()=>{if(i&&u.current[i]){const e=u.current[i];e&&e.scrollIntoView({behavior:"smooth",block:"nearest"})}}),[i]),null!=n&&n.length?G.jsx("div",{ref:a,className:xe("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=yS(s,e,a),c=!!o&&a===i;return G.jsxs("div",{ref:e=>{e?u.current[a]=e:delete u.current[a]},className:xe("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?G.jsx(l.icon,{}):G.jsx("div",{className:"h-2 w-2 shrink-0 rounded-full",style:{backgroundColor:e.color||""}}),G.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 yS(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]}c9.displayName="ChartLegend";const d9=({children:e,className:t})=>G.jsx("div",{className:xe("flex flex-wrap gap-xxxs",t),children:e}),rN=({text:e,icon:t,disabled:n,isLoading:r,avatarSrc:o,onClick:i,onRemove:a,className:s})=>G.jsxs("div",{onClick:n?void 0:i,className:xe("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",s),children:[o&&G.jsxs(fA,{className:xe("size-6 text-[10px]"),children:[G.jsx(pA,{src:o,alt:e}),G.jsx(hA,{className:"text-xs",children:e.charAt(0).toUpperCase()})]}),t,G.jsx("span",{children:e}),a&&!r&&G.jsx("span",{role:"button",tabIndex:-1,onClick:e=>{e.stopPropagation(),e.preventDefault(),!n&&(null==a||a())},onPointerDown:e=>{e.stopPropagation(),e.preventDefault()},className:xe("pointer-events-auto cursor-pointer",n&&"pointer-events-none cursor-not-allowed opacity-50"),children:G.jsx(d0,{size:16})}),r&&G.jsx(_O,{size:16,className:"animate-spin"})]});function P0(e){const t=Ge({value:e,previous:e});return An((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}function O0(e){const[t,n]=lt(void 0);return Qo((()=>{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 oN="Checkbox",[f9,tJ]=di(oN),[p9,h9]=f9(oN),m9=Fe(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:u="on",onCheckedChange:l,...c}=e,[d,f]=lt(null),p=Zt(t,(e=>f(e))),m=Ge(!1),h=!d||!!d.closest("form"),[g=!1,v]=gd({prop:o,defaultProp:i,onChange:l}),y=Ge(g);return Qe((()=>{const e=null==d?void 0:d.form;if(e){const t=()=>v(y.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[d,v]),se(p9,{scope:n,state:g,disabled:s},se(gt.button,Ae({type:"button",role:"checkbox","aria-checked":Wf(g)?"mixed":g,"aria-required":a,"data-state":iN(g),"data-disabled":s?"":void 0,disabled:s,value:u},c,{ref:p,onKeyDown:it(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:it(e.onClick,(e=>{v((e=>!!Wf(e)||!e)),h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))})),h&&se(y9,{control:d,bubbles:!m.current,name:r,value:u,checked:g,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))})),v9="CheckboxIndicator",g9=Fe(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=h9(v9,n);return se(ca,{present:r||Wf(i.state)||!0===i.state},se(gt.span,Ae({"data-state":iN(i.state),"data-disabled":i.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))})),y9=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=Ge(null),a=P0(n),s=O0(t);return Qe((()=>{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]),se("input",Ae({type:"checkbox","aria-hidden":!0,defaultChecked:!Wf(n)&&n},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Wf(e){return"indeterminate"===e}function iN(e){return Wf(e)?"indeterminate":e?"checked":"unchecked"}const aN=m9,w9=g9,b9=xu("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"}}),F$=M.forwardRef((({className:e,size:t,variant:n,iconType:r,...o},i)=>{const a=o.checked,[s]=M.useState(a),[u,l]=M.useState(!1);M.useEffect((()=>{s!==a&&l(!0)}),[a]);const c=e=>"minus"===r?G.jsx($L,{...e}):G.jsx(r$,{...e});return G.jsxs(aN,{ref:i,className:xe(b9({size:t,variant:n}),"transition-[border] duration-100 ease-linear",a?"border-0":"border-gray-300 hover:border-2",e),...o,children:[G.jsx("div",{className:xe("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&&u,"animate-fill-out":!a&&u})}),G.jsx(w9,{className:"relative flex items-center justify-center text-current",children:G.jsx(c,{className:"size-xxxs",color:o.disabled?"var(--gray-300)":"white"})})]})}));F$.displayName=aN.displayName;var WR=1,_9=.9,x9=.8,S9=.17,Q_=.1,X_=.999,$9=.9999,I9=.99,C9=/[\\\/_+.#"@\[\(\{&]/,E9=/[\\\/_+.#"@\[\(\{&]/g,T9=/[\s-]/,sN=/[\s-]/g;function wS(e,t,n,r,o,i,a){if(i===t.length)return o===e.length?WR:I9;var s=`${o},${i}`;if(void 0!==a[s])return a[s];for(var u,l,c,d,f=r.charAt(i),p=n.indexOf(f,o),m=0;p>=0;)(u=wS(e,t,n,r,p+1,i+1,a))>m&&(p===o?u*=WR:C9.test(e.charAt(p-1))?(u*=x9,(c=e.slice(o,p-1).match(E9))&&o>0&&(u*=Math.pow(X_,c.length))):T9.test(e.charAt(p-1))?(u*=_9,(d=e.slice(o,p-1).match(sN))&&o>0&&(u*=Math.pow(X_,d.length))):(u*=S9,o>0&&(u*=Math.pow(X_,p-o))),e.charAt(p)!==t.charAt(i)&&(u*=$9)),(u<Q_&&n.charAt(p-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&n.charAt(p-1)!==r.charAt(i))&&((l=wS(e,t,n,r,p+1,i+2,a))*Q_>u&&(u=l*Q_)),u>m&&(m=u),p=n.indexOf(f,p+1);return a[s]=m,m}function qR(e){return e.toLowerCase().replace(sN," ")}function R9(e,t,n){return wS(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,qR(e),qR(t),0,0,{})}var Xm='[cmdk-group=""]',J_='[cmdk-group-items=""]',P9='[cmdk-group-heading=""]',j$='[cmdk-item=""]',GR=`${j$}:not([aria-disabled="true"])`,bS="cmdk-item-select",jf="data-value",O9=(e,t,n)=>R9(e,t,n),uN=M.createContext(void 0),Bv=()=>M.useContext(uN),lN=M.createContext(void 0),z$=()=>M.useContext(lN),cN=M.createContext(void 0),dN=M.forwardRef(((e,t)=>{let n=Mh((()=>{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=Mh((()=>new Set)),o=Mh((()=>new Map)),i=Mh((()=>new Map)),a=Mh((()=>new Set)),s=fN(e),{label:u,children:l,value:c,onValueChange:d,filter:f,shouldFilter:p,loop:m,disablePointerSelection:h=!1,vimBindings:g=!0,...v}=e,y=M.useId(),b=M.useId(),w=M.useId(),x=M.useRef(null),_=U9();Qf((()=>{if(void 0!==c){let e=c.trim();n.current.value=e,S.emit()}}),[c]),Qf((()=>{_(6,N)}),[]);let S=M.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)C(),E(),_(1,k);else if("value"===e&&(r||_(5,N),void 0!==(null==(o=s.current)?void 0:o.value))){let e=t??"";return void(null==(a=(i=s.current).onValueChange)||a.call(i,e))}S.emit()}},emit:()=>{a.current.forEach((e=>e()))}})),[]),A=M.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,I(t,r)),_(2,(()=>{E(),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,(()=>{C(),E(),n.current.value||k(),S.emit()})),()=>{i.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=P();_(4,(()=>{C(),(null==t?void 0:t.getAttribute("id"))===e&&k(),S.emit()}))}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{i.current.delete(e),o.current.delete(e)}),filter:()=>s.current.shouldFilter,label:u||e["aria-label"],disablePointerSelection:h,listId:y,inputId:w,labelId:b,listInnerRef:x})),[]);function I(e,t){var r,o;let i=null!=(o=null==(r=s.current)?void 0:r.filter)?o:O9;return e?i(e,n.current.search,t):0}function E(){if(!n.current.search||!1===s.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;O().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(J_);t?t.appendChild(e.parentElement===t?e:e.closest(`${J_} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${J_} > *`))})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{let t=x.current.querySelector(`${Xm}[${jf}="${encodeURIComponent(e[0])}"]`);null==t||t.parentElement.appendChild(t)}))}function k(){let e=O().find((e=>"true"!==e.getAttribute("aria-disabled"))),t=null==e?void 0:e.getAttribute(jf);S.setState("value",t||void 0)}function C(){var e,t,a,u;if(!n.current.search||!1===s.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=I(null!=(t=null==(e=i.current.get(o))?void 0:e.value)?t:"",null!=(u=null==(a=i.current.get(o))?void 0:a.keywords)?u:[]);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 N(){var e,t,n;let r=P();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(Xm))?void 0:t.querySelector(P9))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function P(){var e;return null==(e=x.current)?void 0:e.querySelector(`${j$}[aria-selected="true"]`)}function O(){var e;return Array.from(null==(e=x.current)?void 0:e.querySelectorAll(GR))}function T(e){let t=O()[e];t&&S.setState("value",t.getAttribute(jf))}function R(e){var t;let n=P(),r=O(),o=r.findIndex((e=>e===n)),i=r[o+e];null!=(t=s.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(jf))}function D(e){let t,n=P(),r=null==n?void 0:n.closest(Xm);for(;r&&!t;)r=e>0?j9(r,Xm):z9(r,Xm),t=null==r?void 0:r.querySelector(GR);t?S.setState("value",t.getAttribute(jf)):R(e)}let j=()=>T(O().length-1),q=e=>{e.preventDefault(),e.metaKey?j():e.altKey?D(1):R(1)},L=e=>{e.preventDefault(),e.metaKey?T(0):e.altKey?D(-1):R(-1)};return M.createElement(gt.div,{ref:t,tabIndex:-1,...v,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=v.onKeyDown)||t.call(v,e),!e.defaultPrevented)switch(e.key){case"n":case"j":g&&e.ctrlKey&&q(e);break;case"ArrowDown":q(e);break;case"p":case"k":g&&e.ctrlKey&&L(e);break;case"ArrowUp":L(e);break;case"Home":e.preventDefault(),T(0);break;case"End":e.preventDefault(),j();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();let t=P();if(t){let e=new Event(bS);t.dispatchEvent(e)}}}}},M.createElement("label",{"cmdk-label":"",htmlFor:A.inputId,id:A.labelId,style:W9},u),A0(e,(e=>M.createElement(lN.Provider,{value:S},M.createElement(uN.Provider,{value:A},e)))))})),A9=M.forwardRef(((e,t)=>{var n,r;let o=M.useId(),i=M.useRef(null),a=M.useContext(cN),s=Bv(),u=fN(e),l=null!=(r=null==(n=u.current)?void 0:n.forceMount)?r:null==a?void 0:a.forceMount;Qf((()=>{if(!l)return s.item(o,null==a?void 0:a.id)}),[l]);let c=pN(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!==s.filter())||(!e.search||e.filtered.items.get(o)>0)));function m(){var e,t;h(),null==(t=(e=u.current).onSelect)||t.call(e,c.current)}function h(){d.setState("value",c.current,!0)}if(M.useEffect((()=>{let t=i.current;if(t&&!e.disabled)return t.addEventListener(bS,m),()=>t.removeEventListener(bS,m)}),[p,e.onSelect,e.disabled]),!p)return null;let{disabled:g,value:v,onSelect:y,forceMount:b,keywords:w,...x}=e;return M.createElement(gt.div,{ref:wv([i,t]),...x,id:o,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!f,"data-disabled":!!g,"data-selected":!!f,onPointerMove:g||s.disablePointerSelection?void 0:h,onClick:g?void 0:m},e.children)})),N9=M.forwardRef(((e,t)=>{let{heading:n,children:r,forceMount:o,...i}=e,a=M.useId(),s=M.useRef(null),u=M.useRef(null),l=M.useId(),c=Bv(),d=Xf((e=>!(!o&&!1!==c.filter())||(!e.search||e.filtered.groups.has(a))));Qf((()=>c.group(a)),[]),pN(a,s,[e.value,e.heading,u]);let f=M.useMemo((()=>({id:a,forceMount:o})),[o]);return M.createElement(gt.div,{ref:wv([s,t]),...i,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&M.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:l},n),A0(e,(e=>M.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?l:void 0},M.createElement(cN.Provider,{value:f},e)))))})),D9=M.forwardRef(((e,t)=>{let{alwaysRender:n,...r}=e,o=M.useRef(null),i=Xf((e=>!e.search));return n||i?M.createElement(gt.div,{ref:wv([o,t]),...r,"cmdk-separator":"",role:"separator"}):null})),M9=M.forwardRef(((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,i=z$(),a=Xf((e=>e.search)),s=Xf((e=>e.value)),u=Bv(),l=M.useMemo((()=>{var e;let t=null==(e=u.listInnerRef.current)?void 0:e.querySelector(`${j$}[${jf}="${encodeURIComponent(s)}"]`);return null==t?void 0:t.getAttribute("id")}),[]);return M.useEffect((()=>{null!=e.value&&i.setState("search",e.value)}),[e.value]),M.createElement(gt.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":l,id:u.inputId,type:"text",value:o?e.value:a,onChange:e=>{o||i.setState("search",e.target.value),null==n||n(e.target.value)}})})),k9=M.forwardRef(((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,i=M.useRef(null),a=M.useRef(null),s=Bv();return M.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)}}}),[]),M.createElement(gt.div,{ref:wv([i,t]),...o,"cmdk-list":"",role:"listbox","aria-label":r,id:s.listId},A0(e,(e=>M.createElement("div",{ref:wv([a,s.listInnerRef]),"cmdk-list-sizer":""},e))))})),L9=M.forwardRef(((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:i,container:a,...s}=e;return M.createElement(JO,{open:n,onOpenChange:r},M.createElement(y0,{container:a},M.createElement(Gh,{"cmdk-overlay":"",className:o}),M.createElement(Hh,{"aria-label":e.label,"cmdk-dialog":"",className:i},M.createElement(dN,{ref:t,...s}))))})),B9=M.forwardRef(((e,t)=>Xf((e=>0===e.filtered.count))?M.createElement(gt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null)),F9=M.forwardRef(((e,t)=>{let{progress:n,children:r,label:o="Loading...",...i}=e;return M.createElement(gt.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},A0(e,(e=>M.createElement("div",{"aria-hidden":!0},e))))})),Mi=Object.assign(dN,{List:k9,Item:A9,Input:M9,Group:N9,Separator:D9,Dialog:L9,Empty:B9,Loading:F9});function j9(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function z9(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function fN(e){let t=M.useRef(e);return Qf((()=>{t.current=e})),t}var Qf=typeof window>"u"?M.useEffect:M.useLayoutEffect;function Mh(e){let t=M.useRef();return void 0===t.current&&(t.current=e()),t}function wv(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 M.useSyncExternalStore(t.subscribe,n,n)}function pN(e,t,n,r=[]){let o=M.useRef(),i=Bv();return Qf((()=>{var a;let s=(()=>{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}})(),u=r.map((e=>e.trim()));i.value(e,s,u),null==(a=t.current)||a.setAttribute(jf,s),o.current=s})),o}var U9=()=>{let[e,t]=M.useState(),n=Mh((()=>new Map));return Qf((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}};function V9(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}function A0({asChild:e,children:t},n){return e&&M.isValidElement(t)?M.cloneElement(V9(t),{ref:t.ref},n(t.props.children)):n(t)}var W9={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const q9=y0,hN=M.forwardRef((({className:e,...t},n)=>(M.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")))}}),[]),G.jsx(Gh,{ref:n,"data-testid":"dialog_overlay",className:xe("fixed inset-0 z-dialog bg-black opacity-[0.8] data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}))));hN.displayName=Gh.displayName;const G9=xu("",{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"}}),H9=xu("",{variants:{closeSize:{small:"size-6",big:"size-[42px]","18x18":"size-[18px]"}},defaultVariants:{closeSize:"small"}}),K9=M.forwardRef((({title:e,titleIcon:t,className:n,dialogName:r,showClose:o=!0,closeVariant:i="outsideCard",closeSize:a="big",children:s,titleClassName:u,overlayClassName:l,childrenClassName:c,footerClassName:d,onBack:f,onCloseModal:p,renderFooter:m,onScroll:h,...g},v)=>{const y=G.jsxs(w0,{className:xe(G9({closeVariant:i})),children:[G.jsx(d0,{onClick:p,fill:"currentColor",className:xe(H9({closeSize:a}))}),G.jsx("span",{className:"sr-only",children:"Close"})]});return G.jsxs(q9,{children:[G.jsx(hN,{className:l,onClick:p}),o&&"insideCard"!==i&&y,G.jsxs(Hh,{ref:v,className:xe("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),...g,children:[e&&G.jsxs("h3",{className:xe("flex items-center justify-center gap-xxs border-b border-gray-200 p-m text-center text-lg font-semibold text-gray-700",u),children:[t,e]}),G.jsx("div",{id:r||"dialog-content",className:xe("p-m",c),onScroll:h,children:s}),o&&"insideCard"===i&&y,f&&G.jsx("button",{"data-testid":"dialog-back-button","aria-label":"Back",onClick:f,className:"absolute left-m top-m",children:G.jsx(wO,{color:"var(--gray-400)",size:24})}),G.jsx(mN,{className:xe("empty:hidden",d),children:null==m?void 0:m()})]})]})}));K9.displayName=Hh.displayName;const mN=({className:e,...t})=>G.jsx("div",{className:xe("flex border-t border-gray-200 p-m",e),...t});mN.displayName="DialogFooter";const Y9=M.forwardRef((({className:e,...t},n)=>G.jsx(Av,{ref:n,className:xe("text-lg font-semibold leading-none tracking-tight",e),...t})));Y9.displayName=Av.displayName;const Q9=M.forwardRef((({className:e,...t},n)=>G.jsx(Nv,{ref:n,className:xe("text-sm text-muted-foreground",e),...t})));Q9.displayName=Nv.displayName;const X9=M.forwardRef((({className:e,...t},n)=>G.jsx(Mi,{ref:n,className:xe("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t})));X9.displayName=Mi.displayName;const J9=M.forwardRef((({className:e,...t},n)=>G.jsx("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:G.jsx(Mi.Input,{ref:n,className:xe("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})})));J9.displayName=Mi.Input.displayName;const Z9=M.forwardRef((({className:e,...t},n)=>G.jsx(Mi.List,{ref:n,className:xe("mt-2 max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t})));Z9.displayName=Mi.List.displayName;const eB=M.forwardRef(((e,t)=>G.jsx(Mi.Empty,{ref:t,className:"py-6 text-center text-sm",...e})));eB.displayName=Mi.Empty.displayName;const tB=M.forwardRef((({className:e,...t},n)=>G.jsx(Mi.Group,{ref:n,className:xe("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})));tB.displayName=Mi.Group.displayName;const nB=M.forwardRef((({className:e,...t},n)=>G.jsx(Mi.Separator,{ref:n,className:xe("-mx-1 h-px bg-border",e),...t})));nB.displayName=Mi.Separator.displayName;const rB=M.forwardRef((({className:e,...t},n)=>G.jsx(Mi.Item,{ref:n,className:xe("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 HR(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function vN(...e){return t=>{let n=!1;const r=e.map((e=>{const r=HR(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():HR(e[t],null)}}}}function cp(...e){return M.useCallback(vN(...e),e)}function oB(e,t){const n=M.createContext(t),r=e=>{const{children:t,...r}=e,o=M.useMemo((()=>r),Object.values(r));return G.jsx(n.Provider,{value:o,children:t})};return r.displayName=e+"Provider",[r,function(r){const o=M.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}function iB(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>M.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return M.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=M.createContext(r),i=n.length;n=[...n,r];const a=t=>{var n;const{scope:r,children:a,...s}=t,u=(null==(n=null==r?void 0:r[e])?void 0:n[i])||o,l=M.useMemo((()=>s),Object.values(s));return G.jsx(u.Provider,{value:l,children:a})};return a.displayName=t+"Provider",[a,function(n,a){var s;const u=(null==(s=null==a?void 0:a[e])?void 0:s[i])||o,l=M.useContext(u);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},aB(r,...t)]}function aB(...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 M.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}rB.displayName=Mi.Item.displayName;var Yg=null!=globalThis&&globalThis.document?M.useLayoutEffect:()=>{},sB=M[" useId ".trim().toString()]||(()=>{}),uB=0;function Z_(e){const[t,n]=M.useState(sB());return Yg((()=>{e||n((e=>e??String(uB++)))}),[e]),e||(t?`radix-${t}`:"")}function Jf(e){const t=M.useRef(e);return M.useEffect((()=>{t.current=e})),M.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function lB({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=cB({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=Jf(n);return[a,M.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}function cB({defaultProp:e,onChange:t}){const n=M.useState(e),[r]=n,o=M.useRef(r),i=Jf(t);return M.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}function gN(e){const t=dB(e),n=M.forwardRef(((e,n)=>{const{children:r,...o}=e,i=M.Children.toArray(r),a=i.find(pB);if(a){const e=a.props.children,r=i.map((t=>t===a?M.Children.count(e)>1?M.Children.only(null):M.isValidElement(e)?e.props.children:null:t));return G.jsx(t,{...o,ref:n,children:M.isValidElement(e)?M.cloneElement(e,void 0,r):null})}return G.jsx(t,{...o,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function dB(e){const t=M.forwardRef(((e,t)=>{const{children:n,...r}=e;if(M.isValidElement(n)){const e=mB(n),o=hB(r,n.props);return n.type!==M.Fragment&&(o.ref=t?vN(t,e):e),M.cloneElement(n,o)}return M.Children.count(n)>1?M.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var fB=Symbol("radix.slottable");function pB(e){return M.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===fB}function hB(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 mB(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 vB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],kl=vB.reduce(((e,t)=>{const n=gN(`Primitive.${t}`),r=M.forwardRef(((e,r)=>{const{asChild:o,...i}=e,a=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),G.jsx(a,{...i,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{});function gB(e,t){e&&Cs.flushSync((()=>e.dispatchEvent(t)))}function yB(e,t=(null==globalThis?void 0:globalThis.document)){const n=Jf(e);M.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 KR,wB="DismissableLayer",_S="dismissableLayer.update",bB="dismissableLayer.pointerDownOutside",_B="dismissableLayer.focusOutside",yN=M.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wN=M.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...u}=e,l=M.useContext(yN),[c,d]=M.useState(null),f=(null==c?void 0:c.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,p]=M.useState({}),m=cp(t,(e=>d(e))),h=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=h.indexOf(g),y=c?h.indexOf(c):-1,b=l.layersWithOutsidePointerEventsDisabled.size>0,w=y>=v,x=$B((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==s||s())}),f),_=IB((e=>{const t=e.target;[...l.branches].some((e=>e.contains(t)))||(null==i||i(e),null==a||a(e),e.defaultPrevented||null==s||s())}),f);return yB((e=>{y===l.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),f),M.useEffect((()=>{if(c)return n&&(0===l.layersWithOutsidePointerEventsDisabled.size&&(KR=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),YR(),()=>{n&&1===l.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=KR)}}),[c,f,n,l]),M.useEffect((()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),YR())}),[c,l]),M.useEffect((()=>{const e=()=>p({});return document.addEventListener(_S,e),()=>document.removeEventListener(_S,e)}),[]),G.jsx(kl.div,{...u,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)})}));wN.displayName=wB;var xB="DismissableLayerBranch",SB=M.forwardRef(((e,t)=>{const n=M.useContext(yN),r=M.useRef(null),o=cp(t,r);return M.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),G.jsx(kl.div,{...e,ref:o})}));function $B(e,t=(null==globalThis?void 0:globalThis.document)){const n=Jf(e),r=M.useRef(!1),o=M.useRef((()=>{}));return M.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){bN(bB,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 IB(e,t=(null==globalThis?void 0:globalThis.document)){const n=Jf(e),r=M.useRef(!1);return M.useEffect((()=>{const e=e=>{e.target&&!r.current&&bN(_B,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 YR(){const e=new CustomEvent(_S);document.dispatchEvent(e)}function bN(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?gB(o,i):o.dispatchEvent(i)}SB.displayName=xB;var ex="focusScope.autoFocusOnMount",tx="focusScope.autoFocusOnUnmount",QR={bubbles:!1,cancelable:!0},CB="FocusScope",_N=M.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,u]=M.useState(null),l=Jf(o),c=Jf(i),d=M.useRef(null),f=cp(t,(e=>u(e))),p=M.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;M.useEffect((()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:fd(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.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(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,p.paused]),M.useEffect((()=>{if(s){JR.add(p);const e=document.activeElement;if(!s.contains(e)){const t=new CustomEvent(ex,QR);s.addEventListener(ex,l),s.dispatchEvent(t),t.defaultPrevented||(EB(AB(xN(s)),{select:!0}),document.activeElement===e&&fd(s))}return()=>{s.removeEventListener(ex,l),setTimeout((()=>{const t=new CustomEvent(tx,QR);s.addEventListener(tx,c),s.dispatchEvent(t),t.defaultPrevented||fd(e??document.body,{select:!0}),s.removeEventListener(tx,c),JR.remove(p)}),0)}}}),[s,l,c,p]);const m=M.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]=TB(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 G.jsx(kl.div,{tabIndex:-1,...a,ref:f,onKeyDown:m})}));function EB(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(fd(r,{select:t}),document.activeElement!==n)return}function TB(e){const t=xN(e);return[XR(t,e),XR(t.reverse(),e)]}function xN(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 XR(e,t){for(const n of e)if(!RB(n,{upTo:t}))return n}function RB(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 PB(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&&PB(e)&&t&&e.select()}}_N.displayName=CB;var JR=OB();function OB(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=ZR(e,t),e.unshift(t)},remove(t){var n;e=ZR(e,t),null==(n=e[0])||n.resume()}}}function ZR(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function AB(e){return e.filter((e=>"A"!==e.tagName))}var NB="Portal",SN=M.forwardRef(((e,t)=>{var n;const{container:r,...o}=e,[i,a]=M.useState(!1);Yg((()=>a(!0)),[]);const s=r||i&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return s?n$.createPortal(G.jsx(kl.div,{...o,ref:t}),s):null}));function DB(e,t){return M.useReducer(((e,n)=>t[e][n]??e),e)}SN.displayName=NB;var N0=e=>{const{present:t,children:n}=e,r=MB(t),o="function"==typeof n?n({present:r.isPresent}):M.Children.only(n),i=cp(r.ref,kB(o));return"function"==typeof n||r.isPresent?M.cloneElement(o,{ref:i}):null};function MB(e){const[t,n]=M.useState(),r=M.useRef({}),o=M.useRef(e),i=M.useRef("none"),a=e?"mounted":"unmounted",[s,u]=DB(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return M.useEffect((()=>{const e=Rg(r.current);i.current="mounted"===s?e:"none"}),[s]),Yg((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Rg(t);e?u("MOUNT"):"none"===a||"none"===(null==t?void 0:t.display)?u("UNMOUNT"):u(n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,u]),Yg((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,a=i=>{const a=Rg(r.current).includes(i.animationName);if(i.target===t&&a&&(u("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(i.current=Rg(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:M.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Rg(e){return(null==e?void 0:e.animationName)||"none"}function kB(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)}N0.displayName="Presence";var nx=0;function LB(){M.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??eP()),document.body.insertAdjacentElement("beforeend",e[1]??eP()),nx++,()=>{1===nx&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),nx--}}),[])}function eP(){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 $N=MO(),rx=function(){},D0=M.forwardRef((function(e,t){var n=M.useRef(null),r=M.useState({onScrollCapture:rx,onWheelCapture:rx,onTouchMoveCapture:rx}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,u=e.className,l=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,h=e.allowPinchZoom,g=e.as,v=void 0===g?"div":g,y=e.gapMode,b=d$(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,x=DO([n,t]),_=Yo(Yo({},b),o);return M.createElement(M.Fragment,null,c&&M.createElement(w,{sideCar:$N,removeScrollBar:l,shards:d,noIsolation:p,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:n,gapMode:y}),a?M.cloneElement(M.Children.only(s),Yo(Yo({},_),{ref:x})):M.createElement(v,Yo({},_,{className:u,ref:x}),s))}));D0.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},D0.classNames={fullWidth:cv,zeroRight:lv};var xS=!1;if(typeof window<"u")try{var Pg=Object.defineProperty({},"passive",{get:function(){return xS=!0,!0}});window.addEventListener("test",Pg,Pg),window.removeEventListener("test",Pg,Pg)}catch{xS=!1}var Oh=!!xS&&{passive:!1},BB=function(e){return"TEXTAREA"===e.tagName},IN=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!BB(e)&&"visible"===n[t])},FB=function(e){return IN(e,"overflowY")},jB=function(e){return IN(e,"overflowX")},tP=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host),CN(e,r)){var o=EN(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},zB=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},UB=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},CN=function(e,t){return"v"===e?FB(t):jB(t)},EN=function(e,t){return"v"===e?zB(t):UB(t)},VB=function(e,t){return"h"===e&&"rtl"===t?-1:1},WB=function(e,t,n,r,o){var i=VB(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,u=t.contains(s),l=!1,c=a>0,d=0,f=0;do{var p=EN(e,s),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&CN(e,s)&&(d+=h,f+=m),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return(c&&(Math.abs(d)<1||!o)||!c&&(Math.abs(f)<1||!o))&&(l=!0),l},Og=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nP=function(e){return[e.deltaX,e.deltaY]},rP=function(e){return e&&"current"in e?e.current:e},qB=function(e,t){return e[0]===t[0]&&e[1]===t[1]},GB=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},HB=0,Ah=[];function KB(e){var t=M.useRef([]),n=M.useRef([0,0]),r=M.useRef(),o=M.useState(HB++)[0],i=M.useState(f$)[0],a=M.useRef(e);M.useEffect((function(){a.current=e}),[e]),M.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=NO([e.lockRef.current],(e.shards||[]).map(rP),!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 s=M.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=Og(e),s=n.current,u="deltaX"in e?e.deltaX:s[0]-i[0],l="deltaY"in e?e.deltaY:s[1]-i[1],c=e.target,d=Math.abs(u)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=tP(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=tP(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||l)&&(r.current=o),!o)return!0;var p=r.current||o;return WB(p,t,e,"h"===p?u:l,!0)}),[]),u=M.useCallback((function(e){var n=e;if(Ah.length&&Ah[Ah.length-1]===i){var r="deltaY"in n?nP(n):Og(n),o=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&qB(e.delta,r)}))[0];if(o&&o.should)return void(n.cancelable&&n.preventDefault());if(!o){var u=(a.current.shards||[]).map(rP).filter(Boolean).filter((function(e){return e.contains(n.target)}));(u.length>0?s(n,u[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),l=M.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:YB(r)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),c=M.useCallback((function(e){n.current=Og(e),r.current=void 0}),[]),d=M.useCallback((function(t){l(t.type,nP(t),t.target,s(t,e.lockRef.current))}),[]),f=M.useCallback((function(t){l(t.type,Og(t),t.target,s(t,e.lockRef.current))}),[]);M.useEffect((function(){return Ah.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",u,Oh),document.addEventListener("touchmove",u,Oh),document.addEventListener("touchstart",c,Oh),function(){Ah=Ah.filter((function(e){return e!==i})),document.removeEventListener("wheel",u,Oh),document.removeEventListener("touchmove",u,Oh),document.removeEventListener("touchstart",c,Oh)}}),[]);var p=e.removeScrollBar,m=e.inert;return M.createElement(M.Fragment,null,m?M.createElement(i,{styles:GB(o)}):null,p?M.createElement(FO,{gapMode:e.gapMode}):null)}function YB(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const QB=LO($N,KB);var TN=M.forwardRef((function(e,t){return M.createElement(D0,Yo({},e,{ref:t,sideCar:QB}))}));TN.classNames=D0.classNames;var U$="Dialog",[RN,nJ]=iB(U$),[XB,Ts]=RN(U$),PN=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=M.useRef(null),u=M.useRef(null),[l=!1,c]=lB({prop:r,defaultProp:o,onChange:i});return G.jsx(XB,{scope:t,triggerRef:s,contentRef:u,contentId:Z_(),titleId:Z_(),descriptionId:Z_(),open:l,onOpenChange:c,onOpenToggle:M.useCallback((()=>c((e=>!e))),[c]),modal:a,children:n})};PN.displayName=U$;var ON="DialogTrigger",AN=M.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ts(ON,n),i=cp(t,o.triggerRef);return G.jsx(kl.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":q$(o.open),...r,ref:i,onClick:hd(e.onClick,o.onOpenToggle)})}));AN.displayName=ON;var V$="DialogPortal",[JB,NN]=RN(V$,{forceMount:void 0}),DN=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Ts(V$,t);return G.jsx(JB,{scope:t,forceMount:n,children:M.Children.map(r,(e=>G.jsx(N0,{present:n||i.open,children:G.jsx(SN,{asChild:!0,container:o,children:e})})))})};DN.displayName=V$;var Qg="DialogOverlay",MN=M.forwardRef(((e,t)=>{const n=NN(Qg,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Ts(Qg,e.__scopeDialog);return i.modal?G.jsx(N0,{present:r||i.open,children:G.jsx(eF,{...o,ref:t})}):null}));MN.displayName=Qg;var ZB=gN("DialogOverlay.RemoveScroll"),eF=M.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ts(Qg,n);return G.jsx(TN,{as:ZB,allowPinchZoom:!0,shards:[o.contentRef],children:G.jsx(kl.div,{"data-state":q$(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),Zf="DialogContent",kN=M.forwardRef(((e,t)=>{const n=NN(Zf,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Ts(Zf,e.__scopeDialog);return G.jsx(N0,{present:r||i.open,children:i.modal?G.jsx(tF,{...o,ref:t}):G.jsx(nF,{...o,ref:t})})}));kN.displayName=Zf;var tF=M.forwardRef(((e,t)=>{const n=Ts(Zf,e.__scopeDialog),r=M.useRef(null),o=cp(t,n.contentRef,r);return M.useEffect((()=>{const e=r.current;if(e)return g0(e)}),[]),G.jsx(LN,{...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()))})})),nF=M.forwardRef(((e,t)=>{const n=Ts(Zf,e.__scopeDialog),r=M.useRef(!1),o=M.useRef(!1);return G.jsx(LN,{...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 s=t.target;(null==(a=n.triggerRef.current)?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})})),LN=M.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=Ts(Zf,n),u=M.useRef(null),l=cp(t,u);return LB(),G.jsxs(G.Fragment,{children:[G.jsx(_N,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:G.jsx(wN,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":q$(s.open),...a,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),G.jsxs(G.Fragment,{children:[G.jsx(rF,{titleId:s.titleId}),G.jsx(iF,{contentRef:u,descriptionId:s.descriptionId})]})]})})),W$="DialogTitle",BN=M.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ts(W$,n);return G.jsx(kl.h2,{id:o.titleId,...r,ref:t})}));BN.displayName=W$;var FN="DialogDescription",jN=M.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ts(FN,n);return G.jsx(kl.p,{id:o.descriptionId,...r,ref:t})}));jN.displayName=FN;var zN="DialogClose",UN=M.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ts(zN,n);return G.jsx(kl.button,{type:"button",...r,ref:t,onClick:hd(e.onClick,(()=>o.onOpenChange(!1)))})}));function q$(e){return e?"open":"closed"}UN.displayName=zN;var VN="DialogTitleWarning",[rJ,WN]=oB(VN,{contentName:Zf,titleName:W$,docsSlug:"dialog"}),rF=({titleId:e})=>{const t=WN(VN),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 M.useEffect((()=>{e&&(document.getElementById(e)||console.error(n))}),[n,e]),null},oF="DialogDescriptionWarning",iF=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${WN(oF).contentName}}.`;return M.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},aF=PN,sF=AN,uF=DN,lF=MN,cF=kN,dF=BN,fF=jN,pF=UN;function hF(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 qN=ge.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}),Yh=()=>{const e=ge.useContext(qN);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};hF("[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 mF=24,vF=typeof window<"u"?ip:Qe;function oP(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function gF(){return G$(/^Mac/)}function yF(){return G$(/^iPhone/)}function iP(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function wF(){return G$(/^iPad/)||gF()&&navigator.maxTouchPoints>1}function GN(){return yF()||wF()}function G$(e){return typeof window<"u"&&null!=window.navigator?e.test(window.navigator.platform):void 0}const ox=typeof document<"u"&&window.visualViewport;function aP(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function HN(e){for(aP(e)&&(e=e.parentElement);e&&!aP(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const bF=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ix,Ag=0;function _F(e={}){let{isDisabled:t}=e;vF((()=>{if(!t)return Ag++,1===Ag&&GN()&&(ix=xF()),()=>{Ag--,0===Ag&&(null==ix||ix())}}),[t])}function xF(){let e,t=0,n=window.pageXOffset,r=window.pageYOffset,o=oP(SF(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"));window.scrollTo(0,0);let i=oP(Jm(document,"touchstart",(n=>{e=HN(n.target),(e!==document.documentElement||e!==document.body)&&(t=n.changedTouches[0].pageY)}),{passive:!1,capture:!0}),Jm(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}),Jm(document,"touchend",(e=>{let t=e.target;SS(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame((()=>{t.style.transform=""})))}),{passive:!1,capture:!0}),Jm(document,"focus",(e=>{let t=e.target;SS(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",ox&&(ox.height<window.innerHeight?requestAnimationFrame((()=>{sP(t)})):ox.addEventListener("resize",(()=>sP(t)),{once:!0}))})))}),!0),Jm(window,"scroll",(()=>{window.scrollTo(0,0)})));return()=>{o(),i(),window.scrollTo(n,r)}}function SF(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Jm(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function sP(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=HN(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 SS(e){return e instanceof HTMLInputElement&&!bF.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function $F(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function IF(...e){return t=>e.forEach((e=>$F(e,t)))}function KN(...e){return M.useCallback(IF(...e),e)}const YN=new WeakMap;function eo(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&&YN.set(e,r)}function CF(e,t){if(!(e&&e instanceof HTMLElement))return;let n=YN.get(e);n&&(e.style[t]=n[t])}const to=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(", ")[to(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[to(t)?5:4]):null)}function EF(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 TF(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}const rr={DURATION:.5,EASE:[.32,.72,0,1]},QN=.4,RF=.25,PF=100,XN=8,Lf=16,$S=26,sx="vaul-dragging";function JN(e){const t=ge.useRef(e);return ge.useEffect((()=>{t.current=e})),ge.useMemo((()=>(...e)=>null==t.current?void 0:t.current.call(t,...e)),[])}function OF({defaultProp:e,onChange:t}){const n=ge.useState(e),[r]=n,o=ge.useRef(r),i=JN(t);return ge.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}function ZN({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=OF({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=JN(n);return[a,ge.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}function AF({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:i,onSnapPointChange:a,direction:s="bottom",container:u,snapToSequentialPoint:l}){const[c,d]=ZN({prop:e,defaultProp:null==n?void 0:n[0],onChange:t}),[f,p]=ge.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);ge.useEffect((()=>{function e(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]);const m=ge.useMemo((()=>c===(null==n?void 0:n[n.length-1])||null),[n,c]),h=ge.useMemo((()=>null==n?void 0:n.findIndex((e=>e===c))),[n,c]),g=n&&n.length>0&&(i||0===i)&&!Number.isNaN(i)&&n[i]===c||!n,v=ge.useMemo((()=>{const e=u?{width:u.getBoundingClientRect().width,height:u.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)),to(s)){const o=n?r:f?t*e.height:0;return f?"bottom"===s?e.height-o:-e.height+o:o}const o=n?r:f?t*e.width:0;return f?"right"===s?e.width-o:-e.width+o:o})))?t:[]}),[n,f,u]),y=ge.useMemo((()=>null!==h?null==v?void 0:v[h]:null),[v,h]),b=ge.useCallback((e=>{var t;const u=null!=(t=null==v?void 0:v.findIndex((t=>t===e)))?t:null;a(u),eo(r.current,{transition:`transform ${rr.DURATION}s cubic-bezier(${rr.EASE.join(",")})`,transform:to(s)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),v&&u!==v.length-1&&u!==i&&u<i?eo(o.current,{transition:`opacity ${rr.DURATION}s cubic-bezier(${rr.EASE.join(",")})`,opacity:"0"}):eo(o.current,{transition:`opacity ${rr.DURATION}s cubic-bezier(${rr.EASE.join(",")})`,opacity:"1"}),d(null==n?void 0:n[Math.max(u,0)])}),[r.current,n,v,i,o,d]);return ge.useEffect((()=>{if(c||e){var t;const r=null!=(t=null==n?void 0:n.findIndex((t=>t===e||t===c)))?t:-1;v&&-1!==r&&"number"==typeof v[r]&&b(v[r])}}),[c,e,n,v,b]),{isLastSnapPoint:m,activeSnapPoint:c,shouldFade:g,getPercentageDragged:function(e,t){if(!n||"number"!=typeof h||!v||void 0===i)return null;const r=h===i-1;if(h>=i&&t)return 0;if(r&&!t)return 1;if(!g&&!r)return null;const o=r?h+1:h-1,a=r?v[o]-v[o-1]:v[o+1]-v[o],s=e/Math.abs(a);return r?1-s:s},setActiveSnapPoint:d,activeSnapPointIndex:h,onRelease:function({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:a}){if(void 0===i)return;const u="bottom"===s||"right"===s?(y??0)-e:(y??0)+e,c=0===h,d=e>0;if(h===i-1&&eo(o.current,{transition:`opacity ${rr.DURATION}s cubic-bezier(${rr.EASE.join(",")})`}),!l&&r>2&&!d)return void(a?t():b(v[0]));if(!l&&r>2&&d&&v&&n)return void b(v[n.length-1]);const f=null==v?void 0:v.reduce(((e,t)=>"number"!=typeof e||"number"!=typeof t?e:Math.abs(t-u)<Math.abs(e-u)?t:e)),p=to(s)?window.innerHeight:window.innerWidth;if(r>QN&&Math.abs(e)<.4*p){const e=d?1:-1;if(e>0&&m)return void b(v[n.length-1]);if(c&&e<0&&a&&t(),null===h)return;b(v[h+e])}else b(f)},onDrag:function({draggedDistance:e}){if(null===y)return;const t="bottom"===s||"right"===s?y-e:y+e;("bottom"===s||"right"===s)&&t<v[v.length-1]||("top"===s||"left"===s)&&t>v[v.length-1]||eo(r.current,{transform:to(s)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})},snapPointsOffset:v}}const NF=()=>()=>{};function DF(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=Yh(),i=ge.useRef(null),a=An((()=>document.body.style.backgroundColor),[]);function s(){return(window.innerWidth-26)/window.innerWidth}ge.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;TF(r&&!o?ax(document.body,{background:"black"}):NF,ax(t,{transformOrigin:to(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${rr.DURATION}s`,transitionTimingFunction:`cubic-bezier(${rr.EASE.join(",")})`}));const n=ax(t,{borderRadius:"8px",overflow:"hidden",...to(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) 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*rr.DURATION)}}}),[t,n,a])}let Zm=null;function MF({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:i}){const[a,s]=ge.useState((()=>typeof window<"u"?window.location.href:"")),u=ge.useRef(0),l=ge.useCallback((()=>{if(iP()&&null===Zm&&e&&!i){Zm={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:-u.current+"px",left:-e+"px",right:"0px",height:"auto"}),window.setTimeout((()=>window.requestAnimationFrame((()=>{const e=t-window.innerHeight;e&&u.current>=t&&(document.body.style.top=-(u.current+e)+"px")}))),300)}}),[e]),c=ge.useCallback((()=>{if(iP()&&null!==Zm&&!i){const e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Zm),window.requestAnimationFrame((()=>{o&&a!==window.location.href?s(window.location.href):window.scrollTo(t,e)})),Zm=null}}),[a]);return ge.useEffect((()=>{function e(){u.current=window.scrollY}return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[]),ge.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 eD({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:o,snapPoints:i,shouldScaleBackground:a=!1,setBackgroundColorOnScale:s=!0,closeThreshold:u=RF,scrollLockTimeout:l=PF,dismissible:c=!0,handleOnly:d=!1,fadeFromIndex:f=i&&i.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:h,modal:g=!0,onClose:v,nested:y,noBodyStyles:b,direction:w="bottom",defaultOpen:x=!1,disablePreventScroll:_=!0,snapToSequentialPoint:S=!1,preventScrollRestoration:A=!1,repositionInputs:I=!0,onAnimationEnd:E,container:k,autoFocus:M=!1}){var C,N;const[P=!1,O]=ZN({defaultProp:x,prop:e,onChange:e=>{null==t||t(e),!e&&!y&&ue(),setTimeout((()=>{null==E||E(e)}),1e3*rr.DURATION),e&&!g&&typeof window<"u"&&window.requestAnimationFrame((()=>{document.body.style.pointerEvents="auto"})),e||(document.body.style.pointerEvents="auto")}}),[T,R]=ge.useState(!1),[D,j]=ge.useState(!1),[q,L]=ge.useState(!1),z=ge.useRef(null),$=ge.useRef(null),B=ge.useRef(null),F=ge.useRef(null),V=ge.useRef(null),G=ge.useRef(!1),U=ge.useRef(null),W=ge.useRef(0),Q=ge.useRef(!1),H=ge.useRef(0),K=ge.useRef(null),Y=ge.useRef((null==(C=K.current)?void 0:C.getBoundingClientRect().height)||0),X=ge.useRef((null==(N=K.current)?void 0:N.getBoundingClientRect().width)||0),J=ge.useRef(0),Z=ge.useCallback((e=>{i&&e===oe.length-1&&($.current=new Date)}),[]),{activeSnapPoint:ee,activeSnapPointIndex:te,setActiveSnapPoint:ne,onRelease:re,snapPointsOffset:oe,onDrag:ie,shouldFade:ae,getPercentageDragged:se}=AF({snapPoints:i,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:K,fadeFromIndex:f,overlayRef:z,onSnapPointChange:Z,direction:w,container:k,snapToSequentialPoint:S});_F({isDisabled:!P||D||!g||q||!T||!I||!_});const{restorePositionSetting:ue}=MF({isOpen:P,modal:g,nested:y,hasBeenOpened:T,preventScrollRestoration:A,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=K.current?Ng(K.current,w):null,s=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($.current&&s.getTime()-$.current.getTime()<500)return!1;if(null!==a&&("bottom"===w?a>0:a<0))return!0;if(i&&i.length>0)return!1;if(s.getTime()-(null==(r=V.current)?void 0:r.getTime())<l&&0===a||t)return V.current=s,!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||!K.current||(K.current.classList.remove(sx),G.current=!1,j(!1),F.current=new Date),null==v||v(),e||O(!1),setTimeout((()=>{i&&ne(i[0])}),1e3*rr.DURATION)}function fe(){if(!K.current)return;const e=document.querySelector("[data-vaul-drawer-wrapper]"),t=Ng(K.current,w);eo(K.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${rr.DURATION}s cubic-bezier(${rr.EASE.join(",")})`}),eo(z.current,{transition:`opacity ${rr.DURATION}s cubic-bezier(${rr.EASE.join(",")})`,opacity:"1"}),a&&t&&t>0&&P&&eo(e,{borderRadius:"8px",overflow:"hidden",...to(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:`${rr.DURATION}s`,transitionTimingFunction:`cubic-bezier(${rr.EASE.join(",")})`},!0)}return ge.useEffect((()=>{var e;function t(){if(!K.current||!I)return;if(SS(document.activeElement)||Q.current){var e;const t=(null==(e=window.visualViewport)?void 0:e.height)||0,n=window.innerHeight;let r=n-t;const o=K.current.getBoundingClientRect().height||0,a=o>.8*n;J.current||(J.current=o);const s=K.current.getBoundingClientRect().top;if(Math.abs(H.current-r)>60&&(Q.current=!Q.current),i&&i.length>0&&oe&&te){r+=oe[te]||0}if(H.current=r,o>t||Q.current){const e=K.current.getBoundingClientRect().height;let n=e;e>t&&(n=t-(a?s:26)),K.current.style.height=h?e-Math.max(r,0)+"px":`${Math.max(n,t-s)}px`}else K.current.style.height=`${J.current}px`;i&&i.length>0&&!Q.current?K.current.style.bottom="0px":K.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]),ge.useEffect((()=>(P&&(eo(document.documentElement,{scrollBehavior:"auto"}),$.current=new Date),()=>{CF(document.documentElement,"scrollBehavior")})),[P]),ge.createElement(aF,{defaultOpen:x,onOpenChange:e=>{!c&&!e||(e?R(!0):de(!0),O(e))},open:P},ge.createElement(qN.Provider,{value:{activeSnapPoint:ee,snapPoints:i,setActiveSnapPoint:ne,drawerRef:K,overlayRef:z,onOpenChange:t,onPress:function(e){var t,n;!c&&!i||K.current&&!K.current.contains(e.target)||(Y.current=(null==(t=K.current)?void 0:t.getBoundingClientRect().height)||0,X.current=(null==(n=K.current)?void 0:n.getBoundingClientRect().width)||0,j(!0),B.current=new Date,GN()&&window.addEventListener("touchend",(()=>G.current=!1),{once:!0}),e.target.setPointerCapture(e.pointerId),W.current=to(w)?e.pageY:e.pageX)},onRelease:function(e){if(!D||!K.current)return;K.current.classList.remove(sx),G.current=!1,j(!1),F.current=new Date;const t=Ng(K.current,w);if(!ce(e.target,!1)||!t||Number.isNaN(t)||null===B.current)return;const n=F.current.getTime()-B.current.getTime(),r=W.current-(to(w)?e.pageY:e.pageX),a=Math.abs(r)/n;if(a>.05&&(L(!0),setTimeout((()=>{L(!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>QN)return de(),void(null==o||o(e,!1));var s;const l=Math.min(null!=(s=K.current.getBoundingClientRect().height)?s:0,window.innerHeight);var d;const f=Math.min(null!=(d=K.current.getBoundingClientRect().width)?d:0,window.innerWidth),p="left"===w||"right"===w;if(Math.abs(t)>=(p?f:l)*u)return de(),void(null==o||o(e,!1));null==o||o(e,!0),fe()},onDrag:function(e){if(K.current&&D){const t="bottom"===w||"right"===w?1:-1,n=(W.current-(to(w)?e.pageY:e.pageX))*t,o=n>0,s=i&&!c&&!o;if(s&&0===te)return;const u=Math.abs(n),l=document.querySelector("[data-vaul-drawer-wrapper]");let d=u/("bottom"===w||"top"===w?Y.current:X.current);const p=se(u,o);if(null!==p&&(d=p),s&&d>=1||!G.current&&!ce(e.target,o))return;if(K.current.classList.add(sx),G.current=!0,eo(K.current,{transition:"none"}),eo(z.current,{transition:"none"}),i&&ie({draggedDistance:n}),o&&!i){const e=EF(n),r=Math.min(-1*e,0)*t;return void eo(K.current,{transform:to(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),eo(z.current,{opacity:`${m}`,transition:"none"},!0)),l&&z.current&&a){const e=Math.min(le()+d*(1-le()),1),t=8-8*d,n=Math.max(0,14-14*d);eo(l,{borderRadius:`${t}px`,transform:to(w)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:"none"},!0)}if(!i){const e=u*t;eo(K.current,{transform:to(w)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}},dismissible:c,handleOnly:d,isOpen:P,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;eo(K.current,{transform:to(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;U.current&&window.clearTimeout(U.current),eo(K.current,{transition:`transform ${rr.DURATION}s cubic-bezier(${rr.EASE.join(",")})`,transform:`scale(${t}) translate3d(0, ${n}px, 0)`}),!e&&K.current&&(U.current=setTimeout((()=>{const e=Ng(K.current,w);eo(K.current,{transition:"none",transform:to(w)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}),500))},onNestedRelease:function(e,t){const n=to(w)?window.innerHeight:window.innerWidth,r=t?(n-16)/n:1,o=t?-16:0;t&&eo(K.current,{transition:`transform ${rr.DURATION}s cubic-bezier(${rr.EASE.join(",")})`,transform:to(w)?`scale(${r}) translate3d(0, ${o}px, 0)`:`scale(${r}) translate3d(${o}px, 0, 0)`})},keyboardIsOpen:Q,modal:g,snapPointsOffset:oe,direction:w,shouldScaleBackground:a,setBackgroundColorOnScale:s,noBodyStyles:b,container:k,autoFocus:M}},n))}const tD=ge.forwardRef((function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:i,isOpen:a,modal:s}=Yh(),u=KN(t,n),l=r&&r.length>0;return s?ge.createElement(lF,{onMouseUp:o,ref:u,"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)}));tD.displayName="Drawer.Overlay";const nD=ge.forwardRef((function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},o){const{drawerRef:i,onPress:a,onRelease:s,onDrag:u,keyboardIsOpen:l,snapPointsOffset:c,modal:d,isOpen:f,direction:p,snapPoints:m,container:h,handleOnly:g,autoFocus:v}=Yh(),[y,b]=ge.useState(!1),w=KN(o,i),x=ge.useRef(null),_=ge.useRef(null),S=ge.useRef(!1),A=m&&m.length>0;DF();function I(e){x.current=null,S.current=!1,s(e)}return ge.useEffect((()=>{A&&window.requestAnimationFrame((()=>{b(!0)}))}),[]),ge.createElement(cF,{"data-vaul-drawer-direction":p,"data-vaul-drawer":"","data-vaul-delayed-snap-points":y?"true":"false","data-vaul-snap-points":f&&A?"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=>{g||(null==r.onPointerDown||r.onPointerDown.call(r,e),x.current={x:e.pageX,y:e.pageY},a(e))},onOpenAutoFocus:e=>{null==n||n(e),v||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,g||(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(S.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 S.current=!0,!0})({x:n,y:t},p,o)?u(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,S.current=!1,s(e)},onPointerOut:e=>{null==r.onPointerOut||r.onPointerOut.call(r,e),I(_.current)},onContextMenu:e=>{null==r.onContextMenu||r.onContextMenu.call(r,e),I(_.current)}})}));nD.displayName="Drawer.Content";const kF=250,LF=120,rD=ge.forwardRef((function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:o,isDragging:i,snapPoints:a,activeSnapPoint:s,setActiveSnapPoint:u,dismissible:l,handleOnly:c,isOpen:d,onPress:f,onDrag:p}=Yh(),m=ge.useRef(null),h=ge.useRef(!1);function g(){window.clearTimeout(m.current),h.current=!1}return ge.createElement("div",{onClick:function(){h.current?g():window.setTimeout((()=>{!function(){if(i||e||h.current)return void g();if(g(),(!a||0===a.length)&&l)return void o();if(s===a[a.length-1]&&l)return void o();const t=a.findIndex((e=>e===s));if(-1===t)return;const n=a[t+1];u(n)}()}),LF)},onPointerCancel:g,onPointerDown:e=>{c&&f(e),m.current=window.setTimeout((()=>{h.current=!0}),kF)},onPointerMove:e=>{c&&p(e)},ref:r,"data-vaul-drawer-visible":d?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},ge.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))}));function BF({onDrag:e,onOpenChange:t,...n}){const{onNestedDrag:r,onNestedOpenChange:o,onNestedRelease:i}=Yh();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return ge.createElement(eD,{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 FF(e){const t=Yh(),{container:n=t.container,...r}=e;return ge.createElement(uF,{container:n,...r})}rD.displayName="Drawer.Handle";const $d={Root:eD,NestedRoot:BF,Content:nD,Overlay:tD,Trigger:sF,Portal:FF,Handle:rD,Close:pF,Title:dF,Description:fF},jF=$d.Portal,oD=M.forwardRef((({className:e,...t},n)=>G.jsx($d.Overlay,{ref:n,className:xe("fixed inset-0 z-50 bg-black/5",e),...t})));oD.displayName=$d.Overlay.displayName;const zF=M.forwardRef((({className:e,children:t,direction:n="bottom",...r},o)=>G.jsxs(jF,{children:[G.jsx(oD,{}),G.jsxs($d.Content,{ref:o,className:xe("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&&G.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]})));zF.displayName="DrawerContent";const UF=M.forwardRef((({className:e,...t},n)=>G.jsx($d.Title,{ref:n,className:xe("text-lg font-semibold leading-none tracking-tight",e),...t})));UF.displayName=$d.Title.displayName;const VF=M.forwardRef((({className:e,...t},n)=>G.jsx($d.Description,{ref:n,className:xe("text-sm text-muted-foreground",e),...t})));function H$(e){const t=e+"CollectionProvider",[n,r]=di(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=e+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=ge.useRef(null),i=ge.useRef(new Map).current;return ge.createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},Slot:ge.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=Zt(t,i(a,n).collectionRef);return ge.createElement(Kf,{ref:o},r)})),ItemSlot:ge.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=ge.useRef(null),l=Zt(t,a),c=i(s,n);return ge.useEffect((()=>(c.itemMap.set(a,{ref:a,...o}),()=>{c.itemMap.delete(a)}))),ge.createElement(Kf,{[u]:"",ref:l},r)}))},function(t){const n=i(e+"CollectionConsumer",t);return ge.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}VF.displayName=$d.Description.displayName;const WF=Tl(void 0);function K$(e){const t=op(WF);return e||t||"ltr"}const qF=["top","right","bottom","left"],yd=Math.min,aa=Math.max,Xg=Math.round,Dg=Math.floor,wd=e=>({x:e,y:e}),GF={left:"right",right:"left",bottom:"top",top:"bottom"},HF={start:"end",end:"start"};function IS(e,t,n){return aa(e,yd(t,n))}function Rl(e,t){return"function"==typeof e?e(t):e}function Pl(e){return e.split("-")[0]}function Qh(e){return e.split("-")[1]}function Y$(e){return"x"===e?"y":"x"}function Q$(e){return"y"===e?"height":"width"}function bd(e){return["top","bottom"].includes(Pl(e))?"y":"x"}function X$(e){return Y$(bd(e))}function KF(e,t,n){void 0===n&&(n=!1);const r=Qh(e),o=X$(e),i=Q$(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 YF(e){const t=Jg(e);return[CS(e),t,CS(t)]}function CS(e){return e.replace(/start|end/g,(e=>HF[e]))}function QF(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 XF(e,t,n,r){const o=Qh(e);let i=QF(Pl(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(CS)))),i}function Jg(e){return e.replace(/left|right|bottom|top/g,(e=>GF[e]))}function JF(e){return{top:0,right:0,bottom:0,left:0,...e}}function iD(e){return"number"!=typeof e?JF(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 uP(e,t,n){let{reference:r,floating:o}=e;const i=bd(t),a=X$(t),s=Q$(a),u=Pl(t),l="y"===i,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(u){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 ZF=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),u=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=uP(l,r,u),f=r,p={},m=0;for(let n=0;n<s.length;n++){const{name:i,fn:h}=s[n],{x:g,y:v,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=g??c,d=v??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}=uP(l,f,u))),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:s,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Rl(t,e),m=iD(p),h=s[f?"floating"===d?"reference":"floating":d],g=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(s.floating)),boundary:l,rootBoundary:c,strategy:u})),v="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(s.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:s,rect:v,offsetParent:y,strategy:u}):v);return{top:(g.top-w.top+m.top)/b.y,bottom:(w.bottom-g.bottom+m.bottom)/b.y,left:(g.left-w.left+m.left)/b.x,right:(w.right-g.right+m.right)/b.x}}const ej=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:u}=t,{element:l,padding:c=0}=Rl(e,t)||{};if(null==l)return{};const d=iD(c),f={x:n,y:r},p=X$(o),m=Q$(p),h=await a.getDimensions(l),g="y"===p,v=g?"top":"left",y=g?"bottom":"right",b=g?"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 S=_?_[b]:0;(!S||!await(null==a.isElement?void 0:a.isElement(_)))&&(S=s.floating[b]||i.floating[m]);const A=w/2-x/2,I=S/2-h[m]/2-1,E=yd(d[v],I),k=yd(d[y],I),M=E,C=S-h[m]-k,N=S/2-h[m]/2+A,P=IS(M,N,C),O=!u.arrow&&null!=Qh(o)&&N!==P&&i.reference[m]/2-(N<M?E:k)-h[m]/2<0,T=O?N<M?N-M:N-C:0;return{[p]:f[p]+T,data:{[p]:P,centerOffset:N-P-T,...O&&{alignmentOffset:T}},reset:O}}}),tj=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:s,platform:u,elements:l}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=Rl(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Pl(o),y=bd(s),b=Pl(s)===s,w=await(null==u.isRTL?void 0:u.isRTL(l.floating)),x=f||(b||!h?[Jg(s)]:YF(s)),_="none"!==m;!f&&_&&x.push(...XF(s,h,m,w));const S=[s,...x],A=await bv(t,g),I=[];let E=(null==(r=i.flip)?void 0:r.overflows)||[];if(c&&I.push(A[v]),d){const e=KF(o,a,w);I.push(A[e[0]],A[e[1]])}if(E=[...E,{placement:o,overflows:I}],!I.every((e=>e<=0))){var k,M;const e=((null==(k=i.flip)?void 0:k.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:E},reset:{placement:t}};let n=null==(M=E.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:M.placement;if(!n)switch(p){case"bestFit":{var C;const e=null==(C=E.filter((e=>{if(_){const t=bd(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:C[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}};function lP(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function cP(e){return qF.some((t=>e[t]>=0))}const nj=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Rl(e,t);switch(r){case"referenceHidden":{const e=lP(await bv(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:cP(e)}}}case"escaped":{const e=lP(await bv(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:cP(e)}}}default:return{}}}}};async function rj(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Pl(n),s=Qh(n),u="y"===bd(n),l=["left","top"].includes(a)?-1:1,c=i&&u?-1:1,d=Rl(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 s&&"number"==typeof m&&(p="end"===s?-1*m:m),u?{x:p*c,y:f*l}:{x:f*l,y:p*c}}const oj=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:s}=t,u=await rj(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:a}}}}},ij=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:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=Rl(e,t),l={x:n,y:r},c=await bv(t,u),d=bd(Pl(o)),f=Y$(d);let p=l[f],m=l[d];if(i){const e="y"===f?"bottom":"right";p=IS(p+c["y"===f?"top":"left"],p,p-c[e])}if(a){const e="y"===d?"bottom":"right";m=IS(m+c["y"===d?"top":"left"],m,m-c[e])}const h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:a}}}}}},aj=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:u=!0,crossAxis:l=!0}=Rl(e,t),c={x:n,y:r},d=bd(o),f=Y$(d);let p=c[f],m=c[d];const h=Rl(s,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var v,y;const e="y"===f?"width":"height",t=["top","left"].includes(Pl(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?g.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:s}=t,{apply:u=()=>{},...l}=Rl(e,t),c=await bv(t,l),d=Pl(o),f=Qh(o),p="y"===bd(o),{width:m,height:h}=i.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=f===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,g="end"===f?"top":"bottom");const y=h-c.top-c.bottom,b=m-c.left-c.right,w=yd(h-c[g],y),x=yd(m-c[v],b),_=!t.middlewareData.shift;let S=w,A=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(A=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=y),_&&!f){const e=aa(c.left,0),t=aa(c.right,0),n=aa(c.top,0),r=aa(c.bottom,0);p?A=m-2*(0!==e||0!==t?e+t:aa(c.left,c.right)):S=h-2*(0!==n||0!==r?n+r:aa(c.top,c.bottom))}await u({...t,availableWidth:A,availableHeight:S});const I=await a.getDimensions(s.floating);return m!==I.width||h!==I.height?{reset:{rects:!0}}:{}}}};function M0(){return typeof window<"u"}function _d(e){return aD(e)?(e.nodeName||"").toLowerCase():"#document"}function ua(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ll(e){var t;return null==(t=(aD(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function aD(e){return!!M0()&&(e instanceof Node||e instanceof ua(e).Node)}function wu(e){return!!M0()&&(e instanceof Element||e instanceof ua(e).Element)}function bu(e){return!!M0()&&(e instanceof HTMLElement||e instanceof ua(e).HTMLElement)}function dP(e){return!(!M0()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof ua(e).ShadowRoot)}function Fv(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Va(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function uj(e){return["table","td","th"].includes(_d(e))}function lj(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch{return!1}}))}function J$(e){const t=Z$(),n=wu(e)?Va(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 sD(e){let t=zh(e);for(;bu(t)&&!k0(t);){if(J$(t))return t;if(lj(t))return null;t=zh(t)}return null}function Z$(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function k0(e){return["html","body","#document"].includes(_d(e))}function Va(e){return ua(e).getComputedStyle(e)}function L0(e){return wu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zh(e){if("html"===_d(e))return e;const t=e.assignedSlot||e.parentNode||dP(e)&&e.host||Ll(e);return dP(t)?t.host:t}function uD(e){const t=zh(e);return k0(t)?e.ownerDocument?e.ownerDocument.body:e.body:bu(t)&&Fv(t)?t:uD(t)}function _v(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=uD(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=ua(o);if(i){const e=cj(a);return t.concat(a,a.visualViewport||[],Fv(o)?o:[],e&&n?_v(e):[])}return t.concat(o,_v(o,[],n))}function cj(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lD(e){const t=Va(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=bu(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Xg(n)!==i||Xg(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function eI(e){return wu(e)?e:e.contextElement}function Lh(e){const t=eI(e);if(!bu(t))return wd(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=lD(t);let a=(i?Xg(n.width):n.width)/r,s=(i?Xg(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const dj=wd(0);function cD(e){const t=ua(e);return Z$()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:dj}function fj(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ua(e))&&t}function ep(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=eI(e);let a=wd(1);t&&(r?wu(r)&&(a=Lh(r)):a=Lh(e));const s=fj(i,n,r)?cD(i):wd(0);let u=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=ua(i),t=r&&wu(r)?ua(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Lh(n),t=n.getBoundingClientRect(),r=Va(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,l*=e.y,c*=e.x,d*=e.y,u+=o,l+=i,n=ua(n).frameElement}}return Zg({width:c,height:d,x:u,y:l})}const pj=[":popover-open",":modal"];function dD(e){let t=!1,n=0,r=0;if(pj.forEach((n=>{!function(n){try{t=t||e.matches(n)}catch{}}(n)})),t){const t=sD(e);if(t){const e=t.getBoundingClientRect();n=e.x,r=e.y}}return[t,n,r]}function hj(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=Ll(r),[a]=t?dD(t.floating):[!1];if(r===i||a)return n;let s={scrollLeft:0,scrollTop:0},u=wd(1);const l=wd(0),c=bu(r);if((c||!c&&"fixed"!==o)&&(("body"!==_d(r)||Fv(i))&&(s=L0(r)),bu(r))){const e=ep(r);u=Lh(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+l.x,y:n.y*u.y-s.scrollTop*u.y+l.y}}function mj(e){return Array.from(e.getClientRects())}function fD(e){return ep(Ll(e)).left+L0(e).scrollLeft}function vj(e){const t=Ll(e),n=L0(e),r=e.ownerDocument.body,o=aa(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=aa(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+fD(e);const s=-n.scrollTop;return"rtl"===Va(r).direction&&(a+=aa(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function gj(e,t){const n=ua(e),r=Ll(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,u=0;if(o){i=o.width,a=o.height;const e=Z$();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:s,y:u}}function yj(e,t){const n=ep(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=bu(e)?Lh(e):wd(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}function fP(e,t,n){let r;if("viewport"===t)r=gj(e,n);else if("document"===t)r=vj(Ll(e));else if(wu(t))r=yj(t,n);else{const n=cD(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Zg(r)}function pD(e,t){const n=zh(e);return!(n===t||!wu(n)||k0(n))&&("fixed"===Va(n).position||pD(n,t))}function wj(e,t){const n=t.get(e);if(n)return n;let r=_v(e,[],!1).filter((e=>wu(e)&&"body"!==_d(e))),o=null;const i="fixed"===Va(e).position;let a=i?zh(e):e;for(;wu(a)&&!k0(a);){const t=Va(a),n=J$(a);!n&&"fixed"===t.position&&(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Fv(a)&&!n&&pD(e,a))?r=r.filter((e=>e!==a)):o=t,a=zh(a)}return t.set(e,r),r}function bj(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?wj(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=fP(t,n,o);return e.top=aa(r.top,e.top),e.right=yd(r.right,e.right),e.bottom=yd(r.bottom,e.bottom),e.left=aa(r.left,e.left),e}),fP(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function _j(e){const{width:t,height:n}=lD(e);return{width:t,height:n}}function xj(e,t,n,r){const o=bu(t),i=Ll(t),a="fixed"===n,s=ep(e,!0,a,t);let u={scrollLeft:0,scrollTop:0};const l=wd(0);if(o||!o&&!a)if(("body"!==_d(t)||Fv(i))&&(u=L0(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=fD(i));let c=s.left+u.scrollLeft-l.x,d=s.top+u.scrollTop-l.y;const[f,p,m]=dD(r);return f&&(c+=p,d+=m,o&&(c+=t.clientLeft,d+=t.clientTop)),{x:c,y:d,width:s.width,height:s.height}}function pP(e,t){return bu(e)&&"fixed"!==Va(e).position?t?t(e):e.offsetParent:null}function hD(e,t){const n=ua(e);if(!bu(e))return n;let r=pP(e,t);for(;r&&uj(r)&&"static"===Va(r).position;)r=pP(r,t);return r&&("html"===_d(r)||"body"===_d(r)&&"static"===Va(r).position&&!J$(r))?n:r||sD(e)||n}const Sj=async function(e){const t=this.getOffsetParent||hD,n=this.getDimensions;return{reference:xj(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}};function $j(e){return"rtl"===Va(e).direction}const Ij={convertOffsetParentRelativeRectToViewportRelativeRect:hj,getDocumentElement:Ll,getClippingRect:bj,getOffsetParent:hD,getElementRects:Sj,getClientRects:mj,getDimensions:_j,getScale:Lh,isElement:wu,isRTL:$j};function Cj(e,t){let n,r=null;const o=Ll(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),i();const{left:l,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-Dg(c)+"px "+-Dg(o.clientWidth-(l+d))+"px "+-Dg(o.clientHeight-(c+f))+"px "+-Dg(l)+"px",threshold:aa(0,yd(1,u))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==u){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 Ej(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,l=eI(e),c=o||i?[...l?_v(l):[],..._v(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=l&&s?Cj(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&&!u&&p.observe(l),p.observe(t));let m,h=u?ep(e):null;return u&&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,u&&cancelAnimationFrame(m)}}const Tj=ij,Rj=tj,Pj=sj,Oj=nj,hP=ej,Aj=aj,Nj=(e,t,n)=>{const r=new Map,o={platform:Ij,...n},i={...o.platform,_c:r};return ZF(e,t,{...o,platform:i})};var Wg=typeof document<"u"?ip:Qe;function e0(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(!e0(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||e0(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function mD(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mP(e,t){const n=mD(e);return Math.round(t*n)/n}function ux(e){const t=M.useRef(e);return Wg((()=>{t.current=e})),t}function Dj(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:u,open:l}=e,[c,d]=M.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=M.useState(r);e0(f,r)||p(r);const[m,h]=M.useState(null),[g,v]=M.useState(null),y=M.useCallback((e=>{e!==_.current&&(_.current=e,h(e))}),[]),b=M.useCallback((e=>{e!==S.current&&(S.current=e,v(e))}),[]),w=i||m,x=a||g,_=M.useRef(null),S=M.useRef(null),A=M.useRef(c),I=null!=u,E=ux(u),k=ux(o),C=ux(l),N=M.useCallback((()=>{if(!_.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};k.current&&(e.platform=k.current),Nj(_.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==C.current};P.current&&!e0(A.current,t)&&(A.current=t,Cs.flushSync((()=>{d(t)})))}))}),[f,t,n,k,C]);Wg((()=>{!1===l&&A.current.isPositioned&&(A.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[l]);const P=M.useRef(!1);Wg((()=>(P.current=!0,()=>{P.current=!1})),[]),Wg((()=>{if(w&&(_.current=w),x&&(S.current=x),w&&x){if(E.current)return E.current(w,x,N);N()}}),[w,x,N,E,I]);const O=M.useMemo((()=>({reference:_,floating:S,setReference:y,setFloating:b})),[y,b]),T=M.useMemo((()=>({reference:w,floating:x})),[w,x]),R=M.useMemo((()=>{const e={position:n,left:0,top:0};if(!T.floating)return e;const t=mP(T.floating,c.x),r=mP(T.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...mD(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,T.floating,c.x,c.y]);return M.useMemo((()=>({...c,update:N,refs:O,elements:T,floatingStyles:R})),[c,N,O,T,R])}const Mj=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?hP({element:n.current,padding:r}).fn(t):{}:n?hP({element:n,padding:r}).fn(t):{}}}),kj=(e,t)=>({...oj(e),options:[e,t]}),Lj=(e,t)=>({...Tj(e),options:[e,t]}),Bj=(e,t)=>({...Aj(e),options:[e,t]}),Fj=(e,t)=>({...Rj(e),options:[e,t]}),jj=(e,t)=>({...Pj(e),options:[e,t]}),zj=(e,t)=>({...Oj(e),options:[e,t]}),Uj=(e,t)=>({...Mj(e),options:[e,t]}),Vj=Fe(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return se(gt.svg,Ae({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:se("polygon",{points:"0,0 30,0 15,10"}))})),Wj=Vj,vD="Popper",[gD,Xh]=di(vD),[qj,yD]=gD(vD),Gj=e=>{const{__scopePopper:t,children:n}=e,[r,o]=lt(null);return se(qj,{scope:t,anchor:r,onAnchorChange:o},n)},Hj="PopperAnchor",Kj=Fe(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=yD(Hj,n),a=Ge(null),s=Zt(t,a);return Qe((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:se(gt.div,Ae({},o,{ref:s}))})),wD="PopperContent",[Yj,Qj]=gD(wD),Xj=Fe(((e,t)=>{var n,r,o,i,a,s,u,l;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:v=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:w=!1,updatePositionStrategy:x="optimized",onPlaced:_,...S}=e,A=yD(wD,c),[I,E]=lt(null),k=Zt(t,(e=>E(e))),[M,C]=lt(null),N=O0(M),P=null!==(n=null==N?void 0:N.width)&&void 0!==n?n:0,O=null!==(r=null==N?void 0:N.height)&&void 0!==r?r:0,T=d+("center"!==p?"-"+p:""),R="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},D=Array.isArray(v)?v:[v],j=D.length>0,q={padding:R,boundary:D.filter(tz),altBoundary:j},{refs:L,floatingStyles:z,placement:$,isPositioned:B,middlewareData:F}=Dj({strategy:"fixed",placement:T,whileElementsMounted:(...e)=>Ej(...e,{animationFrame:"always"===x}),elements:{reference:A.anchor},middleware:[kj({mainAxis:f+O,alignmentAxis:m}),g&&Lj({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?Bj():void 0,...q}),g&&Fj({...q}),jj({...q,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`)}}),M&&Uj({element:M,padding:h}),nz({arrowWidth:P,arrowHeight:O}),w&&zj({strategy:"referenceHidden",...q})]}),[V,G]=bD($),U=Is(_);Qo((()=>{B&&(null==U||U())}),[B,U]);const W=null===(o=F.arrow)||void 0===o?void 0:o.x,Q=null===(i=F.arrow)||void 0===i?void 0:i.y,H=0!==(null===(a=F.arrow)||void 0===a?void 0:a.centerOffset),[K,Y]=lt();return Qo((()=>{I&&Y(window.getComputedStyle(I).zIndex)}),[I]),se("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:B?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[null===(s=F.transformOrigin)||void 0===s?void 0:s.x,null===(u=F.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},se(Yj,{scope:c,placedSide:V,onArrowChange:C,arrowX:W,arrowY:Q,shouldHideArrow:H},se(gt.div,Ae({"data-side":V,"data-align":G},S,{ref:k,style:{...S.style,animation:B?void 0:"none",opacity:null!==(l=F.hide)&&void 0!==l&&l.referenceHidden?0:void 0}}))))})),Jj="PopperArrow",Zj={top:"bottom",right:"left",bottom:"top",left:"right"},ez=Fe((function(e,t){const{__scopePopper:n,...r}=e,o=Qj(Jj,n),i=Zj[o.placedSide];return se("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}},se(Wj,Ae({},r,{ref:t,style:{...r.style,display:"block"}})))}));function tz(e){return null!==e}const nz=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:u,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]=bD(s),h={start:"0%",center:"50%",end:"100%"}[m],g=(null!==(r=null===(o=l.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(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:`${g}px`,b=-f+"px"):"top"===p?(y=c?h:`${g}px`,b=`${u.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?h:`${v}px`):"left"===p&&(y=`${u.floating.width+f}px`,b=c?h:`${v}px`),{data:{x:y,y:b}}}});function bD(e){const[t,n="center"]=e.split("-");return[t,n]}const _D=Gj,tI=Kj,nI=Xj,rz=ez,lx="rovingFocusGroup.onEntryFocus",oz={bubbles:!1,cancelable:!0},rI="RovingFocusGroup",[ES,xD,iz]=H$(rI),[az,Jh]=di(rI,[iz]),[sz,uz]=az(rI),lz=Fe(((e,t)=>se(ES.Provider,{scope:e.__scopeRovingFocusGroup},se(ES.Slot,{scope:e.__scopeRovingFocusGroup},se(cz,Ae({},e,{ref:t})))))),cz=Fe(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:l,...c}=e,d=Ge(null),f=Zt(t,d),p=K$(i),[m=null,h]=gd({prop:a,defaultProp:s,onChange:u}),[g,v]=lt(!1),y=Is(l),b=xD(n),w=Ge(!1),[x,_]=lt(0);return Qe((()=>{const e=d.current;if(e)return e.addEventListener(lx,y),()=>e.removeEventListener(lx,y)}),[y]),se(sz,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:m,onItemFocus:_t((e=>h(e)),[h]),onItemShiftTab:_t((()=>v(!0)),[]),onFocusableItemAdd:_t((()=>_((e=>e+1))),[]),onFocusableItemRemove:_t((()=>_((e=>e-1))),[])},se(gt.div,Ae({tabIndex:g||0===x?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:it(e.onMouseDown,(()=>{w.current=!0})),onFocus:it(e.onFocus,(e=>{const t=!w.current;if(e.target===e.currentTarget&&t&&!g){const t=new CustomEvent(lx,oz);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=b().filter((e=>e.focusable));SD([e.find((e=>e.active)),e.find((e=>e.id===m)),...e].filter(Boolean).map((e=>e.ref.current)))}}w.current=!1})),onBlur:it(e.onBlur,(()=>v(!1)))})))})),dz="RovingFocusGroupItem",fz=Fe(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,s=pd(),u=i||s,l=uz(dz,n),c=l.currentTabStopId===u,d=xD(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=l;return Qe((()=>{if(r)return f(),()=>p()}),[r,f,p]),se(ES.ItemSlot,{scope:n,id:u,focusable:r,active:o},se(gt.span,Ae({tabIndex:c?0:-1,"data-orientation":l.orientation},a,{ref:t,onMouseDown:it(e.onMouseDown,(e=>{r?l.onItemFocus(u):e.preventDefault()})),onFocus:it(e.onFocus,(()=>l.onItemFocus(u))),onKeyDown:it(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void l.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=mz(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?vz(n,r+1):n.slice(r+1)}setTimeout((()=>SD(n)))}}))})))})),pz={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function hz(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function mz(e,t,n){const r=hz(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return pz[r]}function SD(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function vz(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}const oI=lz,iI=fz,TS=["Enter"," "],gz=["ArrowDown","PageUp","Home"],$D=["ArrowUp","PageDown","End"],yz=[...gz,...$D],wz={ltr:[...TS,"ArrowRight"],rtl:[...TS,"ArrowLeft"]},bz={ltr:["ArrowLeft"],rtl:["ArrowRight"]},B0="Menu",[xv,_z,xz]=H$(B0),[dp,ID]=di(B0,[xz,Xh,Jh]),CD=Xh(),ED=Jh(),[oJ,fp]=dp(B0),[iJ,jv]=dp(B0),Sz=Fe(((e,t)=>{const{__scopeMenu:n,...r}=e,o=CD(n);return se(tI,Ae({},o,r,{ref:t}))})),TD="MenuPortal",[$z,RD]=dp(TD,{forceMount:void 0}),Iz=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=fp(TD,t);return se($z,{scope:t,forceMount:n},se(ca,{present:n||i.open},se(h0,{asChild:!0,container:o},r)))},$s="MenuContent",[Cz,aI]=dp($s),Ez=Fe(((e,t)=>{const n=RD($s,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=fp($s,e.__scopeMenu),a=jv($s,e.__scopeMenu);return se(xv.Provider,{scope:e.__scopeMenu},se(ca,{present:r||i.open},se(xv.Slot,{scope:e.__scopeMenu},a.modal?se(Tz,Ae({},o,{ref:t})):se(Rz,Ae({},o,{ref:t})))))})),Tz=Fe(((e,t)=>{const n=fp($s,e.__scopeMenu),r=Ge(null),o=Zt(t,r);return Qe((()=>{const e=r.current;if(e)return g0(e)}),[]),se(sI,Ae({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:it(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),Rz=Fe(((e,t)=>{const n=fp($s,e.__scopeMenu);return se(sI,Ae({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),sI=Fe(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:u,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=fp($s,n),v=jv($s,n),y=CD(n),b=ED(n),w=_z(n),[x,_]=lt(null),S=Ge(null),A=Zt(t,S,g.onContentChange),I=Ge(0),E=Ge(""),k=Ge(0),M=Ge(null),C=Ge("right"),N=Ge(0),P=m?v0:ap,O=m?{as:Kf,allowPinchZoom:!0}:void 0;Qe((()=>()=>window.clearTimeout(I.current)),[]),c$();const T=_t((e=>{var t,n;return C.current===(null===(t=M.current)||void 0===t?void 0:t.side)&&Hz(e,null===(n=M.current)||void 0===n?void 0:n.area)}),[]);return se(Cz,{scope:n,searchRef:E,onItemEnter:_t((e=>{T(e)&&e.preventDefault()}),[T]),onItemLeave:_t((e=>{var t;T(e)||(null===(t=S.current)||void 0===t||t.focus(),_(null))}),[T]),onTriggerLeave:_t((e=>{T(e)&&e.preventDefault()}),[T]),pointerGraceTimerRef:k,onPointerGraceIntentChange:_t((e=>{M.current=e}),[])},se(P,O,se(l$,{asChild:!0,trapped:o,onMountAutoFocus:it(i,(e=>{var t;e.preventDefault(),null===(t=S.current)||void 0===t||t.focus()})),onUnmountAutoFocus:a},se(p0,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p},se(oI,Ae({asChild:!0},b,{dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:x,onCurrentTabStopIdChange:_,onEntryFocus:it(u,(e=>{v.isUsingKeyboardRef.current||e.preventDefault()}))}),se(nI,Ae({role:"menu","aria-orientation":"vertical","data-state":DD(g.open),"data-radix-menu-content":"",dir:v.dir},y,h,{ref:A,style:{outline:"none",...h.style},onKeyDown:it(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,s=qz(o.map((e=>e.textValue)),r,a),u=null===(n=o.find((e=>e.textValue===s)))||void 0===n?void 0:n.ref.current;(function e(t){E.current=t,window.clearTimeout(I.current),""!==t&&(I.current=window.setTimeout((()=>e("")),1e3))})(r),u&&setTimeout((()=>u.focus()))})(e.key));const o=S.current;if(e.target!==o||!yz.includes(e.key))return;e.preventDefault();const i=w().filter((e=>!e.disabled)).map((e=>e.ref.current));$D.includes(e.key)&&i.reverse(),Vz(i)})),onBlur:it(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(I.current),E.current="")})),onPointerMove:it(e.onPointerMove,Sv((e=>{const t=e.target,n=N.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>N.current?"right":"left";C.current=t,N.current=e.clientX}})))})))))))})),Pz=Fe(((e,t)=>{const{__scopeMenu:n,...r}=e;return se(gt.div,Ae({},r,{ref:t}))})),RS="MenuItem",vP="menu.itemSelect",uI=Fe(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=Ge(null),a=jv(RS,e.__scopeMenu),s=aI(RS,e.__scopeMenu),u=Zt(t,i),l=Ge(!1);return se(PD,Ae({},o,{ref:u,disabled:n,onClick:it(e.onClick,(()=>{const e=i.current;if(!n&&e){const t=new CustomEvent(vP,{bubbles:!0,cancelable:!0});e.addEventListener(vP,(e=>null==r?void 0:r(e)),{once:!0}),PO(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:it(e.onPointerUp,(e=>{var t;l.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:it(e.onKeyDown,(e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||TS.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),PD=Fe(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=aI(RS,n),s=ED(n),u=Ge(null),l=Zt(t,u),[c,d]=lt(!1),[f,p]=lt("");return Qe((()=>{const e=u.current;var t;e&&p((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[i.children]),se(xv.ItemSlot,{scope:n,disabled:r,textValue:o??f},se(iI,Ae({asChild:!0},s,{focusable:!r}),se(gt.div,Ae({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},i,{ref:l,onPointerMove:it(e.onPointerMove,Sv((e=>{r?a.onItemLeave(e):(a.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())}))),onPointerLeave:it(e.onPointerLeave,Sv((e=>a.onItemLeave(e)))),onFocus:it(e.onFocus,(()=>d(!0))),onBlur:it(e.onBlur,(()=>d(!1)))}))))})),Oz=Fe(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return se(AD,{scope:e.__scopeMenu,checked:n},se(uI,Ae({role:"menuitemcheckbox","aria-checked":t0(n)?"mixed":n},o,{ref:t,"data-state":lI(n),onSelect:it(o.onSelect,(()=>null==r?void 0:r(!!t0(n)||!n)),{checkForDefaultPrevented:!1})})))})),Az="MenuRadioGroup",[aJ,Nz]=dp(Az,{value:void 0,onValueChange:()=>{}}),Dz="MenuRadioItem",Mz=Fe(((e,t)=>{const{value:n,...r}=e,o=Nz(Dz,e.__scopeMenu),i=n===o.value;return se(AD,{scope:e.__scopeMenu,checked:i},se(uI,Ae({role:"menuitemradio","aria-checked":i},r,{ref:t,"data-state":lI(i),onSelect:it(r.onSelect,(()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)}),{checkForDefaultPrevented:!1})})))})),OD="MenuItemIndicator",[AD,kz]=dp(OD,{checked:!1}),Lz=Fe(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=kz(OD,n);return se(ca,{present:r||t0(i.checked)||!0===i.checked},se(gt.span,Ae({},o,{ref:t,"data-state":lI(i.checked)})))})),Bz=Fe(((e,t)=>{const{__scopeMenu:n,...r}=e;return se(gt.div,Ae({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),Fz="MenuSub",[sJ,ND]=dp(Fz),Mg="MenuSubTrigger",jz=Fe(((e,t)=>{const n=fp(Mg,e.__scopeMenu),r=jv(Mg,e.__scopeMenu),o=ND(Mg,e.__scopeMenu),i=aI(Mg,e.__scopeMenu),a=Ge(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:u}=i,l={__scopeMenu:e.__scopeMenu},c=_t((()=>{a.current&&window.clearTimeout(a.current),a.current=null}),[]);return Qe((()=>c),[c]),Qe((()=>{const e=s.current;return()=>{window.clearTimeout(e),u(null)}}),[s,u]),se(Sz,Ae({asChild:!0},l),se(PD,Ae({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":DD(n.open)},e,{ref:s$(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:it(e.onPointerMove,Sv((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:it(e.onPointerLeave,Sv((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,u=a?-5:5,l=r[a?"left":"right"],c=r[a?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+u,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(s.current),s.current=window.setTimeout((()=>i.onPointerGraceIntentChange(null)),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}}))),onKeyDown:it(e.onKeyDown,(t=>{const o=""!==i.searchRef.current;var a;e.disabled||o&&" "===t.key||!wz[r.dir].includes(t.key)||(n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault())}))})))})),zz="MenuSubContent",Uz=Fe(((e,t)=>{const n=RD($s,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=fp($s,e.__scopeMenu),a=jv($s,e.__scopeMenu),s=ND(zz,e.__scopeMenu),u=Ge(null),l=Zt(t,u);return se(xv.Provider,{scope:e.__scopeMenu},se(ca,{present:r||i.open},se(xv.Slot,{scope:e.__scopeMenu},se(sI,Ae({id:s.contentId,"aria-labelledby":s.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=u.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:it(e.onFocusOutside,(e=>{e.target!==s.trigger&&i.onOpenChange(!1)})),onEscapeKeyDown:it(e.onEscapeKeyDown,(e=>{a.onClose(),e.preventDefault()})),onKeyDown:it(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=bz[a.dir].includes(e.key);var r;t&&n&&(i.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))}));function DD(e){return e?"open":"closed"}function t0(e){return"indeterminate"===e}function lI(e){return t0(e)?"indeterminate":e?"checked":"unchecked"}function Vz(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Wz(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}function qz(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=Wz(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 Gz(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,s=t[e].y,u=t[i].x,l=t[i].y;s>r!=l>r&&n<(u-a)*(r-s)/(l-s)+a&&(o=!o)}return o}function Hz(e,t){if(!t)return!1;return Gz({x:e.clientX,y:e.clientY},t)}function Sv(e){return t=>"mouse"===t.pointerType?e(t):void 0}const Kz=Iz,Yz=Ez,Qz=Pz,Xz=uI,Jz=Oz,Zz=Mz,eU=Lz,tU=Bz,nU=jz,rU=Uz,MD="DropdownMenu",[oU,uJ]=di(MD,[ID]),$u=ID(),[lJ,iU]=oU(MD),aU=e=>{const{__scopeDropdownMenu:t,...n}=e,r=$u(t);return se(Kz,Ae({},r,n))},sU="DropdownMenuContent",uU=Fe(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=iU(sU,n),i=$u(n),a=Ge(!1);return se(Yz,Ae({id:o.contentId,"aria-labelledby":o.triggerId},i,r,{ref:t,onCloseAutoFocus:it(e.onCloseAutoFocus,(e=>{var t;a.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()})),onInteractOutside:it(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)"}}))})),lU=Fe(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$u(n);return se(Qz,Ae({},o,r,{ref:t}))})),cU=Fe(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$u(n);return se(Xz,Ae({},o,r,{ref:t}))})),dU=Fe(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$u(n);return se(Jz,Ae({},o,r,{ref:t}))})),fU=Fe(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$u(n);return se(Zz,Ae({},o,r,{ref:t}))})),pU=Fe(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$u(n);return se(eU,Ae({},o,r,{ref:t}))})),hU=Fe(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$u(n);return se(tU,Ae({},o,r,{ref:t}))})),mU=Fe(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$u(n);return se(nU,Ae({},o,r,{ref:t}))})),vU=Fe(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$u(n);return se(rU,Ae({},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)"}}))})),gU=aU,kD=uU,LD=lU,BD=cU,FD=dU,jD=fU,yU=pU,cI=hU,zD=mU,UD=vU,wU=M.forwardRef((({className:e,inset:t,children:n,...r},o)=>G.jsxs(zD,{ref:o,className:xe("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,G.jsx(bO,{className:"ml-auto h-4 w-4"})]})));wU.displayName=zD.displayName;const bU=M.forwardRef((({className:e,...t},n)=>G.jsx(UD,{ref:n,className:xe("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})));bU.displayName=UD.displayName;const gP=e=>{e.preventDefault()},_U=M.forwardRef((({className:e,sideOffset:t=4,isPortal:n,...r},o)=>{const i=G.jsx(kD,{ref:o,sideOffset:t,onOpenAutoFocus:gP,onCloseAutoFocus:gP,className:xe("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?G.jsx(gU,{children:i}):i}));_U.displayName=kD.displayName;const xU=M.forwardRef((({className:e,inset:t,...n},r)=>G.jsx(BD,{ref:r,className:xe("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})));xU.displayName=BD.displayName;const SU=M.forwardRef((({className:e,children:t,checked:n,checkboxPosition:r="right",...o},i)=>{const a=G.jsx(F$,{size:"default",variant:"default",checked:n});return G.jsxs(FD,{ref:i,className:xe("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,G.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:t}),"right"===r&&a]})}));SU.displayName=FD.displayName;const $U=M.forwardRef((({className:e,children:t,radioPosition:n="right",...r},o)=>{const i=G.jsx("div",{className:"flex h-xxs items-center justify-center",children:G.jsx(yU,{children:G.jsx(r$,{size:20})})});return G.jsxs(jD,{ref:o,className:xe("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,G.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:t}),"right"===n&&i]})}));$U.displayName=jD.displayName;const IU=M.forwardRef((({className:e,inset:t,...n},r)=>G.jsx(LD,{ref:r,className:xe("text-sm font-semibold",t&&"pl-xl",e),...n})));IU.displayName=LD.displayName;const CU=M.forwardRef((({className:e,...t},n)=>G.jsx(cI,{ref:n,className:xe("-mx-1 my-1 h-px bg-muted",e),...t})));CU.displayName=cI.displayName;const EU=Fe(((e,t)=>se(gt.label,Ae({},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()}})))),VD=EU,TU=xu("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),WD=M.forwardRef((({className:e,...t},n)=>G.jsx(VD,{ref:n,className:xe(TU(),e),...t})));function yP(e,[t,n]){return Math.min(n,Math.max(t,e))}WD.displayName=VD.displayName;const qD=Fe(((e,t)=>se(gt.span,Ae({},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}})))),RU=qD,PU=[" ","Enter","ArrowUp","ArrowDown"],OU=[" ","Enter"],F0="Select",[j0,z0,AU]=H$(F0),[Zh,cJ]=di(F0,[AU,Xh]),dI=Xh(),[NU,pp]=Zh(F0),[DU,MU]=Zh(F0),kU=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:u,dir:l,name:c,autoComplete:d,disabled:f,required:p}=e,m=dI(t),[h,g]=lt(null),[v,y]=lt(null),[b,w]=lt(!1),x=K$(l),[_=!1,S]=gd({prop:r,defaultProp:o,onChange:i}),[A,I]=gd({prop:a,defaultProp:s,onChange:u}),E=Ge(null),k=!h||!!h.closest("form"),[M,C]=lt(new Set),N=Array.from(M).map((e=>e.props.value)).join(";");return se(_D,m,se(NU,{required:p,scope:t,trigger:h,onTriggerChange:g,valueNode:v,onValueNodeChange:y,valueNodeHasChildren:b,onValueNodeHasChildrenChange:w,contentId:pd(),value:A,onValueChange:I,open:_,onOpenChange:S,dir:x,triggerPointerDownPosRef:E,disabled:f},se(j0.Provider,{scope:t},se(DU,{scope:e.__scopeSelect,onNativeOptionAdd:_t((e=>{C((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:_t((e=>{C((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},n)),k?se(QD,{key:N,"aria-hidden":!0,required:p,tabIndex:-1,name:c,autoComplete:d,value:A,onChange:e=>I(e.target.value),disabled:f},void 0===A?se("option",{value:""}):null,Array.from(M)):null))},LU="SelectTrigger",BU=Fe(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=dI(n),a=pp(LU,n),s=a.disabled||r,u=Zt(t,a.onTriggerChange),l=z0(n),[c,d,f]=XD((e=>{const t=l().filter((e=>!e.disabled)),n=t.find((e=>e.value===a.value)),r=JD(t,e,n);void 0!==r&&a.onValueChange(r.value)})),p=()=>{s||(a.onOpenChange(!0),f())};return se(tI,Ae({asChild:!0},i),se(gt.button,Ae({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:s,"data-disabled":s?"":void 0,"data-placeholder":YD(a.value)?"":void 0},o,{ref:u,onClick:it(o.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:it(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:it(o.onKeyDown,(e=>{const t=""!==c.current;!(e.ctrlKey||e.altKey||e.metaKey)&&1===e.key.length&&d(e.key),(!t||" "!==e.key)&&PU.includes(e.key)&&(p(),e.preventDefault())}))})))})),FU="SelectValue",jU=Fe(((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:a="",...s}=e,u=pp(FU,n),{onValueNodeHasChildrenChange:l}=u,c=void 0!==i,d=Zt(t,u.onValueNodeChange);return Qo((()=>{l(c)}),[l,c]),se(gt.span,Ae({},s,{ref:d,style:{pointerEvents:"none"}}),YD(u.value)?se(ap,null,a):i)})),zU=Fe(((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return se(gt.span,Ae({"aria-hidden":!0},o,{ref:t}),r||"▼")})),UU=e=>se(h0,Ae({asChild:!0},e)),Uh="SelectContent",VU=Fe(((e,t)=>{const n=pp(Uh,e.__scopeSelect),[r,o]=lt();if(Qo((()=>{o(new DocumentFragment)}),[]),!n.open){const t=r;return t?Cs.createPortal(se(GD,{scope:e.__scopeSelect},se(j0.Slot,{scope:e.__scopeSelect},se("div",null,e.children))),t):null}return se(WU,Ae({},e,{ref:t}))})),Il=10,[GD,hp]=Zh(Uh),WU=Fe(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:u,align:l,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,...v}=e,y=pp(Uh,n),[b,w]=lt(null),[x,_]=lt(null),S=Zt(t,(e=>w(e))),[A,I]=lt(null),[E,k]=lt(null),M=z0(n),[C,N]=lt(!1),P=Ge(!1);Qe((()=>{if(b)return g0(b)}),[b]),c$();const O=_t((e=>{const[t,...n]=M().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}),[M,x]),T=_t((()=>O([A,b])),[O,A,b]);Qe((()=>{C&&T()}),[C,T]);const{onOpenChange:R,triggerPointerDownPosRef:D}=y;Qe((()=>{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]),Qe((()=>{const e=()=>R(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[R]);const[j,q]=XD((e=>{const t=M().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=JD(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),L=_t(((e,t,n)=>{const r=!P.current&&!n;(void 0!==y.value&&y.value===t||r)&&(I(e),r&&(P.current=!0))}),[y.value]),z=_t((()=>null==b?void 0:b.focus()),[b]),$=_t(((e,t,n)=>{const r=!P.current&&!n;(void 0!==y.value&&y.value===t||r)&&k(e)}),[y.value]),B="popper"===r?wP:qU,F=B===wP?{side:s,sideOffset:u,align:l,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return se(GD,{scope:n,content:b,viewport:x,onViewportChange:_,itemRefCallback:L,selectedItem:A,onItemLeave:z,itemTextRefCallback:$,focusSelectedItem:T,selectedItemText:E,position:r,isPositioned:C,searchRef:j},se(v0,{as:Kf,allowPinchZoom:!0},se(l$,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:it(o,(e=>{var t;null===(t=y.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},se(p0,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1)},se(B,Ae({role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:e=>e.preventDefault()},v,F,{onPlaced:()=>N(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:it(v.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),!t&&1===e.key.length&&q(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=M().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((()=>O(t))),e.preventDefault()}}))}))))))})),qU=Fe(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=pp(Uh,n),a=hp(Uh,n),[s,u]=lt(null),[l,c]=lt(null),d=Zt(t,(e=>c(e))),f=z0(n),p=Ge(!1),m=Ge(!0),{viewport:h,selectedItem:g,selectedItemText:v,focusSelectedItem:y}=a,b=_t((()=>{if(i.trigger&&i.valueNode&&s&&l&&h&&g&&v){const e=i.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),o=v.getBoundingClientRect();if("rtl"!==i.dir){const r=o.left-t.left,i=n.left-r,a=e.left-i,u=e.width+a,l=Math.max(u,t.width),c=window.innerWidth-Il,d=yP(i,[Il,c-l]);s.style.minWidth=u+"px",s.style.left=d+"px"}else{const r=t.right-o.right,i=window.innerWidth-n.right-r,a=window.innerWidth-e.right-i,u=e.width+a,l=Math.max(u,t.width),c=window.innerWidth-Il,d=yP(i,[Il,c-l]);s.style.minWidth=u+"px",s.style.right=d+"px"}const a=f(),u=window.innerHeight-2*Il,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*g.offsetHeight,w),_=window.getComputedStyle(h),S=parseInt(_.paddingTop,10),A=parseInt(_.paddingBottom,10),I=e.top+e.height/2-Il,E=u-I,k=g.offsetHeight/2,M=m+y+(g.offsetTop+k),C=w-M;if(M<=I){const e=g===a[a.length-1].ref.current;s.style.bottom="0px";const t=l.clientHeight-h.offsetTop-h.offsetHeight,n=M+Math.max(E,k+(e?A:0)+t+b);s.style.height=n+"px"}else{const e=g===a[0].ref.current;s.style.top="0px";const t=Math.max(I,m+h.offsetTop+(e?S:0)+k)+C;s.style.height=t+"px",h.scrollTop=M-I+h.offsetTop}s.style.margin=`${Il}px 0`,s.style.minHeight=x+"px",s.style.maxHeight=u+"px",null==r||r(),requestAnimationFrame((()=>p.current=!0))}}),[f,i.trigger,i.valueNode,s,l,h,g,v,i.dir,r]);Qo((()=>b()),[b]);const[w,x]=lt();Qo((()=>{l&&x(window.getComputedStyle(l).zIndex)}),[l]);const _=_t((e=>{e&&!0===m.current&&(b(),null==y||y(),m.current=!1)}),[b,y]);return se(GU,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:_},se("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w}},se(gt.div,Ae({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))})),wP=Fe(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Il,...i}=e,a=dI(n);return se(nI,Ae({},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)"}}))})),[GU,fI]=Zh(Uh,{}),bP="SelectViewport",HU=Fe(((e,t)=>{const{__scopeSelect:n,...r}=e,o=hp(bP,n),i=fI(bP,n),a=Zt(t,o.onViewportChange),s=Ge(0);return se(ap,null,se("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}"}}),se(j0.Slot,{scope:n},se(gt.div,Ae({"data-radix-select-viewport":"",role:"presentation"},r,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:it(r.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if(null!=r&&r.current&&n){const e=Math.abs(s.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*Il,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),s=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}s.current=t.scrollTop}))}))))})),KU="SelectGroup",[YU,QU]=Zh(KU),XU=Fe(((e,t)=>{const{__scopeSelect:n,...r}=e,o=pd();return se(YU,{scope:n,id:o},se(gt.div,Ae({role:"group","aria-labelledby":o},r,{ref:t})))})),JU="SelectLabel",ZU=Fe(((e,t)=>{const{__scopeSelect:n,...r}=e,o=QU(JU,n);return se(gt.div,Ae({id:o.id},r,{ref:t}))})),PS="SelectItem",[eV,HD]=Zh(PS),tV=Fe(((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,s=pp(PS,n),u=hp(PS,n),l=s.value===r,[c,d]=lt(i??""),[f,p]=lt(!1),m=Zt(t,(e=>{var t;return null===(t=u.itemRefCallback)||void 0===t?void 0:t.call(u,e,r,o)})),h=pd(),g=()=>{o||(s.onValueChange(r),s.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 se(eV,{scope:n,value:r,disabled:o,textId:h,isSelected:l,onItemTextChange:_t((e=>{d((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},se(j0.ItemSlot,{scope:n,value:r,disabled:o,textValue:c},se(gt.div,Ae({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:it(a.onFocus,(()=>p(!0))),onBlur:it(a.onBlur,(()=>p(!1))),onPointerUp:it(a.onPointerUp,g),onPointerMove:it(a.onPointerMove,(e=>{var t;o?null===(t=u.onItemLeave)||void 0===t||t.call(u):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:it(a.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=u.onItemLeave)||void 0===t||t.call(u))})),onKeyDown:it(a.onKeyDown,(e=>{var t;""!==(null===(t=u.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(OU.includes(e.key)&&g()," "===e.key&&e.preventDefault())}))}))))})),kg="SelectItemText",nV=Fe(((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,a=pp(kg,n),s=hp(kg,n),u=HD(kg,n),l=MU(kg,n),[c,d]=lt(null),f=Zt(t,(e=>d(e)),u.onItemTextChange,(e=>{var t;return null===(t=s.itemTextRefCallback)||void 0===t?void 0:t.call(s,e,u.value,u.disabled)})),p=null==c?void 0:c.textContent,m=An((()=>se("option",{key:u.value,value:u.value,disabled:u.disabled},p)),[u.disabled,u.value,p]),{onNativeOptionAdd:h,onNativeOptionRemove:g}=l;return Qo((()=>(h(m),()=>g(m))),[h,g,m]),se(ap,null,se(gt.span,Ae({id:u.textId},i,{ref:f})),u.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Cs.createPortal(i.children,a.valueNode):null)})),rV="SelectItemIndicator",oV=Fe(((e,t)=>{const{__scopeSelect:n,...r}=e;return HD(rV,n).isSelected?se(gt.span,Ae({"aria-hidden":!0},r,{ref:t})):null})),_P="SelectScrollUpButton",iV=Fe(((e,t)=>{const n=hp(_P,e.__scopeSelect),r=fI(_P,e.__scopeSelect),[o,i]=lt(!1),a=Zt(t,r.onScrollButtonChange);return Qo((()=>{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?se(KD,Ae({},e,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),xP="SelectScrollDownButton",aV=Fe(((e,t)=>{const n=hp(xP,e.__scopeSelect),r=fI(xP,e.__scopeSelect),[o,i]=lt(!1),a=Zt(t,r.onScrollButtonChange);return Qo((()=>{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?se(KD,Ae({},e,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),KD=Fe(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=hp("SelectScrollButton",n),a=Ge(null),s=z0(n),u=_t((()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)}),[]);return Qe((()=>()=>u()),[u]),Qo((()=>{var e;const t=s().find((e=>e.ref.current===document.activeElement));null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[s]),se(gt.div,Ae({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:it(o.onPointerDown,(()=>{null===a.current&&(a.current=window.setInterval(r,50))})),onPointerMove:it(o.onPointerMove,(()=>{var e;null===(e=i.onItemLeave)||void 0===e||e.call(i),null===a.current&&(a.current=window.setInterval(r,50))})),onPointerLeave:it(o.onPointerLeave,(()=>{u()}))}))})),sV=Fe(((e,t)=>{const{__scopeSelect:n,...r}=e;return se(gt.div,Ae({"aria-hidden":!0},r,{ref:t}))}));function YD(e){return""===e||void 0===e}const QD=Fe(((e,t)=>{const{value:n,...r}=e,o=Ge(null),i=Zt(t,o),a=P0(n);return Qe((()=>{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]),se(qD,{asChild:!0},se("select",Ae({},r,{ref:i,defaultValue:n})))}));function XD(e){const t=Is(e),n=Ge(""),r=Ge(0),o=_t((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=_t((()=>{n.current="",window.clearTimeout(r.current)}),[]);return Qe((()=>()=>window.clearTimeout(r.current)),[]),[n,o,i]}function JD(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=uV(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 uV(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}QD.displayName="BubbleSelect";const ZD=kU,pI=BU,eM=jU,lV=zU,cV=UU,tM=VU,dV=HU,nM=XU,rM=ZU,oM=tV,fV=nV,pV=oV,iM=iV,aM=aV,sM=sV,hV=ZD,hI=M.forwardRef((({...e},t)=>G.jsx(hV,{ref:t,...e})));hI.displayName=ZD.displayName;const uM=M.forwardRef(((e,t)=>G.jsx(nM,{ref:t,...e})));uM.displayName=nM.displayName;const lM=M.forwardRef(((e,t)=>G.jsx(eM,{ref:t,...e})));lM.displayName=eM.displayName;const mI=M.forwardRef((({className:e,children:t,caption:n,error:r,icon:o,renderCaret:i,...a},s)=>{const u=i?i():i?null:G.jsx(yO,{size:20,className:"transition-transform duration-200 group-data-[state=open]/select:rotate-180"});return G.jsxs("div",{className:"w-full",children:[G.jsxs(pI,{ref:s,className:xe("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:[G.jsxs("div",{className:xe("flex flex-1 items-center gap-xxs",{"max-w-[90%]":!!i}),children:[o&&G.jsx("span",{className:xe("text-muted-foreground",{"text-red-dark":r}),children:o}),t]}),G.jsx(lV,{asChild:!0,children:u})]}),n||r?r?G.jsxs("div",{className:"mt-xxs flex items-center gap-xxxs text-sm text-red-600",children:[G.jsx(o$,{size:16}),r]}):G.jsxs("div",{className:"mt-xxs flex items-center gap-xxxs text-sm text-muted-foreground",children:[G.jsx(_L,{size:16}),n]}):null]})}));mI.displayName="SelectTriggerWrapper";const cM=M.forwardRef((({className:e,children:t,caption:n,error:r,icon:o,...i},a)=>G.jsx(mI,{ref:a,className:xe("[&>span]:line-clamp-1 [&>span]:text-left",e),caption:n,error:r,icon:o,...i,children:t})));cM.displayName=pI.displayName;const vI=M.forwardRef((({className:e,children:t,position:n="popper",...r},o)=>{const i=M.useMemo((()=>{const e=t=>{var n,r;if(!t)return!1;if(Array.isArray(t))return t.some(e);if(M.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 G.jsx(cV,{children:G.jsx(tM,{ref:o,className:xe("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:G.jsx(dV,{className:xe("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})})})}));vI.displayName=tM.displayName;const dM=M.forwardRef((({className:e,...t},n)=>G.jsx(rM,{ref:n,className:xe("text-sm font-medium text-gray-900",e),...t})));dM.displayName=rM.displayName;const fM=M.forwardRef((({className:e,showCheck:t=!0,checkPosition:n="right",children:r,...o},i)=>{const a=G.jsx(pV,{children:G.jsx(r$,{size:20})});return G.jsxs(oM,{ref:i,className:xe("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,G.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:G.jsx(fV,{children:r})}),t&&"right"===n&&a]})}));fM.displayName=oM.displayName;const pM=M.forwardRef((({className:e,...t},n)=>G.jsx(sM,{ref:n,className:xe("-mx-1 my-1 h-px bg-gray-200",e),...t})));pM.displayName=sM.displayName;const mV=({selectedValues:e=[],onRemoveValue:t})=>{const n=M.useRef(null),[r,o]=M.useState(e.length);return M.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,s=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 u=e.offsetWidth+4;if(!(a+u<=r))break;a+=u,s++}document.body.removeChild(i),o(Math.max(1,s))}),[e,t]),{containerRef:n,visibleCount:r}},hM=({hiddenCount:e,selectedValues:t=[],onRemoveValue:n})=>{const r=e=>{e.stopPropagation(),e.preventDefault()};return G.jsx("div",{onPointerDown:r,onMouseDown:r,onClick:r,children:G.jsxs(hI,{name:"hidden-chips-counter",children:[G.jsx(pI,{asChild:!0,children:G.jsx("div",{children:G.jsx(rN,{text:`+${e}`})})}),G.jsx(vI,{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 G.jsxs("div",{className:"flex justify-between p-xxs",onClick:e=>e.stopPropagation(),children:[G.jsx("span",{children:t}),G.jsx(d0,{size:16,className:"cursor-pointer",onClick:()=>null==n?void 0:n(t)})]},t)}))})]})})};hM.displayName="SelectHiddenChipsCounter";const vV=M.forwardRef(((e,t)=>{const{className:n,selectedValues:r=[],placeholder:o,onRemoveValue:i,icon:a,caption:s,error:u,...l}=e,{containerRef:c,visibleCount:d}=mV({selectedValues:r,onRemoveValue:i}),f=r.length-d;return G.jsx(mI,{ref:t,className:n,caption:s,error:u,icon:a,...l,children:G.jsx("div",{ref:c,className:"flex w-full flex-1 flex-nowrap overflow-hidden",children:0===r.length?G.jsx("span",{children:o||"Select options..."}):G.jsxs(d9,{children:[r.slice(0,d).map((e=>{const t="string"==typeof e?e:e.value;return G.jsx(rN,{avatarSrc:"string"==typeof e?void 0:e.avatar,text:t,onRemove:()=>null==i?void 0:i(t)},t)})),f>0&&G.jsx(hM,{hiddenCount:f,onRemoveValue:i,selectedValues:r})]})})})}));vV.displayName="SelectMultiTrigger";const gV=M.forwardRef((({value:e,isSelected:t=!1,isLoading:n=!1,checkboxPosition:r="right",onSelect:o,className:i,children:a,...s},u)=>{const l=n?G.jsx(_O,{size:24,className:"flex-shrink-0 animate-spin text-blue_100"}):G.jsx(F$,{size:"default",variant:"default",checked:t}),c=()=>{null==o||o(e)};return G.jsxs("div",{ref:u,className:xe("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())},...s,children:["left"===r&&l,G.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:a}),"right"===r&&l]})}));gV.displayName="SelectCheckboxItem";const yV=M.forwardRef((({className:e,...t},n)=>G.jsx(iM,{ref:n,className:xe("flex cursor-default items-center justify-center py-xxs",e),...t,children:G.jsx(mL,{size:16})})));yV.displayName=iM.displayName;const wV=M.forwardRef((({className:e,...t},n)=>G.jsx(aM,{ref:n,className:xe("flex cursor-default items-center justify-center p-xxs",e),...t,children:G.jsx(yO,{size:16})})));wV.displayName=aM.displayName;const bV=M.forwardRef((({className:e,children:t,...n},r)=>G.jsx("div",{ref:r,className:xe("sticky top-0 z-20 bg-white p-xxs",e),...n,children:t})));bV.displayName="SelectActions";const _V=M.forwardRef((({className:e,children:t,...n},r)=>G.jsx("div",{ref:r,className:xe("sticky bottom-0 z-20 bg-white p-xxs",e),...n,children:t})));_V.displayName="SelectFooter";const xV=M.createContext({}),Id=()=>{const e=M.useContext(xV),t=M.useContext(mM),n=v3();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}},mM=M.createContext({}),SV=M.forwardRef((({className:e,...t},n)=>{const r=M.useId();return G.jsx(mM.Provider,{value:{id:r},children:G.jsx("div",{ref:n,className:xe("mt-[8px]",e),...t})})}));SV.displayName="FormItem";const $V=M.forwardRef((({className:e,isRequired:t,...n},r)=>{const{formItemId:o}=Id();return G.jsxs(WD,{ref:r,className:xe("mb-2 text-sm font-medium",e),htmlFor:o,...n,children:[t&&"*",n.children]})}));$V.displayName="FormLabel";const IV=M.forwardRef((({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:i}=Id();return G.jsx(Sd,{ref:t,id:r,"aria-describedby":n?`${o} ${i}`:`${o}`,"aria-invalid":!!n,...e})}));IV.displayName="FormControl";const CV=M.forwardRef((({className:e,...t},n)=>{const{formDescriptionId:r}=Id();return G.jsx("p",{ref:n,id:r,className:xe("text-sm text-muted-foreground",e),...t})}));CV.displayName="FormDescription";const EV=M.forwardRef((({className:e,children:t,...n},r)=>{const{error:o,formMessageId:i}=Id(),a=o?String(null==o?void 0:o.message):t;return a?G.jsxs("p",{ref:r,id:i,className:xe("flex items-start gap-1 pt-xxs text-sm text-red-dark",e),...n,children:[G.jsx(o$,{size:16,className:"text-red-dark"})," ",a]}):null}));EV.displayName="FormMessage";const TV=M.forwardRef((({...e},t)=>{const{name:n}=Id();return G.jsx(hI,{ref:t,name:n,...e})}));TV.displayName="FormSelect";const RV=M.forwardRef((({className:e,children:t,...n},r)=>{const{formItemId:o}=Id();return G.jsx(cM,{ref:r,id:o,className:e,...n,children:t})}));RV.displayName="FormSelectTrigger";const PV=M.forwardRef(((e,t)=>G.jsx(vI,{ref:t,...e})));PV.displayName="FormSelectContent";const OV=M.forwardRef(((e,t)=>G.jsx(fM,{ref:t,...e})));OV.displayName="FormSelectItem";const AV=M.forwardRef(((e,t)=>G.jsx(uM,{ref:t,...e})));AV.displayName="FormSelectGroup";const NV=M.forwardRef(((e,t)=>G.jsx(dM,{ref:t,...e})));NV.displayName="FormSelectLabel";const DV=M.forwardRef(((e,t)=>G.jsx(pM,{ref:t,...e})));DV.displayName="FormSelectSeparator";const MV=M.forwardRef(((e,t)=>G.jsx(lM,{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 vM(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>Tl(e)));return function(n){const r=(null==n?void 0:n[e])||t;return An((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=Tl(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][i])||o,u=An((()=>a),Object.values(a));return se(s.Provider,{value:u},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const s=(null==a?void 0:a[e][i])||o,u=op(s);if(u)return u;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},kV(r,...t)]}function kV(...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 An((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function U0(e){const t=Ge(e);return Qe((()=>{t.current=e})),An((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function LV(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function BV(...e){return t=>e.forEach((e=>LV(e,t)))}function FV(...e){return _t(BV(...e),e)}function mp(e){return e.split("-")[0]}function zv(e){return e.split("-")[1]}function em(e){return["top","bottom"].includes(mp(e))?"x":"y"}function gI(e){return"y"===e?"height":"width"}function SP(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,s=em(t),u=gI(s),l=r[u]/2-o[u]/2,c="x"===s;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(zv(t)){case"start":d[s]-=l*(n&&c?-1:1);break;case"end":d[s]+=l*(n&&c?-1:1)}return d}MV.displayName="FormSelectValue";const jV=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:c}=SP(u,r,s),d=r,f={},p=0;for(let n=0;n<i.length;n++){const{name:m,fn:h}=i[n],{x:g,y:v,data:y,reset:b}=await h({x:l,y:c,initialPlacement:r,placement:d,strategy:o,middlewareData:f,rects:u,platform:a,elements:{reference:e,floating:t}});l=g??l,c=v??c,f={...f,[m]:{...f[m],...y}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:l,y:c}=SP(u,d,s))),n=-1)}return{x:l,y:c,placement:d,strategy:o,middlewareData:f}};function gM(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 n0(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function $v(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=t,m=gM(p),h=s[f?"floating"===d?"reference":"floating":d],g=n0(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(s.floating)),boundary:l,rootBoundary:c,strategy:u})),v=n0(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(s.floating)),strategy:u}):a[d]);return{top:g.top-v.top+m.top,bottom:v.bottom-g.bottom+m.bottom,left:g.left-v.left+m.left,right:v.right-g.right+m.right}}const zV=Math.min,Bf=Math.max;function OS(e,t,n){return Bf(e,zV(t,n))}const $P=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e??{},{x:o,y:i,placement:a,rects:s,platform:u}=t;if(null==n)return{};const l=gM(r),c={x:o,y:i},d=em(a),f=zv(a),p=gI(d),m=await u.getDimensions(n),h="y"===d?"top":"left",g="y"===d?"bottom":"right",v=s.reference[p]+s.reference[d]-c[d]-s.floating[p],y=c[d]-s.reference[d],b=await(null==u.getOffsetParent?void 0:u.getOffsetParent(n));let w=b?"y"===d?b.clientHeight||0:b.clientWidth||0:0;0===w&&(w=s.floating[p]);const x=v/2-y/2,_=l[h],S=w-m[p]-l[g],A=w/2-m[p]/2+x,I=OS(_,A,S),E=("start"===f?l[h]:l[g])>0&&A!==I&&s.reference[p]<=s.floating[p];return{[d]:c[d]-(E?A<_?_-A:S-A:0),data:{[d]:I,centerOffset:A-I}}}}),UV={left:"right",right:"left",bottom:"top",top:"bottom"};function r0(e){return e.replace(/left|right|bottom|top/g,(e=>UV[e]))}function VV(e,t,n){void 0===n&&(n=!1);const r=zv(e),o=em(e),i=gI(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=r0(a)),{main:a,cross:r0(a)}}const WV={start:"end",end:"start"};function IP(e){return e.replace(/start|end/g,(e=>WV[e]))}const yM=["top","right","bottom","left"];yM.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const qV=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:s,elements:u}=t,{mainAxis:l=!0,crossAxis:c=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:p=!0,...m}=e,h=mp(r),g=[a,...d||(h!==a&&p?function(e){const t=r0(e);return[IP(e),t,IP(t)]}(a):[r0(a)])],v=await $v(t,m),y=[];let b=(null==(n=o.flip)?void 0:n.overflows)||[];if(l&&y.push(v[h]),c){const{main:e,cross:t}=VV(r,i,await(null==s.isRTL?void 0:s.isRTL(u.floating)));y.push(v[e],v[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=g[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 CP(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function EP(e){return yM.some((t=>e[t]>=0))}const GV=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=CP(await $v(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:EP(t)}}}case"escaped":{const t=CP(await $v(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:EP(t)}}}default:return{}}}}},HV=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),s=zv(n),u="x"===em(n),l=["left","top"].includes(a)?-1:1,c=i&&u?-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 s&&"number"==typeof m&&(p="end"===s?-1*m:m),u?{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 wM(e){return"x"===e?"y":"x"}const KV=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:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=e,l={x:n,y:r},c=await $v(t,u),d=em(mp(o)),f=wM(d);let p=l[d],m=l[f];if(i){const e="y"===d?"bottom":"right";p=OS(p+c["y"===d?"top":"left"],p,p-c[e])}if(a){const e="y"===f?"bottom":"right";m=OS(m+c["y"===f?"top":"left"],m,m-c[e])}const h=s.fn({...t,[d]:p,[f]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},YV=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:u=!0,crossAxis:l=!0}=e,c={x:n,y:r},d=em(o),f=wM(d);let p=c[d],m=c[f];const h="function"==typeof s?s({...i,placement:o}):s,g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+g.mainAxis,n=i.reference[d]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var v,y,b,w;const e="y"===d?"width":"height",t=["top","left"].includes(mp(o)),n=i.reference[f]-i.floating[e]+(t&&null!=(v=null==(y=a.offset)?void 0:y[f])?v:0)+(t?0:g.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:null!=(b=null==(w=a.offset)?void 0:w[f])?b:0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}},QV=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,...s}=e,u=await $v(t,s),l=mp(n),c=zv(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=Bf(u.left,0),m=Bf(u.right,0),h=Bf(u.top,0),g=Bf(u.bottom,0),v={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==h||0!==g?h+g:Bf(u.top,u.bottom)):u[d]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==p||0!==m?p+m:Bf(u.left,u.right)):u[f])},y=await o.getDimensions(i.floating);null==a||a({...t,...v});const b=await o.getDimensions(i.floating);return y.width!==b.width||y.height!==b.height?{reset:{rects:!0}}:{}}}};function bM(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Bl(e){if(null==e)return window;if(!bM(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Uv(e){return Bl(e).getComputedStyle(e)}function Cl(e){return bM(e)?"":e?(e.nodeName||"").toLowerCase():""}function _M(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function _u(e){return e instanceof Bl(e).HTMLElement}function xd(e){return e instanceof Bl(e).Element}function yI(e){return!(typeof ShadowRoot>"u")&&(e instanceof Bl(e).ShadowRoot||e instanceof ShadowRoot)}function V0(e){const{overflow:t,overflowX:n,overflowY:r}=Uv(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function XV(e){return["table","td","th"].includes(Cl(e))}function TP(e){const t=/firefox/i.test(_M()),n=Uv(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 xM(){return!/^((?!chrome|android).)*safari/i.test(_M())}const RP=Math.min,fv=Math.max,o0=Math.round;function El(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let u=1,l=1;t&&_u(e)&&(u=e.offsetWidth>0&&o0(s.width)/e.offsetWidth||1,l=e.offsetHeight>0&&o0(s.height)/e.offsetHeight||1);const c=xd(e)?Bl(e):window,d=!xM()&&n,f=(s.left+(d&&null!=(r=null==(o=c.visualViewport)?void 0:o.offsetLeft)?r:0))/u,p=(s.top+(d&&null!=(i=null==(a=c.visualViewport)?void 0:a.offsetTop)?i:0))/l,m=s.width/u,h=s.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 Bl(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function W0(e){return xd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function SM(e){return El(md(e)).left+W0(e).scrollLeft}function JV(e,t,n){const r=_u(t),o=md(t),i=El(e,r&&function(e){const t=El(e);return o0(t.width)!==e.offsetWidth||o0(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==Cl(t)||V0(o))&&(a=W0(t)),_u(t)){const e=El(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=SM(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function $M(e){return"html"===Cl(e)?e:e.assignedSlot||e.parentNode||(yI(e)?e.host:null)||md(e)}function PP(e){return _u(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function AS(e){const t=Bl(e);let n=PP(e);for(;n&&XV(n)&&"static"===getComputedStyle(n).position;)n=PP(n);return n&&("html"===Cl(n)||"body"===Cl(n)&&"static"===getComputedStyle(n).position&&!TP(n))?t:n||function(e){let t=$M(e);for(yI(t)&&(t=t.host);_u(t)&&!["html","body"].includes(Cl(t));){if(TP(t))return t;t=t.parentNode}return null}(e)||t}function OP(e){if(_u(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=El(e);return{width:t.width,height:t.height}}function IM(e){const t=$M(e);return["html","body","#document"].includes(Cl(t))?e.ownerDocument.body:_u(t)&&V0(t)?t:IM(t)}function i0(e,t){var n;void 0===t&&(t=[]);const r=IM(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Bl(r),a=o?[i].concat(i.visualViewport||[],V0(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(i0(a))}function AP(e,t,n){return"viewport"===t?n0(function(e,t){const n=Bl(e),r=md(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,u=0;if(o){i=o.width,a=o.height;const e=xM();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:s,y:u}}(e,n)):xd(t)?function(e,t){const n=El(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):n0(function(e){var t;const n=md(e),r=W0(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=fv(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=fv(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+SM(e);const u=-r.scrollTop;return"rtl"===Uv(o||n).direction&&(s+=fv(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}(md(e)))}function ZV(e){const t=i0(e),n=["absolute","fixed"].includes(Uv(e).position)&&_u(e)?AS(e):e;return xd(n)?t.filter((e=>xd(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&yI(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==Cl(e))):[]}const eW={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?ZV(t):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=AP(t,n,o);return e.top=fv(r.top,e.top),e.right=RP(r.right,e.right),e.bottom=RP(r.bottom,e.bottom),e.left=fv(r.left,e.left),e}),AP(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=_u(n),i=md(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==Cl(n)||V0(i))&&(a=W0(n)),_u(n))){const e=El(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:xd,getDimensions:OP,getOffsetParent:AS,getDocumentElement:md,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:JV(t,AS(n),r),floating:{...OP(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===Uv(e).direction};function tW(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,u=o&&!s,l=i&&!s,c=u||l?[...xd(e)?i0(e):[],...i0(t)]:[];c.forEach((e=>{u&&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})),xd(e)&&!s&&f.observe(e),f.observe(t)}let p=s?El(e):null;return s&&function t(){const r=El(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=>{u&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}const nW=(e,t,n)=>jV(e,t,{platform:eW,...n});var NS=typeof document<"u"?ip:Qe;function DS(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(!DS(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||DS(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function rW(e){const t=M.useRef(e);return NS((()=>{t.current=e})),t}function oW(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===e?{}:e;const i=M.useRef(null),a=M.useRef(null),s=rW(o),u=M.useRef(null),[l,c]=M.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=M.useState(t);DS(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=M.useCallback((()=>{!i.current||!a.current||nW(i.current,a.current,{middleware:d,placement:n,strategy:r}).then((e=>{m.current&&Cs.flushSync((()=>{c(e)}))}))}),[d,n,r]);NS((()=>{m.current&&p()}),[p]);const m=M.useRef(!1);NS((()=>(m.current=!0,()=>{m.current=!1})),[]);const h=M.useCallback((()=>{if("function"==typeof u.current&&(u.current(),u.current=null),i.current&&a.current)if(s.current){const e=s.current(i.current,a.current,p);u.current=e}else p()}),[p,s]),g=M.useCallback((e=>{i.current=e,h()}),[h]),v=M.useCallback((e=>{a.current=e,h()}),[h]),y=M.useMemo((()=>({reference:i,floating:a})),[]);return M.useMemo((()=>({...l,update:p,refs:y,reference:g,floating:v})),[l,p,y,g,v])}const iW=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?$P({element:t.current,padding:n}).fn(e):{}:t?$P({element:t,padding:n}).fn(e):{}}};function aW(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function sW(...e){return t=>e.forEach((e=>aW(e,t)))}const CM=Fe(((e,t)=>{const{children:n,...r}=e,o=sa.toArray(n),i=o.find(lW);if(i){const e=i.props.children,n=o.map((t=>t===i?sa.count(e)>1?sa.only(null):vd(e)?e.props.children:null:t));return se(MS,Ae({},r,{ref:t}),vd(e)?sp(e,void 0,n):null)}return se(MS,Ae({},r,{ref:t}),n)}));CM.displayName="Slot";const MS=Fe(((e,t)=>{const{children:n,...r}=e;return vd(n)?sp(n,{...cW(r,n.props),ref:sW(t,n.ref)}):sa.count(n)>1?sa.only(null):null}));MS.displayName="SlotClone";const uW=({children:e})=>se(ap,null,e);function lW(e){return vd(e)&&e.type===uW}function cW(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 dW=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],kS=dW.reduce(((e,t)=>{const n=Fe(((e,n)=>{const{asChild:r,...o}=e,i=r?CM:t;return Qe((()=>{window[Symbol.for("radix-ui")]=!0}),[]),se(i,Ae({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function fW(e,t){e&&Cs.flushSync((()=>e.dispatchEvent(t)))}function pW(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function hW(...e){return t=>e.forEach((e=>pW(e,t)))}function mW(...e){return _t(hW(...e),e)}const Uf=null!=globalThis&&globalThis.document?ip:()=>{};function vW(e){const[t,n]=lt(void 0);return Uf((()=>{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 EM="Popper",[wI,TM]=vM(EM),[dJ,gW]=wI(EM),a0="PopperContent",[yW,fJ]=wI(a0),[wW,bW]=wI(a0,{hasParent:!1,positionUpdateFns:new Set}),_W=Fe(((e,t)=>{var n,r,o,i,a,s,u,l;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:m=0,arrowPadding:h=0,collisionBoundary:g=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:b=!1,avoidCollisions:w=!0,onPlaced:x,..._}=e,S=gW(a0,c),[A,I]=lt(null),E=mW(t,(e=>I(e))),[k,M]=lt(null),C=vW(k),N=null!==(n=null==C?void 0:C.width)&&void 0!==n?n:0,P=null!==(r=null==C?void 0:C.height)&&void 0!==r?r:0,O=d+("center"!==p?"-"+p:""),T="number"==typeof v?v:{top:0,right:0,bottom:0,left:0,...v},R=Array.isArray(g)?g:[g],D=R.length>0,j={padding:T,boundary:R.filter(SW),altBoundary:D},{reference:q,floating:L,strategy:z,x:$,y:B,placement:F,middlewareData:V,update:G}=oW({strategy:"fixed",placement:O,whileElementsMounted:tW,middleware:[$W(),HV({mainAxis:f+P,alignmentAxis:m}),w?KV({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?YV():void 0,...j}):void 0,k?iW({element:k,padding:h}):void 0,w?qV({...j}):void 0,QV({...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`)}}),IW({arrowWidth:N,arrowHeight:P}),b?GV({strategy:"referenceHidden"}):void 0].filter(xW)});Uf((()=>{q(S.anchor)}),[q,S.anchor]);const U=null!==$&&null!==B,[W,Q]=RM(F),H=U0(x);Uf((()=>{U&&(null==H||H())}),[U,H]);const K=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),[J,Z]=lt();Uf((()=>{A&&Z(window.getComputedStyle(A).zIndex)}),[A]);const{hasParent:ee,positionUpdateFns:te}=bW(a0,c),ne=!ee;ip((()=>{if(!ne)return te.add(G),()=>{te.delete(G)}}),[ne,te,G]),Uf((()=>{ne&&U&&Array.from(te).reverse().forEach((e=>requestAnimationFrame(e)))}),[ne,U,te]);const re={"data-side":W,"data-align":Q,..._,ref:E,style:{..._.style,animation:U?void 0:"none",opacity:null!==(s=V.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return se("div",{ref:L,"data-radix-popper-content-wrapper":"",style:{position:z,left:0,top:0,transform:U?`translate3d(${Math.round($)}px, ${Math.round(B)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[null===(u=V.transformOrigin)||void 0===u?void 0:u.x,null===(l=V.transformOrigin)||void 0===l?void 0:l.y].join(" ")},dir:e.dir},se(yW,{scope:c,placedSide:W,onArrowChange:M,arrowX:K,arrowY:Y,shouldHideArrow:X},ne?se(wW,{scope:c,hasParent:!0,positionUpdateFns:te},se(kS.div,re)):se(kS.div,re)))}));function xW(e){return void 0!==e}function SW(e){return null!==e}const $W=()=>({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`),{}}}),IW=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:u,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]=RM(s),h={start:"0%",center:"50%",end:"100%"}[m],g=(null!==(r=null===(o=l.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(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:`${g}px`,b=-f+"px"):"top"===p?(y=c?h:`${g}px`,b=`${u.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?h:`${v}px`):"left"===p&&(y=`${u.floating.width+f}px`,b=c?h:`${v}px`),{data:{x:y,y:b}}}});function RM(e){const[t,n="center"]=e.split("-");return[t,n]}const CW=_W;function EW(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function TW(...e){return t=>e.forEach((e=>EW(e,t)))}function RW(...e){return _t(TW(...e),e)}function PW(e,t){return dO(((e,n)=>t[e][n]??e),e)}const PM=e=>{const{present:t,children:n}=e,r=OW(t),o="function"==typeof n?n({present:r.isPresent}):sa.only(n),i=RW(r.ref,o.ref);return"function"==typeof n||r.isPresent?sp(o,{ref:i}):null};function OW(e){const[t,n]=lt(),r=Ge({}),o=Ge(e),i=Ge("none"),a=e?"mounted":"unmounted",[s,u]=PW(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Qe((()=>{const e=Lg(r.current);i.current="mounted"===s?e:"none"}),[s]),Uf((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Lg(t);e?u("MOUNT"):"none"===a||"none"===(null==t?void 0:t.display)?u("UNMOUNT"):u(n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,u]),Uf((()=>{if(t){const e=e=>{const n=Lg(r.current).includes(e.animationName);e.target===t&&n&&Cs.flushSync((()=>u("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=Lg(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)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:_t((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Lg(e){return(null==e?void 0:e.animationName)||"none"}function AW(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function NW(...e){return t=>e.forEach((e=>AW(e,t)))}function DW(...e){return _t(NW(...e),e)}function MW(e,t=(null==globalThis?void 0:globalThis.document)){const n=U0(e);Qe((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}PM.displayName="Presence";const LS="dismissableLayer.update",kW="dismissableLayer.pointerDownOutside",LW="dismissableLayer.focusOutside";let NP;const BW=Tl({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),FW=Fe(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:u,...l}=e,c=op(BW),[d,f]=lt(null),p=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=lt({}),h=DW(t,(e=>f(e))),g=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(v),b=d?g.indexOf(d):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,x=b>=y,_=jW((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));!x||n||(null==i||i(e),null==s||s(e),e.defaultPrevented||null==u||u())}),p),S=zW((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==u||u())}),p);return MW((e=>{b===c.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),p),Qe((()=>{if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(NP=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),DP(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=NP)}}),[d,p,r,c]),Qe((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),DP())}),[d,c]),Qe((()=>{const e=()=>m({});return document.addEventListener(LS,e),()=>document.removeEventListener(LS,e)}),[]),se(kS.div,Ae({},l,{ref:h,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:qf(e.onFocusCapture,S.onFocusCapture),onBlurCapture:qf(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:qf(e.onPointerDownCapture,_.onPointerDownCapture)}))}));function jW(e,t=(null==globalThis?void 0:globalThis.document)){const n=U0(e),r=Ge(!1),o=Ge((()=>{}));return Qe((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){OM(kW,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 zW(e,t=(null==globalThis?void 0:globalThis.document)){const n=U0(e),r=Ge(!1);return Qe((()=>{const e=e=>{e.target&&!r.current&&OM(LW,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 DP(){const e=new CustomEvent(LS);document.dispatchEvent(e)}function OM(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?fW(o,i):o.dispatchEvent(i)}let cx;const AM="HoverCard",[NM,pJ]=vM(AM,[TM]),UW=TM(),[hJ,DM]=NM(AM),VW="HoverCardPortal",[mJ,WW]=NM(VW,{forceMount:void 0}),BS="HoverCardContent",qW=Fe(((e,t)=>{const n=WW(BS,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,i=DM(BS,e.__scopeHoverCard);return se(PM,{present:r||i.open},se(GW,Ae({"data-state":i.open?"open":"closed"},o,{onPointerEnter:qf(e.onPointerEnter,MP(i.onOpen)),onPointerLeave:qf(e.onPointerLeave,MP(i.onClose)),ref:t})))})),GW=Fe(((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,...s}=e,u=DM(BS,n),l=UW(n),c=Ge(null),d=FV(t,c),[f,p]=lt(!1);return Qe((()=>{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]),Qe((()=>{if(c.current){const e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout((()=>{var e;""!==(null===(e=document.getSelection())||void 0===e?void 0:e.toString())&&(u.hasSelectionRef.current=!0)}))};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!1}}}),[u.isPointerDownOnContentRef,u.hasSelectionRef]),Qe((()=>{c.current&&HW(c.current).forEach((e=>e.setAttribute("tabindex","-1")))})),se(FW,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:a,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:qf(i,(e=>{e.preventDefault()})),onDismiss:u.onDismiss},se(CW,Ae({},l,s,{onPointerDown:qf(s.onPointerDown,(e=>{e.currentTarget.contains(e.target)&&p(!0),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!0})),ref:d,style:{...s.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 MP(e){return t=>"touch"===t.pointerType?void 0:e()}function HW(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 MM=qW,KW=M.forwardRef((({className:e,align:t="center",sideOffset:n=4,...r},o)=>G.jsx(MM,{ref:o,align:t,sideOffset:n,className:xe("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})));KW.displayName=MM.displayName;const kM=M.forwardRef((({className:e,type:t,...n},r)=>{const{error:o}=Id();return G.jsx("input",{type:t,title:n.disabled?"Disabled":"",className:xe("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 YW(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>M.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return M.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=M.createContext(r),i=n.length;n=[...n,r];const a=t=>{var n;const{scope:r,children:a,...s}=t,u=(null==(n=null==r?void 0:r[e])?void 0:n[i])||o,l=M.useMemo((()=>s),Object.values(s));return G.jsx(u.Provider,{value:l,children:a})};return a.displayName=t+"Provider",[a,function(n,a){var s;const u=(null==(s=null==a?void 0:a[e])?void 0:s[i])||o,l=M.useContext(u);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},QW(r,...t)]}function QW(...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 M.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function kP(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function XW(...e){return t=>{let n=!1;const r=e.map((e=>{const r=kP(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():kP(e[t],null)}}}}function JW(e){const t=ZW(e),n=M.forwardRef(((e,n)=>{const{children:r,...o}=e,i=M.Children.toArray(r),a=i.find(tq);if(a){const e=a.props.children,r=i.map((t=>t===a?M.Children.count(e)>1?M.Children.only(null):M.isValidElement(e)?e.props.children:null:t));return G.jsx(t,{...o,ref:n,children:M.isValidElement(e)?M.cloneElement(e,void 0,r):null})}return G.jsx(t,{...o,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function ZW(e){const t=M.forwardRef(((e,t)=>{const{children:n,...r}=e;if(M.isValidElement(n)){const e=rq(n),o=nq(r,n.props);return n.type!==M.Fragment&&(o.ref=t?XW(t,e):e),M.cloneElement(n,o)}return M.Children.count(n)>1?M.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}kM.displayName="Input";var eq=Symbol("radix.slottable");function tq(e){return M.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eq}function nq(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 rq(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 oq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],LM=oq.reduce(((e,t)=>{const n=JW(`Primitive.${t}`),r=M.forwardRef(((e,r)=>{const{asChild:o,...i}=e,a=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),G.jsx(a,{...i,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{}),bI="Progress",_I=100,[iq,vJ]=YW(bI),[aq,sq]=iq(bI),BM=M.forwardRef(((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:i=uq,...a}=e;(o||0===o)&&!LP(o)&&console.error(lq(`${o}`,"Progress"));const s=LP(o)?o:_I;null!==r&&!BP(r,s)&&console.error(cq(`${r}`,"Progress"));const u=BP(r,s)?r:null,l=s0(u)?i(u,s):void 0;return G.jsx(aq,{scope:n,value:u,max:s,children:G.jsx(LM.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":s0(u)?u:void 0,"aria-valuetext":l,role:"progressbar","data-state":zM(u,s),"data-value":u??void 0,"data-max":s,...a,ref:t})})}));BM.displayName=bI;var FM="ProgressIndicator",jM=M.forwardRef(((e,t)=>{const{__scopeProgress:n,...r}=e,o=sq(FM,n);return G.jsx(LM.div,{"data-state":zM(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})}));function uq(e,t){return`${Math.round(e/t*100)}%`}function zM(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function s0(e){return"number"==typeof e}function LP(e){return s0(e)&&!isNaN(e)&&e>0}function BP(e,t){return s0(e)&&!isNaN(e)&&e<=t&&e>=0}function lq(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${_I}\`.`}function cq(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 ${_I} if no \`max\` prop is set)\n - \`null\` or \`undefined\` if the progress is indeterminate.\n\nDefaulting to \`null\`.`}jM.displayName=FM;var UM=BM,dq=jM;const fq=M.forwardRef((({className:e,value:t,indicatorClassName:n,...r},o)=>G.jsx(UM,{ref:o,className:xe("relative h-[7px] w-full overflow-hidden rounded-full bg-blue_10",e),...r,children:G.jsx(dq,{className:xe("h-full w-full flex-1 rounded-full bg-blue_100 transition-all",n),style:{transform:`translateX(-${100-(t||0)}%)`}})})));fq.displayName=UM.displayName;const VM="Radio",[pq,WM]=di(VM),[hq,mq]=pq(VM),vq=Fe(((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:a,value:s="on",onCheck:u,...l}=e,[c,d]=lt(null),f=Zt(t,(e=>d(e))),p=Ge(!1),m=!c||!!c.closest("form");return se(hq,{scope:n,checked:o,disabled:a},se(gt.button,Ae({type:"button",role:"radio","aria-checked":o,"data-state":qM(o),"data-disabled":a?"":void 0,disabled:a,value:s},l,{ref:f,onClick:it(e.onClick,(e=>{o||null==u||u(),m&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())}))})),m&&se(wq,{control:c,bubbles:!p.current,name:r,value:s,checked:o,required:i,disabled:a,style:{transform:"translateX(-100%)"}}))})),gq="RadioIndicator",yq=Fe(((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,i=mq(gq,n);return se(ca,{present:r||i.checked},se(gt.span,Ae({"data-state":qM(i.checked),"data-disabled":i.disabled?"":void 0},o,{ref:t})))})),wq=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=Ge(null),a=P0(n),s=O0(t);return Qe((()=>{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]),se("input",Ae({type:"radio","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function qM(e){return e?"checked":"unchecked"}const bq=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],GM="RadioGroup",[_q,gJ]=di(GM,[Jh,WM]),HM=Jh(),KM=WM(),[xq,Sq]=_q(GM),$q=Fe(((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:a=!1,disabled:s=!1,orientation:u,dir:l,loop:c=!0,onValueChange:d,...f}=e,p=HM(n),m=K$(l),[h,g]=gd({prop:i,defaultProp:o,onChange:d});return se(xq,{scope:n,name:r,required:a,disabled:s,value:h,onValueChange:g},se(oI,Ae({asChild:!0},p,{orientation:u,dir:m,loop:c}),se(gt.div,Ae({role:"radiogroup","aria-required":a,"aria-orientation":u,"data-disabled":s?"":void 0,dir:m},f,{ref:t}))))})),Iq="RadioGroupItem",Cq=Fe(((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,i=Sq(Iq,n),a=i.disabled||r,s=HM(n),u=KM(n),l=Ge(null),c=Zt(t,l),d=i.value===o.value,f=Ge(!1);return Qe((()=>{const e=e=>{bq.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)}}),[]),se(iI,Ae({asChild:!0},s,{focusable:!a,active:d}),se(vq,Ae({disabled:a,required:i.required,checked:d},u,o,{name:i.name,ref:c,onCheck:()=>i.onValueChange(o.value),onKeyDown:it((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:it(o.onFocus,(()=>{var e;f.current&&(null===(e=l.current)||void 0===e||e.click())}))})))})),Eq=Fe(((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=KM(n);return se(yq,Ae({},o,r,{ref:t}))})),YM=$q,QM=Cq,Tq=Eq,Rq=M.forwardRef((({className:e,...t},n)=>G.jsx(YM,{className:xe("grid gap-2",e),...t,ref:n})));Rq.displayName=YM.displayName;const Pq=M.forwardRef((({className:e,...t},n)=>G.jsx(QM,{ref:n,className:xe("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:G.jsx(Tq,{className:"flex items-center justify-center",children:G.jsx(wL,{className:"stack-animate size-2 border-none",style:{fill:t.disabled?"var(--gray-300)":"white",color:t.disabled?"var(--gray-300)":"white"}})})})));Pq.displayName=QM.displayName;const Oq=JO,Aq=y0,XM=M.forwardRef((({className:e,...t},n)=>G.jsx(Gh,{className:xe("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})));XM.displayName=Gh.displayName;const Nq=xu("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"}}),JM=M.forwardRef((({side:e="right",className:t,overlayClassName:n,children:r,...o},i)=>G.jsxs(Aq,{children:[G.jsx(XM,{className:xe("bg-gray-900/70",n)}),G.jsxs(Hh,{ref:i,className:xe(Nq({side:e}),t),...o,children:[r,G.jsxs(w0,{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:[G.jsx(d0,{className:"h-4 w-4"}),G.jsx("span",{className:"sr-only",children:"Close"})]})]})]})));JM.displayName=Hh.displayName;const ZM=({className:e,...t})=>G.jsx("div",{className:xe("flex flex-col space-y-2 text-center sm:text-left",e),...t});ZM.displayName="SheetHeader";const ek=M.forwardRef((({className:e,...t},n)=>G.jsx(Av,{ref:n,className:xe("text-lg font-semibold text-foreground",e),...t})));ek.displayName=Av.displayName;const tk=M.forwardRef((({className:e,...t},n)=>G.jsx(Nv,{ref:n,className:xe("text-sm text-muted-foreground",e),...t})));tk.displayName=Nv.displayName;const[q0,yJ]=di("Tooltip",[Xh]),G0=Xh(),Dq="TooltipProvider",Mq=700,FS="tooltip.open",[kq,xI]=q0(Dq),Lq=e=>{const{__scopeTooltip:t,delayDuration:n=Mq,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[a,s]=lt(!0),u=Ge(!1),l=Ge(0);return Qe((()=>{const e=l.current;return()=>window.clearTimeout(e)}),[]),se(kq,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:_t((()=>{window.clearTimeout(l.current),s(!1)}),[]),onClose:_t((()=>{window.clearTimeout(l.current),l.current=window.setTimeout((()=>s(!0)),r)}),[r]),isPointerInTransitRef:u,onPointerInTransitChange:_t((e=>{u.current=e}),[]),disableHoverableContent:o},i)},SI="Tooltip",[Bq,Vv]=q0(SI),Fq=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,u=xI(SI,e.__scopeTooltip),l=G0(t),[c,d]=lt(null),f=pd(),p=Ge(0),m=a??u.disableHoverableContent,h=s??u.delayDuration,g=Ge(!1),[v=!1,y]=gd({prop:r,defaultProp:o,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(FS))):u.onClose(),null==i||i(e)}}),b=An((()=>v?g.current?"delayed-open":"instant-open":"closed"),[v]),w=_t((()=>{window.clearTimeout(p.current),g.current=!1,y(!0)}),[y]),x=_t((()=>{window.clearTimeout(p.current),y(!1)}),[y]),_=_t((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{g.current=!0,y(!0)}),h)}),[h,y]);return Qe((()=>()=>window.clearTimeout(p.current)),[]),se(_D,l,se(Bq,{scope:t,contentId:f,open:v,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:_t((()=>{u.isOpenDelayed?_():w()}),[u.isOpenDelayed,_,w]),onTriggerLeave:_t((()=>{m?x():window.clearTimeout(p.current)}),[x,m]),onOpen:w,onClose:x,disableHoverableContent:m},n))},FP="TooltipTrigger",jq=Fe(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Vv(FP,n),i=xI(FP,n),a=G0(n),s=Zt(t,Ge(null),o.onTriggerChange),u=Ge(!1),l=Ge(!1),c=_t((()=>u.current=!1),[]);return Qe((()=>()=>document.removeEventListener("pointerup",c)),[c]),se(tI,Ae({asChild:!0},a),se(gt.button,Ae({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:s,onPointerMove:it(e.onPointerMove,(e=>{"touch"!==e.pointerType&&!l.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),l.current=!0)})),onPointerLeave:it(e.onPointerLeave,(()=>{o.onTriggerLeave(),l.current=!1})),onPointerDown:it(e.onPointerDown,(()=>{u.current=!0,document.addEventListener("pointerup",c,{once:!0})})),onFocus:it(e.onFocus,(()=>{u.current||o.onOpen()})),onBlur:it(e.onBlur,o.onClose),onClick:it(e.onClick,o.onClose)})))})),nk="TooltipPortal",[zq,Uq]=q0(nk,{forceMount:void 0}),Vq=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=Vv(nk,t);return se(zq,{scope:t,forceMount:n},se(ca,{present:n||i.open},se(h0,{asChild:!0,container:o},r)))},Iv="TooltipContent",rk=Fe(((e,t)=>{const n=Uq(Iv,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=Vv(Iv,e.__scopeTooltip);return se(ca,{present:r||a.open},a.disableHoverableContent?se(ok,Ae({side:o},i,{ref:t})):se(Wq,Ae({side:o},i,{ref:t})))})),Wq=Fe(((e,t)=>{const n=Vv(Iv,e.__scopeTooltip),r=xI(Iv,e.__scopeTooltip),o=Ge(null),i=Zt(t,o),[a,s]=lt(null),{trigger:u,onClose:l}=n,c=o.current,{onPointerInTransitChange:d}=r,f=_t((()=>{s(null),d(!1)}),[d]),p=_t(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=Zq([...Qq(r,Yq(r,n.getBoundingClientRect())),...Xq(t.getBoundingClientRect())]);s(o),d(!0)}),[d]);return Qe((()=>()=>f()),[f]),Qe((()=>{if(u&&c){const e=e=>p(e,c),t=e=>p(e,u);return u.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}}),[u,c,p,f]),Qe((()=>{if(a){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==u?void 0:u.contains(t))||(null==c?void 0:c.contains(t)),o=!Jq(n,a);r?f():o&&(f(),l())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[u,c,a,l,f]),se(ok,Ae({},e,{ref:i}))})),[qq,Gq]=q0(SI,{isInside:!1}),ok=Fe(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,u=Vv(Iv,n),l=G0(n),{onClose:c}=u;return Qe((()=>(document.addEventListener(FS,c),()=>document.removeEventListener(FS,c))),[c]),Qe((()=>{if(u.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(u.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[u.trigger,c]),se(p0,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},se(nI,Ae({"data-state":u.stateAttribute},l,s,{ref:t,style:{...s.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)"}}),se(u$,null,r),se(qq,{scope:n,isInside:!0},se(RU,{id:u.contentId,role:"tooltip"},o||r))))})),Hq="TooltipArrow",Kq=Fe(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=G0(n);return Gq(Hq,n).isInside?null:se(rz,Ae({},o,r,{ref:t}))}));function Yq(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 Qq(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 Xq(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 Jq(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,s=t[e].y,u=t[i].x,l=t[i].y;s>r!=l>r&&n<(u-a)*(r-s)/(l-s)+a&&(o=!o)}return o}function Zq(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)),eG(t)}function eG(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 tG=Vq,ik=rk,nG=Kq,rG=()=>{const e=window.innerWidth;return e<768?"mobile":e<1024?"tablet":"desktop"},oG=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)},iG=e=>oG(e)&&"type"in e&&"string"==typeof e.type,Et=e=>{const t=t=>({type:e,payload:t});return t.toString=()=>`${e}`,t.type=e,t.match=t=>iG(t)&&t.type===e,t};Et("remoteReady"),Et("askLogin"),Et("reselectUser"),Et("requestLogout");const aG=Et("setConfirmLeavePage"),sG=Et("requestChangePath");Et("wsSubscribe"),Et("wsUnSubscribe"),Et("hostStoreConnect"),Et("remoteLogin");const uG=Et("remoteLogout");Et("wsOnMessage");const lG=Et("setRouterPath"),cG=Et("setDeviceType"),dG=Et("setDeviceWidth"),fG=Et("setUserError"),pG=Et("setUserIsError"),hG=Et("setUserPending"),mG=Et("setUserSuccess"),vG=Et("setUserData"),gG=Et("updateAccountData"),yG=Et("updateUser"),wG=Et("addNotification"),bG=Et("markNotification"),_G=Et("setNotificationsError"),xG=Et("setNotificationsList"),SG=Et("setNotificationsPending"),$G=Et("setNotificationsTotalCount"),IG=Et("setNotificationsUnreadCount"),CG=Et("acceptAllFollowRequests"),EG=Et("resetNotificationsState"),TG=Et("undoNotification"),RG=Et("setInstanceInfo"),PG=Et("setInstanceInfoPending"),OG=Et("setInstanceInfoError"),AG=Et("setPlatformSettings"),NG=Et("setProfileSettings");Et("setGroupData"),Et("setGroupLoading"),Et("requestLocalStorageGet"),Et("requestLocalStorageSet"),Et("requestLocalStorageRemove"),Et("requestLocalStorageClear"),Et("requestLocalStorageKeys"),Et("requestLocalStorageHas"),Et("sendLocalStorageResponse"),Et("sendLocalStorageChanged");const pv="8.48.0",Ol=globalThis;function $I(e,t,n){const r=Ol,o=r.__SENTRY__=r.__SENTRY__||{},i=o[pv]=o[pv]||{};return i[e]||(i[e]=t())}const ak=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,DG="Sentry Logger ",jP=["debug","info","warn","error","log","assert","trace"],zP={};function MG(e){if(!("console"in Ol))return e();const t=Ol.console,n={},r=Object.keys(zP);r.forEach((e=>{const r=zP[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}function kG(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return ak?jP.forEach((n=>{t[n]=(...t)=>{e&&MG((()=>{Ol.console[n](`${DG}[${n}]:`,...t)}))}})):jP.forEach((e=>{t[e]=()=>{}})),t}const qg=$I("logger",kG);function II(){return CI(Ol),Ol}function CI(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||pv,t[pv]=t[pv]||{}}const LG=Object.prototype.toString;function BG(e,t){return LG.call(e)===`[object ${t}]`}function FG(e){return BG(e,"Object")}function jG(e){return!(!e||!e.then||"function"!=typeof e.then)}function zG(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{ak&&qg.log(`Failed to add non-enumerable property "${t}" to object`,e)}}const sk=1e3;function uk(){return Date.now()/sk}function UG(){const{performance:e}=Ol;if(!e||!e.now)return uk;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/sk}const VG=UG();function Bh(){const e=Ol,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function WG(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||VG(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Bh()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function UP(){return Bh()}function VP(){return Bh().substring(16)}function lk(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const r={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=lk(r[e],t[e],n-1));return r}(()=>{const{performance:e}=Ol;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,a=e.timing&&e.timing.navigationStart,s="number"==typeof a?Math.abs(a+n-r):t;(i||s<t)&&(o<=s&&e.timeOrigin)})();const jS="_sentrySpan";function WP(e,t){t?zG(e,jS,t):delete e[jS]}function qP(e){return e[jS]}const qG=100;class EI{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:UP(),spanId:VP()}}clone(){const e=new EI;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,WP(e,qP(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&WG(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof Cv?[t.getScopeData(),t.getRequestSession()]:FG(t)?[e,e.requestSession]:[],{tags:o,extra:i,user:a,contexts:s,level:u,fingerprint:l=[],propagationContext:c}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...s},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),l.length&&(this._fingerprint=l),c&&(this._propagationContext=c),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,WP(this,void 0),this._attachments=[],this.setPropagationContext({traceId:UP()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:qG;if(n<=0)return this;const r={timestamp:uk(),...e},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:qP(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=lk(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:VP(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:Bh();if(!this._client)return qg.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:Bh();if(!this._client)return qg.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Bh();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(qg.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const Cv=EI;function GG(){return $I("defaultCurrentScope",(()=>new Cv))}function HG(){return $I("defaultIsolationScope",(()=>new Cv))}class KG{constructor(e,t){let n,r;n=e||new Cv,r=t||new Cv,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return jG(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function Vh(){const e=CI(II());return e.stack=e.stack||new KG(GG(),HG())}function YG(e){return Vh().withScope(e)}function QG(e,t){const n=Vh();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function GP(e){return Vh().withScope((()=>e(Vh().getIsolationScope())))}function XG(){return{withIsolationScope:GP,withScope:YG,withSetScope:QG,withSetIsolationScope:(e,t)=>GP(t),getCurrentScope:()=>Vh().getScope(),getIsolationScope:()=>Vh().getIsolationScope()}}function ck(e){const t=CI(e);return t.acs?t.acs:XG()}function dk(){return ck(II()).getCurrentScope()}function JG(){return ck(II()).getIsolationScope()}function ZG(e,t){return dk().captureException(e,void 0)}function eH(e,t){const n={captureContext:t};return dk().captureMessage(e,void 0,n)}function tH(e,t){JG().setExtra(e,t)}const nH=(...e)=>{let t="";for(const n of e){if(n instanceof Error){const e=n;return tH("exceptionMessage",t),void ZG(e)}if("object"!=typeof n)t+=n;else try{t+=" "+JSON.stringify(n)}catch{t+=" "+n}}eH(t)},H0=()=>"object"!=typeof window,rH="wlsy",fk=()=>{try{return window.localStorage}catch(e){console.warn("Error getting window.localStorage storage",e)}},oH=()=>{const e=new Set,t=fk();if(!t)return[];for(let n=0;n<(null==t?void 0:t.length);n+=1){const r=null==t?void 0:t.key(n);"string"==typeof r&&e.add(r)}return Array.from(e)},TI=e=>{const t=`${rH}${e?`:${e}`:""}`,n=e=>`${t}:${e}`,r=()=>oH().filter((e=>e.startsWith(`${t}:`))),o=e=>e.slice(t.length+1),i=fk(),a=e=>{try{return null==i?void 0:i.getItem(n(e))}catch{return null}},s=(e,t)=>{try{null==i||i.setItem(n(e),String(t))}catch{return}};return{getItem:a,setItem:s,removeItem:e=>{try{null==i||i.removeItem(n(e))}catch{return}},clear:()=>{try{r().forEach((e=>null==i?void 0:i.removeItem(e)))}catch{return}},keys:()=>r().map(o),has:e=>null!==a(e),getJSON:e=>{const t=a(e);if(null==t)return null;try{return JSON.parse(t)}catch{return null}},setJSON:(e,t)=>{try{s(e,JSON.stringify(t))}catch{return}}}},HP=["debug","info","warn","error"],iH=(e,t)=>{const n=HP.indexOf(e);return HP.indexOf(t)>=n},Bg=(e,t,n,...r)=>{iH(t,e)&&console.log(`[${e}] ${n}`,...r)},aH=()=>TI().getItem("logger_lvl"),sH=(e=(H0()?"info":aH()||"warn"))=>{let t=e;return{debug:(e,...n)=>Bg("debug",t,e,...n),info:(e,...n)=>Bg("info",t,e,...n),warn:(e,...n)=>Bg("warn",t,e,...n),error:(e,...n)=>(nH(e,...n),Bg("error",t,e,...n)),setLevel:e=>{t=e},getLevel:()=>t}},vp=sH(),uH=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 vp.warn(`Could not serialize action type: ${e.type}`,t),{type:e.type,payload:`[Non-serializable payload for action: ${e.type}]`}}},lH=({action:e,windowElement:t,whitelist:n})=>{if(t)try{const{type:r}=e;if(!n.some((({type:e})=>e===r||"*"===e)))return;const o=uH(e);t.postMessage(o,"*")}catch(e){vp.error("Failed to process or send message:",e)}},cH=({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,s=t.some((({type:e})=>e===r.data.type||"*"===e));!o&&i&&a&&s&&e(r.data)};return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}},KP=Dl("requestMicroFrontendFetch"),dH=Dl("sendMicroFrontendFetchResponse"),fH={deviceType:rG(),deviceWidth:window.innerWidth},pk=No({name:"ui",initialState:fH,reducers:{},extraReducers:e=>{e.addCase(cG,((e,{payload:t})=>{e.deviceType=t})),e.addCase(dG,((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,YP,fx,QP,px,XP,hx,JP,mx,ZP,vx,e2,gx,t2,yx,n2,wx,r2,bx,o2,_x,i2,xx,a2,Sx,s2,$x,u2,Ix,l2,Cx,c2,Ex,d2,Tx,f2,Rx,p2,Px,h2,Ox,m2,Ax,v2,Nx,g2,Dx,y2,Mx,w2,kx,b2,Lx,_2,Bx,x2,Fx,S2,jx,$2,zx,I2,Ux,C2,Vx,E2,Wx,T2,qx,R2,Gx,P2,Hx,O2,Kx,A2,Yx,N2,Qx,D2,Xx,M2;function hk(){if(YP)return dx;YP=1;var e=jA(),t=e&&new e;return dx=t}function mk(){if(QP)return fx;QP=1;var e=N$(),t=hk();return fx=t?function(e,n){return t.set(e,n),e}:e}function K0(){if(XP)return px;XP=1;var e=R0(),t=Es();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 pH(){if(JP)return hx;JP=1;var e=K0(),t=fi();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 vk(){if(ZP)return mx;ZP=1;var e=Math.max;return mx=function(t,n,r,o){for(var i=-1,a=t.length,s=r.length,u=-1,l=n.length,c=e(a-s,0),d=Array(l+c),f=!o;++u<l;)d[u]=n[u];for(;++i<s;)(f||i<a)&&(d[r[i]]=t[i]);for(;c--;)d[u++]=t[i++];return d}}function gk(){if(e2)return vx;e2=1;var e=Math.max;return vx=function(t,n,r,o){for(var i=-1,a=t.length,s=-1,u=r.length,l=-1,c=n.length,d=e(a-u,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(;++s<u;)(p||i<a)&&(f[m+r[s]]=t[i++]);return f}}function hH(){if(t2)return gx;return t2=1,gx=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}}function RI(){if(n2)return yx;return n2=1,yx=function(){}}function PI(){if(r2)return wx;r2=1;var e=R0(),t=RI();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 yk(){if(o2)return bx;o2=1;var e=hk(),t=g8();return bx=e?function(t){return e.get(t)}:t}function mH(){if(i2)return _x;i2=1;return _x={}}function vH(){if(a2)return xx;a2=1;var e=mH(),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],s=a.func;if(null==s||s==n)return a.name}return r}}function wk(){if(s2)return Sx;s2=1;var e=R0(),t=RI();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 gH(){if(u2)return $x;u2=1;var e=PI(),t=wk(),n=T0();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 yH(){if(l2)return Ix;l2=1;var e=PI(),t=wk(),n=RI(),r=Di(),o=da(),i=gH(),a=Object.prototype.hasOwnProperty;function s(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 s.prototype=n.prototype,s.prototype.constructor=s,Ix=s}function wH(){if(c2)return Cx;c2=1;var e=PI(),t=yk(),n=vH(),r=yH();return Cx=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 s=t(a);return!!s&&o===s[0]}}function bk(){if(d2)return Ex;d2=1;var e=mk(),t=qA()(e);return Ex=t}function bH(){if(f2)return Tx;f2=1;var e=/\{\n\/\* \[wrapped with (.+)\] \*/,t=/,? & /;return Tx=function(n){var r=n.match(e);return r?r[1].split(t):[]}}function _H(){if(p2)return Rx;p2=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 xH(){if(h2)return Px;h2=1;var e=k$(),t=v8(),n=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];return Px=function(r,o){return e(n,(function(e){var n="_."+e[0];o&e[1]&&!t(r,n)&&r.push(n)})),r.sort()}}function _k(){if(m2)return Ox;m2=1;var e=bH(),t=_H(),n=GA(),r=xH();return Ox=function(o,i,a){var s=i+"";return n(o,t(s,r(e(s),a)))}}function xk(){if(v2)return Ax;v2=1;var e=wH(),t=bk(),n=_k();return Ax=function(r,o,i,a,s,u,l,c,d,f){var p=8&o;o|=p?32:64,4&(o&=~(p?64:32))||(o&=-4);var m=[r,o,s,p?u:void 0,p?l:void 0,p?void 0:u,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 Sk(){if(g2)return Nx;return g2=1,Nx=function(e){return e.placeholder}}function SH(){if(y2)return Dx;y2=1;var e=T0(),t=T$(),n=Math.min;return Dx=function(r,o){for(var i=r.length,a=n(o.length,i),s=e(r);a--;){var u=o[a];r[a]=t(u,i)?s[u]:void 0}return r}}function OI(){if(w2)return Mx;w2=1;var e="__lodash_placeholder__";return Mx=function(t,n){for(var r=-1,o=t.length,i=0,a=[];++r<o;){var s=t[r];(s===n||s===e)&&(t[r]=e,a[i++]=r)}return a}}function $k(){if(b2)return kx;b2=1;var e=vk(),t=gk(),n=hH(),r=K0(),o=xk(),i=Sk(),a=SH(),s=OI(),u=fi();return kx=function l(c,d,f,p,m,h,g,v,y,b){var w=128&d,x=1&d,_=2&d,S=24&d,A=512&d,I=_?void 0:r(c);return function E(){for(var k=arguments.length,M=Array(k),C=k;C--;)M[C]=arguments[C];if(S)var N=i(E),P=n(M,N);if(p&&(M=e(M,p,m,S)),h&&(M=t(M,h,g,S)),k-=P,S&&k<b){var O=s(M,N);return o(c,d,l,E.placeholder,f,M,O,v,y,b-k)}var T=x?f:this,R=_?T[c]:c;return k=M.length,v?M=a(M,v):A&&k>1&&M.reverse(),w&&y<k&&(M.length=y),this&&this!==u&&this instanceof E&&(R=I||r(R)),R.apply(T,M)}},kx}function $H(){if(_2)return Lx;_2=1;var e=D$(),t=K0(),n=$k(),r=xk(),o=Sk(),i=OI(),a=fi();return Lx=function(s,u,l){var c=t(s);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(s,u,n,t.placeholder,void 0,f,h,void 0,void 0,l-d):e(this&&this!==a&&this instanceof t?c:s,this,f)}},Lx}function IH(){if(x2)return Bx;x2=1;var e=D$(),t=K0(),n=fi();return Bx=function(r,o,i,a){var s=1&o,u=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?u:r;++c<d;)f[c]=a[c];for(;l--;)f[c++]=arguments[++o];return e(p,s?i:this,f)}},Bx}function CH(){if(S2)return Fx;S2=1;var e=vk(),t=gk(),n=OI(),r="__lodash_placeholder__",o=128,i=Math.min;return Fx=function(a,s){var u=a[1],l=s[1],c=u|l,d=c<131,f=l==o&&8==u||l==o&&256==u&&a[7].length<=s[8]||384==l&&s[7].length<=s[8]&&8==u;if(!d&&!f)return a;1&l&&(a[2]=s[2],c|=1&u?0:4);var p=s[3];if(p){var m=a[3];a[3]=m?e(m,p,s[4]):p,a[4]=m?n(a[3],r):s[4]}return(p=s[5])&&(m=a[5],a[5]=m?t(m,p,s[6]):p,a[6]=m?n(a[5],r):s[6]),(p=s[7])&&(a[7]=p),l&o&&(a[8]=null==a[8]?s[8]:i(a[8],s[8])),null==a[9]&&(a[9]=s[9]),a[0]=s[0],a[1]=c,a}}function AI(){if($2)return jx;$2=1;var e=mk(),t=pH(),n=$H(),r=$k(),o=IH(),i=yk(),a=CH(),s=bk(),u=_k(),l=QA(),c=Math.max;return jx=function(d,f,p,m,h,g,v,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),v=void 0===v?v:c(l(v),0),y=void 0===y?y:l(y),w-=h?h.length:0,64&f){var x=m,_=h;m=h=void 0}var S=b?void 0:i(d),A=[d,f,p,m,h,x,_,g,v,y];if(S&&a(A,S),d=A[0],f=A[1],p=A[2],m=A[3],h=A[4],!(y=A[9]=void 0===A[9]?b?0:d.length:c(A[9]-w,0))&&24&f&&(f&=-25),f&&1!=f)I=8==f||16==f?n(d,f,y):32!=f&&33!=f||h.length?r.apply(void 0,A):o(d,f,p,m);else var I=t(d,f,p);return u((S?e:s)(I,A),d,f)}}function EH(){if(I2)return zx;I2=1;var e=AI();return zx=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 TH(){if(C2)return Ux;C2=1;var e=eN();return Ux=function(t){return e(t,4)}}function RH(){if(E2)return Vx;E2=1;var e=AI();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={},Vx=t}function PH(){if(T2)return Wx;T2=1;var e=Ml(),t=da(),n=B8();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 OH(){if(R2)return qx;R2=1;var e=Lv(),t=da();return qx=function(n){return t(n)&&"[object WeakMap]"==e(n)}}function AH(){if(P2)return Gx;P2=1;var e=eN(),t=d8();return Gx=function(n){return t("function"==typeof n?n:e(n,1))}}function NH(){if(O2)return Hx;O2=1;var e=AI(),t=i9(),n=t((function(t,n){return e(t,256,void 0,void 0,void 0,n)}));return Hx=n}function DH(){if(A2)return Kx;A2=1;var e=$A(),t=T0(),n=Di(),r=Mv(),o=SA(),i=kv(),a=IA();return Kx=function(s){return n(s)?e(s,i):r(s)?[s]:t(o(a(s)))}}function MH(){return N2||(N2=1,Yx={ary:EH(),assign:JA(),clone:TH(),curry:RH(),forEach:k$(),isArray:Di(),isError:PH(),isFunction:_0(),isWeakMap:OH(),iteratee:AH(),keys:LA(),rearg:NH(),toInteger:QA(),toPath:DH()}),Yx}function kH(){if(D2)return Qx;D2=1;var e=vO(),t=MH();return Qx=function(n,r,o){return e(t,n,r,o)}}function LH(){if(M2)return Xx;M2=1;var e=kH()("debounce",KA());return e.placeholder=mO(),Xx=e}LH();const BH=()=>e$(pk.selectors.selectIsMobile);function k2({className:e,...t}){return G.jsx("div",{className:xe("animate-pulse rounded-md bg-muted",e),...t})}const FH="sidebar_state",jH=604800,zH="12rem",UH="18rem",VH="2rem",WH="b",Ik=M.createContext(null);function Y0(){const e=M.useContext(Ik);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const qH=M.forwardRef((({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:i,...a},s)=>{const u=BH(),[l,c]=M.useState(!1),[d,f]=M.useState(e),p=t??d,m=M.useCallback((e=>{const t="function"==typeof e?e(p):e;n?n(t):f(t),document.cookie=`${FH}=${t}; path=/; max-age=${jH}`}),[n,p]),h=M.useCallback((()=>u?c((e=>!e)):m((e=>!e))),[u,m,c]);M.useEffect((()=>{const e=e=>{e.key===WH&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),h())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[h]);const g=p?"expanded":"collapsed",v=M.useMemo((()=>({state:g,open:p,setOpen:m,isMobile:u,openMobile:l,setOpenMobile:c,toggleSidebar:h})),[g,p,m,u,l,c,h]);return G.jsx(Ik.Provider,{value:v,children:G.jsx(Lq,{delayDuration:0,children:G.jsx("div",{style:{"--sidebar-width":zH,"--sidebar-width-icon":VH,...o},className:xe("group/sidebar-wrapper flex min-h-svh w-full bg-gray-100 has-[[data-variant=inset]]:bg-sidebar",r),ref:s,...a,children:i})})})}));qH.displayName="SidebarProvider";const GH=M.forwardRef((({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...i},a)=>{const{isMobile:s,state:u,openMobile:l,setOpenMobile:c}=Y0();return"none"===n?G.jsx("div",{className:xe("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:a,...i,children:o}):s?G.jsx(Oq,{open:l,onOpenChange:c,children:G.jsxs(JM,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":UH},side:e,children:[G.jsxs(ZM,{className:"sr-only",children:[G.jsx(ek,{children:"Sidebar"}),G.jsx(tk,{children:"Displays the mobile sidebar."})]}),G.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):G.jsxs("div",{ref:a,className:"group peer hidden text-sidebar-foreground md:block","data-state":u,"data-collapsible":"collapsed"===u?n:"","data-variant":t,"data-side":e,children:[G.jsx("div",{className:xe("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]")}),G.jsx("div",{className:xe("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:G.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})})]})}));GH.displayName="Sidebar";const HH=M.forwardRef((({className:e,onClick:t,...n},r)=>{const{toggleSidebar:o,open:i}=Y0();return G.jsx(f0,{ref:r,"data-sidebar":"trigger",variant:"tertiary",size:"icon_m",className:xe("size-6 text-gray-900",e),onClick:e=>{null==t||t(e),o()},...n,children:i?G.jsx(TL,{size:16}):G.jsx(CL,{size:16})})}));HH.displayName="SidebarTrigger";const KH=M.forwardRef((({className:e,...t},n)=>{const{toggleSidebar:r}=Y0();return G.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:xe("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 YH=M.forwardRef((({className:e,...t},n)=>G.jsx("main",{ref:n,className:xe("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})));YH.displayName="SidebarInset";const QH=M.forwardRef((({className:e,...t},n)=>G.jsx(kM,{ref:n,"data-sidebar":"input",className:xe("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t})));QH.displayName="SidebarInput";const XH=M.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"header",className:xe("flex flex-col gap-xxs p-xs",e),...t})));XH.displayName="SidebarHeader";const JH=M.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"footer",className:xe("flex flex-col gap-2 p-2",e),...t})));JH.displayName="SidebarFooter";const ZH=M.forwardRef((({className:e,...t},n)=>G.jsx(cI,{ref:n,"data-sidebar":"separator",className:xe("mx-2 w-auto bg-sidebar-border",e),...t})));ZH.displayName="SidebarSeparator";const eK=M.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"content",className:xe("flex min-h-0 flex-1 flex-col gap-xxxs overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})));eK.displayName="SidebarContent";const tK=M.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"group",className:xe("relative flex w-full min-w-0 flex-col pt-xs",e),...t})));tK.displayName="SidebarGroup";const nK=M.forwardRef((({className:e,asChild:t=!1,...n},r)=>{const o=t?Sd:"div";return G.jsx(o,{ref:r,"data-sidebar":"group-label",className:xe("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})}));nK.displayName="SidebarGroupLabel";const rK=M.forwardRef((({className:e,asChild:t=!1,...n},r)=>{const o=t?Sd:"button";return G.jsx(o,{ref:r,"data-sidebar":"group-action",className:xe("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})}));rK.displayName="SidebarGroupAction";const oK=M.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"group-content",className:xe("w-full text-sm",e),...t})));oK.displayName="SidebarGroupContent";const iK=M.forwardRef((({className:e,...t},n)=>G.jsx("ul",{ref:n,"data-sidebar":"menu",className:xe("flex w-full min-w-0 flex-col p-xs font-semibold text-gray-700 [&_svg]:size-4",e),...t})));iK.displayName="SidebarMenu";const aK=M.forwardRef((({className:e,...t},n)=>G.jsx("li",{ref:n,"data-sidebar":"menu-item",className:xe("group/menu-item relative",e),...t})));aK.displayName="SidebarMenuItem";const sK=xu("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"}}),uK=M.forwardRef((({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:i,...a},s)=>{const u=e?Sd:"button",{isMobile:l,state:c}=Y0(),d=G.jsx(u,{ref:s,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:xe(sK({variant:n,size:r}),i),...a});return o?("string"==typeof o&&(o={children:o}),G.jsxs(Fq,{children:[G.jsx(jq,{asChild:!0,children:d}),G.jsx(rk,{side:"right",align:"center",hidden:"collapsed"!==c||l,...o})]})):d}));uK.displayName="SidebarMenuButton";const lK=M.forwardRef((({className:e,asChild:t=!1,showOnHover:n=!1,...r},o)=>{const i=t?Sd:"button";return G.jsx(i,{ref:o,"data-sidebar":"menu-action",className:xe("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})}));lK.displayName="SidebarMenuAction";const cK=M.forwardRef((({className:e,...t},n)=>G.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:xe("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})));cK.displayName="SidebarMenuBadge";const dK=M.forwardRef((({className:e,showIcon:t=!1,...n},r)=>{const o=M.useMemo((()=>`${Math.floor(40*Math.random())+50}%`),[]);return G.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:xe("flex h-8 items-center gap-xxs rounded-md px-xxs",e),...n,children:[t&&G.jsx(k2,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),G.jsx(k2,{className:"h-xxxs max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})}));dK.displayName="SidebarMenuSkeleton";const fK=M.forwardRef((({className:e,...t},n)=>G.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:xe("flex min-w-0 translate-x-px flex-col gap-xxxs border-l border-sidebar-border","group-data-[collapsible=icon]:hidden",e),...t})));fK.displayName="SidebarMenuSub";const pK=M.forwardRef((({...e},t)=>G.jsx("li",{ref:t,...e})));pK.displayName="SidebarMenuSubItem";const hK=M.forwardRef((({asChild:e=!1,size:t="md",isActive:n,className:r,...o},i)=>{const a=e?Sd:"a";return G.jsx(a,{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:xe("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})}));hK.displayName="SidebarMenuSubButton";const Ck="Switch",[mK,wJ]=di(Ck),[vK,gK]=mK(Ck),yK=Fe(((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:u="on",onCheckedChange:l,...c}=e,[d,f]=lt(null),p=Zt(t,(e=>f(e))),m=Ge(!1),h=!d||!!d.closest("form"),[g=!1,v]=gd({prop:o,defaultProp:i,onChange:l});return se(vK,{scope:n,checked:g,disabled:s},se(gt.button,Ae({type:"button",role:"switch","aria-checked":g,"aria-required":a,"data-state":Ek(g),"data-disabled":s?"":void 0,disabled:s,value:u},c,{ref:p,onClick:it(e.onClick,(e=>{v((e=>!e)),h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))})),h&&se(_K,{control:d,bubbles:!m.current,name:r,value:u,checked:g,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))})),wK="SwitchThumb",bK=Fe(((e,t)=>{const{__scopeSwitch:n,...r}=e,o=gK(wK,n);return se(gt.span,Ae({"data-state":Ek(o.checked),"data-disabled":o.disabled?"":void 0},r,{ref:t}))})),_K=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=Ge(null),a=P0(n),s=O0(t);return Qe((()=>{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]),se("input",Ae({type:"checkbox","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Ek(e){return e?"checked":"unchecked"}const Tk=yK,xK=bK,SK=M.forwardRef((({className:e,...t},n)=>G.jsx(Tk,{className:xe("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:G.jsx(xK,{className:xe("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})})})));SK.displayName=Tk.displayName;var NI=Symbol.for("immer-nothing"),hv=Symbol.for("immer-draftable"),Ai=Symbol.for("immer-state");function Do(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var tp=Object.getPrototypeOf;function Al(e){return!!e&&!!e[Ai]}function Nl(e){var t;return!!e&&(Rk(e)||Array.isArray(e)||!!e[hv]||!(null==(t=e.constructor)||!t[hv])||Wv(e)||qv(e))}var $K=Object.prototype.constructor.toString();function Rk(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)===$K}function IK(e){return Al(e)||Do(15,e),e[Ai].base_}function Wh(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[Ai];return t?t.type_:Array.isArray(e)?1:Wv(e)?2:qv(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 Pk(e,t,n){const r=np(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function CK(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Wv(e){return e instanceof Map}function qv(e){return e instanceof Set}function Ff(e){return e.copy_||e.base_}function zS(e,t){if(Wv(e))return new Map(e);if(qv(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Rk(e))return tp(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Ai];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 DI(e,t=!1){return Q0(e)||Al(e)||!Nl(e)||(np(e)>1&&(e.set=e.add=e.clear=e.delete=EK),Object.freeze(e),t&&Wh(e,((e,t)=>DI(t,!0)))),e}function EK(){Do(2)}function Q0(e){return Object.isFrozen(e)}var Tv,US={};function rp(e){const t=US[e];return t||Do(0,e),t}function TK(e,t){US[e]||(US[e]=t)}function Ok(){return Tv}function RK(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function L2(e,t){t&&(rp("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function VS(e){WS(e),e.drafts_.forEach(PK),e.drafts_=null}function WS(e){e===Tv&&(Tv=e.parent_)}function B2(e){return Tv=RK(Tv,e)}function PK(e){const t=e[Ai];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function F2(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[Ai].modified_&&(VS(t),Do(4)),Nl(e)&&(e=u0(t,e),t.parent_||l0(t,e)),t.patches_&&rp("Patches").generateReplacementPatches_(n[Ai].base_,e,t.patches_,t.inversePatches_)):e=u0(t,n,[]),VS(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==NI?e:void 0}function u0(e,t,n){if(Q0(t))return t;const r=t[Ai];if(!r)return Wh(t,((o,i)=>j2(e,r,t,o,i,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return l0(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),Wh(o,((o,a)=>j2(e,r,t,o,a,n,i))),l0(e,t,!1),n&&e.patches_&&rp("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function j2(e,t,n,r,o,i,a){if(Al(o)){const a=u0(e,o,i&&t&&3!==t.type_&&!Ev(t.assigned_,r)?i.concat(r):void 0);if(Pk(n,r,a),!Al(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(Nl(o)&&!Q0(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;u0(e,o),(!t||!t.scope_.parent_)&&l0(e,o)}}function l0(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&DI(t,n)}function OK(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Ok(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=MI;n&&(o=[r],i=Rv);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}var MI={get(e,t){if(t===Ai)return e;const n=Ff(e);if(!Ev(n,t))return AK(e,n,t);const r=n[t];return e.finalized_||!Nl(r)?r:r===Zx(e.base_,t)?(eS(e),e.copy_[t]=GS(r,e)):r},has:(e,t)=>t in Ff(e),ownKeys:e=>Reflect.ownKeys(Ff(e)),set(e,t,n){const r=Ak(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[Ai];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(CK(n,r)&&(void 0!==n||Ev(e.base_,t)))return!0;eS(e),qS(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),qS(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(){Do(11)},getPrototypeOf:e=>tp(e.base_),setPrototypeOf(){Do(12)}},Rv={};function Zx(e,t){const n=e[Ai];return(n?Ff(n):e)[t]}function AK(e,t,n){var r;const o=Ak(t,n);return o?"value"in o?o.value:null==(r=o.get)?void 0:r.call(e.draft_):void 0}function Ak(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 qS(e){e.modified_||(e.modified_=!0,e.parent_&&qS(e.parent_))}function eS(e){e.copy_||(e.copy_=zS(e.base_,e.scope_.immer_.useStrictShallowCopy_))}Wh(MI,((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 MI.set.call(this,e[0],t,n,e[0])};var NK=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&&Do(6),void 0!==n&&"function"!=typeof n&&Do(7),Nl(e)){const o=B2(this),i=GS(e,void 0);let a=!0;try{r=t(i),a=!1}finally{a?VS(o):WS(o)}return L2(o,n),F2(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===NI&&(r=void 0),this.autoFreeze_&&DI(r,!0),n){const t=[],o=[];rp("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}Do(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){Nl(e)||Do(8),Al(e)&&(e=DK(e));const t=B2(this),n=GS(e,void 0);return n[Ai].isManual_=!0,WS(t),n}finishDraft(e,t){const n=e&&e[Ai];(!n||!n.isManual_)&&Do(9);const{scope_:r}=n;return L2(r,t),F2(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 Al(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function GS(e,t){const n=Wv(e)?rp("MapSet").proxyMap_(e,t):qv(e)?rp("MapSet").proxySet_(e,t):OK(e,t);return(t?t.scope_:Ok()).drafts_.push(n),n}function DK(e){return Al(e)||Do(10,e),Nk(e)}function Nk(e){if(!Nl(e)||Q0(e))return e;const t=e[Ai];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=zS(e,t.scope_.immer_.useStrictShallowCopy_)}else n=zS(e,!0);return Wh(n,((e,t)=>{Pk(n,e,Nk(t))})),t&&(t.finalized_=!1),n}function MK(){const e="replace",t="remove";function n(e){if(!Nl(e))return e;if(Array.isArray(e))return e.map(n);if(Wv(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,n(t)])));if(qv(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 Al(e)?n(e):e}TK("Patches",{applyPatches_:function(r,o){return o.forEach((o=>{const{path:i,op:a}=o;let s=r;for(let e=0;e<i.length-1;e++){const t=np(s);let n=i[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&Do(19),"function"==typeof s&&"prototype"===n&&Do(19),s=Jx(s,n),"object"!=typeof s&&Do(18,i.join("/"))}const u=np(s),l=n(o.value),c=i[i.length-1];switch(a){case e:switch(u){case 2:return s.set(c,l);case 3:Do(16);default:return s[c]=l}case"add":switch(u){case 1:return"-"===c?s.push(l):s.splice(c,0,l);case 2:return s.set(c,l);case 3:return s.add(l);default:return s[c]=l}case t:switch(u){case 1:return s.splice(c,1);case 2:return s.delete(c);case 3:return s.delete(o.value);default:return delete s[c]}default:Do(17,a)}})),r},generatePatches_:function(n,o,i,a){switch(n.type_){case 0:case 2:return function(n,o,i,a){const{base_:s,copy_:u}=n;Wh(n.assigned_,((n,l)=>{const c=Jx(s,n),d=Jx(u,n),f=l?Ev(s,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_:s,assigned_:u}=n,l=n.copy_;l.length<s.length&&([s,l]=[l,s],[i,a]=[a,i]);for(let t=0;t<s.length;t++)if(u[t]&&l[t]!==s[t]){const n=o.concat([t]);i.push({op:e,path:n,value:r(l[t])}),a.push({op:e,path:n,value:r(s[t])})}for(let e=s.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;s.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,s=0;i.forEach((e=>{if(!a.has(e)){const i=n.concat([s]);r.push({op:t,path:i,value:e}),o.unshift({op:"add",path:i,value:e})}s++})),s=0,a.forEach((e=>{if(!i.has(e)){const i=n.concat([s]);r.push({op:"add",path:i,value:e}),o.unshift({op:t,path:i,value:e})}s++}))}(n,o,i,a)}},generateReplacementPatches_:function(t,n,r,o){r.push({op:e,path:[],value:n===NI?void 0:n}),o.push({op:e,path:[],value:t})}})}var la=new NK;la.produce;var Dk=la.produceWithPatches.bind(la);la.setAutoFreeze.bind(la),la.setUseStrictShallowCopy.bind(la);var z2=la.applyPatches.bind(la);function kK(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function LK(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function BK(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}]`)}}la.createDraft.bind(la),la.finishDraft.bind(la);var U2=e=>Array.isArray(e)?e:[e];function FK(e){const t=Array.isArray(e[0])?e[0]:e;return BK(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function jK(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var zK=class{constructor(e){this.value=e}deref(){return this.value}},UK=typeof WeakRef<"u"?WeakRef:zK,VK=0,V2=1;function Fg(){return{s:VK,v:void 0,o:null,p:null}}function c0(e,t={}){let n=Fg();const{resultEqualityCheck:r}=t;let o,i=0;function a(){var t;let a=n;const{length:s}=arguments;for(let e=0,t=s;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=Fg(),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=Fg(),e.set(t,a)):a=n}}const u=a;let l;if(a.s===V2?l=a.v:(l=e.apply(null,arguments),i++),u.s=V2,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 UK(l):l}return u.v=l,l}return a.clearCache=()=>{n=Fg(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function WK(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()),kK(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const s={...n,...i},{memoize:u,memoizeOptions:l=[],argsMemoize:c=c0,argsMemoizeOptions:d=[],devModeChecks:f={}}=s,p=U2(l),m=U2(d),h=FK(e),g=u((function(){return r++,a.apply(null,arguments)}),...p),v=c((function(){o++;const e=jK(h,arguments);return t=g.apply(null,e),t}),...m);return Object.assign(v,{resultFunc:a,memoizedResultFunc:g,dependencies:h,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:u,argsMemoize:c})};return Object.assign(r,{withTypes:()=>r}),r}var Mk=WK(c0),qK=Object.assign(((e,t=Mk)=>{LK(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:()=>qK}),GK={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/system-toast/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/system-toast/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:"83a38ef918ce9595",NODE:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_package_name:"@wellesley/system-toast",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.183",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/system-toast",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/system-toast",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"3762",APP_NAME:"@wellesley/system-toast"},kk=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(kk||{});function HK(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function KK(e){return new RegExp("(^|:)//").test(e)}var YK=e=>e.replace(/\/$/,""),QK=e=>e.replace(/^\//,"");function XK(e,t){if(!e)return t;if(!t)return e;if(KK(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=YK(e)}${n}${t=QK(t)}`}var W2=e=>[].concat(...e);function JK(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function ZK(){return typeof document>"u"||"hidden"!==document.visibilityState}var q2=Gf;function Lk(e,t){if(e===t||!(q2(e)&&q2(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]=Lk(e[r],t[r]),o&&(o=e[r]===i[r]);return o?e:i}var G2=(...e)=>fetch(...e),eY=e=>e.status>=200&&e.status<=299,tY=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function H2(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 nY({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=G2,paramsSerializer:r,isJsonContentType:o=tY,jsonContentType:i="application/json",jsonReplacer:a,timeout:s,responseHandler:u,validateStatus:l,...c}={}){return typeof fetch>"u"&&n===G2&&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:g,endpoint:v,forced:y,type:b}=p;let w,{url:x,headers:_=new Headers(c.headers),params:S,responseHandler:A=u??"json",validateStatus:I=l??eY,timeout:E=s,...k}="string"==typeof f?{url:f}:f,M={...c,signal:m,...k};_=new Headers(H2(_)),M.headers=await t(_,{getState:h,extra:g,endpoint:v,forced:y,type:b})||_;const C=e=>"object"==typeof e&&(Gf(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!M.headers.has("content-type")&&C(M.body)&&M.headers.set("content-type",i),C(M.body)&&o(M.headers)&&(M.body=JSON.stringify(M.body,a)),S){const e=~x.indexOf("?")?"&":"?";x+=e+(r?r(S):new URLSearchParams(H2(S)))}x=XK(e,x);const N=new Request(x,M);w={request:new Request(x,M)};let P,O=!1,T=E&&setTimeout((()=>{O=!0,p.abort()}),E);try{P=await n(N)}catch(e){return{error:{status:O?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:w}}finally{T&&clearTimeout(T)}const R=P.clone();w.response=R;let D,j="";try{let e;if(await Promise.all([d(P,A).then((e=>D=e),(t=>e=t)),R.text().then((e=>j=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:P.status,data:j,error:String(e)},meta:w}}return I(P,D)?{data:D,meta:w}:{error:{status:P.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 K2=class{constructor(e,t=void 0){this.value=e,this.meta=t}},kI=Dl("__rtkq/focused"),Bk=Dl("__rtkq/unfocused"),LI=Dl("__rtkq/online"),Fk=Dl("__rtkq/offline");function jk(e){return"query"===e.type}function rY(e){return"mutation"===e.type}function BI(e,t,n,r,o,i){return oY(e)?e(t,n,r,o).map(HS).map(i):Array.isArray(e)?e.map(HS).map(i):[]}function oY(e){return"function"==typeof e}function HS(e){return"string"==typeof e?{type:e}:e}function Y2(e){return null!=e}function Fh(e){let t=0;for(const n in e)t++;return t}function iY(e,t){return e.catch(t)}var Pv=Symbol("forceQueryFn"),KS=e=>"function"==typeof e[Pv];function aY({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:o}){const i=new Map,a=new Map,{unsubscribeQueryResult:s,removeMutationResult:u,updateSubscriptionOptions:l}=r.internalActions;return{buildInitiateQuery:function(n,o){const a=(u,{subscribe:c=!0,forceRefetch:d,subscriptionOptions:f,[Pv]:p,...m}={})=>(h,g)=>{var v;const y=e({queryArgs:u,endpointDefinition:o,endpointName:n}),b=t({...m,type:"query",subscribe:c,forceRefetch:d,subscriptionOptions:f,endpointName:n,originalArgs:u,queryCacheKey:y,[Pv]:p}),w=r.endpoints[n].select(u),x=h(b),_=w(g()),{requestId:S,abort:A}=x,I=_.requestId!==S,E=null==(v=i.get(h))?void 0:v[y],k=()=>w(g()),M=Object.assign(p?x.then(k):I&&!E?Promise.resolve(_):Promise.all([E,x]).then(k),{arg:u,requestId:S,subscriptionOptions:f,queryCacheKey:y,abort:A,async unwrap(){const e=await M;if(e.isError)throw e.error;return e.data},refetch:()=>h(a(u,{subscribe:!1,forceRefetch:!0})),unsubscribe(){c&&h(s({queryCacheKey:y,requestId:S}))},updateSubscriptionOptions(e){M.subscriptionOptions=e,h(l({endpointName:n,requestId:S,queryCacheKey:y,options:e}))}});if(!E&&!I&&!p){const e=i.get(h)||{};e[y]=M,i.set(h,e),M.then((()=>{delete e[y],Fh(e)||i.delete(h)}))}return M};return a},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:o}={})=>(i,s)=>{const l=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:o}),c=i(l),{requestId:d,abort:f,unwrap:p}=c,m=iY(c.unwrap().then((e=>({data:e}))),(e=>({error:e}))),h=Object.assign(m,{arg:c.arg,requestId:d,abort:f,unwrap:p,reset:()=>{i(u({requestId:d,fixedCacheKey:o}))}}),g=a.get(i)||{};return a.set(i,g),g[d]=h,h.then((()=>{delete g[d],Fh(g)||a.delete(i)})),o&&(g[o]=h,h.then((()=>{g[o]===h&&(delete g[o],Fh(g)||a.delete(i))}))),h}},getRunningQueryThunk:function(t,n){return r=>{var a;const s=o.endpointDefinitions[t],u=e({queryArgs:n,endpointDefinition:s,endpointName:t});return null==(a=i.get(r))?void 0:a[u]}},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(Y2)},getRunningMutationsThunk:function(){return e=>Object.values(a.get(e)||{}).filter(Y2)}}}function Q2(e){return e}function sY({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:u,getState:l,extra:c})=>{const d=n[e.endpointName];try{let n,i=Q2;const f={signal:r,abort:o,dispatch:u,getState:l,extra:c,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?s(e,l()):void 0},p="query"===e.type?e[Pv]: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"&&GK.NODE_ENV,n.error)throw new K2(n.error,n.meta);return a(await i(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[wg]:!0})}catch(t){let n=t;if(n instanceof K2){let t=Q2;d.query&&d.transformErrorResponse&&(t=d.transformErrorResponse);try{return i(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[wg]:!0})}catch(e){n=e}}throw console.error(n),n}};function s(t,n){var r,o,i;const a=null==(o=null==(r=n[e])?void 0:r.queries)?void 0:o[t.queryCacheKey],s=null==(i=n[e])?void 0:i.config.refetchOnMountOrArgChange,u=null==a?void 0:a.fulfilledTimeStamp,l=t.forceRefetch??(t.subscribe&&s);return!!l&&(!0===l||(Number(new Date)-Number(u))/1e3>=l)}const u=KI(`${e}/executeQuery`,a,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[wg]:!0}),condition(t,{getState:r}){var o,i,a;const u=r(),l=null==(i=null==(o=u[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!!KS(t)||"pending"!==(null==l?void 0:l.status)&&(!!(s(t,u)||jk(p)&&null!=(a=null==p?void 0:p.forceRefetch)&&a.call(p,{currentArg:d,previousArg:f,endpointState:l,state:u}))||!c)},dispatchConditionRejection:!0}),l=KI(`${e}/executeMutation`,a,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[wg]:!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:u,mutationThunk:l,prefetch:(e,t,n)=>(r,i)=>{const a=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,u=(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(u());else if(s){const e=null==l?void 0:l.fulfilledTimeStamp;if(!e)return void r(u());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(u())}else r(u(!1))},updateQueryData:(e,t,n,r=!0)=>(i,a)=>{const s=o.endpoints[e].select(t)(a());let u,l={patches:[],inversePatches:[],undo:()=>i(o.util.patchQueryData(e,t,l.inversePatches,r))};if("uninitialized"===s.status)return l;if("data"in s)if(Nl(s.data)){const[e,t,r]=Dk(s.data,n);l.patches.push(...t),l.inversePatches.push(...r),u=e}else u=n(s.data),l.patches.push({op:"replace",path:[],value:u}),l.inversePatches.push({op:"replace",path:[],value:s.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,[Pv]:()=>({data:n})})),patchQueryData:(e,t,a,s)=>(u,l)=>{const c=n[e],d=r({queryArgs:t,endpointDefinition:c,endpointName:e});if(u(o.internalActions.queryResultPatched({queryCacheKey:d,patches:a})),!s)return;const f=o.endpoints[e].select(t)(l()),p=BI(c.providesTags,f.data,void 0,t,{},i);u(o.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:$1(pO(e),c(t)),matchFulfilled:$1(Hf(e),c(t)),matchRejected:$1(JS(e),c(t))}}}}function zk(e,t,n,r){return BI(n[e.meta.arg.endpointName][t],Hf(e)?e.payload:void 0,XS(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 X2(e,t,n){const r=e[Ov(t)];r&&n(r)}var ev={};function uY({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:o,extractRehydrationInfo:i,hasRehydrationInfo:a},assertTagType:s,config:u}){const l=Dl(`${e}/resetApiState`),c=No({name:`${e}/queries`,initialState:ev,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Hm()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){jg(e,t,(e=>{e.data=z2(e.data,n.concat())}))},prepare:Hm()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const o=KS(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&&!KS(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:s}=t;let u=ZS(e.data,(e=>o(e,n,{arg:i.originalArgs,baseQueryMeta:a,fulfilledTimeStamp:r,requestId:s})));e.data=u}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?Lk(Al(e.data)?IK(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=No({name:`${e}/mutations`,initialState:ev,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=Ov(t);n in e&&delete e[n]},prepare:Hm()}},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&&X2(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&&X2(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=No({name:`${e}/invalidation`,initialState:ev,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:Hm()}},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(uS(Hf(t),XS(t)),((e,t)=>{const n=zk(t,"providesTags",r,s),{queryCacheKey:o}=t.meta.arg;f.caseReducers.updateProvidedBy(e,f.actions.updateProvidedBy({queryCacheKey:o,providedTags:n}))}))}}),p=No({name:`${e}/subscriptions`,initialState:ev,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),m=No({name:`${e}/internalSubscriptions`,initialState:ev,reducers:{subscriptionsUpdated:{reducer:(e,t)=>z2(e,t.payload),prepare:Hm()}}}),h=No({name:`${e}/config`,initialState:{online:JK(),focused:ZK(),middlewareRegistered:!1,...u},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&o===t||"conflict"}},extraReducers:e=>{e.addCase(LI,(e=>{e.online=!0})).addCase(Fk,(e=>{e.online=!1})).addCase(kI,(e=>{e.focused=!0})).addCase(Bk,(e=>{e.focused=!1})).addMatcher(a,(e=>({...e})))}}),g=y3({queries:c.reducer,mutations:d.reducer,provided:f.reducer,subscriptions:m.reducer,config:h.reducer});return{reducer:(e,t)=>g(l.match(t)?void 0:e,t),actions:{...h.actions,...c.actions,...p.actions,...m.actions,...d.actions,...f.actions,resetApiState:l}}}var Vf=Symbol.for("RTKQ/skipToken"),Uk={status:"uninitialized"},J2=ZS(Uk,(()=>{})),Z2=ZS(Uk,(()=>{}));function lY({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>J2,o=e=>Z2;return{buildQuerySelector:function(t,o){return s=>{const u=e({queryArgs:s,endpointDefinition:o,endpointName:t});return n(s===Vf?r:e=>{var t,n;return(null==(n=null==(t=a(e))?void 0:t.queries)?void 0:n[u])??J2},i)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Ov(e)??Vf:e,n(t===Vf?o:e=>{var n,r;return(null==(r=null==(n=a(e))?void 0:n.mutations)?void 0:r[t])??Z2},i)}},selectInvalidatedBy:function(e,n){const r=e[t],o=new Set;for(const e of n.map(HS)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:W2(Object.values(t)))??[];for(const e of n)o.add(e)}return W2(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,...HK(e.status)}}function a(e){return e[t]}}var Nh=WeakMap?new WeakMap:void 0,eO=({endpointName:e,queryArgs:t})=>{let n="";const r=null==Nh?void 0:Nh.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==Nh||Nh.set(t,e)),n=e}return`${e}(${n})`};function cY(...e){return function(t){const n=c0((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=eO;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:eO({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},o={endpointDefinitions:{},batch(e){e()},apiUid:g3(),extractRehydrationInfo:n,hasRehydrationInfo:c0((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(fO(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 dY(e){for(let t in e)return!1;return!0}var fY=2147482.647,pY=({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&&!dY(t)}const s={};function u(e,t,r,i){const u=n.endpointDefinitions[t],l=(null==u?void 0:u.keepUnusedDataFor)??i.keepUnusedDataFor;if(l===1/0)return;const c=Math.max(0,Math.min(l,fY));if(!a(e)){const t=s[e];t&&clearTimeout(t),s[e]=setTimeout((()=>{a(e)||r.dispatch(o({queryCacheKey:e})),delete s[e]}),1e3*c)}}return(r,o,a)=>{var l;if(i.match(r)){const t=o.getState()[e],{queryCacheKey:n}=r.payload;u(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(s))t&&clearTimeout(t),delete s[e];if(n.hasRehydrationInfo(r)){const t=o.getState()[e],{queries:i}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(i))u(e,null==n?void 0:n.endpointName,o,t.config)}}},hY=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:i,assertTagType:a,refetchQuery:s,internalState:u})=>{const{removeQueryResult:l}=i.internalActions,c=uS(Hf(r),XS(r)),d=uS(Hf(r,o),JS(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=u.currentSubscriptions[t]??{};e&&(0===Fh(n)?r.dispatch(l({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(s(e,t)))}}))}return(e,t)=>{c(e)?p(zk(e,"invalidatesTags",n,a),t):d(e)?p([],t):i.util.invalidateTags.match(e)&&p(BI(e.payload,void 0,void 0,void 0,void 0,a),t)}},mY=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:o})=>{const i={};function a({queryCacheKey:t},n){const s=n.getState()[e],u=s.queries[t],c=o.currentSubscriptions[t];if(!u||"uninitialized"===u.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((()=>{(s.config.focused||!f)&&n.dispatch(r(u,t)),a({queryCacheKey:t},n)}),d)}}function s({queryCacheKey:t},n){const r=n.getState()[e].queries[t],s=o.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:c}=l(s);if(!Number.isFinite(c))return void u(t);const d=i[t],f=Date.now()+c;(!d||f<d.nextPollTimestamp)&&a({queryCacheKey:t},n)}function u(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))&&s(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(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))u(e)}()}},vY=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:o})=>{const{removeQueryResult:i}=n.internalActions;function a(n,a){const s=n.getState()[e],u=s.queries,l=o.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(l)){const t=u[e],o=l[e];o&&t&&((Object.values(o).some((e=>!0===e[a]))||Object.values(o).every((e=>void 0===e[a]))&&s.config[a])&&(0===Fh(o)?n.dispatch(i({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{kI.match(e)&&a(t,"refetchOnFocus"),LI.match(e)&&a(t,"refetchOnReconnect")}},tO=new Error("Promise never resolved before cacheEntryRemoved."),gY=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:o,internalState:i})=>{const a=YI(r),s=YI(o),u=Hf(r,o),l={};function c(t,r,o,i,a){const s=n.endpointDefinitions[t],u=null==s?void 0:s.onCacheEntryAdded;if(!u)return;let c={};const d=new Promise((e=>{c.cacheEntryRemoved=e})),f=Promise.race([new Promise((e=>{c.valueResolved=e})),d.then((()=>{throw tO}))]);f.catch((()=>{})),l[o]=c;const p=e.endpoints[t].select("query"===s.type?r:o),m=i.dispatch(((e,t,n)=>n)),h={...i,getCacheEntry:()=>p(i.getState()),requestId:a,extra:m,updateCachedData:"query"===s.type?n=>i.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:d},g=u(r,h);Promise.resolve(g).catch((e=>{if(e!==tO)throw e}))}return(n,i,d)=>{const f=function(t){return a(t)?t.meta.arg.queryCacheKey:s(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(u(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()}},yY=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const o=pO(n,r),i=JS(n,r),a=Hf(n,r),s={};return(n,r)=>{var u,l;if(o(n)){const{requestId:o,arg:{endpointName:i,originalArgs:a}}=n.meta,u=t.endpointDefinitions[i],l=null==u?void 0:u.onQueryStarted;if(l){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),s[o]=t;const c=e.endpoints[i].select("query"===u.type?a:o),d=r.dispatch(((e,t,n)=>n)),f={...r,getCacheEntry:()=>c(r.getState()),requestId:o,extra:d,updateCachedData:"query"===u.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==(u=s[e])||u.resolve({data:n.payload,meta:t}),delete s[e]}else if(i(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;null==(l=s[e])||l.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete s[e]}}},wY=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},bY=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let o=null,i=null;const{updateSubscriptionOptions:a,unsubscribeQueryResult:s}=e.internalActions,u=()=>n.currentSubscriptions,l={getSubscriptions:u,getSubscriptionCount:e=>Fh(u()[e]??{}),isRequestSubscribed:(e,t)=>{var n;const r=u();return!(null==(n=null==r?void 0:r[e])||!n[t])}};return(u,c)=>{if(o||(o=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(u))return o=n.currentSubscriptions={},i=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(u))return[!1,l];const d=((n,r)=>{var o,i,u;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(s.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[u=t.queryCacheKey]??(n[u]={});e[o]=t.subscriptionOptions??e[o]??{},l=!0}}return l})(n.currentSubscriptions,u);let f=!0;if(d){i||(i=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=Dk(o,(()=>t));c.next(e.internalActions.subscriptionsUpdated(r)),o=t,i=null}),500));const a="string"==typeof u.type&&!!u.type.startsWith(r),s=t.rejected.match(u)&&u.meta.condition&&!!u.meta.arg.subscribe;f=!a&&!s}return[f,!1]}};function _Y(e){const{reducerPath:t,queryThunk:n,api:r,context:o}=e,{apiUid:i}=o,a={invalidateTags:Dl(`${t}/invalidateTags`)},s=e=>e.type.startsWith(`${t}/`),u=[wY,pY,hY,mY,gY,yY];return{middleware:n=>{let a=!1;const c={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:s},d=u.map((e=>e(c))),f=bY(c),p=vY(c);return e=>u=>{if(!w3(u))return e(u);a||(a=!0,n.dispatch(r.internalActions.middlewareRegistered(i)));const l={...n,next:e},c=n.getState(),[m,h]=f(u,l,c);let g;if(g=m?e(u):h,n.getState()[t]&&(p(u,l,c),s(u)||o.hasRehydrationInfo(u)))for(let e of d)e(u,l,c);return g}},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 nO=Symbol(),xY=({createSelector:e=no}={})=>({name:nO,init(t,{baseQuery:n,tagTypes:r,reducerPath:o,serializeQueryArgs:i,keepUnusedDataFor:a,refetchOnMountOrArgChange:s,refetchOnFocus:u,refetchOnReconnect:l,invalidationBehavior:c},d){MK();const f=e=>e;Object.assign(t,{reducerPath:o,endpoints:{},internalActions:{onOnline:LI,onOffline:Fk,onFocus:kI,onFocusLost:Bk},util:{}});const{queryThunk:p,mutationThunk:m,patchQueryData:h,updateQueryData:g,upsertQueryData:v,prefetch:y,buildMatchThunkActions:b}=sY({baseQuery:n,reducerPath:o,context:d,api:t,serializeQueryArgs:i,assertTagType:f}),{reducer:w,actions:x}=uY({context:d,queryThunk:p,mutationThunk:m,reducerPath:o,assertTagType:f,config:{refetchOnFocus:u,refetchOnReconnect:l,refetchOnMountOrArgChange:s,keepUnusedDataFor:a,reducerPath:o,invalidationBehavior:c}});cd(t.util,{patchQueryData:h,updateQueryData:g,upsertQueryData:v,prefetch:y,resetApiState:x.resetApiState}),cd(t.internalActions,x);const{middleware:_,actions:S}=_Y({reducerPath:o,context:d,queryThunk:p,mutationThunk:m,api:t,assertTagType:f});cd(t.util,S),cd(t,{reducer:w,middleware:_});const{buildQuerySelector:A,buildMutationSelector:I,selectInvalidatedBy:E,selectCachedArgsForQuery:k}=lY({serializeQueryArgs:i,reducerPath:o,createSelector:e});cd(t.util,{selectInvalidatedBy:E,selectCachedArgsForQuery:k});const{buildInitiateQuery:M,buildInitiateMutation:C,getRunningMutationThunk:N,getRunningMutationsThunk:P,getRunningQueriesThunk:O,getRunningQueryThunk:T}=aY({queryThunk:p,mutationThunk:m,api:t,serializeQueryArgs:i,context:d});return cd(t.util,{getRunningMutationThunk:N,getRunningMutationsThunk:P,getRunningQueryThunk:T,getRunningQueriesThunk:O}),{name:nO,injectEndpoint(e,n){var r;const o=t;(r=o.endpoints)[e]??(r[e]={}),jk(n)?cd(o.endpoints[e],{name:e,select:A(e,n),initiate:M(e,n)},b(p,e)):rY(n)&&cd(o.endpoints[e],{name:e,select:I(),initiate:C(e)},b(m,e))}}}});function SY(e){return"query"===e.type}function $Y(e){return"mutation"===e.type}function zg(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,IY=({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 rO(e,t,n,r){const o=An((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),i=Ge(o);return Qe((()=>{i.current.serialized!==o.serialized&&(i.current=o)}),[o]),i.current.serialized===o.serialized?i.current.queryArgs:e}function rS(e){const t=Ge(e);return Qe((()=>{uv(t.current,e)||(t.current=e)}),[e]),uv(t.current,e)?t.current:e}var CY=typeof window<"u"&&window.document&&window.document.createElement?ip:Qe,EY=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:kk.pending}:e;function TY({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:o},unstable__sideEffectsInRender:i,createSelector:a},serializeQueryArgs:s,context:u}){const l=i?e=>e():Qe;return{buildQueryHooks:function(i){const d=(t,{refetchOnReconnect:r,refetchOnFocus:o,refetchOnMountOrArgChange:a,skip:s=!1,pollingInterval:c=0,skipPollingIfUnfocused:d=!1}={})=>{const{initiate:f}=e.endpoints[i],p=n(),m=Ge();if(!m.current){const t=p(e.internalActions.internal_getRTKQSubscriptions());m.current=t}const h=rO(s?Vf:t,IY,u.endpointDefinitions[i],i),g=rS({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:c,skipPollingIfUnfocused:d}),v=Ge(!1),y=Ge();let{queryCacheKey:b,requestId:w}=y.current||{},x=!1;b&&w&&(x=m.current.isRequestSubscribed(b,w));const _=!x&&v.current;return l((()=>{v.current=x})),l((()=>{_&&(y.current=void 0)}),[_]),l((()=>{var e;const t=y.current;if(h===Vf)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)g!==n&&t.updateSubscriptionOptions(g);else{null==t||t.unsubscribe();const e=p(f(h,{subscriptionOptions:g,forceRefetch:a}));y.current=e}}),[p,f,a,h,g,_]),Qe((()=>()=>{var e;null==(e=y.current)||e.unsubscribe(),y.current=void 0}),[]),An((()=>({refetch:()=>{var e;if(!y.current)throw new Error(fO(38));return null==(e=y.current)?void 0:e.refetch()}})),[])},f=({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:a=0,skipPollingIfUnfocused:s=!1}={})=>{const{initiate:u}=e.endpoints[i],c=n(),[d,f]=lt(nS),p=Ge(),m=rS({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:a,skipPollingIfUnfocused:s});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=Ge(m);l((()=>{h.current=m}),[m]);const g=_t((function(e,n=!1){let r;return t((()=>{var t;null==(t=p.current)||t.unsubscribe(),p.current=r=c(u(e,{subscriptionOptions:h.current,forceRefetch:!n})),f(e)})),r}),[c,u]);return Qe((()=>()=>{var e;null==(e=null==p?void 0:p.current)||e.unsubscribe()}),[]),Qe((()=>{d!==nS&&!p.current&&g(d,!0)}),[d,g]),An((()=>[g,d]),[g,d])},p=(t,{skip:n=!1,selectFromResult:l}={})=>{const{select:d}=e.endpoints[i],f=rO(n?Vf:t,s,u.endpointDefinitions[i],i),p=Ge(),m=An((()=>a([d(f),(e,t)=>t,e=>f],c,{memoizeOptions:{resultEqualityCheck:uv}})),[d,f]),h=An((()=>l?a([m],l,{devModeChecks:{identityFunctionCheck:"never"}}):m),[m,l]),g=r((e=>h(e,p.current)),uv),v=o(),y=m(v.getState(),p.current);return CY((()=>{p.current=y}),[y]),g};return{useQueryState:p,useQuerySubscription:d,useLazyQuerySubscription:f,useLazyQuery(e){const[t,n]=f(e),r=p(n,{...e,skip:n===nS}),o=An((()=>({lastArg:n})),[n]);return An((()=>[t,r,o]),[t,r,o])},useQuery(e,t){const n=d(e,t),r=p(e,{selectFromResult:e===Vf||null!=t&&t.skip?void 0:EY,...t}),{data:o,status:i,isLoading:a,isSuccess:s,isError:u,error:l}=r;return HI({data:o,status:i,isLoading:a,isSuccess:s,isError:u,error:l}),An((()=>({...r,...n})),[r,n])}}},buildMutationHook:function(o){return({selectFromResult:i,fixedCacheKey:s}={})=>{const{select:u,initiate:l}=e.endpoints[o],c=n(),[d,f]=lt();Qe((()=>()=>{null!=d&&d.arg.fixedCacheKey||null==d||d.reset()}),[d]);const p=_t((function(e){const t=c(l(e,{fixedCacheKey:s}));return f(t),t}),[c,l,s]),{requestId:m}=d||{},h=An((()=>u({fixedCacheKey:s,requestId:null==d?void 0:d.requestId})),[s,d,u]),g=An((()=>i?a([h],i):h),[i,h]),v=r(g,uv),y=null==s?null==d?void 0:d.arg.originalArgs:void 0,b=_t((()=>{t((()=>{d&&f(void 0),s&&c(e.internalActions.removeMutationResult({requestId:m,fixedCacheKey:s}))}))}),[c,s,d,m]),{endpointName:w,data:x,status:_,isLoading:S,isSuccess:A,isError:I,error:E}=v;HI({endpointName:w,data:x,status:_,isLoading:S,isSuccess:A,isError:I,error:E});const k=An((()=>({...v,originalArgs:y,reset:b})),[v,y,b]);return An((()=>[p,k]),[p,k])}},usePrefetch:function(t,r){const o=n(),i=rS(r);return _t(((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=u.endpointDefinitions[e];s({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===s({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 RY=Symbol(),PY=({batch:e=_3,hooks:t={useDispatch:hO,useSelector:e$,useStore:x3},createSelector:n=Mk,unstable__sideEffectsInRender:r=!1,...o}={})=>({name:RY,init(o,{serializeQueryArgs:i},a){const s=o,{buildQueryHooks:u,buildMutationHook:l,usePrefetch:c}=TY({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:i,context:a});return zg(s,{usePrefetch:c}),zg(a,{batch:e}),{injectEndpoint(e,t){if(SY(t)){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}=u(e);zg(s.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($Y(t)){const t=l(e);zg(s.endpoints[e],{useMutation:t}),o[`use${tS(e)}Mutation`]=t}}}}}),OY=cY(xY(),PY());const Vk=()=>Gk()?location.hostname:location.hostname.replace(/\w\w\w\.|^/,"."),Wk=e=>{const t=new Date;return t.setTime(t.getTime()+24*e*60*60*1e3),t.toUTCString()},qk=e=>Object.keys(e).reduce(((t,n)=>`${t}${n}${!0===e[n]?"":`=${e[n]}`};`),""),AY=(e,t)=>{const n=H0()?"":document.cookie,r=`; ${t||n}`.split(`; ${e}=`);if(2===r.length)return(r.pop()||"").replace("=","").split(";").shift()},NY=(e,t)=>{H0()||(document.cookie=qk({[e]:"",path:"/",domain:t||Vk(),expires:"Thu, 01 Jan 1970 00:00:01 GMT"}))},DY=["localhost","127.0.0.1","dev.localtest.me","wellesleydev.localtest.me"],Gk=()=>DY.includes(location.hostname),MY=(e,t="",n=10,r)=>{H0()||(document.cookie=qk({[e]:t,path:"/",domain:r||Vk(),expires:Wk(n),...!Gk()&&{SameSite:"None",Secure:!0}}))},FI={set:MY,remove:NY,get:AY,getExpireDate:Wk},jI="auth_token",Hk=()=>FI.get(jI)||void 0,kY=e=>FI.set(jI,e),LY=()=>FI.remove(jI),BY=()=>!!Hk(),zI={getToken:Hk,setToken:kY,removeToken:LY,hasToken:BY},FY=e=>{zI.removeToken(),e(uG()),TI("user").clear()},jY=e=>async(t,n,r)=>{const o=await e(t,n,r);return o.error&&[401].includes(o.error.status)&&FY(n.dispatch),o},zY=async(e,t=2e3)=>{for(;!e();)await new Promise((e=>setTimeout(e,t)))},UY=5,VY=e=>t=>!!e&&t.includes(e.status),oO=e=>new Promise((t=>setTimeout(t,1e3*e))),WY=e=>async(t,n,r)=>{const o=(null==r?void 0:r.maxRetries)??5;await zY((()=>n.getState().network.isOnline));let i=0;const a=async()=>{var s,u,l,c;const d=await e(t,n,r),f=d.error;if(i>=o)return d;i>0&&await oO(Math.pow(2,i)),i++;const p=VY(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==(s=null==d?void 0:d.error)?void 0:s.status):{const e=null==(c=null==(l=null==(u=d.meta)?void 0:u.response)?void 0:l.headers)?void 0:c.get("Retry-After");return await oO(+(e||"0")),await a()}default:return d}};return await a()};var Kk=(e=>(e.SERVER_RULES="serverRules",e.INVITE_PEOPLE="invitePeople",e))(Kk||{});const X0="staticState",Yk=TI(),Gg={path:"",baseUrl:"",search:""},qY=e=>{if(!e)return Gg;try{return JSON.parse(decodeURIComponent(e))||Gg}catch(e){return vp.error("Error parsing static state",e),Gg}},Qk=()=>new URLSearchParams(window.location.search).get(X0),GY=({path:e,baseUrl:t,search:n}={})=>{const{pathname:r,origin:o,search:i}=window.location;return`${X0}=${encodeURIComponent(JSON.stringify({path:e||r,baseUrl:t||o,search:n||i}))}`},HY=()=>{const e=Qk();return e&&Yk.setItem(X0,e),Xk()},Xk=()=>{try{const e=Yk.getItem(X0)||Qk();return qY(e)}catch(e){return vp.error("Error parsing static state",e),Gg}},KY={create:GY,init:HY,get:Xk},YY=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 vp.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}},QY=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},XY=async e=>{const t=crypto.randomUUID();return new Promise(((n,r)=>{const o=cH({onMessage:({payload:{id:e,response:r}})=>{t===e&&(null==o||o(),n(QY(r)))},whitelist:[dH]});(async()=>{try{lH({action:KP({id:t,options:await YY(e)}),windowElement:window.parent,whitelist:[KP]})}catch(e){r(e)}})()}))};new EventTarget;const Jk=()=>{var e;try{return(null==(e=window.wellesley)?void 0:e.v1)||window.wellesley}catch(e){vp.error("Error getting window.wellesley:",e)}},JY=e=>new Response(JSON.stringify(e),{status:200,statusText:"OK",headers:{"Content-Type":"application/json"}}),ZY=e=>{var t,n;if(e.url.includes("accounts/profile")){const e=null==(n=null==(t=Jk())?void 0:t.initialState)?void 0:n.currentAccount;return!(null==e||!e.selectedUserId)&&JY(e)}},eQ=Object.freeze(Object.defineProperty({__proto__:null,userHandler:ZY},Symbol.toStringTag,{value:"Module"})),tQ=e=>Object.values(eQ).reduce(((t,n)=>t||n(e)),void 0),nQ=async e=>tQ(e)||await fetch(e),rQ=()=>{try{return window.self!==window.top}catch{return!0}},oQ=()=>e=>rQ()?XY(e):nQ(e),iQ=KY.get().baseUrl,aQ=iQ||"",sQ=nY({fetchFn:oQ(),baseUrl:aQ,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=zI.getToken();return t&&e.set("authorization",`Bearer ${t}`),e}}),uQ=jY(WY(sQ)),lQ=OY({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(Kk)],reducerPath:"openapi",baseQuery:uQ,endpoints:()=>({})}),cQ=lQ.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}),iO={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isPending:!!zI.getToken(),isAuthenticated:!1,isAskLoginOpen:!1},dQ=No({name:"auth",initialState:iO,reducers:{setAskLoginOpen:(e,t)=>{e.isAskLoginOpen=t.payload},login:(e,t)=>{e.isAuthenticated=!0,e.token=t.payload||null,e.isPending=!1},logout:()=>({...iO,isPending:!1}),setNewEmail:(e,t)=>{e.newEmail=t.payload},setForgotPasswordStep:(e,t)=>{e.forgotPasswordStep=t.payload},updateForgotPasswordFields:(e,t)=>{e.forgotPasswordFields={...e.forgotPasswordFields,...t.payload}},resetForgotPasswordFields:e=>{e.forgotPasswordFields=null},setSignupStep:(e,t)=>{e.signupStep=t.payload},updateSignupFields:(e,t)=>{e.signupFields={...e.signupFields,...t.payload}},resetSignupFields:e=>{e.signupFields=null},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectAskLoginOpen:e=>e.isAskLoginOpen,selectToken:e=>e.token,selectNewEmail:e=>e.newEmail,selectForgotPasswordStep:e=>e.forgotPasswordStep,selectForgotPasswordFields:e=>e.forgotPasswordFields,selectSignupStep:e=>e.signupStep,selectSignupFields:e=>e.signupFields,selectPending:e=>e.isPending,selectIsAuthenticated:e=>e.isAuthenticated}}),fQ={data:null,isPending:!1,isSuccess:!1},pQ=No({name:"userNoHTML",initialState:fQ,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}}),aO={data:null,isError:!1,isPending:!1,isSuccess:!1},hQ=No({name:"user",initialState:aO,reducers:{reset:e=>{Object.assign(e,aO)}},extraReducers:e=>{e.addCase(vG,((e,{payload:t})=>{e.data=t})).addCase(gG,((e,{payload:t})=>{e.data&&Object.assign(e.data,t||{})})).addCase(mG,((e,{payload:t})=>{e.isSuccess=t})).addCase(hG,((e,{payload:t})=>{e.isPending=t})).addCase(pG,((e,{payload:t})=>{e.isError=t})).addCase(fG,((e,{payload:t})=>{e.error=t})).addCase(yG,((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}}),UI=e=>e,J0=no(UI,(e=>e.data)),mQ=no(UI,(e=>e.error)),vQ=no(UI,(e=>e.isPending)),gQ=no(J0,(e=>null==e?void 0:e.rules)),yQ=no(J0,(e=>null==e?void 0:e.contact_account)),wQ=no(J0,(e=>(null==e?void 0:e.stats)&&Object.fromEntries(Object.entries(e.stats).map((([e,t])=>[e,t??0]))))),bQ={data:null,isPending:!1},_Q=No({name:"instanceInfo",initialState:bQ,reducers:{},extraReducers:e=>{e.addCase(RG,((e,{payload:t})=>{e.data=t})).addCase(PG,((e,{payload:t})=>{e.isPending=t})).addCase(OG,((e,{payload:t})=>{e.error=t}))},selectors:{selectInstanceInfo:J0,selectInstanceInfoError:mQ,selectInstanceInfoPending:vQ,selectPlatformRules:gQ,selectInstanceContacts:yQ,selectInstanceStats:wQ,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}}}),xQ={data:null,isPending:!1,isSuccess:!1},SQ=No({name:"profileSettings",initialState:xQ,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(NG,((e,{payload:t})=>{e.data=t}))},selectors:{selectProfileSettings:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),$Q={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"},YS={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"},av=e=>(null==e?void 0:e.map((e=>e.value||e)))||[],IQ={data:null,isPending:!1},{posts:oS,uploadsPolicyDoc:sO,uploadsPolicyAudio:iS,uploadsPolicyImage:Ug,uploadsPolicyVideo:tv,registration:Zk,captcha:CQ,instanceAdmin:EQ,branding:TQ,translation:RQ,domainBlocks:PQ,access:OQ}=YS,{captcha:AQ,language:NQ,translation:DQ,openai:MQ,link_service:kQ}=$Q,gp=e=>e.data,LQ=no(gp,(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}})),VI=no(gp,(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}})),BQ=no(VI,(e=>av(e.extensions))),e3=no(gp,(e=>{var t,n,r,o;return{...null==e?void 0:e[tv],maxSize:(null==(t=null==e?void 0:e[tv])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[tv])?void 0:n.maxMatrix)||0,maxDuration:(null==(r=null==e?void 0:e[tv])?void 0:r.maxDuration)||0,maxResolution:(null==(o=null==e?void 0:e[tv])?void 0:o.maxResolution)||0}})),t3=no(gp,(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}})),n3=no(gp,(e=>{var t;return{...null==e?void 0:e[sO],maxSize:(null==(t=null==e?void 0:e[sO])?void 0:t.maxSize)||0}})),r3=no([VI,e3,t3,n3],((e,t,n,r)=>({IMAGE:av(null==e?void 0:e.extensions),VIDEO:av(null==t?void 0:t.extensions),AUDIO:av(null==n?void 0:n.extensions),DOCUMENT:av(null==r?void 0:r.extensions)}))),FQ=no(r3,(e=>Object.keys(e).reduce(((t,n)=>[...t,...e[n]||[]]),[]))),jQ=no(gp,(e=>{var t;return null==(t=null==e?void 0:e[Zk])?void 0:t.invites})),zQ=No({name:"platformSettings",initialState:IQ,reducers:{setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},extraReducers:e=>{e.addCase(AG,((e,{payload:t})=>{e.data={...e.data,...t}}))},selectors:{selectSettings:gp,selectPostConfig:LQ,selectDocPolicy:n3,selectImagePolicy:VI,selectVideoPolicy:e3,selectAudioPolicy:t3,selectInvitesEnabled:jQ,selectImageExtensions:BQ,selectSupportedExtensions:r3,selectFullExtensionsList:FQ,selectRegistration:e=>{var t;return null==(t=e.data)?void 0:t[Zk]},selectLanguageDetection:e=>{var t;return null==(t=e.data)?void 0:t[NQ]},selectLanguageTranslation:e=>{var t;return null==(t=e.data)?void 0:t[DQ]},selectOpenai:e=>{var t;return null==(t=e.data)?void 0:t[MQ]},selectCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[CQ]},selectAdminCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[AQ]},selectPlatformTranslation:e=>{var t;return null==(t=e.data)?void 0:t[RQ]},selectAccess:e=>{var t;return null==(t=e.data)?void 0:t[OQ]},selectBranding:e=>{var t;return null==(t=e.data)?void 0:t[TQ]},selectLinkService:e=>{var t;return null==(t=e.data)?void 0:t[kQ]},selectInstanceAdmin:e=>{var t;return null==(t=e.data)?void 0:t[EQ]},selectLegal:e=>{var t;return null==(t=e.data)?void 0:t[YS.legal]},selectDomainBlocks:e=>{var t;return null==(t=e.data)?void 0:t[PQ]},selectContacts:e=>{var t;return null==(t=e.data)?void 0:t[YS.contacts]}}}),uO={data:{userId:"",list:[]},count:{},isPending:!1},UQ=e=>e,VQ=e=>e.error,WQ=e=>e.isPending,qQ=e=>{var t;return null==(t=e.count)?void 0:t.total},GQ=e=>{var t;return null==(t=e.count)?void 0:t.unread},HQ=e=>e.data.userId,WI=no(UQ,(e=>e.data.list)),KQ=no(WI,(e=>null==e?void 0:e.filter((e=>"UNREAD"===e.status)))),YQ=no(WI,(e=>null==e?void 0:e.at(-1))),QQ=No({name:"notifications",initialState:uO,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(SG,((e,t)=>{e.isPending=t.payload})).addCase(_G,((e,t)=>{e.error=t.payload})).addCase(xG,((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(wG,((e,t)=>{e.count.unread=(e.count.unread||0)+1,e.data.list&&(e.data.list=[t.payload,...e.data.list||[]])})).addCase(bG,((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($G,((e,t)=>{e.count.total=t.payload})).addCase(IG,((e,t)=>{e.count.unread=t.payload})).addCase(EG,(()=>uO)).addCase(TG,((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(CG,(e=>{e.data.list&&(e.data.list=e.data.list.map((e=>"FOLLOW_REQUEST"===e.type?{...e,followResponse:"Accepted"}:e)))}))},selectors:{selectError:VQ,selectIsPending:WQ,selectTotalCount:qQ,selectUnreadCount:GQ,selectNotifications:WI,selectUnreadNotifications:KQ,selectLastNotification:YQ,selectNotificationsOwner:HQ}});function XQ(){return!(typeof navigator<"u"&&"boolean"==typeof navigator.onLine)||navigator.onLine}const JQ={isOnline:XQ()},ZQ=No({name:"network",initialState:JQ,reducers:{setOnline:(e,{payload:t})=>{e.isOnline=t}},selectors:{selectOnline:e=>e.isOnline}}),o3=b3(cQ,ZQ,pk,dQ,hQ,pQ,_Q,QQ,SQ,zQ);Dl("app/hydrate");var lO,sv={exports:{}},eX=sv.exports;
|
|
71
71
|
/**
|
|
72
72
|
* @license
|
|
73
73
|
* Lodash <https://lodash.com/>
|
|
@@ -75,4 +75,4 @@ const sL=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gO=(...e)=>e.f
|
|
|
75
75
|
* Released under MIT license <https://lodash.com/license>
|
|
76
76
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
77
77
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
78
|
-
*/function tX(){return lO||(lO=1,e=sv,t=sv.exports,function(){var n,r="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",a=16,s=32,u=64,l=128,c=256,d=1/0,f=9007199254740991,p=NaN,m=4294967295,h=m-1,g=m>>>1,v=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",s],["partialRight",u],["rearg",c]],y="[object Arguments]",b="[object Array]",w="[object Boolean]",x="[object Date]",_="[object Error]",S="[object Function]",A="[object GeneratorFunction]",I="[object Map]",E="[object Number]",k="[object Object]",M="[object Promise]",C="[object RegExp]",N="[object Set]",P="[object String]",O="[object Symbol]",T="[object WeakMap]",R="[object ArrayBuffer]",D="[object DataView]",j="[object Float32Array]",q="[object Float64Array]",L="[object Int8Array]",z="[object Int16Array]",$="[object Int32Array]",B="[object Uint8Array]",F="[object Uint8ClampedArray]",V="[object Uint16Array]",G="[object Uint32Array]",U=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,Q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,Y=RegExp(H.source),X=RegExp(K.source),J=/<%-([\s\S]+?)%>/g,Z=/<%([\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+/,se=/\s/,ue=/\{(?:\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*$/,ge=/^[-+]0x[0-9a-f]+$/i,ve=/^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=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,Ae="\\ud800-\\udfff",Ie="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",ke="a-z\\xdf-\\xf6\\xf8-\\xff",Me="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Ne="\\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",Pe="['’]",Oe="["+Ae+"]",Te="["+Ne+"]",Re="["+Ie+"]",De="\\d+",je="["+Ee+"]",qe="["+ke+"]",Le="[^"+Ae+Ne+De+Ee+ke+Me+"]",ze="\\ud83c[\\udffb-\\udfff]",$e="[^"+Ae+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+Me+"]",Ge="\\u200d",Ue="(?:"+qe+"|"+Le+")",We="(?:"+Ve+"|"+Le+")",Qe="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Re+"|"+ze+")?",Ye="["+Ce+"]?",Xe=Ye+Ke+"(?:"+Ge+"(?:"+[$e,Be,Fe].join("|")+")"+Ye+Ke+")*",Je="(?:"+[je,Be,Fe].join("|")+")"+Xe,Ze="(?:"+[$e+Re+"?",Re,Be,Fe,Oe].join("|")+")",et=RegExp(Pe,"g"),tt=RegExp(Re,"g"),nt=RegExp(ze+"(?="+ze+")|"+Ze+Xe,"g"),rt=RegExp([Ve+"?"+qe+"+"+Qe+"(?="+[Te,Ve,"$"].join("|")+")",We+"+"+He+"(?="+[Te,Ve+Ue,"$"].join("|")+")",Ve+"?"+Ue+"+"+Qe,Ve+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,Je].join("|"),"g"),ot=RegExp("["+Ge+Ae+Ie+Ce+"]"),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"],st=-1,ut={};ut[j]=ut[q]=ut[L]=ut[z]=ut[$]=ut[B]=ut[F]=ut[V]=ut[G]=!0,ut[y]=ut[b]=ut[R]=ut[w]=ut[D]=ut[x]=ut[_]=ut[S]=ut[I]=ut[E]=ut[k]=ut[C]=ut[N]=ut[P]=ut[T]=!1;var lt={};lt[y]=lt[b]=lt[R]=lt[D]=lt[w]=lt[x]=lt[j]=lt[q]=lt[L]=lt[z]=lt[$]=lt[I]=lt[E]=lt[k]=lt[C]=lt[N]=lt[P]=lt[O]=lt[B]=lt[F]=lt[V]=lt[G]=!0,lt[_]=lt[S]=lt[T]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ft=parseInt,pt="object"==typeof Ua&&Ua&&Ua.Object===Object&&Ua,mt="object"==typeof self&&self&&self.Object===Object&&self,ht=pt||mt||Function("return this")(),gt=t&&!t.nodeType&&t,vt=gt&&e&&!e.nodeType&&e,yt=vt&&vt.exports===gt,bt=yt&&pt.process,wt=function(){try{return vt&&vt.require&&vt.require("util").types||bt&&bt.binding&&bt.binding("util")}catch{}}(),xt=wt&&wt.isArrayBuffer,_t=wt&&wt.isDate,St=wt&&wt.isMap,At=wt&&wt.isRegExp,It=wt&&wt.isSet,Et=wt&&wt.isTypedArray;function kt(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 Mt(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 Ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Nt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Pt(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 Ot(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 Tt(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 qt(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 Lt(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 zt(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 $t=Qt("length");function Bt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Ft(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):Ft(e,Ut,n)}function Gt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Ut(e){return e!=e}function Wt(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:p}function Qt(e){return function(t){return null==t?n:t[e]}}function Ht(e){return function(t){return null==e?n:e[t]}}function Kt(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 Jt(e){return e&&e.slice(0,hn(e)+1).replace(ae,"")}function Zt(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=Ht({"À":"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=Ht({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+ct[e]}function un(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 s=e[n];(s===t||s===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 un(e)?function(e){for(var t=nt.lastIndex=0;nt.test(e);)++t;return t}(e):$t(e)}function mn(e){return un(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function hn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var gn=Ht({"&":"&","<":"<",">":">",""":'"',"'":"'"}),vn=function e(t){var se,Ae=(t=null==t?ht:vn.defaults(ht.Object(),t,vn.pick(ht,at))).Array,Ie=t.Date,Ee=t.Error,ke=t.Function,Me=t.Math,Ce=t.Object,Ne=t.RegExp,Pe=t.String,Oe=t.TypeError,Te=Ae.prototype,Re=ke.prototype,De=Ce.prototype,je=t["__core-js_shared__"],qe=Re.toString,Le=De.hasOwnProperty,ze=0,$e=(se=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||""))?"Symbol(src)_1."+se:"",Be=De.toString,Fe=qe.call(Ce),Ve=ht._,Ge=Ne("^"+qe.call(Le).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=yt?t.Buffer:n,We=t.Symbol,Qe=t.Uint8Array,He=Ue?Ue.allocUnsafe:n,Ke=cn(Ce.getPrototypeOf,Ce),Ye=Ce.create,Xe=De.propertyIsEnumerable,Je=Te.splice,Ze=We?We.isConcatSpreadable:n,nt=We?We.iterator:n,ot=We?We.toStringTag:n,ct=function(){try{var e=mi(Ce,"defineProperty");return e({},"",{}),e}catch{}}(),pt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,mt=Ie&&Ie.now!==ht.Date.now&&Ie.now,gt=t.setTimeout!==ht.setTimeout&&t.setTimeout,vt=Me.ceil,bt=Me.floor,wt=Ce.getOwnPropertySymbols,$t=Ue?Ue.isBuffer:n,Ht=t.isFinite,yn=Te.join,bn=cn(Ce.keys,Ce),wn=Me.max,xn=Me.min,_n=Ie.now,Sn=t.parseInt,An=Me.random,In=Te.reverse,En=mi(t,"DataView"),kn=mi(t,"Map"),Mn=mi(t,"Promise"),Cn=mi(t,"Set"),Nn=mi(t,"WeakMap"),Pn=mi(Ce,"create"),On=Nn&&new Nn,Tn={},Rn=$i(En),Dn=$i(kn),jn=$i(Mn),qn=$i(Cn),Ln=$i(Nn),zn=We?We.prototype:n,$n=zn?zn.valueOf:n,Bn=zn?zn.toString:n;function Fn(e){if(rs(e)&&!Wa(e)&&!(e instanceof Wn)){if(e instanceof Un)return e;if(Le.call(e,"__wrapped__"))return Bi(e)}return new Un(e)}var Vn=function(){function e(){}return function(t){if(!ns(t))return{};if(Ye)return Ye(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Gn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}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 Hn(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 Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Kn;++t<n;)this.add(e[t])}function Xn(e){var t=this.__data__=new Hn(e);this.size=t.size}function Jn(e,t){var n=Wa(e),r=!n&&Ua(e),o=!n&&!r&&Ya(e),i=!n&&!r&&!o&&ds(e),a=n||r||o||i,s=a?Xt(e.length,Pe):[],u=s.length;for(var l in e)(t||Le.call(e,l))&&(!a||!("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||xi(l,u)))&&s.push(l);return s}function Zn(e){var t=e.length;return t?e[Yr(0,t-1)]:n}function er(e,t){return qi(Oo(e),lr(t,0,e.length))}function tr(e){return qi(Oo(e))}function nr(e,t,r){(r!==n&&!Fa(e[t],r)||r===n&&!(t in e))&&sr(e,t,r)}function rr(e,t,r){var o=e[t];(!Le.call(e,t)||!Fa(o,r)||r===n&&!(t in e))&&sr(e,t,r)}function or(e,t){for(var n=e.length;n--;)if(Fa(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&&To(t,Ts(t),e)}function sr(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ur(e,t){for(var r=-1,o=t.length,i=Ae(o),a=null==e;++r<o;)i[r]=a?n:Ms(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 s,u=1&t,l=2&t,c=4&t;if(r&&(s=i?r(e,o,i,a):r(e)),s!==n)return s;if(!ns(e))return e;var d=Wa(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Le.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return Oo(e,s)}else{var f=vi(e),p=f==S||f==A;if(Ya(e))return Eo(e,u);if(f==k||f==y||p&&!i){if(s=l||p?{}:bi(e),!u)return l?function(e,t){return To(e,gi(e),t)}(e,function(e,t){return e&&To(t,Rs(t),e)}(s,e)):function(e,t){return To(e,hi(e),t)}(e,ar(s,e))}else{if(!lt[f])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case R:return ko(e);case w:case x:return new r(+e);case D:return function(e,t){var n=t?ko(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case j:case q:case L:case z:case $:case B:case F:case V:case G:return Mo(e,n);case I:return new r;case E:case P:return new r(e);case C:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case N:return new r;case O:return function(e){return $n?Ce($n.call(e)):{}}(e)}}(e,f,u)}}a||(a=new Xn);var m=a.get(e);if(m)return m;a.set(e,s),us(e)?e.forEach((function(n){s.add(cr(n,t,r,n,e,a))})):os(e)&&e.forEach((function(n,o){s.set(o,cr(n,t,r,o,e,a))}));var h=d?n:(c?l?si:ai:l?Rs:Ts)(e);return Ct(h||e,(function(n,o){h&&(n=e[o=n]),rr(s,o,cr(n,t,r,o,e,a))})),s}function dr(e,t,r){var o=r.length;if(null==e)return!o;for(e=Ce(e);o--;){var i=r[o],a=t[i],s=e[i];if(s===n&&!(i in e)||!a(s))return!1}return!0}function fr(e,t,o){if("function"!=typeof e)throw new Oe(r);return Ti((function(){e.apply(n,o)}),t)}function pr(e,t,n,r){var o=-1,i=Tt,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=Dt(t,Zt(n))),r?(i=Rt,a=!1):t.length>=200&&(i=tn,a=!1,t=new Yn(t));e:for(;++o<s;){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;u.push(c)}else i(t,d,r)||u.push(c)}return u}Fn.templateSettings={escape:J,evaluate:Z,interpolate:ee,variable:"",imports:{_:Fn}},Fn.prototype=Gn.prototype,Fn.prototype.constructor=Fn,Un.prototype=Vn(Gn.prototype),Un.prototype.constructor=Un,Wn.prototype=Vn(Gn.prototype),Wn.prototype.constructor=Wn,Qn.prototype.clear=function(){this.__data__=Pn?Pn(null):{},this.size=0},Qn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Qn.prototype.get=function(e){var t=this.__data__;if(Pn){var r=t[e];return r===o?n:r}return Le.call(t,e)?t[e]:n},Qn.prototype.has=function(e){var t=this.__data__;return Pn?t[e]!==n:Le.call(t,e)},Qn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Pn&&t===n?o:t,this},Hn.prototype.clear=function(){this.__data__=[],this.size=0},Hn.prototype.delete=function(e){var t=this.__data__,n=or(t,e);return!(n<0||(n==t.length-1?t.pop():Je.call(t,n,1),--this.size,0))},Hn.prototype.get=function(e){var t=this.__data__,r=or(t,e);return r<0?n:t[r][1]},Hn.prototype.has=function(e){return or(this.__data__,e)>-1},Hn.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},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new Qn,map:new(kn||Hn),string:new Qn}},Kn.prototype.delete=function(e){var t=fi(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return fi(this,e).get(e)},Kn.prototype.has=function(e){return fi(this,e).has(e)},Kn.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 Hn,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 Hn){var r=n.__data__;if(!kn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(e,t),this.size=n.size,this};var mr=jo(_r),hr=jo(Sr,!0);function gr(e,t){var n=!0;return mr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function vr(e,t,r){for(var o=-1,i=e.length;++o<i;){var a=e[o],s=t(a);if(null!=s&&(u===n?s==s&&!cs(s):r(s,u)))var u=s,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 s=e[i];t>0&&n(s)?t>1?br(s,t-1,n,r,o):jt(o,s):r||(o[o.length]=s)}return o}var wr=qo(),xr=qo(!0);function _r(e,t){return e&&wr(e,t,Ts)}function Sr(e,t){return e&&xr(e,t,Ts)}function Ar(e,t){return Ot(t,(function(t){return Za(e[t])}))}function Ir(e,t){for(var r=0,o=(t=_o(t,e)).length;null!=e&&r<o;)e=e[zi(t[r++])];return r&&r==o?e:n}function Er(e,t,n){var r=t(e);return Wa(e)?r:jt(r,n(e))}function kr(e){return null==e?e===n?"[object Undefined]":"[object Null]":ot&&ot in Ce(e)?function(e){var t=Le.call(e,ot),r=e[ot];try{e[ot]=n;var o=!0}catch{}var i=Be.call(e);return o&&(t?e[ot]=r:delete e[ot]),i}(e):function(e){return Be.call(e)}(e)}function Mr(e,t){return e>t}function Cr(e,t){return null!=e&&Le.call(e,t)}function Nr(e,t){return null!=e&&t in Ce(e)}function Pr(e,t,r){for(var o=r?Rt:Tt,i=e[0].length,a=e.length,s=a,u=Ae(a),l=1/0,c=[];s--;){var d=e[s];s&&t&&(d=Dt(d,Zt(t))),l=xn(d.length,l),u[s]=!r&&(t||i>=120&&d.length>=120)?new Yn(s&&d):n}d=e[0];var f=-1,p=u[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(s=a;--s;){var g=u[s];if(!(g?tn(g,h):o(e[s],h,r)))continue e}p&&p.push(h),c.push(m)}}return c}function Or(e,t,r){var o=null==(e=Ni(e,t=_o(t,e)))?e:e[zi(Ji(t))];return null==o?n:kt(o,e,r)}function Tr(e){return rs(e)&&kr(e)==y}function Rr(e,t,r,o,i){return e===t||(null==e||null==t||!rs(e)&&!rs(t)?e!=e&&t!=t:function(e,t,r,o,i,a){var s=Wa(e),u=Wa(t),l=s?b:vi(e),c=u?b:vi(t),d=(l=l==y?k:l)==k,f=(c=c==y?k:c)==k,p=l==c;if(p&&Ya(e)){if(!Ya(t))return!1;s=!0,d=!1}if(p&&!d)return a||(a=new Xn),s||ds(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 Qe(e),new Qe(t)));case w:case x:case E:return Fa(+e,+t);case _:return e.name==t.name&&e.message==t.message;case C:case P:return e==t+"";case I:var s=ln;case N:var u=1&r;if(s||(s=fn),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var c=oi(s(e),s(t),r,o,i,a);return a.delete(e),c;case O:if($n)return $n.call(e)==$n.call(t)}return!1}(e,t,l,r,o,i,a);if(!(1&r)){var m=d&&Le.call(e,"__wrapped__"),h=f&&Le.call(t,"__wrapped__");if(m||h){var g=m?e.value():e,v=h?t.value():t;return a||(a=new Xn),i(g,v,r,o,a)}}return!!p&&(a||(a=new Xn),function(e,t,r,o,i,a){var s=1&r,u=ai(e),l=u.length,c=ai(t),d=c.length;if(l!=d&&!s)return!1;for(var f=l;f--;){var p=u[f];if(!(s?p in t:Le.call(t,p)))return!1}var m=a.get(e),h=a.get(t);if(m&&h)return m==t&&h==e;var g=!0;a.set(e,t),a.set(t,e);for(var v=s;++f<l;){var y=e[p=u[f]],b=t[p];if(o)var w=s?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)){g=!1;break}v||(v="constructor"==p)}if(g&&!v){var x=e.constructor,_=t.constructor;x!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _)&&(g=!1)}return a.delete(e),a.delete(t),g}(e,t,r,o,i,a))}(e,t,r,o,Rr,i))}function Dr(e,t,r,o){var i=r.length,a=i,s=!o;if(null==e)return!a;for(e=Ce(e);i--;){var u=r[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){var l=(u=r[i])[0],c=e[l],d=u[1];if(s&&u[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!(!ns(e)||function(e){return!!$e&&$e in e}(e))&&(Za(e)?Ge:ye).test($i(e))}function qr(e){return"function"==typeof e?e:null==e?iu:"object"==typeof e?Wa(e)?Vr(e[0],e[1]):Fr(e):mu(e)}function Lr(e){if(!Ei(e))return bn(e);var t=[];for(var n in Ce(e))Le.call(e,n)&&"constructor"!=n&&t.push(n);return t}function zr(e){if(!ns(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=Ei(e),n=[];for(var r in e)"constructor"==r&&(t||!Le.call(e,r))||n.push(r);return n}function $r(e,t){return e<t}function Br(e,t){var n=-1,r=Ha(e)?Ae(e.length):[];return mr(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function Fr(e){var t=pi(e);return 1==t.length&&t[0][2]?Mi(t[0][0],t[0][1]):function(n){return n===e||Dr(n,e,t)}}function Vr(e,t){return Si(e)&&ki(t)?Mi(zi(e),t):function(r){var o=Ms(r,e);return o===n&&o===t?Cs(r,e):Rr(t,o,3)}}function Gr(e,t,r,o,i){e!==t&&wr(t,(function(a,s){if(i||(i=new Xn),ns(a))!function(e,t,r,o,i,a,s){var u=Pi(e,r),l=Pi(t,r),c=s.get(l);if(c)nr(e,r,c);else{var d=a?a(u,l,r+"",e,t,s):n,f=d===n;if(f){var p=Wa(l),m=!p&&Ya(l),h=!p&&!m&&ds(l);d=l,p||m||h?Wa(u)?d=u:Ka(u)?d=Oo(u):m?(f=!1,d=Eo(l,!0)):h?(f=!1,d=Mo(l,!0)):d=[]:as(l)||Ua(l)?(d=u,Ua(u)?d=bs(u):(!ns(u)||Za(u))&&(d=bi(l))):f=!1}f&&(s.set(l,d),i(d,l,o,a,s),s.delete(l)),nr(e,r,d)}}(e,t,s,r,Gr,o,i);else{var u=o?o(Pi(e,s),a,s+"",e,t,i):n;u===n&&(u=a),nr(e,s,u)}}),Rs)}function Ur(e,t){var r=e.length;if(r)return xi(t+=t<0?r:0,r)?e[t]:n}function Wr(e,t,n){t=t.length?Dt(t,(function(e){return Wa(e)?function(t){return Ir(t,1===e.length?e[0]:e)}:e})):[iu];var r=-1;return t=Dt(t,Zt(di())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Br(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,s=n.length;++r<a;){var u=Co(o[r],i[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Qr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Ir(e,a);n(s,a)&&to(i,_o(a,e),s)}return i}function Hr(e,t,n,r){var o=r?Gt:Vt,i=-1,a=t.length,s=e;for(e===t&&(t=Oo(t)),n&&(s=Dt(e,Zt(n)));++i<a;)for(var u=0,l=t[i],c=n?n(l):l;(u=o(s,c,u,r))>-1;)s!==e&&Je.call(s,u,1),Je.call(e,u,1);return e}function Kr(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)?Je.call(e,o,1):mo(e,o)}}return e}function Yr(e,t){return e+bt(An()*(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 Jr(e,t){return Ri(Ci(e,t,iu),e+"")}function Zr(e){return Zn(Fs(e))}function eo(e,t){var n=Fs(e);return qi(n,lr(t,0,n.length))}function to(e,t,r,o){if(!ns(e))return e;for(var i=-1,a=(t=_o(t,e)).length,s=a-1,u=e;null!=u&&++i<a;){var l=zi(t[i]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=s){var d=u[l];(c=o?o(d,l,u):n)===n&&(c=ns(d)?d:xi(t[i+1])?[]:{})}rr(u,l,c),u=u[l]}return e}var no=On?function(e,t){return On.set(e,t),e}:iu,ro=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:nu(t),writable:!0})}:iu;function oo(e){return qi(Fs(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=Ae(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 so(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=g){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return uo(e,t,iu,n)}function uo(e,t,r,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=r(t))!=t,u=null===t,l=cs(t),c=t===n;i<a;){var d=bt((i+a)/2),f=r(e[d]),p=f!==n,m=null===f,g=f==f,v=cs(f);if(s)var y=o||g;else y=c?g&&(o||p):u?g&&p&&(o||!m):l?g&&p&&!m&&(o||!v):!m&&!v&&(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],s=t?t(a):a;if(!n||!Fa(s,u)){var u=s;i[o++]=0===a?0:a}}return i}function co(e){return"number"==typeof e?e:cs(e)?p:+e}function fo(e){if("string"==typeof e)return e;if(Wa(e))return Dt(e,fo)+"";if(cs(e))return Bn?Bn.call(e):"";var t=e+"";return"0"==t&&1/e==-d?"-0":t}function po(e,t,n){var r=-1,o=Tt,i=e.length,a=!0,s=[],u=s;if(n)a=!1,o=Rt;else if(i>=200){var l=t?null:Jo(e);if(l)return fn(l);a=!1,o=tn,u=new Yn}else u=t?[]:s;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=u.length;f--;)if(u[f]===d)continue e;t&&u.push(d),s.push(c)}else o(u,d,n)||(u!==s&&u.push(d),s.push(c))}return s}function mo(e,t){return null==(e=Ni(e,t=_o(t,e)))||delete e[zi(Ji(t))]}function ho(e,t,n,r){return to(e,t,n(Ir(e,t)),r)}function go(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 vo(e,t){var n=e;return n instanceof Wn&&(n=n.value()),qt(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=Ae(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=pr(i[o]||a,e[s],t,n));return po(br(i,1),t,n)}function bo(e,t,r){for(var o=-1,i=e.length,a=t.length,s={};++o<i;){var u=o<a?t[o]:n;r(s,e[o],u)}return s}function wo(e){return Ka(e)?e:[]}function xo(e){return"function"==typeof e?e:iu}function _o(e,t){return Wa(e)?e:Si(e,t)?[e]:Li(ws(e))}var So=Jr;function Ao(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:io(e,t,r)}var Io=pt||function(e){return ht.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function ko(e){var t=new e.constructor(e.byteLength);return new Qe(t).set(new Qe(e)),t}function Mo(e,t){var n=t?ko(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Co(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,a=cs(e),s=t!==n,u=null===t,l=t==t,c=cs(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||o&&s&&l||!r&&l||!i)return 1;if(!o&&!a&&!c&&e<t||c&&r&&i&&!o&&!a||u&&r&&i||!s&&i||!l)return-1}return 0}function No(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,u=t.length,l=wn(i-a,0),c=Ae(u+l),d=!r;++s<u;)c[s]=t[s];for(;++o<a;)(d||o<i)&&(c[n[o]]=e[o]);for(;l--;)c[s++]=e[o++];return c}function Po(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,u=-1,l=t.length,c=wn(i-s,0),d=Ae(c+l),f=!r;++o<c;)d[o]=e[o];for(var p=o;++u<l;)d[p+u]=t[u];for(;++a<s;)(f||o<i)&&(d[p+n[a]]=e[o++]);return d}function Oo(e,t){var n=-1,r=e.length;for(t||(t=Ae(r));++n<r;)t[n]=e[n];return t}function To(e,t,r,o){var i=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var u=t[a],l=o?o(r[u],e[u],u,r,e):n;l===n&&(l=e[u]),i?sr(r,u,l):rr(r,u,l)}return r}function Ro(e,t){return function(n,r){var o=Wa(n)?Mt:ir,i=t?t():{};return o(n,e,di(r,2),i)}}function Do(e){return Jr((function(t,r){var o=-1,i=r.length,a=i>1?r[i-1]:n,s=i>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(i--,a):n,s&&_i(r[0],r[1],s)&&(a=i<3?n:a,i=1),t=Ce(t);++o<i;){var u=r[o];u&&e(t,u,o,a)}return t}))}function jo(e,t){return function(n,r){if(null==n)return n;if(!Ha(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ce(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function qo(e){return function(t,n,r){for(var o=-1,i=Ce(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}function Lo(e){return function(t){var r=un(t=ws(t))?mn(t):n,o=r?r[0]:t.charAt(0),i=r?Ao(r,1).join(""):t.slice(1);return o[e]()+i}}function zo(e){return function(t){return qt(Zs(Us(t).replace(et,"")),e,"")}}function $o(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 ns(r)?r:n}}function Bo(e){return function(t,r,o){var i=Ce(t);if(!Ha(t)){var a=di(r,3);t=Ts(t),r=function(e){return a(i[e],e,i)}}var s=e(t,r,o);return s>-1?i[a?t[s]:s]:n}}function Fo(e){return ii((function(t){var o=t.length,i=o,a=Un.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if("function"!=typeof s)throw new Oe(r);if(a&&!u&&"wrapper"==li(s))var u=new Un([],!0)}for(i=u?i:o;++i<o;){var l=li(s=t[i]),c="wrapper"==l?ui(s):n;u=c&&Ai(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[li(c[0])].apply(u,c[3]):1==s.length&&Ai(s)?u[l]():u.thru(s)}return function(){var e=arguments,n=e[0];if(u&&1==e.length&&Wa(n))return u.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,s,u,c,d){var f=t&l,p=1&t,m=2&t,h=24&t,g=512&t,v=m?n:$o(e);return function l(){for(var y=arguments.length,b=Ae(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=No(b,o,i,h)),a&&(b=Po(b,a,s,h)),y-=_,h&&y<d){var S=dn(b,x);return Yo(e,t,Vo,l.placeholder,r,b,S,u,c,d-y)}var A=p?r:this,I=m?A[e]:e;return y=b.length,u?b=function(e,t){for(var r=e.length,o=xn(t.length,r),i=Oo(e);o--;){var a=t[o];e[o]=xi(a,r)?i[a]:n}return e}(b,u):g&&y>1&&b.reverse(),f&&c<y&&(b.length=c),this&&this!==ht&&this instanceof l&&(I=v||$o(I)),I.apply(A,b)}}function Go(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 Uo(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 Wo(e){return ii((function(t){return t=Dt(t,Zt(di())),Jr((function(n){var r=this;return e(t,(function(e){return kt(e,r,n)}))}))}))}function Qo(e,t){var r=(t=t===n?" ":fo(t)).length;if(r<2)return r?Xr(t,e):t;var o=Xr(t,vt(e/pn(t)));return un(t)?Ao(mn(o),0,e).join(""):o.slice(0,e)}function Ho(e){return function(t,r,o){return o&&"number"!=typeof o&&_i(t,r,o)&&(r=o=n),t=hs(t),r===n?(r=t,t=0):r=hs(r),function(e,t,n,r){for(var o=-1,i=wn(vt((t-e)/(n||1)),0),a=Ae(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,r,o=o===n?t<r?1:-1:hs(o),e)}}function Ko(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ys(t),n=ys(n)),e(t,n)}}function Yo(e,t,r,o,i,a,l,c,d,f){var p=8&t;t|=p?s:u,4&(t&=~(p?u:s))||(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 Ai(e)&&Oi(h,m),h.placeholder=o,Di(h,e,t)}function Xo(e){var t=Me[e];return function(e,n){if(e=ys(e),(n=null==n?0:xn(gs(n),292))&&Ht(e)){var r=(ws(e)+"e").split("e");return+((r=(ws(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Jo=Cn&&1/fn(new Cn([,-0]))[1]==d?function(e){return new Cn(e)}:cu;function Zo(e){return function(t){var n=vi(t);return n==I?ln(t):n==N?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 g=2&t;if(!g&&"function"!=typeof e)throw new Oe(r);var v=d?d.length:0;if(v||(t&=-97,d=f=n),m=m===n?m:wn(gs(m),0),h=h===n?h:gs(h),v-=f?f.length:0,t&u){var y=d,b=f;d=f=n}var w=g?n:ui(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,s=r==l&&8==n||r==l&&n==c&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!s)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var d=e[3];e[3]=d?No(d,u,t[4]):u,e[4]=d?dn(e[3],i):t[4]}(u=t[5])&&(d=e[5],e[5]=d?Po(d,u,t[6]):u,e[6]=d?dn(e[5],i):t[6]),(u=t[7])&&(e[7]=u),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?g?0:e.length:wn(x[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||t==a?function(e,t,r){var o=$o(e);return function i(){for(var a=arguments.length,s=Ae(a),u=a,l=ci(i);u--;)s[u]=arguments[u];var c=a<3&&s[0]!==l&&s[a-1]!==l?[]:dn(s,l);return(a-=c.length)<r?Yo(e,t,Vo,i.placeholder,n,s,c,n,n,r-a):kt(this&&this!==ht&&this instanceof i?o:e,this,s)}}(e,t,h):t!=s&&33!=t||f.length?Vo.apply(n,x):function(e,t,n,r){var o=1&t,i=$o(e);return function t(){for(var a=-1,s=arguments.length,u=-1,l=r.length,c=Ae(l+s),d=this&&this!==ht&&this instanceof t?i:e;++u<l;)c[u]=r[u];for(;s--;)c[u++]=arguments[++a];return kt(d,o?n:this,c)}}(e,t,o,d);else var _=function(e,t,n){var r=1&t,o=$o(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:Oi)(_,x),e,t)}function ti(e,t,r,o){return e===n||Fa(e,De[r])&&!Le.call(o,r)?t:e}function ni(e,t,r,o,i,a){return ns(e)&&ns(t)&&(a.set(t,e),Gr(e,t,n,ni,a),a.delete(t)),e}function ri(e){return as(e)?n:e}function oi(e,t,r,o,i,a){var s=1&r,u=e.length,l=t.length;if(u!=l&&!(s&&l>u))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<u;){var h=e[f],g=t[f];if(o)var v=s?o(g,h,f,t,e,a):o(h,g,f,e,t,a);if(v!==n){if(v)continue;p=!1;break}if(m){if(!zt(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!==g&&!i(h,g,r,o,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function ii(e){return Ri(Ci(e,n,Qi),e+"")}function ai(e){return Er(e,Ts,hi)}function si(e){return Er(e,Rs,gi)}var ui=On?function(e){return On.get(e)}:cu;function li(e){for(var t=e.name+"",n=Tn[t],r=Le.call(Tn,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(Le.call(Fn,"placeholder")?Fn:e).placeholder}function di(){var e=Fn.iteratee||au;return e=e===au?qr: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=Ts(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,ki(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=Ce(e),Ot(wt(e),(function(t){return Xe.call(e,t)})))}:vu,gi=wt?function(e){for(var t=[];e;)jt(t,hi(e)),e=Ke(e);return t}:vu,vi=kr;function yi(e,t,n){for(var r=-1,o=(t=_o(t,e)).length,i=!1;++r<o;){var a=zi(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&ts(o)&&xi(a,o)&&(Wa(e)||Ua(e))}function bi(e){return"function"!=typeof e.constructor||Ei(e)?{}:Vn(Ke(e))}function wi(e){return Wa(e)||Ua(e)||!!(Ze&&e&&e[Ze])}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(!ns(n))return!1;var r=typeof t;return!!("number"==r?Ha(n)&&xi(t,n.length):"string"==r&&t in n)&&Fa(n[t],e)}function Si(e,t){if(Wa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||ne.test(e)||!te.test(e)||null!=t&&e in Ce(t)}function Ai(e){var t=li(e),n=Fn[t];if("function"!=typeof n||!(t in Wn.prototype))return!1;if(e===n)return!0;var r=ui(n);return!!r&&e===r[0]}(En&&vi(new En(new ArrayBuffer(1)))!=D||kn&&vi(new kn)!=I||Mn&&vi(Mn.resolve())!=M||Cn&&vi(new Cn)!=N||Nn&&vi(new Nn)!=T)&&(vi=function(e){var t=kr(e),r=t==k?e.constructor:n,o=r?$i(r):"";if(o)switch(o){case Rn:return D;case Dn:return I;case jn:return M;case qn:return N;case Ln:return T}return t});var Ii=je?Za:yu;function Ei(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||De)}function ki(e){return e==e&&!ns(e)}function Mi(e,t){return function(r){return null!=r&&r[e]===t&&(t!==n||e in Ce(r))}}function Ci(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=Ae(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Ae(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),kt(e,this,s)}}function Ni(e,t){return t.length<2?e:Ir(e,io(t,0,-1))}function Pi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Oi=ji(no),Ti=gt||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(ue,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ct(v,(function(n){var r="_."+n[0];t&n[1]&&!Tt(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 qi(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r<t;){var a=Yr(r,i),s=e[a];e[a]=e[r],e[r]=s}return e.length=t,e}var Li=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 zi(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-d?"-0":t}function $i(e){if(null!=e){try{return qe.call(e)}catch{}try{return e+""}catch{}}return""}function Bi(e){if(e instanceof Wn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Oo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fi=Jr((function(e,t){return Ka(e)?pr(e,br(t,1,Ka,!0)):[]})),Vi=Jr((function(e,t){var r=Ji(t);return Ka(r)&&(r=n),Ka(e)?pr(e,br(t,1,Ka,!0),di(r,2)):[]})),Gi=Jr((function(e,t){var r=Ji(t);return Ka(r)&&(r=n),Ka(e)?pr(e,br(t,1,Ka,!0),n,r):[]}));function Ui(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:gs(n);return o<0&&(o=wn(r+o,0)),Ft(e,di(t,3),o)}function Wi(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==n&&(i=gs(r),i=r<0?wn(o+i,0):xn(i,o-1)),Ft(e,di(t,3),i,!0)}function Qi(e){return null!=e&&e.length?br(e,1):[]}function Hi(e){return e&&e.length?e[0]:n}var Ki=Jr((function(e){var t=Dt(e,wo);return t.length&&t[0]===e[0]?Pr(t):[]})),Yi=Jr((function(e){var t=Ji(e),r=Dt(e,wo);return t===Ji(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Pr(r,di(t,2)):[]})),Xi=Jr((function(e){var t=Ji(e),r=Dt(e,wo);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Pr(r,n,t):[]}));function Ji(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Zi=Jr(ea);function ea(e,t){return e&&e.length&&t&&t.length?Hr(e,t):e}var ta=ii((function(e,t){var n=null==e?0:e.length,r=ur(e,t);return Kr(e,Dt(t,(function(e){return xi(e,n)?+e:e})).sort(Co)),r}));function na(e){return null==e?e:In.call(e)}var ra=Jr((function(e){return po(br(e,1,Ka,!0))})),oa=Jr((function(e){var t=Ji(e);return Ka(t)&&(t=n),po(br(e,1,Ka,!0),di(t,2))})),ia=Jr((function(e){var t=Ji(e);return t="function"==typeof t?t:n,po(br(e,1,Ka,!0),n,t)}));function aa(e){if(!e||!e.length)return[];var t=0;return e=Ot(e,(function(e){if(Ka(e))return t=wn(e.length,t),!0})),Xt(t,(function(t){return Dt(e,Qt(t))}))}function sa(e,t){if(!e||!e.length)return[];var r=aa(e);return null==t?r:Dt(r,(function(e){return kt(t,n,e)}))}var ua=Jr((function(e,t){return Ka(e)?pr(e,t):[]})),la=Jr((function(e){return yo(Ot(e,Ka))})),ca=Jr((function(e){var t=Ji(e);return Ka(t)&&(t=n),yo(Ot(e,Ka),di(t,2))})),da=Jr((function(e){var t=Ji(e);return t="function"==typeof t?t:n,yo(Ot(e,Ka),n,t)})),fa=Jr(aa),pa=Jr((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,sa(e,r)}));function ma(e){var t=Fn(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var ga=ii((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return ur(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Wn&&xi(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:n}),new Un(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)})),va=Ro((function(e,t,n){Le.call(e,n)?++e[n]:sr(e,n,1)})),ya=Bo(Ui),ba=Bo(Wi);function wa(e,t){return(Wa(e)?Ct:mr)(e,di(t,3))}function xa(e,t){return(Wa(e)?Nt:hr)(e,di(t,3))}var _a=Ro((function(e,t,n){Le.call(e,n)?e[n].push(t):sr(e,n,[t])})),Sa=Jr((function(e,t,n){var r=-1,o="function"==typeof t,i=Ha(e)?Ae(e.length):[];return mr(e,(function(e){i[++r]=o?kt(t,e,n):Or(e,t,n)})),i})),Aa=Ro((function(e,t,n){sr(e,n,t)}));function Ia(e,t){return(Wa(e)?Dt:Br)(e,di(t,3))}var Ea=Ro((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),ka=Jr((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]]),Wr(e,br(t,1),[])})),Ma=mt||function(){return ht.Date.now()};function Ca(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,ei(e,l,n,n,n,n,t)}function Na(e,t){var o;if("function"!=typeof t)throw new Oe(r);return e=gs(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var Pa=Jr((function(e,t,n){var r=1;if(n.length){var o=dn(n,ci(Pa));r|=s}return ei(e,r,t,n,o)})),Oa=Jr((function(e,t,n){var r=3;if(n.length){var o=dn(n,ci(Oa));r|=s}return ei(t,r,e,n,o)}));function Ta(e,t,o){var i,a,s,u,l,c,d=0,f=!1,p=!1,m=!0;if("function"!=typeof e)throw new Oe(r);function h(t){var r=i,o=a;return i=a=n,d=t,u=e.apply(o,r)}function g(e){var r=e-c;return c===n||r>=t||r<0||p&&e-d>=s}function v(){var e=Ma();if(g(e))return y(e);l=Ti(v,function(e){var n=t-(e-c);return p?xn(n,s-(e-d)):n}(e))}function y(e){return l=n,m&&i?h(e):(i=a=n,u)}function b(){var e=Ma(),r=g(e);if(i=arguments,a=this,c=e,r){if(l===n)return function(e){return d=e,l=Ti(v,t),f?h(e):u}(c);if(p)return Io(l),l=Ti(v,t),h(c)}return l===n&&(l=Ti(v,t)),u}return t=ys(t)||0,ns(o)&&(f=!!o.leading,s=(p="maxWait"in o)?wn(ys(o.maxWait)||0,t):s,m="trailing"in o?!!o.trailing:m),b.cancel=function(){l!==n&&Io(l),d=0,i=c=a=l=n},b.flush=function(){return l===n?u:y(Ma())},b}var Ra=Jr((function(e,t){return fr(e,1,t)})),Da=Jr((function(e,t,n){return fr(e,ys(t)||0,n)}));function ja(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Oe(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||Kn),n}function qa(e){if("function"!=typeof e)throw new Oe(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=Kn;var La=So((function(e,t){var n=(t=1==t.length&&Wa(t[0])?Dt(t[0],Zt(di())):Dt(br(t,1),Zt(di()))).length;return Jr((function(r){for(var o=-1,i=xn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return kt(e,this,r)}))})),za=Jr((function(e,t){var r=dn(t,ci(za));return ei(e,s,n,t,r)})),$a=Jr((function(e,t){var r=dn(t,ci($a));return ei(e,u,n,t,r)})),Ba=ii((function(e,t){return ei(e,c,n,n,n,t)}));function Fa(e,t){return e===t||e!=e&&t!=t}var Va=Ko(Mr),Ga=Ko((function(e,t){return e>=t})),Ua=Tr(function(){return arguments}())?Tr:function(e){return rs(e)&&Le.call(e,"callee")&&!Xe.call(e,"callee")},Wa=Ae.isArray,Qa=xt?Zt(xt):function(e){return rs(e)&&kr(e)==R};function Ha(e){return null!=e&&ts(e.length)&&!Za(e)}function Ka(e){return rs(e)&&Ha(e)}var Ya=$t||yu,Xa=_t?Zt(_t):function(e){return rs(e)&&kr(e)==x};function Ja(e){if(!rs(e))return!1;var t=kr(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!as(e)}function Za(e){if(!ns(e))return!1;var t=kr(e);return t==S||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function es(e){return"number"==typeof e&&e==gs(e)}function ts(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ns(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function rs(e){return null!=e&&"object"==typeof e}var os=St?Zt(St):function(e){return rs(e)&&vi(e)==I};function is(e){return"number"==typeof e||rs(e)&&kr(e)==E}function as(e){if(!rs(e)||kr(e)!=k)return!1;var t=Ke(e);if(null===t)return!0;var n=Le.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&qe.call(n)==Fe}var ss=At?Zt(At):function(e){return rs(e)&&kr(e)==C},us=It?Zt(It):function(e){return rs(e)&&vi(e)==N};function ls(e){return"string"==typeof e||!Wa(e)&&rs(e)&&kr(e)==P}function cs(e){return"symbol"==typeof e||rs(e)&&kr(e)==O}var ds=Et?Zt(Et):function(e){return rs(e)&&ts(e.length)&&!!ut[kr(e)]},fs=Ko($r),ps=Ko((function(e,t){return e<=t}));function ms(e){if(!e)return[];if(Ha(e))return ls(e)?mn(e):Oo(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=vi(e);return(t==I?ln:t==N?fn:Fs)(e)}function hs(e){return e?(e=ys(e))===d||e===-d?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function gs(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function vs(e){return e?lr(gs(e),0,m):0}function ys(e){if("number"==typeof e)return e;if(cs(e))return p;if(ns(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ns(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ve.test(e);return n||be.test(e)?ft(e.slice(2),n?2:8):ge.test(e)?p:+e}function bs(e){return To(e,Rs(e))}function ws(e){return null==e?"":fo(e)}var xs=Do((function(e,t){if(Ei(t)||Ha(t))To(t,Ts(t),e);else for(var n in t)Le.call(t,n)&&rr(e,n,t[n])})),_s=Do((function(e,t){To(t,Rs(t),e)})),Ss=Do((function(e,t,n,r){To(t,Rs(t),e,r)})),As=Do((function(e,t,n,r){To(t,Ts(t),e,r)})),Is=ii(ur),Es=Jr((function(e,t){e=Ce(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],s=Rs(a),u=-1,l=s.length;++u<l;){var c=s[u],d=e[c];(d===n||Fa(d,De[c])&&!Le.call(e,c))&&(e[c]=a[c])}return e})),ks=Jr((function(e){return e.push(n,ni),kt(js,n,e)}));function Ms(e,t,r){var o=null==e?n:Ir(e,t);return o===n?r:o}function Cs(e,t){return null!=e&&yi(e,t,Nr)}var Ns=Go((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),e[t]=n}),nu(iu)),Ps=Go((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),Le.call(e,t)?e[t].push(n):e[t]=[n]}),di),Os=Jr(Or);function Ts(e){return Ha(e)?Jn(e):Lr(e)}function Rs(e){return Ha(e)?Jn(e,!0):zr(e)}var Ds=Do((function(e,t,n){Gr(e,t,n)})),js=Do((function(e,t,n,r){Gr(e,t,n,r)})),qs=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})),To(e,si(e),n),r&&(n=cr(n,7,ri));for(var o=t.length;o--;)mo(n,t[o]);return n})),Ls=ii((function(e,t){return null==e?{}:function(e,t){return Qr(e,t,(function(t,n){return Cs(e,n)}))}(e,t)}));function zs(e,t){if(null==e)return{};var n=Dt(si(e),(function(e){return[e]}));return t=di(t),Qr(e,n,(function(e,n){return t(e,n[0])}))}var $s=Zo(Ts),Bs=Zo(Rs);function Fs(e){return null==e?[]:en(e,Ts(e))}var Vs=zo((function(e,t,n){return t=t.toLowerCase(),e+(n?Gs(t):t)}));function Gs(e){return Js(ws(e).toLowerCase())}function Us(e){return(e=ws(e))&&e.replace(xe,on).replace(tt,"")}var Ws=zo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Qs=zo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Hs=Lo("toLowerCase"),Ks=zo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ys=zo((function(e,t,n){return e+(n?" ":"")+Js(t)})),Xs=zo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=Lo("toUpperCase");function Zs(e,t,r){return e=ws(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 eu=Jr((function(e,t){try{return kt(e,n,t)}catch(e){return Ja(e)?e:new Ee(e)}})),tu=ii((function(e,t){return Ct(t,(function(t){t=zi(t),sr(e,t,Pa(e[t],e))})),e}));function nu(e){return function(){return e}}var ru=Fo(),ou=Fo(!0);function iu(e){return e}function au(e){return qr("function"==typeof e?e:cr(e,1))}var su=Jr((function(e,t){return function(n){return Or(n,e,t)}})),uu=Jr((function(e,t){return function(n){return Or(e,n,t)}}));function lu(e,t,n){var r=Ts(t),o=Ar(t,r);null==n&&(!ns(t)||!o.length&&r.length)&&(n=t,t=e,e=this,o=Ar(t,Ts(t)));var i=!(ns(n)&&"chain"in n&&!n.chain),a=Za(e);return Ct(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__=Oo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,jt([this.value()],arguments))})})),e}function cu(){}var du=Wo(Dt),fu=Wo(Pt),pu=Wo(zt);function mu(e){return Si(e)?Qt(zi(e)):function(e){return function(t){return Ir(t,e)}}(e)}var hu=Ho(),gu=Ho(!0);function vu(){return[]}function yu(){return!1}var bu=Uo((function(e,t){return e+t}),0),wu=Xo("ceil"),xu=Uo((function(e,t){return e/t}),1),_u=Xo("floor"),Su=Uo((function(e,t){return e*t}),1),Au=Xo("round"),Iu=Uo((function(e,t){return e-t}),0);return Fn.after=function(e,t){if("function"!=typeof t)throw new Oe(r);return e=gs(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=Ca,Fn.assign=xs,Fn.assignIn=_s,Fn.assignInWith=Ss,Fn.assignWith=As,Fn.at=Is,Fn.before=Na,Fn.bind=Pa,Fn.bindAll=tu,Fn.bindKey=Oa,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wa(e)?e:[e]},Fn.chain=ma,Fn.chunk=function(e,t,r){t=(r?_i(e,t,r):t===n)?1:wn(gs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,s=Ae(vt(o/t));i<o;)s[a++]=io(e,i,i+=t);return s},Fn.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},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Ae(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return jt(Wa(n)?Oo(n):[n],br(t,1))},Fn.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 Oe(r);return[n(e[0]),e[1]]})):[],Jr((function(n){for(var r=-1;++r<t;){var o=e[r];if(kt(o[0],this,n))return kt(o[1],this,n)}}))},Fn.conforms=function(e){return function(e){var t=Ts(e);return function(n){return dr(n,e,t)}}(cr(e,1))},Fn.constant=nu,Fn.countBy=va,Fn.create=function(e,t){var n=Vn(e);return null==t?n:ar(n,t)},Fn.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},Fn.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},Fn.debounce=Ta,Fn.defaults=Es,Fn.defaultsDeep=ks,Fn.defer=Ra,Fn.delay=Da,Fn.difference=Fi,Fn.differenceBy=Vi,Fn.differenceWith=Gi,Fn.drop=function(e,t,r){var o=null==e?0:e.length;return o?io(e,(t=r||t===n?1:gs(t))<0?0:t,o):[]},Fn.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?io(e,0,(t=o-(t=r||t===n?1:gs(t)))<0?0:t):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?go(e,di(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?go(e,di(t,3),!0):[]},Fn.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=gs(r))<0&&(r=-r>i?0:i+r),(o=o===n||o>i?i:gs(o))<0&&(o+=i),o=r>o?0:vs(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},Fn.filter=function(e,t){return(Wa(e)?Ot:yr)(e,di(t,3))},Fn.flatMap=function(e,t){return br(Ia(e,t),1)},Fn.flatMapDeep=function(e,t){return br(Ia(e,t),d)},Fn.flatMapDepth=function(e,t,r){return r=r===n?1:gs(r),br(Ia(e,t),r)},Fn.flatten=Qi,Fn.flattenDeep=function(e){return null!=e&&e.length?br(e,d):[]},Fn.flattenDepth=function(e,t){return null!=e&&e.length?br(e,t=t===n?1:gs(t)):[]},Fn.flip=function(e){return ei(e,512)},Fn.flow=ru,Fn.flowRight=ou,Fn.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},Fn.functions=function(e){return null==e?[]:Ar(e,Ts(e))},Fn.functionsIn=function(e){return null==e?[]:Ar(e,Rs(e))},Fn.groupBy=_a,Fn.initial=function(e){return null!=e&&e.length?io(e,0,-1):[]},Fn.intersection=Ki,Fn.intersectionBy=Yi,Fn.intersectionWith=Xi,Fn.invert=Ns,Fn.invertBy=Ps,Fn.invokeMap=Sa,Fn.iteratee=au,Fn.keyBy=Aa,Fn.keys=Ts,Fn.keysIn=Rs,Fn.map=Ia,Fn.mapKeys=function(e,t){var n={};return t=di(t,3),_r(e,(function(e,r,o){sr(n,t(e,r,o),e)})),n},Fn.mapValues=function(e,t){var n={};return t=di(t,3),_r(e,(function(e,r,o){sr(n,r,t(e,r,o))})),n},Fn.matches=function(e){return Fr(cr(e,1))},Fn.matchesProperty=function(e,t){return Vr(e,cr(t,1))},Fn.memoize=ja,Fn.merge=Ds,Fn.mergeWith=js,Fn.method=su,Fn.methodOf=uu,Fn.mixin=lu,Fn.negate=qa,Fn.nthArg=function(e){return e=gs(e),Jr((function(t){return Ur(t,e)}))},Fn.omit=qs,Fn.omitBy=function(e,t){return zs(e,qa(di(t)))},Fn.once=function(e){return Na(2,e)},Fn.orderBy=function(e,t,r,o){return null==e?[]:(Wa(t)||(t=null==t?[]:[t]),Wa(r=o?n:r)||(r=null==r?[]:[r]),Wr(e,t,r))},Fn.over=du,Fn.overArgs=La,Fn.overEvery=fu,Fn.overSome=pu,Fn.partial=za,Fn.partialRight=$a,Fn.partition=Ea,Fn.pick=Ls,Fn.pickBy=zs,Fn.property=mu,Fn.propertyOf=function(e){return function(t){return null==e?n:Ir(e,t)}},Fn.pull=Zi,Fn.pullAll=ea,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,di(n,2)):e},Fn.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Hr(e,t,n,r):e},Fn.pullAt=ta,Fn.range=hu,Fn.rangeRight=gu,Fn.rearg=Ba,Fn.reject=function(e,t){return(Wa(e)?Ot:yr)(e,qa(di(t,3)))},Fn.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 Kr(e,o),n},Fn.rest=function(e,t){if("function"!=typeof e)throw new Oe(r);return Jr(e,t=t===n?t:gs(t))},Fn.reverse=na,Fn.sampleSize=function(e,t,r){return t=(r?_i(e,t,r):t===n)?1:gs(t),(Wa(e)?er:eo)(e,t)},Fn.set=function(e,t,n){return null==e?e:to(e,t,n)},Fn.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:to(e,t,r,o)},Fn.shuffle=function(e){return(Wa(e)?tr:oo)(e)},Fn.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:gs(t),r=r===n?o:gs(r)),io(e,t,r)):[]},Fn.sortBy=ka,Fn.sortedUniq=function(e){return e&&e.length?lo(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?lo(e,di(t,2)):[]},Fn.split=function(e,t,r){return r&&"number"!=typeof r&&_i(e,t,r)&&(t=r=n),(r=r===n?m:r>>>0)?(e=ws(e))&&("string"==typeof t||null!=t&&!ss(t))&&!(t=fo(t))&&un(e)?Ao(mn(e),0,r):e.split(t,r):[]},Fn.spread=function(e,t){if("function"!=typeof e)throw new Oe(r);return t=null==t?0:wn(gs(t),0),Jr((function(n){var r=n[t],o=Ao(n,0,t);return r&&jt(o,r),kt(e,this,o)}))},Fn.tail=function(e){var t=null==e?0:e.length;return t?io(e,1,t):[]},Fn.take=function(e,t,r){return e&&e.length?io(e,0,(t=r||t===n?1:gs(t))<0?0:t):[]},Fn.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?io(e,(t=o-(t=r||t===n?1:gs(t)))<0?0:t,o):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?go(e,di(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?go(e,di(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new Oe(r);return ns(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),Ta(e,t,{leading:o,maxWait:t,trailing:i})},Fn.thru=ha,Fn.toArray=ms,Fn.toPairs=$s,Fn.toPairsIn=Bs,Fn.toPath=function(e){return Wa(e)?Dt(e,zi):cs(e)?[e]:Oo(Li(ws(e)))},Fn.toPlainObject=bs,Fn.transform=function(e,t,n){var r=Wa(e),o=r||Ya(e)||ds(e);if(t=di(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ns(e)&&Za(i)?Vn(Ke(e)):{}}return(o?Ct:_r)(e,(function(e,r,o){return t(n,e,r,o)})),n},Fn.unary=function(e){return Ca(e,1)},Fn.union=ra,Fn.unionBy=oa,Fn.unionWith=ia,Fn.uniq=function(e){return e&&e.length?po(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?po(e,di(t,2)):[]},Fn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?po(e,n,t):[]},Fn.unset=function(e,t){return null==e||mo(e,t)},Fn.unzip=aa,Fn.unzipWith=sa,Fn.update=function(e,t,n){return null==e?e:ho(e,t,xo(n))},Fn.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:ho(e,t,xo(r),o)},Fn.values=Fs,Fn.valuesIn=function(e){return null==e?[]:en(e,Rs(e))},Fn.without=ua,Fn.words=Zs,Fn.wrap=function(e,t){return za(xo(t),e)},Fn.xor=la,Fn.xorBy=ca,Fn.xorWith=da,Fn.zip=fa,Fn.zipObject=function(e,t){return bo(e||[],t||[],rr)},Fn.zipObjectDeep=function(e,t){return bo(e||[],t||[],to)},Fn.zipWith=pa,Fn.entries=$s,Fn.entriesIn=Bs,Fn.extend=_s,Fn.extendWith=Ss,lu(Fn,Fn),Fn.add=bu,Fn.attempt=eu,Fn.camelCase=Vs,Fn.capitalize=Gs,Fn.ceil=wu,Fn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=ys(r))==r?r:0),t!==n&&(t=(t=ys(t))==t?t:0),lr(ys(e),t,r)},Fn.clone=function(e){return cr(e,4)},Fn.cloneDeep=function(e){return cr(e,5)},Fn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:n)},Fn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:n)},Fn.conformsTo=function(e,t){return null==t||dr(e,t,Ts(t))},Fn.deburr=Us,Fn.defaultTo=function(e,t){return null==e||e!=e?t:e},Fn.divide=xu,Fn.endsWith=function(e,t,r){e=ws(e),t=fo(t);var o=e.length,i=r=r===n?o:lr(gs(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},Fn.eq=Fa,Fn.escape=function(e){return(e=ws(e))&&X.test(e)?e.replace(K,an):e},Fn.escapeRegExp=function(e){return(e=ws(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},Fn.every=function(e,t,r){var o=Wa(e)?Pt:gr;return r&&_i(e,t,r)&&(t=n),o(e,di(t,3))},Fn.find=ya,Fn.findIndex=Ui,Fn.findKey=function(e,t){return Bt(e,di(t,3),_r)},Fn.findLast=ba,Fn.findLastIndex=Wi,Fn.findLastKey=function(e,t){return Bt(e,di(t,3),Sr)},Fn.floor=_u,Fn.forEach=wa,Fn.forEachRight=xa,Fn.forIn=function(e,t){return null==e?e:wr(e,di(t,3),Rs)},Fn.forInRight=function(e,t){return null==e?e:xr(e,di(t,3),Rs)},Fn.forOwn=function(e,t){return e&&_r(e,di(t,3))},Fn.forOwnRight=function(e,t){return e&&Sr(e,di(t,3))},Fn.get=Ms,Fn.gt=Va,Fn.gte=Ga,Fn.has=function(e,t){return null!=e&&yi(e,t,Cr)},Fn.hasIn=Cs,Fn.head=Hi,Fn.identity=iu,Fn.includes=function(e,t,n,r){e=Ha(e)?e:Fs(e),n=n&&!r?gs(n):0;var o=e.length;return n<0&&(n=wn(o+n,0)),ls(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Vt(e,t,n)>-1},Fn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:gs(n);return o<0&&(o=wn(r+o,0)),Vt(e,t,o)},Fn.inRange=function(e,t,r){return t=hs(t),r===n?(r=t,t=0):r=hs(r),function(e,t,n){return e>=xn(t,n)&&e<wn(t,n)}(e=ys(e),t,r)},Fn.invoke=Os,Fn.isArguments=Ua,Fn.isArray=Wa,Fn.isArrayBuffer=Qa,Fn.isArrayLike=Ha,Fn.isArrayLikeObject=Ka,Fn.isBoolean=function(e){return!0===e||!1===e||rs(e)&&kr(e)==w},Fn.isBuffer=Ya,Fn.isDate=Xa,Fn.isElement=function(e){return rs(e)&&1===e.nodeType&&!as(e)},Fn.isEmpty=function(e){if(null==e)return!0;if(Ha(e)&&(Wa(e)||"string"==typeof e||"function"==typeof e.splice||Ya(e)||ds(e)||Ua(e)))return!e.length;var t=vi(e);if(t==I||t==N)return!e.size;if(Ei(e))return!Lr(e).length;for(var n in e)if(Le.call(e,n))return!1;return!0},Fn.isEqual=function(e,t){return Rr(e,t)},Fn.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},Fn.isError=Ja,Fn.isFinite=function(e){return"number"==typeof e&&Ht(e)},Fn.isFunction=Za,Fn.isInteger=es,Fn.isLength=ts,Fn.isMap=os,Fn.isMatch=function(e,t){return e===t||Dr(e,t,pi(t))},Fn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Dr(e,t,pi(t),r)},Fn.isNaN=function(e){return is(e)&&e!=+e},Fn.isNative=function(e){if(Ii(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return jr(e)},Fn.isNil=function(e){return null==e},Fn.isNull=function(e){return null===e},Fn.isNumber=is,Fn.isObject=ns,Fn.isObjectLike=rs,Fn.isPlainObject=as,Fn.isRegExp=ss,Fn.isSafeInteger=function(e){return es(e)&&e>=-f&&e<=f},Fn.isSet=us,Fn.isString=ls,Fn.isSymbol=cs,Fn.isTypedArray=ds,Fn.isUndefined=function(e){return e===n},Fn.isWeakMap=function(e){return rs(e)&&vi(e)==T},Fn.isWeakSet=function(e){return rs(e)&&"[object WeakSet]"==kr(e)},Fn.join=function(e,t){return null==e?"":yn.call(e,t)},Fn.kebabCase=Ws,Fn.last=Ji,Fn.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=gs(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):Ft(e,Ut,i,!0)},Fn.lowerCase=Qs,Fn.lowerFirst=Hs,Fn.lt=fs,Fn.lte=ps,Fn.max=function(e){return e&&e.length?vr(e,iu,Mr):n},Fn.maxBy=function(e,t){return e&&e.length?vr(e,di(t,2),Mr):n},Fn.mean=function(e){return Wt(e,iu)},Fn.meanBy=function(e,t){return Wt(e,di(t,2))},Fn.min=function(e){return e&&e.length?vr(e,iu,$r):n},Fn.minBy=function(e,t){return e&&e.length?vr(e,di(t,2),$r):n},Fn.stubArray=vu,Fn.stubFalse=yu,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=Su,Fn.nth=function(e,t){return e&&e.length?Ur(e,gs(t)):n},Fn.noConflict=function(){return ht._===this&&(ht._=Ve),this},Fn.noop=cu,Fn.now=Ma,Fn.pad=function(e,t,n){e=ws(e);var r=(t=gs(t))?pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Qo(bt(o),n)+e+Qo(vt(o),n)},Fn.padEnd=function(e,t,n){e=ws(e);var r=(t=gs(t))?pn(e):0;return t&&r<t?e+Qo(t-r,n):e},Fn.padStart=function(e,t,n){e=ws(e);var r=(t=gs(t))?pn(e):0;return t&&r<t?Qo(t-r,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Sn(ws(e).replace(ae,""),t||0)},Fn.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=hs(e),t===n?(t=e,e=0):t=hs(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var i=An();return xn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Yr(e,t)},Fn.reduce=function(e,t,n){var r=Wa(e)?qt:Kt,o=arguments.length<3;return r(e,di(t,4),n,o,mr)},Fn.reduceRight=function(e,t,n){var r=Wa(e)?Lt:Kt,o=arguments.length<3;return r(e,di(t,4),n,o,hr)},Fn.repeat=function(e,t,r){return t=(r?_i(e,t,r):t===n)?1:gs(t),Xr(ws(e),t)},Fn.replace=function(){var e=arguments,t=ws(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.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[zi(t[o])];a===n&&(o=i,a=r),e=Za(a)?a.call(e):a}return e},Fn.round=Au,Fn.runInContext=e,Fn.sample=function(e){return(Wa(e)?Zn:Zr)(e)},Fn.size=function(e){if(null==e)return 0;if(Ha(e))return ls(e)?pn(e):e.length;var t=vi(e);return t==I||t==N?e.size:Lr(e).length},Fn.snakeCase=Ks,Fn.some=function(e,t,r){var o=Wa(e)?zt:ao;return r&&_i(e,t,r)&&(t=n),o(e,di(t,3))},Fn.sortedIndex=function(e,t){return so(e,t)},Fn.sortedIndexBy=function(e,t,n){return uo(e,t,di(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=so(e,t);if(r<n&&Fa(e[r],t))return r}return-1},Fn.sortedLastIndex=function(e,t){return so(e,t,!0)},Fn.sortedLastIndexBy=function(e,t,n){return uo(e,t,di(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=so(e,t,!0)-1;if(Fa(e[n],t))return n}return-1},Fn.startCase=Ys,Fn.startsWith=function(e,t,n){return e=ws(e),n=null==n?0:lr(gs(n),0,e.length),t=fo(t),e.slice(n,n+t.length)==t},Fn.subtract=Iu,Fn.sum=function(e){return e&&e.length?Yt(e,iu):0},Fn.sumBy=function(e,t){return e&&e.length?Yt(e,di(t,2)):0},Fn.template=function(e,t,r){var o=Fn.templateSettings;r&&_i(e,t,r)&&(t=n),e=ws(e),t=Ss({},t,o,ti);var i,a,s=Ss({},t.imports,o.imports,ti),u=Ts(s),l=en(s,u),c=0,d=t.interpolate||_e,f="__p += '",p=Ne((t.escape||_e).source+"|"+d.source+"|"+(d===ee?me:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),m="//# sourceURL="+(Le.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++st+"]")+"\n";e.replace(p,(function(t,n,r,o,s,u){return r||(r=o),f+=e.slice(c,u).replace(Se,sn),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),f+="';\n";var h=Le.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(U,""):f).replace(W,"$1").replace(Q,"$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 g=eu((function(){return ke(u,m+"return "+f).apply(n,l)}));if(g.source=f,Ja(g))throw g;return g},Fn.times=function(e,t){if((e=gs(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},Fn.toFinite=hs,Fn.toInteger=gs,Fn.toLength=vs,Fn.toLower=function(e){return ws(e).toLowerCase()},Fn.toNumber=ys,Fn.toSafeInteger=function(e){return e?lr(gs(e),-f,f):0===e?e:0},Fn.toString=ws,Fn.toUpper=function(e){return ws(e).toUpperCase()},Fn.trim=function(e,t,r){if((e=ws(e))&&(r||t===n))return Jt(e);if(!e||!(t=fo(t)))return e;var o=mn(e),i=mn(t);return Ao(o,nn(o,i),rn(o,i)+1).join("")},Fn.trimEnd=function(e,t,r){if((e=ws(e))&&(r||t===n))return e.slice(0,hn(e)+1);if(!e||!(t=fo(t)))return e;var o=mn(e);return Ao(o,0,rn(o,mn(t))+1).join("")},Fn.trimStart=function(e,t,r){if((e=ws(e))&&(r||t===n))return e.replace(ae,"");if(!e||!(t=fo(t)))return e;var o=mn(e);return Ao(o,nn(o,mn(t))).join("")},Fn.truncate=function(e,t){var r=30,o="...";if(ns(t)){var i="separator"in t?t.separator:i;r="length"in t?gs(t.length):r,o="omission"in t?fo(t.omission):o}var a=(e=ws(e)).length;if(un(e)){var s=mn(e);a=s.length}if(r>=a)return e;var u=r-pn(o);if(u<1)return o;var l=s?Ao(s,0,u).join(""):e.slice(0,u);if(i===n)return l+o;if(s&&(u+=l.length-u),ss(i)){if(e.slice(u).search(i)){var c,d=l;for(i.global||(i=Ne(i.source,ws(he.exec(i))+"g")),i.lastIndex=0;c=i.exec(d);)var f=c.index;l=l.slice(0,f===n?u:f)}}else if(e.indexOf(fo(i),u)!=u){var p=l.lastIndexOf(i);p>-1&&(l=l.slice(0,p))}return l+o},Fn.unescape=function(e){return(e=ws(e))&&Y.test(e)?e.replace(H,gn):e},Fn.uniqueId=function(e){var t=++ze;return ws(e)+t},Fn.upperCase=Xs,Fn.upperFirst=Js,Fn.each=wa,Fn.eachRight=xa,Fn.first=Hi,lu(Fn,function(){var e={};return _r(Fn,(function(t,n){Le.call(Fn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Fn.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fn[e].placeholder=Fn})),Ct(["drop","take"],(function(e,t){Wn.prototype[e]=function(r){r=r===n?1:wn(gs(r),0);var o=this.__filtered__&&!t?new Wn(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},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:di(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(iu)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Jr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Or(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(qa(di(e)))},Wn.prototype.slice=function(e,t){e=gs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Wn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=gs(t))<0?r.dropRight(-t):r.take(t-e)),r)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(m)},_r(Wn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=Fn[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(Fn.prototype[t]=function(){var t=this.__wrapped__,s=o?[1]:arguments,u=t instanceof Wn,l=s[0],c=u||Wa(t),d=function(e){var t=i.apply(Fn,jt([e],s));return o&&f?t[0]:t};c&&r&&"function"==typeof l&&1!=l.length&&(u=c=!1);var f=this.__chain__,p=!!this.__actions__.length,m=a&&!f,h=u&&!p;if(!a&&c){t=h?t:new Wn(this);var g=e.apply(t,s);return g.__actions__.push({func:ha,args:[d],thisArg:n}),new Un(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?o?g.value()[0]:g.value():g)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Wa(o)?o:[],e)}return this[n]((function(n){return t.apply(Wa(n)?n:[],e)}))}})),_r(Wn.prototype,(function(e,t){var n=Fn[t];if(n){var r=n.name+"";Le.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:t,func:n})}})),Tn[Vo(n,2).name]=[{name:"wrapper",func:n}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Oo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oo(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Wa(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,s=i.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,d=c.length,f=0,p=xn(u,this.__takeCount__);if(!n||!r&&o==u&&p==u)return vo(e,this.__actions__);var m=[];e:for(;u--&&f<p;){for(var h=-1,g=e[l+=t];++h<d;){var v=c[h],y=v.iteratee,b=v.type,w=y(g);if(2==b)g=w;else if(!w){if(1==b)continue e;break e}}m[f++]=g}return m},Fn.prototype.at=ga,Fn.prototype.chain=function(){return ma(this)},Fn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Fn.prototype.next=function(){this.__values__===n&&(this.__values__=ms(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,r=this;r instanceof Gn;){var o=Bi(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[na],thisArg:n}),new Un(t,this.__chain__)}return this.thru(na)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return vo(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,nt&&(Fn.prototype[nt]=function(){return this}),Fn}();vt?((vt.exports=vn)._=vn,gt._=vn):ht._=vn}.call(eX)),sv.exports;var e,t}tX();const nX={$user:"/:username","$user-post":"/:username/posts/:postId","$user-event":"/:username/events/:eventId","$user-channel":"/:username/channels/:channelId","$user-media":"/:username/media/:mediaId"},rX={$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"},oX={$root:"/",$tag:"/tags/:tag"},iX=()=>{const e=Jk();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})))))},aX={...nX,...rX,...oX},sX=()=>{var e;const t=(null==(e=iX())?void 0:e.filter((({path:e})=>e.startsWith("$")&&!e.includes("/")&&!aX[e])))||[];t.length>0&&vp.warn("Unrecognized routes found:",t)};sX();const uX={path:"",history:[],transitionPath:"",confirmLeavePage:null};No({name:"router",initialState:uX,reducers:{},extraReducers:e=>{e.addCase(aG,((e,{payload:t})=>{e.confirmLeavePage=t})).addCase(sG,((e,{payload:t})=>{t!==e.transitionPath&&(e.transitionPath=t)})).addCase(lG,((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(o3);const i3="Tabs",[lX,bJ]=di(i3,[Jh]),a3=Jh(),[_J,qI]=lX(i3),cX="TabsList",dX=Fe(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=qI(cX,n),a=a3(n);return se(oI,Ae({asChild:!0},a,{orientation:i.orientation,dir:i.dir,loop:r}),se(gt.div,Ae({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))})),fX="TabsTrigger",pX=Fe(((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=qI(fX,n),s=a3(n),u=s3(a.baseId,r),l=u3(a.baseId,r),c=r===a.value;return se(iI,Ae({asChild:!0},s,{focusable:!o,active:c}),se(gt.button,Ae({type:"button",role:"tab","aria-selected":c,"aria-controls":l,"data-state":c?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u},i,{ref:t,onMouseDown:it(e.onMouseDown,(e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)})),onKeyDown:it(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)})),onFocus:it(e.onFocus,(()=>{const e="manual"!==a.activationMode;!c&&!o&&e&&a.onValueChange(r)}))})))})),hX="TabsContent",mX=Fe(((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,s=qI(hX,n),u=s3(s.baseId,r),l=u3(s.baseId,r),c=r===s.value,d=Ge(c);return Qe((()=>{const e=requestAnimationFrame((()=>d.current=!1));return()=>cancelAnimationFrame(e)}),[]),se(ca,{present:o||c},(({present:n})=>se(gt.div,Ae({"data-state":c?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":u,hidden:!n,id:l,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),n&&i)))}));function s3(e,t){return`${e}-trigger-${t}`}function u3(e,t){return`${e}-content-${t}`}const l3=dX,c3=pX,d3=mX,vX=M.forwardRef((({className:e,useDefaults:t=!0,...n},r)=>G.jsx(l3,{ref:r,"data-testid":"tabsList",className:t?xe("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})));vX.displayName=l3.displayName;const gX=M.forwardRef((({className:e,children:t,isFullWidthTab:n,...r},o)=>G.jsx(c3,{ref:o,asChild:!0,className:e??xe("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})));gX.displayName=c3.displayName;const yX=M.forwardRef((({className:e,...t},n)=>G.jsx(d3,{ref:n,className:xe("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t})));yX.displayName=d3.displayName;const wX=M.forwardRef((({className:e,...t},n)=>G.jsx("table",{ref:n,className:xe("w-full caption-bottom text-sm",e),...t})));wX.displayName="Table";const bX=M.forwardRef((({className:e,...t},n)=>G.jsx("thead",{ref:n,className:xe("[&_tr]:border-b",e),...t})));bX.displayName="TableHeader";const _X=M.forwardRef((({className:e,...t},n)=>G.jsx("tbody",{ref:n,className:xe("[&_tr:last-child]:border-0",e),...t})));_X.displayName="TableBody";const xX=M.forwardRef((({className:e,...t},n)=>G.jsx("tfoot",{ref:n,className:xe("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t})));xX.displayName="TableFooter";const SX=M.forwardRef((({className:e,...t},n)=>G.jsx("tr",{ref:n,className:xe("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})));SX.displayName="TableRow";const $X=M.forwardRef((({className:e,...t},n)=>G.jsx("th",{ref:n,className:xe("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})));$X.displayName="TableHead";const IX=M.forwardRef((({className:e,...t},n)=>G.jsx("td",{ref:n,className:xe("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})));IX.displayName="TableCell";const CX=M.forwardRef((({className:e,...t},n)=>G.jsx("caption",{ref:n,className:xe("mt-s text-sm text-muted-foreground",e),...t})));CX.displayName="TableCaption";const EX=(e,t)=>xe("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),TX=M.forwardRef((({className:e,...t},n)=>{const{error:r}=Id();return G.jsx("textarea",{className:EX(!!r,e),ref:n,...t})}));TX.displayName="Textarea";const RX=Tl(void 0),PX=()=>{const e=op(RX);if(!e)throw new Error("useColorPicker must be used within a ColorPickerProvider");return e},OX=m3((({className:e,...t})=>{const n=Ge(null),[r,o]=lt(!1),[i,a]=lt(0),[s,u]=lt(0),{hue:l,saturation:c,lightness:d,setSaturation:f,setLightness:p}=PX(),m=An((()=>`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]);Qe((()=>{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))),u(Math.max(0,Math.min(1,n)))}}),[c,d,r]);const h=_t(((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),u(i),f(100*o);p((o<.01?100:50+50*(1-o))*(1-i))}),[f,p]),g=_t((e=>{r&&h(e.clientX,e.clientY)}),[r,h]);return Qe((()=>{const e=()=>o(!1);return r&&(window.addEventListener("pointermove",g),window.addEventListener("pointerup",e)),()=>{window.removeEventListener("pointermove",g),window.removeEventListener("pointerup",e)}}),[r,g]),G.jsx("div",{className:xe("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:G.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*s+"%",boxShadow:"0 0 0 1px rgba(0,0,0,0.5)"}})})}));OX.displayName="ColorPickerSelection";const AX=xu("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"}}}),NX=M.forwardRef((({className:e,sideOffset:t=1,size:n,theme:r,children:o,isPortal:i=!0,withArrow:a=!0,...s},u)=>{const l=G.jsx(G.Fragment,{children:G.jsxs(ik,{ref:u,sideOffset:t,className:xe(AX({size:n,theme:r,className:e})),...s,children:[o,a&&G.jsxs(G.Fragment,{children:[G.jsx(nG,{height:4,width:8}),G.jsx("div",{className:"absolute bottom-0 left-0 h-full w-full rounded-sm border border-gray-700"})]})]})});return i?G.jsx(tG,{children:l}):l}));NX.displayName=ik.displayName;var cO,Hg={exports:{}},DX=Hg.exports;function MX(){return cO||(cO=1,Hg.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",s="day",u="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,g={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])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(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:u,d:s,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]=g;var x="$isDayjsObject",_=function(e){return e instanceof E||!(!e||!e[x])},S=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 s=t.name;w[s]=t,o=s}return!r&&o&&(b=o),o||!r&&b},A=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},I=y;I.l=S,I.i=_,I.w=function(e,t){return A(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(I.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()},v.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()},v.$utils=function(){return I},v.isValid=function(){return this.$d.toString()!==p},v.isSame=function(e,t){var n=A(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return A(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<A(e)},v.$g=function(e,t,n){return I.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!I.u(t)||t,c=I.p(e),p=function(e,t){var o=I.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(s)},m=function(e,t){return I.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,v=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,g):p(0,g+1);case u:var b=this.$locale().weekStart||0,w=(h<b?h+7:h)-b;return p(r?v-w:v+(6-w),g);case s: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()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,u=I.p(e),c="set"+(this.$u?"UTC":""),p=(n={},n[s]=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)[u],m=u===s?this.$D+(t-this.$W):t;if(u===l||u===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},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[I.p(e)]()},v.add=function(r,c){var f,p=this;r=Number(r);var m=I.p(c),h=function(e){var t=A(p);return I.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===s)return h(1);if(m===u)return h(7);var g=(f={},f[i]=t,f[a]=n,f[o]=e,f)[m]||1,v=this.$d.getTime()+r*g;return I.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.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=I.z(this),i=this.$H,a=this.$m,s=this.$M,u=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 I.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 I.s(t.$y,4,"0");case"M":return s+1;case"MM":return I.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,l,3);case"MMMM":return d(l,s);case"D":return t.$D;case"DD":return I.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,u,2);case"ddd":return d(n.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(i);case"HH":return I.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 I.s(a,2,"0");case"s":return String(t.$s);case"ss":return I.s(t.$s,2,"0");case"SSS":return I.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,p){var m,h=this,g=I.p(f),v=A(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,w=function(){return I.m(h,v)};switch(g){case d:m=w()/12;break;case l:m=w();break;case c:m=w()/3;break;case u:m=(b-y)/6048e5;break;case s: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:I.a(m)},v.daysInMonth=function(){return this.endOf(l).$D},v.$locale=function(){return w[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return I.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),k=E.prototype;return A.prototype=k,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",s],["$M",l],["$y",d],["$D",f]].forEach((function(e){k[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),A.extend=function(e,t){return e.$i||(e(t,E,A),e.$i=!0),A},A.locale=S,A.isDayjs=_,A.unix=function(e){return A(1e3*e)},A.en=w[b],A.Ls=w,A.p={},A}()),Hg.exports}MX();const QS="horizontal",kX=["horizontal","vertical"],GI=Fe(((e,t)=>{const{decorative:n,orientation:r=QS,...o}=e,i=f3(r)?r:QS,a=n?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"};return se(gt.div,Ae({"data-orientation":i},a,o,{ref:t}))}));function LX(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \`${QS}\`.`}function f3(e){return kX.includes(e)}GI.propTypes={orientation(e,t,n){const r=e[t],o=String(r);return r&&!f3(r)?new Error(LX(o,n)):null}};const BX=xu("\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"}}),FX=M.forwardRef((({className:e,size:t,...n},r)=>G.jsx(GI,{ref:r,className:xe(BX({size:t,className:e})),...n})));FX.displayName=GI.displayName;const jX="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI3BhaW50MF9hbmd1bGFyXzExMTY1XzE4NjcxX2NsaXBfcGF0aCkiIGRhdGEtZmlnbWEtc2tpcC1wYXJzZT0idHJ1ZSI+PGcgdHJhbnNmb3JtPSJtYXRyaXgoMCAwLjAxMiAtMC4wMTIgMCAxMiAxMikiPjxmb3JlaWduT2JqZWN0IHg9Ii0xMDY2LjI0IiB5PSItMTA2Ni4yNCIgd2lkdGg9IjIxMzIuNDkiIGhlaWdodD0iMjEzMi40OSI+PGRpdiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCIgc3R5bGU9ImJhY2tncm91bmQ6Y29uaWMtZ3JhZGllbnQoZnJvbSA5MGRlZyxyZ2JhKDI1NSwgMjU1LCAyNTUsIDEpIDBkZWcscmdiYSgyNTUsIDI1NSwgMjU1LCAxKSA2My4yNDNkZWcscmdiYSgyNTUsIDI1NSwgMjU1LCAwKSAzNjBkZWcpO2hlaWdodDoxMDAlO3dpZHRoOjEwMCU7b3BhY2l0eToxIj48L2Rpdj48L2ZvcmVpZ25PYmplY3Q+PC9nPjwvZz48cGF0aCBkPSJNMjQgMTJDMjQgMTguNjI3NCAxOC42Mjc0IDI0IDEyIDI0QzUuMzcyNTggMjQgMCAxOC42Mjc0IDAgMTJDMCA1LjM3MjU4IDUuMzcyNTggMCAxMiAwQzE4LjYyNzQgMCAyNCA1LjM3MjU4IDI0IDEyWk0zLjU4ODMyIDEyQzMuNTg4MzIgMTYuNjQ1NiA3LjM1NDM2IDIwLjQxMTcgMTIgMjAuNDExN0MxNi42NDU2IDIwLjQxMTcgMjAuNDExNyAxNi42NDU2IDIwLjQxMTcgMTJDMjAuNDExNyA3LjM1NDM2IDE2LjY0NTYgMy41ODgzMiAxMiAzLjU4ODMyQzcuMzU0MzYgMy41ODgzMiAzLjU4ODMyIDcuMzU0MzYgMy41ODgzMiAxMloiIGRhdGEtZmlnbWEtZ3JhZGllbnQtZmlsbD0ieyYjMzQ7dHlwZSYjMzQ7OiYjMzQ7R1JBRElFTlRfQU5HVUxBUiYjMzQ7LCYjMzQ7c3RvcHMmIzM0OzpbeyYjMzQ7Y29sb3ImIzM0Ozp7JiMzNDtyJiMzNDs6MS4wLCYjMzQ7ZyYjMzQ7OjEuMCwmIzM0O2ImIzM0OzoxLjAsJiMzNDthJiMzNDs6MS4wfSwmIzM0O3Bvc2l0aW9uJiMzNDs6MC4wfSx7JiMzNDtjb2xvciYjMzQ7OnsmIzM0O3ImIzM0OzoxLjAsJiMzNDtnJiMzNDs6MS4wLCYjMzQ7YiYjMzQ7OjEuMCwmIzM0O2EmIzM0OzoxLjB9LCYjMzQ7cG9zaXRpb24mIzM0OzowLjE3NTY3NTAwNDcyMDY4Nzg3fSx7JiMzNDtjb2xvciYjMzQ7OnsmIzM0O3ImIzM0OzoxLjAsJiMzNDtnJiMzNDs6MS4wLCYjMzQ7YiYjMzQ7OjEuMCwmIzM0O2EmIzM0OzowLjB9LCYjMzQ7cG9zaXRpb24mIzM0OzoxLjB9XSwmIzM0O3N0b3BzVmFyJiMzNDs6W3smIzM0O2NvbG9yJiMzNDs6eyYjMzQ7ciYjMzQ7OjEuMCwmIzM0O2cmIzM0OzoxLjAsJiMzNDtiJiMzNDs6MS4wLCYjMzQ7YSYjMzQ7OjEuMH0sJiMzNDtwb3NpdGlvbiYjMzQ7OjAuMH0seyYjMzQ7Y29sb3ImIzM0Ozp7JiMzNDtyJiMzNDs6MS4wLCYjMzQ7ZyYjMzQ7OjEuMCwmIzM0O2ImIzM0OzoxLjAsJiMzNDthJiMzNDs6MS4wfSwmIzM0O3Bvc2l0aW9uJiMzNDs6MC4xNzU2NzUwMDQ3MjA2ODc4N30seyYjMzQ7Y29sb3ImIzM0Ozp7JiMzNDtyJiMzNDs6MS4wLCYjMzQ7ZyYjMzQ7OjEuMCwmIzM0O2ImIzM0OzoxLjAsJiMzNDthJiMzNDs6MC4wfSwmIzM0O3Bvc2l0aW9uJiMzNDs6MS4wfV0sJiMzNDt0cmFuc2Zvcm0mIzM0Ozp7JiMzNDttMDAmIzM0OzoxLjQ2OTU3NjIyMzEwMjIwMTRlLTE1LCYjMzQ7bTAxJiMzNDs6LTI0LjAsJiMzNDttMDImIzM0OzoyNC4wLCYjMzQ7bTEwJiMzNDs6MjQuMCwmIzM0O20xMSYjMzQ7OjEuNDY5NTc2MjIzMTAyMjAxNGUtMTUsJiMzNDttMTImIzM0OzotMS40Njk1NzYyMjMxMDIyMDE0ZS0xNX0sJiMzNDtvcGFjaXR5JiMzNDs6MS4wLCYjMzQ7YmxlbmRNb2RlJiMzNDs6JiMzNDtOT1JNQUwmIzM0OywmIzM0O3Zpc2libGUmIzM0Ozp0cnVlfSIvPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJwYWludDBfYW5ndWxhcl8xMTE2NV8xODY3MV9jbGlwX3BhdGgiPjxwYXRoIGQ9Ik0yNCAxMkMyNCAxOC42Mjc0IDE4LjYyNzQgMjQgMTIgMjRDNS4zNzI1OCAyNCAwIDE4LjYyNzQgMCAxMkMwIDUuMzcyNTggNS4zNzI1OCAwIDEyIDBDMTguNjI3NCAwIDI0IDUuMzcyNTggMjQgMTJaTTMuNTg4MzIgMTJDMy41ODgzMiAxNi42NDU2IDcuMzU0MzYgMjAuNDExNyAxMiAyMC40MTE3QzE2LjY0NTYgMjAuNDExNyAyMC40MTE3IDE2LjY0NTYgMjAuNDExNyAxMkMyMC40MTE3IDcuMzU0MzYgMTYuNjQ1NiAzLjU4ODMyIDEyIDMuNTg4MzJDNy4zNTQzNiAzLjU4ODMyIDMuNTg4MzIgNy4zNTQzNiAzLjU4ODMyIDEyWiIvPjwvY2xpcFBhdGg+PC9kZWZzPgo8L3N2Zz4K",zX=e=>{switch(!0){case"success"===e:return G.jsx(gL,{color:"white"});case"error"===e:return G.jsx(o$,{color:"white"});case"loading"===e:return G.jsx("img",{src:jX,className:"animate-forward animate-spin [animation-direction:reverse]"});default:return null}},UX={toastsSizes:{}},p3=No({name:"systemToast",initialState:UX,reducers:{addToastSize(e,t){const{id:n,size:r}=t.payload;e.toastsSizes[n]=r},removeToastSize(e,t){delete e.toastsSizes[t.payload]}},selectors:{selectToastSize:e=>Math.max(0,...Object.values(e.toastsSizes))}}).injectInto(o3),{addToastSize:VX,removeToastSize:WX}=p3.actions,{selectToastSize:qX}=p3.selectors,GX=e=>{const{title:t,actionButton:n,id:r,type:o,promise:i,dismiss:a}=e,s=hO(),u=e$(qX),[l,c]=lt(o),[d,f]=lt("loading"===o),p=Ge(null),m=zX(d?"loading":l);Qe((()=>{var e;s(VX({id:`${r}`,size:(null==(e=p.current)?void 0:e.offsetWidth)??0}))}),[d]),Qe((()=>()=>{s(WX(`${r}`))}),[]),Qe((()=>{if(!i)return;let e=!1;return f(!0),i.then((()=>c("success"))).catch((()=>c("error"))).finally((()=>{e||f(!1)})),()=>{e=!0}}),[i]);return G.jsxs("div",{ref:p,onClick:()=>{n||a(r)},style:{minWidth:u},"data-testid":"toast-container",className:xe("gap-xs px-xs flex min-h-[56px] w-full items-center rounded-lg bg-gray-800",{"bg-red-dark":"error"===l,"border border-gray-700":"success"===l,"cursor-pointer":!n}),children:[m,G.jsx("p",{dangerouslySetInnerHTML:{__html:t},className:"text-base font-medium text-white"}),n&&G.jsx("button",{className:"h-s px-xs rounded-sm bg-gray-500 text-sm",onClick:()=>{n.onClick(),a(r)},children:n.label})]})},aS=(e,t)=>cS.custom((n=>G.jsx(GX,{id:n,dismiss:cS.dismiss,...e,actionButton:null==t?void 0:t.actionButton})),{dismissible:!0,duration:nL(e),toasterId:"system-bottom-toaster",...t}),xJ={success:(e,t)=>aS({type:"success",title:e},t),error:(e,t)=>aS({type:"error",title:e},t),loading:(e,t)=>aS({type:"loading",title:e},t),dismiss:e=>cS.dismiss(e)},sS="toast-root",SJ=()=>{const[e,t]=lt(document.getElementById(sS));return Qe((()=>{let e=document.getElementById(sS);e||(e=document.createElement("div"),e.id=sS,document.body.appendChild(e)),t(e)}),[]),e?Cs.createPortal(G.jsx(tL,{gap:8,theme:"dark",visibleToasts:3,id:"system-bottom-toaster",position:"bottom-center"}),e):null};export{SJ as SystemToastContainer,sS as TOAST_ROOT_ID,xJ as toast};
|
|
78
|
+
*/function tX(){return lO||(lO=1,e=sv,t=sv.exports,function(){var n,r="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",a=16,s=32,u=64,l=128,c=256,d=1/0,f=9007199254740991,p=NaN,m=4294967295,h=m-1,g=m>>>1,v=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",s],["partialRight",u],["rearg",c]],y="[object Arguments]",b="[object Array]",w="[object Boolean]",x="[object Date]",_="[object Error]",S="[object Function]",A="[object GeneratorFunction]",I="[object Map]",E="[object Number]",k="[object Object]",M="[object Promise]",C="[object RegExp]",N="[object Set]",P="[object String]",O="[object Symbol]",T="[object WeakMap]",R="[object ArrayBuffer]",D="[object DataView]",j="[object Float32Array]",q="[object Float64Array]",L="[object Int8Array]",z="[object Int16Array]",$="[object Int32Array]",B="[object Uint8Array]",F="[object Uint8ClampedArray]",V="[object Uint16Array]",G="[object Uint32Array]",U=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,Q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,Y=RegExp(H.source),X=RegExp(K.source),J=/<%-([\s\S]+?)%>/g,Z=/<%([\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+/,se=/\s/,ue=/\{(?:\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*$/,ge=/^[-+]0x[0-9a-f]+$/i,ve=/^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=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,Ae="\\ud800-\\udfff",Ie="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",ke="a-z\\xdf-\\xf6\\xf8-\\xff",Me="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Ne="\\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",Pe="['’]",Oe="["+Ae+"]",Te="["+Ne+"]",Re="["+Ie+"]",De="\\d+",je="["+Ee+"]",qe="["+ke+"]",Le="[^"+Ae+Ne+De+Ee+ke+Me+"]",ze="\\ud83c[\\udffb-\\udfff]",$e="[^"+Ae+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+Me+"]",Ge="\\u200d",Ue="(?:"+qe+"|"+Le+")",We="(?:"+Ve+"|"+Le+")",Qe="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Re+"|"+ze+")?",Ye="["+Ce+"]?",Xe=Ye+Ke+"(?:"+Ge+"(?:"+[$e,Be,Fe].join("|")+")"+Ye+Ke+")*",Je="(?:"+[je,Be,Fe].join("|")+")"+Xe,Ze="(?:"+[$e+Re+"?",Re,Be,Fe,Oe].join("|")+")",et=RegExp(Pe,"g"),tt=RegExp(Re,"g"),nt=RegExp(ze+"(?="+ze+")|"+Ze+Xe,"g"),rt=RegExp([Ve+"?"+qe+"+"+Qe+"(?="+[Te,Ve,"$"].join("|")+")",We+"+"+He+"(?="+[Te,Ve+Ue,"$"].join("|")+")",Ve+"?"+Ue+"+"+Qe,Ve+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,Je].join("|"),"g"),ot=RegExp("["+Ge+Ae+Ie+Ce+"]"),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"],st=-1,ut={};ut[j]=ut[q]=ut[L]=ut[z]=ut[$]=ut[B]=ut[F]=ut[V]=ut[G]=!0,ut[y]=ut[b]=ut[R]=ut[w]=ut[D]=ut[x]=ut[_]=ut[S]=ut[I]=ut[E]=ut[k]=ut[C]=ut[N]=ut[P]=ut[T]=!1;var lt={};lt[y]=lt[b]=lt[R]=lt[D]=lt[w]=lt[x]=lt[j]=lt[q]=lt[L]=lt[z]=lt[$]=lt[I]=lt[E]=lt[k]=lt[C]=lt[N]=lt[P]=lt[O]=lt[B]=lt[F]=lt[V]=lt[G]=!0,lt[_]=lt[S]=lt[T]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ft=parseInt,pt="object"==typeof Ua&&Ua&&Ua.Object===Object&&Ua,mt="object"==typeof self&&self&&self.Object===Object&&self,ht=pt||mt||Function("return this")(),gt=t&&!t.nodeType&&t,vt=gt&&e&&!e.nodeType&&e,yt=vt&&vt.exports===gt,bt=yt&&pt.process,wt=function(){try{return vt&&vt.require&&vt.require("util").types||bt&&bt.binding&&bt.binding("util")}catch{}}(),xt=wt&&wt.isArrayBuffer,_t=wt&&wt.isDate,St=wt&&wt.isMap,At=wt&&wt.isRegExp,It=wt&&wt.isSet,Et=wt&&wt.isTypedArray;function kt(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 Mt(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 Ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Nt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Pt(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 Ot(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 Tt(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 qt(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 Lt(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 zt(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 $t=Qt("length");function Bt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Ft(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):Ft(e,Ut,n)}function Gt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Ut(e){return e!=e}function Wt(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:p}function Qt(e){return function(t){return null==t?n:t[e]}}function Ht(e){return function(t){return null==e?n:e[t]}}function Kt(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 Jt(e){return e&&e.slice(0,hn(e)+1).replace(ae,"")}function Zt(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=Ht({"À":"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=Ht({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+ct[e]}function un(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 s=e[n];(s===t||s===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 un(e)?function(e){for(var t=nt.lastIndex=0;nt.test(e);)++t;return t}(e):$t(e)}function mn(e){return un(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function hn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var gn=Ht({"&":"&","<":"<",">":">",""":'"',"'":"'"}),vn=function e(t){var se,Ae=(t=null==t?ht:vn.defaults(ht.Object(),t,vn.pick(ht,at))).Array,Ie=t.Date,Ee=t.Error,ke=t.Function,Me=t.Math,Ce=t.Object,Ne=t.RegExp,Pe=t.String,Oe=t.TypeError,Te=Ae.prototype,Re=ke.prototype,De=Ce.prototype,je=t["__core-js_shared__"],qe=Re.toString,Le=De.hasOwnProperty,ze=0,$e=(se=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||""))?"Symbol(src)_1."+se:"",Be=De.toString,Fe=qe.call(Ce),Ve=ht._,Ge=Ne("^"+qe.call(Le).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=yt?t.Buffer:n,We=t.Symbol,Qe=t.Uint8Array,He=Ue?Ue.allocUnsafe:n,Ke=cn(Ce.getPrototypeOf,Ce),Ye=Ce.create,Xe=De.propertyIsEnumerable,Je=Te.splice,Ze=We?We.isConcatSpreadable:n,nt=We?We.iterator:n,ot=We?We.toStringTag:n,ct=function(){try{var e=mi(Ce,"defineProperty");return e({},"",{}),e}catch{}}(),pt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,mt=Ie&&Ie.now!==ht.Date.now&&Ie.now,gt=t.setTimeout!==ht.setTimeout&&t.setTimeout,vt=Me.ceil,bt=Me.floor,wt=Ce.getOwnPropertySymbols,$t=Ue?Ue.isBuffer:n,Ht=t.isFinite,yn=Te.join,bn=cn(Ce.keys,Ce),wn=Me.max,xn=Me.min,_n=Ie.now,Sn=t.parseInt,An=Me.random,In=Te.reverse,En=mi(t,"DataView"),kn=mi(t,"Map"),Mn=mi(t,"Promise"),Cn=mi(t,"Set"),Nn=mi(t,"WeakMap"),Pn=mi(Ce,"create"),On=Nn&&new Nn,Tn={},Rn=$i(En),Dn=$i(kn),jn=$i(Mn),qn=$i(Cn),Ln=$i(Nn),zn=We?We.prototype:n,$n=zn?zn.valueOf:n,Bn=zn?zn.toString:n;function Fn(e){if(rs(e)&&!Wa(e)&&!(e instanceof Wn)){if(e instanceof Un)return e;if(Le.call(e,"__wrapped__"))return Bi(e)}return new Un(e)}var Vn=function(){function e(){}return function(t){if(!ns(t))return{};if(Ye)return Ye(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Gn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}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 Hn(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 Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Kn;++t<n;)this.add(e[t])}function Xn(e){var t=this.__data__=new Hn(e);this.size=t.size}function Jn(e,t){var n=Wa(e),r=!n&&Ua(e),o=!n&&!r&&Ya(e),i=!n&&!r&&!o&&ds(e),a=n||r||o||i,s=a?Xt(e.length,Pe):[],u=s.length;for(var l in e)(t||Le.call(e,l))&&(!a||!("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||xi(l,u)))&&s.push(l);return s}function Zn(e){var t=e.length;return t?e[Yr(0,t-1)]:n}function er(e,t){return qi(Oo(e),lr(t,0,e.length))}function tr(e){return qi(Oo(e))}function nr(e,t,r){(r!==n&&!Fa(e[t],r)||r===n&&!(t in e))&&sr(e,t,r)}function rr(e,t,r){var o=e[t];(!Le.call(e,t)||!Fa(o,r)||r===n&&!(t in e))&&sr(e,t,r)}function or(e,t){for(var n=e.length;n--;)if(Fa(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&&To(t,Ts(t),e)}function sr(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ur(e,t){for(var r=-1,o=t.length,i=Ae(o),a=null==e;++r<o;)i[r]=a?n:Ms(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 s,u=1&t,l=2&t,c=4&t;if(r&&(s=i?r(e,o,i,a):r(e)),s!==n)return s;if(!ns(e))return e;var d=Wa(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Le.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return Oo(e,s)}else{var f=vi(e),p=f==S||f==A;if(Ya(e))return Eo(e,u);if(f==k||f==y||p&&!i){if(s=l||p?{}:bi(e),!u)return l?function(e,t){return To(e,gi(e),t)}(e,function(e,t){return e&&To(t,Rs(t),e)}(s,e)):function(e,t){return To(e,hi(e),t)}(e,ar(s,e))}else{if(!lt[f])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case R:return ko(e);case w:case x:return new r(+e);case D:return function(e,t){var n=t?ko(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case j:case q:case L:case z:case $:case B:case F:case V:case G:return Mo(e,n);case I:return new r;case E:case P:return new r(e);case C:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case N:return new r;case O:return function(e){return $n?Ce($n.call(e)):{}}(e)}}(e,f,u)}}a||(a=new Xn);var m=a.get(e);if(m)return m;a.set(e,s),us(e)?e.forEach((function(n){s.add(cr(n,t,r,n,e,a))})):os(e)&&e.forEach((function(n,o){s.set(o,cr(n,t,r,o,e,a))}));var h=d?n:(c?l?si:ai:l?Rs:Ts)(e);return Ct(h||e,(function(n,o){h&&(n=e[o=n]),rr(s,o,cr(n,t,r,o,e,a))})),s}function dr(e,t,r){var o=r.length;if(null==e)return!o;for(e=Ce(e);o--;){var i=r[o],a=t[i],s=e[i];if(s===n&&!(i in e)||!a(s))return!1}return!0}function fr(e,t,o){if("function"!=typeof e)throw new Oe(r);return Ti((function(){e.apply(n,o)}),t)}function pr(e,t,n,r){var o=-1,i=Tt,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=Dt(t,Zt(n))),r?(i=Rt,a=!1):t.length>=200&&(i=tn,a=!1,t=new Yn(t));e:for(;++o<s;){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;u.push(c)}else i(t,d,r)||u.push(c)}return u}Fn.templateSettings={escape:J,evaluate:Z,interpolate:ee,variable:"",imports:{_:Fn}},Fn.prototype=Gn.prototype,Fn.prototype.constructor=Fn,Un.prototype=Vn(Gn.prototype),Un.prototype.constructor=Un,Wn.prototype=Vn(Gn.prototype),Wn.prototype.constructor=Wn,Qn.prototype.clear=function(){this.__data__=Pn?Pn(null):{},this.size=0},Qn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Qn.prototype.get=function(e){var t=this.__data__;if(Pn){var r=t[e];return r===o?n:r}return Le.call(t,e)?t[e]:n},Qn.prototype.has=function(e){var t=this.__data__;return Pn?t[e]!==n:Le.call(t,e)},Qn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Pn&&t===n?o:t,this},Hn.prototype.clear=function(){this.__data__=[],this.size=0},Hn.prototype.delete=function(e){var t=this.__data__,n=or(t,e);return!(n<0||(n==t.length-1?t.pop():Je.call(t,n,1),--this.size,0))},Hn.prototype.get=function(e){var t=this.__data__,r=or(t,e);return r<0?n:t[r][1]},Hn.prototype.has=function(e){return or(this.__data__,e)>-1},Hn.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},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new Qn,map:new(kn||Hn),string:new Qn}},Kn.prototype.delete=function(e){var t=fi(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return fi(this,e).get(e)},Kn.prototype.has=function(e){return fi(this,e).has(e)},Kn.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 Hn,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 Hn){var r=n.__data__;if(!kn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(e,t),this.size=n.size,this};var mr=jo(_r),hr=jo(Sr,!0);function gr(e,t){var n=!0;return mr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function vr(e,t,r){for(var o=-1,i=e.length;++o<i;){var a=e[o],s=t(a);if(null!=s&&(u===n?s==s&&!cs(s):r(s,u)))var u=s,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 s=e[i];t>0&&n(s)?t>1?br(s,t-1,n,r,o):jt(o,s):r||(o[o.length]=s)}return o}var wr=qo(),xr=qo(!0);function _r(e,t){return e&&wr(e,t,Ts)}function Sr(e,t){return e&&xr(e,t,Ts)}function Ar(e,t){return Ot(t,(function(t){return Za(e[t])}))}function Ir(e,t){for(var r=0,o=(t=_o(t,e)).length;null!=e&&r<o;)e=e[zi(t[r++])];return r&&r==o?e:n}function Er(e,t,n){var r=t(e);return Wa(e)?r:jt(r,n(e))}function kr(e){return null==e?e===n?"[object Undefined]":"[object Null]":ot&&ot in Ce(e)?function(e){var t=Le.call(e,ot),r=e[ot];try{e[ot]=n;var o=!0}catch{}var i=Be.call(e);return o&&(t?e[ot]=r:delete e[ot]),i}(e):function(e){return Be.call(e)}(e)}function Mr(e,t){return e>t}function Cr(e,t){return null!=e&&Le.call(e,t)}function Nr(e,t){return null!=e&&t in Ce(e)}function Pr(e,t,r){for(var o=r?Rt:Tt,i=e[0].length,a=e.length,s=a,u=Ae(a),l=1/0,c=[];s--;){var d=e[s];s&&t&&(d=Dt(d,Zt(t))),l=xn(d.length,l),u[s]=!r&&(t||i>=120&&d.length>=120)?new Yn(s&&d):n}d=e[0];var f=-1,p=u[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(s=a;--s;){var g=u[s];if(!(g?tn(g,h):o(e[s],h,r)))continue e}p&&p.push(h),c.push(m)}}return c}function Or(e,t,r){var o=null==(e=Ni(e,t=_o(t,e)))?e:e[zi(Ji(t))];return null==o?n:kt(o,e,r)}function Tr(e){return rs(e)&&kr(e)==y}function Rr(e,t,r,o,i){return e===t||(null==e||null==t||!rs(e)&&!rs(t)?e!=e&&t!=t:function(e,t,r,o,i,a){var s=Wa(e),u=Wa(t),l=s?b:vi(e),c=u?b:vi(t),d=(l=l==y?k:l)==k,f=(c=c==y?k:c)==k,p=l==c;if(p&&Ya(e)){if(!Ya(t))return!1;s=!0,d=!1}if(p&&!d)return a||(a=new Xn),s||ds(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 Qe(e),new Qe(t)));case w:case x:case E:return Fa(+e,+t);case _:return e.name==t.name&&e.message==t.message;case C:case P:return e==t+"";case I:var s=ln;case N:var u=1&r;if(s||(s=fn),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var c=oi(s(e),s(t),r,o,i,a);return a.delete(e),c;case O:if($n)return $n.call(e)==$n.call(t)}return!1}(e,t,l,r,o,i,a);if(!(1&r)){var m=d&&Le.call(e,"__wrapped__"),h=f&&Le.call(t,"__wrapped__");if(m||h){var g=m?e.value():e,v=h?t.value():t;return a||(a=new Xn),i(g,v,r,o,a)}}return!!p&&(a||(a=new Xn),function(e,t,r,o,i,a){var s=1&r,u=ai(e),l=u.length,c=ai(t),d=c.length;if(l!=d&&!s)return!1;for(var f=l;f--;){var p=u[f];if(!(s?p in t:Le.call(t,p)))return!1}var m=a.get(e),h=a.get(t);if(m&&h)return m==t&&h==e;var g=!0;a.set(e,t),a.set(t,e);for(var v=s;++f<l;){var y=e[p=u[f]],b=t[p];if(o)var w=s?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)){g=!1;break}v||(v="constructor"==p)}if(g&&!v){var x=e.constructor,_=t.constructor;x!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _)&&(g=!1)}return a.delete(e),a.delete(t),g}(e,t,r,o,i,a))}(e,t,r,o,Rr,i))}function Dr(e,t,r,o){var i=r.length,a=i,s=!o;if(null==e)return!a;for(e=Ce(e);i--;){var u=r[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){var l=(u=r[i])[0],c=e[l],d=u[1];if(s&&u[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!(!ns(e)||function(e){return!!$e&&$e in e}(e))&&(Za(e)?Ge:ye).test($i(e))}function qr(e){return"function"==typeof e?e:null==e?iu:"object"==typeof e?Wa(e)?Vr(e[0],e[1]):Fr(e):mu(e)}function Lr(e){if(!Ei(e))return bn(e);var t=[];for(var n in Ce(e))Le.call(e,n)&&"constructor"!=n&&t.push(n);return t}function zr(e){if(!ns(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=Ei(e),n=[];for(var r in e)"constructor"==r&&(t||!Le.call(e,r))||n.push(r);return n}function $r(e,t){return e<t}function Br(e,t){var n=-1,r=Ha(e)?Ae(e.length):[];return mr(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function Fr(e){var t=pi(e);return 1==t.length&&t[0][2]?Mi(t[0][0],t[0][1]):function(n){return n===e||Dr(n,e,t)}}function Vr(e,t){return Si(e)&&ki(t)?Mi(zi(e),t):function(r){var o=Ms(r,e);return o===n&&o===t?Cs(r,e):Rr(t,o,3)}}function Gr(e,t,r,o,i){e!==t&&wr(t,(function(a,s){if(i||(i=new Xn),ns(a))!function(e,t,r,o,i,a,s){var u=Pi(e,r),l=Pi(t,r),c=s.get(l);if(c)nr(e,r,c);else{var d=a?a(u,l,r+"",e,t,s):n,f=d===n;if(f){var p=Wa(l),m=!p&&Ya(l),h=!p&&!m&&ds(l);d=l,p||m||h?Wa(u)?d=u:Ka(u)?d=Oo(u):m?(f=!1,d=Eo(l,!0)):h?(f=!1,d=Mo(l,!0)):d=[]:as(l)||Ua(l)?(d=u,Ua(u)?d=bs(u):(!ns(u)||Za(u))&&(d=bi(l))):f=!1}f&&(s.set(l,d),i(d,l,o,a,s),s.delete(l)),nr(e,r,d)}}(e,t,s,r,Gr,o,i);else{var u=o?o(Pi(e,s),a,s+"",e,t,i):n;u===n&&(u=a),nr(e,s,u)}}),Rs)}function Ur(e,t){var r=e.length;if(r)return xi(t+=t<0?r:0,r)?e[t]:n}function Wr(e,t,n){t=t.length?Dt(t,(function(e){return Wa(e)?function(t){return Ir(t,1===e.length?e[0]:e)}:e})):[iu];var r=-1;return t=Dt(t,Zt(di())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Br(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,s=n.length;++r<a;){var u=Co(o[r],i[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Qr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Ir(e,a);n(s,a)&&to(i,_o(a,e),s)}return i}function Hr(e,t,n,r){var o=r?Gt:Vt,i=-1,a=t.length,s=e;for(e===t&&(t=Oo(t)),n&&(s=Dt(e,Zt(n)));++i<a;)for(var u=0,l=t[i],c=n?n(l):l;(u=o(s,c,u,r))>-1;)s!==e&&Je.call(s,u,1),Je.call(e,u,1);return e}function Kr(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)?Je.call(e,o,1):mo(e,o)}}return e}function Yr(e,t){return e+bt(An()*(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 Jr(e,t){return Ri(Ci(e,t,iu),e+"")}function Zr(e){return Zn(Fs(e))}function eo(e,t){var n=Fs(e);return qi(n,lr(t,0,n.length))}function to(e,t,r,o){if(!ns(e))return e;for(var i=-1,a=(t=_o(t,e)).length,s=a-1,u=e;null!=u&&++i<a;){var l=zi(t[i]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=s){var d=u[l];(c=o?o(d,l,u):n)===n&&(c=ns(d)?d:xi(t[i+1])?[]:{})}rr(u,l,c),u=u[l]}return e}var no=On?function(e,t){return On.set(e,t),e}:iu,ro=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:nu(t),writable:!0})}:iu;function oo(e){return qi(Fs(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=Ae(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 so(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=g){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return uo(e,t,iu,n)}function uo(e,t,r,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=r(t))!=t,u=null===t,l=cs(t),c=t===n;i<a;){var d=bt((i+a)/2),f=r(e[d]),p=f!==n,m=null===f,g=f==f,v=cs(f);if(s)var y=o||g;else y=c?g&&(o||p):u?g&&p&&(o||!m):l?g&&p&&!m&&(o||!v):!m&&!v&&(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],s=t?t(a):a;if(!n||!Fa(s,u)){var u=s;i[o++]=0===a?0:a}}return i}function co(e){return"number"==typeof e?e:cs(e)?p:+e}function fo(e){if("string"==typeof e)return e;if(Wa(e))return Dt(e,fo)+"";if(cs(e))return Bn?Bn.call(e):"";var t=e+"";return"0"==t&&1/e==-d?"-0":t}function po(e,t,n){var r=-1,o=Tt,i=e.length,a=!0,s=[],u=s;if(n)a=!1,o=Rt;else if(i>=200){var l=t?null:Jo(e);if(l)return fn(l);a=!1,o=tn,u=new Yn}else u=t?[]:s;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=u.length;f--;)if(u[f]===d)continue e;t&&u.push(d),s.push(c)}else o(u,d,n)||(u!==s&&u.push(d),s.push(c))}return s}function mo(e,t){return null==(e=Ni(e,t=_o(t,e)))||delete e[zi(Ji(t))]}function ho(e,t,n,r){return to(e,t,n(Ir(e,t)),r)}function go(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 vo(e,t){var n=e;return n instanceof Wn&&(n=n.value()),qt(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=Ae(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=pr(i[o]||a,e[s],t,n));return po(br(i,1),t,n)}function bo(e,t,r){for(var o=-1,i=e.length,a=t.length,s={};++o<i;){var u=o<a?t[o]:n;r(s,e[o],u)}return s}function wo(e){return Ka(e)?e:[]}function xo(e){return"function"==typeof e?e:iu}function _o(e,t){return Wa(e)?e:Si(e,t)?[e]:Li(ws(e))}var So=Jr;function Ao(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:io(e,t,r)}var Io=pt||function(e){return ht.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function ko(e){var t=new e.constructor(e.byteLength);return new Qe(t).set(new Qe(e)),t}function Mo(e,t){var n=t?ko(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Co(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,a=cs(e),s=t!==n,u=null===t,l=t==t,c=cs(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||o&&s&&l||!r&&l||!i)return 1;if(!o&&!a&&!c&&e<t||c&&r&&i&&!o&&!a||u&&r&&i||!s&&i||!l)return-1}return 0}function No(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,u=t.length,l=wn(i-a,0),c=Ae(u+l),d=!r;++s<u;)c[s]=t[s];for(;++o<a;)(d||o<i)&&(c[n[o]]=e[o]);for(;l--;)c[s++]=e[o++];return c}function Po(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,u=-1,l=t.length,c=wn(i-s,0),d=Ae(c+l),f=!r;++o<c;)d[o]=e[o];for(var p=o;++u<l;)d[p+u]=t[u];for(;++a<s;)(f||o<i)&&(d[p+n[a]]=e[o++]);return d}function Oo(e,t){var n=-1,r=e.length;for(t||(t=Ae(r));++n<r;)t[n]=e[n];return t}function To(e,t,r,o){var i=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var u=t[a],l=o?o(r[u],e[u],u,r,e):n;l===n&&(l=e[u]),i?sr(r,u,l):rr(r,u,l)}return r}function Ro(e,t){return function(n,r){var o=Wa(n)?Mt:ir,i=t?t():{};return o(n,e,di(r,2),i)}}function Do(e){return Jr((function(t,r){var o=-1,i=r.length,a=i>1?r[i-1]:n,s=i>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(i--,a):n,s&&_i(r[0],r[1],s)&&(a=i<3?n:a,i=1),t=Ce(t);++o<i;){var u=r[o];u&&e(t,u,o,a)}return t}))}function jo(e,t){return function(n,r){if(null==n)return n;if(!Ha(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ce(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function qo(e){return function(t,n,r){for(var o=-1,i=Ce(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}function Lo(e){return function(t){var r=un(t=ws(t))?mn(t):n,o=r?r[0]:t.charAt(0),i=r?Ao(r,1).join(""):t.slice(1);return o[e]()+i}}function zo(e){return function(t){return qt(Zs(Us(t).replace(et,"")),e,"")}}function $o(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 ns(r)?r:n}}function Bo(e){return function(t,r,o){var i=Ce(t);if(!Ha(t)){var a=di(r,3);t=Ts(t),r=function(e){return a(i[e],e,i)}}var s=e(t,r,o);return s>-1?i[a?t[s]:s]:n}}function Fo(e){return ii((function(t){var o=t.length,i=o,a=Un.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if("function"!=typeof s)throw new Oe(r);if(a&&!u&&"wrapper"==li(s))var u=new Un([],!0)}for(i=u?i:o;++i<o;){var l=li(s=t[i]),c="wrapper"==l?ui(s):n;u=c&&Ai(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[li(c[0])].apply(u,c[3]):1==s.length&&Ai(s)?u[l]():u.thru(s)}return function(){var e=arguments,n=e[0];if(u&&1==e.length&&Wa(n))return u.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,s,u,c,d){var f=t&l,p=1&t,m=2&t,h=24&t,g=512&t,v=m?n:$o(e);return function l(){for(var y=arguments.length,b=Ae(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=No(b,o,i,h)),a&&(b=Po(b,a,s,h)),y-=_,h&&y<d){var S=dn(b,x);return Yo(e,t,Vo,l.placeholder,r,b,S,u,c,d-y)}var A=p?r:this,I=m?A[e]:e;return y=b.length,u?b=function(e,t){for(var r=e.length,o=xn(t.length,r),i=Oo(e);o--;){var a=t[o];e[o]=xi(a,r)?i[a]:n}return e}(b,u):g&&y>1&&b.reverse(),f&&c<y&&(b.length=c),this&&this!==ht&&this instanceof l&&(I=v||$o(I)),I.apply(A,b)}}function Go(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 Uo(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 Wo(e){return ii((function(t){return t=Dt(t,Zt(di())),Jr((function(n){var r=this;return e(t,(function(e){return kt(e,r,n)}))}))}))}function Qo(e,t){var r=(t=t===n?" ":fo(t)).length;if(r<2)return r?Xr(t,e):t;var o=Xr(t,vt(e/pn(t)));return un(t)?Ao(mn(o),0,e).join(""):o.slice(0,e)}function Ho(e){return function(t,r,o){return o&&"number"!=typeof o&&_i(t,r,o)&&(r=o=n),t=hs(t),r===n?(r=t,t=0):r=hs(r),function(e,t,n,r){for(var o=-1,i=wn(vt((t-e)/(n||1)),0),a=Ae(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,r,o=o===n?t<r?1:-1:hs(o),e)}}function Ko(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ys(t),n=ys(n)),e(t,n)}}function Yo(e,t,r,o,i,a,l,c,d,f){var p=8&t;t|=p?s:u,4&(t&=~(p?u:s))||(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 Ai(e)&&Oi(h,m),h.placeholder=o,Di(h,e,t)}function Xo(e){var t=Me[e];return function(e,n){if(e=ys(e),(n=null==n?0:xn(gs(n),292))&&Ht(e)){var r=(ws(e)+"e").split("e");return+((r=(ws(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Jo=Cn&&1/fn(new Cn([,-0]))[1]==d?function(e){return new Cn(e)}:cu;function Zo(e){return function(t){var n=vi(t);return n==I?ln(t):n==N?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 g=2&t;if(!g&&"function"!=typeof e)throw new Oe(r);var v=d?d.length:0;if(v||(t&=-97,d=f=n),m=m===n?m:wn(gs(m),0),h=h===n?h:gs(h),v-=f?f.length:0,t&u){var y=d,b=f;d=f=n}var w=g?n:ui(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,s=r==l&&8==n||r==l&&n==c&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!s)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var d=e[3];e[3]=d?No(d,u,t[4]):u,e[4]=d?dn(e[3],i):t[4]}(u=t[5])&&(d=e[5],e[5]=d?Po(d,u,t[6]):u,e[6]=d?dn(e[5],i):t[6]),(u=t[7])&&(e[7]=u),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?g?0:e.length:wn(x[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||t==a?function(e,t,r){var o=$o(e);return function i(){for(var a=arguments.length,s=Ae(a),u=a,l=ci(i);u--;)s[u]=arguments[u];var c=a<3&&s[0]!==l&&s[a-1]!==l?[]:dn(s,l);return(a-=c.length)<r?Yo(e,t,Vo,i.placeholder,n,s,c,n,n,r-a):kt(this&&this!==ht&&this instanceof i?o:e,this,s)}}(e,t,h):t!=s&&33!=t||f.length?Vo.apply(n,x):function(e,t,n,r){var o=1&t,i=$o(e);return function t(){for(var a=-1,s=arguments.length,u=-1,l=r.length,c=Ae(l+s),d=this&&this!==ht&&this instanceof t?i:e;++u<l;)c[u]=r[u];for(;s--;)c[u++]=arguments[++a];return kt(d,o?n:this,c)}}(e,t,o,d);else var _=function(e,t,n){var r=1&t,o=$o(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:Oi)(_,x),e,t)}function ti(e,t,r,o){return e===n||Fa(e,De[r])&&!Le.call(o,r)?t:e}function ni(e,t,r,o,i,a){return ns(e)&&ns(t)&&(a.set(t,e),Gr(e,t,n,ni,a),a.delete(t)),e}function ri(e){return as(e)?n:e}function oi(e,t,r,o,i,a){var s=1&r,u=e.length,l=t.length;if(u!=l&&!(s&&l>u))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<u;){var h=e[f],g=t[f];if(o)var v=s?o(g,h,f,t,e,a):o(h,g,f,e,t,a);if(v!==n){if(v)continue;p=!1;break}if(m){if(!zt(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!==g&&!i(h,g,r,o,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function ii(e){return Ri(Ci(e,n,Qi),e+"")}function ai(e){return Er(e,Ts,hi)}function si(e){return Er(e,Rs,gi)}var ui=On?function(e){return On.get(e)}:cu;function li(e){for(var t=e.name+"",n=Tn[t],r=Le.call(Tn,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(Le.call(Fn,"placeholder")?Fn:e).placeholder}function di(){var e=Fn.iteratee||au;return e=e===au?qr: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=Ts(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,ki(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=Ce(e),Ot(wt(e),(function(t){return Xe.call(e,t)})))}:vu,gi=wt?function(e){for(var t=[];e;)jt(t,hi(e)),e=Ke(e);return t}:vu,vi=kr;function yi(e,t,n){for(var r=-1,o=(t=_o(t,e)).length,i=!1;++r<o;){var a=zi(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&ts(o)&&xi(a,o)&&(Wa(e)||Ua(e))}function bi(e){return"function"!=typeof e.constructor||Ei(e)?{}:Vn(Ke(e))}function wi(e){return Wa(e)||Ua(e)||!!(Ze&&e&&e[Ze])}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(!ns(n))return!1;var r=typeof t;return!!("number"==r?Ha(n)&&xi(t,n.length):"string"==r&&t in n)&&Fa(n[t],e)}function Si(e,t){if(Wa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||ne.test(e)||!te.test(e)||null!=t&&e in Ce(t)}function Ai(e){var t=li(e),n=Fn[t];if("function"!=typeof n||!(t in Wn.prototype))return!1;if(e===n)return!0;var r=ui(n);return!!r&&e===r[0]}(En&&vi(new En(new ArrayBuffer(1)))!=D||kn&&vi(new kn)!=I||Mn&&vi(Mn.resolve())!=M||Cn&&vi(new Cn)!=N||Nn&&vi(new Nn)!=T)&&(vi=function(e){var t=kr(e),r=t==k?e.constructor:n,o=r?$i(r):"";if(o)switch(o){case Rn:return D;case Dn:return I;case jn:return M;case qn:return N;case Ln:return T}return t});var Ii=je?Za:yu;function Ei(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||De)}function ki(e){return e==e&&!ns(e)}function Mi(e,t){return function(r){return null!=r&&r[e]===t&&(t!==n||e in Ce(r))}}function Ci(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=Ae(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Ae(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),kt(e,this,s)}}function Ni(e,t){return t.length<2?e:Ir(e,io(t,0,-1))}function Pi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Oi=ji(no),Ti=gt||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(ue,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ct(v,(function(n){var r="_."+n[0];t&n[1]&&!Tt(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 qi(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r<t;){var a=Yr(r,i),s=e[a];e[a]=e[r],e[r]=s}return e.length=t,e}var Li=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 zi(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-d?"-0":t}function $i(e){if(null!=e){try{return qe.call(e)}catch{}try{return e+""}catch{}}return""}function Bi(e){if(e instanceof Wn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Oo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fi=Jr((function(e,t){return Ka(e)?pr(e,br(t,1,Ka,!0)):[]})),Vi=Jr((function(e,t){var r=Ji(t);return Ka(r)&&(r=n),Ka(e)?pr(e,br(t,1,Ka,!0),di(r,2)):[]})),Gi=Jr((function(e,t){var r=Ji(t);return Ka(r)&&(r=n),Ka(e)?pr(e,br(t,1,Ka,!0),n,r):[]}));function Ui(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:gs(n);return o<0&&(o=wn(r+o,0)),Ft(e,di(t,3),o)}function Wi(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==n&&(i=gs(r),i=r<0?wn(o+i,0):xn(i,o-1)),Ft(e,di(t,3),i,!0)}function Qi(e){return null!=e&&e.length?br(e,1):[]}function Hi(e){return e&&e.length?e[0]:n}var Ki=Jr((function(e){var t=Dt(e,wo);return t.length&&t[0]===e[0]?Pr(t):[]})),Yi=Jr((function(e){var t=Ji(e),r=Dt(e,wo);return t===Ji(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Pr(r,di(t,2)):[]})),Xi=Jr((function(e){var t=Ji(e),r=Dt(e,wo);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Pr(r,n,t):[]}));function Ji(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Zi=Jr(ea);function ea(e,t){return e&&e.length&&t&&t.length?Hr(e,t):e}var ta=ii((function(e,t){var n=null==e?0:e.length,r=ur(e,t);return Kr(e,Dt(t,(function(e){return xi(e,n)?+e:e})).sort(Co)),r}));function na(e){return null==e?e:In.call(e)}var ra=Jr((function(e){return po(br(e,1,Ka,!0))})),oa=Jr((function(e){var t=Ji(e);return Ka(t)&&(t=n),po(br(e,1,Ka,!0),di(t,2))})),ia=Jr((function(e){var t=Ji(e);return t="function"==typeof t?t:n,po(br(e,1,Ka,!0),n,t)}));function aa(e){if(!e||!e.length)return[];var t=0;return e=Ot(e,(function(e){if(Ka(e))return t=wn(e.length,t),!0})),Xt(t,(function(t){return Dt(e,Qt(t))}))}function sa(e,t){if(!e||!e.length)return[];var r=aa(e);return null==t?r:Dt(r,(function(e){return kt(t,n,e)}))}var ua=Jr((function(e,t){return Ka(e)?pr(e,t):[]})),la=Jr((function(e){return yo(Ot(e,Ka))})),ca=Jr((function(e){var t=Ji(e);return Ka(t)&&(t=n),yo(Ot(e,Ka),di(t,2))})),da=Jr((function(e){var t=Ji(e);return t="function"==typeof t?t:n,yo(Ot(e,Ka),n,t)})),fa=Jr(aa),pa=Jr((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,sa(e,r)}));function ma(e){var t=Fn(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var ga=ii((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return ur(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Wn&&xi(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:n}),new Un(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)})),va=Ro((function(e,t,n){Le.call(e,n)?++e[n]:sr(e,n,1)})),ya=Bo(Ui),ba=Bo(Wi);function wa(e,t){return(Wa(e)?Ct:mr)(e,di(t,3))}function xa(e,t){return(Wa(e)?Nt:hr)(e,di(t,3))}var _a=Ro((function(e,t,n){Le.call(e,n)?e[n].push(t):sr(e,n,[t])})),Sa=Jr((function(e,t,n){var r=-1,o="function"==typeof t,i=Ha(e)?Ae(e.length):[];return mr(e,(function(e){i[++r]=o?kt(t,e,n):Or(e,t,n)})),i})),Aa=Ro((function(e,t,n){sr(e,n,t)}));function Ia(e,t){return(Wa(e)?Dt:Br)(e,di(t,3))}var Ea=Ro((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),ka=Jr((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]]),Wr(e,br(t,1),[])})),Ma=mt||function(){return ht.Date.now()};function Ca(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,ei(e,l,n,n,n,n,t)}function Na(e,t){var o;if("function"!=typeof t)throw new Oe(r);return e=gs(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var Pa=Jr((function(e,t,n){var r=1;if(n.length){var o=dn(n,ci(Pa));r|=s}return ei(e,r,t,n,o)})),Oa=Jr((function(e,t,n){var r=3;if(n.length){var o=dn(n,ci(Oa));r|=s}return ei(t,r,e,n,o)}));function Ta(e,t,o){var i,a,s,u,l,c,d=0,f=!1,p=!1,m=!0;if("function"!=typeof e)throw new Oe(r);function h(t){var r=i,o=a;return i=a=n,d=t,u=e.apply(o,r)}function g(e){var r=e-c;return c===n||r>=t||r<0||p&&e-d>=s}function v(){var e=Ma();if(g(e))return y(e);l=Ti(v,function(e){var n=t-(e-c);return p?xn(n,s-(e-d)):n}(e))}function y(e){return l=n,m&&i?h(e):(i=a=n,u)}function b(){var e=Ma(),r=g(e);if(i=arguments,a=this,c=e,r){if(l===n)return function(e){return d=e,l=Ti(v,t),f?h(e):u}(c);if(p)return Io(l),l=Ti(v,t),h(c)}return l===n&&(l=Ti(v,t)),u}return t=ys(t)||0,ns(o)&&(f=!!o.leading,s=(p="maxWait"in o)?wn(ys(o.maxWait)||0,t):s,m="trailing"in o?!!o.trailing:m),b.cancel=function(){l!==n&&Io(l),d=0,i=c=a=l=n},b.flush=function(){return l===n?u:y(Ma())},b}var Ra=Jr((function(e,t){return fr(e,1,t)})),Da=Jr((function(e,t,n){return fr(e,ys(t)||0,n)}));function ja(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Oe(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||Kn),n}function qa(e){if("function"!=typeof e)throw new Oe(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=Kn;var La=So((function(e,t){var n=(t=1==t.length&&Wa(t[0])?Dt(t[0],Zt(di())):Dt(br(t,1),Zt(di()))).length;return Jr((function(r){for(var o=-1,i=xn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return kt(e,this,r)}))})),za=Jr((function(e,t){var r=dn(t,ci(za));return ei(e,s,n,t,r)})),$a=Jr((function(e,t){var r=dn(t,ci($a));return ei(e,u,n,t,r)})),Ba=ii((function(e,t){return ei(e,c,n,n,n,t)}));function Fa(e,t){return e===t||e!=e&&t!=t}var Va=Ko(Mr),Ga=Ko((function(e,t){return e>=t})),Ua=Tr(function(){return arguments}())?Tr:function(e){return rs(e)&&Le.call(e,"callee")&&!Xe.call(e,"callee")},Wa=Ae.isArray,Qa=xt?Zt(xt):function(e){return rs(e)&&kr(e)==R};function Ha(e){return null!=e&&ts(e.length)&&!Za(e)}function Ka(e){return rs(e)&&Ha(e)}var Ya=$t||yu,Xa=_t?Zt(_t):function(e){return rs(e)&&kr(e)==x};function Ja(e){if(!rs(e))return!1;var t=kr(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!as(e)}function Za(e){if(!ns(e))return!1;var t=kr(e);return t==S||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function es(e){return"number"==typeof e&&e==gs(e)}function ts(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ns(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function rs(e){return null!=e&&"object"==typeof e}var os=St?Zt(St):function(e){return rs(e)&&vi(e)==I};function is(e){return"number"==typeof e||rs(e)&&kr(e)==E}function as(e){if(!rs(e)||kr(e)!=k)return!1;var t=Ke(e);if(null===t)return!0;var n=Le.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&qe.call(n)==Fe}var ss=At?Zt(At):function(e){return rs(e)&&kr(e)==C},us=It?Zt(It):function(e){return rs(e)&&vi(e)==N};function ls(e){return"string"==typeof e||!Wa(e)&&rs(e)&&kr(e)==P}function cs(e){return"symbol"==typeof e||rs(e)&&kr(e)==O}var ds=Et?Zt(Et):function(e){return rs(e)&&ts(e.length)&&!!ut[kr(e)]},fs=Ko($r),ps=Ko((function(e,t){return e<=t}));function ms(e){if(!e)return[];if(Ha(e))return ls(e)?mn(e):Oo(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=vi(e);return(t==I?ln:t==N?fn:Fs)(e)}function hs(e){return e?(e=ys(e))===d||e===-d?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function gs(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function vs(e){return e?lr(gs(e),0,m):0}function ys(e){if("number"==typeof e)return e;if(cs(e))return p;if(ns(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ns(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ve.test(e);return n||be.test(e)?ft(e.slice(2),n?2:8):ge.test(e)?p:+e}function bs(e){return To(e,Rs(e))}function ws(e){return null==e?"":fo(e)}var xs=Do((function(e,t){if(Ei(t)||Ha(t))To(t,Ts(t),e);else for(var n in t)Le.call(t,n)&&rr(e,n,t[n])})),_s=Do((function(e,t){To(t,Rs(t),e)})),Ss=Do((function(e,t,n,r){To(t,Rs(t),e,r)})),As=Do((function(e,t,n,r){To(t,Ts(t),e,r)})),Is=ii(ur),Es=Jr((function(e,t){e=Ce(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],s=Rs(a),u=-1,l=s.length;++u<l;){var c=s[u],d=e[c];(d===n||Fa(d,De[c])&&!Le.call(e,c))&&(e[c]=a[c])}return e})),ks=Jr((function(e){return e.push(n,ni),kt(js,n,e)}));function Ms(e,t,r){var o=null==e?n:Ir(e,t);return o===n?r:o}function Cs(e,t){return null!=e&&yi(e,t,Nr)}var Ns=Go((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),e[t]=n}),nu(iu)),Ps=Go((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),Le.call(e,t)?e[t].push(n):e[t]=[n]}),di),Os=Jr(Or);function Ts(e){return Ha(e)?Jn(e):Lr(e)}function Rs(e){return Ha(e)?Jn(e,!0):zr(e)}var Ds=Do((function(e,t,n){Gr(e,t,n)})),js=Do((function(e,t,n,r){Gr(e,t,n,r)})),qs=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})),To(e,si(e),n),r&&(n=cr(n,7,ri));for(var o=t.length;o--;)mo(n,t[o]);return n})),Ls=ii((function(e,t){return null==e?{}:function(e,t){return Qr(e,t,(function(t,n){return Cs(e,n)}))}(e,t)}));function zs(e,t){if(null==e)return{};var n=Dt(si(e),(function(e){return[e]}));return t=di(t),Qr(e,n,(function(e,n){return t(e,n[0])}))}var $s=Zo(Ts),Bs=Zo(Rs);function Fs(e){return null==e?[]:en(e,Ts(e))}var Vs=zo((function(e,t,n){return t=t.toLowerCase(),e+(n?Gs(t):t)}));function Gs(e){return Js(ws(e).toLowerCase())}function Us(e){return(e=ws(e))&&e.replace(xe,on).replace(tt,"")}var Ws=zo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Qs=zo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Hs=Lo("toLowerCase"),Ks=zo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ys=zo((function(e,t,n){return e+(n?" ":"")+Js(t)})),Xs=zo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=Lo("toUpperCase");function Zs(e,t,r){return e=ws(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 eu=Jr((function(e,t){try{return kt(e,n,t)}catch(e){return Ja(e)?e:new Ee(e)}})),tu=ii((function(e,t){return Ct(t,(function(t){t=zi(t),sr(e,t,Pa(e[t],e))})),e}));function nu(e){return function(){return e}}var ru=Fo(),ou=Fo(!0);function iu(e){return e}function au(e){return qr("function"==typeof e?e:cr(e,1))}var su=Jr((function(e,t){return function(n){return Or(n,e,t)}})),uu=Jr((function(e,t){return function(n){return Or(e,n,t)}}));function lu(e,t,n){var r=Ts(t),o=Ar(t,r);null==n&&(!ns(t)||!o.length&&r.length)&&(n=t,t=e,e=this,o=Ar(t,Ts(t)));var i=!(ns(n)&&"chain"in n&&!n.chain),a=Za(e);return Ct(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__=Oo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,jt([this.value()],arguments))})})),e}function cu(){}var du=Wo(Dt),fu=Wo(Pt),pu=Wo(zt);function mu(e){return Si(e)?Qt(zi(e)):function(e){return function(t){return Ir(t,e)}}(e)}var hu=Ho(),gu=Ho(!0);function vu(){return[]}function yu(){return!1}var bu=Uo((function(e,t){return e+t}),0),wu=Xo("ceil"),xu=Uo((function(e,t){return e/t}),1),_u=Xo("floor"),Su=Uo((function(e,t){return e*t}),1),Au=Xo("round"),Iu=Uo((function(e,t){return e-t}),0);return Fn.after=function(e,t){if("function"!=typeof t)throw new Oe(r);return e=gs(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=Ca,Fn.assign=xs,Fn.assignIn=_s,Fn.assignInWith=Ss,Fn.assignWith=As,Fn.at=Is,Fn.before=Na,Fn.bind=Pa,Fn.bindAll=tu,Fn.bindKey=Oa,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wa(e)?e:[e]},Fn.chain=ma,Fn.chunk=function(e,t,r){t=(r?_i(e,t,r):t===n)?1:wn(gs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,s=Ae(vt(o/t));i<o;)s[a++]=io(e,i,i+=t);return s},Fn.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},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Ae(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return jt(Wa(n)?Oo(n):[n],br(t,1))},Fn.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 Oe(r);return[n(e[0]),e[1]]})):[],Jr((function(n){for(var r=-1;++r<t;){var o=e[r];if(kt(o[0],this,n))return kt(o[1],this,n)}}))},Fn.conforms=function(e){return function(e){var t=Ts(e);return function(n){return dr(n,e,t)}}(cr(e,1))},Fn.constant=nu,Fn.countBy=va,Fn.create=function(e,t){var n=Vn(e);return null==t?n:ar(n,t)},Fn.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},Fn.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},Fn.debounce=Ta,Fn.defaults=Es,Fn.defaultsDeep=ks,Fn.defer=Ra,Fn.delay=Da,Fn.difference=Fi,Fn.differenceBy=Vi,Fn.differenceWith=Gi,Fn.drop=function(e,t,r){var o=null==e?0:e.length;return o?io(e,(t=r||t===n?1:gs(t))<0?0:t,o):[]},Fn.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?io(e,0,(t=o-(t=r||t===n?1:gs(t)))<0?0:t):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?go(e,di(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?go(e,di(t,3),!0):[]},Fn.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=gs(r))<0&&(r=-r>i?0:i+r),(o=o===n||o>i?i:gs(o))<0&&(o+=i),o=r>o?0:vs(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},Fn.filter=function(e,t){return(Wa(e)?Ot:yr)(e,di(t,3))},Fn.flatMap=function(e,t){return br(Ia(e,t),1)},Fn.flatMapDeep=function(e,t){return br(Ia(e,t),d)},Fn.flatMapDepth=function(e,t,r){return r=r===n?1:gs(r),br(Ia(e,t),r)},Fn.flatten=Qi,Fn.flattenDeep=function(e){return null!=e&&e.length?br(e,d):[]},Fn.flattenDepth=function(e,t){return null!=e&&e.length?br(e,t=t===n?1:gs(t)):[]},Fn.flip=function(e){return ei(e,512)},Fn.flow=ru,Fn.flowRight=ou,Fn.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},Fn.functions=function(e){return null==e?[]:Ar(e,Ts(e))},Fn.functionsIn=function(e){return null==e?[]:Ar(e,Rs(e))},Fn.groupBy=_a,Fn.initial=function(e){return null!=e&&e.length?io(e,0,-1):[]},Fn.intersection=Ki,Fn.intersectionBy=Yi,Fn.intersectionWith=Xi,Fn.invert=Ns,Fn.invertBy=Ps,Fn.invokeMap=Sa,Fn.iteratee=au,Fn.keyBy=Aa,Fn.keys=Ts,Fn.keysIn=Rs,Fn.map=Ia,Fn.mapKeys=function(e,t){var n={};return t=di(t,3),_r(e,(function(e,r,o){sr(n,t(e,r,o),e)})),n},Fn.mapValues=function(e,t){var n={};return t=di(t,3),_r(e,(function(e,r,o){sr(n,r,t(e,r,o))})),n},Fn.matches=function(e){return Fr(cr(e,1))},Fn.matchesProperty=function(e,t){return Vr(e,cr(t,1))},Fn.memoize=ja,Fn.merge=Ds,Fn.mergeWith=js,Fn.method=su,Fn.methodOf=uu,Fn.mixin=lu,Fn.negate=qa,Fn.nthArg=function(e){return e=gs(e),Jr((function(t){return Ur(t,e)}))},Fn.omit=qs,Fn.omitBy=function(e,t){return zs(e,qa(di(t)))},Fn.once=function(e){return Na(2,e)},Fn.orderBy=function(e,t,r,o){return null==e?[]:(Wa(t)||(t=null==t?[]:[t]),Wa(r=o?n:r)||(r=null==r?[]:[r]),Wr(e,t,r))},Fn.over=du,Fn.overArgs=La,Fn.overEvery=fu,Fn.overSome=pu,Fn.partial=za,Fn.partialRight=$a,Fn.partition=Ea,Fn.pick=Ls,Fn.pickBy=zs,Fn.property=mu,Fn.propertyOf=function(e){return function(t){return null==e?n:Ir(e,t)}},Fn.pull=Zi,Fn.pullAll=ea,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,di(n,2)):e},Fn.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Hr(e,t,n,r):e},Fn.pullAt=ta,Fn.range=hu,Fn.rangeRight=gu,Fn.rearg=Ba,Fn.reject=function(e,t){return(Wa(e)?Ot:yr)(e,qa(di(t,3)))},Fn.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 Kr(e,o),n},Fn.rest=function(e,t){if("function"!=typeof e)throw new Oe(r);return Jr(e,t=t===n?t:gs(t))},Fn.reverse=na,Fn.sampleSize=function(e,t,r){return t=(r?_i(e,t,r):t===n)?1:gs(t),(Wa(e)?er:eo)(e,t)},Fn.set=function(e,t,n){return null==e?e:to(e,t,n)},Fn.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:to(e,t,r,o)},Fn.shuffle=function(e){return(Wa(e)?tr:oo)(e)},Fn.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:gs(t),r=r===n?o:gs(r)),io(e,t,r)):[]},Fn.sortBy=ka,Fn.sortedUniq=function(e){return e&&e.length?lo(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?lo(e,di(t,2)):[]},Fn.split=function(e,t,r){return r&&"number"!=typeof r&&_i(e,t,r)&&(t=r=n),(r=r===n?m:r>>>0)?(e=ws(e))&&("string"==typeof t||null!=t&&!ss(t))&&!(t=fo(t))&&un(e)?Ao(mn(e),0,r):e.split(t,r):[]},Fn.spread=function(e,t){if("function"!=typeof e)throw new Oe(r);return t=null==t?0:wn(gs(t),0),Jr((function(n){var r=n[t],o=Ao(n,0,t);return r&&jt(o,r),kt(e,this,o)}))},Fn.tail=function(e){var t=null==e?0:e.length;return t?io(e,1,t):[]},Fn.take=function(e,t,r){return e&&e.length?io(e,0,(t=r||t===n?1:gs(t))<0?0:t):[]},Fn.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?io(e,(t=o-(t=r||t===n?1:gs(t)))<0?0:t,o):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?go(e,di(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?go(e,di(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new Oe(r);return ns(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),Ta(e,t,{leading:o,maxWait:t,trailing:i})},Fn.thru=ha,Fn.toArray=ms,Fn.toPairs=$s,Fn.toPairsIn=Bs,Fn.toPath=function(e){return Wa(e)?Dt(e,zi):cs(e)?[e]:Oo(Li(ws(e)))},Fn.toPlainObject=bs,Fn.transform=function(e,t,n){var r=Wa(e),o=r||Ya(e)||ds(e);if(t=di(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ns(e)&&Za(i)?Vn(Ke(e)):{}}return(o?Ct:_r)(e,(function(e,r,o){return t(n,e,r,o)})),n},Fn.unary=function(e){return Ca(e,1)},Fn.union=ra,Fn.unionBy=oa,Fn.unionWith=ia,Fn.uniq=function(e){return e&&e.length?po(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?po(e,di(t,2)):[]},Fn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?po(e,n,t):[]},Fn.unset=function(e,t){return null==e||mo(e,t)},Fn.unzip=aa,Fn.unzipWith=sa,Fn.update=function(e,t,n){return null==e?e:ho(e,t,xo(n))},Fn.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:ho(e,t,xo(r),o)},Fn.values=Fs,Fn.valuesIn=function(e){return null==e?[]:en(e,Rs(e))},Fn.without=ua,Fn.words=Zs,Fn.wrap=function(e,t){return za(xo(t),e)},Fn.xor=la,Fn.xorBy=ca,Fn.xorWith=da,Fn.zip=fa,Fn.zipObject=function(e,t){return bo(e||[],t||[],rr)},Fn.zipObjectDeep=function(e,t){return bo(e||[],t||[],to)},Fn.zipWith=pa,Fn.entries=$s,Fn.entriesIn=Bs,Fn.extend=_s,Fn.extendWith=Ss,lu(Fn,Fn),Fn.add=bu,Fn.attempt=eu,Fn.camelCase=Vs,Fn.capitalize=Gs,Fn.ceil=wu,Fn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=ys(r))==r?r:0),t!==n&&(t=(t=ys(t))==t?t:0),lr(ys(e),t,r)},Fn.clone=function(e){return cr(e,4)},Fn.cloneDeep=function(e){return cr(e,5)},Fn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:n)},Fn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:n)},Fn.conformsTo=function(e,t){return null==t||dr(e,t,Ts(t))},Fn.deburr=Us,Fn.defaultTo=function(e,t){return null==e||e!=e?t:e},Fn.divide=xu,Fn.endsWith=function(e,t,r){e=ws(e),t=fo(t);var o=e.length,i=r=r===n?o:lr(gs(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},Fn.eq=Fa,Fn.escape=function(e){return(e=ws(e))&&X.test(e)?e.replace(K,an):e},Fn.escapeRegExp=function(e){return(e=ws(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},Fn.every=function(e,t,r){var o=Wa(e)?Pt:gr;return r&&_i(e,t,r)&&(t=n),o(e,di(t,3))},Fn.find=ya,Fn.findIndex=Ui,Fn.findKey=function(e,t){return Bt(e,di(t,3),_r)},Fn.findLast=ba,Fn.findLastIndex=Wi,Fn.findLastKey=function(e,t){return Bt(e,di(t,3),Sr)},Fn.floor=_u,Fn.forEach=wa,Fn.forEachRight=xa,Fn.forIn=function(e,t){return null==e?e:wr(e,di(t,3),Rs)},Fn.forInRight=function(e,t){return null==e?e:xr(e,di(t,3),Rs)},Fn.forOwn=function(e,t){return e&&_r(e,di(t,3))},Fn.forOwnRight=function(e,t){return e&&Sr(e,di(t,3))},Fn.get=Ms,Fn.gt=Va,Fn.gte=Ga,Fn.has=function(e,t){return null!=e&&yi(e,t,Cr)},Fn.hasIn=Cs,Fn.head=Hi,Fn.identity=iu,Fn.includes=function(e,t,n,r){e=Ha(e)?e:Fs(e),n=n&&!r?gs(n):0;var o=e.length;return n<0&&(n=wn(o+n,0)),ls(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Vt(e,t,n)>-1},Fn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:gs(n);return o<0&&(o=wn(r+o,0)),Vt(e,t,o)},Fn.inRange=function(e,t,r){return t=hs(t),r===n?(r=t,t=0):r=hs(r),function(e,t,n){return e>=xn(t,n)&&e<wn(t,n)}(e=ys(e),t,r)},Fn.invoke=Os,Fn.isArguments=Ua,Fn.isArray=Wa,Fn.isArrayBuffer=Qa,Fn.isArrayLike=Ha,Fn.isArrayLikeObject=Ka,Fn.isBoolean=function(e){return!0===e||!1===e||rs(e)&&kr(e)==w},Fn.isBuffer=Ya,Fn.isDate=Xa,Fn.isElement=function(e){return rs(e)&&1===e.nodeType&&!as(e)},Fn.isEmpty=function(e){if(null==e)return!0;if(Ha(e)&&(Wa(e)||"string"==typeof e||"function"==typeof e.splice||Ya(e)||ds(e)||Ua(e)))return!e.length;var t=vi(e);if(t==I||t==N)return!e.size;if(Ei(e))return!Lr(e).length;for(var n in e)if(Le.call(e,n))return!1;return!0},Fn.isEqual=function(e,t){return Rr(e,t)},Fn.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},Fn.isError=Ja,Fn.isFinite=function(e){return"number"==typeof e&&Ht(e)},Fn.isFunction=Za,Fn.isInteger=es,Fn.isLength=ts,Fn.isMap=os,Fn.isMatch=function(e,t){return e===t||Dr(e,t,pi(t))},Fn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Dr(e,t,pi(t),r)},Fn.isNaN=function(e){return is(e)&&e!=+e},Fn.isNative=function(e){if(Ii(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return jr(e)},Fn.isNil=function(e){return null==e},Fn.isNull=function(e){return null===e},Fn.isNumber=is,Fn.isObject=ns,Fn.isObjectLike=rs,Fn.isPlainObject=as,Fn.isRegExp=ss,Fn.isSafeInteger=function(e){return es(e)&&e>=-f&&e<=f},Fn.isSet=us,Fn.isString=ls,Fn.isSymbol=cs,Fn.isTypedArray=ds,Fn.isUndefined=function(e){return e===n},Fn.isWeakMap=function(e){return rs(e)&&vi(e)==T},Fn.isWeakSet=function(e){return rs(e)&&"[object WeakSet]"==kr(e)},Fn.join=function(e,t){return null==e?"":yn.call(e,t)},Fn.kebabCase=Ws,Fn.last=Ji,Fn.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=gs(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):Ft(e,Ut,i,!0)},Fn.lowerCase=Qs,Fn.lowerFirst=Hs,Fn.lt=fs,Fn.lte=ps,Fn.max=function(e){return e&&e.length?vr(e,iu,Mr):n},Fn.maxBy=function(e,t){return e&&e.length?vr(e,di(t,2),Mr):n},Fn.mean=function(e){return Wt(e,iu)},Fn.meanBy=function(e,t){return Wt(e,di(t,2))},Fn.min=function(e){return e&&e.length?vr(e,iu,$r):n},Fn.minBy=function(e,t){return e&&e.length?vr(e,di(t,2),$r):n},Fn.stubArray=vu,Fn.stubFalse=yu,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=Su,Fn.nth=function(e,t){return e&&e.length?Ur(e,gs(t)):n},Fn.noConflict=function(){return ht._===this&&(ht._=Ve),this},Fn.noop=cu,Fn.now=Ma,Fn.pad=function(e,t,n){e=ws(e);var r=(t=gs(t))?pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Qo(bt(o),n)+e+Qo(vt(o),n)},Fn.padEnd=function(e,t,n){e=ws(e);var r=(t=gs(t))?pn(e):0;return t&&r<t?e+Qo(t-r,n):e},Fn.padStart=function(e,t,n){e=ws(e);var r=(t=gs(t))?pn(e):0;return t&&r<t?Qo(t-r,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Sn(ws(e).replace(ae,""),t||0)},Fn.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=hs(e),t===n?(t=e,e=0):t=hs(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var i=An();return xn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Yr(e,t)},Fn.reduce=function(e,t,n){var r=Wa(e)?qt:Kt,o=arguments.length<3;return r(e,di(t,4),n,o,mr)},Fn.reduceRight=function(e,t,n){var r=Wa(e)?Lt:Kt,o=arguments.length<3;return r(e,di(t,4),n,o,hr)},Fn.repeat=function(e,t,r){return t=(r?_i(e,t,r):t===n)?1:gs(t),Xr(ws(e),t)},Fn.replace=function(){var e=arguments,t=ws(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.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[zi(t[o])];a===n&&(o=i,a=r),e=Za(a)?a.call(e):a}return e},Fn.round=Au,Fn.runInContext=e,Fn.sample=function(e){return(Wa(e)?Zn:Zr)(e)},Fn.size=function(e){if(null==e)return 0;if(Ha(e))return ls(e)?pn(e):e.length;var t=vi(e);return t==I||t==N?e.size:Lr(e).length},Fn.snakeCase=Ks,Fn.some=function(e,t,r){var o=Wa(e)?zt:ao;return r&&_i(e,t,r)&&(t=n),o(e,di(t,3))},Fn.sortedIndex=function(e,t){return so(e,t)},Fn.sortedIndexBy=function(e,t,n){return uo(e,t,di(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=so(e,t);if(r<n&&Fa(e[r],t))return r}return-1},Fn.sortedLastIndex=function(e,t){return so(e,t,!0)},Fn.sortedLastIndexBy=function(e,t,n){return uo(e,t,di(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=so(e,t,!0)-1;if(Fa(e[n],t))return n}return-1},Fn.startCase=Ys,Fn.startsWith=function(e,t,n){return e=ws(e),n=null==n?0:lr(gs(n),0,e.length),t=fo(t),e.slice(n,n+t.length)==t},Fn.subtract=Iu,Fn.sum=function(e){return e&&e.length?Yt(e,iu):0},Fn.sumBy=function(e,t){return e&&e.length?Yt(e,di(t,2)):0},Fn.template=function(e,t,r){var o=Fn.templateSettings;r&&_i(e,t,r)&&(t=n),e=ws(e),t=Ss({},t,o,ti);var i,a,s=Ss({},t.imports,o.imports,ti),u=Ts(s),l=en(s,u),c=0,d=t.interpolate||_e,f="__p += '",p=Ne((t.escape||_e).source+"|"+d.source+"|"+(d===ee?me:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),m="//# sourceURL="+(Le.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++st+"]")+"\n";e.replace(p,(function(t,n,r,o,s,u){return r||(r=o),f+=e.slice(c,u).replace(Se,sn),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),f+="';\n";var h=Le.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(U,""):f).replace(W,"$1").replace(Q,"$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 g=eu((function(){return ke(u,m+"return "+f).apply(n,l)}));if(g.source=f,Ja(g))throw g;return g},Fn.times=function(e,t){if((e=gs(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},Fn.toFinite=hs,Fn.toInteger=gs,Fn.toLength=vs,Fn.toLower=function(e){return ws(e).toLowerCase()},Fn.toNumber=ys,Fn.toSafeInteger=function(e){return e?lr(gs(e),-f,f):0===e?e:0},Fn.toString=ws,Fn.toUpper=function(e){return ws(e).toUpperCase()},Fn.trim=function(e,t,r){if((e=ws(e))&&(r||t===n))return Jt(e);if(!e||!(t=fo(t)))return e;var o=mn(e),i=mn(t);return Ao(o,nn(o,i),rn(o,i)+1).join("")},Fn.trimEnd=function(e,t,r){if((e=ws(e))&&(r||t===n))return e.slice(0,hn(e)+1);if(!e||!(t=fo(t)))return e;var o=mn(e);return Ao(o,0,rn(o,mn(t))+1).join("")},Fn.trimStart=function(e,t,r){if((e=ws(e))&&(r||t===n))return e.replace(ae,"");if(!e||!(t=fo(t)))return e;var o=mn(e);return Ao(o,nn(o,mn(t))).join("")},Fn.truncate=function(e,t){var r=30,o="...";if(ns(t)){var i="separator"in t?t.separator:i;r="length"in t?gs(t.length):r,o="omission"in t?fo(t.omission):o}var a=(e=ws(e)).length;if(un(e)){var s=mn(e);a=s.length}if(r>=a)return e;var u=r-pn(o);if(u<1)return o;var l=s?Ao(s,0,u).join(""):e.slice(0,u);if(i===n)return l+o;if(s&&(u+=l.length-u),ss(i)){if(e.slice(u).search(i)){var c,d=l;for(i.global||(i=Ne(i.source,ws(he.exec(i))+"g")),i.lastIndex=0;c=i.exec(d);)var f=c.index;l=l.slice(0,f===n?u:f)}}else if(e.indexOf(fo(i),u)!=u){var p=l.lastIndexOf(i);p>-1&&(l=l.slice(0,p))}return l+o},Fn.unescape=function(e){return(e=ws(e))&&Y.test(e)?e.replace(H,gn):e},Fn.uniqueId=function(e){var t=++ze;return ws(e)+t},Fn.upperCase=Xs,Fn.upperFirst=Js,Fn.each=wa,Fn.eachRight=xa,Fn.first=Hi,lu(Fn,function(){var e={};return _r(Fn,(function(t,n){Le.call(Fn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Fn.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fn[e].placeholder=Fn})),Ct(["drop","take"],(function(e,t){Wn.prototype[e]=function(r){r=r===n?1:wn(gs(r),0);var o=this.__filtered__&&!t?new Wn(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},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:di(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(iu)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Jr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Or(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(qa(di(e)))},Wn.prototype.slice=function(e,t){e=gs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Wn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=gs(t))<0?r.dropRight(-t):r.take(t-e)),r)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(m)},_r(Wn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=Fn[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(Fn.prototype[t]=function(){var t=this.__wrapped__,s=o?[1]:arguments,u=t instanceof Wn,l=s[0],c=u||Wa(t),d=function(e){var t=i.apply(Fn,jt([e],s));return o&&f?t[0]:t};c&&r&&"function"==typeof l&&1!=l.length&&(u=c=!1);var f=this.__chain__,p=!!this.__actions__.length,m=a&&!f,h=u&&!p;if(!a&&c){t=h?t:new Wn(this);var g=e.apply(t,s);return g.__actions__.push({func:ha,args:[d],thisArg:n}),new Un(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?o?g.value()[0]:g.value():g)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Wa(o)?o:[],e)}return this[n]((function(n){return t.apply(Wa(n)?n:[],e)}))}})),_r(Wn.prototype,(function(e,t){var n=Fn[t];if(n){var r=n.name+"";Le.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:t,func:n})}})),Tn[Vo(n,2).name]=[{name:"wrapper",func:n}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Oo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oo(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Wa(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,s=i.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,d=c.length,f=0,p=xn(u,this.__takeCount__);if(!n||!r&&o==u&&p==u)return vo(e,this.__actions__);var m=[];e:for(;u--&&f<p;){for(var h=-1,g=e[l+=t];++h<d;){var v=c[h],y=v.iteratee,b=v.type,w=y(g);if(2==b)g=w;else if(!w){if(1==b)continue e;break e}}m[f++]=g}return m},Fn.prototype.at=ga,Fn.prototype.chain=function(){return ma(this)},Fn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Fn.prototype.next=function(){this.__values__===n&&(this.__values__=ms(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,r=this;r instanceof Gn;){var o=Bi(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[na],thisArg:n}),new Un(t,this.__chain__)}return this.thru(na)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return vo(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,nt&&(Fn.prototype[nt]=function(){return this}),Fn}();vt?((vt.exports=vn)._=vn,gt._=vn):ht._=vn}.call(eX)),sv.exports;var e,t}tX();const nX={$user:"/:username","$user-post":"/:username/posts/:postId","$user-event":"/:username/events/:eventId","$user-channel":"/:username/channels/:channelId","$user-media":"/:username/media/:mediaId"},rX={$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"},oX={$root:"/",$tag:"/tags/:tag"},iX=()=>{const e=Jk();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})))))},aX={...nX,...rX,...oX},sX=()=>{var e;const t=(null==(e=iX())?void 0:e.filter((({path:e})=>e.startsWith("$")&&!e.includes("/")&&!aX[e])))||[];t.length>0&&vp.warn("Unrecognized routes found:",t)};sX();const uX={path:"",history:[],transitionPath:"",confirmLeavePage:null};No({name:"router",initialState:uX,reducers:{},extraReducers:e=>{e.addCase(aG,((e,{payload:t})=>{e.confirmLeavePage=t})).addCase(sG,((e,{payload:t})=>{t!==e.transitionPath&&(e.transitionPath=t)})).addCase(lG,((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(o3);const i3="Tabs",[lX,bJ]=di(i3,[Jh]),a3=Jh(),[_J,qI]=lX(i3),cX="TabsList",dX=Fe(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=qI(cX,n),a=a3(n);return se(oI,Ae({asChild:!0},a,{orientation:i.orientation,dir:i.dir,loop:r}),se(gt.div,Ae({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))})),fX="TabsTrigger",pX=Fe(((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=qI(fX,n),s=a3(n),u=s3(a.baseId,r),l=u3(a.baseId,r),c=r===a.value;return se(iI,Ae({asChild:!0},s,{focusable:!o,active:c}),se(gt.button,Ae({type:"button",role:"tab","aria-selected":c,"aria-controls":l,"data-state":c?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u},i,{ref:t,onMouseDown:it(e.onMouseDown,(e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)})),onKeyDown:it(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)})),onFocus:it(e.onFocus,(()=>{const e="manual"!==a.activationMode;!c&&!o&&e&&a.onValueChange(r)}))})))})),hX="TabsContent",mX=Fe(((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,s=qI(hX,n),u=s3(s.baseId,r),l=u3(s.baseId,r),c=r===s.value,d=Ge(c);return Qe((()=>{const e=requestAnimationFrame((()=>d.current=!1));return()=>cancelAnimationFrame(e)}),[]),se(ca,{present:o||c},(({present:n})=>se(gt.div,Ae({"data-state":c?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":u,hidden:!n,id:l,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),n&&i)))}));function s3(e,t){return`${e}-trigger-${t}`}function u3(e,t){return`${e}-content-${t}`}const l3=dX,c3=pX,d3=mX,vX=M.forwardRef((({className:e,useDefaults:t=!0,...n},r)=>G.jsx(l3,{ref:r,"data-testid":"tabsList",className:t?xe("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})));vX.displayName=l3.displayName;const gX=M.forwardRef((({className:e,children:t,isFullWidthTab:n,...r},o)=>G.jsx(c3,{ref:o,asChild:!0,className:e??xe("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})));gX.displayName=c3.displayName;const yX=M.forwardRef((({className:e,...t},n)=>G.jsx(d3,{ref:n,className:xe("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t})));yX.displayName=d3.displayName;const wX=M.forwardRef((({className:e,...t},n)=>G.jsx("table",{ref:n,className:xe("w-full caption-bottom text-sm",e),...t})));wX.displayName="Table";const bX=M.forwardRef((({className:e,...t},n)=>G.jsx("thead",{ref:n,className:xe("[&_tr]:border-b",e),...t})));bX.displayName="TableHeader";const _X=M.forwardRef((({className:e,...t},n)=>G.jsx("tbody",{ref:n,className:xe("[&_tr:last-child]:border-0",e),...t})));_X.displayName="TableBody";const xX=M.forwardRef((({className:e,...t},n)=>G.jsx("tfoot",{ref:n,className:xe("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t})));xX.displayName="TableFooter";const SX=M.forwardRef((({className:e,...t},n)=>G.jsx("tr",{ref:n,className:xe("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})));SX.displayName="TableRow";const $X=M.forwardRef((({className:e,...t},n)=>G.jsx("th",{ref:n,className:xe("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})));$X.displayName="TableHead";const IX=M.forwardRef((({className:e,...t},n)=>G.jsx("td",{ref:n,className:xe("h-14 bg-inherit p-xs py-xxs align-middle","overflow-hidden truncate text-ellipsis text-base text-gray-700",e),...t})));IX.displayName="TableCell";const CX=M.forwardRef((({className:e,...t},n)=>G.jsx("caption",{ref:n,className:xe("mt-s text-sm text-muted-foreground",e),...t})));CX.displayName="TableCaption";const EX=(e,t)=>xe("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),TX=M.forwardRef((({className:e,...t},n)=>{const{error:r}=Id();return G.jsx("textarea",{className:EX(!!r,e),ref:n,...t})}));TX.displayName="Textarea";const RX=Tl(void 0),PX=()=>{const e=op(RX);if(!e)throw new Error("useColorPicker must be used within a ColorPickerProvider");return e},OX=m3((({className:e,...t})=>{const n=Ge(null),[r,o]=lt(!1),[i,a]=lt(0),[s,u]=lt(0),{hue:l,saturation:c,lightness:d,setSaturation:f,setLightness:p}=PX(),m=An((()=>`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]);Qe((()=>{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))),u(Math.max(0,Math.min(1,n)))}}),[c,d,r]);const h=_t(((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),u(i),f(100*o);p((o<.01?100:50+50*(1-o))*(1-i))}),[f,p]),g=_t((e=>{r&&h(e.clientX,e.clientY)}),[r,h]);return Qe((()=>{const e=()=>o(!1);return r&&(window.addEventListener("pointermove",g),window.addEventListener("pointerup",e)),()=>{window.removeEventListener("pointermove",g),window.removeEventListener("pointerup",e)}}),[r,g]),G.jsx("div",{className:xe("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:G.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*s+"%",boxShadow:"0 0 0 1px rgba(0,0,0,0.5)"}})})}));OX.displayName="ColorPickerSelection";const AX=xu("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"}}}),NX=M.forwardRef((({className:e,sideOffset:t=1,size:n,theme:r,children:o,isPortal:i=!0,withArrow:a=!0,...s},u)=>{const l=G.jsx(G.Fragment,{children:G.jsxs(ik,{ref:u,sideOffset:t,className:xe(AX({size:n,theme:r,className:e})),...s,children:[o,a&&G.jsxs(G.Fragment,{children:[G.jsx(nG,{height:4,width:8}),G.jsx("div",{className:"absolute bottom-0 left-0 h-full w-full rounded-sm border border-gray-700"})]})]})});return i?G.jsx(tG,{children:l}):l}));NX.displayName=ik.displayName;var cO,Hg={exports:{}},DX=Hg.exports;function MX(){return cO||(cO=1,Hg.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",s="day",u="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,g={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])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(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:u,d:s,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]=g;var x="$isDayjsObject",_=function(e){return e instanceof E||!(!e||!e[x])},S=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 s=t.name;w[s]=t,o=s}return!r&&o&&(b=o),o||!r&&b},A=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},I=y;I.l=S,I.i=_,I.w=function(e,t){return A(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(I.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()},v.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()},v.$utils=function(){return I},v.isValid=function(){return this.$d.toString()!==p},v.isSame=function(e,t){var n=A(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return A(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<A(e)},v.$g=function(e,t,n){return I.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!I.u(t)||t,c=I.p(e),p=function(e,t){var o=I.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(s)},m=function(e,t){return I.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,v=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,g):p(0,g+1);case u:var b=this.$locale().weekStart||0,w=(h<b?h+7:h)-b;return p(r?v-w:v+(6-w),g);case s: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()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,u=I.p(e),c="set"+(this.$u?"UTC":""),p=(n={},n[s]=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)[u],m=u===s?this.$D+(t-this.$W):t;if(u===l||u===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},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[I.p(e)]()},v.add=function(r,c){var f,p=this;r=Number(r);var m=I.p(c),h=function(e){var t=A(p);return I.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===s)return h(1);if(m===u)return h(7);var g=(f={},f[i]=t,f[a]=n,f[o]=e,f)[m]||1,v=this.$d.getTime()+r*g;return I.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.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=I.z(this),i=this.$H,a=this.$m,s=this.$M,u=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 I.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 I.s(t.$y,4,"0");case"M":return s+1;case"MM":return I.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,l,3);case"MMMM":return d(l,s);case"D":return t.$D;case"DD":return I.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,u,2);case"ddd":return d(n.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(i);case"HH":return I.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 I.s(a,2,"0");case"s":return String(t.$s);case"ss":return I.s(t.$s,2,"0");case"SSS":return I.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,p){var m,h=this,g=I.p(f),v=A(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,w=function(){return I.m(h,v)};switch(g){case d:m=w()/12;break;case l:m=w();break;case c:m=w()/3;break;case u:m=(b-y)/6048e5;break;case s: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:I.a(m)},v.daysInMonth=function(){return this.endOf(l).$D},v.$locale=function(){return w[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return I.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),k=E.prototype;return A.prototype=k,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",s],["$M",l],["$y",d],["$D",f]].forEach((function(e){k[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),A.extend=function(e,t){return e.$i||(e(t,E,A),e.$i=!0),A},A.locale=S,A.isDayjs=_,A.unix=function(e){return A(1e3*e)},A.en=w[b],A.Ls=w,A.p={},A}()),Hg.exports}MX();const QS="horizontal",kX=["horizontal","vertical"],GI=Fe(((e,t)=>{const{decorative:n,orientation:r=QS,...o}=e,i=f3(r)?r:QS,a=n?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"};return se(gt.div,Ae({"data-orientation":i},a,o,{ref:t}))}));function LX(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \`${QS}\`.`}function f3(e){return kX.includes(e)}GI.propTypes={orientation(e,t,n){const r=e[t],o=String(r);return r&&!f3(r)?new Error(LX(o,n)):null}};const BX=xu("\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"}}),FX=M.forwardRef((({className:e,size:t,...n},r)=>G.jsx(GI,{ref:r,className:xe(BX({size:t,className:e})),...n})));FX.displayName=GI.displayName;const jX="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI3BhaW50MF9hbmd1bGFyXzExMTY1XzE4NjcxX2NsaXBfcGF0aCkiIGRhdGEtZmlnbWEtc2tpcC1wYXJzZT0idHJ1ZSI+PGcgdHJhbnNmb3JtPSJtYXRyaXgoMCAwLjAxMiAtMC4wMTIgMCAxMiAxMikiPjxmb3JlaWduT2JqZWN0IHg9Ii0xMDY2LjI0IiB5PSItMTA2Ni4yNCIgd2lkdGg9IjIxMzIuNDkiIGhlaWdodD0iMjEzMi40OSI+PGRpdiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCIgc3R5bGU9ImJhY2tncm91bmQ6Y29uaWMtZ3JhZGllbnQoZnJvbSA5MGRlZyxyZ2JhKDI1NSwgMjU1LCAyNTUsIDEpIDBkZWcscmdiYSgyNTUsIDI1NSwgMjU1LCAxKSA2My4yNDNkZWcscmdiYSgyNTUsIDI1NSwgMjU1LCAwKSAzNjBkZWcpO2hlaWdodDoxMDAlO3dpZHRoOjEwMCU7b3BhY2l0eToxIj48L2Rpdj48L2ZvcmVpZ25PYmplY3Q+PC9nPjwvZz48cGF0aCBkPSJNMjQgMTJDMjQgMTguNjI3NCAxOC42Mjc0IDI0IDEyIDI0QzUuMzcyNTggMjQgMCAxOC42Mjc0IDAgMTJDMCA1LjM3MjU4IDUuMzcyNTggMCAxMiAwQzE4LjYyNzQgMCAyNCA1LjM3MjU4IDI0IDEyWk0zLjU4ODMyIDEyQzMuNTg4MzIgMTYuNjQ1NiA3LjM1NDM2IDIwLjQxMTcgMTIgMjAuNDExN0MxNi42NDU2IDIwLjQxMTcgMjAuNDExNyAxNi42NDU2IDIwLjQxMTcgMTJDMjAuNDExNyA3LjM1NDM2IDE2LjY0NTYgMy41ODgzMiAxMiAzLjU4ODMyQzcuMzU0MzYgMy41ODgzMiAzLjU4ODMyIDcuMzU0MzYgMy41ODgzMiAxMloiIGRhdGEtZmlnbWEtZ3JhZGllbnQtZmlsbD0ieyYjMzQ7dHlwZSYjMzQ7OiYjMzQ7R1JBRElFTlRfQU5HVUxBUiYjMzQ7LCYjMzQ7c3RvcHMmIzM0OzpbeyYjMzQ7Y29sb3ImIzM0Ozp7JiMzNDtyJiMzNDs6MS4wLCYjMzQ7ZyYjMzQ7OjEuMCwmIzM0O2ImIzM0OzoxLjAsJiMzNDthJiMzNDs6MS4wfSwmIzM0O3Bvc2l0aW9uJiMzNDs6MC4wfSx7JiMzNDtjb2xvciYjMzQ7OnsmIzM0O3ImIzM0OzoxLjAsJiMzNDtnJiMzNDs6MS4wLCYjMzQ7YiYjMzQ7OjEuMCwmIzM0O2EmIzM0OzoxLjB9LCYjMzQ7cG9zaXRpb24mIzM0OzowLjE3NTY3NTAwNDcyMDY4Nzg3fSx7JiMzNDtjb2xvciYjMzQ7OnsmIzM0O3ImIzM0OzoxLjAsJiMzNDtnJiMzNDs6MS4wLCYjMzQ7YiYjMzQ7OjEuMCwmIzM0O2EmIzM0OzowLjB9LCYjMzQ7cG9zaXRpb24mIzM0OzoxLjB9XSwmIzM0O3N0b3BzVmFyJiMzNDs6W3smIzM0O2NvbG9yJiMzNDs6eyYjMzQ7ciYjMzQ7OjEuMCwmIzM0O2cmIzM0OzoxLjAsJiMzNDtiJiMzNDs6MS4wLCYjMzQ7YSYjMzQ7OjEuMH0sJiMzNDtwb3NpdGlvbiYjMzQ7OjAuMH0seyYjMzQ7Y29sb3ImIzM0Ozp7JiMzNDtyJiMzNDs6MS4wLCYjMzQ7ZyYjMzQ7OjEuMCwmIzM0O2ImIzM0OzoxLjAsJiMzNDthJiMzNDs6MS4wfSwmIzM0O3Bvc2l0aW9uJiMzNDs6MC4xNzU2NzUwMDQ3MjA2ODc4N30seyYjMzQ7Y29sb3ImIzM0Ozp7JiMzNDtyJiMzNDs6MS4wLCYjMzQ7ZyYjMzQ7OjEuMCwmIzM0O2ImIzM0OzoxLjAsJiMzNDthJiMzNDs6MC4wfSwmIzM0O3Bvc2l0aW9uJiMzNDs6MS4wfV0sJiMzNDt0cmFuc2Zvcm0mIzM0Ozp7JiMzNDttMDAmIzM0OzoxLjQ2OTU3NjIyMzEwMjIwMTRlLTE1LCYjMzQ7bTAxJiMzNDs6LTI0LjAsJiMzNDttMDImIzM0OzoyNC4wLCYjMzQ7bTEwJiMzNDs6MjQuMCwmIzM0O20xMSYjMzQ7OjEuNDY5NTc2MjIzMTAyMjAxNGUtMTUsJiMzNDttMTImIzM0OzotMS40Njk1NzYyMjMxMDIyMDE0ZS0xNX0sJiMzNDtvcGFjaXR5JiMzNDs6MS4wLCYjMzQ7YmxlbmRNb2RlJiMzNDs6JiMzNDtOT1JNQUwmIzM0OywmIzM0O3Zpc2libGUmIzM0Ozp0cnVlfSIvPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJwYWludDBfYW5ndWxhcl8xMTE2NV8xODY3MV9jbGlwX3BhdGgiPjxwYXRoIGQ9Ik0yNCAxMkMyNCAxOC42Mjc0IDE4LjYyNzQgMjQgMTIgMjRDNS4zNzI1OCAyNCAwIDE4LjYyNzQgMCAxMkMwIDUuMzcyNTggNS4zNzI1OCAwIDEyIDBDMTguNjI3NCAwIDI0IDUuMzcyNTggMjQgMTJaTTMuNTg4MzIgMTJDMy41ODgzMiAxNi42NDU2IDcuMzU0MzYgMjAuNDExNyAxMiAyMC40MTE3QzE2LjY0NTYgMjAuNDExNyAyMC40MTE3IDE2LjY0NTYgMjAuNDExNyAxMkMyMC40MTE3IDcuMzU0MzYgMTYuNjQ1NiAzLjU4ODMyIDEyIDMuNTg4MzJDNy4zNTQzNiAzLjU4ODMyIDMuNTg4MzIgNy4zNTQzNiAzLjU4ODMyIDEyWiIvPjwvY2xpcFBhdGg+PC9kZWZzPgo8L3N2Zz4K",zX=e=>{switch(!0){case"success"===e:return G.jsx(gL,{color:"white"});case"error"===e:return G.jsx(o$,{color:"white"});case"loading"===e:return G.jsx("img",{src:jX,className:"animate-forward animate-spin [animation-direction:reverse]"});default:return null}},UX={toastsSizes:{}},p3=No({name:"systemToast",initialState:UX,reducers:{addToastSize(e,t){const{id:n,size:r}=t.payload;e.toastsSizes[n]=r},removeToastSize(e,t){delete e.toastsSizes[t.payload]}},selectors:{selectToastSize:e=>Math.max(0,...Object.values(e.toastsSizes))}}).injectInto(o3),{addToastSize:VX,removeToastSize:WX}=p3.actions,{selectToastSize:qX}=p3.selectors,GX=e=>{const{title:t,actionButton:n,id:r,type:o,promise:i,dismiss:a}=e,s=hO(),u=e$(qX),[l,c]=lt(o),[d,f]=lt("loading"===o),p=Ge(null),m=zX(d?"loading":l);Qe((()=>{var e;s(VX({id:`${r}`,size:(null==(e=p.current)?void 0:e.offsetWidth)??0}))}),[d]),Qe((()=>()=>{s(WX(`${r}`))}),[]),Qe((()=>{if(!i)return;let e=!1;return f(!0),i.then((()=>c("success"))).catch((()=>c("error"))).finally((()=>{e||f(!1)})),()=>{e=!0}}),[i]);return G.jsxs("div",{ref:p,onClick:()=>{n||a(r)},style:{minWidth:u},"data-testid":"toast-container",className:xe("gap-xs px-xs flex min-h-[56px] w-full items-center rounded-lg bg-gray-800",{"bg-red-dark":"error"===l,"border border-gray-700":"success"===l,"cursor-pointer":!n}),children:[m,G.jsx("p",{dangerouslySetInnerHTML:{__html:t},className:"text-base font-medium text-white"}),n&&G.jsx("button",{className:"h-s px-xs rounded-sm bg-gray-500 text-sm",onClick:()=>{n.onClick(),a(r)},children:n.label})]})},aS=(e,t)=>cS.custom((n=>G.jsx(GX,{id:n,dismiss:cS.dismiss,...e,actionButton:null==t?void 0:t.actionButton})),{dismissible:!0,duration:nL(e),toasterId:"system-bottom-toaster",...t}),xJ={success:(e,t)=>aS({type:"success",title:e},t),error:(e,t)=>aS({type:"error",title:e},t),loading:(e,t)=>aS({type:"loading",title:e},t),dismiss:e=>cS.dismiss(e)},sS="toast-root",SJ=()=>{const[e,t]=lt(document.getElementById(sS));return Qe((()=>{let e=document.getElementById(sS);e||(e=document.createElement("div"),e.id=sS,document.body.appendChild(e)),t(e)}),[]),e?Cs.createPortal(G.jsx(tL,{gap:8,theme:"dark",visibleToasts:3,id:"system-bottom-toaster",position:"bottom-center"}),e):null};export{SJ as SystemToastContainer,sS as TOAST_ROOT_ID,xJ as toast};
|