@wellesley/network 1.0.681 → 1.0.683
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 +1 -78
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,78 +1 @@
|
|
|
1
|
-
import{createSlice as
|
|
2
|
-
/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react-jsx-runtime.production.min.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/function S3(){if(YI)return Hm;YI=1;var e=He,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(e,n,i){var s,u={},l=null,c=null;for(s in void 0!==i&&(l=""+i),void 0!==n.key&&(l=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!a.hasOwnProperty(s)&&(u[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===u[s]&&(u[s]=n[s]);return{$$typeof:t,type:e,key:l,ref:c,props:u,_owner:o.current}}return Hm.Fragment=n,Hm.jsx=i,Hm.jsxs=i,Hm}function $3(){return QI||(QI=1,I1.exports=S3()),I1.exports}var XI,JI,ZI,eC,q=$3(),C1={exports:{}},Ii={},E1={exports:{}},P1={};
|
|
11
|
-
/**
|
|
12
|
-
* @license React
|
|
13
|
-
* scheduler.production.min.js
|
|
14
|
-
*
|
|
15
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
|
-
*
|
|
17
|
-
* This source code is licensed under the MIT license found in the
|
|
18
|
-
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/function I3(){return XI||(XI=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var s=2*(r+1)-1,u=e[s],l=s+1,c=e[l];if(0>o(u,n))l<a&&0>o(c,u)?(e[r]=c,e[l]=n,r=l):(e[r]=u,e[s]=n,r=s);else{if(!(l<a&&0>o(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],l=[],c=1,d=null,f=3,p=!1,m=!1,h=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;function b(e){for(var o=n(l);null!==o;){if(null===o.callback)r(l);else{if(!(o.startTime<=e))break;r(l),o.sortIndex=o.expirationTime,t(u,o)}o=n(l)}}function w(e){if(h=!1,b(e),!m)if(null!==n(u))m=!0,O(x);else{var t=n(l);null!==t&&T(w,t.startTime-e)}}function x(t,o){m=!1,h&&(h=!1,g(A),A=-1),p=!0;var a=f;try{for(b(o),d=n(u);null!==d&&(!(d.expirationTime>o)||t&&!M());){var i=d.callback;if("function"==typeof i){d.callback=null,f=d.priorityLevel;var s=i(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(u)&&r(u),b(o)}else r(u);d=n(u)}if(null!==d)var c=!0;else{var v=n(l);null!==v&&T(w,v.startTime-o),c=!1}return c}finally{d=null,f=a,p=!1}}typeof navigator<"u"&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,S=!1,I=null,A=-1,E=5,k=-1;function M(){return!(e.unstable_now()-k<E)}function C(){if(null!==I){var t=e.unstable_now();k=t;var n=!0;try{n=I(!0,t)}finally{n?_():(S=!1,I=null)}}else S=!1}if("function"==typeof y)_=function(){y(C)};else if(typeof MessageChannel<"u"){var P=new MessageChannel,N=P.port2;P.port1.onmessage=C,_=function(){N.postMessage(null)}}else _=function(){v(C,0)};function O(e){I=e,S||(S=!0,_())}function T(t,n){A=v((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,O(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,a){var i=e.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?i+a:i:a=i,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>i?(r.sortIndex=a,t(l,r),null===n(u)&&r===n(l)&&(h?(g(A),A=-1):h=!0,T(w,a-i))):(r.sortIndex=s,t(u,r),m||p||(m=!0,O(x))),r},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(P1)),P1}function C3(){return JI||(JI=1,E1.exports=I3()),E1.exports
|
|
20
|
-
/**
|
|
21
|
-
* @license React
|
|
22
|
-
* react-dom.production.min.js
|
|
23
|
-
*
|
|
24
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
25
|
-
*
|
|
26
|
-
* This source code is licensed under the MIT license found in the
|
|
27
|
-
* LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/}function E3(){if(ZI)return Ii;ZI=1;var e=He,t=C3();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function a(e,t){i(e,t),i(e+"Capture",t)}function i(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var s=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,l=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,c={},d={};function f(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){p[e]=new f(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];p[t]=new f(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){p[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){p[e]=new f(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){p[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){p[e]=new f(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){p[e]=new f(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){p[e]=new f(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){p[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function h(e){return e[1].toUpperCase()}function v(e,t,n,r){var o=p.hasOwnProperty(t)?p[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||typeof t>"u"||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!u.call(d,e)||!u.call(c,e)&&(l.test(e)?d[e]=!0:(c[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(m,h);p[t]=new f(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,h);p[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,h);p[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)})),p.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)}));var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.element"),b=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),I=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),N=Symbol.iterator;function O(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=N&&e[N]||e["@@iterator"])?e:null}var T,q=Object.assign;function R(e){if(void 0===T)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);T=t&&t[1]||""}return"\n"+T+e}var j=!1;function D(e,t){if(!e||j)return"";j=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s]){var u="\n"+o[i].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=i&&0<=s);break}}}finally{j=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?R(e):""}function L(e){switch(e.tag){case 5:return R(e.type);case 16:return R("Lazy");case 13:return R("Suspense");case 19:return R("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1);case 11:return e=D(e.type.render,!1);case 1:return e=D(e.type,!0);default:return""}}function z(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case w:return"Fragment";case b:return"Portal";case _:return"Profiler";case x:return"StrictMode";case E:return"Suspense";case k:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case I:return(e.displayName||"Context")+".Consumer";case S:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case M:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case C:t=e._payload,e=e._init;try{return z(e(t))}catch{}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return z(t);case 8:return t===x?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function B(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function F(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=F(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function U(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=F(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function W(e){if(typeof(e=e||(typeof document<"u"?document:void 0))>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function H(e,t){var n=t.checked;return q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function G(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=B(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function Q(e,t){K(e,t);var n=B(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?X(e,t.type,n):t.hasOwnProperty("defaultValue")&&X(e,t.type,B(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Y(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function X(e,t,n){("number"!==t||W(e.ownerDocument)!==e)&&(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var J=Array.isArray;function Z(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+B(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ee(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function te(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(J(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:B(r)}}function ne(e,t){var n=B(t.value),r=B(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function oe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ae(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?oe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ie,se,ue=(se=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ie=ie||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ie.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return se(e,t)}))}:se);function le(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ce={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},de=["Webkit","ms","Moz","O"];function fe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ce.hasOwnProperty(e)&&ce[e]?(""+t).trim():t+"px"}function pe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=fe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ce).forEach((function(e){de.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ce[t]=ce[e]}))}));var me=q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function he(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ge=null;function ye(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var be=null,we=null,xe=null;function _e(e){if(e=yo(e)){if("function"!=typeof be)throw Error(n(280));var t=e.stateNode;t&&(t=wo(t),be(e.stateNode,e.type,t))}}function Se(e){we?xe?xe.push(e):xe=[e]:we=e}function Ie(){if(we){var e=we,t=xe;if(xe=we=null,_e(e),t)for(e=0;e<t.length;e++)_e(t[e])}}function Ae(e,t){return e(t)}function Ee(){}var ke=!1;function Me(e,t,n){if(ke)return e(t,n);ke=!0;try{return Ae(e,t,n)}finally{ke=!1,(null!==we||null!==xe)&&(Ee(),Ie())}}function Ce(e,t){var r=e.stateNode;if(null===r)return null;var o=wo(r);if(null===o)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Pe=!1;if(s)try{var Ne={};Object.defineProperty(Ne,"passive",{get:function(){Pe=!0}}),window.addEventListener("test",Ne,Ne),window.removeEventListener("test",Ne,Ne)}catch{Pe=!1}function Oe(e,t,n,r,o,a,i,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var Te=!1,qe=null,Re=!1,je=null,De={onError:function(e){Te=!0,qe=e}};function Le(e,t,n,r,o,a,i,s,u){Te=!1,qe=null,Oe.apply(De,arguments)}function ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function $e(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Be(e){if(ze(e)!==e)throw Error(n(188))}function Fe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var a=r.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(o=a.return)){r=o;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===r)return Be(a),e;if(i===o)return Be(a),t;i=i.sibling}throw Error(n(188))}if(r.return!==o.return)r=a,o=i;else{for(var s=!1,u=a.child;u;){if(u===r){s=!0,r=a,o=i;break}if(u===o){s=!0,o=a,r=i;break}u=u.sibling}if(!s){for(u=i.child;u;){if(u===r){s=!0,r=i,o=a;break}if(u===o){s=!0,o=i,r=a;break}u=u.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var Ue=t.unstable_scheduleCallback,We=t.unstable_cancelCallback,Ge=t.unstable_shouldYield,Ke=t.unstable_requestPaint,Qe=t.unstable_now,Ye=t.unstable_getCurrentPriorityLevel,Xe=t.unstable_ImmediatePriority,Je=t.unstable_UserBlockingPriority,Ze=t.unstable_NormalPriority,et=t.unstable_LowPriority,tt=t.unstable_IdlePriority,nt=null,rt=null;var ot=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(at(e)/it|0)|0},at=Math.log,it=Math.LN2;var st=64,ut=4194304;function lt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ct(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var s=i&~o;0!==s?r=lt(s):0!==(a&=i)&&(r=lt(a))}else 0!==(i=n&~o)?r=lt(i):0!==a&&(r=lt(a));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&4194240&a))return t;if(!!(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-ot(t)),r|=e[n],t&=~o;return r}function dt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function pt(){var e=st;return!(4194240&(st<<=1))&&(st=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ht(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var gt=0;function yt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var bt,wt,xt,_t,St,It=!1,At=[],Et=null,kt=null,Mt=null,Ct=new Map,Pt=new Map,Nt=[],Ot="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Tt(e,t){switch(e){case"focusin":case"focusout":Et=null;break;case"dragenter":case"dragleave":kt=null;break;case"mouseover":case"mouseout":Mt=null;break;case"pointerover":case"pointerout":Ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function qt(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=yo(t))&&wt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Rt(e){var t=go(e.target);if(null!==t){var n=ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(n)))return e.blockedOn=t,void St(e.priority,(function(){xt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=yo(n))&&wt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ge=r,n.target.dispatchEvent(r),ge=null,t.shift()}return!0}function Dt(e,t,n){jt(e)&&n.delete(t)}function Lt(){It=!1,null!==Et&&jt(Et)&&(Et=null),null!==kt&&jt(kt)&&(kt=null),null!==Mt&&jt(Mt)&&(Mt=null),Ct.forEach(Dt),Pt.forEach(Dt)}function zt(e,n){e.blockedOn===n&&(e.blockedOn=null,It||(It=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Lt)))}function $t(e){function t(t){return zt(t,e)}if(0<At.length){zt(At[0],e);for(var n=1;n<At.length;n++){var r=At[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Et&&zt(Et,e),null!==kt&&zt(kt,e),null!==Mt&&zt(Mt,e),Ct.forEach(t),Pt.forEach(t),n=0;n<Nt.length;n++)(r=Nt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Nt.length&&null===(n=Nt[0]).blockedOn;)Rt(n),null===n.blockedOn&&Nt.shift()}var Bt=g.ReactCurrentBatchConfig,Ft=!0;function Vt(e,t,n,r){var o=gt,a=Bt.transition;Bt.transition=null;try{gt=1,Wt(e,t,n,r)}finally{gt=o,Bt.transition=a}}function Ut(e,t,n,r){var o=gt,a=Bt.transition;Bt.transition=null;try{gt=4,Wt(e,t,n,r)}finally{gt=o,Bt.transition=a}}function Wt(e,t,n,r){if(Ft){var o=Gt(e,t,n,r);if(null===o)Fr(e,t,r,Ht,n),Tt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Et=qt(Et,e,t,n,r,o),!0;case"dragenter":return kt=qt(kt,e,t,n,r,o),!0;case"mouseover":return Mt=qt(Mt,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Ct.set(a,qt(Ct.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Pt.set(a,qt(Pt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Tt(e,r),4&t&&-1<Ot.indexOf(e)){for(;null!==o;){var a=yo(o);if(null!==a&&bt(a),null===(a=Gt(e,t,n,r))&&Fr(e,t,r,Ht,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Fr(e,t,r,null,n)}}var Ht=null;function Gt(e,t,n,r){if(Ht=null,null!==(e=go(e=ye(r))))if(null===(t=ze(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$e(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ht=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ye()){case Xe:return 1;case Je:return 4;case Ze:case et:return 16;case tt:return 536870912;default:return 16}default:return 16}}var Qt=null,Yt=null,Xt=null;function Jt(){if(Xt)return Xt;var e,t,n=Yt,r=n.length,o="value"in Qt?Qt.value:Qt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Xt=o.slice(e,1<t?1-t:void 0)}function Zt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function en(){return!0}function tn(){return!1}function nn(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?en:tn,this.isPropagationStopped=tn,this}return q(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=en)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=en)},persist:function(){},isPersistent:en}),t}var rn,on,an,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=nn(sn),ln=q({},sn,{view:0,detail:0}),cn=nn(ln),dn=q({},ln,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==an&&(an&&"mousemove"===e.type?(rn=e.screenX-an.screenX,on=e.screenY-an.screenY):on=rn=0,an=e),rn)},movementY:function(e){return"movementY"in e?e.movementY:on}}),fn=nn(dn),pn=nn(q({},dn,{dataTransfer:0})),mn=nn(q({},ln,{relatedTarget:0})),hn=nn(q({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=q({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gn=nn(vn),yn=nn(q({},sn,{data:0})),bn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Sn(){return _n}var In=q({},ln,{key:function(e){if(e.key){var t=bn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Zt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,charCode:function(e){return"keypress"===e.type?Zt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Zt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=nn(In),En=nn(q({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),kn=nn(q({},ln,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),Mn=nn(q({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Cn=q({},dn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pn=nn(Cn),Nn=[9,13,27,32],On=s&&"CompositionEvent"in window,Tn=null;s&&"documentMode"in document&&(Tn=document.documentMode);var qn=s&&"TextEvent"in window&&!Tn,Rn=s&&(!On||Tn&&8<Tn&&11>=Tn),jn=" ",Dn=!1;function Ln(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $n=!1;var Bn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Bn[e.type]:"textarea"===t}function Vn(e,t,n,r){Se(r),0<(t=Ur(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Un=null,Wn=null;function Hn(e){jr(e,0)}function Gn(e){if(U(bo(e)))return e}function Kn(e,t){if("change"===e)return t}var Qn=!1;if(s){var Yn;if(s){var Xn="oninput"in document;if(!Xn){var Jn=document.createElement("div");Jn.setAttribute("oninput","return;"),Xn="function"==typeof Jn.oninput}Yn=Xn}else Yn=!1;Qn=Yn&&(!document.documentMode||9<document.documentMode)}function Zn(){Un&&(Un.detachEvent("onpropertychange",er),Wn=Un=null)}function er(e){if("value"===e.propertyName&&Gn(Wn)){var t=[];Vn(t,Wn,e,ye(e)),Me(Hn,t)}}function tr(e,t,n){"focusin"===e?(Zn(),Wn=n,(Un=t).attachEvent("onpropertychange",er)):"focusout"===e&&Zn()}function nr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Wn)}function rr(e,t){if("click"===e)return Gn(t)}function or(e,t){if("input"===e||"change"===e)return Gn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ir(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!u.call(t,o)||!ar(e[o],t[o]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function lr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?lr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function cr(){for(var e=window,t=W();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch{n=!1}if(!n)break;t=W((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=cr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&lr(n.ownerDocument.documentElement,n)){if(null!==r&&dr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=ur(n,a);var i=ur(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var pr=s&&"documentMode"in document&&11>=document.documentMode,mr=null,hr=null,vr=null,gr=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;gr||null==mr||mr!==W(r)||("selectionStart"in(r=mr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&ir(vr,r)||(vr=r,0<(r=Ur(hr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:br("Animation","AnimationEnd"),animationiteration:br("Animation","AnimationIteration"),animationstart:br("Animation","AnimationStart"),transitionend:br("Transition","TransitionEnd")},xr={},_r={};function Sr(e){if(xr[e])return xr[e];if(!wr[e])return e;var t,n=wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in _r)return xr[e]=n[t];return e}s&&(_r=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var Ir=Sr("animationend"),Ar=Sr("animationiteration"),Er=Sr("animationstart"),kr=Sr("transitionend"),Mr=new Map,Cr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pr(e,t){Mr.set(e,t),a(t,[e])}for(var Nr=0;Nr<Cr.length;Nr++){var Or=Cr[Nr];Pr(Or.toLowerCase(),"on"+(Or[0].toUpperCase()+Or.slice(1)))}Pr(Ir,"onAnimationEnd"),Pr(Ar,"onAnimationIteration"),Pr(Er,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(kr,"onTransitionEnd"),i("onMouseEnter",["mouseout","mouseover"]),i("onMouseLeave",["mouseout","mouseover"]),i("onPointerEnter",["pointerout","pointerover"]),i("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),qr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Tr));function Rr(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,a,i,s,u,l){if(Le.apply(this,arguments),Te){if(!Te)throw Error(n(198));var c=qe;Te=!1,qe=null,Re||(Re=!0,je=c)}}(o,t,void 0,e),e.currentTarget=null}function jr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==a&&o.isPropagationStopped())break e;Rr(o,s,l),a=u}else for(i=0;i<r.length;i++){if(u=(s=r[i]).instance,l=s.currentTarget,s=s.listener,u!==a&&o.isPropagationStopped())break e;Rr(o,s,l),a=u}}}if(Re)throw e=je,Re=!1,je=null,e}function Dr(e,t){var n=t[mo];void 0===n&&(n=t[mo]=new Set);var r=e+"__bubble";n.has(r)||(Br(t,e,2,!1),n.add(r))}function Lr(e,t,n){var r=0;t&&(r|=4),Br(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function $r(e){if(!e[zr]){e[zr]=!0,r.forEach((function(t){"selectionchange"!==t&&(qr.has(t)||Lr(t,!1,e),Lr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,Lr("selectionchange",!1,t))}}function Br(e,t,n,r){switch(Kt(t)){case 1:var o=Vt;break;case 4:o=Ut;break;default:o=Wt}n=o.bind(null,t,n,e),o=void 0,!Pe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Fr(e,t,n,r,o){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var u=i.tag;if((3===u||4===u)&&((u=i.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;i=i.return}for(;null!==s;){if(null===(i=go(s)))return;if(5===(u=i.tag)||6===u){r=a=i;continue e}s=s.parentNode}}r=r.return}Me((function(){var r=a,o=ye(n),i=[];e:{var s=Mr.get(e);if(void 0!==s){var u=un,l=e;switch(e){case"keypress":if(0===Zt(n))break e;case"keydown":case"keyup":u=An;break;case"focusin":l="focus",u=mn;break;case"focusout":l="blur",u=mn;break;case"beforeblur":case"afterblur":u=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=pn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=kn;break;case Ir:case Ar:case Er:u=hn;break;case kr:u=Mn;break;case"scroll":u=cn;break;case"wheel":u=Pn;break;case"copy":case"cut":case"paste":u=gn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=En}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==f&&(null!=(h=Ce(m,f))&&c.push(Vr(m,h,p)))),d)break;m=m.return}0<c.length&&(s=new u(s,l,null,n,o),i.push({event:s,listeners:c}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===ge||!(l=n.relatedTarget||n.fromElement)||!go(l)&&!l[po])&&(u||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(l=(l=n.relatedTarget||n.toElement)?go(l):null)&&(l!==(d=ze(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(u=null,l=r),u!==l)){if(c=fn,h="onMouseLeave",f="onMouseEnter",m="mouse",("pointerout"===e||"pointerover"===e)&&(c=En,h="onPointerLeave",f="onPointerEnter",m="pointer"),d=null==u?s:bo(u),p=null==l?s:bo(l),(s=new c(h,m+"leave",u,n,o)).target=d,s.relatedTarget=p,h=null,go(o)===r&&((c=new c(f,m+"enter",l,n,o)).target=p,c.relatedTarget=d,h=c),d=h,u&&l)e:{for(f=l,m=0,p=c=u;p;p=Wr(p))m++;for(p=0,h=f;h;h=Wr(h))p++;for(;0<m-p;)c=Wr(c),m--;for(;0<p-m;)f=Wr(f),p--;for(;m--;){if(c===f||null!==f&&c===f.alternate)break e;c=Wr(c),f=Wr(f)}c=null}else c=null;null!==u&&Hr(i,s,u,c,!1),null!==l&&null!==d&&Hr(i,d,l,c,!0)}if("select"===(u=(s=r?bo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var v=Kn;else if(Fn(s))if(Qn)v=or;else{v=nr;var g=tr}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=rr);switch(v&&(v=v(e,r))?Vn(i,v,n,o):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&X(s,"number",s.value)),g=r?bo(r):window,e){case"focusin":(Fn(g)||"true"===g.contentEditable)&&(mr=g,hr=r,vr=null);break;case"focusout":vr=hr=mr=null;break;case"mousedown":gr=!0;break;case"contextmenu":case"mouseup":case"dragend":gr=!1,yr(i,n,o);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":yr(i,n,o)}var y;if(On)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else $n?Ln(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Rn&&"ko"!==n.locale&&($n||"onCompositionStart"!==b?"onCompositionEnd"===b&&$n&&(y=Jt()):(Yt="value"in(Qt=o)?Qt.value:Qt.textContent,$n=!0)),0<(g=Ur(r,b)).length&&(b=new yn(b,e,null,n,o),i.push({event:b,listeners:g}),y?b.data=y:null!==(y=zn(n))&&(b.data=y))),(y=qn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Dn=!0,jn);case"textInput":return(e=t.data)===jn&&Dn?null:e;default:return null}}(e,n):function(e,t){if($n)return"compositionend"===e||!On&&Ln(e,t)?(e=Jt(),Xt=Yt=Qt=null,$n=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Rn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Ur(r,"onBeforeInput")).length&&(o=new yn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=y))}jr(i,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ur(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Ce(e,n))&&r.unshift(Vr(e,a,o)),null!=(a=Ce(e,t))&&r.push(Vr(e,a,o))),e=e.return}return r}function Wr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Hr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var s=n,u=s.alternate,l=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==l&&(s=l,o?null!=(u=Ce(n,a))&&i.unshift(Vr(n,u,s)):o||null!=(u=Ce(n,a))&&i.push(Vr(n,u,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Gr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Kr,"")}function Yr(e,t,r){if(t=Qr(t),Qr(e)!==t&&r)throw Error(n(425))}function Xr(){}var Jr=null,Zr=null;function eo(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var to="function"==typeof setTimeout?setTimeout:void 0,no="function"==typeof clearTimeout?clearTimeout:void 0,ro="function"==typeof Promise?Promise:void 0,oo="function"==typeof queueMicrotask?queueMicrotask:typeof ro<"u"?function(e){return ro.resolve(null).then(e).catch(ao)}:to;function ao(e){setTimeout((function(){throw e}))}function io(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void $t(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);$t(t)}function so(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var lo=Math.random().toString(36).slice(2),co="__reactFiber$"+lo,fo="__reactProps$"+lo,po="__reactContainer$"+lo,mo="__reactEvents$"+lo,ho="__reactListeners$"+lo,vo="__reactHandles$"+lo;function go(e){var t=e[co];if(t)return t;for(var n=e.parentNode;n;){if(t=n[po]||n[co]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[co])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function yo(e){return!(e=e[co]||e[po])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function bo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function wo(e){return e[fo]||null}var xo=[],_o=-1;function So(e){return{current:e}}function Io(e){0>_o||(e.current=xo[_o],xo[_o]=null,_o--)}function Ao(e,t){_o++,xo[_o]=e.current,e.current=t}var Eo={},ko=So(Eo),Mo=So(!1),Co=Eo;function Po(e,t){var n=e.type.contextTypes;if(!n)return Eo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function No(e){return null!=(e=e.childContextTypes)}function Oo(){Io(Mo),Io(ko)}function To(e,t,r){if(ko.current!==Eo)throw Error(n(168));Ao(ko,t),Ao(Mo,r)}function qo(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var a in o=o.getChildContext())if(!(a in t))throw Error(n(108,$(e)||"Unknown",a));return q({},r,o)}function Ro(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Eo,Co=ko.current,Ao(ko,e),Ao(Mo,Mo.current),!0}function jo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=qo(e,t,Co),o.__reactInternalMemoizedMergedChildContext=e,Io(Mo),Io(ko),Ao(ko,e)):Io(Mo),Ao(Mo,r)}var Do=null,Lo=!1,zo=!1;function $o(e){null===Do?Do=[e]:Do.push(e)}function Bo(){if(!zo&&null!==Do){zo=!0;var e=0,t=gt;try{var n=Do;for(gt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Do=null,Lo=!1}catch(t){throw null!==Do&&(Do=Do.slice(e+1)),Ue(Xe,Bo),t}finally{gt=t,zo=!1}}return null}var Fo=[],Vo=0,Uo=null,Wo=0,Ho=[],Go=0,Ko=null,Qo=1,Yo="";function Xo(e,t){Fo[Vo++]=Wo,Fo[Vo++]=Uo,Uo=e,Wo=t}function Jo(e,t,n){Ho[Go++]=Qo,Ho[Go++]=Yo,Ho[Go++]=Ko,Ko=e;var r=Qo;e=Yo;var o=32-ot(r)-1;r&=~(1<<o),n+=1;var a=32-ot(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Qo=1<<32-ot(t)+o|n<<o|r,Yo=a+e}else Qo=1<<a|n<<o|r,Yo=e}function Zo(e){null!==e.return&&(Xo(e,1),Jo(e,1,0))}function ea(e){for(;e===Uo;)Uo=Fo[--Vo],Fo[Vo]=null,Wo=Fo[--Vo],Fo[Vo]=null;for(;e===Ko;)Ko=Ho[--Go],Ho[Go]=null,Yo=Ho[--Go],Ho[Go]=null,Qo=Ho[--Go],Ho[Go]=null}var ta=null,na=null,ra=!1,oa=null;function aa(e,t){var n=Nl(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ia(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ta=e,na=so(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ta=e,na=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ko?{id:Qo,overflow:Yo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Nl(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ta=e,na=null,!0);default:return!1}}function sa(e){return!(!(1&e.mode)||128&e.flags)}function ua(e){if(ra){var t=na;if(t){var r=t;if(!ia(e,t)){if(sa(e))throw Error(n(418));t=so(r.nextSibling);var o=ta;t&&ia(e,t)?aa(o,r):(e.flags=-4097&e.flags|2,ra=!1,ta=e)}}else{if(sa(e))throw Error(n(418));e.flags=-4097&e.flags|2,ra=!1,ta=e}}}function la(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ta=e}function ca(e){if(e!==ta)return!1;if(!ra)return la(e),ra=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!eo(e.type,e.memoizedProps)),t&&(t=na)){if(sa(e))throw da(),Error(n(418));for(;t;)aa(e,t),t=so(t.nextSibling)}if(la(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){na=so(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}na=null}}else na=ta?so(e.stateNode.nextSibling):null;return!0}function da(){for(var e=na;e;)e=so(e.nextSibling)}function fa(){na=ta=null,ra=!1}function pa(e){null===oa?oa=[e]:oa.push(e)}var ma=g.ReactCurrentBatchConfig;function ha(e,t){if(e&&e.defaultProps){for(var n in t=q({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var va=So(null),ga=null,ya=null,ba=null;function wa(){ba=ya=ga=null}function xa(e){var t=va.current;Io(va),e._currentValue=t}function _a(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Sa(e,t){ga=e,ba=ya=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Ia(e){var t=e._currentValue;if(ba!==e)if(e={context:e,memoizedValue:t,next:null},null===ya){if(null===ga)throw Error(n(308));ya=e,ga.dependencies={lanes:0,firstContext:e}}else ya=ya.next=e;return t}var Aa=null;function Ea(e){null===Aa?Aa=[e]:Aa.push(e)}function ka(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ea(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ma(e,r)}function Ma(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ca=!1;function Pa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Na(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Oa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ta(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Mu){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ma(e,n)}return null===(o=r.interleaved)?(t.next=t,Ea(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ma(e,n)}function qa(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Ra(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ja(e,t,n,r){var o=e.updateQueue;Ca=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var u=s,l=u.next;u.next=null,null===i?a=l:i.next=l,i=u;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===s?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(null!==a){var d=o.baseState;for(i=0,c=l=u=null,s=a;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(f="function"==typeof(m=h.payload)?m.call(p,d,f):m))break e;d=q({},d,f);break e;case 2:Ca=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(l=c=p,u=d):c=c.next=p,i|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(u=d),o.baseState=u,o.firstBaseUpdate=l,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);ju|=i,e.lanes=i,e.memoizedState=d}}function Da(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],a=o.callback;if(null!==a){if(o.callback=null,o=r,"function"!=typeof a)throw Error(n(191,a));a.call(o)}}}var La=(new e.Component).refs;function za(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:q({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var $a={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=el(),o=tl(e),a=Oa(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Ta(e,a,o))&&(nl(t,e,o,r),qa(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=el(),o=tl(e),a=Oa(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Ta(e,a,o))&&(nl(t,e,o,r),qa(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=el(),r=tl(e),o=Oa(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ta(e,o,r))&&(nl(t,e,r,n),qa(t,e,r))}};function Ba(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!ir(n,r)||!ir(o,a))}function Fa(e,t,n){var r=!1,o=Eo,a=t.contextType;return"object"==typeof a&&null!==a?a=Ia(a):(o=No(t)?Co:ko.current,a=(r=null!=(r=t.contextTypes))?Po(e,o):Eo),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=$a,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Va(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&$a.enqueueReplaceState(t,t.state,null)}function Ua(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=La,Pa(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Ia(a):(a=No(t)?Co:ko.current,o.context=Po(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(za(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&$a.enqueueReplaceState(o,o.state,null),ja(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Wa(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var a=o,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=a.refs;t===La&&(t=a.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function Ha(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ga(e){return(0,e._init)(e._payload)}function Ka(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Tl(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Dl(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===w?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===C&&Ga(o)===t.type)?((r=a(t,n.props)).ref=Wa(e,t,n),r.return=e,r):((r=ql(n.type,n.key,n.props,null,e.mode,r)).ref=Wa(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ll(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Rl(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Dl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case y:return(n=ql(t.type,t.key,t.props,null,e.mode,n)).ref=Wa(e,null,t),n.return=e,n;case b:return(t=Ll(t,e.mode,n)).return=e,t;case C:return f(e,(0,t._init)(t._payload),n)}if(J(t)||O(t))return(t=Rl(t,e.mode,n,null)).return=e,t;Ha(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===o?l(e,t,n,r):null;case b:return n.key===o?c(e,t,n,r):null;case C:return p(e,t,(o=n._init)(n._payload),r)}if(J(n)||O(n))return null!==o?null:d(e,t,n,r,null);Ha(e,n)}return null}function m(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case y:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o);case b:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case C:return m(e,t,n,(0,r._init)(r._payload),o)}if(J(r)||O(r))return d(t,e=e.get(n)||null,r,o,null);Ha(t,r)}return null}return function u(l,c,d,h){if("object"==typeof d&&null!==d&&d.type===w&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case y:e:{for(var v=d.key,g=c;null!==g;){if(g.key===v){if((v=d.type)===w){if(7===g.tag){r(l,g.sibling),(c=a(g,d.props.children)).return=l,l=c;break e}}else if(g.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===C&&Ga(v)===g.type){r(l,g.sibling),(c=a(g,d.props)).ref=Wa(l,g,d),c.return=l,l=c;break e}r(l,g);break}t(l,g),g=g.sibling}d.type===w?((c=Rl(d.props.children,l.mode,h,d.key)).return=l,l=c):((h=ql(d.type,d.key,d.props,null,l.mode,h)).ref=Wa(l,c,d),h.return=l,l=h)}return s(l);case b:e:{for(g=d.key;null!==c;){if(c.key===g){if(4===c.tag&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){r(l,c.sibling),(c=a(c,d.children||[])).return=l,l=c;break e}r(l,c);break}t(l,c),c=c.sibling}(c=Ll(d,l.mode,h)).return=l,l=c}return s(l);case C:return u(l,c,(g=d._init)(d._payload),h)}if(J(d))return function(n,a,s,u){for(var l=null,c=null,d=a,h=a=0,v=null;null!==d&&h<s.length;h++){d.index>h?(v=d,d=null):v=d.sibling;var g=p(n,d,s[h],u);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(n,d),a=i(g,a,h),null===c?l=g:c.sibling=g,c=g,d=v}if(h===s.length)return r(n,d),ra&&Xo(n,h),l;if(null===d){for(;h<s.length;h++)null!==(d=f(n,s[h],u))&&(a=i(d,a,h),null===c?l=d:c.sibling=d,c=d);return ra&&Xo(n,h),l}for(d=o(n,d);h<s.length;h++)null!==(v=m(d,n,h,s[h],u))&&(e&&null!==v.alternate&&d.delete(null===v.key?h:v.key),a=i(v,a,h),null===c?l=v:c.sibling=v,c=v);return e&&d.forEach((function(e){return t(n,e)})),ra&&Xo(n,h),l}(l,c,d,h);if(O(d))return function(a,s,u,l){var c=O(u);if("function"!=typeof c)throw Error(n(150));if(null==(u=c.call(u)))throw Error(n(151));for(var d=c=null,h=s,v=s=0,g=null,y=u.next();null!==h&&!y.done;v++,y=u.next()){h.index>v?(g=h,h=null):g=h.sibling;var b=p(a,h,y.value,l);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(a,h),s=i(b,s,v),null===d?c=b:d.sibling=b,d=b,h=g}if(y.done)return r(a,h),ra&&Xo(a,v),c;if(null===h){for(;!y.done;v++,y=u.next())null!==(y=f(a,y.value,l))&&(s=i(y,s,v),null===d?c=y:d.sibling=y,d=y);return ra&&Xo(a,v),c}for(h=o(a,h);!y.done;v++,y=u.next())null!==(y=m(h,a,v,y.value,l))&&(e&&null!==y.alternate&&h.delete(null===y.key?v:y.key),s=i(y,s,v),null===d?c=y:d.sibling=y,d=y);return e&&h.forEach((function(e){return t(a,e)})),ra&&Xo(a,v),c}(l,c,d,h);Ha(l,d)}return"string"==typeof d&&""!==d||"number"==typeof d?(d=""+d,null!==c&&6===c.tag?(r(l,c.sibling),(c=a(c,d)).return=l,l=c):(r(l,c),(c=Dl(d,l.mode,h)).return=l,l=c),s(l)):r(l,c)}}var Qa=Ka(!0),Ya=Ka(!1),Xa={},Ja=So(Xa),Za=So(Xa),ei=So(Xa);function ti(e){if(e===Xa)throw Error(n(174));return e}function ni(e,t){switch(Ao(ei,t),Ao(Za,e),Ao(Ja,Xa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ae(null,"");break;default:t=ae(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Io(Ja),Ao(Ja,t)}function ri(){Io(Ja),Io(Za),Io(ei)}function oi(e){ti(ei.current);var t=ti(Ja.current),n=ae(t,e.type);t!==n&&(Ao(Za,e),Ao(Ja,n))}function ai(e){Za.current===e&&(Io(Ja),Io(Za))}var ii=So(0);function si(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ui=[];function li(){for(var e=0;e<ui.length;e++)ui[e]._workInProgressVersionPrimary=null;ui.length=0}var ci=g.ReactCurrentDispatcher,di=g.ReactCurrentBatchConfig,fi=0,pi=null,mi=null,hi=null,vi=!1,gi=!1,yi=0,bi=0;function wi(){throw Error(n(321))}function xi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function _i(e,t,r,o,a,i){if(fi=i,pi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ci.current=null===e||null===e.memoizedState?is:ss,e=r(o,a),gi){i=0;do{if(gi=!1,yi=0,25<=i)throw Error(n(301));i+=1,hi=mi=null,t.updateQueue=null,ci.current=us,e=r(o,a)}while(gi)}if(ci.current=as,t=null!==mi&&null!==mi.next,fi=0,hi=mi=pi=null,vi=!1,t)throw Error(n(300));return e}function Si(){var e=0!==yi;return yi=0,e}function Ai(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===hi?pi.memoizedState=hi=e:hi=hi.next=e,hi}function Ei(){if(null===mi){var e=pi.alternate;e=null!==e?e.memoizedState:null}else e=mi.next;var t=null===hi?pi.memoizedState:hi.next;if(null!==t)hi=t,mi=e;else{if(null===e)throw Error(n(310));e={memoizedState:(mi=e).memoizedState,baseState:mi.baseState,baseQueue:mi.baseQueue,queue:mi.queue,next:null},null===hi?pi.memoizedState=hi=e:hi=hi.next=e}return hi}function ki(e,t){return"function"==typeof t?t(e):t}function Mi(e){var t=Ei(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=mi,a=o.baseQueue,i=r.pending;if(null!==i){if(null!==a){var s=a.next;a.next=i.next,i.next=s}o.baseQueue=a=i,r.pending=null}if(null!==a){i=a.next,o=o.baseState;var u=s=null,l=null,c=i;do{var d=c.lane;if((fi&d)===d)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(u=l=f,s=o):l=l.next=f,pi.lanes|=d,ju|=d}c=c.next}while(null!==c&&c!==i);null===l?s=o:l.next=u,ar(o,t.memoizedState)||(bs=!0),t.memoizedState=o,t.baseState=s,t.baseQueue=l,r.lastRenderedState=o}if(null!==(e=r.interleaved)){a=e;do{i=a.lane,pi.lanes|=i,ju|=i,a=a.next}while(a!==e)}else null===a&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ci(e){var t=Ei(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,a=r.pending,i=t.memoizedState;if(null!==a){r.pending=null;var s=a=a.next;do{i=e(i,s.action),s=s.next}while(s!==a);ar(i,t.memoizedState)||(bs=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,o]}function Pi(){}function Ni(e,t){var r=pi,o=Ei(),a=t(),i=!ar(o.memoizedState,a);if(i&&(o.memoizedState=a,bs=!0),o=o.queue,Vi(qi.bind(null,r,o,e),[e]),o.getSnapshot!==t||i||null!==hi&&1&hi.memoizedState.tag){if(r.flags|=2048,Li(9,Ti.bind(null,r,o,a,t),void 0,null),null===Cu)throw Error(n(349));30&fi||Oi(r,t,a)}return a}function Oi(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=pi.updateQueue)?(t={lastEffect:null,stores:null},pi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ti(e,t,n,r){t.value=n,t.getSnapshot=r,Ri(t)&&ji(e)}function qi(e,t,n){return n((function(){Ri(t)&&ji(e)}))}function Ri(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ar(e,n)}catch{return!0}}function ji(e){var t=Ma(e,1);null!==t&&nl(t,e,1,-1)}function Di(e){var t=Ai();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ki,lastRenderedState:e},t.queue=e,e=e.dispatch=ts.bind(null,pi,e),[t.memoizedState,e]}function Li(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=pi.updateQueue)?(t={lastEffect:null,stores:null},pi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function zi(){return Ei().memoizedState}function $i(e,t,n,r){var o=Ai();pi.flags|=e,o.memoizedState=Li(1|t,n,void 0,void 0===r?null:r)}function Bi(e,t,n,r){var o=Ei();r=void 0===r?null:r;var a=void 0;if(null!==mi){var i=mi.memoizedState;if(a=i.destroy,null!==r&&xi(r,i.deps))return void(o.memoizedState=Li(t,n,a,r))}pi.flags|=e,o.memoizedState=Li(1|t,n,a,r)}function Fi(e,t){return $i(8390656,8,e,t)}function Vi(e,t){return Bi(2048,8,e,t)}function Ui(e,t){return Bi(4,2,e,t)}function Wi(e,t){return Bi(4,4,e,t)}function Hi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Gi(e,t,n){return n=null!=n?n.concat([e]):null,Bi(4,4,Hi.bind(null,t,e),n)}function Ki(){}function Qi(e,t){var n=Ei();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Yi(e,t){var n=Ei();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xi(e,t,n){return 21&fi?(ar(n,t)||(n=pt(),pi.lanes|=n,ju|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n)}function Ji(e,t){var n=gt;gt=0!==n&&4>n?n:4,e(!0);var r=di.transition;di.transition={};try{e(!1),t()}finally{gt=n,di.transition=r}}function Zi(){return Ei().memoizedState}function es(e,t,n){var r=tl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ns(e))rs(t,n);else if(null!==(n=ka(e,t,n,r))){nl(n,e,r,el()),os(n,t,r)}}function ts(e,t,n){var r=tl(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ns(e))rs(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,ar(s,i)){var u=t.interleaved;return null===u?(o.next=o,Ea(t)):(o.next=u.next,u.next=o),void(t.interleaved=o)}}catch{}null!==(n=ka(e,t,o,r))&&(nl(n,e,r,o=el()),os(n,t,r))}}function ns(e){var t=e.alternate;return e===pi||null!==t&&t===pi}function rs(e,t){gi=vi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function os(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var as={readContext:Ia,useCallback:wi,useContext:wi,useEffect:wi,useImperativeHandle:wi,useInsertionEffect:wi,useLayoutEffect:wi,useMemo:wi,useReducer:wi,useRef:wi,useState:wi,useDebugValue:wi,useDeferredValue:wi,useTransition:wi,useMutableSource:wi,useSyncExternalStore:wi,useId:wi,unstable_isNewReconciler:!1},is={readContext:Ia,useCallback:function(e,t){return Ai().memoizedState=[e,void 0===t?null:t],e},useContext:Ia,useEffect:Fi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,$i(4194308,4,Hi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $i(4194308,4,e,t)},useInsertionEffect:function(e,t){return $i(4,2,e,t)},useMemo:function(e,t){var n=Ai();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ai();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=es.bind(null,pi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ai().memoizedState=e},useState:Di,useDebugValue:Ki,useDeferredValue:function(e){return Ai().memoizedState=e},useTransition:function(){var e=Di(!1),t=e[0];return e=Ji.bind(null,e[1]),Ai().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=pi,a=Ai();if(ra){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Cu)throw Error(n(349));30&fi||Oi(o,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,Fi(qi.bind(null,o,i,e),[e]),o.flags|=2048,Li(9,Ti.bind(null,o,i,r,t),void 0,null),r},useId:function(){var e=Ai(),t=Cu.identifierPrefix;if(ra){var n=Yo;t=":"+t+"R"+(n=(Qo&~(1<<32-ot(Qo)-1)).toString(32)+n),0<(n=yi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=bi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ss={readContext:Ia,useCallback:Qi,useContext:Ia,useEffect:Vi,useImperativeHandle:Gi,useInsertionEffect:Ui,useLayoutEffect:Wi,useMemo:Yi,useReducer:Mi,useRef:zi,useState:function(){return Mi(ki)},useDebugValue:Ki,useDeferredValue:function(e){return Xi(Ei(),mi.memoizedState,e)},useTransition:function(){return[Mi(ki)[0],Ei().memoizedState]},useMutableSource:Pi,useSyncExternalStore:Ni,useId:Zi,unstable_isNewReconciler:!1},us={readContext:Ia,useCallback:Qi,useContext:Ia,useEffect:Vi,useImperativeHandle:Gi,useInsertionEffect:Ui,useLayoutEffect:Wi,useMemo:Yi,useReducer:Ci,useRef:zi,useState:function(){return Ci(ki)},useDebugValue:Ki,useDeferredValue:function(e){var t=Ei();return null===mi?t.memoizedState=e:Xi(t,mi.memoizedState,e)},useTransition:function(){return[Ci(ki)[0],Ei().memoizedState]},useMutableSource:Pi,useSyncExternalStore:Ni,useId:Zi,unstable_isNewReconciler:!1};function ls(e,t){try{var n="",r=t;do{n+=L(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Oa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Uu||(Uu=!0,Wu=r),ds(0,t)},n}function ms(e,t,n){(n=Oa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===Hu?Hu=new Set([this]):Hu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function hs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Al.bind(null,e,t,n),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gs(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Oa(-1,1)).tag=2,Ta(n,t,1))),n.lanes|=1),e)}var ys=g.ReactCurrentOwner,bs=!1;function ws(e,t,n,r){t.child=null===e?Ya(t,null,n,r):Qa(t,e.child,n,r)}function xs(e,t,n,r,o){n=n.render;var a=t.ref;return Sa(t,o),r=_i(e,t,n,r,a,o),n=Si(),null===e||bs?(ra&&n&&Zo(t),t.flags|=1,ws(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o))}function _s(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Ol(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ql(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ss(e,t,a,r,o))}if(a=e.child,!(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:ir)(i,r)&&e.ref===t.ref)return Us(e,t,o)}return t.flags|=1,(e=Tl(a,r)).ref=t.ref,e.return=t,t.child=e}function Ss(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(ir(a,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=a,!(e.lanes&o))return t.lanes=e.lanes,Us(e,t,o);131072&e.flags&&(bs=!0)}}return Es(e,t,n,r,o)}function Is(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ao(Tu,Ou),Ou|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Ao(Tu,Ou),Ou|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ao(Tu,Ou),Ou|=n;else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Ao(Tu,Ou),Ou|=r;return ws(e,t,o,n),t.child}function As(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,o){var a=No(n)?Co:ko.current;return a=Po(t,a),Sa(t,o),n=_i(e,t,n,r,a,o),r=Si(),null===e||bs?(ra&&r&&Zo(t),t.flags|=1,ws(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o))}function ks(e,t,n,r,o){if(No(n)){var a=!0;Ro(t)}else a=!1;if(Sa(t,o),null===t.stateNode)Vs(e,t),Fa(t,n,r),Ua(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var u=i.context,l=n.contextType;"object"==typeof l&&null!==l?l=Ia(l):l=Po(t,l=No(n)?Co:ko.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==r||u!==l)&&Va(t,i,r,l),Ca=!1;var f=t.memoizedState;i.state=f,ja(t,r,i,o),u=t.memoizedState,s!==r||f!==u||Mo.current||Ca?("function"==typeof c&&(za(t,n,c,r),u=t.memoizedState),(s=Ca||Ba(t,n,s,r,f,u,l))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=l,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Na(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:ha(t.type,s),i.props=l,d=t.pendingProps,f=i.context,"object"==typeof(u=n.contextType)&&null!==u?u=Ia(u):u=Po(t,u=No(n)?Co:ko.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||f!==u)&&Va(t,i,r,u),Ca=!1,f=t.memoizedState,i.state=f,ja(t,r,i,o);var m=t.memoizedState;s!==d||f!==m||Mo.current||Ca?("function"==typeof p&&(za(t,n,p,r),m=t.memoizedState),(l=Ca||Ba(t,n,l,r,f,m,u)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,u),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,u)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=u,r=l):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ms(e,t,n,r,a,o)}function Ms(e,t,n,r,o,a){As(e,t);var i=!!(128&t.flags);if(!r&&!i)return o&&jo(t,n,!1),Us(e,t,a);r=t.stateNode,ys.current=t;var s=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Qa(t,e.child,null,a),t.child=Qa(t,null,s,a)):ws(e,t,s,a),t.memoizedState=r.state,o&&jo(t,n,!0),t.child}function Cs(e){var t=e.stateNode;t.pendingContext?To(0,t.pendingContext,t.pendingContext!==t.context):t.context&&To(0,t.context,!1),ni(e,t.containerInfo)}function Ps(e,t,n,r,o){return fa(),pa(o),t.flags|=256,ws(e,t,n,r),t.child}var Ns,Os,Ts,qs,Rs={dehydrated:null,treeContext:null,retryLane:0};function js(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ds(e,t,r){var o,a=t.pendingProps,i=ii.current,s=!1,u=!!(128&t.flags);if((o=u)||(o=(null===e||null!==e.memoizedState)&&!!(2&i)),o?(s=!0,t.flags&=-129):(null===e||null!==e.memoizedState)&&(i|=1),Ao(ii,1&i),null===e)return ua(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(u=a.children,e=a.fallback,s?(a=t.mode,s=t.child,u={mode:"hidden",children:u},1&a||null===s?s=jl(u,a,0,null):(s.childLanes=0,s.pendingProps=u),e=Rl(e,a,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=js(r),t.memoizedState=Rs,e):Ls(t,u));if(null!==(i=e.memoizedState)&&null!==(o=i.dehydrated))return function(e,t,r,o,a,i,s){if(r)return 256&t.flags?(t.flags&=-257,o=cs(Error(n(422))),zs(e,t,s,o)):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=o.fallback,a=t.mode,o=jl({mode:"visible",children:o.children},a,0,null),i=Rl(i,a,s,null),i.flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,!!(1&t.mode)&&Qa(t,e.child,null,s),t.child.memoizedState=js(s),t.memoizedState=Rs,i);if(!(1&t.mode))return zs(e,t,s,null);if("$!"===a.data){if(o=a.nextSibling&&a.nextSibling.dataset)var u=o.dgst;return o=u,zs(e,t,s,o=cs(i=Error(n(419)),o,void 0))}if(u=!!(s&e.childLanes),bs||u){if(null!==(o=Cu)){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=a&(o.suspendedLanes|s)?0:a)&&a!==i.retryLane&&(i.retryLane=a,Ma(e,a),nl(o,e,a,-1))}return hl(),zs(e,t,s,o=cs(Error(n(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=kl.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,na=so(a.nextSibling),ta=t,ra=!0,oa=null,null!==e&&(Ho[Go++]=Qo,Ho[Go++]=Yo,Ho[Go++]=Ko,Qo=e.id,Yo=e.overflow,Ko=t),t=Ls(t,o.children),t.flags|=4096,t)}(e,t,u,a,o,i,r);if(s){s=a.fallback,u=t.mode,o=(i=e.child).sibling;var l={mode:"hidden",children:a.children};return 1&u||t.child===i?(a=Tl(i,l)).subtreeFlags=14680064&i.subtreeFlags:((a=t.child).childLanes=0,a.pendingProps=l,t.deletions=null),null!==o?s=Tl(o,s):(s=Rl(s,u,r,null)).flags|=2,s.return=t,a.return=t,a.sibling=s,t.child=a,a=s,s=t.child,u=null===(u=e.child.memoizedState)?js(r):{baseLanes:u.baseLanes|r,cachePool:null,transitions:u.transitions},s.memoizedState=u,s.childLanes=e.childLanes&~r,t.memoizedState=Rs,a}return e=(s=e.child).sibling,a=Tl(s,{mode:"visible",children:a.children}),!(1&t.mode)&&(a.lanes=r),a.return=t,a.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=a,t.memoizedState=null,a}function Ls(e,t){return(t=jl({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zs(e,t,n,r){return null!==r&&pa(r),Qa(t,e.child,null,n),(e=Ls(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function $s(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_a(e.return,t,n)}function Bs(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Fs(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(ws(e,t,r.children,n),2&(r=ii.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&$s(e,n,t);else if(19===e.tag)$s(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ao(ii,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===si(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bs(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===si(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bs(t,!0,n,null,a);break;case"together":Bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Vs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Us(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),ju|=t.lanes,!(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Tl(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Tl(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Ws(e,t){if(!ra)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Hs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gs(e,t,r){var a=t.pendingProps;switch(ea(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Hs(t),null;case 1:case 17:return No(t.type)&&Oo(),Hs(t),null;case 3:return a=t.stateNode,ri(),Io(Mo),Io(ko),li(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(null===e||null===e.child)&&(ca(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==oa&&(il(oa),oa=null))),Os(e,t),Hs(t),null;case 5:ai(t);var i=ti(ei.current);if(r=t.type,null!==e&&null!=t.stateNode)Ts(e,t,r,a,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(null===t.stateNode)throw Error(n(166));return Hs(t),null}if(e=ti(Ja.current),ca(t)){a=t.stateNode,r=t.type;var s=t.memoizedProps;switch(a[co]=t,a[fo]=s,e=!!(1&t.mode),r){case"dialog":Dr("cancel",a),Dr("close",a);break;case"iframe":case"object":case"embed":Dr("load",a);break;case"video":case"audio":for(i=0;i<Tr.length;i++)Dr(Tr[i],a);break;case"source":Dr("error",a);break;case"img":case"image":case"link":Dr("error",a),Dr("load",a);break;case"details":Dr("toggle",a);break;case"input":G(a,s),Dr("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!s.multiple},Dr("invalid",a);break;case"textarea":te(a,s),Dr("invalid",a)}for(var u in he(r,s),i=null,s)if(s.hasOwnProperty(u)){var l=s[u];"children"===u?"string"==typeof l?a.textContent!==l&&(!0!==s.suppressHydrationWarning&&Yr(a.textContent,l,e),i=["children",l]):"number"==typeof l&&a.textContent!==""+l&&(!0!==s.suppressHydrationWarning&&Yr(a.textContent,l,e),i=["children",""+l]):o.hasOwnProperty(u)&&null!=l&&"onScroll"===u&&Dr("scroll",a)}switch(r){case"input":V(a),Y(a,s,!0);break;case"textarea":V(a),re(a);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(a.onclick=Xr)}a=i,t.updateQueue=a,null!==a&&(t.flags|=4)}else{u=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=oe(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof a.is?e=u.createElement(r,{is:a.is}):(e=u.createElement(r),"select"===r&&(u=e,a.multiple?u.multiple=!0:a.size&&(u.size=a.size))):e=u.createElementNS(e,r),e[co]=t,e[fo]=a,Ns(e,t,!1,!1),t.stateNode=e;e:{switch(u=ve(r,a),r){case"dialog":Dr("cancel",e),Dr("close",e),i=a;break;case"iframe":case"object":case"embed":Dr("load",e),i=a;break;case"video":case"audio":for(i=0;i<Tr.length;i++)Dr(Tr[i],e);i=a;break;case"source":Dr("error",e),i=a;break;case"img":case"image":case"link":Dr("error",e),Dr("load",e),i=a;break;case"details":Dr("toggle",e),i=a;break;case"input":G(e,a),i=H(e,a),Dr("invalid",e);break;case"option":default:i=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},i=q({},a,{value:void 0}),Dr("invalid",e);break;case"textarea":te(e,a),i=ee(e,a),Dr("invalid",e)}for(s in he(r,i),l=i)if(l.hasOwnProperty(s)){var c=l[s];"style"===s?pe(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&ue(e,c):"children"===s?"string"==typeof c?("textarea"!==r||""!==c)&&le(e,c):"number"==typeof c&&le(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(o.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Dr("scroll",e):null!=c&&v(e,s,c,u))}switch(r){case"input":V(e),Y(e,a,!1);break;case"textarea":V(e),re(e);break;case"option":null!=a.value&&e.setAttribute("value",""+B(a.value));break;case"select":e.multiple=!!a.multiple,null!=(s=a.value)?Z(e,!!a.multiple,s,!1):null!=a.defaultValue&&Z(e,!!a.multiple,a.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Xr)}switch(r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Hs(t),null;case 6:if(e&&null!=t.stateNode)qs(e,t,e.memoizedProps,a);else{if("string"!=typeof a&&null===t.stateNode)throw Error(n(166));if(r=ti(ei.current),ti(Ja.current),ca(t)){if(a=t.stateNode,r=t.memoizedProps,a[co]=t,(s=a.nodeValue!==r)&&null!==(e=ta))switch(e.tag){case 3:Yr(a.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Yr(a.nodeValue,r,!!(1&e.mode))}s&&(t.flags|=4)}else(a=(9===r.nodeType?r:r.ownerDocument).createTextNode(a))[co]=t,t.stateNode=a}return Hs(t),null;case 13:if(Io(ii),a=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ra&&null!==na&&1&t.mode&&!(128&t.flags))da(),fa(),t.flags|=98560,s=!1;else if(s=ca(t),null!==a&&null!==a.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[co]=t}else fa(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Hs(t),s=!1}else null!==oa&&(il(oa),oa=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((a=null!==a)!==(null!==e&&null!==e.memoizedState)&&a&&(t.child.flags|=8192,!!(1&t.mode)&&(null===e||1&ii.current?0===qu&&(qu=3):hl())),null!==t.updateQueue&&(t.flags|=4),Hs(t),null);case 4:return ri(),Os(e,t),null===e&&$r(t.stateNode.containerInfo),Hs(t),null;case 10:return xa(t.type._context),Hs(t),null;case 19:if(Io(ii),null===(s=t.memoizedState))return Hs(t),null;if(a=!!(128&t.flags),null===(u=s.rendering))if(a)Ws(s,!1);else{if(0!==qu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(u=si(e))){for(t.flags|=128,Ws(s,!1),null!==(a=u.updateQueue)&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=r,r=t.child;null!==r;)e=a,(s=r).flags&=14680066,null===(u=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=u.childLanes,s.lanes=u.lanes,s.child=u.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=u.memoizedProps,s.memoizedState=u.memoizedState,s.updateQueue=u.updateQueue,s.type=u.type,e=u.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ao(ii,1&ii.current|2),t.child}e=e.sibling}null!==s.tail&&Qe()>Fu&&(t.flags|=128,a=!0,Ws(s,!1),t.lanes=4194304)}else{if(!a)if(null!==(e=si(u))){if(t.flags|=128,a=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Ws(s,!0),null===s.tail&&"hidden"===s.tailMode&&!u.alternate&&!ra)return Hs(t),null}else 2*Qe()-s.renderingStartTime>Fu&&1073741824!==r&&(t.flags|=128,a=!0,Ws(s,!1),t.lanes=4194304);s.isBackwards?(u.sibling=t.child,t.child=u):(null!==(r=s.last)?r.sibling=u:t.child=u,s.last=u)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Qe(),t.sibling=null,r=ii.current,Ao(ii,a?1&r|2:1&r),t):(Hs(t),null);case 22:case 23:return dl(),a=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==a&&(t.flags|=8192),a&&1&t.mode?!!(1073741824&Ou)&&(Hs(t),6&t.subtreeFlags&&(t.flags|=8192)):Hs(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Ks(e,t){switch(ea(t),t.tag){case 1:return No(t.type)&&Oo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ri(),Io(Mo),Io(ko),li(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ai(t),null;case 13:if(Io(ii),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));fa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Io(ii),null;case 4:return ri(),null;case 10:return xa(t.type._context),null;case 22:case 23:return dl(),null;default:return null}}Ns=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Os=function(){},Ts=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,ti(Ja.current);var i,s=null;switch(n){case"input":a=H(e,a),r=H(e,r),s=[];break;case"select":a=q({},a,{value:void 0}),r=q({},r,{value:void 0}),s=[];break;case"textarea":a=ee(e,a),r=ee(e,r),s=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Xr)}for(c in he(n,r),n=null,a)if(!r.hasOwnProperty(c)&&a.hasOwnProperty(c)&&null!=a[c])if("style"===c){var u=a[c];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(o.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var l=r[c];if(u=null!=a?a[c]:void 0,r.hasOwnProperty(c)&&l!==u&&(null!=l||null!=u))if("style"===c)if(u){for(i in u)!u.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&u[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(s||(s=[]),s.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,u=u?u.__html:void 0,null!=l&&u!==l&&(s=s||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(s=s||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(o.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&Dr("scroll",e),s||u===l||(s=[])):(s=s||[]).push(c,l))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},qs=function(e,t,n,r){n!==r&&(t.flags|=4)};var Qs=!1,Ys=!1,Xs="function"==typeof WeakSet?WeakSet:Set,Js=null;function Zs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Il(e,t,n)}else n.current=null}function eu(e,t,n){try{n()}catch(n){Il(e,t,n)}}var tu=!1;function nu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&eu(t,n,a)}o=o.next}while(o!==r)}}function ru(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ou(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function au(e){var t=e.alternate;null!==t&&(e.alternate=null,au(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[co],delete t[fo],delete t[mo],delete t[ho],delete t[vo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function iu(e){return 5===e.tag||3===e.tag||4===e.tag}function su(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||iu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function uu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(uu(e,t,n),e=e.sibling;null!==e;)uu(e,t,n),e=e.sibling}function lu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(lu(e,t,n),e=e.sibling;null!==e;)lu(e,t,n),e=e.sibling}var cu=null,du=!1;function fu(e,t,n){for(n=n.child;null!==n;)pu(e,t,n),n=n.sibling}function pu(e,t,n){if(rt&&"function"==typeof rt.onCommitFiberUnmount)try{rt.onCommitFiberUnmount(nt,n)}catch{}switch(n.tag){case 5:Ys||Zs(n,t);case 6:var r=cu,o=du;cu=null,fu(e,t,n),du=o,null!==(cu=r)&&(du?(e=cu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cu.removeChild(n.stateNode));break;case 18:null!==cu&&(du?(e=cu,n=n.stateNode,8===e.nodeType?io(e.parentNode,n):1===e.nodeType&&io(e,n),$t(e)):io(cu,n.stateNode));break;case 4:r=cu,o=du,cu=n.stateNode.containerInfo,du=!0,fu(e,t,n),cu=r,du=o;break;case 0:case 11:case 14:case 15:if(!Ys&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(!!(2&a)||!!(4&a))&&eu(n,t,i),o=o.next}while(o!==r)}fu(e,t,n);break;case 1:if(!Ys&&(Zs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Il(n,t,e)}fu(e,t,n);break;case 21:fu(e,t,n);break;case 22:1&n.mode?(Ys=(r=Ys)||null!==n.memoizedState,fu(e,t,n),Ys=r):fu(e,t,n);break;default:fu(e,t,n)}}function mu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xs),t.forEach((function(t){var r=Ml.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function hu(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var a=r[o];try{var i=e,s=t,u=s;e:for(;null!==u;){switch(u.tag){case 5:cu=u.stateNode,du=!1;break e;case 3:case 4:cu=u.stateNode.containerInfo,du=!0;break e}u=u.return}if(null===cu)throw Error(n(160));pu(i,s,a),cu=null,du=!1;var l=a.alternate;null!==l&&(l.return=null),a.return=null}catch(e){Il(a,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vu(t,e),t=t.sibling}function vu(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(hu(t,e),gu(e),4&o){try{nu(3,e,e.return),ru(3,e)}catch(t){Il(e,e.return,t)}try{nu(5,e,e.return)}catch(t){Il(e,e.return,t)}}break;case 1:hu(t,e),gu(e),512&o&&null!==r&&Zs(r,r.return);break;case 5:if(hu(t,e),gu(e),512&o&&null!==r&&Zs(r,r.return),32&e.flags){var a=e.stateNode;try{le(a,"")}catch(t){Il(e,e.return,t)}}if(4&o&&null!=(a=e.stateNode)){var i=e.memoizedProps,s=null!==r?r.memoizedProps:i,u=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===u&&"radio"===i.type&&null!=i.name&&K(a,i),ve(u,s);var c=ve(u,i);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];"style"===d?pe(a,f):"dangerouslySetInnerHTML"===d?ue(a,f):"children"===d?le(a,f):v(a,d,f,c)}switch(u){case"input":Q(a,i);break;case"textarea":ne(a,i);break;case"select":var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var m=i.value;null!=m?Z(a,!!i.multiple,m,!1):p!==!!i.multiple&&(null!=i.defaultValue?Z(a,!!i.multiple,i.defaultValue,!0):Z(a,!!i.multiple,i.multiple?[]:"",!1))}a[fo]=i}catch(t){Il(e,e.return,t)}}break;case 6:if(hu(t,e),gu(e),4&o){if(null===e.stateNode)throw Error(n(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(t){Il(e,e.return,t)}}break;case 3:if(hu(t,e),gu(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{$t(t.containerInfo)}catch(t){Il(e,e.return,t)}break;case 4:default:hu(t,e),gu(e);break;case 13:hu(t,e),gu(e),8192&(a=e.child).flags&&(i=null!==a.memoizedState,a.stateNode.isHidden=i,!i||null!==a.alternate&&null!==a.alternate.memoizedState||(Bu=Qe())),4&o&&mu(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Ys=(c=Ys)||d,hu(t,e),Ys=c):hu(t,e),gu(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Js=e,d=e.child;null!==d;){for(f=Js=d;null!==Js;){switch(m=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:nu(4,p,p.return);break;case 1:Zs(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){o=p,r=p.return;try{t=o,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Il(o,r,e)}}break;case 5:Zs(p,p.return);break;case 22:if(null!==p.memoizedState){xu(f);continue}}null!==m?(m.return=p,Js=m):xu(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{a=f.stateNode,c?"function"==typeof(i=a.style).setProperty?i.setProperty("display","none","important"):i.display="none":(u=f.stateNode,s=null!=(l=f.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,u.style.display=fe("display",s))}catch(t){Il(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Il(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:hu(t,e),gu(e),4&o&&mu(e);case 21:}}function gu(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(iu(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var a=o.stateNode;32&o.flags&&(le(a,""),o.flags&=-33),lu(e,su(e),a);break;case 3:case 4:var i=o.stateNode.containerInfo;uu(e,su(e),i);break;default:throw Error(n(161))}}catch(t){Il(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yu(e,t,n){Js=e,bu(e)}function bu(e,t,n){for(var r=!!(1&e.mode);null!==Js;){var o=Js,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Qs;if(!i){var s=o.alternate,u=null!==s&&null!==s.memoizedState||Ys;s=Qs;var l=Ys;if(Qs=i,(Ys=u)&&!l)for(Js=o;null!==Js;)u=(i=Js).child,22===i.tag&&null!==i.memoizedState?_u(o):null!==u?(u.return=i,Js=u):_u(o);for(;null!==a;)Js=a,bu(a),a=a.sibling;Js=o,Qs=s,Ys=l}wu(e)}else 8772&o.subtreeFlags&&null!==a?(a.return=o,Js=a):wu(e)}}function wu(e){for(;null!==Js;){var t=Js;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ys||ru(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Ys)if(null===r)o.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:ha(t.type,r.memoizedProps);o.componentDidUpdate(a,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Da(t,i,o);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Da(t,s,r)}break;case 5:var u=t.stateNode;if(null===r&&4&t.flags){r=u;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&$t(f)}}}break;default:throw Error(n(163))}Ys||512&t.flags&&ou(t)}catch(e){Il(t,t.return,e)}}if(t===e){Js=null;break}if(null!==(r=t.sibling)){r.return=t.return,Js=r;break}Js=t.return}}function xu(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function _u(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ru(4,t)}catch(e){Il(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Il(t,o,e)}}var a=t.return;try{ou(t)}catch(e){Il(t,a,e)}break;case 5:var i=t.return;try{ou(t)}catch(e){Il(t,i,e)}}}catch(e){Il(t,t.return,e)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var Su,Iu=Math.ceil,Au=g.ReactCurrentDispatcher,Eu=g.ReactCurrentOwner,ku=g.ReactCurrentBatchConfig,Mu=0,Cu=null,Pu=null,Nu=0,Ou=0,Tu=So(0),qu=0,Ru=null,ju=0,Du=0,Lu=0,zu=null,$u=null,Bu=0,Fu=1/0,Vu=null,Uu=!1,Wu=null,Hu=null,Gu=!1,Ku=null,Qu=0,Yu=0,Xu=null,Ju=-1,Zu=0;function el(){return 6&Mu?Qe():-1!==Ju?Ju:Ju=Qe()}function tl(e){return 1&e.mode?2&Mu&&0!==Nu?Nu&-Nu:null!==ma.transition?(0===Zu&&(Zu=pt()),Zu):(0!==(e=gt)||(e=void 0===(e=window.event)?16:Kt(e.type)),e):1}function nl(e,t,r,o){if(50<Yu)throw Yu=0,Xu=null,Error(n(185));ht(e,r,o),(!(2&Mu)||e!==Cu)&&(e===Cu&&(!(2&Mu)&&(Du|=r),4===qu&&sl(e,Nu)),rl(e,o),1===r&&0===Mu&&!(1&t.mode)&&(Fu=Qe()+500,Lo&&Bo()))}function rl(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-ot(a),s=1<<i,u=o[i];-1===u?(!(s&n)||!!(s&r))&&(o[i]=dt(s,t)):u<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var r=ct(e,e===Cu?Nu:0);if(0===r)null!==n&&We(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&We(n),1===t)0===e.tag?function(e){Lo=!0,$o(e)}(ul.bind(null,e)):$o(ul.bind(null,e)),oo((function(){!(6&Mu)&&Bo()})),n=null;else{switch(yt(r)){case 1:n=Xe;break;case 4:n=Je;break;case 16:default:n=Ze;break;case 536870912:n=tt}n=Cl(n,ol.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ol(e,t){if(Ju=-1,Zu=0,6&Mu)throw Error(n(327));var r=e.callbackNode;if(_l()&&e.callbackNode!==r)return null;var o=ct(e,e===Cu?Nu:0);if(0===o)return null;if(30&o||o&e.expiredLanes||t)t=vl(e,o);else{t=o;var a=Mu;Mu|=2;var i=ml();for((Cu!==e||Nu!==t)&&(Vu=null,Fu=Qe()+500,fl(e,t));;)try{yl();break}catch(t){pl(e,t)}wa(),Au.current=i,Mu=a,null!==Pu?t=0:(Cu=null,Nu=0,t=qu)}if(0!==t){if(2===t&&(0!==(a=ft(e))&&(o=a,t=al(e,a))),1===t)throw r=Ru,fl(e,0),sl(e,o),rl(e,Qe()),r;if(6===t)sl(e,o);else{if(a=e.current.alternate,!(30&o||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!ar(a(),o))return!1}catch{return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)||(t=vl(e,o),2===t&&(i=ft(e),0!==i&&(o=i,t=al(e,i))),1!==t)))throw r=Ru,fl(e,0),sl(e,o),rl(e,Qe()),r;switch(e.finishedWork=a,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:xl(e,$u,Vu);break;case 3:if(sl(e,o),(130023424&o)===o&&10<(t=Bu+500-Qe())){if(0!==ct(e,0))break;if(((a=e.suspendedLanes)&o)!==o){el(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=to(xl.bind(null,e,$u,Vu),t);break}xl(e,$u,Vu);break;case 4:if(sl(e,o),(4194240&o)===o)break;for(t=e.eventTimes,a=-1;0<o;){var s=31-ot(o);i=1<<s,(s=t[s])>a&&(a=s),o&=~i}if(o=a,10<(o=(120>(o=Qe()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Iu(o/1960))-o)){e.timeoutHandle=to(xl.bind(null,e,$u,Vu),o);break}xl(e,$u,Vu);break;default:throw Error(n(329))}}}return rl(e,Qe()),e.callbackNode===r?ol.bind(null,e):null}function al(e,t){var n=zu;return e.current.memoizedState.isDehydrated&&(fl(e,t).flags|=256),2!==(e=vl(e,t))&&(t=$u,$u=n,null!==t&&il(t)),e}function il(e){null===$u?$u=e:$u.push.apply($u,e)}function sl(e,t){for(t&=~Lu,t&=~Du,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function ul(e){if(6&Mu)throw Error(n(327));_l();var t=ct(e,0);if(!(1&t))return rl(e,Qe()),null;var r=vl(e,t);if(0!==e.tag&&2===r){var o=ft(e);0!==o&&(t=o,r=al(e,o))}if(1===r)throw r=Ru,fl(e,0),sl(e,t),rl(e,Qe()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xl(e,$u,Vu),rl(e,Qe()),null}function ll(e,t){var n=Mu;Mu|=1;try{return e(t)}finally{0===(Mu=n)&&(Fu=Qe()+500,Lo&&Bo())}}function cl(e){null!==Ku&&0===Ku.tag&&!(6&Mu)&&_l();var t=Mu;Mu|=1;var n=ku.transition,r=gt;try{if(ku.transition=null,gt=1,e)return e()}finally{gt=r,ku.transition=n,!(6&(Mu=t))&&Bo()}}function dl(){Ou=Tu.current,Io(Tu)}function fl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,no(n)),null!==Pu)for(n=Pu.return;null!==n;){var r=n;switch(ea(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Oo();break;case 3:ri(),Io(Mo),Io(ko),li();break;case 5:ai(r);break;case 4:ri();break;case 13:case 19:Io(ii);break;case 10:xa(r.type._context);break;case 22:case 23:dl()}n=n.return}if(Cu=e,Pu=e=Tl(e.current,null),Nu=Ou=t,qu=0,Ru=null,Lu=Du=ju=0,$u=zu=null,null!==Aa){for(t=0;t<Aa.length;t++)if(null!==(r=(n=Aa[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Aa=null}return e}function pl(e,t){for(;;){var r=Pu;try{if(wa(),ci.current=as,vi){for(var o=pi.memoizedState;null!==o;){var a=o.queue;null!==a&&(a.pending=null),o=o.next}vi=!1}if(fi=0,hi=mi=pi=null,gi=!1,yi=0,Eu.current=null,null===r||null===r.return){qu=1,Ru=t,Pu=null;break}e:{var i=e,s=r.return,u=r,l=t;if(t=Nu,u.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,d=u,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=vs(s);if(null!==m){m.flags&=-257,gs(m,s,u,0,t),1&m.mode&&hs(i,c,t),l=c;var h=(t=m).updateQueue;if(null===h){var v=new Set;v.add(l),t.updateQueue=v}else h.add(l);break e}if(!(1&t)){hs(i,c,t),hl();break e}l=Error(n(426))}else if(ra&&1&u.mode){var g=vs(s);if(null!==g){!(65536&g.flags)&&(g.flags|=256),gs(g,s,u,0,t),pa(ls(l,u));break e}}i=l=ls(l,u),4!==qu&&(qu=2),null===zu?zu=[i]:zu.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ra(i,ps(0,l,t));break e;case 1:u=l;var y=i.type,b=i.stateNode;if(!(128&i.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Hu&&Hu.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Ra(i,ms(i,u,t));break e}}i=i.return}while(null!==i)}wl(r)}catch(e){t=e,Pu===r&&null!==r&&(Pu=r=r.return);continue}break}}function ml(){var e=Au.current;return Au.current=as,null===e?as:e}function hl(){(0===qu||3===qu||2===qu)&&(qu=4),null===Cu||!(268435455&ju)&&!(268435455&Du)||sl(Cu,Nu)}function vl(e,t){var r=Mu;Mu|=2;var o=ml();for((Cu!==e||Nu!==t)&&(Vu=null,fl(e,t));;)try{gl();break}catch(t){pl(e,t)}if(wa(),Mu=r,Au.current=o,null!==Pu)throw Error(n(261));return Cu=null,Nu=0,qu}function gl(){for(;null!==Pu;)bl(Pu)}function yl(){for(;null!==Pu&&!Ge();)bl(Pu)}function bl(e){var t=Su(e.alternate,e,Ou);e.memoizedProps=e.pendingProps,null===t?wl(e):Pu=t,Eu.current=null}function wl(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Ks(n,t)))return n.flags&=32767,void(Pu=n);if(null===e)return qu=6,void(Pu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Gs(n,t,Ou)))return void(Pu=n);if(null!==(t=t.sibling))return void(Pu=t);Pu=t=e}while(null!==t);0===qu&&(qu=5)}function xl(e,t,r){var o=gt,a=ku.transition;try{ku.transition=null,gt=1,function(e,t,r,o){do{_l()}while(null!==Ku);if(6&Mu)throw Error(n(327));r=e.finishedWork;var a=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-ot(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===Cu&&(Pu=Cu=null,Nu=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Gu||(Gu=!0,Cl(Ze,(function(){return _l(),null}))),i=!!(15990&r.flags),15990&r.subtreeFlags||i){i=ku.transition,ku.transition=null;var s=gt;gt=1;var u=Mu;Mu|=4,Eu.current=null,function(e,t){if(Jr=Ft,dr(e=cr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var a=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var s=0,u=-1,l=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==r||0!==a&&3!==f.nodeType||(u=s+a),f!==i||0!==o&&3!==f.nodeType||(l=s+o),3===f.nodeType&&(s+=f.nodeValue.length),null!==(m=f.firstChild);)p=f,f=m;for(;;){if(f===e)break t;if(p===r&&++c===a&&(u=s),p===i&&++d===o&&(l=s),null!==(m=f.nextSibling))break;p=(f=p).parentNode}f=m}r=-1===u||-1===l?null:{start:u,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Zr={focusedElem:e,selectionRange:r},Ft=!1,Js=t;null!==Js;)if(e=(t=Js).child,1028&t.subtreeFlags&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var h=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var v=h.memoizedProps,g=h.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:ha(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(n(163))}}catch(e){Il(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}h=tu,tu=!1}(e,r),vu(r,e),fr(Zr),Ft=!!Jr,Zr=Jr=null,e.current=r,yu(r),Ke(),Mu=u,gt=s,ku.transition=i}else e.current=r;if(Gu&&(Gu=!1,Ku=e,Qu=a),i=e.pendingLanes,0===i&&(Hu=null),function(e){if(rt&&"function"==typeof rt.onCommitFiberRoot)try{rt.onCommitFiberRoot(nt,e,void 0,!(128&~e.current.flags))}catch{}}(r.stateNode),rl(e,Qe()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],o(a.value,{componentStack:a.stack,digest:a.digest});if(Uu)throw Uu=!1,e=Wu,Wu=null,e;!!(1&Qu)&&0!==e.tag&&_l(),i=e.pendingLanes,1&i?e===Xu?Yu++:(Yu=0,Xu=e):Yu=0,Bo()}(e,t,r,o)}finally{ku.transition=a,gt=o}return null}function _l(){if(null!==Ku){var e=yt(Qu),t=ku.transition,r=gt;try{if(ku.transition=null,gt=16>e?16:e,null===Ku)var o=!1;else{if(e=Ku,Ku=null,Qu=0,6&Mu)throw Error(n(331));var a=Mu;for(Mu|=4,Js=e.current;null!==Js;){var i=Js,s=i.child;if(16&Js.flags){var u=i.deletions;if(null!==u){for(var l=0;l<u.length;l++){var c=u[l];for(Js=c;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:nu(8,d,i)}var f=d.child;if(null!==f)f.return=d,Js=f;else for(;null!==Js;){var p=(d=Js).sibling,m=d.return;if(au(d),d===c){Js=null;break}if(null!==p){p.return=m,Js=p;break}Js=m}}}var h=i.alternate;if(null!==h){var v=h.child;if(null!==v){h.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Js=i}}if(2064&i.subtreeFlags&&null!==s)s.return=i,Js=s;else e:for(;null!==Js;){if(2048&(i=Js).flags)switch(i.tag){case 0:case 11:case 15:nu(9,i,i.return)}var y=i.sibling;if(null!==y){y.return=i.return,Js=y;break e}Js=i.return}}var b=e.current;for(Js=b;null!==Js;){var w=(s=Js).child;if(2064&s.subtreeFlags&&null!==w)w.return=s,Js=w;else e:for(s=b;null!==Js;){if(2048&(u=Js).flags)try{switch(u.tag){case 0:case 11:case 15:ru(9,u)}}catch(e){Il(u,u.return,e)}if(u===s){Js=null;break e}var x=u.sibling;if(null!==x){x.return=u.return,Js=x;break e}Js=u.return}}if(Mu=a,Bo(),rt&&"function"==typeof rt.onPostCommitFiberRoot)try{rt.onPostCommitFiberRoot(nt,e)}catch{}o=!0}return o}finally{gt=r,ku.transition=t}}return!1}function Sl(e,t,n){e=Ta(e,t=ps(0,t=ls(n,t),1),1),t=el(),null!==e&&(ht(e,1,t),rl(e,t))}function Il(e,t,n){if(3===e.tag)Sl(e,e,n);else for(;null!==t;){if(3===t.tag){Sl(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Hu||!Hu.has(r))){t=Ta(t,e=ms(t,e=ls(n,e),1),1),e=el(),null!==t&&(ht(t,1,e),rl(t,e));break}}t=t.return}}function Al(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=el(),e.pingedLanes|=e.suspendedLanes&n,Cu===e&&(Nu&n)===n&&(4===qu||3===qu&&(130023424&Nu)===Nu&&500>Qe()-Bu?fl(e,0):Lu|=n),rl(e,t)}function El(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=el();null!==(e=Ma(e,t))&&(ht(e,t,n),rl(e,n))}function kl(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),El(e,n)}function Ml(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,a=e.memoizedState;null!==a&&(r=a.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),El(e,r)}function Cl(e,t){return Ue(e,t)}function Pl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nl(e,t,n,r){return new Pl(e,t,n,r)}function Ol(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Tl(e,t){var n=e.alternate;return null===n?((n=Nl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ql(e,t,r,o,a,i){var s=2;if(o=e,"function"==typeof e)Ol(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case w:return Rl(r.children,a,i,t);case x:s=8,a|=8;break;case _:return(e=Nl(12,r,t,2|a)).elementType=_,e.lanes=i,e;case E:return(e=Nl(13,r,t,a)).elementType=E,e.lanes=i,e;case k:return(e=Nl(19,r,t,a)).elementType=k,e.lanes=i,e;case P:return jl(r,a,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:s=10;break e;case I:s=9;break e;case A:s=11;break e;case M:s=14;break e;case C:s=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Nl(s,r,t,a)).elementType=e,t.type=o,t.lanes=i,t}function Rl(e,t,n,r){return(e=Nl(7,e,r,t)).lanes=n,e}function jl(e,t,n,r){return(e=Nl(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function Dl(e,t,n){return(e=Nl(6,e,null,t)).lanes=n,e}function Ll(e,t,n){return(t=Nl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zl(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function $l(e,t,n,r,o,a,i,s,u){return e=new zl(e,t,n,s,u),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Nl(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pa(a),e}function Bl(e){if(!e)return Eo;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(No(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(No(r))return qo(e,r,t)}return t}function Fl(e,t,n,r,o,a,i,s,u){return(e=$l(n,r,!0,e,0,a,0,s,u)).context=Bl(null),n=e.current,(a=Oa(r=el(),o=tl(n))).callback=t??null,Ta(n,a,o),e.current.lanes=o,ht(e,o,r),rl(e,r),e}function Vl(e,t,n,r){var o=t.current,a=el(),i=tl(o);return n=Bl(n),null===t.context?t.context=n:t.pendingContext=n,(t=Oa(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ta(o,t,i))&&(nl(e,o,i,a),qa(e,o,i)),i}function Ul(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Hl(e,t){Wl(e,t),(e=e.alternate)&&Wl(e,t)}Su=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Mo.current)bs=!0;else{if(!(e.lanes&r||128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Cs(t),fa();break;case 5:oi(t);break;case 1:No(t.type)&&Ro(t);break;case 4:ni(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ao(va,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ao(ii,1&ii.current),t.flags|=128,null):n&t.child.childLanes?Ds(e,t,n):(Ao(ii,1&ii.current),null!==(e=Us(e,t,n))?e.sibling:null);Ao(ii,1&ii.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Fs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ao(ii,ii.current),r)break;return null;case 22:case 23:return t.lanes=0,Is(e,t,n)}return Us(e,t,n)}(e,t,r);bs=!!(131072&e.flags)}else bs=!1,ra&&1048576&t.flags&&Jo(t,Wo,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Vs(e,t),e=t.pendingProps;var a=Po(t,ko.current);Sa(t,r),a=_i(null,t,o,e,a,r);var i=Si();return t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,No(o)?(i=!0,Ro(t)):i=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Pa(t),a.updater=$a,t.stateNode=a,a._reactInternals=t,Ua(t,o,e,r),t=Ms(null,t,o,!0,i,r)):(t.tag=0,ra&&i&&Zo(t),ws(null,t,a,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Vs(e,t),e=t.pendingProps,o=(a=o._init)(o._payload),t.type=o,a=t.tag=function(e){if("function"==typeof e)return Ol(e)?1:0;if(null!=e){if((e=e.$$typeof)===A)return 11;if(e===M)return 14}return 2}(o),e=ha(o,e),a){case 0:t=Es(null,t,o,e,r);break e;case 1:t=ks(null,t,o,e,r);break e;case 11:t=xs(null,t,o,e,r);break e;case 14:t=_s(null,t,o,ha(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,a=t.pendingProps,Es(e,t,o,a=t.elementType===o?a:ha(o,a),r);case 1:return o=t.type,a=t.pendingProps,ks(e,t,o,a=t.elementType===o?a:ha(o,a),r);case 3:e:{if(Cs(t),null===e)throw Error(n(387));o=t.pendingProps,a=(i=t.memoizedState).element,Na(e,t),ja(t,o,null,r);var s=t.memoizedState;if(o=s.element,i.isDehydrated){if(i={element:o,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Ps(e,t,o,r,a=ls(Error(n(423)),t));break e}if(o!==a){t=Ps(e,t,o,r,a=ls(Error(n(424)),t));break e}for(na=so(t.stateNode.containerInfo.firstChild),ta=t,ra=!0,oa=null,r=Ya(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(fa(),o===a){t=Us(e,t,r);break e}ws(e,t,o,r)}t=t.child}return t;case 5:return oi(t),null===e&&ua(t),o=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,s=a.children,eo(o,a)?s=null:null!==i&&eo(o,i)&&(t.flags|=32),As(e,t),ws(e,t,s,r),t.child;case 6:return null===e&&ua(t),null;case 13:return Ds(e,t,r);case 4:return ni(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Qa(t,null,o,r):ws(e,t,o,r),t.child;case 11:return o=t.type,a=t.pendingProps,xs(e,t,o,a=t.elementType===o?a:ha(o,a),r);case 7:return ws(e,t,t.pendingProps,r),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,a=t.pendingProps,i=t.memoizedProps,s=a.value,Ao(va,o._currentValue),o._currentValue=s,null!==i)if(ar(i.value,s)){if(i.children===a.children&&!Mo.current){t=Us(e,t,r);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var u=i.dependencies;if(null!==u){s=i.child;for(var l=u.firstContext;null!==l;){if(l.context===o){if(1===i.tag){(l=Oa(-1,r&-r)).tag=2;var c=i.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}i.lanes|=r,null!==(l=i.alternate)&&(l.lanes|=r),_a(i.return,r,t),u.lanes|=r;break}l=l.next}}else if(10===i.tag)s=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(n(341));s.lanes|=r,null!==(u=s.alternate)&&(u.lanes|=r),_a(s,r,t),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===t){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}ws(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,o=t.pendingProps.children,Sa(t,r),o=o(a=Ia(a)),t.flags|=1,ws(e,t,o,r),t.child;case 14:return a=ha(o=t.type,t.pendingProps),_s(e,t,o,a=ha(o.type,a),r);case 15:return Ss(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:ha(o,a),Vs(e,t),t.tag=1,No(o)?(e=!0,Ro(t)):e=!1,Sa(t,r),Fa(t,o,a),Ua(t,o,a,r),Ms(null,t,o,!0,e,r);case 19:return Fs(e,t,r);case 22:return Is(e,t,r)}throw Error(n(156,t.tag))};var Gl="function"==typeof reportError?reportError:function(e){console.error(e)};function Kl(e){this._internalRoot=e}function Ql(e){this._internalRoot=e}function Yl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jl(){}function Zl(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var s=o;o=function(){var e=Ul(i);s.call(e)}}Vl(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=Ul(i);a.call(e)}}var i=Fl(t,r,e,0,null,!1,0,"",Jl);return e._reactRootContainer=i,e[po]=i.current,$r(8===e.nodeType?e.parentNode:e),cl(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Ul(u);s.call(e)}}var u=$l(e,0,!1,null,0,!1,0,"",Jl);return e._reactRootContainer=u,e[po]=u.current,$r(8===e.nodeType?e.parentNode:e),cl((function(){Vl(t,u,n,r)})),u}(n,t,e,o,r);return Ul(i)}Ql.prototype.render=Kl.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Vl(e,t,null,null)},Ql.prototype.unmount=Kl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cl((function(){Vl(null,e,null,null)})),t[po]=null}},Ql.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&0!==t&&t<Nt[n].priority;n++);Nt.splice(n,0,e),0===n&&Rt(e)}},bt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=lt(t.pendingLanes);0!==n&&(vt(t,1|n),rl(t,Qe()),!(6&Mu)&&(Fu=Qe()+500,Bo()))}break;case 13:cl((function(){var t=Ma(e,1);if(null!==t){var n=el();nl(t,e,1,n)}})),Hl(e,1)}},wt=function(e){if(13===e.tag){var t=Ma(e,134217728);if(null!==t)nl(t,e,134217728,el());Hl(e,134217728)}},xt=function(e){if(13===e.tag){var t=tl(e),n=Ma(e,t);if(null!==n)nl(n,e,t,el());Hl(e,t)}},_t=function(){return gt},St=function(e,t){var n=gt;try{return gt=e,t()}finally{gt=n}},be=function(e,t,r){switch(t){case"input":if(Q(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var a=wo(o);if(!a)throw Error(n(90));U(o),Q(o,a)}}}break;case"textarea":ne(e,r);break;case"select":null!=(t=r.value)&&Z(e,!!r.multiple,t,!1)}},Ae=ll,Ee=cl;var ec={usingClientEntryPoint:!1,Events:[yo,bo,wo,Se,Ie,ll]},tc={findFiberByHostInstance:go,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:g.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Fe(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{nt=rc.inject(nc),rt=rc}catch{}}return Ii.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,Ii.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yl(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:b,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},Ii.createRoot=function(e,t){if(!Yl(e))throw Error(n(299));var r=!1,o="",a=Gl;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=$l(e,1,!1,null,0,r,0,o,a),e[po]=t.current,$r(8===e.nodeType?e.parentNode:e),new Kl(t)},Ii.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t)throw"function"==typeof e.render?Error(n(188)):(e=Object.keys(e).join(","),Error(n(268,e)));return e=null===(e=Fe(t))?null:e.stateNode},Ii.flushSync=function(e){return cl(e)},Ii.hydrate=function(e,t,r){if(!Xl(t))throw Error(n(200));return Zl(null,e,t,!0,r)},Ii.hydrateRoot=function(e,t,r){if(!Yl(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,a=!1,i="",s=Gl;if(null!=r&&(!0===r.unstable_strictMode&&(a=!0),void 0!==r.identifierPrefix&&(i=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Fl(t,null,e,1,r??null,a,0,i,s),e[po]=t.current,$r(e),o)for(e=0;e<o.length;e++)a=(a=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new Ql(t)},Ii.render=function(e,t,r){if(!Xl(t))throw Error(n(200));return Zl(null,e,t,!1,r)},Ii.unmountComponentAtNode=function(e){if(!Xl(e))throw Error(n(40));return!!e._reactRootContainer&&(cl((function(){Zl(null,null,e,!1,(function(){e._reactRootContainer=null,e[po]=null}))})),!0)},Ii.unstable_batchedUpdates=ll,Ii.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Xl(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Zl(e,t,r,!1,o)},Ii.version="18.2.0-next-9e3b772b8-20220608",Ii}function P3(){if(eC)return C1.exports;return eC=1,function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||"function"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),C1.exports=E3(),C1.exports}var yu=P3();const f2=t$(yu);function R3(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))}Array(12).fill(0);let lS=1;class T3{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach((t=>t(e)))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;const{message:n,...r}=e,o="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:lS++,a=this.toasts.find((e=>e.id===o)),i=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),a?this.toasts=this.toasts.map((t=>t.id===o?(this.publish({...t,...e,id:o,title:n}),{...t,...e,id:o,dismissible:i,title:n}):t)):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame((()=>this.subscribers.forEach((t=>t({id:e,dismiss:!0})))))):this.toasts.forEach((e=>{this.subscribers.forEach((t=>t({id:e.id,dismiss:!0})))})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));const r=Promise.resolve(e instanceof Function?e():e);let o,a=void 0!==n;const i=r.then((async e=>{if(o=["resolve",e],He.isValidElement(e))a=!1,this.create({id:n,type:"default",message:e});else if(A3(e)&&!e.ok){a=!1;const r="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,o="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description,i="object"!=typeof r||He.isValidElement(r)?{message:r}:r;this.create({id:n,type:"error",description:o,...i})}else if(e instanceof Error){a=!1;const r="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,i="object"!=typeof r||He.isValidElement(r)?{message:r}:r;this.create({id:n,type:"error",description:o,...i})}else if(void 0!==t.success){a=!1;const r="function"==typeof t.success?await t.success(e):t.success,o="function"==typeof t.description?await t.description(e):t.description,i="object"!=typeof r||He.isValidElement(r)?{message:r}:r;this.create({id:n,type:"success",description:o,...i})}})).catch((async e=>{if(o=["reject",e],void 0!==t.error){a=!1;const r="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,i="object"!=typeof r||He.isValidElement(r)?{message:r}:r;this.create({id:n,type:"error",description:o,...i})}})).finally((()=>{a&&(this.dismiss(n),n=void 0),null==t.finally||t.finally.call(t)})),s=()=>new Promise(((e,t)=>i.then((()=>"reject"===o[0]?t(o[1]):e(o[1]))).catch(t)));return"string"!=typeof n&&"number"!=typeof n?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{const n=(null==t?void 0:t.id)||lS++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter((e=>!this.dismissedToasts.has(e.id))),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ba=new T3,O3=(e,t)=>{const n=(null==t?void 0:t.id)||lS++;return Ba.addToast({title:e,...t,id:n}),n},A3=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,D3=O3,N3=()=>Ba.toasts,M3=()=>Ba.getActiveToasts(),cS=Object.assign(D3,{success:Ba.success,info:Ba.info,warning:Ba.warning,error:Ba.error,custom:Ba.custom,message:Ba.message,promise:Ba.promise,dismiss:Ba.dismiss,loading:Ba.loading},{getHistory:N3,getToasts:M3});R3("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");const k3=e=>{if(e.actionButton)return 7e3;switch(e.type){case"error":return 7e3;case"loading":return 1e5;default:return 5e3}};var tC,tv={exports:{}},L3=tv.exports;
|
|
29
|
-
/**
|
|
30
|
-
* @license
|
|
31
|
-
* Lodash <https://lodash.com/>
|
|
32
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
33
|
-
* Released under MIT license <https://lodash.com/license>
|
|
34
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
35
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
36
|
-
*/function B3(){return tC||(tC=1,e=tv,t=tv.exports,function(){function n(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 r(e,t,n,r){for(var o=-1,a=null==e?0:e.length;++o<a;){var i=e[o];t(r,i,n(i),e)}return r}function o(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function a(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function i(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 s(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}function u(e,t){return!(null==e||!e.length)&&g(e,t,0)>-1}function l(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 c(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 d(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function f(e,t,n,r){var o=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}function p(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 m(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 h(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function v(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}function g(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):v(e,b,n)}function y(e,t,n,r){for(var o=n-1,a=e.length;++o<a;)if(r(e[o],t))return o;return-1}function b(e){return e!=e}function w(e,t){var n=null==e?0:e.length;return n?I(e,t)/n:J}function x(e){return function(t){return null==t?B:t[e]}}function _(e){return function(t){return null==e?B:e[t]}}function S(e,t,n,r,o){return o(e,(function(e,o,a){n=r?(r=!1,e):t(n,e,o,a)})),n}function I(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==B&&(n=n===B?a:n+a)}return n}function A(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function E(e){return e&&e.slice(0,$(e)+1).replace(We,"")}function k(e){return function(t){return e(t)}}function M(e,t){return c(t,(function(t){return e[t]}))}function C(e,t){return e.has(t)}function P(e,t){for(var n=-1,r=e.length;++n<r&&g(t,e[n],0)>-1;);return n}function N(e,t){for(var n=e.length;n--&&g(t,e[n],0)>-1;);return n}function O(e){return"\\"+Qt[e]}function T(e){return Vt.test(e)}function q(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function R(e,t){return function(n){return e(t(n))}}function j(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var i=e[n];i!==t&&i!==U||(e[n]=U,a[o++]=n)}return a}function D(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function L(e){return T(e)?function(e){for(var t=Bt.lastIndex=0;Bt.test(e);)++t;return t}(e):pn(e)}function z(e){return T(e)?function(e){return e.match(Bt)||[]}(e):function(e){return e.split("")}(e)}function $(e){for(var t=e.length;t--&&He.test(e.charAt(t)););return t}var B,F="Expected a function",V="__lodash_hash_undefined__",U="__lodash_placeholder__",W=16,H=32,G=64,K=128,Q=256,Y=1/0,X=9007199254740991,J=NaN,Z=4294967295,ee=Z-1,te=Z>>>1,ne=[["ary",K],["bind",1],["bindKey",2],["curry",8],["curryRight",W],["flip",512],["partial",H],["partialRight",G],["rearg",Q]],re="[object Arguments]",oe="[object Array]",ae="[object Boolean]",ie="[object Date]",se="[object Error]",ue="[object Function]",le="[object GeneratorFunction]",ce="[object Map]",de="[object Number]",fe="[object Object]",pe="[object Promise]",me="[object RegExp]",he="[object Set]",ve="[object String]",ge="[object Symbol]",ye="[object WeakMap]",be="[object ArrayBuffer]",we="[object DataView]",xe="[object Float32Array]",_e="[object Float64Array]",Se="[object Int8Array]",Ie="[object Int16Array]",Ae="[object Int32Array]",Ee="[object Uint8Array]",ke="[object Uint8ClampedArray]",Me="[object Uint16Array]",Ce="[object Uint32Array]",Pe=/\b__p \+= '';/g,Ne=/\b(__p \+=) '' \+/g,Oe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Te=/&(?:amp|lt|gt|quot|#39);/g,qe=/[&<>"']/g,Re=RegExp(Te.source),je=RegExp(qe.source),De=/<%-([\s\S]+?)%>/g,Le=/<%([\s\S]+?)%>/g,ze=/<%=([\s\S]+?)%>/g,$e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Be=/^\w*$/,Fe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ve=/[\\^$.*+?()[\]{}|]/g,Ue=RegExp(Ve.source),We=/^\s+/,He=/\s/,Ge=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ke=/\{\n\/\* \[wrapped with (.+)\] \*/,Qe=/,? & /,Ye=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Xe=/[()=,{}\[\]\/\s]/,Je=/\\(\\)?/g,Ze=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,et=/\w*$/,tt=/^[-+]0x[0-9a-f]+$/i,nt=/^0b[01]+$/i,rt=/^\[object .+?Constructor\]$/,ot=/^0o[0-7]+$/i,at=/^(?:0|[1-9]\d*)$/,it=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,st=/($^)/,ut=/['\n\r\u2028\u2029\\]/g,lt="\\ud800-\\udfff",ct="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",dt="\\u2700-\\u27bf",ft="a-z\\xdf-\\xf6\\xf8-\\xff",pt="A-Z\\xc0-\\xd6\\xd8-\\xde",mt="\\ufe0e\\ufe0f",ht="\\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",vt="['’]",gt="["+lt+"]",yt="["+ht+"]",bt="["+ct+"]",wt="\\d+",xt="["+dt+"]",_t="["+ft+"]",St="[^"+lt+ht+wt+dt+ft+pt+"]",It="\\ud83c[\\udffb-\\udfff]",At="[^"+lt+"]",Et="(?:\\ud83c[\\udde6-\\uddff]){2}",kt="[\\ud800-\\udbff][\\udc00-\\udfff]",Mt="["+pt+"]",Ct="\\u200d",Pt="(?:"+_t+"|"+St+")",Nt="(?:"+Mt+"|"+St+")",Ot="(?:['’](?:d|ll|m|re|s|t|ve))?",Tt="(?:['’](?:D|LL|M|RE|S|T|VE))?",qt="(?:"+bt+"|"+It+")?",Rt="["+mt+"]?",jt=Rt+qt+"(?:"+Ct+"(?:"+[At,Et,kt].join("|")+")"+Rt+qt+")*",Dt="(?:"+[xt,Et,kt].join("|")+")"+jt,Lt="(?:"+[At+bt+"?",bt,Et,kt,gt].join("|")+")",zt=RegExp(vt,"g"),$t=RegExp(bt,"g"),Bt=RegExp(It+"(?="+It+")|"+Lt+jt,"g"),Ft=RegExp([Mt+"?"+_t+"+"+Ot+"(?="+[yt,Mt,"$"].join("|")+")",Nt+"+"+Tt+"(?="+[yt,Mt+Pt,"$"].join("|")+")",Mt+"?"+Pt+"+"+Ot,Mt+"+"+Tt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wt,Dt].join("|"),"g"),Vt=RegExp("["+Ct+lt+ct+mt+"]"),Ut=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wt=["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"],Ht=-1,Gt={};Gt[xe]=Gt[_e]=Gt[Se]=Gt[Ie]=Gt[Ae]=Gt[Ee]=Gt[ke]=Gt[Me]=Gt[Ce]=!0,Gt[re]=Gt[oe]=Gt[be]=Gt[ae]=Gt[we]=Gt[ie]=Gt[se]=Gt[ue]=Gt[ce]=Gt[de]=Gt[fe]=Gt[me]=Gt[he]=Gt[ve]=Gt[ye]=!1;var Kt={};Kt[re]=Kt[oe]=Kt[be]=Kt[we]=Kt[ae]=Kt[ie]=Kt[xe]=Kt[_e]=Kt[Se]=Kt[Ie]=Kt[Ae]=Kt[ce]=Kt[de]=Kt[fe]=Kt[me]=Kt[he]=Kt[ve]=Kt[ge]=Kt[Ee]=Kt[ke]=Kt[Me]=Kt[Ce]=!0,Kt[se]=Kt[ue]=Kt[ye]=!1;var Qt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yt=parseFloat,Xt=parseInt,Jt="object"==typeof Fa&&Fa&&Fa.Object===Object&&Fa,Zt="object"==typeof self&&self&&self.Object===Object&&self,en=Jt||Zt||Function("return this")(),tn=t&&!t.nodeType&&t,nn=tn&&e&&!e.nodeType&&e,rn=nn&&nn.exports===tn,on=rn&&Jt.process,an=function(){try{return nn&&nn.require&&nn.require("util").types||on&&on.binding&&on.binding("util")}catch{}}(),sn=an&&an.isArrayBuffer,un=an&&an.isDate,ln=an&&an.isMap,cn=an&&an.isRegExp,dn=an&&an.isSet,fn=an&&an.isTypedArray,pn=x("length"),mn=_({"À":"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"}),hn=_({"&":"&","<":"<",">":">",'"':""","'":"'"}),vn=_({"&":"&","<":"<",">":">",""":'"',"'":"'"}),gn=function e(t){function _(e){if(Lo(e)&&!Ms(e)&&!(e instanceof ct)){if(e instanceof lt)return e;if(Ma.call(e,"__wrapped__"))return lo(e)}return new lt(e)}function He(){}function lt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=B}function ct(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Z,this.__views__=[]}function dt(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 ft(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 pt(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 mt(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new pt;++t<n;)this.add(e[t])}function ht(e){this.size=(this.__data__=new ft(e)).size}function vt(e,t){var n=Ms(e),r=!n&&ks(e),o=!n&&!r&&Ps(e),a=!n&&!r&&!o&&Rs(e),i=n||r||o||a,s=i?A(e.length,xa):[],u=s.length;for(var l in e)!t&&!Ma.call(e,l)||i&&("length"==l||o&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Kr(l,u))||s.push(l);return s}function gt(e){var t=e.length;return t?e[Tn(0,t-1)]:B}function yt(e,t){return io(cr(e),kt(t,0,e.length))}function bt(e){return io(cr(e))}function wt(e,t,n){(n===B||Po(e[t],n))&&(n!==B||t in e)||At(e,t,n)}function xt(e,t,n){var r=e[t];Ma.call(e,t)&&Po(r,n)&&(n!==B||t in e)||At(e,t,n)}function _t(e,t){for(var n=e.length;n--;)if(Po(e[n][0],t))return n;return-1}function St(e,t,n,r){return Ei(e,(function(e,o,a){t(r,e,n(e),a)})),r}function It(e,t){return e&&dr(t,Jo(t),e)}function At(e,t,n){"__proto__"==t&&Ha?Ha(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Et(e,t){for(var n=-1,r=t.length,o=ma(r),a=null==e;++n<r;)o[n]=a?B:Yo(e,t[n]);return o}function kt(e,t,n){return e==e&&(n!==B&&(e=e<=n?e:n),t!==B&&(e=e>=t?e:t)),e}function Mt(e,t,n,r,a,i){var s,u=1&t,l=2&t,c=4&t;if(n&&(s=a?n(e,r,a,i):n(e)),s!==B)return s;if(!Do(e))return e;var d=Ms(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ma.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return cr(e,s)}else{var f=Li(e),p=f==ue||f==le;if(Ps(e))return or(e,u);if(f==fe||f==re||p&&!a){if(s=l||p?{}:Hr(e),!u)return l?function(e,t){return dr(e,Di(e),t)}(e,function(e,t){return e&&dr(t,Zo(t),e)}(s,e)):function(e,t){return dr(e,ji(e),t)}(e,It(s,e))}else{if(!Kt[f])return a?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case be:return ar(e);case ae:case ie:return new r(+e);case we:return function(e,t){return new e.constructor(t?ar(e.buffer):e.buffer,e.byteOffset,e.byteLength)}(e,n);case xe:case _e:case Se:case Ie:case Ae:case Ee:case ke:case Me:case Ce:return ir(e,n);case ce:return new r;case de:case ve:return new r(e);case me:return function(e){var t=new e.constructor(e.source,et.exec(e));return t.lastIndex=e.lastIndex,t}(e);case he:return new r;case ge:return function(e){return Si?ba(Si.call(e)):{}}(e)}}(e,f,u)}}i||(i=new ht);var m=i.get(e);if(m)return m;i.set(e,s),qs(e)?e.forEach((function(r){s.add(Mt(r,t,n,r,e,i))})):Os(e)&&e.forEach((function(r,o){s.set(o,Mt(r,t,n,o,e,i))}));var h=d?B:(c?l?Lr:Dr:l?Zo:Jo)(e);return o(h||e,(function(r,o){h&&(r=e[o=r]),xt(s,o,Mt(r,t,n,o,e,i))})),s}function Ct(e,t,n){var r=n.length;if(null==e)return!r;for(e=ba(e);r--;){var o=n[r],a=t[o],i=e[o];if(i===B&&!(o in e)||!a(i))return!1}return!0}function Pt(e,t,n){if("function"!=typeof e)throw new _a(F);return Bi((function(){e.apply(B,n)}),t)}function Nt(e,t,n,r){var o=-1,a=u,i=!0,s=e.length,d=[],f=t.length;if(!s)return d;n&&(t=c(t,k(n))),r?(a=l,i=!1):t.length>=200&&(a=C,i=!1,t=new mt(t));e:for(;++o<s;){var p=e[o],m=null==n?p:n(p);if(p=r||0!==p?p:0,i&&m==m){for(var h=f;h--;)if(t[h]===m)continue e;d.push(p)}else a(t,m,r)||d.push(p)}return d}function Ot(e,t){var n=!0;return Ei(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function Tt(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],i=t(a);if(null!=i&&(s===B?i==i&&!Fo(i):n(i,s)))var s=i,u=a}return u}function qt(e,t){var n=[];return Ei(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function Rt(e,t,n,r,o){var a=-1,i=e.length;for(n||(n=Gr),o||(o=[]);++a<i;){var s=e[a];t>0&&n(s)?t>1?Rt(s,t-1,n,r,o):d(o,s):r||(o[o.length]=s)}return o}function jt(e,t){return e&&Mi(e,t,Jo)}function Dt(e,t){return e&&Ci(e,t,Jo)}function Lt(e,t){return s(t,(function(t){return qo(e[t])}))}function Bt(e,t){for(var n=0,r=(t=nr(t,e)).length;null!=e&&n<r;)e=e[so(t[n++])];return n&&n==r?e:B}function Vt(e,t,n){var r=t(e);return Ms(e)?r:d(r,n(e))}function Qt(e){return null==e?e===B?"[object Undefined]":"[object Null]":Wa&&Wa in ba(e)?function(e){var t=Ma.call(e,Wa),n=e[Wa];try{e[Wa]=B;var r=!0}catch{}var o=Na.call(e);return r&&(t?e[Wa]=n:delete e[Wa]),o}(e):function(e){return Na.call(e)}(e)}function Jt(e,t){return e>t}function Zt(e,t){return null!=e&&Ma.call(e,t)}function tn(e,t){return null!=e&&t in ba(e)}function nn(e,t,n){for(var r=n?l:u,o=e[0].length,a=e.length,i=a,s=ma(a),d=1/0,f=[];i--;){var p=e[i];i&&t&&(p=c(p,k(t))),d=oi(p.length,d),s[i]=!n&&(t||o>=120&&p.length>=120)?new mt(i&&p):B}p=e[0];var m=-1,h=s[0];e:for(;++m<o&&f.length<d;){var v=p[m],g=t?t(v):v;if(v=n||0!==v?v:0,!(h?C(h,g):r(f,g,n))){for(i=a;--i;){var y=s[i];if(!(y?C(y,g):r(e[i],g,n)))continue e}h&&h.push(g),f.push(v)}}return f}function on(e,t,r){var o=null==(e=no(e,t=nr(t,e)))?e:e[so(ho(t))];return null==o?B:n(o,e,r)}function an(e){return Lo(e)&&Qt(e)==re}function pn(e,t,n,r,o){return e===t||(null==e||null==t||!Lo(e)&&!Lo(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var i=Ms(e),s=Ms(t),u=i?oe:Li(e),l=s?oe:Li(t),c=(u=u==re?fe:u)==fe,d=(l=l==re?fe:l)==fe,f=u==l;if(f&&Ps(e)){if(!Ps(t))return!1;i=!0,c=!1}if(f&&!c)return a||(a=new ht),i||Rs(e)?Rr(e,t,n,r,o,a):function(e,t,n,r,o,a,i){switch(n){case we:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case be:return!(e.byteLength!=t.byteLength||!a(new Da(e),new Da(t)));case ae:case ie:case de:return Po(+e,+t);case se:return e.name==t.name&&e.message==t.message;case me:case ve:return e==t+"";case ce:var s=q;case he:var u=1&r;if(s||(s=D),e.size!=t.size&&!u)return!1;var l=i.get(e);if(l)return l==t;r|=2,i.set(e,t);var c=Rr(s(e),s(t),r,o,a,i);return i.delete(e),c;case ge:if(Si)return Si.call(e)==Si.call(t)}return!1}(e,t,u,n,r,o,a);if(!(1&n)){var p=c&&Ma.call(e,"__wrapped__"),m=d&&Ma.call(t,"__wrapped__");if(p||m){var h=p?e.value():e,v=m?t.value():t;return a||(a=new ht),o(h,v,n,r,a)}}return!!f&&(a||(a=new ht),function(e,t,n,r,o,a){var i=1&n,s=Dr(e),u=s.length;if(u!=Dr(t).length&&!i)return!1;for(var l=u;l--;){var c=s[l];if(!(i?c in t:Ma.call(t,c)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=i;++l<u;){var h=e[c=s[l]],v=t[c];if(r)var g=i?r(v,h,c,t,e,a):r(h,v,c,e,t,a);if(!(g===B?h===v||o(h,v,n,r,a):g)){p=!1;break}m||(m="constructor"==c)}if(p&&!m){var y=e.constructor,b=t.constructor;y!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(p=!1)}return a.delete(e),a.delete(t),p}(e,t,n,r,o,a))}(e,t,n,r,pn,o))}function yn(e,t,n,r){var o=n.length,a=o,i=!r;if(null==e)return!a;for(e=ba(e);o--;){var s=n[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){var u=(s=n[o])[0],l=e[u],c=s[1];if(i&&s[2]){if(l===B&&!(u in e))return!1}else{var d=new ht;if(r)var f=r(l,c,u,e,t,d);if(!(f===B?pn(c,l,3,r,d):f))return!1}}return!0}function bn(e){return!(!Do(e)||function(e){return!!Pa&&Pa in e}(e))&&(qo(e)?qa:rt).test(uo(e))}function wn(e){return"function"==typeof e?e:null==e?ia:"object"==typeof e?Ms(e)?En(e[0],e[1]):An(e):ca(e)}function xn(e){if(!Jr(e))return ni(e);var t=[];for(var n in ba(e))Ma.call(e,n)&&"constructor"!=n&&t.push(n);return t}function _n(e){if(!Do(e))return function(e){var t=[];if(null!=e)for(var n in ba(e))t.push(n);return t}(e);var t=Jr(e),n=[];for(var r in e)("constructor"!=r||!t&&Ma.call(e,r))&&n.push(r);return n}function Sn(e,t){return e<t}function In(e,t){var n=-1,r=No(e)?ma(e.length):[];return Ei(e,(function(e,o,a){r[++n]=t(e,o,a)})),r}function An(e){var t=Vr(e);return 1==t.length&&t[0][2]?eo(t[0][0],t[0][1]):function(n){return n===e||yn(n,e,t)}}function En(e,t){return Yr(e)&&Zr(t)?eo(so(e),t):function(n){var r=Yo(n,e);return r===B&&r===t?Xo(n,e):pn(t,r,3)}}function kn(e,t,n,r,o){e!==t&&Mi(t,(function(a,i){if(o||(o=new ht),Do(a))!function(e,t,n,r,o,a,i){var s=ro(e,n),u=ro(t,n),l=i.get(u);if(l)return wt(e,n,l),B;var c=a?a(s,u,n+"",e,t,i):B,d=c===B;if(d){var f=Ms(u),p=!f&&Ps(u),m=!f&&!p&&Rs(u);c=u,f||p||m?Ms(s)?c=s:Oo(s)?c=cr(s):p?(d=!1,c=or(u,!0)):m?(d=!1,c=ir(u,!0)):c=[]:$o(u)||ks(u)?(c=s,ks(s)?c=Ko(s):Do(s)&&!qo(s)||(c=Hr(u))):d=!1}d&&(i.set(u,c),o(c,u,r,a,i),i.delete(u)),wt(e,n,c)}(e,t,i,n,kn,r,o);else{var s=r?r(ro(e,i),a,i+"",e,t,o):B;s===B&&(s=a),wt(e,i,s)}}),Zo)}function Mn(e,t){var n=e.length;if(n)return Kr(t+=t<0?n:0,n)?e[t]:B}function Cn(e,t,n){t=t.length?c(t,(function(e){return Ms(e)?function(t){return Bt(t,1===e.length?e[0]:e)}:e})):[ia];var r=-1;return t=c(t,k(Br())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(In(e,(function(e,n,o){return{criteria:c(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,a=t.criteria,i=o.length,s=n.length;++r<i;){var u=sr(o[r],a[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Pn(e,t,n){for(var r=-1,o=t.length,a={};++r<o;){var i=t[r],s=Bt(e,i);n(s,i)&&Ln(a,nr(i,e),s)}return a}function Nn(e,t,n,r){var o=r?y:g,a=-1,i=t.length,s=e;for(e===t&&(t=cr(t)),n&&(s=c(e,k(n)));++a<i;)for(var u=0,l=t[a],d=n?n(l):l;(u=o(s,d,u,r))>-1;)s!==e&&Fa.call(s,u,1),Fa.call(e,u,1);return e}function On(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==a){var a=o;Kr(o)?Fa.call(e,o,1):Kn(e,o)}}return e}function Tn(e,t){return e+Xa(si()*(t-e+1))}function qn(e,t){var n="";if(!e||t<1||t>X)return n;do{t%2&&(n+=e),(t=Xa(t/2))&&(e+=e)}while(t);return n}function Rn(e,t){return Fi(to(e,t,ia),e+"")}function jn(e){return gt(ta(e))}function Dn(e,t){var n=ta(e);return io(n,kt(t,0,n.length))}function Ln(e,t,n,r){if(!Do(e))return e;for(var o=-1,a=(t=nr(t,e)).length,i=a-1,s=e;null!=s&&++o<a;){var u=so(t[o]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(o!=i){var c=s[u];(l=r?r(c,u,s):B)===B&&(l=Do(c)?c:Kr(t[o+1])?[]:{})}xt(s,u,l),s=s[u]}return e}function zn(e){return io(ta(e))}function $n(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 a=ma(o);++r<o;)a[r]=e[r+t];return a}function Bn(e,t){var n;return Ei(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function Fn(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=te){for(;r<o;){var a=r+o>>>1,i=e[a];null!==i&&!Fo(i)&&(n?i<=t:i<t)?r=a+1:o=a}return o}return Vn(e,t,ia,n)}function Vn(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var i=(t=n(t))!=t,s=null===t,u=Fo(t),l=t===B;o<a;){var c=Xa((o+a)/2),d=n(e[c]),f=d!==B,p=null===d,m=d==d,h=Fo(d);if(i)var v=r||m;else v=l?m&&(r||f):s?m&&f&&(r||!p):u?m&&f&&!p&&(r||!h):!p&&!h&&(r?d<=t:d<t);v?o=c+1:a=c}return oi(a,ee)}function Un(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var i=e[n],s=t?t(i):i;if(!n||!Po(s,u)){var u=s;a[o++]=0===i?0:i}}return a}function Wn(e){return"number"==typeof e?e:Fo(e)?J:+e}function Hn(e){if("string"==typeof e)return e;if(Ms(e))return c(e,Hn)+"";if(Fo(e))return Ii?Ii.call(e):"";var t=e+"";return"0"==t&&1/e==-Y?"-0":t}function Gn(e,t,n){var r=-1,o=u,a=e.length,i=!0,s=[],c=s;if(n)i=!1,o=l;else if(a>=200){var d=t?null:qi(e);if(d)return D(d);i=!1,o=C,c=new mt}else c=t?[]:s;e:for(;++r<a;){var f=e[r],p=t?t(f):f;if(f=n||0!==f?f:0,i&&p==p){for(var m=c.length;m--;)if(c[m]===p)continue e;t&&c.push(p),s.push(f)}else o(c,p,n)||(c!==s&&c.push(p),s.push(f))}return s}function Kn(e,t){return null==(e=no(e,t=nr(t,e)))||delete e[so(ho(t))]}function Qn(e,t,n,r){return Ln(e,t,n(Bt(e,t)),r)}function Yn(e,t,n,r){for(var o=e.length,a=r?o:-1;(r?a--:++a<o)&&t(e[a],a,e););return n?$n(e,r?0:a,r?a+1:o):$n(e,r?a+1:0,r?o:a)}function Xn(e,t){var n=e;return n instanceof ct&&(n=n.value()),f(t,(function(e,t){return t.func.apply(t.thisArg,d([e],t.args))}),n)}function Jn(e,t,n){var r=e.length;if(r<2)return r?Gn(e[0]):[];for(var o=-1,a=ma(r);++o<r;)for(var i=e[o],s=-1;++s<r;)s!=o&&(a[o]=Nt(a[o]||i,e[s],t,n));return Gn(Rt(a,1),t,n)}function Zn(e,t,n){for(var r=-1,o=e.length,a=t.length,i={};++r<o;)n(i,e[r],r<a?t[r]:B);return i}function er(e){return Oo(e)?e:[]}function tr(e){return"function"==typeof e?e:ia}function nr(e,t){return Ms(e)?e:Yr(e,t)?[e]:Vi(Qo(e))}function rr(e,t,n){var r=e.length;return n=n===B?r:n,!t&&n>=r?e:$n(e,t,n)}function or(e,t){if(t)return e.slice();var n=e.length,r=La?La(n):new e.constructor(n);return e.copy(r),r}function ar(e){var t=new e.constructor(e.byteLength);return new Da(t).set(new Da(e)),t}function ir(e,t){return new e.constructor(t?ar(e.buffer):e.buffer,e.byteOffset,e.length)}function sr(e,t){if(e!==t){var n=e!==B,r=null===e,o=e==e,a=Fo(e),i=t!==B,s=null===t,u=t==t,l=Fo(t);if(!s&&!l&&!a&&e>t||a&&i&&u&&!s&&!l||r&&i&&u||!n&&u||!o)return 1;if(!r&&!a&&!l&&e<t||l&&n&&o&&!r&&!a||s&&n&&o||!i&&o||!u)return-1}return 0}function ur(e,t,n,r){for(var o=-1,a=e.length,i=n.length,s=-1,u=t.length,l=ri(a-i,0),c=ma(u+l),d=!r;++s<u;)c[s]=t[s];for(;++o<i;)(d||o<a)&&(c[n[o]]=e[o]);for(;l--;)c[s++]=e[o++];return c}function lr(e,t,n,r){for(var o=-1,a=e.length,i=-1,s=n.length,u=-1,l=t.length,c=ri(a-s,0),d=ma(c+l),f=!r;++o<c;)d[o]=e[o];for(var p=o;++u<l;)d[p+u]=t[u];for(;++i<s;)(f||o<a)&&(d[p+n[i]]=e[o++]);return d}function cr(e,t){var n=-1,r=e.length;for(t||(t=ma(r));++n<r;)t[n]=e[n];return t}function dr(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var s=t[a],u=r?r(n[s],e[s],s,n,e):B;u===B&&(u=e[s]),o?At(n,s,u):xt(n,s,u)}return n}function fr(e,t){return function(n,o){var a=Ms(n)?r:St,i=t?t():{};return a(n,e,Br(o,2),i)}}function pr(e){return Rn((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:B,i=o>2?n[2]:B;for(a=e.length>3&&"function"==typeof a?(o--,a):B,i&&Qr(n[0],n[1],i)&&(a=o<3?B:a,o=1),t=ba(t);++r<o;){var s=n[r];s&&e(t,s,r,a)}return t}))}function mr(e,t){return function(n,r){if(null==n)return n;if(!No(n))return e(n,r);for(var o=n.length,a=t?o:-1,i=ba(n);(t?a--:++a<o)&&!1!==r(i[a],a,i););return n}}function hr(e){return function(t,n,r){for(var o=-1,a=ba(t),i=r(t),s=i.length;s--;){var u=i[e?s:++o];if(!1===n(a[u],u,a))break}return t}}function vr(e){return function(t){var n=T(t=Qo(t))?z(t):B,r=n?n[0]:t.charAt(0),o=n?rr(n,1).join(""):t.slice(1);return r[e]()+o}}function gr(e){return function(t){return f(oa(ra(t).replace(zt,"")),e,"")}}function yr(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=Ai(e.prototype),r=e.apply(n,t);return Do(r)?r:n}}function br(e){return function(t,n,r){var o=ba(t);if(!No(t)){var a=Br(n,3);t=Jo(t),n=function(e){return a(o[e],e,o)}}var i=e(t,n,r);return i>-1?o[a?t[i]:i]:B}}function wr(e){return jr((function(t){var n=t.length,r=n,o=lt.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new _a(F);if(o&&!i&&"wrapper"==zr(a))var i=new lt([],!0)}for(r=i?r:n;++r<n;){var s=zr(a=t[r]),u="wrapper"==s?Ri(a):B;i=u&&Xr(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?i[zr(u[0])].apply(i,u[3]):1==a.length&&Xr(a)?i[s]():i.thru(a)}return function(){var e=arguments,r=e[0];if(i&&1==e.length&&Ms(r))return i.plant(r).value();for(var o=0,a=n?t[o].apply(this,e):r;++o<n;)a=t[o].call(this,a);return a}}))}function xr(e,t,n,r,o,a,i,s,u,l){var c=t&K,d=1&t,f=2&t,p=24&t,m=512&t,h=f?B:yr(e);return function v(){for(var g=arguments.length,y=ma(g),b=g;b--;)y[b]=arguments[b];if(p)var w=$r(v),x=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(y,w);if(r&&(y=ur(y,r,o,p)),a&&(y=lr(y,a,i,p)),g-=x,p&&g<l)return Mr(e,t,xr,v.placeholder,n,y,j(y,w),s,u,l-g);var _=d?n:this,S=f?_[e]:e;return g=y.length,s?y=function(e,t){for(var n=e.length,r=oi(t.length,n),o=cr(e);r--;){var a=t[r];e[r]=Kr(a,n)?o[a]:B}return e}(y,s):m&&g>1&&y.reverse(),c&&u<g&&(y.length=u),this&&this!==en&&this instanceof v&&(S=h||yr(S)),S.apply(_,y)}}function _r(e,t){return function(n,r){return function(e,t,n,r){return jt(e,(function(e,o,a){t(r,n(e),o,a)})),r}(n,e,t(r),{})}}function Sr(e,t){return function(n,r){var o;if(n===B&&r===B)return t;if(n!==B&&(o=n),r!==B){if(o===B)return r;"string"==typeof n||"string"==typeof r?(n=Hn(n),r=Hn(r)):(n=Wn(n),r=Wn(r)),o=e(n,r)}return o}}function Ir(e){return jr((function(t){return t=c(t,k(Br())),Rn((function(r){var o=this;return e(t,(function(e){return n(e,o,r)}))}))}))}function Ar(e,t){var n=(t=t===B?" ":Hn(t)).length;if(n<2)return n?qn(t,e):t;var r=qn(t,Ya(e/L(t)));return T(t)?rr(z(r),0,e).join(""):r.slice(0,e)}function Er(e){return function(t,n,r){return r&&"number"!=typeof r&&Qr(t,n,r)&&(n=r=B),t=Uo(t),n===B?(n=t,t=0):n=Uo(n),function(e,t,n,r){for(var o=-1,a=ri(Ya((t-e)/(n||1)),0),i=ma(a);a--;)i[r?a:++o]=e,e+=n;return i}(t,n,r=r===B?t<n?1:-1:Uo(r),e)}}function kr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Go(t),n=Go(n)),e(t,n)}}function Mr(e,t,n,r,o,a,i,s,u,l){var c=8&t;t|=c?H:G,4&(t&=~(c?G:H))||(t&=-4);var d=[e,t,o,c?a:B,c?i:B,c?B:a,c?B:i,s,u,l],f=n.apply(B,d);return Xr(e)&&$i(f,d),f.placeholder=r,oo(f,e,t)}function Cr(e){var t=ya[e];return function(e,n){if(e=Go(e),(n=null==n?0:oi(Wo(n),292))&&ei(e)){var r=(Qo(e)+"e").split("e");return+((r=(Qo(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}function Pr(e){return function(t){var n=Li(t);return n==ce?q(t):n==he?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return c(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Nr(e,t,r,o,a,i,s,u){var l=2&t;if(!l&&"function"!=typeof e)throw new _a(F);var c=o?o.length:0;if(c||(t&=-97,o=a=B),s=s===B?s:ri(Wo(s),0),u=u===B?u:Wo(u),c-=a?a.length:0,t&G){var d=o,f=a;o=a=B}var p=l?B:Ri(e),m=[e,t,r,o,a,d,f,i,s,u];if(p&&function(e,t){var n=e[1],r=t[1],o=n|r,a=o<131,i=r==K&&8==n||r==K&&n==Q&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!i)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var s=t[3];if(s){var u=e[3];e[3]=u?ur(u,s,t[4]):s,e[4]=u?j(e[3],U):t[4]}(s=t[5])&&(u=e[5],e[5]=u?lr(u,s,t[6]):s,e[6]=u?j(e[5],U):t[6]),(s=t[7])&&(e[7]=s),r&K&&(e[8]=null==e[8]?t[8]:oi(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(m,p),e=m[0],t=m[1],r=m[2],o=m[3],a=m[4],!(u=m[9]=m[9]===B?l?0:e.length:ri(m[9]-c,0))&&24&t&&(t&=-25),t&&1!=t)h=8==t||t==W?function(e,t,r){var o=yr(e);return function a(){for(var i=arguments.length,s=ma(i),u=i,l=$r(a);u--;)s[u]=arguments[u];var c=i<3&&s[0]!==l&&s[i-1]!==l?[]:j(s,l);return(i-=c.length)<r?Mr(e,t,xr,a.placeholder,B,s,c,B,B,r-i):n(this&&this!==en&&this instanceof a?o:e,this,s)}}(e,t,u):t!=H&&33!=t||a.length?xr.apply(B,m):function(e,t,r,o){var a=1&t,i=yr(e);return function t(){for(var s=-1,u=arguments.length,l=-1,c=o.length,d=ma(c+u),f=this&&this!==en&&this instanceof t?i:e;++l<c;)d[l]=o[l];for(;u--;)d[l++]=arguments[++s];return n(f,a?r:this,d)}}(e,t,r,o);else var h=function(e,t,n){var r=1&t,o=yr(e);return function t(){return(this&&this!==en&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,r);return oo((p?Pi:$i)(h,m),e,t)}function Or(e,t,n,r){return e===B||Po(e,Aa[n])&&!Ma.call(r,n)?t:e}function Tr(e,t,n,r,o,a){return Do(e)&&Do(t)&&(a.set(t,e),kn(e,t,B,Tr,a),a.delete(t)),e}function qr(e){return $o(e)?B:e}function Rr(e,t,n,r,o,a){var i=1&n,s=e.length,u=t.length;if(s!=u&&!(i&&u>s))return!1;var l=a.get(e),c=a.get(t);if(l&&c)return l==t&&c==e;var d=-1,f=!0,p=2&n?new mt:B;for(a.set(e,t),a.set(t,e);++d<s;){var h=e[d],v=t[d];if(r)var g=i?r(v,h,d,t,e,a):r(h,v,d,e,t,a);if(g!==B){if(g)continue;f=!1;break}if(p){if(!m(t,(function(e,t){if(!C(p,t)&&(h===e||o(h,e,n,r,a)))return p.push(t)}))){f=!1;break}}else if(h!==v&&!o(h,v,n,r,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function jr(e){return Fi(to(e,B,po),e+"")}function Dr(e){return Vt(e,Jo,ji)}function Lr(e){return Vt(e,Zo,Di)}function zr(e){for(var t=e.name+"",n=vi[t],r=Ma.call(vi,t)?n.length:0;r--;){var o=n[r],a=o.func;if(null==a||a==e)return o.name}return t}function $r(e){return(Ma.call(_,"placeholder")?_:e).placeholder}function Br(){var e=_.iteratee||sa;return e=e===sa?wn:e,arguments.length?e(arguments[0],arguments[1]):e}function Fr(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 Vr(e){for(var t=Jo(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Zr(o)]}return t}function Ur(e,t){var n=function(e,t){return null==e?B:e[t]}(e,t);return bn(n)?n:B}function Wr(e,t,n){for(var r=-1,o=(t=nr(t,e)).length,a=!1;++r<o;){var i=so(t[r]);if(!(a=null!=e&&n(e,i)))break;e=e[i]}return a||++r!=o?a:!!(o=null==e?0:e.length)&&jo(o)&&Kr(i,o)&&(Ms(e)||ks(e))}function Hr(e){return"function"!=typeof e.constructor||Jr(e)?{}:Ai(za(e))}function Gr(e){return Ms(e)||ks(e)||!!(Va&&e&&e[Va])}function Kr(e,t){var n=typeof e;return!!(t=t??X)&&("number"==n||"symbol"!=n&&at.test(e))&&e>-1&&e%1==0&&e<t}function Qr(e,t,n){if(!Do(n))return!1;var r=typeof t;return!!("number"==r?No(n)&&Kr(t,n.length):"string"==r&&t in n)&&Po(n[t],e)}function Yr(e,t){if(Ms(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Fo(e))||Be.test(e)||!$e.test(e)||null!=t&&e in ba(t)}function Xr(e){var t=zr(e),n=_[t];if("function"!=typeof n||!(t in ct.prototype))return!1;if(e===n)return!0;var r=Ri(n);return!!r&&e===r[0]}function Jr(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Aa)}function Zr(e){return e==e&&!Do(e)}function eo(e,t){return function(n){return null!=n&&n[e]===t&&(t!==B||e in ba(n))}}function to(e,t,r){return t=ri(t===B?e.length-1:t,0),function(){for(var o=arguments,a=-1,i=ri(o.length-t,0),s=ma(i);++a<i;)s[a]=o[t+a];a=-1;for(var u=ma(t+1);++a<t;)u[a]=o[a];return u[t]=r(s),n(e,this,u)}}function no(e,t){return t.length<2?e:Bt(e,$n(t,0,-1))}function ro(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function oo(e,t,n){var r=t+"";return Fi(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(Ge,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return o(ne,(function(n){var r="_."+n[0];t&n[1]&&!u(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Ke);return t?t[1].split(Qe):[]}(r),n)))}function ao(e){var t=0,n=0;return function(){var r=ai(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(B,arguments)}}function io(e,t){var n=-1,r=e.length,o=r-1;for(t=t===B?r:t;++n<t;){var a=Tn(n,o),i=e[a];e[a]=e[n],e[n]=i}return e.length=t,e}function so(e){if("string"==typeof e||Fo(e))return e;var t=e+"";return"0"==t&&1/e==-Y?"-0":t}function uo(e){if(null!=e){try{return ka.call(e)}catch{}try{return e+""}catch{}}return""}function lo(e){if(e instanceof ct)return e.clone();var t=new lt(e.__wrapped__,e.__chain__);return t.__actions__=cr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function co(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Wo(n);return o<0&&(o=ri(r+o,0)),v(e,Br(t,3),o)}function fo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==B&&(o=Wo(n),o=n<0?ri(r+o,0):oi(o,r-1)),v(e,Br(t,3),o,!0)}function po(e){return null!=e&&e.length?Rt(e,1):[]}function mo(e){return e&&e.length?e[0]:B}function ho(e){var t=null==e?0:e.length;return t?e[t-1]:B}function vo(e,t){return e&&e.length&&t&&t.length?Nn(e,t):e}function go(e){return null==e?e:ui.call(e)}function yo(e){if(!e||!e.length)return[];var t=0;return e=s(e,(function(e){if(Oo(e))return t=ri(e.length,t),!0})),A(t,(function(t){return c(e,x(t))}))}function bo(e,t){if(!e||!e.length)return[];var r=yo(e);return null==t?r:c(r,(function(e){return n(t,B,e)}))}function wo(e){var t=_(e);return t.__chain__=!0,t}function xo(e,t){return t(e)}function _o(e,t){return(Ms(e)?o:Ei)(e,Br(t,3))}function So(e,t){return(Ms(e)?a:ki)(e,Br(t,3))}function Io(e,t){return(Ms(e)?c:In)(e,Br(t,3))}function Ao(e,t,n){return t=n?B:t,t=e&&null==t?e.length:t,Nr(e,K,B,B,B,B,t)}function Eo(e,t){var n;if("function"!=typeof t)throw new _a(F);return e=Wo(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=B),n}}function ko(e,t,n){function r(t){var n=u,r=l;return u=l=B,m=t,d=e.apply(r,n)}function o(e){var n=e-p;return p===B||n>=t||n<0||v&&e-m>=c}function a(){var e=vs();return o(e)?i(e):(f=Bi(a,function(e){var n=t-(e-p);return v?oi(n,c-(e-m)):n}(e)),B)}function i(e){return f=B,g&&u?r(e):(u=l=B,d)}function s(){var e=vs(),n=o(e);if(u=arguments,l=this,p=e,n){if(f===B)return function(e){return m=e,f=Bi(a,t),h?r(e):d}(p);if(v)return Ti(f),f=Bi(a,t),r(p)}return f===B&&(f=Bi(a,t)),d}var u,l,c,d,f,p,m=0,h=!1,v=!1,g=!0;if("function"!=typeof e)throw new _a(F);return t=Go(t)||0,Do(n)&&(h=!!n.leading,c=(v="maxWait"in n)?ri(Go(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),s.cancel=function(){f!==B&&Ti(f),m=0,u=p=l=f=B},s.flush=function(){return f===B?d:i(vs())},s}function Mo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new _a(F);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Mo.Cache||pt),n}function Co(e){if("function"!=typeof e)throw new _a(F);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)}}function Po(e,t){return e===t||e!=e&&t!=t}function No(e){return null!=e&&jo(e.length)&&!qo(e)}function Oo(e){return Lo(e)&&No(e)}function To(e){if(!Lo(e))return!1;var t=Qt(e);return t==se||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!$o(e)}function qo(e){if(!Do(e))return!1;var t=Qt(e);return t==ue||t==le||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ro(e){return"number"==typeof e&&e==Wo(e)}function jo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=X}function Do(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Lo(e){return null!=e&&"object"==typeof e}function zo(e){return"number"==typeof e||Lo(e)&&Qt(e)==de}function $o(e){if(!Lo(e)||Qt(e)!=fe)return!1;var t=za(e);if(null===t)return!0;var n=Ma.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ka.call(n)==Oa}function Bo(e){return"string"==typeof e||!Ms(e)&&Lo(e)&&Qt(e)==ve}function Fo(e){return"symbol"==typeof e||Lo(e)&&Qt(e)==ge}function Vo(e){if(!e)return[];if(No(e))return Bo(e)?z(e):cr(e);if(Ua&&e[Ua])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ua]());var t=Li(e);return(t==ce?q:t==he?D:ta)(e)}function Uo(e){return e?(e=Go(e))===Y||e===-Y?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Wo(e){var t=Uo(e),n=t%1;return t==t?n?t-n:t:0}function Ho(e){return e?kt(Wo(e),0,Z):0}function Go(e){if("number"==typeof e)return e;if(Fo(e))return J;if(Do(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Do(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=E(e);var n=nt.test(e);return n||ot.test(e)?Xt(e.slice(2),n?2:8):tt.test(e)?J:+e}function Ko(e){return dr(e,Zo(e))}function Qo(e){return null==e?"":Hn(e)}function Yo(e,t,n){var r=null==e?B:Bt(e,t);return r===B?n:r}function Xo(e,t){return null!=e&&Wr(e,t,tn)}function Jo(e){return No(e)?vt(e):xn(e)}function Zo(e){return No(e)?vt(e,!0):_n(e)}function ea(e,t){if(null==e)return{};var n=c(Lr(e),(function(e){return[e]}));return t=Br(t),Pn(e,n,(function(e,n){return t(e,n[0])}))}function ta(e){return null==e?[]:M(e,Jo(e))}function na(e){return su(Qo(e).toLowerCase())}function ra(e){return(e=Qo(e))&&e.replace(it,mn).replace($t,"")}function oa(e,t,n){return e=Qo(e),(t=n?B:t)===B?function(e){return Ut.test(e)}(e)?function(e){return e.match(Ft)||[]}(e):function(e){return e.match(Ye)||[]}(e):e.match(t)||[]}function aa(e){return function(){return e}}function ia(e){return e}function sa(e){return wn("function"==typeof e?e:Mt(e,1))}function ua(e,t,n){var r=Jo(t),a=Lt(t,r);null!=n||Do(t)&&(a.length||!r.length)||(n=t,t=e,e=this,a=Lt(t,Jo(t)));var i=!(Do(n)&&"chain"in n&&!n.chain),s=qo(e);return o(a,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=cr(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,d([this.value()],arguments))})})),e}function la(){}function ca(e){return Yr(e)?x(so(e)):function(e){return function(t){return Bt(t,e)}}(e)}function da(){return[]}function fa(){return!1}var pa,ma=(t=null==t?en:gn.defaults(en.Object(),t,gn.pick(en,Wt))).Array,ha=t.Date,va=t.Error,ga=t.Function,ya=t.Math,ba=t.Object,wa=t.RegExp,xa=t.String,_a=t.TypeError,Sa=ma.prototype,Ia=ga.prototype,Aa=ba.prototype,Ea=t["__core-js_shared__"],ka=Ia.toString,Ma=Aa.hasOwnProperty,Ca=0,Pa=(pa=/[^.]+$/.exec(Ea&&Ea.keys&&Ea.keys.IE_PROTO||""))?"Symbol(src)_1."+pa:"",Na=Aa.toString,Oa=ka.call(ba),Ta=en._,qa=wa("^"+ka.call(Ma).replace(Ve,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ra=rn?t.Buffer:B,ja=t.Symbol,Da=t.Uint8Array,La=Ra?Ra.allocUnsafe:B,za=R(ba.getPrototypeOf,ba),$a=ba.create,Ba=Aa.propertyIsEnumerable,Fa=Sa.splice,Va=ja?ja.isConcatSpreadable:B,Ua=ja?ja.iterator:B,Wa=ja?ja.toStringTag:B,Ha=function(){try{var e=Ur(ba,"defineProperty");return e({},"",{}),e}catch{}}(),Ga=t.clearTimeout!==en.clearTimeout&&t.clearTimeout,Ka=ha&&ha.now!==en.Date.now&&ha.now,Qa=t.setTimeout!==en.setTimeout&&t.setTimeout,Ya=ya.ceil,Xa=ya.floor,Ja=ba.getOwnPropertySymbols,Za=Ra?Ra.isBuffer:B,ei=t.isFinite,ti=Sa.join,ni=R(ba.keys,ba),ri=ya.max,oi=ya.min,ai=ha.now,ii=t.parseInt,si=ya.random,ui=Sa.reverse,li=Ur(t,"DataView"),ci=Ur(t,"Map"),di=Ur(t,"Promise"),fi=Ur(t,"Set"),pi=Ur(t,"WeakMap"),mi=Ur(ba,"create"),hi=pi&&new pi,vi={},gi=uo(li),yi=uo(ci),bi=uo(di),wi=uo(fi),xi=uo(pi),_i=ja?ja.prototype:B,Si=_i?_i.valueOf:B,Ii=_i?_i.toString:B,Ai=function(){function e(){}return function(t){if(!Do(t))return{};if($a)return $a(t);e.prototype=t;var n=new e;return e.prototype=B,n}}();_.templateSettings={escape:De,evaluate:Le,interpolate:ze,variable:"",imports:{_:_}},_.prototype=He.prototype,_.prototype.constructor=_,lt.prototype=Ai(He.prototype),lt.prototype.constructor=lt,ct.prototype=Ai(He.prototype),ct.prototype.constructor=ct,dt.prototype.clear=function(){this.__data__=mi?mi(null):{},this.size=0},dt.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},dt.prototype.get=function(e){var t=this.__data__;if(mi){var n=t[e];return n===V?B:n}return Ma.call(t,e)?t[e]:B},dt.prototype.has=function(e){var t=this.__data__;return mi?t[e]!==B:Ma.call(t,e)},dt.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=mi&&t===B?V:t,this},ft.prototype.clear=function(){this.__data__=[],this.size=0},ft.prototype.delete=function(e){var t=this.__data__,n=_t(t,e);return!(n<0||(n==t.length-1?t.pop():Fa.call(t,n,1),--this.size,0))},ft.prototype.get=function(e){var t=this.__data__,n=_t(t,e);return n<0?B:t[n][1]},ft.prototype.has=function(e){return _t(this.__data__,e)>-1},ft.prototype.set=function(e,t){var n=this.__data__,r=_t(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},pt.prototype.clear=function(){this.size=0,this.__data__={hash:new dt,map:new(ci||ft),string:new dt}},pt.prototype.delete=function(e){var t=Fr(this,e).delete(e);return this.size-=t?1:0,t},pt.prototype.get=function(e){return Fr(this,e).get(e)},pt.prototype.has=function(e){return Fr(this,e).has(e)},pt.prototype.set=function(e,t){var n=Fr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},mt.prototype.add=mt.prototype.push=function(e){return this.__data__.set(e,V),this},mt.prototype.has=function(e){return this.__data__.has(e)},ht.prototype.clear=function(){this.__data__=new ft,this.size=0},ht.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ht.prototype.get=function(e){return this.__data__.get(e)},ht.prototype.has=function(e){return this.__data__.has(e)},ht.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ft){var r=n.__data__;if(!ci||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new pt(r)}return n.set(e,t),this.size=n.size,this};var Ei=mr(jt),ki=mr(Dt,!0),Mi=hr(),Ci=hr(!0),Pi=hi?function(e,t){return hi.set(e,t),e}:ia,Ni=Ha?function(e,t){return Ha(e,"toString",{configurable:!0,enumerable:!1,value:aa(t),writable:!0})}:ia,Oi=Rn,Ti=Ga||function(e){return en.clearTimeout(e)},qi=fi&&1/D(new fi([,-0]))[1]==Y?function(e){return new fi(e)}:la,Ri=hi?function(e){return hi.get(e)}:la,ji=Ja?function(e){return null==e?[]:(e=ba(e),s(Ja(e),(function(t){return Ba.call(e,t)})))}:da,Di=Ja?function(e){for(var t=[];e;)d(t,ji(e)),e=za(e);return t}:da,Li=Qt;(li&&Li(new li(new ArrayBuffer(1)))!=we||ci&&Li(new ci)!=ce||di&&Li(di.resolve())!=pe||fi&&Li(new fi)!=he||pi&&Li(new pi)!=ye)&&(Li=function(e){var t=Qt(e),n=t==fe?e.constructor:B,r=n?uo(n):"";if(r)switch(r){case gi:return we;case yi:return ce;case bi:return pe;case wi:return he;case xi:return ye}return t});var zi=Ea?qo:fa,$i=ao(Pi),Bi=Qa||function(e,t){return en.setTimeout(e,t)},Fi=ao(Ni),Vi=function(e){var t=Mo(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(Fe,(function(e,n,r,o){t.push(r?o.replace(Je,"$1"):n||e)})),t})),Ui=Rn((function(e,t){return Oo(e)?Nt(e,Rt(t,1,Oo,!0)):[]})),Wi=Rn((function(e,t){var n=ho(t);return Oo(n)&&(n=B),Oo(e)?Nt(e,Rt(t,1,Oo,!0),Br(n,2)):[]})),Hi=Rn((function(e,t){var n=ho(t);return Oo(n)&&(n=B),Oo(e)?Nt(e,Rt(t,1,Oo,!0),B,n):[]})),Gi=Rn((function(e){var t=c(e,er);return t.length&&t[0]===e[0]?nn(t):[]})),Ki=Rn((function(e){var t=ho(e),n=c(e,er);return t===ho(n)?t=B:n.pop(),n.length&&n[0]===e[0]?nn(n,Br(t,2)):[]})),Qi=Rn((function(e){var t=ho(e),n=c(e,er);return(t="function"==typeof t?t:B)&&n.pop(),n.length&&n[0]===e[0]?nn(n,B,t):[]})),Yi=Rn(vo),Xi=jr((function(e,t){var n=null==e?0:e.length,r=Et(e,t);return On(e,c(t,(function(e){return Kr(e,n)?+e:e})).sort(sr)),r})),Ji=Rn((function(e){return Gn(Rt(e,1,Oo,!0))})),Zi=Rn((function(e){var t=ho(e);return Oo(t)&&(t=B),Gn(Rt(e,1,Oo,!0),Br(t,2))})),es=Rn((function(e){var t=ho(e);return t="function"==typeof t?t:B,Gn(Rt(e,1,Oo,!0),B,t)})),ts=Rn((function(e,t){return Oo(e)?Nt(e,t):[]})),ns=Rn((function(e){return Jn(s(e,Oo))})),rs=Rn((function(e){var t=ho(e);return Oo(t)&&(t=B),Jn(s(e,Oo),Br(t,2))})),os=Rn((function(e){var t=ho(e);return t="function"==typeof t?t:B,Jn(s(e,Oo),B,t)})),as=Rn(yo),is=Rn((function(e){var t=e.length,n=t>1?e[t-1]:B;return n="function"==typeof n?(e.pop(),n):B,bo(e,n)})),ss=jr((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Et(t,e)};return!(t>1||this.__actions__.length)&&r instanceof ct&&Kr(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:xo,args:[o],thisArg:B}),new lt(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(B),e}))):this.thru(o)})),us=fr((function(e,t,n){Ma.call(e,n)?++e[n]:At(e,n,1)})),ls=br(co),cs=br(fo),ds=fr((function(e,t,n){Ma.call(e,n)?e[n].push(t):At(e,n,[t])})),fs=Rn((function(e,t,r){var o=-1,a="function"==typeof t,i=No(e)?ma(e.length):[];return Ei(e,(function(e){i[++o]=a?n(t,e,r):on(e,t,r)})),i})),ps=fr((function(e,t,n){At(e,n,t)})),ms=fr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),hs=Rn((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Qr(e,t[0],t[1])?t=[]:n>2&&Qr(t[0],t[1],t[2])&&(t=[t[0]]),Cn(e,Rt(t,1),[])})),vs=Ka||function(){return en.Date.now()},gs=Rn((function(e,t,n){var r=1;if(n.length){var o=j(n,$r(gs));r|=H}return Nr(e,r,t,n,o)})),ys=Rn((function(e,t,n){var r=3;if(n.length){var o=j(n,$r(ys));r|=H}return Nr(t,r,e,n,o)})),bs=Rn((function(e,t){return Pt(e,1,t)})),ws=Rn((function(e,t,n){return Pt(e,Go(t)||0,n)}));Mo.Cache=pt;var xs=Oi((function(e,t){var r=(t=1==t.length&&Ms(t[0])?c(t[0],k(Br())):c(Rt(t,1),k(Br()))).length;return Rn((function(o){for(var a=-1,i=oi(o.length,r);++a<i;)o[a]=t[a].call(this,o[a]);return n(e,this,o)}))})),_s=Rn((function(e,t){return Nr(e,H,B,t,j(t,$r(_s)))})),Ss=Rn((function(e,t){return Nr(e,G,B,t,j(t,$r(Ss)))})),Is=jr((function(e,t){return Nr(e,Q,B,B,B,t)})),As=kr(Jt),Es=kr((function(e,t){return e>=t})),ks=an(function(){return arguments}())?an:function(e){return Lo(e)&&Ma.call(e,"callee")&&!Ba.call(e,"callee")},Ms=ma.isArray,Cs=sn?k(sn):function(e){return Lo(e)&&Qt(e)==be},Ps=Za||fa,Ns=un?k(un):function(e){return Lo(e)&&Qt(e)==ie},Os=ln?k(ln):function(e){return Lo(e)&&Li(e)==ce},Ts=cn?k(cn):function(e){return Lo(e)&&Qt(e)==me},qs=dn?k(dn):function(e){return Lo(e)&&Li(e)==he},Rs=fn?k(fn):function(e){return Lo(e)&&jo(e.length)&&!!Gt[Qt(e)]},js=kr(Sn),Ds=kr((function(e,t){return e<=t})),Ls=pr((function(e,t){if(Jr(t)||No(t))return dr(t,Jo(t),e),B;for(var n in t)Ma.call(t,n)&&xt(e,n,t[n])})),zs=pr((function(e,t){dr(t,Zo(t),e)})),$s=pr((function(e,t,n,r){dr(t,Zo(t),e,r)})),Bs=pr((function(e,t,n,r){dr(t,Jo(t),e,r)})),Fs=jr(Et),Vs=Rn((function(e,t){e=ba(e);var n=-1,r=t.length,o=r>2?t[2]:B;for(o&&Qr(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],i=Zo(a),s=-1,u=i.length;++s<u;){var l=i[s],c=e[l];(c===B||Po(c,Aa[l])&&!Ma.call(e,l))&&(e[l]=a[l])}return e})),Us=Rn((function(e){return e.push(B,Tr),n(Qs,B,e)})),Ws=_r((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Na.call(t)),e[t]=n}),aa(ia)),Hs=_r((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Na.call(t)),Ma.call(e,t)?e[t].push(n):e[t]=[n]}),Br),Gs=Rn(on),Ks=pr((function(e,t,n){kn(e,t,n)})),Qs=pr((function(e,t,n,r){kn(e,t,n,r)})),Ys=jr((function(e,t){var n={};if(null==e)return n;var r=!1;t=c(t,(function(t){return t=nr(t,e),r||(r=t.length>1),t})),dr(e,Lr(e),n),r&&(n=Mt(n,7,qr));for(var o=t.length;o--;)Kn(n,t[o]);return n})),Xs=jr((function(e,t){return null==e?{}:function(e,t){return Pn(e,t,(function(t,n){return Xo(e,n)}))}(e,t)})),Js=Pr(Jo),Zs=Pr(Zo),eu=gr((function(e,t,n){return t=t.toLowerCase(),e+(n?na(t):t)})),tu=gr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),nu=gr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),ru=vr("toLowerCase"),ou=gr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),au=gr((function(e,t,n){return e+(n?" ":"")+su(t)})),iu=gr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),su=vr("toUpperCase"),uu=Rn((function(e,t){try{return n(e,B,t)}catch(e){return To(e)?e:new va(e)}})),lu=jr((function(e,t){return o(t,(function(t){t=so(t),At(e,t,gs(e[t],e))})),e})),cu=wr(),du=wr(!0),fu=Rn((function(e,t){return function(n){return on(n,e,t)}})),pu=Rn((function(e,t){return function(n){return on(e,n,t)}})),mu=Ir(c),hu=Ir(i),vu=Ir(m),gu=Er(),yu=Er(!0),bu=Sr((function(e,t){return e+t}),0),wu=Cr("ceil"),xu=Sr((function(e,t){return e/t}),1),_u=Cr("floor"),Su=Sr((function(e,t){return e*t}),1),Iu=Cr("round"),Au=Sr((function(e,t){return e-t}),0);return _.after=function(e,t){if("function"!=typeof t)throw new _a(F);return e=Wo(e),function(){if(--e<1)return t.apply(this,arguments)}},_.ary=Ao,_.assign=Ls,_.assignIn=zs,_.assignInWith=$s,_.assignWith=Bs,_.at=Fs,_.before=Eo,_.bind=gs,_.bindAll=lu,_.bindKey=ys,_.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ms(e)?e:[e]},_.chain=wo,_.chunk=function(e,t,n){t=(n?Qr(e,t,n):t===B)?1:ri(Wo(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,a=0,i=ma(Ya(r/t));o<r;)i[a++]=$n(e,o,o+=t);return i},_.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var a=e[t];a&&(o[r++]=a)}return o},_.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ma(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return d(Ms(n)?cr(n):[n],Rt(t,1))},_.cond=function(e){var t=null==e?0:e.length,r=Br();return e=t?c(e,(function(e){if("function"!=typeof e[1])throw new _a(F);return[r(e[0]),e[1]]})):[],Rn((function(r){for(var o=-1;++o<t;){var a=e[o];if(n(a[0],this,r))return n(a[1],this,r)}}))},_.conforms=function(e){return function(e){var t=Jo(e);return function(n){return Ct(n,e,t)}}(Mt(e,1))},_.constant=aa,_.countBy=us,_.create=function(e,t){var n=Ai(e);return null==t?n:It(n,t)},_.curry=function e(t,n,r){var o=Nr(t,8,B,B,B,B,B,n=r?B:n);return o.placeholder=e.placeholder,o},_.curryRight=function e(t,n,r){var o=Nr(t,W,B,B,B,B,B,n=r?B:n);return o.placeholder=e.placeholder,o},_.debounce=ko,_.defaults=Vs,_.defaultsDeep=Us,_.defer=bs,_.delay=ws,_.difference=Ui,_.differenceBy=Wi,_.differenceWith=Hi,_.drop=function(e,t,n){var r=null==e?0:e.length;return r?$n(e,(t=n||t===B?1:Wo(t))<0?0:t,r):[]},_.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?$n(e,0,(t=r-(t=n||t===B?1:Wo(t)))<0?0:t):[]},_.dropRightWhile=function(e,t){return e&&e.length?Yn(e,Br(t,3),!0,!0):[]},_.dropWhile=function(e,t){return e&&e.length?Yn(e,Br(t,3),!0):[]},_.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&Qr(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=Wo(n))<0&&(n=-n>o?0:o+n),(r=r===B||r>o?o:Wo(r))<0&&(r+=o),r=n>r?0:Ho(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},_.filter=function(e,t){return(Ms(e)?s:qt)(e,Br(t,3))},_.flatMap=function(e,t){return Rt(Io(e,t),1)},_.flatMapDeep=function(e,t){return Rt(Io(e,t),Y)},_.flatMapDepth=function(e,t,n){return n=n===B?1:Wo(n),Rt(Io(e,t),n)},_.flatten=po,_.flattenDeep=function(e){return null!=e&&e.length?Rt(e,Y):[]},_.flattenDepth=function(e,t){return null!=e&&e.length?Rt(e,t=t===B?1:Wo(t)):[]},_.flip=function(e){return Nr(e,512)},_.flow=cu,_.flowRight=du,_.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},_.functions=function(e){return null==e?[]:Lt(e,Jo(e))},_.functionsIn=function(e){return null==e?[]:Lt(e,Zo(e))},_.groupBy=ds,_.initial=function(e){return null!=e&&e.length?$n(e,0,-1):[]},_.intersection=Gi,_.intersectionBy=Ki,_.intersectionWith=Qi,_.invert=Ws,_.invertBy=Hs,_.invokeMap=fs,_.iteratee=sa,_.keyBy=ps,_.keys=Jo,_.keysIn=Zo,_.map=Io,_.mapKeys=function(e,t){var n={};return t=Br(t,3),jt(e,(function(e,r,o){At(n,t(e,r,o),e)})),n},_.mapValues=function(e,t){var n={};return t=Br(t,3),jt(e,(function(e,r,o){At(n,r,t(e,r,o))})),n},_.matches=function(e){return An(Mt(e,1))},_.matchesProperty=function(e,t){return En(e,Mt(t,1))},_.memoize=Mo,_.merge=Ks,_.mergeWith=Qs,_.method=fu,_.methodOf=pu,_.mixin=ua,_.negate=Co,_.nthArg=function(e){return e=Wo(e),Rn((function(t){return Mn(t,e)}))},_.omit=Ys,_.omitBy=function(e,t){return ea(e,Co(Br(t)))},_.once=function(e){return Eo(2,e)},_.orderBy=function(e,t,n,r){return null==e?[]:(Ms(t)||(t=null==t?[]:[t]),Ms(n=r?B:n)||(n=null==n?[]:[n]),Cn(e,t,n))},_.over=mu,_.overArgs=xs,_.overEvery=hu,_.overSome=vu,_.partial=_s,_.partialRight=Ss,_.partition=ms,_.pick=Xs,_.pickBy=ea,_.property=ca,_.propertyOf=function(e){return function(t){return null==e?B:Bt(e,t)}},_.pull=Yi,_.pullAll=vo,_.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Nn(e,t,Br(n,2)):e},_.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Nn(e,t,B,n):e},_.pullAt=Xi,_.range=gu,_.rangeRight=yu,_.rearg=Is,_.reject=function(e,t){return(Ms(e)?s:qt)(e,Co(Br(t,3)))},_.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],a=e.length;for(t=Br(t,3);++r<a;){var i=e[r];t(i,r,e)&&(n.push(i),o.push(r))}return On(e,o),n},_.rest=function(e,t){if("function"!=typeof e)throw new _a(F);return Rn(e,t=t===B?t:Wo(t))},_.reverse=go,_.sampleSize=function(e,t,n){return t=(n?Qr(e,t,n):t===B)?1:Wo(t),(Ms(e)?yt:Dn)(e,t)},_.set=function(e,t,n){return null==e?e:Ln(e,t,n)},_.setWith=function(e,t,n,r){return r="function"==typeof r?r:B,null==e?e:Ln(e,t,n,r)},_.shuffle=function(e){return(Ms(e)?bt:zn)(e)},_.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Qr(e,t,n)?(t=0,n=r):(t=null==t?0:Wo(t),n=n===B?r:Wo(n)),$n(e,t,n)):[]},_.sortBy=hs,_.sortedUniq=function(e){return e&&e.length?Un(e):[]},_.sortedUniqBy=function(e,t){return e&&e.length?Un(e,Br(t,2)):[]},_.split=function(e,t,n){return n&&"number"!=typeof n&&Qr(e,t,n)&&(t=n=B),(n=n===B?Z:n>>>0)?(e=Qo(e))&&("string"==typeof t||null!=t&&!Ts(t))&&!(t=Hn(t))&&T(e)?rr(z(e),0,n):e.split(t,n):[]},_.spread=function(e,t){if("function"!=typeof e)throw new _a(F);return t=null==t?0:ri(Wo(t),0),Rn((function(r){var o=r[t],a=rr(r,0,t);return o&&d(a,o),n(e,this,a)}))},_.tail=function(e){var t=null==e?0:e.length;return t?$n(e,1,t):[]},_.take=function(e,t,n){return e&&e.length?$n(e,0,(t=n||t===B?1:Wo(t))<0?0:t):[]},_.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?$n(e,(t=r-(t=n||t===B?1:Wo(t)))<0?0:t,r):[]},_.takeRightWhile=function(e,t){return e&&e.length?Yn(e,Br(t,3),!1,!0):[]},_.takeWhile=function(e,t){return e&&e.length?Yn(e,Br(t,3)):[]},_.tap=function(e,t){return t(e),e},_.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new _a(F);return Do(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ko(e,t,{leading:r,maxWait:t,trailing:o})},_.thru=xo,_.toArray=Vo,_.toPairs=Js,_.toPairsIn=Zs,_.toPath=function(e){return Ms(e)?c(e,so):Fo(e)?[e]:cr(Vi(Qo(e)))},_.toPlainObject=Ko,_.transform=function(e,t,n){var r=Ms(e),a=r||Ps(e)||Rs(e);if(t=Br(t,4),null==n){var i=e&&e.constructor;n=a?r?new i:[]:Do(e)&&qo(i)?Ai(za(e)):{}}return(a?o:jt)(e,(function(e,r,o){return t(n,e,r,o)})),n},_.unary=function(e){return Ao(e,1)},_.union=Ji,_.unionBy=Zi,_.unionWith=es,_.uniq=function(e){return e&&e.length?Gn(e):[]},_.uniqBy=function(e,t){return e&&e.length?Gn(e,Br(t,2)):[]},_.uniqWith=function(e,t){return t="function"==typeof t?t:B,e&&e.length?Gn(e,B,t):[]},_.unset=function(e,t){return null==e||Kn(e,t)},_.unzip=yo,_.unzipWith=bo,_.update=function(e,t,n){return null==e?e:Qn(e,t,tr(n))},_.updateWith=function(e,t,n,r){return r="function"==typeof r?r:B,null==e?e:Qn(e,t,tr(n),r)},_.values=ta,_.valuesIn=function(e){return null==e?[]:M(e,Zo(e))},_.without=ts,_.words=oa,_.wrap=function(e,t){return _s(tr(t),e)},_.xor=ns,_.xorBy=rs,_.xorWith=os,_.zip=as,_.zipObject=function(e,t){return Zn(e||[],t||[],xt)},_.zipObjectDeep=function(e,t){return Zn(e||[],t||[],Ln)},_.zipWith=is,_.entries=Js,_.entriesIn=Zs,_.extend=zs,_.extendWith=$s,ua(_,_),_.add=bu,_.attempt=uu,_.camelCase=eu,_.capitalize=na,_.ceil=wu,_.clamp=function(e,t,n){return n===B&&(n=t,t=B),n!==B&&(n=(n=Go(n))==n?n:0),t!==B&&(t=(t=Go(t))==t?t:0),kt(Go(e),t,n)},_.clone=function(e){return Mt(e,4)},_.cloneDeep=function(e){return Mt(e,5)},_.cloneDeepWith=function(e,t){return Mt(e,5,t="function"==typeof t?t:B)},_.cloneWith=function(e,t){return Mt(e,4,t="function"==typeof t?t:B)},_.conformsTo=function(e,t){return null==t||Ct(e,t,Jo(t))},_.deburr=ra,_.defaultTo=function(e,t){return null==e||e!=e?t:e},_.divide=xu,_.endsWith=function(e,t,n){e=Qo(e),t=Hn(t);var r=e.length,o=n=n===B?r:kt(Wo(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},_.eq=Po,_.escape=function(e){return(e=Qo(e))&&je.test(e)?e.replace(qe,hn):e},_.escapeRegExp=function(e){return(e=Qo(e))&&Ue.test(e)?e.replace(Ve,"\\$&"):e},_.every=function(e,t,n){var r=Ms(e)?i:Ot;return n&&Qr(e,t,n)&&(t=B),r(e,Br(t,3))},_.find=ls,_.findIndex=co,_.findKey=function(e,t){return h(e,Br(t,3),jt)},_.findLast=cs,_.findLastIndex=fo,_.findLastKey=function(e,t){return h(e,Br(t,3),Dt)},_.floor=_u,_.forEach=_o,_.forEachRight=So,_.forIn=function(e,t){return null==e?e:Mi(e,Br(t,3),Zo)},_.forInRight=function(e,t){return null==e?e:Ci(e,Br(t,3),Zo)},_.forOwn=function(e,t){return e&&jt(e,Br(t,3))},_.forOwnRight=function(e,t){return e&&Dt(e,Br(t,3))},_.get=Yo,_.gt=As,_.gte=Es,_.has=function(e,t){return null!=e&&Wr(e,t,Zt)},_.hasIn=Xo,_.head=mo,_.identity=ia,_.includes=function(e,t,n,r){e=No(e)?e:ta(e),n=n&&!r?Wo(n):0;var o=e.length;return n<0&&(n=ri(o+n,0)),Bo(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&g(e,t,n)>-1},_.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Wo(n);return o<0&&(o=ri(r+o,0)),g(e,t,o)},_.inRange=function(e,t,n){return t=Uo(t),n===B?(n=t,t=0):n=Uo(n),function(e,t,n){return e>=oi(t,n)&&e<ri(t,n)}(e=Go(e),t,n)},_.invoke=Gs,_.isArguments=ks,_.isArray=Ms,_.isArrayBuffer=Cs,_.isArrayLike=No,_.isArrayLikeObject=Oo,_.isBoolean=function(e){return!0===e||!1===e||Lo(e)&&Qt(e)==ae},_.isBuffer=Ps,_.isDate=Ns,_.isElement=function(e){return Lo(e)&&1===e.nodeType&&!$o(e)},_.isEmpty=function(e){if(null==e)return!0;if(No(e)&&(Ms(e)||"string"==typeof e||"function"==typeof e.splice||Ps(e)||Rs(e)||ks(e)))return!e.length;var t=Li(e);if(t==ce||t==he)return!e.size;if(Jr(e))return!xn(e).length;for(var n in e)if(Ma.call(e,n))return!1;return!0},_.isEqual=function(e,t){return pn(e,t)},_.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:B)?n(e,t):B;return r===B?pn(e,t,B,n):!!r},_.isError=To,_.isFinite=function(e){return"number"==typeof e&&ei(e)},_.isFunction=qo,_.isInteger=Ro,_.isLength=jo,_.isMap=Os,_.isMatch=function(e,t){return e===t||yn(e,t,Vr(t))},_.isMatchWith=function(e,t,n){return n="function"==typeof n?n:B,yn(e,t,Vr(t),n)},_.isNaN=function(e){return zo(e)&&e!=+e},_.isNative=function(e){if(zi(e))throw new va("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return bn(e)},_.isNil=function(e){return null==e},_.isNull=function(e){return null===e},_.isNumber=zo,_.isObject=Do,_.isObjectLike=Lo,_.isPlainObject=$o,_.isRegExp=Ts,_.isSafeInteger=function(e){return Ro(e)&&e>=-X&&e<=X},_.isSet=qs,_.isString=Bo,_.isSymbol=Fo,_.isTypedArray=Rs,_.isUndefined=function(e){return e===B},_.isWeakMap=function(e){return Lo(e)&&Li(e)==ye},_.isWeakSet=function(e){return Lo(e)&&"[object WeakSet]"==Qt(e)},_.join=function(e,t){return null==e?"":ti.call(e,t)},_.kebabCase=tu,_.last=ho,_.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==B&&(o=(o=Wo(n))<0?ri(r+o,0):oi(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):v(e,b,o,!0)},_.lowerCase=nu,_.lowerFirst=ru,_.lt=js,_.lte=Ds,_.max=function(e){return e&&e.length?Tt(e,ia,Jt):B},_.maxBy=function(e,t){return e&&e.length?Tt(e,Br(t,2),Jt):B},_.mean=function(e){return w(e,ia)},_.meanBy=function(e,t){return w(e,Br(t,2))},_.min=function(e){return e&&e.length?Tt(e,ia,Sn):B},_.minBy=function(e,t){return e&&e.length?Tt(e,Br(t,2),Sn):B},_.stubArray=da,_.stubFalse=fa,_.stubObject=function(){return{}},_.stubString=function(){return""},_.stubTrue=function(){return!0},_.multiply=Su,_.nth=function(e,t){return e&&e.length?Mn(e,Wo(t)):B},_.noConflict=function(){return en._===this&&(en._=Ta),this},_.noop=la,_.now=vs,_.pad=function(e,t,n){e=Qo(e);var r=(t=Wo(t))?L(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ar(Xa(o),n)+e+Ar(Ya(o),n)},_.padEnd=function(e,t,n){e=Qo(e);var r=(t=Wo(t))?L(e):0;return t&&r<t?e+Ar(t-r,n):e},_.padStart=function(e,t,n){e=Qo(e);var r=(t=Wo(t))?L(e):0;return t&&r<t?Ar(t-r,n)+e:e},_.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),ii(Qo(e).replace(We,""),t||0)},_.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Qr(e,t,n)&&(t=n=B),n===B&&("boolean"==typeof t?(n=t,t=B):"boolean"==typeof e&&(n=e,e=B)),e===B&&t===B?(e=0,t=1):(e=Uo(e),t===B?(t=e,e=0):t=Uo(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=si();return oi(e+o*(t-e+Yt("1e-"+((o+"").length-1))),t)}return Tn(e,t)},_.reduce=function(e,t,n){var r=Ms(e)?f:S,o=arguments.length<3;return r(e,Br(t,4),n,o,Ei)},_.reduceRight=function(e,t,n){var r=Ms(e)?p:S,o=arguments.length<3;return r(e,Br(t,4),n,o,ki)},_.repeat=function(e,t,n){return t=(n?Qr(e,t,n):t===B)?1:Wo(t),qn(Qo(e),t)},_.replace=function(){var e=arguments,t=Qo(e[0]);return e.length<3?t:t.replace(e[1],e[2])},_.result=function(e,t,n){var r=-1,o=(t=nr(t,e)).length;for(o||(o=1,e=B);++r<o;){var a=null==e?B:e[so(t[r])];a===B&&(r=o,a=n),e=qo(a)?a.call(e):a}return e},_.round=Iu,_.runInContext=e,_.sample=function(e){return(Ms(e)?gt:jn)(e)},_.size=function(e){if(null==e)return 0;if(No(e))return Bo(e)?L(e):e.length;var t=Li(e);return t==ce||t==he?e.size:xn(e).length},_.snakeCase=ou,_.some=function(e,t,n){var r=Ms(e)?m:Bn;return n&&Qr(e,t,n)&&(t=B),r(e,Br(t,3))},_.sortedIndex=function(e,t){return Fn(e,t)},_.sortedIndexBy=function(e,t,n){return Vn(e,t,Br(n,2))},_.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Fn(e,t);if(r<n&&Po(e[r],t))return r}return-1},_.sortedLastIndex=function(e,t){return Fn(e,t,!0)},_.sortedLastIndexBy=function(e,t,n){return Vn(e,t,Br(n,2),!0)},_.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=Fn(e,t,!0)-1;if(Po(e[n],t))return n}return-1},_.startCase=au,_.startsWith=function(e,t,n){return e=Qo(e),n=null==n?0:kt(Wo(n),0,e.length),t=Hn(t),e.slice(n,n+t.length)==t},_.subtract=Au,_.sum=function(e){return e&&e.length?I(e,ia):0},_.sumBy=function(e,t){return e&&e.length?I(e,Br(t,2)):0},_.template=function(e,t,n){var r=_.templateSettings;n&&Qr(e,t,n)&&(t=B),e=Qo(e),t=$s({},t,r,Or);var o,a,i=$s({},t.imports,r.imports,Or),s=Jo(i),u=M(i,s),l=0,c=t.interpolate||st,d="__p += '",f=wa((t.escape||st).source+"|"+c.source+"|"+(c===ze?Ze:st).source+"|"+(t.evaluate||st).source+"|$","g"),p="//# sourceURL="+(Ma.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ht+"]")+"\n";e.replace(f,(function(t,n,r,i,s,u){return r||(r=i),d+=e.slice(l,u).replace(ut,O),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),d+="';\n";var m=Ma.call(t,"variable")&&t.variable;if(m){if(Xe.test(m))throw new va("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(Pe,""):d).replace(Ne,"$1").replace(Oe,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var h=uu((function(){return ga(s,p+"return "+d).apply(B,u)}));if(h.source=d,To(h))throw h;return h},_.times=function(e,t){if((e=Wo(e))<1||e>X)return[];var n=Z,r=oi(e,Z);t=Br(t),e-=Z;for(var o=A(r,t);++n<e;)t(n);return o},_.toFinite=Uo,_.toInteger=Wo,_.toLength=Ho,_.toLower=function(e){return Qo(e).toLowerCase()},_.toNumber=Go,_.toSafeInteger=function(e){return e?kt(Wo(e),-X,X):0===e?e:0},_.toString=Qo,_.toUpper=function(e){return Qo(e).toUpperCase()},_.trim=function(e,t,n){if((e=Qo(e))&&(n||t===B))return E(e);if(!e||!(t=Hn(t)))return e;var r=z(e),o=z(t);return rr(r,P(r,o),N(r,o)+1).join("")},_.trimEnd=function(e,t,n){if((e=Qo(e))&&(n||t===B))return e.slice(0,$(e)+1);if(!e||!(t=Hn(t)))return e;var r=z(e);return rr(r,0,N(r,z(t))+1).join("")},_.trimStart=function(e,t,n){if((e=Qo(e))&&(n||t===B))return e.replace(We,"");if(!e||!(t=Hn(t)))return e;var r=z(e);return rr(r,P(r,z(t))).join("")},_.truncate=function(e,t){var n=30,r="...";if(Do(t)){var o="separator"in t?t.separator:o;n="length"in t?Wo(t.length):n,r="omission"in t?Hn(t.omission):r}var a=(e=Qo(e)).length;if(T(e)){var i=z(e);a=i.length}if(n>=a)return e;var s=n-L(r);if(s<1)return r;var u=i?rr(i,0,s).join(""):e.slice(0,s);if(o===B)return u+r;if(i&&(s+=u.length-s),Ts(o)){if(e.slice(s).search(o)){var l,c=u;for(o.global||(o=wa(o.source,Qo(et.exec(o))+"g")),o.lastIndex=0;l=o.exec(c);)var d=l.index;u=u.slice(0,d===B?s:d)}}else if(e.indexOf(Hn(o),s)!=s){var f=u.lastIndexOf(o);f>-1&&(u=u.slice(0,f))}return u+r},_.unescape=function(e){return(e=Qo(e))&&Re.test(e)?e.replace(Te,vn):e},_.uniqueId=function(e){var t=++Ca;return Qo(e)+t},_.upperCase=iu,_.upperFirst=su,_.each=_o,_.eachRight=So,_.first=mo,ua(_,function(){var e={};return jt(_,(function(t,n){Ma.call(_.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),_.VERSION="4.17.21",o(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){_[e].placeholder=_})),o(["drop","take"],(function(e,t){ct.prototype[e]=function(n){n=n===B?1:ri(Wo(n),0);var r=this.__filtered__&&!t?new ct(this):this.clone();return r.__filtered__?r.__takeCount__=oi(n,r.__takeCount__):r.__views__.push({size:oi(n,Z),type:e+(r.__dir__<0?"Right":"")}),r},ct.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),o(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;ct.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Br(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),o(["head","last"],(function(e,t){var n="take"+(t?"Right":"");ct.prototype[e]=function(){return this[n](1).value()[0]}})),o(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");ct.prototype[e]=function(){return this.__filtered__?new ct(this):this[n](1)}})),ct.prototype.compact=function(){return this.filter(ia)},ct.prototype.find=function(e){return this.filter(e).head()},ct.prototype.findLast=function(e){return this.reverse().find(e)},ct.prototype.invokeMap=Rn((function(e,t){return"function"==typeof e?new ct(this):this.map((function(n){return on(n,e,t)}))})),ct.prototype.reject=function(e){return this.filter(Co(Br(e)))},ct.prototype.slice=function(e,t){e=Wo(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ct(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==B&&(n=(t=Wo(t))<0?n.dropRight(-t):n.take(t-e)),n)},ct.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ct.prototype.toArray=function(){return this.take(Z)},jt(ct.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=_[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(_.prototype[t]=function(){var t=this.__wrapped__,i=r?[1]:arguments,s=t instanceof ct,u=i[0],l=s||Ms(t),c=function(e){var t=o.apply(_,d([e],i));return r&&f?t[0]:t};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var f=this.__chain__,p=!!this.__actions__.length,m=a&&!f,h=s&&!p;if(!a&&l){t=h?t:new ct(this);var v=e.apply(t,i);return v.__actions__.push({func:xo,args:[c],thisArg:B}),new lt(v,f)}return m&&h?e.apply(this,i):(v=this.thru(c),m?r?v.value()[0]:v.value():v)})})),o(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Sa[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);_.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ms(o)?o:[],e)}return this[n]((function(n){return t.apply(Ms(n)?n:[],e)}))}})),jt(ct.prototype,(function(e,t){var n=_[t];if(n){var r=n.name+"";Ma.call(vi,r)||(vi[r]=[]),vi[r].push({name:t,func:n})}})),vi[xr(B,2).name]=[{name:"wrapper",func:B}],ct.prototype.clone=function(){var e=new ct(this.__wrapped__);return e.__actions__=cr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=cr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=cr(this.__views__),e},ct.prototype.reverse=function(){if(this.__filtered__){var e=new ct(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ct.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ms(e),r=t<0,o=n?e.length:0,a=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var a=n[r],i=a.size;switch(a.type){case"drop":e+=i;break;case"dropRight":t-=i;break;case"take":t=oi(t,e+i);break;case"takeRight":e=ri(e,t-i)}}return{start:e,end:t}}(0,o,this.__views__),i=a.start,s=a.end,u=s-i,l=r?s:i-1,c=this.__iteratees__,d=c.length,f=0,p=oi(u,this.__takeCount__);if(!n||!r&&o==u&&p==u)return Xn(e,this.__actions__);var m=[];e:for(;u--&&f<p;){for(var h=-1,v=e[l+=t];++h<d;){var g=c[h],y=g.iteratee,b=g.type,w=y(v);if(2==b)v=w;else if(!w){if(1==b)continue e;break e}}m[f++]=v}return m},_.prototype.at=ss,_.prototype.chain=function(){return wo(this)},_.prototype.commit=function(){return new lt(this.value(),this.__chain__)},_.prototype.next=function(){this.__values__===B&&(this.__values__=Vo(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?B:this.__values__[this.__index__++]}},_.prototype.plant=function(e){for(var t,n=this;n instanceof He;){var r=lo(n);r.__index__=0,r.__values__=B,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},_.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ct){var t=e;return this.__actions__.length&&(t=new ct(this)),(t=t.reverse()).__actions__.push({func:xo,args:[go],thisArg:B}),new lt(t,this.__chain__)}return this.thru(go)},_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=function(){return Xn(this.__wrapped__,this.__actions__)},_.prototype.first=_.prototype.head,Ua&&(_.prototype[Ua]=function(){return this}),_}();nn?((nn.exports=gn)._=gn,tn._=gn):en._=gn}.call(L3)),tv.exports;var e,t}var nC,T1,rC,O1,oC,A1,iC,R1={};function F3(){return nC||(nC=1,(e=R1).aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,n=e.aliasToReal,r={};for(var o in n){var a=n[o];t.call(r,a)?r[a].push(o):r[a]=[o]}return r}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}),R1;var e}function p2(){return rC||(rC=1,T1={}),T1}function h2(){if(oC)return O1;oC=1;var e=F3(),t=p2(),n=Array.prototype.push;function r(e,t){return 2==t?function(t,n){return e(t,n)}:function(t){return e(t)}}function o(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function a(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var o=r[0]=t.apply(void 0,r);return e.apply(void 0,r),o}}}return O1=function i(s,u,l,c){var d="function"==typeof u,f=u===Object(u);if(f&&(c=l,l=u,u=void 0),null==l)throw new TypeError;c||(c={});var p=!("cap"in c)||c.cap,m=!("curry"in c)||c.curry,h=!("fixed"in c)||c.fixed,v=!("immutable"in c)||c.immutable,g=!("rearg"in c)||c.rearg,y=d?l:t,b="curry"in c&&c.curry,w="fixed"in c&&c.fixed,x="rearg"in c&&c.rearg,_=d?l.runInContext():void 0,S=d?l:{ary:s.ary,assign:s.assign,clone:s.clone,curry:s.curry,forEach:s.forEach,isArray:s.isArray,isError:s.isError,isFunction:s.isFunction,isWeakMap:s.isWeakMap,iteratee:s.iteratee,keys:s.keys,rearg:s.rearg,toInteger:s.toInteger,toPath:s.toPath},I=S.ary,A=S.assign,E=S.clone,k=S.curry,M=S.forEach,C=S.isArray,P=S.isError,N=S.isFunction,O=S.isWeakMap,T=S.keys,q=S.rearg,R=S.toInteger,j=S.toPath,D=T(e.aryMethod),L={castArray:function(e){return function(){var t=arguments[0];return C(t)?e(o(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[1],n=e(arguments[0],t),o=n.length;return p&&"number"==typeof t?(t=t>2?t-2:1,o&&o<=t?n:r(n,t)):n}},mixin:function(e){return function(t){var n=this;if(!N(n))return e(n,Object(t));var r=[];return M(T(t),(function(e){N(t[e])&&r.push([e,n.prototype[e]])})),e(n,Object(t)),M(r,(function(e){var t=e[1];N(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]})),n}},nthArg:function(e){return function(t){var n=t<0?1:R(t)+1;return k(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return k(e(t,n),r)}},runInContext:function(e){return function(t){return i(s,e(t),c)}}};function z(t,n){if(p){var o=e.iterateeRearg[t];if(o)return function(e,t){return U(e,(function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(q(r(e,n),t),n)}))}(n,o);var a=!d&&e.iterateeAry[t];if(a)return function(e,t){return U(e,(function(e){return"function"==typeof e?r(e,t):e}))}(n,a)}return n}function $(t,r,o){if(h&&(w||!e.skipFixed[t])){var a=e.methodSpread[t],i=a&&a.start;return void 0===i?I(r,o):function(e,t){return function(){for(var r=arguments.length,o=r-1,a=Array(r);r--;)a[r]=arguments[r];var i=a[t],s=a.slice(0,t);return i&&n.apply(s,i),t!=o&&n.apply(s,a.slice(t+1)),e.apply(this,s)}}(r,i)}return r}function B(t,n,r){return g&&r>1&&(x||!e.skipRearg[t])?q(n,e.methodRearg[t]||e.aryRearg[r]):n}function F(e,t){for(var n=-1,r=(t=j(t)).length,o=r-1,a=E(Object(e)),i=a;null!=i&&++n<r;){var s=t[n],u=i[s];null!=u&&!(N(u)||P(u)||O(u))&&(i[s]=E(n==o?u:Object(u))),i=i[s]}return a}function V(t,n){var r=e.aliasToReal[t]||t,o=e.remap[r]||r,a=c;return function(e){var t=d?_:S,s=d?_[o]:n,u=A(A({},a),e);return i(t,r,s,u)}}function U(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var o=g?0:n-1;return r[o]=t(r[o]),e.apply(void 0,r)}}function W(t,n,r){var i,s=e.aliasToReal[t]||t,u=n,l=L[s];return l?u=l(n):v&&(e.mutate.array[s]?u=a(n,o):e.mutate.object[s]?u=a(n,function(e){return function(t){return e({},t)}}(n)):e.mutate.set[s]&&(u=a(n,F))),M(D,(function(t){return M(e.aryMethod[t],(function(n){if(s==n){var r=e.methodSpread[s],o=r&&r.afterRearg;return i=o?$(s,B(s,u,t),t):B(s,$(s,u,t),t),i=function(e,t,n){return b||m&&n>1?k(t,n):t}(0,i=z(s,i),t),!1}})),!i})),i||(i=u),i==n&&(i=b?k(i,1):function(){return n.apply(this,arguments)}),i.convert=V(s,n),i.placeholder=n.placeholder=r,i}if(!f)return W(u,l,y);var H=l,G=[];return M(D,(function(t){M(e.aryMethod[t],(function(t){var n=H[e.remap[t]||t];n&&G.push([t,W(t,n,H)])}))})),M(T(H),(function(e){var t=H[e];if("function"==typeof t){for(var n=G.length;n--;)if(G[n][0]==e)return;t.convert=V(e,t),G.push([e,t])}})),M(G,(function(e){H[e[0]]=e[1]})),H.convert=function(e){return H.runInContext.convert(e)(void 0)},H.placeholder=H,M(T(H),(function(t){M(e.realToAlias[t]||[],(function(e){H[e]=H[t]}))})),H},O1}function j3(){if(iC)return A1;iC=1;var e=B3().runInContext();return A1=h2()(e,e)}j3();
|
|
37
|
-
/**
|
|
38
|
-
* @license lucide-react v0.471.2 - ISC
|
|
39
|
-
*
|
|
40
|
-
* This source code is licensed under the ISC license.
|
|
41
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/
|
|
43
|
-
const z3=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),m2=(...e)=>e.filter(((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t)).join(" ").trim()
|
|
44
|
-
/**
|
|
45
|
-
* @license lucide-react v0.471.2 - ISC
|
|
46
|
-
*
|
|
47
|
-
* This source code is licensed under the ISC license.
|
|
48
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/;var U3={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
|
|
50
|
-
/**
|
|
51
|
-
* @license lucide-react v0.471.2 - ISC
|
|
52
|
-
*
|
|
53
|
-
* This source code is licensed under the ISC license.
|
|
54
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/const V3=Le((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},u)=>ae("svg",{ref:u,...U3,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:m2("lucide",o),...s},[...i.map((([e,t])=>ae(e,t))),...Array.isArray(a)?a:[a]]))),Ei=(e,t)=>{const n=Le((({className:n,...r},o)=>ae(V3,{ref:o,iconNode:t,className:m2(`lucide-${z3(e)}`,n),...r})));return n.displayName=`${e}`,n},W3=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],n$=Ei("Check",W3),q3=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],v2=Ei("ChevronDown",q3),G3=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],g2=Ei("ChevronLeft",G3),H3=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],y2=Ei("ChevronRight",H3),K3=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Y3=Ei("ChevronUp",K3),Q3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],X3=Ei("CircleCheck",Q3),J3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Z3=Ei("Circle",J3),eL=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],tL=Ei("Info",eL),nL=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],w2=Ei("LoaderCircle",nL),rL=[["path",{d:"M5 12h14",key:"1ays0h"}]],oL=Ei("Minus",rL),iL=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]],aL=Ei("PanelRightClose",iL),sL=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]],uL=Ei("PanelRightOpen",sL),lL=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],r$=Ei("TriangleAlert",lL),cL=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],d0=Ei("X",cL);
|
|
56
|
-
/**
|
|
57
|
-
* @license lucide-react v0.471.2 - ISC
|
|
58
|
-
*
|
|
59
|
-
* This source code is licensed under the ISC license.
|
|
60
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/function dL(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function fL(...e){return t=>e.forEach((e=>dL(e,t)))}var xd=M.forwardRef(((e,t)=>{const{children:n,...r}=e,o=M.Children.toArray(n),a=o.find(hL);if(a){const e=a.props.children,n=o.map((t=>t===a?M.Children.count(e)>1?M.Children.only(null):M.isValidElement(e)?e.props.children:null:t));return q.jsx(dS,{...r,ref:t,children:M.isValidElement(e)?M.cloneElement(e,void 0,n):null})}return q.jsx(dS,{...r,ref:t,children:n})}));xd.displayName="Slot";var dS=M.forwardRef(((e,t)=>{const{children:n,...r}=e;if(M.isValidElement(n)){const e=vL(n);return M.cloneElement(n,{...mL(r,n.props),ref:t?fL(t,e):e})}return M.Children.count(n)>1?M.Children.only(null):null}));dS.displayName="SlotClone";var pL=({children:e})=>q.jsx(q.Fragment,{children:e});function hL(e){return M.isValidElement(e)&&e.type===pL}function mL(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function vL(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)}function _2(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=_2(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function gL(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=_2(e))&&(r&&(r+=" "),r+=t);return r}const aC=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,sC=gL,wu=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return sC(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map((e=>{const t=null==n?void 0:n[e],r=null==a?void 0:a[e];if(null===t)return null;const i=aC(t)||aC(r);return o[e][i]})),s=n&&Object.entries(n).reduce(((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e}),{}),u=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce(((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every((e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...s}[t]):{...a,...s}[t]===n}))?[...e,n,r]:e}),[]);return sC(e,i,u,null==n?void 0:n.class,null==n?void 0:n.className)};function b2(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=b2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function x2(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=b2(e))&&(r&&(r+=" "),r+=t);return r}const o$="-";function yL(e){const t=_L(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:function(e){const n=e.split(o$);return""===n[0]&&1!==n.length&&n.shift(),S2(n,t)||wL(e)},getConflictingClassGroupIds:function(e,t){const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}}function S2(e,t){var n;if(0===e.length)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),a=o?S2(e.slice(1),o):void 0;if(a)return a;if(0===t.validators.length)return;const i=e.join(o$);return null==(n=t.validators.find((({validator:e})=>e(i))))?void 0:n.classGroupId}const uC=/^\[(.+)\]$/;function wL(e){if(uC.test(e)){const t=uC.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function _L(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return xL(Object.entries(e.classGroups),n).forEach((([e,n])=>{fS(n,r,e,t)})),r}function fS(e,t,n,r){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return bL(e)?void fS(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{fS(o,lC(t,e),n,r)}))}else{(""===e?t:lC(t,e)).classGroupId=n}}))}function lC(e,t){let n=e;return t.split(o$).forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function bL(e){return e.isThemeGetter}function xL(e,t){return t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e}function SL(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(o,a){n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}}const $2="!";function $L(e){const t=e.separator,n=1===t.length,r=t[0],o=t.length;return function(e){const a=[];let i,s=0,u=0;for(let l=0;l<e.length;l++){let c=e[l];if(0===s){if(c===r&&(n||e.slice(l,l+o)===t)){a.push(e.slice(u,l)),u=l+o;continue}if("/"===c){i=l;continue}}"["===c?s++:"]"===c&&s--}const l=0===a.length?e:e.substring(u),c=l.startsWith($2);return{modifiers:a,hasImportantModifier:c,baseClassName:c?l.substring(1):l,maybePostfixModifierPosition:i&&i>u?i-u:void 0}}}function IL(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t}function CL(e){return{cache:SL(e.cacheSize),splitModifiers:$L(e),...yL(e)}}const EL=/\s+/;function PL(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=new Set;return e.trim().split(EL).map((e=>{const{modifiers:t,hasImportantModifier:o,baseClassName:a,maybePostfixModifierPosition:i}=n(e);let s=r(i?a.substring(0,i):a),u=!!i;if(!s){if(!i)return{isTailwindClass:!1,originalClassName:e};if(s=r(a),!s)return{isTailwindClass:!1,originalClassName:e};u=!1}const l=IL(t).join(":");return{isTailwindClass:!0,modifierId:o?l+$2:l,classGroupId:s,originalClassName:e,hasPostfixModifier:u}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:n,hasPostfixModifier:r}=e,i=t+n;return!a.has(i)&&(a.add(i),o(n,r).forEach((e=>a.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}function RL(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=I2(e))&&(r&&(r+=" "),r+=t);return r}function I2(e){if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=I2(e[r]))&&(n&&(n+=" "),n+=t);return n}function TL(e,...t){let n,r,o,a=function(s){const u=t.reduce(((e,t)=>t(e)),e());return n=CL(u),r=n.cache.get,o=n.cache.set,a=i,i(s)};function i(e){const t=r(e);if(t)return t;const a=PL(e,n);return o(e,a),a}return function(){return a(RL.apply(null,arguments))}}function Nn(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const C2=/^\[(?:([a-z-]+):)?(.+)\]$/i,OL=/^\d+\/\d+$/,AL=new Set(["px","full","screen"]),DL=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,NL=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ML=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kL=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function bl(e){return jf(e)||AL.has(e)||OL.test(e)}function sd(e){return Wh(e,"length",WL)}function jf(e){return!!e&&!Number.isNaN(Number(e))}function wg(e){return Wh(e,"number",jf)}function Km(e){return!!e&&Number.isInteger(Number(e))}function LL(e){return e.endsWith("%")&&jf(e.slice(0,-1))}function At(e){return C2.test(e)}function ud(e){return DL.test(e)}const BL=new Set(["length","size","percentage"]);function FL(e){return Wh(e,BL,E2)}function jL(e){return Wh(e,"position",E2)}const zL=new Set(["image","url"]);function UL(e){return Wh(e,zL,GL)}function VL(e){return Wh(e,"",qL)}function Ym(){return!0}function Wh(e,t,n){const r=C2.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))}function WL(e){return NL.test(e)}function E2(){return!1}function qL(e){return ML.test(e)}function GL(e){return kL.test(e)}function HL(){const e=Nn("colors"),t=Nn("spacing"),n=Nn("blur"),r=Nn("brightness"),o=Nn("borderColor"),a=Nn("borderRadius"),i=Nn("borderSpacing"),s=Nn("borderWidth"),u=Nn("contrast"),l=Nn("grayscale"),c=Nn("hueRotate"),d=Nn("invert"),f=Nn("gap"),p=Nn("gradientColorStops"),m=Nn("gradientColorStopPositions"),h=Nn("inset"),v=Nn("margin"),g=Nn("opacity"),y=Nn("padding"),b=Nn("saturate"),w=Nn("scale"),x=Nn("sepia"),_=Nn("skew"),S=Nn("space"),I=Nn("translate"),A=()=>["auto",At,t],E=()=>[At,t],k=()=>["",bl,sd],M=()=>["auto",jf,At],C=()=>["","0",At],P=()=>[jf,wg],N=()=>[jf,At];return{cacheSize:500,separator:":",theme:{colors:[Ym],spacing:[bl,sd],blur:["none","",ud,At],brightness:P(),borderColor:[e],borderRadius:["none","","full",ud,At],borderSpacing:E(),borderWidth:k(),contrast:P(),grayscale:C(),hueRotate:N(),invert:C(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[LL,sd],inset:A(),margin:A(),opacity:P(),padding:E(),saturate:P(),scale:P(),sepia:C(),skew:N(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",At]}],container:["container"],columns:[{columns:[ud]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",At]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Km,At]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",At]}],grow:[{grow:C()}],shrink:[{shrink:C()}],order:[{order:["first","last","none",Km,At]}],"grid-cols":[{"grid-cols":[Ym]}],"col-start-end":[{col:["auto",{span:["full",Km,At]},At]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[Ym]}],"row-start-end":[{row:["auto",{span:[Km,At]},At]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",At]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",At]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",At,t]}],"min-w":[{"min-w":[At,t,"min","max","fit"]}],"max-w":[{"max-w":[At,t,"none","full","min","max","fit","prose",{screen:[ud]},ud]}],h:[{h:[At,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[At,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[At,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[At,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ud,sd]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",wg]}],"font-family":[{font:[Ym]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",At]}],"line-clamp":[{"line-clamp":["none",jf,wg]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",bl,At]}],"list-image":[{"list-image":["none",At]}],"list-style-type":[{list:["none","disc","decimal",At]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",bl,sd]}],"underline-offset":[{"underline-offset":["auto",bl,At]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",At]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",At]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",jL]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",FL]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},UL]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[bl,At]}],"outline-w":[{outline:[bl,sd]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:k()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[bl,sd]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ud,VL]}],"shadow-color":[{shadow:[Ym]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",ud,At]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",At]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",At]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",At]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Km,At]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",At]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",At]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",At]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[bl,sd,wg]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const KL=TL(HL);function we(...e){return KL(x2(e))}const i$=wu("inline-flex items-center justify-center whitespace-nowrap text-sm font-semibold ring-offset-background transition-colors duration-300 ease-in-out focus-visible:outline-none focus-visible:ring-offset-2 disabled:pointer-events-none disabled:text-gray-100 disabled:bg-gray-300 disabled:border-0",{variants:{variant:{primary:"bg-blue_100 text-white hover:bg-blue_120",secondary:"bg-gray-100 text-gray-700 hover:bg-gray-200",secondary_danger:"bg-red_10 text-red-dark border-none hover:bg-red_20 !rounded-m",tertiary:"text-blue_100 hover:text-blue_120 disabled:text-gray-300 disabled:bg-transparent",red_primary:"bg-red-dark text-white hover:bg-red_100",red_secondary:"bg-white text-red-dark border-red_30 border hover:bg-red_20 hover:border-red_20",red_tertiary:"text-red-dark hover:text-red_100 disabled:bg-transparent",none:""},size:{l:"min-w-[80px] h-l text-base gap-xxs px-s rounded-lg",m:"min-w-[80px] h-m text-base gap-xxs px-xs rounded-m",s:"min-w-[80px] h-s text-sm gap-xxxs px-xxs rounded-sm",icon_l:"size-12",icon_m:"size-10",icon_s:"size-8",icon_xs:"size-6",none:""}},defaultVariants:{variant:"primary",size:"m"}}),f0=M.forwardRef((({className:e,variant:t,size:n,asChild:r=!1,as:o="button",...a},i)=>{const s=r?xd:o;return q.jsx(s,{className:we(i$({variant:t,size:n,className:e})),ref:i,...a})}));function Ee(){return Ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ee.apply(null,arguments)}function YL(e,t){const n=Il(t);function r(e){const{children:t,...r}=e,o=xn((()=>r),Object.values(r));return ae(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){const o=rp(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}function ai(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>Il(e)));return function(n){const r=(null==n?void 0:n[e])||t;return xn((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=Il(r),a=n.length;function i(t){const{scope:n,children:r,...i}=t,s=(null==n?void 0:n[e][a])||o,u=xn((()=>i),Object.values(i));return ae(s.Provider,{value:u},r)}return n=[...n,r],i.displayName=t+"Provider",[i,function(n,i){const s=(null==i?void 0:i[e][a])||o,u=rp(s);if(u)return u;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},QL(r,...t)]}function QL(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return xn((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function XL(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function a$(...e){return t=>e.forEach((e=>XL(e,t)))}function Ht(...e){return yt(a$(...e),e)}function ot(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}f0.displayName="Button";const Go=null!=globalThis&&globalThis.document?op:()=>{},JL=M.useId||(()=>{});let ZL=0;function fd(e){const[t,n]=M.useState(JL());return Go((()=>{n((e=>e??String(ZL++)))}),[e]),t?`radix-${t}`:""}function xs(e){const t=We(e);return Ke((()=>{t.current=e})),xn((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function vd({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=e5({defaultProp:t,onChange:n}),a=void 0!==e,i=a?e:r,s=xs(n);return[i,yt((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[a,e,o,s])]}function e5({defaultProp:e,onChange:t}){const n=ut(e),[r]=n,o=We(r),a=xs(t);return Ke((()=>{o.current!==r&&(a(r),o.current=r)}),[r,o,a]),n}const Hf=Le(((e,t)=>{const{children:n,...r}=e,o=na.toArray(n),a=o.find(t5);if(a){const e=a.props.children,n=o.map((t=>t===a?na.count(e)>1?na.only(null):md(e)?e.props.children:null:t));return ae(pS,Ee({},r,{ref:t}),md(e)?ap(e,void 0,n):null)}return ae(pS,Ee({},r,{ref:t}),n)}));Hf.displayName="Slot";const pS=Le(((e,t)=>{const{children:n,...r}=e;return md(n)?ap(n,{...n5(r,n.props),ref:t?a$(t,n.ref):n.ref}):na.count(n)>1?na.only(null):null}));pS.displayName="SlotClone";const s$=({children:e})=>ae(ip,null,e);function t5(e){return md(e)&&e.type===s$}function n5(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const r5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ht=r5.reduce(((e,t)=>{const n=Le(((e,n)=>{const{asChild:r,...o}=e,a=r?Hf:t;return Ke((()=>{window[Symbol.for("radix-ui")]=!0}),[]),ae(a,Ee({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function P2(e,t){e&&yu.flushSync((()=>e.dispatchEvent(t)))}function o5(e,t=(null==globalThis?void 0:globalThis.document)){const n=xs(e);Ke((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}const hS="dismissableLayer.update",i5="dismissableLayer.pointerDownOutside",a5="dismissableLayer.focusOutside";let cC;const s5=Il({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),p0=Le(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:u,...l}=e,c=rp(s5),[d,f]=ut(null),p=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=ut({}),h=Ht(t,(e=>f(e))),v=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(g),b=d?v.indexOf(d):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,x=b>=y,_=u5((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));!x||n||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==u||u())}),p),S=l5((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==i||i(e),null==s||s(e),e.defaultPrevented||null==u||u())}),p);return o5((e=>{b===c.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),p),Ke((()=>{if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(cC=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),dC(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=cC)}}),[d,p,r,c]),Ke((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),dC())}),[d,c]),Ke((()=>{const e=()=>m({});return document.addEventListener(hS,e),()=>document.removeEventListener(hS,e)}),[]),ae(ht.div,Ee({},l,{ref:h,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:ot(e.onFocusCapture,S.onFocusCapture),onBlurCapture:ot(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:ot(e.onPointerDownCapture,_.onPointerDownCapture)}))}));function u5(e,t=(null==globalThis?void 0:globalThis.document)){const n=xs(e),r=We(!1),o=We((()=>{}));return Ke((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){R2(i5,n,a,{discrete:!0})};const a={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},a=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function l5(e,t=(null==globalThis?void 0:globalThis.document)){const n=xs(e),r=We(!1);return Ke((()=>{const e=e=>{e.target&&!r.current&&R2(a5,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 dC(){const e=new CustomEvent(hS);document.dispatchEvent(e)}function R2(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?P2(o,a):o.dispatchEvent(a)}const D1="focusScope.autoFocusOnMount",N1="focusScope.autoFocusOnUnmount",fC={bubbles:!1,cancelable:!0},u$=Le(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,u]=ut(null),l=xs(o),c=xs(a),d=We(null),f=Ht(t,(e=>u(e))),p=We({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Ke((()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:cd(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||cd(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&cd(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]),Ke((()=>{if(s){hC.add(p);const e=document.activeElement;if(!s.contains(e)){const t=new CustomEvent(D1,fC);s.addEventListener(D1,l),s.dispatchEvent(t),t.defaultPrevented||(c5(m5(T2(s)),{select:!0}),document.activeElement===e&&cd(s))}return()=>{s.removeEventListener(D1,l),setTimeout((()=>{const t=new CustomEvent(N1,fC);s.addEventListener(N1,c),s.dispatchEvent(t),t.defaultPrevented||cd(e??document.body,{select:!0}),s.removeEventListener(N1,c),hC.remove(p)}),0)}}}),[s,l,c,p]);const m=yt((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,a]=d5(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&cd(a,{select:!0})):(e.preventDefault(),n&&cd(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return ae(ht.div,Ee({tabIndex:-1},i,{ref:f,onKeyDown:m}))}));function c5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(cd(r,{select:t}),document.activeElement!==n)return}function d5(e){const t=T2(e);return[pC(t,e),pC(t.reverse(),e)]}function T2(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 pC(e,t){for(const n of e)if(!f5(n,{upTo:t}))return n}function f5(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 p5(e){return e instanceof HTMLInputElement&&"select"in e}function cd(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&p5(e)&&t&&e.select()}}const hC=h5();function h5(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=mC(e,t),e.unshift(t)},remove(t){var n;e=mC(e,t),null===(n=e[0])||void 0===n||n.resume()}}}function mC(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function m5(e){return e.filter((e=>"A"!==e.tagName))}const h0=Le(((e,t)=>{var n;const{container:r=(null==globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?f2.createPortal(ae(ht.div,Ee({},o,{ref:t})),r):null}));function v5(e,t){return d2(((e,n)=>t[e][n]??e),e)}const ia=e=>{const{present:t,children:n}=e,r=g5(t),o="function"==typeof n?n({present:r.isPresent}):na.only(n),a=Ht(r.ref,o.ref);return"function"==typeof n||r.isPresent?ap(o,{ref:a}):null};function g5(e){const[t,n]=ut(),r=We({}),o=We(e),a=We("none"),i=e?"mounted":"unmounted",[s,u]=v5(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Ke((()=>{const e=_g(r.current);a.current="mounted"===s?e:"none"}),[s]),Go((()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=_g(t);e?u("MOUNT"):"none"===i||"none"===(null==t?void 0:t.display)?u("UNMOUNT"):u(n&&r!==i?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,u]),Go((()=>{if(t){const e=e=>{const n=_g(r.current).includes(e.animationName);e.target===t&&n&&yu.flushSync((()=>u("ANIMATION_END")))},n=e=>{e.target===t&&(a.current=_g(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:yt((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function _g(e){return(null==e?void 0:e.animationName)||"none"}ia.displayName="Presence";let M1=0;function l$(){Ke((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:vC()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:vC()),M1++,()=>{1===M1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),M1--}}),[])}function vC(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var qo=function(){return qo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qo.apply(this,arguments)};function c$(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function O2(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var uv="right-scroll-bar-position",lv="width-before-scroll-bar",y5="with-scroll-bars-hidden",w5="--removed-body-scroll-bar-size";function k1(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}function _5(e,t){var n=ut((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}var b5=typeof window<"u"?M.useLayoutEffect:M.useEffect,gC=new WeakMap;function A2(e,t){var n=_5(null,(function(t){return e.forEach((function(e){return k1(e,t)}))}));return b5((function(){var t=gC.get(n);if(t){var r=new Set(t),o=new Set(e),a=n.current;r.forEach((function(e){o.has(e)||k1(e,null)})),o.forEach((function(e){r.has(e)||k1(e,a)}))}gC.set(n,e)}),[e]),n}function x5(e){return e}function S5(e,t){void 0===t&&(t=x5);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}function D2(e){void 0===e&&(e={});var t=S5(null);return t.options=qo({async:!0,ssr:!1},e),t}var N2=function(e){var t=e.sideCar,n=c$(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return M.createElement(r,qo({},n))};function M2(e,t){return e.useMedium(t),N2}N2.isSideCarExport=!0;var k2=D2(),L1=function(){},m0=M.forwardRef((function(e,t){var n=M.useRef(null),r=M.useState({onScrollCapture:L1,onWheelCapture:L1,onTouchMoveCapture:L1}),o=r[0],a=r[1],i=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,v=e.as,g=void 0===v?"div":v,y=c$(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),b=f,w=A2([n,t]),x=qo(qo({},y),o);return M.createElement(M.Fragment,null,c&&M.createElement(b,{sideCar:k2,removeScrollBar:l,shards:d,noIsolation:p,inert:m,setCallbacks:a,allowPinchZoom:!!h,lockRef:n}),i?M.cloneElement(M.Children.only(s),qo(qo({},x),{ref:w})):M.createElement(g,qo({},x,{className:u,ref:w}),s))}));m0.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m0.classNames={fullWidth:lv,zeroRight:uv};var $5=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function I5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=$5();return t&&e.setAttribute("nonce",t),e}function C5(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function E5(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}var P5=function(){var e=0,t=null;return{add:function(n){0==e&&(t=I5())&&(C5(t,n),E5(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},R5=function(){var e=P5();return function(t,n){M.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}},d$=function(){var e=R5();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},T5={left:0,top:0,right:0,gap:0},B1=function(e){return parseInt(e||"",10)||0},O5=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[B1(n),B1(r),B1(o)]},A5=function(e){if(void 0===e&&(e="margin"),typeof window>"u")return T5;var t=O5(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},D5=d$(),Mh="data-scroll-locked",N5=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat(y5," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(Mh,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(uv," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(lv," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(uv," .").concat(uv," {\n right: 0 ").concat(r,";\n }\n \n .").concat(lv," .").concat(lv," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Mh,"] {\n ").concat(w5,": ").concat(s,"px;\n }\n")},yC=function(){var e=parseInt(document.body.getAttribute(Mh)||"0",10);return isFinite(e)?e:0},M5=function(){M.useEffect((function(){return document.body.setAttribute(Mh,(yC()+1).toString()),function(){var e=yC()-1;e<=0?document.body.removeAttribute(Mh):document.body.setAttribute(Mh,e.toString())}}),[])},L2=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;M5();var a=M.useMemo((function(){return A5(o)}),[o]);return M.createElement(D5,{styles:N5(a,!t,o,n?"":"!important")})},mS=!1;if(typeof window<"u")try{var bg=Object.defineProperty({},"passive",{get:function(){return mS=!0,!0}});window.addEventListener("test",bg,bg),window.removeEventListener("test",bg,bg)}catch{mS=!1}var Eh=!!mS&&{passive:!1},k5=function(e){return"TEXTAREA"===e.tagName},B2=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!k5(e)&&"visible"===n[t])},L5=function(e){return B2(e,"overflowY")},B5=function(e){return B2(e,"overflowX")},wC=function(e,t){var n=t;do{if(typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host),F2(e,n)){var r=j2(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},F5=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},j5=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},F2=function(e,t){return"v"===e?L5(t):B5(t)},j2=function(e,t){return"v"===e?F5(t):j5(t)},z5=function(e,t){return"h"===e&&"rtl"===t?-1:1},U5=function(e,t,n,r,o){var a=z5(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,u=t.contains(s),l=!1,c=i>0,d=0,f=0;do{var p=j2(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&F2(e,s)&&(d+=h,f+=m),s=s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return(c&&(0===d||!o)||!c&&(0===f||!o))&&(l=!0),l},xg=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_C=function(e){return[e.deltaX,e.deltaY]},bC=function(e){return e&&"current"in e?e.current:e},V5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},W5=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},q5=0,Ph=[];function G5(e){var t=M.useRef([]),n=M.useRef([0,0]),r=M.useRef(),o=M.useState(q5++)[0],a=M.useState((function(){return d$()}))[0],i=M.useRef(e);M.useEffect((function(){i.current=e}),[e]),M.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=O2([e.lockRef.current],(e.shards||[]).map(bC),!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)return!i.current.allowPinchZoom;var o,a=xg(e),s=n.current,u="deltaX"in e?e.deltaX:s[0]-a[0],l="deltaY"in e?e.deltaY:s[1]-a[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=wC(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=wC(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 U5(p,t,e,"h"===p?u:l,!0)}),[]),u=M.useCallback((function(e){var n=e;if(Ph.length&&Ph[Ph.length-1]===a){var r="deltaY"in n?_C(n):xg(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&V5(e.delta,r)}))[0];if(o&&o.should)return void(n.cancelable&&n.preventDefault());if(!o){var u=(i.current.shards||[]).map(bC).filter(Boolean).filter((function(e){return e.contains(n.target)}));(u.length>0?s(n,u[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),l=M.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),c=M.useCallback((function(e){n.current=xg(e),r.current=void 0}),[]),d=M.useCallback((function(t){l(t.type,_C(t),t.target,s(t,e.lockRef.current))}),[]),f=M.useCallback((function(t){l(t.type,xg(t),t.target,s(t,e.lockRef.current))}),[]);M.useEffect((function(){return Ph.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",u,Eh),document.addEventListener("touchmove",u,Eh),document.addEventListener("touchstart",c,Eh),function(){Ph=Ph.filter((function(e){return e!==a})),document.removeEventListener("wheel",u,Eh),document.removeEventListener("touchmove",u,Eh),document.removeEventListener("touchstart",c,Eh)}}),[]);var p=e.removeScrollBar,m=e.inert;return M.createElement(M.Fragment,null,m?M.createElement(a,{styles:W5(o)}):null,p?M.createElement(L2,{gapMode:"margin"}):null)}const H5=M2(k2,G5);var v0=M.forwardRef((function(e,t){return M.createElement(m0,qo({},e,{ref:t,sideCar:H5}))}));v0.classNames=m0.classNames;var K5=function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Rh=new WeakMap,Sg=new WeakMap,$g={},F1=0,z2=function(e){return e&&(e.host||z2(e.parentNode))},Y5=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=z2(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return!!e}))},Q5=function(e,t,n,r){var o=Y5(t,Array.isArray(e)?e:[e]);$g[n]||($g[n]=new WeakMap);var a=$g[n],i=[],s=new Set,u=new Set(o),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};o.forEach(l);var c=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(Rh.get(e)||0)+1,l=(a.get(e)||0)+1;Rh.set(e,u),a.set(e,l),i.push(e),1===u&&o&&Sg.set(e,!0),1===l&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return c(t),s.clear(),F1++,function(){i.forEach((function(e){var t=Rh.get(e)-1,o=a.get(e)-1;Rh.set(e,t),a.set(e,o),t||(Sg.has(e)||e.removeAttribute(r),Sg.delete(e)),o||e.removeAttribute(n)})),--F1||(Rh=new WeakMap,Rh=new WeakMap,Sg=new WeakMap,$g={})}},g0=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=K5(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Q5(r,o,n,"aria-hidden")):function(){return null}};const U2="Dialog",[V2,W2]=ai(U2),[X5,_u]=V2(U2),J5=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=We(null),u=We(null),[l=!1,c]=vd({prop:r,defaultProp:o,onChange:a});return ae(X5,{scope:t,triggerRef:s,contentRef:u,contentId:fd(),titleId:fd(),descriptionId:fd(),open:l,onOpenChange:c,onOpenToggle:yt((()=>c((e=>!e))),[c]),modal:i},n)},q2="DialogPortal",[Z5,G2]=V2(q2,{forceMount:void 0}),e6=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=_u(q2,t);return ae(Z5,{scope:t,forceMount:n},na.map(r,(e=>ae(ia,{present:n||a.open},ae(h0,{asChild:!0,container:o},e)))))},vS="DialogOverlay",t6=Le(((e,t)=>{const n=G2(vS,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=_u(vS,e.__scopeDialog);return a.modal?ae(ia,{present:r||a.open},ae(n6,Ee({},o,{ref:t}))):null})),n6=Le(((e,t)=>{const{__scopeDialog:n,...r}=e,o=_u(vS,n);return ae(v0,{as:Hf,allowPinchZoom:!0,shards:[o.contentRef]},ae(ht.div,Ee({"data-state":Y2(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),Fh="DialogContent",r6=Le(((e,t)=>{const n=G2(Fh,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=_u(Fh,e.__scopeDialog);return ae(ia,{present:r||a.open},a.modal?ae(o6,Ee({},o,{ref:t})):ae(i6,Ee({},o,{ref:t})))})),o6=Le(((e,t)=>{const n=_u(Fh,e.__scopeDialog),r=We(null),o=Ht(t,n.contentRef,r);return Ke((()=>{const e=r.current;if(e)return g0(e)}),[]),ae(H2,Ee({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ot(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:ot(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:ot(e.onFocusOutside,(e=>e.preventDefault()))}))})),i6=Le(((e,t)=>{const n=_u(Fh,e.__scopeDialog),r=We(!1),o=We(!1);return ae(H2,Ee({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,i;(null===(a=e.onCloseAutoFocus)||void 0===a||a.call(e,t),t.defaultPrevented)||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault());r.current=!1,o.current=!1},onInteractOutside:t=>{var a,i;null===(a=e.onInteractOutside)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const s=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))})),H2=Le(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=_u(Fh,n),u=Ht(t,We(null));return l$(),ae(ip,null,ae(u$,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},ae(p0,Ee({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Y2(s.open)},i,{ref:u,onDismiss:()=>s.onOpenChange(!1)}))),!1)})),K2="DialogTitle",a6=Le(((e,t)=>{const{__scopeDialog:n,...r}=e,o=_u(K2,n);return ae(ht.h2,Ee({id:o.titleId},r,{ref:t}))})),s6="DialogDescription",u6=Le(((e,t)=>{const{__scopeDialog:n,...r}=e,o=_u(s6,n);return ae(ht.p,Ee({id:o.descriptionId},r,{ref:t}))})),l6="DialogClose",c6=Le(((e,t)=>{const{__scopeDialog:n,...r}=e,o=_u(l6,n);return ae(ht.button,Ee({type:"button"},r,{ref:t,onClick:ot(e.onClick,(()=>o.onOpenChange(!1)))}))}));function Y2(e){return e?"open":"closed"}const d6="DialogTitleWarning",[f6,RX]=YL(d6,{contentName:Fh,titleName:K2,docsSlug:"dialog"}),Q2=J5,y0=e6,qh=t6,Gh=r6,Ov=a6,Av=u6,w0=c6,p6="AlertDialog",[h6,TX]=ai(p6,[W2]),sp=W2(),m6=e=>{const{__scopeAlertDialog:t,...n}=e,r=sp(t);return ae(y0,Ee({},r,n))},v6=Le(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=sp(n);return ae(qh,Ee({},o,r,{ref:t}))})),X2="AlertDialogContent",[g6,y6]=h6(X2),w6=Le(((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=sp(n),i=Ht(t,We(null)),s=We(null);return ae(f6,{contentName:X2,titleName:_6,docsSlug:"alert-dialog"},ae(g6,{scope:n,cancelRef:s},ae(Gh,Ee({role:"alertdialog"},a,o,{ref:i,onOpenAutoFocus:ot(o.onOpenAutoFocus,(e=>{var t;e.preventDefault(),null===(t=s.current)||void 0===t||t.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault()}),ae(s$,null,r),!1)))})),_6="AlertDialogTitle",b6=Le(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=sp(n);return ae(Ov,Ee({},o,r,{ref:t}))})),x6=Le(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=sp(n);return ae(Av,Ee({},o,r,{ref:t}))})),S6=Le(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=sp(n);return ae(w0,Ee({},o,r,{ref:t}))})),$6="AlertDialogCancel",I6=Le(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=y6($6,n),a=sp(n),i=Ht(t,o);return ae(w0,Ee({},a,r,{ref:i}))})),C6=m6,J2=v6,Z2=w6,eA=S6,tA=I6,nA=b6,rA=x6,E6=C6,oA=M.forwardRef((({className:e,...t},n)=>q.jsx(J2,{className:we("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n})));oA.displayName=J2.displayName;const P6=M.forwardRef((({className:e,...t},n)=>q.jsxs(E6,{children:[q.jsx(oA,{}),q.jsx(Z2,{ref:n,className:we("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[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%] sm:rounded-sm",e),...t})]})));P6.displayName=Z2.displayName;const R6=M.forwardRef((({className:e,...t},n)=>q.jsx(nA,{ref:n,className:we("text-lg font-semibold",e),...t})));R6.displayName=nA.displayName;const T6=M.forwardRef((({className:e,...t},n)=>q.jsx(rA,{ref:n,className:we("text-sm text-muted-foreground",e),...t})));T6.displayName=rA.displayName;const O6=M.forwardRef((({className:e,...t},n)=>q.jsx(eA,{ref:n,className:we(i$(),e),...t})));O6.displayName=eA.displayName;const A6=M.forwardRef((({className:e,...t},n)=>q.jsx(tA,{ref:n,className:we(i$({variant:"primary"}),"mt-2 sm:mt-0",e),...t})));A6.displayName=tA.displayName;const iA="Avatar",[D6,OX]=ai(iA),[N6,aA]=D6(iA),M6=Le(((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=ut("idle");return ae(N6,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a},ae(ht.span,Ee({},r,{ref:t})))})),k6="AvatarImage",L6=Le(((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,i=aA(k6,n),s=j6(r),u=xs((e=>{o(e),i.onImageLoadingStatusChange(e)}));return Go((()=>{"idle"!==s&&u(s)}),[s,u]),"loaded"===s?ae(ht.img,Ee({},a,{ref:t,src:r})):null})),B6="AvatarFallback",F6=Le(((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=aA(B6,n),[i,s]=ut(void 0===r);return Ke((()=>{if(void 0!==r){const e=window.setTimeout((()=>s(!0)),r);return()=>window.clearTimeout(e)}}),[r]),i&&"loaded"!==a.imageLoadingStatus?ae(ht.span,Ee({},o,{ref:t})):null}));function j6(e){const[t,n]=ut("idle");return Go((()=>{if(!e)return void n("error");let t=!0;const r=new window.Image,o=e=>()=>{t&&n(e)};return n("loading"),r.onload=o("loaded"),r.onerror=o("error"),r.src=e,()=>{t=!1}}),[e]),t}const sA=M6,uA=L6,lA=F6,cA=M.forwardRef((({className:e,...t},n)=>q.jsx(sA,{ref:n,className:we("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t})));cA.displayName=sA.displayName;const dA=M.forwardRef((({className:e,...t},n)=>q.jsx(uA,{ref:n,className:we("aspect-square size-full",e),...t})));dA.displayName=uA.displayName;const fA=M.forwardRef((({className:e,...t},n)=>q.jsx(lA,{ref:n,className:we("flex size-full items-center justify-center bg-gray-700 text-white",e),...t})));fA.displayName=lA.displayName;const z6=M.forwardRef((({className:e,...t},n)=>q.jsx("div",{ref:n,className:we("rounded-sm border bg-card text-card-foreground shadow-sm",e),...t})));z6.displayName="Card";const U6=M.forwardRef((({className:e,...t},n)=>q.jsx("div",{ref:n,className:we("flex flex-col space-y-1.5 p-6",e),...t})));U6.displayName="CardHeader";const V6=M.forwardRef((({className:e,...t},n)=>q.jsx("h3",{ref:n,className:we("text-3xl font-semibold leading-none tracking-tight",e),...t})));V6.displayName="CardTitle";const W6=M.forwardRef((({className:e,...t},n)=>q.jsx("p",{ref:n,className:we("text-sm text-muted-foreground",e),...t})));W6.displayName="CardDescription";const q6=M.forwardRef((({className:e,...t},n)=>q.jsx("div",{ref:n,className:we("p-6 pt-0",e),...t})));q6.displayName="CardContent";const G6=M.forwardRef((({className:e,...t},n)=>q.jsx("div",{ref:n,className:we("flex items-center p-6 pt-0",e),...t})));function H6(e){return"[object Object]"===Object.prototype.toString.call(e)}function xC(e){return H6(e)||Array.isArray(e)}function K6(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function f$(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;return JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every((n=>{const r=e[n],o=t[n];return"function"==typeof r?`${r}`==`${o}`:xC(r)&&xC(o)?f$(r,o):r===o}))}function SC(e){return e.concat().sort(((e,t)=>e.name>t.name?1:-1)).map((e=>e.options))}function Y6(e,t){if(e.length!==t.length)return!1;const n=SC(e),r=SC(t);return n.every(((e,t)=>f$(e,r[t])))}function p$(e){return"number"==typeof e}function gS(e){return"string"==typeof e}function h$(e){return"boolean"==typeof e}function $C(e){return"[object Object]"===Object.prototype.toString.call(e)}function Fn(e){return Math.abs(e)}function m$(e){return Math.sign(e)}function cv(e,t){return Fn(e-t)}function Q6(e,t){if(0===e||0===t||Fn(e)<=Fn(t))return 0;const n=cv(Fn(e),Fn(t));return Fn(n/e)}function hv(e){return mv(e).map(Number)}function _s(e){return e[Dv(e)]}function Dv(e){return Math.max(0,e.length-1)}function v$(e,t){return t===Dv(e)}function IC(e,t=0){return Array.from(Array(e),((e,n)=>t+n))}function mv(e){return Object.keys(e)}function pA(e,t){return[e,t].reduce(((e,t)=>(mv(t).forEach((n=>{const r=e[n],o=t[n],a=$C(r)&&$C(o);e[n]=a?pA(r,o):o})),e)),{})}function hA(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function X6(e,t){const n={start:function(){return 0},center:function(e){return r(e)/2},end:r};function r(e){return t-e}return{measure:function(r,o){return gS(e)?n[e](r):e(t,r,o)}}}function vv(){let e=[];const t={add:function(n,r,o,a={passive:!0}){let i;if("addEventListener"in n)n.addEventListener(r,o,a),i=()=>n.removeEventListener(r,o,a);else{const e=n;e.addListener(o),i=()=>e.removeListener(o)}return e.push(i),t},clear:function(){e=e.filter((e=>e()))}};return t}function J6(e,t,n,r){const o=vv(),a=1e3/60;let i=null,s=0,u=0;function l(e){if(!u)return;i||(i=e);const o=e-i;for(i=e,s+=o;s>=a;)n(),s-=a;const c=Fn(s/a);r(c),u&&t.requestAnimationFrame(l)}function c(){t.cancelAnimationFrame(u),i=null,s=0,u=0}return{init:function(){o.add(e,"visibilitychange",(()=>{e.hidden&&(i=null,s=0)}))},destroy:function(){c(),o.clear()},start:function(){u||(u=t.requestAnimationFrame(l))},stop:c,update:n,render:r}}function Z6(e,t){const n="y"===e?"y":"x";return{scroll:n,cross:"y"===e?"x":"y",startEdge:"y"===n?"top":"rtl"===t?"right":"left",endEdge:"y"===n?"bottom":"rtl"===t?"left":"right",measureSize:function(e){const{width:t,height:r}=e;return"x"===n?t:r}}}function Kf(e=0,t=0){const n=Fn(e-t);function r(t){return t<e}function o(e){return e>t}function a(e){return r(e)||o(e)}return{length:n,max:t,min:e,constrain:function(n){return a(n)?r(n)?e:t:n},reachedAny:a,reachedMax:o,reachedMin:r,removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function mA(e,t,n){const{constrain:r}=Kf(0,e),o=e+1;let a=i(t);function i(e){return n?Fn((o+e)%o):r(e)}function s(){return a}function u(){return mA(e,s(),n)}const l={get:s,set:function(e){return a=i(e),l},add:function(e){return u().set(s()+e)},clone:u};return l}function e7(e){const t="rtl"===e?-1:1;return{apply:function(e){return e*t}}}function t7(e,t,n,r,o,a,i,s,u,l,c,d,f,p,m,h,v,g,y,b){const{cross:w}=e,x=["INPUT","SELECT","TEXTAREA"],_={passive:!1},S=vv(),I=vv(),A=Kf(50,225).constrain(m.measure(20)),E={mouse:300,touch:400},k={mouse:500,touch:600},M=h?43:25;let C=!1,P=0,N=0,O=!1,T=!1,q=!1,R=!1;function j(e){const n=i.readPoint(e),r=i.readPoint(e,w),o=cv(n,P),s=cv(r,N);if(!(T||R||e.cancelable&&(T=o>s,T)))return D(e);const l=i.pointerMove(e);o>v&&(q=!0),c.useFriction(.3).useDuration(1),u.start(),a.add(t.apply(l)),e.preventDefault()}function D(e){const n=d.byDistance(0,!1).index!==f.get(),r=i.pointerUp(e)*(h?k:E)[R?"mouse":"touch"],o=function(e,t){const n=f.add(-1*m$(e)),r=d.byDistance(e,!h).distance;return h||Fn(e)<A?r:g&&t?.5*r:d.byIndex(n.get(),0).distance}(t.apply(r),n),a=Q6(r,o),s=M-10*a,u=y+a/50;T=!1,O=!1,I.clear(),c.useDuration(s).useFriction(u),l.distance(o,!h),R=!1,p.emit("pointerUp")}function L(e){q&&(e.stopPropagation(),e.preventDefault())}return{init:function(e){if(!b)return;function t(t){(h$(b)||b(e,t))&&function(e){const t=hA(e,o);R=t,(!t||0===e.button)&&(function(e){const t=e.nodeName||"";return x.includes(t)}(e.target)||(q=h&&t&&!e.buttons&&C,C=cv(a.get(),s.get())>=2,O=!0,i.pointerDown(e),c.useFriction(0).useDuration(0),a.set(s),function(){const e=R?r:n;I.add(e,"touchmove",j,_).add(e,"touchend",D).add(e,"mousemove",j,_).add(e,"mouseup",D)}(),P=i.readPoint(e),N=i.readPoint(e,w),p.emit("pointerDown")))}(t)}const u=n;S.add(u,"dragstart",(e=>e.preventDefault()),_).add(u,"touchmove",(()=>{}),_).add(u,"touchend",(()=>{})).add(u,"touchstart",t).add(u,"mousedown",t).add(u,"touchcancel",D).add(u,"contextmenu",D).add(u,"click",L,!0)},pointerDown:function(){return O},destroy:function(){S.clear(),I.clear()}}}function n7(e,t){let n,r;function o(e){return e.timeStamp}function a(n,r){const o="client"+("x"===(r||e.scroll)?"X":"Y");return(hA(n,t)?n:n.touches[0])[o]}return{pointerDown:function(e){return n=e,r=e,a(e)},pointerMove:function(e){const t=a(e)-a(r),i=o(e)-o(n)>170;return r=e,i&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;const t=a(r)-a(n),i=o(e)-o(n),s=o(e)-o(r)>170,u=t/i;return i&&!s&&Fn(u)>.1?u:0},readPoint:a}}function r7(){return{measure:function(e){const{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:o}=e;return{top:t,right:n+r,bottom:t+o,left:n,width:r,height:o}}}}function o7(e){return{measure:function(t){return e*(t/100)}}}function i7(e,t,n,r,o,a,i){let s,u,l=[],c=!1;function d(e){return o.measureSize(i.measure(e))}return{init:function(o){a&&(u=d(e),l=r.map(d),s=new ResizeObserver((i=>{c||(h$(a)||a(o,i))&&function(a){for(const i of a){const a=i.target===e,s=r.indexOf(i.target),c=a?u:l[s];if(Fn(d(a?e:r[s])-c)>=.5){n.requestAnimationFrame((()=>{o.reInit(),t.emit("resize")}));break}}}(i)})),[e].concat(r).forEach((e=>s.observe(e))))},destroy:function(){s&&s.disconnect(),c=!0}}}function a7(e,t,n,r,o){let a=0,i=0,s=r,u=o,l=e.get(),c=0;function d(e){return s=e,p}function f(e){return u=e,p}const p={direction:function(){return i},duration:function(){return s},velocity:function(){return a},seek:function(){const t=n.get()-e.get();let r=0;return!s?(a=0,e.set(n),r=t):(a+=t/s,a*=u,l+=a,e.add(a),r=l-c),i=m$(r),c=l,p},settled:function(){return Fn(n.get()-t.get())<.001},useBaseFriction:function(){return f(o)},useBaseDuration:function(){return d(r)},useFriction:f,useDuration:d};return p}function s7(e,t,n,r,o){const a=o.measure(10),i=o.measure(50),s=Kf(.1,.99);let u=!1;return{constrain:function(o){if(u||!e.reachedAny(n.get())||!e.reachedAny(t.get()))return;const l=e.reachedMin(t.get())?"min":"max",c=Fn(e[l]-t.get()),d=n.get()-t.get(),f=s.constrain(c/i);n.subtract(d*f),!o&&Fn(d)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){u=!e}}}function u7(e,t,n,r,o){const a=Kf(-t+e,0),i=n.map(((e,t)=>{const{min:r,max:o}=a,i=a.constrain(e),s=!t,l=v$(n,t);return s?o:l||u(r,i)?r:u(o,i)?o:i})).map((e=>parseFloat(e.toFixed(3)))),s=function(){const e=i[0],t=_s(i),n=i.lastIndexOf(e),r=i.indexOf(t)+1;return Kf(n,r)}();function u(e,t){return cv(e,t)<1}return{snapsContained:function(){if(t<=e+o)return[a.max];if("keepSnaps"===r)return i;const{min:n,max:u}=s;return i.slice(n,u)}(),scrollContainLimit:s}}function l7(e,t,n){const r=t[0];return{limit:Kf(n?r-e:_s(t),r)}}function c7(e,t,n,r){const o=t.min+.1,a=t.max+.1,{reachedMin:i,reachedMax:s}=Kf(o,a);return{loop:function(t){if(!function(e){return 1===e?s(n.get()):-1===e&&i(n.get())}(t))return;const o=e*(-1*t);r.forEach((e=>e.add(o)))}}}function d7(e){const{max:t,length:n}=e;return{get:function(e){return n?(e-t)/-n:0}}}function f7(e,t,n,r,o){const{startEdge:a,endEdge:i}=e,{groupSlides:s}=o,u=s(r).map((e=>_s(e)[i]-e[0][a])).map(Fn).map(t.measure),l=r.map((e=>n[a]-e[a])).map((e=>-Fn(e))),c=s(l).map((e=>e[0])).map(((e,t)=>e+u[t]));return{snaps:l,snapsAligned:c}}function p7(e,t,n,r,o,a){const{groupSlides:i}=o,{min:s,max:u}=r;return{slideRegistry:function(){const r=i(a),o=!e||"keepSnaps"===t;return 1===n.length?[a]:o?r:r.slice(s,u).map(((e,t,n)=>{const r=!t,o=v$(n,t);if(r){return IC(_s(n[0])+1)}if(o){return IC(Dv(a)-_s(n)[0]+1,_s(n)[0])}return e}))}()}}function h7(e,t,n,r,o){const{reachedAny:a,removeOffset:i,constrain:s}=r;function u(e){return e.concat().sort(((e,t)=>Fn(e)-Fn(t)))[0]}function l(t,r){const o=[t,t+n,t-n];if(!e)return o[0];if(!r)return u(o);const a=o.filter((e=>m$(e)===r));return a.length?u(a):_s(o)-n}return{byDistance:function(n,r){const u=o.get()+n,{index:c,distance:d}=function(n){const r=e?i(n):s(n),o=t.map((e=>e-r)).map((e=>l(e,0))).map(((e,t)=>({diff:e,index:t}))).sort(((e,t)=>Fn(e.diff)-Fn(t.diff))),{index:a}=o[0];return{index:a,distance:r}}(u),f=!e&&a(u);return!r||f?{index:c,distance:n}:{index:c,distance:n+l(t[c]-d,0)}},byIndex:function(e,n){return{index:e,distance:l(t[e]-o.get(),n)}},shortcut:l}}function m7(e,t,n,r,o,a,i){function s(o){const s=o.distance,u=o.index!==t.get();a.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),u&&(n.set(t.get()),t.set(o.index),i.emit("select"))}return{distance:function(e,t){s(o.byDistance(e,t))},index:function(e,n){const r=t.clone().set(e);s(o.byIndex(r.get(),n))}}}function v7(e,t,n,r,o,a){let i=0;function s(e){"Tab"===e.code&&(i=(new Date).getTime())}function u(s){a.add(s,"focus",(()=>{if((new Date).getTime()-i>10)return;e.scrollLeft=0;const a=t.indexOf(s),u=n.findIndex((e=>e.includes(a)));p$(u)&&(o.useDuration(0),r.index(u,0))}),{passive:!0,capture:!0})}return{init:function(){a.add(document,"keydown",s,!1),t.forEach(u)}}}function zg(e){let t=e;function n(e){return p$(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function vA(e,t,n){const r="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},o=n.style;let a=!1;return{clear:function(){a||(o.transform="",n.getAttribute("style")||n.removeAttribute("style"))},to:function(e){a||(o.transform=r(t.apply(e)))},toggleActive:function(e){a=!e}}}function g7(e,t,n,r,o,a,i,s,u,l){const c=hv(a),d=hv(a).reverse(),f=function(){const e=s[0];return h(m(d,e),r,!1)}().concat(function(){const e=n-s[0]-1;return h(m(c,e),-r,!0)}());function p(e,t){return e.reduce(((e,t)=>e-a[t]),t)}function m(e,t){return e.reduce(((e,n)=>p(e,t)>0?e.concat([n]):e),[])}function h(a,s,c){const d=function(e){return i.map(((t,r)=>({start:t-o[r]+.5+e,end:t+n-.5+e})))}(s);return a.map((n=>{const o=c?0:-r,a=c?r:0,i=c?"end":"start",s=d[n][i];return{index:n,loopPoint:s,slideLocation:zg(-1),translate:vA(e,t,l[n]),target:()=>u.get()>s?o:a}}))}return{canLoop:function(){return f.every((({index:e})=>p(c.filter((t=>t!==e)),n)<=.1))},clear:function(){f.forEach((e=>e.translate.clear()))},loop:function(){f.forEach((e=>{const{target:t,translate:n,slideLocation:r}=e,o=t();o!==r.get()&&(n.to(o),r.set(o))}))},loopPoints:f}}function y7(e,t,n){let r,o=!1;return{init:function(a){n&&(r=new MutationObserver((e=>{o||(h$(n)||n(a,e))&&function(e){for(const n of e)if("childList"===n.type){a.reInit(),t.emit("slidesChanged");break}}(e)})),r.observe(e,{childList:!0}))},destroy:function(){r&&r.disconnect(),o=!0}}}function w7(e,t,n,r){const o={};let a,i=null,s=null,u=!1;return{init:function(){a=new IntersectionObserver((e=>{u||(e.forEach((e=>{const n=t.indexOf(e.target);o[n]=e})),i=null,s=null,n.emit("slidesInView"))}),{root:e.parentElement,threshold:r}),t.forEach((e=>a.observe(e)))},destroy:function(){a&&a.disconnect(),u=!0},get:function(e=!0){if(e&&i)return i;if(!e&&s)return s;const t=function(e){return mv(o).reduce(((t,n)=>{const r=parseInt(n),{isIntersecting:a}=o[r];return(e&&a||!e&&!a)&&t.push(r),t}),[])}(e);return e&&(i=t),e||(s=t),t}}}function _7(e,t,n,r,o,a){const{measureSize:i,startEdge:s,endEdge:u}=e,l=n[0]&&o,c=function(){if(!l)return 0;const e=n[0];return Fn(t[s]-e[s])}(),d=function(){if(!l)return 0;const e=a.getComputedStyle(_s(r));return parseFloat(e.getPropertyValue(`margin-${u}`))}(),f=n.map(i),p=n.map(((e,t,n)=>{const r=!t,o=v$(n,t);return r?f[t]+c:o?f[t]+d:n[t+1][s]-e[s]})).map(Fn);return{slideSizes:f,slideSizesWithGaps:p,startGap:c,endGap:d}}function b7(e,t,n,r,o,a,i,s,u,l){const{startEdge:c,endEdge:d}=e,f=p$(r);return{groupSlides:function(e){return f?function(e,t){return hv(e).filter((e=>e%t==0)).map((n=>e.slice(n,n+t)))}(e,r):function(e){return e.length?hv(e).reduce(((r,f)=>{const p=_s(r)||0,m=0===p,h=f===Dv(e),v=a[c]-i[p][c],g=a[c]-i[f][d],y=!o&&m?t.apply(s):0;return Fn(g-(!o&&h?t.apply(u):0)-(v+y))>n+l&&r.push(f),h&&r.push(e.length),r}),[]).map(((t,n,r)=>{const o=Math.max(r[n-1]||0);return e.slice(o,t)})):[]}(e)}}}function x7(e,t,n,r,o,a,i){const{align:s,axis:u,direction:l,startIndex:c,loop:d,duration:f,dragFree:p,dragThreshold:m,inViewThreshold:h,slidesToScroll:v,skipSnaps:g,containScroll:y,watchResize:b,watchSlides:w,watchDrag:x}=a,_=r7(),S=_.measure(t),I=n.map(_.measure),A=e7(l),E=Z6(u,l),k=E.measureSize(S),M=o7(k),C=X6(s,k),P=!d&&!!y,N=d||!!y,{slideSizes:O,slideSizesWithGaps:T,startGap:q,endGap:R}=_7(E,S,I,n,N,o),j=b7(E,A,k,v,d,S,I,q,R,2),{snaps:D,snapsAligned:L}=f7(E,C,S,I,j),z=-_s(D)+_s(T),{snapsContained:$,scrollContainLimit:B}=u7(k,z,L,y,2),F=P?$:L,{limit:V}=l7(z,F,d),U=mA(Dv(F),c,d),W=U.clone(),H=hv(n),G=J6(r,o,(()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()})(ie)),(e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,scrollLooper:o,slideLooper:a,dragHandler:i,animation:s,eventHandler:u,options:{loop:l}},c)=>{const d=e.velocity(),f=e.settled();f&&!i.pointerDown()&&(s.stop(),u.emit("settle")),f||u.emit("scroll"),r.set(n.get()-d+d*c),l&&(o.loop(e.direction()),a.loop()),t.to(r.get())})(ie,e))),K=F[U.get()],Q=zg(K),Y=zg(K),X=zg(K),J=a7(Q,Y,X,f,.68),Z=h7(d,F,z,V,X),ee=m7(G,U,W,J,Z,X,i),te=d7(V),ne=vv(),re=w7(t,n,i,h),{slideRegistry:oe}=p7(P,y,F,B,j,H),ae=v7(e,n,oe,ee,J,ne),ie={ownerDocument:r,ownerWindow:o,eventHandler:i,containerRect:S,slideRects:I,animation:G,axis:E,direction:A,dragHandler:t7(E,A,e,r,o,X,n7(E,o),Q,G,ee,J,Z,U,i,M,p,m,g,.68,x),eventStore:ne,percentOfView:M,index:U,indexPrevious:W,limit:V,location:Q,offsetLocation:Y,options:a,resizeHandler:i7(t,i,o,n,E,b,_),scrollBody:J,scrollBounds:s7(V,Y,X,J,M),scrollLooper:c7(z,V,Y,[Q,Y,X]),scrollProgress:te,scrollSnapList:F.map(te.get),scrollSnaps:F,scrollTarget:Z,scrollTo:ee,slideLooper:g7(E,A,k,z,O,T,D,F,Y,n),slideFocus:ae,slidesHandler:y7(t,i,w),slidesInView:re,slideIndexes:H,slideRegistry:oe,slidesToScroll:j,target:X,translate:vA(E,A,t)};return ie}function S7(){const e={};let t;function n(t){return e[t]||[]}const r={init:function(e){t=e},emit:function(e){return n(e).forEach((n=>n(t,e))),r},off:function(t,o){return e[t]=n(t).filter((e=>e!==o)),r},on:function(t,o){return e[t]=n(t).concat([o]),r}};return r}G6.displayName="CardFooter";const $7={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function I7(e){function t(e,t){return pA(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){const r=n.breakpoints||{},o=mv(r).filter((t=>e.matchMedia(t).matches)).map((e=>r[e])).reduce(((e,n)=>t(e,n)),{});return t(n,o)},optionsMediaQueries:function(t){return t.map((e=>mv(e.breakpoints||{}))).reduce(((e,t)=>e.concat(t)),[]).map(e.matchMedia)}}}function C7(e){let t=[];return{init:function(n,r){return t=r.filter((({options:t})=>!1!==e.optionsAtMedia(t).active)),t.forEach((t=>t.init(n,e))),r.reduce(((e,t)=>Object.assign(e,{[t.name]:t})),{})},destroy:function(){t=t.filter((e=>e.destroy()))}}}function Hg(e,t,n){const r=e.ownerDocument,o=r.defaultView,a=I7(o),i=C7(a),s=vv(),u=S7(),{mergeOptions:l,optionsAtMedia:c,optionsMediaQueries:d}=a,{on:f,off:p,emit:m}=u,h=E;let v,g,y,b,w=!1,x=l($7,Hg.globalOptions),_=l(x),S=[];function I(t){const n=x7(e,y,b,r,o,t,u);if(t.loop&&!n.slideLooper.canLoop()){return I(Object.assign({},t,{loop:!1}))}return n}function A(t,n){w||(x=l(x,t),_=c(x),S=n||S,function(){const{container:t,slides:n}=_;y=(gS(t)?e.querySelector(t):t)||e.children[0];const r=gS(n)?y.querySelectorAll(n):n;b=[].slice.call(r||y.children)}(),v=I(_),d([x,...S.map((({options:e})=>e))]).forEach((e=>s.add(e,"change",E))),_.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(),v.eventHandler.init(P),v.resizeHandler.init(P),v.slidesHandler.init(P),v.options.loop&&v.slideLooper.loop(),y.offsetParent&&b.length&&v.dragHandler.init(P),g=i.init(P,S)))}function E(e,t){const n=C();k(),A(l({startIndex:n},e),t),u.emit("reInit")}function k(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),i.destroy(),s.clear()}function M(e,t,n){!_.active||w||(v.scrollBody.useBaseFriction().useDuration(!0===t?0:_.duration),v.scrollTo.index(e,n||0))}function C(){return v.index.get()}const P={canScrollNext:function(){return v.index.add(1).get()!==C()},canScrollPrev:function(){return v.index.add(-1).get()!==C()},containerNode:function(){return y},internalEngine:function(){return v},destroy:function(){w||(w=!0,s.clear(),k(),u.emit("destroy"))},off:p,on:f,emit:m,plugins:function(){return g},previousScrollSnap:function(){return v.indexPrevious.get()},reInit:h,rootNode:function(){return e},scrollNext:function(e){M(v.index.add(1).get(),e,-1)},scrollPrev:function(e){M(v.index.add(-1).get(),e,1)},scrollProgress:function(){return v.scrollProgress.get(v.location.get())},scrollSnapList:function(){return v.scrollSnapList},scrollTo:M,selectedScrollSnap:C,slideNodes:function(){return b},slidesInView:function(){return v.slidesInView.get()},slidesNotInView:function(){return v.slidesInView.get(!1)}};return A(t,n),setTimeout((()=>u.emit("init")),0),P}function g$(e={},t=[]){const n=We(e),r=We(t),[o,a]=ut(),[i,s]=ut(),u=yt((()=>{o&&o.reInit(n.current,r.current)}),[o]);return Ke((()=>{if(K6()&&i){Hg.globalOptions=g$.globalOptions;const e=Hg(i,n.current,r.current);return a(e),()=>e.destroy()}a(void 0)}),[i,a]),Ke((()=>{f$(n.current,e)||(n.current=e,u())}),[e,u]),Ke((()=>{Y6(r.current,t)||(r.current=t,u())}),[t,u]),[s,o]}Hg.globalOptions=void 0,g$.globalOptions=void 0;const gA=wu("",{variants:{variant:{fullHeight:"absolute bg-base_white_90 top-[0] h-[calc(100%-35px)] w-[32px] border-0 rounded-none transform-none text-gray-700 [&>svg]:text-gray-700 [&>svg]:size-[37px] [&>svg]:stroke-[3px]",bottom:"size-5 bottom-[0] rounded-[2px] bg-gray-900_50 disabled:opacity-1 hover:bg-gray-900_50 [&:disabled>svg]:text-gray-900_20 [&>svg]:text-white [&>svg]:size-5"},position:{left:"",right:""}},compoundVariants:[{variant:"fullHeight",position:"left",class:"rounded-tl-[6px] left-0"},{variant:"fullHeight",position:"right",class:"rounded-tr-[6px] right-0"},{variant:"bottom",position:"left",class:"mr-[6px]"}]}),yA=M.createContext(null),_0=()=>{const e=M.useContext(yA);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e},E7=M.forwardRef((({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:o,children:a,...i},s)=>{const[u,l]=g$({...t,axis:"horizontal"===e?"x":"y"},r),[c,d]=M.useState(!1),[f,p]=M.useState(!1),m=M.useCallback((e=>{e&&(d(e.canScrollPrev()),p(e.canScrollNext()))}),[]),h=M.useCallback((()=>{null==l||l.scrollPrev()}),[l]),v=M.useCallback((()=>{null==l||l.scrollNext()}),[l]),g=M.useCallback((e=>{"ArrowLeft"===e.key?(e.preventDefault(),h()):"ArrowRight"===e.key&&(e.preventDefault(),v())}),[h,v]);return M.useEffect((()=>{!l||!n||n(l)}),[l,n]),M.useEffect((()=>{if(l)return m(l),l.on("reInit",m),l.on("select",m),()=>{null==l||l.off("select",m)}}),[l,m]),q.jsx(yA.Provider,{value:{carouselRef:u,api:l,opts:t,orientation:e||("y"===(null==t?void 0:t.axis)?"vertical":"horizontal"),scrollPrev:h,scrollNext:v,canScrollPrev:c,canScrollNext:f},children:q.jsx("div",{ref:s,onKeyDownCapture:g,className:we("relative",o),role:"region","aria-roledescription":"carousel",...i,children:a})})}));E7.displayName="Carousel";const P7=M.forwardRef((({className:e,...t},n)=>{const{carouselRef:r,orientation:o}=_0();return q.jsx("div",{ref:r,children:q.jsx("div",{ref:n,className:we("flex","horizontal"===o?"":"-mt-4 flex-col",e),...t})})}));P7.displayName="CarouselContent";const R7=M.forwardRef((({className:e,sideGap:t,isFullPreview:n,...r},o)=>{const{orientation:a}=_0();return q.jsx("div",{ref:o,role:"group","aria-roledescription":"slide",style:{...n&&{width:"100%"},marginRight:t&&`${t}px`,maxWidth:t&&`calc(100% - ${t}px)`},className:we("min-w-0 shrink-0 grow-0","horizontal"===a?!t&&"pr-[10px]":"pt-4",e),...r})}));R7.displayName="CarouselItem";const T7=M.forwardRef((({className:e,variant:t="fullHeight",size:n="icon_m",...r},o)=>{const{scrollPrev:a,canScrollPrev:i,opts:s}=_0(),u=we(("fullHeight"===t&&!i||!(null!=s&&s.active))&&"hidden",gA({variant:t,position:"left"}),e);return q.jsxs(f0,{ref:o,variant:"primary",size:n,className:u,disabled:!i,onClick:a,...r,children:[q.jsx(g2,{}),q.jsx("span",{className:"sr-only",children:"Previous slide"})]})}));T7.displayName="CarouselPrevious";const O7=M.forwardRef((({className:e,variant:t="fullHeight",size:n="icon_m",...r},o)=>{const{scrollNext:a,canScrollNext:i,opts:s}=_0(),u=we(("fullHeight"===t&&!i||!(null!=s&&s.active))&&"hidden",gA({variant:t,position:"right"}),e);return q.jsxs(f0,{ref:o,variant:"primary",size:n,className:u,disabled:!i,onClick:a,...r,children:[q.jsx(y2,{}),q.jsx("span",{className:"sr-only",children:"Next slide"})]})}));var j1,CC,z1,EC,U1,PC,V1,RC,W1,TC,q1,OC,G1,AC,H1,DC,K1,NC,Y1,MC,Q1,kC,X1,LC,J1,BC,Z1,FC,ew,jC,tw,zC,nw,UC,rw,VC,ow,WC,iw,qC,aw,GC,sw,HC,uw,KC,lw,YC,cw,QC,dw,XC,fw,JC,pw,ZC,hw,eE,mw,tE,vw,nE,gw,rE,yw,oE,ww,iE,_w,aE,bw,sE,xw,uE,Sw,lE,$w,cE,Iw,dE,Cw,fE,Ew,pE,Pw,hE,Rw,mE,Tw,vE,Ow,gE,Aw,yE,Dw,wE,Nw,_E,Mw,bE,kw,xE,Lw,SE,Bw,$E;function Pi(){if(CC)return j1;CC=1;var e=Array.isArray;return j1=e}function wA(){if(EC)return z1;EC=1;var e="object"==typeof Fa&&Fa&&Fa.Object===Object&&Fa;return z1=e}function si(){if(PC)return U1;PC=1;var e=wA(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return U1=n}function Hh(){if(RC)return V1;RC=1;var e=si().Symbol;return V1=e}function A7(){if(TC)return W1;TC=1;var e=Hh(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;return W1=function(e){var t=n.call(e,o),a=e[o];try{e[o]=void 0;var i=!0}catch{}var s=r.call(e);return i&&(t?e[o]=a:delete e[o]),s}}function D7(){if(OC)return q1;OC=1;var e=Object.prototype.toString;return q1=function(t){return e.call(t)}}function Al(){if(AC)return G1;AC=1;var e=Hh(),t=A7(),n=D7(),r=e?e.toStringTag:void 0;return G1=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function aa(){if(DC)return H1;return DC=1,H1=function(e){return null!=e&&"object"==typeof e}}function Nv(){if(NC)return K1;NC=1;var e=Al(),t=aa();return K1=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}function y$(){if(MC)return Y1;MC=1;var e=Pi(),t=Nv(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return Y1=function(o,a){if(e(o))return!1;var i=typeof o;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=o&&!t(o))||(r.test(o)||!n.test(o)||null!=a&&o in Object(a))}}function Ss(){if(kC)return Q1;return kC=1,Q1=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function b0(){if(LC)return X1;LC=1;var e=Al(),t=Ss();return X1=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function N7(){if(BC)return J1;BC=1;var e=si()["__core-js_shared__"];return J1=e}function M7(){if(FC)return Z1;FC=1;var e,t=N7(),n=(e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";return Z1=function(e){return!!n&&n in e},Z1}function _A(){if(jC)return ew;jC=1;var e=Function.prototype.toString;return ew=function(t){if(null!=t){try{return e.call(t)}catch{}try{return t+""}catch{}}return""}}function k7(){if(zC)return tw;zC=1;var e=b0(),t=M7(),n=Ss(),r=_A(),o=/^\[object .+?Constructor\]$/,a=Function.prototype,i=Object.prototype,s=a.toString,u=i.hasOwnProperty,l=RegExp("^"+s.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return tw=function(a){return!(!n(a)||t(a))&&(e(a)?l:o).test(r(a))}}function L7(){if(UC)return nw;return UC=1,nw=function(e,t){return null==e?void 0:e[t]}}function up(){if(VC)return rw;VC=1;var e=k7(),t=L7();return rw=function(n,r){var o=t(n,r);return e(o)?o:void 0}}function x0(){if(WC)return ow;WC=1;var e=up()(Object,"create");return ow=e}function B7(){if(qC)return iw;qC=1;var e=x0();return iw=function(){this.__data__=e?e(null):{},this.size=0}}function F7(){if(GC)return aw;return GC=1,aw=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}}function j7(){if(HC)return sw;HC=1;var e=x0(),t=Object.prototype.hasOwnProperty;return sw=function(n){var r=this.__data__;if(e){var o=r[n];return"__lodash_hash_undefined__"===o?void 0:o}return t.call(r,n)?r[n]:void 0}}function z7(){if(KC)return uw;KC=1;var e=x0(),t=Object.prototype.hasOwnProperty;return uw=function(n){var r=this.__data__;return e?void 0!==r[n]:t.call(r,n)}}function U7(){if(YC)return lw;YC=1;var e=x0();return lw=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}}function V7(){if(QC)return cw;QC=1;var e=B7(),t=F7(),n=j7(),r=z7(),o=U7();function a(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])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=o,cw=a}function W7(){if(XC)return dw;return XC=1,dw=function(){this.__data__=[],this.size=0}}function w$(){if(JC)return fw;return JC=1,fw=function(e,t){return e===t||e!=e&&t!=t}}function S0(){if(ZC)return pw;ZC=1;var e=w$();return pw=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}}function q7(){if(eE)return hw;eE=1;var e=S0(),t=Array.prototype.splice;return hw=function(n){var r=this.__data__,o=e(r,n);return!(o<0)&&(o==r.length-1?r.pop():t.call(r,o,1),--this.size,!0)}}function G7(){if(tE)return mw;tE=1;var e=S0();return mw=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]}}function H7(){if(nE)return vw;nE=1;var e=S0();return vw=function(t){return e(this.__data__,t)>-1}}function K7(){if(rE)return gw;rE=1;var e=S0();return gw=function(t,n){var r=this.__data__,o=e(r,t);return o<0?(++this.size,r.push([t,n])):r[o][1]=n,this}}function $0(){if(oE)return yw;oE=1;var e=W7(),t=q7(),n=G7(),r=H7(),o=K7();function a(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])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=o,yw=a}function _$(){if(iE)return ww;iE=1;var e=up()(si(),"Map");return ww=e}function Y7(){if(aE)return _w;aE=1;var e=V7(),t=$0(),n=_$();return _w=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}function Q7(){if(sE)return bw;return sE=1,bw=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}}function I0(){if(uE)return xw;uE=1;var e=Q7();return xw=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map}}function X7(){if(lE)return Sw;lE=1;var e=I0();return Sw=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}}function J7(){if(cE)return $w;cE=1;var e=I0();return $w=function(t){return e(this,t).get(t)}}function Z7(){if(dE)return Iw;dE=1;var e=I0();return Iw=function(t){return e(this,t).has(t)}}function e4(){if(fE)return Cw;fE=1;var e=I0();return Cw=function(t,n){var r=e(this,t),o=r.size;return r.set(t,n),this.size+=r.size==o?0:1,this}}function b$(){if(pE)return Ew;pE=1;var e=Y7(),t=X7(),n=J7(),r=Z7(),o=e4();function a(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])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=o,Ew=a}function t4(){if(hE)return Pw;hE=1;var e=b$();function t(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var o=function(){var e=arguments,t=r?r.apply(this,e):e[0],a=o.cache;if(a.has(t))return a.get(t);var i=n.apply(this,e);return o.cache=a.set(t,i)||a,i};return o.cache=new(t.Cache||e),o}return t.Cache=e,Pw=t}function n4(){if(mE)return Rw;mE=1;var e=t4();return Rw=function(t){var n=e(t,(function(e){return 500===r.size&&r.clear(),e})),r=n.cache;return n}}function bA(){if(vE)return Tw;vE=1;var e=n4(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e((function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(t,(function(e,t,o,a){r.push(o?a.replace(n,"$1"):t||e)})),r}));return Tw=r}function xA(){if(gE)return Ow;return gE=1,Ow=function(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 r4(){if(yE)return Aw;yE=1;var e=Hh(),t=xA(),n=Pi(),r=Nv(),o=1/0,a=e?e.prototype:void 0,i=a?a.toString:void 0;return Aw=function e(a){if("string"==typeof a)return a;if(n(a))return t(a,e)+"";if(r(a))return i?i.call(a):"";var s=a+"";return"0"==s&&1/a==-o?"-0":s},Aw}function SA(){if(wE)return Dw;wE=1;var e=r4();return Dw=function(t){return null==t?"":e(t)}}function $A(){if(_E)return Nw;_E=1;var e=Pi(),t=y$(),n=bA(),r=SA();return Nw=function(o,a){return e(o)?o:t(o,a)?[o]:n(r(o))}}function Mv(){if(bE)return Mw;bE=1;var e=Nv(),t=1/0;return Mw=function(n){if("string"==typeof n||e(n))return n;var r=n+"";return"0"==r&&1/n==-t?"-0":r}}function IA(){if(xE)return kw;xE=1;var e=$A(),t=Mv();return kw=function(n,r){for(var o=0,a=(r=e(r,n)).length;null!=n&&o<a;)n=n[t(r[o++])];return o&&o==a?n:void 0}}function CA(){if(SE)return Lw;SE=1;var e=IA();return Lw=function(t,n,r){var o=null==t?void 0:e(t,n);return void 0===o?r:o}}function o4(){if($E)return Bw;$E=1;var e=Al(),t=Pi(),n=aa();return Bw=function(r){return"string"==typeof r||!t(r)&&n(r)&&"[object String]"==e(r)}}O7.displayName="CarouselNext",CA();var i4=o4();const a4=t$(i4);b0(),Ss();var IE,CE,jw,EE,zw,PE,Fw={exports:{}},un={};
|
|
62
|
-
/**
|
|
63
|
-
* @license React
|
|
64
|
-
* react-is.production.min.js
|
|
65
|
-
*
|
|
66
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
67
|
-
*
|
|
68
|
-
* This source code is licensed under the MIT license found in the
|
|
69
|
-
* LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/function s4(){if(IE)return un;IE=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=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 a: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 i:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),un.ContextConsumer=s,un.ContextProvider=i,un.Element=t,un.ForwardRef=l,un.Fragment=r,un.Lazy=p,un.Memo=f,un.Portal=n,un.Profiler=a,un.StrictMode=o,un.Suspense=c,un.SuspenseList=d,un.isAsyncMode=function(){return!1},un.isConcurrentMode=function(){return!1},un.isContextConsumer=function(e){return h(e)===s},un.isContextProvider=function(e){return h(e)===i},un.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},un.isForwardRef=function(e){return h(e)===l},un.isFragment=function(e){return h(e)===r},un.isLazy=function(e){return h(e)===p},un.isMemo=function(e){return h(e)===f},un.isPortal=function(e){return h(e)===n},un.isProfiler=function(e){return h(e)===a},un.isStrictMode=function(e){return h(e)===o},un.isSuspense=function(e){return h(e)===c},un.isSuspenseList=function(e){return h(e)===d},un.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===a||t===o||t===c||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===i||t.$$typeof===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},un.typeOf=h,un}function u4(){return CE||(CE=1,Fw.exports=s4()),Fw.exports}function EA(){if(EE)return jw;EE=1;var e=Al(),t=aa();return jw=function(n){return"number"==typeof n||t(n)&&"[object Number]"==e(n)}}function l4(){if(PE)return zw;PE=1;var e=EA();return zw=function(t){return e(t)&&t!=+t}}u4(),l4(),EA();var Vw,RE,Ww,TE,qw,OE,Gw,AE,Hw,DE,Kw,NE,Yw,ME,Qw,kE,Xw,LE,Jw,BE,Zw,FE,e_,jE,t_,zE,n_,UE,r_,VE,o_,WE,i_,qE,a_,GE,s_,HE,u_,KE,l_,YE,c_,QE,d_,XE,f_,JE,Ig=function(e){return a4(e)&&e.indexOf("%")===e.length-1},c4=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 d4(){if(RE)return Vw;RE=1;var e=$0();return Vw=function(){this.__data__=new e,this.size=0}}function f4(){if(TE)return Ww;return TE=1,Ww=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}}function p4(){if(OE)return qw;return OE=1,qw=function(e){return this.__data__.get(e)}}function h4(){if(AE)return Gw;return AE=1,Gw=function(e){return this.__data__.has(e)}}function m4(){if(DE)return Hw;DE=1;var e=$0(),t=_$(),n=b$();return Hw=function(r,o){var a=this.__data__;if(a instanceof e){var i=a.__data__;if(!t||i.length<199)return i.push([r,o]),this.size=++a.size,this;a=this.__data__=new n(i)}return a.set(r,o),this.size=a.size,this}}function x$(){if(NE)return Kw;NE=1;var e=$0(),t=d4(),n=f4(),r=p4(),o=h4(),a=m4();function i(t){var n=this.__data__=new e(t);this.size=n.size}return i.prototype.clear=t,i.prototype.delete=n,i.prototype.get=r,i.prototype.has=o,i.prototype.set=a,Kw=i}function v4(){if(ME)return Yw;ME=1;return Yw=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}}function g4(){if(kE)return Qw;return kE=1,Qw=function(e){return this.__data__.has(e)}}function y4(){if(LE)return Xw;LE=1;var e=b$(),t=v4(),n=g4();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 w4(){if(BE)return Jw;return BE=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 _4(){if(FE)return Zw;return FE=1,Zw=function(e,t){return e.has(t)}}function PA(){if(jE)return e_;jE=1;var e=y4(),t=w4(),n=_4();return e_=function(r,o,a,i,s,u){var l=1&a,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,v=2&a?new e:void 0;for(u.set(r,o),u.set(o,r);++m<c;){var g=r[m],y=o[m];if(i)var b=l?i(y,g,m,o,r,u):i(g,y,m,r,o,u);if(void 0!==b){if(b)continue;h=!1;break}if(v){if(!t(o,(function(e,t){if(!n(v,t)&&(g===e||s(g,e,a,i,u)))return v.push(t)}))){h=!1;break}}else if(g!==y&&!s(g,y,a,i,u)){h=!1;break}}return u.delete(r),u.delete(o),h}}function RA(){if(zE)return t_;zE=1;var e=si().Uint8Array;return t_=e}function b4(){if(UE)return n_;return UE=1,n_=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}}function x4(){if(VE)return r_;return VE=1,r_=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}}function S4(){if(WE)return o_;WE=1;var e=Hh(),t=RA(),n=w$(),r=PA(),o=b4(),a=x4(),i=e?e.prototype:void 0,s=i?i.valueOf:void 0;return o_=function(e,i,u,l,c,d,f){switch(u){case"[object DataView]":if(e.byteLength!=i.byteLength||e.byteOffset!=i.byteOffset)return!1;e=e.buffer,i=i.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=i.byteLength||!d(new t(e),new t(i)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+i);case"[object Error]":return e.name==i.name&&e.message==i.message;case"[object RegExp]":case"[object String]":return e==i+"";case"[object Map]":var p=o;case"[object Set]":var m=1&l;if(p||(p=a),e.size!=i.size&&!m)return!1;var h=f.get(e);if(h)return h==i;l|=2,f.set(e,i);var v=r(p(e),p(i),l,c,d,f);return f.delete(e),v;case"[object Symbol]":if(s)return s.call(e)==s.call(i)}return!1}}function S$(){if(qE)return i_;return qE=1,i_=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}}function TA(){if(GE)return a_;GE=1;var e=S$(),t=Pi();return a_=function(n,r,o){var a=r(n);return t(n)?a:e(a,o(n))}}function $4(){if(HE)return s_;return HE=1,s_=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}}function OA(){if(KE)return u_;return KE=1,u_=function(){return[]}}function $$(){if(YE)return l_;YE=1;var e=$4(),t=OA(),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return l_=r?function(t){return null==t?[]:(t=Object(t),e(r(t),(function(e){return n.call(t,e)})))}:t}function I4(){if(QE)return c_;return QE=1,c_=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}}function C4(){if(XE)return d_;XE=1;var e=Al(),t=aa();return d_=function(n){return t(n)&&"[object Arguments]"==e(n)}}function I$(){if(JE)return f_;JE=1;var e=C4(),t=aa(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,a=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!o.call(e,"callee")};return f_=a}var p_,ZE,eP,h_,tP,m_,nP,v_,rP,g_,oP,nv={exports:{}};function E4(){if(ZE)return p_;return ZE=1,p_=function(){return!1}}function C$(){return eP||(eP=1,e=nv,t=nv.exports,n=si(),r=E4(),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?n.Buffer:void 0,s=(i?i.isBuffer:void 0)||r,e.exports=s),nv.exports;var e,t,n,r,o,a,i,s}function E$(){if(tP)return h_;tP=1;var e=/^(?:0|[1-9]\d*)$/;return h_=function(t,n){var r=typeof t;return!!(n=n??9007199254740991)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}}function P$(){if(nP)return m_;nP=1;return m_=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function P4(){if(rP)return v_;rP=1;var e=Al(),t=P$(),n=aa(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,v_=function(o){return n(o)&&t(o.length)&&!!r[e(o)]}}function R$(){if(oP)return g_;return oP=1,g_=function(e){return function(t){return e(t)}}}nv.exports;var iP,y_,aP,w_,sP,__,uP,b_,lP,x_,cP,S_,dP,$_,fP,I_,pP,C_,hP,E_,mP,P_,vP,R_,gP,T_,yP,O_,wP,A_,_P,D_,bP,N_,xP,M_,SP,k_,$P,L_,IP,B_,CP,F_,EP,j_,PP,z_,RP,U_,TP,V_,OP,W_,AP,q_,DP,G_,NP,H_,MP,K_,kP,Y_,LP,Q_,BP,X_,FP,J_,jP,Z_,zP,eb,UP,tb,VP,nb,WP,rb,qP,ob,GP,ib,HP,ab,KP,sb,YP,ub,QP,lb,XP,cb,JP,db,ZP,fb,eR,pb,tR,hb,nR,mb,rR,rv={exports:{}};function T$(){return iP||(iP=1,e=rv,t=rv.exports,n=wA(),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r&&n.process,i=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch{}}(),e.exports=i),rv.exports;var e,t,n,r,o,a,i}function AA(){if(aP)return y_;aP=1;var e=P4(),t=R$(),n=T$(),r=n&&n.isTypedArray,o=r?t(r):e;return y_=o}function DA(){if(sP)return w_;sP=1;var e=I4(),t=I$(),n=Pi(),r=C$(),o=E$(),a=AA(),i=Object.prototype.hasOwnProperty;return w_=function(s,u){var l=n(s),c=!l&&t(s),d=!l&&!c&&r(s),f=!l&&!c&&!d&&a(s),p=l||c||d||f,m=p?e(s.length,String):[],h=m.length;for(var v in s)(u||i.call(s,v))&&(!p||!("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||o(v,h)))&&m.push(v);return m}}function O$(){if(uP)return __;uP=1;var e=Object.prototype;return __=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function NA(){if(lP)return b_;return lP=1,b_=function(e,t){return function(n){return e(t(n))}}}function R4(){if(cP)return x_;cP=1;var e=NA()(Object.keys,Object);return x_=e}function MA(){if(dP)return S_;dP=1;var e=O$(),t=R4(),n=Object.prototype.hasOwnProperty;return S_=function(r){if(!e(r))return t(r);var o=[];for(var a in Object(r))n.call(r,a)&&"constructor"!=a&&o.push(a);return o}}function kA(){if(fP)return $_;fP=1;var e=b0(),t=P$();return $_=function(n){return null!=n&&t(n.length)&&!e(n)}}function C0(){if(pP)return I_;pP=1;var e=DA(),t=MA(),n=kA();return I_=function(r){return n(r)?e(r):t(r)}}function LA(){if(hP)return C_;hP=1;var e=TA(),t=$$(),n=C0();return C_=function(r){return e(r,n,t)}}function T4(){if(mP)return E_;mP=1;var e=LA(),t=Object.prototype.hasOwnProperty;return E_=function(n,r,o,a,i,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 v=u;++d<c;){var g=n[f=l[d]],y=r[f];if(a)var b=u?a(y,g,f,r,n,s):a(g,y,f,n,r,s);if(!(void 0===b?g===y||i(g,y,o,a,s):b)){h=!1;break}v||(v="constructor"==f)}if(h&&!v){var w=n.constructor,x=r.constructor;w!=x&&"constructor"in n&&"constructor"in r&&!("function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x)&&(h=!1)}return s.delete(n),s.delete(r),h}}function O4(){if(vP)return P_;vP=1;var e=up()(si(),"DataView");return P_=e}function A4(){if(gP)return R_;gP=1;var e=up()(si(),"Promise");return R_=e}function D4(){if(yP)return T_;yP=1;var e=up()(si(),"Set");return T_=e}function BA(){if(wP)return O_;wP=1;var e=up()(si(),"WeakMap");return O_=e}function kv(){if(_P)return A_;_P=1;var e=O4(),t=_$(),n=A4(),r=D4(),o=BA(),a=Al(),i=_A(),s="[object Map]",u="[object Promise]",l="[object Set]",c="[object WeakMap]",d="[object DataView]",f=i(e),p=i(t),m=i(n),h=i(r),v=i(o),g=a;return(e&&g(new e(new ArrayBuffer(1)))!=d||t&&g(new t)!=s||n&&g(n.resolve())!=u||r&&g(new r)!=l||o&&g(new o)!=c)&&(g=function(e){var t=a(e),n="[object Object]"==t?e.constructor:void 0,r=n?i(n):"";if(r)switch(r){case f:return d;case p:return s;case m:return u;case h:return l;case v:return c}return t}),A_=g}function N4(){if(bP)return D_;bP=1;var e=x$(),t=PA(),n=S4(),r=T4(),o=kv(),a=Pi(),i=C$(),s=AA(),u="[object Arguments]",l="[object Array]",c="[object Object]",d=Object.prototype.hasOwnProperty;return D_=function(f,p,m,h,v,g){var y=a(f),b=a(p),w=y?l:o(f),x=b?l:o(p),_=(w=w==u?c:w)==c,S=(x=x==u?c:x)==c,I=w==x;if(I&&i(f)){if(!i(p))return!1;y=!0,_=!1}if(I&&!_)return g||(g=new e),y||s(f)?t(f,p,m,h,v,g):n(f,p,w,m,h,v,g);if(!(1&m)){var A=_&&d.call(f,"__wrapped__"),E=S&&d.call(p,"__wrapped__");if(A||E){var k=A?f.value():f,M=E?p.value():p;return g||(g=new e),v(k,M,m,h,g)}}return!!I&&(g||(g=new e),r(f,p,m,h,v,g))}}function FA(){if(xP)return N_;xP=1;var e=N4(),t=aa();return N_=function n(r,o,a,i,s){return r===o||(null==r||null==o||!t(r)&&!t(o)?r!=r&&o!=o:e(r,o,a,i,n,s))},N_}function M4(){if(SP)return M_;SP=1;var e=x$(),t=FA();return M_=function(n,r,o,a){var i=o.length,s=i,u=!a;if(null==n)return!s;for(n=Object(n);i--;){var l=o[i];if(u&&l[2]?l[1]!==n[l[0]]:!(l[0]in n))return!1}for(;++i<s;){var c=(l=o[i])[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(a)var m=a(d,f,c,n,r,p);if(!(void 0===m?t(f,d,3,a,p):m))return!1}}return!0}}function jA(){if($P)return k_;$P=1;var e=Ss();return k_=function(t){return t==t&&!e(t)}}function k4(){if(IP)return L_;IP=1;var e=jA(),t=C0();return L_=function(n){for(var r=t(n),o=r.length;o--;){var a=r[o],i=n[a];r[o]=[a,i,e(i)]}return r}}function zA(){if(CP)return B_;return CP=1,B_=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}}function L4(){if(EP)return F_;EP=1;var e=M4(),t=k4(),n=zA();return F_=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 B4(){if(PP)return j_;return PP=1,j_=function(e,t){return null!=e&&t in Object(e)}}function F4(){if(RP)return z_;RP=1;var e=$A(),t=I$(),n=Pi(),r=E$(),o=P$(),a=Mv();return z_=function(i,s,u){for(var l=-1,c=(s=e(s,i)).length,d=!1;++l<c;){var f=a(s[l]);if(!(d=null!=i&&u(i,f)))break;i=i[f]}return d||++l!=c?d:!!(c=null==i?0:i.length)&&o(c)&&r(f,c)&&(n(i)||t(i))}}function j4(){if(TP)return U_;TP=1;var e=B4(),t=F4();return U_=function(n,r){return null!=n&&t(n,r,e)}}function z4(){if(OP)return V_;OP=1;var e=FA(),t=CA(),n=j4(),r=y$(),o=jA(),a=zA(),i=Mv();return V_=function(s,u){return r(s)&&o(u)?a(i(s),u):function(r){var o=t(r,s);return void 0===o&&o===u?n(r,s):e(u,o,3)}}}function A$(){if(AP)return W_;return AP=1,W_=function(e){return e}}function U4(){if(DP)return q_;return DP=1,q_=function(e){return function(t){return null==t?void 0:t[e]}}}function V4(){if(NP)return G_;NP=1;var e=IA();return G_=function(t){return function(n){return e(n,t)}}}function W4(){if(MP)return H_;MP=1;var e=U4(),t=V4(),n=y$(),r=Mv();return H_=function(o){return n(o)?e(r(o)):t(o)}}function q4(){if(kP)return K_;kP=1;var e=L4(),t=z4(),n=A$(),r=Pi(),o=W4();return K_=function(a){return"function"==typeof a?a:null==a?n:"object"==typeof a?r(a)?t(a[0],a[1]):e(a):o(a)}}function G4(){if(LP)return Y_;return LP=1,Y_=function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}}function H4(){if(BP)return Q_;return BP=1,Q_=function(e){return e!=e}}function K4(){if(FP)return X_;return FP=1,X_=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}}function Y4(){if(jP)return J_;jP=1;var e=G4(),t=H4(),n=K4();return J_=function(r,o,a){return o==o?n(r,o,a):e(r,t,a)}}function Q4(){if(zP)return Z_;zP=1;var e=Y4();return Z_=function(t,n){return!!(null==t?0:t.length)&&e(t,n,0)>-1}}function X4(){if(UP)return eb;return UP=1,eb=function(){}}function J4(){if(VP)return tb;VP=1;var e=Hh(),t=I$(),n=Pi(),r=e?e.isConcatSpreadable:void 0;return tb=function(e){return n(e)||t(e)||!!(r&&e&&e[r])}}function Z4(){if(WP)return nb;WP=1;var e=S$(),t=J4();return nb=function n(r,o,a,i,s){var u=-1,l=r.length;for(a||(a=t),s||(s=[]);++u<l;){var c=r[u];o>0&&a(c)?o>1?n(c,o-1,a,i,s):e(s,c):i||(s[s.length]=c)}return s},nb}function D$(){if(qP)return rb;return qP=1,rb=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}}function e8(){if(GP)return ob;GP=1;var e=D$(),t=Math.max;return ob=function(n,r,o){return r=t(void 0===r?n.length-1:r,0),function(){for(var a=arguments,i=-1,s=t(a.length-r,0),u=Array(s);++i<s;)u[i]=a[r+i];i=-1;for(var l=Array(r+1);++i<r;)l[i]=a[i];return l[r]=o(u),e(n,this,l)}},ob}function t8(){if(HP)return ib;return HP=1,ib=function(e){return function(){return e}}}function UA(){if(KP)return ab;KP=1;var e=up(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}}();return ab=t}function n8(){if(YP)return sb;YP=1;var e=t8(),t=UA(),n=A$();return sb=t?function(n,r){return t(n,"toString",{configurable:!0,enumerable:!1,value:e(r),writable:!0})}:n}function VA(){if(QP)return ub;QP=1;var e=Date.now;return ub=function(t){var n=0,r=0;return function(){var o=e(),a=16-(o-r);if(r=o,a>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}},ub}function WA(){if(XP)return lb;XP=1;var e=n8(),t=VA()(e);return lb=t}function r8(){if(JP)return cb;JP=1;var e=si();return cb=function(){return e.Date.now()}}function o8(){if(ZP)return db;ZP=1;var e=/\s/;return db=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}}function i8(){if(eR)return fb;eR=1;var e=o8(),t=/^\s+/;return fb=function(n){return n&&n.slice(0,e(n)+1).replace(t,"")}}function qA(){if(tR)return pb;tR=1;var e=i8(),t=Ss(),n=Nv(),r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,i=parseInt;return pb=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||a.test(s)?i(s.slice(2),l?2:8):r.test(s)?NaN:+s}}function GA(){if(nR)return hb;nR=1;var e=Ss(),t=r8(),n=qA(),r=Math.max,o=Math.min;return hb=function(a,i,s){var u,l,c,d,f,p,m=0,h=!1,v=!1,g=!0;if("function"!=typeof a)throw new TypeError("Expected a function");function y(e){var t=u,n=l;return u=l=void 0,m=e,d=a.apply(n,t)}function b(e){var t=e-p;return void 0===p||t>=i||t<0||v&&e-m>=c}function w(){var e=t();if(b(e))return x(e);f=setTimeout(w,function(e){var t=i-(e-p);return v?o(t,c-(e-m)):t}(e))}function x(e){return f=void 0,g&&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,i),h?y(e):d}(p);if(v)return clearTimeout(f),f=setTimeout(w,i),y(p)}return void 0===f&&(f=setTimeout(w,i)),d}return i=n(i)||0,e(s)&&(h=!!s.leading,c=(v="maxWait"in s)?r(n(s.maxWait)||0,i):c,g="trailing"in s?!!s.trailing:g),_.cancel=function(){void 0!==f&&clearTimeout(f),m=0,u=p=l=f=void 0},_.flush=function(){return void 0===f?d:x(t())},_},hb}function a8(){if(rR)return mb;rR=1;var e=GA(),t=Ss();return mb=function(n,r,o){var a=!0,i=!0;if("function"!=typeof n)throw new TypeError("Expected a function");return t(o)&&(a="leading"in o?!!o.leading:a,i="trailing"in o?!!o.trailing:i),e(n,r,{leading:a,maxWait:r,trailing:i})}}rv.exports;var s8=a8();const u8=t$(s8);function gv(e){return(gv="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 oR(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 Cg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oR(Object(n),!0).forEach((function(t){l8(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l8(e,t,n){return(t=c8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c8(e){var t=d8(e,"string");return"symbol"==gv(t)?t:t+""}function d8(e,t){if("object"!=gv(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=gv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function f8(e,t){return v8(e)||m8(e,t)||h8(e,t)||p8()}function p8(){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 h8(e,t){if(e){if("string"==typeof e)return iR(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 iR(e,t)}}function iR(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,a,i,s=[],u=!0,l=!1;try{if(a=(n=n.call(e)).next,0!==t)for(;!(u=(r=a.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&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}function v8(e){if(Array.isArray(e))return e}var vb,aR,gb,sR,yb,uR,wb,lR,_b,cR,bb,dR,xb,fR,Sb,pR,$b,hR,Ib,mR,Cb,vR,Eb,gR,Pb,yR,g8=Le((function(e,t){var n=e.aspect,r=e.initialDimension,o=void 0===r?{width:-1,height:-1}:r,a=e.width,i=void 0===a?"100%":a,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,v=e.id,g=e.className,y=e.onResize,b=e.style,w=void 0===b?{}:b,x=We(null),_=We();_.current=y,v3(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=f8(ut({containerWidth:o.width,containerHeight:o.height}),2),I=S[0],A=S[1],E=yt((function(e,t){A((function(n){var r=Math.round(e),o=Math.round(t);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}}))}),[]);Ke((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=u8(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=xn((function(){var e=I.containerWidth,t=I.containerHeight;if(e<0||t<0)return null;Uw(Ig(i)||Ig(u),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",i,u),Uw(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=Ig(i)?e:i,o=Ig(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,i,u,c,d,n);var a=!Array.isArray(p)&&c4(p.type).endsWith("Chart");return He.Children.map(p,(function(e){return He.isValidElement(e)?ap(e,Cg({width:r,height:o},a?{style:Cg({height:"100%",width:"100%",maxHeight:o,maxWidth:r},e.props.style)}:{})):e}))}),[n,p,u,f,d,c,I,i]);return He.createElement("div",{id:v?"".concat(v):void 0,className:x2("recharts-responsive-container",g),style:Cg(Cg({},w),{},{width:i,height:u,minWidth:c,minHeight:d,maxHeight:f}),ref:x},k)}));function N$(){if(aR)return vb;aR=1;var e=NA()(Object.getPrototypeOf,Object);return vb=e}function y8(){if(sR)return gb;sR=1;var e=Al(),t=N$(),n=aa(),r=Function.prototype,o=Object.prototype,a=r.toString,i=o.hasOwnProperty,s=a.call(Object);return gb=function(r){if(!n(r)||"[object Object]"!=e(r))return!1;var o=t(r);if(null===o)return!0;var u=i.call(o,"constructor")&&o.constructor;return"function"==typeof u&&u instanceof u&&a.call(u)==s}}function w8(){if(uR)return yb;uR=1;var e=qA(),t=1/0;return yb=function(n){return n?(n=e(n))===t||n===-t?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}}function HA(){if(lR)return wb;lR=1;var e=UA();return wb=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}}function KA(){if(cR)return _b;cR=1;var e=w8();return _b=function(t){var n=e(t),r=n%1;return n==n?r?n-r:n:0}}function M$(){if(dR)return bb;return dR=1,bb=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}}function YA(){if(fR)return xb;fR=1;var e=HA(),t=w$(),n=Object.prototype.hasOwnProperty;return xb=function(r,o,a){var i=r[o];(!n.call(r,o)||!t(i,a)||void 0===a&&!(o in r))&&e(r,o,a)}}function E0(){if(pR)return Sb;pR=1;var e=YA(),t=HA();return Sb=function(n,r,o,a){var i=!o;o||(o={});for(var s=-1,u=r.length;++s<u;){var l=r[s],c=a?a(o[l],n[l],l,o,n):void 0;void 0===c&&(c=n[l]),i?t(o,l,c):e(o,l,c)}return o}}function QA(){if(hR)return $b;hR=1;var e=E0(),t=C0();return $b=function(n,r){return n&&e(r,t(r),n)}}function _8(){if(mR)return Ib;return mR=1,Ib=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}}function b8(){if(vR)return Cb;vR=1;var e=Ss(),t=O$(),n=_8(),r=Object.prototype.hasOwnProperty;return Cb=function(o){if(!e(o))return n(o);var a=t(o),i=[];for(var s in o)"constructor"==s&&(a||!r.call(o,s))||i.push(s);return i}}function k$(){if(gR)return Eb;gR=1;var e=DA(),t=b8(),n=kA();return Eb=function(r){return n(r)?e(r,!0):t(r)}}function x8(){if(yR)return Pb;yR=1;var e=E0(),t=k$();return Pb=function(n,r){return n&&e(r,t(r),n)}}var wR,Rb,_R,Tb,bR,Ob,xR,Ab,SR,Db,$R,Nb,IR,Mb,CR,kb,ER,Lb,PR,Bb,RR,Fb,TR,jb,OR,zb,AR,Ub,DR,Vb,NR,Wb,MR,qb,kR,Gb,LR,Hb,BR,Kb,FR,Yb,jR,ov={exports:{}};function S8(){return wR||(wR=1,e=ov,t=ov.exports,n=si(),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r?n.Buffer:void 0,i=a?a.allocUnsafe:void 0,e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=i?i(n):new e.constructor(n);return e.copy(r),r}),ov.exports;var e,t,n,r,o,a,i}function P0(){if(_R)return Rb;return _R=1,Rb=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}}function $8(){if(bR)return Tb;bR=1;var e=E0(),t=$$();return Tb=function(n,r){return e(n,t(n),r)}}function XA(){if(xR)return Ob;xR=1;var e=S$(),t=N$(),n=$$(),r=OA(),o=Object.getOwnPropertySymbols;return Ob=o?function(r){for(var o=[];r;)e(o,n(r)),r=t(r);return o}:r}function I8(){if(SR)return Ab;SR=1;var e=E0(),t=XA();return Ab=function(n,r){return e(n,t(n),r)}}function C8(){if($R)return Db;$R=1;var e=TA(),t=XA(),n=k$();return Db=function(r){return e(r,n,t)}}function E8(){if(IR)return Nb;IR=1;var e=Object.prototype.hasOwnProperty;return Nb=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}}function L$(){if(CR)return Mb;CR=1;var e=RA();return Mb=function(t){var n=new t.constructor(t.byteLength);return new e(n).set(new e(t)),n}}function P8(){if(ER)return kb;ER=1;var e=L$();return kb=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}}function R8(){if(PR)return Lb;PR=1;var e=/\w*$/;return Lb=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}}function T8(){if(RR)return Bb;RR=1;var e=Hh(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;return Bb=function(e){return n?Object(n.call(e)):{}}}function O8(){if(TR)return Fb;TR=1;var e=L$();return Fb=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}}function A8(){if(OR)return jb;OR=1;var e=L$(),t=P8(),n=R8(),r=T8(),o=O8();return jb=function(a,i,s){var u=a.constructor;switch(i){case"[object ArrayBuffer]":return e(a);case"[object Boolean]":case"[object Date]":return new u(+a);case"[object DataView]":return t(a,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(a,s);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(a);case"[object RegExp]":return n(a);case"[object Symbol]":return r(a)}}}function R0(){if(AR)return zb;AR=1;var e=Ss(),t=Object.create;return zb=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 D8(){if(DR)return Ub;DR=1;var e=R0(),t=N$(),n=O$();return Ub=function(r){return"function"!=typeof r.constructor||n(r)?{}:e(t(r))}}function N8(){if(NR)return Vb;NR=1;var e=kv(),t=aa();return Vb=function(n){return t(n)&&"[object Map]"==e(n)}}function M8(){if(MR)return Wb;MR=1;var e=N8(),t=R$(),n=T$(),r=n&&n.isMap,o=r?t(r):e;return Wb=o}function k8(){if(kR)return qb;kR=1;var e=kv(),t=aa();return qb=function(n){return t(n)&&"[object Set]"==e(n)}}function L8(){if(LR)return Gb;LR=1;var e=k8(),t=R$(),n=T$(),r=n&&n.isSet,o=r?t(r):e;return Gb=o}function JA(){if(BR)return Hb;BR=1;var e=x$(),t=M$(),n=YA(),r=QA(),o=x8(),a=S8(),i=P0(),s=$8(),u=I8(),l=LA(),c=C8(),d=kv(),f=E8(),p=A8(),m=D8(),h=Pi(),v=C$(),g=M8(),y=Ss(),b=L8(),w=C0(),x=k$(),_="[object Arguments]",S="[object Function]",I="[object Object]",A={};return A[_]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[I]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[S]=A["[object WeakMap]"]=!1,Hb=function E(k,M,C,P,N,O){var T,q=1&M,R=2&M,j=4&M;if(C&&(T=N?C(k,P,N,O):C(k)),void 0!==T)return T;if(!y(k))return k;var D=h(k);if(D){if(T=f(k),!q)return i(k,T)}else{var L=d(k),z=L==S||"[object GeneratorFunction]"==L;if(v(k))return a(k,q);if(L==I||L==_||z&&!N){if(T=R||z?{}:m(k),!q)return R?u(k,o(T,k)):s(k,r(T,k))}else{if(!A[L])return N?k:{};T=p(k,L,q)}}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))})):g(k)&&k.forEach((function(e,t){T.set(t,E(e,M,C,t,k,O))}));var B=D?void 0:(j?R?c:l:R?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},Hb}function B8(){if(FR)return Kb;FR=1;var e=Z4();return Kb=function(t){return(null==t?0:t.length)?e(t,1):[]}}function F8(){if(jR)return Yb;jR=1;var e=B8(),t=e8(),n=WA();return Yb=function(r){return n(t(r,void 0,e),r+"")}}ov.exports;const j8={light:"",dark:".dark"},ZA=M.createContext(null);function eD(){const e=M.useContext(ZA);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const z8=M.forwardRef((({id:e,className:t,children:n,config:r,...o},a)=>{const i=M.useId(),s=`chart-${e||i.replace(/:/g,"")}`;return q.jsx(ZA.Provider,{value:{config:r},children:q.jsxs("div",{"data-chart":s,ref:a,className:we("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...o,children:[q.jsx(U8,{id:s,config:r}),q.jsx(g8,{children:n})]})})}));z8.displayName="Chart";const U8=({id:e,config:t})=>{const n=Object.entries(t).filter((([,e])=>e.theme||e.color));return n.length?q.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(j8).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},V8=M.forwardRef((({active:e,payload:t,className:n,indicator:r="dot",hideLabel:o=!1,hideIndicator:a=!1,label:i,labelFormatter:s,labelClassName:u,formatter:l,color:c,nameKey:d,labelKey:f,hoveredItem:p,onItemHover:m},h)=>{const{config:v}=eD(),g=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"}`,a=yS(v,n,r),l=f||"string"!=typeof i?null==a?void 0:a.label:(null==(e=v[i])?void 0:e.label)||i;return s?q.jsx("div",{className:we("font-medium",u),children:s(l,t)}):l?q.jsx("div",{className:we("font-medium",u),children:l}):null}),[i,s,t,o,u,v,f]);if(!e||null==t||!t.length)return null;const y=1===t.length&&"dot"!==r,b=t.length>10;return q.jsxs("div",{ref:h,className:we("grid min-w-[8rem] items-start gap-xxs rounded-sm border border-border/50 bg-background px-xs py-xxs text-xs shadow-xl",b&&"min-w-[16rem]",n),children:[y?null:g,q.jsx("div",{className:we("grid gap-xxs",b&&"grid-cols-2 gap-x-s"),children:t.map(((e,t)=>{var n;const o=`${d||e.name||e.dataKey||"value"}`,i=yS(v,e,o),s=c||(null==(n=e.payload)?void 0:n.fill)||e.color||"",u=o===p;return q.jsx("div",{className:we("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===r&&"items-center",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]):q.jsxs(q.Fragment,{children:[null!=i&&i.icon?q.jsx(i.icon,{}):!a&&q.jsx("div",{className:we("shrink-0 rounded-full border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===r,"w-1":"line"===r,"w-0 border border-dashed bg-transparent":"dashed"===r,"my-0.5":y&&"dashed"===r}),style:{"--color-bg":s,"--color-border":s}}),q.jsxs("div",{className:we("flex flex-1 justify-between leading-none",y?"items-end":"items-center"),children:[q.jsxs("div",{className:"grid gap-xxs",children:[y?g:null,q.jsx("span",{className:we("text-muted-foreground",u&&"font-medium text-foreground"),children:(null==i?void 0:i.label)||e.name})]}),e.value&&q.jsx("span",{className:we("font-mono font-medium tabular-nums text-foreground",u&&"font-bold"),children:e.value.toLocaleString()})]})]})},e.dataKey)}))})]})}));V8.displayName="ChartTooltip";const W8=M.forwardRef((({className:e,hideIcon:t=!1,payload:n,nameKey:r,onItemHover:o,hoveredItem:a},i)=>{const{config:s}=eD(),u=M.useRef({});return M.useEffect((()=>{if(a&&u.current[a]){const e=u.current[a];e&&e.scrollIntoView({behavior:"smooth",block:"nearest"})}}),[a]),null!=n&&n.length?q.jsx("div",{ref:i,className:we("flex h-[150px] w-full flex-wrap items-center justify-center gap-l overflow-y-auto pb-xl",e),children:n.map((e=>{var n;const i=`${r||e.dataKey||"value"}`,l=yS(s,e,i),c=!!o&&i===a;return q.jsxs("div",{ref:e=>{e?u.current[i]=e:delete u.current[i]},className:we("group flex cursor-pointer select-none items-center gap-xs text-base transition-all duration-150",c?"scale-105 text-black":a?"text-gray-700 opacity-40":"text-gray-700"),onMouseEnter:()=>null==o?void 0:o(e.dataKey),onMouseLeave:()=>null==o?void 0:o(null),children:[null!=l&&l.icon&&!t?q.jsx(l.icon,{}):q.jsx("div",{className:"h-2 w-2 shrink-0 rounded-full",style:{backgroundColor:e.color||""}}),q.jsx("span",{className:"min-w-[max-content]",children:(null==l?void 0:l.label)||e.name})]},(null==(n=e.value)?void 0:n.toString())||i)}))}):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]}W8.displayName="ChartLegend";const q8=({children:e,className:t})=>q.jsx("div",{className:we("flex flex-wrap gap-xxxs",t),children:e}),tD=({text:e,icon:t,disabled:n,isLoading:r,avatarSrc:o,onClick:a,onRemove:i,className:s})=>q.jsxs("div",{onClick:n?void 0:a,className:we("flex cursor-pointer items-center gap-xxxs rounded-sm bg-gray-100 p-xxs text-sm font-medium text-gray-900 transition-all hover:bg-gray-200 [&_svg]:size-4",n&&"cursor-not-allowed bg-gray-100 text-gray-300",s),children:[o&&q.jsxs(cA,{className:we("size-6 text-[10px]"),children:[q.jsx(dA,{src:o,alt:e}),q.jsx(fA,{className:"text-xs",children:e.charAt(0).toUpperCase()})]}),t,q.jsx("span",{children:e}),i&&!r&&q.jsx("span",{role:"button",tabIndex:-1,onClick:e=>{e.stopPropagation(),e.preventDefault(),!n&&(null==i||i())},onPointerDown:e=>{e.stopPropagation(),e.preventDefault()},className:we("pointer-events-auto cursor-pointer",n&&"pointer-events-none cursor-not-allowed opacity-50"),children:q.jsx(d0,{size:16})}),r&&q.jsx(w2,{size:16,className:"animate-spin"})]});function T0(e){const t=We({value:e,previous:e});return xn((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}function O0(e){const[t,n]=ut(void 0);return Go((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t)||!t.length)return;const r=t[0];let o,a;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}const nD="Checkbox",[G8,AX]=ai(nD),[H8,K8]=G8(nD),Y8=Le(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:u="on",onCheckedChange:l,...c}=e,[d,f]=ut(null),p=Ht(t,(e=>f(e))),m=We(!1),h=!d||!!d.closest("form"),[v=!1,g]=vd({prop:o,defaultProp:a,onChange:l}),y=We(v);return Ke((()=>{const e=null==d?void 0:d.form;if(e){const t=()=>g(y.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[d,g]),ae(H8,{scope:n,state:v,disabled:s},ae(ht.button,Ee({type:"button",role:"checkbox","aria-checked":Vf(v)?"mixed":v,"aria-required":i,"data-state":rD(v),"data-disabled":s?"":void 0,disabled:s,value:u},c,{ref:p,onKeyDown:ot(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:ot(e.onClick,(e=>{g((e=>!!Vf(e)||!e)),h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))})),h&&ae(J8,{control:d,bubbles:!m.current,name:r,value:u,checked:v,required:i,disabled:s,style:{transform:"translateX(-100%)"}}))})),Q8="CheckboxIndicator",X8=Le(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=K8(Q8,n);return ae(ia,{present:r||Vf(a.state)||!0===a.state},ae(ht.span,Ee({"data-state":rD(a.state),"data-disabled":a.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))})),J8=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=We(null),i=T0(n),s=O0(t);return Ke((()=>{const e=a.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&o){const t=new Event("click",{bubbles:r});e.indeterminate=Vf(n),o.call(e,!Vf(n)&&n),e.dispatchEvent(t)}}),[i,n,r]),ae("input",Ee({type:"checkbox","aria-hidden":!0,defaultChecked:!Vf(n)&&n},o,{tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Vf(e){return"indeterminate"===e}function rD(e){return Vf(e)?"indeterminate":e?"checked":"unchecked"}const oD=Y8,Z8=X8,e9=wu("relative overflow-hidden ",{variants:{size:{default:"size-xs"},variant:{default:"peer shrink-0 rounded-sm border disabled:cursor-not-allowed disabled:!border-0 disabled:!bg-gray-100"}},defaultVariants:{size:"default",variant:"default"}}),B$=M.forwardRef((({className:e,size:t,variant:n,iconType:r,...o},a)=>{const i=o.checked,[s]=M.useState(i),[u,l]=M.useState(!1);M.useEffect((()=>{s!==i&&l(!0)}),[i]);const c=e=>"minus"===r?q.jsx(oL,{...e}):q.jsx(n$,{...e});return q.jsxs(oD,{ref:a,className:we(e9({size:t,variant:n}),"transition-[border] duration-100 ease-linear",i?"border-0":"border-gray-300 hover:border-2",e),...o,children:[q.jsx("div",{className:we("transform-origin-center absolute left-0 top-0 size-full rounded-full bg-blue_100",i?"scale-[1.2]":"scale-0",{"animate-fill-in":i&&u,"animate-fill-out":!i&&u})}),q.jsx(Z8,{className:"relative flex items-center justify-center text-current",children:q.jsx(c,{className:"size-xxxs",color:o.disabled?"var(--gray-300)":"white"})})]})}));B$.displayName=oD.displayName;var zR=1,t9=.9,n9=.8,r9=.17,Qb=.1,Xb=.999,o9=.9999,i9=.99,a9=/[\\\/_+.#"@\[\(\{&]/,s9=/[\\\/_+.#"@\[\(\{&]/g,u9=/[\s-]/,iD=/[\s-]/g;function wS(e,t,n,r,o,a,i){if(a===t.length)return o===e.length?zR:i9;var s=`${o},${a}`;if(void 0!==i[s])return i[s];for(var u,l,c,d,f=r.charAt(a),p=n.indexOf(f,o),m=0;p>=0;)(u=wS(e,t,n,r,p+1,a+1,i))>m&&(p===o?u*=zR:a9.test(e.charAt(p-1))?(u*=n9,(c=e.slice(o,p-1).match(s9))&&o>0&&(u*=Math.pow(Xb,c.length))):u9.test(e.charAt(p-1))?(u*=t9,(d=e.slice(o,p-1).match(iD))&&o>0&&(u*=Math.pow(Xb,d.length))):(u*=r9,o>0&&(u*=Math.pow(Xb,p-o))),e.charAt(p)!==t.charAt(a)&&(u*=o9)),(u<Qb&&n.charAt(p-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(p-1)!==r.charAt(a))&&((l=wS(e,t,n,r,p+1,a+2,i))*Qb>u&&(u=l*Qb)),u>m&&(m=u),p=n.indexOf(f,p+1);return i[s]=m,m}function UR(e){return e.toLowerCase().replace(iD," ")}function l9(e,t,n){return wS(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,UR(e),UR(t),0,0,{})}var Qm='[cmdk-group=""]',Jb='[cmdk-group-items=""]',c9='[cmdk-group-heading=""]',F$='[cmdk-item=""]',VR=`${F$}:not([aria-disabled="true"])`,_S="cmdk-item-select",Ff="data-value",d9=(e,t,n)=>l9(e,t,n),aD=M.createContext(void 0),Lv=()=>M.useContext(aD),sD=M.createContext(void 0),j$=()=>M.useContext(sD),uD=M.createContext(void 0),lD=M.forwardRef(((e,t)=>{let n=Nh((()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",filtered:{count:0,items:new Map,groups:new Set}}})),r=Nh((()=>new Set)),o=Nh((()=>new Map)),a=Nh((()=>new Map)),i=Nh((()=>new Set)),s=cD(e),{label:u,children:l,value:c,onValueChange:d,filter:f,shouldFilter:p,loop:m,disablePointerSelection:h=!1,vimBindings:v=!0,...g}=e,y=M.useId(),b=M.useId(),w=M.useId(),x=M.useRef(null),_=x9();Yf((()=>{if(void 0!==c){let e=c.trim();n.current.value=e,S.emit()}}),[c]),Yf((()=>{_(6,P)}),[]);let S=M.useMemo((()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,a,i;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)C(),E(),_(1,k);else if("value"===e&&(r||_(5,P),void 0!==(null==(o=s.current)?void 0:o.value))){let e=t??"";return void(null==(i=(a=s.current).onValueChange)||i.call(a,e))}S.emit()}},emit:()=>{i.current.forEach((e=>e()))}})),[]),I=M.useMemo((()=>({value:(e,t,r)=>{var o;t!==(null==(o=a.current.get(e))?void 0:o.value)&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,A(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()})),()=>{a.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=N();_(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),()=>{a.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 A(e,t){var r,o;let a=null!=(o=null==(r=s.current)?void 0:r.filter)?o:d9;return e?a(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),a=0;r.forEach((t=>{let n=e.get(t);a=Math.max(n,a)})),t.push([n,a])}));let r=x.current;O().sort(((t,n)=>{var r,o;let a=t.getAttribute("id"),i=n.getAttribute("id");return(null!=(r=e.get(i))?r:0)-(null!=(o=e.get(a))?o:0)})).forEach((e=>{let t=e.closest(Jb);t?t.appendChild(e.parentElement===t?e:e.closest(`${Jb} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${Jb} > *`))})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{let t=x.current.querySelector(`${Qm}[${Ff}="${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(Ff);S.setState("value",t||void 0)}function C(){var e,t,i,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=A(null!=(t=null==(e=a.current.get(o))?void 0:e.value)?t:"",null!=(u=null==(i=a.current.get(o))?void 0:i.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 P(){var e,t,n;let r=N();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(Qm))?void 0:t.querySelector(c9))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function N(){var e;return null==(e=x.current)?void 0:e.querySelector(`${F$}[aria-selected="true"]`)}function O(){var e;return Array.from(null==(e=x.current)?void 0:e.querySelectorAll(VR))}function T(e){let t=O()[e];t&&S.setState("value",t.getAttribute(Ff))}function q(e){var t;let n=N(),r=O(),o=r.findIndex((e=>e===n)),a=r[o+e];null!=(t=s.current)&&t.loop&&(a=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),a&&S.setState("value",a.getAttribute(Ff))}function R(e){let t,n=N(),r=null==n?void 0:n.closest(Qm);for(;r&&!t;)r=e>0?_9(r,Qm):b9(r,Qm),t=null==r?void 0:r.querySelector(VR);t?S.setState("value",t.getAttribute(Ff)):q(e)}let j=()=>T(O().length-1),D=e=>{e.preventDefault(),e.metaKey?j():e.altKey?R(1):q(1)},L=e=>{e.preventDefault(),e.metaKey?T(0):e.altKey?R(-1):q(-1)};return M.createElement(ht.div,{ref:t,tabIndex:-1,...g,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=g.onKeyDown)||t.call(g,e),!e.defaultPrevented)switch(e.key){case"n":case"j":v&&e.ctrlKey&&D(e);break;case"ArrowDown":D(e);break;case"p":case"k":v&&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=N();if(t){let e=new Event(_S);t.dispatchEvent(e)}}}}},M.createElement("label",{"cmdk-label":"",htmlFor:I.inputId,id:I.labelId,style:$9},u),A0(e,(e=>M.createElement(sD.Provider,{value:S},M.createElement(aD.Provider,{value:I},e)))))})),f9=M.forwardRef(((e,t)=>{var n,r;let o=M.useId(),a=M.useRef(null),i=M.useContext(uD),s=Lv(),u=cD(e),l=null!=(r=null==(n=u.current)?void 0:n.forceMount)?r:null==i?void 0:i.forceMount;Yf((()=>{if(!l)return s.item(o,null==i?void 0:i.id)}),[l]);let c=dD(o,a,[e.value,e.children,a],e.keywords),d=j$(),f=Qf((e=>e.value&&e.value===c.current)),p=Qf((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=a.current;if(t&&!e.disabled)return t.addEventListener(_S,m),()=>t.removeEventListener(_S,m)}),[p,e.onSelect,e.disabled]),!p)return null;let{disabled:v,value:g,onSelect:y,forceMount:b,keywords:w,...x}=e;return M.createElement(ht.div,{ref:yv([a,t]),...x,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!f,"data-disabled":!!v,"data-selected":!!f,onPointerMove:v||s.disablePointerSelection?void 0:h,onClick:v?void 0:m},e.children)})),p9=M.forwardRef(((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,i=M.useId(),s=M.useRef(null),u=M.useRef(null),l=M.useId(),c=Lv(),d=Qf((e=>!(!o&&!1!==c.filter())||(!e.search||e.filtered.groups.has(i))));Yf((()=>c.group(i)),[]),dD(i,s,[e.value,e.heading,u]);let f=M.useMemo((()=>({id:i,forceMount:o})),[o]);return M.createElement(ht.div,{ref:yv([s,t]),...a,"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(uD.Provider,{value:f},e)))))})),h9=M.forwardRef(((e,t)=>{let{alwaysRender:n,...r}=e,o=M.useRef(null),a=Qf((e=>!e.search));return n||a?M.createElement(ht.div,{ref:yv([o,t]),...r,"cmdk-separator":"",role:"separator"}):null})),m9=M.forwardRef(((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=j$(),i=Qf((e=>e.search)),s=Qf((e=>e.value)),u=Lv(),l=M.useMemo((()=>{var e;let t=null==(e=u.listInnerRef.current)?void 0:e.querySelector(`${F$}[${Ff}="${encodeURIComponent(s)}"]`);return null==t?void 0:t.getAttribute("id")}),[]);return M.useEffect((()=>{null!=e.value&&a.setState("search",e.value)}),[e.value]),M.createElement(ht.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:i,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})})),v9=M.forwardRef(((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=M.useRef(null),i=M.useRef(null),s=Lv();return M.useEffect((()=>{if(i.current&&a.current){let e,t=i.current,n=a.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(ht.div,{ref:yv([a,t]),...o,"cmdk-list":"",role:"listbox","aria-label":r,id:s.listId},A0(e,(e=>M.createElement("div",{ref:yv([i,s.listInnerRef]),"cmdk-list-sizer":""},e))))})),g9=M.forwardRef(((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:i,...s}=e;return M.createElement(Q2,{open:n,onOpenChange:r},M.createElement(y0,{container:i},M.createElement(qh,{"cmdk-overlay":"",className:o}),M.createElement(Gh,{"aria-label":e.label,"cmdk-dialog":"",className:a},M.createElement(lD,{ref:t,...s}))))})),y9=M.forwardRef(((e,t)=>Qf((e=>0===e.filtered.count))?M.createElement(ht.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null)),w9=M.forwardRef(((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return M.createElement(ht.div,{ref:t,...a,"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))))})),Ri=Object.assign(lD,{List:v9,Item:f9,Input:m9,Group:p9,Separator:h9,Dialog:g9,Empty:y9,Loading:w9});function _9(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function b9(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function cD(e){let t=M.useRef(e);return Yf((()=>{t.current=e})),t}var Yf=typeof window>"u"?M.useEffect:M.useLayoutEffect;function Nh(e){let t=M.useRef();return void 0===t.current&&(t.current=e()),t}function yv(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function Qf(e){let t=j$(),n=()=>e(t.snapshot());return M.useSyncExternalStore(t.subscribe,n,n)}function dD(e,t,n,r=[]){let o=M.useRef(),a=Lv();return Yf((()=>{var i;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()));a.value(e,s,u),null==(i=t.current)||i.setAttribute(Ff,s),o.current=s})),o}var x9=()=>{let[e,t]=M.useState(),n=Nh((()=>new Map));return Yf((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}};function S9(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(S9(t),{ref:t.ref},n(t.props.children)):n(t)}var $9={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const I9=y0,fD=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")))}}),[]),q.jsx(qh,{ref:n,"data-testid":"dialog_overlay",className:we("fixed inset-0 z-dialog bg-black opacity-[0.8] data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}))));fD.displayName=qh.displayName;const C9=wu("",{variants:{closeVariant:{none:"",insideCard:"absolute right-m top-m rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground text-gray-400",outsideCard:"fixed right-[30px] top-[30px] z-100 text-gray-400",mobileGallery:"fixed right-m top-[62px] text-white z-[110]"}},defaultVariants:{closeVariant:"outsideCard"}}),E9=wu("",{variants:{closeSize:{small:"size-6",big:"size-[42px]","18x18":"size-[18px]"}},defaultVariants:{closeSize:"small"}}),P9=M.forwardRef((({title:e,titleIcon:t,className:n,dialogName:r,showClose:o=!0,closeVariant:a="outsideCard",closeSize:i="big",children:s,titleClassName:u,overlayClassName:l,childrenClassName:c,footerClassName:d,onBack:f,onCloseModal:p,renderFooter:m,onScroll:h,...v},g)=>{const y=q.jsxs(w0,{className:we(C9({closeVariant:a})),children:[q.jsx(d0,{onClick:p,fill:"currentColor",className:we(E9({closeSize:i}))}),q.jsx("span",{className:"sr-only",children:"Close"})]});return q.jsxs(I9,{children:[q.jsx(fD,{className:l,onClick:p}),o&&"insideCard"!==a&&y,q.jsxs(Gh,{ref:g,className:we("fixed left-[50%] top-[50%] z-[101] grid max-w-[600px] translate-x-[-50%] translate-y-[-50%] !overflow-visible rounded-sm bg-background shadow-lg outline-none duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] max-md:w-[calc(100vw-32px)] md:w-full [&>div]:min-w-0",n),...v,children:[e&&q.jsxs("h3",{className:we("flex items-center justify-center gap-xxs border-b border-gray-200 p-m text-center text-lg font-semibold text-gray-700",u),children:[t,e]}),q.jsx("div",{id:r||"dialog-content",className:we("p-m",c),onScroll:h,children:s}),o&&"insideCard"===a&&y,f&&q.jsx("button",{"data-testid":"dialog-back-button","aria-label":"Back",onClick:f,className:"absolute left-m top-m",children:q.jsx(g2,{color:"var(--gray-400)",size:24})}),q.jsx(pD,{className:we("empty:hidden",d),children:null==m?void 0:m()})]})]})}));P9.displayName=Gh.displayName;const pD=({className:e,...t})=>q.jsx("div",{className:we("flex border-t border-gray-200 p-m",e),...t});pD.displayName="DialogFooter";const R9=M.forwardRef((({className:e,...t},n)=>q.jsx(Ov,{ref:n,className:we("text-lg font-semibold leading-none tracking-tight",e),...t})));R9.displayName=Ov.displayName;const T9=M.forwardRef((({className:e,...t},n)=>q.jsx(Av,{ref:n,className:we("text-sm text-muted-foreground",e),...t})));T9.displayName=Av.displayName;const O9=M.forwardRef((({className:e,...t},n)=>q.jsx(Ri,{ref:n,className:we("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t})));O9.displayName=Ri.displayName;const A9=M.forwardRef((({className:e,...t},n)=>q.jsx("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:q.jsx(Ri.Input,{ref:n,className:we("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})})));A9.displayName=Ri.Input.displayName;const D9=M.forwardRef((({className:e,...t},n)=>q.jsx(Ri.List,{ref:n,className:we("mt-2 max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t})));D9.displayName=Ri.List.displayName;const N9=M.forwardRef(((e,t)=>q.jsx(Ri.Empty,{ref:t,className:"py-6 text-center text-sm",...e})));N9.displayName=Ri.Empty.displayName;const M9=M.forwardRef((({className:e,...t},n)=>q.jsx(Ri.Group,{ref:n,className:we("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t})));M9.displayName=Ri.Group.displayName;const k9=M.forwardRef((({className:e,...t},n)=>q.jsx(Ri.Separator,{ref:n,className:we("-mx-1 h-px bg-border",e),...t})));k9.displayName=Ri.Separator.displayName;const L9=M.forwardRef((({className:e,...t},n)=>q.jsx(Ri.Item,{ref:n,className:we("relative flex max-w-[215px] cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...t})));function pd(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 WR(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function hD(...e){return t=>{let n=!1;const r=e.map((e=>{const r=WR(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():WR(e[t],null)}}}}function lp(...e){return M.useCallback(hD(...e),e)}function B9(e,t){const n=M.createContext(t),r=e=>{const{children:t,...r}=e,o=M.useMemo((()=>r),Object.values(r));return q.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 F9(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),a=n.length;n=[...n,r];const i=t=>{var n;const{scope:r,children:i,...s}=t,u=(null==(n=null==r?void 0:r[e])?void 0:n[a])||o,l=M.useMemo((()=>s),Object.values(s));return q.jsx(u.Provider,{value:l,children:i})};return i.displayName=t+"Provider",[i,function(n,i){var s;const u=(null==(s=null==i?void 0:i[e])?void 0:s[a])||o,l=M.useContext(u);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},j9(r,...t)]}function j9(...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}L9.displayName=Ri.Item.displayName;var Kg=null!=globalThis&&globalThis.document?M.useLayoutEffect:()=>{},z9=M[" useId ".trim().toString()]||(()=>{}),U9=0;function Zb(e){const[t,n]=M.useState(z9());return Kg((()=>{e||n((e=>e??String(U9++)))}),[e]),e||(t?`radix-${t}`:"")}function Xf(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 V9({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=W9({defaultProp:t,onChange:n}),a=void 0!==e,i=a?e:r,s=Xf(n);return[i,M.useCallback((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[a,e,o,s])]}function W9({defaultProp:e,onChange:t}){const n=M.useState(e),[r]=n,o=M.useRef(r),a=Xf(t);return M.useEffect((()=>{o.current!==r&&(a(r),o.current=r)}),[r,o,a]),n}function mD(e){const t=q9(e),n=M.forwardRef(((e,n)=>{const{children:r,...o}=e,a=M.Children.toArray(r),i=a.find(H9);if(i){const e=i.props.children,r=a.map((t=>t===i?M.Children.count(e)>1?M.Children.only(null):M.isValidElement(e)?e.props.children:null:t));return q.jsx(t,{...o,ref:n,children:M.isValidElement(e)?M.cloneElement(e,void 0,r):null})}return q.jsx(t,{...o,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function q9(e){const t=M.forwardRef(((e,t)=>{const{children:n,...r}=e;if(M.isValidElement(n)){const e=Y9(n),o=K9(r,n.props);return n.type!==M.Fragment&&(o.ref=t?hD(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 G9=Symbol("radix.slottable");function H9(e){return M.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===G9}function K9(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Y9(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 Q9=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Dl=Q9.reduce(((e,t)=>{const n=mD(`Primitive.${t}`),r=M.forwardRef(((e,r)=>{const{asChild:o,...a}=e,i=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),q.jsx(i,{...a,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{});function X9(e,t){e&&yu.flushSync((()=>e.dispatchEvent(t)))}function J9(e,t=(null==globalThis?void 0:globalThis.document)){const n=Xf(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 qR,Z9="DismissableLayer",bS="dismissableLayer.update",eB="dismissableLayer.pointerDownOutside",tB="dismissableLayer.focusOutside",vD=M.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),gD=M.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...u}=e,l=M.useContext(vD),[c,d]=M.useState(null),f=(null==c?void 0:c.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,p]=M.useState({}),m=lp(t,(e=>d(e))),h=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),g=h.indexOf(v),y=c?h.indexOf(c):-1,b=l.layersWithOutsidePointerEventsDisabled.size>0,w=y>=g,x=oB((e=>{const t=e.target,n=[...l.branches].some((e=>e.contains(t)));!w||n||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==s||s())}),f),_=iB((e=>{const t=e.target;[...l.branches].some((e=>e.contains(t)))||(null==a||a(e),null==i||i(e),e.defaultPrevented||null==s||s())}),f);return J9((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&&(qR=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),GR(),()=>{n&&1===l.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=qR)}}),[c,f,n,l]),M.useEffect((()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),GR())}),[c,l]),M.useEffect((()=>{const e=()=>p({});return document.addEventListener(bS,e),()=>document.removeEventListener(bS,e)}),[]),q.jsx(Dl.div,{...u,ref:m,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:pd(e.onFocusCapture,_.onFocusCapture),onBlurCapture:pd(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:pd(e.onPointerDownCapture,x.onPointerDownCapture)})}));gD.displayName=Z9;var nB="DismissableLayerBranch",rB=M.forwardRef(((e,t)=>{const n=M.useContext(vD),r=M.useRef(null),o=lp(t,r);return M.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),q.jsx(Dl.div,{...e,ref:o})}));function oB(e,t=(null==globalThis?void 0:globalThis.document)){const n=Xf(e),r=M.useRef(!1),o=M.useRef((()=>{}));return M.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){yD(eB,n,a,{discrete:!0})};const a={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},a=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(a),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=Xf(e),r=M.useRef(!1);return M.useEffect((()=>{const e=e=>{e.target&&!r.current&&yD(tB,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 GR(){const e=new CustomEvent(bS);document.dispatchEvent(e)}function yD(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?X9(o,a):o.dispatchEvent(a)}rB.displayName=nB;var ex="focusScope.autoFocusOnMount",tx="focusScope.autoFocusOnUnmount",HR={bubbles:!1,cancelable:!0},aB="FocusScope",wD=M.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,u]=M.useState(null),l=Xf(o),c=Xf(a),d=M.useRef(null),f=lp(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:dd(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||dd(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&dd(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){YR.add(p);const e=document.activeElement;if(!s.contains(e)){const t=new CustomEvent(ex,HR);s.addEventListener(ex,l),s.dispatchEvent(t),t.defaultPrevented||(sB(fB(_D(s)),{select:!0}),document.activeElement===e&&dd(s))}return()=>{s.removeEventListener(ex,l),setTimeout((()=>{const t=new CustomEvent(tx,HR);s.addEventListener(tx,c),s.dispatchEvent(t),t.defaultPrevented||dd(e??document.body,{select:!0}),s.removeEventListener(tx,c),YR.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,a]=uB(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&dd(a,{select:!0})):(e.preventDefault(),n&&dd(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return q.jsx(Dl.div,{tabIndex:-1,...i,ref:f,onKeyDown:m})}));function sB(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(dd(r,{select:t}),document.activeElement!==n)return}function uB(e){const t=_D(e);return[KR(t,e),KR(t.reverse(),e)]}function _D(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 KR(e,t){for(const n of e)if(!lB(n,{upTo:t}))return n}function lB(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 cB(e){return e instanceof HTMLInputElement&&"select"in e}function dd(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&cB(e)&&t&&e.select()}}wD.displayName=aB;var YR=dB();function dB(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=QR(e,t),e.unshift(t)},remove(t){var n;e=QR(e,t),null==(n=e[0])||n.resume()}}}function QR(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function fB(e){return e.filter((e=>"A"!==e.tagName))}var pB="Portal",bD=M.forwardRef(((e,t)=>{var n;const{container:r,...o}=e,[a,i]=M.useState(!1);Kg((()=>i(!0)),[]);const s=r||a&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return s?f2.createPortal(q.jsx(Dl.div,{...o,ref:t}),s):null}));function hB(e,t){return M.useReducer(((e,n)=>t[e][n]??e),e)}bD.displayName=pB;var D0=e=>{const{present:t,children:n}=e,r=mB(t),o="function"==typeof n?n({present:r.isPresent}):M.Children.only(n),a=lp(r.ref,vB(o));return"function"==typeof n||r.isPresent?M.cloneElement(o,{ref:a}):null};function mB(e){const[t,n]=M.useState(),r=M.useRef({}),o=M.useRef(e),a=M.useRef("none"),i=e?"mounted":"unmounted",[s,u]=hB(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return M.useEffect((()=>{const e=Eg(r.current);a.current="mounted"===s?e:"none"}),[s]),Kg((()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=Eg(t);e?u("MOUNT"):"none"===i||"none"===(null==t?void 0:t.display)?u("UNMOUNT"):u(n&&r!==i?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,u]),Kg((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=a=>{const i=Eg(r.current).includes(a.animationName);if(a.target===t&&i&&(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&&(a.current=Eg(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:M.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Eg(e){return(null==e?void 0:e.animationName)||"none"}function vB(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)}D0.displayName="Presence";var nx=0;function gB(){M.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??XR()),document.body.insertAdjacentElement("beforeend",e[1]??XR()),nx++,()=>{1===nx&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),nx--}}),[])}function XR(){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 xD=D2(),rx=function(){},N0=M.forwardRef((function(e,t){var n=M.useRef(null),r=M.useState({onScrollCapture:rx,onWheelCapture:rx,onTouchMoveCapture:rx}),o=r[0],a=r[1],i=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,v=e.as,g=void 0===v?"div":v,y=e.gapMode,b=c$(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,x=A2([n,t]),_=qo(qo({},b),o);return M.createElement(M.Fragment,null,c&&M.createElement(w,{sideCar:xD,removeScrollBar:l,shards:d,noIsolation:p,inert:m,setCallbacks:a,allowPinchZoom:!!h,lockRef:n,gapMode:y}),i?M.cloneElement(M.Children.only(s),qo(qo({},_),{ref:x})):M.createElement(g,qo({},_,{className:u,ref:x}),s))}));N0.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},N0.classNames={fullWidth:lv,zeroRight:uv};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 Th=!!xS&&{passive:!1},yB=function(e){return"TEXTAREA"===e.tagName},SD=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!yB(e)&&"visible"===n[t])},wB=function(e){return SD(e,"overflowY")},_B=function(e){return SD(e,"overflowX")},JR=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host),$D(e,r)){var o=ID(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},bB=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},xB=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},$D=function(e,t){return"v"===e?wB(t):_B(t)},ID=function(e,t){return"v"===e?bB(t):xB(t)},SB=function(e,t){return"h"===e&&"rtl"===t?-1:1},$B=function(e,t,n,r,o){var a=SB(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,u=t.contains(s),l=!1,c=i>0,d=0,f=0;do{var p=ID(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&$D(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},Rg=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ZR=function(e){return[e.deltaX,e.deltaY]},eT=function(e){return e&&"current"in e?e.current:e},IB=function(e,t){return e[0]===t[0]&&e[1]===t[1]},CB=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},EB=0,Oh=[];function PB(e){var t=M.useRef([]),n=M.useRef([0,0]),r=M.useRef(),o=M.useState(EB++)[0],a=M.useState(d$)[0],i=M.useRef(e);M.useEffect((function(){i.current=e}),[e]),M.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=O2([e.lockRef.current],(e.shards||[]).map(eT),!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!i.current.allowPinchZoom;var o,a=Rg(e),s=n.current,u="deltaX"in e?e.deltaX:s[0]-a[0],l="deltaY"in e?e.deltaY:s[1]-a[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=JR(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=JR(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 $B(p,t,e,"h"===p?u:l,!0)}),[]),u=M.useCallback((function(e){var n=e;if(Oh.length&&Oh[Oh.length-1]===a){var r="deltaY"in n?ZR(n):Rg(n),o=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&IB(e.delta,r)}))[0];if(o&&o.should)return void(n.cancelable&&n.preventDefault());if(!o){var u=(i.current.shards||[]).map(eT).filter(Boolean).filter((function(e){return e.contains(n.target)}));(u.length>0?s(n,u[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),l=M.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:RB(r)};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),c=M.useCallback((function(e){n.current=Rg(e),r.current=void 0}),[]),d=M.useCallback((function(t){l(t.type,ZR(t),t.target,s(t,e.lockRef.current))}),[]),f=M.useCallback((function(t){l(t.type,Rg(t),t.target,s(t,e.lockRef.current))}),[]);M.useEffect((function(){return Oh.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",u,Th),document.addEventListener("touchmove",u,Th),document.addEventListener("touchstart",c,Th),function(){Oh=Oh.filter((function(e){return e!==a})),document.removeEventListener("wheel",u,Th),document.removeEventListener("touchmove",u,Th),document.removeEventListener("touchstart",c,Th)}}),[]);var p=e.removeScrollBar,m=e.inert;return M.createElement(M.Fragment,null,m?M.createElement(a,{styles:CB(o)}):null,p?M.createElement(L2,{gapMode:e.gapMode}):null)}function RB(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const TB=M2(xD,PB);var CD=M.forwardRef((function(e,t){return M.createElement(N0,qo({},e,{ref:t,sideCar:TB}))}));CD.classNames=N0.classNames;var z$="Dialog",[ED,DX]=F9(z$),[OB,$s]=ED(z$),PD=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=M.useRef(null),u=M.useRef(null),[l=!1,c]=V9({prop:r,defaultProp:o,onChange:a});return q.jsx(OB,{scope:t,triggerRef:s,contentRef:u,contentId:Zb(),titleId:Zb(),descriptionId:Zb(),open:l,onOpenChange:c,onOpenToggle:M.useCallback((()=>c((e=>!e))),[c]),modal:i,children:n})};PD.displayName=z$;var RD="DialogTrigger",TD=M.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=$s(RD,n),a=lp(t,o.triggerRef);return q.jsx(Dl.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":W$(o.open),...r,ref:a,onClick:pd(e.onClick,o.onOpenToggle)})}));TD.displayName=RD;var U$="DialogPortal",[AB,OD]=ED(U$,{forceMount:void 0}),AD=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=$s(U$,t);return q.jsx(AB,{scope:t,forceMount:n,children:M.Children.map(r,(e=>q.jsx(D0,{present:n||a.open,children:q.jsx(bD,{asChild:!0,container:o,children:e})})))})};AD.displayName=U$;var Yg="DialogOverlay",DD=M.forwardRef(((e,t)=>{const n=OD(Yg,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=$s(Yg,e.__scopeDialog);return a.modal?q.jsx(D0,{present:r||a.open,children:q.jsx(NB,{...o,ref:t})}):null}));DD.displayName=Yg;var DB=mD("DialogOverlay.RemoveScroll"),NB=M.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=$s(Yg,n);return q.jsx(CD,{as:DB,allowPinchZoom:!0,shards:[o.contentRef],children:q.jsx(Dl.div,{"data-state":W$(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),Jf="DialogContent",ND=M.forwardRef(((e,t)=>{const n=OD(Jf,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=$s(Jf,e.__scopeDialog);return q.jsx(D0,{present:r||a.open,children:a.modal?q.jsx(MB,{...o,ref:t}):q.jsx(kB,{...o,ref:t})})}));ND.displayName=Jf;var MB=M.forwardRef(((e,t)=>{const n=$s(Jf,e.__scopeDialog),r=M.useRef(null),o=lp(t,n.contentRef,r);return M.useEffect((()=>{const e=r.current;if(e)return g0(e)}),[]),q.jsx(MD,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pd(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()})),onPointerDownOutside:pd(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:pd(e.onFocusOutside,(e=>e.preventDefault()))})})),kB=M.forwardRef(((e,t)=>{const n=$s(Jf,e.__scopeDialog),r=M.useRef(!1),o=M.useRef(!1);return q.jsx(MD,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,i;null==(a=e.onCloseAutoFocus)||a.call(e,t),t.defaultPrevented||(r.current||null==(i=n.triggerRef.current)||i.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var a,i;null==(a=e.onInteractOutside)||a.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const s=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})})),MD=M.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=$s(Jf,n),u=M.useRef(null),l=lp(t,u);return gB(),q.jsxs(q.Fragment,{children:[q.jsx(wD,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:q.jsx(gD,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":W$(s.open),...i,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),q.jsxs(q.Fragment,{children:[q.jsx(LB,{titleId:s.titleId}),q.jsx(FB,{contentRef:u,descriptionId:s.descriptionId})]})]})})),V$="DialogTitle",kD=M.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=$s(V$,n);return q.jsx(Dl.h2,{id:o.titleId,...r,ref:t})}));kD.displayName=V$;var LD="DialogDescription",BD=M.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=$s(LD,n);return q.jsx(Dl.p,{id:o.descriptionId,...r,ref:t})}));BD.displayName=LD;var FD="DialogClose",jD=M.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=$s(FD,n);return q.jsx(Dl.button,{type:"button",...r,ref:t,onClick:pd(e.onClick,(()=>o.onOpenChange(!1)))})}));function W$(e){return e?"open":"closed"}jD.displayName=FD;var zD="DialogTitleWarning",[NX,UD]=B9(zD,{contentName:Jf,titleName:V$,docsSlug:"dialog"}),LB=({titleId:e})=>{const t=UD(zD),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return M.useEffect((()=>{e&&(document.getElementById(e)||console.error(n))}),[n,e]),null},BB="DialogDescriptionWarning",FB=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${UD(BB).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},jB=PD,zB=TD,UB=AD,VB=DD,WB=ND,qB=kD,GB=BD,HB=jD;function KB(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 VD=He.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),Kh=()=>{const e=He.useContext(VD);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};KB("[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 YB=24,QB=typeof window<"u"?op:Ke;function tT(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function XB(){return q$(/^Mac/)}function JB(){return q$(/^iPhone/)}function nT(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function ZB(){return q$(/^iPad/)||XB()&&navigator.maxTouchPoints>1}function WD(){return JB()||ZB()}function q$(e){return typeof window<"u"&&null!=window.navigator?e.test(window.navigator.platform):void 0}const ox=typeof document<"u"&&window.visualViewport;function rT(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function qD(e){for(rT(e)&&(e=e.parentElement);e&&!rT(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const eF=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ix,Tg=0;function tF(e={}){let{isDisabled:t}=e;QB((()=>{if(!t)return Tg++,1===Tg&&WD()&&(ix=nF()),()=>{Tg--,0===Tg&&(null==ix||ix())}}),[t])}function nF(){let e,t=0,n=window.pageXOffset,r=window.pageYOffset,o=tT(rF(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"));window.scrollTo(0,0);let a=tT(Xm(document,"touchstart",(n=>{e=qD(n.target),(e!==document.documentElement||e!==document.body)&&(t=n.changedTouches[0].pageY)}),{passive:!1,capture:!0}),Xm(document,"touchmove",(n=>{if(!e||e===document.documentElement||e===document.body)return void n.preventDefault();let r=n.changedTouches[0].pageY,o=e.scrollTop,a=e.scrollHeight-e.clientHeight;0!==a&&((o<=0&&r>t||o>=a&&r<t)&&n.preventDefault(),t=r)}),{passive:!1,capture:!0}),Xm(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}),Xm(document,"focus",(e=>{let t=e.target;SS(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",ox&&(ox.height<window.innerHeight?requestAnimationFrame((()=>{oT(t)})):ox.addEventListener("resize",(()=>oT(t)),{once:!0}))})))}),!0),Xm(window,"scroll",(()=>{window.scrollTo(0,0)})));return()=>{o(),a(),window.scrollTo(n,r)}}function rF(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Xm(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function oT(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=qD(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&&!eF.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function oF(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function iF(...e){return t=>e.forEach((e=>oF(e,t)))}function GD(...e){return M.useCallback(iF(...e),e)}const HD=new WeakMap;function Hr(e,t,n=!1){if(!(e&&e instanceof HTMLElement))return;let r={};Object.entries(t).forEach((([t,n])=>{t.startsWith("--")?e.style.setProperty(t,n):(r[t]=e.style[t],e.style[t]=n)})),!n&&HD.set(e,r)}function aF(e,t){if(!(e&&e instanceof HTMLElement))return;let n=HD.get(e);n&&(e.style[t]=n[t])}const Kr=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Og(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[Kr(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[Kr(t)?5:4]):null)}function sF(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 uF(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}const Hn={DURATION:.5,EASE:[.32,.72,0,1]},KD=.4,lF=.25,cF=100,YD=8,kf=16,$S=26,sx="vaul-dragging";function QD(e){const t=He.useRef(e);return He.useEffect((()=>{t.current=e})),He.useMemo((()=>(...e)=>null==t.current?void 0:t.current.call(t,...e)),[])}function dF({defaultProp:e,onChange:t}){const n=He.useState(e),[r]=n,o=He.useRef(r),a=QD(t);return He.useEffect((()=>{o.current!==r&&(a(r),o.current=r)}),[r,o,a]),n}function XD({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=dF({defaultProp:t,onChange:n}),a=void 0!==e,i=a?e:r,s=QD(n);return[i,He.useCallback((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[a,e,o,s])]}function fF({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:i,direction:s="bottom",container:u,snapToSequentialPoint:l}){const[c,d]=XD({prop:e,defaultProp:null==n?void 0:n[0],onChange:t}),[f,p]=He.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);He.useEffect((()=>{function e(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]);const m=He.useMemo((()=>c===(null==n?void 0:n[n.length-1])||null),[n,c]),h=He.useMemo((()=>null==n?void 0:n.findIndex((e=>e===c))),[n,c]),v=n&&n.length>0&&(a||0===a)&&!Number.isNaN(a)&&n[a]===c||!n,g=He.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)),Kr(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=He.useMemo((()=>null!==h?null==g?void 0:g[h]:null),[g,h]),b=He.useCallback((e=>{var t;const u=null!=(t=null==g?void 0:g.findIndex((t=>t===e)))?t:null;i(u),Hr(r.current,{transition:`transform ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`,transform:Kr(s)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),g&&u!==g.length-1&&u!==a&&u<a?Hr(o.current,{transition:`opacity ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`,opacity:"0"}):Hr(o.current,{transition:`opacity ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`,opacity:"1"}),d(null==n?void 0:n[Math.max(u,0)])}),[r.current,n,g,a,o,d]);return He.useEffect((()=>{if(c||e){var t;const r=null!=(t=null==n?void 0:n.findIndex((t=>t===e||t===c)))?t:-1;g&&-1!==r&&"number"==typeof g[r]&&b(g[r])}}),[c,e,n,g,b]),{isLastSnapPoint:m,activeSnapPoint:c,shouldFade:v,getPercentageDragged:function(e,t){if(!n||"number"!=typeof h||!g||void 0===a)return null;const r=h===a-1;if(h>=a&&t)return 0;if(r&&!t)return 1;if(!v&&!r)return null;const o=r?h+1:h-1,i=r?g[o]-g[o-1]:g[o+1]-g[o],s=e/Math.abs(i);return r?1-s:s},setActiveSnapPoint:d,activeSnapPointIndex:h,onRelease:function({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:i}){if(void 0===a)return;const u="bottom"===s||"right"===s?(y??0)-e:(y??0)+e,c=0===h,d=e>0;if(h===a-1&&Hr(o.current,{transition:`opacity ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`}),!l&&r>2&&!d)return void(i?t():b(g[0]));if(!l&&r>2&&d&&g&&n)return void b(g[n.length-1]);const f=null==g?void 0:g.reduce(((e,t)=>"number"!=typeof e||"number"!=typeof t?e:Math.abs(t-u)<Math.abs(e-u)?t:e)),p=Kr(s)?window.innerHeight:window.innerWidth;if(r>KD&&Math.abs(e)<.4*p){const e=d?1:-1;if(e>0&&m)return void b(g[n.length-1]);if(c&&e<0&&i&&t(),null===h)return;b(g[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<g[g.length-1]||("top"===s||"left"===s)&&t>g[g.length-1]||Hr(r.current,{transform:Kr(s)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})},snapPointsOffset:g}}const pF=()=>()=>{};function hF(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=Kh(),a=He.useRef(null),i=xn((()=>document.body.style.backgroundColor),[]);function s(){return(window.innerWidth-26)/window.innerWidth}He.useEffect((()=>{if(t&&n){a.current&&clearTimeout(a.current);const t=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!t)return;uF(r&&!o?ax(document.body,{background:"black"}):pF,ax(t,{transformOrigin:Kr(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${Hn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Hn.EASE.join(",")})`}));const n=ax(t,{borderRadius:"8px",overflow:"hidden",...Kr(e)?{transform:`scale(${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(),a.current=window.setTimeout((()=>{i?document.body.style.background=i:document.body.style.removeProperty("background")}),1e3*Hn.DURATION)}}}),[t,n,i])}let Jm=null;function mF({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:a}){const[i,s]=He.useState((()=>typeof window<"u"?window.location.href:"")),u=He.useRef(0),l=He.useCallback((()=>{if(nT()&&null===Jm&&e&&!a){Jm={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:e,innerHeight:t}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:-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=He.useCallback((()=>{if(nT()&&null!==Jm&&!a){const e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Jm),window.requestAnimationFrame((()=>{o&&i!==window.location.href?s(window.location.href):window.scrollTo(t,e)})),Jm=null}}),[i]);return He.useEffect((()=>{function e(){u.current=window.scrollY}return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[]),He.useEffect((()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&l(),t||window.setTimeout((()=>{c()}),500)):c())}),[e,r,i,t,n,l,c]),{restorePositionSetting:c}}function JD({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:o,snapPoints:a,shouldScaleBackground:i=!1,setBackgroundColorOnScale:s=!0,closeThreshold:u=lF,scrollLockTimeout:l=cF,dismissible:c=!0,handleOnly:d=!1,fadeFromIndex:f=a&&a.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:h,modal:v=!0,onClose:g,nested:y,noBodyStyles:b,direction:w="bottom",defaultOpen:x=!1,disablePreventScroll:_=!0,snapToSequentialPoint:S=!1,preventScrollRestoration:I=!1,repositionInputs:A=!0,onAnimationEnd:E,container:k,autoFocus:M=!1}){var C,P;const[N=!1,O]=XD({defaultProp:x,prop:e,onChange:e=>{null==t||t(e),!e&&!y&&ue(),setTimeout((()=>{null==E||E(e)}),1e3*Hn.DURATION),e&&!v&&typeof window<"u"&&window.requestAnimationFrame((()=>{document.body.style.pointerEvents="auto"})),e||(document.body.style.pointerEvents="auto")}}),[T,q]=He.useState(!1),[R,j]=He.useState(!1),[D,L]=He.useState(!1),z=He.useRef(null),$=He.useRef(null),B=He.useRef(null),F=He.useRef(null),V=He.useRef(null),U=He.useRef(!1),W=He.useRef(null),H=He.useRef(0),G=He.useRef(!1),K=He.useRef(0),Q=He.useRef(null),Y=He.useRef((null==(C=Q.current)?void 0:C.getBoundingClientRect().height)||0),X=He.useRef((null==(P=Q.current)?void 0:P.getBoundingClientRect().width)||0),J=He.useRef(0),Z=He.useCallback((e=>{a&&e===oe.length-1&&($.current=new Date)}),[]),{activeSnapPoint:ee,activeSnapPointIndex:te,setActiveSnapPoint:ne,onRelease:re,snapPointsOffset:oe,onDrag:ae,shouldFade:ie,getPercentageDragged:se}=fF({snapPoints:a,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:Q,fadeFromIndex:f,overlayRef:z,onSnapPointChange:Z,direction:w,container:k,snapToSequentialPoint:S});tF({isDisabled:!N||R||!v||D||!T||!A||!_});const{restorePositionSetting:ue}=mF({isOpen:N,modal:v,nested:y,hasBeenOpened:T,preventScrollRestoration:I,noBodyStyles:b});function le(){return(window.innerWidth-26)/window.innerWidth}function ce(e,t){var n,r;let o=e;const a=null==(n=window.getSelection())?void 0:n.toString(),i=Q.current?Og(Q.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!==i&&("bottom"===w?i>0:i<0))return!0;if(a&&a.length>0)return!1;if(s.getTime()-(null==(r=V.current)?void 0:r.getTime())<l&&0===i||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){!R||!Q.current||(Q.current.classList.remove(sx),U.current=!1,j(!1),F.current=new Date),null==g||g(),e||O(!1),setTimeout((()=>{a&&ne(a[0])}),1e3*Hn.DURATION)}function fe(){if(!Q.current)return;const e=document.querySelector("[data-vaul-drawer-wrapper]"),t=Og(Q.current,w);Hr(Q.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`}),Hr(z.current,{transition:`opacity ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`,opacity:"1"}),i&&t&&t>0&&N&&Hr(e,{borderRadius:"8px",overflow:"hidden",...Kr(w)?{transform:`scale(${le()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${le()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Hn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Hn.EASE.join(",")})`},!0)}return He.useEffect((()=>{var e;function t(){if(!Q.current||!A)return;if(SS(document.activeElement)||G.current){var e;const t=(null==(e=window.visualViewport)?void 0:e.height)||0,n=window.innerHeight;let r=n-t;const o=Q.current.getBoundingClientRect().height||0,i=o>.8*n;J.current||(J.current=o);const s=Q.current.getBoundingClientRect().top;if(Math.abs(K.current-r)>60&&(G.current=!G.current),a&&a.length>0&&oe&&te){r+=oe[te]||0}if(K.current=r,o>t||G.current){const e=Q.current.getBoundingClientRect().height;let n=e;e>t&&(n=t-(i?s:26)),Q.current.style.height=h?e-Math.max(r,0)+"px":`${Math.max(n,t-s)}px`}else Q.current.style.height=`${J.current}px`;a&&a.length>0&&!G.current?Q.current.style.bottom="0px":Q.current.style.bottom=`${Math.max(r,0)}px`}}return null==(e=window.visualViewport)||e.addEventListener("resize",t),()=>{var e;return null==(e=window.visualViewport)?void 0:e.removeEventListener("resize",t)}}),[te,a,oe]),He.useEffect((()=>(N&&(Hr(document.documentElement,{scrollBehavior:"auto"}),$.current=new Date),()=>{aF(document.documentElement,"scrollBehavior")})),[N]),He.createElement(jB,{defaultOpen:x,onOpenChange:e=>{!c&&!e||(e?q(!0):de(!0),O(e))},open:N},He.createElement(VD.Provider,{value:{activeSnapPoint:ee,snapPoints:a,setActiveSnapPoint:ne,drawerRef:Q,overlayRef:z,onOpenChange:t,onPress:function(e){var t,n;!c&&!a||Q.current&&!Q.current.contains(e.target)||(Y.current=(null==(t=Q.current)?void 0:t.getBoundingClientRect().height)||0,X.current=(null==(n=Q.current)?void 0:n.getBoundingClientRect().width)||0,j(!0),B.current=new Date,WD()&&window.addEventListener("touchend",(()=>U.current=!1),{once:!0}),e.target.setPointerCapture(e.pointerId),H.current=Kr(w)?e.pageY:e.pageX)},onRelease:function(e){if(!R||!Q.current)return;Q.current.classList.remove(sx),U.current=!1,j(!1),F.current=new Date;const t=Og(Q.current,w);if(!ce(e.target,!1)||!t||Number.isNaN(t)||null===B.current)return;const n=F.current.getTime()-B.current.getTime(),r=H.current-(Kr(w)?e.pageY:e.pageX),i=Math.abs(r)/n;if(i>.05&&(L(!0),setTimeout((()=>{L(!1)}),200)),a)return re({draggedDistance:r*("bottom"===w||"right"===w?1:-1),closeDrawer:de,velocity:i,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(i>KD)return de(),void(null==o||o(e,!1));var s;const l=Math.min(null!=(s=Q.current.getBoundingClientRect().height)?s:0,window.innerHeight);var d;const f=Math.min(null!=(d=Q.current.getBoundingClientRect().width)?d:0,window.innerWidth),p="left"===w||"right"===w;if(Math.abs(t)>=(p?f:l)*u)return de(),void(null==o||o(e,!1));null==o||o(e,!0),fe()},onDrag:function(e){if(Q.current&&R){const t="bottom"===w||"right"===w?1:-1,n=(H.current-(Kr(w)?e.pageY:e.pageX))*t,o=n>0,s=a&&!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||!U.current&&!ce(e.target,o))return;if(Q.current.classList.add(sx),U.current=!0,Hr(Q.current,{transition:"none"}),Hr(z.current,{transition:"none"}),a&&ae({draggedDistance:n}),o&&!a){const e=sF(n),r=Math.min(-1*e,0)*t;return void Hr(Q.current,{transform:Kr(w)?`translate3d(0, ${r}px, 0)`:`translate3d(${r}px, 0, 0)`})}const m=1-d;if((ie||f&&te===f-1)&&(null==r||r(e,d),Hr(z.current,{opacity:`${m}`,transition:"none"},!0)),l&&z.current&&i){const e=Math.min(le()+d*(1-le()),1),t=8-8*d,n=Math.max(0,14-14*d);Hr(l,{borderRadius:`${t}px`,transform:Kr(w)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:"none"},!0)}if(!a){const e=u*t;Hr(Q.current,{transform:Kr(w)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}},dismissible:c,handleOnly:d,isOpen:N,isDragging:R,shouldFade:ie,closeDrawer:de,onNestedDrag:function(e,t){if(t<0)return;const n=(window.innerWidth-16)/window.innerWidth,r=n+t*(1-n),o=16*t-16;Hr(Q.current,{transform:Kr(w)?`scale(${r}) translate3d(0, ${o}px, 0)`:`scale(${r}) translate3d(${o}px, 0, 0)`,transition:"none"})},onNestedOpenChange:function(e){const t=e?(window.innerWidth-16)/window.innerWidth:1,n=e?-16:0;W.current&&window.clearTimeout(W.current),Hr(Q.current,{transition:`transform ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`,transform:`scale(${t}) translate3d(0, ${n}px, 0)`}),!e&&Q.current&&(W.current=setTimeout((()=>{const e=Og(Q.current,w);Hr(Q.current,{transition:"none",transform:Kr(w)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}),500))},onNestedRelease:function(e,t){const n=Kr(w)?window.innerHeight:window.innerWidth,r=t?(n-16)/n:1,o=t?-16:0;t&&Hr(Q.current,{transition:`transform ${Hn.DURATION}s cubic-bezier(${Hn.EASE.join(",")})`,transform:Kr(w)?`scale(${r}) translate3d(0, ${o}px, 0)`:`scale(${r}) translate3d(${o}px, 0, 0)`})},keyboardIsOpen:G,modal:v,snapPointsOffset:oe,direction:w,shouldScaleBackground:i,setBackgroundColorOnScale:s,noBodyStyles:b,container:k,autoFocus:M}},n))}const ZD=He.forwardRef((function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:a,isOpen:i,modal:s}=Kh(),u=GD(t,n),l=r&&r.length>0;return s?He.createElement(VB,{onMouseUp:o,ref:u,"data-vaul-overlay":"","data-vaul-snap-points":i&&l?"true":"false","data-vaul-snap-points-overlay":i&&a?"true":"false",...e}):(typeof window<"u"&&window.requestAnimationFrame((()=>{document.body.style.pointerEvents="auto"})),null)}));ZD.displayName="Drawer.Overlay";const eN=He.forwardRef((function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},o){const{drawerRef:a,onPress:i,onRelease:s,onDrag:u,keyboardIsOpen:l,snapPointsOffset:c,modal:d,isOpen:f,direction:p,snapPoints:m,container:h,handleOnly:v,autoFocus:g}=Kh(),[y,b]=He.useState(!1),w=GD(o,a),x=He.useRef(null),_=He.useRef(null),S=He.useRef(!1),I=m&&m.length>0;hF();function A(e){x.current=null,S.current=!1,s(e)}return He.useEffect((()=>{I&&window.requestAnimationFrame((()=>{b(!0)}))}),[]),He.createElement(WB,{"data-vaul-drawer-direction":p,"data-vaul-drawer":"","data-vaul-delayed-snap-points":y?"true":"false","data-vaul-snap-points":f&&I?"true":"false","data-vaul-custom-container":h?"true":"false",...r,ref:w,style:c&&c.length>0?{"--snap-point-height":`${c[0]}px`,...t}:t,onPointerDown:e=>{v||(null==r.onPointerDown||r.onPointerDown.call(r,e),x.current={x:e.pageX,y:e.pageY},i(e))},onOpenAutoFocus:e=>{null==n||n(e),g||e.preventDefault()},onPointerDownOutside:t=>{null==e||e(t),d&&!t.defaultPrevented?l.current&&(l.current=!1):t.preventDefault()},onFocusOutside:e=>{d||e.preventDefault()},onPointerMove:e=>{if(_.current=e,v||(null==r.onPointerMove||r.onPointerMove.call(r,e),!x.current))return;const t=e.pageY-x.current.y,n=e.pageX-x.current.x,o="touch"===e.pointerType?10:2;((e,t,n=0)=>{if(S.current)return!0;const r=Math.abs(e.y),o=Math.abs(e.x),a=o>r,i=["bottom","right"].includes(t)?1:-1;if("left"===t||"right"===t){if(!(e.x*i<0)&&o>=0&&o<=n)return a}else if(!(e.y*i<0)&&r>=0&&r<=n)return!a;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),A(_.current)},onContextMenu:e=>{null==r.onContextMenu||r.onContextMenu.call(r,e),A(_.current)}})}));eN.displayName="Drawer.Content";const vF=250,gF=120,tN=He.forwardRef((function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:o,isDragging:a,snapPoints:i,activeSnapPoint:s,setActiveSnapPoint:u,dismissible:l,handleOnly:c,isOpen:d,onPress:f,onDrag:p}=Kh(),m=He.useRef(null),h=He.useRef(!1);function v(){window.clearTimeout(m.current),h.current=!1}return He.createElement("div",{onClick:function(){h.current?v():window.setTimeout((()=>{!function(){if(a||e||h.current)return void v();if(v(),(!i||0===i.length)&&l)return void o();if(s===i[i.length-1]&&l)return void o();const t=i.findIndex((e=>e===s));if(-1===t)return;const n=i[t+1];u(n)}()}),gF)},onPointerCancel:v,onPointerDown:e=>{c&&f(e),m.current=window.setTimeout((()=>{h.current=!0}),vF)},onPointerMove:e=>{c&&p(e)},ref:r,"data-vaul-drawer-visible":d?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},He.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))}));function yF({onDrag:e,onOpenChange:t,...n}){const{onNestedDrag:r,onNestedOpenChange:o,onNestedRelease:a}=Kh();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return He.createElement(JD,{nested:!0,onClose:()=>{o(!1)},onDrag:(t,n)=>{r(t,n),null==e||e(t,n)},onOpenChange:e=>{e&&o(e)},onRelease:a,...n})}function wF(e){const t=Kh(),{container:n=t.container,...r}=e;return He.createElement(UB,{container:n,...r})}tN.displayName="Drawer.Handle";const Sd={Root:JD,NestedRoot:yF,Content:eN,Overlay:ZD,Trigger:zB,Portal:wF,Handle:tN,Close:HB,Title:qB,Description:GB},_F=Sd.Portal,nN=M.forwardRef((({className:e,...t},n)=>q.jsx(Sd.Overlay,{ref:n,className:we("fixed inset-0 z-50 bg-black/5",e),...t})));nN.displayName=Sd.Overlay.displayName;const bF=M.forwardRef((({className:e,children:t,direction:n="bottom",...r},o)=>q.jsxs(_F,{children:[q.jsx(nN,{}),q.jsxs(Sd.Content,{ref:o,className:we("fixed z-50 border bg-background shadow-lg","bottom"===n&&"inset-x-0 bottom-0 mt-24 flex h-auto flex-col rounded-t-sm","top"===n&&"inset-x-0 top-0 mb-24 flex h-auto flex-col rounded-b-sm","left"===n&&"inset-y-0 left-0 flex h-full flex-col","right"===n&&"inset-y-0 right-0 flex h-full w-[346px] flex-col sm:w-[435px]",e),...r,children:["bottom"===n&&q.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]})));bF.displayName="DrawerContent";const xF=M.forwardRef((({className:e,...t},n)=>q.jsx(Sd.Title,{ref:n,className:we("text-lg font-semibold leading-none tracking-tight",e),...t})));xF.displayName=Sd.Title.displayName;const SF=M.forwardRef((({className:e,...t},n)=>q.jsx(Sd.Description,{ref:n,className:we("text-sm text-muted-foreground",e),...t})));function G$(e){const t=e+"CollectionProvider",[n,r]=ai(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=e+"CollectionSlot",s=e+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=He.useRef(null),a=He.useRef(new Map).current;return He.createElement(o,{scope:t,itemMap:a,collectionRef:r},n)},Slot:He.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=Ht(t,a(i,n).collectionRef);return He.createElement(Hf,{ref:o},r)})),ItemSlot:He.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,i=He.useRef(null),l=Ht(t,i),c=a(s,n);return He.useEffect((()=>(c.itemMap.set(i,{ref:i,...o}),()=>{c.itemMap.delete(i)}))),He.createElement(Hf,{[u]:"",ref:l},r)}))},function(t){const n=a(e+"CollectionConsumer",t);return He.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]}SF.displayName=Sd.Description.displayName;const $F=Il(void 0);function H$(e){const t=rp($F);return e||t||"ltr"}const IF=["top","right","bottom","left"],gd=Math.min,ta=Math.max,Qg=Math.round,Ag=Math.floor,yd=e=>({x:e,y:e}),CF={left:"right",right:"left",bottom:"top",top:"bottom"},EF={start:"end",end:"start"};function IS(e,t,n){return ta(e,gd(t,n))}function Cl(e,t){return"function"==typeof e?e(t):e}function El(e){return e.split("-")[0]}function Yh(e){return e.split("-")[1]}function K$(e){return"x"===e?"y":"x"}function Y$(e){return"y"===e?"height":"width"}function wd(e){return["top","bottom"].includes(El(e))?"y":"x"}function Q$(e){return K$(wd(e))}function PF(e,t,n){void 0===n&&(n=!1);const r=Yh(e),o=Q$(e),a=Y$(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Xg(i)),[i,Xg(i)]}function RF(e){const t=Xg(e);return[CS(e),t,CS(t)]}function CS(e){return e.replace(/start|end/g,(e=>EF[e]))}function TF(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}function OF(e,t,n,r){const o=Yh(e);let a=TF(El(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(CS)))),a}function Xg(e){return e.replace(/left|right|bottom|top/g,(e=>CF[e]))}function AF(e){return{top:0,right:0,bottom:0,left:0,...e}}function rN(e){return"number"!=typeof e?AF(e):{top:e,right:e,bottom:e,left:e}}function Jg(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 iT(e,t,n){let{reference:r,floating:o}=e;const a=wd(t),i=Q$(t),s=Y$(i),u=El(t),l="y"===a,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(Yh(t)){case"start":p[i]-=f*(n&&l?-1:1);break;case"end":p[i]+=f*(n&&l?-1:1)}return p}const DF=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),u=await(null==i.isRTL?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=iT(l,r,u),f=r,p={},m=0;for(let n=0;n<s.length;n++){const{name:a,fn:h}=s[n],{x:v,y:g,data:y,reset:b}=await h({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:l,platform:i,elements:{reference:e,floating:t}});c=v??c,d=g??d,p={...p,[a]:{...p[a],...y}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(l=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:d}=iT(l,f,u))),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function wv(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Cl(t,e),m=rN(p),h=s[f?"floating"===d?"reference":"floating":d],v=Jg(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(h)))||n?h:h.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:c,strategy:u})),g="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await(null==a.isElement?void 0:a.isElement(y))&&await(null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},w=Jg(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:y,strategy:u}):g);return{top:(v.top-w.top+m.top)/b.y,bottom:(w.bottom-v.bottom+m.bottom)/b.y,left:(v.left-w.left+m.left)/b.x,right:(w.right-v.right+m.right)/b.x}}const NF=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:u}=t,{element:l,padding:c=0}=Cl(e,t)||{};if(null==l)return{};const d=rN(c),f={x:n,y:r},p=Q$(o),m=Y$(p),h=await i.getDimensions(l),v="y"===p,g=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],_=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l));let S=_?_[b]:0;(!S||!await(null==i.isElement?void 0:i.isElement(_)))&&(S=s.floating[b]||a.floating[m]);const I=w/2-x/2,A=S/2-h[m]/2-1,E=gd(d[g],A),k=gd(d[y],A),M=E,C=S-h[m]-k,P=S/2-h[m]/2+I,N=IS(M,P,C),O=!u.arrow&&null!=Yh(o)&&P!==N&&a.reference[m]/2-(P<M?E:k)-h[m]/2<0,T=O?P<M?P-M:P-C:0;return{[p]:f[p]+T,data:{[p]:N,centerOffset:P-N-T,...O&&{alignmentOffset:T}},reset:O}}}),MF=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:u,elements:l}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=Cl(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const g=El(o),y=wd(s),b=El(s)===s,w=await(null==u.isRTL?void 0:u.isRTL(l.floating)),x=f||(b||!h?[Xg(s)]:RF(s)),_="none"!==m;!f&&_&&x.push(...OF(s,h,m,w));const S=[s,...x],I=await wv(t,v),A=[];let E=(null==(r=a.flip)?void 0:r.overflows)||[];if(c&&A.push(I[g]),d){const e=PF(o,i,w);A.push(I[e[0]],I[e[1]])}if(E=[...E,{placement:o,overflows:A}],!A.every((e=>e<=0))){var k,M;const e=((null==(k=a.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=wd(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:C[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}};function aT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function sT(e){return IF.some((t=>e[t]>=0))}const kF=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Cl(e,t);switch(r){case"referenceHidden":{const e=aT(await wv(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:sT(e)}}}case"escaped":{const e=aT(await wv(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:sT(e)}}}default:return{}}}}};async function LF(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=El(n),s=Yh(n),u="y"===wd(n),l=["left","top"].includes(i)?-1:1,c=a&&u?-1:1,d=Cl(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 BF=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,u=await LF(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:a+u.y,data:{...u,placement:i}}}}},FF=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=Cl(e,t),l={x:n,y:r},c=await wv(t,u),d=wd(El(o)),f=K$(d);let p=l[f],m=l[d];if(a){const e="y"===f?"bottom":"right";p=IS(p+c["y"===f?"top":"left"],p,p-c[e])}if(i){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]:a,[d]:i}}}}}},jF=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:u=!0,crossAxis:l=!0}=Cl(e,t),c={x:n,y:r},d=wd(o),f=K$(d);let p=c[f],m=c[d];const h=Cl(s,t),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+v.mainAxis,n=a.reference[f]+a.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var g,y;const e="y"===f?"width":"height",t=["top","left"].includes(El(o)),n=a.reference[d]-a.floating[e]+(t&&(null==(g=i.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(y=i.offset)?void 0:y[d])||0)-(t?v.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},zF=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:u=()=>{},...l}=Cl(e,t),c=await wv(t,l),d=El(o),f=Yh(o),p="y"===wd(o),{width:m,height:h}=a.floating;let v,g;"top"===d||"bottom"===d?(v=d,g=f===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,v="end"===f?"top":"bottom");const y=h-c.top-c.bottom,b=m-c.left-c.right,w=gd(h-c[v],y),x=gd(m-c[g],b),_=!t.middlewareData.shift;let S=w,I=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(I=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=y),_&&!f){const e=ta(c.left,0),t=ta(c.right,0),n=ta(c.top,0),r=ta(c.bottom,0);p?I=m-2*(0!==e||0!==t?e+t:ta(c.left,c.right)):S=h-2*(0!==n||0!==r?n+r:ta(c.top,c.bottom))}await u({...t,availableWidth:I,availableHeight:S});const A=await i.getDimensions(s.floating);return m!==A.width||h!==A.height?{reset:{rects:!0}}:{}}}};function M0(){return typeof window<"u"}function _d(e){return oN(e)?(e.nodeName||"").toLowerCase():"#document"}function ra(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Nl(e){var t;return null==(t=(oN(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function oN(e){return!!M0()&&(e instanceof Node||e instanceof ra(e).Node)}function mu(e){return!!M0()&&(e instanceof Element||e instanceof ra(e).Element)}function vu(e){return!!M0()&&(e instanceof HTMLElement||e instanceof ra(e).HTMLElement)}function uT(e){return!(!M0()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof ra(e).ShadowRoot)}function Bv(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ja(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function UF(e){return["table","td","th"].includes(_d(e))}function VF(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch{return!1}}))}function X$(e){const t=J$(),n=mu(e)?ja(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 iN(e){let t=jh(e);for(;vu(t)&&!k0(t);){if(X$(t))return t;if(VF(t))return null;t=jh(t)}return null}function J$(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function k0(e){return["html","body","#document"].includes(_d(e))}function ja(e){return ra(e).getComputedStyle(e)}function L0(e){return mu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function jh(e){if("html"===_d(e))return e;const t=e.assignedSlot||e.parentNode||uT(e)&&e.host||Nl(e);return uT(t)?t.host:t}function aN(e){const t=jh(e);return k0(t)?e.ownerDocument?e.ownerDocument.body:e.body:vu(t)&&Bv(t)?t:aN(t)}function _v(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=aN(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=ra(o);if(a){const e=WF(i);return t.concat(i,i.visualViewport||[],Bv(o)?o:[],e&&n?_v(e):[])}return t.concat(o,_v(o,[],n))}function WF(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function sN(e){const t=ja(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=vu(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=Qg(n)!==a||Qg(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Z$(e){return mu(e)?e:e.contextElement}function kh(e){const t=Z$(e);if(!vu(t))return yd(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=sN(t);let i=(a?Qg(n.width):n.width)/r,s=(a?Qg(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const qF=yd(0);function uN(e){const t=ra(e);return J$()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:qF}function GF(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ra(e))&&t}function Zf(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=Z$(e);let i=yd(1);t&&(r?mu(r)&&(i=kh(r)):i=kh(e));const s=GF(a,n,r)?uN(a):yd(0);let u=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,c=o.width/i.x,d=o.height/i.y;if(a){const e=ra(a),t=r&&mu(r)?ra(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=kh(n),t=n.getBoundingClientRect(),r=ja(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,l*=e.y,c*=e.x,d*=e.y,u+=o,l+=a,n=ra(n).frameElement}}return Jg({width:c,height:d,x:u,y:l})}const HF=[":popover-open",":modal"];function lN(e){let t=!1,n=0,r=0;if(HF.forEach((n=>{!function(n){try{t=t||e.matches(n)}catch{}}(n)})),t){const t=iN(e);if(t){const e=t.getBoundingClientRect();n=e.x,r=e.y}}return[t,n,r]}function KF(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=Nl(r),[i]=t?lN(t.floating):[!1];if(r===a||i)return n;let s={scrollLeft:0,scrollTop:0},u=yd(1);const l=yd(0),c=vu(r);if((c||!c&&"fixed"!==o)&&(("body"!==_d(r)||Bv(a))&&(s=L0(r)),vu(r))){const e=Zf(r);u=kh(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 YF(e){return Array.from(e.getClientRects())}function cN(e){return Zf(Nl(e)).left+L0(e).scrollLeft}function QF(e){const t=Nl(e),n=L0(e),r=e.ownerDocument.body,o=ta(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ta(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+cN(e);const s=-n.scrollTop;return"rtl"===ja(r).direction&&(i+=ta(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}function XF(e,t){const n=ra(e),r=Nl(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,u=0;if(o){a=o.width,i=o.height;const e=J$();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:s,y:u}}function JF(e,t){const n=Zf(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=vu(e)?kh(e):yd(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}function lT(e,t,n){let r;if("viewport"===t)r=XF(e,n);else if("document"===t)r=QF(Nl(e));else if(mu(t))r=JF(t,n);else{const n=uN(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Jg(r)}function dN(e,t){const n=jh(e);return!(n===t||!mu(n)||k0(n))&&("fixed"===ja(n).position||dN(n,t))}function ZF(e,t){const n=t.get(e);if(n)return n;let r=_v(e,[],!1).filter((e=>mu(e)&&"body"!==_d(e))),o=null;const a="fixed"===ja(e).position;let i=a?jh(e):e;for(;mu(i)&&!k0(i);){const t=ja(i),n=X$(i);!n&&"fixed"===t.position&&(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Bv(i)&&!n&&dN(e,i))?r=r.filter((e=>e!==i)):o=t,i=jh(i)}return t.set(e,r),r}function ej(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?ZF(t,this._c):[].concat(n),r],i=a[0],s=a.reduce(((e,n)=>{const r=lT(t,n,o);return e.top=ta(r.top,e.top),e.right=gd(r.right,e.right),e.bottom=gd(r.bottom,e.bottom),e.left=ta(r.left,e.left),e}),lT(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function tj(e){const{width:t,height:n}=sN(e);return{width:t,height:n}}function nj(e,t,n,r){const o=vu(t),a=Nl(t),i="fixed"===n,s=Zf(e,!0,i,t);let u={scrollLeft:0,scrollTop:0};const l=yd(0);if(o||!o&&!i)if(("body"!==_d(t)||Bv(a))&&(u=L0(t)),o){const e=Zf(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&(l.x=cN(a));let c=s.left+u.scrollLeft-l.x,d=s.top+u.scrollTop-l.y;const[f,p,m]=lN(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 cT(e,t){return vu(e)&&"fixed"!==ja(e).position?t?t(e):e.offsetParent:null}function fN(e,t){const n=ra(e);if(!vu(e))return n;let r=cT(e,t);for(;r&&UF(r)&&"static"===ja(r).position;)r=cT(r,t);return r&&("html"===_d(r)||"body"===_d(r)&&"static"===ja(r).position&&!X$(r))?n:r||iN(e)||n}const rj=async function(e){const t=this.getOffsetParent||fN,n=this.getDimensions;return{reference:nj(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}};function oj(e){return"rtl"===ja(e).direction}const ij={convertOffsetParentRelativeRectToViewportRelativeRect:KF,getDocumentElement:Nl,getClippingRect:ej,getOffsetParent:fN,getElementRects:rj,getClientRects:YF,getDimensions:tj,getScale:kh,isElement:mu,isRTL:oj};function aj(e,t){let n,r=null;const o=Nl(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),a();const{left:l,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-Ag(c)+"px "+-Ag(o.clientWidth-(l+d))+"px "+-Ag(o.clientHeight-(c+f))+"px "+-Ag(l)+"px",threshold:ta(0,gd(1,u))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==u){if(!m)return i();t?i(!1,t):n=setTimeout((()=>{i(!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),a}function sj(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,l=Z$(e),c=o||a?[...l?_v(l):[],..._v(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=l&&s?aj(l,n):null;let f=-1,p=null;i&&(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?Zf(e):null;return u&&function t(){const r=Zf(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),a&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(m)}}const uj=FF,lj=MF,cj=zF,dj=kF,dT=NF,fj=jF,pj=(e,t,n)=>{const r=new Map,o={platform:ij,...n},a={...o.platform,_c:r};return DF(e,t,{...o,platform:a})};var Ug=typeof document<"u"?op:Ke;function Zg(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(!Zg(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||Zg(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function pN(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fT(e,t){const n=pN(e);return Math.round(t*n)/n}function ux(e){const t=M.useRef(e);return Ug((()=>{t.current=e})),t}function hj(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},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);Zg(f,r)||p(r);const[m,h]=M.useState(null),[v,g]=M.useState(null),y=M.useCallback((e=>{e!==_.current&&(_.current=e,h(e))}),[]),b=M.useCallback((e=>{e!==S.current&&(S.current=e,g(e))}),[]),w=a||m,x=i||v,_=M.useRef(null),S=M.useRef(null),I=M.useRef(c),A=null!=u,E=ux(u),k=ux(o),C=ux(l),P=M.useCallback((()=>{if(!_.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};k.current&&(e.platform=k.current),pj(_.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==C.current};N.current&&!Zg(I.current,t)&&(I.current=t,yu.flushSync((()=>{d(t)})))}))}),[f,t,n,k,C]);Ug((()=>{!1===l&&I.current.isPositioned&&(I.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[l]);const N=M.useRef(!1);Ug((()=>(N.current=!0,()=>{N.current=!1})),[]),Ug((()=>{if(w&&(_.current=w),x&&(S.current=x),w&&x){if(E.current)return E.current(w,x,P);P()}}),[w,x,P,E,A]);const O=M.useMemo((()=>({reference:_,floating:S,setReference:y,setFloating:b})),[y,b]),T=M.useMemo((()=>({reference:w,floating:x})),[w,x]),q=M.useMemo((()=>{const e={position:n,left:0,top:0};if(!T.floating)return e;const t=fT(T.floating,c.x),r=fT(T.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...pN(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:P,refs:O,elements:T,floatingStyles:q})),[c,P,O,T,q])}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?dT({element:n.current,padding:r}).fn(t):{}:n?dT({element:n,padding:r}).fn(t):{}}}),vj=(e,t)=>({...BF(e),options:[e,t]}),gj=(e,t)=>({...uj(e),options:[e,t]}),yj=(e,t)=>({...fj(e),options:[e,t]}),wj=(e,t)=>({...lj(e),options:[e,t]}),_j=(e,t)=>({...cj(e),options:[e,t]}),bj=(e,t)=>({...dj(e),options:[e,t]}),xj=(e,t)=>({...mj(e),options:[e,t]}),Sj=Le(((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return ae(ht.svg,Ee({},a,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:ae("polygon",{points:"0,0 30,0 15,10"}))})),$j=Sj,hN="Popper",[mN,Qh]=ai(hN),[Ij,vN]=mN(hN),Cj=e=>{const{__scopePopper:t,children:n}=e,[r,o]=ut(null);return ae(Ij,{scope:t,anchor:r,onAnchorChange:o},n)},Ej="PopperAnchor",Pj=Le(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=vN(Ej,n),i=We(null),s=Ht(t,i);return Ke((()=>{a.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:ae(ht.div,Ee({},o,{ref:s}))})),gN="PopperContent",[Rj,Tj]=mN(gN),Oj=Le(((e,t)=>{var n,r,o,a,i,s,u,l;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:v=!0,collisionBoundary:g=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:w=!1,updatePositionStrategy:x="optimized",onPlaced:_,...S}=e,I=vN(gN,c),[A,E]=ut(null),k=Ht(t,(e=>E(e))),[M,C]=ut(null),P=O0(M),N=null!==(n=null==P?void 0:P.width)&&void 0!==n?n:0,O=null!==(r=null==P?void 0:P.height)&&void 0!==r?r:0,T=d+("center"!==p?"-"+p:""),q="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},R=Array.isArray(g)?g:[g],j=R.length>0,D={padding:q,boundary:R.filter(Mj),altBoundary:j},{refs:L,floatingStyles:z,placement:$,isPositioned:B,middlewareData:F}=hj({strategy:"fixed",placement:T,whileElementsMounted:(...e)=>sj(...e,{animationFrame:"always"===x}),elements:{reference:I.anchor},middleware:[vj({mainAxis:f+O,alignmentAxis:m}),v&&gj({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?yj():void 0,...D}),v&&wj({...D}),_j({...D,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),M&&xj({element:M,padding:h}),kj({arrowWidth:N,arrowHeight:O}),w&&bj({strategy:"referenceHidden",...D})]}),[V,U]=yN($),W=xs(_);Go((()=>{B&&(null==W||W())}),[B,W]);const H=null===(o=F.arrow)||void 0===o?void 0:o.x,G=null===(a=F.arrow)||void 0===a?void 0:a.y,K=0!==(null===(i=F.arrow)||void 0===i?void 0:i.centerOffset),[Q,Y]=ut();return Go((()=>{A&&Y(window.getComputedStyle(A).zIndex)}),[A]),ae("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:B?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--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},ae(Rj,{scope:c,placedSide:V,onArrowChange:C,arrowX:H,arrowY:G,shouldHideArrow:K},ae(ht.div,Ee({"data-side":V,"data-align":U},S,{ref:k,style:{...S.style,animation:B?void 0:"none",opacity:null!==(l=F.hide)&&void 0!==l&&l.referenceHidden?0:void 0}}))))})),Aj="PopperArrow",Dj={top:"bottom",right:"left",bottom:"top",left:"right"},Nj=Le((function(e,t){const{__scopePopper:n,...r}=e,o=Tj(Aj,n),a=Dj[o.placedSide];return ae("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]: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}},ae($j,Ee({},r,{ref:t,style:{...r.style,display:"block"}})))}));function Mj(e){return null!==e}const kj=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;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]=yN(s),h={start:"0%",center:"50%",end:"100%"}[m],v=(null!==(r=null===(o=l.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(a=null===(i=l.arrow)||void 0===i?void 0:i.y)&&void 0!==a?a:0)+f/2;let y="",b="";return"bottom"===p?(y=c?h:`${v}px`,b=-f+"px"):"top"===p?(y=c?h:`${v}px`,b=`${u.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?h:`${g}px`):"left"===p&&(y=`${u.floating.width+f}px`,b=c?h:`${g}px`),{data:{x:y,y:b}}}});function yN(e){const[t,n="center"]=e.split("-");return[t,n]}const wN=Cj,eI=Pj,tI=Oj,Lj=Nj,lx="rovingFocusGroup.onEntryFocus",Bj={bubbles:!1,cancelable:!0},nI="RovingFocusGroup",[ES,_N,Fj]=G$(nI),[jj,Xh]=ai(nI,[Fj]),[zj,Uj]=jj(nI),Vj=Le(((e,t)=>ae(ES.Provider,{scope:e.__scopeRovingFocusGroup},ae(ES.Slot,{scope:e.__scopeRovingFocusGroup},ae(Wj,Ee({},e,{ref:t})))))),Wj=Le(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:l,...c}=e,d=We(null),f=Ht(t,d),p=H$(a),[m=null,h]=vd({prop:i,defaultProp:s,onChange:u}),[v,g]=ut(!1),y=xs(l),b=_N(n),w=We(!1),[x,_]=ut(0);return Ke((()=>{const e=d.current;if(e)return e.addEventListener(lx,y),()=>e.removeEventListener(lx,y)}),[y]),ae(zj,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:m,onItemFocus:yt((e=>h(e)),[h]),onItemShiftTab:yt((()=>g(!0)),[]),onFocusableItemAdd:yt((()=>_((e=>e+1))),[]),onFocusableItemRemove:yt((()=>_((e=>e-1))),[])},ae(ht.div,Ee({tabIndex:v||0===x?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:ot(e.onMouseDown,(()=>{w.current=!0})),onFocus:ot(e.onFocus,(e=>{const t=!w.current;if(e.target===e.currentTarget&&t&&!v){const t=new CustomEvent(lx,Bj);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=b().filter((e=>e.focusable));bN([e.find((e=>e.active)),e.find((e=>e.id===m)),...e].filter(Boolean).map((e=>e.ref.current)))}}w.current=!1})),onBlur:ot(e.onBlur,(()=>g(!1)))})))})),qj="RovingFocusGroupItem",Gj=Le(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,s=fd(),u=a||s,l=Uj(qj,n),c=l.currentTabStopId===u,d=_N(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=l;return Ke((()=>{if(r)return f(),()=>p()}),[r,f,p]),ae(ES.ItemSlot,{scope:n,id:u,focusable:r,active:o},ae(ht.span,Ee({tabIndex:c?0:-1,"data-orientation":l.orientation},i,{ref:t,onMouseDown:ot(e.onMouseDown,(e=>{r?l.onItemFocus(u):e.preventDefault()})),onFocus:ot(e.onFocus,(()=>l.onItemFocus(u))),onKeyDown:ot(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void l.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=Yj(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?Qj(n,r+1):n.slice(r+1)}setTimeout((()=>bN(n)))}}))})))})),Hj={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Kj(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function Yj(e,t,n){const r=Kj(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return Hj[r]}function bN(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Qj(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}const rI=Vj,oI=Gj,PS=["Enter"," "],Xj=["ArrowDown","PageUp","Home"],xN=["ArrowUp","PageDown","End"],Jj=[...Xj,...xN],Zj={ltr:[...PS,"ArrowRight"],rtl:[...PS,"ArrowLeft"]},ez={ltr:["ArrowLeft"],rtl:["ArrowRight"]},B0="Menu",[bv,tz,nz]=G$(B0),[cp,SN]=ai(B0,[nz,Qh,Xh]),$N=Qh(),IN=Xh(),[MX,dp]=cp(B0),[kX,Fv]=cp(B0),rz=Le(((e,t)=>{const{__scopeMenu:n,...r}=e,o=$N(n);return ae(eI,Ee({},o,r,{ref:t}))})),CN="MenuPortal",[oz,EN]=cp(CN,{forceMount:void 0}),iz=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=dp(CN,t);return ae(oz,{scope:t,forceMount:n},ae(ia,{present:n||a.open},ae(h0,{asChild:!0,container:o},r)))},bs="MenuContent",[az,iI]=cp(bs),sz=Le(((e,t)=>{const n=EN(bs,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=dp(bs,e.__scopeMenu),i=Fv(bs,e.__scopeMenu);return ae(bv.Provider,{scope:e.__scopeMenu},ae(ia,{present:r||a.open},ae(bv.Slot,{scope:e.__scopeMenu},i.modal?ae(uz,Ee({},o,{ref:t})):ae(lz,Ee({},o,{ref:t})))))})),uz=Le(((e,t)=>{const n=dp(bs,e.__scopeMenu),r=We(null),o=Ht(t,r);return Ke((()=>{const e=r.current;if(e)return g0(e)}),[]),ae(aI,Ee({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:ot(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),lz=Le(((e,t)=>{const n=dp(bs,e.__scopeMenu);return ae(aI,Ee({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),aI=Le(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:u,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,v=dp(bs,n),g=Fv(bs,n),y=$N(n),b=IN(n),w=tz(n),[x,_]=ut(null),S=We(null),I=Ht(t,S,v.onContentChange),A=We(0),E=We(""),k=We(0),M=We(null),C=We("right"),P=We(0),N=m?v0:ip,O=m?{as:Hf,allowPinchZoom:!0}:void 0;Ke((()=>()=>window.clearTimeout(A.current)),[]),l$();const T=yt((e=>{var t,n;return C.current===(null===(t=M.current)||void 0===t?void 0:t.side)&&Ez(e,null===(n=M.current)||void 0===n?void 0:n.area)}),[]);return ae(az,{scope:n,searchRef:E,onItemEnter:yt((e=>{T(e)&&e.preventDefault()}),[T]),onItemLeave:yt((e=>{var t;T(e)||(null===(t=S.current)||void 0===t||t.focus(),_(null))}),[T]),onTriggerLeave:yt((e=>{T(e)&&e.preventDefault()}),[T]),pointerGraceTimerRef:k,onPointerGraceIntentChange:yt((e=>{M.current=e}),[])},ae(N,O,ae(u$,{asChild:!0,trapped:o,onMountAutoFocus:ot(a,(e=>{var t;e.preventDefault(),null===(t=S.current)||void 0===t||t.focus()})),onUnmountAutoFocus:i},ae(p0,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p},ae(rI,Ee({asChild:!0},b,{dir:g.dir,orientation:"vertical",loop:r,currentTabStopId:x,onCurrentTabStopIdChange:_,onEntryFocus:ot(u,(e=>{g.isUsingKeyboardRef.current||e.preventDefault()}))}),ae(tI,Ee({role:"menu","aria-orientation":"vertical","data-state":AN(v.open),"data-radix-menu-content":"",dir:g.dir},y,h,{ref:I,style:{outline:"none",...h.style},onKeyDown:ot(h.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;const r=E.current+e,o=w().filter((e=>!e.disabled)),a=document.activeElement,i=null===(t=o.find((e=>e.ref.current===a)))||void 0===t?void 0:t.textValue,s=Iz(o.map((e=>e.textValue)),r,i),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(A.current),""!==t&&(A.current=window.setTimeout((()=>e("")),1e3))})(r),u&&setTimeout((()=>u.focus()))})(e.key));const o=S.current;if(e.target!==o||!Jj.includes(e.key))return;e.preventDefault();const a=w().filter((e=>!e.disabled)).map((e=>e.ref.current));xN.includes(e.key)&&a.reverse(),Sz(a)})),onBlur:ot(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(A.current),E.current="")})),onPointerMove:ot(e.onPointerMove,xv((e=>{const t=e.target,n=P.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>P.current?"right":"left";C.current=t,P.current=e.clientX}})))})))))))})),cz=Le(((e,t)=>{const{__scopeMenu:n,...r}=e;return ae(ht.div,Ee({},r,{ref:t}))})),RS="MenuItem",pT="menu.itemSelect",sI=Le(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=We(null),i=Fv(RS,e.__scopeMenu),s=iI(RS,e.__scopeMenu),u=Ht(t,a),l=We(!1);return ae(PN,Ee({},o,{ref:u,disabled:n,onClick:ot(e.onClick,(()=>{const e=a.current;if(!n&&e){const t=new CustomEvent(pT,{bubbles:!0,cancelable:!0});e.addEventListener(pT,(e=>null==r?void 0:r(e)),{once:!0}),P2(e,t),t.defaultPrevented?l.current=!1:i.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),l.current=!0},onPointerUp:ot(e.onPointerUp,(e=>{var t;l.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:ot(e.onKeyDown,(e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||PS.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),PN=Le(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=iI(RS,n),s=IN(n),u=We(null),l=Ht(t,u),[c,d]=ut(!1),[f,p]=ut("");return Ke((()=>{const e=u.current;var t;e&&p((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[a.children]),ae(bv.ItemSlot,{scope:n,disabled:r,textValue:o??f},ae(oI,Ee({asChild:!0},s,{focusable:!r}),ae(ht.div,Ee({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:l,onPointerMove:ot(e.onPointerMove,xv((e=>{r?i.onItemLeave(e):(i.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())}))),onPointerLeave:ot(e.onPointerLeave,xv((e=>i.onItemLeave(e)))),onFocus:ot(e.onFocus,(()=>d(!0))),onBlur:ot(e.onBlur,(()=>d(!1)))}))))})),dz=Le(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return ae(TN,{scope:e.__scopeMenu,checked:n},ae(sI,Ee({role:"menuitemcheckbox","aria-checked":e0(n)?"mixed":n},o,{ref:t,"data-state":uI(n),onSelect:ot(o.onSelect,(()=>null==r?void 0:r(!!e0(n)||!n)),{checkForDefaultPrevented:!1})})))})),fz="MenuRadioGroup",[LX,pz]=cp(fz,{value:void 0,onValueChange:()=>{}}),hz="MenuRadioItem",mz=Le(((e,t)=>{const{value:n,...r}=e,o=pz(hz,e.__scopeMenu),a=n===o.value;return ae(TN,{scope:e.__scopeMenu,checked:a},ae(sI,Ee({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":uI(a),onSelect:ot(r.onSelect,(()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)}),{checkForDefaultPrevented:!1})})))})),RN="MenuItemIndicator",[TN,vz]=cp(RN,{checked:!1}),gz=Le(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=vz(RN,n);return ae(ia,{present:r||e0(a.checked)||!0===a.checked},ae(ht.span,Ee({},o,{ref:t,"data-state":uI(a.checked)})))})),yz=Le(((e,t)=>{const{__scopeMenu:n,...r}=e;return ae(ht.div,Ee({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),wz="MenuSub",[BX,ON]=cp(wz),Dg="MenuSubTrigger",_z=Le(((e,t)=>{const n=dp(Dg,e.__scopeMenu),r=Fv(Dg,e.__scopeMenu),o=ON(Dg,e.__scopeMenu),a=iI(Dg,e.__scopeMenu),i=We(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:u}=a,l={__scopeMenu:e.__scopeMenu},c=yt((()=>{i.current&&window.clearTimeout(i.current),i.current=null}),[]);return Ke((()=>c),[c]),Ke((()=>{const e=s.current;return()=>{window.clearTimeout(e),u(null)}}),[s,u]),ae(rz,Ee({asChild:!0},l),ae(PN,Ee({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":AN(n.open)},e,{ref:a$(t,o.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),!e.disabled&&!t.defaultPrevented&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:ot(e.onPointerMove,xv((t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout((()=>{n.onOpenChange(!0),c()}),100))}))),onPointerLeave:ot(e.onPointerLeave,xv((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,i="right"===t,u=i?-5:5,l=r[i?"left":"right"],c=r[i?"right":"left"];a.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((()=>a.onPointerGraceIntentChange(null)),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}}))),onKeyDown:ot(e.onKeyDown,(t=>{const o=""!==a.searchRef.current;var i;e.disabled||o&&" "===t.key||!Zj[r.dir].includes(t.key)||(n.onOpenChange(!0),null===(i=n.content)||void 0===i||i.focus(),t.preventDefault())}))})))})),bz="MenuSubContent",xz=Le(((e,t)=>{const n=EN(bs,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=dp(bs,e.__scopeMenu),i=Fv(bs,e.__scopeMenu),s=ON(bz,e.__scopeMenu),u=We(null),l=Ht(t,u);return ae(bv.Provider,{scope:e.__scopeMenu},ae(ia,{present:r||a.open},ae(bv.Slot,{scope:e.__scopeMenu},ae(aI,Ee({id:s.contentId,"aria-labelledby":s.triggerId},o,{ref:l,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;i.isUsingKeyboardRef.current&&(null===(t=u.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:ot(e.onFocusOutside,(e=>{e.target!==s.trigger&&a.onOpenChange(!1)})),onEscapeKeyDown:ot(e.onEscapeKeyDown,(e=>{i.onClose(),e.preventDefault()})),onKeyDown:ot(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=ez[i.dir].includes(e.key);var r;t&&n&&(a.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))}));function AN(e){return e?"open":"closed"}function e0(e){return"indeterminate"===e}function uI(e){return e0(e)?"indeterminate":e?"checked":"unchecked"}function Sz(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function $z(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}function Iz(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 a=$z(e,Math.max(o,0));1===r.length&&(a=a.filter((e=>e!==n)));const i=a.find((e=>e.toLowerCase().startsWith(r.toLowerCase())));return i!==n?i:void 0}function Cz(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){const i=t[e].x,s=t[e].y,u=t[a].x,l=t[a].y;s>r!=l>r&&n<(u-i)*(r-s)/(l-s)+i&&(o=!o)}return o}function Ez(e,t){if(!t)return!1;return Cz({x:e.clientX,y:e.clientY},t)}function xv(e){return t=>"mouse"===t.pointerType?e(t):void 0}const Pz=iz,Rz=sz,Tz=cz,Oz=sI,Az=dz,Dz=mz,Nz=gz,Mz=yz,kz=_z,Lz=xz,DN="DropdownMenu",[Bz,FX]=ai(DN,[SN]),bu=SN(),[jX,Fz]=Bz(DN),jz=e=>{const{__scopeDropdownMenu:t,...n}=e,r=bu(t);return ae(Pz,Ee({},r,n))},zz="DropdownMenuContent",Uz=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Fz(zz,n),a=bu(n),i=We(!1);return ae(Rz,Ee({id:o.contentId,"aria-labelledby":o.triggerId},a,r,{ref:t,onCloseAutoFocus:ot(e.onCloseAutoFocus,(e=>{var t;i.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),i.current=!1,e.preventDefault()})),onInteractOutside:ot(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!o.modal||r)&&(i.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)"}}))})),Vz=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bu(n);return ae(Tz,Ee({},o,r,{ref:t}))})),Wz=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bu(n);return ae(Oz,Ee({},o,r,{ref:t}))})),qz=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bu(n);return ae(Az,Ee({},o,r,{ref:t}))})),Gz=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bu(n);return ae(Dz,Ee({},o,r,{ref:t}))})),Hz=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bu(n);return ae(Nz,Ee({},o,r,{ref:t}))})),Kz=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bu(n);return ae(Mz,Ee({},o,r,{ref:t}))})),Yz=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bu(n);return ae(kz,Ee({},o,r,{ref:t}))})),Qz=Le(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bu(n);return ae(Lz,Ee({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),Xz=jz,NN=Uz,MN=Vz,kN=Wz,LN=qz,BN=Gz,Jz=Hz,lI=Kz,FN=Yz,jN=Qz,Zz=M.forwardRef((({className:e,inset:t,children:n,...r},o)=>q.jsxs(FN,{ref:o,className:we("flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,q.jsx(y2,{className:"ml-auto h-4 w-4"})]})));Zz.displayName=FN.displayName;const eU=M.forwardRef((({className:e,...t},n)=>q.jsx(jN,{ref:n,className:we("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})));eU.displayName=jN.displayName;const hT=e=>{e.preventDefault()},tU=M.forwardRef((({className:e,sideOffset:t=4,isPortal:n,...r},o)=>{const a=q.jsx(NN,{ref:o,sideOffset:t,onOpenAutoFocus:hT,onCloseAutoFocus:hT,className:we("z-[101] flex max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] flex-col gap-xxxs overflow-y-auto rounded-lg border border-gray-200 bg-white p-xxs text-popover-foreground ","shadow-[0px_0px_12px_0px_rgba(0,0,0,0.08)] ","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in data-[state=open]:slide-in-from-top-2","data-[state=closed]:fade-out data-[state=closed]:slide-out-to-top-2","data-[state=closed]:duration-150 data-[state=open]:duration-150","data-[state=closed]:[animation-timing-function:ease-in] data-[state=open]:[animation-timing-function:ease-out]",e),...r});return n?q.jsx(Xz,{children:a}):a}));tU.displayName=NN.displayName;const nU=M.forwardRef((({className:e,inset:t,...n},r)=>q.jsx(kN,{ref:r,className:we("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs text-base font-medium text-gray-900 outline-none transition-colors hover:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-xl",e),...n})));nU.displayName=kN.displayName;const rU=M.forwardRef((({className:e,children:t,checked:n,checkboxPosition:r="right",...o},a)=>{const i=q.jsx(B$,{size:"default",variant:"default",checked:n});return q.jsxs(LN,{ref:a,className:we("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs text-base font-medium text-gray-900"," outline-none transition-colors hover:bg-gray-100 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,onSelect:e=>e.preventDefault(),...o,children:["left"===r&&i,q.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:t}),"right"===r&&i]})}));rU.displayName=LN.displayName;const oU=M.forwardRef((({className:e,children:t,radioPosition:n="right",...r},o)=>{const a=q.jsx("div",{className:"flex h-xxs items-center justify-center",children:q.jsx(Jz,{children:q.jsx(n$,{size:20})})});return q.jsxs(BN,{ref:o,className:we("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs text-base font-medium text-gray-900"," outline-none transition-colors hover:bg-gray-100 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),onSelect:e=>e.preventDefault(),...r,children:["left"===n&&a,q.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:t}),"right"===n&&a]})}));oU.displayName=BN.displayName;const iU=M.forwardRef((({className:e,inset:t,...n},r)=>q.jsx(MN,{ref:r,className:we("text-sm font-semibold",t&&"pl-xl",e),...n})));iU.displayName=MN.displayName;const aU=M.forwardRef((({className:e,...t},n)=>q.jsx(lI,{ref:n,className:we("-mx-1 my-1 h-px bg-muted",e),...t})));aU.displayName=lI.displayName;const sU=Le(((e,t)=>ae(ht.label,Ee({},e,{ref:t,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}})))),zN=sU,uU=wu("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),UN=M.forwardRef((({className:e,...t},n)=>q.jsx(zN,{ref:n,className:we(uU(),e),...t})));function mT(e,[t,n]){return Math.min(n,Math.max(t,e))}UN.displayName=zN.displayName;const VN=Le(((e,t)=>ae(ht.span,Ee({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),lU=VN,cU=[" ","Enter","ArrowUp","ArrowDown"],dU=[" ","Enter"],F0="Select",[j0,z0,fU]=G$(F0),[Jh,zX]=ai(F0,[fU,Qh]),cI=Qh(),[pU,fp]=Jh(F0),[hU,mU]=Jh(F0),vU=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:u,dir:l,name:c,autoComplete:d,disabled:f,required:p}=e,m=cI(t),[h,v]=ut(null),[g,y]=ut(null),[b,w]=ut(!1),x=H$(l),[_=!1,S]=vd({prop:r,defaultProp:o,onChange:a}),[I,A]=vd({prop:i,defaultProp:s,onChange:u}),E=We(null),k=!h||!!h.closest("form"),[M,C]=ut(new Set),P=Array.from(M).map((e=>e.props.value)).join(";");return ae(wN,m,ae(pU,{required:p,scope:t,trigger:h,onTriggerChange:v,valueNode:g,onValueNodeChange:y,valueNodeHasChildren:b,onValueNodeHasChildrenChange:w,contentId:fd(),value:I,onValueChange:A,open:_,onOpenChange:S,dir:x,triggerPointerDownPosRef:E,disabled:f},ae(j0.Provider,{scope:t},ae(hU,{scope:e.__scopeSelect,onNativeOptionAdd:yt((e=>{C((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:yt((e=>{C((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},n)),k?ae(KN,{key:P,"aria-hidden":!0,required:p,tabIndex:-1,name:c,autoComplete:d,value:I,onChange:e=>A(e.target.value),disabled:f},void 0===I?ae("option",{value:""}):null,Array.from(M)):null))},gU="SelectTrigger",yU=Le(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=cI(n),i=fp(gU,n),s=i.disabled||r,u=Ht(t,i.onTriggerChange),l=z0(n),[c,d,f]=YN((e=>{const t=l().filter((e=>!e.disabled)),n=t.find((e=>e.value===i.value)),r=QN(t,e,n);void 0!==r&&i.onValueChange(r.value)})),p=()=>{s||(i.onOpenChange(!0),f())};return ae(eI,Ee({asChild:!0},a),ae(ht.button,Ee({type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":HN(i.value)?"":void 0},o,{ref:u,onClick:ot(o.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:ot(o.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(p(),i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:ot(o.onKeyDown,(e=>{const t=""!==c.current;!(e.ctrlKey||e.altKey||e.metaKey)&&1===e.key.length&&d(e.key),(!t||" "!==e.key)&&cU.includes(e.key)&&(p(),e.preventDefault())}))})))})),wU="SelectValue",_U=Le(((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...s}=e,u=fp(wU,n),{onValueNodeHasChildrenChange:l}=u,c=void 0!==a,d=Ht(t,u.onValueNodeChange);return Go((()=>{l(c)}),[l,c]),ae(ht.span,Ee({},s,{ref:d,style:{pointerEvents:"none"}}),HN(u.value)?ae(ip,null,i):a)})),bU=Le(((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return ae(ht.span,Ee({"aria-hidden":!0},o,{ref:t}),r||"▼")})),xU=e=>ae(h0,Ee({asChild:!0},e)),zh="SelectContent",SU=Le(((e,t)=>{const n=fp(zh,e.__scopeSelect),[r,o]=ut();if(Go((()=>{o(new DocumentFragment)}),[]),!n.open){const t=r;return t?yu.createPortal(ae(WN,{scope:e.__scopeSelect},ae(j0.Slot,{scope:e.__scopeSelect},ae("div",null,e.children))),t):null}return ae($U,Ee({},e,{ref:t}))})),xl=10,[WN,pp]=Jh(zh),$U=Le(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:u,align:l,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:v,...g}=e,y=fp(zh,n),[b,w]=ut(null),[x,_]=ut(null),S=Ht(t,(e=>w(e))),[I,A]=ut(null),[E,k]=ut(null),M=z0(n),[C,P]=ut(!1),N=We(!1);Ke((()=>{if(b)return g0(b)}),[b]),l$();const O=yt((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=yt((()=>O([I,b])),[O,I,b]);Ke((()=>{C&&T()}),[C,T]);const{onOpenChange:q,triggerPointerDownPosRef:R}=y;Ke((()=>{if(b){let e={x:0,y:0};const t=t=>{var n,r,o,a;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=R.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(a=R.current)||void 0===a?void 0:a.y)&&void 0!==o?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():b.contains(n.target)||q(!1),document.removeEventListener("pointermove",t),R.current=null};return null!==R.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[b,q,R]),Ke((()=>{const e=()=>q(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[q]);const[j,D]=YN((e=>{const t=M().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=QN(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),L=yt(((e,t,n)=>{const r=!N.current&&!n;(void 0!==y.value&&y.value===t||r)&&(A(e),r&&(N.current=!0))}),[y.value]),z=yt((()=>null==b?void 0:b.focus()),[b]),$=yt(((e,t,n)=>{const r=!N.current&&!n;(void 0!==y.value&&y.value===t||r)&&k(e)}),[y.value]),B="popper"===r?vT:IU,F=B===vT?{side:s,sideOffset:u,align:l,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:v}:{};return ae(WN,{scope:n,content:b,viewport:x,onViewportChange:_,itemRefCallback:L,selectedItem:I,onItemLeave:z,itemTextRefCallback:$,focusSelectedItem:T,selectedItemText:E,position:r,isPositioned:C,searchRef:j},ae(v0,{as:Hf,allowPinchZoom:!0},ae(u$,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:ot(o,(e=>{var t;null===(t=y.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},ae(p0,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1)},ae(B,Ee({role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:e=>e.preventDefault()},g,F,{onPlaced:()=>P(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:ot(g.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),!t&&1===e.key.length&&D(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()}}))}))))))})),IU=Le(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=fp(zh,n),i=pp(zh,n),[s,u]=ut(null),[l,c]=ut(null),d=Ht(t,(e=>c(e))),f=z0(n),p=We(!1),m=We(!0),{viewport:h,selectedItem:v,selectedItemText:g,focusSelectedItem:y}=i,b=yt((()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&v&&g){const e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),o=g.getBoundingClientRect();if("rtl"!==a.dir){const r=o.left-t.left,a=n.left-r,i=e.left-a,u=e.width+i,l=Math.max(u,t.width),c=window.innerWidth-xl,d=mT(a,[xl,c-l]);s.style.minWidth=u+"px",s.style.left=d+"px"}else{const r=t.right-o.right,a=window.innerWidth-n.right-r,i=window.innerWidth-e.right-a,u=e.width+i,l=Math.max(u,t.width),c=window.innerWidth-xl,d=mT(a,[xl,c-l]);s.style.minWidth=u+"px",s.style.right=d+"px"}const i=f(),u=window.innerHeight-2*xl,c=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),y=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),w=m+y+c+parseInt(d.paddingBottom,10)+b,x=Math.min(5*v.offsetHeight,w),_=window.getComputedStyle(h),S=parseInt(_.paddingTop,10),I=parseInt(_.paddingBottom,10),A=e.top+e.height/2-xl,E=u-A,k=v.offsetHeight/2,M=m+y+(v.offsetTop+k),C=w-M;if(M<=A){const e=v===i[i.length-1].ref.current;s.style.bottom="0px";const t=l.clientHeight-h.offsetTop-h.offsetHeight,n=M+Math.max(E,k+(e?I:0)+t+b);s.style.height=n+"px"}else{const e=v===i[0].ref.current;s.style.top="0px";const t=Math.max(A,m+h.offsetTop+(e?S:0)+k)+C;s.style.height=t+"px",h.scrollTop=M-A+h.offsetTop}s.style.margin=`${xl}px 0`,s.style.minHeight=x+"px",s.style.maxHeight=u+"px",null==r||r(),requestAnimationFrame((()=>p.current=!0))}}),[f,a.trigger,a.valueNode,s,l,h,v,g,a.dir,r]);Go((()=>b()),[b]);const[w,x]=ut();Go((()=>{l&&x(window.getComputedStyle(l).zIndex)}),[l]);const _=yt((e=>{e&&!0===m.current&&(b(),null==y||y(),m.current=!1)}),[b,y]);return ae(CU,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:_},ae("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w}},ae(ht.div,Ee({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))})),vT=Le(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=xl,...a}=e,i=cI(n);return ae(tI,Ee({},i,a,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.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)"}}))})),[CU,dI]=Jh(zh,{}),gT="SelectViewport",EU=Le(((e,t)=>{const{__scopeSelect:n,...r}=e,o=pp(gT,n),a=dI(gT,n),i=Ht(t,o.onViewportChange),s=We(0);return ae(ip,null,ae("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}"}}),ae(j0.Slot,{scope:n},ae(ht.div,Ee({"data-radix-select-viewport":"",role:"presentation"},r,{ref:i,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:ot(r.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=a;if(null!=r&&r.current&&n){const e=Math.abs(s.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*xl,o=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),i=Math.max(o,a);if(i<r){const o=i+e,a=Math.min(r,o),s=o-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}s.current=t.scrollTop}))}))))})),PU="SelectGroup",[RU,TU]=Jh(PU),OU=Le(((e,t)=>{const{__scopeSelect:n,...r}=e,o=fd();return ae(RU,{scope:n,id:o},ae(ht.div,Ee({role:"group","aria-labelledby":o},r,{ref:t})))})),AU="SelectLabel",DU=Le(((e,t)=>{const{__scopeSelect:n,...r}=e,o=TU(AU,n);return ae(ht.div,Ee({id:o.id},r,{ref:t}))})),TS="SelectItem",[NU,qN]=Jh(TS),MU=Le(((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,s=fp(TS,n),u=pp(TS,n),l=s.value===r,[c,d]=ut(a??""),[f,p]=ut(!1),m=Ht(t,(e=>{var t;return null===(t=u.itemRefCallback)||void 0===t?void 0:t.call(u,e,r,o)})),h=fd(),v=()=>{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 ae(NU,{scope:n,value:r,disabled:o,textId:h,isSelected:l,onItemTextChange:yt((e=>{d((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},ae(j0.ItemSlot,{scope:n,value:r,disabled:o,textValue:c},ae(ht.div,Ee({role:"option","aria-labelledby":h,"data-highlighted":f?"":void 0,"aria-selected":l&&f,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},i,{ref:m,onFocus:ot(i.onFocus,(()=>p(!0))),onBlur:ot(i.onBlur,(()=>p(!1))),onPointerUp:ot(i.onPointerUp,v),onPointerMove:ot(i.onPointerMove,(e=>{var t;o?null===(t=u.onItemLeave)||void 0===t||t.call(u):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:ot(i.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=u.onItemLeave)||void 0===t||t.call(u))})),onKeyDown:ot(i.onKeyDown,(e=>{var t;""!==(null===(t=u.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(dU.includes(e.key)&&v()," "===e.key&&e.preventDefault())}))}))))})),Ng="SelectItemText",kU=Le(((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=fp(Ng,n),s=pp(Ng,n),u=qN(Ng,n),l=mU(Ng,n),[c,d]=ut(null),f=Ht(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=xn((()=>ae("option",{key:u.value,value:u.value,disabled:u.disabled},p)),[u.disabled,u.value,p]),{onNativeOptionAdd:h,onNativeOptionRemove:v}=l;return Go((()=>(h(m),()=>v(m))),[h,v,m]),ae(ip,null,ae(ht.span,Ee({id:u.textId},a,{ref:f})),u.isSelected&&i.valueNode&&!i.valueNodeHasChildren?yu.createPortal(a.children,i.valueNode):null)})),LU="SelectItemIndicator",BU=Le(((e,t)=>{const{__scopeSelect:n,...r}=e;return qN(LU,n).isSelected?ae(ht.span,Ee({"aria-hidden":!0},r,{ref:t})):null})),yT="SelectScrollUpButton",FU=Le(((e,t)=>{const n=pp(yT,e.__scopeSelect),r=dI(yT,e.__scopeSelect),[o,a]=ut(!1),i=Ht(t,r.onScrollButtonChange);return Go((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;a(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?ae(GN,Ee({},e,{ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),wT="SelectScrollDownButton",jU=Le(((e,t)=>{const n=pp(wT,e.__scopeSelect),r=dI(wT,e.__scopeSelect),[o,a]=ut(!1),i=Ht(t,r.onScrollButtonChange);return Go((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?ae(GN,Ee({},e,{ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),GN=Le(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=pp("SelectScrollButton",n),i=We(null),s=z0(n),u=yt((()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)}),[]);return Ke((()=>()=>u()),[u]),Go((()=>{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]),ae(ht.div,Ee({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:ot(o.onPointerDown,(()=>{null===i.current&&(i.current=window.setInterval(r,50))})),onPointerMove:ot(o.onPointerMove,(()=>{var e;null===(e=a.onItemLeave)||void 0===e||e.call(a),null===i.current&&(i.current=window.setInterval(r,50))})),onPointerLeave:ot(o.onPointerLeave,(()=>{u()}))}))})),zU=Le(((e,t)=>{const{__scopeSelect:n,...r}=e;return ae(ht.div,Ee({"aria-hidden":!0},r,{ref:t}))}));function HN(e){return""===e||void 0===e}const KN=Le(((e,t)=>{const{value:n,...r}=e,o=We(null),a=Ht(t,o),i=T0(n);return Ke((()=>{const e=o.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(i!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[i,n]),ae(VN,{asChild:!0},ae("select",Ee({},r,{ref:a,defaultValue:n})))}));function YN(e){const t=xs(e),n=We(""),r=We(0),o=yt((e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(o)}),[t]),a=yt((()=>{n.current="",window.clearTimeout(r.current)}),[]);return Ke((()=>()=>window.clearTimeout(r.current)),[]),[n,o,a]}function QN(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 a=UU(e,Math.max(o,0));1===r.length&&(a=a.filter((e=>e!==n)));const i=a.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return i!==n?i:void 0}function UU(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}KN.displayName="BubbleSelect";const XN=vU,fI=yU,JN=_U,VU=bU,WU=xU,ZN=SU,qU=EU,eM=OU,tM=DU,nM=MU,GU=kU,HU=BU,rM=FU,oM=jU,iM=zU,KU=XN,pI=M.forwardRef((({...e},t)=>q.jsx(KU,{ref:t,...e})));pI.displayName=XN.displayName;const aM=M.forwardRef(((e,t)=>q.jsx(eM,{ref:t,...e})));aM.displayName=eM.displayName;const sM=M.forwardRef(((e,t)=>q.jsx(JN,{ref:t,...e})));sM.displayName=JN.displayName;const hI=M.forwardRef((({className:e,children:t,caption:n,error:r,icon:o,renderCaret:a,...i},s)=>{const u=a?a():a?null:q.jsx(v2,{size:20,className:"transition-transform duration-200 group-data-[state=open]/select:rotate-180"});return q.jsxs("div",{className:"w-full",children:[q.jsxs(fI,{ref:s,className:we("group/select flex h-l w-full items-center justify-between rounded-m border bg-background p-xxs text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus-visible:ring-gray-700 focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50",r?"border-red-500":"border-input",e),...i,children:[q.jsxs("div",{className:we("flex flex-1 items-center gap-xxs",{"max-w-[90%]":!!a}),children:[o&&q.jsx("span",{className:we("text-muted-foreground",{"text-red-dark":r}),children:o}),t]}),q.jsx(VU,{asChild:!0,children:u})]}),n||r?r?q.jsxs("div",{className:"mt-xxs flex items-center gap-xxxs text-sm text-red-600",children:[q.jsx(r$,{size:16}),r]}):q.jsxs("div",{className:"mt-xxs flex items-center gap-xxxs text-sm text-muted-foreground",children:[q.jsx(tL,{size:16}),n]}):null]})}));hI.displayName="SelectTriggerWrapper";const uM=M.forwardRef((({className:e,children:t,caption:n,error:r,icon:o,...a},i)=>q.jsx(hI,{ref:i,className:we("[&>span]:line-clamp-1 [&>span]:text-left",e),caption:n,error:r,icon:o,...a,children:t})));uM.displayName=fI.displayName;const mI=M.forwardRef((({className:e,children:t,position:n="popper",...r},o)=>{const a=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 q.jsx(WU,{children:q.jsx(ZN,{ref:o,className:we("z-[101] flex max-h-[var(--radix-select-content-available-height)] min-w-[8rem] flex-col rounded-lg border border-gray-200 bg-white text-popover-foreground","shadow-[0px_0px_12px_0px_rgba(0,0,0,0.08)]","data-[state=open]:animate-in data-[state=closed]:animate-out ","data-[state=open]:fade-in data-[state=open]:slide-in-from-top-2 ","data-[state=closed]:fade-out data-[state=closed]:slide-out-to-top-2 ","data-[state=closed]:duration-150 data-[state=open]:duration-150 ","data-[state=closed]:[animation-timing-function:ease-in] data-[state=open]:[animation-timing-function:ease-out]","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:q.jsx(qU,{className:we("flex flex-col gap-xxxs overflow-y-auto px-xxs",{"py-xxs":!a},"popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})})}));mI.displayName=ZN.displayName;const lM=M.forwardRef((({className:e,...t},n)=>q.jsx(tM,{ref:n,className:we("text-sm font-medium text-gray-900",e),...t})));lM.displayName=tM.displayName;const cM=M.forwardRef((({className:e,showCheck:t=!0,checkPosition:n="right",children:r,...o},a)=>{const i=q.jsx(HU,{children:q.jsx(n$,{size:20})});return q.jsxs(nM,{ref:a,className:we("relative flex cursor-default select-none items-center gap-xxs rounded-m p-xxs","text-base font-medium text-gray-900 outline-none transition-colors hover:bg-gray-100","focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[t&&"left"===n&&i,q.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:q.jsx(GU,{children:r})}),t&&"right"===n&&i]})}));cM.displayName=nM.displayName;const dM=M.forwardRef((({className:e,...t},n)=>q.jsx(iM,{ref:n,className:we("-mx-1 my-1 h-px bg-gray-200",e),...t})));dM.displayName=iM.displayName;const YU=({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,a=document.createElement("div");Object.assign(a.style,{position:"absolute",visibility:"hidden",whiteSpace:"nowrap",display:"flex",gap:"4px",top:"-9999px",left:"-9999px"}),document.body.appendChild(a);let i=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)}a.appendChild(e);const u=e.offsetWidth+4;if(!(i+u<=r))break;i+=u,s++}document.body.removeChild(a),o(Math.max(1,s))}),[e,t]),{containerRef:n,visibleCount:r}},fM=({hiddenCount:e,selectedValues:t=[],onRemoveValue:n})=>{const r=e=>{e.stopPropagation(),e.preventDefault()};return q.jsx("div",{onPointerDown:r,onMouseDown:r,onClick:r,children:q.jsxs(pI,{name:"hidden-chips-counter",children:[q.jsx(fI,{asChild:!0,children:q.jsx("div",{children:q.jsx(tD,{text:`+${e}`})})}),q.jsx(mI,{align:"end",className:"max-h-[250px] w-screen max-w-[300px] gap-xxxs overflow-y-auto",children:t.map((e=>{const t="string"==typeof e?e:e.value;return q.jsxs("div",{className:"flex justify-between p-xxs",onClick:e=>e.stopPropagation(),children:[q.jsx("span",{children:t}),q.jsx(d0,{size:16,className:"cursor-pointer",onClick:()=>null==n?void 0:n(t)})]},t)}))})]})})};fM.displayName="SelectHiddenChipsCounter";const QU=M.forwardRef(((e,t)=>{const{className:n,selectedValues:r=[],placeholder:o,onRemoveValue:a,icon:i,caption:s,error:u,...l}=e,{containerRef:c,visibleCount:d}=YU({selectedValues:r,onRemoveValue:a}),f=r.length-d;return q.jsx(hI,{ref:t,className:n,caption:s,error:u,icon:i,...l,children:q.jsx("div",{ref:c,className:"flex w-full flex-1 flex-nowrap overflow-hidden",children:0===r.length?q.jsx("span",{children:o||"Select options..."}):q.jsxs(q8,{children:[r.slice(0,d).map((e=>{const t="string"==typeof e?e:e.value;return q.jsx(tD,{avatarSrc:"string"==typeof e?void 0:e.avatar,text:t,onRemove:()=>null==a?void 0:a(t)},t)})),f>0&&q.jsx(fM,{hiddenCount:f,onRemoveValue:a,selectedValues:r})]})})})}));QU.displayName="SelectMultiTrigger";const XU=M.forwardRef((({value:e,isSelected:t=!1,isLoading:n=!1,checkboxPosition:r="right",onSelect:o,className:a,children:i,...s},u)=>{const l=n?q.jsx(w2,{size:24,className:"flex-shrink-0 animate-spin text-blue_100"}):q.jsx(B$,{size:"default",variant:"default",checked:t}),c=()=>{null==o||o(e)};return q.jsxs("div",{ref:u,className:we("relative flex cursor-pointer select-none items-center gap-xxs rounded-m","p-xxs text-base font-medium text-gray-900 outline-none transition-colors hover:bg-gray-100","focus:bg-accent focus:text-accent-foreground",{"pointer-events-none":n},a),onClick:c,role:"button",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),c())},...s,children:["left"===r&&l,q.jsx("div",{className:"flex flex-1 items-center gap-xxs",children:i}),"right"===r&&l]})}));XU.displayName="SelectCheckboxItem";const JU=M.forwardRef((({className:e,...t},n)=>q.jsx(rM,{ref:n,className:we("flex cursor-default items-center justify-center py-xxs",e),...t,children:q.jsx(Y3,{size:16})})));JU.displayName=rM.displayName;const ZU=M.forwardRef((({className:e,...t},n)=>q.jsx(oM,{ref:n,className:we("flex cursor-default items-center justify-center p-xxs",e),...t,children:q.jsx(v2,{size:16})})));ZU.displayName=oM.displayName;const eV=M.forwardRef((({className:e,children:t,...n},r)=>q.jsx("div",{ref:r,className:we("sticky top-0 z-20 bg-white p-xxs",e),...n,children:t})));eV.displayName="SelectActions";const tV=M.forwardRef((({className:e,children:t,...n},r)=>q.jsx("div",{ref:r,className:we("sticky bottom-0 z-20 bg-white p-xxs",e),...n,children:t})));tV.displayName="SelectFooter";const nV=M.createContext({}),$d=()=>{const e=M.useContext(nV),t=M.useContext(pM),n=_3();e||console.error("useFormContext must be used within a FormProvider");const{getFieldState:r,formState:o}=n,a=r(e.name,o);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...a}},pM=M.createContext({}),rV=M.forwardRef((({className:e,...t},n)=>{const r=M.useId();return q.jsx(pM.Provider,{value:{id:r},children:q.jsx("div",{ref:n,className:we("mt-[8px]",e),...t})})}));rV.displayName="FormItem";const oV=M.forwardRef((({className:e,isRequired:t,...n},r)=>{const{formItemId:o}=$d();return q.jsxs(UN,{ref:r,className:we("mb-2 text-sm font-medium",e),htmlFor:o,...n,children:[t&&"*",n.children]})}));oV.displayName="FormLabel";const iV=M.forwardRef((({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:a}=$d();return q.jsx(xd,{ref:t,id:r,"aria-describedby":n?`${o} ${a}`:`${o}`,"aria-invalid":!!n,...e})}));iV.displayName="FormControl";const aV=M.forwardRef((({className:e,...t},n)=>{const{formDescriptionId:r}=$d();return q.jsx("p",{ref:n,id:r,className:we("text-sm text-muted-foreground",e),...t})}));aV.displayName="FormDescription";const sV=M.forwardRef((({className:e,children:t,...n},r)=>{const{error:o,formMessageId:a}=$d(),i=o?String(null==o?void 0:o.message):t;return i?q.jsxs("p",{ref:r,id:a,className:we("flex items-start gap-1 pt-xxs text-sm text-red-dark",e),...n,children:[q.jsx(r$,{size:16,className:"text-red-dark"})," ",i]}):null}));sV.displayName="FormMessage";const uV=M.forwardRef((({...e},t)=>{const{name:n}=$d();return q.jsx(pI,{ref:t,name:n,...e})}));uV.displayName="FormSelect";const lV=M.forwardRef((({className:e,children:t,...n},r)=>{const{formItemId:o}=$d();return q.jsx(uM,{ref:r,id:o,className:e,...n,children:t})}));lV.displayName="FormSelectTrigger";const cV=M.forwardRef(((e,t)=>q.jsx(mI,{ref:t,...e})));cV.displayName="FormSelectContent";const dV=M.forwardRef(((e,t)=>q.jsx(cM,{ref:t,...e})));dV.displayName="FormSelectItem";const fV=M.forwardRef(((e,t)=>q.jsx(aM,{ref:t,...e})));fV.displayName="FormSelectGroup";const pV=M.forwardRef(((e,t)=>q.jsx(lM,{ref:t,...e})));pV.displayName="FormSelectLabel";const hV=M.forwardRef(((e,t)=>q.jsx(dM,{ref:t,...e})));hV.displayName="FormSelectSeparator";const mV=M.forwardRef(((e,t)=>q.jsx(sM,{ref:t,...e})));function Wf(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 hM(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>Il(e)));return function(n){const r=(null==n?void 0:n[e])||t;return xn((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=Il(r),a=n.length;function i(t){const{scope:n,children:r,...i}=t,s=(null==n?void 0:n[e][a])||o,u=xn((()=>i),Object.values(i));return ae(s.Provider,{value:u},r)}return n=[...n,r],i.displayName=t+"Provider",[i,function(n,i){const s=(null==i?void 0:i[e][a])||o,u=rp(s);if(u)return u;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},vV(r,...t)]}function vV(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return xn((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function U0(e){const t=We(e);return Ke((()=>{t.current=e})),xn((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function gV(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function yV(...e){return t=>e.forEach((e=>gV(e,t)))}function wV(...e){return yt(yV(...e),e)}function hp(e){return e.split("-")[0]}function jv(e){return e.split("-")[1]}function Zh(e){return["top","bottom"].includes(hp(e))?"x":"y"}function vI(e){return"y"===e?"height":"width"}function _T(e,t,n){let{reference:r,floating:o}=e;const a=r.x+r.width/2-o.width/2,i=r.y+r.height/2-o.height/2,s=Zh(t),u=vI(s),l=r[u]/2-o[u]/2,c="x"===s;let d;switch(hp(t)){case"top":d={x:a,y:r.y-o.height};break;case"bottom":d={x:a,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:i};break;case"left":d={x:r.x-o.width,y:i};break;default:d={x:r.x,y:r.y}}switch(jv(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 _V=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=await(null==i.isRTL?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:c}=_T(u,r,s),d=r,f={},p=0;for(let n=0;n<a.length;n++){const{name:m,fn:h}=a[n],{x:v,y:g,data:y,reset:b}=await h({x:l,y:c,initialPlacement:r,placement:d,strategy:o,middlewareData:f,rects:u,platform:i,elements:{reference:e,floating:t}});l=v??l,c=g??c,f={...f,[m]:{...f[m],...y}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(u=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:l,y:c}=_T(u,d,s))),n=-1)}return{x:l,y:c,placement:d,strategy:o,middlewareData:f}};function mM(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 t0(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Sv(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=t,m=mM(p),h=s[f?"floating"===d?"reference":"floating":d],v=t0(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(h)))||n?h:h.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:c,strategy:u})),g=t0(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...i.floating,x:r,y:o}:i.reference,offsetParent:await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),strategy:u}):i[d]);return{top:v.top-g.top+m.top,bottom:g.bottom-v.bottom+m.bottom,left:v.left-g.left+m.left,right:g.right-v.right+m.right}}const bV=Math.min,Lf=Math.max;function OS(e,t,n){return Lf(e,bV(t,n))}const bT=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e??{},{x:o,y:a,placement:i,rects:s,platform:u}=t;if(null==n)return{};const l=mM(r),c={x:o,y:a},d=Zh(i),f=jv(i),p=vI(d),m=await u.getDimensions(n),h="y"===d?"top":"left",v="y"===d?"bottom":"right",g=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=g/2-y/2,_=l[h],S=w-m[p]-l[v],I=w/2-m[p]/2+x,A=OS(_,I,S),E=("start"===f?l[h]:l[v])>0&&I!==A&&s.reference[p]<=s.floating[p];return{[d]:c[d]-(E?I<_?_-I:S-I:0),data:{[d]:A,centerOffset:I-A}}}}),xV={left:"right",right:"left",bottom:"top",top:"bottom"};function n0(e){return e.replace(/left|right|bottom|top/g,(e=>xV[e]))}function SV(e,t,n){void 0===n&&(n=!1);const r=jv(e),o=Zh(e),a=vI(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=n0(i)),{main:i,cross:n0(i)}}const $V={start:"end",end:"start"};function xT(e){return e.replace(/start|end/g,(e=>$V[e]))}const vM=["top","right","bottom","left"];vM.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const IV=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:a,initialPlacement:i,platform:s,elements:u}=t,{mainAxis:l=!0,crossAxis:c=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:p=!0,...m}=e,h=hp(r),v=[i,...d||(h!==i&&p?function(e){const t=n0(e);return[xT(e),t,xT(t)]}(i):[n0(i)])],g=await Sv(t,m),y=[];let b=(null==(n=o.flip)?void 0:n.overflows)||[];if(l&&y.push(g[h]),c){const{main:e,cross:t}=SV(r,a,await(null==s.isRTL?void 0:s.isRTL(u.floating)));y.push(g[e],g[t])}if(b=[...b,{placement:r,overflows:y}],!y.every((e=>e<=0))){var w,x;const e=(null!=(w=null==(x=o.flip)?void 0:x.index)?w:0)+1,t=v[e];if(t)return{data:{index:e,overflows:b},reset:{placement:t}};let n="bottom";switch(f){case"bestFit":{var _;const e=null==(_=b.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:_[0].placement;e&&(n=e);break}case"initialPlacement":n=i}if(r!==n)return{reset:{placement:n}}}return{}}}};function ST(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $T(e){return vM.some((t=>e[t]>=0))}const CV=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=ST(await Sv(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:$T(t)}}}case"escaped":{const t=ST(await Sv(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:$T(t)}}}default:return{}}}}},EV=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,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=hp(n),s=jv(n),u="x"===Zh(n),l=["left","top"].includes(i)?-1:1,c=a&&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 gM(e){return"x"===e?"y":"x"}const PV=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!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 Sv(t,u),d=Zh(hp(o)),f=gM(d);let p=l[d],m=l[f];if(a){const e="y"===d?"bottom":"right";p=OS(p+c["y"===d?"top":"left"],p,p-c[e])}if(i){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}}}}},RV=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:u=!0,crossAxis:l=!0}=e,c={x:n,y:r},d=Zh(o),f=gM(d);let p=c[d],m=c[f];const h="function"==typeof s?s({...a,placement:o}):s,v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const e="y"===d?"height":"width",t=a.reference[d]-a.floating[e]+v.mainAxis,n=a.reference[d]+a.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var g,y,b,w;const e="y"===d?"width":"height",t=["top","left"].includes(hp(o)),n=a.reference[f]-a.floating[e]+(t&&null!=(g=null==(y=i.offset)?void 0:y[f])?g:0)+(t?0:v.crossAxis),r=a.reference[f]+a.reference[e]+(t?0:null!=(b=null==(w=i.offset)?void 0:w[f])?b:0)-(t?v.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}},TV=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:i,...s}=e,u=await Sv(t,s),l=hp(n),c=jv(n);let d,f;"top"===l||"bottom"===l?(d=l,f=c===(await(null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(f=l,d="end"===c?"top":"bottom");const p=Lf(u.left,0),m=Lf(u.right,0),h=Lf(u.top,0),v=Lf(u.bottom,0),g={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==h||0!==v?h+v:Lf(u.top,u.bottom)):u[d]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==p||0!==m?p+m:Lf(u.left,u.right)):u[f])},y=await o.getDimensions(a.floating);null==i||i({...t,...g});const b=await o.getDimensions(a.floating);return y.width!==b.width||y.height!==b.height?{reset:{rects:!0}}:{}}}};function yM(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Ml(e){if(null==e)return window;if(!yM(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function zv(e){return Ml(e).getComputedStyle(e)}function Sl(e){return yM(e)?"":e?(e.nodeName||"").toLowerCase():""}function wM(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function gu(e){return e instanceof Ml(e).HTMLElement}function bd(e){return e instanceof Ml(e).Element}function gI(e){return!(typeof ShadowRoot>"u")&&(e instanceof Ml(e).ShadowRoot||e instanceof ShadowRoot)}function V0(e){const{overflow:t,overflowX:n,overflowY:r}=zv(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function OV(e){return["table","td","th"].includes(Sl(e))}function IT(e){const t=/firefox/i.test(wM()),n=zv(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function _M(){return!/^((?!chrome|android).)*safari/i.test(wM())}const CT=Math.min,dv=Math.max,r0=Math.round;function $l(e,t,n){var r,o,a,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let u=1,l=1;t&&gu(e)&&(u=e.offsetWidth>0&&r0(s.width)/e.offsetWidth||1,l=e.offsetHeight>0&&r0(s.height)/e.offsetHeight||1);const c=bd(e)?Ml(e):window,d=!_M()&&n,f=(s.left+(d&&null!=(r=null==(o=c.visualViewport)?void 0:o.offsetLeft)?r:0))/u,p=(s.top+(d&&null!=(a=null==(i=c.visualViewport)?void 0:i.offsetTop)?a: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 hd(e){return(t=e,(t instanceof Ml(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function W0(e){return bd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function bM(e){return $l(hd(e)).left+W0(e).scrollLeft}function AV(e,t,n){const r=gu(t),o=hd(t),a=$l(e,r&&function(e){const t=$l(e);return r0(t.width)!==e.offsetWidth||r0(t.height)!==e.offsetHeight}(t),"fixed"===n);let i={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==Sl(t)||V0(o))&&(i=W0(t)),gu(t)){const e=$l(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=bM(o));return{x:a.left+i.scrollLeft-s.x,y:a.top+i.scrollTop-s.y,width:a.width,height:a.height}}function xM(e){return"html"===Sl(e)?e:e.assignedSlot||e.parentNode||(gI(e)?e.host:null)||hd(e)}function ET(e){return gu(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function AS(e){const t=Ml(e);let n=ET(e);for(;n&&OV(n)&&"static"===getComputedStyle(n).position;)n=ET(n);return n&&("html"===Sl(n)||"body"===Sl(n)&&"static"===getComputedStyle(n).position&&!IT(n))?t:n||function(e){let t=xM(e);for(gI(t)&&(t=t.host);gu(t)&&!["html","body"].includes(Sl(t));){if(IT(t))return t;t=t.parentNode}return null}(e)||t}function PT(e){if(gu(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=$l(e);return{width:t.width,height:t.height}}function SM(e){const t=xM(e);return["html","body","#document"].includes(Sl(t))?e.ownerDocument.body:gu(t)&&V0(t)?t:SM(t)}function o0(e,t){var n;void 0===t&&(t=[]);const r=SM(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Ml(r),i=o?[a].concat(a.visualViewport||[],V0(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(o0(i))}function RT(e,t,n){return"viewport"===t?t0(function(e,t){const n=Ml(e),r=hd(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,u=0;if(o){a=o.width,i=o.height;const e=_M();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:s,y:u}}(e,n)):bd(t)?function(e,t){const n=$l(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):t0(function(e){var t;const n=hd(e),r=W0(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=dv(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=dv(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+bM(e);const u=-r.scrollTop;return"rtl"===zv(o||n).direction&&(s+=dv(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:u}}(hd(e)))}function DV(e){const t=o0(e),n=["absolute","fixed"].includes(zv(e).position)&&gu(e)?AS(e):e;return bd(n)?t.filter((e=>bd(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&gI(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==Sl(e))):[]}const NV={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?DV(t):[].concat(n),r],i=a[0],s=a.reduce(((e,n)=>{const r=RT(t,n,o);return e.top=dv(r.top,e.top),e.right=CT(r.right,e.right),e.bottom=CT(r.bottom,e.bottom),e.left=dv(r.left,e.left),e}),RT(t,i,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=gu(n),a=hd(n);if(n===a)return t;let i={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==Sl(n)||V0(a))&&(i=W0(n)),gu(n))){const e=$l(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-i.scrollLeft+s.x,y:t.y-i.scrollTop+s.y}},isElement:bd,getDimensions:PT,getOffsetParent:AS,getDocumentElement:hd,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:AV(t,AS(n),r),floating:{...PT(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===zv(e).direction};function MV(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=!0,animationFrame:s=!1}=r,u=o&&!s,l=a&&!s,c=u||l?[...bd(e)?o0(e):[],...o0(t)]:[];c.forEach((e=>{u&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));let d,f=null;if(i){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),bd(e)&&!s&&f.observe(e),f.observe(t)}let p=s?$l(e):null;return s&&function t(){const r=$l(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 kV=(e,t,n)=>_V(e,t,{platform:NV,...n});var DS=typeof document<"u"?op:Ke;function NS(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(!NS(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||NS(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function LV(e){const t=M.useRef(e);return DS((()=>{t.current=e})),t}function BV(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===e?{}:e;const a=M.useRef(null),i=M.useRef(null),s=LV(o),u=M.useRef(null),[l,c]=M.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=M.useState(t);NS(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((()=>{!a.current||!i.current||kV(a.current,i.current,{middleware:d,placement:n,strategy:r}).then((e=>{m.current&&yu.flushSync((()=>{c(e)}))}))}),[d,n,r]);DS((()=>{m.current&&p()}),[p]);const m=M.useRef(!1);DS((()=>(m.current=!0,()=>{m.current=!1})),[]);const h=M.useCallback((()=>{if("function"==typeof u.current&&(u.current(),u.current=null),a.current&&i.current)if(s.current){const e=s.current(a.current,i.current,p);u.current=e}else p()}),[p,s]),v=M.useCallback((e=>{a.current=e,h()}),[h]),g=M.useCallback((e=>{i.current=e,h()}),[h]),y=M.useMemo((()=>({reference:a,floating:i})),[]);return M.useMemo((()=>({...l,update:p,refs:y,reference:v,floating:g})),[l,p,y,v,g])}const FV=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?bT({element:t.current,padding:n}).fn(e):{}:t?bT({element:t,padding:n}).fn(e):{}}};function jV(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function zV(...e){return t=>e.forEach((e=>jV(e,t)))}const $M=Le(((e,t)=>{const{children:n,...r}=e,o=na.toArray(n),a=o.find(VV);if(a){const e=a.props.children,n=o.map((t=>t===a?na.count(e)>1?na.only(null):md(e)?e.props.children:null:t));return ae(MS,Ee({},r,{ref:t}),md(e)?ap(e,void 0,n):null)}return ae(MS,Ee({},r,{ref:t}),n)}));$M.displayName="Slot";const MS=Le(((e,t)=>{const{children:n,...r}=e;return md(n)?ap(n,{...WV(r,n.props),ref:zV(t,n.ref)}):na.count(n)>1?na.only(null):null}));MS.displayName="SlotClone";const UV=({children:e})=>ae(ip,null,e);function VV(e){return md(e)&&e.type===UV}function WV(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const qV=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],kS=qV.reduce(((e,t)=>{const n=Le(((e,n)=>{const{asChild:r,...o}=e,a=r?$M:t;return Ke((()=>{window[Symbol.for("radix-ui")]=!0}),[]),ae(a,Ee({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function GV(e,t){e&&yu.flushSync((()=>e.dispatchEvent(t)))}function HV(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function KV(...e){return t=>e.forEach((e=>HV(e,t)))}function YV(...e){return yt(KV(...e),e)}const zf=null!=globalThis&&globalThis.document?op:()=>{};function QV(e){const[t,n]=ut(void 0);return zf((()=>{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,a;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}const IM="Popper",[yI,CM]=hM(IM),[UX,XV]=yI(IM),i0="PopperContent",[JV,VX]=yI(i0),[ZV,eW]=yI(i0,{hasParent:!1,positionUpdateFns:new Set}),tW=Le(((e,t)=>{var n,r,o,a,i,s,u,l;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:m=0,arrowPadding:h=0,collisionBoundary:v=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,avoidCollisions:w=!0,onPlaced:x,..._}=e,S=XV(i0,c),[I,A]=ut(null),E=YV(t,(e=>A(e))),[k,M]=ut(null),C=QV(k),P=null!==(n=null==C?void 0:C.width)&&void 0!==n?n:0,N=null!==(r=null==C?void 0:C.height)&&void 0!==r?r:0,O=d+("center"!==p?"-"+p:""),T="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},q=Array.isArray(v)?v:[v],R=q.length>0,j={padding:T,boundary:q.filter(rW),altBoundary:R},{reference:D,floating:L,strategy:z,x:$,y:B,placement:F,middlewareData:V,update:U}=BV({strategy:"fixed",placement:O,whileElementsMounted:MV,middleware:[oW(),EV({mainAxis:f+N,alignmentAxis:m}),w?PV({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?RV():void 0,...j}):void 0,k?FV({element:k,padding:h}):void 0,w?IV({...j}):void 0,TV({...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:P,arrowHeight:N}),b?CV({strategy:"referenceHidden"}):void 0].filter(nW)});zf((()=>{D(S.anchor)}),[D,S.anchor]);const W=null!==$&&null!==B,[H,G]=EM(F),K=U0(x);zf((()=>{W&&(null==K||K())}),[W,K]);const Q=null===(o=V.arrow)||void 0===o?void 0:o.x,Y=null===(a=V.arrow)||void 0===a?void 0:a.y,X=0!==(null===(i=V.arrow)||void 0===i?void 0:i.centerOffset),[J,Z]=ut();zf((()=>{I&&Z(window.getComputedStyle(I).zIndex)}),[I]);const{hasParent:ee,positionUpdateFns:te}=eW(i0,c),ne=!ee;op((()=>{if(!ne)return te.add(U),()=>{te.delete(U)}}),[ne,te,U]),zf((()=>{ne&&W&&Array.from(te).reverse().forEach((e=>requestAnimationFrame(e)))}),[ne,W,te]);const re={"data-side":H,"data-align":G,..._,ref:E,style:{..._.style,animation:W?void 0:"none",opacity:null!==(s=V.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return ae("div",{ref:L,"data-radix-popper-content-wrapper":"",style:{position:z,left:0,top:0,transform:W?`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},ae(JV,{scope:c,placedSide:H,onArrowChange:M,arrowX:Q,arrowY:Y,shouldHideArrow:X},ne?ae(ZV,{scope:c,hasParent:!0,positionUpdateFns:te},ae(kS.div,re)):ae(kS.div,re)))}));function nW(e){return void 0!==e}function rW(e){return null!==e}const oW=()=>({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,a,i;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]=EM(s),h={start:"0%",center:"50%",end:"100%"}[m],v=(null!==(r=null===(o=l.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(a=null===(i=l.arrow)||void 0===i?void 0:i.y)&&void 0!==a?a:0)+f/2;let y="",b="";return"bottom"===p?(y=c?h:`${v}px`,b=-f+"px"):"top"===p?(y=c?h:`${v}px`,b=`${u.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?h:`${g}px`):"left"===p&&(y=`${u.floating.width+f}px`,b=c?h:`${g}px`),{data:{x:y,y:b}}}});function EM(e){const[t,n="center"]=e.split("-");return[t,n]}const aW=tW;function sW(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function uW(...e){return t=>e.forEach((e=>sW(e,t)))}function lW(...e){return yt(uW(...e),e)}function cW(e,t){return d2(((e,n)=>t[e][n]??e),e)}const PM=e=>{const{present:t,children:n}=e,r=dW(t),o="function"==typeof n?n({present:r.isPresent}):na.only(n),a=lW(r.ref,o.ref);return"function"==typeof n||r.isPresent?ap(o,{ref:a}):null};function dW(e){const[t,n]=ut(),r=We({}),o=We(e),a=We("none"),i=e?"mounted":"unmounted",[s,u]=cW(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Ke((()=>{const e=Mg(r.current);a.current="mounted"===s?e:"none"}),[s]),zf((()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=Mg(t);e?u("MOUNT"):"none"===i||"none"===(null==t?void 0:t.display)?u("UNMOUNT"):u(n&&r!==i?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,u]),zf((()=>{if(t){const e=e=>{const n=Mg(r.current).includes(e.animationName);e.target===t&&n&&yu.flushSync((()=>u("ANIMATION_END")))},n=e=>{e.target===t&&(a.current=Mg(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:yt((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Mg(e){return(null==e?void 0:e.animationName)||"none"}function fW(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function pW(...e){return t=>e.forEach((e=>fW(e,t)))}function hW(...e){return yt(pW(...e),e)}function mW(e,t=(null==globalThis?void 0:globalThis.document)){const n=U0(e);Ke((()=>{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",vW="dismissableLayer.pointerDownOutside",gW="dismissableLayer.focusOutside";let TT;const yW=Il({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wW=Le(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:u,...l}=e,c=rp(yW),[d,f]=ut(null),p=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=ut({}),h=hW(t,(e=>f(e))),v=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(g),b=d?v.indexOf(d):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,x=b>=y,_=_W((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));!x||n||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==u||u())}),p),S=bW((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==i||i(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),Ke((()=>{if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(TT=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),OT(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=TT)}}),[d,p,r,c]),Ke((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),OT())}),[d,c]),Ke((()=>{const e=()=>m({});return document.addEventListener(LS,e),()=>document.removeEventListener(LS,e)}),[]),ae(kS.div,Ee({},l,{ref:h,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:Wf(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Wf(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Wf(e.onPointerDownCapture,_.onPointerDownCapture)}))}));function _W(e,t=(null==globalThis?void 0:globalThis.document)){const n=U0(e),r=We(!1),o=We((()=>{}));return Ke((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){RM(vW,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}r.current=!1},a=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function bW(e,t=(null==globalThis?void 0:globalThis.document)){const n=U0(e),r=We(!1);return Ke((()=>{const e=e=>{e.target&&!r.current&&RM(gW,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 OT(){const e=new CustomEvent(LS);document.dispatchEvent(e)}function RM(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?GV(o,a):o.dispatchEvent(a)}let cx;const TM="HoverCard",[OM,WX]=hM(TM,[CM]),xW=CM(),[qX,AM]=OM(TM),SW="HoverCardPortal",[GX,$W]=OM(SW,{forceMount:void 0}),BS="HoverCardContent",IW=Le(((e,t)=>{const n=$W(BS,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,a=AM(BS,e.__scopeHoverCard);return ae(PM,{present:r||a.open},ae(CW,Ee({"data-state":a.open?"open":"closed"},o,{onPointerEnter:Wf(e.onPointerEnter,AT(a.onOpen)),onPointerLeave:Wf(e.onPointerLeave,AT(a.onClose)),ref:t})))})),CW=Le(((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,...s}=e,u=AM(BS,n),l=xW(n),c=We(null),d=wV(t,c),[f,p]=ut(!1);return Ke((()=>{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]),Ke((()=>{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]),Ke((()=>{c.current&&EW(c.current).forEach((e=>e.setAttribute("tabindex","-1")))})),ae(wW,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:Wf(a,(e=>{e.preventDefault()})),onDismiss:u.onDismiss},ae(aW,Ee({},l,s,{onPointerDown:Wf(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 AT(e){return t=>"touch"===t.pointerType?void 0:e()}function EW(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 DM=IW,PW=M.forwardRef((({className:e,align:t="center",sideOffset:n=4,...r},o)=>q.jsx(DM,{ref:o,align:t,sideOffset:n,className:we("z-50 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})));PW.displayName=DM.displayName;const NM=M.forwardRef((({className:e,type:t,...n},r)=>{const{error:o}=$d();return q.jsx("input",{type:t,title:n.disabled?"Disabled":"",className:we("flex w-full rounded-m px-s py-3.5 text-base text-gray-900 outline outline-1 outline-input ring-offset-background transition-all duration-200 ease-in-out file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-base placeholder:text-gray-400 placeholder:text-muted-foreground focus-visible:bg-gray-50 focus-visible:text-gray-900 focus-visible:outline-2 focus-visible:outline-blue_120 enabled:hover:outline-2 enabled:hover:outline-gray-400 disabled:bg-transparent disabled:text-gray-300 disabled:outline-gray-200 disabled:ring-0 disabled:ring-transparent disabled:placeholder:text-gray-300",{"bg-red_30_17 outline-red-dark":!!o},e),ref:r,...n})}));function RW(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),a=n.length;n=[...n,r];const i=t=>{var n;const{scope:r,children:i,...s}=t,u=(null==(n=null==r?void 0:r[e])?void 0:n[a])||o,l=M.useMemo((()=>s),Object.values(s));return q.jsx(u.Provider,{value:l,children:i})};return i.displayName=t+"Provider",[i,function(n,i){var s;const u=(null==(s=null==i?void 0:i[e])?void 0:s[a])||o,l=M.useContext(u);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},TW(r,...t)]}function TW(...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 DT(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function OW(...e){return t=>{let n=!1;const r=e.map((e=>{const r=DT(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():DT(e[t],null)}}}}function AW(e){const t=DW(e),n=M.forwardRef(((e,n)=>{const{children:r,...o}=e,a=M.Children.toArray(r),i=a.find(MW);if(i){const e=i.props.children,r=a.map((t=>t===i?M.Children.count(e)>1?M.Children.only(null):M.isValidElement(e)?e.props.children:null:t));return q.jsx(t,{...o,ref:n,children:M.isValidElement(e)?M.cloneElement(e,void 0,r):null})}return q.jsx(t,{...o,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function DW(e){const t=M.forwardRef(((e,t)=>{const{children:n,...r}=e;if(M.isValidElement(n)){const e=LW(n),o=kW(r,n.props);return n.type!==M.Fragment&&(o.ref=t?OW(t,e):e),M.cloneElement(n,o)}return M.Children.count(n)>1?M.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}NM.displayName="Input";var NW=Symbol("radix.slottable");function MW(e){return M.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===NW}function kW(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function LW(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 BW=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],MM=BW.reduce(((e,t)=>{const n=AW(`Primitive.${t}`),r=M.forwardRef(((e,r)=>{const{asChild:o,...a}=e,i=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),q.jsx(i,{...a,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{}),wI="Progress",_I=100,[FW,HX]=RW(wI),[jW,zW]=FW(wI),kM=M.forwardRef(((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:a=UW,...i}=e;(o||0===o)&&!NT(o)&&console.error(VW(`${o}`,"Progress"));const s=NT(o)?o:_I;null!==r&&!MT(r,s)&&console.error(WW(`${r}`,"Progress"));const u=MT(r,s)?r:null,l=a0(u)?a(u,s):void 0;return q.jsx(jW,{scope:n,value:u,max:s,children:q.jsx(MM.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":a0(u)?u:void 0,"aria-valuetext":l,role:"progressbar","data-state":FM(u,s),"data-value":u??void 0,"data-max":s,...i,ref:t})})}));kM.displayName=wI;var LM="ProgressIndicator",BM=M.forwardRef(((e,t)=>{const{__scopeProgress:n,...r}=e,o=zW(LM,n);return q.jsx(MM.div,{"data-state":FM(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})}));function UW(e,t){return`${Math.round(e/t*100)}%`}function FM(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function a0(e){return"number"==typeof e}function NT(e){return a0(e)&&!isNaN(e)&&e>0}function MT(e,t){return a0(e)&&!isNaN(e)&&e<=t&&e>=0}function VW(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 WW(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\`.`}BM.displayName=LM;var jM=kM,qW=BM;const GW=M.forwardRef((({className:e,value:t,indicatorClassName:n,...r},o)=>q.jsx(jM,{ref:o,className:we("relative h-[7px] w-full overflow-hidden rounded-full bg-blue_10",e),...r,children:q.jsx(qW,{className:we("h-full w-full flex-1 rounded-full bg-blue_100 transition-all",n),style:{transform:`translateX(-${100-(t||0)}%)`}})})));GW.displayName=jM.displayName;const zM="Radio",[HW,UM]=ai(zM),[KW,YW]=HW(zM),QW=Le(((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:i,value:s="on",onCheck:u,...l}=e,[c,d]=ut(null),f=Ht(t,(e=>d(e))),p=We(!1),m=!c||!!c.closest("form");return ae(KW,{scope:n,checked:o,disabled:i},ae(ht.button,Ee({type:"button",role:"radio","aria-checked":o,"data-state":VM(o),"data-disabled":i?"":void 0,disabled:i,value:s},l,{ref:f,onClick:ot(e.onClick,(e=>{o||null==u||u(),m&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())}))})),m&&ae(ZW,{control:c,bubbles:!p.current,name:r,value:s,checked:o,required:a,disabled:i,style:{transform:"translateX(-100%)"}}))})),XW="RadioIndicator",JW=Le(((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=YW(XW,n);return ae(ia,{present:r||a.checked},ae(ht.span,Ee({"data-state":VM(a.checked),"data-disabled":a.disabled?"":void 0},o,{ref:t})))})),ZW=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=We(null),i=T0(n),s=O0(t);return Ke((()=>{const e=a.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[i,n,r]),ae("input",Ee({type:"radio","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function VM(e){return e?"checked":"unchecked"}const eq=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],WM="RadioGroup",[tq,KX]=ai(WM,[Xh,UM]),qM=Xh(),GM=UM(),[nq,rq]=tq(WM),oq=Le(((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:i=!1,disabled:s=!1,orientation:u,dir:l,loop:c=!0,onValueChange:d,...f}=e,p=qM(n),m=H$(l),[h,v]=vd({prop:a,defaultProp:o,onChange:d});return ae(nq,{scope:n,name:r,required:i,disabled:s,value:h,onValueChange:v},ae(rI,Ee({asChild:!0},p,{orientation:u,dir:m,loop:c}),ae(ht.div,Ee({role:"radiogroup","aria-required":i,"aria-orientation":u,"data-disabled":s?"":void 0,dir:m},f,{ref:t}))))})),iq="RadioGroupItem",aq=Le(((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=rq(iq,n),i=a.disabled||r,s=qM(n),u=GM(n),l=We(null),c=Ht(t,l),d=a.value===o.value,f=We(!1);return Ke((()=>{const e=e=>{eq.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)}}),[]),ae(oI,Ee({asChild:!0},s,{focusable:!i,active:d}),ae(QW,Ee({disabled:i,required:a.required,checked:d},u,o,{name:a.name,ref:c,onCheck:()=>a.onValueChange(o.value),onKeyDown:ot((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:ot(o.onFocus,(()=>{var e;f.current&&(null===(e=l.current)||void 0===e||e.click())}))})))})),sq=Le(((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=GM(n);return ae(JW,Ee({},o,r,{ref:t}))})),HM=oq,KM=aq,uq=sq,lq=M.forwardRef((({className:e,...t},n)=>q.jsx(HM,{className:we("grid gap-2",e),...t,ref:n})));lq.displayName=HM.displayName;const cq=M.forwardRef((({className:e,...t},n)=>q.jsx(KM,{ref:n,className:we("aspect-square size-6 rounded-full border border-gray-300 disabled:cursor-not-allowed disabled:border-gray-100 disabled:bg-gray-100","data-[state=checked]:border-blue_100 data-[state=checked]:bg-blue_100 hover:data-[state=checked]:border-blue_120","disabled:data-[state=checked]:border-gray-100 disabled:data-[state=checked]:bg-gray-100","transition-[border] duration-200 hover:data-[state=checked]:bg-blue_120 md:hover:border-2",e),...t,children:q.jsx(uq,{className:"flex items-center justify-center",children:q.jsx(Z3,{className:"stack-animate size-2 border-none",style:{fill:t.disabled?"var(--gray-300)":"white",color:t.disabled?"var(--gray-300)":"white"}})})})));cq.displayName=KM.displayName;const dq=Q2,fq=y0,YM=M.forwardRef((({className:e,...t},n)=>q.jsx(qh,{className:we("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n})));YM.displayName=qh.displayName;const pq=wu("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),QM=M.forwardRef((({side:e="right",className:t,overlayClassName:n,children:r,...o},a)=>q.jsxs(fq,{children:[q.jsx(YM,{className:we("bg-gray-900/70",n)}),q.jsxs(Gh,{ref:a,className:we(pq({side:e}),t),...o,children:[r,q.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:[q.jsx(d0,{className:"h-4 w-4"}),q.jsx("span",{className:"sr-only",children:"Close"})]})]})]})));QM.displayName=Gh.displayName;const XM=({className:e,...t})=>q.jsx("div",{className:we("flex flex-col space-y-2 text-center sm:text-left",e),...t});XM.displayName="SheetHeader";const JM=M.forwardRef((({className:e,...t},n)=>q.jsx(Ov,{ref:n,className:we("text-lg font-semibold text-foreground",e),...t})));JM.displayName=Ov.displayName;const ZM=M.forwardRef((({className:e,...t},n)=>q.jsx(Av,{ref:n,className:we("text-sm text-muted-foreground",e),...t})));ZM.displayName=Av.displayName;const[q0,YX]=ai("Tooltip",[Qh]),G0=Qh(),hq="TooltipProvider",mq=700,FS="tooltip.open",[vq,bI]=q0(hq),gq=e=>{const{__scopeTooltip:t,delayDuration:n=mq,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[i,s]=ut(!0),u=We(!1),l=We(0);return Ke((()=>{const e=l.current;return()=>window.clearTimeout(e)}),[]),ae(vq,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:yt((()=>{window.clearTimeout(l.current),s(!1)}),[]),onClose:yt((()=>{window.clearTimeout(l.current),l.current=window.setTimeout((()=>s(!0)),r)}),[r]),isPointerInTransitRef:u,onPointerInTransitChange:yt((e=>{u.current=e}),[]),disableHoverableContent:o},a)},xI="Tooltip",[yq,Uv]=q0(xI),wq=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=e,u=bI(xI,e.__scopeTooltip),l=G0(t),[c,d]=ut(null),f=fd(),p=We(0),m=i??u.disableHoverableContent,h=s??u.delayDuration,v=We(!1),[g=!1,y]=vd({prop:r,defaultProp:o,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(FS))):u.onClose(),null==a||a(e)}}),b=xn((()=>g?v.current?"delayed-open":"instant-open":"closed"),[g]),w=yt((()=>{window.clearTimeout(p.current),v.current=!1,y(!0)}),[y]),x=yt((()=>{window.clearTimeout(p.current),y(!1)}),[y]),_=yt((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{v.current=!0,y(!0)}),h)}),[h,y]);return Ke((()=>()=>window.clearTimeout(p.current)),[]),ae(wN,l,ae(yq,{scope:t,contentId:f,open:g,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:yt((()=>{u.isOpenDelayed?_():w()}),[u.isOpenDelayed,_,w]),onTriggerLeave:yt((()=>{m?x():window.clearTimeout(p.current)}),[x,m]),onOpen:w,onClose:x,disableHoverableContent:m},n))},kT="TooltipTrigger",_q=Le(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Uv(kT,n),a=bI(kT,n),i=G0(n),s=Ht(t,We(null),o.onTriggerChange),u=We(!1),l=We(!1),c=yt((()=>u.current=!1),[]);return Ke((()=>()=>document.removeEventListener("pointerup",c)),[c]),ae(eI,Ee({asChild:!0},i),ae(ht.button,Ee({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:s,onPointerMove:ot(e.onPointerMove,(e=>{"touch"!==e.pointerType&&!l.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),l.current=!0)})),onPointerLeave:ot(e.onPointerLeave,(()=>{o.onTriggerLeave(),l.current=!1})),onPointerDown:ot(e.onPointerDown,(()=>{u.current=!0,document.addEventListener("pointerup",c,{once:!0})})),onFocus:ot(e.onFocus,(()=>{u.current||o.onOpen()})),onBlur:ot(e.onBlur,o.onClose),onClick:ot(e.onClick,o.onClose)})))})),ek="TooltipPortal",[bq,xq]=q0(ek,{forceMount:void 0}),Sq=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=Uv(ek,t);return ae(bq,{scope:t,forceMount:n},ae(ia,{present:n||a.open},ae(h0,{asChild:!0,container:o},r)))},$v="TooltipContent",tk=Le(((e,t)=>{const n=xq($v,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=Uv($v,e.__scopeTooltip);return ae(ia,{present:r||i.open},i.disableHoverableContent?ae(nk,Ee({side:o},a,{ref:t})):ae($q,Ee({side:o},a,{ref:t})))})),$q=Le(((e,t)=>{const n=Uv($v,e.__scopeTooltip),r=bI($v,e.__scopeTooltip),o=We(null),a=Ht(t,o),[i,s]=ut(null),{trigger:u,onClose:l}=n,c=o.current,{onPointerInTransitChange:d}=r,f=yt((()=>{s(null),d(!1)}),[d]),p=yt(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=Dq([...Tq(r,Rq(r,n.getBoundingClientRect())),...Oq(t.getBoundingClientRect())]);s(o),d(!0)}),[d]);return Ke((()=>()=>f()),[f]),Ke((()=>{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]),Ke((()=>{if(i){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=!Aq(n,i);r?f():o&&(f(),l())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[u,c,i,l,f]),ae(nk,Ee({},e,{ref:a}))})),[Iq,Cq]=q0(xI,{isInside:!1}),nk=Le(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,u=Uv($v,n),l=G0(n),{onClose:c}=u;return Ke((()=>(document.addEventListener(FS,c),()=>document.removeEventListener(FS,c))),[c]),Ke((()=>{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]),ae(p0,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:c},ae(tI,Ee({"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)"}}),ae(s$,null,r),ae(Iq,{scope:n,isInside:!0},ae(lU,{id:u.contentId,role:"tooltip"},o||r))))})),Eq="TooltipArrow",Pq=Le(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=G0(n);return Cq(Eq,n).isInside?null:ae(Lj,Ee({},o,r,{ref:t}))}));function Rq(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Tq(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 Oq(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 Aq(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){const i=t[e].x,s=t[e].y,u=t[a].x,l=t[a].y;s>r!=l>r&&n<(u-i)*(r-s)/(l-s)+i&&(o=!o)}return o}function Dq(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)),Nq(t)}function Nq(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 Mq=Sq,rk=tk,kq=Pq,Lq=()=>{const e=window.innerWidth;return e<768?"mobile":e<1024?"tablet":"desktop"},Bq=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)},Fq=e=>Bq(e)&&"type"in e&&"string"==typeof e.type,It=e=>{const t=t=>({type:e,payload:t});return t.toString=()=>`${e}`,t.type=e,t.match=t=>Fq(t)&&t.type===e,t};It("remoteReady"),It("askLogin"),It("reselectUser"),It("requestLogout");const jq=It("setConfirmLeavePage"),zq=It("requestChangePath");It("wsSubscribe"),It("wsUnSubscribe"),It("hostStoreConnect"),It("remoteLogin");const Uq=It("remoteLogout");It("wsOnMessage");const Vq=It("setRouterPath"),Wq=It("setDeviceType"),qq=It("setDeviceWidth"),Gq=It("setUserError"),Hq=It("setUserIsError"),Kq=It("setUserPending"),Yq=It("setUserSuccess"),Qq=It("setUserData"),Xq=It("updateAccountData"),Jq=It("updateUser"),Zq=It("addNotification"),eG=It("markNotification"),tG=It("setNotificationsError"),nG=It("setNotificationsList"),rG=It("setNotificationsPending"),oG=It("setNotificationsTotalCount"),iG=It("setNotificationsUnreadCount"),aG=It("acceptAllFollowRequests"),sG=It("resetNotificationsState"),uG=It("undoNotification"),lG=It("setInstanceInfo"),cG=It("setInstanceInfoPending"),dG=It("setInstanceInfoError"),fG=It("setPlatformSettings"),pG=It("setProfileSettings");It("setGroupData"),It("setGroupLoading"),It("requestLocalStorageGet"),It("requestLocalStorageSet"),It("requestLocalStorageRemove"),It("requestLocalStorageClear"),It("requestLocalStorageKeys"),It("requestLocalStorageHas"),It("sendLocalStorageResponse"),It("sendLocalStorageChanged");const fv="8.48.0",Pl=globalThis;function SI(e,t,n){const r=Pl,o=r.__SENTRY__=r.__SENTRY__||{},a=o[fv]=o[fv]||{};return a[e]||(a[e]=t())}const ok=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,hG="Sentry Logger ",LT=["debug","info","warn","error","log","assert","trace"],BT={};function mG(e){if(!("console"in Pl))return e();const t=Pl.console,n={},r=Object.keys(BT);r.forEach((e=>{const r=BT[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}function vG(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return ok?LT.forEach((n=>{t[n]=(...t)=>{e&&mG((()=>{Pl.console[n](`${hG}[${n}]:`,...t)}))}})):LT.forEach((e=>{t[e]=()=>{}})),t}const Vg=SI("logger",vG);function $I(){return II(Pl),Pl}function II(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||fv,t[fv]=t[fv]||{}}const gG=Object.prototype.toString;function yG(e,t){return gG.call(e)===`[object ${t}]`}function wG(e){return yG(e,"Object")}function _G(e){return!(!e||!e.then||"function"!=typeof e.then)}function bG(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{ok&&Vg.log(`Failed to add non-enumerable property "${t}" to object`,e)}}const ik=1e3;function ak(){return Date.now()/ik}function xG(){const{performance:e}=Pl;if(!e||!e.now)return ak;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/ik}const SG=xG();function Lh(){const e=Pl,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 $G(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||SG(),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:Lh()),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 FT(){return Lh()}function jT(){return Lh().substring(16)}function sk(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]=sk(r[e],t[e],n-1));return r}(()=>{const{performance:e}=Pl;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=o<t,i=e.timing&&e.timing.navigationStart,s="number"==typeof i?Math.abs(i+n-r):t;(a||s<t)&&(o<=s&&e.timeOrigin)})();const jS="_sentrySpan";function zT(e,t){t?bG(e,jS,t):delete e[jS]}function UT(e){return e[jS]}const IG=100;class CI{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:FT(),spanId:jT()}}clone(){const e=new CI;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,zT(e,UT(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&&$G(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 Iv?[t.getScopeData(),t.getRequestSession()]:wG(t)?[e,e.requestSession]:[],{tags:o,extra:a,user:i,contexts:s,level:u,fingerprint:l=[],propagationContext:c}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},i&&Object.keys(i).length&&(this._user=i),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,zT(this,void 0),this._attachments=[],this.setPropagationContext({traceId:FT()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:IG;if(n<=0)return this;const r={timestamp:ak(),...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:UT(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=sk(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:jT(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:Lh();if(!this._client)return Vg.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:Lh();if(!this._client)return Vg.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:Lh();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Vg.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 Iv=CI;function CG(){return SI("defaultCurrentScope",(()=>new Iv))}function EG(){return SI("defaultIsolationScope",(()=>new Iv))}class PG{constructor(e,t){let n,r;n=e||new Iv,r=t||new Iv,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 _G(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 Uh(){const e=II($I());return e.stack=e.stack||new PG(CG(),EG())}function RG(e){return Uh().withScope(e)}function TG(e,t){const n=Uh();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function VT(e){return Uh().withScope((()=>e(Uh().getIsolationScope())))}function OG(){return{withIsolationScope:VT,withScope:RG,withSetScope:TG,withSetIsolationScope:(e,t)=>VT(t),getCurrentScope:()=>Uh().getScope(),getIsolationScope:()=>Uh().getIsolationScope()}}function uk(e){const t=II(e);return t.acs?t.acs:OG()}function lk(){return uk($I()).getCurrentScope()}function AG(){return uk($I()).getIsolationScope()}function DG(e,t){return lk().captureException(e,void 0)}function NG(e,t){const n={captureContext:t};return lk().captureMessage(e,void 0,n)}function MG(e,t){AG().setExtra(e,t)}const kG=(...e)=>{let t="";for(const n of e){if(n instanceof Error){const e=n;return MG("exceptionMessage",t),void DG(e)}if("object"!=typeof n)t+=n;else try{t+=" "+JSON.stringify(n)}catch{t+=" "+n}}NG(t)},H0=()=>"object"!=typeof window,LG="wlsy",ck=()=>{try{return window.localStorage}catch(e){console.warn("Error getting window.localStorage storage",e)}},BG=()=>{const e=new Set,t=ck();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)},EI=e=>{const t=`${LG}${e?`:${e}`:""}`,n=e=>`${t}:${e}`,r=()=>BG().filter((e=>e.startsWith(`${t}:`))),o=e=>e.slice(t.length+1),a=ck(),i=e=>{try{return null==a?void 0:a.getItem(n(e))}catch{return null}},s=(e,t)=>{try{null==a||a.setItem(n(e),String(t))}catch{return}};return{getItem:i,setItem:s,removeItem:e=>{try{null==a||a.removeItem(n(e))}catch{return}},clear:()=>{try{r().forEach((e=>null==a?void 0:a.removeItem(e)))}catch{return}},keys:()=>r().map(o),has:e=>null!==i(e),getJSON:e=>{const t=i(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}}}},WT=["debug","info","warn","error"],FG=(e,t)=>{const n=WT.indexOf(e);return WT.indexOf(t)>=n},kg=(e,t,n,...r)=>{FG(t,e)&&console.log(`[${e}] ${n}`,...r)},jG=()=>EI().getItem("logger_lvl"),zG=(e=(H0()?"info":jG()||"warn"))=>{let t=e;return{debug:(e,...n)=>kg("debug",t,e,...n),info:(e,...n)=>kg("info",t,e,...n),warn:(e,...n)=>kg("warn",t,e,...n),error:(e,...n)=>(kG(e,...n),kg("error",t,e,...n)),setLevel:e=>{t=e},getLevel:()=>t}},mp=zG(),UG=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 mp.warn(`Could not serialize action type: ${e.type}`,t),{type:e.type,payload:`[Non-serializable payload for action: ${e.type}]`}}},VG=({action:e,windowElement:t,whitelist:n})=>{if(t)try{const{type:r}=e;if(!n.some((({type:e})=>e===r||"*"===e)))return;const o=UG(e);t.postMessage(o,"*")}catch(e){mp.error("Failed to process or send message:",e)}},WG=({onMessage:e,whitelist:t,sourceWindow:n})=>{const r=r=>{const o=r.origin===window.location.origin,a=!n||r.source===n,i=r.data&&"object"==typeof r.data&&"type"in r.data,s=t.some((({type:e})=>e===r.data.type||"*"===e));!o&&a&&i&&s&&e(r.data)};return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}},qT=Ol("requestMicroFrontendFetch"),qG=Ol("sendMicroFrontendFetchResponse"),GG={deviceType:Lq(),deviceWidth:window.innerWidth},dk=Po({name:"ui",initialState:GG,reducers:{},extraReducers:e=>{e.addCase(Wq,((e,{payload:t})=>{e.deviceType=t})),e.addCase(qq,((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,GT,fx,HT,px,KT,hx,YT,mx,QT,vx,XT,gx,JT,yx,ZT,wx,eO,_x,tO,bx,nO,xx,rO,Sx,oO,$x,iO,Ix,aO,Cx,sO,Ex,uO,Px,lO,Rx,cO,Tx,dO,Ox,fO,Ax,pO,Dx,hO,Nx,mO,Mx,vO,kx,gO,Lx,yO,Bx,wO,Fx,_O,jx,bO,zx,xO,Ux,SO,Vx,$O,Wx,IO,qx,CO,Gx,EO,Hx,PO,Kx,RO,Yx,TO,Qx,OO,Xx,AO;function fk(){if(GT)return dx;GT=1;var e=BA(),t=e&&new e;return dx=t}function pk(){if(HT)return fx;HT=1;var e=A$(),t=fk();return fx=t?function(e,n){return t.set(e,n),e}:e}function K0(){if(KT)return px;KT=1;var e=R0(),t=Ss();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),a=n.apply(o,r);return t(a)?a:o}},px}function HG(){if(YT)return hx;YT=1;var e=K0(),t=si();return hx=function(n,r,o){var a=1&r,i=e(n);return function e(){return(this&&this!==t&&this instanceof e?i:n).apply(a?o:this,arguments)}},hx}function hk(){if(QT)return mx;QT=1;var e=Math.max;return mx=function(t,n,r,o){for(var a=-1,i=t.length,s=r.length,u=-1,l=n.length,c=e(i-s,0),d=Array(l+c),f=!o;++u<l;)d[u]=n[u];for(;++a<s;)(f||a<i)&&(d[r[a]]=t[a]);for(;c--;)d[u++]=t[a++];return d}}function mk(){if(XT)return vx;XT=1;var e=Math.max;return vx=function(t,n,r,o){for(var a=-1,i=t.length,s=-1,u=r.length,l=-1,c=n.length,d=e(i-u,0),f=Array(d+c),p=!o;++a<d;)f[a]=t[a];for(var m=a;++l<c;)f[m+l]=n[l];for(;++s<u;)(p||a<i)&&(f[m+r[s]]=t[a++]);return f}}function KG(){if(JT)return gx;return JT=1,gx=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}}function PI(){if(ZT)return yx;return ZT=1,yx=function(){}}function RI(){if(eO)return wx;eO=1;var e=R0(),t=PI();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 vk(){if(tO)return _x;tO=1;var e=fk(),t=X4();return _x=e?function(t){return e.get(t)}:t}function YG(){if(nO)return bx;nO=1;return bx={}}function QG(){if(rO)return xx;rO=1;var e=YG(),t=Object.prototype.hasOwnProperty;return xx=function(n){for(var r=n.name+"",o=e[r],a=t.call(e,r)?o.length:0;a--;){var i=o[a],s=i.func;if(null==s||s==n)return i.name}return r}}function gk(){if(oO)return Sx;oO=1;var e=R0(),t=PI();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 XG(){if(iO)return $x;iO=1;var e=RI(),t=gk(),n=P0();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 JG(){if(aO)return Ix;aO=1;var e=RI(),t=gk(),n=PI(),r=Pi(),o=aa(),a=XG(),i=Object.prototype.hasOwnProperty;function s(n){if(o(n)&&!r(n)&&!(n instanceof e)){if(n instanceof t)return n;if(i.call(n,"__wrapped__"))return a(n)}return new t(n)}return s.prototype=n.prototype,s.prototype.constructor=s,Ix=s}function ZG(){if(sO)return Cx;sO=1;var e=RI(),t=vk(),n=QG(),r=JG();return Cx=function(o){var a=n(o),i=r[a];if("function"!=typeof i||!(a in e.prototype))return!1;if(o===i)return!0;var s=t(i);return!!s&&o===s[0]}}function yk(){if(uO)return Ex;uO=1;var e=pk(),t=VA()(e);return Ex=t}function eH(){if(lO)return Px;lO=1;var e=/\{\n\/\* \[wrapped with (.+)\] \*/,t=/,? & /;return Px=function(n){var r=n.match(e);return r?r[1].split(t):[]}}function tH(){if(cO)return Rx;cO=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 nH(){if(dO)return Tx;dO=1;var e=M$(),t=Q4(),n=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];return Tx=function(r,o){return e(n,(function(e){var n="_."+e[0];o&e[1]&&!t(r,n)&&r.push(n)})),r.sort()}}function wk(){if(fO)return Ox;fO=1;var e=eH(),t=tH(),n=WA(),r=nH();return Ox=function(o,a,i){var s=a+"";return n(o,t(s,r(e(s),i)))}}function _k(){if(pO)return Ax;pO=1;var e=ZG(),t=yk(),n=wk();return Ax=function(r,o,a,i,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=a.apply(void 0,m);return e(r)&&t(h,m),h.placeholder=i,n(h,r,o)}}function bk(){if(hO)return Dx;return hO=1,Dx=function(e){return e.placeholder}}function rH(){if(mO)return Nx;mO=1;var e=P0(),t=E$(),n=Math.min;return Nx=function(r,o){for(var a=r.length,i=n(o.length,a),s=e(r);i--;){var u=o[i];r[i]=t(u,a)?s[u]:void 0}return r}}function TI(){if(vO)return Mx;vO=1;var e="__lodash_placeholder__";return Mx=function(t,n){for(var r=-1,o=t.length,a=0,i=[];++r<o;){var s=t[r];(s===n||s===e)&&(t[r]=e,i[a++]=r)}return i}}function xk(){if(gO)return kx;gO=1;var e=hk(),t=mk(),n=KG(),r=K0(),o=_k(),a=bk(),i=rH(),s=TI(),u=si();return kx=function l(c,d,f,p,m,h,v,g,y,b){var w=128&d,x=1&d,_=2&d,S=24&d,I=512&d,A=_?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 P=a(E),N=n(M,P);if(p&&(M=e(M,p,m,S)),h&&(M=t(M,h,v,S)),k-=N,S&&k<b){var O=s(M,P);return o(c,d,l,E.placeholder,f,M,O,g,y,b-k)}var T=x?f:this,q=_?T[c]:c;return k=M.length,g?M=i(M,g):I&&k>1&&M.reverse(),w&&y<k&&(M.length=y),this&&this!==u&&this instanceof E&&(q=A||r(q)),q.apply(T,M)}},kx}function oH(){if(yO)return Lx;yO=1;var e=D$(),t=K0(),n=xk(),r=_k(),o=bk(),a=TI(),i=si();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?[]:a(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!==i&&this instanceof t?c:s,this,f)}},Lx}function iH(){if(wO)return Bx;wO=1;var e=D$(),t=K0(),n=si();return Bx=function(r,o,a,i){var s=1&o,u=t(r);return function t(){for(var o=-1,l=arguments.length,c=-1,d=i.length,f=Array(d+l),p=this&&this!==n&&this instanceof t?u:r;++c<d;)f[c]=i[c];for(;l--;)f[c++]=arguments[++o];return e(p,s?a:this,f)}},Bx}function aH(){if(_O)return Fx;_O=1;var e=hk(),t=mk(),n=TI(),r="__lodash_placeholder__",o=128,a=Math.min;return Fx=function(i,s){var u=i[1],l=s[1],c=u|l,d=c<131,f=l==o&&8==u||l==o&&256==u&&i[7].length<=s[8]||384==l&&s[7].length<=s[8]&&8==u;if(!d&&!f)return i;1&l&&(i[2]=s[2],c|=1&u?0:4);var p=s[3];if(p){var m=i[3];i[3]=m?e(m,p,s[4]):p,i[4]=m?n(i[3],r):s[4]}return(p=s[5])&&(m=i[5],i[5]=m?t(m,p,s[6]):p,i[6]=m?n(i[5],r):s[6]),(p=s[7])&&(i[7]=p),l&o&&(i[8]=null==i[8]?s[8]:a(i[8],s[8])),null==i[9]&&(i[9]=s[9]),i[0]=s[0],i[1]=c,i}}function OI(){if(bO)return jx;bO=1;var e=pk(),t=HG(),n=oH(),r=xk(),o=iH(),a=vk(),i=aH(),s=yk(),u=wk(),l=KA(),c=Math.max;return jx=function(d,f,p,m,h,v,g,y){var b=2&f;if(!b&&"function"!=typeof d)throw new TypeError("Expected a function");var w=m?m.length:0;if(w||(f&=-97,m=h=void 0),g=void 0===g?g:c(l(g),0),y=void 0===y?y:l(y),w-=h?h.length:0,64&f){var x=m,_=h;m=h=void 0}var S=b?void 0:a(d),I=[d,f,p,m,h,x,_,v,g,y];if(S&&i(I,S),d=I[0],f=I[1],p=I[2],m=I[3],h=I[4],!(y=I[9]=void 0===I[9]?b?0:d.length:c(I[9]-w,0))&&24&f&&(f&=-25),f&&1!=f)A=8==f||16==f?n(d,f,y):32!=f&&33!=f||h.length?r.apply(void 0,I):o(d,f,p,m);else var A=t(d,f,p);return u((S?e:s)(A,I),d,f)}}function sH(){if(xO)return zx;xO=1;var e=OI();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 uH(){if(SO)return Ux;SO=1;var e=JA();return Ux=function(t){return e(t,4)}}function lH(){if($O)return Vx;$O=1;var e=OI();function t(n,r,o){var a=e(n,8,void 0,void 0,void 0,void 0,void 0,r=o?void 0:r);return a.placeholder=t.placeholder,a}return t.placeholder={},Vx=t}function cH(){if(IO)return Wx;IO=1;var e=Al(),t=aa(),n=y8();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 dH(){if(CO)return qx;CO=1;var e=kv(),t=aa();return qx=function(n){return t(n)&&"[object WeakMap]"==e(n)}}function fH(){if(EO)return Gx;EO=1;var e=JA(),t=q4();return Gx=function(n){return t("function"==typeof n?n:e(n,1))}}function pH(){if(PO)return Hx;PO=1;var e=OI(),t=F8(),n=t((function(t,n){return e(t,256,void 0,void 0,void 0,n)}));return Hx=n}function hH(){if(RO)return Kx;RO=1;var e=xA(),t=P0(),n=Pi(),r=Nv(),o=bA(),a=Mv(),i=SA();return Kx=function(s){return n(s)?e(s,a):r(s)?[s]:t(o(i(s)))}}function mH(){return TO||(TO=1,Yx={ary:sH(),assign:QA(),clone:uH(),curry:lH(),forEach:M$(),isArray:Pi(),isError:cH(),isFunction:b0(),isWeakMap:dH(),iteratee:fH(),keys:MA(),rearg:pH(),toInteger:KA(),toPath:hH()}),Yx}function vH(){if(OO)return Qx;OO=1;var e=h2(),t=mH();return Qx=function(n,r,o){return e(t,n,r,o)}}function gH(){if(AO)return Xx;AO=1;var e=vH()("debounce",GA());return e.placeholder=p2(),Xx=e}function DO(e,t,n=window){const r=We(t);Ke((()=>{r.current=t}),[t]),Ke((()=>{if(!n)return;const t=e=>r.current(e);return n.addEventListener(e,t),()=>{n.removeEventListener(e,t)}}),[e,n])}gH();const yH=()=>c0(dk.selectors.selectIsMobile);function NO({className:e,...t}){return q.jsx("div",{className:we("animate-pulse rounded-md bg-muted",e),...t})}const wH="sidebar_state",_H=604800,bH="12rem",xH="18rem",SH="2rem",$H="b",Sk=M.createContext(null);function Y0(){const e=M.useContext(Sk);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const IH=M.forwardRef((({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...i},s)=>{const u=yH(),[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=`${wH}=${t}; path=/; max-age=${_H}`}),[n,p]),h=M.useCallback((()=>u?c((e=>!e)):m((e=>!e))),[u,m,c]);M.useEffect((()=>{const e=e=>{e.key===$H&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),h())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[h]);const v=p?"expanded":"collapsed",g=M.useMemo((()=>({state:v,open:p,setOpen:m,isMobile:u,openMobile:l,setOpenMobile:c,toggleSidebar:h})),[v,p,m,u,l,c,h]);return q.jsx(Sk.Provider,{value:g,children:q.jsx(gq,{delayDuration:0,children:q.jsx("div",{style:{"--sidebar-width":bH,"--sidebar-width-icon":SH,...o},className:we("group/sidebar-wrapper flex min-h-svh w-full bg-gray-100 has-[[data-variant=inset]]:bg-sidebar",r),ref:s,...i,children:a})})})}));IH.displayName="SidebarProvider";const CH=M.forwardRef((({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a},i)=>{const{isMobile:s,state:u,openMobile:l,setOpenMobile:c}=Y0();return"none"===n?q.jsx("div",{className:we("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:i,...a,children:o}):s?q.jsx(dq,{open:l,onOpenChange:c,children:q.jsxs(QM,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":xH},side:e,children:[q.jsxs(XM,{className:"sr-only",children:[q.jsx(JM,{children:"Sidebar"}),q.jsx(ZM,{children:"Displays the mobile sidebar."})]}),q.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):q.jsxs("div",{ref:i,className:"group peer hidden text-sidebar-foreground md:block","data-state":u,"data-collapsible":"collapsed"===u?n:"","data-variant":t,"data-side":e,children:[q.jsx("div",{className:we("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===t||"inset"===t?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),q.jsx("div",{className:we("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex","left"===e?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===t||"inset"===t?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...a,children:q.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-sm group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})}));CH.displayName="Sidebar";const EH=M.forwardRef((({className:e,onClick:t,...n},r)=>{const{toggleSidebar:o,open:a}=Y0();return q.jsx(f0,{ref:r,"data-sidebar":"trigger",variant:"tertiary",size:"icon_m",className:we("size-6 text-gray-900",e),onClick:e=>{null==t||t(e),o()},...n,children:a?q.jsx(uL,{size:16}):q.jsx(aL,{size:16})})}));EH.displayName="SidebarTrigger";const PH=M.forwardRef((({className:e,...t},n)=>{const{toggleSidebar:r}=Y0();return q.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:we("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}));PH.displayName="SidebarRail";const RH=M.forwardRef((({className:e,...t},n)=>q.jsx("main",{ref:n,className:we("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-m md:peer-data-[variant=inset]:shadow",e),...t})));RH.displayName="SidebarInset";const TH=M.forwardRef((({className:e,...t},n)=>q.jsx(NM,{ref:n,"data-sidebar":"input",className:we("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t})));TH.displayName="SidebarInput";const OH=M.forwardRef((({className:e,...t},n)=>q.jsx("div",{ref:n,"data-sidebar":"header",className:we("flex flex-col gap-xxs p-xs",e),...t})));OH.displayName="SidebarHeader";const AH=M.forwardRef((({className:e,...t},n)=>q.jsx("div",{ref:n,"data-sidebar":"footer",className:we("flex flex-col gap-2 p-2",e),...t})));AH.displayName="SidebarFooter";const DH=M.forwardRef((({className:e,...t},n)=>q.jsx(lI,{ref:n,"data-sidebar":"separator",className:we("mx-2 w-auto bg-sidebar-border",e),...t})));DH.displayName="SidebarSeparator";const NH=M.forwardRef((({className:e,...t},n)=>q.jsx("div",{ref:n,"data-sidebar":"content",className:we("flex min-h-0 flex-1 flex-col gap-xxxs overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})));NH.displayName="SidebarContent";const MH=M.forwardRef((({className:e,...t},n)=>q.jsx("div",{ref:n,"data-sidebar":"group",className:we("relative flex w-full min-w-0 flex-col pt-xs",e),...t})));MH.displayName="SidebarGroup";const kH=M.forwardRef((({className:e,asChild:t=!1,...n},r)=>{const o=t?xd:"div";return q.jsx(o,{ref:r,"data-sidebar":"group-label",className:we("flex h-s shrink-0 items-center rounded-md px-xxs py-xxs text-xs font-semibold text-gray-700 opacity-60 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-xl group-data-[collapsible=icon]:opacity-0",e),...n})}));kH.displayName="SidebarGroupLabel";const LH=M.forwardRef((({className:e,asChild:t=!1,...n},r)=>{const o=t?xd:"button";return q.jsx(o,{ref:r,"data-sidebar":"group-action",className:we("absolute right-xs top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})}));LH.displayName="SidebarGroupAction";const BH=M.forwardRef((({className:e,...t},n)=>q.jsx("div",{ref:n,"data-sidebar":"group-content",className:we("w-full text-sm",e),...t})));BH.displayName="SidebarGroupContent";const FH=M.forwardRef((({className:e,...t},n)=>q.jsx("ul",{ref:n,"data-sidebar":"menu",className:we("flex w-full min-w-0 flex-col p-xs font-semibold text-gray-700 [&_svg]:size-4",e),...t})));FH.displayName="SidebarMenu";const jH=M.forwardRef((({className:e,...t},n)=>q.jsx("li",{ref:n,"data-sidebar":"menu-item",className:we("group/menu-item relative",e),...t})));jH.displayName="SidebarMenuItem";const zH=wu("peer/menu-button flex w-full items-center gap-xxs overflow-hidden rounded-sm p-xxs text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:text-blue_100 hover:bg-white focus-visible:ring-2 active:bg-white active:text-blue_100 disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-white data-[active=true]:font-medium data-[active=true]:text-blue_100 data-[state=open]:hover:bg-white data-[state=open]:hover:text-blue_100 group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:text-blue_100 hover:bg-white",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-white hover:text-blue_100 hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-s text-sm",sm:"h-m text-xs",lg:"h-l text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),UH=M.forwardRef((({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...i},s)=>{const u=e?xd:"button",{isMobile:l,state:c}=Y0(),d=q.jsx(u,{ref:s,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:we(zH({variant:n,size:r}),a),...i});return o?("string"==typeof o&&(o={children:o}),q.jsxs(wq,{children:[q.jsx(_q,{asChild:!0,children:d}),q.jsx(tk,{side:"right",align:"center",hidden:"collapsed"!==c||l,...o})]})):d}));UH.displayName="SidebarMenuButton";const VH=M.forwardRef((({className:e,asChild:t=!1,showOnHover:n=!1,...r},o)=>{const a=t?xd:"button";return q.jsx(a,{ref:o,"data-sidebar":"menu-action",className:we("absolute right-xxxs top-xxs flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-xxxs","peer-data-[size=default]/menu-button:top-xxs","peer-data-[size=lg]/menu-button:top-xs","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})}));VH.displayName="SidebarMenuAction";const WH=M.forwardRef((({className:e,...t},n)=>q.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:we("pointer-events-none absolute right-xxxs flex h-m min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-xxxs","peer-data-[size=default]/menu-button:top-xxs","peer-data-[size=lg]/menu-button:top-xs","group-data-[collapsible=icon]:hidden",e),...t})));WH.displayName="SidebarMenuBadge";const qH=M.forwardRef((({className:e,showIcon:t=!1,...n},r)=>{const o=M.useMemo((()=>`${Math.floor(40*Math.random())+50}%`),[]);return q.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:we("flex h-8 items-center gap-xxs rounded-md px-xxs",e),...n,children:[t&&q.jsx(NO,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),q.jsx(NO,{className:"h-xxxs max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})}));qH.displayName="SidebarMenuSkeleton";const GH=M.forwardRef((({className:e,...t},n)=>q.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:we("flex min-w-0 translate-x-px flex-col gap-xxxs border-l border-sidebar-border","group-data-[collapsible=icon]:hidden",e),...t})));GH.displayName="SidebarMenuSub";const HH=M.forwardRef((({...e},t)=>q.jsx("li",{ref:t,...e})));HH.displayName="SidebarMenuSubItem";const KH=M.forwardRef((({asChild:e=!1,size:t="md",isActive:n,className:r,...o},a)=>{const i=e?xd:"a";return q.jsx(i,{ref:a,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:we("flex h-s min-w-0 -translate-x-px items-center gap-xxs overflow-hidden rounded-sm px-xxs text-sm text-gray-700 outline-none ring-sidebar-ring hover:bg-white hover:text-blue_100 focus-visible:ring-2 active:bg-white active:text-blue_100 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-blue_100","data-[active=true]:bg-white data-[active=true]:text-blue_100","sm"===t&&"text-xs","md"===t&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})}));KH.displayName="SidebarMenuSubButton";const $k="Switch",[YH,QX]=ai($k),[QH,XH]=YH($k),JH=Le(((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:u="on",onCheckedChange:l,...c}=e,[d,f]=ut(null),p=Ht(t,(e=>f(e))),m=We(!1),h=!d||!!d.closest("form"),[v=!1,g]=vd({prop:o,defaultProp:a,onChange:l});return ae(QH,{scope:n,checked:v,disabled:s},ae(ht.button,Ee({type:"button",role:"switch","aria-checked":v,"aria-required":i,"data-state":Ik(v),"data-disabled":s?"":void 0,disabled:s,value:u},c,{ref:p,onClick:ot(e.onClick,(e=>{g((e=>!e)),h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))})),h&&ae(tK,{control:d,bubbles:!m.current,name:r,value:u,checked:v,required:i,disabled:s,style:{transform:"translateX(-100%)"}}))})),ZH="SwitchThumb",eK=Le(((e,t)=>{const{__scopeSwitch:n,...r}=e,o=XH(ZH,n);return ae(ht.span,Ee({"data-state":Ik(o.checked),"data-disabled":o.disabled?"":void 0},r,{ref:t}))})),tK=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=We(null),i=T0(n),s=O0(t);return Ke((()=>{const e=a.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[i,n,r]),ae("input",Ee({type:"checkbox","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Ik(e){return e?"checked":"unchecked"}const Ck=JH,nK=eK,rK=M.forwardRef((({className:e,...t},n)=>q.jsx(Ck,{className:we("group peer inline-flex h-xs w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background data-[state=checked]:bg-blue_100 data-[state=unchecked]:bg-gray-200","disabled:cursor-not-allowed disabled:!bg-gray-100 md:hover:data-[state=checked]:bg-blue_120 md:hover:data-[state=unchecked]:!bg-gray-300",e),...t,ref:n,children:q.jsx(nK,{className:we("pointer-events-none block size-xxs rounded-full bg-background shadow-lg ring-0 transition-[transform,width] data-[state=checked]:translate-x-[20px] data-[state=unchecked]:translate-x-0",{"md:group-hover:w-[26px] md:group-hover:data-[state=checked]:translate-x-[14px]":!t.disabled,"bg-gray-300":t.disabled})})})));rK.displayName=Ck.displayName;var AI=Symbol.for("immer-nothing"),pv=Symbol.for("immer-draftable"),Ci=Symbol.for("immer-state");function Ro(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ep=Object.getPrototypeOf;function Rl(e){return!!e&&!!e[Ci]}function Tl(e){var t;return!!e&&(Ek(e)||Array.isArray(e)||!!e[pv]||!(null==(t=e.constructor)||!t[pv])||Vv(e)||Wv(e))}var oK=Object.prototype.constructor.toString();function Ek(e){if(!e||"object"!=typeof e)return!1;const t=ep(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)===oK}function iK(e){return Rl(e)||Ro(15,e),e[Ci].base_}function Vh(e,t){0===tp(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function tp(e){const t=e[Ci];return t?t.type_:Array.isArray(e)?1:Vv(e)?2:Wv(e)?3:0}function Cv(e,t){return 2===tp(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Jx(e,t){return 2===tp(e)?e.get(t):e[t]}function Pk(e,t,n){const r=tp(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function aK(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Vv(e){return e instanceof Map}function Wv(e){return e instanceof Set}function Bf(e){return e.copy_||e.base_}function zS(e,t){if(Vv(e))return new Map(e);if(Wv(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Ek(e))return ep(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Ci];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const o=r[t],a=n[o];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(ep(e),n)}function DI(e,t=!1){return Q0(e)||Rl(e)||!Tl(e)||(tp(e)>1&&(e.set=e.add=e.clear=e.delete=sK),Object.freeze(e),t&&Vh(e,((e,t)=>DI(t,!0)))),e}function sK(){Ro(2)}function Q0(e){return Object.isFrozen(e)}var Ev,US={};function np(e){const t=US[e];return t||Ro(0,e),t}function uK(e,t){US[e]||(US[e]=t)}function Rk(){return Ev}function lK(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function MO(e,t){t&&(np("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function VS(e){WS(e),e.drafts_.forEach(cK),e.drafts_=null}function WS(e){e===Ev&&(Ev=e.parent_)}function kO(e){return Ev=lK(Ev,e)}function cK(e){const t=e[Ci];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function LO(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[Ci].modified_&&(VS(t),Ro(4)),Tl(e)&&(e=s0(t,e),t.parent_||u0(t,e)),t.patches_&&np("Patches").generateReplacementPatches_(n[Ci].base_,e,t.patches_,t.inversePatches_)):e=s0(t,n,[]),VS(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==AI?e:void 0}function s0(e,t,n){if(Q0(t))return t;const r=t[Ci];if(!r)return Vh(t,((o,a)=>BO(e,r,t,o,a,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return u0(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,a=!1;3===r.type_&&(o=new Set(t),t.clear(),a=!0),Vh(o,((o,i)=>BO(e,r,t,o,i,n,a))),u0(e,t,!1),n&&e.patches_&&np("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function BO(e,t,n,r,o,a,i){if(Rl(o)){const i=s0(e,o,a&&t&&3!==t.type_&&!Cv(t.assigned_,r)?a.concat(r):void 0);if(Pk(n,r,i),!Rl(i))return;e.canAutoFreeze_=!1}else i&&n.add(o);if(Tl(o)&&!Q0(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;s0(e,o),(!t||!t.scope_.parent_)&&u0(e,o)}}function u0(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&DI(t,n)}function dK(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Rk(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,a=NI;n&&(o=[r],a=Pv);const{revoke:i,proxy:s}=Proxy.revocable(o,a);return r.draft_=s,r.revoke_=i,s}var NI={get(e,t){if(t===Ci)return e;const n=Bf(e);if(!Cv(n,t))return fK(e,n,t);const r=n[t];return e.finalized_||!Tl(r)?r:r===Zx(e.base_,t)?(eS(e),e.copy_[t]=GS(r,e)):r},has:(e,t)=>t in Bf(e),ownKeys:e=>Reflect.ownKeys(Bf(e)),set(e,t,n){const r=Tk(Bf(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Zx(Bf(e),t),o=null==r?void 0:r[Ci];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(aK(n,r)&&(void 0!==n||Cv(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=Bf(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){Ro(11)},getPrototypeOf:e=>ep(e.base_),setPrototypeOf(){Ro(12)}},Pv={};function Zx(e,t){const n=e[Ci];return(n?Bf(n):e)[t]}function fK(e,t,n){var r;const o=Tk(t,n);return o?"value"in o?o.value:null==(r=o.get)?void 0:r.call(e.draft_):void 0}function Tk(e,t){if(!(t in e))return;let n=ep(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=ep(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_))}Vh(NI,((e,t)=>{Pv[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Pv.deleteProperty=function(e,t){return Pv.set.call(this,e,t,void 0)},Pv.set=function(e,t,n){return NI.set.call(this,e[0],t,n,e[0])};var pK=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&&Ro(6),void 0!==n&&"function"!=typeof n&&Ro(7),Tl(e)){const o=kO(this),a=GS(e,void 0);let i=!0;try{r=t(a),i=!1}finally{i?VS(o):WS(o)}return MO(o,n),LO(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===AI&&(r=void 0),this.autoFreeze_&&DI(r,!0),n){const t=[],o=[];np("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}Ro(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){Tl(e)||Ro(8),Rl(e)&&(e=hK(e));const t=kO(this),n=GS(e,void 0);return n[Ci].isManual_=!0,WS(t),n}finishDraft(e,t){const n=e&&e[Ci];(!n||!n.isManual_)&&Ro(9);const{scope_:r}=n;return MO(r,t),LO(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=np("Patches").applyPatches_;return Rl(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function GS(e,t){const n=Vv(e)?np("MapSet").proxyMap_(e,t):Wv(e)?np("MapSet").proxySet_(e,t):dK(e,t);return(t?t.scope_:Rk()).drafts_.push(n),n}function hK(e){return Rl(e)||Ro(10,e),Ok(e)}function Ok(e){if(!Tl(e)||Q0(e))return e;const t=e[Ci];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 Vh(n,((e,t)=>{Pk(n,e,Ok(t))})),t&&(t.finalized_=!1),n}function mK(){const e="replace",t="remove";function n(e){if(!Tl(e))return e;if(Array.isArray(e))return e.map(n);if(Vv(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,n(t)])));if(Wv(e))return new Set(Array.from(e).map(n));const t=Object.create(ep(e));for(const r in e)t[r]=n(e[r]);return Cv(e,pv)&&(t[pv]=e[pv]),t}function r(e){return Rl(e)?n(e):e}uK("Patches",{applyPatches_:function(r,o){return o.forEach((o=>{const{path:a,op:i}=o;let s=r;for(let e=0;e<a.length-1;e++){const t=tp(s);let n=a[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&Ro(19),"function"==typeof s&&"prototype"===n&&Ro(19),s=Jx(s,n),"object"!=typeof s&&Ro(18,a.join("/"))}const u=tp(s),l=n(o.value),c=a[a.length-1];switch(i){case e:switch(u){case 2:return s.set(c,l);case 3:Ro(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:Ro(17,i)}})),r},generatePatches_:function(n,o,a,i){switch(n.type_){case 0:case 2:return function(n,o,a,i){const{base_:s,copy_:u}=n;Vh(n.assigned_,((n,l)=>{const c=Jx(s,n),d=Jx(u,n),f=l?Cv(s,n)?e:"add":t;if(c===d&&f===e)return;const p=o.concat(n);a.push(f===t?{op:f,path:p}:{op:f,path:p,value:d}),i.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,a,i);case 1:return function(n,o,a,i){let{base_:s,assigned_:u}=n,l=n.copy_;l.length<s.length&&([s,l]=[l,s],[a,i]=[i,a]);for(let t=0;t<s.length;t++)if(u[t]&&l[t]!==s[t]){const n=o.concat([t]);a.push({op:e,path:n,value:r(l[t])}),i.push({op:e,path:n,value:r(s[t])})}for(let e=s.length;e<l.length;e++){const t=o.concat([e]);a.push({op:"add",path:t,value:r(l[e])})}for(let e=l.length-1;s.length<=e;--e){const n=o.concat([e]);i.push({op:t,path:n})}}(n,o,a,i);case 3:return function(e,n,r,o){let{base_:a,copy_:i}=e,s=0;a.forEach((e=>{if(!i.has(e)){const a=n.concat([s]);r.push({op:t,path:a,value:e}),o.unshift({op:"add",path:a,value:e})}s++})),s=0,i.forEach((e=>{if(!a.has(e)){const a=n.concat([s]);r.push({op:"add",path:a,value:e}),o.unshift({op:t,path:a,value:e})}s++}))}(n,o,a,i)}},generateReplacementPatches_:function(t,n,r,o){r.push({op:e,path:[],value:n===AI?void 0:n}),o.push({op:e,path:[],value:t})}})}var oa=new pK;oa.produce;var Ak=oa.produceWithPatches.bind(oa);oa.setAutoFreeze.bind(oa),oa.setUseStrictShallowCopy.bind(oa);var FO=oa.applyPatches.bind(oa);function vK(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function gK(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function yK(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}oa.createDraft.bind(oa),oa.finishDraft.bind(oa);var jO=e=>Array.isArray(e)?e:[e];function wK(e){const t=Array.isArray(e[0])?e[0]:e;return yK(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function _K(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var bK=class{constructor(e){this.value=e}deref(){return this.value}},xK=typeof WeakRef<"u"?WeakRef:bK,SK=0,zO=1;function Lg(){return{s:SK,v:void 0,o:null,p:null}}function l0(e,t={}){let n=Lg();const{resultEqualityCheck:r}=t;let o,a=0;function i(){var t;let i=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=i.o;null===e&&(i.o=e=new WeakMap);const n=e.get(t);void 0===n?(i=Lg(),e.set(t,i)):i=n}else{let e=i.p;null===e&&(i.p=e=new Map);const n=e.get(t);void 0===n?(i=Lg(),e.set(t,i)):i=n}}const u=i;let l;if(i.s===zO?l=i.v:(l=e.apply(null,arguments),a++),u.s=zO,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!==a&&a--),o="object"==typeof l&&null!==l||"function"==typeof l?new xK(l):l}return u.v=l,l}return i.clearCache=()=>{n=Lg(),i.resetResultsCount()},i.resultsCount=()=>a,i.resetResultsCount=()=>{a=0},i}function $K(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,a={},i=e.pop();"object"==typeof i&&(a=i,i=e.pop()),vK(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const s={...n,...a},{memoize:u,memoizeOptions:l=[],argsMemoize:c=l0,argsMemoizeOptions:d=[],devModeChecks:f={}}=s,p=jO(l),m=jO(d),h=wK(e),v=u((function(){return r++,i.apply(null,arguments)}),...p),g=c((function(){o++;const e=_K(h,arguments);return t=v.apply(null,e),t}),...m);return Object.assign(g,{resultFunc:i,memoizedResultFunc:v,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 Dk=$K(l0),IK=Object.assign(((e,t=Dk)=>{gK(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:()=>IK}),CK={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/network/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/network/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:"2aab8262cd0296e4",NODE:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_package_name:"@wellesley/network",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.681",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/network",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/network",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"3762",APP_NAME:"@wellesley/network"},Nk=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(Nk||{});function EK(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function PK(e){return new RegExp("(^|:)//").test(e)}var RK=e=>e.replace(/\/$/,""),TK=e=>e.replace(/^\//,"");function OK(e,t){if(!e)return t;if(!t)return e;if(PK(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=RK(e)}${n}${t=TK(t)}`}var UO=e=>[].concat(...e);function AK(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function DK(){return typeof document>"u"||"hidden"!==document.visibilityState}var VO=qf;function Mk(e,t){if(e===t||!(VO(e)&&VO(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 a=Array.isArray(t)?[]:{};for(const r of n)a[r]=Mk(e[r],t[r]),o&&(o=e[r]===a[r]);return o?e:a}var WO=(...e)=>fetch(...e),NK=e=>e.status>=200&&e.status<=299,MK=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function qO(e){if(!qf(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function kK({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=WO,paramsSerializer:r,isJsonContentType:o=MK,jsonContentType:a="application/json",jsonReplacer:i,timeout:s,responseHandler:u,validateStatus:l,...c}={}){return typeof fetch>"u"&&n===WO&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(f,p)=>{const{signal:m,getState:h,extra:v,endpoint:g,forced:y,type:b}=p;let w,{url:x,headers:_=new Headers(c.headers),params:S,responseHandler:I=u??"json",validateStatus:A=l??NK,timeout:E=s,...k}="string"==typeof f?{url:f}:f,M={...c,signal:m,...k};_=new Headers(qO(_)),M.headers=await t(_,{getState:h,extra:v,endpoint:g,forced:y,type:b})||_;const C=e=>"object"==typeof e&&(qf(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!M.headers.has("content-type")&&C(M.body)&&M.headers.set("content-type",a),C(M.body)&&o(M.headers)&&(M.body=JSON.stringify(M.body,i)),S){const e=~x.indexOf("?")?"&":"?";x+=e+(r?r(S):new URLSearchParams(qO(S)))}x=OK(e,x);const P=new Request(x,M);w={request:new Request(x,M)};let N,O=!1,T=E&&setTimeout((()=>{O=!0,p.abort()}),E);try{N=await n(P)}catch(e){return{error:{status:O?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:w}}finally{T&&clearTimeout(T)}const q=N.clone();w.response=q;let R,j="";try{let e;if(await Promise.all([d(N,I).then((e=>R=e),(t=>e=t)),q.text().then((e=>j=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:N.status,data:j,error:String(e)},meta:w}}return A(N,R)?{data:R,meta:w}:{error:{status:N.status,data:R},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 GO=class{constructor(e,t=void 0){this.value=e,this.meta=t}},MI=Ol("__rtkq/focused"),kk=Ol("__rtkq/unfocused"),kI=Ol("__rtkq/online"),Lk=Ol("__rtkq/offline");function Bk(e){return"query"===e.type}function LK(e){return"mutation"===e.type}function LI(e,t,n,r,o,a){return BK(e)?e(t,n,r,o).map(HS).map(a):Array.isArray(e)?e.map(HS).map(a):[]}function BK(e){return"function"==typeof e}function HS(e){return"string"==typeof e?{type:e}:e}function HO(e){return null!=e}function Bh(e){let t=0;for(const n in e)t++;return t}function FK(e,t){return e.catch(t)}var Rv=Symbol("forceQueryFn"),KS=e=>"function"==typeof e[Rv];function jK({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:o}){const a=new Map,i=new Map,{unsubscribeQueryResult:s,removeMutationResult:u,updateSubscriptionOptions:l}=r.internalActions;return{buildInitiateQuery:function(n,o){const i=(u,{subscribe:c=!0,forceRefetch:d,subscriptionOptions:f,[Rv]:p,...m}={})=>(h,v)=>{var g;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,[Rv]:p}),w=r.endpoints[n].select(u),x=h(b),_=w(v()),{requestId:S,abort:I}=x,A=_.requestId!==S,E=null==(g=a.get(h))?void 0:g[y],k=()=>w(v()),M=Object.assign(p?x.then(k):A&&!E?Promise.resolve(_):Promise.all([E,x]).then(k),{arg:u,requestId:S,subscriptionOptions:f,queryCacheKey:y,abort:I,async unwrap(){const e=await M;if(e.isError)throw e.error;return e.data},refetch:()=>h(i(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&&!A&&!p){const e=a.get(h)||{};e[y]=M,a.set(h,e),M.then((()=>{delete e[y],Bh(e)||a.delete(h)}))}return M};return i},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:o}={})=>(a,s)=>{const l=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:o}),c=a(l),{requestId:d,abort:f,unwrap:p}=c,m=FK(c.unwrap().then((e=>({data:e}))),(e=>({error:e}))),h=Object.assign(m,{arg:c.arg,requestId:d,abort:f,unwrap:p,reset:()=>{a(u({requestId:d,fixedCacheKey:o}))}}),v=i.get(a)||{};return i.set(a,v),v[d]=h,h.then((()=>{delete v[d],Bh(v)||i.delete(a)})),o&&(v[o]=h,h.then((()=>{v[o]===h&&(delete v[o],Bh(v)||i.delete(a))}))),h}},getRunningQueryThunk:function(t,n){return r=>{var i;const s=o.endpointDefinitions[t],u=e({queryArgs:n,endpointDefinition:s,endpointName:t});return null==(i=a.get(r))?void 0:i[u]}},getRunningMutationThunk:function(e,t){return e=>{var n;return null==(n=i.get(e))?void 0:n[t]}},getRunningQueriesThunk:function(){return e=>Object.values(a.get(e)||{}).filter(HO)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter(HO)}}}function KO(e){return e}function zK({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:o,assertTagType:a}){const i=async(e,{signal:r,abort:o,rejectWithValue:a,fulfillWithValue:i,dispatch:u,getState:l,extra:c})=>{const d=n[e.endpointName];try{let n,a=KO;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[Rv]:void 0;if(p?n=p():d.query?(n=await t(d.query(e.originalArgs),f,d.extraOptions),d.transformResponse&&(a=d.transformResponse)):n=await d.queryFn(e.originalArgs,f,d.extraOptions,(e=>t(e,f,d.extraOptions))),typeof process<"u"&&CK.NODE_ENV,n.error)throw new GO(n.error,n.meta);return i(await a(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[yg]:!0})}catch(t){let n=t;if(n instanceof GO){let t=KO;d.query&&d.transformErrorResponse&&(t=d.transformErrorResponse);try{return a(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[yg]:!0})}catch(e){n=e}}throw console.error(n),n}};function s(t,n){var r,o,a;const i=null==(o=null==(r=n[e])?void 0:r.queries)?void 0:o[t.queryCacheKey],s=null==(a=n[e])?void 0:a.config.refetchOnMountOrArgChange,u=null==i?void 0:i.fulfilledTimeStamp,l=t.forceRefetch??(t.subscribe&&s);return!!l&&(!0===l||(Number(new Date)-Number(u))/1e3>=l)}const u=GI(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[yg]:!0}),condition(t,{getState:r}){var o,a,i;const u=r(),l=null==(a=null==(o=u[e])?void 0:o.queries)?void 0:a[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)||Bk(p)&&null!=(i=null==p?void 0:p.forceRefetch)&&i.call(p,{currentArg:d,previousArg:f,endpointState:l,state:u}))||!c)},dispatchConditionRejection:!0}),l=GI(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[yg]:!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,a)=>{const i=(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)(a());if(i)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)=>(a,i)=>{const s=o.endpoints[e].select(t)(i());let u,l={patches:[],inversePatches:[],undo:()=>a(o.util.patchQueryData(e,t,l.inversePatches,r))};if("uninitialized"===s.status)return l;if("data"in s)if(Tl(s.data)){const[e,t,r]=Ak(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 a(o.util.patchQueryData(e,t,l.patches,r)),l},upsertQueryData:(e,t,n)=>r=>r(o.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[Rv]:()=>({data:n})})),patchQueryData:(e,t,i,s)=>(u,l)=>{const c=n[e],d=r({queryArgs:t,endpointDefinition:c,endpointName:e});if(u(o.internalActions.queryResultPatched({queryCacheKey:d,patches:i})),!s)return;const f=o.endpoints[e].select(t)(l()),p=LI(c.providesTags,f.data,void 0,t,{},a);u(o.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:$1(c2(e),c(t)),matchFulfilled:$1(Gf(e),c(t)),matchRejected:$1(JS(e),c(t))}}}}function Fk(e,t,n,r){return LI(n[e.meta.arg.endpointName][t],Gf(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 Bg(e,t,n){const r=e[t];r&&n(r)}function Tv(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function YO(e,t,n){const r=e[Tv(t)];r&&n(r)}var Zm={};function UK({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:o,extractRehydrationInfo:a,hasRehydrationInfo:i},assertTagType:s,config:u}){const l=Ol(`${e}/resetApiState`),c=Po({name:`${e}/queries`,initialState:Zm,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Gm()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){Bg(e,t,(e=>{e.data=FO(e.data,n.concat())}))},prepare:Gm()}},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}),Bg(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})=>{Bg(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:a,baseQueryMeta:i,requestId:s}=t;let u=ZS(e.data,(e=>o(e,n,{arg:a.originalArgs,baseQueryMeta:i,fulfilledTimeStamp:r,requestId:s})));e.data=u}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?Mk(Rl(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:a})=>{Bg(e,n.queryCacheKey,(e=>{if(!t){if(e.requestId!==r)return;e.status="rejected",e.error=a??o}}))})).addMatcher(i,((e,t)=>{const{queries:n}=a(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=Po({name:`${e}/mutations`,initialState:Zm,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=Tv(t);n in e&&delete e[n]},prepare:Gm()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:o}})=>{r.track&&(e[Tv(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:o})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&YO(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&&YO(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(i,((e,t)=>{const{mutations:n}=a(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=Po({name:`${e}/invalidation`,initialState:Zm,reducers:{updateProvidedBy:{reducer(e,t){var n,r;const{queryCacheKey:o,providedTags:a}=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:i}of a){const a=(n=e[t]??(e[t]={}))[r=i||"__internal_without_id"]??(n[r]=[]);a.includes(o)||a.push(o)}},prepare:Gm()}},extraReducers(e){e.addCase(c.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(i,((e,t)=>{var n,r;const{provided:o}=a(t);for(const[t,a]of Object.entries(o))for(const[o,i]of Object.entries(a)){const a=(n=e[t]??(e[t]={}))[r=o||"__internal_without_id"]??(n[r]=[]);for(const e of i)a.includes(e)||a.push(e)}})).addMatcher(uS(Gf(t),XS(t)),((e,t)=>{const n=Fk(t,"providesTags",r,s),{queryCacheKey:o}=t.meta.arg;f.caseReducers.updateProvidedBy(e,f.actions.updateProvidedBy({queryCacheKey:o,providedTags:n}))}))}}),p=Po({name:`${e}/subscriptions`,initialState:Zm,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),m=Po({name:`${e}/internalSubscriptions`,initialState:Zm,reducers:{subscriptionsUpdated:{reducer:(e,t)=>FO(e,t.payload),prepare:Gm()}}}),h=Po({name:`${e}/config`,initialState:{online:AK(),focused:DK(),middlewareRegistered:!1,...u},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&o===t||"conflict"}},extraReducers:e=>{e.addCase(kI,(e=>{e.online=!0})).addCase(Lk,(e=>{e.online=!1})).addCase(MI,(e=>{e.focused=!0})).addCase(kk,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),v=p3({queries:c.reducer,mutations:d.reducer,provided:f.reducer,subscriptions:m.reducer,config:h.reducer});return{reducer:(e,t)=>v(l.match(t)?void 0:e,t),actions:{...h.actions,...c.actions,...p.actions,...m.actions,...d.actions,...f.actions,resetApiState:l}}}var Uf=Symbol.for("RTKQ/skipToken"),jk={status:"uninitialized"},QO=ZS(jk,(()=>{})),XO=ZS(jk,(()=>{}));function VK({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>QO,o=e=>XO;return{buildQuerySelector:function(t,o){return s=>{const u=e({queryArgs:s,endpointDefinition:o,endpointName:t});return n(s===Uf?r:e=>{var t,n;return(null==(n=null==(t=i(e))?void 0:t.queries)?void 0:n[u])??QO},a)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Tv(e)??Uf:e,n(t===Uf?o:e=>{var n,r;return(null==(r=null==(n=i(e))?void 0:n.mutations)?void 0:r[t])??XO},a)}},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]:UO(Object.values(t)))??[];for(const e of n)o.add(e)}return UO(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 a(e){return{...e,...EK(e.status)}}function i(e){return e[t]}}var Ah=WeakMap?new WeakMap:void 0,JO=({endpointName:e,queryArgs:t})=>{let n="";const r=null==Ah?void 0:Ah.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>qf(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));qf(t)&&(null==Ah||Ah.set(t,e)),n=e}return`${e}(${n})`};function WK(...e){return function(t){const n=l0((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=JO;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:JO({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},o={endpointDefinitions:{},batch(e){e()},apiUid:f3(),extractRehydrationInfo:n,hasRehydrationInfo:l0((e=>null!=n(e)))},a={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(l2(39))}else{o.endpointDefinitions[n]=r;for(const e of i)e.injectEndpoint(n,r)}return a},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 a}},i=e.map((e=>e.init(a,r,o)));return a.injectEndpoints({endpoints:t.endpoints})}}function qK(e){for(let t in e)return!1;return!0}var GK=2147482.647,HK=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:o,unsubscribeQueryResult:a}=t.internalActions;function i(e){const t=r.currentSubscriptions[e];return!!t&&!qK(t)}const s={};function u(e,t,r,a){const u=n.endpointDefinitions[t],l=(null==u?void 0:u.keepUnusedDataFor)??a.keepUnusedDataFor;if(l===1/0)return;const c=Math.max(0,Math.min(l,GK));if(!i(e)){const t=s[e];t&&clearTimeout(t),s[e]=setTimeout((()=>{i(e)||r.dispatch(o({queryCacheKey:e})),delete s[e]}),1e3*c)}}return(r,o,i)=>{var l;if(a.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:a}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(a))u(e,null==n?void 0:n.endpointName,o,t.config)}}},KK=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:a,assertTagType:i,refetchQuery:s,internalState:u})=>{const{removeQueryResult:l}=a.internalActions,c=uS(Gf(r),XS(r)),d=uS(Gf(r,o),JS(r,o));let f=[];function p(n,r){const o=r.getState(),i=o[e];if(f.push(...n),"delayed"===i.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}(i))return;const c=f;if(f=[],0===c.length)return;const d=a.util.selectInvalidatedBy(o,c);t.batch((()=>{const e=Array.from(d.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],n=u.currentSubscriptions[t]??{};e&&(0===Bh(n)?r.dispatch(l({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(s(e,t)))}}))}return(e,t)=>{c(e)?p(Fk(e,"invalidatesTags",n,i),t):d(e)?p([],t):a.util.invalidateTags.match(e)&&p(LI(e.payload,void 0,void 0,void 0,void 0,i),t)}},YK=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:o})=>{const a={};function i({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=a[t];null!=p&&p.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const m=Date.now()+d;a[t]={nextPollTimestamp:m,pollingInterval:d,timeout:setTimeout((()=>{(s.config.focused||!f)&&n.dispatch(r(u,t)),i({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=a[t],f=Date.now()+c;(!d||f<d.nextPollTimestamp)&&i({queryCacheKey:t},n)}function u(e){const t=a[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete a[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)&&i(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(a))u(e)}()}},QK=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:o})=>{const{removeQueryResult:a}=n.internalActions;function i(n,i){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[i]))||Object.values(o).every((e=>void 0===e[i]))&&s.config[i])&&(0===Bh(o)?n.dispatch(a({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{MI.match(e)&&i(t,"refetchOnFocus"),kI.match(e)&&i(t,"refetchOnReconnect")}},ZO=new Error("Promise never resolved before cacheEntryRemoved."),XK=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:o,internalState:a})=>{const i=HI(r),s=HI(o),u=Gf(r,o),l={};function c(t,r,o,a,i){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 ZO}))]);f.catch((()=>{})),l[o]=c;const p=e.endpoints[t].select("query"===s.type?r:o),m=a.dispatch(((e,t,n)=>n)),h={...a,getCacheEntry:()=>p(a.getState()),requestId:i,extra:m,updateCachedData:"query"===s.type?n=>a.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:d},v=u(r,h);Promise.resolve(v).catch((e=>{if(e!==ZO)throw e}))}return(n,a,d)=>{const f=function(t){return i(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)?Tv(t.payload):""}(n);if(r.pending.match(n)){const e=d[t].queries[f],r=a.getState()[t].queries[f];!e&&r&&c(n.meta.arg.endpointName,n.meta.arg.originalArgs,f,a,n.meta.requestId)}else if(o.pending.match(n))a.getState()[t].mutations[f]&&c(n.meta.arg.endpointName,n.meta.arg.originalArgs,f,a,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()}},JK=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const o=c2(n,r),a=JS(n,r),i=Gf(n,r),s={};return(n,r)=>{var u,l;if(o(n)){const{requestId:o,arg:{endpointName:a,originalArgs:i}}=n.meta,u=t.endpointDefinitions[a],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[a].select("query"===u.type?i: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(a,i,t)):void 0,queryFulfilled:n};l(i,f)}}else if(i(n)){const{requestId:e,baseQueryMeta:t}=n.meta;null==(u=s[e])||u.resolve({data:n.payload,meta:t}),delete s[e]}else if(a(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]}}},ZK=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},eY=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let o=null,a=null;const{updateSubscriptionOptions:i,unsubscribeQueryResult:s}=e.internalActions,u=()=>n.currentSubscriptions,l={getSubscriptions:u,getSubscriptionCount:e=>Bh(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={},a=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(u))return[!1,l];const d=((n,r)=>{var o,a,u;if(i.match(r)){const{queryCacheKey:e,requestId:t,options:a}=r.payload;return null!=(o=null==n?void 0:n[e])&&o[t]&&(n[e][t]=a),!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[a=e.queryCacheKey]??(n[a]={});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){a||(a=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=Ak(o,(()=>t));c.next(e.internalActions.subscriptionsUpdated(r)),o=t,a=null}),500));const i="string"==typeof u.type&&!!u.type.startsWith(r),s=t.rejected.match(u)&&u.meta.condition&&!!u.meta.arg.subscribe;f=!i&&!s}return[f,!1]}};function tY(e){const{reducerPath:t,queryThunk:n,api:r,context:o}=e,{apiUid:a}=o,i={invalidateTags:Ol(`${t}/invalidateTags`)},s=e=>e.type.startsWith(`${t}/`),u=[ZK,HK,KK,YK,XK,JK];return{middleware:n=>{let i=!1;const c={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:s},d=u.map((e=>e(c))),f=eY(c),p=QK(c);return e=>u=>{if(!h3(u))return e(u);i||(i=!0,n.dispatch(r.internalActions.middlewareRegistered(a)));const l={...n,next:e},c=n.getState(),[m,h]=f(u,l,c);let v;if(v=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 v}},actions:i};function l(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}function ld(e,...t){return Object.assign(e,...t)}var e2=Symbol(),nY=({createSelector:e=Yr}={})=>({name:e2,init(t,{baseQuery:n,tagTypes:r,reducerPath:o,serializeQueryArgs:a,keepUnusedDataFor:i,refetchOnMountOrArgChange:s,refetchOnFocus:u,refetchOnReconnect:l,invalidationBehavior:c},d){mK();const f=e=>e;Object.assign(t,{reducerPath:o,endpoints:{},internalActions:{onOnline:kI,onOffline:Lk,onFocus:MI,onFocusLost:kk},util:{}});const{queryThunk:p,mutationThunk:m,patchQueryData:h,updateQueryData:v,upsertQueryData:g,prefetch:y,buildMatchThunkActions:b}=zK({baseQuery:n,reducerPath:o,context:d,api:t,serializeQueryArgs:a,assertTagType:f}),{reducer:w,actions:x}=UK({context:d,queryThunk:p,mutationThunk:m,reducerPath:o,assertTagType:f,config:{refetchOnFocus:u,refetchOnReconnect:l,refetchOnMountOrArgChange:s,keepUnusedDataFor:i,reducerPath:o,invalidationBehavior:c}});ld(t.util,{patchQueryData:h,updateQueryData:v,upsertQueryData:g,prefetch:y,resetApiState:x.resetApiState}),ld(t.internalActions,x);const{middleware:_,actions:S}=tY({reducerPath:o,context:d,queryThunk:p,mutationThunk:m,api:t,assertTagType:f});ld(t.util,S),ld(t,{reducer:w,middleware:_});const{buildQuerySelector:I,buildMutationSelector:A,selectInvalidatedBy:E,selectCachedArgsForQuery:k}=VK({serializeQueryArgs:a,reducerPath:o,createSelector:e});ld(t.util,{selectInvalidatedBy:E,selectCachedArgsForQuery:k});const{buildInitiateQuery:M,buildInitiateMutation:C,getRunningMutationThunk:P,getRunningMutationsThunk:N,getRunningQueriesThunk:O,getRunningQueryThunk:T}=jK({queryThunk:p,mutationThunk:m,api:t,serializeQueryArgs:a,context:d});return ld(t.util,{getRunningMutationThunk:P,getRunningMutationsThunk:N,getRunningQueryThunk:T,getRunningQueriesThunk:O}),{name:e2,injectEndpoint(e,n){var r;const o=t;(r=o.endpoints)[e]??(r[e]={}),Bk(n)?ld(o.endpoints[e],{name:e,select:I(e,n),initiate:M(e,n)},b(p,e)):LK(n)&&ld(o.endpoints[e],{name:e,select:A(),initiate:C(e)},b(m,e))}}}});function rY(e){return"query"===e.type}function oY(e){return"mutation"===e.type}function Fg(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)=>qf(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));qf(t)&&(null==Dh||Dh.set(t,e)),n=e}return`${e}(${n})`},nS=Symbol();function t2(e,t,n,r){const o=xn((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),a=We(o);return Ke((()=>{a.current.serialized!==o.serialized&&(a.current=o)}),[o]),a.current.serialized===o.serialized?a.current.queryArgs:e}function rS(e){const t=We(e);return Ke((()=>{sv(t.current,e)||(t.current=e)}),[e]),sv(t.current,e)?t.current:e}var aY=typeof window<"u"&&window.document&&window.document.createElement?op:Ke,sY=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:Nk.pending}:e;function uY({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:o},unstable__sideEffectsInRender:a,createSelector:i},serializeQueryArgs:s,context:u}){const l=a?e=>e():Ke;return{buildQueryHooks:function(a){const d=(t,{refetchOnReconnect:r,refetchOnFocus:o,refetchOnMountOrArgChange:i,skip:s=!1,pollingInterval:c=0,skipPollingIfUnfocused:d=!1}={})=>{const{initiate:f}=e.endpoints[a],p=n(),m=We();if(!m.current){const t=p(e.internalActions.internal_getRTKQSubscriptions());m.current=t}const h=t2(s?Uf:t,iY,u.endpointDefinitions[a],a),v=rS({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:c,skipPollingIfUnfocused:d}),g=We(!1),y=We();let{queryCacheKey:b,requestId:w}=y.current||{},x=!1;b&&w&&(x=m.current.isRequestSubscribed(b,w));const _=!x&&g.current;return l((()=>{g.current=x})),l((()=>{_&&(y.current=void 0)}),[_]),l((()=>{var e;const t=y.current;if(h===Uf)return null==t||t.unsubscribe(),void(y.current=void 0);const n=null==(e=y.current)?void 0:e.subscriptionOptions;if(t&&t.arg===h)v!==n&&t.updateSubscriptionOptions(v);else{null==t||t.unsubscribe();const e=p(f(h,{subscriptionOptions:v,forceRefetch:i}));y.current=e}}),[p,f,i,h,v,_]),Ke((()=>()=>{var e;null==(e=y.current)||e.unsubscribe(),y.current=void 0}),[]),xn((()=>({refetch:()=>{var e;if(!y.current)throw new Error(l2(38));return null==(e=y.current)?void 0:e.refetch()}})),[])},f=({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:i=0,skipPollingIfUnfocused:s=!1}={})=>{const{initiate:u}=e.endpoints[a],c=n(),[d,f]=ut(nS),p=We(),m=rS({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:i,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=We(m);l((()=>{h.current=m}),[m]);const v=yt((function(e,n=!1){let r;return t((()=>{var t;null==(t=p.current)||t.unsubscribe(),p.current=r=c(u(e,{subscriptionOptions:h.current,forceRefetch:!n})),f(e)})),r}),[c,u]);return Ke((()=>()=>{var e;null==(e=null==p?void 0:p.current)||e.unsubscribe()}),[]),Ke((()=>{d!==nS&&!p.current&&v(d,!0)}),[d,v]),xn((()=>[v,d]),[v,d])},p=(t,{skip:n=!1,selectFromResult:l}={})=>{const{select:d}=e.endpoints[a],f=t2(n?Uf:t,s,u.endpointDefinitions[a],a),p=We(),m=xn((()=>i([d(f),(e,t)=>t,e=>f],c,{memoizeOptions:{resultEqualityCheck:sv}})),[d,f]),h=xn((()=>l?i([m],l,{devModeChecks:{identityFunctionCheck:"never"}}):m),[m,l]),v=r((e=>h(e,p.current)),sv),g=o(),y=m(g.getState(),p.current);return aY((()=>{p.current=y}),[y]),v};return{useQueryState:p,useQuerySubscription:d,useLazyQuerySubscription:f,useLazyQuery(e){const[t,n]=f(e),r=p(n,{...e,skip:n===nS}),o=xn((()=>({lastArg:n})),[n]);return xn((()=>[t,r,o]),[t,r,o])},useQuery(e,t){const n=d(e,t),r=p(e,{selectFromResult:e===Uf||null!=t&&t.skip?void 0:sY,...t}),{data:o,status:a,isLoading:i,isSuccess:s,isError:u,error:l}=r;return KI({data:o,status:a,isLoading:i,isSuccess:s,isError:u,error:l}),xn((()=>({...r,...n})),[r,n])}}},buildMutationHook:function(o){return({selectFromResult:a,fixedCacheKey:s}={})=>{const{select:u,initiate:l}=e.endpoints[o],c=n(),[d,f]=ut();Ke((()=>()=>{null!=d&&d.arg.fixedCacheKey||null==d||d.reset()}),[d]);const p=yt((function(e){const t=c(l(e,{fixedCacheKey:s}));return f(t),t}),[c,l,s]),{requestId:m}=d||{},h=xn((()=>u({fixedCacheKey:s,requestId:null==d?void 0:d.requestId})),[s,d,u]),v=xn((()=>a?i([h],a):h),[a,h]),g=r(v,sv),y=null==s?null==d?void 0:d.arg.originalArgs:void 0,b=yt((()=>{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:I,isError:A,error:E}=g;KI({endpointName:w,data:x,status:_,isLoading:S,isSuccess:I,isError:A,error:E});const k=xn((()=>({...g,originalArgs:y,reset:b})),[g,y,b]);return xn((()=>[p,k]),[p,k])}},usePrefetch:function(t,r){const o=n(),a=rS(r);return yt(((n,r)=>o(e.util.prefetch(t,n,{...a,...r}))),[t,o,a])}};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,a=e.isLoading,i=!o&&a,l=e.isSuccess||a&&o;return{...e,data:r,currentData:e.data,isFetching:a,isLoading:i,isSuccess:l}}}var lY=Symbol(),cY=({batch:e=y3,hooks:t={useDispatch:e$,useSelector:c0,useStore:w3},createSelector:n=Dk,unstable__sideEffectsInRender:r=!1,...o}={})=>({name:lY,init(o,{serializeQueryArgs:a},i){const s=o,{buildQueryHooks:u,buildMutationHook:l,usePrefetch:c}=uY({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:a,context:i});return Fg(s,{usePrefetch:c}),Fg(i,{batch:e}),{injectEndpoint(e,t){if(rY(t)){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:a,useQuerySubscription:i}=u(e);Fg(s.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:a,useQuerySubscription:i}),o[`use${tS(e)}Query`]=t,o[`useLazy${tS(e)}Query`]=n}else if(oY(t)){const t=l(e);Fg(s.endpoints[e],{useMutation:t}),o[`use${tS(e)}Mutation`]=t}}}}}),dY=WK(nY(),cY());const zk=()=>Wk()?location.hostname:location.hostname.replace(/\w\w\w\.|^/,"."),Uk=e=>{const t=new Date;return t.setTime(t.getTime()+24*e*60*60*1e3),t.toUTCString()},Vk=e=>Object.keys(e).reduce(((t,n)=>`${t}${n}${!0===e[n]?"":`=${e[n]}`};`),""),fY=(e,t)=>{const n=H0()?"":document.cookie,r=`; ${t||n}`.split(`; ${e}=`);if(2===r.length)return(r.pop()||"").replace("=","").split(";").shift()},pY=(e,t)=>{H0()||(document.cookie=Vk({[e]:"",path:"/",domain:t||zk(),expires:"Thu, 01 Jan 1970 00:00:01 GMT"}))},hY=["localhost","127.0.0.1","dev.localtest.me","wellesleydev.localtest.me"],Wk=()=>hY.includes(location.hostname),mY=(e,t="",n=10,r)=>{H0()||(document.cookie=Vk({[e]:t,path:"/",domain:r||zk(),expires:Uk(n),...!Wk()&&{SameSite:"None",Secure:!0}}))},BI={set:mY,remove:pY,get:fY,getExpireDate:Uk},FI="auth_token",qk=()=>BI.get(FI)||void 0,vY=e=>BI.set(FI,e),gY=()=>BI.remove(FI),yY=()=>!!qk(),jI={getToken:qk,setToken:vY,removeToken:gY,hasToken:yY},wY=e=>{jI.removeToken(),e(Uq()),EI("user").clear()},_Y=e=>async(t,n,r)=>{const o=await e(t,n,r);return o.error&&[401].includes(o.error.status)&&wY(n.dispatch),o},bY=async(e,t=2e3)=>{for(;!e();)await new Promise((e=>setTimeout(e,t)))},xY=5,SY=e=>t=>!!e&&t.includes(e.status),n2=e=>new Promise((t=>setTimeout(t,1e3*e))),$Y=e=>async(t,n,r)=>{const o=(null==r?void 0:r.maxRetries)??5;await bY((()=>n.getState().network.isOnline));let a=0;const i=async()=>{var s,u,l,c;const d=await e(t,n,r),f=d.error;if(a>=o)return d;a>0&&await n2(Math.pow(2,a)),a++;const p=SY(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 i();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 n2(+(e||"0")),await i()}default:return d}};return await i()};var Gk=(e=>(e.SERVER_RULES="serverRules",e.INVITE_PEOPLE="invitePeople",e))(Gk||{});const X0="staticState",Hk=EI(),Wg={path:"",baseUrl:"",search:""},IY=e=>{if(!e)return Wg;try{return JSON.parse(decodeURIComponent(e))||Wg}catch(e){return mp.error("Error parsing static state",e),Wg}},Kk=()=>new URLSearchParams(window.location.search).get(X0),CY=({path:e,baseUrl:t,search:n}={})=>{const{pathname:r,origin:o,search:a}=window.location;return`${X0}=${encodeURIComponent(JSON.stringify({path:e||r,baseUrl:t||o,search:n||a}))}`},EY=()=>{const e=Kk();return e&&Hk.setItem(X0,e),Yk()},Yk=()=>{try{const e=Hk.getItem(X0)||Kk();return IY(e)}catch(e){return mp.error("Error parsing static state",e),Wg}},PY={create:CY,init:EY,get:Yk},RY=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 mp.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}},TY=e=>{const{url:t,status:n,statusText:r,headers:o,body:a}=e,i=new Response(JSON.stringify(a),{status:n,statusText:r,headers:o});return Object.defineProperties(i,{url:{value:t},type:{value:"cors"}}),i},OY=async e=>{const t=crypto.randomUUID();return new Promise(((n,r)=>{const o=WG({onMessage:({payload:{id:e,response:r}})=>{t===e&&(null==o||o(),n(TY(r)))},whitelist:[qG]});(async()=>{try{VG({action:qT({id:t,options:await RY(e)}),windowElement:window.parent,whitelist:[qT]})}catch(e){r(e)}})()}))};new EventTarget;const Qk=()=>{var e;try{return(null==(e=window.wellesley)?void 0:e.v1)||window.wellesley}catch(e){mp.error("Error getting window.wellesley:",e)}},AY=e=>new Response(JSON.stringify(e),{status:200,statusText:"OK",headers:{"Content-Type":"application/json"}}),DY=e=>{var t,n;if(e.url.includes("accounts/profile")){const e=null==(n=null==(t=Qk())?void 0:t.initialState)?void 0:n.currentAccount;return!(null==e||!e.selectedUserId)&&AY(e)}},NY=Object.freeze(Object.defineProperty({__proto__:null,userHandler:DY},Symbol.toStringTag,{value:"Module"})),MY=e=>Object.values(NY).reduce(((t,n)=>t||n(e)),void 0),kY=async e=>MY(e)||await fetch(e),LY=()=>{try{return window.self!==window.top}catch{return!0}},BY=()=>e=>LY()?OY(e):kY(e),FY=PY.get().baseUrl,jY=FY||"",zY=kK({fetchFn:BY(),baseUrl:jY,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=jI.getToken();return t&&e.set("authorization",`Bearer ${t}`),e}}),UY=_Y($Y(zY)),VY=dY({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(Gk)],reducerPath:"openapi",baseQuery:UY,endpoints:()=>({})}),WY=VY.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}),r2={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isPending:!!jI.getToken(),isAuthenticated:!1,isAskLoginOpen:!1},qY=Po({name:"auth",initialState:r2,reducers:{setAskLoginOpen:(e,t)=>{e.isAskLoginOpen=t.payload},login:(e,t)=>{e.isAuthenticated=!0,e.token=t.payload||null,e.isPending=!1},logout:()=>({...r2,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}}),GY={data:null,isPending:!1,isSuccess:!1},HY=Po({name:"userNoHTML",initialState:GY,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}}),o2={data:null,isError:!1,isPending:!1,isSuccess:!1},KY=Po({name:"user",initialState:o2,reducers:{reset:e=>{Object.assign(e,o2)}},extraReducers:e=>{e.addCase(Qq,((e,{payload:t})=>{e.data=t})).addCase(Xq,((e,{payload:t})=>{e.data&&Object.assign(e.data,t||{})})).addCase(Yq,((e,{payload:t})=>{e.isSuccess=t})).addCase(Kq,((e,{payload:t})=>{e.isPending=t})).addCase(Hq,((e,{payload:t})=>{e.isError=t})).addCase(Gq,((e,{payload:t})=>{e.error=t})).addCase(Jq,((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}}),zI=e=>e,J0=Yr(zI,(e=>e.data)),YY=Yr(zI,(e=>e.error)),QY=Yr(zI,(e=>e.isPending)),XY=Yr(J0,(e=>null==e?void 0:e.rules)),JY=Yr(J0,(e=>null==e?void 0:e.contact_account)),ZY=Yr(J0,(e=>(null==e?void 0:e.stats)&&Object.fromEntries(Object.entries(e.stats).map((([e,t])=>[e,t??0]))))),eQ={data:null,isPending:!1},tQ=Po({name:"instanceInfo",initialState:eQ,reducers:{},extraReducers:e=>{e.addCase(lG,((e,{payload:t})=>{e.data=t})).addCase(cG,((e,{payload:t})=>{e.isPending=t})).addCase(dG,((e,{payload:t})=>{e.error=t}))},selectors:{selectInstanceInfo:J0,selectInstanceInfoError:YY,selectInstanceInfoPending:QY,selectPlatformRules:XY,selectInstanceContacts:JY,selectInstanceStats:ZY,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}}}),nQ={data:null,isPending:!1,isSuccess:!1},rQ=Po({name:"profileSettings",initialState:nQ,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(pG,((e,{payload:t})=>{e.data=t}))},selectors:{selectProfileSettings:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),oQ={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"},iv=e=>(null==e?void 0:e.map((e=>e.value||e)))||[],iQ={data:null,isPending:!1},{posts:oS,uploadsPolicyDoc:i2,uploadsPolicyAudio:iS,uploadsPolicyImage:jg,uploadsPolicyVideo:ev,registration:Xk,captcha:aQ,instanceAdmin:sQ,branding:uQ,translation:lQ,domainBlocks:cQ,access:dQ}=YS,{captcha:fQ,language:pQ,translation:hQ,openai:mQ,link_service:vQ}=oQ,vp=e=>e.data,gQ=Yr(vp,(e=>{var t,n,r;return{max_characters:(null==(t=null==e?void 0:e[oS])?void 0:t.max_characters)||0,max_media_attachments:(null==(n=null==e?void 0:e[oS])?void 0:n.max_media_attachments)||0,max_pins:(null==(r=null==e?void 0:e[oS])?void 0:r.max_pins)||0}})),UI=Yr(vp,(e=>{var t,n,r;return{...null==e?void 0:e[jg],maxSize:(null==(t=null==e?void 0:e[jg])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[jg])?void 0:n.maxMatrix)||0,maxResolution:(null==(r=null==e?void 0:e[jg])?void 0:r.maxResolution)||0}})),yQ=Yr(UI,(e=>iv(e.extensions))),Jk=Yr(vp,(e=>{var t,n,r,o;return{...null==e?void 0:e[ev],maxSize:(null==(t=null==e?void 0:e[ev])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[ev])?void 0:n.maxMatrix)||0,maxDuration:(null==(r=null==e?void 0:e[ev])?void 0:r.maxDuration)||0,maxResolution:(null==(o=null==e?void 0:e[ev])?void 0:o.maxResolution)||0}})),Zk=Yr(vp,(e=>{var t,n;return{...null==e?void 0:e[iS],maxSize:null==(t=null==e?void 0:e[iS])?void 0:t.maxSize,keepOriginal:(null==(n=null==e?void 0:e[iS])?void 0:n.keepOriginal)||0}})),e3=Yr(vp,(e=>{var t;return{...null==e?void 0:e[i2],maxSize:(null==(t=null==e?void 0:e[i2])?void 0:t.maxSize)||0}})),t3=Yr([UI,Jk,Zk,e3],((e,t,n,r)=>({IMAGE:iv(null==e?void 0:e.extensions),VIDEO:iv(null==t?void 0:t.extensions),AUDIO:iv(null==n?void 0:n.extensions),DOCUMENT:iv(null==r?void 0:r.extensions)}))),wQ=Yr(t3,(e=>Object.keys(e).reduce(((t,n)=>[...t,...e[n]||[]]),[]))),_Q=Yr(vp,(e=>{var t;return null==(t=null==e?void 0:e[Xk])?void 0:t.invites})),bQ=Po({name:"platformSettings",initialState:iQ,reducers:{setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},extraReducers:e=>{e.addCase(fG,((e,{payload:t})=>{e.data={...e.data,...t}}))},selectors:{selectSettings:vp,selectPostConfig:gQ,selectDocPolicy:e3,selectImagePolicy:UI,selectVideoPolicy:Jk,selectAudioPolicy:Zk,selectInvitesEnabled:_Q,selectImageExtensions:yQ,selectSupportedExtensions:t3,selectFullExtensionsList:wQ,selectRegistration:e=>{var t;return null==(t=e.data)?void 0:t[Xk]},selectLanguageDetection:e=>{var t;return null==(t=e.data)?void 0:t[pQ]},selectLanguageTranslation:e=>{var t;return null==(t=e.data)?void 0:t[hQ]},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[aQ]},selectAdminCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[fQ]},selectPlatformTranslation:e=>{var t;return null==(t=e.data)?void 0:t[lQ]},selectAccess:e=>{var t;return null==(t=e.data)?void 0:t[dQ]},selectBranding:e=>{var t;return null==(t=e.data)?void 0:t[uQ]},selectLinkService:e=>{var t;return null==(t=e.data)?void 0:t[vQ]},selectInstanceAdmin:e=>{var t;return null==(t=e.data)?void 0:t[sQ]},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[cQ]},selectContacts:e=>{var t;return null==(t=e.data)?void 0:t[YS.contacts]}}}),a2={data:{userId:"",list:[]},count:{},isPending:!1},xQ=e=>e,SQ=e=>e.error,$Q=e=>e.isPending,IQ=e=>{var t;return null==(t=e.count)?void 0:t.total},CQ=e=>{var t;return null==(t=e.count)?void 0:t.unread},EQ=e=>e.data.userId,VI=Yr(xQ,(e=>e.data.list)),PQ=Yr(VI,(e=>null==e?void 0:e.filter((e=>"UNREAD"===e.status)))),RQ=Yr(VI,(e=>null==e?void 0:e.at(-1))),TQ=Po({name:"notifications",initialState:a2,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(rG,((e,t)=>{e.isPending=t.payload})).addCase(tG,((e,t)=>{e.error=t.payload})).addCase(nG,((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(Zq,((e,t)=>{e.count.unread=(e.count.unread||0)+1,e.data.list&&(e.data.list=[t.payload,...e.data.list||[]])})).addCase(eG,((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(oG,((e,t)=>{e.count.total=t.payload})).addCase(iG,((e,t)=>{e.count.unread=t.payload})).addCase(sG,(()=>a2)).addCase(uG,((e,t)=>{var n,r,o;const a=t.payload;"UNREAD"===(null==(r=null==(n=e.data.list)?void 0:n.find((e=>e.id===a)))?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!==a)))||[]})).addCase(aG,(e=>{e.data.list&&(e.data.list=e.data.list.map((e=>"FOLLOW_REQUEST"===e.type?{...e,followResponse:"Accepted"}:e)))}))},selectors:{selectError:SQ,selectIsPending:$Q,selectTotalCount:IQ,selectUnreadCount:CQ,selectNotifications:VI,selectUnreadNotifications:PQ,selectLastNotification:RQ,selectNotificationsOwner:EQ}}),n3=m3(WY,Gg,dk,qY,KY,HY,tQ,TQ,rQ,bQ);Ol("app/hydrate");var s2,av={exports:{}},OQ=av.exports;
|
|
71
|
-
/**
|
|
72
|
-
* @license
|
|
73
|
-
* Lodash <https://lodash.com/>
|
|
74
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
75
|
-
* Released under MIT license <https://lodash.com/license>
|
|
76
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
77
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
78
|
-
*/function AQ(){return s2||(s2=1,e=av,t=av.exports,function(){var n,r="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",i=16,s=32,u=64,l=128,c=256,d=1/0,f=9007199254740991,p=NaN,m=4294967295,h=m-1,v=m>>>1,g=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",i],["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]",I="[object GeneratorFunction]",A="[object Map]",E="[object Number]",k="[object Object]",M="[object Promise]",C="[object RegExp]",P="[object Set]",N="[object String]",O="[object Symbol]",T="[object WeakMap]",q="[object ArrayBuffer]",R="[object DataView]",j="[object Float32Array]",D="[object Float64Array]",L="[object Int8Array]",z="[object Int16Array]",$="[object Int32Array]",B="[object Uint8Array]",F="[object Uint8ClampedArray]",V="[object Uint16Array]",U="[object Uint32Array]",W=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,Q=/[&<>"']/g,Y=RegExp(K.source),X=RegExp(Q.source),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,ae=RegExp(oe.source),ie=/^\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*$/,ve=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,Ie="\\ud800-\\udfff",Ae="\\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",Pe="\\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",Ne="['’]",Oe="["+Ie+"]",Te="["+Pe+"]",qe="["+Ae+"]",Re="\\d+",je="["+Ee+"]",De="["+ke+"]",Le="[^"+Ie+Pe+Re+Ee+ke+Me+"]",ze="\\ud83c[\\udffb-\\udfff]",$e="[^"+Ie+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+Me+"]",Ue="\\u200d",We="(?:"+De+"|"+Le+")",He="(?:"+Ve+"|"+Le+")",Ge="(?:['’](?:d|ll|m|re|s|t|ve))?",Ke="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qe="(?:"+qe+"|"+ze+")?",Ye="["+Ce+"]?",Xe=Ye+Qe+"(?:"+Ue+"(?:"+[$e,Be,Fe].join("|")+")"+Ye+Qe+")*",Je="(?:"+[je,Be,Fe].join("|")+")"+Xe,Ze="(?:"+[$e+qe+"?",qe,Be,Fe,Oe].join("|")+")",et=RegExp(Ne,"g"),tt=RegExp(qe,"g"),nt=RegExp(ze+"(?="+ze+")|"+Ze+Xe,"g"),rt=RegExp([Ve+"?"+De+"+"+Ge+"(?="+[Te,Ve,"$"].join("|")+")",He+"+"+Ke+"(?="+[Te,Ve+We,"$"].join("|")+")",Ve+"?"+We+"+"+Ge,Ve+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,Je].join("|"),"g"),ot=RegExp("["+Ue+Ie+Ae+Ce+"]"),at=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["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[D]=ut[L]=ut[z]=ut[$]=ut[B]=ut[F]=ut[V]=ut[U]=!0,ut[y]=ut[b]=ut[q]=ut[w]=ut[R]=ut[x]=ut[_]=ut[S]=ut[A]=ut[E]=ut[k]=ut[C]=ut[P]=ut[N]=ut[T]=!1;var lt={};lt[y]=lt[b]=lt[q]=lt[R]=lt[w]=lt[x]=lt[j]=lt[D]=lt[L]=lt[z]=lt[$]=lt[A]=lt[E]=lt[k]=lt[C]=lt[P]=lt[N]=lt[O]=lt[B]=lt[F]=lt[V]=lt[U]=!0,lt[_]=lt[S]=lt[T]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ft=parseInt,pt="object"==typeof Fa&&Fa&&Fa.Object===Object&&Fa,mt="object"==typeof self&&self&&self.Object===Object&&self,ht=pt||mt||Function("return this")(),vt=t&&!t.nodeType&&t,gt=vt&&e&&!e.nodeType&&e,yt=gt&>.exports===vt,bt=yt&&pt.process,wt=function(){try{return gt&>.require&>.require("util").types||bt&&bt.binding&&bt.binding("util")}catch{}}(),xt=wt&&wt.isArrayBuffer,_t=wt&&wt.isDate,St=wt&&wt.isMap,It=wt&&wt.isRegExp,At=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,a=null==e?0:e.length;++o<a;){var i=e[o];t(r,i,n(i),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 Pt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Nt(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,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}function Tt(e,t){return!(null==e||!e.length)&&Vt(e,t,0)>-1}function qt(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 Rt(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 Dt(e,t,n,r){var o=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++o]);++o<a;)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=Gt("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,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;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,Wt,n)}function Ut(e,t,n,r){for(var o=n-1,a=e.length;++o<a;)if(r(e[o],t))return o;return-1}function Wt(e){return e!=e}function Ht(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:p}function Gt(e){return function(t){return null==t?n:t[e]}}function Kt(e){return function(t){return null==e?n:e[t]}}function Qt(e,t,n,r,o){return o(e,(function(e,o,a){n=r?(r=!1,e):t(n,e,o,a)})),n}function Yt(e,t){for(var r,o=-1,a=e.length;++o<a;){var i=t(e[o]);i!==n&&(r=r===n?i:r+i)}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(ie,"")}function Zt(e){return function(t){return e(t)}}function en(e,t){return Rt(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Vt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Vt(t,e[n],0)>-1;);return n}var on=Kt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),an=Kt({"&":"&","<":"<",">":">",'"':""","'":"'"});function 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,i=[];++n<r;){var s=e[n];(s===t||s===a)&&(e[n]=a,i[o++]=n)}return i}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 vn=Kt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),gn=function e(t){var se,Ie=(t=null==t?ht:gn.defaults(ht.Object(),t,gn.pick(ht,it))).Array,Ae=t.Date,Ee=t.Error,ke=t.Function,Me=t.Math,Ce=t.Object,Pe=t.RegExp,Ne=t.String,Oe=t.TypeError,Te=Ie.prototype,qe=ke.prototype,Re=Ce.prototype,je=t["__core-js_shared__"],De=qe.toString,Le=Re.hasOwnProperty,ze=0,$e=(se=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||""))?"Symbol(src)_1."+se:"",Be=Re.toString,Fe=De.call(Ce),Ve=ht._,Ue=Pe("^"+De.call(Le).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=yt?t.Buffer:n,He=t.Symbol,Ge=t.Uint8Array,Ke=We?We.allocUnsafe:n,Qe=cn(Ce.getPrototypeOf,Ce),Ye=Ce.create,Xe=Re.propertyIsEnumerable,Je=Te.splice,Ze=He?He.isConcatSpreadable:n,nt=He?He.iterator:n,ot=He?He.toStringTag:n,ct=function(){try{var e=ma(Ce,"defineProperty");return e({},"",{}),e}catch{}}(),pt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,mt=Ae&&Ae.now!==ht.Date.now&&Ae.now,vt=t.setTimeout!==ht.setTimeout&&t.setTimeout,gt=Me.ceil,bt=Me.floor,wt=Ce.getOwnPropertySymbols,$t=We?We.isBuffer:n,Kt=t.isFinite,yn=Te.join,bn=cn(Ce.keys,Ce),wn=Me.max,xn=Me.min,_n=Ae.now,Sn=t.parseInt,In=Me.random,An=Te.reverse,En=ma(t,"DataView"),kn=ma(t,"Map"),Mn=ma(t,"Promise"),Cn=ma(t,"Set"),Pn=ma(t,"WeakMap"),Nn=ma(Ce,"create"),On=Pn&&new Pn,Tn={},qn=$a(En),Rn=$a(kn),jn=$a(Mn),Dn=$a(Cn),Ln=$a(Pn),zn=He?He.prototype:n,$n=zn?zn.valueOf:n,Bn=zn?zn.toString:n;function Fn(e){if(rs(e)&&!Hi(e)&&!(e instanceof Hn)){if(e instanceof Wn)return e;if(Le.call(e,"__wrapped__"))return Ba(e)}return new Wn(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 Un(){}function Wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Qn;++t<n;)this.add(e[t])}function Xn(e){var t=this.__data__=new Kn(e);this.size=t.size}function Jn(e,t){var n=Hi(e),r=!n&&Wi(e),o=!n&&!r&&Yi(e),a=!n&&!r&&!o&&ds(e),i=n||r||o||a,s=i?Xt(e.length,Ne):[],u=s.length;for(var l in e)(t||Le.call(e,l))&&(!i||!("length"==l||o&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||xa(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 Da(Oo(e),lr(t,0,e.length))}function tr(e){return Da(Oo(e))}function nr(e,t,r){(r!==n&&!Fi(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)||!Fi(o,r)||r===n&&!(t in e))&&sr(e,t,r)}function or(e,t){for(var n=e.length;n--;)if(Fi(e[n][0],t))return n;return-1}function ar(e,t,n,r){return mr(e,(function(e,o,a){t(r,e,n(e),a)})),r}function ir(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,a=Ie(o),i=null==e;++r<o;)a[r]=i?n:Ms(e,t[r]);return a}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,a,i){var s,u=1&t,l=2&t,c=4&t;if(r&&(s=a?r(e,o,a,i):r(e)),s!==n)return s;if(!ns(e))return e;var d=Hi(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=ga(e),p=f==S||f==I;if(Yi(e))return Eo(e,u);if(f==k||f==y||p&&!a){if(s=l||p?{}:ba(e),!u)return l?function(e,t){return To(e,va(e),t)}(e,function(e,t){return e&&To(t,qs(t),e)}(s,e)):function(e,t){return To(e,ha(e),t)}(e,ir(s,e))}else{if(!lt[f])return a?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case q:return ko(e);case w:case x:return new r(+e);case R: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 D:case L:case z:case $:case B:case F:case V:case U:return Mo(e,n);case A:return new r;case E:case N: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 P:return new r;case O:return function(e){return $n?Ce($n.call(e)):{}}(e)}}(e,f,u)}}i||(i=new Xn);var m=i.get(e);if(m)return m;i.set(e,s),us(e)?e.forEach((function(n){s.add(cr(n,t,r,n,e,i))})):os(e)&&e.forEach((function(n,o){s.set(o,cr(n,t,r,o,e,i))}));var h=d?n:(c?l?sa:ia:l?qs:Ts)(e);return Ct(h||e,(function(n,o){h&&(n=e[o=n]),rr(s,o,cr(n,t,r,o,e,i))})),s}function dr(e,t,r){var o=r.length;if(null==e)return!o;for(e=Ce(e);o--;){var a=r[o],i=t[a],s=e[a];if(s===n&&!(a in e)||!i(s))return!1}return!0}function fr(e,t,o){if("function"!=typeof e)throw new Oe(r);return Ta((function(){e.apply(n,o)}),t)}function pr(e,t,n,r){var o=-1,a=Tt,i=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=Rt(t,Zt(n))),r?(a=qt,i=!1):t.length>=200&&(a=tn,i=!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,i&&d==d){for(var f=l;f--;)if(t[f]===d)continue e;u.push(c)}else a(t,d,r)||u.push(c)}return u}Fn.templateSettings={escape:J,evaluate:Z,interpolate:ee,variable:"",imports:{_:Fn}},Fn.prototype=Un.prototype,Fn.prototype.constructor=Fn,Wn.prototype=Vn(Un.prototype),Wn.prototype.constructor=Wn,Hn.prototype=Vn(Un.prototype),Hn.prototype.constructor=Hn,Gn.prototype.clear=function(){this.__data__=Nn?Nn(null):{},this.size=0},Gn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Gn.prototype.get=function(e){var t=this.__data__;if(Nn){var r=t[e];return r===o?n:r}return Le.call(t,e)?t[e]:n},Gn.prototype.has=function(e){var t=this.__data__;return Nn?t[e]!==n:Le.call(t,e)},Gn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Nn&&t===n?o:t,this},Kn.prototype.clear=function(){this.__data__=[],this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=or(t,e);return!(n<0||(n==t.length-1?t.pop():Je.call(t,n,1),--this.size,0))},Kn.prototype.get=function(e){var t=this.__data__,r=or(t,e);return r<0?n:t[r][1]},Kn.prototype.has=function(e){return or(this.__data__,e)>-1},Kn.prototype.set=function(e,t){var n=this.__data__,r=or(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(kn||Kn),string:new Gn}},Qn.prototype.delete=function(e){var t=fa(this,e).delete(e);return this.size-=t?1:0,t},Qn.prototype.get=function(e){return fa(this,e).get(e)},Qn.prototype.has=function(e){return fa(this,e).has(e)},Qn.prototype.set=function(e,t){var n=fa(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,o),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Kn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!kn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qn(r)}return n.set(e,t),this.size=n.size,this};var mr=jo(_r),hr=jo(Sr,!0);function vr(e,t){var n=!0;return mr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function gr(e,t,r){for(var o=-1,a=e.length;++o<a;){var i=e[o],s=t(i);if(null!=s&&(u===n?s==s&&!cs(s):r(s,u)))var u=s,l=i}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 a=-1,i=e.length;for(n||(n=wa),o||(o=[]);++a<i;){var s=e[a];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=Do(),xr=Do(!0);function _r(e,t){return e&&wr(e,t,Ts)}function Sr(e,t){return e&&xr(e,t,Ts)}function Ir(e,t){return Ot(t,(function(t){return Zi(e[t])}))}function Ar(e,t){for(var r=0,o=(t=_o(t,e)).length;null!=e&&r<o;)e=e[za(t[r++])];return r&&r==o?e:n}function Er(e,t,n){var r=t(e);return Hi(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 a=Be.call(e);return o&&(t?e[ot]=r:delete e[ot]),a}(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 Pr(e,t){return null!=e&&t in Ce(e)}function Nr(e,t,r){for(var o=r?qt:Tt,a=e[0].length,i=e.length,s=i,u=Ie(i),l=1/0,c=[];s--;){var d=e[s];s&&t&&(d=Rt(d,Zt(t))),l=xn(d.length,l),u[s]=!r&&(t||a>=120&&d.length>=120)?new Yn(s&&d):n}d=e[0];var f=-1,p=u[0];e:for(;++f<a&&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=i;--s;){var v=u[s];if(!(v?tn(v,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=Pa(e,t=_o(t,e)))?e:e[za(Ja(t))];return null==o?n:kt(o,e,r)}function Tr(e){return rs(e)&&kr(e)==y}function qr(e,t,r,o,a){return e===t||(null==e||null==t||!rs(e)&&!rs(t)?e!=e&&t!=t:function(e,t,r,o,a,i){var s=Hi(e),u=Hi(t),l=s?b:ga(e),c=u?b:ga(t),d=(l=l==y?k:l)==k,f=(c=c==y?k:c)==k,p=l==c;if(p&&Yi(e)){if(!Yi(t))return!1;s=!0,d=!1}if(p&&!d)return i||(i=new Xn),s||ds(e)?oa(e,t,r,o,a,i):function(e,t,n,r,o,a,i){switch(n){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case q:return!(e.byteLength!=t.byteLength||!a(new Ge(e),new Ge(t)));case w:case x:case E:return Fi(+e,+t);case _:return e.name==t.name&&e.message==t.message;case C:case N:return e==t+"";case A:var s=ln;case P:var u=1&r;if(s||(s=fn),e.size!=t.size&&!u)return!1;var l=i.get(e);if(l)return l==t;r|=2,i.set(e,t);var c=oa(s(e),s(t),r,o,a,i);return i.delete(e),c;case O:if($n)return $n.call(e)==$n.call(t)}return!1}(e,t,l,r,o,a,i);if(!(1&r)){var m=d&&Le.call(e,"__wrapped__"),h=f&&Le.call(t,"__wrapped__");if(m||h){var v=m?e.value():e,g=h?t.value():t;return i||(i=new Xn),a(v,g,r,o,i)}}return!!p&&(i||(i=new Xn),function(e,t,r,o,a,i){var s=1&r,u=ia(e),l=u.length,c=ia(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=i.get(e),h=i.get(t);if(m&&h)return m==t&&h==e;var v=!0;i.set(e,t),i.set(t,e);for(var g=s;++f<l;){var y=e[p=u[f]],b=t[p];if(o)var w=s?o(b,y,p,t,e,i):o(y,b,p,e,t,i);if(!(w===n?y===b||a(y,b,r,o,i):w)){v=!1;break}g||(g="constructor"==p)}if(v&&!g){var x=e.constructor,_=t.constructor;x!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _)&&(v=!1)}return i.delete(e),i.delete(t),v}(e,t,r,o,a,i))}(e,t,r,o,qr,a))}function Rr(e,t,r,o){var a=r.length,i=a,s=!o;if(null==e)return!i;for(e=Ce(e);a--;){var u=r[a];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<i;){var l=(u=r[a])[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?qr(d,c,3,o,f):p))return!1}}return!0}function jr(e){return!(!ns(e)||function(e){return!!$e&&$e in e}(e))&&(Zi(e)?Ue:ye).test($a(e))}function Dr(e){return"function"==typeof e?e:null==e?au:"object"==typeof e?Hi(e)?Vr(e[0],e[1]):Fr(e):mu(e)}function Lr(e){if(!Ea(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=Ea(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=Ki(e)?Ie(e.length):[];return mr(e,(function(e,o,a){r[++n]=t(e,o,a)})),r}function Fr(e){var t=pa(e);return 1==t.length&&t[0][2]?Ma(t[0][0],t[0][1]):function(n){return n===e||Rr(n,e,t)}}function Vr(e,t){return Sa(e)&&ka(t)?Ma(za(e),t):function(r){var o=Ms(r,e);return o===n&&o===t?Cs(r,e):qr(t,o,3)}}function Ur(e,t,r,o,a){e!==t&&wr(t,(function(i,s){if(a||(a=new Xn),ns(i))!function(e,t,r,o,a,i,s){var u=Na(e,r),l=Na(t,r),c=s.get(l);if(c)nr(e,r,c);else{var d=i?i(u,l,r+"",e,t,s):n,f=d===n;if(f){var p=Hi(l),m=!p&&Yi(l),h=!p&&!m&&ds(l);d=l,p||m||h?Hi(u)?d=u:Qi(u)?d=Oo(u):m?(f=!1,d=Eo(l,!0)):h?(f=!1,d=Mo(l,!0)):d=[]:is(l)||Wi(l)?(d=u,Wi(u)?d=bs(u):(!ns(u)||Zi(u))&&(d=ba(l))):f=!1}f&&(s.set(l,d),a(d,l,o,i,s),s.delete(l)),nr(e,r,d)}}(e,t,s,r,Ur,o,a);else{var u=o?o(Na(e,s),i,s+"",e,t,a):n;u===n&&(u=i),nr(e,s,u)}}),qs)}function Wr(e,t){var r=e.length;if(r)return xa(t+=t<0?r:0,r)?e[t]:n}function Hr(e,t,n){t=t.length?Rt(t,(function(e){return Hi(e)?function(t){return Ar(t,1===e.length?e[0]:e)}:e})):[au];var r=-1;return t=Rt(t,Zt(da())),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:Rt(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,a=t.criteria,i=o.length,s=n.length;++r<i;){var u=Co(o[r],a[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Gr(e,t,n){for(var r=-1,o=t.length,a={};++r<o;){var i=t[r],s=Ar(e,i);n(s,i)&&to(a,_o(i,e),s)}return a}function Kr(e,t,n,r){var o=r?Ut:Vt,a=-1,i=t.length,s=e;for(e===t&&(t=Oo(t)),n&&(s=Rt(e,Zt(n)));++a<i;)for(var u=0,l=t[a],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 Qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==a){var a=o;xa(o)?Je.call(e,o,1):mo(e,o)}}return e}function Yr(e,t){return e+bt(In()*(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 qa(Ca(e,t,au),e+"")}function Zr(e){return Zn(Fs(e))}function eo(e,t){var n=Fs(e);return Da(n,lr(t,0,n.length))}function to(e,t,r,o){if(!ns(e))return e;for(var a=-1,i=(t=_o(t,e)).length,s=i-1,u=e;null!=u&&++a<i;){var l=za(t[a]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(a!=s){var d=u[l];(c=o?o(d,l,u):n)===n&&(c=ns(d)?d:xa(t[a+1])?[]:{})}rr(u,l,c),u=u[l]}return e}var no=On?function(e,t){return On.set(e,t),e}:au,ro=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:nu(t),writable:!0})}:au;function oo(e){return Da(Fs(e))}function ao(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 a=Ie(o);++r<o;)a[r]=e[r+t];return a}function io(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<=v){for(;r<o;){var a=r+o>>>1,i=e[a];null!==i&&!cs(i)&&(n?i<=t:i<t)?r=a+1:o=a}return o}return uo(e,t,au,n)}function uo(e,t,r,o){var a=0,i=null==e?0:e.length;if(0===i)return 0;for(var s=(t=r(t))!=t,u=null===t,l=cs(t),c=t===n;a<i;){var d=bt((a+i)/2),f=r(e[d]),p=f!==n,m=null===f,v=f==f,g=cs(f);if(s)var y=o||v;else y=c?v&&(o||p):u?v&&p&&(o||!m):l?v&&p&&!m&&(o||!g):!m&&!g&&(o?f<=t:f<t);y?a=d+1:i=d}return xn(i,h)}function lo(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var i=e[n],s=t?t(i):i;if(!n||!Fi(s,u)){var u=s;a[o++]=0===i?0:i}}return a}function co(e){return"number"==typeof e?e:cs(e)?p:+e}function fo(e){if("string"==typeof e)return e;if(Hi(e))return Rt(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,a=e.length,i=!0,s=[],u=s;if(n)i=!1,o=qt;else if(a>=200){var l=t?null:Jo(e);if(l)return fn(l);i=!1,o=tn,u=new Yn}else u=t?[]:s;e:for(;++r<a;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,i&&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=Pa(e,t=_o(t,e)))||delete e[za(Ja(t))]}function ho(e,t,n,r){return to(e,t,n(Ar(e,t)),r)}function vo(e,t,n,r){for(var o=e.length,a=r?o:-1;(r?a--:++a<o)&&t(e[a],a,e););return n?ao(e,r?0:a,r?a+1:o):ao(e,r?a+1:0,r?o:a)}function go(e,t){var n=e;return n instanceof Hn&&(n=n.value()),Dt(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,a=Ie(r);++o<r;)for(var i=e[o],s=-1;++s<r;)s!=o&&(a[o]=pr(a[o]||i,e[s],t,n));return po(br(a,1),t,n)}function bo(e,t,r){for(var o=-1,a=e.length,i=t.length,s={};++o<a;){var u=o<i?t[o]:n;r(s,e[o],u)}return s}function wo(e){return Qi(e)?e:[]}function xo(e){return"function"==typeof e?e:au}function _o(e,t){return Hi(e)?e:Sa(e,t)?[e]:La(ws(e))}var So=Jr;function Io(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:ao(e,t,r)}var Ao=pt||function(e){return ht.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=Ke?Ke(n):new e.constructor(n);return e.copy(r),r}function ko(e){var t=new e.constructor(e.byteLength);return new Ge(t).set(new Ge(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,a=e==e,i=cs(e),s=t!==n,u=null===t,l=t==t,c=cs(t);if(!u&&!c&&!i&&e>t||i&&s&&l&&!u&&!c||o&&s&&l||!r&&l||!a)return 1;if(!o&&!i&&!c&&e<t||c&&r&&a&&!o&&!i||u&&r&&a||!s&&a||!l)return-1}return 0}function Po(e,t,n,r){for(var o=-1,a=e.length,i=n.length,s=-1,u=t.length,l=wn(a-i,0),c=Ie(u+l),d=!r;++s<u;)c[s]=t[s];for(;++o<i;)(d||o<a)&&(c[n[o]]=e[o]);for(;l--;)c[s++]=e[o++];return c}function No(e,t,n,r){for(var o=-1,a=e.length,i=-1,s=n.length,u=-1,l=t.length,c=wn(a-s,0),d=Ie(c+l),f=!r;++o<c;)d[o]=e[o];for(var p=o;++u<l;)d[p+u]=t[u];for(;++i<s;)(f||o<a)&&(d[p+n[i]]=e[o++]);return d}function Oo(e,t){var n=-1,r=e.length;for(t||(t=Ie(r));++n<r;)t[n]=e[n];return t}function To(e,t,r,o){var a=!r;r||(r={});for(var i=-1,s=t.length;++i<s;){var u=t[i],l=o?o(r[u],e[u],u,r,e):n;l===n&&(l=e[u]),a?sr(r,u,l):rr(r,u,l)}return r}function qo(e,t){return function(n,r){var o=Hi(n)?Mt:ar,a=t?t():{};return o(n,e,da(r,2),a)}}function Ro(e){return Jr((function(t,r){var o=-1,a=r.length,i=a>1?r[a-1]:n,s=a>2?r[2]:n;for(i=e.length>3&&"function"==typeof i?(a--,i):n,s&&_a(r[0],r[1],s)&&(i=a<3?n:i,a=1),t=Ce(t);++o<a;){var u=r[o];u&&e(t,u,o,i)}return t}))}function jo(e,t){return function(n,r){if(null==n)return n;if(!Ki(n))return e(n,r);for(var o=n.length,a=t?o:-1,i=Ce(n);(t?a--:++a<o)&&!1!==r(i[a],a,i););return n}}function Do(e){return function(t,n,r){for(var o=-1,a=Ce(t),i=r(t),s=i.length;s--;){var u=i[e?s:++o];if(!1===n(a[u],u,a))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),a=r?Io(r,1).join(""):t.slice(1);return o[e]()+a}}function zo(e){return function(t){return Dt(Zs(Ws(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 a=Ce(t);if(!Ki(t)){var i=da(r,3);t=Ts(t),r=function(e){return i(a[e],e,a)}}var s=e(t,r,o);return s>-1?a[i?t[s]:s]:n}}function Fo(e){return aa((function(t){var o=t.length,a=o,i=Wn.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if("function"!=typeof s)throw new Oe(r);if(i&&!u&&"wrapper"==la(s))var u=new Wn([],!0)}for(a=u?a:o;++a<o;){var l=la(s=t[a]),c="wrapper"==l?ua(s):n;u=c&&Ia(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[la(c[0])].apply(u,c[3]):1==s.length&&Ia(s)?u[l]():u.thru(s)}return function(){var e=arguments,n=e[0];if(u&&1==e.length&&Hi(n))return u.plant(n).value();for(var r=0,a=o?t[r].apply(this,e):n;++r<o;)a=t[r].call(this,a);return a}}))}function Vo(e,t,r,o,a,i,s,u,c,d){var f=t&l,p=1&t,m=2&t,h=24&t,v=512&t,g=m?n:$o(e);return function l(){for(var y=arguments.length,b=Ie(y),w=y;w--;)b[w]=arguments[w];if(h)var x=ca(l),_=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,x);if(o&&(b=Po(b,o,a,h)),i&&(b=No(b,i,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 I=p?r:this,A=m?I[e]:e;return y=b.length,u?b=function(e,t){for(var r=e.length,o=xn(t.length,r),a=Oo(e);o--;){var i=t[o];e[o]=xa(i,r)?a[i]:n}return e}(b,u):v&&y>1&&b.reverse(),f&&c<y&&(b.length=c),this&&this!==ht&&this instanceof l&&(A=g||$o(A)),A.apply(I,b)}}function Uo(e,t){return function(n,r){return function(e,t,n,r){return _r(e,(function(e,o,a){t(r,n(e),o,a)})),r}(n,e,t(r),{})}}function Wo(e,t){return function(r,o){var a;if(r===n&&o===n)return t;if(r!==n&&(a=r),o!==n){if(a===n)return o;"string"==typeof r||"string"==typeof o?(r=fo(r),o=fo(o)):(r=co(r),o=co(o)),a=e(r,o)}return a}}function Ho(e){return aa((function(t){return t=Rt(t,Zt(da())),Jr((function(n){var r=this;return e(t,(function(e){return kt(e,r,n)}))}))}))}function Go(e,t){var r=(t=t===n?" ":fo(t)).length;if(r<2)return r?Xr(t,e):t;var o=Xr(t,gt(e/pn(t)));return un(t)?Io(mn(o),0,e).join(""):o.slice(0,e)}function Ko(e){return function(t,r,o){return o&&"number"!=typeof o&&_a(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,a=wn(gt((t-e)/(n||1)),0),i=Ie(a);a--;)i[r?a:++o]=e,e+=n;return i}(t,r,o=o===n?t<r?1:-1:hs(o),e)}}function Qo(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,a,i,l,c,d,f){var p=8&t;t|=p?s:u,4&(t&=~(p?u:s))||(t&=-4);var m=[e,t,a,p?i:n,p?l:n,p?n:i,p?n:l,c,d,f],h=r.apply(n,m);return Ia(e)&&Oa(h,m),h.placeholder=o,Ra(h,e,t)}function Xo(e){var t=Me[e];return function(e,n){if(e=ys(e),(n=null==n?0:xn(vs(n),292))&&Kt(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=ga(t);return n==A?ln(t):n==P?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return Rt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function ea(e,t,o,d,f,p,m,h){var v=2&t;if(!v&&"function"!=typeof e)throw new Oe(r);var g=d?d.length:0;if(g||(t&=-97,d=f=n),m=m===n?m:wn(vs(m),0),h=h===n?h:vs(h),g-=f?f.length:0,t&u){var y=d,b=f;d=f=n}var w=v?n:ua(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,i=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(!i&&!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?Po(d,u,t[4]):u,e[4]=d?dn(e[3],a):t[4]}(u=t[5])&&(d=e[5],e[5]=d?No(d,u,t[6]):u,e[6]=d?dn(e[5],a):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?v?0:e.length:wn(x[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||t==i?function(e,t,r){var o=$o(e);return function a(){for(var i=arguments.length,s=Ie(i),u=i,l=ca(a);u--;)s[u]=arguments[u];var c=i<3&&s[0]!==l&&s[i-1]!==l?[]:dn(s,l);return(i-=c.length)<r?Yo(e,t,Vo,a.placeholder,n,s,c,n,n,r-i):kt(this&&this!==ht&&this instanceof a?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,a=$o(e);return function t(){for(var i=-1,s=arguments.length,u=-1,l=r.length,c=Ie(l+s),d=this&&this!==ht&&this instanceof t?a:e;++u<l;)c[u]=r[u];for(;s--;)c[u++]=arguments[++i];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 Ra((w?no:Oa)(_,x),e,t)}function ta(e,t,r,o){return e===n||Fi(e,Re[r])&&!Le.call(o,r)?t:e}function na(e,t,r,o,a,i){return ns(e)&&ns(t)&&(i.set(t,e),Ur(e,t,n,na,i),i.delete(t)),e}function ra(e){return is(e)?n:e}function oa(e,t,r,o,a,i){var s=1&r,u=e.length,l=t.length;if(u!=l&&!(s&&l>u))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var f=-1,p=!0,m=2&r?new Yn:n;for(i.set(e,t),i.set(t,e);++f<u;){var h=e[f],v=t[f];if(o)var g=s?o(v,h,f,t,e,i):o(h,v,f,e,t,i);if(g!==n){if(g)continue;p=!1;break}if(m){if(!zt(t,(function(e,t){if(!tn(m,t)&&(h===e||a(h,e,r,o,i)))return m.push(t)}))){p=!1;break}}else if(h!==v&&!a(h,v,r,o,i)){p=!1;break}}return i.delete(e),i.delete(t),p}function aa(e){return qa(Ca(e,n,Ga),e+"")}function ia(e){return Er(e,Ts,ha)}function sa(e){return Er(e,qs,va)}var ua=On?function(e){return On.get(e)}:cu;function la(e){for(var t=e.name+"",n=Tn[t],r=Le.call(Tn,t)?n.length:0;r--;){var o=n[r],a=o.func;if(null==a||a==e)return o.name}return t}function ca(e){return(Le.call(Fn,"placeholder")?Fn:e).placeholder}function da(){var e=Fn.iteratee||iu;return e=e===iu?Dr:e,arguments.length?e(arguments[0],arguments[1]):e}function fa(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 pa(e){for(var t=Ts(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,ka(o)]}return t}function ma(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return jr(r)?r:n}var ha=wt?function(e){return null==e?[]:(e=Ce(e),Ot(wt(e),(function(t){return Xe.call(e,t)})))}:gu,va=wt?function(e){for(var t=[];e;)jt(t,ha(e)),e=Qe(e);return t}:gu,ga=kr;function ya(e,t,n){for(var r=-1,o=(t=_o(t,e)).length,a=!1;++r<o;){var i=za(t[r]);if(!(a=null!=e&&n(e,i)))break;e=e[i]}return a||++r!=o?a:!!(o=null==e?0:e.length)&&ts(o)&&xa(i,o)&&(Hi(e)||Wi(e))}function ba(e){return"function"!=typeof e.constructor||Ea(e)?{}:Vn(Qe(e))}function wa(e){return Hi(e)||Wi(e)||!!(Ze&&e&&e[Ze])}function xa(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 _a(e,t,n){if(!ns(n))return!1;var r=typeof t;return!!("number"==r?Ki(n)&&xa(t,n.length):"string"==r&&t in n)&&Fi(n[t],e)}function Sa(e,t){if(Hi(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 Ia(e){var t=la(e),n=Fn[t];if("function"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var r=ua(n);return!!r&&e===r[0]}(En&&ga(new En(new ArrayBuffer(1)))!=R||kn&&ga(new kn)!=A||Mn&&ga(Mn.resolve())!=M||Cn&&ga(new Cn)!=P||Pn&&ga(new Pn)!=T)&&(ga=function(e){var t=kr(e),r=t==k?e.constructor:n,o=r?$a(r):"";if(o)switch(o){case qn:return R;case Rn:return A;case jn:return M;case Dn:return P;case Ln:return T}return t});var Aa=je?Zi:yu;function Ea(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Re)}function ka(e){return e==e&&!ns(e)}function Ma(e,t){return function(r){return null!=r&&r[e]===t&&(t!==n||e in Ce(r))}}function Ca(e,t,r){return t=wn(t===n?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=wn(n.length-t,0),i=Ie(a);++o<a;)i[o]=n[t+o];o=-1;for(var s=Ie(t+1);++o<t;)s[o]=n[o];return s[t]=r(i),kt(e,this,s)}}function Pa(e,t){return t.length<2?e:Ar(e,ao(t,0,-1))}function Na(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Oa=ja(no),Ta=vt||function(e,t){return ht.setTimeout(e,t)},qa=ja(ro);function Ra(e,t,n){var r=t+"";return qa(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(g,(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 ja(e){var t=0,r=0;return function(){var o=_n(),a=16-(o-r);if(r=o,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Da(e,t){var r=-1,o=e.length,a=o-1;for(t=t===n?o:t;++r<t;){var i=Yr(r,a),s=e[i];e[i]=e[r],e[r]=s}return e.length=t,e}var La=function(e){var t=ji(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 za(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-d?"-0":t}function $a(e){if(null!=e){try{return De.call(e)}catch{}try{return e+""}catch{}}return""}function Ba(e){if(e instanceof Hn)return e.clone();var t=new Wn(e.__wrapped__,e.__chain__);return t.__actions__=Oo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fa=Jr((function(e,t){return Qi(e)?pr(e,br(t,1,Qi,!0)):[]})),Va=Jr((function(e,t){var r=Ja(t);return Qi(r)&&(r=n),Qi(e)?pr(e,br(t,1,Qi,!0),da(r,2)):[]})),Ua=Jr((function(e,t){var r=Ja(t);return Qi(r)&&(r=n),Qi(e)?pr(e,br(t,1,Qi,!0),n,r):[]}));function Wa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vs(n);return o<0&&(o=wn(r+o,0)),Ft(e,da(t,3),o)}function Ha(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var a=o-1;return r!==n&&(a=vs(r),a=r<0?wn(o+a,0):xn(a,o-1)),Ft(e,da(t,3),a,!0)}function Ga(e){return null!=e&&e.length?br(e,1):[]}function Ka(e){return e&&e.length?e[0]:n}var Qa=Jr((function(e){var t=Rt(e,wo);return t.length&&t[0]===e[0]?Nr(t):[]})),Ya=Jr((function(e){var t=Ja(e),r=Rt(e,wo);return t===Ja(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Nr(r,da(t,2)):[]})),Xa=Jr((function(e){var t=Ja(e),r=Rt(e,wo);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Nr(r,n,t):[]}));function Ja(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Za=Jr(ei);function ei(e,t){return e&&e.length&&t&&t.length?Kr(e,t):e}var ti=aa((function(e,t){var n=null==e?0:e.length,r=ur(e,t);return Qr(e,Rt(t,(function(e){return xa(e,n)?+e:e})).sort(Co)),r}));function ni(e){return null==e?e:An.call(e)}var ri=Jr((function(e){return po(br(e,1,Qi,!0))})),oi=Jr((function(e){var t=Ja(e);return Qi(t)&&(t=n),po(br(e,1,Qi,!0),da(t,2))})),ai=Jr((function(e){var t=Ja(e);return t="function"==typeof t?t:n,po(br(e,1,Qi,!0),n,t)}));function ii(e){if(!e||!e.length)return[];var t=0;return e=Ot(e,(function(e){if(Qi(e))return t=wn(e.length,t),!0})),Xt(t,(function(t){return Rt(e,Gt(t))}))}function si(e,t){if(!e||!e.length)return[];var r=ii(e);return null==t?r:Rt(r,(function(e){return kt(t,n,e)}))}var ui=Jr((function(e,t){return Qi(e)?pr(e,t):[]})),li=Jr((function(e){return yo(Ot(e,Qi))})),ci=Jr((function(e){var t=Ja(e);return Qi(t)&&(t=n),yo(Ot(e,Qi),da(t,2))})),di=Jr((function(e){var t=Ja(e);return t="function"==typeof t?t:n,yo(Ot(e,Qi),n,t)})),fi=Jr(ii),pi=Jr((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,si(e,r)}));function mi(e){var t=Fn(e);return t.__chain__=!0,t}function hi(e,t){return t(e)}var vi=aa((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,a=function(t){return ur(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Hn&&xa(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:hi,args:[a],thisArg:n}),new Wn(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(a)})),gi=qo((function(e,t,n){Le.call(e,n)?++e[n]:sr(e,n,1)})),yi=Bo(Wa),bi=Bo(Ha);function wi(e,t){return(Hi(e)?Ct:mr)(e,da(t,3))}function xi(e,t){return(Hi(e)?Pt:hr)(e,da(t,3))}var _i=qo((function(e,t,n){Le.call(e,n)?e[n].push(t):sr(e,n,[t])})),Si=Jr((function(e,t,n){var r=-1,o="function"==typeof t,a=Ki(e)?Ie(e.length):[];return mr(e,(function(e){a[++r]=o?kt(t,e,n):Or(e,t,n)})),a})),Ii=qo((function(e,t,n){sr(e,n,t)}));function Ai(e,t){return(Hi(e)?Rt:Br)(e,da(t,3))}var Ei=qo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),ki=Jr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&_a(e,t[0],t[1])?t=[]:n>2&&_a(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,br(t,1),[])})),Mi=mt||function(){return ht.Date.now()};function Ci(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,ea(e,l,n,n,n,n,t)}function Pi(e,t){var o;if("function"!=typeof t)throw new Oe(r);return e=vs(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var Ni=Jr((function(e,t,n){var r=1;if(n.length){var o=dn(n,ca(Ni));r|=s}return ea(e,r,t,n,o)})),Oi=Jr((function(e,t,n){var r=3;if(n.length){var o=dn(n,ca(Oi));r|=s}return ea(t,r,e,n,o)}));function Ti(e,t,o){var a,i,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=a,o=i;return a=i=n,d=t,u=e.apply(o,r)}function v(e){var r=e-c;return c===n||r>=t||r<0||p&&e-d>=s}function g(){var e=Mi();if(v(e))return y(e);l=Ta(g,function(e){var n=t-(e-c);return p?xn(n,s-(e-d)):n}(e))}function y(e){return l=n,m&&a?h(e):(a=i=n,u)}function b(){var e=Mi(),r=v(e);if(a=arguments,i=this,c=e,r){if(l===n)return function(e){return d=e,l=Ta(g,t),f?h(e):u}(c);if(p)return Ao(l),l=Ta(g,t),h(c)}return l===n&&(l=Ta(g,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&&Ao(l),d=0,a=c=i=l=n},b.flush=function(){return l===n?u:y(Mi())},b}var qi=Jr((function(e,t){return fr(e,1,t)})),Ri=Jr((function(e,t,n){return fr(e,ys(t)||0,n)}));function ji(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],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(ji.Cache||Qn),n}function Di(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)}}ji.Cache=Qn;var Li=So((function(e,t){var n=(t=1==t.length&&Hi(t[0])?Rt(t[0],Zt(da())):Rt(br(t,1),Zt(da()))).length;return Jr((function(r){for(var o=-1,a=xn(r.length,n);++o<a;)r[o]=t[o].call(this,r[o]);return kt(e,this,r)}))})),zi=Jr((function(e,t){var r=dn(t,ca(zi));return ea(e,s,n,t,r)})),$i=Jr((function(e,t){var r=dn(t,ca($i));return ea(e,u,n,t,r)})),Bi=aa((function(e,t){return ea(e,c,n,n,n,t)}));function Fi(e,t){return e===t||e!=e&&t!=t}var Vi=Qo(Mr),Ui=Qo((function(e,t){return e>=t})),Wi=Tr(function(){return arguments}())?Tr:function(e){return rs(e)&&Le.call(e,"callee")&&!Xe.call(e,"callee")},Hi=Ie.isArray,Gi=xt?Zt(xt):function(e){return rs(e)&&kr(e)==q};function Ki(e){return null!=e&&ts(e.length)&&!Zi(e)}function Qi(e){return rs(e)&&Ki(e)}var Yi=$t||yu,Xi=_t?Zt(_t):function(e){return rs(e)&&kr(e)==x};function Ji(e){if(!rs(e))return!1;var t=kr(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Zi(e){if(!ns(e))return!1;var t=kr(e);return t==S||t==I||"[object AsyncFunction]"==t||"[object Proxy]"==t}function es(e){return"number"==typeof e&&e==vs(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)&&ga(e)==A};function as(e){return"number"==typeof e||rs(e)&&kr(e)==E}function is(e){if(!rs(e)||kr(e)!=k)return!1;var t=Qe(e);if(null===t)return!0;var n=Le.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Fe}var ss=It?Zt(It):function(e){return rs(e)&&kr(e)==C},us=At?Zt(At):function(e){return rs(e)&&ga(e)==P};function ls(e){return"string"==typeof e||!Hi(e)&&rs(e)&&kr(e)==N}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=Qo($r),ps=Qo((function(e,t){return e<=t}));function ms(e){if(!e)return[];if(Ki(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=ga(e);return(t==A?ln:t==P?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 vs(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function gs(e){return e?lr(vs(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=ge.test(e);return n||be.test(e)?ft(e.slice(2),n?2:8):ve.test(e)?p:+e}function bs(e){return To(e,qs(e))}function ws(e){return null==e?"":fo(e)}var xs=Ro((function(e,t){if(Ea(t)||Ki(t))To(t,Ts(t),e);else for(var n in t)Le.call(t,n)&&rr(e,n,t[n])})),_s=Ro((function(e,t){To(t,qs(t),e)})),Ss=Ro((function(e,t,n,r){To(t,qs(t),e,r)})),Is=Ro((function(e,t,n,r){To(t,Ts(t),e,r)})),As=aa(ur),Es=Jr((function(e,t){e=Ce(e);var r=-1,o=t.length,a=o>2?t[2]:n;for(a&&_a(t[0],t[1],a)&&(o=1);++r<o;)for(var i=t[r],s=qs(i),u=-1,l=s.length;++u<l;){var c=s[u],d=e[c];(d===n||Fi(d,Re[c])&&!Le.call(e,c))&&(e[c]=i[c])}return e})),ks=Jr((function(e){return e.push(n,na),kt(js,n,e)}));function Ms(e,t,r){var o=null==e?n:Ar(e,t);return o===n?r:o}function Cs(e,t){return null!=e&&ya(e,t,Pr)}var Ps=Uo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),e[t]=n}),nu(au)),Ns=Uo((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]}),da),Os=Jr(Or);function Ts(e){return Ki(e)?Jn(e):Lr(e)}function qs(e){return Ki(e)?Jn(e,!0):zr(e)}var Rs=Ro((function(e,t,n){Ur(e,t,n)})),js=Ro((function(e,t,n,r){Ur(e,t,n,r)})),Ds=aa((function(e,t){var n={};if(null==e)return n;var r=!1;t=Rt(t,(function(t){return t=_o(t,e),r||(r=t.length>1),t})),To(e,sa(e),n),r&&(n=cr(n,7,ra));for(var o=t.length;o--;)mo(n,t[o]);return n})),Ls=aa((function(e,t){return null==e?{}:function(e,t){return Gr(e,t,(function(t,n){return Cs(e,n)}))}(e,t)}));function zs(e,t){if(null==e)return{};var n=Rt(sa(e),(function(e){return[e]}));return t=da(t),Gr(e,n,(function(e,n){return t(e,n[0])}))}var $s=Zo(Ts),Bs=Zo(qs);function Fs(e){return null==e?[]:en(e,Ts(e))}var Vs=zo((function(e,t,n){return t=t.toLowerCase(),e+(n?Us(t):t)}));function Us(e){return Js(ws(e).toLowerCase())}function Ws(e){return(e=ws(e))&&e.replace(xe,on).replace(tt,"")}var Hs=zo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Gs=zo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ks=Lo("toLowerCase"),Qs=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 at.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 Ji(e)?e:new Ee(e)}})),tu=aa((function(e,t){return Ct(t,(function(t){t=za(t),sr(e,t,Ni(e[t],e))})),e}));function nu(e){return function(){return e}}var ru=Fo(),ou=Fo(!0);function au(e){return e}function iu(e){return Dr("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=Ir(t,r);null==n&&(!ns(t)||!o.length&&r.length)&&(n=t,t=e,e=this,o=Ir(t,Ts(t)));var a=!(ns(n)&&"chain"in n&&!n.chain),i=Zi(e);return Ct(o,(function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(a||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=Ho(Rt),fu=Ho(Nt),pu=Ho(zt);function mu(e){return Sa(e)?Gt(za(e)):function(e){return function(t){return Ar(t,e)}}(e)}var hu=Ko(),vu=Ko(!0);function gu(){return[]}function yu(){return!1}var bu=Wo((function(e,t){return e+t}),0),wu=Xo("ceil"),xu=Wo((function(e,t){return e/t}),1),_u=Xo("floor"),Su=Wo((function(e,t){return e*t}),1),Iu=Xo("round"),Au=Wo((function(e,t){return e-t}),0);return Fn.after=function(e,t){if("function"!=typeof t)throw new Oe(r);return e=vs(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=Ci,Fn.assign=xs,Fn.assignIn=_s,Fn.assignInWith=Ss,Fn.assignWith=Is,Fn.at=As,Fn.before=Pi,Fn.bind=Ni,Fn.bindAll=tu,Fn.bindKey=Oi,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Hi(e)?e:[e]},Fn.chain=mi,Fn.chunk=function(e,t,r){t=(r?_a(e,t,r):t===n)?1:wn(vs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,i=0,s=Ie(gt(o/t));a<o;)s[i++]=ao(e,a,a+=t);return s},Fn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var a=e[t];a&&(o[r++]=a)}return o},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Ie(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return jt(Hi(n)?Oo(n):[n],br(t,1))},Fn.cond=function(e){var t=null==e?0:e.length,n=da();return e=t?Rt(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=gi,Fn.create=function(e,t){var n=Vn(e);return null==t?n:ir(n,t)},Fn.curry=function e(t,r,o){var a=ea(t,8,n,n,n,n,n,r=o?n:r);return a.placeholder=e.placeholder,a},Fn.curryRight=function e(t,r,o){var a=ea(t,i,n,n,n,n,n,r=o?n:r);return a.placeholder=e.placeholder,a},Fn.debounce=Ti,Fn.defaults=Es,Fn.defaultsDeep=ks,Fn.defer=qi,Fn.delay=Ri,Fn.difference=Fa,Fn.differenceBy=Va,Fn.differenceWith=Ua,Fn.drop=function(e,t,r){var o=null==e?0:e.length;return o?ao(e,(t=r||t===n?1:vs(t))<0?0:t,o):[]},Fn.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?ao(e,0,(t=o-(t=r||t===n?1:vs(t)))<0?0:t):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?vo(e,da(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?vo(e,da(t,3),!0):[]},Fn.fill=function(e,t,r,o){var a=null==e?0:e.length;return a?(r&&"number"!=typeof r&&_a(e,t,r)&&(r=0,o=a),function(e,t,r,o){var a=e.length;for((r=vs(r))<0&&(r=-r>a?0:a+r),(o=o===n||o>a?a:vs(o))<0&&(o+=a),o=r>o?0:gs(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},Fn.filter=function(e,t){return(Hi(e)?Ot:yr)(e,da(t,3))},Fn.flatMap=function(e,t){return br(Ai(e,t),1)},Fn.flatMapDeep=function(e,t){return br(Ai(e,t),d)},Fn.flatMapDepth=function(e,t,r){return r=r===n?1:vs(r),br(Ai(e,t),r)},Fn.flatten=Ga,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:vs(t)):[]},Fn.flip=function(e){return ea(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?[]:Ir(e,Ts(e))},Fn.functionsIn=function(e){return null==e?[]:Ir(e,qs(e))},Fn.groupBy=_i,Fn.initial=function(e){return null!=e&&e.length?ao(e,0,-1):[]},Fn.intersection=Qa,Fn.intersectionBy=Ya,Fn.intersectionWith=Xa,Fn.invert=Ps,Fn.invertBy=Ns,Fn.invokeMap=Si,Fn.iteratee=iu,Fn.keyBy=Ii,Fn.keys=Ts,Fn.keysIn=qs,Fn.map=Ai,Fn.mapKeys=function(e,t){var n={};return t=da(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=da(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=ji,Fn.merge=Rs,Fn.mergeWith=js,Fn.method=su,Fn.methodOf=uu,Fn.mixin=lu,Fn.negate=Di,Fn.nthArg=function(e){return e=vs(e),Jr((function(t){return Wr(t,e)}))},Fn.omit=Ds,Fn.omitBy=function(e,t){return zs(e,Di(da(t)))},Fn.once=function(e){return Pi(2,e)},Fn.orderBy=function(e,t,r,o){return null==e?[]:(Hi(t)||(t=null==t?[]:[t]),Hi(r=o?n:r)||(r=null==r?[]:[r]),Hr(e,t,r))},Fn.over=du,Fn.overArgs=Li,Fn.overEvery=fu,Fn.overSome=pu,Fn.partial=zi,Fn.partialRight=$i,Fn.partition=Ei,Fn.pick=Ls,Fn.pickBy=zs,Fn.property=mu,Fn.propertyOf=function(e){return function(t){return null==e?n:Ar(e,t)}},Fn.pull=Za,Fn.pullAll=ei,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,da(n,2)):e},Fn.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Kr(e,t,n,r):e},Fn.pullAt=ti,Fn.range=hu,Fn.rangeRight=vu,Fn.rearg=Bi,Fn.reject=function(e,t){return(Hi(e)?Ot:yr)(e,Di(da(t,3)))},Fn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],a=e.length;for(t=da(t,3);++r<a;){var i=e[r];t(i,r,e)&&(n.push(i),o.push(r))}return Qr(e,o),n},Fn.rest=function(e,t){if("function"!=typeof e)throw new Oe(r);return Jr(e,t=t===n?t:vs(t))},Fn.reverse=ni,Fn.sampleSize=function(e,t,r){return t=(r?_a(e,t,r):t===n)?1:vs(t),(Hi(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(Hi(e)?tr:oo)(e)},Fn.slice=function(e,t,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&_a(e,t,r)?(t=0,r=o):(t=null==t?0:vs(t),r=r===n?o:vs(r)),ao(e,t,r)):[]},Fn.sortBy=ki,Fn.sortedUniq=function(e){return e&&e.length?lo(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?lo(e,da(t,2)):[]},Fn.split=function(e,t,r){return r&&"number"!=typeof r&&_a(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)?Io(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(vs(t),0),Jr((function(n){var r=n[t],o=Io(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?ao(e,1,t):[]},Fn.take=function(e,t,r){return e&&e.length?ao(e,0,(t=r||t===n?1:vs(t))<0?0:t):[]},Fn.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?ao(e,(t=o-(t=r||t===n?1:vs(t)))<0?0:t,o):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?vo(e,da(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?vo(e,da(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new Oe(r);return ns(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),Ti(e,t,{leading:o,maxWait:t,trailing:a})},Fn.thru=hi,Fn.toArray=ms,Fn.toPairs=$s,Fn.toPairsIn=Bs,Fn.toPath=function(e){return Hi(e)?Rt(e,za):cs(e)?[e]:Oo(La(ws(e)))},Fn.toPlainObject=bs,Fn.transform=function(e,t,n){var r=Hi(e),o=r||Yi(e)||ds(e);if(t=da(t,4),null==n){var a=e&&e.constructor;n=o?r?new a:[]:ns(e)&&Zi(a)?Vn(Qe(e)):{}}return(o?Ct:_r)(e,(function(e,r,o){return t(n,e,r,o)})),n},Fn.unary=function(e){return Ci(e,1)},Fn.union=ri,Fn.unionBy=oi,Fn.unionWith=ai,Fn.uniq=function(e){return e&&e.length?po(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?po(e,da(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=ii,Fn.unzipWith=si,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,qs(e))},Fn.without=ui,Fn.words=Zs,Fn.wrap=function(e,t){return zi(xo(t),e)},Fn.xor=li,Fn.xorBy=ci,Fn.xorWith=di,Fn.zip=fi,Fn.zipObject=function(e,t){return bo(e||[],t||[],rr)},Fn.zipObjectDeep=function(e,t){return bo(e||[],t||[],to)},Fn.zipWith=pi,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=Us,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=Ws,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,a=r=r===n?o:lr(vs(r),0,o);return(r-=t.length)>=0&&e.slice(r,a)==t},Fn.eq=Fi,Fn.escape=function(e){return(e=ws(e))&&X.test(e)?e.replace(Q,an):e},Fn.escapeRegExp=function(e){return(e=ws(e))&&ae.test(e)?e.replace(oe,"\\$&"):e},Fn.every=function(e,t,r){var o=Hi(e)?Nt:vr;return r&&_a(e,t,r)&&(t=n),o(e,da(t,3))},Fn.find=yi,Fn.findIndex=Wa,Fn.findKey=function(e,t){return Bt(e,da(t,3),_r)},Fn.findLast=bi,Fn.findLastIndex=Ha,Fn.findLastKey=function(e,t){return Bt(e,da(t,3),Sr)},Fn.floor=_u,Fn.forEach=wi,Fn.forEachRight=xi,Fn.forIn=function(e,t){return null==e?e:wr(e,da(t,3),qs)},Fn.forInRight=function(e,t){return null==e?e:xr(e,da(t,3),qs)},Fn.forOwn=function(e,t){return e&&_r(e,da(t,3))},Fn.forOwnRight=function(e,t){return e&&Sr(e,da(t,3))},Fn.get=Ms,Fn.gt=Vi,Fn.gte=Ui,Fn.has=function(e,t){return null!=e&&ya(e,t,Cr)},Fn.hasIn=Cs,Fn.head=Ka,Fn.identity=au,Fn.includes=function(e,t,n,r){e=Ki(e)?e:Fs(e),n=n&&!r?vs(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:vs(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=Wi,Fn.isArray=Hi,Fn.isArrayBuffer=Gi,Fn.isArrayLike=Ki,Fn.isArrayLikeObject=Qi,Fn.isBoolean=function(e){return!0===e||!1===e||rs(e)&&kr(e)==w},Fn.isBuffer=Yi,Fn.isDate=Xi,Fn.isElement=function(e){return rs(e)&&1===e.nodeType&&!is(e)},Fn.isEmpty=function(e){if(null==e)return!0;if(Ki(e)&&(Hi(e)||"string"==typeof e||"function"==typeof e.splice||Yi(e)||ds(e)||Wi(e)))return!e.length;var t=ga(e);if(t==A||t==P)return!e.size;if(Ea(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 qr(e,t)},Fn.isEqualWith=function(e,t,r){var o=(r="function"==typeof r?r:n)?r(e,t):n;return o===n?qr(e,t,n,r):!!o},Fn.isError=Ji,Fn.isFinite=function(e){return"number"==typeof e&&Kt(e)},Fn.isFunction=Zi,Fn.isInteger=es,Fn.isLength=ts,Fn.isMap=os,Fn.isMatch=function(e,t){return e===t||Rr(e,t,pa(t))},Fn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Rr(e,t,pa(t),r)},Fn.isNaN=function(e){return as(e)&&e!=+e},Fn.isNative=function(e){if(Aa(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=as,Fn.isObject=ns,Fn.isObjectLike=rs,Fn.isPlainObject=is,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)&&ga(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=Hs,Fn.last=Ja,Fn.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var a=o;return r!==n&&(a=(a=vs(r))<0?wn(o+a,0):xn(a,o-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):Ft(e,Wt,a,!0)},Fn.lowerCase=Gs,Fn.lowerFirst=Ks,Fn.lt=fs,Fn.lte=ps,Fn.max=function(e){return e&&e.length?gr(e,au,Mr):n},Fn.maxBy=function(e,t){return e&&e.length?gr(e,da(t,2),Mr):n},Fn.mean=function(e){return Ht(e,au)},Fn.meanBy=function(e,t){return Ht(e,da(t,2))},Fn.min=function(e){return e&&e.length?gr(e,au,$r):n},Fn.minBy=function(e,t){return e&&e.length?gr(e,da(t,2),$r):n},Fn.stubArray=gu,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?Wr(e,vs(t)):n},Fn.noConflict=function(){return ht._===this&&(ht._=Ve),this},Fn.noop=cu,Fn.now=Mi,Fn.pad=function(e,t,n){e=ws(e);var r=(t=vs(t))?pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Go(bt(o),n)+e+Go(gt(o),n)},Fn.padEnd=function(e,t,n){e=ws(e);var r=(t=vs(t))?pn(e):0;return t&&r<t?e+Go(t-r,n):e},Fn.padStart=function(e,t,n){e=ws(e);var r=(t=vs(t))?pn(e):0;return t&&r<t?Go(t-r,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Sn(ws(e).replace(ie,""),t||0)},Fn.random=function(e,t,r){if(r&&"boolean"!=typeof r&&_a(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 a=In();return xn(e+a*(t-e+dt("1e-"+((a+"").length-1))),t)}return Yr(e,t)},Fn.reduce=function(e,t,n){var r=Hi(e)?Dt:Qt,o=arguments.length<3;return r(e,da(t,4),n,o,mr)},Fn.reduceRight=function(e,t,n){var r=Hi(e)?Lt:Qt,o=arguments.length<3;return r(e,da(t,4),n,o,hr)},Fn.repeat=function(e,t,r){return t=(r?_a(e,t,r):t===n)?1:vs(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,a=(t=_o(t,e)).length;for(a||(a=1,e=n);++o<a;){var i=null==e?n:e[za(t[o])];i===n&&(o=a,i=r),e=Zi(i)?i.call(e):i}return e},Fn.round=Iu,Fn.runInContext=e,Fn.sample=function(e){return(Hi(e)?Zn:Zr)(e)},Fn.size=function(e){if(null==e)return 0;if(Ki(e))return ls(e)?pn(e):e.length;var t=ga(e);return t==A||t==P?e.size:Lr(e).length},Fn.snakeCase=Qs,Fn.some=function(e,t,r){var o=Hi(e)?zt:io;return r&&_a(e,t,r)&&(t=n),o(e,da(t,3))},Fn.sortedIndex=function(e,t){return so(e,t)},Fn.sortedIndexBy=function(e,t,n){return uo(e,t,da(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=so(e,t);if(r<n&&Fi(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,da(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=so(e,t,!0)-1;if(Fi(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(vs(n),0,e.length),t=fo(t),e.slice(n,n+t.length)==t},Fn.subtract=Au,Fn.sum=function(e){return e&&e.length?Yt(e,au):0},Fn.sumBy=function(e,t){return e&&e.length?Yt(e,da(t,2)):0},Fn.template=function(e,t,r){var o=Fn.templateSettings;r&&_a(e,t,r)&&(t=n),e=ws(e),t=Ss({},t,o,ta);var a,i,s=Ss({},t.imports,o.imports,ta),u=Ts(s),l=en(s,u),c=0,d=t.interpolate||_e,f="__p += '",p=Pe((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&&(a=!0,f+="' +\n__e("+n+") +\n'"),s&&(i=!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=(i?f.replace(W,""):f).replace(H,"$1").replace(G,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=eu((function(){return ke(u,m+"return "+f).apply(n,l)}));if(v.source=f,Ji(v))throw v;return v},Fn.times=function(e,t){if((e=vs(e))<1||e>f)return[];var n=m,r=xn(e,m);t=da(t),e-=m;for(var o=Xt(r,t);++n<e;)t(n);return o},Fn.toFinite=hs,Fn.toInteger=vs,Fn.toLength=gs,Fn.toLower=function(e){return ws(e).toLowerCase()},Fn.toNumber=ys,Fn.toSafeInteger=function(e){return e?lr(vs(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),a=mn(t);return Io(o,nn(o,a),rn(o,a)+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 Io(o,0,rn(o,mn(t))+1).join("")},Fn.trimStart=function(e,t,r){if((e=ws(e))&&(r||t===n))return e.replace(ie,"");if(!e||!(t=fo(t)))return e;var o=mn(e);return Io(o,nn(o,mn(t))).join("")},Fn.truncate=function(e,t){var r=30,o="...";if(ns(t)){var a="separator"in t?t.separator:a;r="length"in t?vs(t.length):r,o="omission"in t?fo(t.omission):o}var i=(e=ws(e)).length;if(un(e)){var s=mn(e);i=s.length}if(r>=i)return e;var u=r-pn(o);if(u<1)return o;var l=s?Io(s,0,u).join(""):e.slice(0,u);if(a===n)return l+o;if(s&&(u+=l.length-u),ss(a)){if(e.slice(u).search(a)){var c,d=l;for(a.global||(a=Pe(a.source,ws(he.exec(a))+"g")),a.lastIndex=0;c=a.exec(d);)var f=c.index;l=l.slice(0,f===n?u:f)}}else if(e.indexOf(fo(a),u)!=u){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+o},Fn.unescape=function(e){return(e=ws(e))&&Y.test(e)?e.replace(K,vn):e},Fn.uniqueId=function(e){var t=++ze;return ws(e)+t},Fn.upperCase=Xs,Fn.upperFirst=Js,Fn.each=wi,Fn.eachRight=xi,Fn.first=Ka,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){Hn.prototype[e]=function(r){r=r===n?1:wn(vs(r),0);var o=this.__filtered__&&!t?new Hn(this):this.clone();return o.__filtered__?o.__takeCount__=xn(r,o.__takeCount__):o.__views__.push({size:xn(r,m),type:e+(o.__dir__<0?"Right":"")}),o},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:da(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(au)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Jr((function(e,t){return"function"==typeof e?new Hn(this):this.map((function(n){return Or(n,e,t)}))})),Hn.prototype.reject=function(e){return this.filter(Di(da(e)))},Hn.prototype.slice=function(e,t){e=vs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Hn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=vs(t))<0?r.dropRight(-t):r.take(t-e)),r)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(m)},_r(Hn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=Fn[o?"take"+("last"==t?"Right":""):t],i=o||/^find/.test(t);a&&(Fn.prototype[t]=function(){var t=this.__wrapped__,s=o?[1]:arguments,u=t instanceof Hn,l=s[0],c=u||Hi(t),d=function(e){var t=a.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=i&&!f,h=u&&!p;if(!i&&c){t=h?t:new Hn(this);var v=e.apply(t,s);return v.__actions__.push({func:hi,args:[d],thisArg:n}),new Wn(v,f)}return m&&h?e.apply(this,s):(v=this.thru(d),m?o?v.value()[0]:v.value():v)})})),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(Hi(o)?o:[],e)}return this[n]((function(n){return t.apply(Hi(n)?n:[],e)}))}})),_r(Hn.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}],Hn.prototype.clone=function(){var e=new Hn(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},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Hi(e),r=t<0,o=n?e.length:0,a=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var a=n[r],i=a.size;switch(a.type){case"drop":e+=i;break;case"dropRight":t-=i;break;case"take":t=xn(t,e+i);break;case"takeRight":e=wn(e,t-i)}}return{start:e,end:t}}(0,o,this.__views__),i=a.start,s=a.end,u=s-i,l=r?s:i-1,c=this.__iteratees__,d=c.length,f=0,p=xn(u,this.__takeCount__);if(!n||!r&&o==u&&p==u)return go(e,this.__actions__);var m=[];e:for(;u--&&f<p;){for(var h=-1,v=e[l+=t];++h<d;){var g=c[h],y=g.iteratee,b=g.type,w=y(v);if(2==b)v=w;else if(!w){if(1==b)continue e;break e}}m[f++]=v}return m},Fn.prototype.at=vi,Fn.prototype.chain=function(){return mi(this)},Fn.prototype.commit=function(){return new Wn(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 Un;){var o=Ba(r);o.__index__=0,o.__values__=n,t?a.__wrapped__=o:t=o;var a=o;r=r.__wrapped__}return a.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:hi,args:[ni],thisArg:n}),new Wn(t,this.__chain__)}return this.thru(ni)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,nt&&(Fn.prototype[nt]=function(){return this}),Fn}();gt?((gt.exports=gn)._=gn,vt._=gn):ht._=gn}.call(OQ)),av.exports;var e,t}AQ();const DQ={$user:"/:username","$user-post":"/:username/posts/:postId","$user-event":"/:username/events/:eventId","$user-channel":"/:username/channels/:channelId","$user-media":"/:username/media/:mediaId"},NQ={$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"},MQ={$root:"/",$tag:"/tags/:tag"},kQ=()=>{const e=Qk();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})))))},LQ={...DQ,...NQ,...MQ},BQ=()=>{var e;const t=(null==(e=kQ())?void 0:e.filter((({path:e})=>e.startsWith("$")&&!e.includes("/")&&!LQ[e])))||[];t.length>0&&mp.warn("Unrecognized routes found:",t)};BQ();const FQ={path:"",history:[],transitionPath:"",confirmLeavePage:null};Po({name:"router",initialState:FQ,reducers:{},extraReducers:e=>{e.addCase(jq,((e,{payload:t})=>{e.confirmLeavePage=t})).addCase(zq,((e,{payload:t})=>{t!==e.transitionPath&&(e.transitionPath=t)})).addCase(Vq,((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(n3);const r3="Tabs",[jQ,XX]=ai(r3,[Xh]),o3=Xh(),[JX,WI]=jQ(r3),zQ="TabsList",UQ=Le(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=WI(zQ,n),i=o3(n);return ae(rI,Ee({asChild:!0},i,{orientation:a.orientation,dir:a.dir,loop:r}),ae(ht.div,Ee({role:"tablist","aria-orientation":a.orientation},o,{ref:t})))})),VQ="TabsTrigger",WQ=Le(((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,i=WI(VQ,n),s=o3(n),u=i3(i.baseId,r),l=a3(i.baseId,r),c=r===i.value;return ae(oI,Ee({asChild:!0},s,{focusable:!o,active:c}),ae(ht.button,Ee({type:"button",role:"tab","aria-selected":c,"aria-controls":l,"data-state":c?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u},a,{ref:t,onMouseDown:ot(e.onMouseDown,(e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():i.onValueChange(r)})),onKeyDown:ot(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&i.onValueChange(r)})),onFocus:ot(e.onFocus,(()=>{const e="manual"!==i.activationMode;!c&&!o&&e&&i.onValueChange(r)}))})))})),qQ="TabsContent",GQ=Le(((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...i}=e,s=WI(qQ,n),u=i3(s.baseId,r),l=a3(s.baseId,r),c=r===s.value,d=We(c);return Ke((()=>{const e=requestAnimationFrame((()=>d.current=!1));return()=>cancelAnimationFrame(e)}),[]),ae(ia,{present:o||c},(({present:n})=>ae(ht.div,Ee({"data-state":c?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":u,hidden:!n,id:l,tabIndex:0},i,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),n&&a)))}));function i3(e,t){return`${e}-trigger-${t}`}function a3(e,t){return`${e}-content-${t}`}const s3=UQ,u3=WQ,l3=GQ,HQ=M.forwardRef((({className:e,useDefaults:t=!0,...n},r)=>q.jsx(s3,{ref:r,"data-testid":"tabsList",className:t?we("inline-flex w-full items-center justify-start gap-s p-none text-muted-foreground","relative after:absolute after:bottom-0 after:left-0 after:h-[1px] after:w-full after:bg-gray-200",e):e,...n})));HQ.displayName=s3.displayName;const KQ=M.forwardRef((({className:e,children:t,isFullWidthTab:n,...r},o)=>q.jsx(u3,{ref:o,asChild:!0,className:e??we("inline-flex items-center justify-center whitespace-nowrap text-base","z-2 transition-background h-m cursor-pointer focus-visible:outline-none","font-semibold focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50","group relative text-gray-500 hover:[&_svg]:fill-gray-900","after:absolute after:bottom-0 after:left-0 after:z-[1] after:h-0.5 after:w-full data-[state=active]:after:bg-gray-900",{"flex-1":n}),...r,children:t})));KQ.displayName=u3.displayName;const YQ=M.forwardRef((({className:e,...t},n)=>q.jsx(l3,{ref:n,className:we("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t})));YQ.displayName=l3.displayName;const QQ=M.forwardRef((({className:e,...t},n)=>q.jsx("table",{ref:n,className:we("w-full caption-bottom text-sm",e),...t})));QQ.displayName="Table";const XQ=M.forwardRef((({className:e,...t},n)=>q.jsx("thead",{ref:n,className:we("[&_tr]:border-b",e),...t})));XQ.displayName="TableHeader";const JQ=M.forwardRef((({className:e,...t},n)=>q.jsx("tbody",{ref:n,className:we("[&_tr:last-child]:border-0",e),...t})));JQ.displayName="TableBody";const ZQ=M.forwardRef((({className:e,...t},n)=>q.jsx("tfoot",{ref:n,className:we("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t})));ZQ.displayName="TableFooter";const eX=M.forwardRef((({className:e,...t},n)=>q.jsx("tr",{ref:n,className:we("border-b bg-background transition-colors hover:bg-gray-100 data-[state=selected]:bg-gray-200 dark:hover:bg-muted dark:data-[state=selected]:bg-muted","[&:hover_button[data-disabled]]:!bg-gray-200 [&:hover_button[disabled]]:!bg-gray-200",e),...t})));eX.displayName="TableRow";const tX=M.forwardRef((({className:e,...t},n)=>q.jsx("th",{ref:n,className:we("h-14 bg-inherit px-xs py-xxs text-left align-middle font-normal text-muted-foreground","whitespace-nowrap text-sm text-gray-500",e),...t})));tX.displayName="TableHead";const nX=M.forwardRef((({className:e,...t},n)=>q.jsx("td",{ref:n,className:we("h-14 bg-inherit p-xs py-xxs align-middle","overflow-hidden truncate text-ellipsis text-base text-gray-700",e),...t})));nX.displayName="TableCell";const rX=M.forwardRef((({className:e,...t},n)=>q.jsx("caption",{ref:n,className:we("mt-s text-sm text-muted-foreground",e),...t})));rX.displayName="TableCaption";const oX=(e,t)=>we("flex w-full rounded-m px-s py-xs text-base text-gray-900 outline outline-1 outline-input ring-offset-background transition-all duration-200 ease-in-out placeholder:inherit placeholder:text-gray-400 placeholder:text-muted-foreground hover:outline-2 hover:outline-gray-400 focus-visible:bg-gray-50 focus-visible:text-gray-900 focus-visible:outline-2 focus-visible:outline-blue_120 disabled:cursor-not-allowed disabled:select-none disabled:text-gray-300 disabled:outline-gray-200",{"bg-red_30_17 outline-red-dark":!!e},t),iX=M.forwardRef((({className:e,...t},n)=>{const{error:r}=$d();return q.jsx("textarea",{className:oX(!!r,e),ref:n,...t})}));iX.displayName="Textarea";const aX=Il(void 0),sX=()=>{const e=rp(aX);if(!e)throw new Error("useColorPicker must be used within a ColorPickerProvider");return e},uX=g3((({className:e,...t})=>{const n=We(null),[r,o]=ut(!1),[a,i]=ut(0),[s,u]=ut(0),{hue:l,saturation:c,lightness:d,setSaturation:f,setLightness:p}=sX(),m=xn((()=>`linear-gradient(0deg, rgba(0,0,0,1), rgba(0,0,0,0)),\n linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0)),\n hsl(${l}, 100%, 50%)`),[l]);Ke((()=>{if(!r){const e=c/100,t=e<.01?100:50+50*(1-e),n=t>0?1-d/t:0;i(Math.max(0,Math.min(1,e))),u(Math.max(0,Math.min(1,n)))}}),[c,d,r]);const h=yt(((e,t)=>{if(!n.current)return;const r=n.current.getBoundingClientRect(),o=Math.max(0,Math.min(1,(e-r.left)/r.width)),a=Math.max(0,Math.min(1,(t-r.top)/r.height));i(o),u(a),f(100*o);p((o<.01?100:50+50*(1-o))*(1-a))}),[f,p]),v=yt((e=>{r&&h(e.clientX,e.clientY)}),[r,h]);return Ke((()=>{const e=()=>o(!1);return r&&(window.addEventListener("pointermove",v),window.addEventListener("pointerup",e)),()=>{window.removeEventListener("pointermove",v),window.removeEventListener("pointerup",e)}}),[r,v]),q.jsx("div",{className:we("relative size-full cursor-crosshair rounded",e),onPointerDown:e=>{e.preventDefault(),o(!0),h(e.clientX,e.clientY)},ref:n,style:{background:m},...t,children:q.jsx("div",{className:"pointer-events-none absolute h-4 w-4 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white",style:{left:100*a+"%",top:100*s+"%",boxShadow:"0 0 0 1px rgba(0,0,0,0.5)"}})})}));uX.displayName="ColorPickerSelection";const lX=wu("z-tooltip animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 relative data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",{variants:{size:{default:"rounded-md text-sm px-3 py-1.5",small:"rounded-sm p-xxs text-sm"},theme:{default:"bg-popover text-popover-foreground",dark:"bg-gray-800 text-gray-50 [&_svg]:fill-gray-700"},defaultVariants:{size:"small",theme:"dark"}}}),cX=M.forwardRef((({className:e,sideOffset:t=1,size:n,theme:r,children:o,isPortal:a=!0,withArrow:i=!0,...s},u)=>{const l=q.jsx(q.Fragment,{children:q.jsxs(rk,{ref:u,sideOffset:t,className:we(lX({size:n,theme:r,className:e})),...s,children:[o,i&&q.jsxs(q.Fragment,{children:[q.jsx(kq,{height:4,width:8}),q.jsx("div",{className:"absolute bottom-0 left-0 h-full w-full rounded-sm border border-gray-700"})]})]})});return a?q.jsx(Mq,{children:l}):l}));cX.displayName=rk.displayName;var u2,qg={exports:{}},dX=qg.exports;function fX(){return u2||(u2=1,qg.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",a="minute",i="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,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,l),a=n-o<0,i=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-o)/(a?o-i:i-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:i,m:a,s:o,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=v;var x="$isDayjsObject",_=function(e){return e instanceof E||!(!e||!e[x])},S=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var a=t.toLowerCase();w[a]&&(o=a),n&&(w[a]=n,o=a);var i=t.split("-");if(!o&&i.length>1)return e(i[0])}else{var s=t.name;w[s]=t,o=s}return!r&&o&&(b=o),o||!r&&b},I=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},A=y;A.l=S,A.i=_,A.w=function(e,t){return I(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function v(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var g=v.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(A.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(m);if(r){var o=r[2]-1||0,a=(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,a)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return A},g.isValid=function(){return this.$d.toString()!==p},g.isSame=function(e,t){var n=I(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return I(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<I(e)},g.$g=function(e,t,n){return A.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,r=!!A.u(t)||t,c=A.p(e),p=function(e,t){var o=A.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(s)},m=function(e,t){return A.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,v=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(c){case d:return r?p(1,0):p(31,11);case l:return r?p(1,v):p(0,v+1);case u:var b=this.$locale().weekStart||0,w=(h<b?h+7:h)-b;return p(r?g-w:g+(6-w),v);case s:case f:return m(y+"Hours",0);case i:return m(y+"Minutes",1);case a:return m(y+"Seconds",2);case o:return m(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,u=A.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[i]=c+"Hours",n[a]=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},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[A.p(e)]()},g.add=function(r,c){var f,p=this;r=Number(r);var m=A.p(c),h=function(e){var t=I(p);return A.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===u)return h(7);var v=(f={},f[a]=t,f[i]=n,f[o]=e,f)[m]||1,g=this.$d.getTime()+r*v;return A.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=A.z(this),a=this.$H,i=this.$m,s=this.$M,u=n.weekdays,l=n.months,c=n.meridiem,d=function(e,n,o,a){return e&&(e[n]||e(t,r))||o[n].slice(0,a)},f=function(e){return A.s(a%12||12,e,"0")},m=c||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return A.s(t.$y,4,"0");case"M":return s+1;case"MM":return A.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 A.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(a);case"HH":return A.s(a,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(a,i,!0);case"A":return m(a,i,!1);case"m":return String(i);case"mm":return A.s(i,2,"0");case"s":return String(t.$s);case"ss":return A.s(t.$s,2,"0");case"SSS":return A.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,f,p){var m,h=this,v=A.p(f),g=I(r),y=(g.utcOffset()-this.utcOffset())*t,b=this-g,w=function(){return A.m(h,g)};switch(v){case d:m=w()/12;break;case l:m=w();break;case c:m=w()/3;break;case u:m=(b-y)/6048e5;break;case s:m=(b-y)/864e5;break;case i:m=b/n;break;case a:m=b/t;break;case o:m=b/e;break;default:m=b}return p?m:A.a(m)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return w[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return A.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),k=E.prototype;return I.prototype=k,[["$ms",r],["$s",o],["$m",a],["$H",i],["$W",s],["$M",l],["$y",d],["$D",f]].forEach((function(e){k[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),I.extend=function(e,t){return e.$i||(e(t,E,I),e.$i=!0),I},I.locale=S,I.isDayjs=_,I.unix=function(e){return I(1e3*e)},I.en=w[b],I.Ls=w,I.p={},I}()),qg.exports}fX();const QS="horizontal",pX=["horizontal","vertical"],qI=Le(((e,t)=>{const{decorative:n,orientation:r=QS,...o}=e,a=c3(r)?r:QS,i=n?{role:"none"}:{"aria-orientation":"vertical"===a?a:void 0,role:"separator"};return ae(ht.div,Ee({"data-orientation":a},i,o,{ref:t}))}));function hX(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \`${QS}\`.`}function c3(e){return pX.includes(e)}qI.propTypes={orientation(e,t,n){const r=e[t],o=String(r);return r&&!c3(r)?new Error(hX(o,n)):null}};const mX=wu("\n shrink-0 bg-gray-200\n data-[orientation=horizontal]:h-px data-[orientation=horizontal]:my-xxs\n data-[orientation=vertical]:w-px data-[orientation=vertical]:mx-xxs\n ",{variants:{size:{xs:"data-[orientation=horizontal]:w-4 data-[orientation=vertical]:h-4",s:"data-[orientation=horizontal]:w-6 data-[orientation=vertical]:h-6",m:"data-[orientation=horizontal]:w-8 data-[orientation=vertical]:h-8",l:"data-[orientation=horizontal]:w-10 data-[orientation=vertical]:h-10"}},defaultVariants:{size:"s"}}),vX=M.forwardRef((({className:e,size:t,...n},r)=>q.jsx(qI,{ref:r,className:we(mX({size:t,className:e})),...n})));vX.displayName=qI.displayName;const gX="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI3BhaW50MF9hbmd1bGFyXzExMTY1XzE4NjcxX2NsaXBfcGF0aCkiIGRhdGEtZmlnbWEtc2tpcC1wYXJzZT0idHJ1ZSI+PGcgdHJhbnNmb3JtPSJtYXRyaXgoMCAwLjAxMiAtMC4wMTIgMCAxMiAxMikiPjxmb3JlaWduT2JqZWN0IHg9Ii0xMDY2LjI0IiB5PSItMTA2Ni4yNCIgd2lkdGg9IjIxMzIuNDkiIGhlaWdodD0iMjEzMi40OSI+PGRpdiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCIgc3R5bGU9ImJhY2tncm91bmQ6Y29uaWMtZ3JhZGllbnQoZnJvbSA5MGRlZyxyZ2JhKDI1NSwgMjU1LCAyNTUsIDEpIDBkZWcscmdiYSgyNTUsIDI1NSwgMjU1LCAxKSA2My4yNDNkZWcscmdiYSgyNTUsIDI1NSwgMjU1LCAwKSAzNjBkZWcpO2hlaWdodDoxMDAlO3dpZHRoOjEwMCU7b3BhY2l0eToxIj48L2Rpdj48L2ZvcmVpZ25PYmplY3Q+PC9nPjwvZz48cGF0aCBkPSJNMjQgMTJDMjQgMTguNjI3NCAxOC42Mjc0IDI0IDEyIDI0QzUuMzcyNTggMjQgMCAxOC42Mjc0IDAgMTJDMCA1LjM3MjU4IDUuMzcyNTggMCAxMiAwQzE4LjYyNzQgMCAyNCA1LjM3MjU4IDI0IDEyWk0zLjU4ODMyIDEyQzMuNTg4MzIgMTYuNjQ1NiA3LjM1NDM2IDIwLjQxMTcgMTIgMjAuNDExN0MxNi42NDU2IDIwLjQxMTcgMjAuNDExNyAxNi42NDU2IDIwLjQxMTcgMTJDMjAuNDExNyA3LjM1NDM2IDE2LjY0NTYgMy41ODgzMiAxMiAzLjU4ODMyQzcuMzU0MzYgMy41ODgzMiAzLjU4ODMyIDcuMzU0MzYgMy41ODgzMiAxMloiIGRhdGEtZmlnbWEtZ3JhZGllbnQtZmlsbD0ieyYjMzQ7dHlwZSYjMzQ7OiYjMzQ7R1JBRElFTlRfQU5HVUxBUiYjMzQ7LCYjMzQ7c3RvcHMmIzM0OzpbeyYjMzQ7Y29sb3ImIzM0Ozp7JiMzNDtyJiMzNDs6MS4wLCYjMzQ7ZyYjMzQ7OjEuMCwmIzM0O2ImIzM0OzoxLjAsJiMzNDthJiMzNDs6MS4wfSwmIzM0O3Bvc2l0aW9uJiMzNDs6MC4wfSx7JiMzNDtjb2xvciYjMzQ7OnsmIzM0O3ImIzM0OzoxLjAsJiMzNDtnJiMzNDs6MS4wLCYjMzQ7YiYjMzQ7OjEuMCwmIzM0O2EmIzM0OzoxLjB9LCYjMzQ7cG9zaXRpb24mIzM0OzowLjE3NTY3NTAwNDcyMDY4Nzg3fSx7JiMzNDtjb2xvciYjMzQ7OnsmIzM0O3ImIzM0OzoxLjAsJiMzNDtnJiMzNDs6MS4wLCYjMzQ7YiYjMzQ7OjEuMCwmIzM0O2EmIzM0OzowLjB9LCYjMzQ7cG9zaXRpb24mIzM0OzoxLjB9XSwmIzM0O3N0b3BzVmFyJiMzNDs6W3smIzM0O2NvbG9yJiMzNDs6eyYjMzQ7ciYjMzQ7OjEuMCwmIzM0O2cmIzM0OzoxLjAsJiMzNDtiJiMzNDs6MS4wLCYjMzQ7YSYjMzQ7OjEuMH0sJiMzNDtwb3NpdGlvbiYjMzQ7OjAuMH0seyYjMzQ7Y29sb3ImIzM0Ozp7JiMzNDtyJiMzNDs6MS4wLCYjMzQ7ZyYjMzQ7OjEuMCwmIzM0O2ImIzM0OzoxLjAsJiMzNDthJiMzNDs6MS4wfSwmIzM0O3Bvc2l0aW9uJiMzNDs6MC4xNzU2NzUwMDQ3MjA2ODc4N30seyYjMzQ7Y29sb3ImIzM0Ozp7JiMzNDtyJiMzNDs6MS4wLCYjMzQ7ZyYjMzQ7OjEuMCwmIzM0O2ImIzM0OzoxLjAsJiMzNDthJiMzNDs6MC4wfSwmIzM0O3Bvc2l0aW9uJiMzNDs6MS4wfV0sJiMzNDt0cmFuc2Zvcm0mIzM0Ozp7JiMzNDttMDAmIzM0OzoxLjQ2OTU3NjIyMzEwMjIwMTRlLTE1LCYjMzQ7bTAxJiMzNDs6LTI0LjAsJiMzNDttMDImIzM0OzoyNC4wLCYjMzQ7bTEwJiMzNDs6MjQuMCwmIzM0O20xMSYjMzQ7OjEuNDY5NTc2MjIzMTAyMjAxNGUtMTUsJiMzNDttMTImIzM0OzotMS40Njk1NzYyMjMxMDIyMDE0ZS0xNX0sJiMzNDtvcGFjaXR5JiMzNDs6MS4wLCYjMzQ7YmxlbmRNb2RlJiMzNDs6JiMzNDtOT1JNQUwmIzM0OywmIzM0O3Zpc2libGUmIzM0Ozp0cnVlfSIvPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJwYWludDBfYW5ndWxhcl8xMTE2NV8xODY3MV9jbGlwX3BhdGgiPjxwYXRoIGQ9Ik0yNCAxMkMyNCAxOC42Mjc0IDE4LjYyNzQgMjQgMTIgMjRDNS4zNzI1OCAyNCAwIDE4LjYyNzQgMCAxMkMwIDUuMzcyNTggNS4zNzI1OCAwIDEyIDBDMTguNjI3NCAwIDI0IDUuMzcyNTggMjQgMTJaTTMuNTg4MzIgMTJDMy41ODgzMiAxNi42NDU2IDcuMzU0MzYgMjAuNDExNyAxMiAyMC40MTE3QzE2LjY0NTYgMjAuNDExNyAyMC40MTE3IDE2LjY0NTYgMjAuNDExNyAxMkMyMC40MTE3IDcuMzU0MzYgMTYuNjQ1NiAzLjU4ODMyIDEyIDMuNTg4MzJDNy4zNTQzNiAzLjU4ODMyIDMuNTg4MzIgNy4zNTQzNiAzLjU4ODMyIDEyWiIvPjwvY2xpcFBhdGg+PC9kZWZzPgo8L3N2Zz4K",yX=e=>{switch(!0){case"success"===e:return q.jsx(X3,{color:"white"});case"error"===e:return q.jsx(r$,{color:"white"});case"loading"===e:return q.jsx("img",{src:gX,className:"animate-forward animate-spin [animation-direction:reverse]"});default:return null}},wX={toastsSizes:{}},d3=Po({name:"systemToast",initialState:wX,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(n3),{addToastSize:_X,removeToastSize:bX}=d3.actions,{selectToastSize:xX}=d3.selectors,SX=e=>{const{title:t,actionButton:n,id:r,type:o,promise:a,dismiss:i}=e,s=e$(),u=c0(xX),[l,c]=ut(o),[d,f]=ut("loading"===o),p=We(null),m=yX(d?"loading":l);Ke((()=>{var e;s(_X({id:`${r}`,size:(null==(e=p.current)?void 0:e.offsetWidth)??0}))}),[d]),Ke((()=>()=>{s(bX(`${r}`))}),[]),Ke((()=>{if(!a)return;let e=!1;return f(!0),a.then((()=>c("success"))).catch((()=>c("error"))).finally((()=>{e||f(!1)})),()=>{e=!0}}),[a]);return q.jsxs("div",{ref:p,onClick:()=>{n||i(r)},style:{minWidth:u},"data-testid":"toast-container",className:we("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,q.jsx("p",{dangerouslySetInnerHTML:{__html:t},className:"text-base font-medium text-white"}),n&&q.jsx("button",{className:"h-s px-xs rounded-sm bg-gray-500 text-sm",onClick:()=>{n.onClick(),i(r)},children:n.label})]})},aS=(e,t)=>cS.custom((n=>q.jsx(SX,{id:n,dismiss:cS.dismiss,...e,actionButton:null==t?void 0:t.actionButton})),{dismissible:!0,duration:k3(e),toasterId:"system-bottom-toaster",...t}),sS={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)};function ZX(){const e=e$(),t=We(null);function n(){t.current&&(sS.dismiss(t.current),t.current=null)}DO("online",(()=>{e(Gg.actions.setOnline(!0)),n(),t.current=sS.success("Connection restored")})),DO("offline",(()=>{e(Gg.actions.setOnline(!1)),n(),t.current=sS.error("Your network is unavailable")}))}const eJ=()=>c0(Gg.selectors.selectOnline);export{Gg as networkSlice,eJ as useIsOnline,ZX as useNetworkStatusListener};
|
|
1
|
+
import{createSlice as f}from"https://cdn.jsdelivr.net/npm/@reduxjs/toolkit@2.2.1/+esm";import{useRef as l,useEffect as c}from"https://cdn.jsdelivr.net/npm/react@18.2.0/+esm";import{useDispatch as O,useSelector as d}from"https://cdn.jsdelivr.net/npm/react-redux@9.1.0/+esm";import{toast as r}from"https://cdn.jsdelivr.net/npm/@wellesley/system-toast@1.0.185";function m(){return!(typeof navigator<"u"&&"boolean"==typeof navigator.onLine)||navigator.onLine}const v={isOnline:m()},o=f({name:"network",initialState:v,reducers:{setOnline:(e,{payload:n})=>{e.isOnline=n}},selectors:{selectOnline:e=>e.isOnline}});function u(e,n,t=window){const s=l(n);c((()=>{s.current=n}),[n]),c((()=>{if(!t)return;const n=e=>s.current(e);return t.addEventListener(e,n),()=>{t.removeEventListener(e,n)}}),[e,t])}function k(){const e=O(),n=l(null);function t(){n.current&&(r.dismiss(n.current),n.current=null)}u("online",(()=>{e(o.actions.setOnline(!0)),t(),n.current=r.success("Connection restored")})),u("offline",(()=>{e(o.actions.setOnline(!1)),t(),n.current=r.error("Your network is unavailable")}))}const E=()=>d(o.selectors.selectOnline);export{o as networkSlice,E as useIsOnline,k as useNetworkStatusListener};
|