@simpoobusiness/sdk 2.0.34 → 2.0.36
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/dist/simpoo-sdk.js
DELETED
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).SimpooSDK={})}(this,function(e){"use strict";function t(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r,o={exports:{}},a={};var i,s,l,u={exports:{}},c={};function d(){if(i)return c;i=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),h=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}function b(){}function w(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var x=w.prototype=new b;x.constructor=w,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var k={H:null,A:null,T:null,S:null},_=Object.prototype.hasOwnProperty;function E(t,n,r){var o=r.ref;return{$$typeof:e,type:t,key:n,ref:void 0!==o?o:null,props:r}}function j(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var O=/\/+/g;function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function R(n,r,o,a,i){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l,u,c=!1;if(null===n)c=!0;else switch(s){case"bigint":case"string":case"number":c=!0;break;case"object":switch(n.$$typeof){case e:case t:c=!0;break;case f:return R((c=n._init)(n._payload),r,o,a,i)}}if(c)return i=i(n),c=""===a?"."+N(n,0):a,S(i)?(o="",null!=c&&(o=c.replace(O,"$&/")+"/"),R(i,r,o,"",function(e){return e})):null!=i&&(j(i)&&(l=i,u=o+(null==i.key||n&&n.key===i.key?"":(""+i.key).replace(O,"$&/")+"/")+c,i=E(l.type,u,l.props)),r.push(i)),1;c=0;var d,p=""===a?".":a+":";if(S(n))for(var m=0;m<n.length;m++)c+=R(a=n[m],r,o,s=p+N(a,m),i);else if("function"==typeof(m=null===(d=n)||"object"!=typeof d?null:"function"==typeof(d=h&&d[h]||d["@@iterator"])?d:null))for(n=m.call(n),m=0;!(a=n.next()).done;)c+=R(a=a.value,r,o,s=p+N(a,m++),i);else if("object"===s){if("function"==typeof n.then)return R(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(C,C):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(n),r,o,a,i);throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return c}function P(e,t,n){if(null==e)return e;var r=[],o=0;return R(e,r,"","",function(e){return t.call(n,e,o++)}),r}function T(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},M={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!j(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return c.Activity=p,c.Children=M,c.Component=v,c.Fragment=n,c.Profiler=o,c.PureComponent=w,c.StrictMode=r,c.Suspense=u,c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,c.__COMPILER_RUNTIME={__proto__:null,c:function(e){return k.H.useMemoCache(e)}},c.cache=function(e){return function(){return e.apply(null,arguments)}},c.cacheSignal=function(){return null},c.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=g({},e.props),o=e.key;if(null!=t)for(a in void 0!==t.key&&(o=""+t.key),t)!_.call(t,a)||"key"===a||"__self"===a||"__source"===a||"ref"===a&&void 0===t.ref||(r[a]=t[a]);var a=arguments.length-2;if(1===a)r.children=n;else if(1<a){for(var i=Array(a),s=0;s<a;s++)i[s]=arguments[s+2];r.children=i}return E(e.type,o,r)},c.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:a,_context:e},e},c.createElement=function(e,t,n){var r,o={},a=null;if(null!=t)for(r in void 0!==t.key&&(a=""+t.key),t)_.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var i=arguments.length-2;if(1===i)o.children=n;else if(1<i){for(var s=Array(i),l=0;l<i;l++)s[l]=arguments[l+2];o.children=s}if(e&&e.defaultProps)for(r in i=e.defaultProps)void 0===o[r]&&(o[r]=i[r]);return E(e,a,o)},c.createRef=function(){return{current:null}},c.forwardRef=function(e){return{$$typeof:l,render:e}},c.isValidElement=j,c.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:T}},c.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},c.startTransition=function(e){var t=k.T,n={};k.T=n;try{var r=e(),o=k.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(C,D)}catch(e){D(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),k.T=t}},c.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},c.use=function(e){return k.H.use(e)},c.useActionState=function(e,t,n){return k.H.useActionState(e,t,n)},c.useCallback=function(e,t){return k.H.useCallback(e,t)},c.useContext=function(e){return k.H.useContext(e)},c.useDebugValue=function(){},c.useDeferredValue=function(e,t){return k.H.useDeferredValue(e,t)},c.useEffect=function(e,t){return k.H.useEffect(e,t)},c.useEffectEvent=function(e){return k.H.useEffectEvent(e)},c.useId=function(){return k.H.useId()},c.useImperativeHandle=function(e,t,n){return k.H.useImperativeHandle(e,t,n)},c.useInsertionEffect=function(e,t){return k.H.useInsertionEffect(e,t)},c.useLayoutEffect=function(e,t){return k.H.useLayoutEffect(e,t)},c.useMemo=function(e,t){return k.H.useMemo(e,t)},c.useOptimistic=function(e,t){return k.H.useOptimistic(e,t)},c.useReducer=function(e,t,n){return k.H.useReducer(e,t,n)},c.useRef=function(e){return k.H.useRef(e)},c.useState=function(e){return k.H.useState(e)},c.useSyncExternalStore=function(e,t,n){return k.H.useSyncExternalStore(e,t,n)},c.useTransition=function(){return k.H.useTransition()},c.version="19.2.0",c}function f(){return s||(s=1,u.exports=d()),u.exports}var p,h,m=(l||(l=1,o.exports=function(){if(r)return a;r=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var a in r={},n)"key"!==a&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:o,ref:void 0!==n?n:null,props:r}}return a.Fragment=t,a.jsx=n,a.jsxs=n,a}()),o.exports),g={exports:{}},y={},v={exports:{}},b={};function w(){return h||(h=1,v.exports=(p||(p=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,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<a&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<a&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"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 l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(l,o)}o=n(u)}}function x(e){if(m=!1,w(e),!h)if(null!==n(l))h=!0,C||(C=!0,S());else{var t=n(u);null!==t&&P(x,t.startTime-e)}}var S,C=!1,k=-1,_=5,E=-1;function j(){return!(!g&&e.unstable_now()-E<_)}function O(){if(g=!1,C){var t=e.unstable_now();E=t;var o=!0;try{e:{h=!1,m&&(m=!1,v(k),k=-1),p=!0;var a=f;try{t:{for(w(t),d=n(l);null!==d&&!(d.expirationTime>t&&j());){var i=d.callback;if("function"==typeof i){d.callback=null,f=d.priorityLevel;var s=i(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof s){d.callback=s,w(t),o=!0;break t}d===n(l)&&r(l),w(t)}else r(l);d=n(l)}if(null!==d)o=!0;else{var c=n(u);null!==c&&P(x,c.startTime-t),o=!1}}break e}finally{d=null,f=a,p=!1}o=void 0}}finally{o?S():C=!1}}}if("function"==typeof b)S=function(){b(O)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,R=N.port2;N.port1.onmessage=O,S=function(){R.postMessage(null)}}else S=function(){y(O,0)};function P(t,n){k=y(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_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"):_=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},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_requestPaint=function(){g=!0},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(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<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(u,r),null===n(l)&&r===n(u)&&(m?(v(k),k=-1):m=!0,P(x,a-i))):(r.sortIndex=s,t(l,r),h||p||(h=!0,C||(C=!0,S()))),r},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(b)),b)),v.exports}var x,S,C,k,_={exports:{}},E={};function j(){if(x)return E;x=1;var e=f();function t(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");var a=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function i(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return E.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,E.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(t(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:o,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,n,null,r)},E.flushSync=function(e){var t=a.T,n=r.p;try{if(a.T=null,r.p=2,e)return e()}finally{a.T=t,r.p=n,r.d.f()}},E.preconnect=function(e,t){"string"==typeof e&&(t?t="string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,r.d.C(e,t))},E.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},E.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,o=i(n,t.crossOrigin),a="string"==typeof t.integrity?t.integrity:void 0,s="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?r.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:o,integrity:a,fetchPriority:s}):"script"===n&&r.d.X(e,{crossOrigin:o,integrity:a,fetchPriority:s,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},E.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=i(t.as,t.crossOrigin);r.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&r.d.M(e)},E.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,o=i(n,t.crossOrigin);r.d.L(e,n,{crossOrigin:o,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},E.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=i(t.as,t.crossOrigin);r.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else r.d.m(e)},E.requestFormReset=function(e){r.d.r(e)},E.unstable_batchedUpdates=function(e,t){return e(t)},E.useFormState=function(e,t,n){return a.H.useFormState(e,t,n)},E.useFormStatus=function(){return a.H.useHostTransitionStatus()},E.version="19.2.0",E}function O(){if(S)return _.exports;return S=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),_.exports=j(),_.exports}
|
|
2
|
-
/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react-dom-client.production.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Meta Platforms, Inc. and 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 N(){if(C)return y;C=1;var e=w(),t=f(),n=O();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function o(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function a(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 i(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 s(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function l(e){if(a(e)!==e)throw Error(r(188))}function u(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=u(e)))return t;e=e.sibling}return null}var c=Object.assign,d=Symbol.for("react.element"),p=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),x=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),R=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function T(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=P&&e[P]||e["@@iterator"])?e:null}var D=Symbol.for("react.client.reference");function M(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===D?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case m:return"Fragment";case v:return"Profiler";case g:return"StrictMode";case k:return"Suspense";case _:return"SuspenseList";case N:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case h:return"Portal";case x:return e.displayName||"Context";case b:return(e._context.displayName||"Context")+".Consumer";case S:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case E:return null!==(t=e.displayName||null)?t:M(e.type)||"Memo";case j:t=e._payload,e=e._init;try{return M(e(t))}catch(e){}}return null}var I=Array.isArray,A=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L={pending:!1,data:null,method:null,action:null},z=[],$=-1;function H(e){return{current:e}}function V(e){0>$||(e.current=z[$],z[$]=null,$--)}function B(e,t){$++,z[$]=e.current,e.current=t}var U,W,Y=H(null),q=H(null),G=H(null),K=H(null);function Q(e,t){switch(B(G,t),B(q,e),B(Y,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?bd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=wd(t=bd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(Y),B(Y,e)}function X(){V(Y),V(q),V(G)}function Z(e){null!==e.memoizedState&&B(K,e);var t=Y.current,n=wd(t,e.type);t!==n&&(B(q,e),B(Y,n))}function J(e){q.current===e&&(V(Y),V(q)),K.current===e&&(V(K),pf._currentValue=L)}function ee(e){if(void 0===U)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||"",W=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+U+e+W}var te=!1;function ne(e,t){if(!e||te)return"";te=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=r.DetermineComponentFrameRoot(),i=a[0],s=a[1];if(i&&s){var l=i.split("\n"),u=s.split("\n");for(o=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;o<u.length&&!u[o].includes("DetermineComponentFrameRoot");)o++;if(r===l.length||o===u.length)for(r=l.length-1,o=u.length-1;1<=r&&0<=o&&l[r]!==u[o];)o--;for(;1<=r&&0<=o;r--,o--)if(l[r]!==u[o]){if(1!==r||1!==o)do{if(r--,0>--o||l[r]!==u[o]){var c="\n"+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=o);break}}}finally{te=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ee(n):""}function re(e,t){switch(e.tag){case 26:case 27:case 5:return ee(e.type);case 16:return ee("Lazy");case 13:return e.child!==t&&null!==t?ee("Suspense Fallback"):ee("Suspense");case 19:return ee("SuspenseList");case 0:case 15:return ne(e.type,!1);case 11:return ne(e.type.render,!1);case 1:return ne(e.type,!0);case 31:return ee("Activity");default:return""}}function oe(e){try{var t="",n=null;do{t+=re(e,n),n=e,e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var ae=Object.prototype.hasOwnProperty,ie=e.unstable_scheduleCallback,se=e.unstable_cancelCallback,le=e.unstable_shouldYield,ue=e.unstable_requestPaint,ce=e.unstable_now,de=e.unstable_getCurrentPriorityLevel,fe=e.unstable_ImmediatePriority,pe=e.unstable_UserBlockingPriority,he=e.unstable_NormalPriority,me=e.unstable_LowPriority,ge=e.unstable_IdlePriority,ye=e.log,ve=e.unstable_setDisableYieldValue,be=null,we=null;function xe(e){if("function"==typeof ye&&ve(e),we&&"function"==typeof we.setStrictMode)try{we.setStrictMode(be,e)}catch(e){}}var Se=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Ce(e)/ke|0)|0},Ce=Math.log,ke=Math.LN2;var _e=256,Ee=262144,je=4194304;function Oe(e){var t=42&e;if(0!==t)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ne(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,a=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~a)?o=Oe(r):0!==(i&=s)?o=Oe(i):n||0!==(n=s&~e)&&(o=Oe(n)):0!==(s=r&~a)?o=Oe(s):0!==i?o=Oe(i):n||0!==(n=r&~e)&&(o=Oe(n)),0===o?0:0!==t&&t!==o&&0===(t&a)&&((a=o&-o)>=(n=t&-t)||32===a&&4194048&n)?t:o}function Re(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Pe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 Te(){var e=je;return!(62914560&(je<<=1))&&(je=4194304),e}function De(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Me(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ie(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Se(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Ae(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Se(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function Fe(e,t){var n=t&-t;return 0!==((n=42&n?1:Le(n))&(e.suspendedLanes|t))?0:n}function Le(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ze(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function $e(){var e=F.p;return 0!==e?e:void 0===(e=window.event)?32:Nf(e.type)}function He(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var Ve=Math.random().toString(36).slice(2),Be="__reactFiber$"+Ve,Ue="__reactProps$"+Ve,We="__reactContainer$"+Ve,Ye="__reactEvents$"+Ve,qe="__reactListeners$"+Ve,Ge="__reactHandles$"+Ve,Ke="__reactResources$"+Ve,Qe="__reactMarker$"+Ve;function Xe(e){delete e[Be],delete e[Ue],delete e[Ye],delete e[qe],delete e[Ge]}function Ze(e){var t=e[Be];if(t)return t;for(var n=e.parentNode;n;){if(t=n[We]||n[Be]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Ld(e);null!==e;){if(n=e[Be])return n;e=Ld(e)}return t}n=(e=n).parentNode}return null}function Je(e){if(e=e[Be]||e[We]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function et(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function tt(e){var t=e[Ke];return t||(t=e[Ke]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[Qe]=!0}var rt=new Set,ot={};function at(e,t){it(e,t),it(e+"Capture",t)}function it(e,t){for(ot[e]=t,e=0;e<t.length;e++)rt.add(t[e])}var st=RegExp("^[: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]*$"),lt={},ut={};function ct(e,t,n){if(o=t,ae.call(ut,o)||!ae.call(lt,o)&&(st.test(o)?ut[o]=!0:(lt[o]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var o}function dt(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ft(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function pt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ht(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function mt(e){if(!e._valueTracker){var t=ht(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function gt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ht(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function yt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var vt=/[\n"\\]/g;function bt(e){return e.replace(vt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function wt(e,t,n,r,o,a,i,s){e.name="",null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.type=i:e.removeAttribute("type"),null!=t?"number"===i?(0===t&&""===e.value||e.value!=t)&&(e.value=""+pt(t)):e.value!==""+pt(t)&&(e.value=""+pt(t)):"submit"!==i&&"reset"!==i||e.removeAttribute("value"),null!=t?St(e,i,pt(t)):null!=n?St(e,i,pt(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=a&&(e.defaultChecked=!!a),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+pt(s):e.removeAttribute("name")}function xt(e,t,n,r,o,a,i,s){if(null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.type=a),null!=t||null!=n){if(("submit"===a||"reset"===a)&&null==t)return void mt(e);n=null!=n?""+pt(n):"",t=null!=t?""+pt(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.name=i),mt(e)}function St(e,t,n){"number"===t&&yt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ct(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=""+pt(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 kt(e,t,n){null==t||((t=""+pt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+pt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function _t(e,t,n,o){if(null==t){if(null!=o){if(null!=n)throw Error(r(92));if(I(o)){if(1<o.length)throw Error(r(93));o=o[0]}n=o}null==n&&(n=""),t=n}n=pt(t),e.defaultValue=n,(o=e.textContent)===n&&""!==o&&null!==o&&(e.value=o),mt(e)}function Et(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 jt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ot(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||jt.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Nt(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(r(62));if(e=e.style,null!=n){for(var o in n)!n.hasOwnProperty(o)||null!=t&&t.hasOwnProperty(o)||(0===o.indexOf("--")?e.setProperty(o,""):"float"===o?e.cssFloat="":e[o]="");for(var a in t)o=t[a],t.hasOwnProperty(a)&&n[a]!==o&&Ot(e,a,o)}else for(var i in t)t.hasOwnProperty(i)&&Ot(e,i,t[i])}function Rt(e){if(-1===e.indexOf("-"))return!1;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 Pt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Tt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Dt(e){return Tt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Mt(){}var It=null;function At(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ft=null,Lt=null;function zt(e){var t=Je(e);if(t&&(e=t.stateNode)){var n=e[Ue]||null;e:switch(e=t.stateNode,t.type){case"input":if(wt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+bt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var a=o[Ue]||null;if(!a)throw Error(r(90));wt(o,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)(o=n[t]).form===e.form&>(o)}break e;case"textarea":kt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&Ct(e,!!n.multiple,t,!1)}}}var $t=!1;function Ht(e,t,n){if($t)return e(t,n);$t=!0;try{return e(t)}finally{if($t=!1,(null!==Ft||null!==Lt)&&(tc(),Ft&&(t=Ft,e=Lt,Lt=Ft=null,zt(t),e)))for(t=0;t<e.length;t++)zt(e[t])}}function Vt(e,t){var n=e.stateNode;if(null===n)return null;var o=n[Ue]||null;if(null===o)return null;n=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(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var Bt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ut=!1;if(Bt)try{var Wt={};Object.defineProperty(Wt,"passive",{get:function(){Ut=!0}}),window.addEventListener("test",Wt,Wt),window.removeEventListener("test",Wt,Wt)}catch(e){Ut=!1}var Yt=null,qt=null,Gt=null;function Kt(){if(Gt)return Gt;var e,t,n=qt,r=n.length,o="value"in Yt?Yt.value:Yt.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 Gt=o.slice(e,1<t?1-t:void 0)}function Qt(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 Xt(){return!0}function Zt(){return!1}function Jt(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)?Xt:Zt,this.isPropagationStopped=Zt,this}return c(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=Xt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Xt)},persist:function(){},isPersistent:Xt}),t}var en,tn,nn,rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},on=Jt(rn),an=c({},rn,{view:0,detail:0}),sn=Jt(an),ln=c({},an,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bn,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!==nn&&(nn&&"mousemove"===e.type?(en=e.screenX-nn.screenX,tn=e.screenY-nn.screenY):tn=en=0,nn=e),en)},movementY:function(e){return"movementY"in e?e.movementY:tn}}),un=Jt(ln),cn=Jt(c({},ln,{dataTransfer:0})),dn=Jt(c({},an,{relatedTarget:0})),fn=Jt(c({},rn,{animationName:0,elapsedTime:0,pseudoElement:0})),pn=Jt(c({},rn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),hn=Jt(c({},rn,{data:0})),mn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gn={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"},yn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=yn[e])&&!!t[e]}function bn(){return vn}var wn=Jt(c({},an,{key:function(e){if(e.key){var t=mn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Qt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?gn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bn,charCode:function(e){return"keypress"===e.type?Qt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Qt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),xn=Jt(c({},ln,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Sn=Jt(c({},an,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bn})),Cn=Jt(c({},rn,{propertyName:0,elapsedTime:0,pseudoElement:0})),kn=Jt(c({},ln,{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})),_n=Jt(c({},rn,{newState:0,oldState:0})),En=[9,13,27,32],jn=Bt&&"CompositionEvent"in window,On=null;Bt&&"documentMode"in document&&(On=document.documentMode);var Nn=Bt&&"TextEvent"in window&&!On,Rn=Bt&&(!jn||On&&8<On&&11>=On),Pn=String.fromCharCode(32),Tn=!1;function Dn(e,t){switch(e){case"keyup":return-1!==En.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var In=!1;var An={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?!!An[e.type]:"textarea"===t}function Ln(e,t,n,r){Ft?Lt?Lt.push(r):Lt=[r]:Ft=r,0<(t=ad(t,"onChange")).length&&(n=new on("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var zn=null,$n=null;function Hn(e){Xc(e,0)}function Vn(e){if(gt(et(e)))return e}function Bn(e,t){if("change"===e)return t}var Un=!1;if(Bt){var Wn;if(Bt){var Yn="oninput"in document;if(!Yn){var qn=document.createElement("div");qn.setAttribute("oninput","return;"),Yn="function"==typeof qn.oninput}Wn=Yn}else Wn=!1;Un=Wn&&(!document.documentMode||9<document.documentMode)}function Gn(){zn&&(zn.detachEvent("onpropertychange",Kn),$n=zn=null)}function Kn(e){if("value"===e.propertyName&&Vn($n)){var t=[];Ln(t,$n,e,At(e)),Ht(Hn,t)}}function Qn(e,t,n){"focusin"===e?(Gn(),$n=n,(zn=t).attachEvent("onpropertychange",Kn)):"focusout"===e&&Gn()}function Xn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Vn($n)}function Zn(e,t){if("click"===e)return Vn(t)}function Jn(e,t){if("input"===e||"change"===e)return Vn(t)}var er="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function tr(e,t){if(er(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(!ae.call(t,o)||!er(e[o],t[o]))return!1}return!0}function nr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rr(e,t){var n,r=nr(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=nr(r)}}function or(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?or(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ar(e){for(var t=yt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=yt((e=t.contentWindow).document)}return t}function ir(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)}var sr=Bt&&"documentMode"in document&&11>=document.documentMode,lr=null,ur=null,cr=null,dr=!1;function fr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;dr||null==lr||lr!==yt(r)||("selectionStart"in(r=lr)&&ir(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},cr&&tr(cr,r)||(cr=r,0<(r=ad(ur,"onSelect")).length&&(t=new on("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=lr)))}function pr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var hr={animationend:pr("Animation","AnimationEnd"),animationiteration:pr("Animation","AnimationIteration"),animationstart:pr("Animation","AnimationStart"),transitionrun:pr("Transition","TransitionRun"),transitionstart:pr("Transition","TransitionStart"),transitioncancel:pr("Transition","TransitionCancel"),transitionend:pr("Transition","TransitionEnd")},mr={},gr={};function yr(e){if(mr[e])return mr[e];if(!hr[e])return e;var t,n=hr[e];for(t in n)if(n.hasOwnProperty(t)&&t in gr)return mr[e]=n[t];return e}Bt&&(gr=document.createElement("div").style,"AnimationEvent"in window||(delete hr.animationend.animation,delete hr.animationiteration.animation,delete hr.animationstart.animation),"TransitionEvent"in window||delete hr.transitionend.transition);var vr=yr("animationend"),br=yr("animationiteration"),wr=yr("animationstart"),xr=yr("transitionrun"),Sr=yr("transitionstart"),Cr=yr("transitioncancel"),kr=yr("transitionend"),_r=new Map,Er="abort auxClick beforeToggle 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 jr(e,t){_r.set(e,t),at(t,[e])}Er.push("scrollEnd");var Or="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},Nr=[],Rr=0,Pr=0;function Tr(){for(var e=Rr,t=Pr=Rr=0;t<e;){var n=Nr[t];Nr[t++]=null;var r=Nr[t];Nr[t++]=null;var o=Nr[t];Nr[t++]=null;var a=Nr[t];if(Nr[t++]=null,null!==r&&null!==o){var i=r.pending;null===i?o.next=o:(o.next=i.next,i.next=o),r.pending=o}0!==a&&Ar(n,o,a)}}function Dr(e,t,n,r){Nr[Rr++]=e,Nr[Rr++]=t,Nr[Rr++]=n,Nr[Rr++]=r,Pr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Mr(e,t,n,r){return Dr(e,t,n,r),Fr(e)}function Ir(e,t){return Dr(e,null,null,t),Fr(e)}function Ar(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,a=e.return;null!==a;)a.childLanes|=n,null!==(r=a.alternate)&&(r.childLanes|=n),22===a.tag&&(null===(e=a.stateNode)||1&e._visibility||(o=!0)),e=a,a=a.return;return 3===e.tag?(a=e.stateNode,o&&null!==t&&(o=31-Se(n),null===(r=(e=a.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),a):null}function Fr(e){if(50<Yu)throw Yu=0,qu=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Lr={};function zr(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.refCleanup=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 $r(e,t,n,r){return new zr(e,t,n,r)}function Hr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Vr(e,t){var n=e.alternate;return null===n?((n=$r(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=65011712&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.refCleanup=e.refCleanup,n}function Br(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ur(e,t,n,o,a,i){var s=0;if(o=e,"function"==typeof e)Hr(e)&&(s=1);else if("string"==typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,Y.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case N:return(e=$r(31,n,t,a)).elementType=N,e.lanes=i,e;case m:return Wr(n.children,a,i,t);case g:s=8,a|=24;break;case v:return(e=$r(12,n,t,2|a)).elementType=v,e.lanes=i,e;case k:return(e=$r(13,n,t,a)).elementType=k,e.lanes=i,e;case _:return(e=$r(19,n,t,a)).elementType=_,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case x:s=10;break e;case b:s=9;break e;case S:s=11;break e;case E:s=14;break e;case j:s=16,o=null;break e}s=29,n=Error(r(130,null===e?"null":typeof e,"")),o=null}return(t=$r(s,n,t,a)).elementType=e,t.type=o,t.lanes=i,t}function Wr(e,t,n,r){return(e=$r(7,e,r,t)).lanes=n,e}function Yr(e,t,n){return(e=$r(6,e,null,t)).lanes=n,e}function qr(e){var t=$r(18,null,null,0);return t.stateNode=e,t}function Gr(e,t,n){return(t=$r(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Kr=new WeakMap;function Qr(e,t){if("object"==typeof e&&null!==e){var n=Kr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:oe(t)},Kr.set(e,t),t)}return{value:e,source:t,stack:oe(t)}}var Xr=[],Zr=0,Jr=null,eo=0,to=[],no=0,ro=null,oo=1,ao="";function io(e,t){Xr[Zr++]=eo,Xr[Zr++]=Jr,Jr=e,eo=t}function so(e,t,n){to[no++]=oo,to[no++]=ao,to[no++]=ro,ro=e;var r=oo;e=ao;var o=32-Se(r)-1;r&=~(1<<o),n+=1;var a=32-Se(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,oo=1<<32-Se(t)+o|n<<o|r,ao=a+e}else oo=1<<a|n<<o|r,ao=e}function lo(e){null!==e.return&&(io(e,1),so(e,1,0))}function uo(e){for(;e===Jr;)Jr=Xr[--Zr],Xr[Zr]=null,eo=Xr[--Zr],Xr[Zr]=null;for(;e===ro;)ro=to[--no],to[no]=null,ao=to[--no],to[no]=null,oo=to[--no],to[no]=null}function co(e,t){to[no++]=oo,to[no++]=ao,to[no++]=ro,oo=t.id,ao=t.overflow,ro=e}var fo=null,po=null,ho=!1,mo=null,go=!1,yo=Error(r(519));function vo(e){throw ko(Qr(Error(r(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),yo}function bo(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Be]=e,t[Ue]=r,n){case"dialog":Zc("cancel",t),Zc("close",t);break;case"iframe":case"object":case"embed":Zc("load",t);break;case"video":case"audio":for(n=0;n<Kc.length;n++)Zc(Kc[n],t);break;case"source":Zc("error",t);break;case"img":case"image":case"link":Zc("error",t),Zc("load",t);break;case"details":Zc("toggle",t);break;case"input":Zc("invalid",t),xt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Zc("invalid",t);break;case"textarea":Zc("invalid",t),_t(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||dd(t.textContent,n)?(null!=r.popover&&(Zc("beforetoggle",t),Zc("toggle",t)),null!=r.onScroll&&Zc("scroll",t),null!=r.onScrollEnd&&Zc("scrollend",t),null!=r.onClick&&(t.onclick=Mt),t=!0):t=!1,t||vo(e,!0)}function wo(e){for(fo=e.return;fo;)switch(fo.tag){case 5:case 31:case 13:return void(go=!1);case 27:case 3:return void(go=!0);default:fo=fo.return}}function xo(e){if(e!==fo)return!1;if(!ho)return wo(e),ho=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||xd(e.type,e.memoizedProps)),t=!t),t&&po&&vo(e),wo(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));po=Fd(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));po=Fd(e)}else 27===n?(n=po,Od(e.type)?(e=Ad,Ad=null,po=e):po=n):po=fo?Id(e.stateNode.nextSibling):null;return!0}function So(){po=fo=null,ho=!1}function Co(){var e=mo;return null!==e&&(null===Tu?Tu=e:Tu.push.apply(Tu,e),mo=null),e}function ko(e){null===mo?mo=[e]:mo.push(e)}var _o=H(null),Eo=null,jo=null;function Oo(e,t,n){B(_o,t._currentValue),t._currentValue=n}function No(e){e._currentValue=_o.current,V(_o)}function Ro(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 Po(e,t,n,o){var a=e.child;for(null!==a&&(a.return=e);null!==a;){var i=a.dependencies;if(null!==i){var s=a.child;i=i.firstContext;e:for(;null!==i;){var l=i;i=a;for(var u=0;u<t.length;u++)if(l.context===t[u]){i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),Ro(i.return,n,e),o||(s=null);break e}i=l.next}}else if(18===a.tag){if(null===(s=a.return))throw Error(r(341));s.lanes|=n,null!==(i=s.alternate)&&(i.lanes|=n),Ro(s,n,e),s=null}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===e){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}}function To(e,t,n,o){e=null;for(var a=t,i=!1;null!==a;){if(!i)if(524288&a.flags)i=!0;else if(262144&a.flags)break;if(10===a.tag){var s=a.alternate;if(null===s)throw Error(r(387));if(null!==(s=s.memoizedProps)){var l=a.type;er(a.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(a===K.current){if(null===(s=a.alternate))throw Error(r(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(null!==e?e.push(pf):e=[pf])}a=a.return}null!==e&&Po(t,e,n,o),t.flags|=262144}function Do(e){for(e=e.firstContext;null!==e;){if(!er(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Mo(e){Eo=e,jo=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Io(e){return Fo(Eo,e)}function Ao(e,t){return null===Eo&&Mo(e),Fo(e,t)}function Fo(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===jo){if(null===e)throw Error(r(308));jo=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else jo=jo.next=t;return n}var Lo="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},zo=e.unstable_scheduleCallback,$o=e.unstable_NormalPriority,Ho={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vo(){return{controller:new Lo,data:new Map,refCount:0}}function Bo(e){e.refCount--,0===e.refCount&&zo($o,function(){e.controller.abort()})}var Uo=null,Wo=0,Yo=0,qo=null;function Go(){if(0===--Wo&&null!==Uo){null!==qo&&(qo.status="fulfilled");var e=Uo;Uo=null,Yo=0,qo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Ko=A.S;A.S=function(e,t){Iu=ce(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Uo){var n=Uo=[];Wo=0,Yo=Uc(),qo={status:"pending",value:void 0,then:function(e){n.push(e)}}}Wo++,t.then(Go,Go)}(0,t),null!==Ko&&Ko(e,t)};var Qo=H(null);function Xo(){var e=Qo.current;return null!==e?e:gu.pooledCache}function Zo(e,t){B(Qo,null===t?Qo.current:t.pool)}function Jo(){var e=Xo();return null===e?null:{parent:Ho._currentValue,pool:e}}var ea=Error(r(460)),ta=Error(r(474)),na=Error(r(542)),ra={then:function(){}};function oa(e){return"fulfilled"===(e=e.status)||"rejected"===e}function aa(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Mt,Mt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw ua(e=t.reason),e;default:if("string"==typeof t.status)t.then(Mt,Mt);else{if(null!==(e=gu)&&100<e.shellSuspendCounter)throw Error(r(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw ua(e=t.reason),e}throw sa=t,ea}}function ia(e){try{return(0,e._init)(e._payload)}catch(e){if(null!==e&&"object"==typeof e&&"function"==typeof e.then)throw sa=e,ea;throw e}}var sa=null;function la(){if(null===sa)throw Error(r(459));var e=sa;return sa=null,e}function ua(e){if(e===ea||e===na)throw Error(r(483))}var ca=null,da=0;function fa(e){var t=da;return da+=1,null===ca&&(ca=[]),aa(ca,e,t)}function pa(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function ha(e,t){if(t.$$typeof===d)throw Error(r(525));throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ma(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function a(e,t){return(e=Vr(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|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Yr(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===m?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===j&&ia(o)===t.type)?(pa(t=a(t,n.props),n),t.return=e,t):(pa(t=Ur(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Gr(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=Wr(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||"bigint"==typeof t)return(t=Yr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case p:return pa(n=Ur(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case h:return(t=Gr(t,e.mode,n)).return=e,t;case j:return f(e,t=ia(t),n)}if(I(t)||T(t))return(t=Wr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return f(e,fa(t),n);if(t.$$typeof===x)return f(e,Ao(e,t),n);ha(e,t)}return null}function g(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case p:return n.key===o?u(e,t,n,r):null;case h:return n.key===o?c(e,t,n,r):null;case j:return g(e,t,n=ia(n),r)}if(I(n)||T(n))return null!==o?null:d(e,t,n,r,null);if("function"==typeof n.then)return g(e,t,fa(n),r);if(n.$$typeof===x)return g(e,t,Ao(e,n),r);ha(e,n)}return null}function y(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case p:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case h:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case j:return y(e,t,n,r=ia(r),o)}if(I(r)||T(r))return d(t,e=e.get(n)||null,r,o,null);if("function"==typeof r.then)return y(e,t,n,fa(r),o);if(r.$$typeof===x)return y(e,t,n,Ao(t,r),o);ha(t,r)}return null}function v(l,u,c,d){if("object"==typeof c&&null!==c&&c.type===m&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case p:e:{for(var b=c.key;null!==u;){if(u.key===b){if((b=c.type)===m){if(7===u.tag){n(l,u.sibling),(d=a(u,c.props.children)).return=l,l=d;break e}}else if(u.elementType===b||"object"==typeof b&&null!==b&&b.$$typeof===j&&ia(b)===u.type){n(l,u.sibling),pa(d=a(u,c.props),c),d.return=l,l=d;break e}n(l,u);break}t(l,u),u=u.sibling}c.type===m?((d=Wr(c.props.children,l.mode,d,c.key)).return=l,l=d):(pa(d=Ur(c.type,c.key,c.props,null,l.mode,d),c),d.return=l,l=d)}return s(l);case h:e:{for(b=c.key;null!==u;){if(u.key===b){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){n(l,u.sibling),(d=a(u,c.children||[])).return=l,l=d;break e}n(l,u);break}t(l,u),u=u.sibling}(d=Gr(c,l.mode,d)).return=l,l=d}return s(l);case j:return v(l,u,c=ia(c),d)}if(I(c))return function(r,a,s,l){for(var u=null,c=null,d=a,p=a=0,h=null;null!==d&&p<s.length;p++){d.index>p?(h=d,d=null):h=d.sibling;var m=g(r,d,s[p],l);if(null===m){null===d&&(d=h);break}e&&d&&null===m.alternate&&t(r,d),a=i(m,a,p),null===c?u=m:c.sibling=m,c=m,d=h}if(p===s.length)return n(r,d),ho&&io(r,p),u;if(null===d){for(;p<s.length;p++)null!==(d=f(r,s[p],l))&&(a=i(d,a,p),null===c?u=d:c.sibling=d,c=d);return ho&&io(r,p),u}for(d=o(d);p<s.length;p++)null!==(h=y(d,r,p,s[p],l))&&(e&&null!==h.alternate&&d.delete(null===h.key?p:h.key),a=i(h,a,p),null===c?u=h:c.sibling=h,c=h);return e&&d.forEach(function(e){return t(r,e)}),ho&&io(r,p),u}(l,u,c,d);if(T(c)){if("function"!=typeof(b=T(c)))throw Error(r(150));return function(a,s,l,u){if(null==l)throw Error(r(151));for(var c=null,d=null,p=s,h=s=0,m=null,v=l.next();null!==p&&!v.done;h++,v=l.next()){p.index>h?(m=p,p=null):m=p.sibling;var b=g(a,p,v.value,u);if(null===b){null===p&&(p=m);break}e&&p&&null===b.alternate&&t(a,p),s=i(b,s,h),null===d?c=b:d.sibling=b,d=b,p=m}if(v.done)return n(a,p),ho&&io(a,h),c;if(null===p){for(;!v.done;h++,v=l.next())null!==(v=f(a,v.value,u))&&(s=i(v,s,h),null===d?c=v:d.sibling=v,d=v);return ho&&io(a,h),c}for(p=o(p);!v.done;h++,v=l.next())null!==(v=y(p,a,h,v.value,u))&&(e&&null!==v.alternate&&p.delete(null===v.key?h:v.key),s=i(v,s,h),null===d?c=v:d.sibling=v,d=v);return e&&p.forEach(function(e){return t(a,e)}),ho&&io(a,h),c}(l,u,c=b.call(c),d)}if("function"==typeof c.then)return v(l,u,fa(c),d);if(c.$$typeof===x)return v(l,u,Ao(l,c),d);ha(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(c=""+c,null!==u&&6===u.tag?(n(l,u.sibling),(d=a(u,c)).return=l,l=d):(n(l,u),(d=Yr(c,l.mode,d)).return=l,l=d),s(l)):n(l,u)}return function(e,t,n,r){try{da=0;var o=v(e,t,n,r);return ca=null,o}catch(t){if(t===ea||t===na)throw t;var a=$r(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var ga=ma(!0),ya=ma(!1),va=!1;function ba(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function xa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Sa(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,t=Fr(e),Ar(e,null,n),t}return Dr(e,r,t,n),Fr(e)}function Ca(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ae(e,n)}}function ka(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={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,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,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var _a=!1;function Ea(){if(_a){if(null!==qo)throw qo}}function ja(e,t,n,r){_a=!1;var o=e.updateQueue;va=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===i?a=u:i.next=u,i=l;var d=e.alternate;null!==d&&((s=(d=d.updateQueue).lastBaseUpdate)!==i&&(null===s?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=l))}if(null!==a){var f=o.baseState;for(i=0,d=u=l=null,s=a;;){var p=-536870913&s.lane,h=p!==s.lane;if(h?(vu&p)===p:(r&p)===p){0!==p&&p===Yo&&(_a=!0),null!==d&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var m=e,g=s;p=t;var y=n;switch(g.tag){case 1:if("function"==typeof(m=g.payload)){f=m.call(y,f,p);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=g.payload)?m.call(y,f,p):m))break e;f=c({},f,p);break e;case 2:va=!0}}null!==(p=s.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=o.callbacks)?o.callbacks=[p]:h.push(p))}else h={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(u=d=h,l=f):d=d.next=h,i|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(h=s).next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}null===d&&(l=f),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=d,null===a&&(o.shared.lanes=0),Eu|=i,e.lanes=i,e.memoizedState=f}}function Oa(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function Na(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Oa(n[e],t)}var Ra=H(null),Pa=H(0);function Ta(e,t){B(Pa,e=ku),B(Ra,t),ku=e|t.baseLanes}function Da(){B(Pa,ku),B(Ra,Ra.current)}function Ma(){ku=Pa.current,V(Ra),V(Pa)}var Ia=H(null),Aa=null;function Fa(e){var t=e.alternate;B(Va,1&Va.current),B(Ia,e),null===Aa&&(null===t||null!==Ra.current||null!==t.memoizedState)&&(Aa=e)}function La(e){B(Va,Va.current),B(Ia,e),null===Aa&&(Aa=e)}function za(e){22===e.tag?(B(Va,Va.current),B(Ia,e),null===Aa&&(Aa=e)):$a()}function $a(){B(Va,Va.current),B(Ia,Ia.current)}function Ha(e){V(Ia),Aa===e&&(Aa=null),V(Va)}var Va=H(0);function Ba(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Dd(n)||Md(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(128&t.flags)return t;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 Ua=0,Wa=null,Ya=null,qa=null,Ga=!1,Ka=!1,Qa=!1,Xa=0,Za=0,Ja=null,ei=0;function ti(){throw Error(r(321))}function ni(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!er(e[n],t[n]))return!1;return!0}function ri(e,t,n,r,o,a){return Ua=a,Wa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=null===e||null===e.memoizedState?vs:bs,Qa=!1,a=n(r,o),Qa=!1,Ka&&(a=ai(t,n,r,o)),oi(e),a}function oi(e){A.H=ys;var t=null!==Ya&&null!==Ya.next;if(Ua=0,qa=Ya=Wa=null,Ga=!1,Za=0,Ja=null,t)throw Error(r(300));null===e||Is||null!==(e=e.dependencies)&&Do(e)&&(Is=!0)}function ai(e,t,n,o){Wa=e;var a=0;do{if(Ka&&(Ja=null),Za=0,Ka=!1,25<=a)throw Error(r(301));if(a+=1,qa=Ya=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}A.H=ws,i=t(n,o)}while(Ka);return i}function ii(){var e=A.H,t=e.useState()[0];return t="function"==typeof t.then?fi(t):t,e=e.useState()[0],(null!==Ya?Ya.memoizedState:null)!==e&&(Wa.flags|=1024),t}function si(){var e=0!==Xa;return Xa=0,e}function li(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ui(e){if(Ga){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Ga=!1}Ua=0,qa=Ya=Wa=null,Ka=!1,Za=Xa=0,Ja=null}function ci(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===qa?Wa.memoizedState=qa=e:qa=qa.next=e,qa}function di(){if(null===Ya){var e=Wa.alternate;e=null!==e?e.memoizedState:null}else e=Ya.next;var t=null===qa?Wa.memoizedState:qa.next;if(null!==t)qa=t,Ya=e;else{if(null===e){if(null===Wa.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(Ya=e).memoizedState,baseState:Ya.baseState,baseQueue:Ya.baseQueue,queue:Ya.queue,next:null},null===qa?Wa.memoizedState=qa=e:qa=qa.next=e}return qa}function fi(e){var t=Za;return Za+=1,null===Ja&&(Ja=[]),e=aa(Ja,e,t),t=Wa,null===(null===qa?t.memoizedState:qa.next)&&(t=t.alternate,A.H=null===t||null===t.memoizedState?vs:bs),e}function pi(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return fi(e);if(e.$$typeof===x)return Io(e)}throw Error(r(438,String(e)))}function hi(e){var t=null,n=Wa.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Wa.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Wa.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=R;return t.index++,n}function mi(e,t){return"function"==typeof t?t(e):t}function gi(e){return yi(di(),Ya,e)}function yi(e,t,n){var o=e.queue;if(null===o)throw Error(r(311));o.lastRenderedReducer=n;var a=e.baseQueue,i=o.pending;if(null!==i){if(null!==a){var s=a.next;a.next=i.next,i.next=s}t.baseQueue=a=i,o.pending=null}if(i=e.baseState,null===a)e.memoizedState=i;else{var l=s=null,u=null,c=t=a.next,d=!1;do{var f=-536870913&c.lane;if(f!==c.lane?(vu&f)===f:(Ua&f)===f){var p=c.revertLane;if(0===p)null!==u&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),f===Yo&&(d=!0);else{if((Ua&p)===p){c=c.next,p===Yo&&(d=!0);continue}f={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=f,s=i):u=u.next=f,Wa.lanes|=p,Eu|=p}f=c.action,Qa&&n(i,f),i=c.hasEagerState?c.eagerState:n(i,f)}else p={lane:f,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=p,s=i):u=u.next=p,Wa.lanes|=f,Eu|=f;c=c.next}while(null!==c&&c!==t);if(null===u?s=i:u.next=l,!er(i,e.memoizedState)&&(Is=!0,d&&null!==(n=qo)))throw n;e.memoizedState=i,e.baseState=s,e.baseQueue=u,o.lastRenderedState=i}return null===a&&(o.lanes=0),[e.memoizedState,o.dispatch]}function vi(e){var t=di(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var s=a=a.next;do{i=e(i,s.action),s=s.next}while(s!==a);er(i,t.memoizedState)||(Is=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,o]}function bi(e,t,n){var o=Wa,a=di(),i=ho;if(i){if(void 0===n)throw Error(r(407));n=n()}else n=t();var s=!er((Ya||a).memoizedState,n);if(s&&(a.memoizedState=n,Is=!0),a=a.queue,Ui(Si.bind(null,o,a,e),[e]),a.getSnapshot!==t||s||null!==qa&&1&qa.memoizedState.tag){if(o.flags|=2048,zi(9,{destroy:void 0},xi.bind(null,o,a,n,t),null),null===gu)throw Error(r(349));i||127&Ua||wi(o,t,n)}return n}function wi(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Wa.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Wa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function xi(e,t,n,r){t.value=n,t.getSnapshot=r,Ci(t)&&ki(e)}function Si(e,t,n){return n(function(){Ci(t)&&ki(e)})}function Ci(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!er(e,n)}catch(e){return!0}}function ki(e){var t=Ir(e,2);null!==t&&Qu(t,e,2)}function _i(e){var t=ci();if("function"==typeof e){var n=e;if(e=n(),Qa){xe(!0);try{n()}finally{xe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mi,lastRenderedState:e},t}function Ei(e,t,n,r){return e.baseState=n,yi(e,Ya,"function"==typeof r?r:mi)}function ji(e,t,n,o,a){if(hs(e))throw Error(r(485));if(null!==(e=t.action)){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==A.T?n(!0):i.isTransition=!1,o(i),null===(n=t.pending)?(i.next=t.pending=i,Oi(t,i)):(i.next=n.next,t.pending=n.next=i)}}function Oi(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var a=A.T,i={};A.T=i;try{var s=n(o,r),l=A.S;null!==l&&l(i,s),Ni(e,t,s)}catch(n){Pi(e,t,n)}finally{null!==a&&null!==i.types&&(a.types=i.types),A.T=a}}else try{Ni(e,t,a=n(o,r))}catch(n){Pi(e,t,n)}}function Ni(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Ri(e,t,n)},function(n){return Pi(e,t,n)}):Ri(e,t,n)}function Ri(e,t,n){t.status="fulfilled",t.value=n,Ti(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Oi(e,n)))}function Pi(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Ti(t),t=t.next}while(t!==r)}e.action=null}function Ti(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Di(e,t){return t}function Mi(e,t){if(ho){var n=gu.formState;if(null!==n){e:{var r=Wa;if(ho){if(po){t:{for(var o=po,a=go;8!==o.nodeType;){if(!a){o=null;break t}if(null===(o=Id(o.nextSibling))){o=null;break t}}o="F!"===(a=o.data)||"F"===a?o:null}if(o){po=Id(o.nextSibling),r="F!"===o.data;break e}}vo(r)}r=!1}r&&(t=n[0])}}return(n=ci()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Di,lastRenderedState:t},n.queue=r,n=ds.bind(null,Wa,r),r.dispatch=n,r=_i(!1),a=ps.bind(null,Wa,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=ci()).queue=o,n=ji.bind(null,Wa,o,a,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ii(e){return Ai(di(),Ya,e)}function Ai(e,t,n){if(t=yi(e,t,Di)[0],e=gi(mi)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=fi(t)}catch(e){if(e===ea)throw na;throw e}else r=t;var o=(t=di()).queue,a=o.dispatch;return n!==t.memoizedState&&(Wa.flags|=2048,zi(9,{destroy:void 0},Fi.bind(null,o,n),null)),[r,a,e]}function Fi(e,t){e.action=t}function Li(e){var t=di(),n=Ya;if(null!==n)return Ai(t,n,e);di(),t=t.memoizedState;var r=(n=di()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function zi(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Wa.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Wa.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function $i(){return di().memoizedState}function Hi(e,t,n,r){var o=ci();Wa.flags|=e,o.memoizedState=zi(1|t,{destroy:void 0},n,void 0===r?null:r)}function Vi(e,t,n,r){var o=di();r=void 0===r?null:r;var a=o.memoizedState.inst;null!==Ya&&null!==r&&ni(r,Ya.memoizedState.deps)?o.memoizedState=zi(t,a,n,r):(Wa.flags|=e,o.memoizedState=zi(1|t,a,n,r))}function Bi(e,t){Hi(8390656,8,e,t)}function Ui(e,t){Vi(2048,8,e,t)}function Wi(e){var t=di().memoizedState;return function(e){Wa.flags|=4;var t=Wa.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},Wa.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(2&mu)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Yi(e,t){return Vi(4,2,e,t)}function qi(e,t){return Vi(4,4,e,t)}function Gi(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Ki(e,t,n){n=null!=n?n.concat([e]):null,Vi(4,4,Gi.bind(null,t,e),n)}function Qi(){}function Xi(e,t){var n=di();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&ni(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Zi(e,t){var n=di();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&ni(t,r[1]))return r[0];if(r=e(),Qa){xe(!0);try{e()}finally{xe(!1)}}return n.memoizedState=[r,t],r}function Ji(e,t,n){return void 0===n||1073741824&Ua&&!(261930&vu)?e.memoizedState=t:(e.memoizedState=n,e=Ku(),Wa.lanes|=e,Eu|=e,n)}function es(e,t,n,r){return er(n,t)?n:null!==Ra.current?(e=Ji(e,n,r),er(e,t)||(Is=!0),e):42&Ua&&(!(1073741824&Ua)||261930&vu)?(e=Ku(),Wa.lanes|=e,Eu|=e,t):(Is=!0,e.memoizedState=n)}function ts(e,t,n,r,o){var a=F.p;F.p=0!==a&&8>a?a:8;var i,s,l,u=A.T,c={};A.T=c,ps(e,!1,t,n);try{var d=o(),f=A.S;if(null!==f&&f(c,d),null!==d&&"object"==typeof d&&"function"==typeof d.then){var p=(i=r,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},d.then(function(){l.status="fulfilled",l.value=i;for(var e=0;e<s.length;e++)(0,s[e])(i)},function(e){for(l.status="rejected",l.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),l);fs(e,t,p,Gu())}else fs(e,t,r,Gu())}catch(n){fs(e,t,{then:function(){},status:"rejected",reason:n},Gu())}finally{F.p=a,null!==u&&null!==c.types&&(u.types=c.types),A.T=u}}function ns(){}function rs(e,t,n,o){if(5!==e.tag)throw Error(r(476));var a=os(e).queue;ts(e,a,t,L,null===n?ns:function(){return as(e),n(o)})}function os(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:L,baseState:L,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mi,lastRenderedState:L},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mi,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function as(e){var t=os(e);null===t.next&&(t=e.alternate.memoizedState),fs(e,t.next.queue,{},Gu())}function is(){return Io(pf)}function ss(){return di().memoizedState}function ls(){return di().memoizedState}function us(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Gu(),r=Sa(t,e=xa(n),n);return null!==r&&(Qu(r,t,n),Ca(r,t,n)),t={cache:Vo()},void(e.payload=t)}t=t.return}}function cs(e,t,n){var r=Gu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},hs(e)?ms(t,n):null!==(n=Mr(e,t,n,r))&&(Qu(n,e,r),gs(n,t,r))}function ds(e,t,n){fs(e,t,n,Gu())}function fs(e,t,n,r){var o={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(hs(e))ms(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,er(s,i))return Dr(e,t,o,0),null===gu&&Tr(),!1}catch(e){}if(null!==(n=Mr(e,t,o,r)))return Qu(n,e,r),gs(n,t,r),!0}return!1}function ps(e,t,n,o){if(o={lane:2,revertLane:Uc(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},hs(e)){if(t)throw Error(r(479))}else null!==(t=Mr(e,n,o,2))&&Qu(t,e,2)}function hs(e){var t=e.alternate;return e===Wa||null!==t&&t===Wa}function ms(e,t){Ka=Ga=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gs(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ae(e,n)}}var ys={readContext:Io,use:pi,useCallback:ti,useContext:ti,useEffect:ti,useImperativeHandle:ti,useLayoutEffect:ti,useInsertionEffect:ti,useMemo:ti,useReducer:ti,useRef:ti,useState:ti,useDebugValue:ti,useDeferredValue:ti,useTransition:ti,useSyncExternalStore:ti,useId:ti,useHostTransitionStatus:ti,useFormState:ti,useActionState:ti,useOptimistic:ti,useMemoCache:ti,useCacheRefresh:ti};ys.useEffectEvent=ti;var vs={readContext:Io,use:pi,useCallback:function(e,t){return ci().memoizedState=[e,void 0===t?null:t],e},useContext:Io,useEffect:Bi,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,Hi(4194308,4,Gi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hi(4194308,4,e,t)},useInsertionEffect:function(e,t){Hi(4,2,e,t)},useMemo:function(e,t){var n=ci();t=void 0===t?null:t;var r=e();if(Qa){xe(!0);try{e()}finally{xe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ci();if(void 0!==n){var o=n(t);if(Qa){xe(!0);try{n(t)}finally{xe(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=cs.bind(null,Wa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ci().memoizedState=e},useState:function(e){var t=(e=_i(e)).queue,n=ds.bind(null,Wa,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Qi,useDeferredValue:function(e,t){return Ji(ci(),e,t)},useTransition:function(){var e=_i(!1);return e=ts.bind(null,Wa,e.queue,!0,!1),ci().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var o=Wa,a=ci();if(ho){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===gu)throw Error(r(349));127&vu||wi(o,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Bi(Si.bind(null,o,i,e),[e]),o.flags|=2048,zi(9,{destroy:void 0},xi.bind(null,o,i,n,t),null),n},useId:function(){var e=ci(),t=gu.identifierPrefix;if(ho){var n=ao;t="_"+t+"R_"+(n=(oo&~(1<<32-Se(oo)-1)).toString(32)+n),0<(n=Xa++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=ei++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:is,useFormState:Mi,useActionState:Mi,useOptimistic:function(e){var t=ci();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ps.bind(null,Wa,!0,n),n.dispatch=t,[e,t]},useMemoCache:hi,useCacheRefresh:function(){return ci().memoizedState=us.bind(null,Wa)},useEffectEvent:function(e){var t=ci(),n={impl:e};return t.memoizedState=n,function(){if(2&mu)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},bs={readContext:Io,use:pi,useCallback:Xi,useContext:Io,useEffect:Ui,useImperativeHandle:Ki,useInsertionEffect:Yi,useLayoutEffect:qi,useMemo:Zi,useReducer:gi,useRef:$i,useState:function(){return gi(mi)},useDebugValue:Qi,useDeferredValue:function(e,t){return es(di(),Ya.memoizedState,e,t)},useTransition:function(){var e=gi(mi)[0],t=di().memoizedState;return["boolean"==typeof e?e:fi(e),t]},useSyncExternalStore:bi,useId:ss,useHostTransitionStatus:is,useFormState:Ii,useActionState:Ii,useOptimistic:function(e,t){return Ei(di(),0,e,t)},useMemoCache:hi,useCacheRefresh:ls};bs.useEffectEvent=Wi;var ws={readContext:Io,use:pi,useCallback:Xi,useContext:Io,useEffect:Ui,useImperativeHandle:Ki,useInsertionEffect:Yi,useLayoutEffect:qi,useMemo:Zi,useReducer:vi,useRef:$i,useState:function(){return vi(mi)},useDebugValue:Qi,useDeferredValue:function(e,t){var n=di();return null===Ya?Ji(n,e,t):es(n,Ya.memoizedState,e,t)},useTransition:function(){var e=vi(mi)[0],t=di().memoizedState;return["boolean"==typeof e?e:fi(e),t]},useSyncExternalStore:bi,useId:ss,useHostTransitionStatus:is,useFormState:Li,useActionState:Li,useOptimistic:function(e,t){var n=di();return null!==Ya?Ei(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:hi,useCacheRefresh:ls};function xs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:c({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}ws.useEffectEvent=Wi;var Ss={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Gu(),o=xa(r);o.payload=t,null!=n&&(o.callback=n),null!==(t=Sa(e,o,r))&&(Qu(t,e,r),Ca(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Gu(),o=xa(r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Sa(e,o,r))&&(Qu(t,e,r),Ca(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gu(),r=xa(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=Sa(e,r,n))&&(Qu(t,e,n),Ca(t,e,n))}};function Cs(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!tr(n,r)||!tr(o,a))}function ks(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&&Ss.enqueueReplaceState(t,t.state,null)}function _s(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=c({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}function Es(e){Or(e)}function js(e){console.error(e)}function Os(e){Or(e)}function Ns(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Rs(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ps(e,t,n){return(n=xa(n)).tag=3,n.payload={element:null},n.callback=function(){Ns(e,t)},n}function Ts(e){return(e=xa(e)).tag=3,e}function Ds(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"==typeof o){var a=r.value;e.payload=function(){return o(a)},e.callback=function(){Rs(t,n,r)}}var i=n.stateNode;null!==i&&"function"==typeof i.componentDidCatch&&(e.callback=function(){Rs(t,n,r),"function"!=typeof o&&(null===Lu?Lu=new Set([this]):Lu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Ms=Error(r(461)),Is=!1;function As(e,t,n,r){t.child=null===e?ya(t,null,n,r):ga(t,e.child,n,r)}function Fs(e,t,n,r,o){n=n.render;var a=t.ref;if("ref"in r){var i={};for(var s in r)"ref"!==s&&(i[s]=r[s])}else i=r;return Mo(t),r=ri(e,t,n,i,a,o),s=si(),null===e||Is?(ho&&s&&lo(t),t.flags|=1,As(e,t,r,o),t.child):(li(e,t,o),il(e,t,o))}function Ls(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Hr(a)||void 0!==a.defaultProps||null!==n.compare?((e=Ur(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,zs(e,t,a,r,o))}if(a=e.child,!sl(e,o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:tr)(i,r)&&e.ref===t.ref)return il(e,t,o)}return t.flags|=1,(e=Vr(a,r)).ref=t.ref,e.return=t,t.child=e}function zs(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(tr(a,r)&&e.ref===t.ref){if(Is=!1,t.pendingProps=r=a,!sl(e,o))return t.lanes=e.lanes,il(e,t,o);131072&e.flags&&(Is=!0)}}return Ys(e,t,n,r,o)}function $s(e,t,n,r){var o=r.children,a=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(128&t.flags){if(a=null!==a?a.baseLanes|n:n,null!==e){for(r=t.child=e.child,o=0;null!==r;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~a}else r=0,t.child=null;return Vs(e,t,a,n,r)}if(!(536870912&n))return r=t.lanes=536870912,Vs(e,t,null!==a?a.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Zo(0,null!==a?a.cachePool:null),null!==a?Ta(t,a):Da(),za(t)}else null!==a?(Zo(0,a.cachePool),Ta(t,a),$a(),t.memoizedState=null):(null!==e&&Zo(0,null),Da(),$a());return As(e,t,o,n),t.child}function Hs(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Vs(e,t,n,r,o){var a=Xo();return a=null===a?null:{parent:Ho._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},null!==e&&Zo(0,null),Da(),za(t),null!==e&&To(e,t,r,!0),t.childLanes=o,null}function Bs(e,t){return(t=tl({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function Us(e,t,n){return ga(t,e.child,null,n),(e=Bs(t,t.pendingProps)).flags|=2,Ha(t),t.memoizedState=null,e}function Ws(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(r(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Ys(e,t,n,r,o){return Mo(t),n=ri(e,t,n,r,void 0,o),r=si(),null===e||Is?(ho&&r&&lo(t),t.flags|=1,As(e,t,n,o),t.child):(li(e,t,o),il(e,t,o))}function qs(e,t,n,r,o,a){return Mo(t),t.updateQueue=null,n=ai(t,r,n,o),oi(e),r=si(),null===e||Is?(ho&&r&&lo(t),t.flags|=1,As(e,t,n,a),t.child):(li(e,t,a),il(e,t,a))}function Gs(e,t,n,r,o){if(Mo(t),null===t.stateNode){var a=Lr,i=n.contextType;"object"==typeof i&&null!==i&&(a=Io(i)),a=new n(r,a),t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,a.updater=Ss,t.stateNode=a,a._reactInternals=t,(a=t.stateNode).props=r,a.state=t.memoizedState,a.refs={},ba(t),i=n.contextType,a.context="object"==typeof i&&null!==i?Io(i):Lr,a.state=t.memoizedState,"function"==typeof(i=n.getDerivedStateFromProps)&&(xs(t,n,i,r),a.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(i=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),i!==a.state&&Ss.enqueueReplaceState(a,a.state,null),ja(t,r,a,o),Ea(),a.state=t.memoizedState),"function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){a=t.stateNode;var s=t.memoizedProps,l=_s(n,s);a.props=l;var u=a.context,c=n.contextType;i=Lr,"object"==typeof c&&null!==c&&(i=Io(c));var d=n.getDerivedStateFromProps;c="function"==typeof d||"function"==typeof a.getSnapshotBeforeUpdate,s=t.pendingProps!==s,c||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s||u!==i)&&ks(t,a,r,i),va=!1;var f=t.memoizedState;a.state=f,ja(t,r,a,o),Ea(),u=t.memoizedState,s||f!==u||va?("function"==typeof d&&(xs(t,n,d,r),u=t.memoizedState),(l=va||Cs(t,n,l,r,f,u,i))?(c||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=i,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,wa(e,t),c=_s(n,i=t.memoizedProps),a.props=c,d=t.pendingProps,f=a.context,u=n.contextType,l=Lr,"object"==typeof u&&null!==u&&(l=Io(u)),(u="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(i!==d||f!==l)&&ks(t,a,r,l),va=!1,f=t.memoizedState,a.state=f,ja(t,r,a,o),Ea();var p=t.memoizedState;i!==d||f!==p||va||null!==e&&null!==e.dependencies&&Do(e.dependencies)?("function"==typeof s&&(xs(t,n,s,r),p=t.memoizedState),(c=va||Cs(t,n,c,r,f,p,l)||null!==e&&null!==e.dependencies&&Do(e.dependencies))?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Ws(e,t),r=!!(128&t.flags),a||r?(a=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:a.render(),t.flags|=1,null!==e&&r?(t.child=ga(t,e.child,null,o),t.child=ga(t,null,n,o)):As(e,t,n,o),t.memoizedState=a.state,e=t.child):e=il(e,t,o),e}function Ks(e,t,n,r){return So(),t.flags|=256,As(e,t,n,r),t.child}var Qs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xs(e){return{baseLanes:e,cachePool:Jo()}}function Zs(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Nu),e}function Js(e,t,n){var o,a=t.pendingProps,i=!1,s=!!(128&t.flags);if((o=s)||(o=(null===e||null!==e.memoizedState)&&!!(2&Va.current)),o&&(i=!0,t.flags&=-129),o=!!(32&t.flags),t.flags&=-33,null===e){if(ho){if(i?Fa(t):$a(),(e=po)?null!==(e=null!==(e=Td(e,go))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:ao}:null,retryLane:536870912,hydrationErrors:null},(n=qr(e)).return=t,t.child=n,fo=t,po=null):e=null,null===e)throw vo(t);return Md(e)?t.lanes=32:t.lanes=536870912,null}var l=a.children;return a=a.fallback,i?($a(),l=tl({mode:"hidden",children:l},i=t.mode),a=Wr(a,i,n,null),l.return=t,a.return=t,l.sibling=a,t.child=l,(a=t.child).memoizedState=Xs(n),a.childLanes=Zs(e,o,n),t.memoizedState=Qs,Hs(null,a)):(Fa(t),el(t,l))}var u=e.memoizedState;if(null!==u&&null!==(l=u.dehydrated)){if(s)256&t.flags?(Fa(t),t.flags&=-257,t=nl(e,t,n)):null!==t.memoizedState?($a(),t.child=e.child,t.flags|=128,t=null):($a(),l=a.fallback,i=t.mode,a=tl({mode:"visible",children:a.children},i),(l=Wr(l,i,n,null)).flags|=2,a.return=t,l.return=t,a.sibling=l,t.child=a,ga(t,e.child,null,n),(a=t.child).memoizedState=Xs(n),a.childLanes=Zs(e,o,n),t.memoizedState=Qs,t=Hs(null,a));else if(Fa(t),Md(l)){if(o=l.nextSibling&&l.nextSibling.dataset)var c=o.dgst;o=c,(a=Error(r(419))).stack="",a.digest=o,ko({value:a,source:null,stack:null}),t=nl(e,t,n)}else if(Is||To(e,t,n,!1),o=0!==(n&e.childLanes),Is||o){if(null!==(o=gu)&&(0!==(a=Fe(o,n))&&a!==u.retryLane))throw u.retryLane=a,Ir(e,a),Qu(o,e,a),Ms;Dd(l)||lc(),t=nl(e,t,n)}else Dd(l)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,po=Id(l.nextSibling),fo=t,ho=!0,mo=null,go=!1,null!==e&&co(t,e),(t=el(t,a.children)).flags|=4096);return t}return i?($a(),l=a.fallback,i=t.mode,c=(u=e.child).sibling,(a=Vr(u,{mode:"hidden",children:a.children})).subtreeFlags=65011712&u.subtreeFlags,null!==c?l=Vr(c,l):(l=Wr(l,i,n,null)).flags|=2,l.return=t,a.return=t,a.sibling=l,t.child=a,Hs(null,a),a=t.child,null===(l=e.child.memoizedState)?l=Xs(n):(null!==(i=l.cachePool)?(u=Ho._currentValue,i=i.parent!==u?{parent:u,pool:u}:i):i=Jo(),l={baseLanes:l.baseLanes|n,cachePool:i}),a.memoizedState=l,a.childLanes=Zs(e,o,n),t.memoizedState=Qs,Hs(e.child,a)):(Fa(t),e=(n=e.child).sibling,(n=Vr(n,{mode:"visible",children:a.children})).return=t,n.sibling=null,null!==e&&(null===(o=t.deletions)?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function el(e,t){return(t=tl({mode:"visible",children:t},e.mode)).return=e,e.child=t}function tl(e,t){return(e=$r(22,e,null,t)).lanes=0,e}function nl(e,t,n){return ga(t,e.child,null,n),(e=el(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function rl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ro(e.return,t,n)}function ol(e,t,n,r,o,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,treeForkCount:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o,i.treeForkCount=a)}function al(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;r=r.children;var i=Va.current,s=!!(2&i);if(s?(i=1&i|2,t.flags|=128):i&=1,B(Va,i),As(e,t,r,n),r=ho?eo:0,!s&&null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&rl(e,n,t);else if(19===e.tag)rl(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}switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Ba(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ol(t,!1,o,n,a,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Ba(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ol(t,!0,n,null,a,r);break;case"together":ol(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function il(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Eu|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(To(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=Vr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Vr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function sl(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Do(e))}function ll(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Is=!0;else{if(!(sl(e,n)||128&t.flags))return Is=!1,function(e,t,n){switch(t.tag){case 3:Q(t,t.stateNode.containerInfo),Oo(0,Ho,e.memoizedState.cache),So();break;case 27:case 5:Z(t);break;case 4:Q(t,t.stateNode.containerInfo);break;case 10:Oo(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,La(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Fa(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Js(e,t,n):(Fa(t),null!==(e=il(e,t,n))?e.sibling:null);Fa(t);break;case 19:var o=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(To(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return al(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),B(Va,Va.current),r)break;return null;case 22:return t.lanes=0,$s(e,t,n,t.pendingProps);case 24:Oo(0,Ho,e.memoizedState.cache)}return il(e,t,n)}(e,t,n);Is=!!(131072&e.flags)}else Is=!1,ho&&1048576&t.flags&&so(t,eo,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=ia(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var a=e.$$typeof;if(a===S){t.tag=11,t=Fs(null,t,e,o,n);break e}if(a===E){t.tag=14,t=Ls(null,t,e,o,n);break e}}throw t=M(e)||e,Error(r(306,t,""))}Hr(e)?(o=_s(e,o),t.tag=1,t=Gs(null,t,e,o,n)):(t.tag=0,t=Ys(null,t,e,o,n))}return t;case 0:return Ys(e,t,t.type,t.pendingProps,n);case 1:return Gs(e,t,o=t.type,a=_s(o,t.pendingProps),n);case 3:e:{if(Q(t,t.stateNode.containerInfo),null===e)throw Error(r(387));o=t.pendingProps;var i=t.memoizedState;a=i.element,wa(e,t),ja(t,o,null,n);var s=t.memoizedState;if(o=s.cache,Oo(0,Ho,o),o!==i.cache&&Po(t,[Ho],n,!0),Ea(),o=s.element,i.isDehydrated){if(i={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Ks(e,t,o,n);break e}if(o!==a){ko(a=Qr(Error(r(424)),t)),t=Ks(e,t,o,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(po=Id(e.firstChild),fo=t,ho=!0,mo=null,go=!0,n=ya(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(So(),o===a){t=il(e,t,n);break e}As(e,t,o,n)}t=t.child}return t;case 26:return Ws(e,t),null===e?(n=qd(t.type,null,t.pendingProps,null))?t.memoizedState=n:ho||(n=t.type,e=t.pendingProps,(o=vd(G.current).createElement(n))[Be]=t,o[Ue]=e,hd(o,n,e),nt(o),t.stateNode=o):t.memoizedState=qd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Z(t),null===e&&ho&&(o=t.stateNode=zd(t.type,t.pendingProps,G.current),fo=t,go=!0,a=po,Od(t.type)?(Ad=a,po=Id(o.firstChild)):po=a),As(e,t,t.pendingProps.children,n),Ws(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&ho&&((a=o=po)&&(null!==(o=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Qe])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(a=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(a!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((a=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var a=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===a)return e}if(null===(e=Id(e.nextSibling)))break}return null}(o,t.type,t.pendingProps,go))?(t.stateNode=o,fo=t,po=Id(o.firstChild),go=!1,a=!0):a=!1),a||vo(t)),Z(t),a=t.type,i=t.pendingProps,s=null!==e?e.memoizedProps:null,o=i.children,xd(a,i)?o=null:null!==s&&xd(a,s)&&(t.flags|=32),null!==t.memoizedState&&(a=ri(e,t,ii,null,null,n),pf._currentValue=a),Ws(e,t),As(e,t,o,n),t.child;case 6:return null===e&&ho&&((e=n=po)&&(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Id(e.nextSibling)))return null}return e}(n,t.pendingProps,go),null!==n?(t.stateNode=n,fo=t,po=null,e=!0):e=!1),e||vo(t)),null;case 13:return Js(e,t,n);case 4:return Q(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=ga(t,null,o,n):As(e,t,o,n),t.child;case 11:return Fs(e,t,t.type,t.pendingProps,n);case 7:return As(e,t,t.pendingProps,n),t.child;case 8:case 12:return As(e,t,t.pendingProps.children,n),t.child;case 10:return o=t.pendingProps,Oo(0,t.type,o.value),As(e,t,o.children,n),t.child;case 9:return a=t.type._context,o=t.pendingProps.children,Mo(t),o=o(a=Io(a)),t.flags|=1,As(e,t,o,n),t.child;case 14:return Ls(e,t,t.type,t.pendingProps,n);case 15:return zs(e,t,t.type,t.pendingProps,n);case 19:return al(e,t,n);case 31:return function(e,t,n){var o=t.pendingProps,a=!!(128&t.flags);if(t.flags&=-129,null===e){if(ho){if("hidden"===o.mode)return e=Bs(t,o),t.lanes=536870912,Hs(null,e);if(La(t),(e=po)?null!==(e=null!==(e=Td(e,go))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:ao}:null,retryLane:536870912,hydrationErrors:null},(n=qr(e)).return=t,t.child=n,fo=t,po=null):e=null,null===e)throw vo(t);return t.lanes=536870912,null}return Bs(t,o)}var i=e.memoizedState;if(null!==i){var s=i.dehydrated;if(La(t),a)if(256&t.flags)t.flags&=-257,t=Us(e,t,n);else{if(null===t.memoizedState)throw Error(r(558));t.child=e.child,t.flags|=128,t=null}else if(Is||To(e,t,n,!1),a=0!==(n&e.childLanes),Is||a){if(null!==(o=gu)&&0!==(s=Fe(o,n))&&s!==i.retryLane)throw i.retryLane=s,Ir(e,s),Qu(o,e,s),Ms;lc(),t=Us(e,t,n)}else e=i.treeContext,po=Id(s.nextSibling),fo=t,ho=!0,mo=null,go=!1,null!==e&&co(t,e),(t=Bs(t,o)).flags|=4096;return t}return(e=Vr(e.child,{mode:o.mode,children:o.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return $s(e,t,n,t.pendingProps);case 24:return Mo(t),o=Io(Ho),null===e?(null===(a=Xo())&&(a=gu,i=Vo(),a.pooledCache=i,i.refCount++,null!==i&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:o,cache:a},ba(t),Oo(0,Ho,a)):(0!==(e.lanes&n)&&(wa(e,t),ja(t,null,null,n),Ea()),a=e.memoizedState,i=t.memoizedState,a.parent!==o?(a={parent:o,cache:o},t.memoizedState=a,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=a),Oo(0,Ho,o)):(o=i.cache,Oo(0,Ho,o),o!==a.cache&&Po(t,[Ho],n,!0))),As(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function ul(e){e.flags|=4}function cl(e,t,n,r,o){if((t=!!(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&o)===o)if(e.stateNode.complete)e.flags|=8192;else{if(!ac())throw sa=ra,ta;e.flags|=8192}}else e.flags&=-16777217}function dl(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!sf(t)){if(!ac())throw sa=ra,ta;e.flags|=8192}}function fl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Te():536870912,e.lanes|=t,Ru|=t)}function pl(e,t){if(!ho)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 hl(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|=65011712&o.subtreeFlags,r|=65011712&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 ml(e,t,n){var o=t.pendingProps;switch(uo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return hl(t),null;case 3:return n=t.stateNode,o=null,null!==e&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),No(Ho),X(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(xo(t)?ul(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,Co())),hl(t),null;case 26:var a=t.type,i=t.memoizedState;return null===e?(ul(t),null!==i?(hl(t),dl(t,i)):(hl(t),cl(t,a,0,0,n))):i?i!==e.memoizedState?(ul(t),hl(t),dl(t,i)):(hl(t),t.flags&=-16777217):((e=e.memoizedProps)!==o&&ul(t),hl(t),cl(t,a,0,0,n)),null;case 27:if(J(t),n=G.current,a=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&ul(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return hl(t),null}e=Y.current,xo(t)?bo(t):(e=zd(a,o,n),t.stateNode=e,ul(t))}return hl(t),null;case 5:if(J(t),a=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&ul(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return hl(t),null}if(i=Y.current,xo(t))bo(t);else{var s=vd(G.current);switch(i){case 1:i=s.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=s.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":(i=s.createElement("div")).innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i="string"==typeof o.is?s.createElement("select",{is:o.is}):s.createElement("select"),o.multiple?i.multiple=!0:o.size&&(i.size=o.size);break;default:i="string"==typeof o.is?s.createElement(a,{is:o.is}):s.createElement(a)}}i[Be]=t,i[Ue]=o;e:for(s=t.child;null!==s;){if(5===s.tag||6===s.tag)i.appendChild(s.stateNode);else if(4!==s.tag&&27!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;null===s.sibling;){if(null===s.return||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=i;e:switch(hd(i,a,o),a){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&ul(t)}}return hl(t),cl(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==o&&ul(t);else{if("string"!=typeof o&&null===t.stateNode)throw Error(r(166));if(e=G.current,xo(t)){if(e=t.stateNode,n=t.memoizedProps,o=null,null!==(a=fo))switch(a.tag){case 27:case 5:o=a.memoizedProps}e[Be]=t,(e=!!(e.nodeValue===n||null!==o&&!0===o.suppressHydrationWarning||dd(e.nodeValue,n)))||vo(t,!0)}else(e=vd(e).createTextNode(o))[Be]=t,t.stateNode=e}return hl(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(o=xo(t),null!==n){if(null===e){if(!o)throw Error(r(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(r(557));e[Be]=t}else So(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),e=!1}else n=Co(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Ha(t),t):(Ha(t),null);if(128&t.flags)throw Error(r(558))}return hl(t),null;case 13:if(o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=xo(t),null!==o&&null!==o.dehydrated){if(null===e){if(!a)throw Error(r(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(r(317));a[Be]=t}else So(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),a=!1}else a=Co(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return 256&t.flags?(Ha(t),t):(Ha(t),null)}return Ha(t),128&t.flags?(t.lanes=n,t):(n=null!==o,e=null!==e&&null!==e.memoizedState,n&&(a=null,null!==(o=t.child).alternate&&null!==o.alternate.memoizedState&&null!==o.alternate.memoizedState.cachePool&&(a=o.alternate.memoizedState.cachePool.pool),i=null,null!==o.memoizedState&&null!==o.memoizedState.cachePool&&(i=o.memoizedState.cachePool.pool),i!==a&&(o.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),fl(t,t.updateQueue),hl(t),null);case 4:return X(),null===e&&td(t.stateNode.containerInfo),hl(t),null;case 10:return No(t.type),hl(t),null;case 19:if(V(Va),null===(o=t.memoizedState))return hl(t),null;if(a=!!(128&t.flags),null===(i=o.rendering))if(a)pl(o,!1);else{if(0!==_u||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(i=Ba(e))){for(t.flags|=128,pl(o,!1),e=i.updateQueue,t.updateQueue=e,fl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Br(n,e),n=n.sibling;return B(Va,1&Va.current|2),ho&&io(t,o.treeForkCount),t.child}e=e.sibling}null!==o.tail&&ce()>Au&&(t.flags|=128,a=!0,pl(o,!1),t.lanes=4194304)}else{if(!a)if(null!==(e=Ba(i))){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,fl(t,e),pl(o,!0),null===o.tail&&"hidden"===o.tailMode&&!i.alternate&&!ho)return hl(t),null}else 2*ce()-o.renderingStartTime>Au&&536870912!==n&&(t.flags|=128,a=!0,pl(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=o.last)?e.sibling=i:t.child=i,o.last=i)}return null!==o.tail?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=ce(),e.sibling=null,n=Va.current,B(Va,a?1&n|2:1&n),ho&&io(t,o.treeForkCount),e):(hl(t),null);case 22:case 23:return Ha(t),Ma(),o=null!==t.memoizedState,null!==e?null!==e.memoizedState!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?!!(536870912&n)&&!(128&t.flags)&&(hl(t),6&t.subtreeFlags&&(t.flags|=8192)):hl(t),null!==(n=t.updateQueue)&&fl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),o=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(o=t.memoizedState.cachePool.pool),o!==n&&(t.flags|=2048),null!==e&&V(Qo),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),No(Ho),hl(t),null;case 25:case 30:return null}throw Error(r(156,t.tag))}function gl(e,t){switch(uo(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return No(Ho),X(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return J(t),null;case 31:if(null!==t.memoizedState){if(Ha(t),null===t.alternate)throw Error(r(340));So()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Ha(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));So()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return V(Va),null;case 4:return X(),null;case 10:return No(t.type),null;case 22:case 23:return Ha(t),Ma(),null!==e&&V(Qo),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return No(Ho),null;default:return null}}function yl(e,t){switch(uo(t),t.tag){case 3:No(Ho),X();break;case 26:case 27:case 5:J(t);break;case 4:X();break;case 31:null!==t.memoizedState&&Ha(t);break;case 13:Ha(t);break;case 19:V(Va);break;case 10:No(t.type);break;case 22:case 23:Ha(t),Ma(),null!==e&&V(Qo);break;case 24:No(Ho)}}function vl(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var a=n.create,i=n.inst;r=a(),i.destroy=r}n=n.next}while(n!==o)}}catch(e){_c(t,t.return,e)}}function bl(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var a=o.next;r=a;do{if((r.tag&e)===e){var i=r.inst,s=i.destroy;if(void 0!==s){i.destroy=void 0,o=t;var l=n,u=s;try{u()}catch(e){_c(o,l,e)}}}r=r.next}while(r!==a)}}catch(e){_c(t,t.return,e)}}function wl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Na(t,n)}catch(t){_c(e,e.return,t)}}}function xl(e,t,n){n.props=_s(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){_c(e,t,n)}}function Sl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){_c(e,t,n)}}function Cl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){_c(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){_c(e,t,n)}else n.current=null}function kl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){_c(e,e.return,t)}}function _l(e,t,n){try{var o=e.stateNode;!function(e,t,n,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,s=null,l=null,u=null,c=null,d=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":u=f;default:o.hasOwnProperty(h)||fd(e,t,h,null,o,f)}}for(var p in o){var h=o[p];if(f=n[p],o.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":i=h;break;case"name":a=h;break;case"checked":c=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(r(137,t));break;default:h!==f&&fd(e,t,p,h,o,f)}}return void wt(e,s,l,u,c,d,i,a);case"select":for(i in h=s=l=p=null,n)if(u=n[i],n.hasOwnProperty(i)&&null!=u)switch(i){case"value":break;case"multiple":h=u;default:o.hasOwnProperty(i)||fd(e,t,i,null,o,u)}for(a in o)if(i=o[a],u=n[a],o.hasOwnProperty(a)&&(null!=i||null!=u))switch(a){case"value":p=i;break;case"defaultValue":l=i;break;case"multiple":s=i;default:i!==u&&fd(e,t,a,i,o,u)}return t=l,n=s,o=h,void(null!=p?Ct(e,!!n,p,!1):!!o!=!!n&&(null!=t?Ct(e,!!n,t,!0):Ct(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=p=null,n)if(a=n[l],n.hasOwnProperty(l)&&null!=a&&!o.hasOwnProperty(l))switch(l){case"value":case"children":break;default:fd(e,t,l,null,o,a)}for(s in o)if(a=o[s],i=n[s],o.hasOwnProperty(s)&&(null!=a||null!=i))switch(s){case"value":p=a;break;case"defaultValue":h=a;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=a)throw Error(r(91));break;default:a!==i&&fd(e,t,s,a,o,i)}return void kt(e,p,h);case"option":for(var m in n)if(p=n[m],n.hasOwnProperty(m)&&null!=p&&!o.hasOwnProperty(m))if("selected"===m)e.selected=!1;else fd(e,t,m,null,o,p);for(u in o)if(p=o[u],h=n[u],o.hasOwnProperty(u)&&p!==h&&(null!=p||null!=h))if("selected"===u)e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p;else fd(e,t,u,p,o,h);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!o.hasOwnProperty(g)&&fd(e,t,g,null,o,p);for(c in o)if(p=o[c],h=n[c],o.hasOwnProperty(c)&&p!==h&&(null!=p||null!=h))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(r(137,t));break;default:fd(e,t,c,p,o,h)}return;default:if(Rt(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!o.hasOwnProperty(y)&&pd(e,t,y,void 0,o,p);for(d in o)p=o[d],h=n[d],!o.hasOwnProperty(d)||p===h||void 0===p&&void 0===h||pd(e,t,d,p,o,h);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&null!=p&&!o.hasOwnProperty(v)&&fd(e,t,v,null,o,p);for(f in o)p=o[f],h=n[f],!o.hasOwnProperty(f)||p===h||null==p&&null==h||fd(e,t,f,p,o,h)}(o,e.type,n,t),o[Ue]=t}catch(t){_c(e,e.return,t)}}function El(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Od(e.type)||4===e.tag}function jl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||El(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(27===e.tag&&Od(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Ol(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Mt));else if(4!==r&&(27===r&&Od(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Ol(e,t,n),e=e.sibling;null!==e;)Ol(e,t,n),e=e.sibling}function Nl(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&&(27===r&&Od(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Nl(e,t,n),e=e.sibling;null!==e;)Nl(e,t,n),e=e.sibling}function Rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);hd(t,r,n),t[Be]=e,t[Ue]=n}catch(t){_c(e,e.return,t)}}var Pl=!1,Tl=!1,Dl=!1,Ml="function"==typeof WeakSet?WeakSet:Set,Il=null;function Al(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Ql(e,n),4&r&&vl(5,n);break;case 1:if(Ql(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){_c(n,n.return,e)}else{var o=_s(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){_c(n,n.return,e)}}64&r&&wl(n),512&r&&Sl(n,n.return);break;case 3:if(Ql(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{Na(e,t)}catch(e){_c(n,n.return,e)}}break;case 27:null===t&&4&r&&Rl(n);case 26:case 5:Ql(e,n),null===t&&4&r&&kl(n),512&r&&Sl(n,n.return);break;case 12:Ql(e,n);break;case 31:Ql(e,n),4&r&&Vl(e,n);break;case 13:Ql(e,n),4&r&&Bl(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=Nc.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||Pl)){t=null!==t&&null!==t.memoizedState||Tl,o=Pl;var a=Tl;Pl=r,(Tl=t)&&!a?Zl(e,n,!!(8772&n.subtreeFlags)):Ql(e,n),Pl=o,Tl=a}break;case 30:break;default:Ql(e,n)}}function Fl(e){var t=e.alternate;null!==t&&(e.alternate=null,Fl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Xe(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ll=null,zl=!1;function $l(e,t,n){for(n=n.child;null!==n;)Hl(e,t,n),n=n.sibling}function Hl(e,t,n){if(we&&"function"==typeof we.onCommitFiberUnmount)try{we.onCommitFiberUnmount(be,n)}catch(e){}switch(n.tag){case 26:Tl||Cl(n,t),$l(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Tl||Cl(n,t);var r=Ll,o=zl;Od(n.type)&&(Ll=n.stateNode,zl=!1),$l(e,t,n),$d(n.stateNode),Ll=r,zl=o;break;case 5:Tl||Cl(n,t);case 6:if(r=Ll,o=zl,Ll=null,$l(e,t,n),zl=o,null!==(Ll=r))if(zl)try{(9===Ll.nodeType?Ll.body:"HTML"===Ll.nodeName?Ll.ownerDocument.body:Ll).removeChild(n.stateNode)}catch(e){_c(n,t,e)}else try{Ll.removeChild(n.stateNode)}catch(e){_c(n,t,e)}break;case 18:null!==Ll&&(zl?(Nd(9===(e=Ll).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),qf(e)):Nd(Ll,n.stateNode));break;case 4:r=Ll,o=zl,Ll=n.stateNode.containerInfo,zl=!0,$l(e,t,n),Ll=r,zl=o;break;case 0:case 11:case 14:case 15:bl(2,n,t),Tl||bl(4,n,t),$l(e,t,n);break;case 1:Tl||(Cl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&xl(n,t,r)),$l(e,t,n);break;case 21:$l(e,t,n);break;case 22:Tl=(r=Tl)||null!==n.memoizedState,$l(e,t,n),Tl=r;break;default:$l(e,t,n)}}function Vl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&null!==(e=e.memoizedState))){e=e.dehydrated;try{qf(e)}catch(e){_c(t,t.return,e)}}}function Bl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{qf(e)}catch(e){_c(t,t.return,e)}}function Ul(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Ml),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Ml),t;default:throw Error(r(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Rc.bind(null,e,t);t.then(r,r)}})}function Wl(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var a=n[o],i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(Od(l.type)){Ll=l.stateNode,zl=!1;break e}break;case 5:Ll=l.stateNode,zl=!1;break e;case 3:case 4:Ll=l.stateNode.containerInfo,zl=!0;break e}l=l.return}if(null===Ll)throw Error(r(160));Hl(i,s,a),Ll=null,zl=!1,null!==(i=a.alternate)&&(i.return=null),a.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)ql(t,e),t=t.sibling}var Yl=null;function ql(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Wl(t,e),Gl(e),4&o&&(bl(3,e,e.return),vl(3,e),bl(5,e,e.return));break;case 1:Wl(t,e),Gl(e),512&o&&(Tl||null===n||Cl(n,n.return)),64&o&&Pl&&(null!==(e=e.updateQueue)&&(null!==(o=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?o:n.concat(o))));break;case 26:var a=Yl;if(Wl(t,e),Gl(e),512&o&&(Tl||null===n||Cl(n,n.return)),4&o){var i=null!==n?n.memoizedState:null;if(o=e.memoizedState,null===n)if(null===o)if(null===e.stateNode){e:{o=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(o){case"title":(!(i=a.getElementsByTagName("title")[0])||i[Qe]||i[Be]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=a.createElement(o),a.head.insertBefore(i,a.querySelector("head > title"))),hd(i,o,n),i[Be]=e,nt(i),o=i;break e;case"link":var s=of("link","href",a).get(o+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((i=s[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&i.getAttribute("rel")===(null==n.rel?null:n.rel)&&i.getAttribute("title")===(null==n.title?null:n.title)&&i.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}hd(i=a.createElement(o),o,n),a.head.appendChild(i);break;case"meta":if(s=of("meta","content",a).get(o+(n.content||"")))for(l=0;l<s.length;l++)if((i=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&i.getAttribute("name")===(null==n.name?null:n.name)&&i.getAttribute("property")===(null==n.property?null:n.property)&&i.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&i.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}hd(i=a.createElement(o),o,n),a.head.appendChild(i);break;default:throw Error(r(468,o))}i[Be]=e,nt(i),o=i}e.stateNode=o}else af(a,e.type,e.stateNode);else e.stateNode=Jd(a,o,e.memoizedProps);else i!==o?(null===i?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):i.count--,null===o?af(a,e.type,e.stateNode):Jd(a,o,e.memoizedProps)):null===o&&null!==e.stateNode&&_l(e,e.memoizedProps,n.memoizedProps)}break;case 27:Wl(t,e),Gl(e),512&o&&(Tl||null===n||Cl(n,n.return)),null!==n&&4&o&&_l(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Wl(t,e),Gl(e),512&o&&(Tl||null===n||Cl(n,n.return)),32&e.flags){a=e.stateNode;try{Et(a,"")}catch(t){_c(e,e.return,t)}}4&o&&null!=e.stateNode&&_l(e,a=e.memoizedProps,null!==n?n.memoizedProps:a),1024&o&&(Dl=!0);break;case 6:if(Wl(t,e),Gl(e),4&o){if(null===e.stateNode)throw Error(r(162));o=e.memoizedProps,n=e.stateNode;try{n.nodeValue=o}catch(t){_c(e,e.return,t)}}break;case 3:if(rf=null,a=Yl,Yl=Bd(t.containerInfo),Wl(t,e),Yl=a,Gl(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{qf(t.containerInfo)}catch(t){_c(e,e.return,t)}Dl&&(Dl=!1,Kl(e));break;case 4:o=Yl,Yl=Bd(e.stateNode.containerInfo),Wl(t,e),Gl(e),Yl=o;break;case 12:default:Wl(t,e),Gl(e);break;case 31:case 19:Wl(t,e),Gl(e),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,Ul(e,o)));break;case 13:Wl(t,e),Gl(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Mu=ce()),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,Ul(e,o)));break;case 22:a=null!==e.memoizedState;var u=null!==n&&null!==n.memoizedState,c=Pl,d=Tl;if(Pl=c||a,Tl=d||u,Wl(t,e),Tl=d,Pl=c,Gl(e),8192&o)e:for(t=e.stateNode,t._visibility=a?-2&t._visibility:1|t._visibility,a&&(null===n||u||Pl||Tl||Xl(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){u=n=t;try{if(i=u.stateNode,a)"function"==typeof(s=i.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=u.stateNode;var f=u.memoizedProps.style,p=null!=f&&f.hasOwnProperty("display")?f.display:null;l.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(e){_c(u,u.return,e)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=a?"":u.memoizedProps}catch(e){_c(u,u.return,e)}}}else if(18===t.tag){if(null===n){u=t;try{var h=u.stateNode;a?Rd(h,!0):Rd(u.stateNode,!1)}catch(e){_c(u,u.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&o&&(null!==(o=e.updateQueue)&&(null!==(n=o.retryQueue)&&(o.retryQueue=null,Ul(e,n))));case 30:case 21:}}function Gl(e){var t=e.flags;if(2&t){try{for(var n,o=e.return;null!==o;){if(El(o)){n=o;break}o=o.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var a=n.stateNode;Nl(e,jl(e),a);break;case 5:var i=n.stateNode;32&n.flags&&(Et(i,""),n.flags&=-33),Nl(e,jl(e),i);break;case 3:case 4:var s=n.stateNode.containerInfo;Ol(e,jl(e),s);break;default:throw Error(r(161))}}catch(t){_c(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Kl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Kl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Ql(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Al(e,t.alternate,t),t=t.sibling}function Xl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:bl(4,t,t.return),Xl(t);break;case 1:Cl(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&xl(t,t.return,n),Xl(t);break;case 27:$d(t.stateNode);case 26:case 5:Cl(t,t.return),Xl(t);break;case 22:null===t.memoizedState&&Xl(t);break;default:Xl(t)}e=e.sibling}}function Zl(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,a=t,i=a.flags;switch(a.tag){case 0:case 11:case 15:Zl(o,a,n),vl(4,a);break;case 1:if(Zl(o,a,n),"function"==typeof(o=(r=a).stateNode).componentDidMount)try{o.componentDidMount()}catch(e){_c(r,r.return,e)}if(null!==(o=(r=a).updateQueue)){var s=r.stateNode;try{var l=o.shared.hiddenCallbacks;if(null!==l)for(o.shared.hiddenCallbacks=null,o=0;o<l.length;o++)Oa(l[o],s)}catch(e){_c(r,r.return,e)}}n&&64&i&&wl(a),Sl(a,a.return);break;case 27:Rl(a);case 26:case 5:Zl(o,a,n),n&&null===r&&4&i&&kl(a),Sl(a,a.return);break;case 12:Zl(o,a,n);break;case 31:Zl(o,a,n),n&&4&i&&Vl(o,a);break;case 13:Zl(o,a,n),n&&4&i&&Bl(o,a);break;case 22:null===a.memoizedState&&Zl(o,a,n),Sl(a,a.return);break;case 30:break;default:Zl(o,a,n)}t=t.sibling}}function Jl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Bo(n))}function eu(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bo(e))}function tu(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)nu(e,t,n,r),t=t.sibling}function nu(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:tu(e,t,n,r),2048&o&&vl(9,t);break;case 1:case 31:case 13:default:tu(e,t,n,r);break;case 3:tu(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bo(e)));break;case 12:if(2048&o){tu(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,i=a.id,s=a.onPostCommit;"function"==typeof s&&s(i,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){_c(t,t.return,e)}}else tu(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,i=t.alternate,null!==t.memoizedState?2&a._visibility?tu(e,t,n,r):ou(e,t):2&a._visibility?tu(e,t,n,r):(a._visibility|=2,ru(e,t,n,r,!!(10256&t.subtreeFlags)||!1)),2048&o&&Jl(i,t);break;case 24:tu(e,t,n,r),2048&o&&eu(t.alternate,t)}}function ru(e,t,n,r,o){for(o=o&&(!!(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var a=e,i=t,s=n,l=r,u=i.flags;switch(i.tag){case 0:case 11:case 15:ru(a,i,s,l,o),vl(8,i);break;case 23:break;case 22:var c=i.stateNode;null!==i.memoizedState?2&c._visibility?ru(a,i,s,l,o):ou(a,i):(c._visibility|=2,ru(a,i,s,l,o)),o&&2048&u&&Jl(i.alternate,i);break;case 24:ru(a,i,s,l,o),o&&2048&u&&eu(i.alternate,i);break;default:ru(a,i,s,l,o)}t=t.sibling}}function ou(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:ou(n,r),2048&o&&Jl(r.alternate,r);break;case 24:ou(n,r),2048&o&&eu(r.alternate,r);break;default:ou(n,r)}t=t.sibling}}var au=8192;function iu(e,t,n){if(e.subtreeFlags&au)for(e=e.child;null!==e;)su(e,t,n),e=e.sibling}function su(e,t,n){switch(e.tag){case 26:iu(e,t,n),e.flags&au&&null!==e.memoizedState&&function(e,t,n,r){if(!("stylesheet"!==n.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&n.state.loading)){if(null===n.instance){var o=Gd(r.href),a=t.querySelector(Kd(o));if(a)return null!==(t=a._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=uf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,void nt(a);a=t.ownerDocument||t,r=Qd(r),(o=Hd.get(o))&&tf(r,o),nt(a=a.createElement("link"));var i=a;i._p=new Promise(function(e,t){i.onload=e,i.onerror=t}),hd(a,"link",r),n.instance=a}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(3&n.state.loading)&&(e.count++,n=uf.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,Yl,e.memoizedState,e.memoizedProps);break;case 5:default:iu(e,t,n);break;case 3:case 4:var r=Yl;Yl=Bd(e.stateNode.containerInfo),iu(e,t,n),Yl=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=au,au=16777216,iu(e,t,n),au=r):iu(e,t,n))}}function lu(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function uu(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Il=r,fu(r,e)}lu(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)cu(e),e=e.sibling}function cu(e){switch(e.tag){case 0:case 11:case 15:uu(e),2048&e.flags&&bl(9,e,e.return);break;case 3:case 12:default:uu(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,du(e)):uu(e)}}function du(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Il=r,fu(r,e)}lu(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:bl(8,t,t.return),du(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,du(t));break;default:du(t)}e=e.sibling}}function fu(e,t){for(;null!==Il;){var n=Il;switch(n.tag){case 0:case 11:case 15:bl(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Bo(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Il=r;else e:for(n=e;null!==Il;){var o=(r=Il).sibling,a=r.return;if(Fl(r),r===n){Il=null;break e}if(null!==o){o.return=a,Il=o;break e}Il=a}}}var pu={getCacheForType:function(e){var t=Io(Ho),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Io(Ho).controller.signal}},hu="function"==typeof WeakMap?WeakMap:Map,mu=0,gu=null,yu=null,vu=0,bu=0,wu=null,xu=!1,Su=!1,Cu=!1,ku=0,_u=0,Eu=0,ju=0,Ou=0,Nu=0,Ru=0,Pu=null,Tu=null,Du=!1,Mu=0,Iu=0,Au=1/0,Fu=null,Lu=null,zu=0,$u=null,Hu=null,Vu=0,Bu=0,Uu=null,Wu=null,Yu=0,qu=null;function Gu(){return 2&mu&&0!==vu?vu&-vu:null!==A.T?Uc():$e()}function Ku(){if(0===Nu)if(536870912&vu&&!ho)Nu=536870912;else{var e=Ee;!(3932160&(Ee<<=1))&&(Ee=262144),Nu=e}return null!==(e=Ia.current)&&(e.flags|=32),Nu}function Qu(e,t,n){(e!==gu||2!==bu&&9!==bu)&&null===e.cancelPendingCommit||(rc(e,0),ec(e,vu,Nu,!1)),Me(e,n),2&mu&&e===gu||(e===gu&&(!(2&mu)&&(ju|=n),4===_u&&ec(e,vu,Nu,!1)),Fc(e))}function Xu(e,t,n){if(6&mu)throw Error(r(327));for(var o=!n&&!(127&t)&&0===(t&e.expiredLanes)||Re(e,t),a=o?function(e,t){var n=mu;mu|=2;var o=ic(),a=sc();gu!==e||vu!==t?(Fu=null,Au=ce()+500,rc(e,t)):Su=Re(e,t);e:for(;;)try{if(0!==bu&&null!==yu){t=yu;var i=wu;t:switch(bu){case 1:bu=0,wu=null,hc(e,t,i,1);break;case 2:case 9:if(oa(i)){bu=0,wu=null,pc(t);break}t=function(){2!==bu&&9!==bu||gu!==e||(bu=7),Fc(e)},i.then(t,t);break e;case 3:bu=7;break e;case 4:bu=5;break e;case 7:oa(i)?(bu=0,wu=null,pc(t)):(bu=0,wu=null,hc(e,t,i,7));break;case 5:var s=null;switch(yu.tag){case 26:s=yu.memoizedState;case 5:case 27:var l=yu;if(s?sf(s):l.stateNode.complete){bu=0,wu=null;var u=l.sibling;if(null!==u)yu=u;else{var c=l.return;null!==c?(yu=c,mc(c)):yu=null}break t}}bu=0,wu=null,hc(e,t,i,5);break;case 6:bu=0,wu=null,hc(e,t,i,6);break;case 8:nc(),_u=6;break e;default:throw Error(r(462))}}dc();break}catch(t){oc(e,t)}return jo=Eo=null,A.H=o,A.A=a,mu=n,null!==yu?0:(gu=null,vu=0,Tr(),_u)}(e,t):uc(e,t,!0),i=o;;){if(0===a){Su&&!o&&ec(e,t,0,!1);break}if(n=e.current.alternate,!i||Ju(n)){if(2===a){if(i=t,e.errorRecoveryDisabledLanes&i)var s=0;else s=0!==(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;a=Pu;var u=l.current.memoizedState.isDehydrated;if(u&&(rc(l,s).flags|=256),2!==(s=uc(l,s,!1))){if(Cu&&!u){l.errorRecoveryDisabledLanes|=i,ju|=i,a=4;break e}i=Tu,Tu=a,null!==i&&(null===Tu?Tu=i:Tu.push.apply(Tu,i))}a=s}if(i=!1,2!==a)continue}}if(1===a){rc(e,0),ec(e,t,0,!0);break}e:{switch(o=e,i=a){case 0:case 1:throw Error(r(345));case 4:if((4194048&t)!==t)break;case 6:ec(o,t,Nu,!xu);break e;case 2:Tu=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(a=Mu+300-ce())){if(ec(o,t,Nu,!xu),0!==Ne(o,0,!0))break e;Vu=t,o.timeoutHandle=Cd(Zu.bind(null,o,n,Tu,Fu,Du,t,Nu,ju,Ru,xu,i,"Throttled",-0,0),a)}else Zu(o,n,Tu,Fu,Du,t,Nu,ju,Ru,xu,i,null,-0,0)}break}a=uc(e,t,!1),i=!1}Fc(e)}function Zu(e,t,n,r,o,a,i,s,l,u,c,d,f,p){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){su(t,a,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Mt});var h=(62914560&a)===a?Mu-ce():(4194048&a)===a?Iu-ce():0;if(h=function(e,t){return e.stylesheets&&0===e.count&&df(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&df(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===lf&&(lf=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var o=n[r],a=o.transferSize,i=o.initiatorType,s=o.duration;if(a&&s&&md(i)){for(i=0,s=o.responseEnd,r+=1;r<n.length;r++){var l=n[r],u=l.startTime;if(u>s)break;var c=l.transferSize,d=l.initiatorType;c&&md(d)&&(i+=c*((l=l.responseEnd)<s?1:(s-u)/(l-u)))}if(--r,t+=8*(a+i)/(o.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,"number"==typeof e)?e:5}());var o=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&df(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>lf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}(d,h),null!==h)return Vu=a,e.cancelPendingCommit=h(yc.bind(null,e,t,a,n,r,o,i,s,l,c,d,null,f,p)),void ec(e,a,i,!u)}yc(e,t,a,n,r,o,i,s,l)}function Ju(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!er(a(),o))return!1}catch(e){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}function ec(e,t,n,r){t&=~Ou,t&=~ju,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var a=31-Se(o),i=1<<a;r[a]=-1,o&=~i}0!==n&&Ie(e,n,t)}function tc(){return!!(6&mu)||(Lc(0),!1)}function nc(){if(null!==yu){if(0===bu)var e=yu.return;else jo=Eo=null,ui(e=yu),ca=null,da=0,e=yu;for(;null!==e;)yl(e.alternate,e),e=e.return;yu=null}}function rc(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,kd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Vu=0,nc(),gu=e,yu=n=Vr(e.current,null),vu=t,bu=0,wu=null,xu=!1,Su=Re(e,t),Cu=!1,Ru=Nu=Ou=ju=Eu=_u=0,Tu=Pu=null,Du=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-Se(r),a=1<<o;t|=e[o],r&=~a}return ku=t,Tr(),n}function oc(e,t){Wa=null,A.H=ys,t===ea||t===na?(t=la(),bu=3):t===ta?(t=la(),bu=4):bu=t===Ms?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,wu=t,null===yu&&(_u=1,Ns(e,Qr(t,e.current)))}function ac(){var e=Ia.current;return null===e||((4194048&vu)===vu?null===Aa:!!((62914560&vu)===vu||536870912&vu)&&e===Aa)}function ic(){var e=A.H;return A.H=ys,null===e?ys:e}function sc(){var e=A.A;return A.A=pu,e}function lc(){_u=4,xu||(4194048&vu)!==vu&&null!==Ia.current||(Su=!0),!(134217727&Eu)&&!(134217727&ju)||null===gu||ec(gu,vu,Nu,!1)}function uc(e,t,n){var r=mu;mu|=2;var o=ic(),a=sc();gu===e&&vu===t||(Fu=null,rc(e,t)),t=!1;var i=_u;e:for(;;)try{if(0!==bu&&null!==yu){var s=yu,l=wu;switch(bu){case 8:nc(),i=6;break e;case 3:case 2:case 9:case 6:null===Ia.current&&(t=!0);var u=bu;if(bu=0,wu=null,hc(e,s,l,u),n&&Su){i=0;break e}break;default:u=bu,bu=0,wu=null,hc(e,s,l,u)}}cc(),i=_u;break}catch(t){oc(e,t)}return t&&e.shellSuspendCounter++,jo=Eo=null,mu=r,A.H=o,A.A=a,null===yu&&(gu=null,vu=0,Tr()),i}function cc(){for(;null!==yu;)fc(yu)}function dc(){for(;null!==yu&&!le();)fc(yu)}function fc(e){var t=ll(e.alternate,e,ku);e.memoizedProps=e.pendingProps,null===t?mc(e):yu=t}function pc(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=qs(n,t,t.pendingProps,t.type,void 0,vu);break;case 11:t=qs(n,t,t.pendingProps,t.type.render,t.ref,vu);break;case 5:ui(t);default:yl(n,t),t=ll(n,t=yu=Br(t,ku),ku)}e.memoizedProps=e.pendingProps,null===t?mc(e):yu=t}function hc(e,t,n,o){jo=Eo=null,ui(t),ca=null,da=0;var a=t.return;try{if(function(e,t,n,o,a){if(n.flags|=32768,null!==o&&"object"==typeof o&&"function"==typeof o.then){if(null!==(t=n.alternate)&&To(t,n,a,!0),null!==(n=Ia.current)){switch(n.tag){case 31:case 13:return null===Aa?lc():null===n.alternate&&0===_u&&(_u=3),n.flags&=-257,n.flags|=65536,n.lanes=a,o===ra?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([o]):t.add(o),Ec(e,o,a)),!1;case 22:return n.flags|=65536,o===ra?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([o]):n.add(o),Ec(e,o,a)),!1}throw Error(r(435,n.tag))}return Ec(e,o,a),lc(),!1}if(ho)return null!==(t=Ia.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=a,o!==yo&&ko(Qr(e=Error(r(422),{cause:o}),n))):(o!==yo&&ko(Qr(t=Error(r(423),{cause:o}),n)),(e=e.current.alternate).flags|=65536,a&=-a,e.lanes|=a,o=Qr(o,n),ka(e,a=Ps(e.stateNode,o,a)),4!==_u&&(_u=2)),!1;var i=Error(r(520),{cause:o});if(i=Qr(i,n),null===Pu?Pu=[i]:Pu.push(i),4!==_u&&(_u=2),null===t)return!0;o=Qr(o,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,ka(n,e=Ps(n.stateNode,o,e)),!1;case 1:if(t=n.type,i=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===i||"function"!=typeof i.componentDidCatch||null!==Lu&&Lu.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,Ds(a=Ts(a),e,n,o),ka(n,a),!1}n=n.return}while(null!==n);return!1}(e,a,t,n,vu))return _u=1,Ns(e,Qr(n,e.current)),void(yu=null)}catch(t){if(null!==a)throw yu=a,t;return _u=1,Ns(e,Qr(n,e.current)),void(yu=null)}32768&t.flags?(ho||1===o?e=!0:Su||536870912&vu?e=!1:(xu=e=!0,(2===o||9===o||3===o||6===o)&&(null!==(o=Ia.current)&&13===o.tag&&(o.flags|=16384))),gc(t,e)):mc(t)}function mc(e){var t=e;do{if(32768&t.flags)return void gc(t,xu);e=t.return;var n=ml(t.alternate,t,ku);if(null!==n)return void(yu=n);if(null!==(t=t.sibling))return void(yu=t);yu=t=e}while(null!==t);0===_u&&(_u=5)}function gc(e,t){do{var n=gl(e.alternate,e);if(null!==n)return n.flags&=32767,void(yu=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(yu=e);yu=e=n}while(null!==e);_u=6,yu=null}function yc(e,t,n,o,a,i,s,l,u){e.cancelPendingCommit=null;do{Sc()}while(0!==zu);if(6&mu)throw Error(r(327));if(null!==t){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,function(e,t,n,r,o,a){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=i&~n;0<n;){var c=31-Se(n),d=1<<c;s[c]=0,l[c]=-1;var f=u[c];if(null!==f)for(u[c]=null,c=0;c<f.length;c++){var p=f[c];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Ie(e,r,0),0!==a&&0===o&&0!==e.tag&&(e.suspendedLanes|=a&~(i&~t))}(e,n,i|=Pr,s,l,u),e===gu&&(yu=gu=null,vu=0),Hu=t,$u=e,Vu=n,Bu=i,Uu=a,Wu=o,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,ie(he,function(){return Cc(),null})):(e.callbackNode=null,e.callbackPriority=0),o=!!(13878&t.flags),13878&t.subtreeFlags||o){o=A.T,A.T=null,a=F.p,F.p=2,s=mu,mu|=4;try{!function(e,t){if(e=e.containerInfo,gd=Sf,ir(e=ar(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(o&&0!==o.rangeCount){n=o.anchorNode;var a=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==a&&3!==f.nodeType||(l=s+a),f!==i||0!==o&&3!==f.nodeType||(u=s+o),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===a&&(l=s),p===i&&++d===o&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(yd={focusedElem:e,selectionRange:n},Sf=!1,Il=t;null!==Il;)if(e=(t=Il).child,1028&t.subtreeFlags&&null!==e)e.return=t,Il=e;else for(;null!==Il;){switch(i=(t=Il).alternate,e=t.flags,t.tag){case 0:if(4&e&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(a=e[n]).ref.impl=a.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==i){e=void 0,n=t,a=i.memoizedProps,i=i.memoizedState,o=n.stateNode;try{var m=_s(n.type,a);e=o.getSnapshotBeforeUpdate(m,i),o.__reactInternalSnapshotBeforeUpdate=e}catch(e){_c(n,n.return,e)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Pd(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Pd(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,Il=e;break}Il=t.return}}(e,t)}finally{mu=s,F.p=a,A.T=o}}zu=1,vc(),bc(),wc()}}function vc(){if(1===zu){zu=0;var e=$u,t=Hu,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=A.T,A.T=null;var r=F.p;F.p=2;var o=mu;mu|=4;try{ql(t,e);var a=yd,i=ar(e.containerInfo),s=a.focusedElem,l=a.selectionRange;if(i!==s&&s&&s.ownerDocument&&or(s.ownerDocument.documentElement,s)){if(null!==l&&ir(s)){var u=l.start,c=l.end;if(void 0===c&&(c=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(c,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),h=s.textContent.length,m=Math.min(l.start,h),g=void 0===l.end?m:Math.min(l.end,h);!p.extend&&m>g&&(i=g,g=m,m=i);var y=rr(s,m),v=rr(s,g);if(y&&v&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var b=d.createRange();b.setStart(y.node,y.offset),p.removeAllRanges(),m>g?(p.addRange(b),p.extend(v.node,v.offset)):(b.setEnd(v.node,v.offset),p.addRange(b))}}}}for(d=[],p=s;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<d.length;s++){var w=d[s];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}Sf=!!gd,yd=gd=null}finally{mu=o,F.p=r,A.T=n}}e.current=t,zu=2}}function bc(){if(2===zu){zu=0;var e=$u,t=Hu,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=A.T,A.T=null;var r=F.p;F.p=2;var o=mu;mu|=4;try{Al(e,t.alternate,t)}finally{mu=o,F.p=r,A.T=n}}zu=3}}function wc(){if(4===zu||3===zu){zu=0,ue();var e=$u,t=Hu,n=Vu,r=Wu;10256&t.subtreeFlags||10256&t.flags?zu=5:(zu=0,Hu=$u=null,xc(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(Lu=null),ze(n),t=t.stateNode,we&&"function"==typeof we.onCommitFiberRoot)try{we.onCommitFiberRoot(be,t,void 0,!(128&~t.current.flags))}catch(e){}if(null!==r){t=A.T,o=F.p,F.p=2,A.T=null;try{for(var a=e.onRecoverableError,i=0;i<r.length;i++){var s=r[i];a(s.value,{componentStack:s.stack})}}finally{A.T=t,F.p=o}}3&Vu&&Sc(),Fc(e),o=e.pendingLanes,261930&n&&42&o?e===qu?Yu++:(Yu=0,qu=e):Yu=0,Lc(0)}}function xc(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Bo(t)))}function Sc(){return vc(),bc(),wc(),Cc()}function Cc(){if(5!==zu)return!1;var e=$u,t=Bu;Bu=0;var n=ze(Vu),o=A.T,a=F.p;try{F.p=32>n?32:n,A.T=null,n=Uu,Uu=null;var i=$u,s=Vu;if(zu=0,Hu=$u=null,Vu=0,6&mu)throw Error(r(331));var l=mu;if(mu|=4,cu(i.current),nu(i,i.current,s,n),mu=l,Lc(0,!1),we&&"function"==typeof we.onPostCommitFiberRoot)try{we.onPostCommitFiberRoot(be,i)}catch(e){}return!0}finally{F.p=a,A.T=o,xc(e,t)}}function kc(e,t,n){t=Qr(n,t),null!==(e=Sa(e,t=Ps(e.stateNode,t,2),2))&&(Me(e,2),Fc(e))}function _c(e,t,n){if(3===e.tag)kc(e,e,n);else for(;null!==t;){if(3===t.tag){kc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Lu||!Lu.has(r))){e=Qr(n,e),null!==(r=Sa(t,n=Ts(2),2))&&(Ds(n,r,t,e),Me(r,2),Fc(r));break}}t=t.return}}function Ec(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hu;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)||(Cu=!0,o.add(n),e=jc.bind(null,e,t,n),t.then(e,e))}function jc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,gu===e&&(vu&n)===n&&(4===_u||3===_u&&(62914560&vu)===vu&&300>ce()-Mu?!(2&mu)&&rc(e,0):Ou|=n,Ru===vu&&(Ru=0)),Fc(e)}function Oc(e,t){0===t&&(t=Te()),null!==(e=Ir(e,t))&&(Me(e,t),Fc(e))}function Nc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Oc(e,n)}function Rc(e,t){var n=0;switch(e.tag){case 31:case 13:var o=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==o&&o.delete(t),Oc(e,n)}var Pc=null,Tc=null,Dc=!1,Mc=!1,Ic=!1,Ac=0;function Fc(e){e!==Tc&&null===e.next&&(null===Tc?Pc=Tc=e:Tc=Tc.next=e),Mc=!0,Dc||(Dc=!0,Ed(function(){6&mu?ie(fe,zc):$c()}))}function Lc(e,t){if(!Ic&&Mc){Ic=!0;do{for(var n=!1,r=Pc;null!==r;){if(0!==e){var o=r.pendingLanes;if(0===o)var a=0;else{var i=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Se(42|e)+1)-1,a=201326741&(a&=o&~(i&~s))?201326741&a|1:a?2|a:0}0!==a&&(n=!0,Bc(r,a))}else a=vu,!(3&(a=Ne(r,r===gu?a:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Re(r,a)||(n=!0,Bc(r,a));r=r.next}}while(n);Ic=!1}}function zc(){$c()}function $c(){Mc=Dc=!1;var e=0;0!==Ac&&function(){var e=window.event;if(e&&"popstate"===e.type)return e!==Sd&&(Sd=e,!0);return Sd=null,!1}()&&(e=Ac);for(var t=ce(),n=null,r=Pc;null!==r;){var o=r.next,a=Hc(r,t);0===a?(r.next=null,null===n?Pc=o:n.next=o,null===o&&(Tc=n)):(n=r,(0!==e||3&a)&&(Mc=!0)),r=o}0!==zu&&5!==zu||Lc(e),0!==Ac&&(Ac=0)}function Hc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=-62914561&e.pendingLanes;0<a;){var i=31-Se(a),s=1<<i,l=o[i];-1===l?0!==(s&n)&&0===(s&r)||(o[i]=Pe(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}if(n=vu,n=Ne(e,e===(t=gu)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===bu||9===bu)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&se(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Re(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&se(r),ze(n)){case 2:case 8:n=pe;break;case 32:default:n=he;break;case 268435456:n=ge}return r=Vc.bind(null,e),n=ie(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&se(r),e.callbackPriority=2,e.callbackNode=null,2}function Vc(e,t){if(0!==zu&&5!==zu)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var r=vu;return 0===(r=Ne(e,e===gu?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Xu(e,r,t),Hc(e,ce()),null!=e.callbackNode&&e.callbackNode===n?Vc.bind(null,e):null)}function Bc(e,t){if(Sc())return null;Xu(e,t,!0)}function Uc(){if(0===Ac){var e=Yo;0===e&&(e=_e,!(261888&(_e<<=1))&&(_e=256)),Ac=e}return Ac}function Wc(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Dt(""+e)}function Yc(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var qc=0;qc<Er.length;qc++){var Gc=Er[qc];jr(Gc.toLowerCase(),"on"+(Gc[0].toUpperCase()+Gc.slice(1)))}jr(vr,"onAnimationEnd"),jr(br,"onAnimationIteration"),jr(wr,"onAnimationStart"),jr("dblclick","onDoubleClick"),jr("focusin","onFocus"),jr("focusout","onBlur"),jr(xr,"onTransitionRun"),jr(Sr,"onTransitionStart"),jr(Cr,"onTransitionCancel"),jr(kr,"onTransitionEnd"),it("onMouseEnter",["mouseout","mouseover"]),it("onMouseLeave",["mouseout","mouseover"]),it("onPointerEnter",["pointerout","pointerover"]),it("onPointerLeave",["pointerout","pointerover"]),at("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),at("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),at("onBeforeInput",["compositionend","keypress","textInput","paste"]),at("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),at("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),at("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kc="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(" "),Qc=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kc));function Xc(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],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;a=s,o.currentTarget=u;try{a(o)}catch(e){Or(e)}o.currentTarget=null,a=l}else for(i=0;i<r.length;i++){if(l=(s=r[i]).instance,u=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;a=s,o.currentTarget=u;try{a(o)}catch(e){Or(e)}o.currentTarget=null,a=l}}}}function Zc(e,t){var n=t[Ye];void 0===n&&(n=t[Ye]=new Set);var r=e+"__bubble";n.has(r)||(nd(t,e,2,!1),n.add(r))}function Jc(e,t,n){var r=0;t&&(r|=4),nd(n,e,r,t)}var ed="_reactListening"+Math.random().toString(36).slice(2);function td(e){if(!e[ed]){e[ed]=!0,rt.forEach(function(t){"selectionchange"!==t&&(Qc.has(t)||Jc(t,!1,e),Jc(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[ed]||(t[ed]=!0,Jc("selectionchange",!1,t))}}function nd(e,t,n,r){switch(Nf(t)){case 2:var o=Cf;break;case 8:o=kf;break;default:o=_f}n=o.bind(null,t,n,e),o=void 0,!Ut||"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 rd(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var l=r.stateNode.containerInfo;if(l===o)break;if(4===s)for(s=r.return;null!==s;){var u=s.tag;if((3===u||4===u)&&s.stateNode.containerInfo===o)return;s=s.return}for(;null!==l;){if(null===(s=Ze(l)))return;if(5===(u=s.tag)||6===u||26===u||27===u){r=i=s;continue e}l=l.parentNode}}r=r.return}Ht(function(){var r=i,o=At(n),s=[];e:{var l=_r.get(e);if(void 0!==l){var u=on,c=e;switch(e){case"keypress":if(0===Qt(n))break e;case"keydown":case"keyup":u=wn;break;case"focusin":c="focus",u=dn;break;case"focusout":c="blur",u=dn;break;case"beforeblur":case"afterblur":u=dn;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=un;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=cn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Sn;break;case vr:case br:case wr:u=fn;break;case kr:u=Cn;break;case"scroll":case"scrollend":u=sn;break;case"wheel":u=kn;break;case"copy":case"cut":case"paste":u=pn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=xn;break;case"toggle":case"beforetoggle":u=_n}var d=!!(4&t),f=!d&&("scroll"===e||"scrollend"===e),p=d?null!==l?l+"Capture":null:l;d=[];for(var h,m=r;null!==m;){var g=m;if(h=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===h||null===p||null!=(g=Vt(m,p))&&d.push(od(m,g,h)),f)break;m=m.return}0<d.length&&(l=new u(l,c,null,n,o),s.push({event:l,listeners:d}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===It||!(c=n.relatedTarget||n.fromElement)||!Ze(c)&&!c[We])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?Ze(c):null)&&(f=a(c),d=c.tag,c!==f||5!==d&&27!==d&&6!==d)&&(c=null)):(u=null,c=r),u!==c)){if(d=un,g="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(d=xn,g="onPointerLeave",p="onPointerEnter",m="pointer"),f=null==u?l:et(u),h=null==c?l:et(c),(l=new d(g,m+"leave",u,n,o)).target=f,l.relatedTarget=h,g=null,Ze(o)===r&&((d=new d(p,m+"enter",c,n,o)).target=h,d.relatedTarget=f,g=d),f=g,u&&c)e:{for(d=id,m=c,h=0,g=p=u;g;g=d(g))h++;g=0;for(var y=m;y;y=d(y))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||null!==m&&p===m.alternate){d=p;break e}p=d(p),m=d(m)}d=null}else d=null;null!==u&&sd(s,l,u,d,!1),null!==c&&null!==f&&sd(s,f,c,d,!0)}if("select"===(u=(l=r?et(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var v=Bn;else if(Fn(l))if(Un)v=Jn;else{v=Xn;var b=Qn}else!(u=l.nodeName)||"input"!==u.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&Rt(r.elementType)&&(v=Bn):v=Zn;switch(v&&(v=v(e,r))?Ln(s,v,n,o):(b&&b(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&St(l,"number",l.value)),b=r?et(r):window,e){case"focusin":(Fn(b)||"true"===b.contentEditable)&&(lr=b,ur=r,cr=null);break;case"focusout":cr=ur=lr=null;break;case"mousedown":dr=!0;break;case"contextmenu":case"mouseup":case"dragend":dr=!1,fr(s,n,o);break;case"selectionchange":if(sr)break;case"keydown":case"keyup":fr(s,n,o)}var w;if(jn)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else In?Dn(e,n)&&(x="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(x="onCompositionStart");x&&(Rn&&"ko"!==n.locale&&(In||"onCompositionStart"!==x?"onCompositionEnd"===x&&In&&(w=Kt()):(qt="value"in(Yt=o)?Yt.value:Yt.textContent,In=!0)),0<(b=ad(r,x)).length&&(x=new hn(x,e,null,n,o),s.push({event:x,listeners:b}),w?x.data=w:null!==(w=Mn(n))&&(x.data=w))),(w=Nn?function(e,t){switch(e){case"compositionend":return Mn(t);case"keypress":return 32!==t.which?null:(Tn=!0,Pn);case"textInput":return(e=t.data)===Pn&&Tn?null:e;default:return null}}(e,n):function(e,t){if(In)return"compositionend"===e||!jn&&Dn(e,t)?(e=Kt(),Gt=qt=Yt=null,In=!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<(x=ad(r,"onBeforeInput")).length&&(b=new hn("onBeforeInput","beforeinput",null,n,o),s.push({event:b,listeners:x}),b.data=w)),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var a=Wc((o[Ue]||null).action),i=r.submitter;i&&null!==(t=(t=i[Ue]||null)?Wc(t.formAction):i.getAttribute("formAction"))&&(a=t,i=null);var s=new on("action","action",null,r,o);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Ac){var e=i?Yc(o,i):new FormData(o);rs(n,{pending:!0,data:e,method:o.method,action:a},null,e)}}else"function"==typeof a&&(s.preventDefault(),e=i?Yc(o,i):new FormData(o),rs(n,{pending:!0,data:e,method:o.method,action:a},a,e))},currentTarget:o}]})}}(s,e,r,n,o)}Xc(s,t)})}function od(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ad(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===a||(null!=(o=Vt(e,n))&&r.unshift(od(e,o,a)),null!=(o=Vt(e,t))&&r.push(od(e,o,a))),3===e.tag)return r;e=e.return}return[]}function id(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function sd(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===u||(l=u,o?null!=(u=Vt(n,a))&&i.unshift(od(n,u,l)):o||null!=(u=Vt(n,a))&&i.push(od(n,u,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var ld=/\r\n?/g,ud=/\u0000|\uFFFD/g;function cd(e){return("string"==typeof e?e:""+e).replace(ld,"\n").replace(ud,"")}function dd(e,t){return t=cd(t),cd(e)===t}function fd(e,t,n,o,a,i){switch(n){case"children":"string"==typeof o?"body"===t||"textarea"===t&&""===o||Et(e,o):("number"==typeof o||"bigint"==typeof o)&&"body"!==t&&Et(e,""+o);break;case"className":dt(e,"class",o);break;case"tabIndex":dt(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":dt(e,n,o);break;case"style":Nt(e,o,i);break;case"data":if("object"!==t){dt(e,"data",o);break}case"src":case"href":if(""===o&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==o||"function"==typeof o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Dt(""+o),e.setAttribute(n,o);break;case"action":case"formAction":if("function"==typeof o){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof i&&("formAction"===n?("input"!==t&&fd(e,t,"name",a.name,a,null),fd(e,t,"formEncType",a.formEncType,a,null),fd(e,t,"formMethod",a.formMethod,a,null),fd(e,t,"formTarget",a.formTarget,a,null)):(fd(e,t,"encType",a.encType,a,null),fd(e,t,"method",a.method,a,null),fd(e,t,"target",a.target,a,null))),null==o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Dt(""+o),e.setAttribute(n,o);break;case"onClick":null!=o&&(e.onclick=Mt);break;case"onScroll":null!=o&&Zc("scroll",e);break;case"onScrollEnd":null!=o&&Zc("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=a.children)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"muted":e.muted=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==o||"function"==typeof o||"boolean"==typeof o||"symbol"==typeof o){e.removeAttribute("xlink:href");break}n=Dt(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""+o):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===o?e.setAttribute(n,""):!1!==o&&null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,o):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&!isNaN(o)&&1<=o?e.setAttribute(n,o):e.removeAttribute(n);break;case"rowSpan":case"start":null==o||"function"==typeof o||"symbol"==typeof o||isNaN(o)?e.removeAttribute(n):e.setAttribute(n,o);break;case"popover":Zc("beforetoggle",e),Zc("toggle",e),ct(e,"popover",o);break;case"xlinkActuate":ft(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":ft(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":ft(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":ft(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":ft(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":ft(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":ft(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":ft(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":ft(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ct(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&ct(e,n=Pt.get(n)||n,o)}}function pd(e,t,n,o,a,i){switch(n){case"style":Nt(e,o,i);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=a.children)throw Error(r(60));e.innerHTML=n}}break;case"children":"string"==typeof o?Et(e,o):("number"==typeof o||"bigint"==typeof o)&&Et(e,""+o);break;case"onScroll":null!=o&&Zc("scroll",e);break;case"onScrollEnd":null!=o&&Zc("scrollend",e);break;case"onClick":null!=o&&(e.onclick=Mt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:ot.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),"function"==typeof(i=null!=(i=e[Ue]||null)?i[n]:null)&&e.removeEventListener(t,i,a),"function"!=typeof o)?n in e?e[n]=o:!0===o?e.setAttribute(n,""):ct(e,n,o):("function"!=typeof i&&null!==i&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,o,a)))}}function hd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Zc("error",e),Zc("load",e);var o,a=!1,i=!1;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(null!=s)switch(o){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:fd(e,t,o,s,n,null)}}return i&&fd(e,t,"srcSet",n.srcSet,n,null),void(a&&fd(e,t,"src",n.src,n,null));case"input":Zc("invalid",e);var l=o=s=i=null,u=null,c=null;for(a in n)if(n.hasOwnProperty(a)){var d=n[a];if(null!=d)switch(a){case"name":i=d;break;case"type":s=d;break;case"checked":u=d;break;case"defaultChecked":c=d;break;case"value":o=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(r(137,t));break;default:fd(e,t,a,d,n,null)}}return void xt(e,o,l,u,c,s,i,!1);case"select":for(i in Zc("invalid",e),a=s=o=null,n)if(n.hasOwnProperty(i)&&null!=(l=n[i]))switch(i){case"value":o=l;break;case"defaultValue":s=l;break;case"multiple":a=l;default:fd(e,t,i,l,n,null)}return t=o,n=s,e.multiple=!!a,void(null!=t?Ct(e,!!a,t,!1):null!=n&&Ct(e,!!a,n,!0));case"textarea":for(s in Zc("invalid",e),o=i=a=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":a=l;break;case"defaultValue":i=l;break;case"children":o=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(r(91));break;default:fd(e,t,s,l,n,null)}return void _t(e,a,i,o);case"option":for(u in n)if(n.hasOwnProperty(u)&&null!=(a=n[u]))if("selected"===u)e.selected=a&&"function"!=typeof a&&"symbol"!=typeof a;else fd(e,t,u,a,n,null);return;case"dialog":Zc("beforetoggle",e),Zc("toggle",e),Zc("cancel",e),Zc("close",e);break;case"iframe":case"object":Zc("load",e);break;case"video":case"audio":for(a=0;a<Kc.length;a++)Zc(Kc[a],e);break;case"image":Zc("error",e),Zc("load",e);break;case"details":Zc("toggle",e);break;case"embed":case"source":case"link":Zc("error",e),Zc("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(a=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:fd(e,t,c,a,n,null)}return;default:if(Rt(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(a=n[d])&&pd(e,t,d,a,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(a=n[l])&&fd(e,t,l,a,n,null))}function md(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var gd=null,yd=null;function vd(e){return 9===e.nodeType?e:e.ownerDocument}function bd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function xd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Sd=null;var Cd="function"==typeof setTimeout?setTimeout:void 0,kd="function"==typeof clearTimeout?clearTimeout:void 0,_d="function"==typeof Promise?Promise:void 0,Ed="function"==typeof queueMicrotask?queueMicrotask:void 0!==_d?function(e){return _d.resolve(null).then(e).catch(jd)}:Cd;function jd(e){setTimeout(function(){throw e})}function Od(e){return"head"===e}function Nd(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)||"/&"===n){if(0===r)return e.removeChild(o),void qf(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)$d(e.ownerDocument.documentElement);else if("head"===n){$d(n=e.ownerDocument.head);for(var a=n.firstChild;a;){var i=a.nextSibling,s=a.nodeName;a[Qe]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===a.rel.toLowerCase()||n.removeChild(a),a=i}}else"body"===n&&$d(e.ownerDocument.body);n=o}while(n);qf(t)}function Rd(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function Pd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Pd(n),Xe(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Td(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Id(e.nextSibling)))return null}return e}function Dd(e){return"$?"===e.data||"$~"===e.data}function Md(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Id(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||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Ad=null;function Fd(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Id(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Ld(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function zd(e,t,n){switch(t=vd(n),e){case"html":if(!(e=t.documentElement))throw Error(r(452));return e;case"head":if(!(e=t.head))throw Error(r(453));return e;case"body":if(!(e=t.body))throw Error(r(454));return e;default:throw Error(r(451))}}function $d(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Xe(e)}var Hd=new Map,Vd=new Set;function Bd(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Ud=F.d;F.d={f:function(){var e=Ud.f(),t=tc();return e||t},r:function(e){var t=Je(e);null!==t&&5===t.tag&&"form"===t.type?as(t):Ud.r(e)},D:function(e){Ud.D(e),Yd("dns-prefetch",e,null)},C:function(e,t){Ud.C(e,t),Yd("preconnect",e,t)},L:function(e,t,n){Ud.L(e,t,n);var r=Wd;if(r&&e&&t){var o='link[rel="preload"][as="'+bt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+bt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(o+='[imagesizes="'+bt(n.imageSizes)+'"]')):o+='[href="'+bt(e)+'"]';var a=o;switch(t){case"style":a=Gd(e);break;case"script":a=Xd(e)}Hd.has(a)||(e=c({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Hd.set(a,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(Kd(a))||"script"===t&&r.querySelector(Zd(a))||(hd(t=r.createElement("link"),"link",e),nt(t),r.head.appendChild(t)))}},m:function(e,t){Ud.m(e,t);var n=Wd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+bt(r)+'"][href="'+bt(e)+'"]',a=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=Xd(e)}if(!Hd.has(a)&&(e=c({rel:"modulepreload",href:e},t),Hd.set(a,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Zd(a)))return}hd(r=n.createElement("link"),"link",e),nt(r),n.head.appendChild(r)}}},X:function(e,t){Ud.X(e,t);var n=Wd;if(n&&e){var r=tt(n).hoistableScripts,o=Xd(e),a=r.get(o);a||((a=n.querySelector(Zd(o)))||(e=c({src:e,async:!0},t),(t=Hd.get(o))&&nf(e,t),nt(a=n.createElement("script")),hd(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(o,a))}},S:function(e,t,n){Ud.S(e,t,n);var r=Wd;if(r&&e){var o=tt(r).hoistableStyles,a=Gd(e);t=t||"default";var i=o.get(a);if(!i){var s={loading:0,preload:null};if(i=r.querySelector(Kd(a)))s.loading=5;else{e=c({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Hd.get(a))&&tf(e,n);var l=i=r.createElement("link");nt(l),hd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,ef(i,t,r)}i={type:"stylesheet",instance:i,count:1,state:s},o.set(a,i)}}},M:function(e,t){Ud.M(e,t);var n=Wd;if(n&&e){var r=tt(n).hoistableScripts,o=Xd(e),a=r.get(o);a||((a=n.querySelector(Zd(o)))||(e=c({src:e,async:!0,type:"module"},t),(t=Hd.get(o))&&nf(e,t),nt(a=n.createElement("script")),hd(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(o,a))}}};var Wd="undefined"==typeof document?null:document;function Yd(e,t,n){var r=Wd;if(r&&"string"==typeof t&&t){var o=bt(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof n&&(o+='[crossorigin="'+n+'"]'),Vd.has(o)||(Vd.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(hd(t=r.createElement("link"),"link",e),nt(t),r.head.appendChild(t)))}}function qd(e,t,n,o){var a,i,s,l,u=(u=G.current)?Bd(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Gd(n.href),(o=(n=tt(u).hoistableStyles).get(t))||(o={type:"style",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Gd(n.href);var c=tt(u).hoistableStyles,d=c.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=u.querySelector(Kd(e)))&&!c._p&&(d.instance=c,d.state.loading=5),Hd.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Hd.set(e,n),c||(a=u,i=e,s=n,l=d.state,a.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=a.createElement("link"),l.preload=i,i.addEventListener("load",function(){return l.loading|=1}),i.addEventListener("error",function(){return l.loading|=2}),hd(i,"link",s),nt(i),a.head.appendChild(i))))),t&&null===o)throw Error(r(528,""));return d}if(t&&null!==o)throw Error(r(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Xd(n),(o=(n=tt(u).hoistableScripts).get(t))||(o={type:"script",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Gd(e){return'href="'+bt(e)+'"'}function Kd(e){return'link[rel="stylesheet"]['+e+"]"}function Qd(e){return c({},e,{"data-precedence":e.precedence,precedence:null})}function Xd(e){return'[src="'+bt(e)+'"]'}function Zd(e){return"script[async]"+e}function Jd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+bt(n.href)+'"]');if(o)return t.instance=o,nt(o),o;var a=c({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return nt(o=(e.ownerDocument||e).createElement("style")),hd(o,"style",a),ef(o,n.precedence,e),t.instance=o;case"stylesheet":a=Gd(n.href);var i=e.querySelector(Kd(a));if(i)return t.state.loading|=4,t.instance=i,nt(i),i;o=Qd(n),(a=Hd.get(a))&&tf(o,a),nt(i=(e.ownerDocument||e).createElement("link"));var s=i;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),hd(i,"link",o),t.state.loading|=4,ef(i,n.precedence,e),t.instance=i;case"script":return i=Xd(n.src),(a=e.querySelector(Zd(i)))?(t.instance=a,nt(a),a):(o=n,(a=Hd.get(i))&&nf(o=c({},n),a),nt(a=(e=e.ownerDocument||e).createElement("script")),hd(a,"link",o),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(r(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(o=t.instance,t.state.loading|=4,ef(o,n.precedence,e));return t.instance}function ef(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,a=o,i=0;i<r.length;i++){var s=r[i];if(s.dataset.precedence===t)a=s;else if(a!==o)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function tf(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function nf(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var rf=null;function of(e,t,n){if(null===rf){var r=new Map,o=rf=new Map;o.set(n,r)}else(r=(o=rf).get(n))||(r=new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var a=n[o];if(!(a[Qe]||a[Be]||"link"===e&&"stylesheet"===a.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==a.namespaceURI){var i=a.getAttribute(t)||"";i=e+i;var s=r.get(i);s?s.push(a):r.set(i,[a])}}return r}function af(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function sf(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var lf=0;function uf(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)df(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var cf=null;function df(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,cf=new Map,t.forEach(ff,e),cf=null,uf.call(e))}function ff(e,t){if(!(4&t.state.loading)){var n=cf.get(e);if(n)var r=n.get(null);else{n=new Map,cf.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<o.length;a++){var i=o[a];"LINK"!==i.nodeName&&"not all"===i.getAttribute("media")||(n.set(i.dataset.precedence,i),r=i)}r&&n.set(null,r)}i=(o=t.instance).getAttribute("data-precedence"),(a=n.get(i)||r)===r&&n.set(null,o),n.set(i,o),this.count++,r=uf.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),a?a.parentNode.insertBefore(o,a.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}var pf={$$typeof:x,Provider:null,Consumer:null,_currentValue:L,_currentValue2:L,_threadCount:0};function hf(e,t,n,r,o,a,i,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=De(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=De(0),this.hiddenUpdates=De(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=a,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function mf(e,t,n,r,o,a,i,s,l,u,c,d){return e=new hf(e,t,n,i,l,u,c,d,s),t=1,!0===a&&(t|=24),a=$r(3,null,null,t),e.current=a,a.stateNode=e,(t=Vo()).refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},ba(a),e}function gf(e){return e?e=Lr:Lr}function yf(e,t,n,r,o,a){o=gf(o),null===r.context?r.context=o:r.pendingContext=o,(r=xa(t)).payload={element:n},null!==(a=void 0===a?null:a)&&(r.callback=a),null!==(n=Sa(e,r,t))&&(Qu(n,0,t),Ca(n,e,t))}function vf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function bf(e,t){vf(e,t),(e=e.alternate)&&vf(e,t)}function wf(e){if(13===e.tag||31===e.tag){var t=Ir(e,67108864);null!==t&&Qu(t,0,67108864),bf(e,67108864)}}function xf(e){if(13===e.tag||31===e.tag){var t=Gu(),n=Ir(e,t=Le(t));null!==n&&Qu(n,0,t),bf(e,t)}}var Sf=!0;function Cf(e,t,n,r){var o=A.T;A.T=null;var a=F.p;try{F.p=2,_f(e,t,n,r)}finally{F.p=a,A.T=o}}function kf(e,t,n,r){var o=A.T;A.T=null;var a=F.p;try{F.p=8,_f(e,t,n,r)}finally{F.p=a,A.T=o}}function _f(e,t,n,r){if(Sf){var o=Ef(r);if(null===o)rd(e,t,r,jf,n),Lf(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Pf=zf(Pf,e,t,n,r,o),!0;case"dragenter":return Tf=zf(Tf,e,t,n,r,o),!0;case"mouseover":return Df=zf(Df,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Mf.set(a,zf(Mf.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,If.set(a,zf(If.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Lf(e,r),4&t&&-1<Ff.indexOf(e)){for(;null!==o;){var a=Je(o);if(null!==a)switch(a.tag){case 3:if((a=a.stateNode).current.memoizedState.isDehydrated){var i=Oe(a.pendingLanes);if(0!==i){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;i;){var l=1<<31-Se(i);s.entanglements[1]|=l,i&=~l}Fc(a),!(6&mu)&&(Au=ce()+500,Lc(0))}}break;case 31:case 13:null!==(s=Ir(a,2))&&Qu(s,0,2),tc(),bf(a,2)}if(null===(a=Ef(r))&&rd(e,t,r,jf,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else rd(e,t,r,null,n)}}function Ef(e){return Of(e=At(e))}var jf=null;function Of(e){if(jf=null,null!==(e=Ze(e))){var t=a(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=i(t)))return e;e=null}else if(31===n){if(null!==(e=s(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 jf=e,null}function Nf(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(de()){case fe:return 2;case pe:return 8;case he:case me:return 32;case ge:return 268435456;default:return 32}default:return 32}}var Rf=!1,Pf=null,Tf=null,Df=null,Mf=new Map,If=new Map,Af=[],Ff="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".split(" ");function Lf(e,t){switch(e){case"focusin":case"focusout":Pf=null;break;case"dragenter":case"dragleave":Tf=null;break;case"mouseover":case"mouseout":Df=null;break;case"pointerover":case"pointerout":Mf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":If.delete(t.pointerId)}}function zf(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=Je(t))&&wf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function $f(e){var t=Ze(e.target);if(null!==t){var n=a(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=i(n)))return e.blockedOn=t,void He(e.priority,function(){xf(n)})}else if(31===t){if(null!==(t=s(n)))return e.blockedOn=t,void He(e.priority,function(){xf(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 Hf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ef(e.nativeEvent);if(null!==n)return null!==(t=Je(n))&&wf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);It=r,n.target.dispatchEvent(r),It=null,t.shift()}return!0}function Vf(e,t,n){Hf(e)&&n.delete(t)}function Bf(){Rf=!1,null!==Pf&&Hf(Pf)&&(Pf=null),null!==Tf&&Hf(Tf)&&(Tf=null),null!==Df&&Hf(Df)&&(Df=null),Mf.forEach(Vf),If.forEach(Vf)}function Uf(t,n){t.blockedOn===n&&(t.blockedOn=null,Rf||(Rf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Bf)))}var Wf=null;function Yf(t){Wf!==t&&(Wf=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Wf===t&&(Wf=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],o=t[e+2];if("function"!=typeof r){if(null===Of(r||n))continue;break}var a=Je(n);null!==a&&(t.splice(e,3),e-=3,rs(a,{pending:!0,data:o,method:n.method,action:r},r,o))}}))}function qf(e){function t(t){return Uf(t,e)}null!==Pf&&Uf(Pf,e),null!==Tf&&Uf(Tf,e),null!==Df&&Uf(Df,e),Mf.forEach(t),If.forEach(t);for(var n=0;n<Af.length;n++){var r=Af[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Af.length&&null===(n=Af[0]).blockedOn;)$f(n),null===n.blockedOn&&Af.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],a=n[r+1],i=o[Ue]||null;if("function"==typeof a)i||Yf(n);else if(i){var s=null;if(a&&a.hasAttribute("formAction")){if(o=a,i=a[Ue]||null)s=i.formAction;else if(null!==Of(o))continue}else s=i.action;"function"==typeof s?n[r+1]=s:(n.splice(r,3),r-=3),Yf(n)}}}function Gf(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return o=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==o&&(o(),o=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==o&&(o(),o=null)}}}function Kf(e){this._internalRoot=e}function Qf(e){this._internalRoot=e}Qf.prototype.render=Kf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));yf(t.current,Gu(),e,t,null,null)},Qf.prototype.unmount=Kf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;yf(e.current,2,null,e,null,null),tc(),t[We]=null}},Qf.prototype.unstable_scheduleHydration=function(e){if(e){var t=$e();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Af.length&&0!==t&&t<Af[n].priority;n++);Af.splice(n,0,e),0===n&&$f(e)}};var Xf=t.version;if("19.2.0"!==Xf)throw Error(r(527,Xf,"19.2.0"));F.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=a(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,o=t;;){var i=n.return;if(null===i)break;var s=i.alternate;if(null===s){if(null!==(o=i.return)){n=o;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return l(i),e;if(s===o)return l(i),t;s=s.sibling}throw Error(r(188))}if(n.return!==o.return)n=i,o=s;else{for(var u=!1,c=i.child;c;){if(c===n){u=!0,n=i,o=s;break}if(c===o){u=!0,o=i,n=s;break}c=c.sibling}if(!u){for(c=s.child;c;){if(c===n){u=!0,n=s,o=i;break}if(c===o){u=!0,o=s,n=i;break}c=c.sibling}if(!u)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?u(e):null)?null:e.stateNode};var Zf={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.0"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Jf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jf.isDisabled&&Jf.supportsFiber)try{be=Jf.inject(Zf),we=Jf}catch(e){}}return y.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,a="",i=Es,s=js,l=Os;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onUncaughtError&&(i=t.onUncaughtError),void 0!==t.onCaughtError&&(s=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError)),t=mf(e,1,!1,null,0,n,a,null,i,s,l,Gf),e[We]=t.current,td(e),new Kf(t)},y.hydrateRoot=function(e,t,n){if(!o(e))throw Error(r(299));var a=!1,i="",s=Es,l=js,u=Os,c=null;return null!=n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onUncaughtError&&(s=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(u=n.onRecoverableError),void 0!==n.formState&&(c=n.formState)),(t=mf(e,1,!0,t,0,a,i,c,s,l,u,Gf)).context=gf(null),n=t.current,(i=xa(a=Le(a=Gu()))).callback=null,Sa(n,i,a),n=a,t.current.lanes=n,Me(t,n),Fc(t),e[We]=t.current,td(e),new Qf(t)},y.version="19.2.0",y}var R,P,T=n((k||(k=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),g.exports=N()),g.exports)),D=f(),M=n(D),I=t({__proto__:null,default:M},[D]),A={exports:{}},F={};var L=(P||(P=1,A.exports=function(){if(R)return F;R=1;var e=f(),t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,r=e.useRef,o=e.useEffect,a=e.useMemo,i=e.useDebugValue;return F.useSyncExternalStoreWithSelector=function(e,s,l,u,c){var d=r(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=a(function(){function e(e){if(!o){if(o=!0,n=e,e=u(e),void 0!==c&&f.hasValue){var a=f.value;if(c(a,e))return r=a}return r=e}if(a=r,t(n,e))return a;var i=u(e);return void 0!==c&&c(a,i)?(n=e,a):(n=e,r=i)}var n,r,o=!1,a=void 0===l?null:l;return[function(){return e(s())},null===a?void 0:function(){return e(a())}]},[s,l,u,c]);var p=n(e,d[0],d[1]);return o(function(){f.hasValue=!0,f.value=p},[p]),i(p),p},F}()),A.exports);var z={notify(){},get:()=>[]};var $=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),H=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),V=(()=>$||H?D.useLayoutEffect:D.useEffect)(),B=Symbol.for("react-redux-context"),U="undefined"!=typeof globalThis?globalThis:{};function W(){if(!D.createContext)return{};const e=U[B]??=new Map;let t=e.get(D.createContext);return t||(t=D.createContext(null),e.set(D.createContext,t)),t}var Y=W();var q=function(e){const{children:t,context:n,serverState:r,store:o}=e,a=D.useMemo(()=>{const e=function(e){let t,n=z,r=0,o=!1;function a(){l.onStateChange&&l.onStateChange()}function i(){r++,t||(t=e.subscribe(a),n=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){(()=>{let t=e;for(;t;)t.callback(),t=t.next})()},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function s(){r--,t&&0===r&&(t(),t=void 0,n.clear(),n=z)}const l={addNestedSub:function(e){i();const t=n.subscribe(e);let r=!1;return()=>{r||(r=!0,t(),s())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,i())},tryUnsubscribe:function(){o&&(o=!1,s())},getListeners:()=>n};return l}(o);return{store:o,subscription:e,getServerState:r?()=>r:void 0}},[o,r]),i=D.useMemo(()=>o.getState(),[o]);V(()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,i]);const s=n||Y;return D.createElement(s.Provider,{value:a},t)};function G(e=Y){return function(){return D.useContext(e)}}var K=G();function Q(e=Y){const t=e===Y?K:G(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var X=Q();function Z(e=Y){const t=e===Y?X:Q(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var J=Z(),ee=(e,t)=>e===t;function te(e=Y){const t=e===Y?K:G(e),n=(e,n={})=>{const{equalityFn:r=ee}="function"==typeof n?{equalityFn:n}:n,o=t(),{store:a,subscription:i,getServerState:s}=o;D.useRef(!0);const l=D.useCallback({[e.name]:t=>e(t)}[e.name],[e]),u=L.useSyncExternalStoreWithSelector(i.addNestedSub,a.getState,s||a.getState,l,r);return D.useDebugValue(u),u};return Object.assign(n,{withTypes:()=>n}),n}var ne=te();function re(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var oe=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),ae=()=>Math.random().toString(36).substring(7).split("").join("."),ie={INIT:`@@redux/INIT${ae()}`,REPLACE:`@@redux/REPLACE${ae()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ae()}`};function se(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)}function le(e,t,n){if("function"!=typeof e)throw new Error(re(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(re(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(re(1));return n(le)(e,t)}let r=e,o=t,a=new Map,i=a,s=0,l=!1;function u(){i===a&&(i=new Map,a.forEach((e,t)=>{i.set(t,e)}))}function c(){if(l)throw new Error(re(3));return o}function d(e){if("function"!=typeof e)throw new Error(re(4));if(l)throw new Error(re(5));let t=!0;u();const n=s++;return i.set(n,e),function(){if(t){if(l)throw new Error(re(6));t=!1,u(),i.delete(n),a=null}}}function f(e){if(!se(e))throw new Error(re(7));if(void 0===e.type)throw new Error(re(8));if("string"!=typeof e.type)throw new Error(re(17));if(l)throw new Error(re(9));try{l=!0,o=r(o,e)}finally{l=!1}return(a=i).forEach(e=>{e()}),e}f({type:ie.INIT});return{dispatch:f,subscribe:d,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(re(10));r=e,f({type:ie.REPLACE})},[oe]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(re(11));function n(){const e=t;e.next&&e.next(c())}n();return{unsubscribe:e(n)}},[oe](){return this}}}}}function ue(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}const r=Object.keys(n);let o;try{!function(e){Object.keys(e).forEach(t=>{const n=e[t];if(void 0===n(void 0,{type:ie.INIT}))throw new Error(re(12));if(void 0===n(void 0,{type:ie.PROBE_UNKNOWN_ACTION()}))throw new Error(re(13))})}(n)}catch(e){o=e}return function(e={},t){if(o)throw o;let a=!1;const i={};for(let o=0;o<r.length;o++){const s=r[o],l=n[s],u=e[s],c=l(u,t);if(void 0===c)throw t&&t.type,new Error(re(14));i[s]=c,a=a||c!==u}return a=a||r.length!==Object.keys(e).length,a?i:e}}function ce(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}var de=Symbol.for("immer-nothing"),fe=Symbol.for("immer-draftable"),pe=Symbol.for("immer-state");function he(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var me=Object.getPrototypeOf;function ge(e){return!!e&&!!e[pe]}function ye(e){return!!e&&(we(e)||Array.isArray(e)||!!e[fe]||!!e.constructor?.[fe]||_e(e)||Ee(e))}var ve=Object.prototype.constructor.toString(),be=new WeakMap;function we(e){if(!e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if("function"!=typeof n)return!1;let r=be.get(n);return void 0===r&&(r=Function.toString.call(n),be.set(n,r)),r===ve}function xe(e,t,n=!0){if(0===Se(e)){(n?Reflect.ownKeys(e):Object.keys(e)).forEach(n=>{t(n,e[n],e)})}else e.forEach((n,r)=>t(r,n,e))}function Se(e){const t=e[pe];return t?t.type_:Array.isArray(e)?1:_e(e)?2:Ee(e)?3:0}function Ce(e,t){return 2===Se(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ke(e,t,n){const r=Se(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function _e(e){return e instanceof Map}function Ee(e){return e instanceof Set}function je(e){return e.copy_||e.base_}function Oe(e,t){if(_e(e))return new Map(e);if(Ee(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=we(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[pe];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const o=n[r],a=t[o];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(me(e),t)}{const t=me(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function Ne(e,t=!1){return Pe(e)||ge(e)||!ye(e)||(Se(e)>1&&Object.defineProperties(e,{set:Re,add:Re,clear:Re,delete:Re}),Object.freeze(e),t&&Object.values(e).forEach(e=>Ne(e,!0))),e}var Re={value:function(){he(2)}};function Pe(e){return null===e||"object"!=typeof e||Object.isFrozen(e)}var Te,De={};function Me(e){const t=De[e];return t||he(0),t}function Ie(){return Te}function Ae(e,t){t&&(Me("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Fe(e){Le(e),e.drafts_.forEach($e),e.drafts_=null}function Le(e){e===Te&&(Te=e.parent_)}function ze(e){return Te={drafts_:[],parent_:Te,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function $e(e){const t=e[pe];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function He(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[pe].modified_&&(Fe(t),he(4)),ye(e)&&(e=Ve(t,e),t.parent_||Ue(t,e)),t.patches_&&Me("Patches").generateReplacementPatches_(n[pe].base_,e,t.patches_,t.inversePatches_)):e=Ve(t,n,[]),Fe(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==de?e:void 0}function Ve(e,t,n){if(Pe(t))return t;const r=e.immer_.shouldUseStrictIteration(),o=t[pe];if(!o)return xe(t,(r,a)=>Be(e,o,t,r,a,n),r),t;if(o.scope_!==e)return t;if(!o.modified_)return Ue(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const t=o.copy_;let a=t,i=!1;3===o.type_&&(a=new Set(t),t.clear(),i=!0),xe(a,(r,a)=>Be(e,o,t,r,a,n,i),r),Ue(e,t,!1),n&&e.patches_&&Me("Patches").generatePatches_(o,n,e.patches_,e.inversePatches_)}return o.copy_}function Be(e,t,n,r,o,a,i){if(null==o)return;if("object"!=typeof o&&!i)return;const s=Pe(o);if(!s||i){if(ge(o)){const i=Ve(e,o,a&&t&&3!==t.type_&&!Ce(t.assigned_,r)?a.concat(r):void 0);if(ke(n,r,i),!ge(i))return;e.canAutoFreeze_=!1}else i&&n.add(o);if(ye(o)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;if(t&&t.base_&&t.base_[r]===o&&s)return;Ve(e,o),t&&t.scope_.parent_||"symbol"==typeof r||!(_e(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))||Ue(e,o)}}}function Ue(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ne(t,n)}var We={get(e,t){if(t===pe)return e;const n=je(e);if(!Ce(n,t))return function(e,t,n){const r=Ge(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!ye(r)?r:r===qe(e.base_,t)?(Qe(e),e.copy_[t]=Xe(r,e)):r},has:(e,t)=>t in je(e),ownKeys:e=>Reflect.ownKeys(je(e)),set(e,t,n){const r=Ge(je(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=qe(je(e),t),o=r?.[pe];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,r)&&(void 0!==n||Ce(e.base_,t)))return!0;Qe(e),Ke(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!==qe(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Qe(e),Ke(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=je(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){he(11)},getPrototypeOf:e=>me(e.base_),setPrototypeOf(){he(12)}},Ye={};function qe(e,t){const n=e[pe];return(n?je(n):e)[t]}function Ge(e,t){if(!(t in e))return;let n=me(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=me(n)}}function Ke(e){e.modified_||(e.modified_=!0,e.parent_&&Ke(e.parent_))}function Qe(e){e.copy_||(e.copy_=Oe(e.base_,e.scope_.immer_.useStrictShallowCopy_))}xe(We,(e,t)=>{Ye[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ye.deleteProperty=function(e,t){return Ye.set.call(this,e,t,void 0)},Ye.set=function(e,t,n){return We.set.call(this,e[0],t,n,e[0])};function Xe(e,t){const n=_e(e)?Me("MapSet").proxyMap_(e,t):Ee(e)?Me("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Ie(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,a=We;n&&(o=[r],a=Ye);const{revoke:i,proxy:s}=Proxy.revocable(o,a);return r.draft_=s,r.revoke_=i,s}(e,t);return(t?t.scope_:Ie()).drafts_.push(n),n}function Ze(e){if(!ye(e)||Pe(e))return e;const t=e[pe];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Oe(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Oe(e,!0);return xe(n,(e,t)=>{ke(n,e,Ze(t))},r),t&&(t.finalized_=!1),n}var Je=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,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&&he(6),void 0!==n&&"function"!=typeof n&&he(7),ye(e)){const o=ze(this),a=Xe(e,void 0);let i=!0;try{r=t(a),i=!1}finally{i?Fe(o):Le(o)}return Ae(o,n),He(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===de&&(r=void 0),this.autoFreeze_&&Ne(r,!0),n){const t=[],o=[];Me("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}he(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;const o=this.produce(e,t,(e,t)=>{n=e,r=t});return[o,n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){ye(e)||he(8),ge(e)&&(e=function(e){ge(e)||he(10);return Ze(e)}(e));const t=ze(this),n=Xe(e,void 0);return n[pe].isManual_=!0,Le(t),n}finishDraft(e,t){const n=e&&e[pe];n&&n.isManual_||he(9);const{scope_:r}=n;return Ae(r,t),He(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}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=Me("Patches").applyPatches_;return ge(e)?r(e,t):this.produce(e,e=>r(e,t))}},et=Je.produce,tt=Je.setUseStrictIteration.bind(Je);function nt(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}var rt=nt(),ot=nt,at="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ce:ce.apply(null,arguments)};function it(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(vt(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>function(e){return se(e)&&"type"in e&&"string"==typeof e.type}(t)&&t.type===e,n}var st=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function lt(e){return ye(e)?et(e,()=>{}):e}function ut(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var ct=e=>t=>{setTimeout(t,e)},dt=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new st(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,a=!1,i=!1;const s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:ct(10):"callback"===e.type?e.queueNotification:ct(e.timeout),u=()=>{i=!1,a&&(a=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){const t=r.subscribe(()=>o&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return o=!e?.meta?.RTK_autoBatch,a=!o,a&&(i||(i=!0,l(u))),r.dispatch(e)}finally{o=!0}}})})("object"==typeof n?n:void 0)),r};function ft(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(vt(28));if(r in t)throw new Error(vt(29));return t[r]=n,o},addAsyncThunk:(e,r)=>(r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),o),addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}tt(!1);var pt=Symbol.for("rtk-slice-createasyncthunk");function ht(e,t){return`${e}/${t}`}function mt({creators:e}={}){const t=e?.asyncThunk?.[pt];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(vt(11));const o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},a=Object.keys(o),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(vt(12));if(n in i.sliceCaseReducersByType)throw new Error(vt(13));return i.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(i.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(i.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(i.sliceCaseReducersByName[e]=t,s)};function l(){const[t={},n=[],r]="function"==typeof e.extraReducers?ft(e.extraReducers):[e.extraReducers],o={...t,...i.sliceCaseReducersByType};return function(e,t){let n,[r,o,a]=ft(t);if(function(e){return"function"==typeof e}(e))n=()=>lt(e());else{const t=lt(e);n=()=>t}function i(e=n(),t){let i=[r[t.type],...o.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===i.filter(e=>!!e).length&&(i=[a]),i.reduce((e,n)=>{if(n){if(ge(e)){const r=n(e,t);return void 0===r?e:r}if(ye(e))return et(e,e=>n(e,t));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}}return e},e)}return i.getInitialState=n,i}(e.initialState,e=>{for(let t in o)e.addCase(t,o[t]);for(let t of i.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}a.forEach(r=>{const a=o[r],i={reducerName:r,type:ht(n,r),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(a)?function({type:e,reducerName:t,createNotation:n},r,o){let a,i;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(vt(17));a=r.reducer,i=r.prepare}else a=r;o.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,i?it(e,i):it(e))}(i,a,s):function({type:e,reducerName:t},n,r,o){if(!o)throw new Error(vt(18));const{payloadCreator:a,fulfilled:i,pending:s,rejected:l,settled:u,options:c}=n,d=o(e,a,c);r.exposeAction(t,d),i&&r.addCase(d.fulfilled,i);s&&r.addCase(d.pending,s);l&&r.addCase(d.rejected,l);u&&r.addMatcher(d.settled,u);r.exposeCaseReducer(t,{fulfilled:i||yt,pending:s||yt,rejected:l||yt,settled:u||yt})}(i,a,s,t)});const u=e=>e,c=new Map,d=new WeakMap;let f;function p(e,t){return f||(f=l()),f(e,t)}function h(){return f||(f=l()),f.getInitialState()}function m(t,n=!1){function r(e){let o=e[t];return void 0===o&&n&&(o=ut(d,r,h)),o}function o(t=u){const r=ut(c,n,()=>new WeakMap);return ut(r,t,()=>{const r={};for(const[o,a]of Object.entries(e.selectors??{}))r[o]=gt(a,t,()=>ut(d,t,h),n);return r})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const g={name:n,reducer:p,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:h,...m(r),injectInto(e,{reducerPath:t,...n}={}){const o=t??r;return e.inject({reducerPath:o,reducer:p},n),{...g,...m(o,!0)}}};return g}}function gt(e,t,n,r){function o(o,...a){let i=t(o);return void 0===i&&r&&(i=n()),e(i,...a)}return o.unwrapped=e,o}function yt(){}function vt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const bt=mt()({name:"app",initialState:{currentPage:1,perview:10,inline_update:0},reducers:{setCurrentPage:(e,t)=>{e.currentPage=t.payload},setPerview:(e,t)=>{e.perview=t.payload},triggerUpdate:e=>{e.inline_update=e.inline_update+1}}}),{setCurrentPage:wt,setPerview:xt,triggerUpdate:St}=bt.actions;const Ct=function(e){const t=function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let a=new st;return t&&(function(e){return"boolean"==typeof e}(t)?a.push(rt):a.push(ot(t.extraArgument))),a},{reducer:n,middleware:r,devTools:o=!0,preloadedState:a,enhancers:i}=e||{};let s,l;if("function"==typeof n)s=n;else{if(!se(n))throw new Error(vt(1));s=ue(n)}l="function"==typeof r?r(t):t();let u=ce;o&&(u=at({trace:!1,..."object"==typeof o&&o}));const c=function(...e){return t=>(n,r)=>{const o=t(n,r);let a=()=>{throw new Error(re(15))};const i={getState:o.getState,dispatch:(e,...t)=>a(e,...t)},s=e.map(e=>e(i));return a=ce(...s)(o.dispatch),{...o,dispatch:a}}}(...l),d=dt(c);return le(s,a,u(..."function"==typeof i?i(d):d()))}({reducer:{app:bt.reducer}});var kt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},_t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Et=new class{#e=_t;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};var jt="undefined"==typeof window||"Deno"in globalThis;function Ot(){}function Nt(e){return"number"==typeof e&&e>=0&&e!==1/0}function Rt(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Pt(e,t){return"function"==typeof e?e(t):e}function Tt(e,t){return"function"==typeof e?e(t):e}function Dt(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:i,stale:s}=e;if(i)if(r){if(t.queryHash!==It(i,t.options))return!1}else if(!Ft(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((!o||o===t.state.fetchStatus)&&!(a&&!a(t)))}function Mt(e,t){const{exact:n,status:r,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(At(t.options.mutationKey)!==At(a))return!1}else if(!Ft(t.options.mutationKey,a))return!1}return(!r||t.state.status===r)&&!(o&&!o(t))}function It(e,t){return(t?.queryKeyHashFn||At)(e)}function At(e){return JSON.stringify(e,(e,t)=>Vt(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Ft(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(n=>Ft(e[n],t[n])))}var Lt=Object.prototype.hasOwnProperty;function zt(e,t){if(e===t)return e;const n=Ht(e)&&Ht(t);if(!(n||Vt(e)&&Vt(t)))return t;const r=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),a=o.length,i=n?new Array(a):{};let s=0;for(let l=0;l<a;l++){const a=n?l:o[l],u=e[a],c=t[a];if(u===c){i[a]=u,(n?l<r:Lt.call(e,a))&&s++;continue}if(null===u||null===c||"object"!=typeof u||"object"!=typeof c){i[a]=c;continue}const d=zt(u,c);i[a]=d,d===u&&s++}return r===a&&s===r?e:i}function $t(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ht(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Vt(e){if(!Bt(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Bt(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function Bt(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ut(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?zt(e,t):t}function Wt(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Yt(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var qt=Symbol();function Gt(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==qt?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function Kt(e,t){return"function"==typeof e?e(...t):!!e}var Qt=new class extends kt{#n;#r;#o;constructor(){super(),this.#o=e=>{if(!jt&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#r||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#o=e,this.#r?.(),this.#r=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#n!==e&&(this.#n=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#n?this.#n:"hidden"!==globalThis.document?.visibilityState}};function Xt(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}var Zt=function(e){setTimeout(e,0)};var Jt=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=Zt;const a=r=>{t?e.push(r):o(()=>{n(r)})};return{batch:a=>{let i;t++;try{i=a()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{r(()=>{t.forEach(e=>{n(e)})})})})()}return i},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{o=e}}}(),en=new class extends kt{#a=!0;#r;#o;constructor(){super(),this.#o=e=>{if(!jt&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#r||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#o=e,this.#r?.(),this.#r=e(this.setOnline.bind(this))}setOnline(e){this.#a!==e&&(this.#a=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#a}};function tn(e){return Math.min(1e3*2**e,3e4)}function nn(e){return"online"!==(e??"online")||en.isOnline()}var rn=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function on(e){let t,n=!1,r=0;const o=Xt(),a=()=>"pending"!==o.status,i=()=>Qt.isFocused()&&("always"===e.networkMode||en.isOnline())&&e.canRun(),s=()=>nn(e.networkMode)&&e.canRun(),l=e=>{a()||(t?.(),o.resolve(e))},u=e=>{a()||(t?.(),o.reject(e))},c=()=>new Promise(n=>{t=e=>{(a()||i())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,a()||e.onContinue?.()}),d=()=>{if(a())return;let t;const o=0===r?e.initialPromise:void 0;try{t=o??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(l).catch(t=>{if(a())return;const o=e.retry??(jt?0:3),s=e.retryDelay??tn,l="function"==typeof s?s(r,t):s,f=!0===o||"number"==typeof o&&r<o||"function"==typeof o&&o(r,t);var p;!n&&f?(r++,e.onFail?.(r,t),(p=l,new Promise(e=>{Et.setTimeout(e,p)})).then(()=>i()?void 0:c()).then(()=>{n?u(t):d()})):u(t)})};return{promise:o,status:()=>o.status,cancel:t=>{if(!a()){const n=new rn(t);u(n),e.onCancel?.(n)}},continue:()=>(t?.(),o),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:s,start:()=>(s()?d():c().then(d),o)}}var an=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Nt(this.gcTime)&&(this.#i=Et.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(jt?1/0:3e5))}clearGcTimeout(){this.#i&&(Et.clearTimeout(this.#i),this.#i=void 0)}},sn=class extends an{#s;#l;#u;#c;#d;#f;#p;constructor(e){super(),this.#p=!1,this.#f=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#c=e.client,this.#u=this.#c.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#s=cn(this.options),this.state=e.state??this.#s,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#d?.promise}setOptions(e){if(this.options={...this.#f,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=cn(this.options);void 0!==e.data&&(this.setState(un(e.data,e.dataUpdatedAt)),this.#s=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#u.remove(this)}setData(e,t){const n=Ut(this.state.data,e,this.options);return this.#h({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#h({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#d?.promise;return this.#d?.cancel(e),t?t.then(Ot).catch(Ot):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#s)}isActive(){return this.observers.some(e=>!1!==Tt(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===qt||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===Pt(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!Rt(this.state.dataUpdatedAt,e))}onFocus(){const e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#d?.continue()}onOnline(){const e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#d?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#u.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#d&&(this.#p?this.#d.cancel({revert:!0}):this.#d.cancelRetry()),this.scheduleGc()),this.#u.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#h({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#d?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#d)return this.#d.continueRetry(),this.#d.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#p=!0,n.signal)})},o=()=>{const e=Gt(this.options,t),n=(()=>{const e={client:this.#c,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#p=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#c,state:this.state,fetchFn:o};return r(e),e})();this.options.behavior?.onFetch(a,this),this.#l=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===a.fetchOptions?.meta||this.#h({type:"fetch",meta:a.fetchOptions?.meta}),this.#d=on({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof rn&&e.revert&&this.setState({...this.#l,fetchStatus:"idle"}),n.abort()},onFail:(e,t)=>{this.#h({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#h({type:"pause"})},onContinue:()=>{this.#h({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{const e=await this.#d.start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#u.config.onSuccess?.(e,this),this.#u.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof rn){if(e.silent)return this.#d.promise;if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#h({type:"error",error:e}),this.#u.config.onError?.(e,this),this.#u.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#h(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...ln(t.data,this.options),fetchMeta:e.meta??null};case"success":const n={...t,...un(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#l=e.manual?n:void 0,n;case"error":const r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Jt.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#u.notify({query:this,type:"updated",action:e})})}};function ln(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:nn(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function un(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function cn(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var dn=class extends kt{constructor(e,t){super(),this.options=t,this.#c=e,this.#m=null,this.#g=Xt(),this.bindMethods(),this.setOptions(t)}#c;#y=void 0;#v=void 0;#b=void 0;#w;#x;#g;#m;#S;#C;#k;#_;#E;#j;#O=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#y.addObserver(this),fn(this.#y,this.options)?this.#N():this.updateResult(),this.#R())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return pn(this.#y,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return pn(this.#y,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#P(),this.#T(),this.#y.removeObserver(this)}setOptions(e){const t=this.options,n=this.#y;if(this.options=this.#c.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof Tt(this.options.enabled,this.#y))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#D(),this.#y.setOptions(this.options),t._defaulted&&!$t(this.options,t)&&this.#c.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#y,observer:this});const r=this.hasListeners();r&&hn(this.#y,n,this.options,t)&&this.#N(),this.updateResult(),!r||this.#y===n&&Tt(this.options.enabled,this.#y)===Tt(t.enabled,this.#y)&&Pt(this.options.staleTime,this.#y)===Pt(t.staleTime,this.#y)||this.#M();const o=this.#I();!r||this.#y===n&&Tt(this.options.enabled,this.#y)===Tt(t.enabled,this.#y)&&o===this.#j||this.#A(o)}getOptimisticResult(e){const t=this.#c.getQueryCache().build(this.#c,e),n=this.createResult(t,e);return function(e,t){if(!$t(e.getCurrentResult(),t))return!0;return!1}(this,n)&&(this.#b=n,this.#x=this.options,this.#w=this.#y.state),n}getCurrentResult(){return this.#b}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),"promise"===n&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#g.status||this.#g.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,n))})}trackProp(e){this.#O.add(e)}getCurrentQuery(){return this.#y}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#c.defaultQueryOptions(e),n=this.#c.getQueryCache().build(this.#c,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#N({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#b))}#N(e){this.#D();let t=this.#y.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Ot)),t}#M(){this.#P();const e=Pt(this.options.staleTime,this.#y);if(jt||this.#b.isStale||!Nt(e))return;const t=Rt(this.#b.dataUpdatedAt,e)+1;this.#_=Et.setTimeout(()=>{this.#b.isStale||this.updateResult()},t)}#I(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#y):this.options.refetchInterval)??!1}#A(e){this.#T(),this.#j=e,!jt&&!1!==Tt(this.options.enabled,this.#y)&&Nt(this.#j)&&0!==this.#j&&(this.#E=Et.setInterval(()=>{(this.options.refetchIntervalInBackground||Qt.isFocused())&&this.#N()},this.#j))}#R(){this.#M(),this.#A(this.#I())}#P(){this.#_&&(Et.clearTimeout(this.#_),this.#_=void 0)}#T(){this.#E&&(Et.clearInterval(this.#E),this.#E=void 0)}createResult(e,t){const n=this.#y,r=this.options,o=this.#b,a=this.#w,i=this.#x,s=e!==n?e.state:this.#v,{state:l}=e;let u,c={...l},d=!1;if(t._optimisticResults){const o=this.hasListeners(),a=!o&&fn(e,t),i=o&&hn(e,n,t,r);(a||i)&&(c={...c,...ln(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(c.fetchStatus="idle")}let{error:f,errorUpdatedAt:p,status:h}=c;u=c.data;let m=!1;if(void 0!==t.placeholderData&&void 0===u&&"pending"===h){let e;o?.isPlaceholderData&&t.placeholderData===i?.placeholderData?(e=o.data,m=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#k?.state.data,this.#k):t.placeholderData,void 0!==e&&(h="success",u=Ut(o?.data,e,t),d=!0)}if(t.select&&void 0!==u&&!m)if(o&&u===a?.data&&t.select===this.#S)u=this.#C;else try{this.#S=t.select,u=t.select(u),u=Ut(o?.data,u,t),this.#C=u,this.#m=null}catch(e){this.#m=e}this.#m&&(f=this.#m,u=this.#C,p=Date.now(),h="error");const g="fetching"===c.fetchStatus,y="pending"===h,v="error"===h,b=y&&g,w=void 0!==u,x={status:h,fetchStatus:c.fetchStatus,isPending:y,isSuccess:"success"===h,isError:v,isInitialLoading:b,isLoading:b,data:u,dataUpdatedAt:c.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>s.dataUpdateCount||c.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!y,isLoadingError:v&&!w,isPaused:"paused"===c.fetchStatus,isPlaceholderData:d,isRefetchError:v&&w,isStale:mn(e,t),refetch:this.refetch,promise:this.#g,isEnabled:!1!==Tt(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===x.status?e.reject(x.error):void 0!==x.data&&e.resolve(x.data)},r=()=>{const e=this.#g=x.promise=Xt();t(e)},o=this.#g;switch(o.status){case"pending":e.queryHash===n.queryHash&&t(o);break;case"fulfilled":"error"!==x.status&&x.data===o.value||r();break;case"rejected":"error"===x.status&&x.error===o.reason||r()}}return x}updateResult(){const e=this.#b,t=this.createResult(this.#y,this.options);if(this.#w=this.#y.state,this.#x=this.options,void 0!==this.#w.data&&(this.#k=this.#y),$t(t,e))return;this.#b=t;this.#F({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,n="function"==typeof t?t():t;if("all"===n||!n&&!this.#O.size)return!0;const r=new Set(n??this.#O);return this.options.throwOnError&&r.add("error"),Object.keys(this.#b).some(t=>{const n=t;return this.#b[n]!==e[n]&&r.has(n)})})()})}#D(){const e=this.#c.getQueryCache().build(this.#c,this.options);if(e===this.#y)return;const t=this.#y;this.#y=e,this.#v=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#R()}#F(e){Jt.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#b)}),this.#c.getQueryCache().notify({query:this.#y,type:"observerResultsUpdated"})})}};function fn(e,t){return function(e,t){return!1!==Tt(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&pn(e,t,t.refetchOnMount)}function pn(e,t,n){if(!1!==Tt(t.enabled,e)&&"static"!==Pt(t.staleTime,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&mn(e,t)}return!1}function hn(e,t,n,r){return(e!==t||!1===Tt(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&mn(e,n)}function mn(e,t){return!1!==Tt(t.enabled,e)&&e.isStaleByTime(Pt(t.staleTime,e))}function gn(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],i=t.state.data?.pageParams||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let n=!1;const u=Gt(t.options,t.fetchOptions),c=async(e,r,o)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const a=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:o?"backward":"forward",meta:t.options.meta};var a;return a=e,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)}),e})(),i=await u(a),{maxPages:s}=t.options,l=o?Yt:Wt;return{pages:l(e.pages,i,s),pageParams:l(e.pageParams,r,s)}};if(o&&a.length){const e="backward"===o,t={pages:a,pageParams:i},n=(e?vn:yn)(r,t);s=await c(t,n,e)}else{const t=e??a.length;do{const e=0===l?i[0]??r.initialPageParam:yn(r,s);if(l>0&&null==e)break;s=await c(s,e),l++}while(l<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=u}}}function yn(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function vn(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var bn=class extends an{#c;#L;#z;#d;constructor(e){super(),this.#c=e.client,this.mutationId=e.mutationId,this.#z=e.mutationCache,this.#L=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#L.includes(e)||(this.#L.push(e),this.clearGcTimeout(),this.#z.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#L=this.#L.filter(t=>t!==e),this.scheduleGc(),this.#z.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#L.length||("pending"===this.state.status?this.scheduleGc():this.#z.remove(this))}continue(){return this.#d?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#h({type:"continue"})},n={client:this.#c,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#d=on({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#h({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#h({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#z.canRun(this)});const r="pending"===this.state.status,o=!this.#d.canStart();try{if(r)t();else{this.#h({type:"pending",variables:e,isPaused:o}),await(this.#z.config.onMutate?.(e,this,n));const t=await(this.options.onMutate?.(e,n));t!==this.state.context&&this.#h({type:"pending",context:t,variables:e,isPaused:o})}const a=await this.#d.start();return await(this.#z.config.onSuccess?.(a,e,this.state.context,this,n)),await(this.options.onSuccess?.(a,e,this.state.context,n)),await(this.#z.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n)),await(this.options.onSettled?.(a,null,e,this.state.context,n)),this.#h({type:"success",data:a}),a}catch(t){try{throw await(this.#z.config.onError?.(t,e,this.state.context,this,n)),await(this.options.onError?.(t,e,this.state.context,n)),await(this.#z.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)),await(this.options.onSettled?.(void 0,t,e,this.state.context,n)),t}finally{this.#h({type:"error",error:t})}}finally{this.#z.runNext(this)}}#h(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Jt.batch(()=>{this.#L.forEach(t=>{t.onMutationUpdate(e)}),this.#z.notify({mutation:this,type:"updated",action:e})})}};var wn=class extends kt{constructor(e={}){super(),this.config=e,this.#$=new Set,this.#H=new Map,this.#V=0}#$;#H;#V;build(e,t,n){const r=new bn({client:e,mutationCache:this,mutationId:++this.#V,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#$.add(e);const t=xn(e);if("string"==typeof t){const n=this.#H.get(t);n?n.push(e):this.#H.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#$.delete(e)){const t=xn(e);if("string"==typeof t){const n=this.#H.get(t);if(n)if(n.length>1){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#H.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=xn(e);if("string"==typeof t){const n=this.#H.get(t),r=n?.find(e=>"pending"===e.state.status);return!r||r===e}return!0}runNext(e){const t=xn(e);if("string"==typeof t){const n=this.#H.get(t)?.find(t=>t!==e&&t.state.isPaused);return n?.continue()??Promise.resolve()}return Promise.resolve()}clear(){Jt.batch(()=>{this.#$.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#$.clear(),this.#H.clear()})}getAll(){return Array.from(this.#$)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Mt(t,e))}findAll(e={}){return this.getAll().filter(t=>Mt(e,t))}notify(e){Jt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return Jt.batch(()=>Promise.all(e.map(e=>e.continue().catch(Ot))))}};function xn(e){return e.options.scope?.id}var Sn=class extends kt{#c;#b=void 0;#B;#U;constructor(e,t){super(),this.#c=e,this.setOptions(t),this.bindMethods(),this.#W()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#c.defaultMutationOptions(e),$t(this.options,t)||this.#c.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#B,observer:this}),t?.mutationKey&&this.options.mutationKey&&At(t.mutationKey)!==At(this.options.mutationKey)?this.reset():"pending"===this.#B?.state.status&&this.#B.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#B?.removeObserver(this)}onMutationUpdate(e){this.#W(),this.#F(e)}getCurrentResult(){return this.#b}reset(){this.#B?.removeObserver(this),this.#B=void 0,this.#W(),this.#F()}mutate(e,t){return this.#U=t,this.#B?.removeObserver(this),this.#B=this.#c.getMutationCache().build(this.#c,this.options),this.#B.addObserver(this),this.#B.execute(e)}#W(){const e=this.#B?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#b={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#F(e){Jt.batch(()=>{if(this.#U&&this.hasListeners()){const t=this.#b.variables,n=this.#b.context,r={client:this.#c,meta:this.options.meta,mutationKey:this.options.mutationKey};"success"===e?.type?(this.#U.onSuccess?.(e.data,t,n,r),this.#U.onSettled?.(e.data,null,t,n,r)):"error"===e?.type&&(this.#U.onError?.(e.error,t,n,r),this.#U.onSettled?.(void 0,e.error,t,n,r))}this.listeners.forEach(e=>{e(this.#b)})})}},Cn=class extends kt{constructor(e={}){super(),this.config=e,this.#Y=new Map}#Y;build(e,t,n){const r=t.queryKey,o=t.queryHash??It(r,t);let a=this.get(o);return a||(a=new sn({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#Y.has(e.queryHash)||(this.#Y.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#Y.get(e.queryHash);t&&(e.destroy(),t===e&&this.#Y.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Jt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#Y.get(e)}getAll(){return[...this.#Y.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Dt(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Dt(e,t)):t}notify(e){Jt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Jt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Jt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},kn=class{#q;#z;#f;#G;#K;#Q;#X;#Z;constructor(e={}){this.#q=e.queryCache||new Cn,this.#z=e.mutationCache||new wn,this.#f=e.defaultOptions||{},this.#G=new Map,this.#K=new Map,this.#Q=0}mount(){this.#Q++,1===this.#Q&&(this.#X=Qt.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#q.onFocus())}),this.#Z=en.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#q.onOnline())}))}unmount(){this.#Q--,0===this.#Q&&(this.#X?.(),this.#X=void 0,this.#Z?.(),this.#Z=void 0)}isFetching(e){return this.#q.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#z.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#q.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#q.build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Pt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#q.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=this.#q.get(r.queryHash),a=o?.state.data,i=function(e,t){return"function"==typeof e?e(t):e}(t,a);if(void 0!==i)return this.#q.build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Jt.batch(()=>this.#q.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#q.get(t.queryHash)?.state}removeQueries(e){const t=this.#q;Jt.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const n=this.#q;return Jt.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Jt.batch(()=>this.#q.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Ot).catch(Ot)}invalidateQueries(e,t={}){return Jt.batch(()=>(this.#q.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Jt.batch(()=>this.#q.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Ot)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(r).then(Ot)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=this.#q.build(this,t);return n.isStaleByTime(Pt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ot).catch(Ot)}fetchInfiniteQuery(e){return e.behavior=gn(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ot).catch(Ot)}ensureInfiniteQueryData(e){return e.behavior=gn(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return en.isOnline()?this.#z.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#q}getMutationCache(){return this.#z}getDefaultOptions(){return this.#f}setDefaultOptions(e){this.#f=e}setQueryDefaults(e,t){this.#G.set(At(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#G.values()],n={};return t.forEach(t=>{Ft(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#K.set(At(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#K.values()],n={};return t.forEach(t=>{Ft(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#f.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=It(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===qt&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#f.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#q.clear(),this.#z.clear()}},_n=D.createContext(void 0),En=e=>{const t=D.useContext(_n);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},jn=({client:e,children:t})=>(D.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),m.jsx(_n.Provider,{value:e,children:t})),On=D.createContext(!1);On.Provider;var Nn=D.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),Rn=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Pn(e,t,n){const r=D.useContext(On),o=D.useContext(Nn),a=En(),i=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(i),i._optimisticResults=r?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=1e3,n=e=>"static"===e?e:Math.max(e??t,t),r=e.staleTime;e.staleTime="function"==typeof r?(...e)=>n(r(...e)):n(r),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(i),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(i,o),(e=>{D.useEffect(()=>{e.clearReset()},[e])})(o);const s=!a.getQueryCache().get(i.queryHash),[l]=D.useState(()=>new t(a,i)),u=l.getOptimisticResult(i),c=!r&&!1!==e.subscribed;if(D.useSyncExternalStore(D.useCallback(e=>{const t=c?l.subscribe(Jt.batchCalls(e)):Ot;return l.updateResult(),t},[l,c]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),D.useEffect(()=>{l.setOptions(i)},[i,l]),((e,t)=>e?.suspense&&t.isPending)(i,u))throw Rn(i,l,o);if((({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&void 0===e.data||Kt(n,[e.error,r])))({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:a.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;if(a.getDefaultOptions().queries?._experimental_afterQuery?.(i,u),i.experimental_prefetchInRender&&!jt&&((e,t)=>e.isLoading&&e.isFetching&&!t)(u,r)){const e=s?Rn(i,l,o):a.getQueryCache().get(i.queryHash)?.promise;e?.catch(Ot).finally(()=>{l.updateResult()})}return i.notifyOnChangeProps?u:l.trackResult(u)}const Tn=D.createContext(null),Dn=()=>{const e=D.useContext(Tn);if(!e)throw new Error("useSDK must be used within SDKProvider");return e},Mn=({apiKey:e,children:t})=>{if("undefined"==typeof window)return null;const[n]=M.useState(()=>new kn({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}));return m.jsx(Tn.Provider,{value:{apiKey:e},children:m.jsx(q,{store:Ct,children:m.jsx(jn,{client:n,children:t})})})};
|
|
11
|
-
/**
|
|
12
|
-
* table-core
|
|
13
|
-
*
|
|
14
|
-
* Copyright (c) TanStack
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
18
|
-
*
|
|
19
|
-
* @license MIT
|
|
20
|
-
*/
|
|
21
|
-
function In(e,t){return"function"==typeof e?e(t):e}function An(e,t){return n=>{t.setState(t=>({...t,[e]:In(n,t[e])}))}}function Fn(e){return e instanceof Function}function Ln(e,t,n){let r,o=[];return a=>{let i;n.key&&n.debug&&(i=Date.now());const s=e(a),l=s.length!==o.length||s.some((e,t)=>o[t]!==e);if(!l)return r;let u;if(o=s,n.key&&n.debug&&(u=Date.now()),r=t(...s),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-u))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function zn(e,t,n,r){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:r}}const $n="debugHeaders";function Hn(e,t,n){var r;let o={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(o,e)}),o}const Vn={createTable:e=>{e.getHeaderGroups=Ln(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var a,i;const s=null!=(a=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?a:[],l=null!=(i=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],u=n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)));return Bn(t,[...s,...u,...l],e)},zn(e.options,$n)),e.getCenterHeaderGroups=Ln(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>(n=n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),Bn(t,n,e,"center")),zn(e.options,$n)),e.getLeftHeaderGroups=Ln(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;return Bn(t,null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],e,"left")},zn(e.options,$n)),e.getRightHeaderGroups=Ln(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;return Bn(t,null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],e,"right")},zn(e.options,$n)),e.getFooterGroups=Ln(()=>[e.getHeaderGroups()],e=>[...e].reverse(),zn(e.options,$n)),e.getLeftFooterGroups=Ln(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),zn(e.options,$n)),e.getCenterFooterGroups=Ln(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),zn(e.options,$n)),e.getRightFooterGroups=Ln(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),zn(e.options,$n)),e.getFlatHeaders=Ln(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),zn(e.options,$n)),e.getLeftFlatHeaders=Ln(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),zn(e.options,$n)),e.getCenterFlatHeaders=Ln(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),zn(e.options,$n)),e.getRightFlatHeaders=Ln(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),zn(e.options,$n)),e.getCenterLeafHeaders=Ln(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),zn(e.options,$n)),e.getLeftLeafHeaders=Ln(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),zn(e.options,$n)),e.getRightLeafHeaders=Ln(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),zn(e.options,$n)),e.getLeafHeaders=Ln(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,o,a,i,s,l;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(a=null==(i=t[0])?void 0:i.headers)?a:[],...null!=(s=null==(l=n[0])?void 0:l.headers)?s:[]].map(e=>e.getLeafHeaders()).flat()},zn(e.options,$n))}};function Bn(e,t,n,r){var o,a;let i=0;const s=function(e,t){void 0===t&&(t=1),i=Math.max(i,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&s(e.columns,t+1)},0)};s(e);let l=[];const u=(e,t)=>{const o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},a=[];e.forEach(e=>{const i=[...a].reverse()[0];let s,l=!1;if(e.column.depth===o.depth&&e.column.parent?s=e.column.parent:(s=e.column,l=!0),i&&(null==i?void 0:i.column)===s)i.subHeaders.push(e);else{const o=Hn(n,s,{id:[r,t,s.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${a.filter(e=>e.column===s).length}`:void 0,depth:t,index:a.length});o.subHeaders.push(e),a.push(o)}o.headers.push(e),e.headerGroup=o}),l.push(o),t>0&&u(a,t-1)},c=t.map((e,t)=>Hn(n,e,{depth:i,index:t}));u(c,i-1),l.reverse();const d=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)})):t=1;return n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return d(null!=(o=null==(a=l[0])?void 0:a.headers)?o:[]),l}const Un=(e,t,n,r,o,a,i)=>{let s={id:t,index:r,original:n,depth:o,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]):void 0},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=s.getValue(t))?n:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>function(e,t){const n=[],r=e=>{e.forEach(e=>{n.push(e);const o=t(e);null!=o&&o.length&&r(o)})};return r(e),n}(s.subRows,e=>e.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:Ln(()=>[e.getAllLeafColumns()],t=>t.map(t=>function(e,t,n,r){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:Ln(()=>[e,n,t,o],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),zn(e.options,"debugCells"))};return e._features.forEach(r=>{null==r.createCell||r.createCell(o,n,t,e)},{}),o}(e,s,t,t.id)),zn(e.options,"debugRows")),_getAllCellsByColumnId:Ln(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),zn(e.options,"debugRows"))};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(s,e)}return s},Wn={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Yn=(e,t,n)=>{var r,o;const a=null==n||null==(r=n.toString())?void 0:r.toLowerCase();return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(a))};Yn.autoRemove=e=>nr(e);const qn=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};qn.autoRemove=e=>nr(e);const Gn=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};Gn.autoRemove=e=>nr(e);const Kn=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};Kn.autoRemove=e=>nr(e);const Qn=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});Qn.autoRemove=e=>nr(e)||!(null!=e&&e.length);const Xn=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});Xn.autoRemove=e=>nr(e)||!(null!=e&&e.length);const Zn=(e,t,n)=>e.getValue(t)===n;Zn.autoRemove=e=>nr(e);const Jn=(e,t,n)=>e.getValue(t)==n;Jn.autoRemove=e=>nr(e);const er=(e,t,n)=>{let[r,o]=n;const a=e.getValue(t);return a>=r&&a<=o};er.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,a=null===t||Number.isNaN(r)?-1/0:r,i=null===n||Number.isNaN(o)?1/0:o;if(a>i){const e=a;a=i,i=e}return[a,i]},er.autoRemove=e=>nr(e)||nr(e[0])&&nr(e[1]);const tr={includesString:Yn,includesStringSensitive:qn,equalsString:Gn,arrIncludes:Kn,arrIncludesAll:Qn,arrIncludesSome:Xn,equals:Zn,weakEquals:Jn,inNumberRange:er};function nr(e){return null==e||""===e}const rr={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:An("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?tr.includesString:"number"==typeof r?tr.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?tr.equals:Array.isArray(r)?tr.arrIncludes:tr.weakEquals},e.getFilterFn=()=>{var n,r;return Fn(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:tr[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find(t=>t.id===e.id))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.setFilterValue=n=>{t.setColumnFilters(t=>{const r=e.getFilterFn(),o=null==t?void 0:t.find(t=>t.id===e.id),a=In(n,o?o.value:void 0);var i;if(or(r,a,e))return null!=(i=null==t?void 0:t.filter(t=>t.id!==e.id))?i:[];const s={id:e.id,value:a};var l;return o?null!=(l=null==t?void 0:t.map(t=>t.id===e.id?s:t))?l:[]:null!=t&&t.length?[...t,s]:[s]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var r;return null==(r=In(t,e))?void 0:r.filter(e=>{const t=n.find(t=>t.id===e.id);if(t){if(or(t.getFilterFn(),e.value,t))return!1}return!0})})},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function or(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const ar={sum:(e,t,n)=>n.reduce((t,n)=>{const r=n.getValue(e);return t+("number"==typeof r?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,o;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o<n&&(o=n)))}),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,r+=o)}),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map(t=>t.getValue(e));if(r=n,!Array.isArray(r)||!r.every(e=>"number"==typeof e))return;var r;if(1===n.length)return n[0];const o=Math.floor(n.length/2),a=n.sort((e,t)=>e-t);return n.length%2!=0?a[o]:(a[o-1]+a[o])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},ir={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:An("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var n,r;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(r=t.options.enableGrouping)||r)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?ar.sum:"[object Date]"===Object.prototype.toString.call(r)?ar.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Fn(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:ar[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const sr={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:An("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Ln(e=>[hr(t,e)],t=>t.findIndex(t=>t.id===e.id),zn(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return(null==(r=hr(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=hr(t,n);return(null==(r=o[o.length-1])?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=Ln(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...r];for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;return function(e,t,n){if(null==t||!t.length||!n)return e;const r=e.filter(e=>!t.includes(e.id));if("remove"===n)return r;const o=t.map(t=>e.find(e=>e.id===t)).filter(Boolean);return[...o,...r]}(o,t,n)},zn(e.options,"debugTable"))}},lr={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:An("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,a,i,s,l;return"right"===n?{left:(null!=(a=null==e?void 0:e.left)?a:[]).filter(e=>!(null!=r&&r.includes(e))),right:[...(null!=(i=null==e?void 0:e.right)?i:[]).filter(e=>!(null!=r&&r.includes(e))),...r]}:"left"===n?{left:[...(null!=(s=null==e?void 0:e.left)?s:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=r&&r.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=r&&r.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=r&&r.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var n,r,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||r)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(e=>e.id),{left:r,right:o}=t.getState().columnPinning,a=n.some(e=>null==r?void 0:r.includes(e)),i=n.some(e=>null==o?void 0:o.includes(e));return a?"left":!!i&&"right"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[o])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=Ln(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.column.id))},zn(t.options,"debugRows")),e.getLeftVisibleCells=Ln(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"})),zn(t.options,"debugRows")),e.getRightVisibleCells=Ln(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"})),zn(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;var o,a;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.left)?void 0:o.length)||(null==(a=r.right)?void 0:a.length))},e.getLeftLeafColumns=Ln(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),zn(e.options,"debugColumns")),e.getRightLeafColumns=Ln(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),zn(e.options,"debugColumns")),e.getCenterLeafColumns=Ln(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.id))},zn(e.options,"debugColumns"))}};const ur={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},cr={getDefaultColumnDef:()=>ur,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:An("columnSizing",e),onColumnSizingInfoChange:An("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const a=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:ur.minSize,null!=(r=null!=a?a:e.columnDef.size)?r:ur.size),null!=(o=e.columnDef.maxSize)?o:ur.maxSize)},e.getStart=Ln(e=>[e,hr(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),zn(t.options,"debugColumns")),e.getAfter=Ln(e=>[e,hr(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),zn(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(r=e.column.getSize())?r:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=null==r?void 0:r.getCanResize();return a=>{if(!r||!o)return;if(null==a.persist||a.persist(),fr(a)&&a.touches&&a.touches.length>1)return;const i=e.getSize(),s=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],l=fr(a)?Math.round(a.touches[0].clientX):a.clientX,u={},c=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var r,o;const a="rtl"===t.options.columnResizeDirection?-1:1,i=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*a,s=Math.max(i/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*s,0))/100}),{...e,deltaOffset:i,deltaPercentage:s}}),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing(e=>({...e,...u})))},d=e=>c("move",e),f=e=>{c("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p=n||("undefined"!=typeof document?document:null);const h={moveHandler:e=>d(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",h.moveHandler),null==p||p.removeEventListener("mouseup",h.upHandler),f(e.clientX)}},m={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",m.moveHandler),null==p||p.removeEventListener("touchend",m.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(null==(t=e.touches[0])?void 0:t.clientX)}},g=!!function(){if("boolean"==typeof dr)return dr;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return dr=e,dr}()&&{passive:!1};fr(a)?(null==p||p.addEventListener("touchmove",m.moveHandler,g),null==p||p.addEventListener("touchend",m.upHandler,g)):(null==p||p.addEventListener("mousemove",h.moveHandler,g),null==p||p.addEventListener("mouseup",h.upHandler,g)),t.setColumnSizingInfo(e=>({...e,startOffset:l,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}};let dr=null;function fr(e){return"touchstart"===e.type}const pr={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:An("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const o=e.columns;return null==(n=o.length?o.some(e=>e.getIsVisible()):null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Ln(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),zn(t.options,"debugRows")),e.getVisibleCells=Ln(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],zn(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>Ln(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),zn(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t(0,()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t(0,()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t(0,()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t(0,()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}};function hr(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const mr={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:An("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,a;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(a=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||a)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>tr.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Fn(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:tr[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},gr={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:An("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}}else e._queue(()=>{t=!0})},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>In(t,e)),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination(n=>{let r=In(t,n.pageIndex);const o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,o)),{...n,pageIndex:r}})},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination(e=>{const n=Math.max(1,In(t,e.pageSize)),r=e.pageSize*e.pageIndex,o=Math.floor(r/n);return{...e,pageIndex:o,pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{var r;let o=In(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),e.getPageOptions=Ln(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map((e,t)=>t)),t},zn(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},yr={getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:An("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const a=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],i=o?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],s=new Set([...i,e.id,...a]);t.setRowPinning(e=>{var t,r,o,a,i,l;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=s&&s.has(e))),bottom:[...(null!=(a=null==e?void 0:e.bottom)?a:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)]}:"top"===n?{top:[...(null!=(i=null==e?void 0:e.top)?i:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)],bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter(e=>!(null!=s&&s.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=s&&s.has(e))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=s&&s.has(e)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,a=n.some(e=>null==r?void 0:r.includes(e)),i=n.some(e=>null==o?void 0:o.includes(e));return a?"top":!!i&&"bottom"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const a=null==(n="top"===o?t.getTopRows():t.getBottomRows())?void 0:n.map(e=>{let{id:t}=e;return t});return null!=(r=null==a?void 0:a.indexOf(e.id))?r:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;var o,a;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.top)?void 0:o.length)||(null==(a=r.bottom)?void 0:a.length))},e._getPinnedRows=(t,n,r)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map(t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=n?n:[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:r}))},e.getTopRows=Ln(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),zn(e.options,"debugRows")),e.getBottomRows=Ln(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),zn(e.options,"debugRows")),e.getCenterRows=Ln(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{const r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter(e=>!r.has(e.id))},zn(e.options,"debugRows"))}},vr={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:An("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):o.forEach(e=>{delete r[e.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(t=>{br(o,t.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Ln(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?wr(e,n):{rows:[],flatRows:[],rowsById:{}},zn(e.options,"debugTable")),e.getFilteredSelectedRowModel=Ln(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?wr(e,n):{rows:[],flatRows:[],rowsById:{}},zn(e.options,"debugTable")),e.getGroupedSelectedRowModel=Ln(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?wr(e,n):{rows:[],flatRows:[],rowsById:{}},zn(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=Boolean(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(a=>{var i;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return a;const s={...a};return br(s,e.id,n,null==(i=null==r?void 0:r.selectChildren)||i,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return xr(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===Sr(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===Sr(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},br=(e,t,n,r,o)=>{var a;const i=o.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),i.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(a=i.subRows)&&a.length&&i.getCanSelectSubRows()&&i.subRows.forEach(t=>br(e,t.id,n,r,o))};function wr(e,t){const n=e.getState().rowSelection,r=[],o={},a=function(e,t){return e.map(e=>{var t;const i=xr(e,n);if(i&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:a(e.subRows)}),i)return e}).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:o}}function xr(e,t){var n;return null!=(n=t[e.id])&&n}function Sr(e,t,n){var r;if(null==(r=e.subRows)||!r.length)return!1;let o=!0,a=!1;return e.subRows.forEach(e=>{if((!a||o)&&(e.getCanSelect()&&(xr(e,t)?a=!0:o=!1),e.subRows&&e.subRows.length)){const n=Sr(e,t);"all"===n?a=!0:"some"===n?(a=!0,o=!1):o=!1}}),o?"all":!!a&&"some"}const Cr=/([0-9]+)/gm;function kr(e,t){return e===t?0:e>t?1:-1}function _r(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Er(e,t){const n=e.split(Cr).filter(Boolean),r=t.split(Cr).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),o=parseInt(e,10),a=parseInt(t,10),i=[o,a].sort();if(isNaN(i[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(i[1]))return isNaN(o)?-1:1;if(o>a)return 1;if(a>o)return-1}}return n.length-r.length}const jr={alphanumeric:(e,t,n)=>Er(_r(e.getValue(n)).toLowerCase(),_r(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>Er(_r(e.getValue(n)),_r(t.getValue(n))),text:(e,t,n)=>kr(_r(e.getValue(n)).toLowerCase(),_r(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>kr(_r(e.getValue(n)),_r(t.getValue(n))),datetime:(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},basic:(e,t,n)=>kr(e.getValue(n),t.getValue(n))},Or={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:An("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return jr.datetime;if("string"==typeof n&&(r=!0,n.split(Cr).length>1))return jr.alphanumeric}return r?jr.text:jr.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Fn(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:jr[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),a=null!=n;t.setSorting(i=>{const s=null==i?void 0:i.find(t=>t.id===e.id),l=null==i?void 0:i.findIndex(t=>t.id===e.id);let u,c=[],d=a?n:"desc"===o;var f;(u=null!=i&&i.length&&e.getCanMultiSort()&&r?s?"toggle":"add":null!=i&&i.length&&l!==i.length-1?"replace":s?"toggle":"replace","toggle"===u&&(a||o||(u="remove")),"add"===u)?(c=[...i,{id:e.id,desc:d}],c.splice(0,c.length-(null!=(f=t.options.maxMultiSortColCount)?f:Number.MAX_SAFE_INTEGER))):c="toggle"===u?i.map(t=>t.id===e.id?{...t,desc:d}:t):"remove"===u?i.filter(t=>t.id!==e.id):[{id:e.id,desc:d}];return c})},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const a=e.getFirstSortDir(),i=e.getIsSorted();return i?!!(i===a||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===i?"asc":"desc"):a},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},Nr=[Vn,pr,sr,lr,Wn,rr,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},mr,Or,ir,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:An("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}}else e._queue(()=>{t=!0})},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some(e=>!e.getIsExpanded())},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{const n=e.split(".");t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const a=!0===r||!(null==r||!r[e.id]);let i={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach(e=>{i[e]=!0}):i=r,n=null!=(o=n)?o:!a,!a&&n)return{...i,[e.id]:!0};if(a&&!n){const{[e.id]:t,...n}=i;return n}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},gr,yr,vr,cr];function Rr(e){var t,n;const r=[...Nr,...null!=(t=e._features)?t:[]];let o={_features:r};const a=o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o)),{});let i={...null!=(n=e.initialState)?n:{}};o._features.forEach(e=>{var t;i=null!=(t=null==e.getInitialState?void 0:e.getInitialState(i))?t:i});const s=[];let l=!1;const u={_features:r,options:{...a,...e},initialState:i,_queue:e=>{s.push(e),l||(l=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();l=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=In(e,o.options);o.options=(e=>o.options.mergeOptions?o.options.mergeOptions(a,e):{...a,...e})(t)},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,n)=>{var r;return null!=(r=null==o.options.getRowId?void 0:o.options.getRowId(e,t,n))?r:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!n&&(n=o.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:Ln(()=>[o.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},zn(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:Ln(()=>[o._getColumnDefs()],e=>{const t=function(e,n,r){return void 0===r&&(r=0),e.map(e=>{const a=function(e,t,n,r){var o,a;const i={...e._getDefaultColumnDef(),...t},s=i.accessorKey;let l,u=null!=(o=null!=(a=i.id)?a:s?"function"==typeof String.prototype.replaceAll?s.replaceAll(".","_"):s.replace(/\./g,"_"):void 0)?o:"string"==typeof i.header?i.header:void 0;if(i.accessorFn?l=i.accessorFn:s&&(l=s.includes(".")?e=>{let t=e;for(const e of s.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[i.accessorKey]),!u)throw new Error;let c={id:`${String(u)}`,accessorFn:l,parent:r,depth:n,columnDef:i,columns:[],getFlatColumns:Ln(()=>[!0],()=>{var e;return[c,...null==(e=c.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},zn(e.options,"debugColumns")),getLeafColumns:Ln(()=>[e._getOrderColumnsFn()],e=>{var t;if(null!=(t=c.columns)&&t.length){let t=c.columns.flatMap(e=>e.getLeafColumns());return e(t)}return[c]},zn(e.options,"debugColumns"))};for(const t of e._features)null==t.createColumn||t.createColumn(c,e);return c}(o,e,r,n),i=e;return a.columns=i.columns?t(i.columns,a,r+1):[],a})};return t(e)},zn(e,"debugColumns")),getAllFlatColumns:Ln(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),zn(e,"debugColumns")),_getAllFlatColumnsById:Ln(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),zn(e,"debugColumns")),getAllLeafColumns:Ln(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>{let n=e.flatMap(e=>e.getLeafColumns());return t(n)},zn(e,"debugColumns")),getColumn:e=>o._getAllFlatColumnsById()[e]};Object.assign(o,u);for(let e=0;e<o._features.length;e++){const t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}
|
|
22
|
-
/**
|
|
23
|
-
* react-table
|
|
24
|
-
*
|
|
25
|
-
* Copyright (c) TanStack
|
|
26
|
-
*
|
|
27
|
-
* This source code is licensed under the MIT license found in the
|
|
28
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
29
|
-
*
|
|
30
|
-
* @license MIT
|
|
31
|
-
*/
|
|
32
|
-
function Pr(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?D.createElement(e,t):e:null;var n}function Tr(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=Tr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Dr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Tr(e))&&(r&&(r+=" "),r+=t);return r}const Mr=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ir="-",Ar=[],Fr=e=>{const t=$r(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return zr(e);const n=e.split(Ir),r=""===n[0]&&n.length>1?1:0;return Lr(n,r,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=r[e],o=n[e];return t?o?((e,t)=>{const n=new Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n})(o,t):t:o||Ar}return n[e]||Ar}}},Lr=(e,t,n)=>{if(0===e.length-t)return n.classGroupId;const r=e[t],o=n.nextPart.get(r);if(o){const n=Lr(e,t+1,o);if(n)return n}const a=n.validators;if(null===a)return;const i=0===t?e.join(Ir):e.slice(t).join(Ir),s=a.length;for(let e=0;e<s;e++){const t=a[e];if(t.validator(i))return t.classGroupId}},zr=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?"arbitrary.."+r:void 0})(),$r=e=>{const{theme:t,classGroups:n}=e;return Hr(n,t)},Hr=(e,t)=>{const n=Mr();for(const r in e){const o=e[r];Vr(o,n,r,t)}return n},Vr=(e,t,n,r)=>{const o=e.length;for(let a=0;a<o;a++){const o=e[a];Br(o,t,n,r)}},Br=(e,t,n,r)=>{"string"!=typeof e?"function"!=typeof e?Yr(e,t,n,r):Wr(e,t,n,r):Ur(e,t,n)},Ur=(e,t,n)=>{(""===e?t:qr(t,e)).classGroupId=n},Wr=(e,t,n,r)=>{Gr(e)?Vr(e(r),t,n,r):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(n,e)))},Yr=(e,t,n,r)=>{const o=Object.entries(e),a=o.length;for(let e=0;e<a;e++){const[a,i]=o[e];Vr(i,qr(t,a),n,r)}},qr=(e,t)=>{let n=e;const r=t.split(Ir),o=r.length;for(let e=0;e<o;e++){const t=r[e];let o=n.nextPart.get(t);o||(o=Mr(),n.nextPart.set(t,o)),n=o}return n},Gr=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,Kr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(o,a)=>{n[o]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];return void 0!==t?t:void 0!==(t=r[e])?(o(e,t),t):void 0},set(e,t){e in n?n[e]=t:o(e,t)}}},Qr=[],Xr=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Zr=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,a=0;const i=e.length;for(let s=0;s<i;s++){const i=e[s];if(0===r&&0===o){if(":"===i){t.push(e.slice(a,s)),a=s+1;continue}if("/"===i){n=s;continue}}"["===i?r++:"]"===i?r--:"("===i?o++:")"===i&&o--}const s=0===t.length?e:e.slice(a);let l=s,u=!1;s.endsWith("!")?(l=s.slice(0,-1),u=!0):s.startsWith("!")&&(l=s.slice(1),u=!0);return Xr(t,u,l,n&&n>a?n-a:void 0)};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Xr(Qr,!1,t,void 0,!0)}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},Jr=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{const n=[];let r=[];for(let o=0;o<e.length;o++){const a=e[o],i="["===a[0],s=t.has(a);i||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},eo=/\s+/,to=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=to(e[r]))&&(n&&(n+=" "),n+=t);return n},no=(e,...t)=>{let n,r,o,a;const i=e=>{const t=r(e);if(t)return t;const a=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(eo);let l="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(u){l=t+(l.length>0?" "+l:l);continue}let h=!!p,m=r(h?f.substring(0,p):f);if(!m){if(!h){l=t+(l.length>0?" "+l:l);continue}if(m=r(f),!m){l=t+(l.length>0?" "+l:l);continue}h=!1}const g=0===c.length?"":1===c.length?c[0]:a(c).join(":"),y=d?g+"!":g,v=y+m;if(i.indexOf(v)>-1)continue;i.push(v);const b=o(m,h);for(let e=0;e<b.length;++e){const t=b[e];i.push(y+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,a),a};return a=s=>{const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:Kr(e.cacheSize),parseClassName:Zr(e),sortModifiers:Jr(e),...Fr(e)}))(l),r=n.cache.get,o=n.cache.set,a=i,i(s)},(...e)=>a(((...e)=>{let t,n,r=0,o="";for(;r<e.length;)(t=e[r++])&&(n=to(t))&&(o&&(o+=" "),o+=n);return o})(...e))},ro=[],oo=e=>{const t=t=>t[e]||ro;return t.isThemeGetter=!0,t},ao=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,io=/^\((?:(\w[\w-]*):)?(.+)\)$/i,so=/^\d+\/\d+$/,lo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,uo=/\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$/,co=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,fo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,po=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ho=e=>so.test(e),mo=e=>!!e&&!Number.isNaN(Number(e)),go=e=>!!e&&Number.isInteger(Number(e)),yo=e=>e.endsWith("%")&&mo(e.slice(0,-1)),vo=e=>lo.test(e),bo=()=>!0,wo=e=>uo.test(e)&&!co.test(e),xo=()=>!1,So=e=>fo.test(e),Co=e=>po.test(e),ko=e=>!Eo(e)&&!To(e),_o=e=>zo(e,Bo,xo),Eo=e=>ao.test(e),jo=e=>zo(e,Uo,wo),Oo=e=>zo(e,Wo,mo),No=e=>zo(e,Ho,xo),Ro=e=>zo(e,Vo,Co),Po=e=>zo(e,qo,So),To=e=>io.test(e),Do=e=>$o(e,Uo),Mo=e=>$o(e,Yo),Io=e=>$o(e,Ho),Ao=e=>$o(e,Bo),Fo=e=>$o(e,Vo),Lo=e=>$o(e,qo,!0),zo=(e,t,n)=>{const r=ao.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},$o=(e,t,n=!1)=>{const r=io.exec(e);return!!r&&(r[1]?t(r[1]):n)},Ho=e=>"position"===e||"percentage"===e,Vo=e=>"image"===e||"url"===e,Bo=e=>"length"===e||"size"===e||"bg-size"===e,Uo=e=>"length"===e,Wo=e=>"number"===e,Yo=e=>"family-name"===e,qo=e=>"shadow"===e,Go=no(()=>{const e=oo("color"),t=oo("font"),n=oo("text"),r=oo("font-weight"),o=oo("tracking"),a=oo("leading"),i=oo("breakpoint"),s=oo("container"),l=oo("spacing"),u=oo("radius"),c=oo("shadow"),d=oo("inset-shadow"),f=oo("text-shadow"),p=oo("drop-shadow"),h=oo("blur"),m=oo("perspective"),g=oo("aspect"),y=oo("ease"),v=oo("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",To,Eo],w=()=>[To,Eo,l],x=()=>[ho,"full","auto",...w()],S=()=>[go,"none","subgrid",To,Eo],C=()=>["auto",{span:["full",go,To,Eo]},go,To,Eo],k=()=>[go,"auto",To,Eo],_=()=>["auto","min","max","fr",To,Eo],E=()=>["auto",...w()],j=()=>[ho,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],O=()=>[e,To,Eo],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Io,No,{position:[To,Eo]}],R=()=>["auto","cover","contain",Ao,_o,{size:[To,Eo]}],P=()=>[yo,Do,jo],T=()=>["","none","full",u,To,Eo],D=()=>["",mo,Do,jo],M=()=>[mo,yo,Io,No],I=()=>["","none",h,To,Eo],A=()=>["none",mo,To,Eo],F=()=>["none",mo,To,Eo],L=()=>[mo,To,Eo],z=()=>[ho,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[vo],breakpoint:[vo],color:[bo],container:[vo],"drop-shadow":[vo],ease:["in","out","in-out"],font:[ko],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[vo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[vo],shadow:[vo],spacing:["px",mo],text:[vo],"text-shadow":[vo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ho,Eo,To,g]}],container:["container"],columns:[{columns:[mo,Eo,To,s]}],"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"],sr:["sr-only","not-sr-only"],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:b()}],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:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{start:x()}],end:[{end:x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[go,"auto",To,Eo]}],basis:[{basis:[ho,"full","auto",s,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[mo,ho,"auto","initial","none",Eo]}],grow:[{grow:["",mo,To,Eo]}],shrink:[{shrink:["",mo,To,Eo]}],order:[{order:[go,"first","last","none",To,Eo]}],"grid-cols":[{"grid-cols":S()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":S()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":_()}],"auto-rows":[{"auto-rows":_()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[s,"screen",...j()]}],"min-w":[{"min-w":[s,"screen","none",...j()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",n,Do,jo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,To,Oo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",yo,Eo]}],"font-family":[{font:[Mo,Eo,t]}],"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-fractions"],tracking:[{tracking:[o,To,Eo]}],"line-clamp":[{"line-clamp":[mo,"none",To,Oo]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":["none",To,Eo]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",To,Eo]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[mo,"from-font","auto",To,jo]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[mo,"auto",To,Eo]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",To,Eo]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",To,Eo]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:N()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},go,To,Eo],radial:["",To,Eo],conic:[go,To,Eo]},Fo,Ro]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":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","hidden"]}],"outline-offset":[{"outline-offset":[mo,To,Eo]}],"outline-w":[{outline:["",mo,Do,jo]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",c,Lo,Po]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",d,Lo,Po]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[mo,jo]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",f,Lo,Po]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[mo,To,Eo]}],"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-darker","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"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[mo]}],"mask-image-linear-from-pos":[{"mask-linear-from":M()}],"mask-image-linear-to-pos":[{"mask-linear-to":M()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":M()}],"mask-image-t-to-pos":[{"mask-t-to":M()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":M()}],"mask-image-r-to-pos":[{"mask-r-to":M()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":M()}],"mask-image-b-to-pos":[{"mask-b-to":M()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":M()}],"mask-image-l-to-pos":[{"mask-l-to":M()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":M()}],"mask-image-x-to-pos":[{"mask-x-to":M()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":M()}],"mask-image-y-to-pos":[{"mask-y-to":M()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[To,Eo]}],"mask-image-radial-from-pos":[{"mask-radial-from":M()}],"mask-image-radial-to-pos":[{"mask-radial-to":M()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[mo]}],"mask-image-conic-from-pos":[{"mask-conic-from":M()}],"mask-image-conic-to-pos":[{"mask-conic-to":M()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",To,Eo]}],filter:[{filter:["","none",To,Eo]}],blur:[{blur:I()}],brightness:[{brightness:[mo,To,Eo]}],contrast:[{contrast:[mo,To,Eo]}],"drop-shadow":[{"drop-shadow":["","none",p,Lo,Po]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",mo,To,Eo]}],"hue-rotate":[{"hue-rotate":[mo,To,Eo]}],invert:[{invert:["",mo,To,Eo]}],saturate:[{saturate:[mo,To,Eo]}],sepia:[{sepia:["",mo,To,Eo]}],"backdrop-filter":[{"backdrop-filter":["","none",To,Eo]}],"backdrop-blur":[{"backdrop-blur":I()}],"backdrop-brightness":[{"backdrop-brightness":[mo,To,Eo]}],"backdrop-contrast":[{"backdrop-contrast":[mo,To,Eo]}],"backdrop-grayscale":[{"backdrop-grayscale":["",mo,To,Eo]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[mo,To,Eo]}],"backdrop-invert":[{"backdrop-invert":["",mo,To,Eo]}],"backdrop-opacity":[{"backdrop-opacity":[mo,To,Eo]}],"backdrop-saturate":[{"backdrop-saturate":[mo,To,Eo]}],"backdrop-sepia":[{"backdrop-sepia":["",mo,To,Eo]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",To,Eo]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[mo,"initial",To,Eo]}],ease:[{ease:["linear","initial",y,To,Eo]}],delay:[{delay:[mo,To,Eo]}],animate:[{animate:["none",v,To,Eo]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,To,Eo]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:A()}],"rotate-x":[{"rotate-x":A()}],"rotate-y":[{"rotate-y":A()}],"rotate-z":[{"rotate-z":A()}],scale:[{scale:F()}],"scale-x":[{"scale-x":F()}],"scale-y":[{"scale-y":F()}],"scale-z":[{"scale-z":F()}],"scale-3d":["scale-3d"],skew:[{skew:L()}],"skew-x":[{"skew-x":L()}],"skew-y":[{"skew-y":L()}],transform:[{transform:[To,Eo,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",To,Eo]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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",To,Eo]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[mo,Do,jo,Oo]}],stroke:[{stroke:["none",...O()]}],"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-x","border-w-y","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-x","border-color-y","border-color-s","border-color-e","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Ko(...e){return Go(Dr(e))}const Qo=D.forwardRef(({className:e,...t},n)=>m.jsx("div",{className:"relative w-full overflow-auto",children:m.jsx("table",{ref:n,className:Ko("w-full caption-bottom text-sm",e),...t})}));Qo.displayName="Table";const Xo=D.forwardRef(({className:e,...t},n)=>m.jsx("thead",{ref:n,className:Ko("[&_tr]:border-b",e),...t}));Xo.displayName="TableHeader";const Zo=D.forwardRef(({className:e,...t},n)=>m.jsx("tbody",{ref:n,className:Ko("[&_tr:last-child]:border-0",e),...t}));Zo.displayName="TableBody";D.forwardRef(({className:e,...t},n)=>m.jsx("tfoot",{ref:n,className:Ko("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t})).displayName="TableFooter";const Jo=D.forwardRef(({className:e,...t},n)=>m.jsx("tr",{ref:n,className:Ko("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Jo.displayName="TableRow";const ea=D.forwardRef(({className:e,...t},n)=>m.jsx("th",{ref:n,className:Ko("h-12 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));ea.displayName="TableHead";const ta=D.forwardRef(({className:e,...t},n)=>m.jsx("td",{ref:n,className:Ko("p-2 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));ta.displayName="TableCell";function na({className:e,...t}){return m.jsx("div",{className:Ko("animate-pulse rounded-md bg-neutral-100 dark:bg-neutral-800",e),...t})}function ra(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function oa(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function aa(...e){return t=>{let n=!1;const r=e.map(e=>{const r=oa(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():oa(e[t],null)}}}}function ia(...e){return D.useCallback(aa(...e),e)}function sa(e,t=[]){let n=[];const r=()=>{const t=n.map(e=>D.createContext(e));return function(n){const r=n?.[e]||t;return D.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const o=D.createContext(r),a=n.length;n=[...n,r];const i=t=>{const{scope:n,children:r,...i}=t,s=n?.[e]?.[a]||o,l=D.useMemo(()=>i,Object.values(i));return m.jsx(s.Provider,{value:l,children:r})};return i.displayName=t+"Provider",[i,function(n,i){const s=i?.[e]?.[a]||o,l=D.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},la(r,...t)]}function la(...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 D.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}D.forwardRef(({className:e,...t},n)=>m.jsx("caption",{ref:n,className:Ko("mt-4 text-sm text-muted-foreground",e),...t})).displayName="TableCaption";var ua=globalThis?.document?D.useLayoutEffect:()=>{},ca=I[" useInsertionEffect ".trim().toString()]||ua;function da({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=function({defaultProp:e,onChange:t}){const[n,r]=D.useState(e),o=D.useRef(n),a=D.useRef(t);return ca(()=>{a.current=t},[t]),D.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o;{const t=D.useRef(void 0!==e);D.useEffect(()=>{const e=t.current;if(e!==s){const t=e?"controlled":"uncontrolled",n=s?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,r])}const u=D.useCallback(t=>{if(s){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&i.current?.(n)}else a(t)},[s,e,a,i]);return[l,u]}var fa=O(),pa=n(fa);function ha(e){const t=ga(e),n=D.forwardRef((e,n)=>{const{children:r,...o}=e,a=D.Children.toArray(r),i=a.find(va);if(i){const e=i.props.children,r=a.map(t=>t===i?D.Children.count(e)>1?D.Children.only(null):D.isValidElement(e)?e.props.children:null:t);return m.jsx(t,{...o,ref:n,children:D.isValidElement(e)?D.cloneElement(e,void 0,r):null})}return m.jsx(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var ma=ha("Slot");function ga(e){const t=D.forwardRef((e,t)=>{const{children:n,...r}=e;if(D.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(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}}(r,n.props);return n.type!==D.Fragment&&(o.ref=t?aa(t,e):e),D.cloneElement(n,o)}return D.Children.count(n)>1?D.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ya=Symbol("radix.slottable");function va(e){return D.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===ya}var ba=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=ha(`Primitive.${t}`),r=D.forwardRef((e,r)=>{const{asChild:o,...a}=e,i=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),m.jsx(i,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function wa(e,t){e&&fa.flushSync(()=>e.dispatchEvent(t))}function xa(e){const t=e+"CollectionProvider",[n,r]=sa(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=e=>{const{scope:t,children:n}=e,r=M.useRef(null),a=M.useRef(new Map).current;return m.jsx(o,{scope:t,itemMap:a,collectionRef:r,children:n})};i.displayName=t;const s=e+"CollectionSlot",l=ha(s),u=M.forwardRef((e,t)=>{const{scope:n,children:r}=e,o=ia(t,a(s,n).collectionRef);return m.jsx(l,{ref:o,children:r})});u.displayName=s;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=ha(c),p=M.forwardRef((e,t)=>{const{scope:n,children:r,...o}=e,i=M.useRef(null),s=ia(t,i),l=a(c,n);return M.useEffect(()=>(l.itemMap.set(i,{ref:i,...o}),()=>{l.itemMap.delete(i)})),m.jsx(f,{[d]:"",ref:s,children:r})});return p.displayName=c,[{Provider:i,Slot:u,ItemSlot:p},function(t){const n=a(e+"CollectionConsumer",t),r=M.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`)),r=Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return r},[n.collectionRef,n.itemMap]);return r},r]}var Sa=D.createContext(void 0);function Ca(e){const t=D.useContext(Sa);return e||t||"ltr"}function ka(e){const t=D.useRef(e);return D.useEffect(()=>{t.current=e}),D.useMemo(()=>(...e)=>t.current?.(...e),[])}var _a,Ea="dismissableLayer.update",ja="dismissableLayer.pointerDownOutside",Oa="dismissableLayer.focusOutside",Na=D.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ra=D.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...l}=e,u=D.useContext(Na),[c,d]=D.useState(null),f=c?.ownerDocument??globalThis?.document,[,p]=D.useState({}),h=ia(t,e=>d(e)),g=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(y),b=c?g.indexOf(c):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,x=b>=v,S=function(e,t=globalThis?.document){const n=ka(e),r=D.useRef(!1),o=D.useRef(()=>{});return D.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Da(ja,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}}(e=>{const t=e.target,n=[...u.branches].some(e=>e.contains(t));x&&!n&&(o?.(e),i?.(e),e.defaultPrevented||s?.())},f),C=function(e,t=globalThis?.document){const n=ka(e),r=D.useRef(!1);return D.useEffect(()=>{const e=e=>{if(e.target&&!r.current){Da(Oa,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...u.branches].some(e=>e.contains(t))||(a?.(e),i?.(e),e.defaultPrevented||s?.())},f);return function(e,t=globalThis?.document){const n=ka(e);D.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{b===u.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),D.useEffect(()=>{if(c)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(_a=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Ta(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=_a)}},[c,f,n,u]),D.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Ta())},[c,u]),D.useEffect(()=>{const e=()=>p({});return document.addEventListener(Ea,e),()=>document.removeEventListener(Ea,e)},[]),m.jsx(ba.div,{...l,ref:h,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:ra(e.onFocusCapture,C.onFocusCapture),onBlurCapture:ra(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:ra(e.onPointerDownCapture,S.onPointerDownCapture)})});Ra.displayName="DismissableLayer";var Pa=D.forwardRef((e,t)=>{const n=D.useContext(Na),r=D.useRef(null),o=ia(t,r);return D.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),m.jsx(ba.div,{...e,ref:o})});function Ta(){const e=new CustomEvent(Ea);document.dispatchEvent(e)}function Da(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?wa(o,a):o.dispatchEvent(a)}Pa.displayName="DismissableLayerBranch";var Ma=0;function Ia(){D.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Aa()),document.body.insertAdjacentElement("beforeend",e[1]??Aa()),Ma++,()=>{1===Ma&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Ma--}},[])}function Aa(){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 Fa="focusScope.autoFocusOnMount",La="focusScope.autoFocusOnUnmount",za={bubbles:!1,cancelable:!0},$a=D.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=D.useState(null),u=ka(o),c=ka(a),d=D.useRef(null),f=ia(t,e=>l(e)),p=D.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;D.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:Ua(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||Ua(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Ua(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]),D.useEffect(()=>{if(s){Wa.add(p);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(Fa,za);s.addEventListener(Fa,u),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ua(r,{select:t}),document.activeElement!==n)return}((e=Ha(s),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&Ua(s))}return()=>{s.removeEventListener(Fa,u),setTimeout(()=>{const e=new CustomEvent(La,za);s.addEventListener(La,c),s.dispatchEvent(e),e.defaultPrevented||Ua(t??document.body,{select:!0}),s.removeEventListener(La,c),Wa.remove(p)},0)}}var e},[s,u,c,p]);const h=D.useCallback(e=>{if(!n&&!r)return;if(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]=function(e){const t=Ha(e),n=Va(t,e),r=Va(t.reverse(),e);return[n,r]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&Ua(a,{select:!0})):(e.preventDefault(),n&&Ua(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,p.paused]);return m.jsx(ba.div,{tabIndex:-1,...i,ref:f,onKeyDown:h})});function Ha(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 Va(e,t){for(const n of e)if(!Ba(n,{upTo:t}))return n}function Ba(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 Ua(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}$a.displayName="FocusScope";var Wa=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Ya(e,t),e.unshift(t)},remove(t){e=Ya(e,t),e[0]?.resume()}}}();function Ya(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var qa=I[" useId ".trim().toString()]||(()=>{}),Ga=0;function Ka(e){const[t,n]=D.useState(qa());return ua(()=>{n(e=>e??String(Ga++))},[e]),t?`radix-${t}`:""}const Qa=["top","right","bottom","left"],Xa=Math.min,Za=Math.max,Ja=Math.round,ei=Math.floor,ti=e=>({x:e,y:e}),ni={left:"right",right:"left",bottom:"top",top:"bottom"},ri={start:"end",end:"start"};function oi(e,t,n){return Za(e,Xa(t,n))}function ai(e,t){return"function"==typeof e?e(t):e}function ii(e){return e.split("-")[0]}function si(e){return e.split("-")[1]}function li(e){return"x"===e?"y":"x"}function ui(e){return"y"===e?"height":"width"}const ci=new Set(["top","bottom"]);function di(e){return ci.has(ii(e))?"y":"x"}function fi(e){return li(di(e))}function pi(e){return e.replace(/start|end/g,e=>ri[e])}const hi=["left","right"],mi=["right","left"],gi=["top","bottom"],yi=["bottom","top"];function vi(e,t,n,r){const o=si(e);let a=function(e,t,n){switch(e){case"top":case"bottom":return n?t?mi:hi:t?hi:mi;case"left":case"right":return t?gi:yi;default:return[]}}(ii(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(pi)))),a}function bi(e){return e.replace(/left|right|bottom|top/g,e=>ni[e])}function wi(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function xi(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 Si(e,t,n){let{reference:r,floating:o}=e;const a=di(t),i=fi(t),s=ui(i),l=ii(t),u="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(l){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(si(t)){case"start":p[i]-=f*(n&&u?-1:1);break;case"end":p[i]+=f*(n&&u?-1:1)}return p}async function Ci(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=ai(t,e),h=wi(p),m=s[f?"floating"===d?"reference":"floating":d],g=xi(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},w=xi(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-w.top+h.top)/b.y,bottom:(w.bottom-g.bottom+h.bottom)/b.y,left:(g.left-w.left+h.left)/b.x,right:(w.right-g.right+h.right)/b.x}}function ki(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function _i(e){return Qa.some(t=>e[t]>=0)}const Ei=new Set(["left","top"]);function ji(){return"undefined"!=typeof window}function Oi(e){return Pi(e)?(e.nodeName||"").toLowerCase():"#document"}function Ni(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ri(e){var t;return null==(t=(Pi(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Pi(e){return!!ji()&&(e instanceof Node||e instanceof Ni(e).Node)}function Ti(e){return!!ji()&&(e instanceof Element||e instanceof Ni(e).Element)}function Di(e){return!!ji()&&(e instanceof HTMLElement||e instanceof Ni(e).HTMLElement)}function Mi(e){return!(!ji()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ni(e).ShadowRoot)}const Ii=new Set(["inline","contents"]);function Ai(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Gi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Ii.has(o)}const Fi=new Set(["table","td","th"]);function Li(e){return Fi.has(Oi(e))}const zi=[":popover-open",":modal"];function $i(e){return zi.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const Hi=["transform","translate","scale","rotate","perspective"],Vi=["transform","translate","scale","rotate","perspective","filter"],Bi=["paint","layout","strict","content"];function Ui(e){const t=Wi(),n=Ti(e)?Gi(e):e;return Hi.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Vi.some(e=>(n.willChange||"").includes(e))||Bi.some(e=>(n.contain||"").includes(e))}function Wi(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Yi=new Set(["html","body","#document"]);function qi(e){return Yi.has(Oi(e))}function Gi(e){return Ni(e).getComputedStyle(e)}function Ki(e){return Ti(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qi(e){if("html"===Oi(e))return e;const t=e.assignedSlot||e.parentNode||Mi(e)&&e.host||Ri(e);return Mi(t)?t.host:t}function Xi(e){const t=Qi(e);return qi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Di(t)&&Ai(t)?t:Xi(t)}function Zi(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Xi(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=Ni(o);if(a){const e=Ji(i);return t.concat(i,i.visualViewport||[],Ai(o)?o:[],e&&n?Zi(e):[])}return t.concat(o,Zi(o,[],n))}function Ji(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function es(e){const t=Gi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Di(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=Ja(n)!==a||Ja(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function ts(e){return Ti(e)?e:e.contextElement}function ns(e){const t=ts(e);if(!Di(t))return ti(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=es(t);let i=(a?Ja(n.width):n.width)/r,s=(a?Ja(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const rs=ti(0);function os(e){const t=Ni(e);return Wi()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:rs}function as(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=ts(e);let i=ti(1);t&&(r?Ti(r)&&(i=ns(r)):i=ns(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ni(e))&&t}(a,n,r)?os(a):ti(0);let l=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,c=o.width/i.x,d=o.height/i.y;if(a){const e=Ni(a),t=r&&Ti(r)?Ni(r):r;let n=e,o=Ji(n);for(;o&&r&&t!==n;){const e=ns(o),t=o.getBoundingClientRect(),r=Gi(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=a,u+=i,n=Ni(o),o=Ji(n)}}return xi({width:c,height:d,x:l,y:u})}function is(e,t){const n=Ki(e).scrollLeft;return t?t.left+n:as(Ri(e)).left+n}function ss(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-is(e,n),y:n.top+t.scrollTop}}const ls=new Set(["absolute","fixed"]);function us(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Ni(e),r=Ri(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const e=Wi();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const u=is(r);if(u<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-o);i<=25&&(a-=i)}else u<=25&&(a+=u);return{width:a,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Ri(e),n=Ki(e),r=e.ownerDocument.body,o=Za(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Za(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+is(e);const s=-n.scrollTop;return"rtl"===Gi(r).direction&&(i+=Za(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}(Ri(e));else if(Ti(t))r=function(e,t){const n=as(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Di(e)?ns(e):ti(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=os(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return xi(r)}function cs(e,t){const n=Qi(e);return!(n===t||!Ti(n)||qi(n))&&("fixed"===Gi(n).position||cs(n,t))}function ds(e,t,n){const r=Di(t),o=Ri(t),a="fixed"===n,i=as(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=ti(0);function u(){l.x=is(o)}if(r||!r&&!a)if(("body"!==Oi(t)||Ai(o))&&(s=Ki(t)),r){const e=as(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&u();a&&!r&&o&&u();const c=!o||r||a?ti(0):ss(o,s);return{x:i.left+s.scrollLeft-l.x-c.x,y:i.top+s.scrollTop-l.y-c.y,width:i.width,height:i.height}}function fs(e){return"static"===Gi(e).position}function ps(e,t){if(!Di(e)||"fixed"===Gi(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Ri(e)===n&&(n=n.ownerDocument.body),n}function hs(e,t){const n=Ni(e);if($i(e))return n;if(!Di(e)){let t=Qi(e);for(;t&&!qi(t);){if(Ti(t)&&!fs(t))return t;t=Qi(t)}return n}let r=ps(e,t);for(;r&&Li(r)&&fs(r);)r=ps(r,t);return r&&qi(r)&&fs(r)&&!Ui(r)?n:r||function(e){let t=Qi(e);for(;Di(t)&&!qi(t);){if(Ui(t))return t;if($i(t))return null;t=Qi(t)}return null}(e)||n}const ms={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=Ri(r),s=!!t&&$i(t.floating);if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=ti(1);const c=ti(0),d=Di(r);if((d||!d&&!a)&&(("body"!==Oi(r)||Ai(i))&&(l=Ki(r)),Di(r))){const e=as(r);u=ns(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}const f=!i||d||a?ti(0):ss(i,l);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}},getDocumentElement:Ri,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?$i(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Zi(e,[],!1).filter(e=>Ti(e)&&"body"!==Oi(e)),o=null;const a="fixed"===Gi(e).position;let i=a?Qi(e):e;for(;Ti(i)&&!qi(i);){const t=Gi(i),n=Ui(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&ls.has(o.position)||Ai(i)&&!n&&cs(e,i))?r=r.filter(e=>e!==i):o=t,i=Qi(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],s=a.reduce((e,n)=>{const r=us(t,n,o);return e.top=Za(r.top,e.top),e.right=Xa(r.right,e.right),e.bottom=Xa(r.bottom,e.bottom),e.left=Za(r.left,e.left),e},us(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:hs,getElementRects:async function(e){const t=this.getOffsetParent||hs,n=this.getDimensions,r=await n(e.floating);return{reference:ds(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=es(e);return{width:t,height:n}},getScale:ns,isElement:Ti,isRTL:function(e){return"rtl"===Gi(e).direction}};function gs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ys(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:l=!1}=r,u=ts(e),c=o||a?[...u?Zi(u):[],...Zi(t)]:[];c.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const d=u&&s?function(e,t){let n,r=null;const o=Ri(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(s||t(),!f||!p)return;const h={rootMargin:-ei(d)+"px "+-ei(o.clientWidth-(c+f))+"px "+-ei(o.clientHeight-(d+p))+"px "+-ei(c)+"px",threshold:Za(0,Xa(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return i();r?i(!1,r):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==r||gs(u,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),a}(u,n):null;let f,p=-1,h=null;i&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let m=l?as(e):null;return l&&function t(){const r=as(e);m&&!gs(m,r)&&n();m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}const vs=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,l=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=ii(n),s=si(n),l="y"===di(n),u=Ei.has(i)?-1:1,c=a&&l?-1:1,d=ai(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},bs=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}}},...l}=ai(e,t),u={x:n,y:r},c=await Ci(t,l),d=di(ii(o)),f=li(d);let p=u[f],h=u[d];if(a){const e="y"===f?"bottom":"right";p=oi(p+c["y"===f?"top":"left"],p,p-c[e])}if(i){const e="y"===d?"bottom":"right";h=oi(h+c["y"===d?"top":"left"],h,h-c[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:a,[d]:i}}}}}},ws=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:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=ai(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const y=ii(o),v=di(s),b=ii(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(u.floating)),x=f||(b||!m?[bi(s)]:function(e){const t=bi(e);return[pi(e),t,pi(t)]}(s)),S="none"!==h;!f&&S&&x.push(...vi(s,m,h,w));const C=[s,...x],k=await Ci(t,g),_=[];let E=(null==(r=a.flip)?void 0:r.overflows)||[];if(c&&_.push(k[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=si(e),o=fi(e),a=ui(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=bi(i)),[i,bi(i)]}(o,i,w);_.push(k[e[0]],k[e[1]])}if(E=[...E,{placement:o,overflows:_}],!_.every(e=>e<=0)){var j,O;const e=((null==(j=a.flip)?void 0:j.index)||0)+1,t=C[e];if(t){if(!("alignment"===d&&v!==di(t))||E.every(e=>di(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:E},reset:{placement:t}}}let n=null==(O=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:O.placement;if(!n)switch(p){case"bestFit":{var N;const e=null==(N=E.filter(e=>{if(S){const t=di(e.placement);return t===v||"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:N[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},xs=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:l=()=>{},...u}=ai(e,t),c=await Ci(t,u),d=ii(o),f=si(o),p="y"===di(o),{width:h,height:m}=a.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=f===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g="end"===f?"top":"bottom");const v=m-c.top-c.bottom,b=h-c.left-c.right,w=Xa(m-c[g],v),x=Xa(h-c[y],b),S=!t.middlewareData.shift;let C=w,k=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(C=v),S&&!f){const e=Za(c.left,0),t=Za(c.right,0),n=Za(c.top,0),r=Za(c.bottom,0);p?k=h-2*(0!==e||0!==t?e+t:Za(c.left,c.right)):C=m-2*(0!==n||0!==r?n+r:Za(c.top,c.bottom))}await l({...t,availableWidth:k,availableHeight:C});const _=await i.getDimensions(s.floating);return h!==_.width||m!==_.height?{reset:{rects:!0}}:{}}}},Ss=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ai(e,t);switch(r){case"referenceHidden":{const e=ki(await Ci(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:_i(e)}}}case"escaped":{const e=ki(await Ci(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:_i(e)}}}default:return{}}}}},Cs=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=ai(e,t)||{};if(null==u)return{};const d=wi(c),f={x:n,y:r},p=fi(o),h=ui(p),m=await i.getDimensions(u),g="y"===p,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=a.reference[h]+a.reference[p]-f[p]-a.floating[h],x=f[p]-a.reference[p],S=await(null==i.getOffsetParent?void 0:i.getOffsetParent(u));let C=S?S[b]:0;C&&await(null==i.isElement?void 0:i.isElement(S))||(C=s.floating[b]||a.floating[h]);const k=w/2-x/2,_=C/2-m[h]/2-1,E=Xa(d[y],_),j=Xa(d[v],_),O=E,N=C-m[h]-j,R=C/2-m[h]/2+k,P=oi(O,R,N),T=!l.arrow&&null!=si(o)&&R!==P&&a.reference[h]/2-(R<O?E:j)-m[h]/2<0,D=T?R<O?R-O:R-N:0;return{[p]:f[p]+D,data:{[p]:P,centerOffset:R-P-D,...T&&{alignmentOffset:D}},reset:T}}}),ks=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:l=!0,crossAxis:u=!0}=ai(e,t),c={x:n,y:r},d=di(o),f=li(d);let p=c[f],h=c[d];const m=ai(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var y,v;const e="y"===f?"width":"height",t=Ei.has(ii(o)),n=a.reference[d]-a.floating[e]+(t&&(null==(y=i.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(v=i.offset)?void 0:v[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},_s=(e,t,n)=>{const r=new Map,o={platform:ms,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=Si(u,r,l),f=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:a,fn:m}=s[n],{x:g,y:y,data:v,reset:b}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:i,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=y?y:d,p={...p,[a]:{...p[a],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:d}=Si(u,f,l))),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:a})};var Es="undefined"!=typeof document?D.useLayoutEffect:function(){};function js(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(!js(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)&&!js(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Os(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ns(e,t){const n=Os(e);return Math.round(t*n)/n}function Rs(e){const t=D.useRef(e);return Es(()=>{t.current=e}),t}const Ps=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Cs({element:n.current,padding:r}).fn(t):{}:n?Cs({element:n,padding:r}).fn(t):{};var o}}),Ts=(e,t)=>({...vs(e),options:[e,t]}),Ds=(e,t)=>({...bs(e),options:[e,t]}),Ms=(e,t)=>({...ks(e),options:[e,t]}),Is=(e,t)=>({...ws(e),options:[e,t]}),As=(e,t)=>({...xs(e),options:[e,t]}),Fs=(e,t)=>({...Ss(e),options:[e,t]}),Ls=(e,t)=>({...Ps(e),options:[e,t]});var zs=D.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return m.jsx(ba.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});zs.displayName="Arrow";var $s=zs;var Hs="Popper",[Vs,Bs]=sa(Hs),[Us,Ws]=Vs(Hs),Ys=e=>{const{__scopePopper:t,children:n}=e,[r,o]=D.useState(null);return m.jsx(Us,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ys.displayName=Hs;var qs="PopperAnchor",Gs=D.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Ws(qs,n),i=D.useRef(null),s=ia(t,i),l=D.useRef(null);return D.useEffect(()=>{const e=l.current;l.current=r?.current||i.current,e!==l.current&&a.onAnchorChange(l.current)}),r?null:m.jsx(ba.div,{...o,ref:s})});Gs.displayName=qs;var Ks="PopperContent",[Qs,Xs]=Vs(Ks),Zs=D.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:h,...g}=e,y=Ws(Ks,n),[v,b]=D.useState(null),w=ia(t,e=>b(e)),[x,S]=D.useState(null),C=function(e){const[t,n]=D.useState(void 0);return ua(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!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}(x),k=C?.width??0,_=C?.height??0,E=r+("center"!==a?"-"+a:""),j="number"==typeof c?c:{top:0,right:0,bottom:0,left:0,...c},O=Array.isArray(u)?u:[u],N=O.length>0,R={padding:j,boundary:O.filter(nl),altBoundary:N},{refs:P,floatingStyles:T,placement:M,isPositioned:I,middlewareData:A}=function(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:l,open:u}=e,[c,d]=D.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=D.useState(r);js(f,r)||p(r);const[h,m]=D.useState(null),[g,y]=D.useState(null),v=D.useCallback(e=>{e!==S.current&&(S.current=e,m(e))},[]),b=D.useCallback(e=>{e!==C.current&&(C.current=e,y(e))},[]),w=a||h,x=i||g,S=D.useRef(null),C=D.useRef(null),k=D.useRef(c),_=null!=l,E=Rs(l),j=Rs(o),O=Rs(u),N=D.useCallback(()=>{if(!S.current||!C.current)return;const e={placement:t,strategy:n,middleware:f};j.current&&(e.platform=j.current),_s(S.current,C.current,e).then(e=>{const t={...e,isPositioned:!1!==O.current};R.current&&!js(k.current,t)&&(k.current=t,fa.flushSync(()=>{d(t)}))})},[f,t,n,j,O]);Es(()=>{!1===u&&k.current.isPositioned&&(k.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);const R=D.useRef(!1);Es(()=>(R.current=!0,()=>{R.current=!1}),[]),Es(()=>{if(w&&(S.current=w),x&&(C.current=x),w&&x){if(E.current)return E.current(w,x,N);N()}},[w,x,N,E,_]);const P=D.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:b}),[v,b]),T=D.useMemo(()=>({reference:w,floating:x}),[w,x]),M=D.useMemo(()=>{const e={position:n,left:0,top:0};if(!T.floating)return e;const t=Ns(T.floating,c.x),r=Ns(T.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Os(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,T.floating,c.x,c.y]);return D.useMemo(()=>({...c,update:N,refs:P,elements:T,floatingStyles:M}),[c,N,P,T,M])}({strategy:"fixed",placement:E,whileElementsMounted:(...e)=>ys(...e,{animationFrame:"always"===p}),elements:{reference:y.anchor},middleware:[Ts({mainAxis:o+_,alignmentAxis:i}),l&&Ds({mainAxis:!0,crossAxis:!1,limiter:"partial"===d?Ms():void 0,...R}),l&&Is({...R}),As({...R,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`)}}),x&&Ls({element:x,padding:s}),rl({arrowWidth:k,arrowHeight:_}),f&&Fs({strategy:"referenceHidden",...R})]}),[F,L]=ol(M),z=ka(h);ua(()=>{I&&z?.()},[I,z]);const $=A.arrow?.x,H=A.arrow?.y,V=0!==A.arrow?.centerOffset,[B,U]=D.useState();return ua(()=>{v&&U(window.getComputedStyle(v).zIndex)},[v]),m.jsx("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:I?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:B,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(Qs,{scope:n,placedSide:F,onArrowChange:S,arrowX:$,arrowY:H,shouldHideArrow:V,children:m.jsx(ba.div,{"data-side":F,"data-align":L,...g,ref:w,style:{...g.style,animation:I?void 0:"none"}})})})});Zs.displayName=Ks;var Js="PopperArrow",el={top:"bottom",right:"left",bottom:"top",left:"right"},tl=D.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=Xs(Js,n),a=el[o.placedSide];return m.jsx("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},children:m.jsx($s,{...r,ref:t,style:{...r.style,display:"block"}})})});function nl(e){return null!==e}tl.displayName=Js;var rl=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=0!==o.arrow?.centerOffset,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,u]=ol(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(o.arrow?.x??0)+i/2,f=(o.arrow?.y??0)+s/2;let p="",h="";return"bottom"===l?(p=a?c:`${d}px`,h=-s+"px"):"top"===l?(p=a?c:`${d}px`,h=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",h=a?c:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,h=a?c:`${f}px`),{data:{x:p,y:h}}}});function ol(e){const[t,n="center"]=e.split("-");return[t,n]}var al=Ys,il=Gs,sl=Zs,ll=tl,ul=D.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=D.useState(!1);ua(()=>a(!0),[]);const i=n||o&&globalThis?.document?.body;return i?pa.createPortal(m.jsx(ba.div,{...r,ref:t}),i):null});ul.displayName="Portal";var cl=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=D.useState(),r=D.useRef(null),o=D.useRef(e),a=D.useRef("none"),i=e?"mounted":"unmounted",[s,l]=function(e,t){return D.useReducer((e,n)=>t[e][n]??e,e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return D.useEffect(()=>{const e=dl(r.current);a.current="mounted"===s?e:"none"},[s]),ua(()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=dl(t);if(e)l("MOUNT");else if("none"===i||"none"===t?.display)l("UNMOUNT");else{l(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,l]),ua(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=a=>{const i=dl(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&i&&(l("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=dl(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)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:D.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):D.Children.only(n),a=ia(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?D.cloneElement(o,{ref:a}):null};function dl(e){return e?.animationName||"none"}cl.displayName="Presence";var fl="rovingFocusGroup.onEntryFocus",pl={bubbles:!1,cancelable:!0},hl="RovingFocusGroup",[ml,gl,yl]=xa(hl),[vl,bl]=sa(hl,[yl]),[wl,xl]=vl(hl),Sl=D.forwardRef((e,t)=>m.jsx(ml.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(ml.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Cl,{...e,ref:t})})}));Sl.displayName=hl;var Cl=D.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...d}=e,f=D.useRef(null),p=ia(t,f),h=Ca(a),[g,y]=da({prop:i,defaultProp:s??null,onChange:l,caller:hl}),[v,b]=D.useState(!1),w=ka(u),x=gl(n),S=D.useRef(!1),[C,k]=D.useState(0);return D.useEffect(()=>{const e=f.current;if(e)return e.addEventListener(fl,w),()=>e.removeEventListener(fl,w)},[w]),m.jsx(wl,{scope:n,orientation:r,dir:h,loop:o,currentTabStopId:g,onItemFocus:D.useCallback(e=>y(e),[y]),onItemShiftTab:D.useCallback(()=>b(!0),[]),onFocusableItemAdd:D.useCallback(()=>k(e=>e+1),[]),onFocusableItemRemove:D.useCallback(()=>k(e=>e-1),[]),children:m.jsx(ba.div,{tabIndex:v||0===C?-1:0,"data-orientation":r,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:ra(e.onMouseDown,()=>{S.current=!0}),onFocus:ra(e.onFocus,e=>{const t=!S.current;if(e.target===e.currentTarget&&t&&!v){const t=new CustomEvent(fl,pl);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=x().filter(e=>e.focusable);jl([e.find(e=>e.active),e.find(e=>e.id===g),...e].filter(Boolean).map(e=>e.ref.current),c)}}S.current=!1}),onBlur:ra(e.onBlur,()=>b(!1))})})}),kl="RovingFocusGroupItem",_l=D.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:i,...s}=e,l=Ka(),u=a||l,c=xl(kl,n),d=c.currentTabStopId===u,f=gl(n),{onFocusableItemAdd:p,onFocusableItemRemove:h,currentTabStopId:g}=c;return D.useEffect(()=>{if(r)return p(),()=>h()},[r,p,h]),m.jsx(ml.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:m.jsx(ba.span,{tabIndex:d?0:-1,"data-orientation":c.orientation,...s,ref:t,onMouseDown:ra(e.onMouseDown,e=>{r?c.onItemFocus(u):e.preventDefault()}),onFocus:ra(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:ra(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:El[r]}(e,c.orientation,c.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=f().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const a=o.indexOf(e.currentTarget);o=c.loop?(r=a+1,(n=o).map((e,t)=>n[(r+t)%n.length])):o.slice(a+1)}setTimeout(()=>jl(o))}var n,r}),children:"function"==typeof i?i({isCurrentTabStop:d,hasTabStop:null!=g}):i})})});_l.displayName=kl;var El={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function jl(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var Ol=Sl,Nl=_l,Rl=new WeakMap,Pl=new WeakMap,Tl={},Dl=0,Ml=function(e){return e&&(e.host||Ml(e.parentNode))},Il=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ml(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Tl[n]||(Tl[n]=new WeakMap);var a=Tl[n],i=[],s=new Set,l=new Set(o),u=function(e){e&&!s.has(e)&&(s.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){e&&!l.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,l=(Rl.get(e)||0)+1,u=(a.get(e)||0)+1;Rl.set(e,l),a.set(e,u),i.push(e),1===l&&o&&Pl.set(e,!0),1===u&&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(),Dl++,function(){i.forEach(function(e){var t=Rl.get(e)-1,o=a.get(e)-1;Rl.set(e,t),a.set(e,o),t||(Pl.has(e)||e.removeAttribute(r),Pl.delete(e)),o||e.removeAttribute(n)}),--Dl||(Rl=new WeakMap,Rl=new WeakMap,Pl=new WeakMap,Tl={})}},Al=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Il(r,o,n,"aria-hidden")):function(){return null}},Fl=function(){return Fl=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},Fl.apply(this,arguments)};function Ll(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 zl(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))}"function"==typeof SuppressedError&&SuppressedError;var $l="right-scroll-bar-position",Hl="width-before-scroll-bar";function Vl(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Bl="undefined"!=typeof window?D.useLayoutEffect:D.useEffect,Ul=new WeakMap;function Wl(e,t){var n,r,o,a=(n=null,r=function(t){return e.forEach(function(e){return Vl(e,t)})},(o=D.useState(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=r,o.facade);return Bl(function(){var t=Ul.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach(function(e){r.has(e)||Vl(e,null)}),r.forEach(function(e){n.has(e)||Vl(e,o)})}Ul.set(a,e)},[e]),a}function Yl(e){return e}var ql=function(e){var t=e.sideCar,n=Ll(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 D.createElement(r,Fl({},n))};ql.isSideCarExport=!0;var Gl=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Yl);var n=[],r=!1,o={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}}}};return o}(null);return t.options=Fl({async:!0,ssr:!1},e),t}(),Kl=function(){},Ql=D.forwardRef(function(e,t){var n=D.useRef(null),r=D.useState({onScrollCapture:Kl,onWheelCapture:Kl,onTouchMoveCapture:Kl}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,h=e.noIsolation,m=e.inert,g=e.allowPinchZoom,y=e.as,v=void 0===y?"div":y,b=e.gapMode,w=Ll(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=f,S=Wl([n,t]),C=Fl(Fl({},w),o);return D.createElement(D.Fragment,null,c&&D.createElement(x,{sideCar:Gl,removeScrollBar:u,shards:d,noRelative:p,noIsolation:h,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:b}),i?D.cloneElement(D.Children.only(s),Fl(Fl({},C),{ref:S})):D.createElement(v,Fl({},C,{className:l,ref:S}),s))});Ql.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ql.classNames={fullWidth:Hl,zeroRight:$l};function Xl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Zl=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=Xl())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Jl=function(){var e,t=(e=Zl(),function(t,n){D.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},eu={left:0,top:0,right:0,gap:0},tu=function(e){return parseInt(e||"",10)||0},nu=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return eu;var t=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[tu(n),tu(r),tu(o)]}(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])}},ru=Jl(),ou="data-scroll-locked",au=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("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(ou,"] {\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($l," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Hl," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat($l," .").concat($l," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Hl," .").concat(Hl," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(ou,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},iu=function(){var e=parseInt(document.body.getAttribute(ou)||"0",10);return isFinite(e)?e:0},su=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;D.useEffect(function(){return document.body.setAttribute(ou,(iu()+1).toString()),function(){var e=iu()-1;e<=0?document.body.removeAttribute(ou):document.body.setAttribute(ou,e.toString())}},[]);var a=D.useMemo(function(){return nu(o)},[o]);return D.createElement(ru,{styles:au(a,!t,o,n?"":"!important")})},lu=!1;if("undefined"!=typeof window)try{var uu=Object.defineProperty({},"passive",{get:function(){return lu=!0,!0}});window.addEventListener("test",uu,uu),window.removeEventListener("test",uu,uu)}catch(e){lu=!1}var cu=!!lu&&{passive:!1},du=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},fu=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),pu(e,r)){var o=hu(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},pu=function(e,t){return"v"===e?function(e){return du(e,"overflowY")}(t):function(e){return du(e,"overflowX")}(t)},hu=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},mu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},gu=function(e){return[e.deltaX,e.deltaY]},yu=function(e){return e&&"current"in e?e.current:e},vu=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},bu=0,wu=[];function xu(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Su,Cu=(Su=function(e){var t=D.useRef([]),n=D.useRef([0,0]),r=D.useRef(),o=D.useState(bu++)[0],a=D.useState(Jl)[0],i=D.useRef(e);D.useEffect(function(){i.current=e},[e]),D.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=zl([e.lockRef.current],(e.shards||[]).map(yu),!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=D.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=mu(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-a[0],u="deltaY"in e?e.deltaY:s[1]-a[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=fu(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=fu(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*r,i=n.target,s=t.contains(i),l=!1,u=a>0,c=0,d=0;do{if(!i)break;var f=hu(e,i),p=f[0],h=f[1]-f[2]-o*p;(p||h)&&pu(e,i)&&(c+=h,d+=p);var m=i.parentNode;i=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return(u&&Math.abs(c)<1||!u&&Math.abs(d)<1)&&(l=!0),l}(p,t,e,"h"===p?l:u)},[]),l=D.useCallback(function(e){var n=e;if(wu.length&&wu[wu.length-1]===a){var r="deltaY"in n?gu(n):mu(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var l=(i.current.shards||[]).map(yu).filter(Boolean).filter(function(e){return e.contains(n.target)});(l.length>0?s(n,l[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=D.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:xu(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),c=D.useCallback(function(e){n.current=mu(e),r.current=void 0},[]),d=D.useCallback(function(t){u(t.type,gu(t),t.target,s(t,e.lockRef.current))},[]),f=D.useCallback(function(t){u(t.type,mu(t),t.target,s(t,e.lockRef.current))},[]);D.useEffect(function(){return wu.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,cu),document.addEventListener("touchmove",l,cu),document.addEventListener("touchstart",c,cu),function(){wu=wu.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,cu),document.removeEventListener("touchmove",l,cu),document.removeEventListener("touchstart",c,cu)}},[]);var p=e.removeScrollBar,h=e.inert;return D.createElement(D.Fragment,null,h?D.createElement(a,{styles:vu(o)}):null,p?D.createElement(su,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},Gl.useMedium(Su),ql),ku=D.forwardRef(function(e,t){return D.createElement(Ql,Fl({},e,{ref:t,sideCar:Cu}))});ku.classNames=Ql.classNames;var _u=["Enter"," "],Eu=["ArrowUp","PageDown","End"],ju=["ArrowDown","PageUp","Home",...Eu],Ou={ltr:[..._u,"ArrowRight"],rtl:[..._u,"ArrowLeft"]},Nu={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ru="Menu",[Pu,Tu,Du]=xa(Ru),[Mu,Iu]=sa(Ru,[Du,Bs,bl]),Au=Bs(),Fu=bl(),[Lu,zu]=Mu(Ru),[$u,Hu]=Mu(Ru),Vu=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=Au(t),[l,u]=D.useState(null),c=D.useRef(!1),d=ka(a),f=Ca(o);return D.useEffect(()=>{const e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),m.jsx(al,{...s,children:m.jsx(Lu,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u,children:m.jsx($u,{scope:t,onClose:D.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:i,children:r})})})};Vu.displayName=Ru;var Bu=D.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Au(n);return m.jsx(il,{...o,...r,ref:t})});Bu.displayName="MenuAnchor";var Uu="MenuPortal",[Wu,Yu]=Mu(Uu,{forceMount:void 0}),qu=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=zu(Uu,t);return m.jsx(Wu,{scope:t,forceMount:n,children:m.jsx(cl,{present:n||a.open,children:m.jsx(ul,{asChild:!0,container:o,children:r})})})};qu.displayName=Uu;var Gu="MenuContent",[Ku,Qu]=Mu(Gu),Xu=D.forwardRef((e,t)=>{const n=Yu(Gu,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=zu(Gu,e.__scopeMenu),i=Hu(Gu,e.__scopeMenu);return m.jsx(Pu.Provider,{scope:e.__scopeMenu,children:m.jsx(cl,{present:r||a.open,children:m.jsx(Pu.Slot,{scope:e.__scopeMenu,children:i.modal?m.jsx(Zu,{...o,ref:t}):m.jsx(Ju,{...o,ref:t})})})})}),Zu=D.forwardRef((e,t)=>{const n=zu(Gu,e.__scopeMenu),r=D.useRef(null),o=ia(t,r);return D.useEffect(()=>{const e=r.current;if(e)return Al(e)},[]),m.jsx(tc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:ra(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Ju=D.forwardRef((e,t)=>{const n=zu(Gu,e.__scopeMenu);return m.jsx(tc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ec=ha("MenuContent.ScrollLock"),tc=D.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:h,...g}=e,y=zu(Gu,n),v=Hu(Gu,n),b=Au(n),w=Fu(n),x=Tu(n),[S,C]=D.useState(null),k=D.useRef(null),_=ia(t,k,y.onContentChange),E=D.useRef(0),j=D.useRef(""),O=D.useRef(0),N=D.useRef(null),R=D.useRef("right"),P=D.useRef(0),T=h?ku:D.Fragment,M=h?{as:ec,allowPinchZoom:!0}:void 0,I=e=>{const t=j.current+e,n=x().filter(e=>!e.disabled),r=document.activeElement,o=n.find(e=>e.ref.current===r)?.textValue,a=function(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0]),o=r?t[0]:t,a=n?e.indexOf(n):-1;let i=(s=e,l=Math.max(a,0),s.map((e,t)=>s[(l+t)%s.length]));var s,l;1===o.length&&(i=i.filter(e=>e!==n));const u=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}(n.map(e=>e.textValue),t,o),i=n.find(e=>e.textValue===a)?.ref.current;!function e(t){j.current=t,window.clearTimeout(E.current),""!==t&&(E.current=window.setTimeout(()=>e(""),1e3))}(t),i&&setTimeout(()=>i.focus())};D.useEffect(()=>()=>window.clearTimeout(E.current),[]),Ia();const A=D.useCallback(e=>R.current===N.current?.side&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(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],s=t[a],l=i.x,u=i.y,c=s.x,d=s.y;u>r!=d>r&&n<(c-l)*(r-u)/(d-u)+l&&(o=!o)}return o}(n,t)}(e,N.current?.area),[]);return m.jsx(Ku,{scope:n,searchRef:j,onItemEnter:D.useCallback(e=>{A(e)&&e.preventDefault()},[A]),onItemLeave:D.useCallback(e=>{A(e)||(k.current?.focus(),C(null))},[A]),onTriggerLeave:D.useCallback(e=>{A(e)&&e.preventDefault()},[A]),pointerGraceTimerRef:O,onPointerGraceIntentChange:D.useCallback(e=>{N.current=e},[]),children:m.jsx(T,{...M,children:m.jsx($a,{asChild:!0,trapped:o,onMountAutoFocus:ra(a,e=>{e.preventDefault(),k.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:m.jsx(Ra,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:m.jsx(Ol,{asChild:!0,...w,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:C,onEntryFocus:ra(l,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:m.jsx(sl,{role:"menu","aria-orientation":"vertical","data-state":jc(y.open),"data-radix-menu-content":"",dir:v.dir,...b,...g,ref:_,style:{outline:"none",...g.style},onKeyDown:ra(g.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&&I(e.key));const o=k.current;if(e.target!==o)return;if(!ju.includes(e.key))return;e.preventDefault();const a=x().filter(e=>!e.disabled).map(e=>e.ref.current);Eu.includes(e.key)&&a.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(a)}),onBlur:ra(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),j.current="")}),onPointerMove:ra(e.onPointerMove,Rc(e=>{const t=e.target,n=P.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>P.current?"right":"left";R.current=t,P.current=e.clientX}}))})})})})})})});Xu.displayName=Gu;var nc=D.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(ba.div,{role:"group",...r,ref:t})});nc.displayName="MenuGroup";var rc=D.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(ba.div,{...r,ref:t})});rc.displayName="MenuLabel";var oc="MenuItem",ac="menu.itemSelect",ic=D.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=D.useRef(null),i=Hu(oc,e.__scopeMenu),s=Qu(oc,e.__scopeMenu),l=ia(t,a),u=D.useRef(!1);return m.jsx(sc,{...o,ref:l,disabled:n,onClick:ra(e.onClick,()=>{const e=a.current;if(!n&&e){const t=new CustomEvent(ac,{bubbles:!0,cancelable:!0});e.addEventListener(ac,e=>r?.(e),{once:!0}),wa(e,t),t.defaultPrevented?u.current=!1:i.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),u.current=!0},onPointerUp:ra(e.onPointerUp,e=>{u.current||e.currentTarget?.click()}),onKeyDown:ra(e.onKeyDown,e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||_u.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ic.displayName=oc;var sc=D.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=Qu(oc,n),s=Fu(n),l=D.useRef(null),u=ia(t,l),[c,d]=D.useState(!1),[f,p]=D.useState("");return D.useEffect(()=>{const e=l.current;e&&p((e.textContent??"").trim())},[a.children]),m.jsx(Pu.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:m.jsx(Nl,{asChild:!0,...s,focusable:!r,children:m.jsx(ba.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:ra(e.onPointerMove,Rc(e=>{if(r)i.onItemLeave(e);else if(i.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}})),onPointerLeave:ra(e.onPointerLeave,Rc(e=>i.onItemLeave(e))),onFocus:ra(e.onFocus,()=>d(!0)),onBlur:ra(e.onBlur,()=>d(!1))})})})}),lc=D.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return m.jsx(gc,{scope:e.__scopeMenu,checked:n,children:m.jsx(ic,{role:"menuitemcheckbox","aria-checked":Oc(n)?"mixed":n,...o,ref:t,"data-state":Nc(n),onSelect:ra(o.onSelect,()=>r?.(!!Oc(n)||!n),{checkForDefaultPrevented:!1})})})});lc.displayName="MenuCheckboxItem";var uc="MenuRadioGroup",[cc,dc]=Mu(uc,{value:void 0,onValueChange:()=>{}}),fc=D.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=ka(r);return m.jsx(cc,{scope:e.__scopeMenu,value:n,onValueChange:a,children:m.jsx(nc,{...o,ref:t})})});fc.displayName=uc;var pc="MenuRadioItem",hc=D.forwardRef((e,t)=>{const{value:n,...r}=e,o=dc(pc,e.__scopeMenu),a=n===o.value;return m.jsx(gc,{scope:e.__scopeMenu,checked:a,children:m.jsx(ic,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Nc(a),onSelect:ra(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});hc.displayName=pc;var mc="MenuItemIndicator",[gc,yc]=Mu(mc,{checked:!1}),vc=D.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=yc(mc,n);return m.jsx(cl,{present:r||Oc(a.checked)||!0===a.checked,children:m.jsx(ba.span,{...o,ref:t,"data-state":Nc(a.checked)})})});vc.displayName=mc;var bc=D.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(ba.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});bc.displayName="MenuSeparator";var wc=D.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Au(n);return m.jsx(ll,{...o,...r,ref:t})});wc.displayName="MenuArrow";var[xc,Sc]=Mu("MenuSub"),Cc="MenuSubTrigger",kc=D.forwardRef((e,t)=>{const n=zu(Cc,e.__scopeMenu),r=Hu(Cc,e.__scopeMenu),o=Sc(Cc,e.__scopeMenu),a=Qu(Cc,e.__scopeMenu),i=D.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,u={__scopeMenu:e.__scopeMenu},c=D.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return D.useEffect(()=>c,[c]),D.useEffect(()=>{const e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),m.jsx(Bu,{asChild:!0,...u,children:m.jsx(sc,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":jc(n.open),...e,ref:aa(t,o.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:ra(e.onPointerMove,Rc(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:ra(e.onPointerLeave,Rc(e=>{c();const t=n.content?.getBoundingClientRect();if(t){const r=n.content?.dataset.side,o="right"===r,i=o?-5:5,l=t[o?"left":"right"],u=t[o?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+i,y:e.clientY},{x:l,y:t.top},{x:u,y:t.top},{x:u,y:t.bottom},{x:l,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:ra(e.onKeyDown,t=>{const o=""!==a.searchRef.current;e.disabled||o&&" "===t.key||Ou[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});kc.displayName=Cc;var _c="MenuSubContent",Ec=D.forwardRef((e,t)=>{const n=Yu(Gu,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=zu(Gu,e.__scopeMenu),i=Hu(Gu,e.__scopeMenu),s=Sc(_c,e.__scopeMenu),l=D.useRef(null),u=ia(t,l);return m.jsx(Pu.Provider,{scope:e.__scopeMenu,children:m.jsx(cl,{present:r||a.open,children:m.jsx(Pu.Slot,{scope:e.__scopeMenu,children:m.jsx(tc,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:u,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{i.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:ra(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:ra(e.onEscapeKeyDown,e=>{i.onClose(),e.preventDefault()}),onKeyDown:ra(e.onKeyDown,e=>{const t=e.currentTarget.contains(e.target),n=Nu[i.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});function jc(e){return e?"open":"closed"}function Oc(e){return"indeterminate"===e}function Nc(e){return Oc(e)?"indeterminate":e?"checked":"unchecked"}function Rc(e){return t=>"mouse"===t.pointerType?e(t):void 0}Ec.displayName=_c;var Pc=Vu,Tc=Bu,Dc=qu,Mc=Xu,Ic=nc,Ac=rc,Fc=ic,Lc=lc,zc=fc,$c=hc,Hc=vc,Vc=bc,Bc=wc,Uc=kc,Wc=Ec,Yc="DropdownMenu",[qc]=sa(Yc,[Iu]),Gc=Iu(),[Kc,Qc]=qc(Yc),Xc=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,l=Gc(t),u=D.useRef(null),[c,d]=da({prop:o,defaultProp:a??!1,onChange:i,caller:Yc});return m.jsx(Kc,{scope:t,triggerId:Ka(),triggerRef:u,contentId:Ka(),open:c,onOpenChange:d,onOpenToggle:D.useCallback(()=>d(e=>!e),[d]),modal:s,children:m.jsx(Pc,{...l,open:c,onOpenChange:d,dir:r,modal:s,children:n})})};Xc.displayName=Yc;var Zc="DropdownMenuTrigger",Jc=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Qc(Zc,n),i=Gc(n);return m.jsx(Tc,{asChild:!0,...i,children:m.jsx(ba.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:aa(t,a.triggerRef),onPointerDown:ra(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:ra(e.onKeyDown,e=>{r||(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});Jc.displayName=Zc;var ed=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Gc(t);return m.jsx(Dc,{...r,...n})};ed.displayName="DropdownMenuPortal";var td="DropdownMenuContent",nd=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qc(td,n),a=Gc(n),i=D.useRef(!1);return m.jsx(Mc,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:ra(e.onCloseAutoFocus,e=>{i.current||o.triggerRef.current?.focus(),i.current=!1,e.preventDefault()}),onInteractOutside:ra(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)"}})});nd.displayName=td;D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gc(n);return m.jsx(Ic,{...o,...r,ref:t})}).displayName="DropdownMenuGroup";var rd=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gc(n);return m.jsx(Ac,{...o,...r,ref:t})});rd.displayName="DropdownMenuLabel";var od=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gc(n);return m.jsx(Fc,{...o,...r,ref:t})});od.displayName="DropdownMenuItem";var ad=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gc(n);return m.jsx(Lc,{...o,...r,ref:t})});ad.displayName="DropdownMenuCheckboxItem";D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gc(n);return m.jsx(zc,{...o,...r,ref:t})}).displayName="DropdownMenuRadioGroup";var id=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gc(n);return m.jsx($c,{...o,...r,ref:t})});id.displayName="DropdownMenuRadioItem";var sd=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gc(n);return m.jsx(Hc,{...o,...r,ref:t})});sd.displayName="DropdownMenuItemIndicator";var ld=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gc(n);return m.jsx(Vc,{...o,...r,ref:t})});ld.displayName="DropdownMenuSeparator";D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gc(n);return m.jsx(Bc,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var ud=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gc(n);return m.jsx(Uc,{...o,...r,ref:t})});ud.displayName="DropdownMenuSubTrigger";var cd=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gc(n);return m.jsx(Wc,{...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)"}})});cd.displayName="DropdownMenuSubContent";var dd=Xc,fd=Jc,pd=ed,hd=nd,md=rd,gd=od,yd=ad,vd=id,bd=sd,wd=ld,xd=ud,Sd=cd;
|
|
33
|
-
/**
|
|
34
|
-
* @license lucide-react v0.525.0 - ISC
|
|
35
|
-
*
|
|
36
|
-
* This source code is licensed under the ISC license.
|
|
37
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/
|
|
39
|
-
const Cd=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},kd=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),_d=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};
|
|
40
|
-
/**
|
|
41
|
-
* @license lucide-react v0.525.0 - ISC
|
|
42
|
-
*
|
|
43
|
-
* This source code is licensed under the ISC license.
|
|
44
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/
|
|
46
|
-
var Ed={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"};
|
|
47
|
-
/**
|
|
48
|
-
* @license lucide-react v0.525.0 - ISC
|
|
49
|
-
*
|
|
50
|
-
* This source code is licensed under the ISC license.
|
|
51
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
52
|
-
*/const jd=D.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},l)=>D.createElement("svg",{ref:l,...Ed,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:kd("lucide",o),...!a&&!_d(s)&&{"aria-hidden":"true"},...s},[...i.map(([e,t])=>D.createElement(e,t)),...Array.isArray(a)?a:[a]])),Od=(e,t)=>{const n=D.forwardRef(({className:n,...r},o)=>{return D.createElement(jd,{ref:o,iconNode:t,className:kd(`lucide-${a=Cd(e),a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...r});var a});return n.displayName=Cd(e),n},Nd=Od("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Rd=Od("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Pd=Od("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Td=Od("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Dd=Od("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),Md=Od("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),Id=Od("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),Ad=Od("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Fd=dd,Ld=fd;
|
|
53
|
-
/**
|
|
54
|
-
* @license lucide-react v0.525.0 - ISC
|
|
55
|
-
*
|
|
56
|
-
* This source code is licensed under the ISC license.
|
|
57
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
58
|
-
*/D.forwardRef(({className:e,inset:t,children:n,...r},o)=>m.jsxs(xd,{ref:o,className:Ko("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-neutral-100 data-[state=open]:bg-neutral-100 dark:focus:bg-neutral-800 dark:data-[state=open]:bg-neutral-800",t&&"pl-8",e),...r,children:[n,m.jsx(Pd,{className:"ml-auto h-4 w-4"})]})).displayName=xd.displayName;D.forwardRef(({className:e,...t},n)=>m.jsx(Sd,{ref:n,className:Ko("z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-lg 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 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...t})).displayName=Sd.displayName;const zd=D.forwardRef(({className:e,sideOffset:t=4,...n},r)=>m.jsx(pd,{children:m.jsx(hd,{ref:r,sideOffset:t,className:Ko("z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-[0_8px_14px_0_#0F2A510A] 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 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...n})}));zd.displayName=hd.displayName;const $d=D.forwardRef(({className:e,inset:t,...n},r)=>m.jsx(gd,{ref:r,className:Ko("relative flex cursor-default select-none items-center rounded-sm px-2 py-2.5 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",t&&"pl-8",e),...n}));$d.displayName=gd.displayName;D.forwardRef(({className:e,children:t,checked:n,...r},o)=>m.jsxs(yd,{ref:o,className:Ko("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",e),checked:n,...r,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(bd,{children:m.jsx(Nd,{className:"h-4 w-4"})})}),t]})).displayName=yd.displayName;D.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(vd,{ref:r,className:Ko("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",e),...n,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(bd,{children:m.jsx(Md,{className:"h-2 w-2 fill-current"})})}),t]})).displayName=vd.displayName;D.forwardRef(({className:e,inset:t,...n},r)=>m.jsx(md,{ref:r,className:Ko("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n})).displayName=md.displayName;function Hd(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",s=!0;for(let e=0;e<a.length;e+=1){const r=a[e];r&&(i+=(!0===s?"":" ")+t(r),s=!1,n&&n[r]&&(i+=" "+n[r]))}r[o]=i}return r}D.forwardRef(({className:e,...t},n)=>m.jsx(wd,{ref:n,className:Ko("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800",e),...t})).displayName=wd.displayName;const Vd=e=>e,Bd=(()=>{let e=Vd;return{configure(t){e=t},generate:t=>e(t),reset(){e=Vd}}})(),Ud={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Wd(e,t,n="Mui"){const r=Ud[t];return r?`${n}-${r}`:`${Bd.generate(e)}-${t}`}function Yd(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Wd(e,t,n)}),r}function qd(e){return Wd("MuiPagination",e)}function Gd(e={}){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:o=1,disabled:a=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:l,page:u,showFirstButton:c=!1,showLastButton:d=!1,siblingCount:f=1,...p}=e,[h,m]=function(e){const{controlled:t,default:n}=e,{current:r}=D.useRef(void 0!==t),[o,a]=D.useState(n);return[r?t:o,D.useCallback(e=>{r||a(e)},[])]}({controlled:u,default:o}),g=(e,t)=>{u||m(t),l&&l(e,t)},y=(e,t)=>{const n=t-e+1;return Array.from({length:n},(t,n)=>e+n)},v=y(1,Math.min(t,r)),b=y(Math.max(r-t+1,t+1),r),w=Math.max(Math.min(h-f,r-t-2*f-1),t+2),x=Math.min(Math.max(h+f,t+2*f+2),r-t-1),S=[...c?["first"]:[],...s?[]:["previous"],...v,...w>t+2?["start-ellipsis"]:t+1<r-t?[t+1]:[],...y(w,x),...x<r-t-1?["end-ellipsis"]:r-t>t?[r-t]:[],...b,...i?[]:["next"],...d?["last"]:[]],C=e=>{switch(e){case"first":return 1;case"previous":return h-1;case"next":return h+1;case"last":return r;default:return null}};return{items:S.map(e=>"number"==typeof e?{onClick:t=>{g(t,e)},type:"page",page:e,selected:e===h,disabled:a,"aria-current":e===h?"page":void 0}:{onClick:t=>{g(t,C(e))},type:e,page:C(e),selected:!1,disabled:a||!e.includes("ellipsis")&&("next"===e||"last"===e?h>=r:h<=1)}),...p}}Yd("MuiPagination",["root","ul","outlined","text"]);const Kd=D.createContext();function Qd(e){return Wd("MuiPaginationItem",e)}const Xd=Yd("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]);function Zd(e){try{return e.matches(":focus-visible")}catch(e){}return!1}function Jd(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}function ef(e){if("string"!=typeof e)throw new Error(Jd(7));return e.charAt(0).toUpperCase()+e.slice(1)}var tf,nf,rf={exports:{}},of={};function af(){if(tf)return of;tf=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case n:case o:case r:case l:case u:case f:return p;default:switch(p=p&&p.$$typeof){case i:case s:case d:case c:case a:return p;default:return h}}case t:return h}}}return of.ContextConsumer=a,of.ContextProvider=i,of.Element=e,of.ForwardRef=s,of.Fragment=n,of.Lazy=d,of.Memo=c,of.Portal=t,of.Profiler=o,of.StrictMode=r,of.Suspense=l,of.SuspenseList=u,of.isContextConsumer=function(e){return h(e)===a},of.isContextProvider=function(e){return h(e)===i},of.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},of.isForwardRef=function(e){return h(e)===s},of.isFragment=function(e){return h(e)===n},of.isLazy=function(e){return h(e)===d},of.isMemo=function(e){return h(e)===c},of.isPortal=function(e){return h(e)===t},of.isProfiler=function(e){return h(e)===o},of.isStrictMode=function(e){return h(e)===r},of.isSuspense=function(e){return h(e)===l},of.isSuspenseList=function(e){return h(e)===u},of.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===i||e.$$typeof===a||e.$$typeof===s||e.$$typeof===p||void 0!==e.getModuleId)},of.typeOf=h,of}function sf(){return nf||(nf=1,rf.exports=af()),rf.exports}var lf=sf();function uf(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function cf(e){if(D.isValidElement(e)||lf.isValidElementType(e)||!uf(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=cf(e[n])}),t}function df(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return uf(e)&&uf(t)&&Object.keys(t).forEach(o=>{D.isValidElement(t[o])||lf.isValidElementType(t[o])?r[o]=t[o]:uf(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&uf(e[o])?r[o]=df(e[o],t[o],n):n.clone?r[o]=uf(t[o])?cf(t[o]):t[o]:r[o]=t[o]}),r}function ff(e,t){return t?df(e,t,{clone:!1}):e}function pf(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}const hf={xs:0,sm:600,md:900,lg:1200,xl:1536},mf={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${hf[e]}px)`},gf={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:hf[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function yf(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||mf;return t.reduce((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if("object"==typeof t){const e=r.breakpoints||mf;return Object.keys(t).reduce((o,a)=>{if(i=e.keys,"@"===(s=a)||s.startsWith("@")&&(i.some(e=>s.startsWith(`@${e}`))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}(r.containerQueries?r:gf,a);e&&(o[e]=n(t[a],a))}else if(Object.keys(e.values||hf).includes(a)){o[e.up(a)]=n(t[a],a)}else{const e=a;o[e]=t[e]}var i,s;return o},{})}return n(t)}function vf(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function bf(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function wf(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:bf(e,n)||r,t&&(o=t(o,r,e)),o}function xf(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=bf(e.theme,r)||{};return yf(e,a,e=>{let r=wf(i,o,e);return e===r&&"string"==typeof e&&(r=wf(i,o,`${t}${"default"===e?"":ef(e)}`,e)),!1===n?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}const Sf={m:"margin",p:"padding"},Cf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},kf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},_f=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!kf[e])return[e];e=kf[e]}const[t,n]=e.split(""),r=Sf[t],o=Cf[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),Ef=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],jf=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Of(e,t,n,r){const o=bf(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=o[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof o?o:()=>{}}function Nf(e){return Of(e,"spacing",8)}function Rf(e,t){return"string"==typeof t||null==t?t:e(t)}function Pf(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Rf(t,n),e),{})}(_f(n),r);return yf(e,e[n],o)}function Tf(e,t){const n=Nf(e.theme);return Object.keys(e).map(r=>Pf(e,t,r,n)).reduce(ff,{})}function Df(e){return Tf(e,Ef)}function Mf(e){return Tf(e,jf)}function If(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?ff(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Af(e){return"number"!=typeof e?e:`${e}px solid`}function Ff(e,t){return xf({prop:e,themeKey:"borders",transform:t})}Df.propTypes={},Df.filterProps=Ef,Mf.propTypes={},Mf.filterProps=jf;const Lf=Ff("border",Af),zf=Ff("borderTop",Af),$f=Ff("borderRight",Af),Hf=Ff("borderBottom",Af),Vf=Ff("borderLeft",Af),Bf=Ff("borderColor"),Uf=Ff("borderTopColor"),Wf=Ff("borderRightColor"),Yf=Ff("borderBottomColor"),qf=Ff("borderLeftColor"),Gf=Ff("outline",Af),Kf=Ff("outlineColor"),Qf=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Of(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Rf(t,e)});return yf(e,e.borderRadius,n)}return null};Qf.propTypes={},Qf.filterProps=["borderRadius"],If(Lf,zf,$f,Hf,Vf,Bf,Uf,Wf,Yf,qf,Qf,Gf,Kf);const Xf=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Of(e.theme,"spacing",8),n=e=>({gap:Rf(t,e)});return yf(e,e.gap,n)}return null};Xf.propTypes={},Xf.filterProps=["gap"];const Zf=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Of(e.theme,"spacing",8),n=e=>({columnGap:Rf(t,e)});return yf(e,e.columnGap,n)}return null};Zf.propTypes={},Zf.filterProps=["columnGap"];const Jf=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Of(e.theme,"spacing",8),n=e=>({rowGap:Rf(t,e)});return yf(e,e.rowGap,n)}return null};Jf.propTypes={},Jf.filterProps=["rowGap"];function ep(e,t){return"grey"===t?t:e}If(Xf,Zf,Jf,xf({prop:"gridColumn"}),xf({prop:"gridRow"}),xf({prop:"gridAutoFlow"}),xf({prop:"gridAutoColumns"}),xf({prop:"gridAutoRows"}),xf({prop:"gridTemplateColumns"}),xf({prop:"gridTemplateRows"}),xf({prop:"gridTemplateAreas"}),xf({prop:"gridArea"}));function tp(e){return e<=1&&0!==e?100*e+"%":e}If(xf({prop:"color",themeKey:"palette",transform:ep}),xf({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ep}),xf({prop:"backgroundColor",themeKey:"palette",transform:ep}));const np=xf({prop:"width",transform:tp}),rp=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||hf[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:tp(t)}};return yf(e,e.maxWidth,t)}return null};rp.filterProps=["maxWidth"];const op=xf({prop:"minWidth",transform:tp}),ap=xf({prop:"height",transform:tp}),ip=xf({prop:"maxHeight",transform:tp}),sp=xf({prop:"minHeight",transform:tp});xf({prop:"size",cssProperty:"width",transform:tp}),xf({prop:"size",cssProperty:"height",transform:tp});If(np,rp,op,ap,ip,sp,xf({prop:"boxSizing"}));const lp={border:{themeKey:"borders",transform:Af},borderTop:{themeKey:"borders",transform:Af},borderRight:{themeKey:"borders",transform:Af},borderBottom:{themeKey:"borders",transform:Af},borderLeft:{themeKey:"borders",transform:Af},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Af},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Qf},color:{themeKey:"palette",transform:ep},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ep},backgroundColor:{themeKey:"palette",transform:ep},p:{style:Mf},pt:{style:Mf},pr:{style:Mf},pb:{style:Mf},pl:{style:Mf},px:{style:Mf},py:{style:Mf},padding:{style:Mf},paddingTop:{style:Mf},paddingRight:{style:Mf},paddingBottom:{style:Mf},paddingLeft:{style:Mf},paddingX:{style:Mf},paddingY:{style:Mf},paddingInline:{style:Mf},paddingInlineStart:{style:Mf},paddingInlineEnd:{style:Mf},paddingBlock:{style:Mf},paddingBlockStart:{style:Mf},paddingBlockEnd:{style:Mf},m:{style:Df},mt:{style:Df},mr:{style:Df},mb:{style:Df},ml:{style:Df},mx:{style:Df},my:{style:Df},margin:{style:Df},marginTop:{style:Df},marginRight:{style:Df},marginBottom:{style:Df},marginLeft:{style:Df},marginX:{style:Df},marginY:{style:Df},marginInline:{style:Df},marginInlineStart:{style:Df},marginInlineEnd:{style:Df},marginBlock:{style:Df},marginBlockStart:{style:Df},marginBlockEnd:{style:Df},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Xf},rowGap:{style:Jf},columnGap:{style:Zf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:tp},maxWidth:{style:rp},minWidth:{transform:tp},height:{transform:tp},maxHeight:{transform:tp},minHeight:{transform:tp},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const up=function(){function e(e,t,n,r){const o={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:s,transform:l,style:u}=a;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=bf(n,s)||{};if(u)return u(o);return yf(o,t,t=>{let n=wf(c,l,t);return t===n&&"string"==typeof t&&(n=wf(c,l,`${e}${"default"===t?"":ef(t)}`,t)),!1===i?n:{[i]:n}})}return function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const i=o.unstable_sxConfig??lp;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const s=function(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}(o.breakpoints),l=Object.keys(s);let u=s;return Object.keys(r).forEach(n=>{const a=function(e,t){return"function"==typeof e?e(t):e}(r[n],o);if(null!=a)if("object"==typeof a)if(i[n])u=ff(u,e(n,a,o,i));else{const e=yf({theme:o},a,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,a)?u=ff(u,e):u[n]=t({sx:a,theme:o,nested:!0})}else u=ff(u,e(n,a,o,i))}),!a&&o.modularCssLayers?{"@layer sx":pf(o,vf(l,u))}:pf(o,vf(l,u))}return Array.isArray(r)?r.map(s):s(r)}}();function cp(){return cp=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},cp.apply(null,arguments)}up.filterProps=["sx"];var dp=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),fp="-ms-",pp="-moz-",hp="-webkit-",mp="comm",gp="rule",yp="decl",vp="@keyframes",bp=Math.abs,wp=String.fromCharCode,xp=Object.assign;function Sp(e){return e.trim()}function Cp(e,t,n){return e.replace(t,n)}function kp(e,t){return e.indexOf(t)}function _p(e,t){return 0|e.charCodeAt(t)}function Ep(e,t,n){return e.slice(t,n)}function jp(e){return e.length}function Op(e){return e.length}function Np(e,t){return t.push(e),e}var Rp=1,Pp=1,Tp=0,Dp=0,Mp=0,Ip="";function Ap(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Rp,column:Pp,length:i,return:""}}function Fp(e,t){return xp(Ap("",null,null,"",null,null,0),e,{length:-e.length},t)}function Lp(){return Mp=Dp>0?_p(Ip,--Dp):0,Pp--,10===Mp&&(Pp=1,Rp--),Mp}function zp(){return Mp=Dp<Tp?_p(Ip,Dp++):0,Pp++,10===Mp&&(Pp=1,Rp++),Mp}function $p(){return _p(Ip,Dp)}function Hp(){return Dp}function Vp(e,t){return Ep(Ip,e,t)}function Bp(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Up(e){return Rp=Pp=1,Tp=jp(Ip=e),Dp=0,[]}function Wp(e){return Ip="",e}function Yp(e){return Sp(Vp(Dp-1,Kp(91===e?e+2:40===e?e+1:e)))}function qp(e){for(;(Mp=$p())&&Mp<33;)zp();return Bp(e)>2||Bp(Mp)>3?"":" "}function Gp(e,t){for(;--t&&zp()&&!(Mp<48||Mp>102||Mp>57&&Mp<65||Mp>70&&Mp<97););return Vp(e,Hp()+(t<6&&32==$p()&&32==zp()))}function Kp(e){for(;zp();)switch(Mp){case e:return Dp;case 34:case 39:34!==e&&39!==e&&Kp(Mp);break;case 40:41===e&&Kp(e);break;case 92:zp()}return Dp}function Qp(e,t){for(;zp()&&e+Mp!==57&&(e+Mp!==84||47!==$p()););return"/*"+Vp(t,Dp-1)+"*"+wp(47===e?e:zp())}function Xp(e){for(;!Bp($p());)zp();return Vp(e,Dp)}function Zp(e){return Wp(Jp("",null,null,null,[""],e=Up(e),0,[0],e))}function Jp(e,t,n,r,o,a,i,s,l){for(var u=0,c=0,d=i,f=0,p=0,h=0,m=1,g=1,y=1,v=0,b="",w=o,x=a,S=r,C=b;g;)switch(h=v,v=zp()){case 40:if(108!=h&&58==_p(C,d-1)){-1!=kp(C+=Cp(Yp(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=Yp(v);break;case 9:case 10:case 13:case 32:C+=qp(h);break;case 92:C+=Gp(Hp()-1,7);continue;case 47:switch($p()){case 42:case 47:Np(th(Qp(zp(),Hp()),t,n),l);break;default:C+="/"}break;case 123*m:s[u++]=jp(C)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==y&&(C=Cp(C,/\f/g,"")),p>0&&jp(C)-d&&Np(p>32?nh(C+";",r,n,d-1):nh(Cp(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(Np(S=eh(C,t,n,u,c,o,s,b,w=[],x=[],d),a),123===v)if(0===c)Jp(C,t,S,S,w,a,d,s,x);else switch(99===f&&110===_p(C,3)?100:f){case 100:case 108:case 109:case 115:Jp(e,S,S,r&&Np(eh(e,S,S,0,0,o,s,b,o,w=[],d),x),o,x,d,s,r?w:x);break;default:Jp(C,S,S,S,[""],x,0,s,x)}}u=c=p=0,m=y=1,b=C="",d=i;break;case 58:d=1+jp(C),p=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Lp())continue;switch(C+=wp(v),v*m){case 38:y=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(jp(C)-1)*y,y=1;break;case 64:45===$p()&&(C+=Yp(zp())),f=$p(),c=d=jp(b=C+=Xp(Hp())),v++;break;case 45:45===h&&2==jp(C)&&(m=0)}}return a}function eh(e,t,n,r,o,a,i,s,l,u,c){for(var d=o-1,f=0===o?a:[""],p=Op(f),h=0,m=0,g=0;h<r;++h)for(var y=0,v=Ep(e,d+1,d=bp(m=i[h])),b=e;y<p;++y)(b=Sp(m>0?f[y]+" "+v:Cp(v,/&\f/g,f[y])))&&(l[g++]=b);return Ap(e,t,n,0===o?gp:s,l,u,c)}function th(e,t,n){return Ap(e,t,n,mp,wp(Mp),Ep(e,2,-2),0)}function nh(e,t,n,r){return Ap(e,t,n,yp,Ep(e,0,r),Ep(e,r+1,-1),r)}function rh(e,t){for(var n="",r=Op(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function oh(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case yp:return e.return=e.return||e.value;case mp:return"";case vp:return e.return=e.value+"{"+rh(e.children,r)+"}";case gp:e.value=e.props.join(",")}return jp(n=rh(e.children,r))?e.return=e.value+"{"+n+"}":""}function ah(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ih=function(e,t,n){for(var r=0,o=0;r=o,o=$p(),38===r&&12===o&&(t[n]=1),!Bp(o);)zp();return Vp(e,Dp)},sh=function(e,t){return Wp(function(e,t){var n=-1,r=44;do{switch(Bp(r)){case 0:38===r&&12===$p()&&(t[n]=1),e[n]+=ih(Dp-1,t,n);break;case 2:e[n]+=Yp(r);break;case 4:if(44===r){e[++n]=58===$p()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=wp(r)}}while(r=zp());return e}(Up(e),t))},lh=new WeakMap,uh=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||lh.get(n))&&!r){lh.set(e,!0);for(var o=[],a=sh(t,o),i=n.props,s=0,l=0;s<a.length;s++)for(var u=0;u<i.length;u++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[u]):i[u]+" "+a[s]}}},ch=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function dh(e,t){switch(function(e,t){return 45^_p(e,0)?(((t<<2^_p(e,0))<<2^_p(e,1))<<2^_p(e,2))<<2^_p(e,3):0}(e,t)){case 5103:return hp+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return hp+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return hp+e+pp+e+fp+e+e;case 6828:case 4268:return hp+e+fp+e+e;case 6165:return hp+e+fp+"flex-"+e+e;case 5187:return hp+e+Cp(e,/(\w+).+(:[^]+)/,hp+"box-$1$2"+fp+"flex-$1$2")+e;case 5443:return hp+e+fp+"flex-item-"+Cp(e,/flex-|-self/,"")+e;case 4675:return hp+e+fp+"flex-line-pack"+Cp(e,/align-content|flex-|-self/,"")+e;case 5548:return hp+e+fp+Cp(e,"shrink","negative")+e;case 5292:return hp+e+fp+Cp(e,"basis","preferred-size")+e;case 6060:return hp+"box-"+Cp(e,"-grow","")+hp+e+fp+Cp(e,"grow","positive")+e;case 4554:return hp+Cp(e,/([^-])(transform)/g,"$1"+hp+"$2")+e;case 6187:return Cp(Cp(Cp(e,/(zoom-|grab)/,hp+"$1"),/(image-set)/,hp+"$1"),e,"")+e;case 5495:case 3959:return Cp(e,/(image-set\([^]*)/,hp+"$1$`$1");case 4968:return Cp(Cp(e,/(.+:)(flex-)?(.*)/,hp+"box-pack:$3"+fp+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+hp+e+e;case 4095:case 3583:case 4068:case 2532:return Cp(e,/(.+)-inline(.+)/,hp+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(jp(e)-1-t>6)switch(_p(e,t+1)){case 109:if(45!==_p(e,t+4))break;case 102:return Cp(e,/(.+:)(.+)-([^]+)/,"$1"+hp+"$2-$3$1"+pp+(108==_p(e,t+3)?"$3":"$2-$3"))+e;case 115:return~kp(e,"stretch")?dh(Cp(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==_p(e,t+1))break;case 6444:switch(_p(e,jp(e)-3-(~kp(e,"!important")&&10))){case 107:return Cp(e,":",":"+hp)+e;case 101:return Cp(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+hp+(45===_p(e,14)?"inline-":"")+"box$3$1"+hp+"$2$3$1"+fp+"$2box$3")+e}break;case 5936:switch(_p(e,t+11)){case 114:return hp+e+fp+Cp(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return hp+e+fp+Cp(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return hp+e+fp+Cp(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return hp+e+fp+e+e}return e}var fh,ph,hh,mh,gh=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case yp:e.return=dh(e.value,e.length);break;case vp:return rh([Fp(e,{value:Cp(e.value,"@","@"+hp)})],r);case gp:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return rh([Fp(e,{props:[Cp(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return rh([Fp(e,{props:[Cp(t,/:(plac\w+)/,":"+hp+"input-$1")]}),Fp(e,{props:[Cp(t,/:(plac\w+)/,":-moz-$1")]}),Fp(e,{props:[Cp(t,/:(plac\w+)/,fp+"input-$1")]})],r)}return""})}}],yh=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,a=e.stylisPlugins||gh,i={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)});var l,u,c=[oh,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=Op(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}([uh,ch].concat(a,c));o=function(e,t,n,r){l=n,rh(Zp(e?e+"{"+t.styles+"}":t.styles),d),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new dp({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return f.sheet.hydrate(s),f},vh={exports:{}},bh={};function wh(){return ph||(ph=1,vh.exports=function(){if(fh)return bh;fh=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case u:case r:case a:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case h:case p:case i:return e;default:return f}}case n:return f}}}function w(e){return b(e)===u}return bh.AsyncMode=l,bh.ConcurrentMode=u,bh.ContextConsumer=s,bh.ContextProvider=i,bh.Element=t,bh.ForwardRef=c,bh.Fragment=r,bh.Lazy=h,bh.Memo=p,bh.Portal=n,bh.Profiler=a,bh.StrictMode=o,bh.Suspense=d,bh.isAsyncMode=function(e){return w(e)||b(e)===l},bh.isConcurrentMode=w,bh.isContextConsumer=function(e){return b(e)===s},bh.isContextProvider=function(e){return b(e)===i},bh.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},bh.isForwardRef=function(e){return b(e)===c},bh.isFragment=function(e){return b(e)===r},bh.isLazy=function(e){return b(e)===h},bh.isMemo=function(e){return b(e)===p},bh.isPortal=function(e){return b(e)===n},bh.isProfiler=function(e){return b(e)===a},bh.isStrictMode=function(e){return b(e)===o},bh.isSuspense=function(e){return b(e)===d},bh.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===a||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===i||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===m)},bh.typeOf=b,bh}()),vh.exports}!function(){if(mh)return hh;mh=1;var e=wh(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function a(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var i=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;hh=function e(t,r,o){if("string"!=typeof r){if(d){var f=c(r);f&&f!==d&&e(t,f,o)}var p=s(r);l&&(p=p.concat(l(r)));for(var h=a(t),m=a(r),g=0;g<p.length;++g){var y=p[g];if(!(n[y]||o&&o[y]||m&&m[y]||h&&h[y])){var v=u(r,y);try{i(t,y,v)}catch(e){}}}}return t}}();function xh(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var Sh=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ch=function(e,t,n){Sh(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var kh={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_h=/[A-Z]|^ms/g,Eh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jh=function(e){return 45===e.charCodeAt(1)},Oh=function(e){return null!=e&&"boolean"!=typeof e},Nh=ah(function(e){return jh(e)?e:e.replace(_h,"-$&").toLowerCase()}),Rh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Eh,function(e,t,n){return Th={name:t,styles:n,next:Th},t})}return 1===kh[e]||jh(e)||"number"!=typeof t||0===t?t:t+"px"};function Ph(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Th={name:o.name,styles:o.styles,next:Th},o.name;var a=n;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)Th={name:i.name,styles:i.styles,next:Th},i=i.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ph(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i){var s=i;null!=t&&void 0!==t[s]?r+=a+"{"+t[s]+"}":Oh(s)&&(r+=Nh(a)+":"+Rh(a,s)+";")}else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=Ph(e,t,i);switch(a){case"animation":case"animationName":r+=Nh(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var u=0;u<i.length;u++)Oh(i[u])&&(r+=Nh(a)+":"+Rh(a,i[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=Th,l=n(e);return Th=s,Ph(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var Th,Dh=/label:\s*([^\s;{]+)\s*(;|$)/g;function Mh(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Th=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=Ph(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++){if(o+=Ph(n,t,e[i]),r)o+=a[i]}Dh.lastIndex=0;for(var s,l="";null!==(s=Dh.exec(o));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:Th}}var Ih=!!I.useInsertionEffect&&I.useInsertionEffect||function(e){return e()},Ah=D.createContext("undefined"!=typeof HTMLElement?yh({key:"css"}):null);Ah.Provider;var Fh,Lh,zh=function(e){return D.forwardRef(function(t,n){var r=D.useContext(Ah);return e(t,r,n)})},$h=D.createContext({}),Hh={}.hasOwnProperty,Vh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Bh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Sh(t,n,r),Ih(function(){return Ch(t,n,r)}),null},Uh=zh(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Vh],a=[r],i="";"string"==typeof e.className?i=xh(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var s=Mh(a,void 0,D.useContext($h));i+=t.key+"-"+s.name;var l={};for(var u in e)Hh.call(e,u)&&"css"!==u&&u!==Vh&&(l[u]=e[u]);return l.className=i,n&&(l.ref=n),D.createElement(D.Fragment,null,D.createElement(Bh,{cache:t,serialized:s,isStringTag:"string"==typeof o}),D.createElement(o,l))}),Wh=Uh,Yh=function(e,t){var n=arguments;if(null==t||!Hh.call(t,"css"))return D.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Wh,o[1]=function(e,t){var n={};for(var r in t)Hh.call(t,r)&&(n[r]=t[r]);return n[Vh]=e,n}(e,t);for(var a=2;a<r;a++)o[a]=n[a];return D.createElement.apply(null,o)};function qh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Mh(t)}function Gh(){var e=qh.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}Fh=Yh||(Yh={}),Lh||(Lh=Fh.JSX||(Fh.JSX={}));var Kh=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Qh=ah(function(e){return Kh.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Xh=function(e){return"theme"!==e},Zh=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Qh:Xh},Jh=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},em=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Sh(t,n,r),Ih(function(){return Ch(t,n,r)}),null},tm=function e(t,n){var r,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=Jh(t,n,a),l=s||Zh(i),u=!l("as");return function(){var c=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var p=c.length,h=1;h<p;h++)d.push(c[h],f[h])}var m=zh(function(e,t,n){var r=u&&e.as||i,a="",c=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=D.useContext($h)}"string"==typeof e.className?a=xh(t.registered,c,e.className):null!=e.className&&(a=e.className+" ");var h=Mh(d.concat(c),t.registered,f);a+=t.key+"-"+h.name,void 0!==o&&(a+=" "+o);var m=u&&void 0===s?Zh(r):l,g={};for(var y in e)u&&"as"===y||m(y)&&(g[y]=e[y]);return g.className=a,n&&(g.ref=n),D.createElement(D.Fragment,null,D.createElement(em,{cache:t,serialized:h,isStringTag:"string"==typeof r}),D.createElement(r,g))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,cp({},n,r,{shouldForwardProp:Jh(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){tm[e]=tm(e)});const nm=[];function rm(e){return nm[0]=e,Mh(nm)}function om(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),i=Object.keys(a);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-r/100}${n})`}return{keys:i,values:a,up:s,down:l,between:u,only:function(e){return i.indexOf(e)+1<i.length?u(e,i[i.indexOf(e)+1]):s(e)},not:function(e){const t=i.indexOf(e);return 0===t?s(i[1]):t===i.length-1?l(i[t]):u(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}const am={borderRadius:4};function im(e=8,t=Nf({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}function sm(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function lm(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...i}=e;let s=df({breakpoints:om(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:im(o),shape:{...am,...a}},i);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(s),s.applyStyles=sm,s=t.reduce((e,t)=>df(e,t),s),s.unstable_sxConfig={...lp,...i?.unstable_sxConfig},s.unstable_sx=function(e){return up({sx:e,theme:this})},s}function um(e){const{variants:t,...n}=e,r={variants:t,style:rm(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=rm(e.style))}),r}const cm=lm();function dm(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function fm(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function pm(e){return e?(t,n)=>n[e]:null}function hm(e,t,n){const r="function"==typeof t?t(e):t;if(Array.isArray(r))return r.flatMap(t=>hm(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?fm(r.style,n):r.style;else{const{variants:e,...o}=r;t=n?fm(rm(o),n):o}return mm(e,r.variants,[t],n)}return r?.isProcessed?n?fm(rm(r.style),n):r.style:n?fm(rm(r),n):r}function mm(e,t,n=[],r=void 0){let o;e:for(let a=0;a<t.length;a+=1){const i=t[a];if("function"==typeof i.props){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(o))continue}else for(const t in i.props)if(e[t]!==i.props[t]&&e.ownerState?.[t]!==i.props[t])continue e;"function"==typeof i.style?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?fm(rm(i.style(o)),r):i.style(o))):n.push(r?fm(rm(i.style),r):i.style)}return n}function gm(e,t){}function ym(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function vm(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if("components"===a||"slots"===a)r[a]={...e[a],...r[a]};else if("componentsProps"===a||"slotProps"===a){const o=e[a],i=t[a];if(i)if(o){r[a]={...i};for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e)){const t=e;r[a][t]=vm(o[t],i[t],n)}}else r[a]=i;else r[a]=o||{}}else"className"===a&&n&&t.className?r.className=Dr(e?.className,t?.className):"style"===a&&n&&t.style?r.style={...e?.style,...t?.style}:void 0===r[a]&&(r[a]=e[a])}return r}const bm="undefined"!=typeof window?D.useLayoutEffect:D.useEffect;function wm(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function xm(e){if(e.type)return e;if("#"===e.charAt(0))return xm(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Jd(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(Jd(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}const Sm=(e,t)=>{try{return(e=>{const t=xm(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(t){return e}};function Cm(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function km(e){e=xm(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Cm({type:s,values:l})}function _m(e){let t="hsl"===(e=xm(e)).type||"hsla"===e.type?xm(km(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Em(e,t){return e=xm(e),t=wm(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Cm(e)}function jm(e,t,n){try{return Em(e,t)}catch(t){return e}}function Om(e,t){if(e=xm(e),t=wm(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Cm(e)}function Nm(e,t,n){try{return Om(e,t)}catch(t){return e}}function Rm(e,t){if(e=xm(e),t=wm(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Cm(e)}function Pm(e,t,n){try{return Rm(e,t)}catch(t){return e}}function Tm(e,t,n){try{return function(e,t=.15){return _m(e)>.5?Om(e,t):Rm(e,t)}(e,t)}catch(t){return e}}const Dm=D.createContext(void 0);function Mm({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?vm(o.defaultProps,r,t.components.mergeClassNameAndStyle):o.styleOverrides||o.variants?r:vm(o,r,t.components.mergeClassNameAndStyle)}({props:e,name:t,theme:{components:D.useContext(Dm)}})}const Im={theme:void 0};function Am(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const Fm=(e,t,n,r=[])=>{let o=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])})};function Lm(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};var s,l;return s=(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(o,{[r]:l}),Fm(a,e,`var(${r})`,s),Fm(i,e,`var(${r}, ${l})`,s)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach(([t,o])=>{(!l||l&&!l([...n,t]))&&null!=o&&("object"==typeof o&&Object.keys(o).length>0?e(o,[...n,t],Array.isArray(o)?[...r,t]:r):s([...n,t],o,r))})}(e),{css:o,vars:a,varsWithDefaults:i}}const zm={black:"#000",white:"#fff"},$m={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Hm="#f3e5f5",Vm="#ce93d8",Bm="#ba68c8",Um="#ab47bc",Wm="#9c27b0",Ym="#7b1fa2",qm="#e57373",Gm="#ef5350",Km="#f44336",Qm="#d32f2f",Xm="#c62828",Zm="#ffb74d",Jm="#ffa726",eg="#ff9800",tg="#f57c00",ng="#e65100",rg="#e3f2fd",og="#90caf9",ag="#42a5f5",ig="#1976d2",sg="#1565c0",lg="#4fc3f7",ug="#29b6f6",cg="#03a9f4",dg="#0288d1",fg="#01579b",pg="#81c784",hg="#66bb6a",mg="#4caf50",gg="#388e3c",yg="#2e7d32",vg="#1b5e20";function bg(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:zm.white,default:zm.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const wg=bg();function xg(){return{text:{primary:zm.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:zm.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Sg=xg();function Cg(e,t,n,r){const o=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Rm(e.main,o):"dark"===t&&(e.dark=Om(e.main,a)))}function kg(e,t,n,r,o){const a=o.light||o,i=o.dark||1.5*o;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:"light"===n?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(100*a).toFixed(0)}%)`:"dark"===n&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(100*i).toFixed(0)}%)`))}function _g(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...a}=e,i=e.primary||function(e="light"){return"dark"===e?{main:og,light:rg,dark:ag}:{main:ig,light:ag,dark:sg}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:Vm,light:Hm,dark:Um}:{main:Wm,light:Bm,dark:Ym}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Km,light:qm,dark:Qm}:{main:Qm,light:Gm,dark:Xm}}(t),u=e.info||function(e="light"){return"dark"===e?{main:ug,light:lg,dark:dg}:{main:dg,light:cg,dark:fg}}(t),c=e.success||function(e="light"){return"dark"===e?{main:hg,light:pg,dark:gg}:{main:yg,light:mg,dark:vg}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:Jm,light:Zm,dark:tg}:{main:"#ed6c02",light:eg,dark:ng}}(t);function f(e){if(o)return function(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}(e);const t=function(e,t){const n=_m(e),r=_m(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Sg.text.primary)>=n?Sg.text.primary:wg.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:i=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Jd(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Jd(12,t?` (${t})`:"",JSON.stringify(e.main)));return o?(kg(o,e,"light",a,r),kg(o,e,"dark",i,r)):(Cg(e,"light",a,r),Cg(e,"dark",i,r)),e.contrastText||(e.contrastText=f(e.main)),e};let h;"light"===t?h=bg():"dark"===t&&(h=xg());return df({common:{...zm},mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:c,name:"success"}),grey:$m,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...h},a)}function Eg(e){const t={};return Object.entries(e).forEach(e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}const jg={textTransform:"uppercase"},Og='"Roboto", "Helvetica", "Arial", sans-serif';function Ng(e,t){const{fontFamily:n=Og,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:u,pxToRem:c,...d}="function"==typeof t?t(e):t,f=r/14,p=c||(e=>e/l*f+"rem"),h=(e,t,r,o,a)=>{return{fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===Og?{letterSpacing:(i=o/t,Math.round(1e5*i)/1e5)+"em"}:{},...a,...u};var i},m={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(i,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(i,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(i,14,1.75,.4,jg),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,jg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return df({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:s,...m},d,{clone:!1})}function Rg(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Pg=["none",Rg(0,2,1,-1,0,1,1,0,0,1,3,0),Rg(0,3,1,-2,0,2,2,0,0,1,5,0),Rg(0,3,3,-2,0,3,4,0,0,1,8,0),Rg(0,2,4,-1,0,4,5,0,0,1,10,0),Rg(0,3,5,-1,0,5,8,0,0,1,14,0),Rg(0,3,5,-1,0,6,10,0,0,1,18,0),Rg(0,4,5,-2,0,7,10,1,0,2,16,1),Rg(0,5,5,-3,0,8,10,1,0,3,14,2),Rg(0,5,6,-3,0,9,12,1,0,3,16,2),Rg(0,6,6,-3,0,10,14,1,0,4,18,3),Rg(0,6,7,-4,0,11,15,1,0,4,20,3),Rg(0,7,8,-4,0,12,17,2,0,5,22,4),Rg(0,7,8,-4,0,13,19,2,0,5,24,4),Rg(0,7,9,-4,0,14,21,2,0,5,26,4),Rg(0,8,9,-5,0,15,22,2,0,6,28,5),Rg(0,8,10,-5,0,16,24,2,0,6,30,5),Rg(0,8,11,-5,0,17,26,2,0,6,32,5),Rg(0,9,11,-5,0,18,28,2,0,7,34,6),Rg(0,9,12,-6,0,19,29,2,0,7,36,6),Rg(0,10,13,-6,0,20,31,3,0,8,38,7),Rg(0,10,13,-6,0,21,33,3,0,8,40,7),Rg(0,10,14,-6,0,22,35,3,0,8,42,7),Rg(0,11,14,-7,0,23,36,3,0,9,44,8),Rg(0,11,15,-7,0,24,38,3,0,9,46,8)],Tg={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Dg={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Mg(e){return`${Math.round(e)}ms`}function Ig(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function Ag(e){const t={...Tg,...e.easing},n={...Dg,...e.duration};return{getAutoHeightDuration:Ig,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:i=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:Mg(o)} ${a} ${"string"==typeof i?i:Mg(i)}`).join(",")},...e,easing:t,duration:n}}const Fg={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Lg(e){return uf(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function zg(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let r=0;r<n.length;r++){const[o,a]=n[r];!Lg(a)||o.startsWith("unstable_")?delete t[o]:uf(a)&&(t[o]={...a},e(t[o]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function $g(e){return"number"==typeof e?`${(100*e).toFixed(0)}%`:`calc((${e}) * 100%)`}function Hg(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${"string"==typeof n?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${"string"==typeof n?`calc(${n})`:n})`:Em(t,(e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n})(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${$g(n)})`:Rm(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${$g(n)})`:Om(t,n)}})}function Vg(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:i={},typography:s={},shape:l,colorSpace:u,...c}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(Jd(20));const d=_g({...a,colorSpace:u}),f=lm(e);let p=df(f,{mixins:(h=f.breakpoints,m=r,{toolbar:{minHeight:56,[h.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[h.up("sm")]:{minHeight:64}},...m}),palette:d,shadows:Pg.slice(),typography:Ng(d,s),transitions:Ag(i),zIndex:{...Fg}});var h,m;return p=df(p,c),p=t.reduce((e,t)=>df(e,t),p),p.unstable_sxConfig={...lp,...c?.unstable_sxConfig},p.unstable_sx=function(e){return up({sx:e,theme:this})},p.toRuntimeSource=zg,Hg(p),p}const Bg=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=function(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Ug(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function Wg(e){return"dark"===e?Bg:[]}function Yg(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var qg=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if("class"===o&&(a=".%s"),"data"===o&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return(i=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${i?`${i}-`:""}overlays-${t}`),`--${i?`${i}-`:""}palette-AppBar-darkBg`,`--${i?`${i}-`:""}palette-AppBar-darkColor`]).forEach(e=>{o[e]=n[e],delete n[e]}),"media"===a?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:a?{[a.replace("%s",t)]:o,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(a&&"media"!==a)return`${r}, ${a.replace("%s",String(t))}`}else if(t){if("media"===a)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}var i;return r};function Gg(e,t,n){!e[t]&&n&&(e[t]=n)}function Kg(e){return"string"==typeof e&&e.startsWith("hsl")?km(e):e}function Qg(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Sm(Kg(e[t])))}const Xg=e=>{try{return e()}catch(e){}};function Zg(e,t,n,r,o){if(!n)return;n=!0===n?{}:n;const a="dark"===o?"dark":"light";if(!r)return void(t[o]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...a}=e,i=_g({...t,colorSpace:o});return{palette:i,opacity:{...Ug(i.mode),...n},overlays:r||Wg(i.mode),...a}}({...n,palette:{mode:a,...n?.palette},colorSpace:e}));const{palette:i,...s}=Vg({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[o]={...n,palette:i,opacity:{...Ug(a),...n?.opacity},overlays:n?.overlays||Wg(a)},s}function Jg(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:i=!1,shouldSkipGeneratingVar:s=Yg,colorSchemeSelector:l=(n.light&&n.dark?"media":void 0),rootSelector:u=":root",...c}=e,d=Object.keys(n)[0],f=r||(n.light&&"light"!==d?"light":d),p=((e="mui")=>Am(e))(a),{[f]:h,light:m,dark:g,...y}=n,v={...y};let b,w=h;if(("dark"===f&&!("dark"in n)||"light"===f&&!("light"in n))&&(w=!0),!w)throw new Error(Jd(21,f));i&&(b="oklch");const x=Zg(b,v,w,c,f);m&&!v.light&&Zg(b,v,m,void 0,"light"),g&&!v.dark&&Zg(b,v,g,void 0,"dark");let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:l,rootSelector:u,getCssVar:p,colorSchemes:v,font:{...Eg(x.typography),...x.font},spacing:(C=c.spacing,"number"==typeof C?`${C}px`:"string"==typeof C||"function"==typeof C||Array.isArray(C)?C:"8px")};var C;Object.keys(S.colorSchemes).forEach(e=>{const t=S.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],o=n[2];return p(e,t[r][o])};function r(e,t,n){if(b){let r;return e===jm&&(r=`transparent ${(100*(1-n)).toFixed(0)}%`),e===Nm&&(r=`#000 ${(100*n).toFixed(0)}%`),e===Pm&&(r=`#fff ${(100*n).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if("light"===t.mode&&(Gg(t.common,"background","#fff"),Gg(t.common,"onBackground","#000")),"dark"===t.mode&&(Gg(t.common,"background","#000"),Gg(t.common,"onBackground","#fff")),function(e,t){t.forEach(t=>{e[t]||(e[t]={})})}(t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),"light"===t.mode){Gg(t.Alert,"errorColor",r(Nm,t.error.light,.6)),Gg(t.Alert,"infoColor",r(Nm,t.info.light,.6)),Gg(t.Alert,"successColor",r(Nm,t.success.light,.6)),Gg(t.Alert,"warningColor",r(Nm,t.warning.light,.6)),Gg(t.Alert,"errorFilledBg",n("palette-error-main")),Gg(t.Alert,"infoFilledBg",n("palette-info-main")),Gg(t.Alert,"successFilledBg",n("palette-success-main")),Gg(t.Alert,"warningFilledBg",n("palette-warning-main")),Gg(t.Alert,"errorFilledColor",Xg(()=>t.getContrastText(t.error.main))),Gg(t.Alert,"infoFilledColor",Xg(()=>t.getContrastText(t.info.main))),Gg(t.Alert,"successFilledColor",Xg(()=>t.getContrastText(t.success.main))),Gg(t.Alert,"warningFilledColor",Xg(()=>t.getContrastText(t.warning.main))),Gg(t.Alert,"errorStandardBg",r(Pm,t.error.light,.9)),Gg(t.Alert,"infoStandardBg",r(Pm,t.info.light,.9)),Gg(t.Alert,"successStandardBg",r(Pm,t.success.light,.9)),Gg(t.Alert,"warningStandardBg",r(Pm,t.warning.light,.9)),Gg(t.Alert,"errorIconColor",n("palette-error-main")),Gg(t.Alert,"infoIconColor",n("palette-info-main")),Gg(t.Alert,"successIconColor",n("palette-success-main")),Gg(t.Alert,"warningIconColor",n("palette-warning-main")),Gg(t.AppBar,"defaultBg",n("palette-grey-100")),Gg(t.Avatar,"defaultBg",n("palette-grey-400")),Gg(t.Button,"inheritContainedBg",n("palette-grey-300")),Gg(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),Gg(t.Chip,"defaultBorder",n("palette-grey-400")),Gg(t.Chip,"defaultAvatarColor",n("palette-grey-700")),Gg(t.Chip,"defaultIconColor",n("palette-grey-700")),Gg(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Gg(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Gg(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Gg(t.LinearProgress,"primaryBg",r(Pm,t.primary.main,.62)),Gg(t.LinearProgress,"secondaryBg",r(Pm,t.secondary.main,.62)),Gg(t.LinearProgress,"errorBg",r(Pm,t.error.main,.62)),Gg(t.LinearProgress,"infoBg",r(Pm,t.info.main,.62)),Gg(t.LinearProgress,"successBg",r(Pm,t.success.main,.62)),Gg(t.LinearProgress,"warningBg",r(Pm,t.warning.main,.62)),Gg(t.Skeleton,"bg",b?r(jm,t.text.primary,.11):`rgba(${n("palette-text-primaryChannel")} / 0.11)`),Gg(t.Slider,"primaryTrack",r(Pm,t.primary.main,.62)),Gg(t.Slider,"secondaryTrack",r(Pm,t.secondary.main,.62)),Gg(t.Slider,"errorTrack",r(Pm,t.error.main,.62)),Gg(t.Slider,"infoTrack",r(Pm,t.info.main,.62)),Gg(t.Slider,"successTrack",r(Pm,t.success.main,.62)),Gg(t.Slider,"warningTrack",r(Pm,t.warning.main,.62));const e=b?r(Nm,t.background.default,.6825):Tm(t.background.default,.8);Gg(t.SnackbarContent,"bg",e),Gg(t.SnackbarContent,"color",Xg(()=>b?Sg.text.primary:t.getContrastText(e))),Gg(t.SpeedDialAction,"fabHoverBg",Tm(t.background.paper,.15)),Gg(t.StepConnector,"border",n("palette-grey-400")),Gg(t.StepContent,"border",n("palette-grey-400")),Gg(t.Switch,"defaultColor",n("palette-common-white")),Gg(t.Switch,"defaultDisabledColor",n("palette-grey-100")),Gg(t.Switch,"primaryDisabledColor",r(Pm,t.primary.main,.62)),Gg(t.Switch,"secondaryDisabledColor",r(Pm,t.secondary.main,.62)),Gg(t.Switch,"errorDisabledColor",r(Pm,t.error.main,.62)),Gg(t.Switch,"infoDisabledColor",r(Pm,t.info.main,.62)),Gg(t.Switch,"successDisabledColor",r(Pm,t.success.main,.62)),Gg(t.Switch,"warningDisabledColor",r(Pm,t.warning.main,.62)),Gg(t.TableCell,"border",r(Pm,r(jm,t.divider,1),.88)),Gg(t.Tooltip,"bg",r(jm,t.grey[700],.92))}if("dark"===t.mode){Gg(t.Alert,"errorColor",r(Pm,t.error.light,.6)),Gg(t.Alert,"infoColor",r(Pm,t.info.light,.6)),Gg(t.Alert,"successColor",r(Pm,t.success.light,.6)),Gg(t.Alert,"warningColor",r(Pm,t.warning.light,.6)),Gg(t.Alert,"errorFilledBg",n("palette-error-dark")),Gg(t.Alert,"infoFilledBg",n("palette-info-dark")),Gg(t.Alert,"successFilledBg",n("palette-success-dark")),Gg(t.Alert,"warningFilledBg",n("palette-warning-dark")),Gg(t.Alert,"errorFilledColor",Xg(()=>t.getContrastText(t.error.dark))),Gg(t.Alert,"infoFilledColor",Xg(()=>t.getContrastText(t.info.dark))),Gg(t.Alert,"successFilledColor",Xg(()=>t.getContrastText(t.success.dark))),Gg(t.Alert,"warningFilledColor",Xg(()=>t.getContrastText(t.warning.dark))),Gg(t.Alert,"errorStandardBg",r(Nm,t.error.light,.9)),Gg(t.Alert,"infoStandardBg",r(Nm,t.info.light,.9)),Gg(t.Alert,"successStandardBg",r(Nm,t.success.light,.9)),Gg(t.Alert,"warningStandardBg",r(Nm,t.warning.light,.9)),Gg(t.Alert,"errorIconColor",n("palette-error-main")),Gg(t.Alert,"infoIconColor",n("palette-info-main")),Gg(t.Alert,"successIconColor",n("palette-success-main")),Gg(t.Alert,"warningIconColor",n("palette-warning-main")),Gg(t.AppBar,"defaultBg",n("palette-grey-900")),Gg(t.AppBar,"darkBg",n("palette-background-paper")),Gg(t.AppBar,"darkColor",n("palette-text-primary")),Gg(t.Avatar,"defaultBg",n("palette-grey-600")),Gg(t.Button,"inheritContainedBg",n("palette-grey-800")),Gg(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),Gg(t.Chip,"defaultBorder",n("palette-grey-700")),Gg(t.Chip,"defaultAvatarColor",n("palette-grey-300")),Gg(t.Chip,"defaultIconColor",n("palette-grey-300")),Gg(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Gg(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Gg(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Gg(t.LinearProgress,"primaryBg",r(Nm,t.primary.main,.5)),Gg(t.LinearProgress,"secondaryBg",r(Nm,t.secondary.main,.5)),Gg(t.LinearProgress,"errorBg",r(Nm,t.error.main,.5)),Gg(t.LinearProgress,"infoBg",r(Nm,t.info.main,.5)),Gg(t.LinearProgress,"successBg",r(Nm,t.success.main,.5)),Gg(t.LinearProgress,"warningBg",r(Nm,t.warning.main,.5)),Gg(t.Skeleton,"bg",b?r(jm,t.text.primary,.13):`rgba(${n("palette-text-primaryChannel")} / 0.13)`),Gg(t.Slider,"primaryTrack",r(Nm,t.primary.main,.5)),Gg(t.Slider,"secondaryTrack",r(Nm,t.secondary.main,.5)),Gg(t.Slider,"errorTrack",r(Nm,t.error.main,.5)),Gg(t.Slider,"infoTrack",r(Nm,t.info.main,.5)),Gg(t.Slider,"successTrack",r(Nm,t.success.main,.5)),Gg(t.Slider,"warningTrack",r(Nm,t.warning.main,.5));const e=b?r(Pm,t.background.default,.985):Tm(t.background.default,.98);Gg(t.SnackbarContent,"bg",e),Gg(t.SnackbarContent,"color",Xg(()=>b?wg.text.primary:t.getContrastText(e))),Gg(t.SpeedDialAction,"fabHoverBg",Tm(t.background.paper,.15)),Gg(t.StepConnector,"border",n("palette-grey-600")),Gg(t.StepContent,"border",n("palette-grey-600")),Gg(t.Switch,"defaultColor",n("palette-grey-300")),Gg(t.Switch,"defaultDisabledColor",n("palette-grey-600")),Gg(t.Switch,"primaryDisabledColor",r(Nm,t.primary.main,.55)),Gg(t.Switch,"secondaryDisabledColor",r(Nm,t.secondary.main,.55)),Gg(t.Switch,"errorDisabledColor",r(Nm,t.error.main,.55)),Gg(t.Switch,"infoDisabledColor",r(Nm,t.info.main,.55)),Gg(t.Switch,"successDisabledColor",r(Nm,t.success.main,.55)),Gg(t.Switch,"warningDisabledColor",r(Nm,t.warning.main,.55)),Gg(t.TableCell,"border",r(Nm,r(jm,t.divider,1),.68)),Gg(t.Tooltip,"bg",r(jm,t.grey[700],.92))}Qg(t.background,"default"),Qg(t.background,"paper"),Qg(t.common,"background"),Qg(t.common,"onBackground"),Qg(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&Gg(t[e],"mainChannel",Sm(Kg(n.main))),n.light&&Gg(t[e],"lightChannel",Sm(Kg(n.light))),n.dark&&Gg(t[e],"darkChannel",Sm(Kg(n.dark))),n.contrastText&&Gg(t[e],"contrastTextChannel",Sm(Kg(n.contrastText))),"text"===e&&(Qg(t[e],"primary"),Qg(t[e],"secondary")),"action"===e&&(n.active&&Qg(t[e],"active"),n.selected&&Qg(t[e],"selected")))})}),S=t.reduce((e,t)=>df(e,t),S);const k={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:qg(S),enableContrastVars:i},{vars:_,generateThemeVars:E,generateStyleSheets:j}=function(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:i={},components:s,defaultColorScheme:l="light",...u}=e,{vars:c,css:d,varsWithDefaults:f}=Lm(u,t);let p=f;const h={},{[l]:m,...g}=i;if(Object.entries(g||{}).forEach(([e,n])=>{const{vars:r,css:o,varsWithDefaults:a}=Lm(n,t);p=df(p,a),h[e]={css:o,vars:r}}),m){const{css:e,vars:n,varsWithDefaults:r}=Lm(m,t);p=df(p,r),h[l]={css:e,vars:n}}function y(t,n){let r=o;if("class"===o&&(r=".%s"),"data"===o&&(r="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(r=`[${o}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=i[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:p,generateThemeVars:()=>{let e={...c};return Object.entries(h).forEach(([,{vars:t}])=>{e=df(e,t)}),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function s(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);const{[o]:l,...u}=h;if(l){const{css:e}=l,t=i[o]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(o,{...a}),a)}return Object.entries(u).forEach(([e,{css:t}])=>{const o=i[e]?.palette?.mode,a=!r&&o?{colorScheme:o,...t}:{...t};s(n(e,{...a}),a)}),a&&t.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),t}}}(S,k);return S.vars=_,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=E,S.generateStyleSheets=j,S.generateSpacing=function(){return im(c.spacing,Nf(this))},S.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(l),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...lp,...c?.unstable_sxConfig},S.unstable_sx=function(e){return up({sx:e,theme:this})},S.toRuntimeSource=zg,S}function ey(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:_g({...!0===n?{}:n.palette,mode:t})})}const ty=function(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=(n?void 0:{light:!0}),defaultColorScheme:a=n?.mode,...i}=e,s=a||"light",l=o?.[s],u={...o,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return Vg(e,...t);let r=n;"palette"in e||u[s]&&(!0!==u[s]?r=u[s].palette:"dark"===s&&(r={mode:"dark"}));const o=Vg({...e,palette:r},...t);return o.defaultColorScheme=s,o.colorSchemes=u,"light"===o.palette.mode&&(o.colorSchemes.light={...!0!==u.light&&u.light,palette:o.palette},ey(o,"dark",u.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==u.dark&&u.dark,palette:o.palette},ey(o,"light",u.light)),o}return n||"light"in u||"light"!==s||(u.light=!0),Jg({...i,colorSchemes:u,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}();const ny=function(e={}){const{themeId:t,defaultTheme:n=cm,rootShouldForwardProp:r=dm,slotShouldForwardProp:o=dm}=e;function a(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,e=>e.filter(e=>e!==up));const{name:n,slot:i,skipVariantsResolver:s,skipSx:l,overridesResolver:u=pm(ym(i)),...c}=t,d=n&&n.startsWith("Mui")||i?"components":"custom",f=void 0!==s?s:i&&"Root"!==i&&"root"!==i||!1,p=l||!1;let h=dm;"Root"===i||"root"===i?h=r:i?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const m=
|
|
59
|
-
/**
|
|
60
|
-
* @mui/styled-engine v7.3.5
|
|
61
|
-
*
|
|
62
|
-
* @license MIT
|
|
63
|
-
* This source code is licensed under the MIT license found in the
|
|
64
|
-
* LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/
|
|
66
|
-
function(e,t){return tm(e,t)}(e,{shouldForwardProp:h,label:gm(),...c}),g=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return hm(t,e,t.theme.modularCssLayers?d:void 0)};if(uf(e)){const t=um(e);return function(e){return t.variants?hm(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?fm(t.style,d):t.style}}return e},y=(...t)=>{const r=[],o=t.map(g),i=[];if(r.push(a),n&&u&&i.push(function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const o={};for(const t in r)o[t]=hm(e,r[t],e.theme.modularCssLayers?"theme":void 0);return u(e,o)}),n&&!f&&i.push(function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?mm(e,r,[],e.theme.modularCssLayers?"theme":void 0):null}),p||i.push(up),Array.isArray(o[0])){const e=o.shift(),t=new Array(r.length).fill(""),n=new Array(i.length).fill("");let a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}const s=[...r,...o,...i],l=m(...s);return e.muiName&&(l.muiName=e.muiName),l};return m.withConfig&&(y.withConfig=m.withConfig),y}}({themeId:"$$material",defaultTheme:ty,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e});function ry(e){return Mm(e)}function oy(...e){const t=D.useRef(void 0),n=D.useCallback(t=>{const n=e.map(e=>{if(null==e)return null;if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return D.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function ay(e){const t=D.useRef(e);return bm(()=>{t.current=e}),D.useRef((...e)=>(0,t.current)(...e)).current}const iy={};function sy(e,t){const n=D.useRef(iy);return n.current===iy&&(n.current=e(t)),n}class ly{static create(){return new ly}static use(){const e=sy(ly.create).current,[t,n]=D.useState(!1);return e.shouldMount=t,e.setShouldMount=n,D.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}function uy(e,t){return uy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uy(e,t)}var cy=M.createContext(null);function dy(e,t){var n=Object.create(null);return e&&D.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&D.isValidElement(e)?t(e):e}(e)}),n}function fy(e,t,n){return null!=n[t]?n[t]:e.props[t]}function py(e,t,n){var r=dy(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];s[o[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<a.length;r++)s[a[r]]=n(a[r]);return s}(t,r);return Object.keys(o).forEach(function(a){var i=o[a];if(D.isValidElement(i)){var s=a in t,l=a in r,u=t[a],c=D.isValidElement(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&D.isValidElement(u)&&(o[a]=D.cloneElement(i,{onExited:n.bind(null,i),in:u.props.in,exit:fy(i,"exit",e),enter:fy(i,"enter",e)})):o[a]=D.cloneElement(i,{in:!1}):o[a]=D.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:fy(i,"exit",e),enter:fy(i,"enter",e)})}}),o}var hy=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},my=function(e){var t,n;function r(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,uy(t,n);var o=r.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,dy(n.children,function(e){return D.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:fy(e,"appear",n),enter:fy(e,"enter",n),exit:fy(e,"exit",n)})})):py(e,o,a),firstRender:!1}},o.handleExited=function(e,t){var n=dy(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=cp({},t.children);return delete n[e.key],{children:n}}))},o.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,["component","childFactory"]),o=this.state.contextValue,a=hy(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?M.createElement(cy.Provider,{value:o},a):M.createElement(cy.Provider,{value:o},M.createElement(t,r,a))},r}(M.Component);my.propTypes={},my.defaultProps={component:"div",childFactory:function(e){return e}};const gy=[];class yy{static create(){return new yy}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function vy(){const e=sy(yy.create).current;var t;return t=e.disposeEffect,D.useEffect(t,gy),e}const by=Yd("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),wy=Gh`
|
|
67
|
-
0% {
|
|
68
|
-
transform: scale(0);
|
|
69
|
-
opacity: 0.1;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
100% {
|
|
73
|
-
transform: scale(1);
|
|
74
|
-
opacity: 0.3;
|
|
75
|
-
}
|
|
76
|
-
`,xy=Gh`
|
|
77
|
-
0% {
|
|
78
|
-
opacity: 1;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
100% {
|
|
82
|
-
opacity: 0;
|
|
83
|
-
}
|
|
84
|
-
`,Sy=Gh`
|
|
85
|
-
0% {
|
|
86
|
-
transform: scale(1);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
50% {
|
|
90
|
-
transform: scale(0.92);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
100% {
|
|
94
|
-
transform: scale(1);
|
|
95
|
-
}
|
|
96
|
-
`,Cy=ny("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ky=ny(function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:u}=e,[c,d]=D.useState(!1),f=Dr(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:i,height:i,top:-i/2+a,left:-i/2+o},h=Dr(n.child,c&&n.childLeaving,r&&n.childPulsate);return s||c||d(!0),D.useEffect(()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}},[l,s,u]),m.jsx("span",{className:f,style:p,children:m.jsx("span",{className:h})})},{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
97
|
-
opacity: 0;
|
|
98
|
-
position: absolute;
|
|
99
|
-
|
|
100
|
-
&.${by.rippleVisible} {
|
|
101
|
-
opacity: 0.3;
|
|
102
|
-
transform: scale(1);
|
|
103
|
-
animation-name: ${wy};
|
|
104
|
-
animation-duration: ${550}ms;
|
|
105
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
&.${by.ripplePulsate} {
|
|
109
|
-
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
& .${by.child} {
|
|
113
|
-
opacity: 1;
|
|
114
|
-
display: block;
|
|
115
|
-
width: 100%;
|
|
116
|
-
height: 100%;
|
|
117
|
-
border-radius: 50%;
|
|
118
|
-
background-color: currentColor;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
& .${by.childLeaving} {
|
|
122
|
-
opacity: 0;
|
|
123
|
-
animation-name: ${xy};
|
|
124
|
-
animation-duration: ${550}ms;
|
|
125
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
& .${by.childPulsate} {
|
|
129
|
-
position: absolute;
|
|
130
|
-
/* @noflip */
|
|
131
|
-
left: 0px;
|
|
132
|
-
top: 0;
|
|
133
|
-
animation-name: ${Sy};
|
|
134
|
-
animation-duration: 2500ms;
|
|
135
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
136
|
-
animation-iteration-count: infinite;
|
|
137
|
-
animation-delay: 200ms;
|
|
138
|
-
}
|
|
139
|
-
`,_y=D.forwardRef(function(e,t){const n=ry({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a,...i}=n,[s,l]=D.useState([]),u=D.useRef(0),c=D.useRef(null);D.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=D.useRef(!1),f=vy(),p=D.useRef(null),h=D.useRef(null),g=D.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;l(e=>[...e,m.jsx(ky,{classes:{ripple:Dr(o.ripple,by.ripple),rippleVisible:Dr(o.rippleVisible,by.rippleVisible),ripplePulsate:Dr(o.ripplePulsate,by.ripplePulsate),child:Dr(o.child,by.child),childLeaving:Dr(o.childLeaving,by.childLeaving),childPulsate:Dr(o.childPulsate,by.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},u.current)]),u.current+=1,c.current=i},[o]),y=D.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===e?.type&&d.current)return void(d.current=!1);"touchstart"===e?.type&&(d.current=!0);const s=i?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,m;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(a)m=Math.sqrt((2*l.width**2+l.height**2)/3),m%2==0&&(m+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;m=Math.sqrt(e**2+t**2)}e?.touches?null===p.current&&(p.current=()=>{g({pulsate:o,rippleX:u,rippleY:c,rippleSize:m,cb:n})},f.start(80,()=>{p.current&&(p.current(),p.current=null)})):g({pulsate:o,rippleX:u,rippleY:c,rippleSize:m,cb:n})},[r,g,f]),v=D.useCallback(()=>{y({},{pulsate:!0})},[y]),b=D.useCallback((e,t)=>{if(f.clear(),"touchend"===e?.type&&p.current)return p.current(),p.current=null,void f.start(0,()=>{b(e,t)});p.current=null,l(e=>e.length>0?e.slice(1):e),c.current=t},[f]);return D.useImperativeHandle(t,()=>({pulsate:v,start:y,stop:b}),[v,y,b]),m.jsx(Cy,{className:Dr(by.root,o.root,a),ref:h,...i,children:m.jsx(my,{component:null,exit:!0,children:s})})});function Ey(e){return Wd("MuiButtonBase",e)}const jy=Yd("MuiButtonBase",["root","disabled","focusVisible"]),Oy=ny("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${jy.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ny=D.forwardRef(function(e,t){const n=ry({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,focusVisibleClassName:f,LinkComponent:p="a",onBlur:h,onClick:g,onContextMenu:y,onDragLeave:v,onFocus:b,onFocusVisible:w,onKeyDown:x,onKeyUp:S,onMouseDown:C,onMouseLeave:k,onMouseUp:_,onTouchEnd:E,onTouchMove:j,onTouchStart:O,tabIndex:N=0,TouchRippleProps:R,touchRippleRef:P,type:T,...M}=n,I=D.useRef(null),A=ly.use(),F=oy(A.ref,P),[L,z]=D.useState(!1);l&&L&&z(!1),D.useImperativeHandle(r,()=>({focusVisible:()=>{z(!0),I.current.focus()}}),[]);const $=A.shouldMount&&!u&&!l;D.useEffect(()=>{L&&d&&!u&&A.pulsate()},[u,d,L,A]);const H=Ry(A,"start",C,c),V=Ry(A,"stop",y,c),B=Ry(A,"stop",v,c),U=Ry(A,"stop",_,c),W=Ry(A,"stop",e=>{L&&e.preventDefault(),k&&k(e)},c),Y=Ry(A,"start",O,c),q=Ry(A,"stop",E,c),G=Ry(A,"stop",j,c),K=Ry(A,"stop",e=>{Zd(e.target)||z(!1),h&&h(e)},!1),Q=ay(e=>{I.current||(I.current=e.currentTarget),Zd(e.target)&&(z(!0),w&&w(e)),b&&b(e)}),X=()=>{const e=I.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},Z=ay(e=>{d&&!e.repeat&&L&&" "===e.key&&A.stop(e,()=>{A.start(e)}),e.target===e.currentTarget&&X()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&X()&&"Enter"===e.key&&!l&&(e.preventDefault(),g&&g(e))}),J=ay(e=>{d&&" "===e.key&&L&&!e.defaultPrevented&&A.stop(e,()=>{A.pulsate(e)}),S&&S(e),g&&e.target===e.currentTarget&&X()&&" "===e.key&&!e.defaultPrevented&&g(e)});let ee=s;"button"===ee&&(M.href||M.to)&&(ee=p);const te={};"button"===ee?(te.type=void 0===T?"button":T,te.disabled=l):(M.href||M.to||(te.role="button"),l&&(te["aria-disabled"]=l));const ne=oy(t,I),re={...n,centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:N,focusVisible:L},oe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Hd({root:["root",t&&"disabled",n&&"focusVisible"]},Ey,o);return n&&r&&(a.root+=` ${r}`),a})(re);return m.jsxs(Oy,{as:ee,className:Dr(oe.root,i),ownerState:re,onBlur:K,onClick:g,onContextMenu:V,onFocus:Q,onKeyDown:Z,onKeyUp:J,onMouseDown:H,onMouseLeave:W,onMouseUp:U,onDragLeave:B,onTouchEnd:q,onTouchMove:G,onTouchStart:Y,ref:ne,tabIndex:l?-1:N,type:T,...te,...M,children:[a,$?m.jsx(_y,{ref:F,center:o,...R}):null]})});function Ry(e,t,n,r=!1){return ay(o=>(n&&n(o),r||e[t](o),!0))}function Py(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}const Ty=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(Im.theme=r.theme,o=um(e(Im)),t=o,n=r.theme),o}};function Dy(e){return Wd("MuiSvgIcon",e)}Yd("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const My=ny("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${ef(n.color)}`],t[`fontSize${ef(n.fontSize)}`]]}})(Ty(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Iy=D.forwardRef(function(e,t){const n=ry({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24",...f}=n,p=D.isValidElement(r)&&"svg"===r.type,h={...n,color:a,component:i,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:p},g={};u||(g.viewBox=d);const y=(e=>{const{color:t,fontSize:n,classes:r}=e;return Hd({root:["root","inherit"!==t&&`color${ef(t)}`,`fontSize${ef(n)}`]},Dy,r)})(h);return m.jsxs(My,{as:i,className:Dr(y.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t,...g,...f,...p&&r.props,ownerState:h,children:[p?r.props.children:r,c?m.jsx("title",{children:c}):null]})});function Ay(e,t){function n(t,n){return m.jsx(Iy,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Iy.muiName,D.memo(D.forwardRef(n))}Iy.muiName="SvgIcon";var Fy=Ay(m.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),Ly=Ay(m.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),zy=Ay(m.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),$y=Ay(m.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}));function Hy(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function Vy(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=Dr(n?.className,a,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},i={...n,...o,...r};return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}({...o,...r}),s=Hy(r),l=Hy(o),u=t(i),c=Dr(u?.className,n?.className,a,o?.className,r?.className),d={...u?.style,...n?.style,...o?.style,...r?.style},f={...u,...n,...l,...s};return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}function By(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,shouldForwardComponentProp:s=!1,...l}=t,{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=c[e]||r,h=function(e,t,n){return"function"==typeof e?e(t,n):e}(d[e],o),{props:{component:m,...g},internalRef:y}=Vy({className:n,...l,externalForwardedProps:"root"===e?f:void 0,externalSlotProps:h}),v=oy(y,h?.ref,t.ref),b="root"===e?m||u:m,w=function(e,t,n){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...n}}}(p,{..."root"===e&&!u&&!c[e]&&i,..."root"!==e&&!c[e]&&i,...g,...b&&!s&&{as:b},...b&&s&&{component:b},ref:v},o);return[p,w]}const Uy=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ef(n.size)}`],"text"===n.variant&&t[`text${ef(n.color)}`],"outlined"===n.variant&&t[`outlined${ef(n.color)}`],"rounded"===n.shape&&t.rounded,"page"===n.type&&t.page,("start-ellipsis"===n.type||"end-ellipsis"===n.type)&&t.ellipsis,("previous"===n.type||"next"===n.type)&&t.previousNext,("first"===n.type||"last"===n.type)&&t.firstLast]},Wy=ny("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:Uy})(Ty(({theme:e})=>({...e.typography.body2,borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${Xd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),Yy=ny(Ny,{name:"MuiPaginationItem",slot:"Root",overridesResolver:Uy})(Ty(({theme:e})=>({...e.typography.body2,borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${Xd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Xd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xd.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Xd.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},[`&.${Xd.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),[`&.${Xd.selected}`]:{[`&.${Xd.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${Xd.selected}`]:{[`&.${Xd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(Py(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${Xd.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${Xd.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${Xd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(Py(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${Xd.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.5)}`,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.activatedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xd.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))]}))),qy=ny("div",{name:"MuiPaginationItem",slot:"Icon"})(Ty(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),Gy=D.forwardRef(function(e,t){const n=ry({props:e,name:"MuiPaginationItem"}),{className:r,color:o="standard",component:a,components:i={},disabled:s=!1,page:l,selected:u=!1,shape:c="circular",size:d="medium",slots:f={},slotProps:p={},type:h="page",variant:g="text",...y}=n,v={...n,color:o,disabled:s,selected:u,shape:c,size:d,type:h,variant:g},b=D.useContext(Kd)??!1,w=(e=>{const{classes:t,color:n,disabled:r,selected:o,size:a,shape:i,type:s,variant:l}=e;return Hd({root:["root",`size${ef(a)}`,l,i,"standard"!==n&&`color${ef(n)}`,"standard"!==n&&`${l}${ef(n)}`,r&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]},Qd,t)})(v),x={slots:{previous:f.previous??i.previous,next:f.next??i.next,first:f.first??i.first,last:f.last??i.last},slotProps:p},[S,C]=By("previous",{elementType:zy,externalForwardedProps:x,ownerState:v}),[k,_]=By("next",{elementType:$y,externalForwardedProps:x,ownerState:v}),[E,j]=By("first",{elementType:Fy,externalForwardedProps:x,ownerState:v}),[O,N]=By("last",{elementType:Ly,externalForwardedProps:x,ownerState:v}),R=b?{previous:"next",next:"previous",first:"last",last:"first"}[h]:h,P={previous:S,next:k,first:E,last:O}[R],T={previous:C,next:_,first:j,last:N}[R];return"start-ellipsis"===h||"end-ellipsis"===h?m.jsx(Wy,{ref:t,ownerState:v,className:Dr(w.root,r),children:"…"}):m.jsxs(Yy,{ref:t,ownerState:v,component:a,disabled:s,className:Dr(w.root,r),...y,children:["page"===h&&l,P?m.jsx(qy,{...T,className:w.icon,as:P}):null]})}),Ky=ny("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),Qy=ny("ul",{name:"MuiPagination",slot:"Ul"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Xy(e,t,n){return"page"===e?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}const Zy=D.forwardRef(function(e,t){const n=ry({props:e,name:"MuiPagination"}),{boundaryCount:r=1,className:o,color:a="standard",count:i=1,defaultPage:s=1,disabled:l=!1,getItemAriaLabel:u=Xy,hideNextButton:c=!1,hidePrevButton:d=!1,onChange:f,page:p,renderItem:h=e=>m.jsx(Gy,{...e}),shape:g="circular",showFirstButton:y=!1,showLastButton:v=!1,siblingCount:b=1,size:w="medium",variant:x="text",...S}=n,{items:C}=Gd({...n,componentName:"Pagination"}),k={...n,boundaryCount:r,color:a,count:i,defaultPage:s,disabled:l,getItemAriaLabel:u,hideNextButton:c,hidePrevButton:d,renderItem:h,shape:g,showFirstButton:y,showLastButton:v,siblingCount:b,size:w,variant:x},_=(e=>{const{classes:t,variant:n}=e;return Hd({root:["root",n],ul:["ul"]},qd,t)})(k);return m.jsx(Ky,{"aria-label":"pagination navigation",className:Dr(_.root,o),ownerState:k,ref:t,...S,children:m.jsx(Qy,{className:_.ul,ownerState:k,children:C.map((e,t)=>m.jsx("li",{children:h({...e,color:a,"aria-label":u(e.type,e.page,e.selected),shape:g,size:w,variant:x})},t))})})}),Jy={arrow:m.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M8.65833 15.7667C8.54866 15.7673 8.43994 15.7463 8.33841 15.7048C8.23688 15.6634 8.14453 15.6023 8.06667 15.525C7.91146 15.3689 7.82434 15.1577 7.82434 14.9375C7.82434 14.7174 7.91146 14.5062 8.06667 14.35L12.4083 10L8.06667 5.65004C7.93014 5.49062 7.85881 5.28556 7.86691 5.07583C7.87501 4.8661 7.96195 4.66715 8.11036 4.51874C8.25878 4.37032 8.45773 4.28338 8.66746 4.27528C8.87719 4.26718 9.08225 4.33852 9.24167 4.47504L14.1667 9.40837C14.2439 9.48624 14.305 9.57859 14.3465 9.68012C14.3879 9.78165 14.409 9.89037 14.4083 10C14.4053 10.2207 14.3189 10.432 14.1667 10.5917L9.225 15.525C9.07391 15.675 8.87116 15.7615 8.65833 15.7667Z",fill:"#A1A5B7"})}),info_input:m.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M10 18.3332C14.6024 18.3332 18.3333 14.6022 18.3333 9.99984C18.3333 5.39746 14.6024 1.6665 10 1.6665C5.39763 1.6665 1.66667 5.39746 1.66667 9.99984C1.66667 14.6022 5.39763 18.3332 10 18.3332Z",fill:"#1868DB"}),m.jsx("path",{d:"M10 8.83301C10.221 8.83301 10.433 8.9208 10.5893 9.07708C10.7455 9.23337 10.8333 9.44533 10.8333 9.66634V13.5497C10.8333 13.7707 10.7455 13.9826 10.5893 14.1389C10.433 14.2952 10.221 14.383 10 14.383C9.77899 14.383 9.56703 14.2952 9.41075 14.1389C9.25447 13.9826 9.16667 13.7707 9.16667 13.5497V9.66634C9.16667 9.44533 9.25447 9.23337 9.41075 9.07708C9.56703 8.9208 9.77899 8.83301 10 8.83301Z",fill:"#1868DB"}),m.jsx("path",{d:"M10 7.70003C10.5753 7.70003 11.0417 7.23366 11.0417 6.65837C11.0417 6.08307 10.5753 5.6167 10 5.6167C9.42471 5.6167 8.95834 6.08307 8.95834 6.65837C8.95834 7.23366 9.42471 7.70003 10 7.70003Z",fill:"#1868DB"})]}),cube:m.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M9.90996 21.67L4.66996 18.67C4.02642 18.2997 3.4934 17.7643 3.12598 17.1192C2.75856 16.474 2.57006 15.7424 2.57996 15V9C2.57541 8.26267 2.76644 7.53731 3.13359 6.89787C3.50075 6.25843 4.03088 5.72778 4.66996 5.36L9.90996 2.36C10.5447 1.99116 11.2658 1.79688 12 1.79688C12.7341 1.79688 13.4552 1.99116 14.09 2.36L19.33 5.36C19.969 5.72778 20.4992 6.25843 20.8663 6.89787C21.2335 7.53731 21.4245 8.26267 21.42 9V15C21.4192 15.7323 21.2257 16.4514 20.8588 17.0851C20.4919 17.7188 19.9646 18.2448 19.33 18.61L14.09 21.61C13.4605 21.988 12.7422 22.1927 12.008 22.2032C11.2739 22.2137 10.55 22.0298 9.90996 21.67Z",fill:"#1868DB"}),m.jsx("path",{opacity:"0.3",d:"M20.8599 6.89C20.4965 6.2519 19.968 5.7234 19.3299 5.36L14.0899 2.36C13.4551 1.99116 12.734 1.79688 11.9999 1.79688C11.2657 1.79688 10.5447 1.99116 9.90989 2.36L4.66989 5.36C4.03179 5.7234 3.5033 6.2519 3.13989 6.89L11.9999 12L20.8599 6.89Z",fill:"#1868DB"}),m.jsx("path",{d:"M20.85 6.89014L12 12.0001L12.13 22.2201C12.8324 22.2082 13.5203 22.019 14.13 21.6701L19.37 18.6701C20.0061 18.2948 20.5311 17.7572 20.8913 17.1124C21.2515 16.4675 21.4339 15.7386 21.42 15.0001V9.00014C21.4215 8.25857 21.2247 7.53009 20.85 6.89014Z",fill:"#1868DB"})]}),magnifier:m.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M19.7083 17.8015L16.8025 15.0515C16.25 15.7628 15.5878 16.3817 14.8408 16.8848L17.8292 19.7265C17.9548 19.8733 18.1102 19.9917 18.285 20.074C18.4598 20.1563 18.6501 20.2005 18.8432 20.2038C19.0364 20.2071 19.2281 20.1694 19.4056 20.0932C19.5832 20.017 19.7425 19.9039 19.8731 19.7615C20.0037 19.6192 20.1026 19.4507 20.1633 19.2673C20.224 19.0839 20.2451 18.8897 20.2252 18.6975C20.2053 18.5053 20.1449 18.3195 20.0479 18.1525C19.9509 17.9854 19.8195 17.8408 19.6625 17.7282L19.7083 17.8015Z",fill:"#7E8299"}),m.jsx("path",{d:"M10.2117 1.83325C8.57998 1.83325 6.98492 2.31711 5.62822 3.22363C4.27151 4.13015 3.21409 5.41862 2.58967 6.92611C1.96524 8.4336 1.80187 10.0924 2.1202 11.6927C2.43852 13.2931 3.22426 14.7631 4.37804 15.9169C5.53183 17.0707 7.00183 17.8564 8.60218 18.1747C10.2025 18.4931 11.8613 18.3297 13.3688 17.7053C14.8763 17.0808 16.1648 16.0234 17.0713 14.6667C17.9778 13.31 18.4617 11.7149 18.4617 10.0833C18.4617 7.89522 17.5925 5.7968 16.0453 4.24962C14.4981 2.70245 12.3997 1.83325 10.2117 1.83325ZM10.2117 15.9133C9.06081 15.9132 7.93578 15.5721 6.97875 14.9329C6.02172 14.2937 5.27564 13.3851 4.83481 12.3221C4.39397 11.259 4.27817 10.0891 4.50202 8.9602C4.72588 7.83132 5.27935 6.79413 6.09249 5.97971C6.90563 5.16529 7.94195 4.61018 9.07048 4.38455C10.199 4.15892 11.3691 4.27288 12.4329 4.71204C13.4966 5.1512 14.4064 5.89585 15.0471 6.85187C15.6878 7.8079 16.0307 8.93239 16.0325 10.0833C16.0349 10.8488 15.8861 11.6072 15.5945 12.315C15.303 13.0229 14.8744 13.6661 14.3336 14.2078C13.7927 14.7496 13.1501 15.1791 12.4428 15.4718C11.7354 15.7644 10.9772 15.9145 10.2117 15.9133Z",fill:"#7E8299"})]}),filter_edit:m.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M17.3083 3.4917V5.4917C17.3065 5.84118 17.2313 6.18639 17.0878 6.50504C16.9443 6.82369 16.7355 7.10871 16.475 7.3417L15.5167 8.17503C15.3929 8.28554 15.2303 8.34235 15.0646 8.33298C14.899 8.3236 14.7438 8.2488 14.6333 8.12503C14.5228 8.00126 14.466 7.83867 14.4754 7.67301C14.4848 7.50735 14.5596 7.35221 14.6833 7.2417L15.6333 6.40837C15.7618 6.29272 15.8646 6.15136 15.9349 5.99344C16.0053 5.83552 16.0416 5.66458 16.0417 5.4917V3.4917C16.0417 3.16902 15.9135 2.85956 15.6853 2.63139C15.4571 2.40322 15.1477 2.27503 14.825 2.27503H4.21667C3.89399 2.27503 3.58452 2.40322 3.35635 2.63139C3.12818 2.85956 3 3.16902 3 3.4917V5.5667C3.00618 5.87894 3.13137 6.17702 3.35 6.40003L6.48333 9.57503C7.19463 10.2901 7.59322 11.2581 7.59167 12.2667V16.6667C7.59567 16.8589 7.65113 17.0465 7.75227 17.2099C7.85341 17.3734 7.99654 17.5068 8.16674 17.5961C8.33694 17.6855 8.52798 17.7276 8.71997 17.718C8.91196 17.7084 9.09787 17.6475 9.25833 17.5417L10.3917 16.7084C10.459 16.6608 10.535 16.6269 10.6154 16.6087C10.6958 16.5904 10.779 16.5882 10.8602 16.6021C10.9415 16.6161 11.0192 16.6459 11.0889 16.6898C11.1587 16.7338 11.2191 16.7911 11.2667 16.8584C11.3143 16.9257 11.3482 17.0017 11.3664 17.0821C11.3846 17.1625 11.3868 17.2457 11.3729 17.3269C11.359 17.4082 11.3292 17.4859 11.2852 17.5556C11.2412 17.6254 11.184 17.6858 11.1167 17.7334L9.975 18.5667C9.62709 18.8036 9.22141 18.9415 8.80123 18.9659C8.38105 18.9903 7.96213 18.9002 7.58916 18.7051C7.21619 18.5101 6.90316 18.2175 6.68346 17.8585C6.46376 17.4995 6.34563 17.0876 6.34167 16.6667V12.2917C6.34169 11.6108 6.07202 10.9576 5.59167 10.475L2.5 7.30003C2.03298 6.84254 1.76375 6.22032 1.75 5.5667V3.4917C1.75 2.82866 2.01339 2.19277 2.48223 1.72393C2.95107 1.25509 3.58696 0.991699 4.25 0.991699H14.8417C15.4989 1.00046 16.1263 1.26772 16.5879 1.73561C17.0496 2.20351 17.3084 2.83439 17.3083 3.4917ZM16.3583 12.1584L15.7167 12.8084L13.5583 15C13.3939 15.1657 13.1858 15.2813 12.9583 15.3334L12.075 15.5167C11.9919 15.5249 11.9081 15.5249 11.825 15.5167C11.5126 15.5114 11.2142 15.386 10.9917 15.1667C10.849 15.0271 10.7431 14.8544 10.6835 14.6639C10.6239 14.4734 10.6124 14.2711 10.65 14.075L10.8167 13.1917C10.8569 12.9611 10.9675 12.7486 11.1333 12.5834L13.925 9.72503C14.0459 9.60279 14.19 9.50591 14.3488 9.44009C14.5077 9.37426 14.6781 9.34081 14.85 9.3417C15.1962 9.34532 15.5277 9.48268 15.775 9.72503L16.3167 10.2584C16.4464 10.379 16.5506 10.5245 16.6232 10.6862C16.6957 10.8478 16.7351 11.0224 16.739 11.1996C16.7429 11.3767 16.7112 11.5528 16.6458 11.7175C16.5804 11.8822 16.4827 12.0321 16.3583 12.1584ZM14.8 10.6334L14.3167 11.1334C14.3687 11.2877 14.4624 11.4247 14.5874 11.5291C14.7124 11.6335 14.8639 11.7013 15.025 11.725L15.4583 11.2834C15.4583 11.2834 15.4583 11.2167 15.4583 11.1834L14.9167 10.65C14.8947 10.6453 14.872 10.6453 14.85 10.65L14.8 10.6334ZM14.075 12.7C13.8068 12.5397 13.5787 12.3203 13.4083 12.0584L12.0083 13.4917L11.8583 14.325L12.6917 14.1084L14.075 12.7Z",fill:"inherit"})}),price_tag:m.jsxs("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("g",{opacity:"0.3",children:m.jsx("path",{d:"M3.55997 6.65016L3.41997 11.7402C3.39903 12.4124 3.517 13.0818 3.76649 13.7063C4.01598 14.3309 4.39164 14.8973 4.86997 15.3702L9.42997 19.9402C9.84795 20.3589 10.3444 20.6912 10.8909 20.9178C11.4374 21.1445 12.0233 21.2612 12.615 21.2612C13.2066 21.2612 13.7925 21.1445 14.339 20.9178C14.8855 20.6912 15.382 20.3589 15.8 19.9402L20.57 15.1702C20.9887 14.7522 21.321 14.2557 21.5477 13.7092C21.7743 13.1627 21.891 12.5768 21.891 11.9852C21.891 11.3935 21.7743 10.8076 21.5477 10.2611C21.321 9.71459 20.9887 9.21814 20.57 8.80016L15.96 4.19016C15.4798 3.71338 14.9078 3.33903 14.2787 3.08979C13.6496 2.84055 12.9764 2.72161 12.3 2.74016L7.29997 2.91016C6.31604 2.93547 5.37939 3.33763 4.68341 4.0336C3.98744 4.72958 3.58528 5.66623 3.55997 6.65016Z",fill:"inherit"})}),m.jsx("path",{d:"M10.23 12.2304C11.7764 12.2304 13.03 10.9768 13.03 9.43037C13.03 7.88397 11.7764 6.63037 10.23 6.63037C8.6836 6.63037 7.42999 7.88397 7.42999 9.43037C7.42999 10.9768 8.6836 12.2304 10.23 12.2304Z",fill:"inherit"}),m.jsx("path",{d:"M13.1 17.0003C12.9509 17.0022 12.8046 16.9596 12.6799 16.8779C12.5551 16.7963 12.4575 16.6793 12.3996 16.5419C12.3416 16.4045 12.3259 16.253 12.3545 16.1066C12.3831 15.9603 12.4546 15.8258 12.56 15.7203L16.56 11.7203C16.7006 11.5799 16.8912 11.501 17.09 11.501C17.2887 11.501 17.4794 11.5799 17.62 11.7203C17.6907 11.7893 17.747 11.8717 17.7854 11.9627C17.8238 12.0537 17.8435 12.1515 17.8435 12.2503C17.8435 12.3491 17.8238 12.4469 17.7854 12.5379C17.747 12.629 17.6907 12.7114 17.62 12.7803L13.67 16.7803C13.5961 16.8555 13.507 16.914 13.4087 16.9519C13.3104 16.9898 13.2052 17.0063 13.1 17.0003Z",fill:"inherit"})]}),eyeslash:m.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M2.88008 22.3404C2.67861 22.3386 2.48544 22.2599 2.34008 22.1204C2.19902 21.978 2.11987 21.7858 2.11987 21.5854C2.11987 21.385 2.19902 21.1927 2.34008 21.0504L20.6001 2.88037C20.6636 2.7878 20.7471 2.71068 20.8444 2.65467C20.9417 2.59867 21.0503 2.56523 21.1622 2.5568C21.2742 2.54838 21.3866 2.56519 21.4911 2.606C21.5957 2.64681 21.6898 2.71057 21.7665 2.79258C21.8431 2.8746 21.9004 2.97278 21.934 3.07987C21.9677 3.18697 21.9769 3.30025 21.9609 3.41137C21.9449 3.52249 21.9042 3.6286 21.8418 3.72189C21.7793 3.81518 21.6967 3.89325 21.6001 3.95037L3.40008 22.1204C3.26264 22.2595 3.07568 22.3386 2.88008 22.3404Z",fill:"black"}),m.jsx("path",{d:"M9.14993 13.1107C9.15256 12.3557 9.45368 11.6323 9.98758 11.0984C10.5215 10.5645 11.2449 10.2634 11.9999 10.2607C12.4251 10.2609 12.8448 10.3573 13.2275 10.5426C13.6102 10.7279 13.9461 10.9973 14.2099 11.3307L10.2099 15.3307C9.87756 15.0643 9.60962 14.7263 9.42608 14.3419C9.24255 13.9576 9.14815 13.5367 9.14993 13.1107ZM11.7099 15.9307C11.8065 15.9357 11.9033 15.9357 11.9999 15.9307C12.7558 15.9307 13.4807 15.6305 14.0152 15.096C14.5497 14.5615 14.8499 13.8366 14.8499 13.0807C14.8548 12.9908 14.8548 12.9007 14.8499 12.8107L11.7099 15.9307Z",fill:"black"}),m.jsx("path",{opacity:"0.3",d:"M6.05 19.5008L9.15 16.4108C8.70449 16.0196 8.34405 15.5411 8.09102 15.005C7.838 14.4688 7.69777 13.8864 7.67903 13.2938C7.66029 12.7013 7.76343 12.1112 7.98208 11.5601C8.20072 11.009 8.5302 10.5087 8.95011 10.0902C9.37001 9.67167 9.87139 9.34383 10.4232 9.12699C10.975 8.91015 11.5654 8.80893 12.1579 8.82961C12.7504 8.85029 13.3323 8.99243 13.8677 9.24721C14.403 9.50199 14.8803 9.86399 15.27 10.3108L18.43 7.16078C16.6374 5.59863 14.3743 4.68002 12 4.55078C7.27 4.55078 2 9.17078 2 13.1108C2 15.2508 3.71 17.7208 6.05 19.5008Z",fill:"black"}),m.jsx("path",{opacity:"0.3",d:"M16.0601 11.6004C16.2484 12.0817 16.3467 12.5935 16.3501 13.1104C16.3552 13.8149 16.1879 14.5101 15.8628 15.1352C15.5377 15.7604 15.0646 16.2965 14.4848 16.6968C13.905 17.0972 13.236 17.3496 12.5362 17.4322C11.8365 17.5147 11.1271 17.4248 10.4701 17.1704L7.33008 20.2904C8.74153 21.1458 10.3504 21.6212 12.0001 21.6704C17.0001 21.6704 22.0001 17.0804 22.0001 13.1104C21.8378 11.1937 20.9595 9.40848 19.5401 8.11035L16.0601 11.6004Z",fill:"black"})]}),eye_outline:m.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M7.99998 9.39988C7.5253 9.39988 7.06129 9.25912 6.66661 8.99541C6.27193 8.73169 5.96432 8.35686 5.78267 7.91832C5.60102 7.47978 5.55349 6.99722 5.6461 6.53166C5.7387 6.06611 5.96728 5.63847 6.30292 5.30282C6.63857 4.96718 7.06621 4.7386 7.53176 4.646C7.99732 4.55339 8.47988 4.60092 8.91842 4.78257C9.35696 4.96422 9.73179 5.27183 9.99551 5.66651C10.2592 6.06119 10.4 6.5252 10.4 6.99988C10.3982 7.63586 10.1448 8.24529 9.69509 8.69499C9.24539 9.1447 8.63596 9.39812 7.99998 9.39988ZM7.99998 5.59988C7.72309 5.59988 7.45241 5.68199 7.22218 5.83582C6.99195 5.98966 6.81251 6.20831 6.70655 6.46412C6.60059 6.71994 6.57286 7.00143 6.62688 7.27301C6.6809 7.54458 6.81424 7.79404 7.01003 7.98983C7.20582 8.18562 7.45528 8.31896 7.72685 8.37298C7.99843 8.427 8.27992 8.39927 8.53574 8.29331C8.79155 8.18735 9.0102 8.00791 9.16404 7.77768C9.31787 7.54745 9.39998 7.27677 9.39998 6.99988C9.39998 6.62858 9.25248 6.27248 8.98993 6.00993C8.72738 5.74738 8.37128 5.59988 7.99998 5.59988ZM7.99998 13.2065C6.19341 13.1238 4.4753 12.4006 3.15331 11.1665C1.69998 9.89321 0.833313 8.33321 0.833313 6.99988C0.833313 4.03988 4.58665 0.793213 7.99998 0.793213C11.4133 0.793213 15.1666 4.12655 15.1666 6.99988C15.1666 10.0132 11.48 13.2065 7.99998 13.2065ZM7.99998 1.79321C5.17998 1.79321 1.83331 4.61321 1.83331 6.99988C1.83331 8.03988 2.59331 9.34655 3.83331 10.4132C4.97144 11.4773 6.44482 12.1114 7.99998 12.2065C11.1733 12.2065 14.1666 9.27321 14.1666 6.99988C14.1666 4.84655 10.98 1.79321 7.99998 1.79321Z",fill:"inherit"})}),eye:m.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M11.9999 15.3504C13.5739 15.3504 14.8499 14.0744 14.8499 12.5004C14.8499 10.9264 13.5739 9.65039 11.9999 9.65039C10.4259 9.65039 9.1499 10.9264 9.1499 12.5004C9.1499 14.0744 10.4259 15.3504 11.9999 15.3504Z",fill:"black"}),m.jsx("path",{opacity:"0.3",d:"M11.9999 15.3504C13.5739 15.3504 14.8499 14.0744 14.8499 12.5004C14.8499 10.9264 13.5739 9.65039 11.9999 9.65039C10.4259 9.65039 9.1499 10.9264 9.1499 12.5004C9.1499 14.0744 10.4259 15.3504 11.9999 15.3504Z",fill:"black"}),m.jsx("path",{opacity:"0.3",d:"M12 3.94043C7.27 3.94043 2 8.56043 2 12.5004C2 16.2604 7.27 21.0604 12 21.0604C17 21.0604 22 16.4704 22 12.5004C22 8.68043 16.73 3.94043 12 3.94043ZM12 16.8504C11.1397 16.8504 10.2986 16.5953 9.58327 16.1173C8.86792 15.6393 8.31037 14.96 7.98112 14.1651C7.65188 13.3702 7.56574 12.4956 7.73358 11.6518C7.90143 10.808 8.31573 10.0329 8.92409 9.42452C9.53244 8.81616 10.3075 8.40186 11.1514 8.23401C11.9952 8.06617 12.8698 8.15231 13.6647 8.48155C14.4595 8.81079 15.1389 9.36834 15.6169 10.0837C16.0949 10.7991 16.35 11.6401 16.35 12.5004C16.35 13.6541 15.8917 14.7606 15.0759 15.5763C14.2601 16.3921 13.1537 16.8504 12 16.8504Z",fill:"black"})]}),trash:m.jsx("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M3.51994 15.1668C2.96424 15.1616 2.43084 14.9475 2.02573 14.5671C1.62061 14.1867 1.37343 13.6678 1.33328 13.1135L0.846611 6.15352C0.842233 6.08785 0.850832 6.02197 0.871915 5.95964C0.892998 5.8973 0.926153 5.83972 0.969487 5.7902C1.01282 5.74067 1.06549 5.70017 1.12447 5.671C1.18346 5.64183 1.24762 5.62456 1.31328 5.62018C1.37894 5.61581 1.44482 5.6244 1.50716 5.64549C1.56949 5.66657 1.62707 5.69973 1.67659 5.74306C1.72612 5.78639 1.76662 5.83906 1.79579 5.89804C1.82497 5.95703 1.84223 6.02119 1.84661 6.08685L2.31994 13.0468C2.34358 13.3534 2.48268 13.6395 2.70914 13.8474C2.9356 14.0553 3.23254 14.1694 3.53994 14.1668L8.57328 14.1068C8.8791 14.1038 9.17223 13.9842 9.39278 13.7723C9.61334 13.5604 9.74467 13.2723 9.75994 12.9668L10.1533 6.08685C10.1635 5.95423 10.2249 5.83076 10.3243 5.74246C10.4238 5.65417 10.5537 5.60794 10.6866 5.61352C10.8181 5.6221 10.9409 5.68224 11.0283 5.78086C11.1157 5.87948 11.1606 6.00862 11.1533 6.14018L10.7599 13.0268C10.7264 13.5836 10.4839 14.1072 10.081 14.4928C9.67801 14.8785 9.1443 15.0978 8.58661 15.1068L3.55328 15.1668H3.51994ZM7.98661 8.56685C7.98488 8.43478 7.93165 8.3086 7.83825 8.2152C7.74486 8.12181 7.61868 8.06858 7.48661 8.06685H4.51328C4.38067 8.06685 4.25349 8.11953 4.15972 8.21329C4.06596 8.30706 4.01328 8.43424 4.01328 8.56685C4.01328 8.69946 4.06596 8.82663 4.15972 8.9204C4.25349 9.01417 4.38067 9.06685 4.51328 9.06685H7.48661C7.55338 9.06863 7.61984 9.05701 7.68205 9.03268C7.74426 9.00836 7.80096 8.97181 7.84881 8.9252C7.89667 8.87859 7.93469 8.82287 7.96065 8.76132C7.98661 8.69977 7.99997 8.63365 7.99994 8.56685H7.98661ZM7.46661 11.0335C7.46661 10.9009 7.41393 10.7737 7.32016 10.68C7.2264 10.5862 7.09922 10.5335 6.96661 10.5335H5.03328C4.90067 10.5335 4.77349 10.5862 4.67972 10.68C4.58596 10.7737 4.53328 10.9009 4.53328 11.0335C4.53328 11.1661 4.58596 11.2933 4.67972 11.3871C4.77349 11.4808 4.90067 11.5335 5.03328 11.5335H6.96661C7.09868 11.5318 7.22486 11.4786 7.31825 11.3852C7.41165 11.2918 7.46488 11.1656 7.46661 11.0335ZM11.9999 4.34685C11.9837 4.46582 11.9247 4.5748 11.8338 4.65334C11.743 4.73189 11.6267 4.77462 11.5066 4.77352H11.4333C7.83463 4.27895 4.18525 4.27895 0.586611 4.77352C0.52046 4.78494 0.452697 4.78311 0.387261 4.76812C0.321825 4.75314 0.260019 4.7253 0.205434 4.68622C0.15085 4.64714 0.104575 4.5976 0.0692985 4.54049C0.0340221 4.48338 0.0104474 4.41982 -5.58854e-05 4.35352C-0.0212122 4.22268 0.0104398 4.08881 0.0879442 3.9813C0.165449 3.87379 0.282465 3.80146 0.413277 3.78018C0.499944 3.78018 1.41994 3.62018 2.86661 3.50685L3.10661 2.25352C3.18278 1.85342 3.39637 1.49252 3.71044 1.23323C4.02452 0.973936 4.41933 0.832548 4.82661 0.833516H7.17994C7.59027 0.831559 7.98819 0.974125 8.30391 1.23621C8.61963 1.4983 8.83301 1.86317 8.90661 2.26685L9.13328 3.50685C9.92661 3.57352 10.7399 3.65352 11.5733 3.78018C11.6386 3.78918 11.7015 3.811 11.7583 3.84439C11.8152 3.87778 11.8648 3.92209 11.9045 3.97476C11.9441 4.02742 11.973 4.08741 11.9894 4.15127C12.0058 4.21513 12.0093 4.2816 11.9999 4.34685ZM5.70661 3.39352H8.09328L7.91994 2.44685C7.88875 2.27498 7.79829 2.11949 7.66431 2.00743C7.53032 1.89537 7.36128 1.83383 7.18661 1.83352H4.83328C4.65875 1.83327 4.48955 1.89362 4.35458 2.00427C4.21962 2.11492 4.12726 2.269 4.09328 2.44018L3.91328 3.39352H5.70661Z",fill:"#F1416C"})}),trash2:m.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M10 2.25C9.58579 2.25 9.25 2.58579 9.25 3V3.75H5C4.58579 3.75 4.25 4.08579 4.25 4.5C4.25 4.91421 4.58579 5.25 5 5.25H19C19.4142 5.25 19.75 4.91421 19.75 4.5C19.75 4.08579 19.4142 3.75 19 3.75H14.75V3C14.75 2.58579 14.4142 2.25 14 2.25H10Z",fill:"#F1416C"}),m.jsx("path",{d:"M10 10.65C10.4142 10.65 10.75 10.9858 10.75 11.4L10.75 18.4C10.75 18.8142 10.4142 19.15 10 19.15C9.58579 19.15 9.25 18.8142 9.25 18.4L9.25 11.4C9.25 10.9858 9.58579 10.65 10 10.65Z",fill:"#F1416C"}),m.jsx("path",{d:"M14.75 11.4C14.75 10.9858 14.4142 10.65 14 10.65C13.5858 10.65 13.25 10.9858 13.25 11.4V18.4C13.25 18.8142 13.5858 19.15 14 19.15C14.4142 19.15 14.75 18.8142 14.75 18.4V11.4Z",fill:"#F1416C"}),m.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.99142 7.91718C6.03363 7.53735 6.35468 7.25 6.73684 7.25H17.2632C17.6453 7.25 17.9664 7.53735 18.0086 7.91718L18.2087 9.71852C18.5715 12.9838 18.5715 16.2793 18.2087 19.5446L18.189 19.722C18.045 21.0181 17.0404 22.0517 15.7489 22.2325C13.2618 22.5807 10.7382 22.5807 8.25108 22.2325C6.95954 22.0517 5.955 21.0181 5.81098 19.722L5.79128 19.5446C5.42846 16.2793 5.42846 12.9838 5.79128 9.71852L5.99142 7.91718ZM7.40812 8.75L7.2821 9.88417C6.93152 13.0394 6.93152 16.2238 7.2821 19.379L7.3018 19.5563C7.37011 20.171 7.84652 20.6612 8.45905 20.747C10.8082 21.0758 13.1918 21.0758 15.5409 20.747C16.1535 20.6612 16.6299 20.171 16.6982 19.5563L16.7179 19.379C17.0685 16.2238 17.0685 13.0394 16.7179 9.88417L16.5919 8.75H7.40812Z",fill:"#F1416C"})]}),trash_outline:m.jsx("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M3.51994 15.1668C2.96424 15.1616 2.43084 14.9475 2.02573 14.5671C1.62061 14.1867 1.37343 13.6678 1.33328 13.1135L0.846611 6.15352C0.842233 6.08785 0.850832 6.02197 0.871915 5.95964C0.892998 5.8973 0.926153 5.83972 0.969487 5.7902C1.01282 5.74067 1.06549 5.70017 1.12447 5.671C1.18346 5.64183 1.24762 5.62456 1.31328 5.62018C1.37894 5.61581 1.44482 5.6244 1.50716 5.64549C1.56949 5.66657 1.62707 5.69973 1.67659 5.74306C1.72612 5.78639 1.76662 5.83906 1.79579 5.89804C1.82497 5.95703 1.84223 6.02119 1.84661 6.08685L2.31994 13.0468C2.34358 13.3534 2.48268 13.6395 2.70914 13.8474C2.9356 14.0553 3.23254 14.1694 3.53994 14.1668L8.57328 14.1068C8.8791 14.1038 9.17223 13.9842 9.39278 13.7723C9.61334 13.5604 9.74467 13.2723 9.75994 12.9668L10.1533 6.08685C10.1635 5.95423 10.2249 5.83076 10.3243 5.74246C10.4238 5.65417 10.5537 5.60794 10.6866 5.61352C10.8181 5.6221 10.9409 5.68224 11.0283 5.78086C11.1157 5.87948 11.1606 6.00862 11.1533 6.14018L10.7599 13.0268C10.7264 13.5836 10.4839 14.1072 10.081 14.4928C9.67801 14.8785 9.1443 15.0978 8.58661 15.1068L3.55328 15.1668H3.51994ZM7.98661 8.56685C7.98488 8.43478 7.93165 8.3086 7.83825 8.2152C7.74486 8.12181 7.61868 8.06858 7.48661 8.06685H4.51328C4.38067 8.06685 4.25349 8.11953 4.15972 8.21329C4.06596 8.30706 4.01328 8.43424 4.01328 8.56685C4.01328 8.69946 4.06596 8.82663 4.15972 8.9204C4.25349 9.01417 4.38067 9.06685 4.51328 9.06685H7.48661C7.55338 9.06863 7.61984 9.05701 7.68205 9.03268C7.74426 9.00836 7.80096 8.97181 7.84881 8.9252C7.89667 8.87859 7.93469 8.82287 7.96065 8.76132C7.98661 8.69977 7.99997 8.63365 7.99994 8.56685H7.98661ZM7.46661 11.0335C7.46661 10.9009 7.41393 10.7737 7.32016 10.68C7.2264 10.5862 7.09922 10.5335 6.96661 10.5335H5.03328C4.90067 10.5335 4.77349 10.5862 4.67972 10.68C4.58596 10.7737 4.53328 10.9009 4.53328 11.0335C4.53328 11.1661 4.58596 11.2933 4.67972 11.3871C4.77349 11.4808 4.90067 11.5335 5.03328 11.5335H6.96661C7.09868 11.5318 7.22486 11.4786 7.31825 11.3852C7.41165 11.2918 7.46488 11.1656 7.46661 11.0335ZM11.9999 4.34685C11.9837 4.46582 11.9247 4.5748 11.8338 4.65334C11.743 4.73189 11.6267 4.77462 11.5066 4.77352H11.4333C7.83463 4.27895 4.18525 4.27895 0.586611 4.77352C0.52046 4.78494 0.452697 4.78311 0.387261 4.76812C0.321825 4.75314 0.260019 4.7253 0.205434 4.68622C0.15085 4.64714 0.104575 4.5976 0.0692985 4.54049C0.0340221 4.48338 0.0104474 4.41982 -5.58854e-05 4.35352C-0.0212122 4.22268 0.0104398 4.08881 0.0879442 3.9813C0.165449 3.87379 0.282465 3.80146 0.413277 3.78018C0.499944 3.78018 1.41994 3.62018 2.86661 3.50685L3.10661 2.25352C3.18278 1.85342 3.39637 1.49252 3.71044 1.23323C4.02452 0.973936 4.41933 0.832548 4.82661 0.833516H7.17994C7.59027 0.831559 7.98819 0.974125 8.30391 1.23621C8.61963 1.4983 8.83301 1.86317 8.90661 2.26685L9.13328 3.50685C9.92661 3.57352 10.7399 3.65352 11.5733 3.78018C11.6386 3.78918 11.7015 3.811 11.7583 3.84439C11.8152 3.87778 11.8648 3.92209 11.9045 3.97476C11.9441 4.02742 11.973 4.08741 11.9894 4.15127C12.0058 4.21513 12.0093 4.2816 11.9999 4.34685ZM5.70661 3.39352H8.09328L7.91994 2.44685C7.88875 2.27498 7.79829 2.11949 7.66431 2.00743C7.53032 1.89537 7.36128 1.83383 7.18661 1.83352H4.83328C4.65875 1.83327 4.48955 1.89362 4.35458 2.00427C4.21962 2.11492 4.12726 2.269 4.09328 2.44018L3.91328 3.39352H5.70661Z",fill:"inherit"})}),plus_squared:m.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M9.16667 10.8333H5.83333C5.61232 10.8333 5.40036 10.7455 5.24408 10.5893C5.0878 10.433 5 10.221 5 10C5 9.77899 5.0878 9.56703 5.24408 9.41075C5.40036 9.25447 5.61232 9.16667 5.83333 9.16667H9.16667V10.8333ZM14.1667 9.16667H10.8333V10.8333H14.1667C14.3877 10.8333 14.5996 10.7455 14.7559 10.5893C14.9122 10.433 15 10.221 15 10C15 9.77899 14.9122 9.56703 14.7559 9.41075C14.5996 9.25447 14.3877 9.16667 14.1667 9.16667Z",fill:"white"}),m.jsx("path",{opacity:"0.3",d:"M13.4915 1.66667H6.50817C3.83419 1.66667 1.6665 3.83436 1.6665 6.50834V13.4917C1.6665 16.1657 3.83419 18.3333 6.50817 18.3333H13.4915C16.1655 18.3333 18.3332 16.1657 18.3332 13.4917V6.50834C18.3332 3.83436 16.1655 1.66667 13.4915 1.66667Z",fill:"white"}),m.jsx("path",{d:"M14.1667 9.16667H10.8333V5.83333C10.8333 5.61232 10.7455 5.40036 10.5893 5.24408C10.433 5.0878 10.221 5 10 5C9.77899 5 9.56702 5.0878 9.41074 5.24408C9.25446 5.40036 9.16667 5.61232 9.16667 5.83333V9.16667H5.83333C5.61232 9.16667 5.40036 9.25446 5.24408 9.41074C5.0878 9.56702 5 9.77899 5 10C5 10.221 5.0878 10.433 5.24408 10.5893C5.40036 10.7455 5.61232 10.8333 5.83333 10.8333H9.16667V14.1667C9.16667 14.3877 9.25446 14.5996 9.41074 14.7559C9.56702 14.9122 9.77899 15 10 15C10.221 15 10.433 14.9122 10.5893 14.7559C10.7455 14.5996 10.8333 14.3877 10.8333 14.1667V10.8333H14.1667C14.3877 10.8333 14.5996 10.7455 14.7559 10.5893C14.9122 10.433 15 10.221 15 10C15 9.77899 14.9122 9.56702 14.7559 9.41074C14.5996 9.25446 14.3877 9.16667 14.1667 9.16667Z",fill:"white"})]}),plus_squared2:m.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M9.16667 10.8332H5.83333C5.61232 10.8332 5.40036 10.7454 5.24408 10.5891C5.0878 10.4328 5 10.2209 5 9.99984C5 9.77882 5.0878 9.56686 5.24408 9.41058C5.40036 9.2543 5.61232 9.1665 5.83333 9.1665H9.16667V10.8332ZM14.1667 9.1665H10.8333V10.8332H14.1667C14.3877 10.8332 14.5996 10.7454 14.7559 10.5891C14.9122 10.4328 15 10.2209 15 9.99984C15 9.77882 14.9122 9.56686 14.7559 9.41058C14.5996 9.2543 14.3877 9.1665 14.1667 9.1665Z",fill:"#1868DB"}),m.jsx("path",{opacity:"0.3",d:"M13.4917 1.6665H6.50832C3.83434 1.6665 1.66666 3.83419 1.66666 6.50817V13.4915C1.66666 16.1655 3.83434 18.3332 6.50832 18.3332H13.4917C16.1656 18.3332 18.3333 16.1655 18.3333 13.4915V6.50817C18.3333 3.83419 16.1656 1.6665 13.4917 1.6665Z",fill:"#1868DB"}),m.jsx("path",{d:"M14.1667 9.16667H10.8333V5.83333C10.8333 5.61232 10.7455 5.40036 10.5893 5.24408C10.433 5.0878 10.221 5 10 5C9.77899 5 9.56702 5.0878 9.41074 5.24408C9.25446 5.40036 9.16667 5.61232 9.16667 5.83333V9.16667H5.83333C5.61232 9.16667 5.40036 9.25446 5.24408 9.41074C5.0878 9.56702 5 9.77899 5 10C5 10.221 5.0878 10.433 5.24408 10.5893C5.40036 10.7455 5.61232 10.8333 5.83333 10.8333H9.16667V14.1667C9.16667 14.3877 9.25446 14.5996 9.41074 14.7559C9.56702 14.9122 9.77899 15 10 15C10.221 15 10.433 14.9122 10.5893 14.7559C10.7455 14.5996 10.8333 14.3877 10.8333 14.1667V10.8333H14.1667C14.3877 10.8333 14.5996 10.7455 14.7559 10.5893C14.9122 10.433 15 10.221 15 10C15 9.77899 14.9122 9.56702 14.7559 9.41074C14.5996 9.25446 14.3877 9.16667 14.1667 9.16667Z",fill:"#1868DB"})]}),plus_circle:m.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M9.00008 0.666992C7.35191 0.666992 5.74074 1.15573 4.37033 2.07141C2.99992 2.98709 1.93182 4.28858 1.30109 5.8113C0.670359 7.33401 0.505331 9.00957 0.826874 10.6261C1.14842 12.2426 1.94209 13.7274 3.10753 14.8929C4.27297 16.0583 5.75782 16.852 7.37433 17.1735C8.99084 17.4951 10.6664 17.3301 12.1891 16.6993C13.7118 16.0686 15.0133 15.0005 15.929 13.6301C16.8447 12.2597 17.3334 10.6485 17.3334 9.00033C17.3334 7.90598 17.1179 6.82234 16.6991 5.8113C16.2803 4.80025 15.6665 3.88159 14.8926 3.10777C14.1188 2.33395 13.2002 1.72012 12.1891 1.30133C11.1781 0.88254 10.0944 0.666992 9.00008 0.666992ZM13.1668 9.83366H9.83342V13.167C9.83342 13.388 9.74562 13.6 9.58934 13.7562C9.43306 13.9125 9.2211 14.0003 9.00008 14.0003C8.77907 14.0003 8.56711 13.9125 8.41083 13.7562C8.25455 13.6 8.16675 13.388 8.16675 13.167V9.83366H4.83342C4.6124 9.83366 4.40044 9.74586 4.24416 9.58958C4.08788 9.4333 4.00008 9.22134 4.00008 9.00033C4.00008 8.77931 4.08788 8.56735 4.24416 8.41107C4.40044 8.25479 4.6124 8.16699 4.83342 8.16699H8.16675V4.83366C8.16675 4.61265 8.25455 4.40068 8.41083 4.2444C8.56711 4.08812 8.77907 4.00033 9.00008 4.00033C9.2211 4.00033 9.43306 4.08812 9.58934 4.2444C9.74562 4.40068 9.83342 4.61265 9.83342 4.83366V8.16699H13.1668C13.3878 8.16699 13.5997 8.25479 13.756 8.41107C13.9123 8.56735 14.0001 8.77931 14.0001 9.00033C14.0001 9.22134 13.9123 9.4333 13.756 9.58958C13.5997 9.74586 13.3878 9.83366 13.1668 9.83366Z",fill:"black"})}),close:m.jsx("svg",{width:"27",height:"27",viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M15.0862 13.5L19.125 9.49499C19.3398 9.27718 19.4593 8.98295 19.4572 8.67703C19.4551 8.37112 19.3315 8.07856 19.1137 7.86374C18.8959 7.64891 18.6017 7.52941 18.2958 7.53152C17.9898 7.53363 17.6973 7.65718 17.4825 7.87499L13.5 11.9137L9.51747 7.95374C9.30669 7.74421 9.02155 7.6266 8.72435 7.6266C8.42714 7.6266 8.142 7.74421 7.93122 7.95374C7.82578 8.05832 7.74208 8.18275 7.68497 8.31984C7.62785 8.45693 7.59845 8.60398 7.59845 8.75249C7.59845 8.901 7.62785 9.04805 7.68497 9.18514C7.74208 9.32223 7.82578 9.44666 7.93122 9.55124L11.9137 13.5L7.87497 17.505C7.66014 17.7228 7.54064 18.017 7.54275 18.3229C7.54486 18.6289 7.66841 18.9214 7.88622 19.1362C8.10403 19.3511 8.39826 19.4706 8.70417 19.4685C9.01009 19.4663 9.30264 19.3428 9.51747 19.125L13.5 15.0862L17.4825 19.0462C17.6933 19.2558 17.9784 19.3734 18.2756 19.3734C18.5728 19.3734 18.8579 19.2558 19.0687 19.0462C19.1742 18.9417 19.2579 18.8172 19.315 18.6801C19.3721 18.543 19.4015 18.396 19.4015 18.2475C19.4015 18.099 19.3721 17.9519 19.315 17.8148C19.2579 17.6777 19.1742 17.5533 19.0687 17.4487L15.0862 13.5Z",fill:"#1868DB"})}),close2:m.jsx("svg",{width:"27",height:"27",viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M15.0862 13.5L19.125 9.49499C19.3398 9.27718 19.4593 8.98295 19.4572 8.67703C19.4551 8.37112 19.3315 8.07856 19.1137 7.86374C18.8959 7.64891 18.6017 7.52941 18.2958 7.53152C17.9898 7.53363 17.6973 7.65718 17.4825 7.87499L13.5 11.9137L9.51747 7.95374C9.30669 7.74421 9.02155 7.6266 8.72435 7.6266C8.42714 7.6266 8.142 7.74421 7.93122 7.95374C7.82578 8.05832 7.74208 8.18275 7.68497 8.31984C7.62785 8.45693 7.59845 8.60398 7.59845 8.75249C7.59845 8.901 7.62785 9.04805 7.68497 9.18514C7.74208 9.32223 7.82578 9.44666 7.93122 9.55124L11.9137 13.5L7.87497 17.505C7.66014 17.7228 7.54064 18.017 7.54275 18.3229C7.54486 18.6289 7.66841 18.9214 7.88622 19.1362C8.10403 19.3511 8.39826 19.4706 8.70417 19.4685C9.01009 19.4663 9.30264 19.3428 9.51747 19.125L13.5 15.0862L17.4825 19.0462C17.6933 19.2558 17.9784 19.3734 18.2756 19.3734C18.5728 19.3734 18.8579 19.2558 19.0687 19.0462C19.1742 18.9417 19.2579 18.8172 19.315 18.6801C19.3721 18.543 19.4015 18.396 19.4015 18.2475C19.4015 18.099 19.3721 17.9519 19.315 17.8148C19.2579 17.6777 19.1742 17.5533 19.0687 17.4487L15.0862 13.5Z",fill:"inherit"})}),close_custom:m.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M17.0001 16.9298C16.8127 17.1161 16.5593 17.2206 16.2951 17.2206C16.0309 17.2206 15.7774 17.1161 15.5901 16.9298L7.05007 8.48985C6.95634 8.39688 6.88195 8.28628 6.83118 8.16442C6.78041 8.04256 6.75427 7.91186 6.75427 7.77985C6.75427 7.64783 6.78041 7.51713 6.83118 7.39527C6.88195 7.27341 6.95634 7.16281 7.05007 7.06985C7.23743 6.88359 7.49088 6.77905 7.75507 6.77905C8.01926 6.77905 8.27271 6.88359 8.46007 7.06985L17.0001 15.5098C17.0938 15.6028 17.1682 15.7134 17.219 15.8353C17.2697 15.9571 17.2959 16.0878 17.2959 16.2198C17.2959 16.3519 17.2697 16.4826 17.219 16.6044C17.1682 16.7263 17.0938 16.8369 17.0001 16.9298Z",fill:"#202125"}),m.jsx("path",{opacity:"0.3",d:"M8.46004 16.9999C8.26909 17.1935 8.00904 17.3033 7.73711 17.3052C7.46518 17.3071 7.20365 17.2009 7.01004 17.0099C6.81643 16.819 6.70661 16.5589 6.70474 16.287C6.70286 16.0151 6.80909 15.7535 7.00004 15.5599L15.54 6.99991C15.731 6.8063 15.991 6.69648 16.263 6.6946C16.5349 6.69273 16.7964 6.79895 16.99 6.98991C17.1836 7.18087 17.2935 7.44091 17.2953 7.71284C17.2972 7.98477 17.191 8.2463 17 8.43991L8.46004 16.9999Z",fill:"#202125"})]}),expand:m.jsx("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M14.1667 29.75V26.9167H9.08083L15.4558 20.5417L13.4583 18.5442L7.08333 24.9192V19.8333H4.25V29.75H14.1667ZM20.5417 15.4558L26.9167 9.08083V14.1667H29.75V4.25H19.8333V7.08333H24.9192L18.5442 13.4583L20.5417 15.4558Z",fill:"#5E6278"})}),error:m.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M12 21C7.0293 21 3 16.9707 3 12C3 7.0293 7.0293 3 12 3C16.9707 3 21 7.0293 21 12C21 16.9707 16.9707 21 12 21ZM11.1 14.7V16.5H12.9V14.7H11.1ZM11.1 7.5V12.9H12.9V7.5H11.1Z",fill:"inherit"})}),printer_blue:m.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M12.1333 4.66602H3.86667C2.83574 4.66602 2 5.50175 2 6.53268V10.1327C2 11.1636 2.83574 11.9993 3.86667 11.9993H12.1333C13.1643 11.9993 14 11.1636 14 10.1327V6.53268C14 5.50175 13.1643 4.66602 12.1333 4.66602Z",fill:"#1868DB"}),m.jsx("path",{d:"M6.83366 1.33301H9.17366C9.74714 1.33477 10.2965 1.56382 10.7014 1.96996C11.1063 2.3761 11.3337 2.92619 11.3337 3.49967V4.66634H4.66699V3.49967C4.66699 2.92504 4.89527 2.37394 5.30159 1.96761C5.70792 1.56128 6.25902 1.33301 6.83366 1.33301Z",fill:"#1868DB"}),m.jsx("path",{d:"M5.33301 10H10.6663V12.6133C10.6663 13.1579 10.45 13.6802 10.0649 14.0653C9.67986 14.4503 9.15759 14.6667 8.61301 14.6667H7.38634C6.84176 14.6667 6.31949 14.4503 5.93442 14.0653C5.54934 13.6802 5.33301 13.1579 5.33301 12.6133V10Z",fill:"#1868DB"}),m.jsx("path",{d:"M6.66699 7.83301H4.66699C4.53438 7.83301 4.40721 7.78033 4.31344 7.68656C4.21967 7.59279 4.16699 7.46562 4.16699 7.33301C4.16699 7.2004 4.21967 7.07322 4.31344 6.97945C4.40721 6.88569 4.53438 6.83301 4.66699 6.83301H6.66699C6.7996 6.83301 6.92678 6.88569 7.02055 6.97945C7.11431 7.07322 7.16699 7.2004 7.16699 7.33301C7.16699 7.46562 7.11431 7.59279 7.02055 7.68656C6.92678 7.78033 6.7996 7.83301 6.66699 7.83301Z",fill:"black"}),m.jsx("path",{d:"M11.3337 10.5H4.66699C4.53438 10.5 4.40721 10.4473 4.31344 10.3536C4.21967 10.2598 4.16699 10.1326 4.16699 10C4.16699 9.86739 4.21967 9.74022 4.31344 9.64645C4.40721 9.55268 4.53438 9.5 4.66699 9.5H11.3337C11.4663 9.5 11.5934 9.55268 11.6872 9.64645C11.781 9.74022 11.8337 9.86739 11.8337 10C11.8337 10.1326 11.781 10.2598 11.6872 10.3536C11.5934 10.4473 11.4663 10.5 11.3337 10.5Z",fill:"black"})]})};function ev({showBulkActions:e=!0,meta:t}){const n=J(),{currentPage:r,perview:o}=ne(e=>e.app);return D.useEffect(()=>{t&&r>t?.last_page&&n(wt(1))},[t?.per_page]),m.jsxs("div",{className:Ko("flex items-center justify-between gap-4 flex-wrap",t&&t?.total>0?null:"hidden"),children:[e?m.jsxs("div",{className:"flex items-center gap-2.5 shrink-0",children:[m.jsxs(Fd,{children:[m.jsx(Ld,{asChild:!0,children:m.jsxs("button",{className:"rounded-md h-9 flex items-center justify-between p-3 font-semibold text-xs text-gray-600 outline-none border border-gray-300 gap-2.5 ",children:[o,m.jsx("span",{className:"rotate-90",children:Jy.arrow})]})}),m.jsx(zd,{align:"center",className:"flex flex-col gap-2.5 rounded-xl border-gray-200 py-2.5",children:[7,10,20].map((e,t)=>m.jsx($d,{className:`capitalize focus:bg-primary_light rounded-md focus:text-primary font-semibold text-sm cursor-pointer px-[15px] flex items-center gap-[5px] ${o===e?"bg-primary_light text-primary":"text-gray-700"} `,onClick:()=>n(xt(e)),children:e},t))})]}),m.jsxs("p",{className:"font-normal text-gray-600 text-[15px]",children:["Showing ",t?.from," - ",t?.to," of ",t?.total]})]}):null,m.jsx(Zy,{count:t?.last_page||1,page:t?.current_page??1,shape:"rounded",color:"primary",onChange:(e,t)=>{n(wt(t))}})]})}function tv({props:e={}}){return m.jsxs("div",{className:"flex flex-col gap-3 items-center py-24",children:[m.jsx("p",{className:"font-bold text-sm",children:e.header??"No item attached"}),m.jsx("p",{className:"font-bold text-[13px] text-gray-700",children:e.subText??"Add a new item to start managing your orders."})]})}function nv({columns:e,data:t,tbhRowClass:n,tHeadClass:r,tbCellClass:o,meta:a,showBulkActions:i,showPaginate:s=!0,emptyData:l,emptyProps:u,loading:c,accordionData:d,hasAccordion:f,bodyRowClass:p,tableContainerClass:h,firstCellClass:g,lastCellClass:y,showAccordionDropdown:v=!0,onToggleAccordion:b}){const[w,x]=D.useState(null),S=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=D.useState(()=>({current:Rr(t)})),[r,o]=D.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{o(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}({data:t,columns:e,getCoreRowModel:e=>Ln(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,a){void 0===o&&(o=0);const i=[];for(let l=0;l<t.length;l++){const u=Un(e,e._getRowId(t[l],l,a),t[l],l,o,0,null==a?void 0:a.id);var s;n.flatRows.push(u),n.rowsById[u.id]=u,i.push(u),e.options.getSubRows&&(u.originalSubRows=e.options.getSubRows(t[l],l),null!=(s=u.originalSubRows)&&s.length&&(u.subRows=r(u.originalSubRows,o+1,u)))}return i};return n.rows=r(t),n},zn(e.options,"debugTable",0,()=>e._autoResetPageIndex()))});return m.jsxs("div",{className:"flex flex-col gap-[30px]",children:[m.jsx("div",{className:`shadow-[0_3px_4px_0_#00000008] ${h}`,children:m.jsxs(Qo,{children:[m.jsx(Xo,{children:S.getHeaderGroups().map(e=>m.jsx(Jo,{className:Ko("border-gray-300 bg-gray-100 hover:!bg-gray-100 rounded-xl",n),children:e.headers.map(e=>m.jsx(ea,{className:Ko("text-dark text-sm capitalize font-bold",r),children:e.isPlaceholder?null:Pr(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),m.jsx(Zo,{children:c?Array(5).fill(null).map((e,t)=>m.jsx(M.Fragment,{children:S.getHeaderGroups().map(e=>m.jsx(Jo,{className:Ko("border-gray-300 hover:!bg-gray-100 rounded-xl"),children:e.headers.map(e=>m.jsx(ta,{children:m.jsx(na,{className:"w-full h-6 rounded-lg"})},e.id))},e.id))},t)):S?.getRowModel().rows?.length?S?.getRowModel().rows.map((e,t)=>m.jsx(M.Fragment,{children:m.jsx(Jo,{onClick:()=>((e,t)=>{x(t=>t===e?null:e),b?.(e,t)})(t,e.original),"data-state":e.getIsSelected()&&"selected",className:`border-gray-300 hover:!bg-gray-100 data-[state=selected]:bg-gray-100 ${p} `,children:e.getVisibleCells().map((n,r)=>m.jsx(ta,{className:Ko("text-gray-500 text-sm font-bold",o,0===r&&g,r===e.getVisibleCells().length-1&&y),children:m.jsxs("div",{className:"flex",children:[f&&v&&0===r&&m.jsx("div",{className:"cursor-pointer inline",children:m.jsx("div",{className:"transform transition-transform duration-200 "+(w===t?"-rotate-90":"rotate-90"),children:Jy.arrow})})," ",m.jsx("div",{children:Pr(n.column.columnDef.cell,n.getContext())})]})},n.id))},e.id)},e.id)):m.jsx(Jo,{children:m.jsx(ta,{colSpan:e.length,className:"h-24 text-center hover:bg-gray-100",children:l?m.jsx(tv,{props:u}):"No results found."})})})]})}),s&&m.jsx(ev,{showBulkActions:i,meta:a})]})}function rv(e,t="NGN",n="en-NG"){isNaN(e)&&(e=0);return new Intl.NumberFormat(n,{style:"currency",currency:t,minimumFractionDigits:2,maximumFractionDigits:6}).format(e)}function ov(e=0){if(null==e)return"0";if(isNaN(e))return"0";{const[t,n]=e.toString().split("."),r=t.replace(/\B(?=(\d{3})+(?!\d))/g,",");return n?`${r}.${n}`:r}}var av,iv="HoverCard",[sv]=sa(iv,[Bs]),lv=Bs(),[uv,cv]=sv(iv),dv=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:a,openDelay:i=700,closeDelay:s=300}=e,l=lv(t),u=D.useRef(0),c=D.useRef(0),d=D.useRef(!1),f=D.useRef(!1),[p,h]=da({prop:r,defaultProp:o??!1,onChange:a,caller:iv}),g=D.useCallback(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>h(!0),i)},[i,h]),y=D.useCallback(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>h(!1),s))},[s,h]),v=D.useCallback(()=>h(!1),[h]);return D.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),m.jsx(uv,{scope:t,open:p,onOpenChange:h,onOpen:g,onClose:y,onDismiss:v,hasSelectionRef:d,isPointerDownOnContentRef:f,children:m.jsx(al,{...l,children:n})})};dv.displayName=iv;var fv="HoverCardTrigger",pv=D.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=cv(fv,n),a=lv(n);return m.jsx(il,{asChild:!0,...a,children:m.jsx(ba.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:ra(e.onPointerEnter,bv(o.onOpen)),onPointerLeave:ra(e.onPointerLeave,bv(o.onClose)),onFocus:ra(e.onFocus,o.onOpen),onBlur:ra(e.onBlur,o.onClose),onTouchStart:ra(e.onTouchStart,e=>e.preventDefault())})})});pv.displayName=fv;var[hv,mv]=sv("HoverCardPortal",{forceMount:void 0}),gv="HoverCardContent",yv=D.forwardRef((e,t)=>{const n=mv(gv,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,a=cv(gv,e.__scopeHoverCard);return m.jsx(cl,{present:r||a.open,children:m.jsx(vv,{"data-state":a.open?"open":"closed",...o,onPointerEnter:ra(e.onPointerEnter,bv(a.onOpen)),onPointerLeave:ra(e.onPointerLeave,bv(a.onClose)),ref:t})})});yv.displayName=gv;var vv=D.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,...s}=e,l=cv(gv,n),u=lv(n),c=D.useRef(null),d=ia(t,c),[f,p]=D.useState(!1);return D.useEffect(()=>{if(f){const e=document.body;return av=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=av,e.style.webkitUserSelect=av}}},[f]),D.useEffect(()=>{if(c.current){const e=()=>{p(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{""!==document.getSelection()?.toString()&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),D.useEffect(()=>{if(c.current){const e=function(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}(c.current);e.forEach(e=>e.setAttribute("tabindex","-1"))}}),m.jsx(Ra,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:ra(a,e=>{e.preventDefault()}),onDismiss:l.onDismiss,children:m.jsx(sl,{...u,...s,onPointerDown:ra(s.onPointerDown,e=>{e.currentTarget.contains(e.target)&&p(!0),l.hasSelectionRef.current=!1,l.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 bv(e){return t=>"touch"===t.pointerType?void 0:e()}D.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=lv(n);return m.jsx(ll,{...o,...r,ref:t})}).displayName="HoverCardArrow";var wv=yv;const xv=dv,Sv=pv,Cv=D.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>m.jsx(wv,{ref:o,align:t,sideOffset:n,className:Ko("z-50 w-64 rounded-md border border-neutral-200 bg-white p-4 text-neutral-950 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 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...r}));function kv({children:e,trigger:t,fieldName:n,align:r="start"}){return m.jsxs(xv,{children:[m.jsx(Sv,{className:"cursor-pointer",children:t??Jy.info_input}),m.jsxs(Cv,{align:r,className:"bg-[#0A0D14] text-[#CDD0D5] text-xs font-normal border-none",children:[n?m.jsx("p",{className:"text-sm font-medium text-white first-letter:uppercase",children:n}):null,e]})]})}function _v({status:e}){return m.jsx("span",{className:Ko("font-semibold text-xs rounded p-[7px] capitalize text-center min-w-[70px] bg-gray-300 text-gray-700",["active","approved","published","received","returned","completed","reconciled","credit"].includes(e)?"text-success bg-success-light":null,["inactive","pending","expired","expiring","rejected","voided","cancelled","debit","out of stock"].includes(e)?"text-danger bg-danger_light":null,["pending","paylater","suspended","awaiting_approval"].includes(e)?"text-warning bg-warning-light":null,["draft","in_transit"].includes(e)?"text-black bg-[#E1E3EA]":null,["ongoing"].includes(e)?"text-[#7239EA] bg-[#f5edff]":null),children:e?.replace("_"," ")})}Cv.displayName=wv.displayName,Array(12).fill(0);let Ev=1;const jv=new class{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:Ev++,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=>{o=["resolve",e];if(M.isValidElement(e))a=!1,this.create({id:n,type:"default",message:e});else if(Ov(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&&!M.isValidElement(r)?r:{message: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&&!M.isValidElement(r)?r:{message: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&&!M.isValidElement(r)?r:{message: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&&!M.isValidElement(r)?r:{message: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)||Ev++;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}},Ov=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,Nv=(e,t)=>{const n=(null==t?void 0:t.id)||Ev++;return jv.addToast({title:e,...t,id:n}),n},Rv=Object.assign(Nv,{success:jv.success,info:jv.info,warning:jv.warning,error:jv.error,custom:jv.custom,message:jv.message,promise:jv.promise,dismiss:jv.dismiss,loading:jv.loading},{getHistory:()=>jv.toasts,getToasts:()=>jv.getActiveToasts()});function Pv(e,t){return function(){return e.apply(t,arguments)}}!function(e){if("undefined"==typeof document)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))}("[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{toString:Tv}=Object.prototype,{getPrototypeOf:Dv}=Object,{iterator:Mv,toStringTag:Iv}=Symbol,Av=(Fv=Object.create(null),e=>{const t=Tv.call(e);return Fv[t]||(Fv[t]=t.slice(8,-1).toLowerCase())});var Fv;const Lv=e=>(e=e.toLowerCase(),t=>Av(t)===e),zv=e=>t=>typeof t===e,{isArray:$v}=Array,Hv=zv("undefined");function Vv(e){return null!==e&&!Hv(e)&&null!==e.constructor&&!Hv(e.constructor)&&Wv(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Bv=Lv("ArrayBuffer");const Uv=zv("string"),Wv=zv("function"),Yv=zv("number"),qv=e=>null!==e&&"object"==typeof e,Gv=e=>{if("object"!==Av(e))return!1;const t=Dv(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Iv in e||Mv in e)},Kv=Lv("Date"),Qv=Lv("File"),Xv=Lv("Blob"),Zv=Lv("FileList"),Jv=Lv("URLSearchParams"),[eb,tb,nb,rb]=["ReadableStream","Request","Response","Headers"].map(Lv);function ob(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),$v(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Vv(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function ab(e,t){if(Vv(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const ib="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,sb=e=>!Hv(e)&&e!==ib;const lb=(ub="undefined"!=typeof Uint8Array&&Dv(Uint8Array),e=>ub&&e instanceof ub);var ub;const cb=Lv("HTMLFormElement"),db=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),fb=Lv("RegExp"),pb=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ob(n,(n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)}),Object.defineProperties(e,r)};const hb=Lv("AsyncFunction"),mb=(gb="function"==typeof setImmediate,yb=Wv(ib.postMessage),gb?setImmediate:yb?((e,t)=>(ib.addEventListener("message",({source:n,data:r})=>{n===ib&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),ib.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var gb,yb;const vb="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ib):"undefined"!=typeof process&&process.nextTick||mb;var bb={isArray:$v,isArrayBuffer:Bv,isBuffer:Vv,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Wv(e.append)&&("formdata"===(t=Av(e))||"object"===t&&Wv(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Bv(e.buffer),t},isString:Uv,isNumber:Yv,isBoolean:e=>!0===e||!1===e,isObject:qv,isPlainObject:Gv,isEmptyObject:e=>{if(!qv(e)||Vv(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:eb,isRequest:tb,isResponse:nb,isHeaders:rb,isUndefined:Hv,isDate:Kv,isFile:Qv,isBlob:Xv,isRegExp:fb,isFunction:Wv,isStream:e=>qv(e)&&Wv(e.pipe),isURLSearchParams:Jv,isTypedArray:lb,isFileList:Zv,forEach:ob,merge:function e(){const{caseless:t,skipUndefined:n}=sb(this)&&this||{},r={},o=(o,a)=>{const i=t&&ab(r,a)||a;Gv(r[i])&&Gv(o)?r[i]=e(r[i],o):Gv(o)?r[i]=e({},o):$v(o)?r[i]=o.slice():n&&Hv(o)||(r[i]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&ob(arguments[e],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(ob(t,(t,r)=>{n&&Wv(t)?e[r]=Pv(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,i;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],r&&!r(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&Dv(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Av,kindOfTest:Lv,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if($v(e))return e;let t=e.length;if(!Yv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Mv]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:cb,hasOwnProperty:db,hasOwnProp:db,reduceDescriptors:pb,freezeMethods:e=>{pb(e,(t,n)=>{if(Wv(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Wv(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return $v(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:ab,global:ib,isContextDefined:sb,isSpecCompliantForm:function(e){return!!(e&&Wv(e.append)&&"FormData"===e[Iv]&&e[Mv])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(qv(e)){if(t.indexOf(e)>=0)return;if(Vv(e))return e;if(!("toJSON"in e)){t[r]=e;const o=$v(e)?[]:{};return ob(e,(e,t)=>{const a=n(e,r+1);!Hv(a)&&(o[t]=a)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:hb,isThenable:e=>e&&(qv(e)||Wv(e))&&Wv(e.then)&&Wv(e.catch),setImmediate:mb,asap:vb,isIterable:e=>null!=e&&Wv(e[Mv])};function wb(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}bb.inherits(wb,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:bb.toJSONObject(this.config),code:this.code,status:this.status}}});const xb=wb.prototype,Sb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Sb[e]={value:e}}),Object.defineProperties(wb,Sb),Object.defineProperty(xb,"isAxiosError",{value:!0}),wb.from=(e,t,n,r,o,a)=>{const i=Object.create(xb);bb.toFlatObject(e,i,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const s=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return wb.call(i,s,l,n,r,o),e&&null==i.cause&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",a&&Object.assign(i,a),i};function Cb(e){return bb.isPlainObject(e)||bb.isArray(e)}function kb(e){return bb.endsWith(e,"[]")?e.slice(0,-2):e}function _b(e,t,n){return e?e.concat(t).map(function(e,t){return e=kb(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Eb=bb.toFlatObject(bb,{},null,function(e){return/^is[A-Z]/.test(e)});function jb(e,t,n){if(!bb.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=bb.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!bb.isUndefined(t[e])})).metaTokens,o=n.visitor||u,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&bb.isSpecCompliantForm(t);if(!bb.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(bb.isDate(e))return e.toISOString();if(bb.isBoolean(e))return e.toString();if(!s&&bb.isBlob(e))throw new wb("Blob is not supported. Use a Buffer instead.");return bb.isArrayBuffer(e)||bb.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(bb.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(bb.isArray(e)&&function(e){return bb.isArray(e)&&!e.some(Cb)}(e)||(bb.isFileList(e)||bb.endsWith(n,"[]"))&&(s=bb.toArray(e)))return n=kb(n),s.forEach(function(e,r){!bb.isUndefined(e)&&null!==e&&t.append(!0===i?_b([n],r,a):null===i?n:n+"[]",l(e))}),!1;return!!Cb(e)||(t.append(_b(o,n,a),l(e)),!1)}const c=[],d=Object.assign(Eb,{defaultVisitor:u,convertValue:l,isVisitable:Cb});if(!bb.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!bb.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),bb.forEach(n,function(n,a){!0===(!(bb.isUndefined(n)||null===n)&&o.call(t,n,bb.isString(a)?a.trim():a,r,d))&&e(n,r?r.concat(a):[a])}),c.pop()}}(e),t}function Ob(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Nb(e,t){this._pairs=[],e&&jb(e,this,t)}const Rb=Nb.prototype;function Pb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Tb(e,t,n){if(!t)return e;const r=n&&n.encode||Pb;bb.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(a=o?o(t,n):bb.isURLSearchParams(t)?t.toString():new Nb(t,n).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}Rb.append=function(e,t){this._pairs.push([e,t])},Rb.toString=function(e){const t=e?function(t){return e.call(this,t,Ob)}:Ob;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class Db{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){bb.forEach(this.handlers,function(t){null!==t&&e(t)})}}var Mb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ib={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Nb,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Ab="undefined"!=typeof window&&"undefined"!=typeof document,Fb="object"==typeof navigator&&navigator||void 0,Lb=Ab&&(!Fb||["ReactNative","NativeScript","NS"].indexOf(Fb.product)<0),zb="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,$b=Ab&&window.location.href||"http://localhost";var Hb={...Object.freeze({__proto__:null,hasBrowserEnv:Ab,hasStandardBrowserEnv:Lb,hasStandardBrowserWebWorkerEnv:zb,navigator:Fb,origin:$b}),...Ib};function Vb(e){function t(e,n,r,o){let a=e[o++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=o>=e.length;if(a=!a&&bb.isArray(r)?r.length:a,s)return bb.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i;r[a]&&bb.isObject(r[a])||(r[a]=[]);return t(e,n,r[a],o)&&bb.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}(r[a])),!i}if(bb.isFormData(e)&&bb.isFunction(e.entries)){const n={};return bb.forEachEntry(e,(e,r)=>{t(function(e){return bb.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const Bb={transitional:Mb,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=bb.isObject(e);o&&bb.isHTMLForm(e)&&(e=new FormData(e));if(bb.isFormData(e))return r?JSON.stringify(Vb(e)):e;if(bb.isArrayBuffer(e)||bb.isBuffer(e)||bb.isStream(e)||bb.isFile(e)||bb.isBlob(e)||bb.isReadableStream(e))return e;if(bb.isArrayBufferView(e))return e.buffer;if(bb.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return jb(e,new Hb.classes.URLSearchParams,{visitor:function(e,t,n,r){return Hb.isNode&&bb.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=bb.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return jb(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(bb.isString(e))try{return(t||JSON.parse)(e),bb.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Bb.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(bb.isResponse(e)||bb.isReadableStream(e))return e;if(e&&bb.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw wb.from(e,wb.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Hb.classes.FormData,Blob:Hb.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};bb.forEach(["delete","get","head","post","put","patch"],e=>{Bb.headers[e]={}});const Ub=bb.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Wb=Symbol("internals");function Yb(e){return e&&String(e).trim().toLowerCase()}function qb(e){return!1===e||null==e?e:bb.isArray(e)?e.map(qb):String(e)}function Gb(e,t,n,r,o){return bb.isFunction(r)?r.call(this,t,n):(o&&(t=n),bb.isString(t)?bb.isString(r)?-1!==t.indexOf(r):bb.isRegExp(r)?r.test(t):void 0:void 0)}let Kb=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Yb(t);if(!o)throw new Error("header name must be a non-empty string");const a=bb.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=qb(e))}const a=(e,t)=>bb.forEach(e,(e,n)=>o(e,n,t));if(bb.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(bb.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Ub[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(bb.isObject(e)&&bb.isIterable(e)){let n,r,o={};for(const t of e){if(!bb.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?bb.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Yb(e)){const n=bb.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(bb.isFunction(t))return t.call(this,e,n);if(bb.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Yb(e)){const n=bb.findKey(this,e);return!(!n||void 0===this[n]||t&&!Gb(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Yb(e)){const o=bb.findKey(n,e);!o||t&&!Gb(0,n[o],o,t)||(delete n[o],r=!0)}}return bb.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Gb(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return bb.forEach(this,(r,o)=>{const a=bb.findKey(n,o);if(a)return t[a]=qb(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=qb(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return bb.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&bb.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Wb]=this[Wb]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Yb(e);t[r]||(!function(e,t){const n=bb.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return bb.isArray(e)?e.forEach(r):r(e),this}};function Qb(e,t){const n=this||Bb,r=t||n,o=Kb.from(r.headers);let a=r.data;return bb.forEach(e,function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Xb(e){return!(!e||!e.__CANCEL__)}function Zb(e,t,n){wb.call(this,null==e?"canceled":e,wb.ERR_CANCELED,t,n),this.name="CanceledError"}function Jb(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new wb("Request failed with status code "+n.status,[wb.ERR_BAD_REQUEST,wb.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Kb.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),bb.reduceDescriptors(Kb.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),bb.freezeMethods(Kb),bb.inherits(Zb,wb,{__CANCEL__:!0});const ew=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=r[i];o||(o=l),n[a]=s,r[a]=l;let c=i,d=0;for(;c!==a;)d+=n[c++],c%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),l-o<t)return;const f=u&&l-u;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,a=1e3/t;const i=(t,a=Date.now())=>{o=a,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=a?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},a-s)))},()=>n&&i(n)]}(n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=a-r,l=o(s);r=a;e({loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&a<=i?(i-a)/l:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},tw=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},nw=e=>(...t)=>bb.asap(()=>e(...t));var rw=Hb.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Hb.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Hb.origin),Hb.navigator&&/(msie|trident)/i.test(Hb.navigator.userAgent)):()=>!0,ow=Hb.hasStandardBrowserEnv?{write(e,t,n,r,o,a,i){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];bb.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),bb.isString(r)&&s.push(`path=${r}`),bb.isString(o)&&s.push(`domain=${o}`),!0===a&&s.push("secure"),bb.isString(i)&&s.push(`SameSite=${i}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function aw(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const iw=e=>e instanceof Kb?{...e}:e;function sw(e,t){t=t||{};const n={};function r(e,t,n,r){return bb.isPlainObject(e)&&bb.isPlainObject(t)?bb.merge.call({caseless:r},e,t):bb.isPlainObject(t)?bb.merge({},t):bb.isArray(t)?t.slice():t}function o(e,t,n,o){return bb.isUndefined(t)?bb.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function a(e,t){if(!bb.isUndefined(t))return r(void 0,t)}function i(e,t){return bb.isUndefined(t)?bb.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>o(iw(e),iw(t),0,!0)};return bb.forEach(Object.keys({...e,...t}),function(r){const a=l[r]||o,i=a(e[r],t[r],r);bb.isUndefined(i)&&a!==s||(n[r]=i)}),n}var lw=e=>{const t=sw({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:s}=t;if(t.headers=i=Kb.from(i),t.url=Tb(aw(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),bb.isFormData(n))if(Hb.hasStandardBrowserEnv||Hb.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(bb.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)})}if(Hb.hasStandardBrowserEnv&&(r&&bb.isFunction(r)&&(r=r(t)),r||!1!==r&&rw(t.url))){const e=o&&a&&ow.read(a);e&&i.set(o,e)}return t};var uw="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=lw(e);let o=r.data;const a=Kb.from(r.headers).normalize();let i,s,l,u,c,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Kb.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Jb(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new wb("Request aborted",wb.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=new wb(t&&t.message?t.message:"Network Error",wb.ERR_NETWORK,e,m);r.event=t||null,n(r),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Mb;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new wb(t,o.clarifyTimeoutError?wb.ETIMEDOUT:wb.ECONNABORTED,e,m)),m=null},void 0===o&&a.setContentType(null),"setRequestHeader"in m&&bb.forEach(a.toJSON(),function(e,t){m.setRequestHeader(t,e)}),bb.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,c]=ew(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,u]=ew(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new Zb(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===Hb.protocols.indexOf(y)?n(new wb("Unsupported protocol "+y+":",wb.ERR_BAD_REQUEST,e)):m.send(o||null)})};const cw=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof wb?t:new Zb(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,o(new wb(`timeout ${t} of ms exceeded`,wb.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>bb.asap(i),s}},dw=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},fw=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},pw=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of fw(e))yield*dw(n,t)}(e,t);let a,i=0,s=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let a=r.byteLength;if(n){let e=i+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:hw}=bb,mw=(({Request:e,Response:t})=>({Request:e,Response:t}))(bb.global),{ReadableStream:gw,TextEncoder:yw}=bb.global,vw=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},bw=e=>{e=bb.merge.call({skipUndefined:!0},mw,e);const{fetch:t,Request:n,Response:r}=e,o=t?hw(t):"function"==typeof fetch,a=hw(n),i=hw(r);if(!o)return!1;const s=o&&hw(gw),l=o&&("function"==typeof yw?(u=new yw,e=>u.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var u;const c=a&&s&&vw(()=>{let e=!1;const t=new n(Hb.origin,{body:new gw,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=i&&s&&vw(()=>bb.isReadableStream(new r("").body)),f={stream:d&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!f[e]&&(f[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new wb(`Response type '${e}' is not supported`,wb.ERR_NOT_SUPPORT,n)})});const p=async(e,t)=>{const r=bb.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(bb.isBlob(e))return e.size;if(bb.isSpecCompliantForm(e)){const t=new n(Hb.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return bb.isArrayBufferView(e)||bb.isArrayBuffer(e)?e.byteLength:(bb.isURLSearchParams(e)&&(e+=""),bb.isString(e)?(await l(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:i,data:s,signal:l,cancelToken:u,timeout:h,onDownloadProgress:m,onUploadProgress:g,responseType:y,headers:v,withCredentials:b="same-origin",fetchOptions:w}=lw(e),x=t||fetch;y=y?(y+"").toLowerCase():"text";let S=cw([l,u&&u.toAbortSignal()],h),C=null;const k=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let _;try{if(g&&c&&"get"!==i&&"head"!==i&&0!==(_=await p(v,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(bb.isFormData(s)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=tw(_,ew(nw(g)));s=pw(t.body,65536,e,n)}}bb.isString(b)||(b=b?"include":"omit");const t=a&&"credentials"in n.prototype,l={...w,signal:S,method:i.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:"half",credentials:t?b:void 0};C=a&&new n(o,l);let u=await(a?x(C,w):x(o,l));const h=d&&("stream"===y||"response"===y);if(d&&(m||h&&k)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=u[t]});const t=bb.toFiniteNumber(u.headers.get("content-length")),[n,o]=m&&tw(t,ew(nw(m),!0))||[];u=new r(pw(u.body,65536,n,()=>{o&&o(),k&&k()}),e)}y=y||"text";let E=await f[bb.findKey(f,y)||"text"](u,e);return!h&&k&&k(),await new Promise((t,n)=>{Jb(t,n,{data:E,headers:Kb.from(u.headers),status:u.status,statusText:u.statusText,config:e,request:C})})}catch(t){if(k&&k(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new wb("Network Error",wb.ERR_NETWORK,e,C),{cause:t.cause||t});throw wb.from(t,t&&t.code,e,C)}}},ww=new Map,xw=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let i,s,l=a.length,u=ww;for(;l--;)i=a[l],s=u.get(i),void 0===s&&u.set(i,s=l?new Map:bw(t)),u=s;return s};xw();const Sw={http:null,xhr:uw,fetch:{get:xw}};bb.forEach(Sw,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Cw=e=>`- ${e}`,kw=e=>bb.isFunction(e)||null===e||!1===e;var _w={getAdapter:function(e,t){e=bb.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let i=0;i<n;i++){let n;if(r=e[i],o=r,!kw(r)&&(o=Sw[(n=String(r)).toLowerCase()],void 0===o))throw new wb(`Unknown adapter '${n}'`);if(o&&(bb.isFunction(o)||(o=o.get(t))))break;a[n||"#"+i]=o}if(!o){const e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new wb("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(Cw).join("\n"):" "+Cw(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:Sw};function Ew(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Zb(null,e)}function jw(e){Ew(e),e.headers=Kb.from(e.headers),e.data=Qb.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return _w.getAdapter(e.adapter||Bb.adapter,e)(e).then(function(t){return Ew(e),t.data=Qb.call(e,e.transformResponse,t),t.headers=Kb.from(t.headers),t},function(t){return Xb(t)||(Ew(e),t&&t.response&&(t.response.data=Qb.call(e,e.transformResponse,t.response),t.response.headers=Kb.from(t.response.headers))),Promise.reject(t)})}const Ow="1.13.2",Nw={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Nw[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Rw={};Nw.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Ow+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>{if(!1===e)throw new wb(r(o," has been removed"+(t?" in "+t:"")),wb.ERR_DEPRECATED);return t&&!Rw[o]&&(Rw[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}},Nw.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var Pw={assertOptions:function(e,t,n){if("object"!=typeof e)throw new wb("options must be an object",wb.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new wb("option "+a+" must be "+n,wb.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new wb("Unknown option "+a,wb.ERR_BAD_OPTION)}},validators:Nw};const Tw=Pw.validators;let Dw=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Db,response:new Db}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=sw(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Pw.assertOptions(n,{silentJSONParsing:Tw.transitional(Tw.boolean),forcedJSONParsing:Tw.transitional(Tw.boolean),clarifyTimeoutError:Tw.transitional(Tw.boolean)},!1),null!=r&&(bb.isFunction(r)?t.paramsSerializer={serialize:r}:Pw.assertOptions(r,{encode:Tw.function,serialize:Tw.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Pw.assertOptions(t,{baseUrl:Tw.spelling("baseURL"),withXsrfToken:Tw.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&bb.merge(o.common,o[t.method]);o&&bb.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Kb.concat(a,o);const i=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,d=0;if(!s){const e=[jw.bind(this),void 0];for(e.unshift(...i),e.push(...l),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=i.length;let f=t;for(;d<c;){const e=i[d++],t=i[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{u=jw.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,c=l.length;d<c;)u=u.then(l[d++],l[d++]);return u}getUri(e){return Tb(aw((e=sw(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};bb.forEach(["delete","get","head","options"],function(e){Dw.prototype[e]=function(t,n){return this.request(sw(n||{},{method:e,url:t,data:(n||{}).data}))}}),bb.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(sw(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Dw.prototype[e]=t(),Dw.prototype[e+"Form"]=t(!0)});const Mw={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Mw).forEach(([e,t])=>{Mw[t]=e});const Iw=function e(t){const n=new Dw(t),r=Pv(Dw.prototype.request,n);return bb.extend(r,Dw.prototype,n,{allOwnKeys:!0}),bb.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(sw(t,n))},r}(Bb);Iw.Axios=Dw,Iw.CanceledError=Zb,Iw.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Zb(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;const n=new e(function(e){t=e});return{token:n,cancel:t}}},Iw.isCancel=Xb,Iw.VERSION=Ow,Iw.toFormData=jb,Iw.AxiosError=wb,Iw.Cancel=Iw.CanceledError,Iw.all=function(e){return Promise.all(e)},Iw.spread=function(e){return function(t){return e.apply(null,t)}},Iw.isAxiosError=function(e){return bb.isObject(e)&&!0===e.isAxiosError},Iw.mergeConfig=sw,Iw.AxiosHeaders=Kb,Iw.formToJSON=e=>Vb(bb.isHTMLForm(e)?new FormData(e):e),Iw.getAdapter=_w.getAdapter,Iw.HttpStatusCode=Mw,Iw.default=Iw;const{Axios:Aw,AxiosError:Fw,CanceledError:Lw,isCancel:zw,CancelToken:$w,VERSION:Hw,all:Vw,Cancel:Bw,isAxiosError:Uw,spread:Ww,toFormData:Yw,AxiosHeaders:qw,HttpStatusCode:Gw,formToJSON:Kw,getAdapter:Qw,mergeConfig:Xw}=Iw,Zw=e=>{e||console.warn("⚠️ No API key provided to createApiClient");const t=Iw.create({baseURL:"https://biz.api.simpoocodes.com/api/v1/outbound",headers:{"Content-Type":"application/json","SIMPOO-API-KEY":e}});return t.interceptors.request.use(t=>(e&&t.headers&&(t.headers["SIMPOO-API-KEY"]=e),t),e=>Promise.reject(e)),t.interceptors.response.use(e=>e,e=>(e.response?console.error("API Error:",e.response.status,e.response.data):console.error("Network or Axios Error:",e.message),Promise.reject(e))),t},Jw=(e,t,n={})=>{const{apiKey:r}=Dn(),o=Zw(r||"");return function(e){return Pn(e,dn)}({queryKey:e,queryFn:()=>(async e=>{try{const{data:t}=await o.get(e);return t}catch(e){tx(e)}})(t),...n})},ex=(e={enableToast:!0},t,n)=>{const{enableToast:r,...o}=e,{apiKey:a}=Dn(),i=Zw(a||"");return function(e){const t=En(),[n]=D.useState(()=>new Sn(t,e));D.useEffect(()=>{n.setOptions(e)},[n,e]);const r=D.useSyncExternalStore(D.useCallback(e=>n.subscribe(Jt.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=D.useCallback((e,t)=>{n.mutate(e,t).catch(Ot)},[n]);if(r.error&&Kt(n.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:o,mutateAsync:r.mutate}}({mutationFn:async({url:e,payload:t})=>{const{data:n}=await i.post(e,t);return n},onSuccess(e,t,n){r&&Rv.success(e.message)},onError(e,t,n){console.log(e),tx(e)},...o})},tx=e=>{e?.response?(console.log("response data:",e.response.data),console.log("Status Code:",e.response.status),console.log("Status Text:",e.response.statusText),500===e.response.status?Rv.error("Something went wrong",{position:"top-right"}):e.response.data&&e.response.data.message&&Rv.error(`${e.response?.data?.message}`,{position:"top-right"})):(e.request,console.log(e?.message),Rv.error(`${e?.message}`,{position:"top-right"}))};function nx(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var rx,ox={exports:{}};var ax=(rx||(rx=1,function(e){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}function o(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[],o=e.length;for(n=0;n<o;++n)r.push(t(e[n],n));return r}function p(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return Gn(e,t,n,r,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=m()),e._pf}function y(e){var t=null,r=!1,o=e._d&&!isNaN(e._d.getTime());return o&&(t=g(e),r=n.call(t.parsedDateParts,function(e){return null!=e}),o=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?o:(e._isValid=o,e._isValid)}function v(e){var t=h(NaN);return null!=e?p(g(t),e):g(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=r.momentProperties=[],w=!1;function x(e,t){var n,r,o,a=b.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=g(t)),u(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)u(o=t[r=b[n]])||(e[r]=o);return e}function S(e){x(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,r.updateOffset(this),w=!1)}function C(e){return e instanceof S||null!=e&&null!=e._isAMomentObject}function k(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function _(e,t){var n=!0;return p(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var o,a,i,l=[],u=arguments.length;for(a=0;a<u;a++){if(o="","object"==typeof arguments[a]){for(i in o+="\n["+a+"] ",arguments[0])s(arguments[0],i)&&(o+=i+": "+arguments[0][i]+", ");o=o.slice(0,-2)}else o=arguments[a];l.push(o)}k(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var E,j={};function O(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),j[e]||(k(t),j[e]=!0)}function N(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function R(e){var t,n;for(n in e)s(e,n)&&(N(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function P(e,t){var n,r=p({},e);for(n in t)s(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&i(e[n])&&(r[n]=p({},r[n]));return r}function T(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var D={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function M(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return N(r)?r.call(t,n):r}function I(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var A=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L={},z={};function $(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(z[e]=o),t&&(z[t[0]]=function(){return I(o.apply(this,arguments),t[1],t[2])}),n&&(z[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function H(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function V(e){var t,n,r=e.match(A);for(t=0,n=r.length;t<n;t++)z[r[t]]?r[t]=z[r[t]]:r[t]=H(r[t]);return function(t){var o,a="";for(o=0;o<n;o++)a+=N(r[o])?r[o].call(t,e):r[o];return a}}function B(e,t){return e.isValid()?(t=U(t,e.localeData()),L[t]=L[t]||V(t),L[t](e)):e.localeData().invalidDate()}function U(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(F.lastIndex=0;n>=0&&F.test(e);)e=e.replace(F,r),F.lastIndex=0,n-=1;return e}var W={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Y(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(A).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])}var q="Invalid date";function G(){return this._invalidDate}var K="%d",Q=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var Z={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function J(e,t,n,r){var o=this._relativeTime[n];return N(o)?o(e,t,n,r):o.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return N(n)?n(t):n.replace(/%s/i,t)}var te={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ne(e){return"string"==typeof e?te[e]||te[e.toLowerCase()]:void 0}function re(e){var t,n,r={};for(n in e)s(e,n)&&(t=ne(n))&&(r[t]=e[n]);return r}var oe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ae(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}var ie,se=/\d/,le=/\d\d/,ue=/\d{3}/,ce=/\d{4}/,de=/[+-]?\d{6}/,fe=/\d\d?/,pe=/\d\d\d\d?/,he=/\d\d\d\d\d\d?/,me=/\d{1,3}/,ge=/\d{1,4}/,ye=/[+-]?\d{1,6}/,ve=/\d+/,be=/[+-]?\d+/,we=/Z|[+-]\d\d:?\d\d/gi,xe=/Z|[+-]\d\d(?::?\d\d)?/gi,Se=/[+-]?\d+(\.\d{1,3})?/,Ce=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ke=/^[1-9]\d?/,_e=/^([1-9]\d|\d)/;function Ee(e,t,n){ie[e]=N(t)?t:function(e,r){return e&&n?n:t}}function je(e,t){return s(ie,e)?ie[e](t._strict,t._locale):new RegExp(Oe(e))}function Oe(e){return Ne(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o}))}function Ne(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Re(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Pe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Re(t)),n}ie={};var Te={};function De(e,t){var n,r,o=t;for("string"==typeof e&&(e=[e]),c(t)&&(o=function(e,n){n[t]=Pe(e)}),r=e.length,n=0;n<r;n++)Te[e[n]]=o}function Me(e,t){De(e,function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)})}function Ie(e,t,n){null!=t&&s(Te,e)&&Te[e](t,n._a,n,e)}function Ae(e){return e%4==0&&e%100!=0||e%400==0}var Fe=0,Le=1,ze=2,$e=3,He=4,Ve=5,Be=6,Ue=7,We=8;function Ye(e){return Ae(e)?366:365}$("Y",0,0,function(){var e=this.year();return e<=9999?I(e,4):"+"+e}),$(0,["YY",2],0,function(){return this.year()%100}),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),Ee("Y",be),Ee("YY",fe,le),Ee("YYYY",ge,ce),Ee("YYYYY",ye,de),Ee("YYYYYY",ye,de),De(["YYYYY","YYYYYY"],Fe),De("YYYY",function(e,t){t[Fe]=2===e.length?r.parseTwoDigitYear(e):Pe(e)}),De("YY",function(e,t){t[Fe]=r.parseTwoDigitYear(e)}),De("Y",function(e,t){t[Fe]=parseInt(e,10)}),r.parseTwoDigitYear=function(e){return Pe(e)+(Pe(e)>68?1900:2e3)};var qe,Ge=Qe("FullYear",!0);function Ke(){return Ae(this.year())}function Qe(e,t){return function(n){return null!=n?(Ze(this,e,n),r.updateOffset(this,t),this):Xe(this,e)}}function Xe(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ze(e,t,n){var r,o,a,i,s;if(e.isValid()&&!isNaN(n)){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,i=e.month(),s=29!==(s=e.date())||1!==i||Ae(a)?s:28,o?r.setUTCFullYear(a,i,s):r.setFullYear(a,i,s)}}function Je(e){return N(this[e=ne(e)])?this[e]():this}function et(e,t){if("object"==typeof e){var n,r=ae(e=re(e)),o=r.length;for(n=0;n<o;n++)this[r[n].unit](e[r[n].unit])}else if(N(this[e=ne(e)]))return this[e](t);return this}function tt(e,t){return(e%t+t)%t}function nt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=tt(t,12);return e+=(t-n)/12,1===n?Ae(e)?29:28:31-n%7%2}qe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},$("M",["MM",2],"Mo",function(){return this.month()+1}),$("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),$("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Ee("M",fe,ke),Ee("MM",fe,le),Ee("MMM",function(e,t){return t.monthsShortRegex(e)}),Ee("MMMM",function(e,t){return t.monthsRegex(e)}),De(["M","MM"],function(e,t){t[Le]=Pe(e)-1}),De(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[Le]=o:g(n).invalidMonth=e});var rt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ot="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),at=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,it=Ce,st=Ce;function lt(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||at).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function ut(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[at.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ct(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=qe.call(this._shortMonthsParse,i))?o:null:-1!==(o=qe.call(this._longMonthsParse,i))?o:null:"MMM"===t?-1!==(o=qe.call(this._shortMonthsParse,i))||-1!==(o=qe.call(this._longMonthsParse,i))?o:null:-1!==(o=qe.call(this._longMonthsParse,i))||-1!==(o=qe.call(this._shortMonthsParse,i))?o:null}function dt(e,t,n){var r,o,a;if(this._monthsParseExact)return ct.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ft(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Pe(t);else if(!c(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,nt(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function pt(e){return null!=e?(ft(this,e),r.updateOffset(this,!0),this):Xe(this,"Month")}function ht(){return nt(this.year(),this.month())}function mt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||yt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=it),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function gt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||yt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=st),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function yt(){function e(e,t){return t.length-e.length}var t,n,r,o,a=[],i=[],s=[];for(t=0;t<12;t++)n=h([2e3,t]),r=Ne(this.monthsShort(n,"")),o=Ne(this.months(n,"")),a.push(r),i.push(o),s.push(o),s.push(r);a.sort(e),i.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function vt(e,t,n,r,o,a,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,a,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,a,i),s}function bt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,n){var r=7+t-n;return-(7+bt(e,0,r).getUTCDay()-t)%7+r-1}function xt(e,t,n,r,o){var a,i,s=1+7*(t-1)+(7+n-r)%7+wt(e,r,o);return s<=0?i=Ye(a=e-1)+s:s>Ye(e)?(a=e+1,i=s-Ye(e)):(a=e,i=s),{year:a,dayOfYear:i}}function St(e,t,n){var r,o,a=wt(e.year(),t,n),i=Math.floor((e.dayOfYear()-a-1)/7)+1;return i<1?r=i+Ct(o=e.year()-1,t,n):i>Ct(e.year(),t,n)?(r=i-Ct(e.year(),t,n),o=e.year()+1):(o=e.year(),r=i),{week:r,year:o}}function Ct(e,t,n){var r=wt(e,t,n),o=wt(e+1,t,n);return(Ye(e)-r+o)/7}function kt(e){return St(e,this._week.dow,this._week.doy).week}$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),Ee("w",fe,ke),Ee("ww",fe,le),Ee("W",fe,ke),Ee("WW",fe,le),Me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Pe(e)});var _t={dow:0,doy:6};function Et(){return this._week.dow}function jt(){return this._week.doy}function Ot(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Nt(e){var t=St(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Rt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Pt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Tt(e,t){return e.slice(t,7).concat(e.slice(0,t))}$("d",0,"do","day"),$("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),$("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),$("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),Ee("d",fe),Ee("e",fe),Ee("E",fe),Ee("dd",function(e,t){return t.weekdaysMinRegex(e)}),Ee("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Ee("dddd",function(e,t){return t.weekdaysRegex(e)}),Me(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:g(n).invalidWeekday=e}),Me(["d","e","E"],function(e,t,n,r){t[r]=Pe(e)});var Dt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Mt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),It="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),At=Ce,Ft=Ce,Lt=Ce;function zt(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Tt(n,this._week.dow):e?n[e.day()]:n}function $t(e){return!0===e?Tt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ht(e){return!0===e?Tt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Vt(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=qe.call(this._weekdaysParse,i))?o:null:"ddd"===t?-1!==(o=qe.call(this._shortWeekdaysParse,i))?o:null:-1!==(o=qe.call(this._minWeekdaysParse,i))?o:null:"dddd"===t?-1!==(o=qe.call(this._weekdaysParse,i))||-1!==(o=qe.call(this._shortWeekdaysParse,i))||-1!==(o=qe.call(this._minWeekdaysParse,i))?o:null:"ddd"===t?-1!==(o=qe.call(this._shortWeekdaysParse,i))||-1!==(o=qe.call(this._weekdaysParse,i))||-1!==(o=qe.call(this._minWeekdaysParse,i))?o:null:-1!==(o=qe.call(this._minWeekdaysParse,i))||-1!==(o=qe.call(this._weekdaysParse,i))||-1!==(o=qe.call(this._shortWeekdaysParse,i))?o:null}function Bt(e,t,n){var r,o,a;if(this._weekdaysParseExact)return Vt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ut(e){if(!this.isValid())return null!=e?this:NaN;var t=Xe(this,"Day");return null!=e?(e=Rt(e,this.localeData()),this.add(e-t,"d")):t}function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Yt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Pt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function qt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=At),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Gt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ft),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Qt(){function e(e,t){return t.length-e.length}var t,n,r,o,a,i=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=Ne(this.weekdaysMin(n,"")),o=Ne(this.weekdaysShort(n,"")),a=Ne(this.weekdays(n,"")),i.push(r),s.push(o),l.push(a),u.push(r),u.push(o),u.push(a);i.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Zt(){return this.hours()||24}function Jt(e,t){$(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}$("H",["HH",2],0,"hour"),$("h",["hh",2],0,Xt),$("k",["kk",2],0,Zt),$("hmm",0,0,function(){return""+Xt.apply(this)+I(this.minutes(),2)}),$("hmmss",0,0,function(){return""+Xt.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)}),$("Hmm",0,0,function(){return""+this.hours()+I(this.minutes(),2)}),$("Hmmss",0,0,function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)}),Jt("a",!0),Jt("A",!1),Ee("a",en),Ee("A",en),Ee("H",fe,_e),Ee("h",fe,ke),Ee("k",fe,ke),Ee("HH",fe,le),Ee("hh",fe,le),Ee("kk",fe,le),Ee("hmm",pe),Ee("hmmss",he),Ee("Hmm",pe),Ee("Hmmss",he),De(["H","HH"],$e),De(["k","kk"],function(e,t,n){var r=Pe(e);t[$e]=24===r?0:r}),De(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),De(["h","hh"],function(e,t,n){t[$e]=Pe(e),g(n).bigHour=!0}),De("hmm",function(e,t,n){var r=e.length-2;t[$e]=Pe(e.substr(0,r)),t[He]=Pe(e.substr(r)),g(n).bigHour=!0}),De("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[$e]=Pe(e.substr(0,r)),t[He]=Pe(e.substr(r,2)),t[Ve]=Pe(e.substr(o)),g(n).bigHour=!0}),De("Hmm",function(e,t,n){var r=e.length-2;t[$e]=Pe(e.substr(0,r)),t[He]=Pe(e.substr(r))}),De("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[$e]=Pe(e.substr(0,r)),t[He]=Pe(e.substr(r,2)),t[Ve]=Pe(e.substr(o))});var nn=/[ap]\.?m?\.?/i,rn=Qe("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,sn={calendar:D,longDateFormat:W,invalidDate:q,ordinal:K,dayOfMonthOrdinalParse:Q,relativeTime:Z,months:rt,monthsShort:ot,week:_t,weekdays:Dt,weekdaysMin:It,weekdaysShort:Mt,meridiemParse:nn},ln={},un={};function cn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function dn(e){return e?e.toLowerCase().replace("_","-"):e}function fn(e){for(var t,n,r,o,a=0;a<e.length;){for(t=(o=dn(e[a]).split("-")).length,n=(n=dn(e[a+1]))?n.split("-"):null;t>0;){if(r=hn(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&cn(o,n)>=t-1)break;t--}a++}return an}function pn(e){return!(!e||!e.match("^[^/\\\\]*$"))}function hn(t){var n=null;if(void 0===ln[t]&&e&&e.exports&&pn(t))try{n=an._abbr,nx("./locale/"+t),mn(n)}catch(e){ln[t]=null}return ln[t]}function mn(e,t){var n;return e&&((n=u(t)?vn(e):gn(e,t))?an=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function gn(e,t){if(null!==t){var n,r=sn;if(t.abbr=e,null!=ln[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])r=ln[t.parentLocale]._config;else{if(null==(n=hn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ln[e]=new T(P(r,t)),un[e]&&un[e].forEach(function(e){gn(e.name,e.config)}),mn(e),ln[e]}return delete ln[e],null}function yn(e,t){if(null!=t){var n,r,o=sn;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(P(ln[e]._config,t)):(null!=(r=hn(e))&&(o=r._config),t=P(o,t),null==r&&(t.abbr=e),(n=new T(t)).parentLocale=ln[e],ln[e]=n),mn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===mn()&&mn(e)):null!=ln[e]&&delete ln[e]);return ln[e]}function vn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!a(e)){if(t=hn(e))return t;e=[e]}return fn(e)}function bn(){return E(ln)}function wn(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[Le]<0||n[Le]>11?Le:n[ze]<1||n[ze]>nt(n[Fe],n[Le])?ze:n[$e]<0||n[$e]>24||24===n[$e]&&(0!==n[He]||0!==n[Ve]||0!==n[Be])?$e:n[He]<0||n[He]>59?He:n[Ve]<0||n[Ve]>59?Ve:n[Be]<0||n[Be]>999?Be:-1,g(e)._overflowDayOfYear&&(t<Fe||t>ze)&&(t=ze),g(e)._overflowWeeks&&-1===t&&(t=Ue),g(e)._overflowWeekday&&-1===t&&(t=We),g(e).overflow=t),e}var xn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Cn=/Z|[+-]\d\d(?::?\d\d)?/,kn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_n=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],En=/^\/?Date\((-?\d+)/i,jn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,On={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Nn(e){var t,n,r,o,a,i,s=e._i,l=xn.exec(s)||Sn.exec(s),u=kn.length,c=_n.length;if(l){for(g(e).iso=!0,t=0,n=u;t<n;t++)if(kn[t][1].exec(l[1])){o=kn[t][0],r=!1!==kn[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,n=c;t<n;t++)if(_n[t][1].exec(l[3])){a=(l[2]||" ")+_n[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(l[4]){if(!Cn.exec(l[4]))return void(e._isValid=!1);i="Z"}e._f=o+(a||"")+(i||""),Hn(e)}else e._isValid=!1}function Rn(e,t,n,r,o,a){var i=[Pn(e),ot.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return a&&i.push(parseInt(a,10)),i}function Pn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Tn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Dn(e,t,n){return!e||Mt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Mn(e,t,n){if(e)return On[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}function In(e){var t,n=jn.exec(Tn(e._i));if(n){if(t=Rn(n[4],n[3],n[2],n[5],n[6],n[7]),!Dn(n[1],t,e))return;e._a=t,e._tzm=Mn(n[8],n[9],n[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function An(e){var t=En.exec(e._i);null===t?(Nn(e),!1===e._isValid&&(delete e._isValid,In(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Fn(e,t,n){return null!=e?e:null!=t?t:n}function Ln(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function zn(e){var t,n,r,o,a,i=[];if(!e._d){for(r=Ln(e),e._w&&null==e._a[ze]&&null==e._a[Le]&&$n(e),null!=e._dayOfYear&&(a=Fn(e._a[Fe],r[Fe]),(e._dayOfYear>Ye(a)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=bt(a,0,e._dayOfYear),e._a[Le]=n.getUTCMonth(),e._a[ze]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=r[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[$e]&&0===e._a[He]&&0===e._a[Ve]&&0===e._a[Be]&&(e._nextDay=!0,e._a[$e]=0),e._d=(e._useUTC?bt:vt).apply(null,i),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[$e]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(g(e).weekdayMismatch=!0)}}function $n(e){var t,n,r,o,a,i,s,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,i=4,n=Fn(t.GG,e._a[Fe],St(Kn(),1,4).year),r=Fn(t.W,1),((o=Fn(t.E,1))<1||o>7)&&(l=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,u=St(Kn(),a,i),n=Fn(t.gg,e._a[Fe],u.year),r=Fn(t.w,u.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+a,(t.e<0||t.e>6)&&(l=!0)):o=a),r<1||r>Ct(n,a,i)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(s=xt(n,r,o,a,i),e._a[Fe]=s.year,e._dayOfYear=s.dayOfYear)}function Hn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],g(e).empty=!0;var t,n,o,a,i,s,l,u=""+e._i,c=u.length,d=0;for(l=(o=U(e._f,e._locale).match(A)||[]).length,t=0;t<l;t++)a=o[t],(n=(u.match(je(a,e))||[])[0])&&((i=u.substr(0,u.indexOf(n))).length>0&&g(e).unusedInput.push(i),u=u.slice(u.indexOf(n)+n.length),d+=n.length),z[a]?(n?g(e).empty=!1:g(e).unusedTokens.push(a),Ie(a,n,e)):e._strict&&!n&&g(e).unusedTokens.push(a);g(e).charsLeftOver=c-d,u.length>0&&g(e).unusedInput.push(u),e._a[$e]<=12&&!0===g(e).bigHour&&e._a[$e]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[$e]=Vn(e._locale,e._a[$e],e._meridiem),null!==(s=g(e).era)&&(e._a[Fe]=e._locale.erasConvertYear(s,e._a[Fe])),zn(e),wn(e)}else In(e);else Nn(e)}function Vn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Bn(e){var t,n,r,o,a,i,s=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<l;o++)a=0,i=!1,t=x({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Hn(t),y(t)&&(i=!0),a+=g(t).charsLeftOver,a+=10*g(t).unusedTokens.length,g(t).score=a,s?a<r&&(r=a,n=t):(null==r||a<r||i)&&(r=a,n=t,i&&(s=!0));p(e,n||t)}function Un(e){if(!e._d){var t=re(e._i),n=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),zn(e)}}function Wn(e){var t=new S(wn(Yn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Yn(e){var t=e._i,n=e._f;return e._locale=e._locale||vn(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),C(t)?new S(wn(t)):(d(t)?e._d=t:a(n)?Bn(e):n?Hn(e):qn(e),y(e)||(e._d=null),e))}function qn(e){var t=e._i;u(t)?e._d=new Date(r.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?An(e):a(t)?(e._a=f(t.slice(0),function(e){return parseInt(e,10)}),zn(e)):i(t)?Un(e):c(t)?e._d=new Date(t):r.createFromInputFallback(e)}function Gn(e,t,n,r,o){var s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(i(e)&&l(e)||a(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=o,s._l=n,s._i=e,s._f=t,s._strict=r,Wn(s)}function Kn(e,t,n,r){return Gn(e,t,n,r,!1)}r.createFromInputFallback=_("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){};var Qn=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),Xn=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()});function Zn(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Kn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Jn(){return Zn("isBefore",[].slice.call(arguments,0))}function er(){return Zn("isAfter",[].slice.call(arguments,0))}var tr=function(){return Date.now?Date.now():+new Date},nr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(e){var t,n,r=!1,o=nr.length;for(t in e)if(s(e,t)&&(-1===qe.call(nr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[nr[n]]){if(r)return!1;parseFloat(e[nr[n]])!==Pe(e[nr[n]])&&(r=!0)}return!0}function or(){return this._isValid}function ar(){return Or(NaN)}function ir(e){var t=re(e),n=t.year||0,r=t.quarter||0,o=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=rr(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+i+7*a,this._months=+o+3*r+12*n,this._data={},this._locale=vn(),this._bubble()}function sr(e){return e instanceof ir}function lr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ur(e,t,n){var r,o=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0;for(r=0;r<o;r++)Pe(e[r])!==Pe(t[r])&&i++;return i+a}function cr(e,t){$(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+I(~~(e/60),2)+t+I(~~e%60,2)})}cr("Z",":"),cr("ZZ",""),Ee("Z",xe),Ee("ZZ",xe),De(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=fr(xe,e)});var dr=/([\+\-]|\d\d)/gi;function fr(e,t){var n,r,o=(t||"").match(e);return null===o?null:0===(r=60*(n=((o[o.length-1]||[])+"").match(dr)||["-",0,0])[1]+Pe(n[2]))?0:"+"===n[0]?r:-r}function pr(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(C(e)||d(e)?e.valueOf():Kn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),r.updateOffset(n,!1),n):Kn(e).local()}function hr(e){return-Math.round(e._d.getTimezoneOffset())}function mr(e,t,n){var o,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=fr(xe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(o=hr(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),a!==e&&(!t||this._changeInProgress?Dr(this,Or(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:hr(this)}function gr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function yr(e){return this.utcOffset(0,e)}function vr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(hr(this),"m")),this}function br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=fr(we,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wr(e){return!!this.isValid()&&(e=e?Kn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function xr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Sr(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return x(t,this),(t=Yn(t))._a?(e=t._isUTC?h(t._a):Kn(t._a),this._isDSTShifted=this.isValid()&&ur(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Cr(){return!!this.isValid()&&!this._isUTC}function kr(){return!!this.isValid()&&this._isUTC}function _r(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Er=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Or(e,t){var n,r,o,a=e,i=null;return sr(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(i=Er.exec(e))?(n="-"===i[1]?-1:1,a={y:0,d:Pe(i[ze])*n,h:Pe(i[$e])*n,m:Pe(i[He])*n,s:Pe(i[Ve])*n,ms:Pe(lr(1e3*i[Be]))*n}):(i=jr.exec(e))?(n="-"===i[1]?-1:1,a={y:Nr(i[2],n),M:Nr(i[3],n),w:Nr(i[4],n),d:Nr(i[5],n),h:Nr(i[6],n),m:Nr(i[7],n),s:Nr(i[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(o=Pr(Kn(a.from),Kn(a.to)),(a={}).ms=o.milliseconds,a.M=o.months),r=new ir(a),sr(e)&&s(e,"_locale")&&(r._locale=e._locale),sr(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Nr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Rr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Pr(e,t){var n;return e.isValid()&&t.isValid()?(t=pr(t,e),e.isBefore(t)?n=Rr(e,t):((n=Rr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Tr(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),Dr(this,Or(n,r),e),this}}function Dr(e,t,n,o){var a=t._milliseconds,i=lr(t._days),s=lr(t._months);e.isValid()&&(o=null==o||o,s&&ft(e,Xe(e,"Month")+s*n),i&&Ze(e,"Date",Xe(e,"Date")+i*n),a&&e._d.setTime(e._d.valueOf()+a*n),o&&r.updateOffset(e,i||s))}Or.fn=ir.prototype,Or.invalid=ar;var Mr=Tr(1,"add"),Ir=Tr(-1,"subtract");function Ar(e){return"string"==typeof e||e instanceof String}function Fr(e){return C(e)||d(e)||Ar(e)||c(e)||zr(e)||Lr(e)||null==e}function Lr(e){var t,n,r=i(e)&&!l(e),o=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=a.length;for(t=0;t<u;t+=1)n=a[t],o=o||s(e,n);return r&&o}function zr(e){var t=a(e),n=!1;return t&&(n=0===e.filter(function(t){return!c(t)&&Ar(e)}).length),t&&n}function $r(e){var t,n,r=i(e)&&!l(e),o=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)n=a[t],o=o||s(e,n);return r&&o}function Hr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Vr(e,t){1===arguments.length&&(arguments[0]?Fr(arguments[0])?(e=arguments[0],t=void 0):$r(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Kn(),o=pr(n,this).startOf("day"),a=r.calendarFormat(this,o)||"sameElse",i=t&&(N(t[a])?t[a].call(this,n):t[a]);return this.format(i||this.localeData().calendar(a,this,Kn(n)))}function Br(){return new S(this)}function Ur(e,t){var n=C(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Wr(e,t){var n=C(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Yr(e,t,n,r){var o=C(e)?e:Kn(e),a=C(t)?t:Kn(t);return!!(this.isValid()&&o.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))}function qr(e,t){var n,r=C(e)?e:Kn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Gr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Kr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Qr(e,t,n){var r,o,a;if(!this.isValid())return NaN;if(!(r=pr(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=ne(t)){case"year":a=Xr(this,r)/12;break;case"month":a=Xr(this,r);break;case"quarter":a=Xr(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-o)/864e5;break;case"week":a=(this-r-o)/6048e5;break;default:a=this-r}return n?a:Re(a)}function Xr(e,t){if(e.date()<t.date())return-Xr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Zr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Jr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?B(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):N(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(n,"Z")):B(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function eo(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,o="moment",a="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+o+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(e+t+n+r)}function to(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=B(this,e);return this.localeData().postformat(t)}function no(e,t){return this.isValid()&&(C(e)&&e.isValid()||Kn(e).isValid())?Or({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ro(e){return this.from(Kn(),e)}function oo(e,t){return this.isValid()&&(C(e)&&e.isValid()||Kn(e).isValid())?Or({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ao(e){return this.to(Kn(),e)}function io(e){var t;return void 0===e?this._locale._abbr:(null!=(t=vn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var so=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function lo(){return this._locale}var uo=1e3,co=60*uo,fo=60*co,po=3506328*fo;function ho(e,t){return(e%t+t)%t}function mo(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-po:new Date(e,t,n).valueOf()}function go(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-po:Date.UTC(e,t,n)}function yo(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?go:mo,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ho(t+(this._isUTC?0:this.utcOffset()*co),fo);break;case"minute":t=this._d.valueOf(),t-=ho(t,co);break;case"second":t=this._d.valueOf(),t-=ho(t,uo)}return this._d.setTime(t),r.updateOffset(this,!0),this}function vo(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?go:mo,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=fo-ho(t+(this._isUTC?0:this.utcOffset()*co),fo)-1;break;case"minute":t=this._d.valueOf(),t+=co-ho(t,co)-1;break;case"second":t=this._d.valueOf(),t+=uo-ho(t,uo)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function bo(){return this._d.valueOf()-6e4*(this._offset||0)}function wo(){return Math.floor(this.valueOf()/1e3)}function xo(){return new Date(this.valueOf())}function So(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Co(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ko(){return this.isValid()?this.toISOString():null}function _o(){return y(this)}function Eo(){return p({},g(this))}function jo(){return g(this).overflow}function Oo(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function No(e,t){var n,o,a,i=this._eras||vn("en")._eras;for(n=0,o=i.length;n<o;++n)switch("string"==typeof i[n].since&&(a=r(i[n].since).startOf("day"),i[n].since=a.valueOf()),typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":a=r(i[n].until).startOf("day").valueOf(),i[n].until=a.valueOf()}return i}function Ro(e,t,n){var r,o,a,i,s,l=this.eras();for(e=e.toUpperCase(),r=0,o=l.length;r<o;++r)if(a=l[r].name.toUpperCase(),i=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(i===e)return l[r];break;case"NNNN":if(a===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([a,i,s].indexOf(e)>=0)return l[r]}function Po(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function To(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Do(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Mo(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Io(){var e,t,n,o,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,o=this.clone().startOf("day").valueOf(),a[e].since<=o&&o<=a[e].until||a[e].until<=o&&o<=a[e].since)return(this.year()-r(a[e].since).year())*n+a[e].offset;return this.year()}function Ao(e){return s(this,"_erasNameRegex")||Bo.call(this),e?this._erasNameRegex:this._erasRegex}function Fo(e){return s(this,"_erasAbbrRegex")||Bo.call(this),e?this._erasAbbrRegex:this._erasRegex}function Lo(e){return s(this,"_erasNarrowRegex")||Bo.call(this),e?this._erasNarrowRegex:this._erasRegex}function zo(e,t){return t.erasAbbrRegex(e)}function $o(e,t){return t.erasNameRegex(e)}function Ho(e,t){return t.erasNarrowRegex(e)}function Vo(e,t){return t._eraYearOrdinalRegex||ve}function Bo(){var e,t,n,r,o,a=[],i=[],s=[],l=[],u=this.eras();for(e=0,t=u.length;e<t;++e)n=Ne(u[e].name),r=Ne(u[e].abbr),o=Ne(u[e].narrow),i.push(n),a.push(r),s.push(o),l.push(n),l.push(r),l.push(o);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function Uo(e,t){$(0,[e,e.length],0,t)}function Wo(e){return Xo.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Yo(e){return Xo.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function qo(){return Ct(this.year(),1,4)}function Go(){return Ct(this.isoWeekYear(),1,4)}function Ko(){var e=this.localeData()._week;return Ct(this.year(),e.dow,e.doy)}function Qo(){var e=this.localeData()._week;return Ct(this.weekYear(),e.dow,e.doy)}function Xo(e,t,n,r,o){var a;return null==e?St(this,r,o).year:(t>(a=Ct(e,r,o))&&(t=a),Zo.call(this,e,t,n,r,o))}function Zo(e,t,n,r,o){var a=xt(e,t,n,r,o),i=bt(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function Jo(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}$("N",0,0,"eraAbbr"),$("NN",0,0,"eraAbbr"),$("NNN",0,0,"eraAbbr"),$("NNNN",0,0,"eraName"),$("NNNNN",0,0,"eraNarrow"),$("y",["y",1],"yo","eraYear"),$("y",["yy",2],0,"eraYear"),$("y",["yyy",3],0,"eraYear"),$("y",["yyyy",4],0,"eraYear"),Ee("N",zo),Ee("NN",zo),Ee("NNN",zo),Ee("NNNN",$o),Ee("NNNNN",Ho),De(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?g(n).era=o:g(n).invalidEra=e}),Ee("y",ve),Ee("yy",ve),Ee("yyy",ve),Ee("yyyy",ve),Ee("yo",Vo),De(["y","yy","yyy","yyyy"],Fe),De(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Fe]=n._locale.eraYearOrdinalParse(e,o):t[Fe]=parseInt(e,10)}),$(0,["gg",2],0,function(){return this.weekYear()%100}),$(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Uo("gggg","weekYear"),Uo("ggggg","weekYear"),Uo("GGGG","isoWeekYear"),Uo("GGGGG","isoWeekYear"),Ee("G",be),Ee("g",be),Ee("GG",fe,le),Ee("gg",fe,le),Ee("GGGG",ge,ce),Ee("gggg",ge,ce),Ee("GGGGG",ye,de),Ee("ggggg",ye,de),Me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Pe(e)}),Me(["gg","GG"],function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)}),$("Q",0,"Qo","quarter"),Ee("Q",se),De("Q",function(e,t){t[Le]=3*(Pe(e)-1)}),$("D",["DD",2],"Do","date"),Ee("D",fe,ke),Ee("DD",fe,le),Ee("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),De(["D","DD"],ze),De("Do",function(e,t){t[ze]=Pe(e.match(fe)[0])});var ea=Qe("Date",!0);function ta(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}$("DDD",["DDDD",3],"DDDo","dayOfYear"),Ee("DDD",me),Ee("DDDD",ue),De(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Pe(e)}),$("m",["mm",2],0,"minute"),Ee("m",fe,_e),Ee("mm",fe,le),De(["m","mm"],He);var na=Qe("Minutes",!1);$("s",["ss",2],0,"second"),Ee("s",fe,_e),Ee("ss",fe,le),De(["s","ss"],Ve);var ra,oa,aa=Qe("Seconds",!1);for($("S",0,0,function(){return~~(this.millisecond()/100)}),$(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Ee("S",me,se),Ee("SS",me,le),Ee("SSS",me,ue),ra="SSSS";ra.length<=9;ra+="S")Ee(ra,ve);function ia(e,t){t[Be]=Pe(1e3*("0."+e))}for(ra="S";ra.length<=9;ra+="S")De(ra,ia);function sa(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}oa=Qe("Milliseconds",!1),$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var ua=S.prototype;function ca(e){return Kn(1e3*e)}function da(){return Kn.apply(null,arguments).parseZone()}function fa(e){return e}ua.add=Mr,ua.calendar=Vr,ua.clone=Br,ua.diff=Qr,ua.endOf=vo,ua.format=to,ua.from=no,ua.fromNow=ro,ua.to=oo,ua.toNow=ao,ua.get=Je,ua.invalidAt=jo,ua.isAfter=Ur,ua.isBefore=Wr,ua.isBetween=Yr,ua.isSame=qr,ua.isSameOrAfter=Gr,ua.isSameOrBefore=Kr,ua.isValid=_o,ua.lang=so,ua.locale=io,ua.localeData=lo,ua.max=Xn,ua.min=Qn,ua.parsingFlags=Eo,ua.set=et,ua.startOf=yo,ua.subtract=Ir,ua.toArray=So,ua.toObject=Co,ua.toDate=xo,ua.toISOString=Jr,ua.inspect=eo,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ua[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ua.toJSON=ko,ua.toString=Zr,ua.unix=wo,ua.valueOf=bo,ua.creationData=Oo,ua.eraName=To,ua.eraNarrow=Do,ua.eraAbbr=Mo,ua.eraYear=Io,ua.year=Ge,ua.isLeapYear=Ke,ua.weekYear=Wo,ua.isoWeekYear=Yo,ua.quarter=ua.quarters=Jo,ua.month=pt,ua.daysInMonth=ht,ua.week=ua.weeks=Ot,ua.isoWeek=ua.isoWeeks=Nt,ua.weeksInYear=Ko,ua.weeksInWeekYear=Qo,ua.isoWeeksInYear=qo,ua.isoWeeksInISOWeekYear=Go,ua.date=ea,ua.day=ua.days=Ut,ua.weekday=Wt,ua.isoWeekday=Yt,ua.dayOfYear=ta,ua.hour=ua.hours=rn,ua.minute=ua.minutes=na,ua.second=ua.seconds=aa,ua.millisecond=ua.milliseconds=oa,ua.utcOffset=mr,ua.utc=yr,ua.local=vr,ua.parseZone=br,ua.hasAlignedHourOffset=wr,ua.isDST=xr,ua.isLocal=Cr,ua.isUtcOffset=kr,ua.isUtc=_r,ua.isUTC=_r,ua.zoneAbbr=sa,ua.zoneName=la,ua.dates=_("dates accessor is deprecated. Use date instead.",ea),ua.months=_("months accessor is deprecated. Use month instead",pt),ua.years=_("years accessor is deprecated. Use year instead",Ge),ua.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),ua.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var pa=T.prototype;function ha(e,t,n,r){var o=vn(),a=h().set(r,t);return o[n](a,e)}function ma(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return ha(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=ha(e,r,n,"month");return o}function ga(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var o,a=vn(),i=e?a._week.dow:0,s=[];if(null!=n)return ha(t,(n+i)%7,r,"day");for(o=0;o<7;o++)s[o]=ha(t,(o+i)%7,r,"day");return s}function ya(e,t){return ma(e,t,"months")}function va(e,t){return ma(e,t,"monthsShort")}function ba(e,t,n){return ga(e,t,n,"weekdays")}function wa(e,t,n){return ga(e,t,n,"weekdaysShort")}function xa(e,t,n){return ga(e,t,n,"weekdaysMin")}pa.calendar=M,pa.longDateFormat=Y,pa.invalidDate=G,pa.ordinal=X,pa.preparse=fa,pa.postformat=fa,pa.relativeTime=J,pa.pastFuture=ee,pa.set=R,pa.eras=No,pa.erasParse=Ro,pa.erasConvertYear=Po,pa.erasAbbrRegex=Fo,pa.erasNameRegex=Ao,pa.erasNarrowRegex=Lo,pa.months=lt,pa.monthsShort=ut,pa.monthsParse=dt,pa.monthsRegex=gt,pa.monthsShortRegex=mt,pa.week=kt,pa.firstDayOfYear=jt,pa.firstDayOfWeek=Et,pa.weekdays=zt,pa.weekdaysMin=Ht,pa.weekdaysShort=$t,pa.weekdaysParse=Bt,pa.weekdaysRegex=qt,pa.weekdaysShortRegex=Gt,pa.weekdaysMinRegex=Kt,pa.isPM=tn,pa.meridiem=on,mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Pe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=_("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=_("moment.langData is deprecated. Use moment.localeData instead.",vn);var Sa=Math.abs;function Ca(){var e=this._data;return this._milliseconds=Sa(this._milliseconds),this._days=Sa(this._days),this._months=Sa(this._months),e.milliseconds=Sa(e.milliseconds),e.seconds=Sa(e.seconds),e.minutes=Sa(e.minutes),e.hours=Sa(e.hours),e.months=Sa(e.months),e.years=Sa(e.years),this}function ka(e,t,n,r){var o=Or(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function _a(e,t){return ka(this,e,t,1)}function Ea(e,t){return ka(this,e,t,-1)}function ja(e){return e<0?Math.floor(e):Math.ceil(e)}function Oa(){var e,t,n,r,o,a=this._milliseconds,i=this._days,s=this._months,l=this._data;return a>=0&&i>=0&&s>=0||a<=0&&i<=0&&s<=0||(a+=864e5*ja(Ra(s)+i),i=0,s=0),l.milliseconds=a%1e3,e=Re(a/1e3),l.seconds=e%60,t=Re(e/60),l.minutes=t%60,n=Re(t/60),l.hours=n%24,i+=Re(n/24),s+=o=Re(Na(i)),i-=ja(Ra(o)),r=Re(s/12),s%=12,l.days=i,l.months=s,l.years=r,this}function Na(e){return 4800*e/146097}function Ra(e){return 146097*e/4800}function Pa(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Na(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ra(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Ta(e){return function(){return this.as(e)}}var Da=Ta("ms"),Ma=Ta("s"),Ia=Ta("m"),Aa=Ta("h"),Fa=Ta("d"),La=Ta("w"),za=Ta("M"),$a=Ta("Q"),Ha=Ta("y"),Va=Da;function Ba(){return Or(this)}function Ua(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function Wa(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ya=Wa("milliseconds"),qa=Wa("seconds"),Ga=Wa("minutes"),Ka=Wa("hours"),Qa=Wa("days"),Xa=Wa("months"),Za=Wa("years");function Ja(){return Re(this.days()/7)}var ei=Math.round,ti={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ni(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function ri(e,t,n,r){var o=Or(e).abs(),a=ei(o.as("s")),i=ei(o.as("m")),s=ei(o.as("h")),l=ei(o.as("d")),u=ei(o.as("M")),c=ei(o.as("w")),d=ei(o.as("y")),f=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||i<=1&&["m"]||i<n.m&&["mm",i]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(f=f||c<=1&&["w"]||c<n.w&&["ww",c]),(f=f||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=t,f[3]=+e>0,f[4]=r,ni.apply(null,f)}function oi(e){return void 0===e?ei:"function"==typeof e&&(ei=e,!0)}function ai(e,t){return void 0!==ti[e]&&(void 0===t?ti[e]:(ti[e]=t,"s"===e&&(ti.ss=t-1),!0))}function ii(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,a=ti;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(a=Object.assign({},ti,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),r=ri(this,!o,a,n=this.localeData()),o&&(r=n.pastFuture(+this,r)),n.postformat(r)}var si=Math.abs;function li(e){return(e>0)-(e<0)||+e}function ui(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,a,i,s,l=si(this._milliseconds)/1e3,u=si(this._days),c=si(this._months),d=this.asSeconds();return d?(e=Re(l/60),t=Re(e/60),l%=60,e%=60,n=Re(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=d<0?"-":"",a=li(this._months)!==li(d)?"-":"",i=li(this._days)!==li(d)?"-":"",s=li(this._milliseconds)!==li(d)?"-":"",o+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(u?i+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var ci=ir.prototype;return ci.isValid=or,ci.abs=Ca,ci.add=_a,ci.subtract=Ea,ci.as=Pa,ci.asMilliseconds=Da,ci.asSeconds=Ma,ci.asMinutes=Ia,ci.asHours=Aa,ci.asDays=Fa,ci.asWeeks=La,ci.asMonths=za,ci.asQuarters=$a,ci.asYears=Ha,ci.valueOf=Va,ci._bubble=Oa,ci.clone=Ba,ci.get=Ua,ci.milliseconds=Ya,ci.seconds=qa,ci.minutes=Ga,ci.hours=Ka,ci.days=Qa,ci.weeks=Ja,ci.months=Xa,ci.years=Za,ci.humanize=ii,ci.toISOString=ui,ci.toString=ui,ci.toJSON=ui,ci.locale=io,ci.localeData=lo,ci.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ui),ci.lang=so,$("X",0,0,"unix"),$("x",0,0,"valueOf"),Ee("x",be),Ee("X",Se),De("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),De("x",function(e,t,n){n._d=new Date(Pe(e))}),
|
|
140
|
-
//! moment.js
|
|
141
|
-
r.version="2.30.1",o(Kn),r.fn=ua,r.min=Jn,r.max=er,r.now=tr,r.utc=h,r.unix=ca,r.months=ya,r.isDate=d,r.locale=mn,r.invalid=v,r.duration=Or,r.isMoment=C,r.weekdays=ba,r.parseZone=da,r.localeData=vn,r.isDuration=sr,r.monthsShort=va,r.weekdaysMin=xa,r.defineLocale=gn,r.updateLocale=yn,r.locales=bn,r.weekdaysShort=wa,r.normalizeUnits=ne,r.relativeTimeRounding=oi,r.relativeTimeThreshold=ai,r.calendarFormat=Hr,r.prototype=ua,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}(ox)),ox.exports),ix=n(ax),sx="Dialog",[lx]=sa(sx),[ux,cx]=lx(sx),dx=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=D.useRef(null),l=D.useRef(null),[u,c]=da({prop:r,defaultProp:o??!1,onChange:a,caller:sx});return m.jsx(ux,{scope:t,triggerRef:s,contentRef:l,contentId:Ka(),titleId:Ka(),descriptionId:Ka(),open:u,onOpenChange:c,onOpenToggle:D.useCallback(()=>c(e=>!e),[c]),modal:i,children:n})};dx.displayName=sx;var fx="DialogTrigger";D.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=cx(fx,n),a=ia(t,o.triggerRef);return m.jsx(ba.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Tx(o.open),...r,ref:a,onClick:ra(e.onClick,o.onOpenToggle)})}).displayName=fx;var px="DialogPortal",[hx,mx]=lx(px,{forceMount:void 0}),gx=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=cx(px,t);return m.jsx(hx,{scope:t,forceMount:n,children:D.Children.map(r,e=>m.jsx(cl,{present:n||a.open,children:m.jsx(ul,{asChild:!0,container:o,children:e})}))})};gx.displayName=px;var yx="DialogOverlay",vx=D.forwardRef((e,t)=>{const n=mx(yx,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=cx(yx,e.__scopeDialog);return a.modal?m.jsx(cl,{present:r||a.open,children:m.jsx(wx,{...o,ref:t})}):null});vx.displayName=yx;var bx=ha("DialogOverlay.RemoveScroll"),wx=D.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=cx(yx,n);return m.jsx(ku,{as:bx,allowPinchZoom:!0,shards:[o.contentRef],children:m.jsx(ba.div,{"data-state":Tx(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),xx="DialogContent",Sx=D.forwardRef((e,t)=>{const n=mx(xx,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=cx(xx,e.__scopeDialog);return m.jsx(cl,{present:r||a.open,children:a.modal?m.jsx(Cx,{...o,ref:t}):m.jsx(kx,{...o,ref:t})})});Sx.displayName=xx;var Cx=D.forwardRef((e,t)=>{const n=cx(xx,e.__scopeDialog),r=D.useRef(null),o=ia(t,n.contentRef,r);return D.useEffect(()=>{const e=r.current;if(e)return Al(e)},[]),m.jsx(_x,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ra(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:ra(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:ra(e.onFocusOutside,e=>e.preventDefault())})}),kx=D.forwardRef((e,t)=>{const n=cx(xx,e.__scopeDialog),r=D.useRef(!1),o=D.useRef(!1);return m.jsx(_x,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target,i=n.triggerRef.current?.contains(a);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),_x=D.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=cx(xx,n),l=D.useRef(null),u=ia(t,l);return Ia(),m.jsxs(m.Fragment,{children:[m.jsx($a,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:m.jsx(Ra,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Tx(s.open),...i,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(Ax,{titleId:s.titleId}),m.jsx(Fx,{contentRef:l,descriptionId:s.descriptionId})]})]})}),Ex="DialogTitle",jx=D.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=cx(Ex,n);return m.jsx(ba.h2,{id:o.titleId,...r,ref:t})});jx.displayName=Ex;var Ox="DialogDescription",Nx=D.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=cx(Ox,n);return m.jsx(ba.p,{id:o.descriptionId,...r,ref:t})});Nx.displayName=Ox;var Rx="DialogClose",Px=D.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=cx(Rx,n);return m.jsx(ba.button,{type:"button",...r,ref:t,onClick:ra(e.onClick,()=>o.onOpenChange(!1))})});function Tx(e){return e?"open":"closed"}Px.displayName=Rx;var Dx="DialogTitleWarning",[Mx,Ix]=function(e,t){const n=D.createContext(t),r=e=>{const{children:t,...r}=e,o=D.useMemo(()=>r,Object.values(r));return m.jsx(n.Provider,{value:o,children:t})};return r.displayName=e+"Provider",[r,function(r){const o=D.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}(Dx,{contentName:xx,titleName:Ex,docsSlug:"dialog"}),Ax=({titleId:e})=>{const t=Ix(Dx),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 D.useEffect(()=>{if(e){document.getElementById(e)||console.error(n)}},[n,e]),null},Fx=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ix("DialogDescriptionWarning").contentName}}.`;return D.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");if(t&&r){document.getElementById(t)||console.warn(n)}},[n,e,t]),null},Lx=dx,zx=gx,$x=vx,Hx=Sx,Vx=jx,Bx=Nx,Ux=Px;const Wx=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,Yx=Dr,qx=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return Yx(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=Wx(t)||Wx(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},{}),l=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 Yx(e,i,l,null==n?void 0:n.class,null==n?void 0:n.className)},Gx=Lx,Kx=Ux,Qx=zx,Xx=D.forwardRef(({className:e,...t},n)=>m.jsx($x,{className:Ko("fixed inset-0 z-50 bg-[#1E1E1E]/30 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}));Xx.displayName=$x.displayName;const Zx=qx("fixed z-50 gap-4 bg-white 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 dark:bg-neutral-950",{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"}}),Jx=D.forwardRef(({side:e="right",className:t,children:n,...r},o)=>m.jsxs(Qx,{children:[m.jsx(Xx,{}),m.jsx(Hx,{ref:o,className:Ko(Zx({side:e}),t),...r,children:n})]}));Jx.displayName=Hx.displayName;D.forwardRef(({className:e,...t},n)=>m.jsx(Vx,{ref:n,className:Ko("text-lg font-semibold text-neutral-950 dark:text-neutral-50",e),...t})).displayName=Vx.displayName;function eS({children:e,isOpen:t,onClose:n,title:r,className:o}){const[a,i]=D.useState(!1);return m.jsx(Gx,{open:t,onOpenChange:n,children:m.jsxs(Jx,{className:Ko("p-[30px] rounded-l-xl lg:max-w-full space-y-6 overflow-auto",o,a?"w-full rounded-l-none":null),children:[m.jsxs("div",{className:"flex items-center justify-between border-b pb-2",children:[m.jsx("h1",{className:"text-gray-900 font-semibold text-xl",children:r}),m.jsxs("div",{className:"flex items-center gap-5",children:[m.jsx("button",{className:"w-9 h-9 flex items-center justify-center rounded-md hover:ring-2 ring-inset ring-dark",onClick:()=>{i(!a)},children:Jy.expand}),m.jsx(Kx,{asChild:!0,className:"w-9 h-9 rounded-md flex items-center justify-center bg-danger_light",children:m.jsxs("button",{children:[" ",M.cloneElement(Jy.close2,{fill:"#F1416C"})]})})]})]}),e]})})}function tS({children:e,className:t}){return m.jsx("div",{className:Ko("border rounded-xl py-[30px] border-gray-200 ",t),children:e})}function nS(){return m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{className:"flex justify-between",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsx(na,{className:"h-5 w-[500px] rounded-md"}),m.jsx(na,{className:"h-5 w-[500px] rounded-md"})]}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx(na,{className:"h-9 w-[140px] rounded-md"}),m.jsx(na,{className:"h-9 w-[140px] rounded-md"})]})]}),m.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[m.jsxs(tS,{className:"p-4 flex flex-col gap-3",children:[m.jsx(na,{className:"flex-grow w-full rounded-md"}),m.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[m.jsx(na,{className:"h-[79px] rounded-md"}),m.jsx(na,{className:"h-[79px] rounded-md"}),m.jsx(na,{className:"h-[79px] rounded-md"})]})]}),m.jsxs("div",{className:"space-y-8 col-span-2",children:[m.jsx(na,{className:"h-9 w-full rounded-md"}),m.jsx(na,{className:"h-4 w-[326px] rounded-md"}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(na,{className:"h-3.5 w-[150px] rounded-md"}),m.jsx(na,{className:"h-10 w-full rounded-md"})]}),m.jsx(na,{className:"h-9 w-[500px] rounded-md"}),m.jsxs("div",{className:"flex gap-3",children:[m.jsx(na,{className:"h-12 w-[115px] rounded-md"}),m.jsx(na,{className:"h-12 w-[150px] rounded-md"}),m.jsx(na,{className:"h-12 w-[171px] rounded-md"})]}),m.jsx(na,{className:"h-3.5 w-[337px] rounded-md"})]})]}),m.jsxs("div",{className:"flex gap-4",children:[m.jsx(na,{className:"h-3.5 w-[140px] rounded-md"}),m.jsx(na,{className:"h-3.5 w-[140px] rounded-md"})]}),m.jsx("div",{className:"grid grid-cols-4 gap-3",children:[1,2,3,4].map((e,t)=>m.jsxs("div",{className:"border rounded-xl border-gray-200 p-4 gap-4 flex flex-col",children:[m.jsx(na,{className:"h-3.5 w-[140px] rounded-md"}),m.jsx(na,{className:"h-10 w-[200px] rounded-md"})]},t))}),m.jsx("div",{className:"space-y-6",children:[1,2,3,4].map((e,t)=>m.jsxs("div",{className:" gap-4 flex flex-col",children:[m.jsx(na,{className:"h-3.5 w-[140px] rounded-md"}),m.jsx(na,{className:"h-[163px] w-[896px] rounded-md"})]},t))})]})}D.forwardRef(({className:e,...t},n)=>m.jsx(Bx,{ref:n,className:Ko("text-sm text-neutral-500 dark:text-neutral-400",e),...t})).displayName=Bx.displayName;var rS="https://unpkg.com/@simpoobusiness/sdk/dist/assets/placeholder-imageaf93498c918127fb.svg";function oS({images:e}){return m.jsxs(tS,{className:"p-5 flex flex-col gap-2.5",children:[m.jsx("div",{className:"relative flex-grow",children:m.jsx("img",{src:e?.[0]??rS,sizes:"100%",alt:"item image",draggable:!1,className:"rounded-xl object-cover w-full h-full"})}),m.jsx("div",{className:"flex gap-4 overflow-auto",children:e.filter((e,t)=>0!==t).map((e,t)=>m.jsx("div",{className:"w-[89px] h-[79px] relative shrink-0",children:m.jsx("img",{src:e??rS,alt:"item image",draggable:!1,className:"rounded-xl object-cover h-full w-full"})},t))})]})}var aS=Symbol.for("react.lazy"),iS=I[" use ".trim().toString()];function sS(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===aS&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function lS(e){const t=D.forwardRef((e,t)=>{let{children:n,...r}=e;if(sS(n)&&"function"==typeof iS&&(n=iS(n._payload)),D.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(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}}(r,n.props);return n.type!==D.Fragment&&(o.ref=t?aa(t,e):e),D.cloneElement(n,o)}return D.Children.count(n)>1?D.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var uS=Symbol("radix.slottable");function cS(e){return D.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===uS}var dS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=function(e){const t=lS(e),n=D.forwardRef((e,n)=>{let{children:r,...o}=e;sS(r)&&"function"==typeof iS&&(r=iS(r._payload));const a=D.Children.toArray(r),i=a.find(cS);if(i){const e=i.props.children,r=a.map(t=>t===i?D.Children.count(e)>1?D.Children.only(null):D.isValidElement(e)?e.props.children:null:t);return m.jsx(t,{...o,ref:n,children:D.isValidElement(e)?D.cloneElement(e,void 0,r):null})}return m.jsx(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),r=D.forwardRef((e,r)=>{const{asChild:o,...a}=e,i=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),m.jsx(i,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),fS="horizontal",pS=["horizontal","vertical"],hS=D.forwardRef((e,t)=>{const{decorative:n,orientation:r=fS,...o}=e,a=function(e){return pS.includes(e)}(r)?r:fS,i=n?{role:"none"}:{"aria-orientation":"vertical"===a?a:void 0,role:"separator"};return m.jsx(dS.div,{"data-orientation":a,...i,...o,ref:t})});hS.displayName="Separator";var mS=hS;const gS=D.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>m.jsx(mS,{ref:o,decorative:n,orientation:t,className:Ko("shrink-0 bg-gray-300 dark:bg-neutral-800","horizontal"===t?"h-[1px] w-full":"h-full w-[1px]",e),...r}));function yS({data:e,printLabel:t}){const n=[{tag:"reorder level",value:`${e?.reorder_level} ${e?.unit_resource?.name}`},{tag:"packing groups",value:`${e?.item_group?.length} group(s)`},{tag:"variations",value:`${e?.variation?.length} variable(s)`},{tag:"extras",value:`${e?.extras?.length} extras`}];return m.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[m.jsx(oS,{images:e?.images?.map(e=>e.image)}),m.jsxs("div",{className:"col-span-2 flex flex-col gap-9",children:[m.jsxs("div",{className:"flex gap-4 bg-primary_light p-2.5 rounded-md",children:[m.jsxs("p",{className:"text-gray-700 text-sm font-medium",children:["Cost price:"," ",m.jsx("span",{className:"text-dark font-bold text-[15px]",children:rv(Number(e?.cost_price))})]}),m.jsxs("p",{className:"text-gray-700 text-sm font-medium",children:["Selling price:"," ",e?.duplicate_prices?.map((t,n)=>m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"text-dark font-bold text-[15px] px-2",children:rv(Number(t.selling_price))},n),n<e?.duplicate_prices?.length-1&&"-"]}))]})]}),m.jsxs("div",{className:"flex gap-2.5",children:[m.jsxs("p",{className:"text-gray-800 text-sm font-medium",children:["In stock:"," ",m.jsxs("span",{className:"text-dark font-bold text-[15px]",children:[ov(Number(e?.quantity))," ",e?.item_unit]})]}),"|",m.jsxs("p",{className:"text-gray-700 text-sm font-medium",children:["Total sold:"," ",m.jsxs("span",{className:"text-dark font-bold text-[15px]",children:[ov(e?.total_sold)," ",e?.item_unit]})]})]}),m.jsxs("div",{className:"space-y-2.5",children:[m.jsx("h2",{className:"text-gray-800 text-sm font-bold",children:"Description"}),m.jsx("p",{className:"text-gray-800 font-normal text-sm",children:e?.description??"No description..."})]}),m.jsx("div",{className:"flex gap-5 items-center",children:n.map((e,t)=>m.jsxs("div",{className:"flex gap-5 items-center",children:[m.jsxs("div",{className:"flex flex-col gap-2.5",children:[m.jsx("p",{className:"text-dark font-medium text-sm first-letter:uppercase",children:e.tag}),m.jsx("p",{className:"text-primary",children:e.value})]}),t<n.length-1&&m.jsx(gS,{className:"bg-[#7E8299] h-[30px] w-[1px]"})]},t))}),m.jsxs("div",{className:"flex gap-2.5 items-center",children:[m.jsxs("p",{className:"text-gray-700 text-sm font-medium flex gap-2",children:["Category:"," ",e?.category?.map((e,t)=>m.jsxs("span",{className:"text-dark font-normal text-[15px]",children:[e.name," "]},t))]}),m.jsx(gS,{className:"bg-[#7E8299] h-[14px] w-[1px]"}),m.jsxs("p",{className:"text-gray-700 text-sm font-medium",children:["Collection:"," ",e?.item_tags?.map((e,t)=>m.jsx("span",{className:"text-dark font-normal text-[15px]",children:e.name},t))]})]})]})]})}gS.displayName=mS.displayName;var vS=.999,bS=/[\\\/_+.#"@\[\(\{&]/,wS=/[\\\/_+.#"@\[\(\{&]/g,xS=/[\s-]/,SS=/[\s-]/g;function CS(e,t,n,r,o,a,i){if(a===t.length)return o===e.length?1:.99;var s=`${o},${a}`;if(void 0!==i[s])return i[s];for(var l,u,c,d,f=r.charAt(a),p=n.indexOf(f,o),h=0;p>=0;)(l=CS(e,t,n,r,p+1,a+1,i))>h&&(p===o?l*=1:bS.test(e.charAt(p-1))?(l*=.8,(c=e.slice(o,p-1).match(wS))&&o>0&&(l*=Math.pow(vS,c.length))):xS.test(e.charAt(p-1))?(l*=.9,(d=e.slice(o,p-1).match(SS))&&o>0&&(l*=Math.pow(vS,d.length))):(l*=.17,o>0&&(l*=Math.pow(vS,p-o))),e.charAt(p)!==t.charAt(a)&&(l*=.9999)),(l<.1&&n.charAt(p-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(p-1)!==r.charAt(a))&&(.1*(u=CS(e,t,n,r,p+1,a+2,i))>l&&(l=.1*u)),l>h&&(h=l),p=n.indexOf(f,p+1);return i[s]=h,h}function kS(e){return e.toLowerCase().replace(SS," ")}function _S(e,t,n){return CS(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,kS(e),kS(t),0,0,{})}var ES='[cmdk-group=""]',jS='[cmdk-group-items=""]',OS='[cmdk-item=""]',NS=`${OS}:not([aria-disabled="true"])`,RS="cmdk-item-select",PS="data-value",TS=(e,t,n)=>_S(e,t,n),DS=D.createContext(void 0),MS=()=>D.useContext(DS),IS=D.createContext(void 0),AS=()=>D.useContext(IS),FS=D.createContext(void 0),LS=D.forwardRef((e,t)=>{let n=ZS(()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=ZS(()=>new Set),o=ZS(()=>new Map),a=ZS(()=>new Map),i=ZS(()=>new Set),s=QS(e),{label:l,children:u,value:c,onValueChange:d,filter:f,shouldFilter:p,loop:h,disablePointerSelection:m=!1,vimBindings:g=!0,...y}=e,v=Ka(),b=Ka(),w=Ka(),x=D.useRef(null),S=tC();XS(()=>{if(void 0!==c){let e=c.trim();n.current.value=e,C.emit()}},[c]),XS(()=>{S(6,N)},[]);let C=D.useMemo(()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,a,i,l;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)O(),E(),S(1,j);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(w);e?e.focus():null==(o=document.getElementById(v))||o.focus()}if(S(7,()=>{var e;n.current.selectedItemId=null==(e=R())?void 0:e.id,C.emit()}),r||S(5,N),void 0!==(null==(a=s.current)?void 0:a.value)){let e=null!=t?t:"";return void(null==(l=(i=s.current).onValueChange)||l.call(i,e))}}C.emit()}},emit:()=>{i.current.forEach(e=>e())}}),[]),k=D.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,_(t,r)),S(2,()=>{E(),C.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]))),S(3,()=>{O(),E(),n.current.value||j(),C.emit()}),()=>{a.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=R();S(4,()=>{O(),(null==t?void 0:t.getAttribute("id"))===e&&j(),C.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:l||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:v,inputId:w,labelId:b,listInnerRef:x}),[]);function _(e,t){var r,o;let a=null!=(o=null==(r=s.current)?void 0:r.filter)?o:TS;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;P().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(jS);t?t.appendChild(e.parentElement===t?e:e.closest(`${jS} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${jS} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let n=null==(t=x.current)?void 0:t.querySelector(`${ES}[${PS}="${encodeURIComponent(e[0])}"]`);null==n||n.parentElement.appendChild(n)})}function j(){let e=P().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(PS);C.setState("value",t||void 0)}function O(){var e,t,i,l;if(!n.current.search||!1===s.current.shouldFilter)return void(n.current.filtered.count=r.current.size);n.current.filtered.groups=new Set;let u=0;for(let o of r.current){let r=_(null!=(t=null==(e=a.current.get(o))?void 0:e.value)?t:"",null!=(l=null==(i=a.current.get(o))?void 0:i.keywords)?l:[]);n.current.filtered.items.set(o,r),r>0&&u++}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=u}function N(){var e,t,n;let r=R();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(ES))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function R(){var e;return null==(e=x.current)?void 0:e.querySelector(`${OS}[aria-selected="true"]`)}function P(){var e;return Array.from((null==(e=x.current)?void 0:e.querySelectorAll(NS))||[])}function T(e){let t=P()[e];t&&C.setState("value",t.getAttribute(PS))}function M(e){var t;let n=R(),r=P(),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&&C.setState("value",a.getAttribute(PS))}function I(e){let t,n=R(),r=null==n?void 0:n.closest(ES);for(;r&&!t;)r=e>0?GS(r,ES):KS(r,ES),t=null==r?void 0:r.querySelector(NS);t?C.setState("value",t.getAttribute(PS)):M(e)}let A=()=>T(P().length-1),F=e=>{e.preventDefault(),e.metaKey?A():e.altKey?I(1):M(1)},L=e=>{e.preventDefault(),e.metaKey?T(0):e.altKey?I(-1):M(-1)};return D.createElement(ba.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=y.onKeyDown)||t.call(y,e);let n=e.nativeEvent.isComposing||229===e.keyCode;if(!e.defaultPrevented&&!n)switch(e.key){case"n":case"j":g&&e.ctrlKey&&F(e);break;case"ArrowDown":F(e);break;case"p":case"k":g&&e.ctrlKey&&L(e);break;case"ArrowUp":L(e);break;case"Home":e.preventDefault(),T(0);break;case"End":e.preventDefault(),A();break;case"Enter":{e.preventDefault();let t=R();if(t){let e=new Event(RS);t.dispatchEvent(e)}}}}},D.createElement("label",{"cmdk-label":"",htmlFor:k.inputId,id:k.labelId,style:rC},l),nC(e,e=>D.createElement(IS.Provider,{value:C},D.createElement(DS.Provider,{value:k},e))))}),zS=D.forwardRef((e,t)=>{var n,r;let o=Ka(),a=D.useRef(null),i=D.useContext(FS),s=MS(),l=QS(e),u=null!=(r=null==(n=l.current)?void 0:n.forceMount)?r:null==i?void 0:i.forceMount;XS(()=>{if(!u)return s.item(o,null==i?void 0:i.id)},[u]);let c=eC(o,a,[e.value,e.children,a],e.keywords),d=AS(),f=JS(e=>e.value&&e.value===c.current),p=JS(e=>!(!u&&!1!==s.filter())||(!e.search||e.filtered.items.get(o)>0));function h(){var e,t;m(),null==(t=(e=l.current).onSelect)||t.call(e,c.current)}function m(){d.setState("value",c.current,!0)}if(D.useEffect(()=>{let t=a.current;if(t&&!e.disabled)return t.addEventListener(RS,h),()=>t.removeEventListener(RS,h)},[p,e.onSelect,e.disabled]),!p)return null;let{disabled:g,value:y,onSelect:v,forceMount:b,keywords:w,...x}=e;return D.createElement(ba.div,{ref:aa(a,t),...x,id:o,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!f,"data-disabled":!!g,"data-selected":!!f,onPointerMove:g||s.getDisablePointerSelection()?void 0:m,onClick:g?void 0:h},e.children)}),$S=D.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,i=Ka(),s=D.useRef(null),l=D.useRef(null),u=Ka(),c=MS(),d=JS(e=>!(!o&&!1!==c.filter())||(!e.search||e.filtered.groups.has(i)));XS(()=>c.group(i),[]),eC(i,s,[e.value,e.heading,l]);let f=D.useMemo(()=>({id:i,forceMount:o}),[o]);return D.createElement(ba.div,{ref:aa(s,t),...a,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&D.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),nC(e,e=>D.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},D.createElement(FS.Provider,{value:f},e))))}),HS=D.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=D.useRef(null),a=JS(e=>!e.search);return n||a?D.createElement(ba.div,{ref:aa(o,t),...r,"cmdk-separator":"",role:"separator"}):null}),VS=D.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=AS(),i=JS(e=>e.search),s=JS(e=>e.selectedItemId),l=MS();return D.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),D.createElement(ba.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:o?e.value:i,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),BS=D.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=D.useRef(null),i=D.useRef(null),s=JS(e=>e.selectedItemId),l=MS();return D.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)}}},[]),D.createElement(ba.div,{ref:aa(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:l.listId},nC(e,e=>D.createElement("div",{ref:aa(i,l.listInnerRef),"cmdk-list-sizer":""},e)))}),US=D.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:i,...s}=e;return D.createElement(Lx,{open:n,onOpenChange:r},D.createElement(zx,{container:i},D.createElement($x,{"cmdk-overlay":"",className:o}),D.createElement(Hx,{"aria-label":e.label,"cmdk-dialog":"",className:a},D.createElement(LS,{ref:t,...s}))))}),WS=D.forwardRef((e,t)=>JS(e=>0===e.filtered.count)?D.createElement(ba.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),YS=D.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return D.createElement(ba.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},nC(e,e=>D.createElement("div",{"aria-hidden":!0},e)))}),qS=Object.assign(LS,{List:BS,Item:zS,Input:VS,Group:$S,Separator:HS,Dialog:US,Empty:WS,Loading:YS});function GS(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function KS(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function QS(e){let t=D.useRef(e);return XS(()=>{t.current=e}),t}var XS="undefined"==typeof window?D.useEffect:D.useLayoutEffect;function ZS(e){let t=D.useRef();return void 0===t.current&&(t.current=e()),t}function JS(e){let t=AS(),n=()=>e(t.snapshot());return D.useSyncExternalStore(t.subscribe,n,n)}function eC(e,t,n,r=[]){let o=D.useRef(),a=MS();return XS(()=>{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}})(),l=r.map(e=>e.trim());a.value(e,s,l),null==(i=t.current)||i.setAttribute(PS,s),o.current=s}),o}var tC=()=>{let[e,t]=D.useState(),n=ZS(()=>new Map);return XS(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function nC({asChild:e,children:t},n){return e&&D.isValidElement(t)?D.cloneElement(function(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}(t),{ref:t.ref},n(t.props.children)):n(t)}var rC={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const oC=Lx,aC=zx,iC=D.forwardRef(({className:e,...t},n)=>m.jsx($x,{ref:n,className:Ko("fixed inset-0 z-50 bg-[#1E1E1E]/30 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));iC.displayName=$x.displayName;const sC=D.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(aC,{children:[m.jsx(iC,{}),m.jsxs(Hx,{ref:r,className:Ko("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-neutral-200 bg-white 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-lg dark:border-neutral-800 dark:bg-neutral-950",e),...n,children:[t,m.jsxs(Ux,{className:"hidden absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-500 dark:ring-offset-neutral-950 dark:focus:ring-neutral-300 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-400",children:[m.jsx(Ad,{className:"h-4 w-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));sC.displayName=Hx.displayName;const lC=D.forwardRef(({className:e,...t},n)=>m.jsx(Vx,{ref:n,className:Ko("text-lg font-semibold leading-none tracking-tight",e),...t}));lC.displayName=Vx.displayName;const uC=D.forwardRef(({className:e,...t},n)=>m.jsx(Bx,{ref:n,className:Ko("text-sm text-neutral-500 dark:text-neutral-400",e),...t}));uC.displayName=Bx.displayName;const cC=D.forwardRef(({className:e,...t},n)=>m.jsx(qS,{ref:n,className:Ko("flex h-full w-full flex-col overflow-hidden rounded-md bg-white text-neutral-950 dark:bg-neutral-950 dark:text-neutral-50",e),...t}));cC.displayName=qS.displayName;const dC=D.forwardRef(({className:e,...t},n)=>m.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[m.jsx(Id,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),m.jsx(qS.Input,{ref:n,className:Ko("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-neutral-500 disabled:cursor-not-allowed disabled:opacity-50 dark:placeholder:text-neutral-400",e),...t})]}));dC.displayName=qS.Input.displayName;const fC=D.forwardRef(({className:e,...t},n)=>m.jsx(qS.List,{ref:n,className:Ko("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));fC.displayName=qS.List.displayName;const pC=D.forwardRef((e,t)=>m.jsx(qS.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));pC.displayName=qS.Empty.displayName;const hC=D.forwardRef(({className:e,...t},n)=>m.jsx(qS.Group,{ref:n,className:Ko("overflow-hidden p-1 text-neutral-950 [&_[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-neutral-500 dark:text-neutral-50 dark:[&_[cmdk-group-heading]]:text-neutral-400",e),...t}));hC.displayName=qS.Group.displayName;D.forwardRef(({className:e,...t},n)=>m.jsx(qS.Separator,{ref:n,className:Ko("-mx-1 h-px bg-neutral-200 dark:bg-neutral-800",e),...t})).displayName=qS.Separator.displayName;const mC=D.forwardRef(({className:e,...t},n)=>m.jsx(qS.Item,{ref:n,className:Ko("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-primary_light data-[selected=true]:text-primary data-[disabled=true]:opacity-50 dark:data-[selected='true']:bg-primary_light dark:data-[selected=true]:text-primary",e),...t}));mC.displayName=qS.Item.displayName;var gC="Popover",[yC]=sa(gC,[Bs]),vC=Bs(),[bC,wC]=yC(gC),xC=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=vC(t),l=D.useRef(null),[u,c]=D.useState(!1),[d,f]=da({prop:r,defaultProp:o??!1,onChange:a,caller:gC});return m.jsx(al,{...s,children:m.jsx(bC,{scope:t,contentId:Ka(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:D.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:D.useCallback(()=>c(!0),[]),onCustomAnchorRemove:D.useCallback(()=>c(!1),[]),modal:i,children:n})})};xC.displayName=gC;var SC="PopoverAnchor";D.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=wC(SC,n),a=vC(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return D.useEffect(()=>(i(),()=>s()),[i,s]),m.jsx(il,{...a,...r,ref:t})}).displayName=SC;var CC="PopoverTrigger",kC=D.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=wC(CC,n),a=vC(n),i=ia(t,o.triggerRef),s=m.jsx(ba.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":FC(o.open),...r,ref:i,onClick:ra(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:m.jsx(il,{asChild:!0,...a,children:s})});kC.displayName=CC;var _C="PopoverPortal",[EC,jC]=yC(_C,{forceMount:void 0}),OC=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=wC(_C,t);return m.jsx(EC,{scope:t,forceMount:n,children:m.jsx(cl,{present:n||a.open,children:m.jsx(ul,{asChild:!0,container:o,children:r})})})};OC.displayName=_C;var NC="PopoverContent",RC=D.forwardRef((e,t)=>{const n=jC(NC,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=wC(NC,e.__scopePopover);return m.jsx(cl,{present:r||a.open,children:a.modal?m.jsx(TC,{...o,ref:t}):m.jsx(DC,{...o,ref:t})})});RC.displayName=NC;var PC=ha("PopoverContent.RemoveScroll"),TC=D.forwardRef((e,t)=>{const n=wC(NC,e.__scopePopover),r=D.useRef(null),o=ia(t,r),a=D.useRef(!1);return D.useEffect(()=>{const e=r.current;if(e)return Al(e)},[]),m.jsx(ku,{as:PC,allowPinchZoom:!0,children:m.jsx(MC,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ra(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:ra(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:ra(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),DC=D.forwardRef((e,t)=>{const n=wC(NC,e.__scopePopover),r=D.useRef(!1),o=D.useRef(!1);return m.jsx(MC,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target,i=n.triggerRef.current?.contains(a);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),MC=D.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=wC(NC,n),p=vC(n);return Ia(),m.jsx($a,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:m.jsx(Ra,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:m.jsx(sl,{"data-state":FC(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),IC="PopoverClose",AC=D.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=wC(IC,n);return m.jsx(ba.button,{type:"button",...r,ref:t,onClick:ra(e.onClick,()=>o.onOpenChange(!1))})});AC.displayName=IC;function FC(e){return e?"open":"closed"}D.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=vC(n);return m.jsx(ll,{...o,...r,ref:t})}).displayName="PopoverArrow";var LC=OC,zC=RC;const $C=xC,HC=kC,VC=D.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>m.jsx(LC,{children:m.jsx(zC,{ref:o,align:t,sideOffset:n,className:Ko("z-50 w-72 rounded-md border border-neutral-200 bg-white p-4 text-neutral-950 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 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...r})}));VC.displayName=zC.displayName;const BC=qx("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 dark:ring-offset-neutral-950 dark:focus-visible:ring-neutral-300",{variants:{variant:{default:"bg-neutral-900 text-neutral-50 hover:bg-neutral-900/90 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50/90",destructive:"bg-red-500 text-neutral-50 hover:bg-red-500/90 dark:bg-red-900 dark:text-neutral-50 dark:hover:bg-red-900/90",outline:"border border-neutral-200 bg-white hover:bg-neutral-100 hover:text-neutral-900 dark:border-neutral-800 dark:bg-neutral-950 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",secondary:"bg-neutral-100 text-neutral-900 hover:bg-neutral-100/80 dark:bg-neutral-800 dark:text-neutral-50 dark:hover:bg-neutral-800/80",ghost:"hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",link:"text-neutral-900 underline-offset-4 hover:underline dark:text-neutral-50"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),UC=D.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const i=r?ma:"button";return m.jsx(i,{className:Ko(BC({variant:t,size:n,className:e})),ref:a,...o})});UC.displayName="Button";const WC=({label:e,options:t=[],className:n,placeholder:r,value:o="",onValueChange:a,required:i,error:s,showSearch:l=!0,showOutline:u=!0,icon:c,info:d,optional:f,labelClass:p,actionLabel:h,actionLabelAction:g,actionLabelInfo:y,searchPlaceholder:v,disabled:b,triggerClass:w,loading:x,showError:S,onChangeSearch:C,searching:k,infoAlignment:_,align:E="start",valueClass:j})=>{const[O,N]=D.useState(""),[R,P]=D.useState(!1),[T,M]=D.useState(0),I=D.useRef(null);D.useEffect(()=>{const e=()=>{I.current&&M(I?.current?.offsetWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);return m.jsx(m.Fragment,{children:x?m.jsx(na,{className:"w-full h-[48px]"}):m.jsxs("div",{className:Ko("flex flex-col gap-2.5",n),children:[m.jsxs("div",{className:Ko("flex justify-between gap-2 flex-wrap",e?null:"hidden"),children:[e&&m.jsxs("label",{className:Ko("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",p),children:[m.jsx("span",{className:"first-letter:inherit",children:e})," ",i?m.jsx("span",{className:"text-[#E12D39]",children:e&&"*"}):f?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,d&&m.jsx(kv,{fieldName:e,align:_,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:d})})]}),h&&m.jsxs("button",{onClick:g,className:"text-primary flex items-center gap-1 first-letter:uppercase text-sm font-medium",children:[h,y&&m.jsx(kv,{fieldName:h,children:m.jsx("p",{className:"font-normal first-letter:uppercase text-left",children:y})})]})]}),m.jsxs($C,{modal:!0,open:R,onOpenChange:P,children:[m.jsx(HC,{asChild:!0,children:m.jsxs(UC,{ref:I,variant:"outline",role:"combobox","aria-expanded":R,className:Ko(`w-full h-[48px] justify-between border focus:border-primary border-neutral-200 bg-white hover:bg-white hover:border-[#BFD7FE] ${(s||S)&&"!border-danger"}`,w),disabled:b,children:[m.jsx("span",{className:Ko("flex gap-2 first-letter:uppercase capitalize text-[#5E6278] justify-start truncate",o?"text-dark":null,j),children:o?(e=>{const n=t?.find(t=>t.value===e);return n?.label})(o):r??"Select..."}),m.jsx(Dd,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),m.jsx(VC,{style:{width:T},className:"min-w-[280px] p-0 bg-white rounded-xl border-gray-200",align:E,children:m.jsxs(cC,{className:"w-full",children:[l&&m.jsx(dC,{onChangeCapture:C,className:"placeholder:text-xs",placeholder:v??"Search..."}),k?m.jsx("div",{className:"flex flex-col gap-2 p-2",children:[1,2,3].map((e,t)=>m.jsx(na,{className:"h-9 rounded-md"},t))}):m.jsx(pC,{children:"No result found."}),m.jsx(hC,{children:m.jsx(fC,{className:"",children:t?.map(e=>m.jsxs(mC,{value:"string"==typeof e.label?e.label:e?.searchId,className:`first-letter:uppercase capitalize mb-1 hover:bg-primary_light w-full rounded-md hover:text-primary font-semibold text-gray-700 text-sm cursor-pointer ${o===e.value&&"bg-primary_light text-primary"}`,onSelect:()=>{a&&a(e.value),P(!1)},children:[m.jsx(Nd,{className:Ko("mr-2 h-4 w-4",o===e.value?"opacity-100":"opacity-0")}),e.label]},`${"string"==typeof e.label?e.label:e?.searchId}${e.value}`))})})]})})]}),s&&m.jsx("p",{className:"text-danger text-xs font-normal",children:s})]})})};var YC="https://unpkg.com/@simpoobusiness/sdk/dist/assets/image-placeholdere1821db1b147e2aa.png";function qC({data:e}){const[t,n]=D.useState(e?.total_selling_price||0),r=[{label:"Stock Quantity",value:ov(Number(e?.quantity)),desc:null},{label:"Total Cost",value:rv(Number(e?.total_cost_price)),desc:null},{label:"Total Selling Price",value:rv(t),desc:m.jsx(WC,{options:e?.prices?.map(e=>({label:e.priceGroup.name,value:e.selling_price.toString()})),onValueChange:e=>n(Number(e)),value:t?.toString(),triggerClass:"h-8",showSearch:!1,placeholder:"Select price"})},{label:"Profit to be made",value:rv(t-e?.total_cost_price),desc:null}],o=[{tag:"Barcode",value:e?.barcode.map(e=>e.barcode)},{tag:"SKU",value:e?.sku},{tag:"System code",value:e?.itemcode.toString()}],a=["S/N","Batch number","Quantity","Expiry date","Unit cost"],i=[{tag:"Extras",headers:["S/N","image","extra name","quantity inside ","selling price"],body:e?.extras?.map((e,t)=>m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:t+1}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:YC,className:"object-cover w-full h-full"})})}),m.jsx("td",{children:e.extra.name}),m.jsxs("td",{children:[e.quantity," ",e.extra.item_unit]}),m.jsx("td",{children:rv(Number(e.selling_price))})]},t))||[]},{tag:"Raw materials",headers:["S/N","image","material name","quantity inside ","selling price"],body:e?.material?.map((e,t)=>m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:t+1}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:YC,className:"object-cover w-full h-full"})})}),m.jsx("td",{children:e.raw_material?.name}),m.jsxs("td",{children:[e.quantity," ",e.raw_material?.item_unit]}),m.jsx("td",{children:rv(Number(e.selling_price))})]},t))},{tag:"Packing groups",headers:["S/N","image","group name","quantity inside ","selling price","Group code","print label"],body:e?.item_group?.map((t,n)=>m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:n+1}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:YC,className:"object-cover w-full h-full"})})}),m.jsx("td",{children:t.group_name}),m.jsxs("td",{children:[t.quantity," ",e.item_unit]}),m.jsx("td",{children:rv(Number(t.selling_price))}),m.jsx("td",{children:t.barcode}),m.jsx("td",{children:m.jsx("button",{className:"w-6 h-6 items-center flex justify-center",children:Jy.printer_blue})})]},n))},{tag:"Variations",headers:["S/N","image","variation","quantity ","selling price","code","print label"],body:e?.variation?.map((t,n)=>m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:n+1}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:t.image??YC,className:"object-cover w-full h-full"})})}),m.jsx("td",{children:t.variation_values.map((e,n)=>m.jsxs("span",{className:"pr-2",children:[e.attribute_value.value_name," ",t?.variation_values?.length-1>n&&"-"]},n))}),m.jsxs("td",{children:[t.quantity,e?.item_unit]}),m.jsx("td",{children:rv(Number(t.locationprices?.[0]?.selling_price))}),m.jsx("td",{children:t.barcode}),m.jsx("td",{children:m.jsx("button",{className:"w-6 h-6 items-center flex justify-center",children:Jy.printer_blue})})]},n))}];return m.jsxs("div",{className:"space-y-6",children:[m.jsx("div",{className:"grid grid-cols-4 gap-2.5",children:r.map((n,o)=>m.jsxs("div",{className:"border rounded-xl border-gray-200 p-4 gap-4 flex flex-col",children:[m.jsx("p",{className:"text-dark text-sm font-medium",children:n.label}),m.jsxs("p",{title:n.value,className:Ko("text-dark font-bold text-3xl truncate",o===r.length-1&&Number(t)-Number(e?.cost_price)<0?"text-danger":null),children:[n.value,0===o&&m.jsx("span",{className:"font-normal text-sm",children:e.item_unit})]}),n.desc]},o))}),m.jsx("div",{className:"grid grid-cols-12",children:m.jsxs("div",{className:"col-span-10 space-y-6",children:[m.jsxs("div",{className:"space-y-3",children:[m.jsx("p",{className:"border-b border-gray-300 pb-2.5 text-gray-800 font-semibold ",children:"Item codes:"}),m.jsx("div",{className:"flex gap-5",children:o.map((e,t)=>m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:Ko("flex flex-col gap-2.5"),children:[m.jsx("p",{className:"text-dark text-sm font-medium",children:e.tag}),m.jsx("p",{className:"text-gray-500 text-sm font-normal flex flex-col gap-2",children:Array.isArray(e.value)?e.value?.map((e,t)=>m.jsx("span",{children:e},t)):e.value})]},t),t<o.length-1&&m.jsx("div",{children:m.jsx(gS,{orientation:"vertical",className:"bg-[#7E8299]"})},t)]}))})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsx("p",{className:"border-b border-gray-300 pb-2.5 text-gray-800 font-semibold ",children:"Suppliers:"}),m.jsx("div",{className:"flex gap-5 flex-col",children:e?.suppliers?.map((e,t)=>m.jsxs("div",{className:"bg-gray-100 rounded-xl p-[15px] space-y-[18px]",children:[m.jsxs("div",{className:"flex gap-3",children:[m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:YC,className:"object-cover w-full h-full"})}),m.jsxs("div",{className:"space-y-1 flex-grow border-b border-dashed border-gray-300 pb-1",children:[m.jsx("h1",{className:"text-dark font-semibold text-sm capitalize",children:e.name}),m.jsx("p",{className:"text-gray-700 font-medium text-[13px] capitalize"})]})]}),m.jsxs("table",{className:"table-auto w-full border-separate border-spacing-y-3",children:[m.jsx("thead",{children:m.jsx("tr",{children:a.map((e,t)=>m.jsx("th",{className:"text-left text-dark",children:e},t))})}),m.jsx("tbody",{children:m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:"1"}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:e.supplier_batch_number})}),m.jsx("td",{children:e.supplier_quantity}),m.jsx("td",{children:ix(e.supplier_expired_date).format("MMMM DD, YYYY")}),m.jsx("td",{children:rv(Number(e.supplier_price))})]})})]})]},t))})]}),i.map((e,t)=>m.jsxs("div",{className:"space-y-3",children:[m.jsxs("p",{className:"border-b border-gray-300 pb-2.5 text-gray-800 font-semibold ",children:[e.tag,": ",e.body?.length]}),e.body?.length>0?m.jsx("div",{className:"bg-gray-100 rounded-xl p-[15px] space-y-[18px]",children:m.jsxs("table",{className:"table-auto w-full border-separate border-spacing-y-3",children:[m.jsx("thead",{children:m.jsx("tr",{children:e.headers.map((e,t)=>m.jsx("th",{className:"text-left text-dark first-letter:uppercase",children:e},t))})}),m.jsx("tbody",{children:e.body})]})}):null]},t))]})})]})}const GC=[{label:"All",count:900},{label:"Active",count:10},{label:"Inactive",count:0}];function KC({tabs:e=GC,loading:t}){const[n,r]=D.useState(0);return m.jsxs("div",{className:"flex flex-col",children:[m.jsx("div",{className:"flex gap-[30px]",children:e.map((e,o)=>m.jsxs("button",{className:"flex items-center gap-2.5 group relative pb-2",onClick:()=>((e,t)=>{e.link||r(t),e.action&&e.action()})(e,o),children:[m.jsx("p",{className:Ko("group-hover:text-gray-900 duration-200 text-gray-800 font-normal text-sm first-letter:uppercase",o===n?"text-gray-900 font-semibold":null),children:e.label}),t?m.jsx(na,{className:"h-[26px] rounded w-8"}):m.jsxs(m.Fragment,{children:[" ",e.count>=0?m.jsx("span",{className:Ko("rounded px-[7px] h-[26px] flex items-center text-xs font-semibold duration-200 group-hover:bg-primary_light group-hover:text-primary bg-gray-200 text-gray-500 shrink-0",o===n?"bg-primary_light text-primary":null),children:e.count}):null]}),o===n?m.jsx("div",{className:"h-[5px] rounded bg-primary absolute left-0 right-0 -bottom-[5px]"}):null]},o))}),m.jsx("div",{className:" h-[5px] rounded bg-gray-300"})]})}function QC({isOpen:e,onClose:t,itemUUID:n}){const{data:r,isFetching:o}=Jw(["single_item",n],`/items/get?item_uuid=${n}`,{enabled:e}),a=r?.data,i=[{tag:"Created",value:ix(a?.created_date).format("MMMM DD, YYYY")},{tag:"Last edited",value:ix(a?.last_update_date).format("MMMM DD, YYYY")},{tag:"Expiry",value:m.jsxs("p",{className:"",children:[" ",m.jsxs("span",{className:"text-danger",children:[a?.expired," Expired,"]})," ",m.jsxs("span",{className:"text-warning",children:[a?.expiring," Expiring"]})]})}],[s,l]=D.useState(1),u=[{label:"Item overview",action:()=>l(1)}];return D.useEffect(()=>{!e&&l(1)},[e]),m.jsx(eS,{isOpen:e,onClose:t,title:"Item View",className:"w-[1176px]",children:o?m.jsx(nS,{}):m.jsxs("div",{className:"space-y-7",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"space-y-1",children:[m.jsxs("h1",{className:"text-dark text-xl font-semibold flex items-center gap-2",children:[a?.name,m.jsx("span",{className:"bg-primary_light text-primary text-xs rounded px-[7px] h-5 flex items-center capitalize",children:a?.item_type?.name})]}),m.jsx("div",{className:"flex gap-2",children:i.map((e,t)=>m.jsxs("p",{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[m.jsxs("span",{className:"text-dark",children:[e.tag,":"]})," ",e.value," ",t<2&&"|"]},t))})]}),m.jsx("div",{className:"flex gap-3"})]}),m.jsx(yS,{data:a}),m.jsx(KC,{tabs:u}),1===s?m.jsx(qC,{data:a}):null]})})}function XC({children:e,isOpen:t,onClose:n,title:r,className:o}){return m.jsx(oC,{open:t,onOpenChange:n,children:m.jsxs(sC,{className:Ko("p-0 gap-4 max-h-[90vh] overflow-auto",o),children:[m.jsx(lC,{className:"sr-only",children:"Modal Component"}),m.jsx(uC,{className:"sr-only",children:"This is a modal component"}),r?m.jsxs("div",{className:"sticky top-0 bg-inherit flex flex-col gap-4 pt-5 z-10",children:[m.jsxs("div",{className:"flex justify-between items-center px-5",children:[m.jsx("h1",{className:"text-dark font-medium text-lg",children:r}),m.jsx("button",{className:"w-6 h-6",onClick:n,children:M.cloneElement(Jy.close2,{fill:"black"})})]}),m.jsx(gS,{})]}):null,e]})})}var ZC="-ms-",JC="-moz-",ek="-webkit-",tk="comm",nk="rule",rk="decl",ok="@keyframes",ak=Math.abs,ik=String.fromCharCode,sk=Object.assign;function lk(e){return e.trim()}function uk(e,t){return(e=t.exec(e))?e[0]:e}function ck(e,t,n){return e.replace(t,n)}function dk(e,t,n){return e.indexOf(t,n)}function fk(e,t){return 0|e.charCodeAt(t)}function pk(e,t,n){return e.slice(t,n)}function hk(e){return e.length}function mk(e){return e.length}function gk(e,t){return t.push(e),e}function yk(e,t){return e.filter(function(e){return!uk(e,t)})}var vk=1,bk=1,wk=0,xk=0,Sk=0,Ck="";function kk(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:vk,column:bk,length:i,return:"",siblings:s}}function _k(e,t){return sk(kk("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ek(e){for(;e.root;)e=_k(e.root,{children:[e]});gk(e,e.siblings)}function jk(){return Sk=xk>0?fk(Ck,--xk):0,bk--,10===Sk&&(bk=1,vk--),Sk}function Ok(){return Sk=xk<wk?fk(Ck,xk++):0,bk++,10===Sk&&(bk=1,vk++),Sk}function Nk(){return fk(Ck,xk)}function Rk(){return xk}function Pk(e,t){return pk(Ck,e,t)}function Tk(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Dk(e){return lk(Pk(xk-1,Ak(91===e?e+2:40===e?e+1:e)))}function Mk(e){for(;(Sk=Nk())&&Sk<33;)Ok();return Tk(e)>2||Tk(Sk)>3?"":" "}function Ik(e,t){for(;--t&&Ok()&&!(Sk<48||Sk>102||Sk>57&&Sk<65||Sk>70&&Sk<97););return Pk(e,Rk()+(t<6&&32==Nk()&&32==Ok()))}function Ak(e){for(;Ok();)switch(Sk){case e:return xk;case 34:case 39:34!==e&&39!==e&&Ak(Sk);break;case 40:41===e&&Ak(e);break;case 92:Ok()}return xk}function Fk(e,t){for(;Ok()&&e+Sk!==57&&(e+Sk!==84||47!==Nk()););return"/*"+Pk(t,xk-1)+"*"+ik(47===e?e:Ok())}function Lk(e){for(;!Tk(Nk());)Ok();return Pk(e,xk)}function zk(e){return function(e){return Ck="",e}($k("",null,null,null,[""],e=function(e){return vk=bk=1,wk=hk(Ck=e),xk=0,[]}(e),0,[0],e))}function $k(e,t,n,r,o,a,i,s,l){for(var u=0,c=0,d=i,f=0,p=0,h=0,m=1,g=1,y=1,v=0,b="",w=o,x=a,S=r,C=b;g;)switch(h=v,v=Ok()){case 40:if(108!=h&&58==fk(C,d-1)){-1!=dk(C+=ck(Dk(v),"&","&\f"),"&\f",ak(u?s[u-1]:0))&&(y=-1);break}case 34:case 39:case 91:C+=Dk(v);break;case 9:case 10:case 13:case 32:C+=Mk(h);break;case 92:C+=Ik(Rk()-1,7);continue;case 47:switch(Nk()){case 42:case 47:gk(Vk(Fk(Ok(),Rk()),t,n,l),l);break;default:C+="/"}break;case 123*m:s[u++]=hk(C)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==y&&(C=ck(C,/\f/g,"")),p>0&&hk(C)-d&&gk(p>32?Bk(C+";",r,n,d-1,l):Bk(ck(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(gk(S=Hk(C,t,n,u,c,o,s,b,w=[],x=[],d,a),a),123===v)if(0===c)$k(C,t,S,S,w,a,d,s,x);else switch(99===f&&110===fk(C,3)?100:f){case 100:case 108:case 109:case 115:$k(e,S,S,r&&gk(Hk(e,S,S,0,0,o,s,b,o,w=[],d,x),x),o,x,d,s,r?w:x);break;default:$k(C,S,S,S,[""],x,0,s,x)}}u=c=p=0,m=y=1,b=C="",d=i;break;case 58:d=1+hk(C),p=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==jk())continue;switch(C+=ik(v),v*m){case 38:y=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(hk(C)-1)*y,y=1;break;case 64:45===Nk()&&(C+=Dk(Ok())),f=Nk(),c=d=hk(b=C+=Lk(Rk())),v++;break;case 45:45===h&&2==hk(C)&&(m=0)}}return a}function Hk(e,t,n,r,o,a,i,s,l,u,c,d){for(var f=o-1,p=0===o?a:[""],h=mk(p),m=0,g=0,y=0;m<r;++m)for(var v=0,b=pk(e,f+1,f=ak(g=i[m])),w=e;v<h;++v)(w=lk(g>0?p[v]+" "+b:ck(b,/&\f/g,p[v])))&&(l[y++]=w);return kk(e,t,n,0===o?nk:s,l,u,c,d)}function Vk(e,t,n,r){return kk(e,t,n,tk,ik(Sk),pk(e,2,-2),0,r)}function Bk(e,t,n,r,o){return kk(e,t,n,rk,pk(e,0,r),pk(e,r+1,-1),r,o)}function Uk(e,t,n){switch(function(e,t){return 45^fk(e,0)?(((t<<2^fk(e,0))<<2^fk(e,1))<<2^fk(e,2))<<2^fk(e,3):0}(e,t)){case 5103:return ek+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ek+e+e;case 4789:return JC+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ek+e+JC+e+ZC+e+e;case 5936:switch(fk(e,t+11)){case 114:return ek+e+ZC+ck(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ek+e+ZC+ck(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ek+e+ZC+ck(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ek+e+ZC+e+e;case 6165:return ek+e+ZC+"flex-"+e+e;case 5187:return ek+e+ck(e,/(\w+).+(:[^]+)/,ek+"box-$1$2"+ZC+"flex-$1$2")+e;case 5443:return ek+e+ZC+"flex-item-"+ck(e,/flex-|-self/g,"")+(uk(e,/flex-|baseline/)?"":ZC+"grid-row-"+ck(e,/flex-|-self/g,""))+e;case 4675:return ek+e+ZC+"flex-line-pack"+ck(e,/align-content|flex-|-self/g,"")+e;case 5548:return ek+e+ZC+ck(e,"shrink","negative")+e;case 5292:return ek+e+ZC+ck(e,"basis","preferred-size")+e;case 6060:return ek+"box-"+ck(e,"-grow","")+ek+e+ZC+ck(e,"grow","positive")+e;case 4554:return ek+ck(e,/([^-])(transform)/g,"$1"+ek+"$2")+e;case 6187:return ck(ck(ck(e,/(zoom-|grab)/,ek+"$1"),/(image-set)/,ek+"$1"),e,"")+e;case 5495:case 3959:return ck(e,/(image-set\([^]*)/,ek+"$1$`$1");case 4968:return ck(ck(e,/(.+:)(flex-)?(.*)/,ek+"box-pack:$3"+ZC+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ek+e+e;case 4200:if(!uk(e,/flex-|baseline/))return ZC+"grid-column-align"+pk(e,t)+e;break;case 2592:case 3360:return ZC+ck(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,uk(e.props,/grid-\w+-end/)})?~dk(e+(n=n[t].value),"span",0)?e:ZC+ck(e,"-start","")+e+ZC+"grid-row-span:"+(~dk(n,"span",0)?uk(n,/\d+/):+uk(n,/\d+/)-+uk(e,/\d+/))+";":ZC+ck(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return uk(e.props,/grid-\w+-start/)})?e:ZC+ck(ck(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ck(e,/(.+)-inline(.+)/,ek+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(hk(e)-1-t>6)switch(fk(e,t+1)){case 109:if(45!==fk(e,t+4))break;case 102:return ck(e,/(.+:)(.+)-([^]+)/,"$1"+ek+"$2-$3$1"+JC+(108==fk(e,t+3)?"$3":"$2-$3"))+e;case 115:return~dk(e,"stretch",0)?Uk(ck(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ck(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,o,a,i,s){return ZC+n+":"+r+s+(o?ZC+n+"-span:"+(a?i:+i-+r)+s:"")+e});case 4949:if(121===fk(e,t+6))return ck(e,":",":"+ek)+e;break;case 6444:switch(fk(e,45===fk(e,14)?18:11)){case 120:return ck(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ek+(45===fk(e,14)?"inline-":"")+"box$3$1"+ek+"$2$3$1"+ZC+"$2box$3")+e;case 100:return ck(e,":",":"+ZC)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ck(e,"scroll-","scroll-snap-")+e}return e}function Wk(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Yk(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case rk:return e.return=e.return||e.value;case tk:return"";case ok:return e.return=e.value+"{"+Wk(e.children,r)+"}";case nk:if(!hk(e.value=e.props.join(",")))return""}return hk(n=Wk(e.children,r))?e.return=e.value+"{"+n+"}":""}function qk(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case rk:return void(e.return=Uk(e.value,e.length,n));case ok:return Wk([_k(e,{value:ck(e.value,"@","@"+ek)})],r);case nk:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(uk(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ek(_k(e,{props:[ck(t,/:(read-\w+)/,":-moz-$1")]})),Ek(_k(e,{props:[t]})),sk(e,{props:yk(n,r)});break;case"::placeholder":Ek(_k(e,{props:[ck(t,/:(plac\w+)/,":"+ek+"input-$1")]})),Ek(_k(e,{props:[ck(t,/:(plac\w+)/,":-moz-$1")]})),Ek(_k(e,{props:[ck(t,/:(plac\w+)/,ZC+"input-$1")]})),Ek(_k(e,{props:[t]})),sk(e,{props:yk(n,r)})}return""})}}var Gk={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Kk="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Qk="active",Xk="data-styled-version",Zk="6.1.19",Jk="/*!sc*/\n",e_="undefined"!=typeof window&&"undefined"!=typeof document,t_=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),n_=Object.freeze([]),r_=Object.freeze({});var o_=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),a_=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,i_=/(^-|-$)/g;function s_(e){return e.replace(a_,"-").replace(i_,"")}var l_=/(a)(d)/gi,u_=function(e){return String.fromCharCode(e+(e>25?39:97))};function c_(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=u_(t%52)+n;return(u_(t%52)+n).replace(l_,"$1-$2")}var d_,f_=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},p_=function(e){return f_(5381,e)};function h_(e){return c_(p_(e)>>>0)}function m_(e){return"string"==typeof e&&!0}var g_="function"==typeof Symbol&&Symbol.for,y_=g_?Symbol.for("react.memo"):60115,v_=g_?Symbol.for("react.forward_ref"):60112,b_={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},w_={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},x_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},S_=((d_={})[v_]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},d_[y_]=x_,d_);function C_(e){return("type"in(t=e)&&t.type.$$typeof)===y_?x_:"$$typeof"in e?S_[e.$$typeof]:b_;var t}var k_=Object.defineProperty,__=Object.getOwnPropertyNames,E_=Object.getOwnPropertySymbols,j_=Object.getOwnPropertyDescriptor,O_=Object.getPrototypeOf,N_=Object.prototype;function R_(e,t,n){if("string"!=typeof t){if(N_){var r=O_(t);r&&r!==N_&&R_(e,r,n)}var o=__(t);E_&&(o=o.concat(E_(t)));for(var a=C_(e),i=C_(t),s=0;s<o.length;++s){var l=o[s];if(!(l in w_||n&&n[l]||i&&l in i||a&&l in a)){var u=j_(t,l);try{k_(e,l,u)}catch(e){}}}}return e}function P_(e){return"function"==typeof e}function T_(e){return"object"==typeof e&&"styledComponentId"in e}function D_(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function M_(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function I_(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function A_(e,t,n){if(void 0===n&&(n=!1),!n&&!I_(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=A_(e[r],t[r]);else if(I_(t))for(var r in t)e[r]=A_(e[r],t[r]);return e}function F_(e,t){Object.defineProperty(e,"toString",{value:t})}function L_(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var z_=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw L_(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var a=r;a<o;a++)this.groupSizes[a]=0}for(var i=this.indexOfGroup(e+1),s=(a=0,t.length);a<s;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,a=r;a<o;a++)t+="".concat(this.tag.getRule(a)).concat(Jk);return t},e}(),$_=new Map,H_=new Map,V_=1,B_=function(e){if($_.has(e))return $_.get(e);for(;H_.has(V_);)V_++;var t=V_++;return $_.set(e,t),H_.set(t,e),t},U_=function(e,t){V_=t+1,$_.set(e,t),H_.set(t,e)},W_="style[".concat(Kk,"][").concat(Xk,'="').concat(Zk,'"]'),Y_=new RegExp("^".concat(Kk,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),q_=function(e,t,n){for(var r,o=n.split(","),a=0,i=o.length;a<i;a++)(r=o[a])&&e.registerName(t,r)},G_=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Jk),o=[],a=0,i=r.length;a<i;a++){var s=r[a].trim();if(s){var l=s.match(Y_);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(U_(c,u),q_(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},K_=function(e){for(var t=document.querySelectorAll(W_),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Kk)!==Qk&&(G_(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Q_=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Kk,"]")));return t[t.length-1]}(n),a=void 0!==o?o.nextSibling:null;r.setAttribute(Kk,Qk),r.setAttribute(Xk,Zk);var i="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return i&&r.setAttribute("nonce",i),n.insertBefore(r,a),r},X_=function(){function e(e){this.element=Q_(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw L_(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Z_=function(){function e(e){this.element=Q_(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),J_=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),eE=e_,tE={isServer:!e_,useCSSOMInjection:!t_},nE=function(){function e(e,t,n){void 0===e&&(e=r_),void 0===t&&(t={});var r=this;this.options=Fl(Fl({},tE),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&e_&&eE&&(eE=!1,K_(this)),F_(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return H_.get(e)}(n);if(void 0===o)return"continue";var a=e.names.get(o),i=t.getGroup(n);if(void 0===a||!a.size||0===i.length)return"continue";var s="".concat(Kk,".g").concat(n,'[id="').concat(o,'"]'),l="";void 0!==a&&a.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),r+="".concat(i).concat(s,'{content:"').concat(l,'"}').concat(Jk)},a=0;a<n;a++)o(a);return r}(r)})}return e.registerId=function(e){return B_(e)},e.prototype.rehydrate=function(){!this.server&&e_&&K_(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Fl(Fl({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new J_(n):t?new X_(n):new Z_(n)}(this.options),new z_(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(B_(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(B_(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(B_(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),rE=/&/g,oE=/^\s*\/\/.*$/gm;function aE(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=aE(e.children,t)),e})}var iE=new nE,sE=function(){var e,t,n,r=r_,o=r.options,a=void 0===o?r_:o,i=r.plugins,s=void 0===i?n_:i,l=function(n,r,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):n},u=s.slice();u.push(function(e){e.type===nk&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(rE,t).replace(n,l))}),a.prefix&&u.push(qk),u.push(Yk);var c=function(r,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),e=s,t=o,n=new RegExp("\\".concat(t,"\\b"),"g");var l=r.replace(oE,""),c=zk(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(c=aE(c,a.namespace));var d,f=[];return Wk(c,function(e){var t=mk(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}(u.concat((d=function(e){return f.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),f};return c.hash=s.length?s.reduce(function(e,t){return t.name||L_(15),f_(e,t.name)},5381).toString():"",c}(),lE=M.createContext({shouldForwardProp:void 0,styleSheet:iE,stylis:sE});function uE(){return D.useContext(lE)}lE.Consumer,M.createContext(void 0);var cE=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=sE);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,F_(this,function(){throw L_(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=sE),this.name+e.hash},e}(),dE=function(e){return e>="A"&&e<="Z"};function fE(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;dE(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var pE=function(e){return null==e||!1===e||""===e},hE=function(e){var t,n,r=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!pE(a)&&(Array.isArray(a)&&a.isCss||P_(a)?r.push("".concat(fE(o),":"),a,";"):I_(a)?r.push.apply(r,zl(zl(["".concat(o," {")],hE(a),!1),["}"],!1)):r.push("".concat(fE(o),": ").concat((t=o,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Gk||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function mE(e,t,n,r){return pE(e)?[]:T_(e)?[".".concat(e.styledComponentId)]:P_(e)?!P_(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:mE(e(t),t,n,r):e instanceof cE?n?(e.inject(n,r),[e.getName(r)]):[e]:I_(e)?hE(e):Array.isArray(e)?Array.prototype.concat.apply(n_,e.map(function(e){return mE(e,t,n,r)})):[e.toString()];var o}var gE=p_(Zk),yE=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(P_(n)&&!T_(n))return!1}return!0}(e),this.componentId=t,this.baseHash=f_(gE,t),this.baseStyle=n,nE.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=D_(r,this.staticRulesId);else{var o=M_(mE(this.rules,e,t,n)),a=c_(f_(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,a)){var i=n(o,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,i)}r=D_(r,a),this.staticRulesId=a}else{for(var s=f_(this.baseHash,n.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=M_(mE(c,e,t,n));s=f_(s,d+u),l+=d}}if(l){var f=c_(s>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),r=D_(r,f)}}return r},e}(),vE=M.createContext(void 0);vE.Consumer;var bE={};function wE(e,t,n){var r=T_(e),o=e,a=!m_(e),i=t.attrs,s=void 0===i?n_:i,l=t.componentId,u=void 0===l?function(e,t){var n="string"!=typeof e?"sc":s_(e);bE[n]=(bE[n]||0)+1;var r="".concat(n,"-").concat(h_(Zk+n+bE[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return m_(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,f=t.displayName&&t.componentId?"".concat(s_(t.displayName),"-").concat(t.componentId):t.componentId||u,p=r&&o.attrs?o.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(r&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(e,t){return m(e,t)&&g(e,t)}}else h=m}var y=new yE(n,f,r?o.componentStyle:void 0);function v(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,a=e.defaultProps,i=e.foldedComponentIds,s=e.styledComponentId,l=e.target,u=M.useContext(vE),c=uE(),d=e.shouldForwardProp||c.shouldForwardProp,f=function(e,t,n){return void 0===n&&(n=r_),e.theme!==n.theme&&e.theme||t||n.theme}(t,u,a)||r_,p=function(e,t,n){for(var r,o=Fl(Fl({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var i=P_(r=e[a])?r(o):r;for(var s in i)o[s]="className"===s?D_(o[s],i[s]):"style"===s?Fl(Fl({},o[s]),i[s]):i[s]}return t.className&&(o.className=D_(o.className,t.className)),o}(r,t,f),h=p.as||l,m={};for(var g in p)void 0===p[g]||"$"===g[0]||"as"===g||"theme"===g&&p.theme===f||("forwardedAs"===g?m.as=p.forwardedAs:d&&!d(g,h)||(m[g]=p[g]));var y=function(e,t){var n=uE();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,p),v=D_(i,s);return y&&(v+=" "+y),p.className&&(v+=" "+p.className),m[m_(h)&&!o_.has(h)?"class":"className"]=v,n&&(m.ref=n),D.createElement(h,m)}(b,e,t)}v.displayName=d;var b=M.forwardRef(v);return b.attrs=p,b.componentStyle=y,b.displayName=d,b.shouldForwardProp=h,b.foldedComponentIds=r?D_(o.foldedComponentIds,o.styledComponentId):"",b.styledComponentId=f,b.target=r?o.target:e,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)A_(e,o[r],!0);return e}({},o.defaultProps,e):e}}),F_(b,function(){return".".concat(b.styledComponentId)}),a&&R_(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function xE(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var SE=function(e){return Object.assign(e,{isCss:!0})};function CE(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(P_(e)||I_(e))return SE(mE(xE(n_,zl([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?mE(r):SE(mE(xE(r,t)))}function kE(e,t,n){if(void 0===n&&(n=r_),!t)throw L_(1,t);var r=function(r){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,CE.apply(void 0,zl([r],o,!1)))};return r.attrs=function(r){return kE(e,t,Fl(Fl({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return kE(e,t,Fl(Fl({},n),r))},r}var _E=function(e){return kE(wE,e)},EE=_E;function jE(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=M_(CE.apply(void 0,zl([e],t,!1))),o=h_(r);return new cE(o,r)}o_.forEach(function(e){EE[e]=_E(e)});const OE={"aria-busy":!0,role:"progressbar"},NE=EE.div`
|
|
142
|
-
display: ${e=>e.$visible?"flex":"none"};
|
|
143
|
-
`,RE=242.776657104492,PE=jE`
|
|
144
|
-
12.5% {
|
|
145
|
-
stroke-dasharray: ${33.98873199462888}px, ${RE}px;
|
|
146
|
-
stroke-dashoffset: -${26.70543228149412}px;
|
|
147
|
-
}
|
|
148
|
-
43.75% {
|
|
149
|
-
stroke-dasharray: ${84.97182998657219}px, ${RE}px;
|
|
150
|
-
stroke-dashoffset: -${84.97182998657219}px;
|
|
151
|
-
}
|
|
152
|
-
100% {
|
|
153
|
-
stroke-dasharray: ${2.42776657104492}px, ${RE}px;
|
|
154
|
-
stroke-dashoffset: -${240.34889053344708}px;
|
|
155
|
-
}
|
|
156
|
-
`;EE.path`
|
|
157
|
-
stroke-dasharray: ${2.42776657104492}px, ${RE};
|
|
158
|
-
stroke-dashoffset: 0;
|
|
159
|
-
animation: ${PE} ${1.6}s linear infinite;
|
|
160
|
-
`;const TE=jE`
|
|
161
|
-
to {
|
|
162
|
-
transform: rotate(360deg);
|
|
163
|
-
}
|
|
164
|
-
`;EE.svg`
|
|
165
|
-
animation: ${TE} 0.75s steps(12, end) infinite;
|
|
166
|
-
animation-duration: 0.75s;
|
|
167
|
-
`,EE.polyline`
|
|
168
|
-
stroke-width: ${e=>e.width}px;
|
|
169
|
-
stroke-linecap: round;
|
|
170
|
-
|
|
171
|
-
&:nth-child(12n + 0) {
|
|
172
|
-
stroke-opacity: 0.08;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
&:nth-child(12n + 1) {
|
|
176
|
-
stroke-opacity: 0.17;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
&:nth-child(12n + 2) {
|
|
180
|
-
stroke-opacity: 0.25;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
&:nth-child(12n + 3) {
|
|
184
|
-
stroke-opacity: 0.33;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
&:nth-child(12n + 4) {
|
|
188
|
-
stroke-opacity: 0.42;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
&:nth-child(12n + 5) {
|
|
192
|
-
stroke-opacity: 0.5;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
&:nth-child(12n + 6) {
|
|
196
|
-
stroke-opacity: 0.58;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
&:nth-child(12n + 7) {
|
|
200
|
-
stroke-opacity: 0.66;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
&:nth-child(12n + 8) {
|
|
204
|
-
stroke-opacity: 0.75;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
&:nth-child(12n + 9) {
|
|
208
|
-
stroke-opacity: 0.83;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
&:nth-child(12n + 11) {
|
|
212
|
-
stroke-opacity: 0.92;
|
|
213
|
-
}
|
|
214
|
-
`;const DE=({height:e=80,width:t=80,radius:n=9,color:r="#4fa94d",ariaLabel:o="three-dots-loading",wrapperStyle:a,wrapperClass:i,visible:s=!0})=>m.jsx(NE,{style:a,$visible:s,className:i,"data-testid":"three-dots-loading","aria-label":o,...OE,children:m.jsxs("svg",{width:t,height:e,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:r,"data-testid":"three-dots-svg",children:[m.jsxs("circle",{cx:"15",cy:"15",r:Number(n)+6,children:[m.jsx("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),m.jsx("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})]}),m.jsxs("circle",{cx:"60",cy:"15",r:n,attributeName:"fill-opacity",from:"1",to:"0.3",children:[m.jsx("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),m.jsx("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})]}),m.jsxs("circle",{cx:"105",cy:"15",r:Number(n)+6,children:[m.jsx("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),m.jsx("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})]})]})}),ME=jE`
|
|
215
|
-
to {
|
|
216
|
-
stroke-dashoffset: 136;
|
|
217
|
-
}
|
|
218
|
-
`;function IE({label:e,left_addon:t,right_addon:n,className:r,disabled:o,loading:a,mode:i="contained",onClick:s,type:l,loaderColor:u="#fff",...c}){return m.jsx("button",{onClick:s,className:Ko(("contained"===i?"bg-primary hover:bg-button h-[38px] px-3 text-white":"text-primary hover:text-button bg-transparent")+" flex gap-[5px] transition ease-in items-center justify-center font-semibold cursor-pointer text-[13px] rounded-md disabled:opacity-70 disabled:cursor-not-allowed",r),disabled:o??a,type:l,...c,children:a?m.jsx(DE,{visible:!0,height:"40",width:"40",color:u,radius:"9",ariaLabel:"three-dots-loading"}):m.jsxs(m.Fragment,{children:[t,m.jsx("span",{className:"first-letter:uppercase",children:e}),n]})})}function AE({isOpen:e,onClose:t,uuids:n,single:r=!1}){const o=En(),{mutate:a,isPending:i}=ex();return m.jsxs(XC,{isOpen:e,onClose:t,className:"w-[440px] py-5",children:[m.jsxs("div",{className:"px-5 flex gap-4",children:[m.jsx("span",{className:"shrink-0 w-10 h-10 flex items-center justify-center rounded-[10px] bg-red_light",children:M.cloneElement(Jy.error,{fill:"#DF1C41"})}),m.jsxs("div",{className:"space-y-1",children:[m.jsxs("h1",{className:"text-[#0A0D14] font-semibold capitalize",children:["delete ",r?"item":"items"]}),m.jsxs("p",{className:"text-[#525866] text-sm font-normal",children:["Are you sure you want to delete"," ",r?"this item":"these items","? Some sales data will be lost if you delete ",r?"this item":"these items","."]})]})]}),m.jsx(gS,{}),m.jsxs("div",{className:"grid grid-cols-2 gap-2.5 px-5",children:[m.jsx(IE,{label:"Dismiss",className:"bg-[#F1F1F2] text-[#181C32] hover:bg-[#F1F1F2]/90",onClick:t,disabled:i}),m.jsx(IE,{label:"Delete",className:"bg-danger hover:bg-danger/90",onClick:()=>{a({url:"/items/delete",payload:{item_uuids:n}},{onSuccess:()=>{o.invalidateQueries({queryKey:["items"]}),o.invalidateQueries({queryKey:["items-tab"]}),t()}})},loading:i})]})]})}function FE(e,[t,n]){return Math.min(n,Math.max(t,e))}EE.polygon`
|
|
219
|
-
stroke-dasharray: 17;
|
|
220
|
-
animation: ${ME} 2.5s cubic-bezier(0.35, 0.04, 0.63, 0.95) infinite;
|
|
221
|
-
`,EE.svg`
|
|
222
|
-
transform-origin: 50% 65%;
|
|
223
|
-
`;var LE=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});D.forwardRef((e,t)=>m.jsx(ba.span,{...e,ref:t,style:{...LE,...e.style}})).displayName="VisuallyHidden";var zE=[" ","Enter","ArrowUp","ArrowDown"],$E=[" ","Enter"],HE="Select",[VE,BE,UE]=xa(HE),[WE]=sa(HE,[UE,Bs]),YE=Bs(),[qE,GE]=WE(HE),[KE,QE]=WE(HE),XE=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:l,dir:u,name:c,autoComplete:d,disabled:f,required:p,form:h}=e,g=YE(t),[y,v]=D.useState(null),[b,w]=D.useState(null),[x,S]=D.useState(!1),C=Ca(u),[k,_]=da({prop:r,defaultProp:o??!1,onChange:a,caller:HE}),[E,j]=da({prop:i,defaultProp:s,onChange:l,caller:HE}),O=D.useRef(null),N=!y||(h||!!y.closest("form")),[R,P]=D.useState(new Set),T=Array.from(R).map(e=>e.props.value).join(";");return m.jsx(al,{...g,children:m.jsxs(qE,{required:p,scope:t,trigger:y,onTriggerChange:v,valueNode:b,onValueNodeChange:w,valueNodeHasChildren:x,onValueNodeHasChildrenChange:S,contentId:Ka(),value:E,onValueChange:j,open:k,onOpenChange:_,dir:C,triggerPointerDownPosRef:O,disabled:f,children:[m.jsx(VE.Provider,{scope:t,children:m.jsx(KE,{scope:e.__scopeSelect,onNativeOptionAdd:D.useCallback(e=>{P(t=>new Set(t).add(e))},[]),onNativeOptionRemove:D.useCallback(e=>{P(t=>{const n=new Set(t);return n.delete(e),n})},[]),children:n})}),N?m.jsxs(Fj,{"aria-hidden":!0,required:p,tabIndex:-1,name:c,autoComplete:d,value:E,onChange:e=>j(e.target.value),disabled:f,form:h,children:[void 0===E?m.jsx("option",{value:""}):null,Array.from(R)]},T):null]})})};XE.displayName=HE;var ZE="SelectTrigger",JE=D.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=YE(n),i=GE(ZE,n),s=i.disabled||r,l=ia(t,i.onTriggerChange),u=BE(n),c=D.useRef("touch"),[d,f,p]=zj(e=>{const t=u().filter(e=>!e.disabled),n=t.find(e=>e.value===i.value),r=$j(t,e,n);void 0!==r&&i.onValueChange(r.value)}),h=e=>{s||(i.onOpenChange(!0),p()),e&&(i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return m.jsx(il,{asChild:!0,...a,children:m.jsx(ba.button,{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":Lj(i.value)?"":void 0,...o,ref:l,onClick:ra(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==c.current&&h(e)}),onPointerDown:ra(o.onPointerDown,e=>{c.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(h(e),e.preventDefault())}),onKeyDown:ra(o.onKeyDown,e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||f(e.key),t&&" "===e.key||zE.includes(e.key)&&(h(),e.preventDefault())})})})});JE.displayName=ZE;var ej="SelectValue",tj=D.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...s}=e,l=GE(ej,n),{onValueNodeHasChildrenChange:u}=l,c=void 0!==a,d=ia(t,l.onValueNodeChange);return ua(()=>{u(c)},[u,c]),m.jsx(ba.span,{...s,ref:d,style:{pointerEvents:"none"},children:Lj(l.value)?m.jsx(m.Fragment,{children:i}):a})});tj.displayName=ej;var nj=D.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return m.jsx(ba.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});nj.displayName="SelectIcon";var rj=e=>m.jsx(ul,{asChild:!0,...e});rj.displayName="SelectPortal";var oj="SelectContent",aj=D.forwardRef((e,t)=>{const n=GE(oj,e.__scopeSelect),[r,o]=D.useState();if(ua(()=>{o(new DocumentFragment)},[]),!n.open){const t=r;return t?fa.createPortal(m.jsx(sj,{scope:e.__scopeSelect,children:m.jsx(VE.Slot,{scope:e.__scopeSelect,children:m.jsx("div",{children:e.children})})}),t):null}return m.jsx(cj,{...e,ref:t})});aj.displayName=oj;var ij=10,[sj,lj]=WE(oj),uj=ha("SelectContent.RemoveScroll"),cj=D.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:g,avoidCollisions:y,...v}=e,b=GE(oj,n),[w,x]=D.useState(null),[S,C]=D.useState(null),k=ia(t,e=>x(e)),[_,E]=D.useState(null),[j,O]=D.useState(null),N=BE(n),[R,P]=D.useState(!1),T=D.useRef(!1);D.useEffect(()=>{if(w)return Al(w)},[w]),Ia();const M=D.useCallback(e=>{const[t,...n]=N().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(const n of e){if(n===o)return;if(n?.scrollIntoView({block:"nearest"}),n===t&&S&&(S.scrollTop=0),n===r&&S&&(S.scrollTop=S.scrollHeight),n?.focus(),document.activeElement!==o)return}},[N,S]),I=D.useCallback(()=>M([_,w]),[M,_,w]);D.useEffect(()=>{R&&I()},[R,I]);const{onOpenChange:A,triggerPointerDownPosRef:F}=b;D.useEffect(()=>{if(w){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(F.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(F.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():w.contains(n.target)||A(!1),document.removeEventListener("pointermove",t),F.current=null};return null!==F.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[w,A,F]),D.useEffect(()=>{const e=()=>A(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[A]);const[L,z]=zj(e=>{const t=N().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=$j(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),$=D.useCallback((e,t,n)=>{const r=!T.current&&!n;(void 0!==b.value&&b.value===t||r)&&(E(e),r&&(T.current=!0))},[b.value]),H=D.useCallback(()=>w?.focus(),[w]),V=D.useCallback((e,t,n)=>{const r=!T.current&&!n;(void 0!==b.value&&b.value===t||r)&&O(e)},[b.value]),B="popper"===r?fj:dj,U=B===fj?{side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:g,avoidCollisions:y}:{};return m.jsx(sj,{scope:n,content:w,viewport:S,onViewportChange:C,itemRefCallback:$,selectedItem:_,onItemLeave:H,itemTextRefCallback:V,focusSelectedItem:I,selectedItemText:j,position:r,isPositioned:R,searchRef:L,children:m.jsx(ku,{as:uj,allowPinchZoom:!0,children:m.jsx($a,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:ra(o,e=>{b.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:m.jsx(Ra,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:m.jsx(B,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault(),...v,...U,onPlaced:()=>P(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:ra(v.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=N().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(()=>M(t)),e.preventDefault()}})})})})})})});cj.displayName="SelectContentImpl";var dj=D.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=GE(oj,n),i=lj(oj,n),[s,l]=D.useState(null),[u,c]=D.useState(null),d=ia(t,e=>c(e)),f=BE(n),p=D.useRef(!1),h=D.useRef(!0),{viewport:g,selectedItem:y,selectedItemText:v,focusSelectedItem:b}=i,w=D.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&u&&g&&y&&v){const e=a.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),o=v.getBoundingClientRect();if("rtl"!==a.dir){const r=o.left-t.left,a=n.left-r,i=e.left-a,l=e.width+i,u=Math.max(l,t.width),c=window.innerWidth-ij,d=FE(a,[ij,Math.max(ij,c-u)]);s.style.minWidth=l+"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,l=e.width+i,u=Math.max(l,t.width),c=window.innerWidth-ij,d=FE(a,[ij,Math.max(ij,c-u)]);s.style.minWidth=l+"px",s.style.right=d+"px"}const i=f(),l=window.innerHeight-2*ij,c=g.scrollHeight,d=window.getComputedStyle(u),h=parseInt(d.borderTopWidth,10),m=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),w=h+m+c+parseInt(d.paddingBottom,10)+b,x=Math.min(5*y.offsetHeight,w),S=window.getComputedStyle(g),C=parseInt(S.paddingTop,10),k=parseInt(S.paddingBottom,10),_=e.top+e.height/2-ij,E=l-_,j=y.offsetHeight/2,O=h+m+(y.offsetTop+j),N=w-O;if(O<=_){const e=i.length>0&&y===i[i.length-1].ref.current;s.style.bottom="0px";const t=u.clientHeight-g.offsetTop-g.offsetHeight,n=O+Math.max(E,j+(e?k:0)+t+b);s.style.height=n+"px"}else{const e=i.length>0&&y===i[0].ref.current;s.style.top="0px";const t=Math.max(_,h+g.offsetTop+(e?C:0)+j)+N;s.style.height=t+"px",g.scrollTop=O-_+g.offsetTop}s.style.margin=`${ij}px 0`,s.style.minHeight=x+"px",s.style.maxHeight=l+"px",r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,u,g,y,v,a.dir,r]);ua(()=>w(),[w]);const[x,S]=D.useState();ua(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);const C=D.useCallback(e=>{e&&!0===h.current&&(w(),b?.(),h.current=!1)},[w,b]);return m.jsx(pj,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:C,children:m.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:x},children:m.jsx(ba.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});dj.displayName="SelectItemAlignedPosition";var fj=D.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=ij,...a}=e,i=YE(n);return m.jsx(sl,{...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)"}})});fj.displayName="SelectPopperPosition";var[pj,hj]=WE(oj,{}),mj="SelectViewport",gj=D.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=lj(mj,n),i=hj(mj,n),s=ia(t,a.onViewportChange),l=D.useRef(0);return m.jsxs(m.Fragment,{children:[m.jsx("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}"},nonce:r}),m.jsx(VE.Slot,{scope:n,children:m.jsx(ba.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ra(o.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if(r?.current&&n){const e=Math.abs(l.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*ij,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")}}}l.current=t.scrollTop})})})]})});gj.displayName=mj;var yj="SelectGroup",[vj,bj]=WE(yj);D.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ka();return m.jsx(vj,{scope:n,id:o,children:m.jsx(ba.div,{role:"group","aria-labelledby":o,...r,ref:t})})}).displayName=yj;var wj="SelectLabel",xj=D.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=bj(wj,n);return m.jsx(ba.div,{id:o.id,...r,ref:t})});xj.displayName=wj;var Sj="SelectItem",[Cj,kj]=WE(Sj),_j=D.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,s=GE(Sj,n),l=lj(Sj,n),u=s.value===r,[c,d]=D.useState(a??""),[f,p]=D.useState(!1),h=ia(t,e=>l.itemRefCallback?.(e,r,o)),g=Ka(),y=D.useRef("touch"),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 m.jsx(Cj,{scope:n,value:r,disabled:o,textId:g,isSelected:u,onItemTextChange:D.useCallback(e=>{d(t=>t||(e?.textContent??"").trim())},[]),children:m.jsx(VE.ItemSlot,{scope:n,value:r,disabled:o,textValue:c,children:m.jsx(ba.div,{role:"option","aria-labelledby":g,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:h,onFocus:ra(i.onFocus,()=>p(!0)),onBlur:ra(i.onBlur,()=>p(!1)),onClick:ra(i.onClick,()=>{"mouse"!==y.current&&v()}),onPointerUp:ra(i.onPointerUp,()=>{"mouse"===y.current&&v()}),onPointerDown:ra(i.onPointerDown,e=>{y.current=e.pointerType}),onPointerMove:ra(i.onPointerMove,e=>{y.current=e.pointerType,o?l.onItemLeave?.():"mouse"===y.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ra(i.onPointerLeave,e=>{e.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:ra(i.onKeyDown,e=>{""!==l.searchRef?.current&&" "===e.key||($E.includes(e.key)&&v()," "===e.key&&e.preventDefault())})})})})});_j.displayName=Sj;var Ej="SelectItemText",jj=D.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=GE(Ej,n),s=lj(Ej,n),l=kj(Ej,n),u=QE(Ej,n),[c,d]=D.useState(null),f=ia(t,e=>d(e),l.onItemTextChange,e=>s.itemTextRefCallback?.(e,l.value,l.disabled)),p=c?.textContent,h=D.useMemo(()=>m.jsx("option",{value:l.value,disabled:l.disabled,children:p},l.value),[l.disabled,l.value,p]),{onNativeOptionAdd:g,onNativeOptionRemove:y}=u;return ua(()=>(g(h),()=>y(h)),[g,y,h]),m.jsxs(m.Fragment,{children:[m.jsx(ba.span,{id:l.textId,...a,ref:f}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?fa.createPortal(a.children,i.valueNode):null]})});jj.displayName=Ej;var Oj="SelectItemIndicator",Nj=D.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return kj(Oj,n).isSelected?m.jsx(ba.span,{"aria-hidden":!0,...r,ref:t}):null});Nj.displayName=Oj;var Rj="SelectScrollUpButton",Pj=D.forwardRef((e,t)=>{const n=lj(Rj,e.__scopeSelect),r=hj(Rj,e.__scopeSelect),[o,a]=D.useState(!1),i=ia(t,r.onScrollButtonChange);return ua(()=>{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?m.jsx(Mj,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});Pj.displayName=Rj;var Tj="SelectScrollDownButton",Dj=D.forwardRef((e,t)=>{const n=lj(Tj,e.__scopeSelect),r=hj(Tj,e.__scopeSelect),[o,a]=D.useState(!1),i=ia(t,r.onScrollButtonChange);return ua(()=>{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?m.jsx(Mj,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});Dj.displayName=Tj;var Mj=D.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=lj("SelectScrollButton",n),i=D.useRef(null),s=BE(n),l=D.useCallback(()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)},[]);return D.useEffect(()=>()=>l(),[l]),ua(()=>{const e=s().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[s]),m.jsx(ba.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:ra(o.onPointerDown,()=>{null===i.current&&(i.current=window.setInterval(r,50))}),onPointerMove:ra(o.onPointerMove,()=>{a.onItemLeave?.(),null===i.current&&(i.current=window.setInterval(r,50))}),onPointerLeave:ra(o.onPointerLeave,()=>{l()})})}),Ij=D.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return m.jsx(ba.div,{"aria-hidden":!0,...r,ref:t})});Ij.displayName="SelectSeparator";var Aj="SelectArrow";D.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=YE(n),a=GE(Aj,n),i=lj(Aj,n);return a.open&&"popper"===i.position?m.jsx(ll,{...o,...r,ref:t}):null}).displayName=Aj;var Fj=D.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=D.useRef(null),a=ia(r,o),i=function(e){const t=D.useRef({value:e,previous:e});return D.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(t);return D.useEffect(()=>{const e=o.current;if(!e)return;const n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,"value").set;if(i!==t&&r){const n=new Event("change",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[i,t]),m.jsx(ba.select,{...n,style:{...LE,...n.style},ref:a,defaultValue:t})});function Lj(e){return""===e||void 0===e}function zj(e){const t=ka(e),n=D.useRef(""),r=D.useRef(0),o=D.useCallback(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=D.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return D.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function $j(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0]),o=r?t[0]:t,a=n?e.indexOf(n):-1;let i=(s=e,l=Math.max(a,0),s.map((e,t)=>s[(l+t)%s.length]));var s,l;1===o.length&&(i=i.filter(e=>e!==n));const u=i.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}Fj.displayName="SelectBubbleInput";var Hj=JE,Vj=nj,Bj=rj,Uj=aj,Wj=gj,Yj=xj,qj=_j,Gj=jj,Kj=Nj,Qj=Pj,Xj=Dj,Zj=Ij;const Jj=XE,eO=tj,tO=D.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(Hj,{ref:r,className:Ko("flex h-10 w-full items-center hover:border-[#BFD7FE] justify-between rounded-md border focus:border-primary border-neutral-200 bg-white px-3 py-2 text-sm ring-offset-white placeholder:text-neutral-500 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 ",e),...n,children:[t,m.jsx(Vj,{asChild:!0,children:m.jsx(Rd,{className:"h-4 w-4 opacity-50"})})]}));tO.displayName=Hj.displayName;const nO=D.forwardRef(({className:e,...t},n)=>m.jsx(Qj,{ref:n,className:Ko("flex cursor-default items-center justify-center py-1",e),...t,children:m.jsx(Td,{className:"h-4 w-4"})}));nO.displayName=Qj.displayName;const rO=D.forwardRef(({className:e,...t},n)=>m.jsx(Xj,{ref:n,className:Ko("flex cursor-default items-center justify-center py-1",e),...t,children:m.jsx(Rd,{className:"h-4 w-4"})}));rO.displayName=Xj.displayName;const oO=D.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>m.jsx(Bj,{children:m.jsxs(Uj,{ref:o,className:Ko("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white text-neutral-950 shadow-md 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 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50","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:[m.jsx(nO,{}),m.jsx(Wj,{className:Ko("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),m.jsx(rO,{})]})}));oO.displayName=Uj.displayName;D.forwardRef(({className:e,...t},n)=>m.jsx(Yj,{ref:n,className:Ko("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t})).displayName=Yj.displayName;const aO=D.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(qj,{ref:r,className:Ko("relative flex w-full select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-primary/20 cursor-pointer focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",e),...n,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(Kj,{children:m.jsx(Nd,{className:"h-4 w-4"})})}),m.jsx(Gj,{children:t})]}));aO.displayName=qj.displayName;function iO({label:e,addonLabel:t,type:n,placeholder:r,selectPlaceholder:o,error:a,success:i,value:s,defaultValue:l,name:u,id:c,formik:d,onChange:f,inputRef:p,onBlur:h,required:g,disabled:y,loading:v,showError:b,selectOptions:w,disableSearch:x,searchSelectPlaceholder:S,showSelectSearch:C,onSelectValueChange:k,selectValue:_,showOutline:E=!0,cols:j,rows:O,labelClass:N,addonLabelClass:R,optional:P,info:T,addonInfo:M,icon:I,actionIcon:A,actionLabel:F,actionLabelInfo:L,actionLabelAction:z,className:$,textAreaOnChange:H,addOn:V,infoAlignment:B,addonInfoAlignment:U,inputContainerClass:W,showNegative:Y,showPositive:q,...G}){const[K,Q]=D.useState(n),[X,Z]=D.useState(!1),[J,ee]=D.useState(""),te=((e,t)=>{const n=e?.filter(e=>"string"==typeof e.label?e.label?.toLowerCase().includes(t.toLowerCase()):e.value?.toLowerCase().includes(t.toLowerCase())||e?.searchId?.toLowerCase().includes(t.toLowerCase()));return t?n:e})(w??[],J);return m.jsx(m.Fragment,{children:v?m.jsx(na,{className:"w-full h-[48px]"}):m.jsx("div",{className:"w-full",children:m.jsxs("div",{className:`flex flex-col ${e&&"gap-2.5"} relative `,children:[m.jsxs("div",{className:"flex justify-between gap-2 flex-wrap",children:[t&&m.jsxs("label",{className:Ko("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",R),children:[t," ",g?m.jsx("span",{className:"text-[#E12D39]",children:t&&"*"}):P?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,M&&m.jsx(kv,{fieldName:t,align:U,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:M})})]}),e&&m.jsxs("label",{className:Ko("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",N),children:[e," ",g?m.jsx("span",{className:"text-[#E12D39]",children:e&&"*"}):P?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,T&&m.jsx(kv,{fieldName:e,align:B,children:m.jsx("p",{className:"font-normal first-letter:uppercase w-full whitespace-pre-wrap",children:T})})]}),F&&m.jsxs("button",{onClick:z,className:"text-primary flex items-center gap-1 first-letter:uppercase text-sm font-bold",children:[A,F,L&&m.jsx(kv,{fieldName:e,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:L})})]})]}),m.jsxs("div",{className:Ko(`border overflow-hidden rounded-md text-sm border-[#E1E3EA] hover:border-primary_light font-normal text-grey-950 flex gap-2 items-center bg-white px-3 ${"text-area"!==n&&"h-[48px]"} ${(a||b)&&"!border-danger"} ${i&&"!border-success"} ${X&&E&&"!border-primary"}\n ${I&&"px-2"}\n ${V&&"px-0"}\n `,y?"cursor-not-allowed bg-gray-200":null,w?"px-0":null,W),children:[V&&m.jsx("span",{className:"bg-gray-200 text-[13px] font-semibold text-gray-700 h-full min-w-[38px] flex items-center justify-center shrink-0 rounded-l-[6px] px-2 ",children:V}),I,w&&m.jsxs(Jj,{onValueChange:k,defaultValue:_,value:_,children:[m.jsx(tO,{disabled:x,className:" min-w-max w-max h-full border-0 border-r rounded-none hover:border-neutral-200 focus:border-neutral-200 bg-[#F9F9F9] hover:border-b-neutral-200 disabled:opacity-100 ",children:m.jsx(eO,{className:" text-sm text-[#5E6278] placeholder:font-medium outline-none",placeholder:o})}),m.jsxs(oO,{className:"bg-white w-full relative",children:[C&&m.jsx("input",{value:J,onChange:e=>{ee(e.target.value.toString())},placeholder:S??"Search...",className:"h-10 border mb-2 text-sm px-4 outline-none w-full border-neutral-200 rounded bg-white sticky top-0 z-20"}),te?.map((e,t)=>m.jsx(aO,{className:"text-sm",value:e.value,children:e.label},e.value))]})]}),"text-area"===n?m.jsx("textarea",{cols:j,rows:O,onFocus:()=>Z(!0),onBlur:e=>{Z(!1)},placeholder:r,className:Ko(`placeholder:text-[#7E8299] hover:border-primary_light py-2 h-full placeholder:font-medium outline-none w-full rounded ${y?"bg-[#EEEFF2] cursor-not-allowed":null} ${X&&E&&"!border-primary"} transition-all ease-in-out`,$),...G,value:s,name:u,onChange:H}):m.jsx("input",{onInput:e=>{const t=e.target;"number"===n&&(t.value=t.value.replace(/[^0-9.]/g,""),t.value=t.value.replace(/^\.|(\..*)\./g,"$1"),t.value.length>1&&t.value.startsWith("0")&&"."!==t.value[1]&&(t.value=t.value.replace(/^0+/,"")),""!==t.value&&"0"!==t.value||(t.value="0"))},type:"number"===K?"text":K,placeholder:r,className:Ko("placeholder:text-[#7E8299] h-full placeholder:font-medium outline-none w-full rounded disabled:cursor-not-allowed",w&&"number"===n?"pr-2":null,I||V?"pr-0":null,w&&"number"===n&&t&&"text-right pr-2",$,q&&"0"!==s?.toString().trim()?"text-green-600 font-semibold":"",Y&&s?.toString().trim().startsWith("-")?"text-red-600 font-semibold":""),onFocus:()=>Z(!0),onBlur:e=>{d&&h&&d&&h(e),Z(!1)},value:s||"",defaultValue:l,onChange:f,id:c,name:u,required:g,disabled:y,ref:p,...G}),"password"===n&&m.jsx("span",{className:"cursor-pointer",onClick:()=>{Q(e=>"password"===e?"text":"password")},children:"password"===K?Jy.eyeslash:Jy.eye})]}),a&&m.jsx("p",{className:"text-danger text-xs font-normal",children:a})]})})})}function sO({value:e,label:t,placeholder:n,uuid:r,name:o,displayValue:a,valueType:i,item_unit:s}){const{mutate:l,isPending:u}=ex();J();const[c,d]=D.useState(!1),[f,p]=D.useState({item_uuid:r,[o]:e});En();const[h,g]=D.useState("");return m.jsxs($C,{open:c,onOpenChange:d,children:[m.jsx(HC,{className:"flex items-center",children:m.jsx("button",{className:"hover:text-primary duration-150 underline disabled:no-underline disabled:hover:text-inherit",children:h?"selling_price"===o?rv(+h):ov(+h)+s:a})}),m.jsxs(VC,{align:"center",className:"shadow-[0_1px_2px_0px_#E4E5E73D,_0_12px_24px_0_#868C981F] space-y-2 bg-white rounded-xl p-3 w-[280px] relative before:absolute before:w-3 before:h-1.5 before:bg-white before:left-1/2 before:-translate-x-1/2 before:rotate-45 data-[side=bottom]:before:top-0 data-[side=top]:before:bottom-0",children:[m.jsx(iO,{type:i,value:f[o],label:t,placeholder:n,onChange:e=>{p(t=>({...t,[o]:e.target.value}))}}),m.jsxs("div",{className:"flex justify-end gap-2.5",children:[m.jsx(AC,{children:m.jsx(IE,{label:"Dismiss",className:"bg-gray-300 text-dark text-sm hover:bg-gray-300/90 font-medium",disabled:u})}),m.jsx(IE,{label:"Update",className:"text-sm font-medium",onClick:()=>{l({url:"/items/update_basic",payload:f},{onSuccess:()=>{g(f[o]),d(!1)},onError:()=>{g("")}})},loading:u})]})]})]})}D.forwardRef(({className:e,...t},n)=>m.jsx(Zj,{ref:n,className:Ko("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800",e),...t})).displayName=Zj.displayName;const lO=[{accessorKey:"item_description",header:()=>m.jsxs("p",{children:[" ","Item description/ ",m.jsx("br",{})," Product code"," "]}),cell:({row:e})=>{const t=e.original;return m.jsxs("div",{className:"flex items-center gap-5",children:[m.jsx("div",{className:"w-[50px] h-[50px] rounded-2xl relative bg-gray-100",children:m.jsx("img",{src:t.item_image,alt:"item image",className:"rounded-2xl object-cover w-full h-full",draggable:!1})}),m.jsxs("div",{className:"space-y-1 max-w-[265px]",children:[m.jsx(cO,{title:t.item_description,item_uuid:t.uuid,item_type_id:t.item_type_id,data:t.fullData}),m.jsxs("p",{className:"text-dark text-xs font-normal flex items-center gap-1",children:[m.jsx("span",{className:"uppercase whitespace-nowrap",children:t.itemcode}),t.sku||t.barcode.length>0?m.jsx(kv,{align:"center",fieldName:"All item codes",trigger:m.jsxs("button",{className:"rounded bg-primary_light px-[5px] flex items-center text-primary font-semibold text-[11px] h-[18px]",children:["+",(t.barcode?.length||0)+(t.sku?1:0)]}),children:m.jsxs("div",{className:"space-y-2",children:[t.sku?m.jsxs("div",{className:"",children:[m.jsx("p",{children:" SKU:"}),m.jsx("ul",{className:"list-disc pl-4",children:m.jsx("li",{children:t.sku})})]}):null,t.barcode.length>0?m.jsxs("div",{children:[m.jsx("p",{children:"Barcodes:"}),m.jsx("ul",{className:"list-disc pl-4 ",children:t.barcode.map((e,t)=>m.jsx("li",{children:e.barcode},t))})]}):null,m.jsxs("div",{className:"",children:[m.jsx("p",{children:" Itemcode:"}),m.jsx("ul",{className:"list-disc pl-4",children:m.jsx("li",{children:t.itemcode})})]})]})}):null,t.expired?m.jsxs(m.Fragment,{children:[m.jsx("span",{children:"|"}),"Expired",m.jsx("span",{className:"rounded bg-danger_light px-[5px] flex items-center text-danger font-semibold text-[11px] h-[18px]",children:t.expired})]}):null,t.expiring?m.jsxs(m.Fragment,{children:[m.jsx("span",{children:"|"}),"Expiring",m.jsx("span",{className:"rounded bg-warning-light px-[5px] flex items-center text-warning font-semibold text-[11px] h-[18px]",children:t.expiring})]}):null]})]})]})}},{accessorKey:"quantity",header:()=>m.jsx("p",{children:"quantity"}),cell:({row:e})=>{const t=e.original;return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:Ko("flex items-center",t.quantity<=0?"text-danger":Number(t.reorder_level)==t.quantity?"text-orange":null),children:m.jsx(sO,{label:"Edit item quantity",placeholder:"Enter quantity",uuid:t.uuid,name:"item_quantity",displayValue:ov(t.quantity)+t.unit,value:t.quantity,valueType:"number",item_unit:t.unit})}),t.all_quantity===t.quantity?null:m.jsx("p",{className:"text-gray-700",children:Intl.NumberFormat().format(t.all_quantity??0)+t.unit})]})}},{accessorKey:"type",cell:({row:e})=>{const t=e.original;return m.jsx("p",{className:"capitalize",children:t.type})}},{accessorKey:"selling_price",header:"Selling Price (₦)",cell:({row:e})=>{const t=e.original;return m.jsx(sO,{label:"Edit selling price (₦)",placeholder:"Enter selling price",uuid:t.uuid,name:"selling_price",displayValue:rv(t.selling_price??0),value:t.selling_price??0,valueType:"number"})}},{accessorKey:"categories",header:"categories/Tags",cell:({row:e})=>{const t=e.original;return m.jsxs(m.Fragment,{children:[" ",m.jsxs("div",{className:"flex items-center gap-2 capitalize",children:[t.categories&&t.categories?.length>0?t.categories?.[0]?.name:"...",t.categories.length>1?m.jsx(kv,{align:"center",fieldName:"Categories",trigger:m.jsxs("button",{className:"rounded bg-primary_light px-[5px] flex items-center text-primary font-semibold text-[11px] h-[18px]",children:["+",t.categories.length-1]}),children:m.jsx("ul",{className:"list-disc pl-4",children:t.categories.map((e,t)=>m.jsx("li",{children:e.name},t))})}):null]}),m.jsxs("div",{className:"text-gray-700 flex items-center gap-2 capitalize",children:[t.tags?.[0],t.tags?.length>1?m.jsx(kv,{align:"center",fieldName:"Tags",trigger:m.jsxs("button",{className:"rounded bg-primary_light px-[5px] flex items-center text-primary font-semibold text-[11px] h-[18px] border-primary",children:["+",t.tags.length-1]}),children:m.jsx("ul",{className:"list-disc pl-4",children:t.tags.map((e,t)=>m.jsx("li",{children:e},t))})}):null]})]})}},{accessorKey:"status",cell:({row:e})=>{const t=e.getValue("status");return m.jsx(_v,{status:t})}},{id:"actions",header:"actions",cell:({row:e})=>{const t=e.original;return m.jsx(uO,{item_uuid:t.uuid,item_type_id:t.item_type_id,data:t.fullData})}}],uO=({item_uuid:e,item_type_id:t,data:n})=>{const[r,o]=D.useState(null),a=()=>{o(null)},[i,s]=D.useState(!1),[l,u]=D.useState(!1),[c,d]=D.useState(!1),[f,p]=D.useState(!1),[h,g]=D.useState(!1),[y,v]=D.useState(!1),[b,w]=D.useState(!1),x=[{label:"view",icon:Jy.eye_outline,action:()=>s(!0)},{label:"delete",icon:Jy.trash,action:()=>p(!0)}];return m.jsxs(m.Fragment,{children:[m.jsxs(Fd,{children:[m.jsx(Ld,{asChild:!0,children:m.jsxs("button",{className:"bg-gray-100 rounded-md h-[30px] w-[90px] flex items-center justify-between p-2.5 font-semibold text-[10px] text-gray-500 hover:border duration-200",children:["Action"," ",m.jsx("svg",{width:"11",height:"6",viewBox:"0 0 11 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M5.50855 5.49304C5.42081 5.49355 5.33383 5.47673 5.25261 5.44356C5.17138 5.41038 5.09751 5.3615 5.03521 5.29971L1.03521 1.29971C0.972726 1.23773 0.92313 1.164 0.889284 1.08276C0.855438 1.00152 0.838013 0.914383 0.838013 0.826375C0.838013 0.738367 0.855438 0.65123 0.889284 0.56999C0.92313 0.488751 0.972726 0.415017 1.03521 0.353041C1.16012 0.228874 1.32909 0.15918 1.50521 0.15918C1.68134 0.15918 1.8503 0.228874 1.97521 0.353041L5.50855 3.88637L9.03521 0.353041C9.16012 0.228874 9.32909 0.15918 9.50521 0.15918C9.68134 0.15918 9.8503 0.228874 9.97521 0.353041C10.0377 0.415017 10.0873 0.488751 10.1211 0.56999C10.155 0.65123 10.1724 0.738367 10.1724 0.826375C10.1724 0.914383 10.155 1.00152 10.1211 1.08276C10.0873 1.164 10.0377 1.23773 9.97521 1.29971L5.97521 5.29971C5.85104 5.42287 5.68344 5.4923 5.50855 5.49304Z",fill:"#202125"})})]})}),m.jsx(zd,{align:"end",className:"flex flex-col gap-2.5 rounded-xl border-gray-200",children:x.map((e,t)=>m.jsxs($d,{className:`capitalize focus:bg-primary_light rounded-md focus:text-primary font-semibold text-gray-700 text-sm cursor-pointer px-[15px] flex items-center gap-[5px] ${t===x.length-1&&"text-danger focus:text-danger"}`,onMouseOver:()=>(e=>{o(e)})(t),onMouseOut:a,onClick:e.action,children:[M.cloneElement(e.icon,{fill:r===t?"#1868DB":"#5E6278"})," ",e.label]},t))})]}),m.jsx(QC,{isOpen:i,onClose:()=>s(!1),itemUUID:e}),m.jsx(AE,{isOpen:f,onClose:()=>p(!1),uuids:[e],single:!0})]})},cO=({title:e,item_uuid:t,item_type_id:n,data:r})=>{const[o,a]=D.useState(!1),[i,s]=D.useState(!1),[l,u]=D.useState(!1);return m.jsxs(m.Fragment,{children:[m.jsx("button",{className:Ko("text-primary font-bold text-sm first-letter:uppercase truncate max-w-[265px] cursor-pointer",r.expired?"text-danger":""),title:e,onClick:()=>a(!0),children:e}),m.jsx(QC,{isOpen:o,onClose:()=>a(!1),itemUUID:t})]})};var dO,fO={};function pO(){if(dO)return fO;function e(t){return e="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(t)}dO=1,Object.defineProperty(fO,"__esModule",{value:!0}),fO.Collapse=void 0;var t,n=(t=f())&&t.__esModule?t:{default:t};function r(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function a(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,o=s(t);if(n){var a=s(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return i(t)}(this,r)}}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(s,e);var t=a(s);function s(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),l(i(n=t.call(this,e)),"timeout",void 0),l(i(n),"container",void 0),l(i(n),"content",void 0),l(i(n),"onResize",function(){if(clearTimeout(n.timeout),n.container&&n.content){var e=n.props,t=e.isOpened,r=e.checkTimeout,o=Math.floor(n.container.clientHeight),a=Math.floor(n.content.clientHeight),i=t&&Math.abs(a-o)<=1,s=!t&&Math.abs(o)<=1;i||s?n.onRest({isFullyOpened:i,isFullyClosed:s,isOpened:t,containerHeight:o,contentHeight:a}):(n.onWork({isFullyOpened:i,isFullyClosed:s,isOpened:t,containerHeight:o,contentHeight:a}),n.timeout=setTimeout(function(){return n.onResize()},r))}}),l(i(n),"onRest",function(e){var t=e.isFullyOpened,r=e.isFullyClosed,o=e.isOpened,a=e.containerHeight,i=e.contentHeight;if(n.container&&n.content){var s=o&&n.container.style.height==="".concat(i,"px"),l=!o&&"0px"===n.container.style.height;if(s||l){n.container.style.overflow=o?"initial":"hidden",n.container.style.height=o?"auto":"0px";var u=n.props.onRest;u&&u({isFullyOpened:t,isFullyClosed:r,isOpened:o,containerHeight:a,contentHeight:i})}}}),l(i(n),"onWork",function(e){var t=e.isFullyOpened,r=e.isFullyClosed,o=e.isOpened,a=e.containerHeight,i=e.contentHeight;if(n.container&&n.content){var s=o&&n.container.style.height==="".concat(i,"px"),l=!o&&"0px"===n.container.style.height;if(!s&&!l){n.container.style.overflow="hidden",n.container.style.height=o?"".concat(i,"px"):"0px";var u=n.props.onWork;u&&u({isFullyOpened:t,isFullyClosed:r,isOpened:o,containerHeight:a,contentHeight:i})}}}),l(i(n),"onRefContainer",function(e){n.container=e}),l(i(n),"onRefContent",function(e){n.content=e}),e.initialStyle?n.initialStyle=e.initialStyle:n.initialStyle=e.isOpened?{height:"auto",overflow:"initial"}:{height:"0px",overflow:"hidden"},n}return r(s,[{key:"componentDidMount",value:function(){this.onResize()}},{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.theme,r=t.isOpened;return t.children!==e.children||r!==e.isOpened||Object.keys(n).some(function(t){return n[t]!==e.theme[t]})}},{key:"getSnapshotBeforeUpdate",value:function(){if(!this.container||!this.content)return null;if("auto"===this.container.style.height){var e=this.content.clientHeight;this.container.style.height="".concat(e,"px")}return null}},{key:"componentDidUpdate",value:function(){this.onResize()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var e=this.props,t=e.theme,r=e.children,o=e.isOpened;return n.default.createElement("div",{ref:this.onRefContainer,className:t.collapse,style:this.initialStyle,"aria-hidden":!o},n.default.createElement("div",{ref:this.onRefContent,className:t.content},r))}}]),s}(n.default.Component);return fO.Collapse=u,l(u,"defaultProps",{theme:{collapse:"ReactCollapse--collapse",content:"ReactCollapse--content"},initialStyle:void 0,onRest:void 0,onWork:void 0,checkTimeout:50}),fO}var hO,mO,gO,yO={};function vO(){if(hO)return yO;function e(t){return e="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(t)}hO=1,Object.defineProperty(yO,"__esModule",{value:!0}),yO.UnmountClosed=void 0;var t,n=(t=f())&&t.__esModule?t:{default:t},r=pO(),o=["isOpened"],a=["isOpened"];function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function s(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,o=m(t);if(n){var a=m(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return h(t)}(this,r)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(s,e);var t=p(s);function s(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),g(h(n=t.call(this,e)),"onWork",function(e){var t=e.isOpened,r=u(e,o);n.setState({isResting:!1,isOpened:t});var a=n.props.onWork;a&&a(l({isOpened:t},r))}),g(h(n),"onRest",function(e){var t=e.isOpened,r=u(e,a);n.setState({isResting:!0,isOpened:t,isInitialRender:!1});var o=n.props.onRest;o&&o(l({isOpened:t},r))}),g(h(n),"getInitialStyle",function(){var e=n.state,t=e.isOpened;return e.isInitialRender&&t?{height:"auto",overflow:"initial"}:{height:"0px",overflow:"hidden"}}),n.state={isResting:!0,isOpened:e.isOpened,isInitialRender:!0},n}return c(s,[{key:"componentDidUpdate",value:function(e){var t=this.props.isOpened;e.isOpened!==t&&this.setState({isResting:!1,isOpened:t,isInitialRender:!1})}},{key:"render",value:function(){var e=this.state,t=e.isResting,o=e.isOpened;return t&&!o?null:n.default.createElement(r.Collapse,i({},this.props,{initialStyle:this.getInitialStyle(),onWork:this.onWork,onRest:this.onRest}))}}]),s}(n.default.PureComponent);return yO.UnmountClosed=y,g(y,"defaultProps",{onWork:void 0,onRest:void 0}),yO}var bO=function(){if(gO)return mO;gO=1;var e=pO().Collapse,t=vO().UnmountClosed;return mO=t,t.Collapse=e,t.UnmountClosed=t,mO}();function wO({loading:e,data:t,meta:n}){const r=t?.otherscount?.map(e=>{const n=e.name;return{type:n,value:t?.result_array?.[n]?.total_selling_price??0}}),o=[{type:t?.result_array?.Retail?.pricegroup??t?.default,value:t?.result_array?.Retail?.total_selling_price??0},...r||[]],a=t?.otherscount?.map(e=>{const n=e.name;return{type:n,value:t?.result_array?.[n]?.total_profit??0}}),i=[{type:t?.result_array?.Retail?.pricegroup??t?.default,value:t?.result_array?.Retail?.total_profit??0},...a||[]],[s,l]=D.useState({type:o?.[0].type,value:o?.[0].value}),[u,c]=D.useState({type:i?.[0].type,value:i?.[0].value});M.useEffect(()=>{l({type:o?.[0].type,value:o?.[0].value}),c({type:i?.[0].type,value:i?.[0].value})},[e]);const d=[{label:"Total No. of Unique Item",count:Intl.NumberFormat().format(n?.total??0),desc:`With ${t?.unit_count??0} unit(s)`,icon:m.jsx("div",{className:"shrink-0 rounded-lg bg-[#EFF5FF] w-12 h-12 flex items-center justify-center border border-[#EDEEF1]",children:Jy.cube})},{label:"Total Cost Price",count:rv(t?.result_array?.Retail?.total_cost??0),desc:"Takes into Account FIFO & LIFO ",icon:m.jsx("div",{className:"shrink-0 rounded-lg bg-[#F9DFDD] w-12 h-12 flex items-center justify-center border border-[#EDEEF1]",children:M.cloneElement(Jy.price_tag,{fill:"#ED7400"})})},{label:"Total Selling Price",count:rv(s.value),desc:m.jsxs("p",{className:"flex gap-2 items-center flex-wrap",children:["Showing ",s.type," price"," ",m.jsxs(Fd,{children:[m.jsx(Ld,{asChild:!0,children:m.jsxs("button",{className:"rounded-lg h-8 flex items-center justify-between p-3 font-semibold text-xs text-gray-600 outline-none border border-gray-300 gap-2.5 capitalize bg-[#F9F9F9]",children:["change",m.jsx("span",{className:"rotate-90",children:Jy.arrow})]})}),m.jsx(zd,{align:"start",className:"flex flex-col gap-2.5 rounded-xl border-gray-200 py-2.5 w-[210px]",children:o.map((e,t)=>m.jsx($d,{className:Ko("capitalize focus:bg-primary_light rounded-md focus:text-primary font-semibold text-sm cursor-pointer px-[15px] flex items-center gap-[5px] \n \n ",e.type===s.type?"bg-primary_light text-primary":null),onClick:()=>l(t=>({...t,value:e.value,type:e.type})),children:e.type},t))})]})]}),icon:m.jsx("div",{className:"shrink-0 rounded-lg bg-[#D8CDF4] w-12 h-12 flex items-center justify-center border border-[#EDEEF1]",children:M.cloneElement(Jy.price_tag,{fill:"#9747FF"})})},{label:"Profit to be made",count:rv(u.value),desc:m.jsxs("p",{className:"flex gap-2 items-center flex-wrap",children:["Showing ",u.type," price"," ",m.jsxs(Fd,{children:[m.jsx(Ld,{asChild:!0,children:m.jsxs("button",{className:"rounded-lg h-8 flex items-center justify-between p-3 font-semibold text-xs text-gray-600 outline-none border border-gray-300 gap-2.5 capitalize bg-[#F9F9F9]",children:["change",m.jsx("span",{className:"rotate-90",children:Jy.arrow})]})}),m.jsx(zd,{align:"start",className:"flex flex-col gap-2.5 rounded-xl border-gray-200 py-2.5 w-[210px]",children:i.map((e,t)=>m.jsx($d,{className:Ko("capitalize focus:bg-primary_light rounded-md focus:text-primary font-semibold text-sm cursor-pointer px-[15px] flex items-center gap-[5px] \n \n ",e.type===u.type?"bg-primary_light text-primary":null),onClick:()=>c(t=>({...t,value:e.value,type:e.type})),children:e.type},t))})]})]}),icon:m.jsx("div",{className:"shrink-0 rounded-lg bg-[#C6E3D2] w-12 h-12 flex items-center justify-center border border-[#EDEEF1]",children:M.cloneElement(Jy.price_tag,{fill:"#378C5A"})})}],[f,p]=D.useState(!1);return m.jsxs(tS,{className:"bg-[#F6F8FA] p-2.5 flex flex-col",children:[m.jsxs("div",{className:"flex justify-between",children:[m.jsx("h1",{className:"capitalize text-dark font-semibold text-lg",children:"Items overview"}),m.jsxs("button",{className:"rounded-lg h-8 flex items-center justify-between p-3 font-semibold text-xs text-gray-600 outline-none border border-gray-300 gap-2.5 capitalize bg-white",onClick:()=>p(!f),children:[f?"Close":"Open"," ",m.jsx("span",{className:"rotate-90",children:Jy.arrow})]})]}),m.jsx(bO.Collapse,{isOpened:f,children:m.jsx("div",{className:"flex flex-wrap gap-2.5 mt-3",children:d.map((t,n)=>m.jsxs("div",{className:Ko("border rounded-xl border-[#E4E7EC] p-4 flex flex-col relative bg-right-bottom bg-no-repeat flex-auto",0===n?"bg-[#E4EEFA] bg-[url('/assets/images/ecstacy1.svg')]":1===n?"bg-[#FAEAE9] bg-[url('/assets/images/ecstacy2.svg')]":2===n?"bg-[#EEE9FA] bg-[url('/assets/images/ecstacy3.svg')]":3===n?"bg-[#EBF5EF] bg-[url('/assets/images/ecstacy4.svg')]":null),children:[m.jsxs("div",{className:"flex justify-between gap-1",children:[m.jsx("h1",{className:"text-dark text-sm font-medium",children:t.label}),m.jsx("div",{className:"shrink-0",children:t.icon})]}),m.jsxs("div",{className:"flex flex-col gap-1",children:[e?m.jsx(na,{className:"w-28 h-6 rounded"}):m.jsx("h1",{className:Ko("text-dark font-bold text-[29px] truncate",n===d.length-1&&u.value<0?"text-danger":null),title:t.count,children:t.count}),m.jsx("div",{className:"text-gray-700 text-sm font-medium ",children:t.desc})]})]},n))})})]})}function xO({placeholder:e,className:t,inputClass:n,...r}){return m.jsxs("div",{className:Ko("h-12 border border-gray-300 rounded-md w-[320px] flex",t),children:[m.jsx("span",{className:"bg-gray-200 w-[38px] flex items-center justify-center shrink-0 rounded-l-[6px] ",children:Jy.magnifier}),m.jsx("input",{type:"search",placeholder:e,className:"w-full px-3 text-dark text-sm font-medium bg-transparent outline-none rounded-r-[6px]",...r})]})}function SO(e,t){return e===t}function CO(e,t,n){var r=SO,o=D.useRef(e),a=D.useState({})[1],i=function(e,t,n,r){var o=this,a=D.useRef(null),i=D.useRef(0),s=D.useRef(0),l=D.useRef(null),u=D.useRef([]),c=D.useRef(),d=D.useRef(),f=D.useRef(e),p=D.useRef(!0);f.current=e;var h="undefined"!=typeof window,m=!t&&0!==t&&h;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,y=!("trailing"in n)||!!n.trailing,v="maxWait"in n,b="debounceOnServer"in n&&!!n.debounceOnServer,w=v?Math.max(+n.maxWait||0,t):null;D.useEffect(function(){return p.current=!0,function(){p.current=!1}},[]);var x=D.useMemo(function(){var e=function(e){var t=u.current,n=c.current;return u.current=c.current=null,i.current=e,s.current=s.current||e,d.current=f.current.apply(n,t)},n=function(e,t){m&&cancelAnimationFrame(l.current),l.current=m?requestAnimationFrame(e):setTimeout(e,t)},x=function(e){if(!p.current)return!1;var n=e-a.current;return!a.current||n>=t||n<0||v&&e-i.current>=w},S=function(t){return l.current=null,y&&u.current?e(t):(u.current=c.current=null,d.current)},C=function e(){var r=Date.now();if(g&&s.current===i.current&&k(),x(r))return S(r);if(p.current){var o=t-(r-a.current),l=v?Math.min(o,w-(r-i.current)):o;n(e,l)}},k=function(){r&&r({})},_=function(){if(h||b){var r=Date.now(),s=x(r);if(u.current=[].slice.call(arguments),c.current=o,a.current=r,s){if(!l.current&&p.current)return i.current=a.current,n(C,t),g?e(a.current):d.current;if(v)return n(C,t),e(a.current)}return l.current||n(C,t),d.current}};return _.cancel=function(){var e=l.current;e&&(m?cancelAnimationFrame(l.current):clearTimeout(l.current)),i.current=0,u.current=a.current=c.current=l.current=null,e&&r&&r({})},_.isPending=function(){return!!l.current},_.flush=function(){return l.current?S(Date.now()):d.current},_},[g,v,t,w,y,m,h,b,r]);return x}(D.useCallback(function(e){o.current=e,a({})},[a]),t,n,a),s=D.useRef(e);return r(s.current,e)||(i(e),s.current=e),[o.current,i]}function kO({placeholder:e,searchPlaceholder:t,options:n=[],showMultiSelectValues:r=!0,values:o,onChange:a,className:i,showCheckMark:s=!0,label:l,labelClass:u,required:c,info:d,optional:f,actionLabel:p,actionLabelAction:h,actionLabelInfo:g,removeSelectedValue:y,removeTag:v,loading:b,showCount:w,error:x}){const[S,C]=D.useState(!1),[k,_]=D.useState(0),E=D.useRef(null);D.useEffect(()=>{const e=()=>{E.current&&_(E?.current?.offsetWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[E]);const j=e=>{const t=o?.includes(e)?o?.filter(t=>t!==e):[...o||[],e];a&&a(t)};D.useEffect(()=>{y&&j(y)},[y]);const[O,N]=D.useState(null),R=e=>{N(t=>t===e?null:e)},P=e=>{for(let t of n){if(t.value===e)return t.label;if(t.subOptions){const n=t.subOptions.find(t=>t.value===e);if(n)return n.label}}return null};return m.jsx("div",{ref:E,children:b?m.jsx(na,{className:"w-full h-[48px]"}):m.jsxs("div",{className:Ko("flex flex-col gap-2.5",i),children:[m.jsxs("div",{className:"flex justify-between gap-2 flex-wrap",children:[l&&m.jsxs("label",{className:Ko("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",u),children:[l," ",c?m.jsx("span",{className:"text-[#E12D39]",children:l&&"*"}):f?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,d&&m.jsx(kv,{fieldName:l,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:d})})]}),p&&m.jsxs("button",{onClick:h,className:"text-primary flex items-center gap-1 first-letter:uppercase text-sm font-medium",children:[p,g&&m.jsx(kv,{fieldName:l,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:g})})]})]}),m.jsxs($C,{modal:!0,open:S,onOpenChange:C,children:[m.jsx(HC,{asChild:!0,children:m.jsxs(UC,{variant:"outline",role:"combobox","aria-expanded":S,className:Ko(`w-full h-[48px] justify-between border focus:border-primary border-neutral-200 bg-white hover:bg-white hover:border-[#BFD7FE] ${x&&"!border-danger"}`,r?"h-auto py-3":null,i),children:[m.jsx("div",{className:"flex gap-2 text-[#5E6278] justify-start first-letter:uppercase flex-wrap",children:o?.length&&r?o.map((e,t)=>m.jsxs("div",{onClick:()=>{v||j(e),R(e)},className:"px-2 py-1 text-black flex items-center justify-between rounded gap-2 border bg-slate-200 text-xs font-medium",children:[m.jsx("span",{className:"flex justify-start text-start flex-wrap gap-2 whitespace-normal",children:P(e)}),m.jsx("span",{className:"",children:m.jsx("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M5.44001 4.49978L7.83334 2.12644C7.96064 1.99737 8.03146 1.82301 8.03021 1.64173C8.02896 1.46044 7.95575 1.28708 7.82667 1.15978C7.6976 1.03247 7.52324 0.961657 7.34196 0.962907C7.16067 0.964157 6.98731 1.03737 6.86001 1.16644L4.50001 3.55978L2.14001 1.21311C2.0151 1.08894 1.84613 1.01925 1.67001 1.01925C1.49388 1.01925 1.32492 1.08894 1.20001 1.21311C1.13752 1.27509 1.08793 1.34882 1.05408 1.43006C1.02023 1.5113 1.00281 1.59844 1.00281 1.68644C1.00281 1.77445 1.02023 1.86159 1.05408 1.94283C1.08793 2.02407 1.13752 2.0978 1.20001 2.15978L3.56001 4.49978L1.16667 6.87311C1.03937 7.00218 0.968554 7.17654 0.969804 7.35782C0.971054 7.53911 1.04427 7.71247 1.17334 7.83978C1.30241 7.96708 1.47677 8.0379 1.65805 8.03665C1.83934 8.0354 2.0127 7.96218 2.14001 7.83311L4.50001 5.43978L6.86001 7.78644C6.98492 7.91061 7.15388 7.98031 7.33001 7.98031C7.50613 7.98031 7.6751 7.91061 7.80001 7.78644C7.86249 7.72447 7.91209 7.65073 7.94594 7.56949C7.97978 7.48826 7.99721 7.40112 7.99721 7.31311C7.99721 7.2251 7.97978 7.13797 7.94594 7.05673C7.91209 6.97549 7.86249 6.90175 7.80001 6.83978L5.44001 4.49978Z",fill:"black"})})})]},t)):!r&&w&&o.length>0?`${o.length} ${l} selected`:e??"Select..."}),m.jsx(Dd,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),m.jsx(VC,{align:"start",style:{width:k},className:"w-[480px] p-0 bg-white rounded-xl border-gray-200",children:m.jsxs(cC,{children:[m.jsx(dC,{className:"placeholder:text-xs",placeholder:t??"Search..."}),m.jsx(pC,{children:"No result found."}),m.jsx(hC,{children:m.jsx(fC,{className:"",children:n?.map((e,t)=>m.jsxs("div",{children:[m.jsxs(mC,{value:"string"==typeof e.label?e.label:e.searchId,className:`first-letter:uppercase mb-1 focus:bg-primary_light w-full rounded-md focus:text-primary hover:text-primary font-semibold text-gray-700 text-sm cursor-pointer ${o?.includes(e.value)&&"bg-primary_light text-primary"}`,onSelect:()=>{j(e.value),e?.subOptions&&e?.subOptions?.length>0&&R(e.value)},children:[s&&m.jsx(Nd,{className:Ko("mr-2 h-4 w-4",o?.includes(e.value)?"opacity-100":"opacity-0")}),m.jsxs("p",{className:"flex justify-between w-full",children:[e.label,e?.subOptions&&e?.subOptions?.length>0&&m.jsx(Rd,{className:"ml-2 h-5 w-5 font-bold shrink-0 opacity-50"})]})]}),O===e.value&&e?.subOptions&&e?.subOptions?.map((e,t)=>m.jsxs(mC,{value:"string"==typeof e.label?e.label:e.searchId,className:`first-letter:uppercase mb-1 focus:bg-primary_light w-full rounded-md focus:text-primary hover:text-primary font-semibold text-gray-700 text-sm cursor-pointer pl-6 ${o?.includes(e.value)&&"bg-primary_light text-primary"}`,onSelect:()=>{j(e.value)},children:[s&&m.jsx(Nd,{className:Ko("mr-2 h-4 w-4",o?.includes(e.value)?"opacity-100":"opacity-0")}),e.label]},t))]},t))})})]})})]}),x&&m.jsx("p",{className:"text-danger text-xs font-normal",children:x})]})})}var _O="ScrollArea",[EO]=sa(_O),[jO,OO]=EO(_O),NO=D.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:a=600,...i}=e,[s,l]=D.useState(null),[u,c]=D.useState(null),[d,f]=D.useState(null),[p,h]=D.useState(null),[g,y]=D.useState(null),[v,b]=D.useState(0),[w,x]=D.useState(0),[S,C]=D.useState(!1),[k,_]=D.useState(!1),E=ia(t,e=>l(e)),j=Ca(o);return m.jsx(jO,{scope:n,type:r,dir:j,scrollHideDelay:a,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:h,scrollbarXEnabled:S,onScrollbarXEnabledChange:C,scrollbarY:g,onScrollbarYChange:y,scrollbarYEnabled:k,onScrollbarYEnabledChange:_,onCornerWidthChange:b,onCornerHeightChange:x,children:m.jsx(ba.div,{dir:j,...i,ref:E,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})})});NO.displayName=_O;var RO="ScrollAreaViewport",PO=D.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...a}=e,i=OO(RO,n),s=ia(t,D.useRef(null),i.onViewportChange);return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),m.jsx(ba.div,{"data-radix-scroll-area-viewport":"",...a,ref:s,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:m.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});PO.displayName=RO;var TO="ScrollAreaScrollbar",DO=D.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=OO(TO,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,s="horizontal"===e.orientation;return D.useEffect(()=>(s?a(!0):i(!0),()=>{s?a(!1):i(!1)}),[s,a,i]),"hover"===o.type?m.jsx(MO,{...r,ref:t,forceMount:n}):"scroll"===o.type?m.jsx(IO,{...r,ref:t,forceMount:n}):"auto"===o.type?m.jsx(AO,{...r,ref:t,forceMount:n}):"always"===o.type?m.jsx(FO,{...r,ref:t}):null});DO.displayName=TO;var MO=D.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=OO(TO,e.__scopeScrollArea),[a,i]=D.useState(!1);return D.useEffect(()=>{const e=o.scrollArea;let t=0;if(e){const n=()=>{window.clearTimeout(t),i(!0)},r=()=>{t=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[o.scrollArea,o.scrollHideDelay]),m.jsx(cl,{present:n||a,children:m.jsx(AO,{"data-state":a?"visible":"hidden",...r,ref:t})})}),IO=D.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=OO(TO,e.__scopeScrollArea),a="horizontal"===e.orientation,i=nN(()=>l("SCROLL_END"),100),[s,l]=function(e,t){return D.useReducer((e,n)=>t[e][n]??e,e)}("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return D.useEffect(()=>{if("idle"===s){const e=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[s,o.scrollHideDelay,l]),D.useEffect(()=>{const e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(l("SCROLL"),i()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[o.viewport,a,l,i]),m.jsx(cl,{present:n||"hidden"!==s,children:m.jsx(FO,{"data-state":"hidden"===s?"hidden":"visible",...r,ref:t,onPointerEnter:ra(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:ra(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),AO=D.forwardRef((e,t)=>{const n=OO(TO,e.__scopeScrollArea),{forceMount:r,...o}=e,[a,i]=D.useState(!1),s="horizontal"===e.orientation,l=nN(()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;i(s?e:t)}},10);return rN(n.viewport,l),rN(n.content,l),m.jsx(cl,{present:r||a,children:m.jsx(FO,{"data-state":a?"visible":"hidden",...o,ref:t})})}),FO=D.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=OO(TO,e.__scopeScrollArea),a=D.useRef(null),i=D.useRef(0),[s,l]=D.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=QO(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,hasThumb:Boolean(u>0&&u<1),onThumbChange:e=>a.current=e,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:e=>i.current=e};function d(e,t){return function(e,t,n,r="ltr"){const o=XO(n),a=o/2,i=t||a,s=o-i,l=n.scrollbar.paddingStart+i,u=n.scrollbar.size-n.scrollbar.paddingEnd-s,c=n.content-n.viewport,d="ltr"===r?[0,c]:[-1*c,0];return JO([l,u],d)(e)}(e,i.current,s,t)}return"horizontal"===n?m.jsx(LO,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const e=ZO(o.viewport.scrollLeft,s,o.dir);a.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollLeft=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollLeft=d(e,o.dir))}}):"vertical"===n?m.jsx(zO,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const e=ZO(o.viewport.scrollTop,s);a.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollTop=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollTop=d(e))}}):null}),LO=D.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=OO(TO,e.__scopeScrollArea),[i,s]=D.useState(),l=D.useRef(null),u=ia(t,l,a.onScrollbarXChange);return D.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),m.jsx(VO,{"data-orientation":"horizontal",...o,ref:u,sizes:n,style:{bottom:0,left:"rtl"===a.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===a.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":XO(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){const r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),eN(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&a.viewport&&i&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:KO(i.paddingLeft),paddingEnd:KO(i.paddingRight)}})}})}),zO=D.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=OO(TO,e.__scopeScrollArea),[i,s]=D.useState(),l=D.useRef(null),u=ia(t,l,a.onScrollbarYChange);return D.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),m.jsx(VO,{"data-orientation":"vertical",...o,ref:u,sizes:n,style:{top:0,right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":XO(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){const r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),eN(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&a.viewport&&i&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:KO(i.paddingTop),paddingEnd:KO(i.paddingBottom)}})}})}),[$O,HO]=EO(TO),VO=D.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,p=OO(TO,n),[h,g]=D.useState(null),y=ia(t,e=>g(e)),v=D.useRef(null),b=D.useRef(""),w=p.viewport,x=r.content-r.viewport,S=ka(c),C=ka(l),k=nN(d,10);function _(e){if(v.current){const t=e.clientX-v.current.left,n=e.clientY-v.current.top;u({x:t,y:n})}}return D.useEffect(()=>{const e=e=>{const t=e.target,n=h?.contains(t);n&&S(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[w,h,x,S]),D.useEffect(C,[r,C]),rN(h,k),rN(p.content,k),m.jsx($O,{scope:n,scrollbar:h,hasThumb:o,onThumbChange:ka(a),onThumbPointerUp:ka(i),onThumbPositionChange:C,onThumbPointerDown:ka(s),children:m.jsx(ba.div,{...f,ref:y,style:{position:"absolute",...f.style},onPointerDown:ra(e.onPointerDown,e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),v.current=h.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),_(e)}}),onPointerMove:ra(e.onPointerMove,_),onPointerUp:ra(e.onPointerUp,e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=b.current,p.viewport&&(p.viewport.style.scrollBehavior=""),v.current=null})})})}),BO="ScrollAreaThumb",UO=D.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=HO(BO,e.__scopeScrollArea);return m.jsx(cl,{present:n||o.hasThumb,children:m.jsx(WO,{ref:t,...r})})}),WO=D.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,a=OO(BO,n),i=HO(BO,n),{onThumbPositionChange:s}=i,l=ia(t,e=>i.onThumbChange(e)),u=D.useRef(void 0),c=nN(()=>{u.current&&(u.current(),u.current=void 0)},100);return D.useEffect(()=>{const e=a.viewport;if(e){const t=()=>{if(c(),!u.current){const t=tN(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[a.viewport,c,s]),m.jsx(ba.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:ra(e.onPointerDownCapture,e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;i.onThumbPointerDown({x:n,y:r})}),onPointerUp:ra(e.onPointerUp,i.onThumbPointerUp)})});UO.displayName=BO;var YO="ScrollAreaCorner",qO=D.forwardRef((e,t)=>{const n=OO(YO,e.__scopeScrollArea),r=Boolean(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?m.jsx(GO,{...e,ref:t}):null});qO.displayName=YO;var GO=D.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=OO(YO,n),[a,i]=D.useState(0),[s,l]=D.useState(0),u=Boolean(a&&s);return rN(o.scrollbarX,()=>{const e=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(e),l(e)}),rN(o.scrollbarY,()=>{const e=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(e),i(e)}),u?m.jsx(ba.div,{...r,ref:t,style:{width:a,height:s,position:"absolute",right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:0,...e.style}}):null});function KO(e){return e?parseInt(e,10):0}function QO(e,t){const n=e/t;return isNaN(n)?0:n}function XO(e){const t=QO(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function ZO(e,t,n="ltr"){const r=XO(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,s=a-r,l=FE(e,"ltr"===n?[0,i]:[-1*i,0]);return JO([0,i],[0,s])(l)}function JO(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function eN(e,t){return e>0&&e<t}var tN=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},i=n.left!==a.left,s=n.top!==a.top;(i||s)&&t(),n=a,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function nN(e,t){const n=ka(e),r=D.useRef(0);return D.useEffect(()=>()=>window.clearTimeout(r.current),[]),D.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function rN(e,t){const n=ka(t);ua(()=>{let t=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var oN=NO,aN=PO,iN=qO;const sN=D.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(oN,{ref:r,className:Ko("relative overflow-hidden",e),...n,children:[m.jsx(aN,{className:"h-full w-full rounded-[inherit]",children:t}),m.jsx(lN,{}),m.jsx(iN,{})]}));sN.displayName=oN.displayName;const lN=D.forwardRef(({className:e,orientation:t="vertical",...n},r)=>m.jsx(DO,{ref:r,orientation:t,className:Ko("flex touch-none select-none transition-colors","vertical"===t&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===t&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:m.jsx(UO,{className:"relative flex-1 rounded-full bg-neutral-200 dark:bg-neutral-800"})}));function uN({placeholder:e,searchPlaceholder:t,options:n=[],showMultiSelectValues:r=!0,values:o,onChange:a,className:i,showCheckMark:s=!0,label:l,labelClass:u,required:c,info:d,optional:f,actionLabel:p,actionLabelAction:h,actionLabelInfo:g,removeSelectedValue:y,removeTag:v,loading:b,showCount:w,error:x,showError:S,onChangeSearch:C,searching:k,contentStyle:_,disabled:E,searchValue:j}){const[O,N]=D.useState(!1),[R,P]=D.useState(0),T=D.useRef(null);D.useEffect(()=>{const e=()=>{T.current&&P(T?.current?.offsetWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const M=o?.filter(e=>""!==e),I=e=>{const t=M?.includes(e)?M?.filter(t=>t!==e):[...M||[],e];a&&a(t)};return D.useEffect(()=>{y&&I(y)},[y]),m.jsx(m.Fragment,{children:b?m.jsx(na,{className:"w-full h-[48px]"}):m.jsxs("div",{className:Ko("flex flex-col gap-2.5",i),children:[m.jsxs("div",{className:"flex justify-between gap-2 flex-wrap",children:[l&&m.jsxs("label",{className:Ko("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",u),children:[l," ",c?m.jsx("span",{className:"text-[#E12D39]",children:l&&"*"}):f?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,d&&m.jsx(kv,{fieldName:l,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:d})})]}),p&&m.jsxs("button",{onClick:h,className:"text-primary flex items-center gap-1 first-letter:uppercase text-sm font-medium",children:[p,g&&m.jsx(kv,{fieldName:p,children:m.jsx("p",{className:"font-normal first-letter:uppercase text-left",children:g})})]})]}),m.jsxs($C,{modal:!0,open:O,onOpenChange:N,children:[m.jsx(HC,{disabled:E,asChild:!0,children:m.jsxs(UC,{ref:T,variant:"outline",role:"combobox","aria-expanded":O,className:Ko(`w-full h-[48px] justify-between border focus:border-primary border-neutral-200 bg-white hover:bg-white hover:border-[#BFD7FE] ${(x||S)&&"!border-danger"}`,r?"h-auto py-3":null,i),children:[m.jsx("div",{className:"flex gap-2 text-[#5E6278] justify-start first-letter:uppercase flex-wrap",children:M?.length>0&&r?M?.map((e,t)=>m.jsxs("div",{onClick:()=>{!v&&I(e)},className:"px-2 py-1 text-black flex items-center justify-between rounded gap-2 border bg-slate-200 text-xs font-medium",children:[n?.[0].searchId?n?.find(t=>t.value===e)?.searchId:n?.find(t=>t.value===e)?.label,m.jsx("span",{className:"",children:m.jsx("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M5.44001 4.49978L7.83334 2.12644C7.96064 1.99737 8.03146 1.82301 8.03021 1.64173C8.02896 1.46044 7.95575 1.28708 7.82667 1.15978C7.6976 1.03247 7.52324 0.961657 7.34196 0.962907C7.16067 0.964157 6.98731 1.03737 6.86001 1.16644L4.50001 3.55978L2.14001 1.21311C2.0151 1.08894 1.84613 1.01925 1.67001 1.01925C1.49388 1.01925 1.32492 1.08894 1.20001 1.21311C1.13752 1.27509 1.08793 1.34882 1.05408 1.43006C1.02023 1.5113 1.00281 1.59844 1.00281 1.68644C1.00281 1.77445 1.02023 1.86159 1.05408 1.94283C1.08793 2.02407 1.13752 2.0978 1.20001 2.15978L3.56001 4.49978L1.16667 6.87311C1.03937 7.00218 0.968554 7.17654 0.969804 7.35782C0.971054 7.53911 1.04427 7.71247 1.17334 7.83978C1.30241 7.96708 1.47677 8.0379 1.65805 8.03665C1.83934 8.0354 2.0127 7.96218 2.14001 7.83311L4.50001 5.43978L6.86001 7.78644C6.98492 7.91061 7.15388 7.98031 7.33001 7.98031C7.50613 7.98031 7.6751 7.91061 7.80001 7.78644C7.86249 7.72447 7.91209 7.65073 7.94594 7.56949C7.97978 7.48826 7.99721 7.40112 7.99721 7.31311C7.99721 7.2251 7.97978 7.13797 7.94594 7.05673C7.91209 6.97549 7.86249 6.90175 7.80001 6.83978L5.44001 4.49978Z",fill:"black"})})})]},t)):!r&&w&&o.length>0?`${M.length} ${l} selected`:e??"Select..."}),m.jsx(Dd,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),m.jsx(VC,{align:"start",style:{width:R},className:Ko("w-[480px] p-0 bg-white rounded-xl border-gray-200",_),children:m.jsx(sN,{children:m.jsxs(cC,{children:[m.jsx(dC,{onChangeCapture:C,className:"placeholder:text-xs",placeholder:t??"Search..."}),k?m.jsx("div",{className:"flex flex-col gap-2 p-2",children:[1,2,3].map((e,t)=>m.jsx(na,{className:"h-9 rounded-md"},t))}):m.jsx(pC,{children:j?"No result found.":e}),m.jsx(hC,{children:m.jsx(fC,{className:"",children:n?.map(e=>m.jsxs(mC,{value:"string"==typeof e.label?e.label:e.searchId,className:`first-letter:uppercase mb-1 focus:bg-primary_light w-full rounded-md focus:text-primary hover:text-primary font-semibold text-gray-700 text-sm cursor-pointer ${o?.includes(e.value)&&"bg-primary_light text-primary"}`,onSelect:()=>{I(e.value)},children:[s&&m.jsx(Nd,{className:Ko("mr-2 h-4 w-4",o?.includes(e.value)?"opacity-100":"opacity-0")}),e.label]},e.value))})})]})})})]})]})})}lN.displayName=DO.displayName;const cN=D.createContext({dragDropManager:void 0});function dN(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var fN="function"==typeof Symbol&&Symbol.observable||"@@observable",pN=function(){return Math.random().toString(36).substring(7).split("").join(".")},hN={INIT:"@@redux/INIT"+pN(),REPLACE:"@@redux/REPLACE"+pN()};function mN(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(dN(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(dN(1));return n(mN)(e,t)}if("function"!=typeof e)throw new Error(dN(2));var o=e,a=t,i=[],s=i,l=!1;function u(){s===i&&(s=i.slice())}function c(){if(l)throw new Error(dN(3));return a}function d(e){if("function"!=typeof e)throw new Error(dN(4));if(l)throw new Error(dN(5));var t=!0;return u(),s.push(e),function(){if(t){if(l)throw new Error(dN(6));t=!1,u();var n=s.indexOf(e);s.splice(n,1),i=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(dN(7));if(void 0===e.type)throw new Error(dN(8));if(l)throw new Error(dN(9));try{l=!0,a=o(a,e)}finally{l=!1}for(var t=i=s,n=0;n<t.length;n++){(0,t[n])()}return e}return f({type:hN.INIT}),(r={dispatch:f,subscribe:d,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(dN(10));o=e,f({type:hN.REPLACE})}})[fN]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(dN(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[fN]=function(){return this},e},r}function gN(e,t,...n){if("undefined"!=typeof process&&"production"===process.env.NODE_ENV&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;e=new Error(t.replace(/%s/g,function(){return n[r++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function yN(e){return"object"==typeof e}const vN="dnd-core/INIT_COORDS",bN="dnd-core/BEGIN_DRAG",wN="dnd-core/PUBLISH_DRAG_SOURCE",xN="dnd-core/HOVER",SN="dnd-core/DROP",CN="dnd-core/END_DRAG";function kN(e,t){return{type:vN,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const _N={type:vN,payload:{clientOffset:null,sourceClientOffset:null}};function EN(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:a}=n,i=e.getMonitor(),s=e.getRegistry();e.dispatch(kN(o)),function(e,t,n){gN(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){gN(n.getSource(e),"Expected sourceIds to be registered.")})}(t,i,s);const l=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,i);if(null==l)return void e.dispatch(_N);let u=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");!function(e){gN("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(a),u=a(l)}e.dispatch(kN(o,u));const c=s.getSource(l).beginDrag(i,l);if(null==c)return;!function(e){gN(yN(e),"Item must be an object.")}(c),s.pinSource(l);const d=s.getSourceType(l);return{type:bN,payload:{itemType:d,item:c,sourceId:l,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}function jN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ON(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){jN(e,t,n[t])})}return e}function NN(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){gN(e.isDragging(),"Cannot call drop while not dragging."),gN(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);const o=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);o.forEach((o,a)=>{const i=function(e,t,n,r){const o=n.getTarget(e);let a=o?o.drop(r,e):void 0;(function(e){gN(void 0===e||yN(e),"Drop result must either be an object or undefined.")})(a),void 0===a&&(a=0===t?{}:r.getDropResult());return a}(o,a,r,n),s={type:SN,payload:{dropResult:ON({},t,i)}};e.dispatch(s)})}}function RN(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){gN(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();if(null!=r){n.getSource(r,!0).endDrag(t,r),n.unpinSource()}return{type:CN}}}function PN(e,t){return null===t?null===e:Array.isArray(e)?e.some(e=>e===t):e===t}function TN(e){return function(t,{clientOffset:n}={}){!function(e){gN(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),o=e.getMonitor(),a=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const o=e[r];PN(t.getTargetType(o),n)||e.splice(r,1)}}(r,a,o.getItemType()),function(e,t,n){gN(t.isDragging(),"Cannot call hover while not dragging."),gN(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t<e.length;t++){const r=e[t];gN(e.lastIndexOf(r)===t,"Expected targetIds to be unique in the passed array.");gN(n.getTarget(r),"Expected targetIds to be registered.")}}(r,o,a),function(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}(r,o,a),{type:xN,payload:{targetIds:r,clientOffset:n||null}}}}function DN(e){return function(){if(e.getMonitor().isDragging())return{type:wN}}}class MN{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;const n=function(e){return{beginDrag:EN(e),publishDragSource:DN(e),hover:TN(e),drop:NN(e),endDrag:RN(e)}}(this);return Object.keys(n).reduce((r,o)=>{const a=n[o];var i;return r[o]=(i=a,(...n)=>{const r=i.apply(e,n);void 0!==r&&t(r)}),r},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function IN(e,t){return{x:e.x-t.x,y:e.y-t.y}}const AN=[],FN=[];AN.__IS_NONE__=!0,FN.__IS_ALL__=!0;class LN{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;gN("function"==typeof e,"listener must be a function."),gN(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe(()=>{const t=this.store.getState(),o=t.stateId;try{const a=o===r||o===r+1&&!function(e,t){return e!==AN&&(e===FN||void 0===t||(n=e,t.filter(e=>n.indexOf(e)>-1)).length>0);var n}(t.dirtyHandlerIds,n);a||e()}finally{r=o}})}subscribeToOffsetChange(e){gN("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())})}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return gN(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if(gN(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return PN(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if(gN(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;return this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),o=this.getItemType();if(o&&!PN(r,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const i=a.indexOf(e);return n?i===a.length-1:i>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?IN(function(e,t){return{x:e.x+t.x,y:e.y+t.y}}(t,r),n):null}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?IN(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const zN="undefined"!=typeof global?global:self,$N=zN.MutationObserver||zN.WebKitMutationObserver;function HN(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const VN="function"==typeof $N?function(e){let t=1;const n=new $N(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:HN;class BN{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const UN=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=VN(this.flush),this.requestErrorThrow=HN(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},WN=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new BN(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(UN.registerPendingError);const YN="dnd-core/ADD_SOURCE",qN="dnd-core/ADD_TARGET",GN="dnd-core/REMOVE_SOURCE",KN="dnd-core/REMOVE_TARGET";function QN(e,t){t&&Array.isArray(e)?e.forEach(e=>QN(e,!1)):gN("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var XN;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(XN||(XN={}));let ZN=0;function JN(e){const t=(ZN++).toString();switch(e){case XN.SOURCE:return`S${t}`;case XN.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function eR(e){switch(e[0]){case"S":return XN.SOURCE;case"T":return XN.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function tR(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,o]}=n.next();if(o===t)return!0;r=!!e}while(!r);return!1}class nR{addSource(e,t){QN(e),function(e){gN("function"==typeof e.canDrag,"Expected canDrag to be a function."),gN("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),gN("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(XN.SOURCE,e,t);return this.store.dispatch(function(e){return{type:YN,payload:{sourceId:e}}}(n)),n}addTarget(e,t){QN(e,!0),function(e){gN("function"==typeof e.canDrop,"Expected canDrop to be a function."),gN("function"==typeof e.hover,"Expected hover to be a function."),gN("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(XN.TARGET,e,t);return this.store.dispatch(function(e){return{type:qN,payload:{targetId:e}}}(n)),n}containsHandler(e){return tR(this.dragSources,e)||tR(this.dropTargets,e)}getSource(e,t=!1){gN(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return gN(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return gN(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return gN(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return eR(e)===XN.SOURCE}isTargetId(e){return eR(e)===XN.TARGET}removeSource(e){var t;gN(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:GN,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},UN.enqueueTask(WN.create(t))}removeTarget(e){gN(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:KN,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);gN(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){gN(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=JN(e);return this.types.set(r,t),e===XN.SOURCE?this.dragSources.set(r,n):e===XN.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const rR=(e,t)=>e===t;function oR(e=AN,t){switch(t.type){case xN:break;case YN:case qN:case KN:case GN:return AN;default:return FN}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,o=function(e,t){const n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const o=[];return n.forEach((e,t)=>{1===e&&o.push(t)}),o}(n,r),a=o.length>0||!function(e,t,n=rR){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(n,r);if(!a)return AN;const i=r[r.length-1],s=n[n.length-1];return i!==s&&(i&&o.push(i),s&&o.push(s)),o}function aR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const iR={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function sR(e=iR,t){const{payload:n}=t;switch(t.type){case vN:case bN:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case xN:return r=e.clientOffset,o=n.clientOffset,!r&&!o||r&&o&&r.x===o.x&&r.y===o.y?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){aR(e,t,n[t])})}return e}({},e,{clientOffset:n.clientOffset});case CN:case SN:return iR;default:return e}var r,o}function lR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){lR(e,t,n[t])})}return e}const cR={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function dR(e=cR,t){const{payload:n}=t;switch(t.type){case bN:return uR({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case wN:return uR({},e,{isSourcePublic:!0});case xN:return uR({},e,{targetIds:n.targetIds});case KN:return-1===e.targetIds.indexOf(n.targetId)?e:uR({},e,{targetIds:(r=e.targetIds,o=n.targetId,r.filter(e=>e!==o))});case SN:return uR({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case CN:return uR({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function fR(e=0,t){switch(t.type){case YN:case qN:return e+1;case GN:case KN:return e-1;default:return e}}function pR(e=0){return e+1}function hR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){hR(e,t,n[t])})}return e}function gR(e={},t){return{dirtyHandlerIds:oR(e.dirtyHandlerIds,{type:t.type,payload:mR({},t.payload,{prevTargetIds:(n=e,r="dragOperation.targetIds",o=[],r.split(".").reduce((e,t)=>e&&e[t]?e[t]:o||null,n))})}),dragOffset:sR(e.dragOffset,t),refCount:fR(e.refCount,t),dragOperation:dR(e.dragOperation,t),stateId:pR(e.stateId)};var n,r,o}function yR(e,t=void 0,n={},r=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return mN(gR,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),a=new LN(o,new nR(o)),i=new MN(o,a),s=e(i,t,n);return i.receiveBackend(s),i}function vR(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}let bR=0;const wR=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var xR,SR,CR=D.memo(function(e){var{children:t}=e,n=vR(e,["children"]);const[r,o]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e,t=kR(),n,r){const o=t;o[wR]||(o[wR]={dragDropManager:yR(e,t,n,r)});return o[wR]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(n);return D.useEffect(()=>{if(o){const e=kR();return++bR,()=>{0===--bR&&(e[wR]=null)}}},[]),m.jsx(cN.Provider,{value:r,children:t})});function kR(){return"undefined"!=typeof global?global:window}var _R=(SR||(SR=1,xR=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,a;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;0!==o--;){var i=a[o];if(!e(t[i],n[i]))return!1}return!0}return t!=t&&n!=n}),xR),ER=n(_R);const jR="undefined"!=typeof window?D.useLayoutEffect:D.useEffect;function OR(e,t,n){const[r,o]=function(e,t,n){const[r,o]=D.useState(()=>t(e)),a=D.useCallback(()=>{const a=t(e);ER(r,a)||(o(a),n&&n())},[r,e,n]);return jR(a),[r,a]}(e,t,n);return jR(function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})},[e,o]),r}function NR(e,t,n){return OR(t,e||(()=>({})),()=>n.reconnect())}function RR(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),D.useMemo(()=>"function"==typeof e?e():e,n)}function PR(e){return D.useMemo(()=>e.hooks.dragSource(),[e])}function TR(e){return D.useMemo(()=>e.hooks.dragPreview(),[e])}let DR=!1,MR=!1;class IR{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){gN(!DR,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return DR=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{DR=!1}}isDragging(){if(!this.sourceId)return!1;gN(!MR,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return MR=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{MR=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let AR=!1;class FR{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;gN(!AR,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return AR=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{AR=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function LR(e,t,n,r){let o;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let n=0;n<a.length;n++){const r=a[n];if(!s(r))return!1;const i=e[r],l=t[r];if(o=void 0,!1===o||void 0===o&&i!==l)return!1}return!0}function zR(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function $R(e){return(t=null,n=null)=>{if(!D.isValidElement(t)){const r=t;return e(r,n),r}const r=t;!function(e){if("string"==typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}(r);const o=n?t=>e(t,n):e;return function(e,t){const n=e.ref;return gN("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?D.cloneElement(e,{ref:e=>{VR(n,e),VR(t,e)}}):D.cloneElement(e,{ref:t})}(r,o)}}function HR(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=$R(r);t[n]=()=>e}}),t}function VR(e,t){"function"==typeof e?e(t):e.current=t}class BR{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!LR(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!LR(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=HR({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,zR(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,zR(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class UR{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!LR(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=HR({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,zR(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function WR(){const{dragDropManager:e}=D.useContext(cN);return gN(null!=e,"Expected drag drop context"),e}class YR{beginDrag(){const e=this.spec,t=this.monitor;let n=null;return n="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{},null!=n?n:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const n=this.spec,r=this.monitor,{isDragging:o}=n;return o?o(r):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}}function qR(e,t,n){const r=WR(),o=function(e,t,n){const r=D.useMemo(()=>new YR(e,t,n),[t,n]);return D.useEffect(()=>{r.spec=e},[e]),r}(e,t,n),a=function(e){return D.useMemo(()=>{const t=e.type;return gN(null!=t,"spec.type must be defined"),t},[e])}(e);jR(function(){if(null!=a){const[e,i]=function(e,t,n){const r=n.getRegistry(),o=r.addSource(e,t);return[o,()=>r.removeSource(o)]}(a,o,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),i}},[r,t,n,o,a])}function GR(e,t){const n=RR(e,t);gN(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=function(){const e=WR();return D.useMemo(()=>new IR(e),[e])}(),o=function(e,t){const n=WR(),r=D.useMemo(()=>new BR(n.getBackend()),[n]);return jR(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),jR(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}(n.options,n.previewOptions);return qR(n,r,o),[NR(n.collect,r,o),PR(o),TR(o)]}function KR(e){return D.useMemo(()=>e.hooks.dropTarget(),[e])}class QR{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function XR(e,t,n){const r=WR(),o=function(e,t){const n=D.useMemo(()=>new QR(e,t),[t]);return D.useEffect(()=>{n.spec=e},[e]),n}(e,t),a=function(e){const{accept:t}=e;return D.useMemo(()=>(gN(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}(e);jR(function(){const[e,i]=function(e,t,n){const r=n.getRegistry(),o=r.addTarget(e,t);return[o,()=>r.removeTarget(o)]}(a,o,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),i},[r,t,o,n,a.map(e=>e.toString()).join("|")])}function ZR(e,t){const n=RR(e,t),r=function(){const e=WR();return D.useMemo(()=>new FR(e),[e])}(),o=function(e){const t=WR(),n=D.useMemo(()=>new UR(t.getBackend()),[t]);return jR(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}(n.options);return XR(n,r,o),[NR(n.collect,r,o),KR(o)]}function JR(e){let t=null;return()=>(null==t&&(t=e()),t)}class eP{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);const o=[];return n.forEach(e=>o.push(e)),o}(this.entered.filter(t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=e,n.filter(e=>e!==r)),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class tP{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const nP="__NATIVE_FILE__",rP="__NATIVE_URL__",oP="__NATIVE_TEXT__",aP="__NATIVE_HTML__";var iP=Object.freeze({__proto__:null,FILE:nP,HTML:aP,TEXT:oP,URL:rP});function sP(e,t,n){const r=t.reduce((t,n)=>t||e.getData(n),"");return null!=r?r:n}const lP={[nP]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[aP]:{exposeProperties:{html:(e,t)=>sP(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[rP]:{exposeProperties:{urls:(e,t)=>sP(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[oP]:{exposeProperties:{text:(e,t)=>sP(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function uP(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(lP).filter(e=>{const n=lP[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some(e=>t.indexOf(e)>-1)})[0]||null}const cP=JR(()=>/firefox/i.test(navigator.userAgent)),dP=JR(()=>Boolean(window.safari));class fP{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:o,c3s:a}=this;let i=t.length-1;if(e===t[i])return n[i];let s,l=0,u=a.length-1;for(;l<=u;){s=Math.floor(.5*(l+u));const r=t[s];if(r<e)l=s+1;else{if(!(r>e))return n[s];u=s-1}}i=Math.max(0,u);const c=e-t[i],d=c*c;return n[i]+r[i]*c+o[i]*d+a[i]*c*d}constructor(e,t){const{length:n}=e,r=[];for(let e=0;e<n;e++)r.push(e);r.sort((t,n)=>e[t]<e[n]?-1:1);const o=[],a=[];let i,s;for(let r=0;r<n-1;r++)i=e[r+1]-e[r],s=t[r+1]-t[r],o.push(i),a.push(s/i);const l=[a[0]];for(let e=0;e<o.length-1;e++){const t=a[e],n=a[e+1];if(t*n<=0)l.push(0);else{i=o[e];const r=o[e+1],a=i+r;l.push(3*a/((a+r)/t+(a+i)/n))}}l.push(a[a.length-1]);const u=[],c=[];let d;for(let e=0;e<l.length-1;e++){d=a[e];const t=l[e],n=1/o[e],r=t+l[e+1]-d-d;u.push((d-t-r)*n),c.push(r*n*n)}this.xs=e,this.ys=t,this.c1s=l,this.c2s=u,this.c3s=c}}function pP(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function hP(e){return{x:e.clientX,y:e.clientY}}function mP(e,t,n,r,o){const a=function(e){var t;return"IMG"===e.nodeName&&(cP()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),i=pP(a?e:t),s={x:n.x-i.x,y:n.y-i.y},{offsetWidth:l,offsetHeight:u}=e,{anchorX:c,anchorY:d}=r,{dragPreviewWidth:f,dragPreviewHeight:p}=function(e,t,n,r){let o=e?t.width:n,a=e?t.height:r;return dP()&&e&&(a/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:a}}(a,t,l,u),{offsetX:h,offsetY:m}=o,g=0===m||m;return{x:0===h||h?h:new fP([0,.5,1],[s.x,s.x/l*f,s.x+f-l]).interpolate(c),y:g?m:(()=>{let e=new fP([0,.5,1],[s.y,s.y/u*p,s.y+p-u]).interpolate(d);return dP()&&a&&(e+=(window.devicePixelRatio-1)*p),e})()}}class gP{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function yP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){yP(e,t,n[t])})}return e}class bP{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),o=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),o=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",o),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return vP({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return vP({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(iP).some(t=>iP[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=lP[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new tP(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout(()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){var e;if(this.currentDragSourceNode=null,this.rootElement)null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0);return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&pP(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=hP(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e,o=uP(r);if(this.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),o=this.sourcePreviewNodes.get(e)||t;if(o){const{anchorX:e,anchorY:a,offsetX:i,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),l=mP(t,o,n,{anchorX:e,anchorY:a},{offsetX:i,offsetY:s});r.setDragImage(o,l.x,l.y)}}try{null==r||r.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(o)this.beginDragNativeItem(o);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;(this.dragEnterTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=uP(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:hP(e)});t.some(e=>this.monitor.canDropOnTarget(e))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=e=>{var t;(this.dragOverTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=hP(e),this.scheduleHover(t);(t||[]).some(e=>this.monitor.canDropOnTarget(e))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault();this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;(this.dropTargetIds=[],this.isDraggingNativeItem())?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):uP(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:hP(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new gP(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new eP(this.isNodeInDocument)}}const wP=function(e,t,n){return new bP(e,t,n)};var xP,SP,CP=Object.create,kP=Object.defineProperty,_P=Object.getOwnPropertyDescriptor,EP=Object.getOwnPropertyNames,jP=Object.getPrototypeOf,OP=Object.prototype.hasOwnProperty,NP=(e,t,n)=>(n=null!=e?CP(jP(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of EP(t))OP.call(e,o)||o===n||kP(e,o,{get:()=>t[o],enumerable:!(r=_P(t,o))||r.enumerable});return e})(kP(n,"default",{value:e,enumerable:!0}),e)),RP=(xP={"node_modules/classnames/index.js"(e,t){!function(){var e={}.hasOwnProperty;function n(){for(var t=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var a=typeof o;if("string"===a||"number"===a)t.push(o);else if(Array.isArray(o)){if(o.length){var i=n.apply(null,o);i&&t.push(i)}}else if("object"===a){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){t.push(o.toString());continue}for(var s in o)e.call(o,s)&&o[s]&&t.push(s)}}}return t.join(" ")}void 0!==t&&t.exports?(n.default=n,t.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return n}):window.classNames=n}()}},function(){return SP||(0,xP[EP(xP)[0]])((SP={exports:{}}).exports,SP),SP.exports}),PP=NP(RP()),TP="object"==typeof global&&global&&global.Object===Object&&global,DP="object"==typeof self&&self&&self.Object===Object&&self,MP=TP||DP||Function("return this")(),IP=MP.Symbol,AP=Object.prototype,FP=AP.hasOwnProperty,LP=AP.toString,zP=IP?IP.toStringTag:void 0;var $P=function(e){var t=FP.call(e,zP),n=e[zP];try{e[zP]=void 0;var r=!0}catch(e){}var o=LP.call(e);return r&&(t?e[zP]=n:delete e[zP]),o},HP=Object.prototype.toString;var VP=function(e){return HP.call(e)},BP=IP?IP.toStringTag:void 0;var UP=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":BP&&BP in Object(e)?$P(e):VP(e)};var WP=function(e){return null!=e&&"object"==typeof e};var YP=function(e){return"symbol"==typeof e||WP(e)&&"[object Symbol]"==UP(e)};var qP=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},GP=Array.isArray,KP=IP?IP.prototype:void 0,QP=KP?KP.toString:void 0;var XP=function e(t){if("string"==typeof t)return t;if(GP(t))return qP(t,e)+"";if(YP(t))return QP?QP.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};var ZP=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var JP,eT=function(e){if(!ZP(e))return!1;var t=UP(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},tT=MP["__core-js_shared__"],nT=(JP=/[^.]+$/.exec(tT&&tT.keys&&tT.keys.IE_PROTO||""))?"Symbol(src)_1."+JP:"";var rT=function(e){return!!nT&&nT in e},oT=Function.prototype.toString;var aT=function(e){if(null!=e){try{return oT.call(e)}catch(e){}try{return e+""}catch(e){}}return""},iT=/^\[object .+?Constructor\]$/,sT=Function.prototype,lT=Object.prototype,uT=sT.toString,cT=lT.hasOwnProperty,dT=RegExp("^"+uT.call(cT).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var fT=function(e){return!(!ZP(e)||rT(e))&&(eT(e)?dT:iT).test(aT(e))};var pT=function(e,t){return null==e?void 0:e[t]};var hT=function(e,t){var n=pT(e,t);return fT(n)?n:void 0},mT=hT(MP,"WeakMap");var gT=function(){};var yT=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};var vT=function(e){return e!=e};var bT=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1};var wT=function(e,t,n){return t==t?bT(e,t,n):yT(e,vT,n)};var xT=function(e,t){return!!(null==e?0:e.length)&&wT(e,t,0)>-1},ST=/^(?:0|[1-9]\d*)$/;var CT=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ST.test(e))&&e>-1&&e%1==0&&e<t};var kT=function(e,t){return e===t||e!=e&&t!=t};var _T=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var ET=function(e){return null!=e&&_T(e.length)&&!eT(e)},jT=Object.prototype;var OT=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||jT)};var NT=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var RT=function(e){return WP(e)&&"[object Arguments]"==UP(e)},PT=Object.prototype,TT=PT.hasOwnProperty,DT=PT.propertyIsEnumerable,MT=RT(function(){return arguments}())?RT:function(e){return WP(e)&&TT.call(e,"callee")&&!DT.call(e,"callee")},IT=MT;var AT=function(){return!1},FT="object"==typeof e&&e&&!e.nodeType&&e,LT=FT&&"object"==typeof module&&module&&!module.nodeType&&module,zT=LT&<.exports===FT?MP.Buffer:void 0,$T=(zT?zT.isBuffer:void 0)||AT,HT={};HT["[object Float32Array]"]=HT["[object Float64Array]"]=HT["[object Int8Array]"]=HT["[object Int16Array]"]=HT["[object Int32Array]"]=HT["[object Uint8Array]"]=HT["[object Uint8ClampedArray]"]=HT["[object Uint16Array]"]=HT["[object Uint32Array]"]=!0,HT["[object Arguments]"]=HT["[object Array]"]=HT["[object ArrayBuffer]"]=HT["[object Boolean]"]=HT["[object DataView]"]=HT["[object Date]"]=HT["[object Error]"]=HT["[object Function]"]=HT["[object Map]"]=HT["[object Number]"]=HT["[object Object]"]=HT["[object RegExp]"]=HT["[object Set]"]=HT["[object String]"]=HT["[object WeakMap]"]=!1;var VT=function(e){return WP(e)&&_T(e.length)&&!!HT[UP(e)]};var BT=function(e){return function(t){return e(t)}},UT="object"==typeof e&&e&&!e.nodeType&&e,WT=UT&&"object"==typeof module&&module&&!module.nodeType&&module,YT=WT&&WT.exports===UT&&TP.process,qT=function(){try{var e=WT&&WT.require&&WT.require("util").types;return e||YT&&YT.binding&&YT.binding("util")}catch(e){}}(),GT=qT&&qT.isTypedArray,KT=GT?BT(GT):VT,QT=Object.prototype.hasOwnProperty;var XT=function(e,t){var n=GP(e),r=!n&&IT(e),o=!n&&!r&&$T(e),a=!n&&!r&&!o&&KT(e),i=n||r||o||a,s=i?NT(e.length,String):[],l=s.length;for(var u in e)!t&&!QT.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||CT(u,l))||s.push(u);return s};var ZT=function(e,t){return function(n){return e(t(n))}},JT=ZT(Object.keys,Object),eD=Object.prototype.hasOwnProperty;var tD=function(e){if(!OT(e))return JT(e);var t=[];for(var n in Object(e))eD.call(e,n)&&"constructor"!=n&&t.push(n);return t};var nD=function(e){return ET(e)?XT(e):tD(e)},rD=hT(Object,"create");var oD=function(){this.__data__=rD?rD(null):{},this.size=0};var aD=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},iD=Object.prototype.hasOwnProperty;var sD=function(e){var t=this.__data__;if(rD){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return iD.call(t,e)?t[e]:void 0},lD=Object.prototype.hasOwnProperty;var uD=function(e){var t=this.__data__;return rD?void 0!==t[e]:lD.call(t,e)};var cD=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=rD&&void 0===t?"__lodash_hash_undefined__":t,this};function dD(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])}}dD.prototype.clear=oD,dD.prototype.delete=aD,dD.prototype.get=sD,dD.prototype.has=uD,dD.prototype.set=cD;var fD=dD;var pD=function(){this.__data__=[],this.size=0};var hD=function(e,t){for(var n=e.length;n--;)if(kT(e[n][0],t))return n;return-1},mD=Array.prototype.splice;var gD=function(e){var t=this.__data__,n=hD(t,e);return!(n<0)&&(n==t.length-1?t.pop():mD.call(t,n,1),--this.size,!0)};var yD=function(e){var t=this.__data__,n=hD(t,e);return n<0?void 0:t[n][1]};var vD=function(e){return hD(this.__data__,e)>-1};var bD=function(e,t){var n=this.__data__,r=hD(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function wD(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])}}wD.prototype.clear=pD,wD.prototype.delete=gD,wD.prototype.get=yD,wD.prototype.has=vD,wD.prototype.set=bD;var xD=wD,SD=hT(MP,"Map");var CD=function(){this.size=0,this.__data__={hash:new fD,map:new(SD||xD),string:new fD}};var kD=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var _D=function(e,t){var n=e.__data__;return kD(t)?n["string"==typeof t?"string":"hash"]:n.map};var ED=function(e){var t=_D(this,e).delete(e);return this.size-=t?1:0,t};var jD=function(e){return _D(this,e).get(e)};var OD=function(e){return _D(this,e).has(e)};var ND=function(e,t){var n=_D(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function RD(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])}}RD.prototype.clear=CD,RD.prototype.delete=ED,RD.prototype.get=jD,RD.prototype.has=OD,RD.prototype.set=ND;var PD=RD;var TD=function(e){return null==e?"":XP(e)};var DD=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e};var MD=function(e){return function(t){return null==e?void 0:e[t]}};var ID=function(){this.__data__=new xD,this.size=0};var AD=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var FD=function(e){return this.__data__.get(e)};var LD=function(e){return this.__data__.has(e)};var zD=function(e,t){var n=this.__data__;if(n instanceof xD){var r=n.__data__;if(!SD||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new PD(r)}return n.set(e,t),this.size=n.size,this};function $D(e){var t=this.__data__=new xD(e);this.size=t.size}$D.prototype.clear=ID,$D.prototype.delete=AD,$D.prototype.get=FD,$D.prototype.has=LD,$D.prototype.set=zD;var HD=$D;var VD=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};var BD=function(){return[]},UD=Object.prototype.propertyIsEnumerable,WD=Object.getOwnPropertySymbols,YD=WD?function(e){return null==e?[]:(e=Object(e),VD(WD(e),function(t){return UD.call(e,t)}))}:BD;var qD=function(e,t,n){var r=t(e);return GP(e)?r:DD(r,n(e))};var GD=function(e){return qD(e,nD,YD)},KD=hT(MP,"DataView"),QD=hT(MP,"Promise"),XD=hT(MP,"Set"),ZD="[object Map]",JD="[object Promise]",eM="[object Set]",tM="[object WeakMap]",nM="[object DataView]",rM=aT(KD),oM=aT(SD),aM=aT(QD),iM=aT(XD),sM=aT(mT),lM=UP;(KD&&lM(new KD(new ArrayBuffer(1)))!=nM||SD&&lM(new SD)!=ZD||QD&&lM(QD.resolve())!=JD||XD&&lM(new XD)!=eM||mT&&lM(new mT)!=tM)&&(lM=function(e){var t=UP(e),n="[object Object]"==t?e.constructor:void 0,r=n?aT(n):"";if(r)switch(r){case rM:return nM;case oM:return ZD;case aM:return JD;case iM:return eM;case sM:return tM}return t});var uM=lM,cM=MP.Uint8Array;var dM=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var fM=function(e){return this.__data__.has(e)};function pM(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new PD;++t<n;)this.add(e[t])}pM.prototype.add=pM.prototype.push=dM,pM.prototype.has=fM;var hM=pM;var mM=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};var gM=function(e,t){return e.has(t)};var yM=function(e,t,n,r,o,a){var i=1&n,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&n?new hM:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var h=e[d],m=t[d];if(r)var g=i?r(m,h,d,t,e,a):r(h,m,d,e,t,a);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!mM(t,function(e,t){if(!gM(p,t)&&(h===e||o(h,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(h!==m&&!o(h,m,n,r,a)){f=!1;break}}return a.delete(e),a.delete(t),f};var vM=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n};var bM=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n},wM=IP?IP.prototype:void 0,xM=wM?wM.valueOf:void 0;var SM=function(e,t,n,r,o,a,i){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new cM(e),new cM(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return kT(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=vM;case"[object Set]":var l=1&r;if(s||(s=bM),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;r|=2,i.set(e,t);var c=yM(s(e),s(t),r,o,a,i);return i.delete(e),c;case"[object Symbol]":if(xM)return xM.call(e)==xM.call(t)}return!1},CM=Object.prototype.hasOwnProperty;var kM=function(e,t,n,r,o,a){var i=1&n,s=GD(e),l=s.length;if(l!=GD(t).length&&!i)return!1;for(var u=l;u--;){var c=s[u];if(!(i?c in t:CM.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 h=i;++u<l;){var m=e[c=s[u]],g=t[c];if(r)var y=i?r(g,m,c,t,e,a):r(m,g,c,e,t,a);if(!(void 0===y?m===g||o(m,g,n,r,a):y)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return a.delete(e),a.delete(t),p},_M="[object Arguments]",EM="[object Array]",jM="[object Object]",OM=Object.prototype.hasOwnProperty;var NM=function(e,t,n,r,o,a){var i=GP(e),s=GP(t),l=i?EM:uM(e),u=s?EM:uM(t),c=(l=l==_M?jM:l)==jM,d=(u=u==_M?jM:u)==jM,f=l==u;if(f&&$T(e)){if(!$T(t))return!1;i=!0,c=!1}if(f&&!c)return a||(a=new HD),i||KT(e)?yM(e,t,n,r,o,a):SM(e,t,l,n,r,o,a);if(!(1&n)){var p=c&&OM.call(e,"__wrapped__"),h=d&&OM.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,g=h?t.value():t;return a||(a=new HD),o(m,g,n,r,a)}}return!!f&&(a||(a=new HD),kM(e,t,n,r,o,a))};var RM=function e(t,n,r,o,a){return t===n||(null==t||null==n||!WP(t)&&!WP(n)?t!=t&&n!=n:NM(t,n,r,o,e,a))};var PM=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1},TM=MD({"&":"&","<":"<",">":">",'"':""","'":"'"}),DM=/[&<>"']/g,MM=RegExp(DM.source);var IM=function(e){return(e=TD(e))&&MM.test(e)?e.replace(DM,TM):e},AM=/[\\^$.*+?()[\]{}|]/g,FM=RegExp(AM.source);var LM=function(e){return(e=TD(e))&&FM.test(e)?e.replace(AM,"\\$&"):e};var zM=function(e,t){return RM(e,t)},$M=XD&&1/bM(new XD([,-0]))[1]==1/0?function(e){return new XD(e)}:gT,HM=$M;var VM=function(e,t,n){var r=-1,o=xT,a=e.length,i=!0,s=[],l=s;if(n)i=!1,o=PM;else if(a>=200){var u=t?null:HM(e);if(u)return bM(u);i=!1,o=gM,l=new hM}else l=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=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(c)}else o(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s};var BM=function(e){return e&&e.length?VM(e):[]},UM={ENTER:[10,13],TAB:9,BACKSPACE:8,UP_ARROW:38,DOWN_ARROW:40,SPACE:32},WM={ENTER:"Enter",TAB:"Tab",COMMA:",",SPACE:" ",SEMICOLON:";"},YM="Press enter to add new tag",qM="text",GM={tags:"ReactTags__tags",tagInput:"ReactTags__tagInput",tagInputField:"ReactTags__tagInputField",selected:"ReactTags__selected",tag:"ReactTags__tag",remove:"ReactTags__remove",suggestions:"ReactTags__suggestions",activeSuggestion:"ReactTags__activeSuggestion",editTagInput:"ReactTags__editTagInput",editTagInputField:"ReactTags__editTagInputField",clearAll:"ReactTags__clearAll"},KM="inline",QM="top",XM="bottom",ZM="Tag limit reached!";function JM(e){const{moveTag:t,readOnly:n,allowDragDrop:r}=e;return void 0!==t&&!n&&r}var eI=e=>{const{readOnly:t,removeComponent:n,onRemove:r,className:o,tag:a,index:i}=e,s=e=>{if(UM.ENTER.includes(e.keyCode)||e.keyCode===UM.SPACE)return e.preventDefault(),void e.stopPropagation();e.keyCode===UM.BACKSPACE&&r(e)};if(t)return m.jsx("span",{});const l=`Tag at index ${i} with value ${a.id} focussed. Press backspace to remove`;if(n){const e=n;return m.jsx(e,{"data-testid":"remove",onRemove:r,onKeyDown:s,className:o,"aria-label":l,tag:a,index:i})}return m.jsx("button",{"data-testid":"remove",onClick:r,onKeyDown:s,className:o,type:"button","aria-label":l,children:m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:"12",width:"12",fill:"#fff",children:m.jsx("path",{d:"M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"})})})},tI="tag",nI=e=>{const t=D.useRef(null),{readOnly:n=!1,tag:r,classNames:o,index:a,moveTag:i,allowDragDrop:s=!0,labelField:l="text",tags:u}=e,[{isDragging:c},d]=GR(()=>({type:tI,collect:e=>({isDragging:!!e.isDragging()}),item:e,canDrag:()=>JM({moveTag:i,readOnly:n,allowDragDrop:s})}),[u]),[,f]=ZR(()=>({accept:tI,drop:t=>{const n=t.index,r=a;n!==r&&e?.moveTag?.(n,r)},canDrop:e=>function(e){const{readOnly:t,allowDragDrop:n}=e;return!t&&n}(e)}),[u]);d(f(t));const p=e.tag[l],{className:h=""}=r,g=c?0:1;return m.jsxs("span",{ref:t,className:(0,PP.default)("tag-wrapper",o.tag,h),style:{opacity:g,cursor:JM({moveTag:i,readOnly:n,allowDragDrop:s})?"move":"auto"},"data-testid":"tag",onClick:e.onTagClicked,onTouchStart:e.onTagClicked,children:[p,m.jsx(eI,{tag:e.tag,className:o.remove,removeComponent:e.removeComponent,onRemove:e.onDelete,readOnly:n,index:a})]})},rI=e=>m.jsx("button",{"aria-label":e["aria-label"],className:e.classNames.clearAll,onClick:e.onClick,children:"Clear all"}),oI=(e,t,n,r)=>"function"==typeof r?r(e):e.length>=t&&n,aI=D.memo(e=>{const t=D.createRef(),{labelField:n,minQueryLength:r,isFocused:o,classNames:a,selectedIndex:i,query:s}=e;D.useEffect(()=>{if(!t.current)return;const e=t.current.querySelector(`.${a.activeSuggestion}`);e&&((e,t)=>{const n=t.offsetHeight,r=e.offsetHeight,o=e.offsetTop-t.scrollTop;o+r>=n?t.scrollTop+=o-n+r:o<0&&(t.scrollTop+=o)})(e,t.current)},[i]);const l=(e,t)=>{const r=t.trim().replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&"),{[n]:o}=e;return{__html:o.replace(RegExp(r,"gi"),e=>`<mark>${IM(e)}</mark>`)}},u=(t,n)=>"function"==typeof e.renderSuggestion?e.renderSuggestion(t,n):m.jsx("span",{dangerouslySetInnerHTML:l(t,n)}),c=e.suggestions.map((t,n)=>m.jsx("li",{onMouseDown:e.handleClick.bind(null,n),onTouchStart:e.handleClick.bind(null,n),onMouseOver:e.handleHover.bind(null,n),className:n===e.selectedIndex?e.classNames.activeSuggestion:"",children:u(t,e.query)},n));return 0!==c.length&&oI(s,r||2,o,e.shouldRenderSuggestions)?m.jsx("div",{ref:t,className:a.suggestions,"data-testid":"suggestions",children:m.jsxs("ul",{children:[" ",c," "]})}):null},(e,t)=>{const{query:n,minQueryLength:r=2,isFocused:o,suggestions:a}=t;return!(e.isFocused!==o||!zM(e.suggestions,a)||oI(n,r,o,t.shouldRenderSuggestions)!==oI(e.query,e.minQueryLength??2,e.isFocused,e.shouldRenderSuggestions)||e.selectedIndex!==t.selectedIndex)}),iI=aI,sI=NP(RP()),lI=e=>{const{autofocus:t,autoFocus:n,readOnly:r,labelField:o,allowDeleteFromEmptyInput:a,allowAdditionFromPaste:i,allowDragDrop:s,minQueryLength:l,shouldRenderSuggestions:u,removeComponent:c,autocomplete:d,inline:f,maxTags:p,allowUnique:h,editable:g,placeholder:y,delimiters:v,separators:b,tags:w,inputFieldPosition:x,inputProps:S,classNames:C,maxLength:k,inputValue:_,clearAll:E,ariaAttrs:j}=e,[O,N]=D.useState(e.suggestions),[R,P]=D.useState(""),[T,M]=D.useState(!1),[I,A]=D.useState(-1),[F,L]=D.useState(!1),[z,$]=D.useState(""),[H,V]=D.useState(-1),[B,U]=D.useState(""),W=D.createRef(),Y=D.useRef(null),q=D.useRef(null);D.useEffect(()=>{v.length&&console.warn("[Deprecation] The delimiters prop is deprecated and will be removed in v7.x.x, please use separators instead. If you have any concerns regarding this, please share your thoughts in https://github.com/react-tags/react-tags/issues/960")},[]),D.useEffect(()=>{void 0!==f&&console.warn("[Deprecation] The inline attribute is deprecated and will be removed in v7.x.x, please use inputFieldPosition instead.")},[f]),D.useEffect(()=>{void 0!==t&&console.warn("[Deprecated] autofocus prop will be removed in 7.x so please migrate to autoFocus prop."),(t||n&&!1!==t)&&!r&&Q()},[n,n,r]),D.useEffect(()=>{ee()},[R,e.suggestions]);const G=t=>{let n=e.suggestions.slice();if(h){const e=w.map(e=>e.id.trim().toLowerCase());n=n.filter(t=>!e.includes(t.id.toLowerCase()))}if(e.handleFilterSuggestions)return e.handleFilterSuggestions(t,n);const r=n.filter(e=>0===K(t,e)),o=n.filter(e=>K(t,e)>0);return r.concat(o)},K=(e,t)=>t[o].toLowerCase().indexOf(e.toLowerCase()),Q=()=>{P(""),Y.current&&(Y.current.value="",Y.current.focus())},X=(t,n)=>{n.preventDefault(),n.stopPropagation();const r=w.slice();0!==r.length&&(U(""),e?.handleDelete?.(t,n),Z(t,r))},Z=(e,t)=>{if(!W?.current)return;const n=W.current.querySelectorAll(".ReactTags__remove");let r="";0===e&&t.length>1?(r=`Tag at index ${e} with value ${t[e].id} deleted. Tag at index 0 with value ${t[1].id} focussed. Press backspace to remove`,n[0].focus()):e>0?(r=`Tag at index ${e} with value ${t[e].id} deleted. Tag at index ${e-1} with value ${t[e-1].id} focussed. Press backspace to remove`,n[e-1].focus()):(r=`Tag at index ${e} with value ${t[e].id} deleted. Input focussed. Press enter to add a new tag`,Y.current?.focus()),$(r)},J=t=>{e.handleInputChange&&e.handleInputChange(t.target.value,t);const n=t.target.value.trim();P(n)},ee=()=>{const e=G(R);N(e),A(I>=e.length?e.length-1:I)},te=t=>{const n=t.target.value;e.handleInputFocus&&e.handleInputFocus(n,t),M(!0)},ne=t=>{const n=t.target.value;e.handleInputBlur&&(e.handleInputBlur(n,t),Y.current&&(Y.current.value="")),M(!1),V(-1)},re=e=>{if(!e.nativeEvent.isComposing){if("Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),A(-1),L(!1),N([]),V(-1)),(-1!==b.indexOf(e.key)||-1!==v.indexOf(e.keyCode))&&!e.shiftKey){e.keyCode===UM.TAB&&""===R||e.preventDefault();const t=F&&-1!==I?O[I]:{id:R.trim(),[o]:R.trim(),className:""};Object.keys(t)&&ie(t)}"Backspace"!==e.key||""!==R||!a&&x!==KM||X(w.length-1,e),e.keyCode===UM.UP_ARROW&&(e.preventDefault(),A(I<=0?O.length-1:I-1),L(!0)),e.keyCode===UM.DOWN_ARROW&&(e.preventDefault(),L(!0),0===O.length?A(-1):A((I+1)%O.length))}},oe=()=>p&&w.length>=p,ae=t=>{if(!i)return;if(oe())return U(ZM),void Q();U(""),t.preventDefault();const n=t.clipboardData||window.clipboardData,r=n.getData("text"),{maxLength:a=r.length}=e,s=Math.min(a,r.length),l=n.getData("text").substr(0,s);let u=v;b.length&&(u=[],b.forEach(e=>{const t=function(e){switch(e){case WM.ENTER:return[10,13];case WM.TAB:return 9;case WM.COMMA:return 188;case WM.SPACE:return 32;case WM.SEMICOLON:return 186;default:return 0}}(e);Array.isArray(t)?u=[...u,...t]:u.push(t)}));const c=function(e){const t=e.map(e=>{const t=e-48*Math.floor(e/48);return String.fromCharCode(96<=e?t:e)}).join(""),n=LM(t);return new RegExp(`[${n}]+`)}(u),d=l.split(c).map(e=>e.trim());BM(d).forEach(e=>ie({id:e.trim(),[o]:e.trim(),className:""}))},ie=t=>{if(!t.id||!t[o])return;if(-1===H){if(oe())return U(ZM),void Q();U("")}const n=w.map(e=>e.id.toLowerCase());if(!(h&&n.indexOf(t.id.trim().toLowerCase())>=0)){if(d){const e=G(t[o]);console.warn("[Deprecation] The autocomplete prop will be removed in 7.x to simplify the integration and make it more intutive. If you have any concerns regarding this, please share your thoughts in https://github.com/react-tags/react-tags/issues/949"),(1===d&&1===e.length||!0===d&&e.length)&&(t=e[0])}-1!==H&&e.onTagUpdate?e.onTagUpdate(H,t):e?.handleAddition?.(t),P(""),L(!1),A(-1),V(-1),Q()}},se=(t,n)=>{const r=w[t];e?.handleDrag?.(r,t,n)},le=(()=>{const t={...GM,...e.classNames};return w.map((n,a)=>m.jsx(D.Fragment,{children:H===a?m.jsx("div",{className:t.editTagInput,children:m.jsx("input",{ref:e=>{q.current=e},onFocus:te,value:R,onChange:J,onKeyDown:re,onBlur:ne,className:t.editTagInputField,onPaste:ae,"data-testid":"tag-edit"})}):m.jsx(nI,{index:a,tag:n,tags:w,labelField:o,onDelete:e=>X(a,e),moveTag:s?se:void 0,removeComponent:c,onTagClicked:t=>((t,n,a)=>{r||(g&&(V(t),P(n[o]),q.current?.focus()),e.handleTagClick?.(t,a))})(a,n,t),readOnly:r,classNames:t,allowDragDrop:s})},a))})(),ue={...GM,...C},{name:ce,id:de}=e,fe=!1===f?XM:x,pe=r?null:m.jsxs("div",{className:ue.tagInput,children:[m.jsx("input",{...S,ref:e=>{Y.current=e},className:ue.tagInputField,type:"text",placeholder:y,"aria-label":y,onFocus:te,onBlur:ne,onChange:J,onKeyDown:re,onPaste:ae,name:ce,id:de,maxLength:k,value:_,"data-automation":"input","data-testid":"input"}),m.jsx(iI,{query:R.trim(),suggestions:O,labelField:o,selectedIndex:I,handleClick:e=>{ie(O[e])},handleHover:e=>{A(e),L(!0)},minQueryLength:l,shouldRenderSuggestions:u,isFocused:T,classNames:ue,renderSuggestion:e.renderSuggestion}),E&&w.length>0&&m.jsx(rI,{"aria-label":j?.clearAllLabel,classNames:ue,onClick:()=>{e.onClearAll&&e.onClearAll(),U(""),Q()}}),B&&m.jsxs("div",{"data-testid":"error",className:"ReactTags__error",children:[m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:"24",width:"24",fill:"#e03131",children:m.jsx("path",{d:"M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"})}),B]})]});return m.jsxs("div",{className:(0,sI.default)(ue.tags,"react-tags-wrapper"),ref:W,children:[m.jsx("p",{role:"alert",className:"sr-only",style:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",margin:"-1px",padding:0,width:"1px",height:"1px",border:0},children:z}),fe===QM&&pe,m.jsxs("div",{className:ue.selected,children:[le,fe===KM&&pe]}),fe===XM&&pe]})},uI=e=>{const{placeholder:t=YM,labelField:n=qM,suggestions:r=[],delimiters:o=[],separators:a=(e.delimiters?.length?[]:[WM.ENTER,WM.TAB]),autofocus:i,autoFocus:s=!0,inline:l,inputFieldPosition:u="inline",allowDeleteFromEmptyInput:c=!1,allowAdditionFromPaste:d=!0,autocomplete:f=!1,readOnly:p=!1,allowUnique:h=!0,allowDragDrop:g=!0,tags:y=[],inputProps:v={},editable:b=!1,clearAll:w=!1,ariaAttrs:x={clearAllLabel:"clear all tags"},handleDelete:S,handleAddition:C,onTagUpdate:k,handleDrag:_,handleFilterSuggestions:E,handleTagClick:j,handleInputChange:O,handleInputFocus:N,handleInputBlur:R,minQueryLength:P,shouldRenderSuggestions:T,removeComponent:D,onClearAll:M,classNames:I,name:A,id:F,maxLength:L,inputValue:z,maxTags:$,renderSuggestion:H}=e;return m.jsx(lI,{placeholder:t,labelField:n,suggestions:r,delimiters:o,separators:a,autofocus:i,autoFocus:s,inline:l,inputFieldPosition:u,allowDeleteFromEmptyInput:c,allowAdditionFromPaste:d,autocomplete:f,readOnly:p,allowUnique:h,allowDragDrop:g,tags:y,inputProps:v,editable:b,clearAll:w,ariaAttrs:x,handleDelete:S,handleAddition:C,onTagUpdate:k,handleDrag:_,handleFilterSuggestions:E,handleTagClick:j,handleInputChange:O,handleInputFocus:N,handleInputBlur:R,minQueryLength:P,shouldRenderSuggestions:T,removeComponent:D,onClearAll:M,classNames:I,name:A,id:F,maxLength:L,inputValue:z,maxTags:$,renderSuggestion:H})},cI=({...e})=>m.jsx(CR,{backend:wP,children:m.jsx(uI,{...e})});
|
|
224
|
-
/*! Bundled license information:
|
|
225
|
-
|
|
226
|
-
classnames/index.js:
|
|
227
|
-
(*!
|
|
228
|
-
Copyright (c) 2018 Jed Watson.
|
|
229
|
-
Licensed under the MIT License (MIT), see
|
|
230
|
-
http://jedwatson.github.io/classnames
|
|
231
|
-
*)
|
|
232
|
-
|
|
233
|
-
lodash-es/lodash.js:
|
|
234
|
-
(**
|
|
235
|
-
* @license
|
|
236
|
-
* Lodash (Custom Build) <https://lodash.com/>
|
|
237
|
-
* Build: `lodash modularize exports="es" -o ./`
|
|
238
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
239
|
-
* Released under MIT license <https://lodash.com/license>
|
|
240
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
241
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
242
|
-
*)
|
|
243
|
-
*/
|
|
244
|
-
function dI({label:e,labelClass:t,required:n,info:r,placeholder:o,setTagArray:a,values:i=[]}){const s=i?.map(e=>({id:"1",text:e??"example",className:""})),[l,u]=D.useState(s);return D.useEffect(()=>{const e=l.map(e=>e.text);a&&a(e)},[l]),m.jsxs("div",{className:"space-y-3",children:[e&&m.jsxs("label",{className:Ko("text-dark flex items-center gap-1 first-letter:uppercase text-sm font-medium",t),children:[e," ",n&&m.jsx("span",{className:"text-[#E12D39]",children:e&&"*"}),r&&m.jsx(kv,{fieldName:e,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:r})})]}),m.jsx("div",{className:"border rounded-md px-4 py-2 bg-white border-gray-300",children:m.jsx(cI,{tags:l,handleDelete:e=>{u(l.filter((t,n)=>n!==e))},separators:[WM.ENTER,WM.COMMA],onTagUpdate:(e,t)=>{const n=[...l];n.splice(e,1,t),u(n)},editable:!0,placeholder:o,allowDeleteFromEmptyInput:!0,allowDragDrop:!1,onClearAll:()=>{u([])},handleAddition:e=>{u([...l,e])},handleTagClick:e=>{console.log("The tag at index "+e+" was clicked")},inputFieldPosition:"inline"})})]})}function fI({isOpen:e,onClose:t}){const{mutate:n,isPending:r}=ex(),[o,a]=D.useState([]),i=En();return m.jsx(XC,{isOpen:e,onClose:t,title:"New Tag",className:"w-[425px] pb-5",children:m.jsxs("form",{className:"space-y-5",onSubmit:e=>{e.preventDefault(),n({url:"/inventory_metas/tags/create",payload:{names:o}},{onSuccess:()=>{i.invalidateQueries({queryKey:["itemtags"]}),t&&t()}})},action:"",children:[m.jsx("div",{className:"px-5 space-y-5",children:m.jsx(dI,{info:"Enter a name for the tag. Tags help categorize items and make them easier to search for.",label:"Tag names ",required:!0,values:o||[],setTagArray:a})}),m.jsx(gS,{}),m.jsxs("div",{className:"flex justify-end gap-2.5 px-5",children:[m.jsx(IE,{label:"Dismiss",className:"px-4 bg-gray-300 text-gray-900 hover:bg-gray-400",onClick:t,disabled:r}),m.jsx(IE,{loading:r,label:"Create",className:"px-4",type:"submit"})]})]})})}function pI({isOpen:e,onClose:t}){const{mutate:n,isPending:r}=ex(),[o,a]=D.useState(""),{apiKey:i}=Dn(),[s,l]=D.useState({name:"",description:"",abbreviation:"",item_type_uuid:"",is_decimal:!!o.match("yes")}),u=(e,t)=>{l({...s,[e]:t})},{data:c}=Jw(["itemtypes",i],"/inventory_metas/types",{enabled:!!i}),d=c?.data?.data?.filter(e=>"products"===e.name||"services"===e.name)?.map(e=>({label:e.name,value:e.uuid})),f=En();return m.jsx(XC,{isOpen:e,onClose:t,title:"New Unit",className:"w-[425px]",children:m.jsxs("div",{className:"px-5 space-y-5 pb-5",children:[m.jsx(iO,{type:"text",placeholder:"e.g Kilogram",info:"Enter the name of the unit used to measure this item (e.g., pieces, kg, liters). This helps in tracking inventory accurately.",label:"Unit name ",labelClass:"text-dark font-semibold first-letter:uppercase text-[15px]",value:s.name,onChange:e=>u("name",e.target.value)}),m.jsx(WC,{options:d,label:"Item type",placeholder:"select type",value:s.item_type_uuid,onValueChange:e=>u("item_type_uuid",e),info:"Select the type of item you are adding (e.g., product, service). This helps in categorizing and managing inventory efficiently.",labelClass:"text-dark font-bold"}),m.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[m.jsx(iO,{type:"text",placeholder:"e.g KG",info:"Enter a short form or symbol for the unit name (e.g., kg for kilograms, pcs for pieces). This will be used for display in reports and transactions.",label:"Abbreviation",labelClass:"text-dark font-semibold first-letter:uppercase text-[15px]",value:s.abbreviation,onChange:e=>u("abbreviation",e.target.value)}),m.jsx(WC,{options:[{label:"Yes ",value:"yes"},{label:"No ",value:"no"}],label:"Allow decimal",placeholder:"Yes/ No",value:o,onValueChange:e=>a(e),info:"Enable this option if the unit can have decimal values (e.g., 2.5 kg, 1.75 liters). Disable it for whole number quantities only.",infoAlignment:"end",labelClass:"text-dark font-semibold text-[15px]",showSearch:!1})]}),m.jsx("div",{className:"flex justify-end gap-2.5",children:m.jsx(IE,{onClick:()=>{n({url:"/inventory_metas/units/create",payload:s},{onSuccess:()=>{f.invalidateQueries({queryKey:["itemunits"]}),l({name:"",description:"",abbreviation:"",item_type_uuid:"",is_decimal:!!o.match("yes")}),t&&t()}})},loading:r,label:"Create",className:"px-4"})})]})})}function hI({isOpen:e,onClose:t}){const{mutate:n,isPending:r}=ex(),o=En(),{apiKey:a}=Dn(),{data:i}=Jw(["categories",a],"/inventory_metas/categories",{enabled:!!a}),{data:s}=Jw(["itemunits",a],"/inventory_metas/units",{enabled:!!a}),{data:l}=Jw(["itemtags",a],"/inventory_metas/tags",{enabled:!!a}),{data:u}=Jw(["itemtypes",a],"/inventory_metas/types",{enabled:!!a}),c=i?.data?.data?.map(e=>({label:e.name,value:e.uuid,subOptions:e.subCategories.map(e=>({label:e.name,value:e.uuid}))}))||[],d=s?.data?.data?.map(e=>({label:e.name,value:e.uuid}))||[],f=l?.data?.data?.map(e=>({label:e.name,value:e.uuid})),p=u?.data?.data?.filter(e=>"products"===e.name||"services"===e.name).map(e=>({label:e.name,value:e.uuid}))||[],[h,g]=D.useState(""),[y,v]=M.useState([]),[b,w]=D.useState(p?.[0]?.value||"");D.useEffect(()=>{const e=p.find(e=>e?.value===b)?.label||"";g(e)},[b]);const[x,S]=D.useState([]),[C,k]=D.useState([{name:"",itemunit_id:d?.[0]?.value||"",quantity:"",cost_price:"",selling_price:"",barcode:""}]),_=(e,t,n)=>{const r=[...C];r[n]={...r[n],[e]:t},k(r)},E={itemtype_id:b,itemcategory_id:y,tags:x,items:C},j=["Item name","Item unit",..."services"!==h?["Quantity","Barcode"]:[],"Cost price (₦)","Selling price (₦)"],[O,N]=D.useState(!1),[R,P]=D.useState(!1);return m.jsxs(XC,{isOpen:e,onClose:t,title:"Quick create multiple items",className:"max-w-[1024px]",children:[m.jsxs("div",{className:"px-5 space-y-7 pb-5",children:[m.jsxs("div",{className:"grid grid-cols-3 gap-5 bg-gray-100 rounded-xl p-4",children:[m.jsx(WC,{label:"Item type",options:p,placeholder:"select item type",value:b,onValueChange:e=>w(e),required:!0,info:"Select the type of item you're creating (e.g., product, service, variations, kits ). This classification helps determine how the item is managed, displayed, or fulfilled."}),m.jsx(kO,{placeholder:"select categories",label:"Category",options:c,values:y,onChange:e=>v(e),showMultiSelectValues:!1,showCount:!0,info:"Select the category that best describes this item(s) (e.g., electronics, clothing, food). Categorizing items helps in organizing inventory and simplifies product management."}),m.jsx(uN,{label:"Item tag",placeholder:"Search and Select item tags",info:"Enter relevant keywords or labels for this item(s). Tags help in categorizing and making the item easier to find through search filters.",labelClass:"text-dark text-sm",options:f,values:x,onChange:S,showSearch:!0,showCount:!0,showMultiSelectValues:!1,actionLabel:"Create a new tag",actionLabelInfo:"Enter a new tag to help categorize the item. Tags are useful for organizing and making items easily searchable by specific attributes or keywords.",actionLabelAction:()=>N(!0)})]}),m.jsxs("div",{className:"space-y-2 overflow-auto",children:[m.jsxs("table",{className:"table-auto w-full border-separate border-spacing-4",children:[m.jsx("thead",{children:m.jsx("tr",{children:j.map((e,t)=>m.jsx("th",{className:"text-dark text-sm font-medium text-left",children:m.jsxs("p",{className:"flex gap-1",children:[e,1===t?m.jsx(IE,{mode:"text",label:"",left_addon:Jy.plus_squared2,onClick:()=>P(!0),className:" text-sm"}):null]})},t))})}),m.jsx("tbody",{className:"text-dark text-[15px] ",children:C.map((e,t)=>m.jsxs("tr",{children:[m.jsx("td",{className:"",children:m.jsx(iO,{type:"text",placeholder:"Enter item name",value:e.name,onChange:e=>_("name",e.target.value,t)})}),m.jsx("td",{children:m.jsx(WC,{options:d,placeholder:"select item unit",value:e.itemunit_id,onValueChange:e=>_("itemunit_id",e,t)})}),"services"!==h?m.jsxs(m.Fragment,{children:[m.jsx("td",{className:"",children:m.jsx(iO,{type:"number",placeholder:"0",value:e.quantity,onChange:e=>_("quantity",e.target.value,t)})}),m.jsx("td",{className:"",children:m.jsx(iO,{type:"text",placeholder:"Enter barcode",value:e.barcode,onChange:e=>_("barcode",e.target.value,t)})})]}):null,m.jsx("td",{className:"",children:m.jsx(iO,{type:"number",placeholder:"0.00",value:e.cost_price,onChange:e=>_("cost_price",e.target.value,t)})}),m.jsx("td",{className:"",children:m.jsx(iO,{type:"number",placeholder:"0.00",value:e.selling_price,onChange:e=>_("selling_price",e.target.value,t)})}),m.jsx("td",{className:"",children:m.jsx("button",{onClick:()=>(e=>{const t=C.filter((t,n)=>n!==e);k(t)})(t),disabled:1===C.length,className:"disabled:cursor-not-allowed disabled:opacity-70",children:Jy.trash2})})]},t))})]}),m.jsx("div",{className:"flex justify-between items-center gap-3",children:m.jsx(IE,{mode:"text",label:"Add more",left_addon:Jy.plus_squared2,onClick:()=>{k(e=>[...e,{name:"",itemunit_id:d?.[0]?.value||"",quantity:"",cost_price:"",selling_price:"",barcode:""}])},className:"font-medium text-sm ml-4"})})]})]}),m.jsxs("div",{className:"flex justify-between items-center px-5 sticky bottom-0 bg-white py-5 border-t ",children:[m.jsxs("button",{className:"text-primary text-sm font-medium flex items-center gap-1",children:[Jy.question," Need help?"]}),m.jsxs("div",{className:"flex justify-end gap-2.5",children:[m.jsx(IE,{label:"Cancel",className:"bg-[#F1F1F2] text-[#181C32] hover:bg-[#F1F1F2]/90",onClick:t}),m.jsx(IE,{label:"Create Items",onClick:()=>{n({url:"/items/create_multiple",payload:E},{onSuccess:()=>{o.invalidateQueries({queryKey:["items"]}),t&&t()}})},loading:r})]})]}),m.jsx(fI,{isOpen:O,onClose:()=>N(!1)}),m.jsx(pI,{isOpen:R,onClose:()=>P(!1)})]})}function mI({isOpen:e,onClose:t,currentTab:n,loading:r,filter:o,setFiltering:a}){const[i,s]=D.useState(""),[l]=CO(i,1e3),{apiKey:u}=Dn(),{data:c}=Jw(["categories",u],"/inventory_metas/categories",{enabled:!!u}),{data:d}=Jw(["itemtypes",u],"/inventory_metas/types",{enabled:!!u}),{data:f}=Jw(["itemunits",u],"/inventory_metas/units",{enabled:!!u}),{data:p}=Jw(["suppliers",l],i?`/suppliers/search/${i}/all`:"/suppliers",{enabled:!!u}),{data:h}=Jw(["itembrands"],"/inventory_metas/brands",{enabled:!!u}),g=p?.data?.data?.map(e=>({label:e?.name,value:e?.uuid})),y=h?.data?.data?.map(e=>({label:e.name,value:e.uuid})),[v,b]=D.useState(""),[w]=CO(v,1e3),{data:x}=Jw(["itemtags",u,w],"/inventory_metas/tags",{enabled:!!u&&!!w}),S=x?.data?.data?.map(e=>({label:e.name,value:e.uuid})),C=c?.data?.data.map(e=>({label:e.name,value:e.uuid,subOptions:e.subCategories.map(e=>({label:e.name,value:e.uuid}))})),k=d?.data?.data?.map(e=>({label:e.name,value:e.uuid})),_=f?.data?.data?.map(e=>({label:e.name,value:e.uuid}))||[],[E,j]=D.useState({for:n,category:[],supplier:[],tags:[],brands:[],type:[],unit:[]}),O=(e,t)=>{j(n=>({...n,[e]:t}))};return m.jsx(XC,{isOpen:e,onClose:t,children:m.jsxs("div",{className:"px-[30px]",children:[m.jsxs("div",{className:"flex justify-between items-center sticky top-0 py-5 bg-white",children:[m.jsx("h1",{className:"text-gray-900 font-semibold text-lg",children:"Item Filter"}),m.jsxs("button",{className:"text-danger text-sm font-medium inline-flex items-center",onClick:()=>{j({for:n,category:[],supplier:[],tags:[],brands:[],type:[],unit:[]}),a(!1),t&&t()},children:[m.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M11.175 9.99997L14.1667 7.0333C14.3258 6.87196 14.4143 6.65401 14.4128 6.42741C14.4112 6.2008 14.3197 5.98409 14.1583 5.82497C13.997 5.66584 13.779 5.57731 13.5524 5.57888C13.3258 5.58044 13.1091 5.67196 12.95 5.8333L10 8.82497L7.05 5.89163C6.89387 5.73642 6.68266 5.6493 6.4625 5.6493C6.24235 5.6493 6.03114 5.73642 5.875 5.89163C5.79689 5.9691 5.7349 6.06127 5.69259 6.16282C5.65028 6.26437 5.6285 6.37329 5.6285 6.4833C5.6285 6.59331 5.65028 6.70223 5.69259 6.80378C5.7349 6.90533 5.79689 6.9975 5.875 7.07497L8.825 9.99997L5.83333 12.9666C5.6742 13.128 5.58568 13.3459 5.58725 13.5725C5.58881 13.7991 5.68033 14.0158 5.84167 14.175C6.00301 14.3341 6.22095 14.4226 6.44756 14.4211C6.67417 14.4195 6.89087 14.328 7.05 14.1666L10 11.175L12.95 14.1083C13.1061 14.2635 13.3173 14.3506 13.5375 14.3506C13.7577 14.3506 13.9689 14.2635 14.125 14.1083C14.2031 14.0308 14.2651 13.9387 14.3074 13.8371C14.3497 13.7356 14.3715 13.6266 14.3715 13.5166C14.3715 13.4066 14.3497 13.2977 14.3074 13.1962C14.2651 13.0946 14.2031 13.0024 14.125 12.925L11.175 9.99997Z",fill:"#F1416C"})}),"Reset"," "]})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-5",children:[m.jsx(kO,{options:C,label:"Categories",placeholder:"Select categories",values:E.category,onChange:e=>O("category",e),labelClass:"text-dark font-medium",className:"col-span-2",showMultiSelectValues:!1,showCount:!0}),m.jsx(uN,{options:g,label:"Supplier",placeholder:"Select Suppliers",values:E.supplier,onChange:e=>O("supplier",e),labelClass:"text-dark font-medium",className:"col-span-2",showMultiSelectValues:!1,showCount:!0,onChangeSearch:e=>s(e.target.value)}),m.jsx(uN,{options:k,label:"Item types",placeholder:"Select types",values:E.type,onChange:e=>O("type",e),labelClass:"text-dark font-medium",showMultiSelectValues:!1,showCount:!0}),m.jsx(uN,{options:_,label:"Item units",placeholder:"Select item unit",values:E.unit,onChange:e=>O("unit",e),labelClass:"text-dark font-medium",showMultiSelectValues:!1,showCount:!0}),m.jsx(uN,{options:y,label:"Item brands",placeholder:"Select item brands",values:E.brands,onChange:e=>O("brands",e),labelClass:"text-dark font-medium",showMultiSelectValues:!1,showCount:!0}),m.jsx(uN,{options:S,label:"Item tag",placeholder:"Select item tag",values:E.tags,onChange:e=>O("tags",e),labelClass:"text-dark font-medium",showMultiSelectValues:!1,showCount:!0,onChangeSearch:e=>b(e.target.value)})]}),m.jsxs("div",{className:"flex justify-end gap-2.5 sticky bottom-0 py-5 bg-white",children:[m.jsx(IE,{label:"Cancel",className:"bg-[#F1F1F2] text-[#181C32] hover:bg-[#F1F1F2]/90",onClick:t,disabled:r}),m.jsx(IE,{label:"Apply filter",onClick:()=>o(E),loading:r})]})]})})}const gI="https://unpkg.com/@simpoobusiness/sdk/dist/simpoo-sdk.css";let yI={};function vI(e){yI=e}const bI={inventory:({showStats:e=!0})=>{const[t,n]=M.useState(),{currentPage:r,perview:o,inline_update:a}=ne(e=>e.app),[i,s]=D.useState("all"),[l,u]=D.useState(!1),[c,d]=D.useState("all"),[f,p]=D.useState(""),[h]=CO(f,1e3),[g,y]=D.useState(!1),{apiKey:v}=Dn(),{mutate:b,isPending:w}=ex(),{data:x,isFetching:S}=Jw(["items",o.toString(),r?.toString(),i,h,v],h?`/items/search?page=${r}&paginate=${o}¶m=${h}&for=${i}&filter=all`:`/items?page=${r}&paginate=${o}&status=${i}`,{enabled:!!v}),[C,k]=D.useState(),_=e=>{y(!0),b({url:`/inventory/item/filter?page=${r}&perview=${o}`,payload:e},{onSuccess(e,t,n){k(e),u(!1)}})},[E,j]=D.useState({for:i,category:[],supplier:[],tags:[],brands:[],type:[],unit:[]});M.useEffect(()=>{g&&!f&&_(E)},[f,a,o,r,S]);const O=g?C?.data[0]:x?.data?.[0]||[],N=O?.data?.map(e=>({item_description:e?.name,all_quantity:+e?.all_quantity,other_locations:e?.other_locations,itemcode:e?.itemcode,quantity:+e?.quantity,type:e?.item_type?.name,selling_price:+e?.selling_price,categories:e?.category||[],tags:e?.item_tags?.map(e=>e.name)||[],status:e?.status?"published":"draft",sku:e?.sku,item_image:e.images?.length>0?e.images?.[0].image:rS,barcode:e?.barcode,expired:e?.expired,expiring:e?.expiring,unit:e?.item_unit,uuid:e?.uuid,item_type_id:e?.item_type?.uuid,reorder_level:e?.reorder_level,fullData:e}))||[],{data:R,isFetching:P}=Jw(["items-tab"],"/items/count",{enabled:!!v}),T=R?.data,I=[{label:"all",count:T?.all||0,action:()=>s("all")},{label:"published",count:T?.published||0,action:()=>s("published")},{label:"out of stock",count:T?.out_of_stock||0,action:()=>s("out_of_stock")},{label:"draft",count:T?.draft||0,action:()=>s("draft")},{label:"expiring",count:T?.expiring||0,action:()=>s("expiring")},{label:"expired",count:T?.expired||0,action:()=>s("expired")}],[A,F]=D.useState(!1);return m.jsxs(tS,{className:"px-4 py-6 flex flex-col gap-8",children:[m.jsx(KC,{tabs:I,loading:S}),m.jsxs("div",{className:" flex items-center justify-between flex-wrap gap-4",children:[m.jsxs("div",{className:"flex items-center gap-2.5",children:[m.jsx(xO,{placeholder:"Search Item name, barcode or sku",value:f,onChange:e=>p(e.target.value)}),S?m.jsx(na,{className:"w-20 h-6"}):m.jsxs("p",{className:"text-dark text-sm font-medium",children:[O?.meta?.total??0," ",m.jsx("span",{className:"text-gray-700",children:"Items"})]})]}),m.jsxs("div",{className:"flex gap-4",children:[m.jsx(IE,{label:"Filter",left_addon:M.cloneElement(Jy.filter_edit,{fill:"#5E6278"}),onClick:()=>u(!0),className:"!font-medium !bg-gray-200 hover:!bg-gray-300 !text-gray-700 !text-sm !h-12"}),m.jsx(IE,{label:"Create New",left_addon:Jy.plus_squared,className:"!font-medium !text-sm !h-12",onClick:()=>F(!0)})]})]}),e?m.jsx(wO,{loading:S,data:x?.data?.[1],meta:O?.meta}):null,m.jsx(nv,{loading:S,columns:lO,data:N,emptyData:0===N.length,emptyProps:{header:"No item yet",subText:"Add new item to start managing your inventory."},tHeadClass:"whitespace-nowrap",tbCellClass:"text-dark font-semibold",meta:O?.meta}),m.jsx(mI,{isOpen:l,onClose:()=>u(!1),currentTab:i,loading:w,filter:e=>{_(e),j(e)},setFiltering:y}),A?m.jsx(hI,{isOpen:A,onClose:()=>F(!1)}):null]})}};function wI(e,t,n={}){!function(){if(!document.querySelector(`link[href="${gI}"]`)){const e=document.createElement("link");e.rel="stylesheet",e.href=gI,document.head.appendChild(e)}}();const r=bI[e];if(!r)return void console.error(`SimpooSDK: Widget "${e}" not found.`);const o=document.querySelector(t);if(!o)throw new Error(`Container "${t}" not found!`);T.createRoot(o).render(m.jsx(Mn,{apiKey:yI.apiKey||"",children:m.jsx("div",{className:"simpoo-sdk",children:m.jsx(r,{...n})})}))}"undefined"!=typeof window&&(window.SimpooSDK={init:vI,renderWidget:wI}),e.init=vI,e.renderWidget=wI});
|
|
245
|
-
//# sourceMappingURL=simpoo-sdk.js.map
|