xmirror-components 1.0.33 → 1.0.34-alpha.2

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.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react"),te=require("antd"),De=require("react-dom"),Ie=require("@ant-design/icons");function Ra(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const se=Ra(C);var it=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var st={exports:{}},Fe={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("react"),Ee=require("antd"),Lt=require("react-dom"),qt=require("@ant-design/icons");function fl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const D=fl(I);var jr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nr={exports:{}},Jt={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Dr;function Oa(){if(Dr)return Fe;Dr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var u in o)u!=="key"&&(a[u]=o[u])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:i,ref:o!==void 0?o:null,props:a}}return Fe.Fragment=t,Fe.jsx=r,Fe.jsxs=r,Fe}var qe={};/**
9
+ */var no;function dl(){if(no)return Jt;no=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,a,o){var i=null;if(o!==void 0&&(i=""+o),a.key!==void 0&&(i=""+a.key),"key"in a){o={};for(var s in a)s!=="key"&&(o[s]=a[s])}else o=a;return a=o.ref,{$$typeof:e,type:n,key:i,ref:a!==void 0?a:null,props:o}}return Jt.Fragment=t,Jt.jsx=r,Jt.jsxs=r,Jt}var Zt={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,49 +14,49 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Nr;function Pa(){return Nr||(Nr=1,process.env.NODE_ENV!=="production"&&function(){function e(b){if(b==null)return null;if(typeof b=="function")return b.$$typeof===A?null:b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case x:return"Fragment";case h:return"Profiler";case S:return"StrictMode";case s:return"Suspense";case y:return"SuspenseList";case _:return"Activity"}if(typeof b=="object")switch(typeof b.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),b.$$typeof){case w:return"Portal";case m:return(b.displayName||"Context")+".Provider";case f:return(b._context.displayName||"Context")+".Consumer";case v:var P=b.render;return b=b.displayName,b||(b=P.displayName||P.name||"",b=b!==""?"ForwardRef("+b+")":"ForwardRef"),b;case p:return P=b.displayName||null,P!==null?P:e(b.type)||"Memo";case R:P=b._payload,b=b._init;try{return e(b(P))}catch{}}return null}function t(b){return""+b}function r(b){try{t(b);var P=!1}catch{P=!0}if(P){P=console;var M=P.error,k=typeof Symbol=="function"&&Symbol.toStringTag&&b[Symbol.toStringTag]||b.constructor.name||"Object";return M.call(P,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",k),t(b)}}function n(b){if(b===x)return"<>";if(typeof b=="object"&&b!==null&&b.$$typeof===R)return"<...>";try{var P=e(b);return P?"<"+P+">":"<...>"}catch{return"<...>"}}function o(){var b=j.A;return b===null?null:b.getOwner()}function a(){return Error("react-stack-top-frame")}function i(b){if(I.call(b,"key")){var P=Object.getOwnPropertyDescriptor(b,"key").get;if(P&&P.isReactWarning)return!1}return b.key!==void 0}function u(b,P){function M(){q||(q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",P))}M.isReactWarning=!0,Object.defineProperty(b,"key",{get:M,configurable:!0})}function l(){var b=e(this.type);return W[b]||(W[b]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),b=this.props.ref,b!==void 0?b:null}function c(b,P,M,k,$,F,Y,B){return M=F.ref,b={$$typeof:E,type:b,key:P,props:F,_owner:$},(M!==void 0?M:null)!==null?Object.defineProperty(b,"ref",{enumerable:!1,get:l}):Object.defineProperty(b,"ref",{enumerable:!1,value:null}),b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(b,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(b,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.defineProperty(b,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b}function g(b,P,M,k,$,F,Y,B){var L=P.children;if(L!==void 0)if(k)if(N(L)){for(k=0;k<L.length;k++)d(L[k]);Object.freeze&&Object.freeze(L)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(L);if(I.call(P,"key")){L=e(b);var V=Object.keys(P).filter(function(ue){return ue!=="key"});k=0<V.length?"{key: someKey, "+V.join(": ..., ")+": ...}":"{key: someKey}",ie[L+k]||(V=0<V.length?"{"+V.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var ao;function pl(){return ao||(ao=1,process.env.NODE_ENV!=="production"&&(function(){function e(P){if(P==null)return null;if(typeof P=="function")return P.$$typeof===L?null:P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case S:return"Fragment";case c:return"Profiler";case h:return"StrictMode";case x:return"Suspense";case f:return"SuspenseList";case M:return"Activity"}if(typeof P=="object")switch(typeof P.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case E:return"Portal";case v:return P.displayName||"Context";case g:return(P._context.displayName||"Context")+".Consumer";case p:var k=P.render;return P=P.displayName,P||(P=k.displayName||k.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case O:return k=P.displayName||null,k!==null?k:e(P.type)||"Memo";case j:k=P._payload,P=P._init;try{return e(P(k))}catch{}}return null}function t(P){return""+P}function r(P){try{t(P);var k=!1}catch{k=!0}if(k){k=console;var U=k.error,W=typeof Symbol=="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return U.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",W),t(P)}}function n(P){if(P===S)return"<>";if(typeof P=="object"&&P!==null&&P.$$typeof===j)return"<...>";try{var k=e(P);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function a(){var P=q.A;return P===null?null:P.getOwner()}function o(){return Error("react-stack-top-frame")}function i(P){if(N.call(P,"key")){var k=Object.getOwnPropertyDescriptor(P,"key").get;if(k&&k.isReactWarning)return!1}return P.key!==void 0}function s(P,k){function U(){te||(te=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}U.isReactWarning=!0,Object.defineProperty(P,"key",{get:U,configurable:!0})}function l(){var P=e(this.type);return re[P]||(re[P]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),P=this.props.ref,P!==void 0?P:null}function u(P,k,U,W,Z,ee){var B=U.ref;return P={$$typeof:w,type:P,key:k,props:U,_owner:W},(B!==void 0?B:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:l}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Z}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ee}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function m(P,k,U,W,Z,ee){var B=k.children;if(B!==void 0)if(W)if(Y(B)){for(W=0;W<B.length;W++)d(B[W]);Object.freeze&&Object.freeze(B)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(B);if(N.call(k,"key")){B=e(P);var ne=Object.keys(k).filter(function(le){return le!=="key"});W=0<ne.length?"{key: someKey, "+ne.join(": ..., ")+": ...}":"{key: someKey}",A[B+W]||(ne=0<ne.length?"{"+ne.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,k,L,V,L),ie[L+k]=!0)}if(L=null,M!==void 0&&(r(M),L=""+M),i(P)&&(r(P.key),L=""+P.key),"key"in P){M={};for(var X in P)X!=="key"&&(M[X]=P[X])}else M=P;return L&&u(M,typeof b=="function"?b.displayName||b.name||"Unknown":b),c(b,L,F,$,o(),M,Y,B)}function d(b){typeof b=="object"&&b!==null&&b.$$typeof===E&&b._store&&(b._store.validated=1)}var T=C,E=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),m=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),A=Symbol.for("react.client.reference"),j=T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.prototype.hasOwnProperty,N=Array.isArray,z=console.createTask?console.createTask:function(){return null};T={"react-stack-bottom-frame":function(b){return b()}};var q,W={},H=T["react-stack-bottom-frame"].bind(T,a)(),re=z(n(a)),ie={};qe.Fragment=x,qe.jsx=function(b,P,M,k,$){var F=1e4>j.recentlyCreatedOwnerStacks++;return g(b,P,M,!1,k,$,F?Error("react-stack-top-frame"):H,F?z(n(b)):re)},qe.jsxs=function(b,P,M,k,$){var F=1e4>j.recentlyCreatedOwnerStacks++;return g(b,P,M,!0,k,$,F?Error("react-stack-top-frame"):H,F?z(n(b)):re)}}()),qe}var Mr;function Ca(){return Mr||(Mr=1,process.env.NODE_ENV==="production"?st.exports=Oa():st.exports=Pa()),st.exports}var D=Ca();function et(){return et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},et.apply(null,arguments)}function Wn(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function sr(e,t){return sr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},sr(e,t)}function Yn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,sr(e,t)}var ut={exports:{}},ct={exports:{}},J={};/** @license React v16.13.1
22
+ <%s key={someKey} {...props} />`,W,B,ne,B),A[B+W]=!0)}if(B=null,U!==void 0&&(r(U),B=""+U),i(k)&&(r(k.key),B=""+k.key),"key"in k){U={};for(var ue in k)ue!=="key"&&(U[ue]=k[ue])}else U=k;return B&&s(U,typeof P=="function"?P.displayName||P.name||"Unknown":P),u(P,B,U,a(),Z,ee)}function d(P){b(P)?P._store&&(P._store.validated=1):typeof P=="object"&&P!==null&&P.$$typeof===j&&(P._payload.status==="fulfilled"?b(P._payload.value)&&P._payload.value._store&&(P._payload.value._store.validated=1):P._store&&(P._store.validated=1))}function b(P){return typeof P=="object"&&P!==null&&P.$$typeof===w}var y=I,w=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),v=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),q=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=Object.prototype.hasOwnProperty,Y=Array.isArray,X=console.createTask?console.createTask:function(){return null};y={react_stack_bottom_frame:function(P){return P()}};var te,re={},ie=y.react_stack_bottom_frame.bind(y,o)(),we=X(n(o)),A={};Zt.Fragment=S,Zt.jsx=function(P,k,U){var W=1e4>q.recentlyCreatedOwnerStacks++;return m(P,k,U,!1,W?Error("react-stack-top-frame"):ie,W?X(n(P)):we)},Zt.jsxs=function(P,k,U){var W=1e4>q.recentlyCreatedOwnerStacks++;return m(P,k,U,!0,W?Error("react-stack-top-frame"):ie,W?X(n(P)):we)}})()),Zt}var oo;function hl(){return oo||(oo=1,process.env.NODE_ENV==="production"?Nr.exports=dl():Nr.exports=pl()),Nr.exports}var z=hl();function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hr.apply(null,arguments)}function $i(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function aa(e,t){return aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},aa(e,t)}function Ui(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,aa(e,t)}var Ar={exports:{}},Mr={exports:{}},me={};/** @license React v16.13.1
23
23
  * react-is.production.min.js
24
24
  *
25
25
  * Copyright (c) Facebook, Inc. and its affiliates.
26
26
  *
27
27
  * This source code is licensed under the MIT license found in the
28
28
  * LICENSE file in the root directory of this source tree.
29
- */var kr;function _a(){if(kr)return J;kr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=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,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,f=e?Symbol.for("react.scope"):60119;function m(s){if(typeof s=="object"&&s!==null){var y=s.$$typeof;switch(y){case t:switch(s=s.type,s){case l:case c:case n:case a:case o:case d:return s;default:switch(s=s&&s.$$typeof,s){case u:case g:case w:case E:case i:return s;default:return y}}case r:return y}}}function v(s){return m(s)===c}return J.AsyncMode=l,J.ConcurrentMode=c,J.ContextConsumer=u,J.ContextProvider=i,J.Element=t,J.ForwardRef=g,J.Fragment=n,J.Lazy=w,J.Memo=E,J.Portal=r,J.Profiler=a,J.StrictMode=o,J.Suspense=d,J.isAsyncMode=function(s){return v(s)||m(s)===l},J.isConcurrentMode=v,J.isContextConsumer=function(s){return m(s)===u},J.isContextProvider=function(s){return m(s)===i},J.isElement=function(s){return typeof s=="object"&&s!==null&&s.$$typeof===t},J.isForwardRef=function(s){return m(s)===g},J.isFragment=function(s){return m(s)===n},J.isLazy=function(s){return m(s)===w},J.isMemo=function(s){return m(s)===E},J.isPortal=function(s){return m(s)===r},J.isProfiler=function(s){return m(s)===a},J.isStrictMode=function(s){return m(s)===o},J.isSuspense=function(s){return m(s)===d},J.isValidElementType=function(s){return typeof s=="string"||typeof s=="function"||s===n||s===c||s===a||s===o||s===d||s===T||typeof s=="object"&&s!==null&&(s.$$typeof===w||s.$$typeof===E||s.$$typeof===i||s.$$typeof===u||s.$$typeof===g||s.$$typeof===S||s.$$typeof===h||s.$$typeof===f||s.$$typeof===x)},J.typeOf=m,J}var Z={};/** @license React v16.13.1
29
+ */var io;function ml(){if(io)return me;io=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=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,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,c=e?Symbol.for("react.scope"):60119;function g(p){if(typeof p=="object"&&p!==null){var x=p.$$typeof;switch(x){case t:switch(p=p.type,p){case l:case u:case n:case o:case a:case d:return p;default:switch(p=p&&p.$$typeof,p){case s:case m:case w:case y:case i:return p;default:return x}}case r:return x}}}function v(p){return g(p)===u}return me.AsyncMode=l,me.ConcurrentMode=u,me.ContextConsumer=s,me.ContextProvider=i,me.Element=t,me.ForwardRef=m,me.Fragment=n,me.Lazy=w,me.Memo=y,me.Portal=r,me.Profiler=o,me.StrictMode=a,me.Suspense=d,me.isAsyncMode=function(p){return v(p)||g(p)===l},me.isConcurrentMode=v,me.isContextConsumer=function(p){return g(p)===s},me.isContextProvider=function(p){return g(p)===i},me.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},me.isForwardRef=function(p){return g(p)===m},me.isFragment=function(p){return g(p)===n},me.isLazy=function(p){return g(p)===w},me.isMemo=function(p){return g(p)===y},me.isPortal=function(p){return g(p)===r},me.isProfiler=function(p){return g(p)===o},me.isStrictMode=function(p){return g(p)===a},me.isSuspense=function(p){return g(p)===d},me.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===u||p===o||p===a||p===d||p===b||typeof p=="object"&&p!==null&&(p.$$typeof===w||p.$$typeof===y||p.$$typeof===i||p.$$typeof===s||p.$$typeof===m||p.$$typeof===S||p.$$typeof===h||p.$$typeof===c||p.$$typeof===E)},me.typeOf=g,me}var ge={};/** @license React v16.13.1
30
30
  * react-is.development.js
31
31
  *
32
32
  * Copyright (c) Facebook, Inc. and its affiliates.
33
33
  *
34
34
  * This source code is licensed under the MIT license found in the
35
35
  * LICENSE file in the root directory of this source tree.
36
- */var Ir;function ja(){return Ir||(Ir=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=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,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,f=e?Symbol.for("react.scope"):60119;function m(O){return typeof O=="string"||typeof O=="function"||O===n||O===c||O===a||O===o||O===d||O===T||typeof O=="object"&&O!==null&&(O.$$typeof===w||O.$$typeof===E||O.$$typeof===i||O.$$typeof===u||O.$$typeof===g||O.$$typeof===S||O.$$typeof===h||O.$$typeof===f||O.$$typeof===x)}function v(O){if(typeof O=="object"&&O!==null){var pe=O.$$typeof;switch(pe){case t:var Ee=O.type;switch(Ee){case l:case c:case n:case a:case o:case d:return Ee;default:var Le=Ee&&Ee.$$typeof;switch(Le){case u:case g:case w:case E:case i:return Le;default:return pe}}case r:return pe}}}var s=l,y=c,p=u,R=i,_=t,A=g,j=n,I=w,N=E,z=r,q=a,W=o,H=d,re=!1;function ie(O){return re||(re=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),b(O)||v(O)===l}function b(O){return v(O)===c}function P(O){return v(O)===u}function M(O){return v(O)===i}function k(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function $(O){return v(O)===g}function F(O){return v(O)===n}function Y(O){return v(O)===w}function B(O){return v(O)===E}function L(O){return v(O)===r}function V(O){return v(O)===a}function X(O){return v(O)===o}function ue(O){return v(O)===d}Z.AsyncMode=s,Z.ConcurrentMode=y,Z.ContextConsumer=p,Z.ContextProvider=R,Z.Element=_,Z.ForwardRef=A,Z.Fragment=j,Z.Lazy=I,Z.Memo=N,Z.Portal=z,Z.Profiler=q,Z.StrictMode=W,Z.Suspense=H,Z.isAsyncMode=ie,Z.isConcurrentMode=b,Z.isContextConsumer=P,Z.isContextProvider=M,Z.isElement=k,Z.isForwardRef=$,Z.isFragment=F,Z.isLazy=Y,Z.isMemo=B,Z.isPortal=L,Z.isProfiler=V,Z.isStrictMode=X,Z.isSuspense=ue,Z.isValidElementType=m,Z.typeOf=v}()),Z}var $r;function Un(){return $r||($r=1,process.env.NODE_ENV==="production"?ct.exports=_a():ct.exports=ja()),ct.exports}/*
36
+ */var so;function gl(){return so||(so=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=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,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,c=e?Symbol.for("react.scope"):60119;function g(C){return typeof C=="string"||typeof C=="function"||C===n||C===u||C===o||C===a||C===d||C===b||typeof C=="object"&&C!==null&&(C.$$typeof===w||C.$$typeof===y||C.$$typeof===i||C.$$typeof===s||C.$$typeof===m||C.$$typeof===S||C.$$typeof===h||C.$$typeof===c||C.$$typeof===E)}function v(C){if(typeof C=="object"&&C!==null){var _e=C.$$typeof;switch(_e){case t:var Be=C.type;switch(Be){case l:case u:case n:case o:case a:case d:return Be;default:var vt=Be&&Be.$$typeof;switch(vt){case s:case m:case w:case y:case i:return vt;default:return _e}}case r:return _e}}}var p=l,x=u,f=s,O=i,j=t,M=m,L=n,q=w,N=y,Y=r,X=o,te=a,re=d,ie=!1;function we(C){return ie||(ie=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),A(C)||v(C)===l}function A(C){return v(C)===u}function P(C){return v(C)===s}function k(C){return v(C)===i}function U(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function W(C){return v(C)===m}function Z(C){return v(C)===n}function ee(C){return v(C)===w}function B(C){return v(C)===y}function ne(C){return v(C)===r}function ue(C){return v(C)===o}function le(C){return v(C)===a}function Ae(C){return v(C)===d}ge.AsyncMode=p,ge.ConcurrentMode=x,ge.ContextConsumer=f,ge.ContextProvider=O,ge.Element=j,ge.ForwardRef=M,ge.Fragment=L,ge.Lazy=q,ge.Memo=N,ge.Portal=Y,ge.Profiler=X,ge.StrictMode=te,ge.Suspense=re,ge.isAsyncMode=we,ge.isConcurrentMode=A,ge.isContextConsumer=P,ge.isContextProvider=k,ge.isElement=U,ge.isForwardRef=W,ge.isFragment=Z,ge.isLazy=ee,ge.isMemo=B,ge.isPortal=ne,ge.isProfiler=ue,ge.isStrictMode=le,ge.isSuspense=Ae,ge.isValidElementType=g,ge.typeOf=v})()),ge}var lo;function Wi(){return lo||(lo=1,process.env.NODE_ENV==="production"?Mr.exports=ml():Mr.exports=gl()),Mr.exports}/*
37
37
  object-assign
38
38
  (c) Sindre Sorhus
39
39
  @license MIT
40
- */var Mt,zr;function Aa(){if(zr)return Mt;zr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},u=0;u<10;u++)i["_"+String.fromCharCode(u)]=u;var l=Object.getOwnPropertyNames(i).map(function(g){return i[g]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(g){c[g]=g}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Mt=o()?Object.assign:function(a,i){for(var u,l=n(a),c,g=1;g<arguments.length;g++){u=Object(arguments[g]);for(var d in u)t.call(u,d)&&(l[d]=u[d]);if(e){c=e(u);for(var T=0;T<c.length;T++)r.call(u,c[T])&&(l[c[T]]=u[c[T]])}}return l},Mt}var kt,Lr;function mr(){if(Lr)return kt;Lr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return kt=e,kt}var It,Fr;function Hn(){return Fr||(Fr=1,It=Function.call.bind(Object.prototype.hasOwnProperty)),It}var $t,qr;function Da(){if(qr)return $t;qr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=mr(),r={},n=Hn();e=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(a,i,u,l,c){if(process.env.NODE_ENV!=="production"){for(var g in a)if(n(a,g)){var d;try{if(typeof a[g]!="function"){var T=Error((l||"React class")+": "+u+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}d=a[g](i,g,l,u,null,t)}catch(w){d=w}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+u+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in r)){r[d.message]=!0;var E=c?c():"";e("Failed "+u+" type: "+d.message+(E??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},$t=o,$t}var zt,Wr;function Na(){if(Wr)return zt;Wr=1;var e=Un(),t=Aa(),r=mr(),n=Hn(),o=Da(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(u){var l="Warning: "+u;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function i(){return null}return zt=function(u,l){var c=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function d(b){var P=b&&(c&&b[c]||b[g]);if(typeof P=="function")return P}var T="<<anonymous>>",E={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:f(),arrayOf:m,element:v(),elementType:s(),instanceOf:y,node:A(),objectOf:R,oneOf:p,oneOfType:_,shape:I,exact:N};function w(b,P){return b===P?b!==0||1/b===1/P:b!==b&&P!==P}function x(b,P){this.message=b,this.data=P&&typeof P=="object"?P:{},this.stack=""}x.prototype=Error.prototype;function S(b){if(process.env.NODE_ENV!=="production")var P={},M=0;function k(F,Y,B,L,V,X,ue){if(L=L||T,X=X||B,ue!==r){if(l){var O=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw O.name="Invariant Violation",O}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var pe=L+":"+B;!P[pe]&&M<3&&(a("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+L+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),P[pe]=!0,M++)}}return Y[B]==null?F?Y[B]===null?new x("The "+V+" `"+X+"` is marked as required "+("in `"+L+"`, but its value is `null`.")):new x("The "+V+" `"+X+"` is marked as required in "+("`"+L+"`, but its value is `undefined`.")):null:b(Y,B,L,V,X)}var $=k.bind(null,!1);return $.isRequired=k.bind(null,!0),$}function h(b){function P(M,k,$,F,Y,B){var L=M[k],V=W(L);if(V!==b){var X=H(L);return new x("Invalid "+F+" `"+Y+"` of type "+("`"+X+"` supplied to `"+$+"`, expected ")+("`"+b+"`."),{expectedType:b})}return null}return S(P)}function f(){return S(i)}function m(b){function P(M,k,$,F,Y){if(typeof b!="function")return new x("Property `"+Y+"` of component `"+$+"` has invalid PropType notation inside arrayOf.");var B=M[k];if(!Array.isArray(B)){var L=W(B);return new x("Invalid "+F+" `"+Y+"` of type "+("`"+L+"` supplied to `"+$+"`, expected an array."))}for(var V=0;V<B.length;V++){var X=b(B,V,$,F,Y+"["+V+"]",r);if(X instanceof Error)return X}return null}return S(P)}function v(){function b(P,M,k,$,F){var Y=P[M];if(!u(Y)){var B=W(Y);return new x("Invalid "+$+" `"+F+"` of type "+("`"+B+"` supplied to `"+k+"`, expected a single ReactElement."))}return null}return S(b)}function s(){function b(P,M,k,$,F){var Y=P[M];if(!e.isValidElementType(Y)){var B=W(Y);return new x("Invalid "+$+" `"+F+"` of type "+("`"+B+"` supplied to `"+k+"`, expected a single ReactElement type."))}return null}return S(b)}function y(b){function P(M,k,$,F,Y){if(!(M[k]instanceof b)){var B=b.name||T,L=ie(M[k]);return new x("Invalid "+F+" `"+Y+"` of type "+("`"+L+"` supplied to `"+$+"`, expected ")+("instance of `"+B+"`."))}return null}return S(P)}function p(b){if(!Array.isArray(b))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),i;function P(M,k,$,F,Y){for(var B=M[k],L=0;L<b.length;L++)if(w(B,b[L]))return null;var V=JSON.stringify(b,function(ue,O){var pe=H(O);return pe==="symbol"?String(O):O});return new x("Invalid "+F+" `"+Y+"` of value `"+String(B)+"` "+("supplied to `"+$+"`, expected one of "+V+"."))}return S(P)}function R(b){function P(M,k,$,F,Y){if(typeof b!="function")return new x("Property `"+Y+"` of component `"+$+"` has invalid PropType notation inside objectOf.");var B=M[k],L=W(B);if(L!=="object")return new x("Invalid "+F+" `"+Y+"` of type "+("`"+L+"` supplied to `"+$+"`, expected an object."));for(var V in B)if(n(B,V)){var X=b(B,V,$,F,Y+"."+V,r);if(X instanceof Error)return X}return null}return S(P)}function _(b){if(!Array.isArray(b))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var P=0;P<b.length;P++){var M=b[P];if(typeof M!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+re(M)+" at index "+P+"."),i}function k($,F,Y,B,L){for(var V=[],X=0;X<b.length;X++){var ue=b[X],O=ue($,F,Y,B,L,r);if(O==null)return null;O.data&&n(O.data,"expectedType")&&V.push(O.data.expectedType)}var pe=V.length>0?", expected one of type ["+V.join(", ")+"]":"";return new x("Invalid "+B+" `"+L+"` supplied to "+("`"+Y+"`"+pe+"."))}return S(k)}function A(){function b(P,M,k,$,F){return z(P[M])?null:new x("Invalid "+$+" `"+F+"` supplied to "+("`"+k+"`, expected a ReactNode."))}return S(b)}function j(b,P,M,k,$){return new x((b||"React class")+": "+P+" type `"+M+"."+k+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+$+"`.")}function I(b){function P(M,k,$,F,Y){var B=M[k],L=W(B);if(L!=="object")return new x("Invalid "+F+" `"+Y+"` of type `"+L+"` "+("supplied to `"+$+"`, expected `object`."));for(var V in b){var X=b[V];if(typeof X!="function")return j($,F,Y,V,H(X));var ue=X(B,V,$,F,Y+"."+V,r);if(ue)return ue}return null}return S(P)}function N(b){function P(M,k,$,F,Y){var B=M[k],L=W(B);if(L!=="object")return new x("Invalid "+F+" `"+Y+"` of type `"+L+"` "+("supplied to `"+$+"`, expected `object`."));var V=t({},M[k],b);for(var X in V){var ue=b[X];if(n(b,X)&&typeof ue!="function")return j($,F,Y,X,H(ue));if(!ue)return new x("Invalid "+F+" `"+Y+"` key `"+X+"` supplied to `"+$+"`.\nBad object: "+JSON.stringify(M[k],null," ")+`
41
- Valid keys: `+JSON.stringify(Object.keys(b),null," "));var O=ue(B,X,$,F,Y+"."+X,r);if(O)return O}return null}return S(P)}function z(b){switch(typeof b){case"number":case"string":case"undefined":return!0;case"boolean":return!b;case"object":if(Array.isArray(b))return b.every(z);if(b===null||u(b))return!0;var P=d(b);if(P){var M=P.call(b),k;if(P!==b.entries){for(;!(k=M.next()).done;)if(!z(k.value))return!1}else for(;!(k=M.next()).done;){var $=k.value;if($&&!z($[1]))return!1}}else return!1;return!0;default:return!1}}function q(b,P){return b==="symbol"?!0:P?P["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&P instanceof Symbol:!1}function W(b){var P=typeof b;return Array.isArray(b)?"array":b instanceof RegExp?"object":q(P,b)?"symbol":P}function H(b){if(typeof b>"u"||b===null)return""+b;var P=W(b);if(P==="object"){if(b instanceof Date)return"date";if(b instanceof RegExp)return"regexp"}return P}function re(b){var P=H(b);switch(P){case"array":case"object":return"an "+P;case"boolean":case"date":case"regexp":return"a "+P;default:return P}}function ie(b){return!b.constructor||!b.constructor.name?T:b.constructor.name}return E.checkPropTypes=o,E.resetWarningCache=o.resetWarningCache,E.PropTypes=E,E},zt}var Lt,Yr;function Ma(){if(Yr)return Lt;Yr=1;var e=mr();function t(){}function r(){}return r.resetWarningCache=t,Lt=function(){function n(i,u,l,c,g,d){if(d!==e){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}n.isRequired=n;function o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Lt}var Ur;function at(){if(Ur)return ut.exports;if(Ur=1,process.env.NODE_ENV!=="production"){var e=Un(),t=!0;ut.exports=Na()(e.isElement,t)}else ut.exports=Ma()();return ut.exports}var ka=at();const U=wt(ka);function Ia(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function $a(e,t){e.classList?e.classList.add(t):Ia(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Hr(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function za(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Hr(e.className,t):e.setAttribute("class",Hr(e.className&&e.className.baseVal||"",t))}const Br={disabled:!1};var La=process.env.NODE_ENV!=="production"?U.oneOfType([U.number,U.shape({enter:U.number,exit:U.number,appear:U.number}).isRequired]):null,Fa=process.env.NODE_ENV!=="production"?U.oneOfType([U.string,U.shape({enter:U.string,exit:U.string,active:U.string}),U.shape({enter:U.string,enterDone:U.string,enterActive:U.string,exit:U.string,exitDone:U.string,exitActive:U.string})]):null;const Bn=C.createContext(null);var Vn=function(t){return t.scrollTop},Je="unmounted",Oe="exited",Pe="entering",Ae="entered",ur="exiting",Se=function(e){Yn(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=o,u=i&&!i.isMounting?n.enter:n.appear,l;return a.appearStatus=null,n.in?u?(l=Oe,a.appearStatus=Pe):l=Ae:n.unmountOnExit||n.mountOnEnter?l=Je:l=Oe,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Je?{status:Oe}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Pe&&i!==Ae&&(a=Pe):(i===Pe||i===Ae)&&(a=ur)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,u;return a=i=u=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,u=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:u}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Pe){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:De.findDOMNode(this);i&&Vn(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Oe&&this.setState({status:Je})},r.performEnter=function(o){var a=this,i=this.props.enter,u=this.context?this.context.isMounting:o,l=this.props.nodeRef?[u]:[De.findDOMNode(this),u],c=l[0],g=l[1],d=this.getTimeouts(),T=u?d.appear:d.enter;if(!o&&!i||Br.disabled){this.safeSetState({status:Ae},function(){a.props.onEntered(c)});return}this.props.onEnter(c,g),this.safeSetState({status:Pe},function(){a.props.onEntering(c,g),a.onTransitionEnd(T,function(){a.safeSetState({status:Ae},function(){a.props.onEntered(c,g)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),u=this.props.nodeRef?void 0:De.findDOMNode(this);if(!a||Br.disabled){this.safeSetState({status:Oe},function(){o.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:ur},function(){o.props.onExiting(u),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Oe},function(){o.props.onExited(u)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(u){i&&(i=!1,a.nextCallback=null,o(u))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:De.findDOMNode(this),u=o==null&&!this.props.addEndListener;if(!i||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],g=l[1];this.props.addEndListener(c,g)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Je)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var u=Wn(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return C.createElement(Bn.Provider,{value:null},typeof i=="function"?i(o,u):C.cloneElement(C.Children.only(i),u))},t}(C.Component);Se.contextType=Bn;Se.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:U.shape({current:typeof Element>"u"?U.any:function(e,t,r,n,o,a){var i=e[t];return U.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,a)}}),children:U.oneOfType([U.func.isRequired,U.element.isRequired]).isRequired,in:U.bool,mountOnEnter:U.bool,unmountOnExit:U.bool,appear:U.bool,enter:U.bool,exit:U.bool,timeout:function(t){var r=La;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return r.apply(void 0,[t].concat(o))},addEndListener:U.func,onEnter:U.func,onEntering:U.func,onEntered:U.func,onExit:U.func,onExiting:U.func,onExited:U.func}:{};function je(){}Se.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:je,onEntering:je,onEntered:je,onExit:je,onExiting:je,onExited:je};Se.UNMOUNTED=Je;Se.EXITED=Oe;Se.ENTERING=Pe;Se.ENTERED=Ae;Se.EXITING=ur;var qa=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return $a(t,n)})},Ft=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return za(t,n)})},Tt=function(e){Yn(t,e);function t(){for(var n,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=e.call.apply(e,[this].concat(a))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(u,l){var c=n.resolveArguments(u,l),g=c[0],d=c[1];n.removeClasses(g,"exit"),n.addClass(g,d?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(u,l)},n.onEntering=function(u,l){var c=n.resolveArguments(u,l),g=c[0],d=c[1],T=d?"appear":"enter";n.addClass(g,T,"active"),n.props.onEntering&&n.props.onEntering(u,l)},n.onEntered=function(u,l){var c=n.resolveArguments(u,l),g=c[0],d=c[1],T=d?"appear":"enter";n.removeClasses(g,T),n.addClass(g,T,"done"),n.props.onEntered&&n.props.onEntered(u,l)},n.onExit=function(u){var l=n.resolveArguments(u),c=l[0];n.removeClasses(c,"appear"),n.removeClasses(c,"enter"),n.addClass(c,"exit","base"),n.props.onExit&&n.props.onExit(u)},n.onExiting=function(u){var l=n.resolveArguments(u),c=l[0];n.addClass(c,"exit","active"),n.props.onExiting&&n.props.onExiting(u)},n.onExited=function(u){var l=n.resolveArguments(u),c=l[0];n.removeClasses(c,"exit"),n.addClass(c,"exit","done"),n.props.onExited&&n.props.onExited(u)},n.resolveArguments=function(u,l){return n.props.nodeRef?[n.props.nodeRef.current,u]:[u,l]},n.getClassNames=function(u){var l=n.props.classNames,c=typeof l=="string",g=c&&l?l+"-":"",d=c?""+g+u:l[u],T=c?d+"-active":l[u+"Active"],E=c?d+"-done":l[u+"Done"];return{baseClassName:d,activeClassName:T,doneClassName:E}},n}var r=t.prototype;return r.addClass=function(o,a,i){var u=this.getClassNames(a)[i+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;a==="appear"&&i==="done"&&c&&(u+=" "+c),i==="active"&&o&&Vn(o),u&&(this.appliedClasses[a][i]=u,qa(o,u))},r.removeClasses=function(o,a){var i=this.appliedClasses[a],u=i.base,l=i.active,c=i.done;this.appliedClasses[a]={},u&&Ft(o,u),l&&Ft(o,l),c&&Ft(o,c)},r.render=function(){var o=this.props;o.classNames;var a=Wn(o,["classNames"]);return C.createElement(Se,et({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(C.Component);Tt.defaultProps={classNames:""};Tt.propTypes=process.env.NODE_ENV!=="production"?et({},Se.propTypes,{classNames:Fa,onEnter:U.func,onEntering:U.func,onEntered:U.func,onExit:U.func,onExiting:U.func,onExited:U.func}):{};function Wa(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]}function Ya(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Ua=function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ya(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Wa(o);try{a.insertRule(n,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),fe="-ms-",xt="-moz-",G="-webkit-",Xn="comm",gr="rule",vr="decl",Ha="@import",Gn="@keyframes",Ba="@layer",Va=Math.abs,Rt=String.fromCharCode,Xa=Object.assign;function Ga(e,t){return ce(e,0)^45?(((t<<2^ce(e,0))<<2^ce(e,1))<<2^ce(e,2))<<2^ce(e,3):0}function Kn(e){return e.trim()}function Ka(e,t){return(e=t.exec(e))?e[0]:e}function K(e,t,r){return e.replace(t,r)}function cr(e,t){return e.indexOf(t)}function ce(e,t){return e.charCodeAt(t)|0}function tt(e,t,r){return e.slice(t,r)}function ye(e){return e.length}function yr(e){return e.length}function lt(e,t){return t.push(e),e}function Ja(e,t){return e.map(t).join("")}var Ot=1,ke=1,Jn=0,he=0,ae=0,$e="";function Pt(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Ot,column:ke,length:i,return:""}}function We(e,t){return Xa(Pt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Za(){return ae}function Qa(){return ae=he>0?ce($e,--he):0,ke--,ae===10&&(ke=1,Ot--),ae}function me(){return ae=he<Jn?ce($e,he++):0,ke++,ae===10&&(ke=1,Ot++),ae}function xe(){return ce($e,he)}function mt(){return he}function ot(e,t){return tt($e,e,t)}function rt(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 Zn(e){return Ot=ke=1,Jn=ye($e=e),he=0,[]}function Qn(e){return $e="",e}function gt(e){return Kn(ot(he-1,lr(e===91?e+2:e===40?e+1:e)))}function eo(e){for(;(ae=xe())&&ae<33;)me();return rt(e)>2||rt(ae)>3?"":" "}function to(e,t){for(;--t&&me()&&!(ae<48||ae>102||ae>57&&ae<65||ae>70&&ae<97););return ot(e,mt()+(t<6&&xe()==32&&me()==32))}function lr(e){for(;me();)switch(ae){case e:return he;case 34:case 39:e!==34&&e!==39&&lr(ae);break;case 40:e===41&&lr(e);break;case 92:me();break}return he}function ro(e,t){for(;me()&&e+ae!==57;)if(e+ae===84&&xe()===47)break;return"/*"+ot(t,he-1)+"*"+Rt(e===47?e:me())}function no(e){for(;!rt(xe());)me();return ot(e,he)}function ao(e){return Qn(vt("",null,null,null,[""],e=Zn(e),0,[0],e))}function vt(e,t,r,n,o,a,i,u,l){for(var c=0,g=0,d=i,T=0,E=0,w=0,x=1,S=1,h=1,f=0,m="",v=o,s=a,y=n,p=m;S;)switch(w=f,f=me()){case 40:if(w!=108&&ce(p,d-1)==58){cr(p+=K(gt(f),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:p+=gt(f);break;case 9:case 10:case 13:case 32:p+=eo(w);break;case 92:p+=to(mt()-1,7);continue;case 47:switch(xe()){case 42:case 47:lt(oo(ro(me(),mt()),t,r),l);break;default:p+="/"}break;case 123*x:u[c++]=ye(p)*h;case 125*x:case 59:case 0:switch(f){case 0:case 125:S=0;case 59+g:h==-1&&(p=K(p,/\f/g,"")),E>0&&ye(p)-d&&lt(E>32?Xr(p+";",n,r,d-1):Xr(K(p," ","")+";",n,r,d-2),l);break;case 59:p+=";";default:if(lt(y=Vr(p,t,r,c,g,o,u,m,v=[],s=[],d),a),f===123)if(g===0)vt(p,t,y,y,v,a,d,u,s);else switch(T===99&&ce(p,3)===110?100:T){case 100:case 108:case 109:case 115:vt(e,y,y,n&&lt(Vr(e,y,y,0,0,o,u,m,o,v=[],d),s),o,s,d,u,n?v:s);break;default:vt(p,y,y,y,[""],s,0,u,s)}}c=g=E=0,x=h=1,m=p="",d=i;break;case 58:d=1+ye(p),E=w;default:if(x<1){if(f==123)--x;else if(f==125&&x++==0&&Qa()==125)continue}switch(p+=Rt(f),f*x){case 38:h=g>0?1:(p+="\f",-1);break;case 44:u[c++]=(ye(p)-1)*h,h=1;break;case 64:xe()===45&&(p+=gt(me())),T=xe(),g=d=ye(m=p+=no(mt())),f++;break;case 45:w===45&&ye(p)==2&&(x=0)}}return a}function Vr(e,t,r,n,o,a,i,u,l,c,g){for(var d=o-1,T=o===0?a:[""],E=yr(T),w=0,x=0,S=0;w<n;++w)for(var h=0,f=tt(e,d+1,d=Va(x=i[w])),m=e;h<E;++h)(m=Kn(x>0?T[h]+" "+f:K(f,/&\f/g,T[h])))&&(l[S++]=m);return Pt(e,t,r,o===0?gr:u,l,c,g)}function oo(e,t,r){return Pt(e,t,r,Xn,Rt(Za()),tt(e,2,-2),0)}function Xr(e,t,r,n){return Pt(e,t,r,vr,tt(e,0,n),tt(e,n+1,-1),n)}function Ne(e,t){for(var r="",n=yr(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function io(e,t,r,n){switch(e.type){case Ba:if(e.children.length)break;case Ha:case vr:return e.return=e.return||e.value;case Xn:return"";case Gn:return e.return=e.value+"{"+Ne(e.children,n)+"}";case gr:e.value=e.props.join(",")}return ye(r=Ne(e.children,n))?e.return=e.value+"{"+r+"}":""}function so(e){var t=yr(e);return function(r,n,o,a){for(var i="",u=0;u<t;u++)i+=e[u](r,n,o,a)||"";return i}}function uo(e){return function(t){t.root||(t=t.return)&&e(t)}}function ea(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var co=function(t,r,n){for(var o=0,a=0;o=a,a=xe(),o===38&&a===12&&(r[n]=1),!rt(a);)me();return ot(t,he)},lo=function(t,r){var n=-1,o=44;do switch(rt(o)){case 0:o===38&&xe()===12&&(r[n]=1),t[n]+=co(he-1,r,n);break;case 2:t[n]+=gt(o);break;case 4:if(o===44){t[++n]=xe()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Rt(o)}while(o=me());return t},fo=function(t,r){return Qn(lo(Zn(t),r))},Gr=new WeakMap,po=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Gr.get(n))&&!o){Gr.set(t,!0);for(var a=[],i=fo(r,a),u=n.props,l=0,c=0;l<i.length;l++)for(var g=0;g<u.length;g++,c++)t.props[c]=a[l]?i[l].replace(/&\f/g,u[g]):u[g]+" "+i[l]}}},ho=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function ta(e,t){switch(Ga(e,t)){case 5103:return G+"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 G+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return G+e+xt+e+fe+e+e;case 6828:case 4268:return G+e+fe+e+e;case 6165:return G+e+fe+"flex-"+e+e;case 5187:return G+e+K(e,/(\w+).+(:[^]+)/,G+"box-$1$2"+fe+"flex-$1$2")+e;case 5443:return G+e+fe+"flex-item-"+K(e,/flex-|-self/,"")+e;case 4675:return G+e+fe+"flex-line-pack"+K(e,/align-content|flex-|-self/,"")+e;case 5548:return G+e+fe+K(e,"shrink","negative")+e;case 5292:return G+e+fe+K(e,"basis","preferred-size")+e;case 6060:return G+"box-"+K(e,"-grow","")+G+e+fe+K(e,"grow","positive")+e;case 4554:return G+K(e,/([^-])(transform)/g,"$1"+G+"$2")+e;case 6187:return K(K(K(e,/(zoom-|grab)/,G+"$1"),/(image-set)/,G+"$1"),e,"")+e;case 5495:case 3959:return K(e,/(image-set\([^]*)/,G+"$1$`$1");case 4968:return K(K(e,/(.+:)(flex-)?(.*)/,G+"box-pack:$3"+fe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+G+e+e;case 4095:case 3583:case 4068:case 2532:return K(e,/(.+)-inline(.+)/,G+"$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(ye(e)-1-t>6)switch(ce(e,t+1)){case 109:if(ce(e,t+4)!==45)break;case 102:return K(e,/(.+:)(.+)-([^]+)/,"$1"+G+"$2-$3$1"+xt+(ce(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cr(e,"stretch")?ta(K(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ce(e,t+1)!==115)break;case 6444:switch(ce(e,ye(e)-3-(~cr(e,"!important")&&10))){case 107:return K(e,":",":"+G)+e;case 101:return K(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+G+(ce(e,14)===45?"inline-":"")+"box$3$1"+G+"$2$3$1"+fe+"$2box$3")+e}break;case 5936:switch(ce(e,t+11)){case 114:return G+e+fe+K(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return G+e+fe+K(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return G+e+fe+K(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return G+e+fe+e+e}return e}var mo=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case vr:t.return=ta(t.value,t.length);break;case Gn:return Ne([We(t,{value:K(t.value,"@","@"+G)})],o);case gr:if(t.length)return Ja(t.props,function(a){switch(Ka(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ne([We(t,{props:[K(a,/:(read-\w+)/,":"+xt+"$1")]})],o);case"::placeholder":return Ne([We(t,{props:[K(a,/:(plac\w+)/,":"+G+"input-$1")]}),We(t,{props:[K(a,/:(plac\w+)/,":"+xt+"$1")]}),We(t,{props:[K(a,/:(plac\w+)/,fe+"input-$1")]})],o)}return""})}},go=[mo],vo=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(x){var S=x.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||go,a={},i,u=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(x){for(var S=x.getAttribute("data-emotion").split(" "),h=1;h<S.length;h++)a[S[h]]=!0;u.push(x)});var l,c=[po,ho];{var g,d=[io,uo(function(x){g.insert(x)})],T=so(c.concat(o,d)),E=function(S){return Ne(ao(S),T)};l=function(S,h,f,m){g=f,E(S?S+"{"+h.styles+"}":h.styles),m&&(w.inserted[h.name]=!0)}}var w={key:r,sheet:new Ua({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return w.sheet.hydrate(u),w},ft={exports:{}},Q={};/** @license React v16.13.1
40
+ */var Sn,uo;function vl(){if(uo)return Sn;uo=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function a(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var i={},s=0;s<10;s++)i["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(i).map(function(m){return i[m]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(m){u[m]=m}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Sn=a()?Object.assign:function(o,i){for(var s,l=n(o),u,m=1;m<arguments.length;m++){s=Object(arguments[m]);for(var d in s)t.call(s,d)&&(l[d]=s[d]);if(e){u=e(s);for(var b=0;b<u.length;b++)r.call(s,u[b])&&(l[u[b]]=s[u[b]])}}return l},Sn}var wn,co;function va(){if(co)return wn;co=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return wn=e,wn}var Rn,fo;function qi(){return fo||(fo=1,Rn=Function.call.bind(Object.prototype.hasOwnProperty)),Rn}var Pn,po;function yl(){if(po)return Pn;po=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=va(),r={},n=qi();e=function(o){var i="Warning: "+o;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function a(o,i,s,l,u){if(process.env.NODE_ENV!=="production"){for(var m in o)if(n(o,m)){var d;try{if(typeof o[m]!="function"){var b=Error((l||"React class")+": "+s+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}d=o[m](i,m,l,s,null,t)}catch(w){d=w}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in r)){r[d.message]=!0;var y=u?u():"";e("Failed "+s+" type: "+d.message+(y??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Pn=a,Pn}var On,ho;function bl(){if(ho)return On;ho=1;var e=Wi(),t=vl(),r=va(),n=qi(),a=yl(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function i(){return null}return On=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function d(A){var P=A&&(u&&A[u]||A[m]);if(typeof P=="function")return P}var b="<<anonymous>>",y={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:c(),arrayOf:g,element:v(),elementType:p(),instanceOf:x,node:M(),objectOf:O,oneOf:f,oneOfType:j,shape:q,exact:N};function w(A,P){return A===P?A!==0||1/A===1/P:A!==A&&P!==P}function E(A,P){this.message=A,this.data=P&&typeof P=="object"?P:{},this.stack=""}E.prototype=Error.prototype;function S(A){if(process.env.NODE_ENV!=="production")var P={},k=0;function U(Z,ee,B,ne,ue,le,Ae){if(ne=ne||b,le=le||B,Ae!==r){if(l){var C=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw C.name="Invariant Violation",C}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var _e=ne+":"+B;!P[_e]&&k<3&&(o("You are manually calling a React.PropTypes validation function for the `"+le+"` prop on `"+ne+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),P[_e]=!0,k++)}}return ee[B]==null?Z?ee[B]===null?new E("The "+ue+" `"+le+"` is marked as required "+("in `"+ne+"`, but its value is `null`.")):new E("The "+ue+" `"+le+"` is marked as required in "+("`"+ne+"`, but its value is `undefined`.")):null:A(ee,B,ne,ue,le)}var W=U.bind(null,!1);return W.isRequired=U.bind(null,!0),W}function h(A){function P(k,U,W,Z,ee,B){var ne=k[U],ue=te(ne);if(ue!==A){var le=re(ne);return new E("Invalid "+Z+" `"+ee+"` of type "+("`"+le+"` supplied to `"+W+"`, expected ")+("`"+A+"`."),{expectedType:A})}return null}return S(P)}function c(){return S(i)}function g(A){function P(k,U,W,Z,ee){if(typeof A!="function")return new E("Property `"+ee+"` of component `"+W+"` has invalid PropType notation inside arrayOf.");var B=k[U];if(!Array.isArray(B)){var ne=te(B);return new E("Invalid "+Z+" `"+ee+"` of type "+("`"+ne+"` supplied to `"+W+"`, expected an array."))}for(var ue=0;ue<B.length;ue++){var le=A(B,ue,W,Z,ee+"["+ue+"]",r);if(le instanceof Error)return le}return null}return S(P)}function v(){function A(P,k,U,W,Z){var ee=P[k];if(!s(ee)){var B=te(ee);return new E("Invalid "+W+" `"+Z+"` of type "+("`"+B+"` supplied to `"+U+"`, expected a single ReactElement."))}return null}return S(A)}function p(){function A(P,k,U,W,Z){var ee=P[k];if(!e.isValidElementType(ee)){var B=te(ee);return new E("Invalid "+W+" `"+Z+"` of type "+("`"+B+"` supplied to `"+U+"`, expected a single ReactElement type."))}return null}return S(A)}function x(A){function P(k,U,W,Z,ee){if(!(k[U]instanceof A)){var B=A.name||b,ne=we(k[U]);return new E("Invalid "+Z+" `"+ee+"` of type "+("`"+ne+"` supplied to `"+W+"`, expected ")+("instance of `"+B+"`."))}return null}return S(P)}function f(A){if(!Array.isArray(A))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),i;function P(k,U,W,Z,ee){for(var B=k[U],ne=0;ne<A.length;ne++)if(w(B,A[ne]))return null;var ue=JSON.stringify(A,function(Ae,C){var _e=re(C);return _e==="symbol"?String(C):C});return new E("Invalid "+Z+" `"+ee+"` of value `"+String(B)+"` "+("supplied to `"+W+"`, expected one of "+ue+"."))}return S(P)}function O(A){function P(k,U,W,Z,ee){if(typeof A!="function")return new E("Property `"+ee+"` of component `"+W+"` has invalid PropType notation inside objectOf.");var B=k[U],ne=te(B);if(ne!=="object")return new E("Invalid "+Z+" `"+ee+"` of type "+("`"+ne+"` supplied to `"+W+"`, expected an object."));for(var ue in B)if(n(B,ue)){var le=A(B,ue,W,Z,ee+"."+ue,r);if(le instanceof Error)return le}return null}return S(P)}function j(A){if(!Array.isArray(A))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var P=0;P<A.length;P++){var k=A[P];if(typeof k!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ie(k)+" at index "+P+"."),i}function U(W,Z,ee,B,ne){for(var ue=[],le=0;le<A.length;le++){var Ae=A[le],C=Ae(W,Z,ee,B,ne,r);if(C==null)return null;C.data&&n(C.data,"expectedType")&&ue.push(C.data.expectedType)}var _e=ue.length>0?", expected one of type ["+ue.join(", ")+"]":"";return new E("Invalid "+B+" `"+ne+"` supplied to "+("`"+ee+"`"+_e+"."))}return S(U)}function M(){function A(P,k,U,W,Z){return Y(P[k])?null:new E("Invalid "+W+" `"+Z+"` supplied to "+("`"+U+"`, expected a ReactNode."))}return S(A)}function L(A,P,k,U,W){return new E((A||"React class")+": "+P+" type `"+k+"."+U+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+W+"`.")}function q(A){function P(k,U,W,Z,ee){var B=k[U],ne=te(B);if(ne!=="object")return new E("Invalid "+Z+" `"+ee+"` of type `"+ne+"` "+("supplied to `"+W+"`, expected `object`."));for(var ue in A){var le=A[ue];if(typeof le!="function")return L(W,Z,ee,ue,re(le));var Ae=le(B,ue,W,Z,ee+"."+ue,r);if(Ae)return Ae}return null}return S(P)}function N(A){function P(k,U,W,Z,ee){var B=k[U],ne=te(B);if(ne!=="object")return new E("Invalid "+Z+" `"+ee+"` of type `"+ne+"` "+("supplied to `"+W+"`, expected `object`."));var ue=t({},k[U],A);for(var le in ue){var Ae=A[le];if(n(A,le)&&typeof Ae!="function")return L(W,Z,ee,le,re(Ae));if(!Ae)return new E("Invalid "+Z+" `"+ee+"` key `"+le+"` supplied to `"+W+"`.\nBad object: "+JSON.stringify(k[U],null," ")+`
41
+ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var C=Ae(B,le,W,Z,ee+"."+le,r);if(C)return C}return null}return S(P)}function Y(A){switch(typeof A){case"number":case"string":case"undefined":return!0;case"boolean":return!A;case"object":if(Array.isArray(A))return A.every(Y);if(A===null||s(A))return!0;var P=d(A);if(P){var k=P.call(A),U;if(P!==A.entries){for(;!(U=k.next()).done;)if(!Y(U.value))return!1}else for(;!(U=k.next()).done;){var W=U.value;if(W&&!Y(W[1]))return!1}}else return!1;return!0;default:return!1}}function X(A,P){return A==="symbol"?!0:P?P["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&P instanceof Symbol:!1}function te(A){var P=typeof A;return Array.isArray(A)?"array":A instanceof RegExp?"object":X(P,A)?"symbol":P}function re(A){if(typeof A>"u"||A===null)return""+A;var P=te(A);if(P==="object"){if(A instanceof Date)return"date";if(A instanceof RegExp)return"regexp"}return P}function ie(A){var P=re(A);switch(P){case"array":case"object":return"an "+P;case"boolean":case"date":case"regexp":return"a "+P;default:return P}}function we(A){return!A.constructor||!A.constructor.name?b:A.constructor.name}return y.checkPropTypes=a,y.resetWarningCache=a.resetWarningCache,y.PropTypes=y,y},On}var _n,mo;function El(){if(mo)return _n;mo=1;var e=va();function t(){}function r(){}return r.resetWarningCache=t,_n=function(){function n(i,s,l,u,m,d){if(d!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}n.isRequired=n;function a(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o},_n}var go;function Er(){if(go)return Ar.exports;if(go=1,process.env.NODE_ENV!=="production"){var e=Wi(),t=!0;Ar.exports=bl()(e.isElement,t)}else Ar.exports=El()();return Ar.exports}var xl=Er();const oe=nn(xl);function Sl(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function wl(e,t){e.classList?e.classList.add(t):Sl(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function vo(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Rl(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=vo(e.className,t):e.setAttribute("class",vo(e.className&&e.className.baseVal||"",t))}const yo={disabled:!1};var Pl=process.env.NODE_ENV!=="production"?oe.oneOfType([oe.number,oe.shape({enter:oe.number,exit:oe.number,appear:oe.number}).isRequired]):null,Ol=process.env.NODE_ENV!=="production"?oe.oneOfType([oe.string,oe.shape({enter:oe.string,exit:oe.string,active:oe.string}),oe.shape({enter:oe.string,enterDone:oe.string,enterActive:oe.string,exit:oe.string,exitDone:oe.string,exitActive:oe.string})]):null;const Bi=I.createContext(null);var Hi=function(t){return t.scrollTop},fr="unmounted",xt="exited",St="entering",kt="entered",oa="exiting",rt=(function(e){Ui(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var i=a,s=i&&!i.isMounting?n.enter:n.appear,l;return o.appearStatus=null,n.in?s?(l=xt,o.appearStatus=St):l=kt:n.unmountOnExit||n.mountOnEnter?l=fr:l=xt,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var i=a.in;return i&&o.status===fr?{status:xt}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var o=null;if(a!==this.props){var i=this.state.status;this.props.in?i!==St&&i!==kt&&(o=St):(i===St||i===kt)&&(o=oa)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,o,i,s;return o=i=s=a,a!=null&&typeof a!="number"&&(o=a.exit,i=a.enter,s=a.appear!==void 0?a.appear:i),{exit:o,enter:i,appear:s}},r.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===St){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Lt.findDOMNode(this);i&&Hi(i)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xt&&this.setState({status:fr})},r.performEnter=function(a){var o=this,i=this.props.enter,s=this.context?this.context.isMounting:a,l=this.props.nodeRef?[s]:[Lt.findDOMNode(this),s],u=l[0],m=l[1],d=this.getTimeouts(),b=s?d.appear:d.enter;if(!a&&!i||yo.disabled){this.safeSetState({status:kt},function(){o.props.onEntered(u)});return}this.props.onEnter(u,m),this.safeSetState({status:St},function(){o.props.onEntering(u,m),o.onTransitionEnd(b,function(){o.safeSetState({status:kt},function(){o.props.onEntered(u,m)})})})},r.performExit=function(){var a=this,o=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:Lt.findDOMNode(this);if(!o||yo.disabled){this.safeSetState({status:xt},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:oa},function(){a.props.onExiting(s),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:xt},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},r.setNextCallback=function(a){var o=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,o.nextCallback=null,a(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(a,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:Lt.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],u=l[0],m=l[1];this.props.addEndListener(u,m)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===fr)return null;var o=this.props,i=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=$i(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return I.createElement(Bi.Provider,{value:null},typeof i=="function"?i(a,s):I.cloneElement(I.Children.only(i),s))},t})(I.Component);rt.contextType=Bi;rt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:oe.shape({current:typeof Element>"u"?oe.any:function(e,t,r,n,a,o){var i=e[t];return oe.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,t,r,n,a,o)}}),children:oe.oneOfType([oe.func.isRequired,oe.element.isRequired]).isRequired,in:oe.bool,mountOnEnter:oe.bool,unmountOnExit:oe.bool,appear:oe.bool,enter:oe.bool,exit:oe.bool,timeout:function(t){var r=Pl;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];return r.apply(void 0,[t].concat(a))},addEndListener:oe.func,onEnter:oe.func,onEntering:oe.func,onEntered:oe.func,onExit:oe.func,onExiting:oe.func,onExited:oe.func}:{};function At(){}rt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:At,onEntering:At,onEntered:At,onExit:At,onExiting:At,onExited:At};rt.UNMOUNTED=fr;rt.EXITED=xt;rt.ENTERING=St;rt.ENTERED=kt;rt.EXITING=oa;var _l=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return wl(t,n)})},Tn=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return Rl(t,n)})},an=(function(e){Ui(t,e);function t(){for(var n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=e.call.apply(e,[this].concat(o))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(s,l){var u=n.resolveArguments(s,l),m=u[0],d=u[1];n.removeClasses(m,"exit"),n.addClass(m,d?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(s,l)},n.onEntering=function(s,l){var u=n.resolveArguments(s,l),m=u[0],d=u[1],b=d?"appear":"enter";n.addClass(m,b,"active"),n.props.onEntering&&n.props.onEntering(s,l)},n.onEntered=function(s,l){var u=n.resolveArguments(s,l),m=u[0],d=u[1],b=d?"appear":"enter";n.removeClasses(m,b),n.addClass(m,b,"done"),n.props.onEntered&&n.props.onEntered(s,l)},n.onExit=function(s){var l=n.resolveArguments(s),u=l[0];n.removeClasses(u,"appear"),n.removeClasses(u,"enter"),n.addClass(u,"exit","base"),n.props.onExit&&n.props.onExit(s)},n.onExiting=function(s){var l=n.resolveArguments(s),u=l[0];n.addClass(u,"exit","active"),n.props.onExiting&&n.props.onExiting(s)},n.onExited=function(s){var l=n.resolveArguments(s),u=l[0];n.removeClasses(u,"exit"),n.addClass(u,"exit","done"),n.props.onExited&&n.props.onExited(s)},n.resolveArguments=function(s,l){return n.props.nodeRef?[n.props.nodeRef.current,s]:[s,l]},n.getClassNames=function(s){var l=n.props.classNames,u=typeof l=="string",m=u&&l?l+"-":"",d=u?""+m+s:l[s],b=u?d+"-active":l[s+"Active"],y=u?d+"-done":l[s+"Done"];return{baseClassName:d,activeClassName:b,doneClassName:y}},n}var r=t.prototype;return r.addClass=function(a,o,i){var s=this.getClassNames(o)[i+"ClassName"],l=this.getClassNames("enter"),u=l.doneClassName;o==="appear"&&i==="done"&&u&&(s+=" "+u),i==="active"&&a&&Hi(a),s&&(this.appliedClasses[o][i]=s,_l(a,s))},r.removeClasses=function(a,o){var i=this.appliedClasses[o],s=i.base,l=i.active,u=i.done;this.appliedClasses[o]={},s&&Tn(a,s),l&&Tn(a,l),u&&Tn(a,u)},r.render=function(){var a=this.props;a.classNames;var o=$i(a,["classNames"]);return I.createElement(rt,hr({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(I.Component);an.defaultProps={classNames:""};an.propTypes=process.env.NODE_ENV!=="production"?hr({},rt.propTypes,{classNames:Ol,onEnter:oe.func,onEntering:oe.func,onEntered:oe.func,onExit:oe.func,onExiting:oe.func,onExited:oe.func}):{};function Tl(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]}function Cl(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Dl=(function(){function e(r){var n=this;this._insertTag=function(a){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,o),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Cl(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Tl(a);try{o.insertRule(n,o.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e})(),Fe="-ms-",Kr="-moz-",pe="-webkit-",Yi="comm",ya="rule",ba="decl",jl="@import",Vi="@keyframes",Nl="@layer",Al=Math.abs,on=String.fromCharCode,Ml=Object.assign;function Il(e,t){return Ie(e,0)^45?(((t<<2^Ie(e,0))<<2^Ie(e,1))<<2^Ie(e,2))<<2^Ie(e,3):0}function Xi(e){return e.trim()}function kl(e,t){return(e=t.exec(e))?e[0]:e}function he(e,t,r){return e.replace(t,r)}function ia(e,t){return e.indexOf(t)}function Ie(e,t){return e.charCodeAt(t)|0}function mr(e,t,r){return e.slice(t,r)}function Ze(e){return e.length}function Ea(e){return e.length}function Ir(e,t){return t.push(e),e}function Fl(e,t){return e.map(t).join("")}var sn=1,Ut=1,Gi=0,$e=0,De=0,Bt="";function ln(e,t,r,n,a,o,i){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:sn,column:Ut,length:i,return:""}}function Qt(e,t){return Ml(ln("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ll(){return De}function zl(){return De=$e>0?Ie(Bt,--$e):0,Ut--,De===10&&(Ut=1,sn--),De}function qe(){return De=$e<Gi?Ie(Bt,$e++):0,Ut++,De===10&&(Ut=1,sn++),De}function tt(){return Ie(Bt,$e)}function Ur(){return $e}function xr(e,t){return mr(Bt,e,t)}function gr(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 Ki(e){return sn=Ut=1,Gi=Ze(Bt=e),$e=0,[]}function Ji(e){return Bt="",e}function Wr(e){return Xi(xr($e-1,sa(e===91?e+2:e===40?e+1:e)))}function $l(e){for(;(De=tt())&&De<33;)qe();return gr(e)>2||gr(De)>3?"":" "}function Ul(e,t){for(;--t&&qe()&&!(De<48||De>102||De>57&&De<65||De>70&&De<97););return xr(e,Ur()+(t<6&&tt()==32&&qe()==32))}function sa(e){for(;qe();)switch(De){case e:return $e;case 34:case 39:e!==34&&e!==39&&sa(De);break;case 40:e===41&&sa(e);break;case 92:qe();break}return $e}function Wl(e,t){for(;qe()&&e+De!==57;)if(e+De===84&&tt()===47)break;return"/*"+xr(t,$e-1)+"*"+on(e===47?e:qe())}function ql(e){for(;!gr(tt());)qe();return xr(e,$e)}function Bl(e){return Ji(qr("",null,null,null,[""],e=Ki(e),0,[0],e))}function qr(e,t,r,n,a,o,i,s,l){for(var u=0,m=0,d=i,b=0,y=0,w=0,E=1,S=1,h=1,c=0,g="",v=a,p=o,x=n,f=g;S;)switch(w=c,c=qe()){case 40:if(w!=108&&Ie(f,d-1)==58){ia(f+=he(Wr(c),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:f+=Wr(c);break;case 9:case 10:case 13:case 32:f+=$l(w);break;case 92:f+=Ul(Ur()-1,7);continue;case 47:switch(tt()){case 42:case 47:Ir(Hl(Wl(qe(),Ur()),t,r),l);break;default:f+="/"}break;case 123*E:s[u++]=Ze(f)*h;case 125*E:case 59:case 0:switch(c){case 0:case 125:S=0;case 59+m:h==-1&&(f=he(f,/\f/g,"")),y>0&&Ze(f)-d&&Ir(y>32?Eo(f+";",n,r,d-1):Eo(he(f," ","")+";",n,r,d-2),l);break;case 59:f+=";";default:if(Ir(x=bo(f,t,r,u,m,a,s,g,v=[],p=[],d),o),c===123)if(m===0)qr(f,t,x,x,v,o,d,s,p);else switch(b===99&&Ie(f,3)===110?100:b){case 100:case 108:case 109:case 115:qr(e,x,x,n&&Ir(bo(e,x,x,0,0,a,s,g,a,v=[],d),p),a,p,d,s,n?v:p);break;default:qr(f,x,x,x,[""],p,0,s,p)}}u=m=y=0,E=h=1,g=f="",d=i;break;case 58:d=1+Ze(f),y=w;default:if(E<1){if(c==123)--E;else if(c==125&&E++==0&&zl()==125)continue}switch(f+=on(c),c*E){case 38:h=m>0?1:(f+="\f",-1);break;case 44:s[u++]=(Ze(f)-1)*h,h=1;break;case 64:tt()===45&&(f+=Wr(qe())),b=tt(),m=d=Ze(g=f+=ql(Ur())),c++;break;case 45:w===45&&Ze(f)==2&&(E=0)}}return o}function bo(e,t,r,n,a,o,i,s,l,u,m){for(var d=a-1,b=a===0?o:[""],y=Ea(b),w=0,E=0,S=0;w<n;++w)for(var h=0,c=mr(e,d+1,d=Al(E=i[w])),g=e;h<y;++h)(g=Xi(E>0?b[h]+" "+c:he(c,/&\f/g,b[h])))&&(l[S++]=g);return ln(e,t,r,a===0?ya:s,l,u,m)}function Hl(e,t,r){return ln(e,t,r,Yi,on(Ll()),mr(e,2,-2),0)}function Eo(e,t,r,n){return ln(e,t,r,ba,mr(e,0,n),mr(e,n+1,-1),n)}function zt(e,t){for(var r="",n=Ea(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Yl(e,t,r,n){switch(e.type){case Nl:if(e.children.length)break;case jl:case ba:return e.return=e.return||e.value;case Yi:return"";case Vi:return e.return=e.value+"{"+zt(e.children,n)+"}";case ya:e.value=e.props.join(",")}return Ze(r=zt(e.children,n))?e.return=e.value+"{"+r+"}":""}function Vl(e){var t=Ea(e);return function(r,n,a,o){for(var i="",s=0;s<t;s++)i+=e[s](r,n,a,o)||"";return i}}function Xl(e){return function(t){t.root||(t=t.return)&&e(t)}}function Zi(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Gl=function(t,r,n){for(var a=0,o=0;a=o,o=tt(),a===38&&o===12&&(r[n]=1),!gr(o);)qe();return xr(t,$e)},Kl=function(t,r){var n=-1,a=44;do switch(gr(a)){case 0:a===38&&tt()===12&&(r[n]=1),t[n]+=Gl($e-1,r,n);break;case 2:t[n]+=Wr(a);break;case 4:if(a===44){t[++n]=tt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=on(a)}while(a=qe());return t},Jl=function(t,r){return Ji(Kl(Ki(t),r))},xo=new WeakMap,Zl=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!xo.get(n))&&!a){xo.set(t,!0);for(var o=[],i=Jl(r,o),s=n.props,l=0,u=0;l<i.length;l++)for(var m=0;m<s.length;m++,u++)t.props[u]=o[l]?i[l].replace(/&\f/g,s[m]):s[m]+" "+i[l]}}},Ql=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Qi(e,t){switch(Il(e,t)){case 5103:return pe+"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 pe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pe+e+Kr+e+Fe+e+e;case 6828:case 4268:return pe+e+Fe+e+e;case 6165:return pe+e+Fe+"flex-"+e+e;case 5187:return pe+e+he(e,/(\w+).+(:[^]+)/,pe+"box-$1$2"+Fe+"flex-$1$2")+e;case 5443:return pe+e+Fe+"flex-item-"+he(e,/flex-|-self/,"")+e;case 4675:return pe+e+Fe+"flex-line-pack"+he(e,/align-content|flex-|-self/,"")+e;case 5548:return pe+e+Fe+he(e,"shrink","negative")+e;case 5292:return pe+e+Fe+he(e,"basis","preferred-size")+e;case 6060:return pe+"box-"+he(e,"-grow","")+pe+e+Fe+he(e,"grow","positive")+e;case 4554:return pe+he(e,/([^-])(transform)/g,"$1"+pe+"$2")+e;case 6187:return he(he(he(e,/(zoom-|grab)/,pe+"$1"),/(image-set)/,pe+"$1"),e,"")+e;case 5495:case 3959:return he(e,/(image-set\([^]*)/,pe+"$1$`$1");case 4968:return he(he(e,/(.+:)(flex-)?(.*)/,pe+"box-pack:$3"+Fe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pe+e+e;case 4095:case 3583:case 4068:case 2532:return he(e,/(.+)-inline(.+)/,pe+"$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(Ze(e)-1-t>6)switch(Ie(e,t+1)){case 109:if(Ie(e,t+4)!==45)break;case 102:return he(e,/(.+:)(.+)-([^]+)/,"$1"+pe+"$2-$3$1"+Kr+(Ie(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ia(e,"stretch")?Qi(he(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ie(e,t+1)!==115)break;case 6444:switch(Ie(e,Ze(e)-3-(~ia(e,"!important")&&10))){case 107:return he(e,":",":"+pe)+e;case 101:return he(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pe+(Ie(e,14)===45?"inline-":"")+"box$3$1"+pe+"$2$3$1"+Fe+"$2box$3")+e}break;case 5936:switch(Ie(e,t+11)){case 114:return pe+e+Fe+he(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pe+e+Fe+he(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pe+e+Fe+he(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pe+e+Fe+e+e}return e}var eu=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case ba:t.return=Qi(t.value,t.length);break;case Vi:return zt([Qt(t,{value:he(t.value,"@","@"+pe)})],a);case ya:if(t.length)return Fl(t.props,function(o){switch(kl(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zt([Qt(t,{props:[he(o,/:(read-\w+)/,":"+Kr+"$1")]})],a);case"::placeholder":return zt([Qt(t,{props:[he(o,/:(plac\w+)/,":"+pe+"input-$1")]}),Qt(t,{props:[he(o,/:(plac\w+)/,":"+Kr+"$1")]}),Qt(t,{props:[he(o,/:(plac\w+)/,Fe+"input-$1")]})],a)}return""})}},tu=[eu],ru=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(E){var S=E.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var a=t.stylisPlugins||tu,o={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(E){for(var S=E.getAttribute("data-emotion").split(" "),h=1;h<S.length;h++)o[S[h]]=!0;s.push(E)});var l,u=[Zl,Ql];{var m,d=[Yl,Xl(function(E){m.insert(E)})],b=Vl(u.concat(a,d)),y=function(S){return zt(Bl(S),b)};l=function(S,h,c,g){m=c,y(S?S+"{"+h.styles+"}":h.styles),g&&(w.inserted[h.name]=!0)}}var w={key:r,sheet:new Dl({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return w.sheet.hydrate(s),w},kr={exports:{}},ve={};/** @license React v16.13.1
42
42
  * react-is.production.min.js
43
43
  *
44
44
  * Copyright (c) Facebook, Inc. and its affiliates.
45
45
  *
46
46
  * This source code is licensed under the MIT license found in the
47
47
  * LICENSE file in the root directory of this source tree.
48
- */var Kr;function yo(){if(Kr)return Q;Kr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=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,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,f=e?Symbol.for("react.scope"):60119;function m(s){if(typeof s=="object"&&s!==null){var y=s.$$typeof;switch(y){case t:switch(s=s.type,s){case l:case c:case n:case a:case o:case d:return s;default:switch(s=s&&s.$$typeof,s){case u:case g:case w:case E:case i:return s;default:return y}}case r:return y}}}function v(s){return m(s)===c}return Q.AsyncMode=l,Q.ConcurrentMode=c,Q.ContextConsumer=u,Q.ContextProvider=i,Q.Element=t,Q.ForwardRef=g,Q.Fragment=n,Q.Lazy=w,Q.Memo=E,Q.Portal=r,Q.Profiler=a,Q.StrictMode=o,Q.Suspense=d,Q.isAsyncMode=function(s){return v(s)||m(s)===l},Q.isConcurrentMode=v,Q.isContextConsumer=function(s){return m(s)===u},Q.isContextProvider=function(s){return m(s)===i},Q.isElement=function(s){return typeof s=="object"&&s!==null&&s.$$typeof===t},Q.isForwardRef=function(s){return m(s)===g},Q.isFragment=function(s){return m(s)===n},Q.isLazy=function(s){return m(s)===w},Q.isMemo=function(s){return m(s)===E},Q.isPortal=function(s){return m(s)===r},Q.isProfiler=function(s){return m(s)===a},Q.isStrictMode=function(s){return m(s)===o},Q.isSuspense=function(s){return m(s)===d},Q.isValidElementType=function(s){return typeof s=="string"||typeof s=="function"||s===n||s===c||s===a||s===o||s===d||s===T||typeof s=="object"&&s!==null&&(s.$$typeof===w||s.$$typeof===E||s.$$typeof===i||s.$$typeof===u||s.$$typeof===g||s.$$typeof===S||s.$$typeof===h||s.$$typeof===f||s.$$typeof===x)},Q.typeOf=m,Q}var ee={};/** @license React v16.13.1
48
+ */var So;function nu(){if(So)return ve;So=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=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,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,c=e?Symbol.for("react.scope"):60119;function g(p){if(typeof p=="object"&&p!==null){var x=p.$$typeof;switch(x){case t:switch(p=p.type,p){case l:case u:case n:case o:case a:case d:return p;default:switch(p=p&&p.$$typeof,p){case s:case m:case w:case y:case i:return p;default:return x}}case r:return x}}}function v(p){return g(p)===u}return ve.AsyncMode=l,ve.ConcurrentMode=u,ve.ContextConsumer=s,ve.ContextProvider=i,ve.Element=t,ve.ForwardRef=m,ve.Fragment=n,ve.Lazy=w,ve.Memo=y,ve.Portal=r,ve.Profiler=o,ve.StrictMode=a,ve.Suspense=d,ve.isAsyncMode=function(p){return v(p)||g(p)===l},ve.isConcurrentMode=v,ve.isContextConsumer=function(p){return g(p)===s},ve.isContextProvider=function(p){return g(p)===i},ve.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},ve.isForwardRef=function(p){return g(p)===m},ve.isFragment=function(p){return g(p)===n},ve.isLazy=function(p){return g(p)===w},ve.isMemo=function(p){return g(p)===y},ve.isPortal=function(p){return g(p)===r},ve.isProfiler=function(p){return g(p)===o},ve.isStrictMode=function(p){return g(p)===a},ve.isSuspense=function(p){return g(p)===d},ve.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===u||p===o||p===a||p===d||p===b||typeof p=="object"&&p!==null&&(p.$$typeof===w||p.$$typeof===y||p.$$typeof===i||p.$$typeof===s||p.$$typeof===m||p.$$typeof===S||p.$$typeof===h||p.$$typeof===c||p.$$typeof===E)},ve.typeOf=g,ve}var ye={};/** @license React v16.13.1
49
49
  * react-is.development.js
50
50
  *
51
51
  * Copyright (c) Facebook, Inc. and its affiliates.
52
52
  *
53
53
  * This source code is licensed under the MIT license found in the
54
54
  * LICENSE file in the root directory of this source tree.
55
- */var Jr;function bo(){return Jr||(Jr=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=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,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,f=e?Symbol.for("react.scope"):60119;function m(O){return typeof O=="string"||typeof O=="function"||O===n||O===c||O===a||O===o||O===d||O===T||typeof O=="object"&&O!==null&&(O.$$typeof===w||O.$$typeof===E||O.$$typeof===i||O.$$typeof===u||O.$$typeof===g||O.$$typeof===S||O.$$typeof===h||O.$$typeof===f||O.$$typeof===x)}function v(O){if(typeof O=="object"&&O!==null){var pe=O.$$typeof;switch(pe){case t:var Ee=O.type;switch(Ee){case l:case c:case n:case a:case o:case d:return Ee;default:var Le=Ee&&Ee.$$typeof;switch(Le){case u:case g:case w:case E:case i:return Le;default:return pe}}case r:return pe}}}var s=l,y=c,p=u,R=i,_=t,A=g,j=n,I=w,N=E,z=r,q=a,W=o,H=d,re=!1;function ie(O){return re||(re=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),b(O)||v(O)===l}function b(O){return v(O)===c}function P(O){return v(O)===u}function M(O){return v(O)===i}function k(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function $(O){return v(O)===g}function F(O){return v(O)===n}function Y(O){return v(O)===w}function B(O){return v(O)===E}function L(O){return v(O)===r}function V(O){return v(O)===a}function X(O){return v(O)===o}function ue(O){return v(O)===d}ee.AsyncMode=s,ee.ConcurrentMode=y,ee.ContextConsumer=p,ee.ContextProvider=R,ee.Element=_,ee.ForwardRef=A,ee.Fragment=j,ee.Lazy=I,ee.Memo=N,ee.Portal=z,ee.Profiler=q,ee.StrictMode=W,ee.Suspense=H,ee.isAsyncMode=ie,ee.isConcurrentMode=b,ee.isContextConsumer=P,ee.isContextProvider=M,ee.isElement=k,ee.isForwardRef=$,ee.isFragment=F,ee.isLazy=Y,ee.isMemo=B,ee.isPortal=L,ee.isProfiler=V,ee.isStrictMode=X,ee.isSuspense=ue,ee.isValidElementType=m,ee.typeOf=v}()),ee}var Zr;function xo(){return Zr||(Zr=1,process.env.NODE_ENV==="production"?ft.exports=yo():ft.exports=bo()),ft.exports}var qt,Qr;function So(){if(Qr)return qt;Qr=1;var e=xo(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=n,a[e.Memo]=o;function i(w){return e.isMemo(w)?o:a[w.$$typeof]||t}var u=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,T=Object.prototype;function E(w,x,S){if(typeof x!="string"){if(T){var h=d(x);h&&h!==T&&E(w,h,S)}var f=l(x);c&&(f=f.concat(c(x)));for(var m=i(w),v=i(x),s=0;s<f.length;++s){var y=f[s];if(!r[y]&&!(S&&S[y])&&!(v&&v[y])&&!(m&&m[y])){var p=g(x,y);try{u(w,y,p)}catch{}}}}return w}return qt=E,qt}So();var Eo=!0;function ra(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var br=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||Eo===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},xr=function(t,r,n){br(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function wo(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var To={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},Ro=/[A-Z]|^ms/g,Oo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,na=function(t){return t.charCodeAt(1)===45},en=function(t){return t!=null&&typeof t!="boolean"},Wt=ea(function(e){return na(e)?e:e.replace(Ro,"-$&").toLowerCase()}),tn=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Oo,function(n,o,a){return be={name:o,styles:a,next:be},o})}return To[t]!==1&&!na(t)&&typeof r=="number"&&r!==0?r+"px":r};function nt(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return be={name:o.name,styles:o.styles,next:be},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)be={name:i.name,styles:i.styles,next:be},i=i.next;var u=a.styles+";";return u}return Po(e,t,r)}case"function":{if(e!==void 0){var l=be,c=r(e);return be=l,nt(e,t,c)}break}}var g=r;if(t==null)return g;var d=t[g];return d!==void 0?d:g}function Po(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=nt(e,t,r[o])+";";else for(var a in r){var i=r[a];if(typeof i!="object"){var u=i;t!=null&&t[u]!==void 0?n+=a+"{"+t[u]+"}":en(u)&&(n+=Wt(a)+":"+tn(a,u)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var l=0;l<i.length;l++)en(i[l])&&(n+=Wt(a)+":"+tn(a,i[l])+";");else{var c=nt(e,t,i);switch(a){case"animation":case"animationName":{n+=Wt(a)+":"+c+";";break}default:n+=a+"{"+c+"}"}}}return n}var rn=/label:\s*([^\s;{]+)\s*(;|$)/g,be;function Ct(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";be=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=nt(r,t,a);else{var i=a;o+=i[0]}for(var u=1;u<e.length;u++)if(o+=nt(r,t,e[u]),n){var l=a;o+=l[u]}rn.lastIndex=0;for(var c="",g;(g=rn.exec(o))!==null;)c+="-"+g[1];var d=wo(o)+c;return{name:d,styles:o,next:be}}var Co=function(t){return t()},aa=se.useInsertionEffect?se.useInsertionEffect:!1,oa=aa||Co,nn=aa||se.useLayoutEffect,ia=se.createContext(typeof HTMLElement<"u"?vo({key:"css"}):null);ia.Provider;var Sr=function(t){return C.forwardRef(function(r,n){var o=C.useContext(ia);return t(r,o,n)})},Er=se.createContext({}),wr={}.hasOwnProperty,fr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",_o=function(t,r){var n={};for(var o in r)wr.call(r,o)&&(n[o]=r[o]);return n[fr]=t,n},jo=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return br(r,n,o),oa(function(){return xr(r,n,o)}),null},Ao=Sr(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[fr],a=[n],i="";typeof e.className=="string"?i=ra(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var u=Ct(a,void 0,se.useContext(Er));i+=t.key+"-"+u.name;var l={};for(var c in e)wr.call(e,c)&&c!=="css"&&c!==fr&&(l[c]=e[c]);return l.className=i,r&&(l.ref=r),se.createElement(se.Fragment,null,se.createElement(jo,{cache:t,serialized:u,isStringTag:typeof o=="string"}),se.createElement(o,l))}),Do=Ao,an=function(t,r){var n=arguments;if(r==null||!wr.call(r,"css"))return se.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=Do,a[1]=_o(t,r);for(var i=2;i<o;i++)a[i]=n[i];return se.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(an||(an={}));var No=Sr(function(e,t){var r=e.styles,n=Ct([r],void 0,se.useContext(Er)),o=se.useRef();return nn(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,l=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),l!==null&&(u=!0,l.setAttribute("data-emotion",a),i.hydrate([l])),o.current=[i,u],function(){i.flush()}},[t]),nn(function(){var a=o.current,i=a[0],u=a[1];if(u){a[1]=!1;return}if(n.next!==void 0&&xr(t,n.next,!0),i.tags.length){var l=i.tags[i.tags.length-1].nextElementSibling;i.before=l,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});function Mo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ct(t)}function Tr(){var e=Mo.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_"}}}var ko=/^((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|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)-.*))$/,Io=ea(function(e){return ko.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),$o=Io,zo=function(t){return t!=="theme"},on=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?$o:zo},sn=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},Lo=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return br(r,n,o),oa(function(){return xr(r,n,o)}),null},Fo=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var u=sn(t,r,n),l=u||on(o),c=!l("as");return function(){var g=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),g[0]==null||g[0].raw===void 0)d.push.apply(d,g);else{var T=g[0];d.push(T[0]);for(var E=g.length,w=1;w<E;w++)d.push(g[w],T[w])}var x=Sr(function(S,h,f){var m=c&&S.as||o,v="",s=[],y=S;if(S.theme==null){y={};for(var p in S)y[p]=S[p];y.theme=se.useContext(Er)}typeof S.className=="string"?v=ra(h.registered,s,S.className):S.className!=null&&(v=S.className+" ");var R=Ct(d.concat(s),h.registered,y);v+=h.key+"-"+R.name,i!==void 0&&(v+=" "+i);var _=c&&u===void 0?on(m):l,A={};for(var j in S)c&&j==="as"||_(j)&&(A[j]=S[j]);return A.className=v,f&&(A.ref=f),se.createElement(se.Fragment,null,se.createElement(Lo,{cache:h,serialized:R,isStringTag:typeof m=="string"}),se.createElement(m,A))});return x.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=o,x.__emotion_styles=d,x.__emotion_forwardProp=u,Object.defineProperty(x,"toString",{value:function(){return"."+i}}),x.withComponent=function(S,h){var f=e(S,et({},r,h,{shouldForwardProp:sn(x,h,!0)}));return f.apply(void 0,d)},x}},qo=["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"],oe=Fo.bind(null);qo.forEach(function(e){oe[e]=oe(e)});exports.setGlobalLoading=e=>{console.warn("GlobalLoading 未被引入,你可以直接使用 App 组件,或直接引用 GlobalLoading 组件到项目中!")};const Wo=Tr`
55
+ */var wo;function au(){return wo||(wo=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=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,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,c=e?Symbol.for("react.scope"):60119;function g(C){return typeof C=="string"||typeof C=="function"||C===n||C===u||C===o||C===a||C===d||C===b||typeof C=="object"&&C!==null&&(C.$$typeof===w||C.$$typeof===y||C.$$typeof===i||C.$$typeof===s||C.$$typeof===m||C.$$typeof===S||C.$$typeof===h||C.$$typeof===c||C.$$typeof===E)}function v(C){if(typeof C=="object"&&C!==null){var _e=C.$$typeof;switch(_e){case t:var Be=C.type;switch(Be){case l:case u:case n:case o:case a:case d:return Be;default:var vt=Be&&Be.$$typeof;switch(vt){case s:case m:case w:case y:case i:return vt;default:return _e}}case r:return _e}}}var p=l,x=u,f=s,O=i,j=t,M=m,L=n,q=w,N=y,Y=r,X=o,te=a,re=d,ie=!1;function we(C){return ie||(ie=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),A(C)||v(C)===l}function A(C){return v(C)===u}function P(C){return v(C)===s}function k(C){return v(C)===i}function U(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function W(C){return v(C)===m}function Z(C){return v(C)===n}function ee(C){return v(C)===w}function B(C){return v(C)===y}function ne(C){return v(C)===r}function ue(C){return v(C)===o}function le(C){return v(C)===a}function Ae(C){return v(C)===d}ye.AsyncMode=p,ye.ConcurrentMode=x,ye.ContextConsumer=f,ye.ContextProvider=O,ye.Element=j,ye.ForwardRef=M,ye.Fragment=L,ye.Lazy=q,ye.Memo=N,ye.Portal=Y,ye.Profiler=X,ye.StrictMode=te,ye.Suspense=re,ye.isAsyncMode=we,ye.isConcurrentMode=A,ye.isContextConsumer=P,ye.isContextProvider=k,ye.isElement=U,ye.isForwardRef=W,ye.isFragment=Z,ye.isLazy=ee,ye.isMemo=B,ye.isPortal=ne,ye.isProfiler=ue,ye.isStrictMode=le,ye.isSuspense=Ae,ye.isValidElementType=g,ye.typeOf=v})()),ye}var Ro;function ou(){return Ro||(Ro=1,process.env.NODE_ENV==="production"?kr.exports=nu():kr.exports=au()),kr.exports}var Cn,Po;function iu(){if(Po)return Cn;Po=1;var e=ou(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=n,o[e.Memo]=a;function i(w){return e.isMemo(w)?a:o[w.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,b=Object.prototype;function y(w,E,S){if(typeof E!="string"){if(b){var h=d(E);h&&h!==b&&y(w,h,S)}var c=l(E);u&&(c=c.concat(u(E)));for(var g=i(w),v=i(E),p=0;p<c.length;++p){var x=c[p];if(!r[x]&&!(S&&S[x])&&!(v&&v[x])&&!(g&&g[x])){var f=m(E,x);try{s(w,x,f)}catch{}}}}return w}return Cn=y,Cn}iu();var su=!0;function es(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}var xa=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||su===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},Sa=function(t,r,n){xa(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+a:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function lu(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var uu={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},cu=/[A-Z]|^ms/g,fu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ts=function(t){return t.charCodeAt(1)===45},Oo=function(t){return t!=null&&typeof t!="boolean"},Dn=Zi(function(e){return ts(e)?e:e.replace(cu,"-$&").toLowerCase()}),_o=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(fu,function(n,a,o){return Qe={name:a,styles:o,next:Qe},a})}return uu[t]!==1&&!ts(t)&&typeof r=="number"&&r!==0?r+"px":r};function vr(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return Qe={name:a.name,styles:a.styles,next:Qe},a.name;var o=r;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)Qe={name:i.name,styles:i.styles,next:Qe},i=i.next;var s=o.styles+";";return s}return du(e,t,r)}case"function":{if(e!==void 0){var l=Qe,u=r(e);return Qe=l,vr(e,t,u)}break}}var m=r;if(t==null)return m;var d=t[m];return d!==void 0?d:m}function du(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=vr(e,t,r[a])+";";else for(var o in r){var i=r[o];if(typeof i!="object"){var s=i;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":Oo(s)&&(n+=Dn(o)+":"+_o(o,s)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var l=0;l<i.length;l++)Oo(i[l])&&(n+=Dn(o)+":"+_o(o,i[l])+";");else{var u=vr(e,t,i);switch(o){case"animation":case"animationName":{n+=Dn(o)+":"+u+";";break}default:n+=o+"{"+u+"}"}}}return n}var To=/label:\s*([^\s;{]+)\s*(;|$)/g,Qe;function un(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";Qe=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,a+=vr(r,t,o);else{var i=o;a+=i[0]}for(var s=1;s<e.length;s++)if(a+=vr(r,t,e[s]),n){var l=o;a+=l[s]}To.lastIndex=0;for(var u="",m;(m=To.exec(a))!==null;)u+="-"+m[1];var d=lu(a)+u;return{name:d,styles:a,next:Qe}}var pu=function(t){return t()},rs=D.useInsertionEffect?D.useInsertionEffect:!1,ns=rs||pu,Co=rs||D.useLayoutEffect,as=D.createContext(typeof HTMLElement<"u"?ru({key:"css"}):null);as.Provider;var wa=function(t){return I.forwardRef(function(r,n){var a=I.useContext(as);return t(r,a,n)})},Ra=D.createContext({}),Pa={}.hasOwnProperty,la="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",hu=function(t,r){var n={};for(var a in r)Pa.call(r,a)&&(n[a]=r[a]);return n[la]=t,n},mu=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return xa(r,n,a),ns(function(){return Sa(r,n,a)}),null},gu=wa(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[la],o=[n],i="";typeof e.className=="string"?i=es(t.registered,o,e.className):e.className!=null&&(i=e.className+" ");var s=un(o,void 0,D.useContext(Ra));i+=t.key+"-"+s.name;var l={};for(var u in e)Pa.call(e,u)&&u!=="css"&&u!==la&&(l[u]=e[u]);return l.className=i,r&&(l.ref=r),D.createElement(D.Fragment,null,D.createElement(mu,{cache:t,serialized:s,isStringTag:typeof a=="string"}),D.createElement(a,l))}),vu=gu,Do=function(t,r){var n=arguments;if(r==null||!Pa.call(r,"css"))return D.createElement.apply(void 0,n);var a=n.length,o=new Array(a);o[0]=vu,o[1]=hu(t,r);for(var i=2;i<a;i++)o[i]=n[i];return D.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Do||(Do={}));var yu=wa(function(e,t){var r=e.styles,n=un([r],void 0,D.useContext(Ra)),a=D.useRef();return Co(function(){var o=t.key+"-global",i=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",o),i.hydrate([l])),a.current=[i,s],function(){i.flush()}},[t]),Co(function(){var o=a.current,i=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&Sa(t,n.next,!0),i.tags.length){var l=i.tags[i.tags.length-1].nextElementSibling;i.before=l,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});function bu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return un(t)}function Oa(){var e=bu.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_"}}}var Eu=/^((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)-.*))$/,xu=Zi(function(e){return Eu.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Su=xu,wu=function(t){return t!=="theme"},jo=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Su:wu},No=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(i){return t.__emotion_forwardProp(i)&&o(i)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},Ru=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return xa(r,n,a),ns(function(){return Sa(r,n,a)}),null},Pu=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,i;r!==void 0&&(o=r.label,i=r.target);var s=No(t,r,n),l=s||jo(a),u=!l("as");return function(){var m=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),m[0]==null||m[0].raw===void 0)d.push.apply(d,m);else{var b=m[0];d.push(b[0]);for(var y=m.length,w=1;w<y;w++)d.push(m[w],b[w])}var E=wa(function(S,h,c){var g=u&&S.as||a,v="",p=[],x=S;if(S.theme==null){x={};for(var f in S)x[f]=S[f];x.theme=D.useContext(Ra)}typeof S.className=="string"?v=es(h.registered,p,S.className):S.className!=null&&(v=S.className+" ");var O=un(d.concat(p),h.registered,x);v+=h.key+"-"+O.name,i!==void 0&&(v+=" "+i);var j=u&&s===void 0?jo(g):l,M={};for(var L in S)u&&L==="as"||j(L)&&(M[L]=S[L]);return M.className=v,c&&(M.ref=c),D.createElement(D.Fragment,null,D.createElement(Ru,{cache:h,serialized:O,isStringTag:typeof g=="string"}),D.createElement(g,M))});return E.displayName=o!==void 0?o:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",E.defaultProps=t.defaultProps,E.__emotion_real=E,E.__emotion_base=a,E.__emotion_styles=d,E.__emotion_forwardProp=s,Object.defineProperty(E,"toString",{value:function(){return"."+i}}),E.withComponent=function(S,h){var c=e(S,hr({},r,h,{shouldForwardProp:No(E,h,!0)}));return c.apply(void 0,d)},E}},Ou=["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"],Ne=Pu.bind(null);Ou.forEach(function(e){Ne[e]=Ne(e)});exports.setGlobalLoading=e=>{console.warn("GlobalLoading 未被引入,你可以直接使用 App 组件,或直接引用 GlobalLoading 组件到项目中!")};const _u=Oa`
56
56
  0% { transform: rotate(0deg) translateX(35px) rotate(0deg); }
57
57
  50% { transform: rotate(360deg) translateX(35px) rotate(-360deg); }
58
58
  100% { transform: rotate(360deg) translateX(35px) rotate(-360deg); }
59
- `,Yo=oe.div`
59
+ `,Tu=Ne.div`
60
60
  position: fixed;
61
61
  top: 0;
62
62
  left: 0;
@@ -81,7 +81,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var O=ue(B,X,$,F,Y+"."+X
81
81
  &.global-loading-transition-exit-active {
82
82
  opacity: 0;
83
83
  }
84
- `,Uo=oe.div`
84
+ `,Cu=Ne.div`
85
85
  width: 120px;
86
86
  height: 120px;
87
87
  position: relative;
@@ -91,15 +91,15 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var O=ue(B,X,$,F,Y+"."+X
91
91
  display: flex;
92
92
  justify-content: center;
93
93
  align-items: center;
94
- `,Ye=oe.div(({size:e,delay:t})=>({position:"absolute",margin:"auto",borderRadius:"50%",backgroundImage:" linear-gradient(var(--color-primary) 10%, var(--color-primary-hover) 100%)",transform:"rotate(0deg) translateX(35px) rotate(0deg)",width:e,height:e,animation:`${Wo} 4s ease-in-out infinite`,animationDelay:t||"0s"}));function sa(){const e=C.useRef(null),[t,r]=C.useState(!1);return C.useEffect(()=>{exports.setGlobalLoading=n=>{r(n)}},[]),D.jsx(Tt,{in:t,nodeRef:e,timeout:500,classNames:"global-loading-transition",unmountOnExit:!0,children:()=>D.jsxs(Yo,{ref:e,className:"global-loading",children:[D.jsxs(Uo,{className:"global-loading-container",children:[D.jsx(Ye,{className:"dot dot-1",size:15,delay:"0.0s"}),D.jsx(Ye,{className:"dot dot-2",size:13,delay:"0.2s"}),D.jsx(Ye,{className:"dot dot-3",size:11,delay:"0.4s"}),D.jsx(Ye,{className:"dot dot-4",size:9,delay:"0.6s"}),D.jsx(Ye,{className:"dot dot-5",size:7,delay:"0.8s"})]}),D.jsx("svg",{style:{visibility:"hidden",position:"absolute"},children:D.jsx("defs",{children:D.jsxs("filter",{id:"goo",children:[D.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"3",result:"blur"}),D.jsx("feColorMatrix",{in:"blur",type:"matrix",values:`
94
+ `,er=Ne.div(({size:e,delay:t})=>({position:"absolute",margin:"auto",borderRadius:"50%",backgroundImage:" linear-gradient(var(--color-primary) 10%, var(--color-primary-hover) 100%)",transform:"rotate(0deg) translateX(35px) rotate(0deg)",width:e,height:e,animation:`${_u} 4s ease-in-out infinite`,animationDelay:t||"0s"}));function os(){const e=I.useRef(null),[t,r]=I.useState(!1);return I.useEffect(()=>{exports.setGlobalLoading=n=>{r(n)}},[]),z.jsx(an,{in:t,nodeRef:e,timeout:500,classNames:"global-loading-transition",unmountOnExit:!0,children:()=>z.jsxs(Tu,{ref:e,className:"global-loading",children:[z.jsxs(Cu,{className:"global-loading-container",children:[z.jsx(er,{className:"dot dot-1",size:15,delay:"0.0s"}),z.jsx(er,{className:"dot dot-2",size:13,delay:"0.2s"}),z.jsx(er,{className:"dot dot-3",size:11,delay:"0.4s"}),z.jsx(er,{className:"dot dot-4",size:9,delay:"0.6s"}),z.jsx(er,{className:"dot dot-5",size:7,delay:"0.8s"})]}),z.jsx("svg",{style:{visibility:"hidden",position:"absolute"},children:z.jsx("defs",{children:z.jsxs("filter",{id:"goo",children:[z.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"3",result:"blur"}),z.jsx("feColorMatrix",{in:"blur",type:"matrix",values:`
95
95
  1 0 0 0 0
96
96
  0 1 0 0 0
97
97
  0 0 1 0 0
98
- 0 0 0 18 -6`}),D.jsx("feComposite",{in:"SourceGraphic",in2:"goo",operator:"atop"})]})})})]})})}const Ho={"operation.add":"添加","operation.delete":"删除","operation.batchDelete":"批量删除","operation.edit":"编辑","operation.download":"下载","operation.logout":"退出登录","operation.export":"导出","operation.close":"关闭","operation.details":"详情","operation.confirm":"确认","operation.save":"保存","operation.cancel":"取消","component.table.selected":"已选{length}条","component.table.total":"共{total}条","component.table.visibleError":"列表最少保留一个字段","component.searcharea.toggle":"高级搜索","component.searcharea.submit":"筛选","component.searcharea.reset":"重置","component.searcharea.close":"收起","message.delete":"删除操作无法恢复,确认删除?","message.success":"操作成功","table.pagination.total":"共{total}条"},Bo={"operation.add":"Add","operation.delete":"Delete","operation.batchDelete":"Batch Delete","operation.edit":"Edit","operation.download":"Download","operation.logout":"Logout","operation.export":"Export","operation.close":"Close","operation.details":"Details","operation.confirm":"Confirm","operation.save":"Save","operation.cancel":"Cancel","component.table.selected":"{length} selected","component.table.total":"Total {total} items","component.table.visibleError":"At least one field must be visible","component.searcharea.toggle":"Advanced Search","component.searcharea.submit":"Submit","component.searcharea.reset":"Reset","component.searcharea.close":"Close","message.delete":"This action cannot be undone, confirm delete?","message.success":"Operation successful","table.pagination.total":"Total {total} items"},Rr={zh:Ho,en:Bo},dr=({messages:e,locale:t})=>({id:r,defaultMessage:n,values:o})=>{var i;let a=((i=e==null?void 0:e[t])==null?void 0:i[r])||n;return typeof o=="object"&&Object.keys(o).forEach(u=>{a=a.replace(`{${u}}`,o[u])}),a};function Vo(){const{messages:e,locale:t}=C.useContext(Or);return{$t:({id:r,defaultMessage:n},o)=>dr({messages:e,locale:t})({id:r,defaultMessage:n,values:o}),formatMessage:dr({messages:e,locale:t})}}function Me({id:e,defaultMessage:t,values:r}){const{messages:n,locale:o}=C.useContext(Or);return dr({messages:n,locale:o})({id:e,defaultMessage:t,values:r})}const Xo={locale:"zh",messages:Rr},Or=C.createContext(Xo);function Go({children:e,config:t}){return D.jsx(Or.Provider,{value:{locale:t.locale,messages:Rr},children:e})}function ua(e,t){const r={...e};for(const n in t)t[n]!==void 0&&(t[n]&&typeof t[n]=="object"&&!Array.isArray(t[n])?r[n]=ua(e[n]||{},t[n]):r[n]=t[n]);return r}const ca={iconButton:{size:"small",render:({children:e})=>e},iconFont:{},locale:"zh"},_t=C.createContext(ca);function la({children:e,config:t}){const r=ua(ca,t);return D.jsx(_t.Provider,{value:r,children:D.jsx(Go,{config:{locale:t.locale,messages:Rr},children:e})})}exports.message=te.message;exports.notification=te.notification;exports.modal=te.Modal;function Ko({children:e}){const t=te.App.useApp();return exports.message=t.message,exports.modal=t.modal,exports.notification=t.notification,e||""}function Jo({children:e,config:t,...r}){return D.jsx(la,{config:t||{},children:D.jsxs(te.App,{...r,children:[D.jsx(sa,{}),D.jsx(Ko,{children:e})]})})}var Yt={exports:{}};/*!
98
+ 0 0 0 18 -6`}),z.jsx("feComposite",{in:"SourceGraphic",in2:"goo",operator:"atop"})]})})})]})})}const Du={"operation.add":"添加","operation.delete":"删除","operation.batchDelete":"批量删除","operation.edit":"编辑","operation.download":"下载","operation.logout":"退出登录","operation.export":"导出","operation.close":"关闭","operation.details":"详情","operation.confirm":"确认","operation.save":"保存","operation.cancel":"取消","component.table.selected":"已选{length}条","component.table.total":"共{total}条","component.table.visibleError":"列表最少保留一个字段","component.searcharea.toggle":"高级搜索","component.searcharea.submit":"筛选","component.searcharea.reset":"重置","component.searcharea.close":"收起","message.delete":"删除操作无法恢复,确认删除?","message.success":"操作成功","table.pagination.total":"共{total}条"},ju={"operation.add":"Add","operation.delete":"Delete","operation.batchDelete":"Batch Delete","operation.edit":"Edit","operation.download":"Download","operation.logout":"Logout","operation.export":"Export","operation.close":"Close","operation.details":"Details","operation.confirm":"Confirm","operation.save":"Save","operation.cancel":"Cancel","component.table.selected":"{length} selected","component.table.total":"Total {total} items","component.table.visibleError":"At least one field must be visible","component.searcharea.toggle":"Advanced Search","component.searcharea.submit":"Submit","component.searcharea.reset":"Reset","component.searcharea.close":"Close","message.delete":"This action cannot be undone, confirm delete?","message.success":"Operation successful","table.pagination.total":"Total {total} items"},_a={zh:Du,en:ju},ua=({messages:e,locale:t})=>({id:r,defaultMessage:n,values:a})=>{var i;let o=((i=e==null?void 0:e[t])==null?void 0:i[r])||n;return typeof a=="object"&&Object.keys(a).forEach(s=>{o=o.replace(`{${s}}`,a[s])}),o};function Nu(){const{messages:e,locale:t}=I.useContext(Ta);return{$t:({id:r,defaultMessage:n},a)=>ua({messages:e,locale:t})({id:r,defaultMessage:n,values:a}),formatMessage:ua({messages:e,locale:t})}}function $t({id:e,defaultMessage:t,values:r}){const{messages:n,locale:a}=I.useContext(Ta);return ua({messages:n,locale:a})({id:e,defaultMessage:t,values:r})}const Au={locale:"zh",messages:_a},Ta=I.createContext(Au);function Mu({children:e,config:t}){return z.jsx(Ta.Provider,{value:{locale:t.locale,messages:_a},children:e})}function is(e,t){const r={...e};for(const n in t)t[n]!==void 0&&(t[n]&&typeof t[n]=="object"&&!Array.isArray(t[n])?r[n]=is(e[n]||{},t[n]):r[n]=t[n]);return r}const ss={iconButton:{size:"small",render:({children:e})=>e},iconFont:{},locale:"zh",useSearchParams:{storage:"state",stateKey:"__searchParams__"}},Sr=I.createContext(ss);function ls({children:e,config:t}){const r=is(ss,t);return z.jsx(Sr.Provider,{value:r,children:z.jsx(Mu,{config:{locale:t.locale,messages:_a},children:e})})}exports.message=Ee.message;exports.notification=Ee.notification;exports.modal=Ee.Modal;function Iu({children:e}){const t=Ee.App.useApp();return exports.message=t.message,exports.modal=t.modal,exports.notification=t.notification,e||""}function ku({children:e,config:t,...r}){return z.jsx(ls,{config:t||{},children:z.jsxs(Ee.App,{...r,children:[z.jsx(os,{}),z.jsx(Iu,{children:e})]})})}var jn={exports:{}};/*!
99
99
  Copyright (c) 2018 Jed Watson.
100
100
  Licensed under the MIT License (MIT), see
101
101
  http://jedwatson.github.io/classnames
102
- */var un;function Zo(){return un||(un=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",i=0;i<arguments.length;i++){var u=arguments[i];u&&(a=o(a,n(u)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var u in a)t.call(a,u)&&a[u]&&(i=o(i,u));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(Yt)),Yt.exports}var Qo=Zo();const pr=wt(Qo),Pr=C.forwardRef(({type:e="",className:t="",symbol:r=!1,style:n,...o},a)=>{const{iconFont:i}=C.useContext(_t);return r?D.jsx("svg",{className:pr(["iconfont-symbol",i.className||"",e,t]),"aria-hidden":"true",ref:a,style:{...i.style,...n||{}},...o,children:D.jsx("use",{xlinkHref:`#${e}`})}):D.jsx("i",{className:pr(["iconfont",i.className||"",e,t]),ref:a,style:{...i.style,...n||{}},...o})}),ei=({checked:e,onChange:t,trueValue:r=!0,falseValue:n=!1,trueLabel:o="",falseLabel:a="",children:i,...u})=>{const l=e===r,c=g=>{t==null||t(g.target.checked?r:n,g)};return D.jsx(te.Checkbox,{checked:l,onChange:c,...u,children:i||(l?o:a)})},ti=({checked:e,onChange:t,trueValue:r=!0,falseValue:n=!1,...o})=>{const a=e===r,i=(u,l)=>{t==null||t(u?r:n,l)};return D.jsx(te.Switch,{checked:a,onChange:i,...o})};var ri=typeof global=="object"&&global&&global.Object===Object&&global,ni=typeof self=="object"&&self&&self.Object===Object&&self,ai=ri||ni||Function("return this")(),St=ai.Symbol,fa=Object.prototype,oi=fa.hasOwnProperty,ii=fa.toString,Ue=St?St.toStringTag:void 0;function si(e){var t=oi.call(e,Ue),r=e[Ue];try{e[Ue]=void 0;var n=!0}catch{}var o=ii.call(e);return n&&(t?e[Ue]=r:delete e[Ue]),o}var ui=Object.prototype,ci=ui.toString;function li(e){return ci.call(e)}var fi="[object Null]",di="[object Undefined]",cn=St?St.toStringTag:void 0;function pi(e){return e==null?e===void 0?di:fi:cn&&cn in Object(e)?si(e):li(e)}function hi(e){return e!=null&&typeof e=="object"}var mi=Array.isArray;function gi(){}var vi="[object String]";function yi(e){return typeof e=="string"||!mi(e)&&hi(e)&&pi(e)==vi}const bi=C.forwardRef((e,t)=>D.jsx(te.Button,{ref:t,...e})),xi=oe(bi)`
102
+ */var Ao;function Fu(){return Ao||(Ao=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(o=a(o,n(s)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var s in o)t.call(o,s)&&o[s]&&(i=a(i,s));return i}function a(o,i){return i?o?o+" "+i:o+i:o}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(jn)),jn.exports}var Lu=Fu();const ca=nn(Lu),Ca=I.forwardRef(({type:e="",className:t="",symbol:r=!1,style:n,...a},o)=>{const{iconFont:i}=I.useContext(Sr);return r?z.jsx("svg",{className:ca(["iconfont-symbol",i.className||"",e,t]),"aria-hidden":"true",ref:o,style:{...i.style,...n||{}},...a,children:z.jsx("use",{xlinkHref:`#${e}`})}):z.jsx("i",{className:ca(["iconfont",i.className||"",e,t]),ref:o,style:{...i.style,...n||{}},...a})}),zu=({checked:e,onChange:t,trueValue:r=!0,falseValue:n=!1,trueLabel:a="",falseLabel:o="",children:i,...s})=>{const l=e===r,u=m=>{t==null||t(m.target.checked?r:n,m)};return z.jsx(Ee.Checkbox,{checked:l,onChange:u,...s,children:i||(l?a:o)})},$u=({checked:e,onChange:t,trueValue:r=!0,falseValue:n=!1,...a})=>{const o=e===r,i=(s,l)=>{t==null||t(s?r:n,l)};return z.jsx(Ee.Switch,{checked:o,onChange:i,...a})};var Uu=typeof global=="object"&&global&&global.Object===Object&&global,Wu=typeof self=="object"&&self&&self.Object===Object&&self,qu=Uu||Wu||Function("return this")(),Jr=qu.Symbol,us=Object.prototype,Bu=us.hasOwnProperty,Hu=us.toString,tr=Jr?Jr.toStringTag:void 0;function Yu(e){var t=Bu.call(e,tr),r=e[tr];try{e[tr]=void 0;var n=!0}catch{}var a=Hu.call(e);return n&&(t?e[tr]=r:delete e[tr]),a}var Vu=Object.prototype,Xu=Vu.toString;function Gu(e){return Xu.call(e)}var Ku="[object Null]",Ju="[object Undefined]",Mo=Jr?Jr.toStringTag:void 0;function cs(e){return e==null?e===void 0?Ju:Ku:Mo&&Mo in Object(e)?Yu(e):Gu(e)}function fs(e){return e!=null&&typeof e=="object"}var Zu="[object Symbol]";function Qu(e){return typeof e=="symbol"||fs(e)&&cs(e)==Zu}var dr=Array.isArray,ec=/\s/;function tc(e){for(var t=e.length;t--&&ec.test(e.charAt(t)););return t}var rc=/^\s+/;function nc(e){return e&&e.slice(0,tc(e)+1).replace(rc,"")}function Io(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ko=NaN,ac=/^[-+]0x[0-9a-f]+$/i,oc=/^0b[01]+$/i,ic=/^0o[0-7]+$/i,sc=parseInt;function Fo(e){if(typeof e=="number")return e;if(Qu(e))return ko;if(Io(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Io(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=nc(e);var r=oc.test(e);return r||ic.test(e)?sc(e.slice(2),r?2:8):ac.test(e)?ko:+e}function Br(){}var lc="[object String]";function uc(e){return typeof e=="string"||!dr(e)&&fs(e)&&cs(e)==lc}const cc=I.forwardRef((e,t)=>z.jsx(Ee.Button,{ref:t,...e})),fc=Ne(cc)`
103
103
  &&.icon-button {
104
104
  font-size: 18px;
105
105
  color: var(--color-primary);
@@ -118,14 +118,14 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var O=ue(B,X,$,F,Y+"."+X
118
118
  background: var(--color-primary-bg);
119
119
  }
120
120
  }
121
- `,Si=({children:e,tooltipDisabled:t,disabled:r,disabledReason:n,title:o,...a})=>t?e:D.jsx(te.Tooltip,{title:r&&n||o,...a,children:e}),Ei=C.forwardRef((e,t)=>{const{iconButton:r}=C.useContext(_t),{icon:n,tooltipDisabled:o=!1,title:a,hide:i=!1,disabledReason:u,onClick:l=gi,disabled:c,size:g=r.size||"small",style:d={},className:T,loading:E=!1,...w}=e,x=()=>yi(n)?D.jsx(Pr,{type:n}):n,S=r.render;return n||console.warn("Icon props not found"),D.jsx(S,{...e,children:D.jsx(Si,{tooltipDisabled:o,hide:i,disabled:c,disabledReason:u,title:a,...w,children:D.jsx(xi,{ref:t,icon:x(),size:g,className:pr(["icon-button",r.className,T]),disabled:c,style:{...r.style,...d},loading:E,onClick:l})})})});var wi=function(e){return function(t,r){var n=C.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r)}},ge=function(){return ge=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ge.apply(this,arguments)};function da(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Ti(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function u(g){try{c(n.next(g))}catch(d){i(d)}}function l(g){try{c(n.throw(g))}catch(d){i(d)}}function c(g){g.done?a(g.value):o(g.value).then(u,l)}c((n=n.apply(e,t||[])).next())})}function Ri(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=u(0),i.throw=u(1),i.return=u(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(c){return function(g){return l([c,g])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(r=0)),r;)try{if(n=1,o&&(a=c[0]&2?o.return:c[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,c[1])).done)return a;switch(o=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(g){c=[6,g],o=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function le(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(u){i={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return a}function de(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var _e=function(e){return typeof e=="function"},Oi=function(e){return typeof e>"u"},jt=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test";function we(e){jt&&(_e(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var t=C.useRef(e);t.current=C.useMemo(function(){return e},[e]);var r=C.useRef(void 0);return r.current||(r.current=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return t.current.apply(this,n)}),r.current}const Et=wi(C.useEffect);var pa=function(e,t){var r=t.manual,n=t.ready,o=n===void 0?!0:n,a=t.defaultParams,i=a===void 0?[]:a,u=t.refreshDeps,l=u===void 0?[]:u,c=t.refreshDepsAction,g=C.useRef(!1);return g.current=!1,Et(function(){!r&&o&&(g.current=!0,e.run.apply(e,de([],le(i),!1)))},[o]),Et(function(){g.current||r||(g.current=!0,c?c():e.refresh())},de([],le(l),!1)),{onBefore:function(){if(!o)return{stopNow:!0}}}};pa.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return{loading:!n&&r}};function hr(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}var ha=function(e,t){var r=C.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!hr(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj};function Cr(e){var t=C.useRef(e);return t.current=e,t}var At=function(e){jt&&(_e(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=Cr(e);C.useEffect(function(){return function(){t.current()}},[])},yt=new Map,Pi=function(e,t,r){var n=yt.get(e);n!=null&&n.timer&&clearTimeout(n.timer);var o=void 0;t>-1&&(o=setTimeout(function(){yt.delete(e)},t)),yt.set(e,ge(ge({},r),{timer:o}))},Ci=function(e){return yt.get(e)},bt=new Map,_i=function(e){return bt.get(e)},ji=function(e,t){bt.set(e,t),t.then(function(r){return bt.delete(e),r}).catch(function(){bt.delete(e)})},Ce={},Ai=function(e,t){Ce[e]&&Ce[e].forEach(function(r){return r(t)})},Ut=function(e,t){return Ce[e]||(Ce[e]=[]),Ce[e].push(t),function(){var n=Ce[e].indexOf(t);Ce[e].splice(n,1)}},Di=function(e,t){var r=t.cacheKey,n=t.cacheTime,o=n===void 0?5*60*1e3:n,a=t.staleTime,i=a===void 0?0:a,u=t.setCache,l=t.getCache,c=C.useRef(void 0),g=C.useRef(void 0),d=function(E,w){u?u(w):Pi(E,o,w),Ai(E,w.data)},T=function(E,w){return w===void 0&&(w=[]),l?l(w):Ci(E)};return ha(function(){if(r){var E=T(r);E&&Object.hasOwnProperty.call(E,"data")&&(e.state.data=E.data,e.state.params=E.params,(i===-1||Date.now()-E.time<=i)&&(e.state.loading=!1)),c.current=Ut(r,function(w){e.setState({data:w})})}},[]),At(function(){var E;(E=c.current)===null||E===void 0||E.call(c)}),r?{onBefore:function(E){var w=T(r,E);return!w||!Object.hasOwnProperty.call(w,"data")?{}:i===-1||Date.now()-w.time<=i?{loading:!1,data:w==null?void 0:w.data,error:void 0,returnNow:!0}:{data:w==null?void 0:w.data,error:void 0}},onRequest:function(E,w){var x=_i(r);return x&&x!==g.current?{servicePromise:x}:(x=E.apply(void 0,de([],le(w),!1)),g.current=x,ji(r,x),{servicePromise:x})},onSuccess:function(E,w){var x;r&&((x=c.current)===null||x===void 0||x.call(c),d(r,{data:E,params:w,time:Date.now()}),c.current=Ut(r,function(S){e.setState({data:S})}))},onMutate:function(E){var w;r&&((w=c.current)===null||w===void 0||w.call(c),d(r,{data:E,params:e.state.params,time:Date.now()}),c.current=Ut(r,function(x){e.setState({data:x})}))}}:{}},Ht,ln;function _r(){if(ln)return Ht;ln=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Ht=e,Ht}var Bt,fn;function Ni(){if(fn)return Bt;fn=1;var e=typeof it=="object"&&it&&it.Object===Object&&it;return Bt=e,Bt}var Vt,dn;function ma(){if(dn)return Vt;dn=1;var e=Ni(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Vt=r,Vt}var Xt,pn;function Mi(){if(pn)return Xt;pn=1;var e=ma(),t=function(){return e.Date.now()};return Xt=t,Xt}var Gt,hn;function ki(){if(hn)return Gt;hn=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Gt=t,Gt}var Kt,mn;function Ii(){if(mn)return Kt;mn=1;var e=ki(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Kt=r,Kt}var Jt,gn;function ga(){if(gn)return Jt;gn=1;var e=ma(),t=e.Symbol;return Jt=t,Jt}var Zt,vn;function $i(){if(vn)return Zt;vn=1;var e=ga(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function a(i){var u=r.call(i,o),l=i[o];try{i[o]=void 0;var c=!0}catch{}var g=n.call(i);return c&&(u?i[o]=l:delete i[o]),g}return Zt=a,Zt}var Qt,yn;function zi(){if(yn)return Qt;yn=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Qt=r,Qt}var er,bn;function Li(){if(bn)return er;bn=1;var e=ga(),t=$i(),r=zi(),n="[object Null]",o="[object Undefined]",a=e?e.toStringTag:void 0;function i(u){return u==null?u===void 0?o:n:a&&a in Object(u)?t(u):r(u)}return er=i,er}var tr,xn;function Fi(){if(xn)return tr;xn=1;function e(t){return t!=null&&typeof t=="object"}return tr=e,tr}var rr,Sn;function qi(){if(Sn)return rr;Sn=1;var e=Li(),t=Fi(),r="[object Symbol]";function n(o){return typeof o=="symbol"||t(o)&&e(o)==r}return rr=n,rr}var nr,En;function Wi(){if(En)return nr;En=1;var e=Ii(),t=_r(),r=qi(),n=NaN,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,i=/^0o[0-7]+$/i,u=parseInt;function l(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var g=typeof c.valueOf=="function"?c.valueOf():c;c=t(g)?g+"":g}if(typeof c!="string")return c===0?c:+c;c=e(c);var d=a.test(c);return d||i.test(c)?u(c.slice(2),d?2:8):o.test(c)?n:+c}return nr=l,nr}var ar,wn;function va(){if(wn)return ar;wn=1;var e=_r(),t=Mi(),r=Wi(),n="Expected a function",o=Math.max,a=Math.min;function i(u,l,c){var g,d,T,E,w,x,S=0,h=!1,f=!1,m=!0;if(typeof u!="function")throw new TypeError(n);l=r(l)||0,e(c)&&(h=!!c.leading,f="maxWait"in c,T=f?o(r(c.maxWait)||0,l):T,m="trailing"in c?!!c.trailing:m);function v(N){var z=g,q=d;return g=d=void 0,S=N,E=u.apply(q,z),E}function s(N){return S=N,w=setTimeout(R,l),h?v(N):E}function y(N){var z=N-x,q=N-S,W=l-z;return f?a(W,T-q):W}function p(N){var z=N-x,q=N-S;return x===void 0||z>=l||z<0||f&&q>=T}function R(){var N=t();if(p(N))return _(N);w=setTimeout(R,y(N))}function _(N){return w=void 0,m&&g?v(N):(g=d=void 0,E)}function A(){w!==void 0&&clearTimeout(w),S=0,g=x=d=w=void 0}function j(){return w===void 0?E:_(t())}function I(){var N=t(),z=p(N);if(g=arguments,d=this,x=N,z){if(w===void 0)return s(x);if(f)return clearTimeout(w),w=setTimeout(R,l),v(x)}return w===void 0&&(w=setTimeout(R,l)),E}return I.cancel=A,I.flush=j,I}return ar=i,ar}var Yi=va();const Ui=wt(Yi);var Hi=function(e,t){var r=t.debounceWait,n=t.debounceLeading,o=t.debounceTrailing,a=t.debounceMaxWait,i=C.useRef(void 0),u=C.useMemo(function(){var l={};return n!==void 0&&(l.leading=n),o!==void 0&&(l.trailing=o),a!==void 0&&(l.maxWait=a),l},[n,o,a]);return C.useEffect(function(){if(r){var l=e.runAsync.bind(e);return i.current=Ui(function(c){c()},r,u),e.runAsync=function(){for(var c=[],g=0;g<arguments.length;g++)c[g]=arguments[g];return new Promise(function(d,T){var E;(E=i.current)===null||E===void 0||E.call(i,function(){l.apply(void 0,de([],le(c),!1)).then(d).catch(T)})})},function(){var c;(c=i.current)===null||c===void 0||c.cancel(),e.runAsync=l}}},[r,u]),r?{onCancel:function(){var l;(l=i.current)===null||l===void 0||l.cancel()}}:{}},Bi=function(e,t){var r=t.loadingDelay,n=t.ready,o=C.useRef(void 0);if(!r)return{};var a=function(){o.current&&clearTimeout(o.current)};return{onBefore:function(){return a(),n!==!1&&(o.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){a()},onCancel:function(){a()}}},ze=!!(typeof window<"u"&&window.document&&window.document.createElement);function jr(){return ze?document.visibilityState!=="hidden":!0}var Ze=[];function Vi(e){return Ze.push(e),function(){var r=Ze.indexOf(e);Ze.splice(r,1)}}if(ze){var Xi=function(){if(jr())for(var e=0;e<Ze.length;e++){var t=Ze[e];t()}};window.addEventListener("visibilitychange",Xi,!1)}var Gi=function(e,t){var r=t.pollingInterval,n=t.pollingWhenHidden,o=n===void 0?!0:n,a=t.pollingErrorRetryCount,i=a===void 0?-1:a,u=C.useRef(void 0),l=C.useRef(void 0),c=C.useRef(0),g=function(){var d;u.current&&clearTimeout(u.current),(d=l.current)===null||d===void 0||d.call(l)};return Et(function(){r||g()},[r]),r?{onBefore:function(){g()},onError:function(){c.current+=1},onSuccess:function(){c.current=0},onFinally:function(){i===-1||i!==-1&&c.current<=i?u.current=setTimeout(function(){!o&&!jr()?l.current=Vi(function(){e.refresh()}):e.refresh()},r):c.current=0},onCancel:function(){g()}}:{}};function Ki(e,t){var r=!1;return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];r||(r=!0,e.apply(void 0,de([],le(n),!1)),setTimeout(function(){r=!1},t))}}var Ji=function(){return ze&&typeof navigator.onLine<"u"?navigator.onLine:!0},Qe=[];function Zi(e){return Qe.push(e),function(){var r=Qe.indexOf(e);r>-1&&Qe.splice(r,1)}}if(ze){var Tn=function(){if(!(!jr()||!Ji()))for(var e=0;e<Qe.length;e++){var t=Qe[e];t()}};window.addEventListener("visibilitychange",Tn,!1),window.addEventListener("focus",Tn,!1)}var Qi=function(e,t){var r=t.refreshOnWindowFocus,n=t.focusTimespan,o=n===void 0?5e3:n,a=C.useRef(void 0),i=function(){var u;(u=a.current)===null||u===void 0||u.call(a)};return C.useEffect(function(){if(r){var u=Ki(e.refresh.bind(e),o);a.current=Zi(function(){u()})}return function(){i()}},[r,o]),At(function(){i()}),{}},es=function(e,t){var r=t.retryInterval,n=t.retryCount,o=C.useRef(void 0),a=C.useRef(0),i=C.useRef(!1);return n?{onBefore:function(){i.current||(a.current=0),i.current=!1,o.current&&clearTimeout(o.current)},onSuccess:function(){a.current=0},onError:function(){if(a.current+=1,n===-1||a.current<=n){var u=r??Math.min(1e3*Math.pow(2,a.current),3e4);o.current=setTimeout(function(){i.current=!0,e.refresh()},u)}else a.current=0},onCancel:function(){a.current=0,o.current&&clearTimeout(o.current)}}:{}},or,Rn;function ts(){if(Rn)return or;Rn=1;var e=va(),t=_r(),r="Expected a function";function n(o,a,i){var u=!0,l=!0;if(typeof o!="function")throw new TypeError(r);return t(i)&&(u="leading"in i?!!i.leading:u,l="trailing"in i?!!i.trailing:l),e(o,a,{leading:u,maxWait:a,trailing:l})}return or=n,or}var rs=ts();const ns=wt(rs);var as=function(e,t){var r=t.throttleWait,n=t.throttleLeading,o=t.throttleTrailing,a=C.useRef(void 0),i={};return n!==void 0&&(i.leading=n),o!==void 0&&(i.trailing=o),C.useEffect(function(){if(r){var u=e.runAsync.bind(e);return a.current=ns(function(l){l()},r,i),e.runAsync=function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new Promise(function(g,d){var T;(T=a.current)===null||T===void 0||T.call(a,function(){u.apply(void 0,de([],le(l),!1)).then(g).catch(d)})})},function(){var l;e.runAsync=u,(l=a.current)===null||l===void 0||l.cancel()}}},[r,n,o]),r?{onCancel:function(){var u;(u=a.current)===null||u===void 0||u.cancel()}}:{}},os=function(e){jt&&(_e(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),C.useEffect(function(){e==null||e()},[])},is=function(){var e=le(C.useState({}),2),t=e[1];return C.useCallback(function(){return t({})},[])},ss=function(){function e(t,r,n,o){o===void 0&&(o={}),this.serviceRef=t,this.options=r,this.subscribe=n,this.initState=o,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=ge(ge(ge({},this.state),{loading:!r.manual}),o)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=ge(ge({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=this.pluginImpls.map(function(a){var i;return(i=a[t])===null||i===void 0?void 0:i.call.apply(i,de([a],le(r),!1))}).filter(Boolean);return Object.assign.apply(Object,de([{}],le(o),!1))},e.prototype.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Ti(this,void 0,void 0,function(){var n,o,a,i,u,l,c,g,d,T,E,w,x,S,h,f,m,v,s,y,p;return Ri(this,function(R){switch(R.label){case 0:if(this.count+=1,n=this.count,o=this.runPluginHandler("onBefore",t),a=o.stopNow,i=a===void 0?!1:a,u=o.returnNow,l=u===void 0?!1:u,c=da(o,["stopNow","returnNow"]),i)return[2,new Promise(function(){})];if(this.setState(ge({loading:!0,params:t},c)),l)return[2,Promise.resolve(c.data)];(x=(w=this.options).onBefore)===null||x===void 0||x.call(w,t),R.label=1;case 1:return R.trys.push([1,3,,4]),g=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,g||(g=(E=this.serviceRef).current.apply(E,de([],le(t),!1))),[4,g];case 2:return d=R.sent(),n!==this.count?[2,new Promise(function(){})]:(this.setState({data:d,error:void 0,loading:!1}),(h=(S=this.options).onSuccess)===null||h===void 0||h.call(S,d,t),this.runPluginHandler("onSuccess",d,t),(m=(f=this.options).onFinally)===null||m===void 0||m.call(f,t,d,void 0),n===this.count&&this.runPluginHandler("onFinally",t,d,void 0),[2,d]);case 3:if(T=R.sent(),n!==this.count)return[2,new Promise(function(){})];throw this.setState({error:T,loading:!1}),(s=(v=this.options).onError)===null||s===void 0||s.call(v,T,t),this.runPluginHandler("onError",T,t),(p=(y=this.options).onFinally)===null||p===void 0||p.call(y,t,void 0,T),n===this.count&&this.runPluginHandler("onFinally",t,void 0,T),T;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.runAsync.apply(this,de([],le(r),!1)).catch(function(o){t.options.onError||console.error(o)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,de([],le(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,de([],le(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=_e(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e}();function us(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var n=t.manual,o=n===void 0?!1:n,a=t.ready,i=a===void 0?!0:a,u=da(t,["manual","ready"]);jt&&t.defaultParams&&!Array.isArray(t.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));var l=ge({manual:o,ready:i},u),c=Cr(e),g=is(),d=ha(function(){var T=r.map(function(E){var w;return(w=E==null?void 0:E.onInit)===null||w===void 0?void 0:w.call(E,l)}).filter(Boolean);return new ss(c,l,g,Object.assign.apply(Object,de([{}],le(T),!1)))},[]);return d.options=l,d.pluginImpls=r.map(function(T){return T(d,l)}),os(function(){if(!o&&i){var T=d.state.params||t.defaultParams||[];d.run.apply(d,de([],le(T),!1))}}),At(function(){d.cancel()}),{loading:d.state.loading,data:d.state.data,error:d.state.error,params:d.state.params||[],cancel:we(d.cancel.bind(d)),refresh:we(d.refresh.bind(d)),refreshAsync:we(d.refreshAsync.bind(d)),run:we(d.run.bind(d)),runAsync:we(d.runAsync.bind(d)),mutate:we(d.mutate.bind(d))}}function cs(e,t,r){return us(e,t,de(de([],le(r||[]),!1),[Hi,Bi,Gi,Qi,as,pa,Di,es],!1))}function ya(e,t){if(ze){if(!e)return t;var r;return _e(e)?r=e():"current"in e?r=e.current:r=e,r}}var ls=function(e){var t=function(r,n,o){var a=C.useRef(!1),i=C.useRef([]),u=C.useRef([]),l=C.useRef(void 0);e(function(){var c,g=Array.isArray(o)?o:[o],d=g.map(function(T){return ya(T)});if(!a.current){a.current=!0,i.current=d,u.current=n,l.current=r();return}(d.length!==i.current.length||!hr(i.current,d)||!hr(u.current,n))&&((c=l.current)===null||c===void 0||c.call(l),i.current=d,u.current=n,l.current=r())}),At(function(){var c;(c=l.current)===null||c===void 0||c.call(l),a.current=!1})};return t},fs=ls(C.useEffect);function On(e,t,r){r===void 0&&(r={});var n=r.enable,o=n===void 0?!0:n,a=Cr(t);fs(function(){if(o){var i=ya(r.target,window);if(i!=null&&i.addEventListener){var u=function(c){return a.current(c)},l=Array.isArray(e)?e:[e];return l.forEach(function(c){i.addEventListener(c,u,{capture:r.capture,once:r.once,passive:r.passive})}),function(){l.forEach(function(c){i.removeEventListener(c,u,{capture:r.capture})})}}}},[e,r.capture,r.once,r.passive,o],r.target)}var Pn="AHOOKS_SYNC_STORAGE_EVENT_NAME";function ds(e){function t(r,n){n===void 0&&(n={});var o,a=n.listenStorageChange,i=a===void 0?!1:a,u=n.onError,l=u===void 0?function(f){console.error(f)}:u;try{o=e()}catch(f){l(f)}var c=function(f){return n.serializer?n.serializer(f):JSON.stringify(f)},g=function(f){return n.deserializer?n.deserializer(f):JSON.parse(f)};function d(){try{var f=o==null?void 0:o.getItem(r);if(f)return g(f)}catch(m){l(m)}return _e(n.defaultValue)?n.defaultValue():n.defaultValue}var T=le(C.useState(d),2),E=T[0],w=T[1];Et(function(){w(d())},[r]);var x=function(f){var m=_e(f)?f(E):f;i||w(m);try{var v=void 0,s=o==null?void 0:o.getItem(r);Oi(m)?(v=null,o==null||o.removeItem(r)):(v=c(m),o==null||o.setItem(r,v)),dispatchEvent(new CustomEvent(Pn,{detail:{key:r,newValue:v,oldValue:s,storageArea:o}}))}catch(y){l(y)}},S=function(f){f.key!==r||f.storageArea!==o||w(d())},h=function(f){S(f.detail)};return On("storage",S,{enable:i}),On(Pn,h,{enable:i}),[E,we(x)]}return t}var ba=ds(function(){return ze?localStorage:void 0});const ps=Tr`
121
+ `,dc=({children:e,tooltipDisabled:t,disabled:r,disabledReason:n,title:a,...o})=>t?e:z.jsx(Ee.Tooltip,{title:r&&n||a,...o,children:e}),pc=I.forwardRef((e,t)=>{const{iconButton:r}=I.useContext(Sr),{icon:n,tooltipDisabled:a=!1,title:o,hide:i=!1,disabledReason:s,onClick:l=Br,disabled:u,size:m=r.size||"small",style:d={},className:b,loading:y=!1,...w}=e,E=()=>uc(n)?z.jsx(Ca,{type:n}):n,S=r.render;return n||console.warn("Icon props not found"),z.jsx(S,{...e,children:z.jsx(dc,{tooltipDisabled:a,hide:i,disabled:u,disabledReason:s,title:o,...w,children:z.jsx(fc,{ref:t,icon:E(),size:m,className:ca(["icon-button",r.className,b]),disabled:u,style:{...r.style,...d},loading:y,onClick:l})})})});var hc=function(e){return function(t,r){var n=I.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r)}},Xe=function(){return Xe=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Xe.apply(this,arguments)};function ds(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function mc(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function s(m){try{u(n.next(m))}catch(d){i(d)}}function l(m){try{u(n.throw(m))}catch(d){i(d)}}function u(m){m.done?o(m.value):a(m.value).then(s,l)}u((n=n.apply(e,t||[])).next())})}function gc(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(u){return function(m){return l([u,m])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(r=0)),r;)try{if(n=1,a&&(o=u[0]&2?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1],o=u;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(u);break}o[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(m){u=[6,m],a=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function ke(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,o=[],i;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)o.push(a.value)}catch(s){i={error:s}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return o}function Le(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var Ot=function(e){return typeof e=="function"},vc=function(e){return typeof e>"u"},cn=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test",et=function(e){cn&&(Ot(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var t=I.useRef(e);t.current=I.useMemo(function(){return e},[e]);var r=I.useRef(void 0);return r.current||(r.current=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return t.current.apply(this,n)}),r.current};const Zr=hc(I.useEffect);var ps=function(e,t){var r=t.manual,n=t.ready,a=n===void 0?!0:n,o=t.defaultParams,i=o===void 0?[]:o,s=t.refreshDeps,l=s===void 0?[]:s,u=t.refreshDepsAction,m=I.useRef(!1);return m.current=!1,Zr(function(){!r&&a&&(m.current=!0,e.run.apply(e,Le([],ke(i),!1)))},[a]),Zr(function(){m.current||r||(m.current=!0,u?u():e.refresh())},Le([],ke(l),!1)),{onBefore:function(){if(!a)return{stopNow:!0}}}};ps.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return{loading:!n&&r}};function fa(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}var hs=function(e,t){var r=I.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!fa(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj};function Da(e){var t=I.useRef(e);return t.current=e,t}var fn=function(e){cn&&(Ot(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=Da(e);I.useEffect(function(){return function(){t.current()}},[])},Hr=new Map,yc=function(e,t,r){var n=Hr.get(e);n!=null&&n.timer&&clearTimeout(n.timer);var a=void 0;t>-1&&(a=setTimeout(function(){Hr.delete(e)},t)),Hr.set(e,Xe(Xe({},r),{timer:a}))},bc=function(e){return Hr.get(e)},Yr=new Map,Ec=function(e){return Yr.get(e)},xc=function(e,t){Yr.set(e,t),t.then(function(r){return Yr.delete(e),r}).catch(function(){Yr.delete(e)})},wt={},Sc=function(e,t){wt[e]&&wt[e].forEach(function(r){return r(t)})},Nn=function(e,t){return wt[e]||(wt[e]=[]),wt[e].push(t),function(){var n=wt[e].indexOf(t);wt[e].splice(n,1)}},wc=function(e,t){var r=t.cacheKey,n=t.cacheTime,a=n===void 0?300*1e3:n,o=t.staleTime,i=o===void 0?0:o,s=t.setCache,l=t.getCache,u=I.useRef(void 0),m=I.useRef(void 0),d=function(y,w){s?s(w):yc(y,a,w),Sc(y,w.data)},b=function(y,w){return w===void 0&&(w=[]),l?l(w):bc(y)};return hs(function(){if(r){var y=b(r);y&&Object.hasOwnProperty.call(y,"data")&&(e.state.data=y.data,e.state.params=y.params,(i===-1||Date.now()-y.time<=i)&&(e.state.loading=!1)),u.current=Nn(r,function(w){e.setState({data:w})})}},[]),fn(function(){var y;(y=u.current)===null||y===void 0||y.call(u)}),r?{onBefore:function(y){var w=b(r,y);return!w||!Object.hasOwnProperty.call(w,"data")?{}:i===-1||Date.now()-w.time<=i?{loading:!1,data:w==null?void 0:w.data,error:void 0,returnNow:!0}:{data:w==null?void 0:w.data,error:void 0}},onRequest:function(y,w){var E=Ec(r);return E&&E!==m.current?{servicePromise:E}:(E=y.apply(void 0,Le([],ke(w),!1)),m.current=E,xc(r,E),{servicePromise:E})},onSuccess:function(y,w){var E;r&&((E=u.current)===null||E===void 0||E.call(u),d(r,{data:y,params:w,time:Date.now()}),u.current=Nn(r,function(S){e.setState({data:S})}))},onMutate:function(y){var w;r&&((w=u.current)===null||w===void 0||w.call(u),d(r,{data:y,params:e.state.params,time:Date.now()}),u.current=Nn(r,function(E){e.setState({data:E})}))}}:{}},An,Lo;function ja(){if(Lo)return An;Lo=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return An=e,An}var Mn,zo;function Rc(){if(zo)return Mn;zo=1;var e=typeof jr=="object"&&jr&&jr.Object===Object&&jr;return Mn=e,Mn}var In,$o;function ms(){if($o)return In;$o=1;var e=Rc(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return In=r,In}var kn,Uo;function Pc(){if(Uo)return kn;Uo=1;var e=ms(),t=function(){return e.Date.now()};return kn=t,kn}var Fn,Wo;function Oc(){if(Wo)return Fn;Wo=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Fn=t,Fn}var Ln,qo;function _c(){if(qo)return Ln;qo=1;var e=Oc(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Ln=r,Ln}var zn,Bo;function gs(){if(Bo)return zn;Bo=1;var e=ms(),t=e.Symbol;return zn=t,zn}var $n,Ho;function Tc(){if(Ho)return $n;Ho=1;var e=gs(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function o(i){var s=r.call(i,a),l=i[a];try{i[a]=void 0;var u=!0}catch{}var m=n.call(i);return u&&(s?i[a]=l:delete i[a]),m}return $n=o,$n}var Un,Yo;function Cc(){if(Yo)return Un;Yo=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Un=r,Un}var Wn,Vo;function Dc(){if(Vo)return Wn;Vo=1;var e=gs(),t=Tc(),r=Cc(),n="[object Null]",a="[object Undefined]",o=e?e.toStringTag:void 0;function i(s){return s==null?s===void 0?a:n:o&&o in Object(s)?t(s):r(s)}return Wn=i,Wn}var qn,Xo;function jc(){if(Xo)return qn;Xo=1;function e(t){return t!=null&&typeof t=="object"}return qn=e,qn}var Bn,Go;function Nc(){if(Go)return Bn;Go=1;var e=Dc(),t=jc(),r="[object Symbol]";function n(a){return typeof a=="symbol"||t(a)&&e(a)==r}return Bn=n,Bn}var Hn,Ko;function Ac(){if(Ko)return Hn;Ko=1;var e=_c(),t=ja(),r=Nc(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,s=parseInt;function l(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var m=typeof u.valueOf=="function"?u.valueOf():u;u=t(m)?m+"":m}if(typeof u!="string")return u===0?u:+u;u=e(u);var d=o.test(u);return d||i.test(u)?s(u.slice(2),d?2:8):a.test(u)?n:+u}return Hn=l,Hn}var Yn,Jo;function vs(){if(Jo)return Yn;Jo=1;var e=ja(),t=Pc(),r=Ac(),n="Expected a function",a=Math.max,o=Math.min;function i(s,l,u){var m,d,b,y,w,E,S=0,h=!1,c=!1,g=!0;if(typeof s!="function")throw new TypeError(n);l=r(l)||0,e(u)&&(h=!!u.leading,c="maxWait"in u,b=c?a(r(u.maxWait)||0,l):b,g="trailing"in u?!!u.trailing:g);function v(N){var Y=m,X=d;return m=d=void 0,S=N,y=s.apply(X,Y),y}function p(N){return S=N,w=setTimeout(O,l),h?v(N):y}function x(N){var Y=N-E,X=N-S,te=l-Y;return c?o(te,b-X):te}function f(N){var Y=N-E,X=N-S;return E===void 0||Y>=l||Y<0||c&&X>=b}function O(){var N=t();if(f(N))return j(N);w=setTimeout(O,x(N))}function j(N){return w=void 0,g&&m?v(N):(m=d=void 0,y)}function M(){w!==void 0&&clearTimeout(w),S=0,m=E=d=w=void 0}function L(){return w===void 0?y:j(t())}function q(){var N=t(),Y=f(N);if(m=arguments,d=this,E=N,Y){if(w===void 0)return p(E);if(c)return clearTimeout(w),w=setTimeout(O,l),v(E)}return w===void 0&&(w=setTimeout(O,l)),y}return q.cancel=M,q.flush=L,q}return Yn=i,Yn}var Mc=vs();const Ic=nn(Mc);var kc=function(e,t){var r=t.debounceWait,n=t.debounceLeading,a=t.debounceTrailing,o=t.debounceMaxWait,i=I.useRef(void 0),s=I.useMemo(function(){var l={};return n!==void 0&&(l.leading=n),a!==void 0&&(l.trailing=a),o!==void 0&&(l.maxWait=o),l},[n,a,o]);return I.useEffect(function(){if(r){var l=e.runAsync.bind(e);return i.current=Ic(function(u){u()},r,s),e.runAsync=function(){for(var u=[],m=0;m<arguments.length;m++)u[m]=arguments[m];return new Promise(function(d,b){var y;(y=i.current)===null||y===void 0||y.call(i,function(){l.apply(void 0,Le([],ke(u),!1)).then(d).catch(b)})})},function(){var u;(u=i.current)===null||u===void 0||u.cancel(),e.runAsync=l}}},[r,s]),r?{onCancel:function(){var l;(l=i.current)===null||l===void 0||l.cancel()}}:{}},Fc=function(e,t){var r=t.loadingDelay,n=t.ready,a=I.useRef(void 0);if(!r)return{};var o=function(){a.current&&clearTimeout(a.current)};return{onBefore:function(){return o(),n!==!1&&(a.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){o()},onCancel:function(){o()}}},Ht=!!(typeof window<"u"&&window.document&&window.document.createElement);function Na(){return Ht?document.visibilityState!=="hidden":!0}var Vr=new Set;function Lc(e){return Vr.add(e),function(){Vr.has(e)&&Vr.delete(e)}}if(Ht){var zc=function(){Na()&&Vr.forEach(function(e){return e()})};window.addEventListener("visibilitychange",zc,!1)}var $c=function(e,t){var r=t.pollingInterval,n=t.pollingWhenHidden,a=n===void 0?!0:n,o=t.pollingErrorRetryCount,i=o===void 0?-1:o,s=I.useRef(void 0),l=I.useRef(void 0),u=I.useRef(0),m=function(){var d;s.current&&clearTimeout(s.current),(d=l.current)===null||d===void 0||d.call(l)};return Zr(function(){r||m()},[r]),r?{onBefore:function(){m()},onError:function(){u.current+=1},onSuccess:function(){u.current=0},onFinally:function(){i===-1||i!==-1&&u.current<=i?s.current=setTimeout(function(){!a&&!Na()?l.current=Lc(function(){e.refresh()}):e.refresh()},r):u.current=0},onCancel:function(){m()}}:{}};function Uc(e,t){var r=!1;return function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];r||(r=!0,e.apply(void 0,Le([],ke(n),!1)),setTimeout(function(){r=!1},t))}}var Wc=function(){return Ht&&typeof navigator.onLine<"u"?navigator.onLine:!0},Xr=new Set;function qc(e){return Xr.add(e),function(){Xr.has(e)&&Xr.delete(e)}}if(Ht){var Zo=function(){!Na()||!Wc()||Xr.forEach(function(e){return e()})};window.addEventListener("visibilitychange",Zo,!1),window.addEventListener("focus",Zo,!1)}var Bc=function(e,t){var r=t.refreshOnWindowFocus,n=t.focusTimespan,a=n===void 0?5e3:n,o=I.useRef(void 0),i=function(){var s;(s=o.current)===null||s===void 0||s.call(o)};return I.useEffect(function(){if(r){var s=Uc(e.refresh.bind(e),a);o.current=qc(function(){s()})}return function(){i()}},[r,a]),fn(function(){i()}),{}},Hc=function(e,t){var r=t.retryInterval,n=t.retryCount,a=I.useRef(void 0),o=I.useRef(0),i=I.useRef(!1);return n?{onBefore:function(){i.current||(o.current=0),i.current=!1,a.current&&clearTimeout(a.current)},onSuccess:function(){o.current=0},onError:function(){if(o.current+=1,n===-1||o.current<=n){var s=r??Math.min(1e3*Math.pow(2,o.current),3e4);a.current=setTimeout(function(){i.current=!0,e.refresh()},s)}else o.current=0},onCancel:function(){o.current=0,a.current&&clearTimeout(a.current)}}:{}},Vn,Qo;function Yc(){if(Qo)return Vn;Qo=1;var e=vs(),t=ja(),r="Expected a function";function n(a,o,i){var s=!0,l=!0;if(typeof a!="function")throw new TypeError(r);return t(i)&&(s="leading"in i?!!i.leading:s,l="trailing"in i?!!i.trailing:l),e(a,o,{leading:s,maxWait:o,trailing:l})}return Vn=n,Vn}var Vc=Yc();const Xc=nn(Vc);var Gc=function(e,t){var r=t.throttleWait,n=t.throttleLeading,a=t.throttleTrailing,o=I.useRef(void 0),i={};return n!==void 0&&(i.leading=n),a!==void 0&&(i.trailing=a),I.useEffect(function(){if(r){var s=e.runAsync.bind(e);return o.current=Xc(function(l){l()},r,i),e.runAsync=function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new Promise(function(m,d){var b;(b=o.current)===null||b===void 0||b.call(o,function(){s.apply(void 0,Le([],ke(l),!1)).then(m).catch(d)})})},function(){var l;e.runAsync=s,(l=o.current)===null||l===void 0||l.cancel()}}},[r,n,a]),r?{onCancel:function(){var s;(s=o.current)===null||s===void 0||s.cancel()}}:{}},Kc=function(e){cn&&(Ot(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),I.useEffect(function(){var t=e==null?void 0:e();if(!(t&&typeof t=="object"&&typeof t.then=="function"))return t},[])},Aa=function(){var e=ke(I.useState({}),2),t=e[1];return I.useCallback(function(){return t({})},[])},Jc=(function(){function e(t,r,n,a){a===void 0&&(a={}),this.serviceRef=t,this.options=r,this.subscribe=n,this.initState=a,this.pluginImpls=[],this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=Xe(Xe(Xe({},this.state),{loading:!r.manual}),a)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=Xe(Xe({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var a=this.pluginImpls.map(function(o){var i;return(i=o[t])===null||i===void 0?void 0:i.call.apply(i,Le([o],ke(r),!1))}).filter(Boolean);return Object.assign.apply(Object,Le([{}],ke(a),!1))},e.prototype.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return mc(this,void 0,void 0,function(){var n,a,o,i,s,l,u,m,d,b,y,w,E,S,h,c,g,v,p,x,f;return gc(this,function(O){switch(O.label){case 0:if(this.count+=1,n=this.count,a=this.runPluginHandler("onBefore",t),o=a.stopNow,i=o===void 0?!1:o,s=a.returnNow,l=s===void 0?!1:s,u=ds(a,["stopNow","returnNow"]),i)return[2,new Promise(function(){})];if(this.setState(Xe({loading:!0,params:t},u)),l)return[2,Promise.resolve(u.data)];(E=(w=this.options).onBefore)===null||E===void 0||E.call(w,t),O.label=1;case 1:return O.trys.push([1,3,,4]),m=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,m||(m=(y=this.serviceRef).current.apply(y,Le([],ke(t),!1))),[4,m];case 2:return d=O.sent(),n!==this.count?[2,new Promise(function(){})]:(this.setState({data:d,error:void 0,loading:!1}),(h=(S=this.options).onSuccess)===null||h===void 0||h.call(S,d,t),this.runPluginHandler("onSuccess",d,t),(g=(c=this.options).onFinally)===null||g===void 0||g.call(c,t,d,void 0),n===this.count&&this.runPluginHandler("onFinally",t,d,void 0),[2,d]);case 3:if(b=O.sent(),n!==this.count)return[2,new Promise(function(){})];throw this.setState({error:b,loading:!1}),(p=(v=this.options).onError)===null||p===void 0||p.call(v,b,t),this.runPluginHandler("onError",b,t),(f=(x=this.options).onFinally)===null||f===void 0||f.call(x,t,void 0,b),n===this.count&&this.runPluginHandler("onFinally",t,void 0,b),b;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.runAsync.apply(this,Le([],ke(r),!1)).catch(function(a){t.options.onError||console.error(a)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,Le([],ke(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,Le([],ke(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=Ot(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e})();function Zc(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var n=t.manual,a=n===void 0?!1:n,o=t.ready,i=o===void 0?!0:o,s=ds(t,["manual","ready"]);cn&&t.defaultParams&&!Array.isArray(t.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));var l=Xe({manual:a,ready:i},s),u=Da(e),m=Aa(),d=hs(function(){var b=r.map(function(y){var w;return(w=y==null?void 0:y.onInit)===null||w===void 0?void 0:w.call(y,l)}).filter(Boolean);return new Jc(u,l,m,Object.assign.apply(Object,Le([{}],ke(b),!1)))},[]);return d.options=l,d.pluginImpls=r.map(function(b){return b(d,l)}),Kc(function(){if(!a&&i){var b=d.state.params||t.defaultParams||[];d.run.apply(d,Le([],ke(b),!1))}}),fn(function(){d.cancel()}),{loading:d.state.loading,data:d.state.data,error:d.state.error,params:d.state.params||[],cancel:et(d.cancel.bind(d)),refresh:et(d.refresh.bind(d)),refreshAsync:et(d.refreshAsync.bind(d)),run:et(d.run.bind(d)),runAsync:et(d.runAsync.bind(d)),mutate:et(d.mutate.bind(d))}}function Qc(e,t,r){return Zc(e,t,Le(Le([],ke(r||[]),!1),[kc,Fc,$c,Bc,Gc,ps,wc,Hc],!1))}function ys(e,t){if(Ht){if(!e)return t;var r;return Ot(e)?r=e():"current"in e?r=e.current:r=e,r}}var ef=function(e){var t=function(r,n,a){var o=I.useRef(!1),i=I.useRef([]),s=I.useRef([]),l=I.useRef(void 0);e(function(){var u,m=Array.isArray(a)?a:[a],d=m.map(function(b){return ys(b)});if(!o.current){o.current=!0,i.current=d,s.current=n,l.current=r();return}(d.length!==i.current.length||!fa(i.current,d)||!fa(s.current,n))&&((u=l.current)===null||u===void 0||u.call(l),i.current=d,s.current=n,l.current=r())}),fn(function(){var u;(u=l.current)===null||u===void 0||u.call(l),o.current=!1})};return t},tf=ef(I.useEffect);function ei(e,t,r){r===void 0&&(r={});var n=r.enable,a=n===void 0?!0:n,o=Da(t);tf(function(){if(a){var i=ys(r.target,window);if(i!=null&&i.addEventListener){var s=function(u){return o.current(u)},l=Array.isArray(e)?e:[e];return l.forEach(function(u){i.addEventListener(u,s,{capture:r.capture,once:r.once,passive:r.passive})}),function(){l.forEach(function(u){i.removeEventListener(u,s,{capture:r.capture})})}}}},[e,r.capture,r.once,r.passive,a],r.target)}var ti="AHOOKS_SYNC_STORAGE_EVENT_NAME";function rf(e){function t(r,n){n===void 0&&(n={});var a,o=n.listenStorageChange,i=o===void 0?!1:o,s=n.onError,l=s===void 0?function(c){console.error(c)}:s;try{a=e()}catch(c){l(c)}var u=function(c){return n.serializer?n.serializer(c):JSON.stringify(c)},m=function(c){return n.deserializer?n.deserializer(c):JSON.parse(c)};function d(){try{var c=a==null?void 0:a.getItem(r);if(c)return m(c)}catch(g){l(g)}return Ot(n.defaultValue)?n.defaultValue():n.defaultValue}var b=ke(I.useState(d),2),y=b[0],w=b[1];Zr(function(){w(d())},[r]);var E=function(c){var g=Ot(c)?c(y):c;i||w(g);try{var v=void 0,p=a==null?void 0:a.getItem(r);vc(g)?(v=null,a==null||a.removeItem(r)):(v=u(g),a==null||a.setItem(r,v)),dispatchEvent(new CustomEvent(ti,{detail:{key:r,newValue:v,oldValue:p,storageArea:a}}))}catch(x){l(x)}},S=function(c){c.key!==r||c.storageArea!==a||w(d())},h=function(c){S(c.detail)};return ei("storage",S,{enable:i}),ei(ti,h,{enable:i}),[y,et(E)]}return t}var bs=rf(function(){return Ht?localStorage:void 0});const nf=Oa`
122
122
  from {
123
123
  margin-top: 0;
124
124
  }
125
125
  to {
126
126
  margin-top: 32px;
127
127
  }
128
- `,hs=Tr`
128
+ `,af=Oa`
129
129
  from {
130
130
  margin-top: 32px;
131
131
  margin-bottom: 0;
@@ -134,24 +134,24 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var O=ue(B,X,$,F,Y+"."+X
134
134
  margin-top: 0;
135
135
  margin-bottom: 32px;
136
136
  }
137
- `;oe.div`
137
+ `;Ne.div`
138
138
  .ant-popover-inner-content {
139
139
  max-height: 360px;
140
140
  padding: 0;
141
141
  overflow-y: auto;
142
142
  }
143
- `;const ms=oe.ul`
143
+ `;const of=Ne.ul`
144
144
  padding: 10px 0;
145
145
 
146
146
  .drag-up {
147
147
  border: solid 2px #ccc;
148
- animation: ${ps} ease 0.2s 1;
148
+ animation: ${nf} ease 0.2s 1;
149
149
  animation-fill-mode: forwards;
150
150
  }
151
151
 
152
152
  .drag-down {
153
153
  border: solid 2px #ccc;
154
- animation: ${hs} ease 0.2s 1;
154
+ animation: ${af} ease 0.2s 1;
155
155
  animation-fill-mode: forwards;
156
156
  }
157
157
 
@@ -182,13 +182,13 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var O=ue(B,X,$,F,Y+"."+X
182
182
  background-color: #f0f0f0;
183
183
  }
184
184
  }
185
- `;function gs({order:e,visibleItems:t,columns:r=[],onChangeOrder:n,columnsVisible:o,columnsSort:a,onChangeVisible:i}){const u=C.useRef(null),l=C.useRef(null),c=x=>{u.current=x.currentTarget},g=x=>{if(!l.current||!u.current)return;u.current.style.display="block",x.currentTarget.classList.remove("drag-up"),l.current.classList.remove("drag-up"),x.currentTarget.classList.remove("drag-down"),l.current.classList.remove("drag-down");const S=[...e],h=Number(u.current.dataset.index),f=Number(l.current.dataset.index);S.splice(f,0,S.splice(h,1)[0]),n(S)},d=x=>{if(x.preventDefault(),!u.current)return;u.current.style.display="none";const S=x.target;if(S.tagName!=="LI")return;const h=u.current.dataset.index,f=S.dataset.index,m=S.dataset.id;if(!m||E.includes(m)||!h||!f)return;const v=h>f?"drag-up":"drag-down";l.current&&S.dataset.index!==l.current.dataset.index&&l.current.classList.remove("drag-up","drag-down"),S.classList.contains(v)||(S.classList.add(v),l.current=S)},T=({target:{checked:x}},{dataIndex:S})=>{if(t.length===1&&!x){exports.message.error(D.jsx(Me,{id:"component.table.visibleError",defaultMessage:"列表最少保留一个字段"}));return}const h=Array.isArray(S)?S.join(","):S,f=[...t];x?f.push(h):f.splice(f.indexOf(h),1),i(f)},E=C.useMemo(()=>{const x=[];for(const S of r)if(S.columnSortDisabled&&"dataIndex"in S){let h;Array.isArray(S.dataIndex)?h=S.dataIndex.join(","):h=S.dataIndex,x.push(h)}return x},[r]),w=C.useMemo(()=>e.map((x,S)=>{let h;for(const s of r)if("dataIndex"in s){let y;if(Array.isArray(s.dataIndex)?y=s.dataIndex.join(","):y=s.dataIndex,x===y){h=s;break}}if(!h||!("dataIndex"in h))return"";const f=a&&h&&!h.columnSortDisabled;let m;h&&Array.isArray(h.dataIndex)?m=h.dataIndex.join(","):h&&(m=h.dataIndex);const v=typeof m=="string"&&t.includes(m);return h?D.jsxs("li",{draggable:f,onDragEnd:g,onDragStart:c,"data-index":S,"data-id":Array.isArray(h.dataIndex)?h.dataIndex.join(","):String(h.dataIndex),children:[a&&D.jsx(Ie.HolderOutlined,{className:"icon-drag"}),o&&D.jsx(te.Checkbox,{style:{marginRight:"10px"},checked:!!v,disabled:h.columnVisibleDisabled,onChange:s=>{T(s,h)}}),typeof h.title=="function"?h.title({}):h.title]},Array.isArray(h.dataIndex)?h.dataIndex.join(","):String(h.dataIndex)):null}),[e,t,r,a,o]);return D.jsx(te.Popover,{overlayClassName:"table-columns-setting-popover",content:D.jsx(ms,{onDragOver:d,children:w}),trigger:"click",align:{offset:[-60,-14]},children:D.jsx(Pr,{type:"icon-setting",style:{float:"right",fontSize:"17px",lineHeight:1,marginTop:"2px",fontWeight:500}})})}const vs=oe.div`
185
+ `;function sf({order:e,visibleItems:t,columns:r=[],onChangeOrder:n,columnsVisible:a,columnsSort:o,onChangeVisible:i}){const s=I.useRef(null),l=I.useRef(null),u=E=>{s.current=E.currentTarget},m=E=>{if(!l.current||!s.current)return;s.current.style.display="block",E.currentTarget.classList.remove("drag-up"),l.current.classList.remove("drag-up"),E.currentTarget.classList.remove("drag-down"),l.current.classList.remove("drag-down");const S=[...e],h=Number(s.current.dataset.index),c=Number(l.current.dataset.index);S.splice(c,0,S.splice(h,1)[0]),n(S)},d=E=>{if(E.preventDefault(),!s.current)return;s.current.style.display="none";const S=E.target;if(S.tagName!=="LI")return;const h=s.current.dataset.index,c=S.dataset.index,g=S.dataset.id;if(!g||y.includes(g)||!h||!c)return;const v=h>c?"drag-up":"drag-down";l.current&&S.dataset.index!==l.current.dataset.index&&l.current.classList.remove("drag-up","drag-down"),S.classList.contains(v)||(S.classList.add(v),l.current=S)},b=({target:{checked:E}},{dataIndex:S})=>{if(t.length===1&&!E){exports.message.error(z.jsx($t,{id:"component.table.visibleError",defaultMessage:"列表最少保留一个字段"}));return}const h=Array.isArray(S)?S.join(","):S,c=[...t];E?c.push(h):c.splice(c.indexOf(h),1),i(c)},y=I.useMemo(()=>{const E=[];for(const S of r)if(S.columnSortDisabled&&"dataIndex"in S){let h;Array.isArray(S.dataIndex)?h=S.dataIndex.join(","):h=S.dataIndex,E.push(h)}return E},[r]),w=I.useMemo(()=>e.map((E,S)=>{let h;for(const p of r)if("dataIndex"in p){let x;if(Array.isArray(p.dataIndex)?x=p.dataIndex.join(","):x=p.dataIndex,E===x){h=p;break}}if(!h||!("dataIndex"in h))return"";const c=o&&h&&!h.columnSortDisabled;let g;h&&Array.isArray(h.dataIndex)?g=h.dataIndex.join(","):h&&(g=h.dataIndex);const v=typeof g=="string"&&t.includes(g);return h?z.jsxs("li",{draggable:c,onDragEnd:m,onDragStart:u,"data-index":S,"data-id":Array.isArray(h.dataIndex)?h.dataIndex.join(","):String(h.dataIndex),children:[o&&z.jsx(qt.HolderOutlined,{className:"icon-drag"}),a&&z.jsx(Ee.Checkbox,{style:{marginRight:"10px"},checked:!!v,disabled:h.columnVisibleDisabled,onChange:p=>{b(p,h)}}),typeof h.title=="function"?h.title({}):h.title]},Array.isArray(h.dataIndex)?h.dataIndex.join(","):String(h.dataIndex)):null}),[e,t,r,o,a]);return z.jsx(Ee.Popover,{overlayClassName:"table-columns-setting-popover",content:z.jsx(of,{onDragOver:d,children:w}),trigger:"click",align:{offset:[-60,-14]},children:z.jsx(Ca,{type:"icon-setting",style:{float:"right",fontSize:"17px",lineHeight:1,marginTop:"2px",fontWeight:500}})})}const lf=Ne.div`
186
186
  position: absolute;
187
187
  left: 8px;
188
- `,ys=oe.span`
188
+ `,uf=Ne.span`
189
189
  font-size: 14px;
190
190
  color: #666;
191
- `;oe.div`
191
+ `;Ne.div`
192
192
  position: fixed;
193
193
  right: 0;
194
194
  bottom: 30px;
@@ -211,7 +211,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var O=ue(B,X,$,F,Y+"."+X
211
211
  border-color: #d9d9d9;
212
212
  }
213
213
  }
214
- `;const bs=oe(te.Row)`
214
+ `;const cf=Ne(Ee.Row)`
215
215
  position: fixed;
216
216
  right: 0;
217
217
  bottom: 30px;
@@ -234,7 +234,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var O=ue(B,X,$,F,Y+"."+X
234
234
  border-color: #d9d9d9;
235
235
  }
236
236
  }
237
- `,xs=oe.span`
237
+ `,ff=Ne.span`
238
238
  margin-left: 20px;
239
239
  cursor: pointer;
240
240
  opacity: 0.5;
@@ -243,7 +243,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var O=ue(B,X,$,F,Y+"."+X
243
243
  &:hover {
244
244
  opacity: 1;
245
245
  }
246
- `,Ss={enter:"zoom-enter",enterActive:"zoom-enter-active",leaveActive:"zoom-leave-active"},Es=`
246
+ `,df={enter:"zoom-enter",enterActive:"zoom-enter-active",leaveActive:"zoom-leave-active"},pf=`
247
247
  .zoom-enter {
248
248
  transform: scale(0);
249
249
  }
@@ -255,9 +255,9 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var O=ue(B,X,$,F,Y+"."+X
255
255
  .zoom-leave-active {
256
256
  transform: scale(0);
257
257
  }
258
- `;function ws(e){const t=C.useRef(null),{pagination:r,rowSelection:n={selectedRowKeys:[],onChange:()=>{}},dataSource:o=[],selectionPopover:a=!1}=e,i=({target:{checked:g}})=>{const{rowKey:d="id"}=e;if(!(!n||!n.onChange))if(g){const{getCheckboxProps:T}=n;let E=o;T&&(E=o.filter(x=>!T(x).disabled));const w=typeof d=="function"?d:x=>x[d];n.onChange(Array.from(E.map(w)),Array.from(E),{type:"none"})}else n.onChange([],[],{type:"none"})},u=C.useMemo(()=>{const{getCheckboxProps:g}=n;let d=o;return g&&(d=o.filter(T=>!g(T).disabled)),d.length},[o,n]),l=C.useMemo(()=>{const g=n.selectedRowKeys??[];return g.length>0&&g.length<u},[n.selectedRowKeys,u]),c=C.useMemo(()=>{const g=n.selectedRowKeys??[];return g.length>0&&g.length===u},[n.selectedRowKeys,u]);return D.jsxs(D.Fragment,{children:[D.jsx(No,{styles:Es}),D.jsxs(vs,{children:[D.jsx(Tt,{in:!!(e.rowSelection&&e.selectionPopover&&(c||l)),nodeRef:t,classNames:Ss,unmountOnExit:!0,timeout:300,children:()=>{var g;return D.jsxs(bs,{ref:t,justify:"space-between",children:[D.jsx(te.Col,{style:{display:"flex",alignItems:"center"},children:D.jsx(te.Checkbox,{checked:c,indeterminate:l,onChange:i,children:D.jsx(Me,{id:"component.table.selected",defaultMessage:"已选{length}条",values:{length:((g=n.selectedRowKeys)==null?void 0:g.length)??0}})})}),D.jsxs(te.Col,{style:{display:"flex",alignItems:"center"},children:[a,D.jsx(xs,{onClick:()=>{i({target:{checked:!1}})},children:D.jsx(Ie.CloseOutlined,{})})]})]})}}),r&&D.jsx(ys,{children:r.showTotal?r.showTotal(r.total??0,[0,0]):null})]})]})}var He={exports:{}},Be={},Ve={exports:{}},ir={},dt={exports:{}},Cn;function Ts(){if(Cn)return dt.exports;Cn=1;function e(r){var n,o,a="";if(typeof r=="string"||typeof r=="number")a+=r;else if(typeof r=="object")if(Array.isArray(r)){var i=r.length;for(n=0;n<i;n++)r[n]&&(o=e(r[n]))&&(a&&(a+=" "),a+=o)}else for(o in r)r[o]&&(a&&(a+=" "),a+=o);return a}function t(){for(var r,n,o=0,a="",i=arguments.length;o<i;o++)(r=arguments[o])&&(n=e(r))&&(a&&(a+=" "),a+=n);return a}return dt.exports=t,dt.exports.clsx=t,dt.exports}var ne={},Te={},_n;function Dt(){if(_n)return Te;_n=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.dontSetMe=o,Te.findInArray=e,Te.int=n,Te.isFunction=t,Te.isNum=r;function e(a,i){for(let u=0,l=a.length;u<l;u++)if(i.apply(i,[a[u],u,a]))return a[u]}function t(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Function]"}function r(a){return typeof a=="number"&&!isNaN(a)}function n(a){return parseInt(a,10)}function o(a,i,u){if(a[i])return new Error(`Invalid prop ${i} passed to ${u} - do not set this, set it on the child.`)}return Te}var Re={},jn;function Rs(){if(jn)return Re;jn=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.browserPrefixToKey=r,Re.browserPrefixToStyle=n,Re.default=void 0,Re.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var u,l;let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const i=(l=(u=window.document)==null?void 0:u.documentElement)==null?void 0:l.style;if(!i||a in i)return"";for(let c=0;c<e.length;c++)if(r(a,e[c])in i)return e[c];return""}function r(a,i){return i?`${i}${o(a)}`:a}function n(a,i){return i?`-${i.toLowerCase()}-${a}`:a}function o(a){let i="",u=!0;for(let l=0;l<a.length;l++)u?(i+=a[l].toUpperCase(),u=!1):a[l]==="-"?u=!0:i+=a[l];return i}return Re.default=t(),Re}var An;function Ar(){if(An)return ne;An=1,Object.defineProperty(ne,"__esModule",{value:!0}),ne.addClassName=s,ne.addEvent=i,ne.addUserSelectStyles=f,ne.createCSSTransform=E,ne.createSVGTransform=w,ne.getTouch=S,ne.getTouchIdentifier=h,ne.getTranslation=x,ne.innerHeight=g,ne.innerWidth=d,ne.matchesSelector=o,ne.matchesSelectorAndParentsTo=a,ne.offsetXYFromParent=T,ne.outerHeight=l,ne.outerWidth=c,ne.removeClassName=y,ne.removeEvent=u,ne.scheduleRemoveUserSelectStyles=m;var e=Dt(),t=r(Rs());function r(p,R){if(typeof WeakMap=="function")var _=new WeakMap,A=new WeakMap;return(r=function(j,I){if(!I&&j&&j.__esModule)return j;var N,z,q={__proto__:null,default:j};if(j===null||typeof j!="object"&&typeof j!="function")return q;if(N=I?A:_){if(N.has(j))return N.get(j);N.set(j,q)}for(const W in j)W!=="default"&&{}.hasOwnProperty.call(j,W)&&((z=(N=Object.defineProperty)&&Object.getOwnPropertyDescriptor(j,W))&&(z.get||z.set)?N(q,W,z):q[W]=j[W]);return q})(p,R)}let n="";function o(p,R){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(_){return(0,e.isFunction)(p[_])})),(0,e.isFunction)(p[n])?p[n](R):!1}function a(p,R,_){let A=p;do{if(o(A,R))return!0;if(A===_)return!1;A=A.parentNode}while(A);return!1}function i(p,R,_,A){if(!p)return;const j={capture:!0,...A};p.addEventListener?p.addEventListener(R,_,j):p.attachEvent?p.attachEvent("on"+R,_):p["on"+R]=_}function u(p,R,_,A){if(!p)return;const j={capture:!0,...A};p.removeEventListener?p.removeEventListener(R,_,j):p.detachEvent?p.detachEvent("on"+R,_):p["on"+R]=null}function l(p){let R=p.clientHeight;const _=p.ownerDocument.defaultView.getComputedStyle(p);return R+=(0,e.int)(_.borderTopWidth),R+=(0,e.int)(_.borderBottomWidth),R}function c(p){let R=p.clientWidth;const _=p.ownerDocument.defaultView.getComputedStyle(p);return R+=(0,e.int)(_.borderLeftWidth),R+=(0,e.int)(_.borderRightWidth),R}function g(p){let R=p.clientHeight;const _=p.ownerDocument.defaultView.getComputedStyle(p);return R-=(0,e.int)(_.paddingTop),R-=(0,e.int)(_.paddingBottom),R}function d(p){let R=p.clientWidth;const _=p.ownerDocument.defaultView.getComputedStyle(p);return R-=(0,e.int)(_.paddingLeft),R-=(0,e.int)(_.paddingRight),R}function T(p,R,_){const j=R===R.ownerDocument.body?{left:0,top:0}:R.getBoundingClientRect(),I=(p.clientX+R.scrollLeft-j.left)/_,N=(p.clientY+R.scrollTop-j.top)/_;return{x:I,y:N}}function E(p,R){const _=x(p,R,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:_}}function w(p,R){return x(p,R,"")}function x(p,R,_){let{x:A,y:j}=p,I=`translate(${A}${_},${j}${_})`;if(R){const N=`${typeof R.x=="string"?R.x:R.x+_}`,z=`${typeof R.y=="string"?R.y:R.y+_}`;I=`translate(${N}, ${z})`+I}return I}function S(p,R){return p.targetTouches&&(0,e.findInArray)(p.targetTouches,_=>R===_.identifier)||p.changedTouches&&(0,e.findInArray)(p.changedTouches,_=>R===_.identifier)}function h(p){if(p.targetTouches&&p.targetTouches[0])return p.targetTouches[0].identifier;if(p.changedTouches&&p.changedTouches[0])return p.changedTouches[0].identifier}function f(p){if(!p)return;let R=p.getElementById("react-draggable-style-el");R||(R=p.createElement("style"),R.type="text/css",R.id="react-draggable-style-el",R.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
259
- `,R.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
260
- `,p.getElementsByTagName("head")[0].appendChild(R)),p.body&&s(p.body,"react-draggable-transparent-selection")}function m(p){window.requestAnimationFrame?window.requestAnimationFrame(()=>{v(p)}):v(p)}function v(p){if(p)try{if(p.body&&y(p.body,"react-draggable-transparent-selection"),p.selection)p.selection.empty();else{const R=(p.defaultView||window).getSelection();R&&R.type!=="Caret"&&R.removeAllRanges()}}catch{}}function s(p,R){p.classList?p.classList.add(R):p.className.match(new RegExp(`(?:^|\\s)${R}(?!\\S)`))||(p.className+=` ${R}`)}function y(p,R){p.classList?p.classList.remove(R):p.className=p.className.replace(new RegExp(`(?:^|\\s)${R}(?!\\S)`,"g"),"")}return ne}var ve={},Dn;function xa(){if(Dn)return ve;Dn=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.canDragX=o,ve.canDragY=a,ve.createCoreData=u,ve.createDraggableData=l,ve.getBoundPosition=r,ve.getControlPosition=i,ve.snapToGrid=n;var e=Dt(),t=Ar();function r(d,T,E){if(!d.props.bounds)return[T,E];let{bounds:w}=d.props;w=typeof w=="string"?w:c(w);const x=g(d);if(typeof w=="string"){const{ownerDocument:S}=x,h=S.defaultView;let f;if(w==="parent"?f=x.parentNode:f=x.getRootNode().querySelector(w),!(f instanceof h.HTMLElement))throw new Error('Bounds selector "'+w+'" could not find an element.');const m=f,v=h.getComputedStyle(x),s=h.getComputedStyle(m);w={left:-x.offsetLeft+(0,e.int)(s.paddingLeft)+(0,e.int)(v.marginLeft),top:-x.offsetTop+(0,e.int)(s.paddingTop)+(0,e.int)(v.marginTop),right:(0,t.innerWidth)(m)-(0,t.outerWidth)(x)-x.offsetLeft+(0,e.int)(s.paddingRight)-(0,e.int)(v.marginRight),bottom:(0,t.innerHeight)(m)-(0,t.outerHeight)(x)-x.offsetTop+(0,e.int)(s.paddingBottom)-(0,e.int)(v.marginBottom)}}return(0,e.isNum)(w.right)&&(T=Math.min(T,w.right)),(0,e.isNum)(w.bottom)&&(E=Math.min(E,w.bottom)),(0,e.isNum)(w.left)&&(T=Math.max(T,w.left)),(0,e.isNum)(w.top)&&(E=Math.max(E,w.top)),[T,E]}function n(d,T,E){const w=Math.round(T/d[0])*d[0],x=Math.round(E/d[1])*d[1];return[w,x]}function o(d){return d.props.axis==="both"||d.props.axis==="x"}function a(d){return d.props.axis==="both"||d.props.axis==="y"}function i(d,T,E){const w=typeof T=="number"?(0,t.getTouch)(d,T):null;if(typeof T=="number"&&!w)return null;const x=g(E),S=E.props.offsetParent||x.offsetParent||x.ownerDocument.body;return(0,t.offsetXYFromParent)(w||d,S,E.props.scale)}function u(d,T,E){const w=!(0,e.isNum)(d.lastX),x=g(d);return w?{node:x,deltaX:0,deltaY:0,lastX:T,lastY:E,x:T,y:E}:{node:x,deltaX:T-d.lastX,deltaY:E-d.lastY,lastX:d.lastX,lastY:d.lastY,x:T,y:E}}function l(d,T){const E=d.props.scale;return{node:T.node,x:d.state.x+T.deltaX/E,y:d.state.y+T.deltaY/E,deltaX:T.deltaX/E,deltaY:T.deltaY/E,lastX:d.state.x,lastY:d.state.y}}function c(d){return{left:d.left,top:d.top,right:d.right,bottom:d.bottom}}function g(d){const T=d.findDOMNode();if(!T)throw new Error("<DraggableCore>: Unmounted during event!");return T}return ve}var Xe={},pt={},Nn;function Sa(){if(Nn)return pt;Nn=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.default=e;function e(){}return pt}var Mn;function Os(){if(Mn)return Xe;Mn=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.default=void 0;var e=l(C),t=u(at()),r=u(De),n=Ar(),o=xa(),a=Dt(),i=u(Sa());function u(x){return x&&x.__esModule?x:{default:x}}function l(x,S){if(typeof WeakMap=="function")var h=new WeakMap,f=new WeakMap;return(l=function(m,v){if(!v&&m&&m.__esModule)return m;var s,y,p={__proto__:null,default:m};if(m===null||typeof m!="object"&&typeof m!="function")return p;if(s=v?f:h){if(s.has(m))return s.get(m);s.set(m,p)}for(const R in m)R!=="default"&&{}.hasOwnProperty.call(m,R)&&((y=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(m,R))&&(y.get||y.set)?s(p,R,y):p[R]=m[R]);return p})(x,S)}function c(x,S,h){return(S=g(S))in x?Object.defineProperty(x,S,{value:h,enumerable:!0,configurable:!0,writable:!0}):x[S]=h,x}function g(x){var S=d(x,"string");return typeof S=="symbol"?S:S+""}function d(x,S){if(typeof x!="object"||!x)return x;var h=x[Symbol.toPrimitive];if(h!==void 0){var f=h.call(x,S);if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(x)}const T={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let E=T.mouse,w=class extends e.Component{constructor(){super(...arguments),c(this,"dragging",!1),c(this,"lastX",NaN),c(this,"lastY",NaN),c(this,"touchIdentifier",null),c(this,"mounted",!1),c(this,"handleDragStart",S=>{if(this.props.onMouseDown(S),!this.props.allowAnyClick&&typeof S.button=="number"&&S.button!==0)return!1;const h=this.findDOMNode();if(!h||!h.ownerDocument||!h.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:f}=h;if(this.props.disabled||!(S.target instanceof f.defaultView.Node)||this.props.handle&&!(0,n.matchesSelectorAndParentsTo)(S.target,this.props.handle,h)||this.props.cancel&&(0,n.matchesSelectorAndParentsTo)(S.target,this.props.cancel,h))return;S.type==="touchstart"&&!this.props.allowMobileScroll&&S.preventDefault();const m=(0,n.getTouchIdentifier)(S);this.touchIdentifier=m;const v=(0,o.getControlPosition)(S,m,this);if(v==null)return;const{x:s,y}=v,p=(0,o.createCoreData)(this,s,y);(0,i.default)("DraggableCore: handleDragStart: %j",p),(0,i.default)("calling",this.props.onStart),!(this.props.onStart(S,p)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,n.addUserSelectStyles)(f),this.dragging=!0,this.lastX=s,this.lastY=y,(0,n.addEvent)(f,E.move,this.handleDrag),(0,n.addEvent)(f,E.stop,this.handleDragStop))}),c(this,"handleDrag",S=>{const h=(0,o.getControlPosition)(S,this.touchIdentifier,this);if(h==null)return;let{x:f,y:m}=h;if(Array.isArray(this.props.grid)){let y=f-this.lastX,p=m-this.lastY;if([y,p]=(0,o.snapToGrid)(this.props.grid,y,p),!y&&!p)return;f=this.lastX+y,m=this.lastY+p}const v=(0,o.createCoreData)(this,f,m);if((0,i.default)("DraggableCore: handleDrag: %j",v),this.props.onDrag(S,v)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const p=document.createEvent("MouseEvents");p.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(p)}return}this.lastX=f,this.lastY=m}),c(this,"handleDragStop",S=>{if(!this.dragging)return;const h=(0,o.getControlPosition)(S,this.touchIdentifier,this);if(h==null)return;let{x:f,y:m}=h;if(Array.isArray(this.props.grid)){let p=f-this.lastX||0,R=m-this.lastY||0;[p,R]=(0,o.snapToGrid)(this.props.grid,p,R),f=this.lastX+p,m=this.lastY+R}const v=(0,o.createCoreData)(this,f,m);if(this.props.onStop(S,v)===!1||this.mounted===!1)return!1;const y=this.findDOMNode();y&&this.props.enableUserSelectHack&&(0,n.scheduleRemoveUserSelectStyles)(y.ownerDocument),(0,i.default)("DraggableCore: handleDragStop: %j",v),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,y&&((0,i.default)("DraggableCore: Removing handlers"),(0,n.removeEvent)(y.ownerDocument,E.move,this.handleDrag),(0,n.removeEvent)(y.ownerDocument,E.stop,this.handleDragStop))}),c(this,"onMouseDown",S=>(E=T.mouse,this.handleDragStart(S))),c(this,"onMouseUp",S=>(E=T.mouse,this.handleDragStop(S))),c(this,"onTouchStart",S=>(E=T.touch,this.handleDragStart(S))),c(this,"onTouchEnd",S=>(E=T.touch,this.handleDragStop(S)))}componentDidMount(){this.mounted=!0;const S=this.findDOMNode();S&&(0,n.addEvent)(S,T.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const S=this.findDOMNode();if(S){const{ownerDocument:h}=S;(0,n.removeEvent)(h,T.mouse.move,this.handleDrag),(0,n.removeEvent)(h,T.touch.move,this.handleDrag),(0,n.removeEvent)(h,T.mouse.stop,this.handleDragStop),(0,n.removeEvent)(h,T.touch.stop,this.handleDragStop),(0,n.removeEvent)(S,T.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,n.scheduleRemoveUserSelectStyles)(h)}}findDOMNode(){var S,h,f;return(S=this.props)!=null&&S.nodeRef?(f=(h=this.props)==null?void 0:h.nodeRef)==null?void 0:f.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Xe.default=w,c(w,"displayName","DraggableCore"),c(w,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(x,S){if(x[S]&&x[S].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),c(w,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Xe}var kn;function Ps(){return kn||(kn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),e.default=void 0;var t=d(C),r=g(at()),n=g(De),o=Ts(),a=Ar(),i=xa(),u=Dt(),l=g(Os()),c=g(Sa());function g(h){return h&&h.__esModule?h:{default:h}}function d(h,f){if(typeof WeakMap=="function")var m=new WeakMap,v=new WeakMap;return(d=function(s,y){if(!y&&s&&s.__esModule)return s;var p,R,_={__proto__:null,default:s};if(s===null||typeof s!="object"&&typeof s!="function")return _;if(p=y?v:m){if(p.has(s))return p.get(s);p.set(s,_)}for(const A in s)A!=="default"&&{}.hasOwnProperty.call(s,A)&&((R=(p=Object.defineProperty)&&Object.getOwnPropertyDescriptor(s,A))&&(R.get||R.set)?p(_,A,R):_[A]=s[A]);return _})(h,f)}function T(){return T=Object.assign?Object.assign.bind():function(h){for(var f=1;f<arguments.length;f++){var m=arguments[f];for(var v in m)({}).hasOwnProperty.call(m,v)&&(h[v]=m[v])}return h},T.apply(null,arguments)}function E(h,f,m){return(f=w(f))in h?Object.defineProperty(h,f,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[f]=m,h}function w(h){var f=x(h,"string");return typeof f=="symbol"?f:f+""}function x(h,f){if(typeof h!="object"||!h)return h;var m=h[Symbol.toPrimitive];if(m!==void 0){var v=m.call(h,f);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(h)}class S extends t.Component{static getDerivedStateFromProps(f,m){let{position:v}=f,{prevPropsPosition:s}=m;return v&&(!s||v.x!==s.x||v.y!==s.y)?((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:v,prevPropsPosition:s}),{x:v.x,y:v.y,prevPropsPosition:{...v}}):null}constructor(f){super(f),E(this,"onDragStart",(m,v)=>{if((0,c.default)("Draggable: onDragStart: %j",v),this.props.onStart(m,(0,i.createDraggableData)(this,v))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),E(this,"onDrag",(m,v)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",v);const s=(0,i.createDraggableData)(this,v),y={x:s.x,y:s.y,slackX:0,slackY:0};if(this.props.bounds){const{x:R,y:_}=y;y.x+=this.state.slackX,y.y+=this.state.slackY;const[A,j]=(0,i.getBoundPosition)(this,y.x,y.y);y.x=A,y.y=j,y.slackX=this.state.slackX+(R-y.x),y.slackY=this.state.slackY+(_-y.y),s.x=y.x,s.y=y.y,s.deltaX=y.x-this.state.x,s.deltaY=y.y-this.state.y}if(this.props.onDrag(m,s)===!1)return!1;this.setState(y)}),E(this,"onDragStop",(m,v)=>{if(!this.state.dragging||this.props.onStop(m,(0,i.createDraggableData)(this,v))===!1)return!1;(0,c.default)("Draggable: onDragStop: %j",v);const y={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:R,y:_}=this.props.position;y.x=R,y.y=_}this.setState(y)}),this.state={dragging:!1,dragged:!1,x:f.position?f.position.x:f.defaultPosition.x,y:f.position?f.position.y:f.defaultPosition.y,prevPropsPosition:{...f.position},slackX:0,slackY:0,isElementSVG:!1},f.position&&!(f.onDrag||f.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var f,m;return((m=(f=this.props)==null?void 0:f.nodeRef)==null?void 0:m.current)??n.default.findDOMNode(this)}render(){const{axis:f,bounds:m,children:v,defaultPosition:s,defaultClassName:y,defaultClassNameDragging:p,defaultClassNameDragged:R,position:_,positionOffset:A,scale:j,...I}=this.props;let N={},z=null;const W=!!!_||this.state.dragging,H=_||s,re={x:(0,i.canDragX)(this)&&W?this.state.x:H.x,y:(0,i.canDragY)(this)&&W?this.state.y:H.y};this.state.isElementSVG?z=(0,a.createSVGTransform)(re,A):N=(0,a.createCSSTransform)(re,A);const ie=(0,o.clsx)(v.props.className||"",y,{[p]:this.state.dragging,[R]:this.state.dragged});return t.createElement(l.default,T({},I,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(v),{className:ie,style:{...v.props.style,...N},transform:z}))}}e.default=S,E(S,"displayName","Draggable"),E(S,"propTypes",{...l.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),E(S,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(ir)),ir}var In;function Ea(){if(In)return Ve.exports;In=1;const{default:e,DraggableCore:t}=Ps();return Ve.exports=e,Ve.exports.default=e,Ve.exports.DraggableCore=t,Ve.exports}var ht={},$n;function Cs(){if($n)return ht;$n=1,ht.__esModule=!0,ht.cloneElement=u;var e=t(C);function t(l){return l&&l.__esModule?l:{default:l}}function r(l,c){var g=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);c&&(d=d.filter(function(T){return Object.getOwnPropertyDescriptor(l,T).enumerable})),g.push.apply(g,d)}return g}function n(l){for(var c=1;c<arguments.length;c++){var g=arguments[c]!=null?arguments[c]:{};c%2?r(Object(g),!0).forEach(function(d){o(l,d,g[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(g)):r(Object(g)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(g,d))})}return l}function o(l,c,g){return c=a(c),c in l?Object.defineProperty(l,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):l[c]=g,l}function a(l){var c=i(l,"string");return typeof c=="symbol"?c:String(c)}function i(l,c){if(typeof l!="object"||l===null)return l;var g=l[Symbol.toPrimitive];if(g!==void 0){var d=g.call(l,c);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(l)}function u(l,c){return c.style&&l.props.style&&(c.style=n(n({},l.props.style),c.style)),c.className&&l.props.className&&(c.className=l.props.className+" "+c.className),e.default.cloneElement(l,c)}return ht}var Ge={},zn;function wa(){if(zn)return Ge;zn=1,Ge.__esModule=!0,Ge.resizableProps=void 0;var e=t(at());Ea();function t(n){return n&&n.__esModule?n:{default:n}}var r={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];var u=a[0];if(u.axis==="both"||u.axis==="y"){var l;return(l=e.default.number).isRequired.apply(l,a)}return e.default.number.apply(e.default,a)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];var u=a[0];if(u.axis==="both"||u.axis==="x"){var l;return(l=e.default.number).isRequired.apply(l,a)}return e.default.number.apply(e.default,a)}};return Ge.resizableProps=r,Ge}var Ln;function Ta(){if(Ln)return Be;Ln=1,Be.__esModule=!0,Be.default=void 0;var e=i(C),t=Ea(),r=Cs(),n=wa(),o=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function a(h){if(typeof WeakMap!="function")return null;var f=new WeakMap,m=new WeakMap;return(a=function(s){return s?m:f})(h)}function i(h,f){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var m=a(f);if(m&&m.has(h))return m.get(h);var v={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in h)if(y!=="default"&&Object.prototype.hasOwnProperty.call(h,y)){var p=s?Object.getOwnPropertyDescriptor(h,y):null;p&&(p.get||p.set)?Object.defineProperty(v,y,p):v[y]=h[y]}return v.default=h,m&&m.set(h,v),v}function u(){return u=Object.assign?Object.assign.bind():function(h){for(var f=1;f<arguments.length;f++){var m=arguments[f];for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(h[v]=m[v])}return h},u.apply(this,arguments)}function l(h,f){if(h==null)return{};var m={},v=Object.keys(h),s,y;for(y=0;y<v.length;y++)s=v[y],!(f.indexOf(s)>=0)&&(m[s]=h[s]);return m}function c(h,f){var m=Object.keys(h);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(h);f&&(v=v.filter(function(s){return Object.getOwnPropertyDescriptor(h,s).enumerable})),m.push.apply(m,v)}return m}function g(h){for(var f=1;f<arguments.length;f++){var m=arguments[f]!=null?arguments[f]:{};f%2?c(Object(m),!0).forEach(function(v){d(h,v,m[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(m)):c(Object(m)).forEach(function(v){Object.defineProperty(h,v,Object.getOwnPropertyDescriptor(m,v))})}return h}function d(h,f,m){return f=T(f),f in h?Object.defineProperty(h,f,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[f]=m,h}function T(h){var f=E(h,"string");return typeof f=="symbol"?f:String(f)}function E(h,f){if(typeof h!="object"||h===null)return h;var m=h[Symbol.toPrimitive];if(m!==void 0){var v=m.call(h,f);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(h)}function w(h,f){h.prototype=Object.create(f.prototype),h.prototype.constructor=h,x(h,f)}function x(h,f){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,s){return v.__proto__=s,v},x(h,f)}var S=function(h){w(f,h);function f(){for(var v,s=arguments.length,y=new Array(s),p=0;p<s;p++)y[p]=arguments[p];return v=h.call.apply(h,[this].concat(y))||this,v.handleRefs={},v.lastHandleRect=null,v.slack=null,v}var m=f.prototype;return m.componentWillUnmount=function(){this.resetData()},m.resetData=function(){this.lastHandleRect=this.slack=null},m.runConstraints=function(s,y){var p=this.props,R=p.minConstraints,_=p.maxConstraints,A=p.lockAspectRatio;if(!R&&!_&&!A)return[s,y];if(A){var j=this.props.width/this.props.height,I=s-this.props.width,N=y-this.props.height;Math.abs(I)>Math.abs(N*j)?y=s/j:s=y*j}var z=s,q=y,W=this.slack||[0,0],H=W[0],re=W[1];return s+=H,y+=re,R&&(s=Math.max(R[0],s),y=Math.max(R[1],y)),_&&(s=Math.min(_[0],s),y=Math.min(_[1],y)),this.slack=[H+(z-s),re+(q-y)],[s,y]},m.resizeHandler=function(s,y){var p=this;return function(R,_){var A=_.node,j=_.deltaX,I=_.deltaY;s==="onResizeStart"&&p.resetData();var N=(p.props.axis==="both"||p.props.axis==="x")&&y!=="n"&&y!=="s",z=(p.props.axis==="both"||p.props.axis==="y")&&y!=="e"&&y!=="w";if(!(!N&&!z)){var q=y[0],W=y[y.length-1],H=A.getBoundingClientRect();if(p.lastHandleRect!=null){if(W==="w"){var re=H.left-p.lastHandleRect.left;j+=re}if(q==="n"){var ie=H.top-p.lastHandleRect.top;I+=ie}}p.lastHandleRect=H,W==="w"&&(j=-j),q==="n"&&(I=-I);var b=p.props.width+(N?j/p.props.transformScale:0),P=p.props.height+(z?I/p.props.transformScale:0),M=p.runConstraints(b,P);b=M[0],P=M[1];var k=b!==p.props.width||P!==p.props.height,$=typeof p.props[s]=="function"?p.props[s]:null,F=s==="onResize"&&!k;$&&!F&&(R.persist==null||R.persist(),$(R,{node:A,size:{width:b,height:P},handle:y})),s==="onResizeStop"&&p.resetData()}}},m.renderResizeHandle=function(s,y){var p=this.props.handle;if(!p)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+s,ref:y});if(typeof p=="function")return p(s,y);var R=typeof p.type=="string",_=g({ref:y},R?{}:{handleAxis:s});return e.cloneElement(p,_)},m.render=function(){var s=this,y=this.props,p=y.children,R=y.className,_=y.draggableOpts;y.width,y.height,y.handle,y.handleSize,y.lockAspectRatio,y.axis,y.minConstraints,y.maxConstraints,y.onResize,y.onResizeStop,y.onResizeStart;var A=y.resizeHandles;y.transformScale;var j=l(y,o);return(0,r.cloneElement)(p,g(g({},j),{},{className:(R?R+" ":"")+"react-resizable",children:[].concat(p.props.children,A.map(function(I){var N,z=(N=s.handleRefs[I])!=null?N:s.handleRefs[I]=e.createRef();return e.createElement(t.DraggableCore,u({},_,{nodeRef:z,key:"resizableHandle-"+I,onStop:s.resizeHandler("onResizeStop",I),onStart:s.resizeHandler("onResizeStart",I),onDrag:s.resizeHandler("onResize",I)}),s.renderResizeHandle(I,z))}))}))},f}(e.Component);return Be.default=S,S.propTypes=n.resizableProps,S.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},Be}var Ke={},Fn;function _s(){if(Fn)return Ke;Fn=1,Ke.__esModule=!0,Ke.default=void 0;var e=u(C),t=a(at()),r=a(Ta()),n=wa(),o=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function a(f){return f&&f.__esModule?f:{default:f}}function i(f){if(typeof WeakMap!="function")return null;var m=new WeakMap,v=new WeakMap;return(i=function(y){return y?v:m})(f)}function u(f,m){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var v=i(m);if(v&&v.has(f))return v.get(f);var s={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in f)if(p!=="default"&&Object.prototype.hasOwnProperty.call(f,p)){var R=y?Object.getOwnPropertyDescriptor(f,p):null;R&&(R.get||R.set)?Object.defineProperty(s,p,R):s[p]=f[p]}return s.default=f,v&&v.set(f,s),s}function l(){return l=Object.assign?Object.assign.bind():function(f){for(var m=1;m<arguments.length;m++){var v=arguments[m];for(var s in v)Object.prototype.hasOwnProperty.call(v,s)&&(f[s]=v[s])}return f},l.apply(this,arguments)}function c(f,m){var v=Object.keys(f);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(f);m&&(s=s.filter(function(y){return Object.getOwnPropertyDescriptor(f,y).enumerable})),v.push.apply(v,s)}return v}function g(f){for(var m=1;m<arguments.length;m++){var v=arguments[m]!=null?arguments[m]:{};m%2?c(Object(v),!0).forEach(function(s){d(f,s,v[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(v)):c(Object(v)).forEach(function(s){Object.defineProperty(f,s,Object.getOwnPropertyDescriptor(v,s))})}return f}function d(f,m,v){return m=T(m),m in f?Object.defineProperty(f,m,{value:v,enumerable:!0,configurable:!0,writable:!0}):f[m]=v,f}function T(f){var m=E(f,"string");return typeof m=="symbol"?m:String(m)}function E(f,m){if(typeof f!="object"||f===null)return f;var v=f[Symbol.toPrimitive];if(v!==void 0){var s=v.call(f,m);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(f)}function w(f,m){if(f==null)return{};var v={},s=Object.keys(f),y,p;for(p=0;p<s.length;p++)y=s[p],!(m.indexOf(y)>=0)&&(v[y]=f[y]);return v}function x(f,m){f.prototype=Object.create(m.prototype),f.prototype.constructor=f,S(f,m)}function S(f,m){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,y){return s.__proto__=y,s},S(f,m)}var h=function(f){x(m,f);function m(){for(var s,y=arguments.length,p=new Array(y),R=0;R<y;R++)p[R]=arguments[R];return s=f.call.apply(f,[this].concat(p))||this,s.state={width:s.props.width,height:s.props.height,propsWidth:s.props.width,propsHeight:s.props.height},s.onResize=function(_,A){var j=A.size;s.props.onResize?(_.persist==null||_.persist(),s.setState(j,function(){return s.props.onResize&&s.props.onResize(_,A)})):s.setState(j)},s}m.getDerivedStateFromProps=function(y,p){return p.propsWidth!==y.width||p.propsHeight!==y.height?{width:y.width,height:y.height,propsWidth:y.width,propsHeight:y.height}:null};var v=m.prototype;return v.render=function(){var y=this.props,p=y.handle,R=y.handleSize;y.onResize;var _=y.onResizeStart,A=y.onResizeStop,j=y.draggableOpts,I=y.minConstraints,N=y.maxConstraints,z=y.lockAspectRatio,q=y.axis;y.width,y.height;var W=y.resizeHandles,H=y.style,re=y.transformScale,ie=w(y,o);return e.createElement(r.default,{axis:q,draggableOpts:j,handle:p,handleSize:R,height:this.state.height,lockAspectRatio:z,maxConstraints:N,minConstraints:I,onResizeStart:_,onResize:this.onResize,onResizeStop:A,resizeHandles:W,transformScale:re,width:this.state.width},e.createElement("div",l({},ie,{style:g(g({},H),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},m}(e.Component);return Ke.default=h,h.propTypes=g(g({},n.resizableProps),{},{children:t.default.element}),Ke}var qn;function js(){return qn||(qn=1,He.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},He.exports.Resizable=Ta().default,He.exports.ResizableBox=_s().default),He.exports}var As=js();const Ds=e=>e?Array.isArray(e)?e.join("."):e:"",Ns=oe.span`
258
+ `;function hf(e){const t=I.useRef(null),{pagination:r,rowSelection:n={selectedRowKeys:[],onChange:()=>{}},dataSource:a=[],selectionPopover:o=!1}=e,i=({target:{checked:m}})=>{const{rowKey:d="id"}=e;if(!(!n||!n.onChange))if(m){const{getCheckboxProps:b}=n;let y=a;b&&(y=a.filter(E=>!b(E).disabled));const w=typeof d=="function"?d:E=>E[d];n.onChange(Array.from(y.map(w)),Array.from(y),{type:"none"})}else n.onChange([],[],{type:"none"})},s=I.useMemo(()=>{const{getCheckboxProps:m}=n;let d=a;return m&&(d=a.filter(b=>!m(b).disabled)),d.length},[a,n]),l=I.useMemo(()=>{const m=n.selectedRowKeys??[];return m.length>0&&m.length<s},[n.selectedRowKeys,s]),u=I.useMemo(()=>{const m=n.selectedRowKeys??[];return m.length>0&&m.length===s},[n.selectedRowKeys,s]);return z.jsxs(z.Fragment,{children:[z.jsx(yu,{styles:pf}),z.jsxs(lf,{children:[z.jsx(an,{in:!!(e.rowSelection&&e.selectionPopover&&(u||l)),nodeRef:t,classNames:df,unmountOnExit:!0,timeout:300,children:()=>{var m;return z.jsxs(cf,{ref:t,justify:"space-between",children:[z.jsx(Ee.Col,{style:{display:"flex",alignItems:"center"},children:z.jsx(Ee.Checkbox,{checked:u,indeterminate:l,onChange:i,children:z.jsx($t,{id:"component.table.selected",defaultMessage:"已选{length}条",values:{length:((m=n.selectedRowKeys)==null?void 0:m.length)??0}})})}),z.jsxs(Ee.Col,{style:{display:"flex",alignItems:"center"},children:[o,z.jsx(ff,{onClick:()=>{i({target:{checked:!1}})},children:z.jsx(qt.CloseOutlined,{})})]})]})}}),r&&z.jsx(uf,{children:r.showTotal?r.showTotal(r.total??0,[0,0]):null})]})]})}var rr={exports:{}},nr={},ar={exports:{}},Xn={},Fr={exports:{}},ri;function mf(){if(ri)return Fr.exports;ri=1;function e(r){var n,a,o="";if(typeof r=="string"||typeof r=="number")o+=r;else if(typeof r=="object")if(Array.isArray(r)){var i=r.length;for(n=0;n<i;n++)r[n]&&(a=e(r[n]))&&(o&&(o+=" "),o+=a)}else for(a in r)r[a]&&(o&&(o+=" "),o+=a);return o}function t(){for(var r,n,a=0,o="",i=arguments.length;a<i;a++)(r=arguments[a])&&(n=e(r))&&(o&&(o+=" "),o+=n);return o}return Fr.exports=t,Fr.exports.clsx=t,Fr.exports}var Te={},ut={},ni;function dn(){if(ni)return ut;ni=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.dontSetMe=a,ut.findInArray=e,ut.int=n,ut.isFunction=t,ut.isNum=r;function e(o,i){for(let s=0,l=o.length;s<l;s++)if(i.apply(i,[o[s],s,o]))return o[s]}function t(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Function]"}function r(o){return typeof o=="number"&&!isNaN(o)}function n(o){return parseInt(o,10)}function a(o,i,s){if(o[i])return new Error(`Invalid prop ${i} passed to ${s} - do not set this, set it on the child.`)}return ut}var ct={},ai;function gf(){if(ai)return ct;ai=1,Object.defineProperty(ct,"__esModule",{value:!0}),ct.browserPrefixToKey=r,ct.browserPrefixToStyle=n,ct.default=void 0,ct.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var s,l;let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const i=(l=(s=window.document)==null?void 0:s.documentElement)==null?void 0:l.style;if(!i||o in i)return"";for(let u=0;u<e.length;u++)if(r(o,e[u])in i)return e[u];return""}function r(o,i){return i?`${i}${a(o)}`:o}function n(o,i){return i?`-${i.toLowerCase()}-${o}`:o}function a(o){let i="",s=!0;for(let l=0;l<o.length;l++)s?(i+=o[l].toUpperCase(),s=!1):o[l]==="-"?s=!0:i+=o[l];return i}return ct.default=t(),ct}var oi;function Ma(){if(oi)return Te;oi=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.addClassName=p,Te.addEvent=i,Te.addUserSelectStyles=c,Te.createCSSTransform=y,Te.createSVGTransform=w,Te.getTouch=S,Te.getTouchIdentifier=h,Te.getTranslation=E,Te.innerHeight=m,Te.innerWidth=d,Te.matchesSelector=a,Te.matchesSelectorAndParentsTo=o,Te.offsetXYFromParent=b,Te.outerHeight=l,Te.outerWidth=u,Te.removeClassName=x,Te.removeEvent=s,Te.scheduleRemoveUserSelectStyles=g;var e=dn(),t=r(gf());function r(f,O){if(typeof WeakMap=="function")var j=new WeakMap,M=new WeakMap;return(r=function(L,q){if(!q&&L&&L.__esModule)return L;var N,Y,X={__proto__:null,default:L};if(L===null||typeof L!="object"&&typeof L!="function")return X;if(N=q?M:j){if(N.has(L))return N.get(L);N.set(L,X)}for(const te in L)te!=="default"&&{}.hasOwnProperty.call(L,te)&&((Y=(N=Object.defineProperty)&&Object.getOwnPropertyDescriptor(L,te))&&(Y.get||Y.set)?N(X,te,Y):X[te]=L[te]);return X})(f,O)}let n="";function a(f,O){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(j){return(0,e.isFunction)(f[j])})),(0,e.isFunction)(f[n])?f[n](O):!1}function o(f,O,j){let M=f;do{if(a(M,O))return!0;if(M===j)return!1;M=M.parentNode}while(M);return!1}function i(f,O,j,M){if(!f)return;const L={capture:!0,...M};f.addEventListener?f.addEventListener(O,j,L):f.attachEvent?f.attachEvent("on"+O,j):f["on"+O]=j}function s(f,O,j,M){if(!f)return;const L={capture:!0,...M};f.removeEventListener?f.removeEventListener(O,j,L):f.detachEvent?f.detachEvent("on"+O,j):f["on"+O]=null}function l(f){let O=f.clientHeight;const j=f.ownerDocument.defaultView.getComputedStyle(f);return O+=(0,e.int)(j.borderTopWidth),O+=(0,e.int)(j.borderBottomWidth),O}function u(f){let O=f.clientWidth;const j=f.ownerDocument.defaultView.getComputedStyle(f);return O+=(0,e.int)(j.borderLeftWidth),O+=(0,e.int)(j.borderRightWidth),O}function m(f){let O=f.clientHeight;const j=f.ownerDocument.defaultView.getComputedStyle(f);return O-=(0,e.int)(j.paddingTop),O-=(0,e.int)(j.paddingBottom),O}function d(f){let O=f.clientWidth;const j=f.ownerDocument.defaultView.getComputedStyle(f);return O-=(0,e.int)(j.paddingLeft),O-=(0,e.int)(j.paddingRight),O}function b(f,O,j){const L=O===O.ownerDocument.body?{left:0,top:0}:O.getBoundingClientRect(),q=(f.clientX+O.scrollLeft-L.left)/j,N=(f.clientY+O.scrollTop-L.top)/j;return{x:q,y:N}}function y(f,O){const j=E(f,O,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:j}}function w(f,O){return E(f,O,"")}function E(f,O,j){let{x:M,y:L}=f,q=`translate(${M}${j},${L}${j})`;if(O){const N=`${typeof O.x=="string"?O.x:O.x+j}`,Y=`${typeof O.y=="string"?O.y:O.y+j}`;q=`translate(${N}, ${Y})`+q}return q}function S(f,O){return f.targetTouches&&(0,e.findInArray)(f.targetTouches,j=>O===j.identifier)||f.changedTouches&&(0,e.findInArray)(f.changedTouches,j=>O===j.identifier)}function h(f){if(f.targetTouches&&f.targetTouches[0])return f.targetTouches[0].identifier;if(f.changedTouches&&f.changedTouches[0])return f.changedTouches[0].identifier}function c(f){if(!f)return;let O=f.getElementById("react-draggable-style-el");O||(O=f.createElement("style"),O.type="text/css",O.id="react-draggable-style-el",O.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
259
+ `,O.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
260
+ `,f.getElementsByTagName("head")[0].appendChild(O)),f.body&&p(f.body,"react-draggable-transparent-selection")}function g(f){window.requestAnimationFrame?window.requestAnimationFrame(()=>{v(f)}):v(f)}function v(f){if(f)try{if(f.body&&x(f.body,"react-draggable-transparent-selection"),f.selection)f.selection.empty();else{const O=(f.defaultView||window).getSelection();O&&O.type!=="Caret"&&O.removeAllRanges()}}catch{}}function p(f,O){f.classList?f.classList.add(O):f.className.match(new RegExp(`(?:^|\\s)${O}(?!\\S)`))||(f.className+=` ${O}`)}function x(f,O){f.classList?f.classList.remove(O):f.className=f.className.replace(new RegExp(`(?:^|\\s)${O}(?!\\S)`,"g"),"")}return Te}var Je={},ii;function Es(){if(ii)return Je;ii=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.canDragX=a,Je.canDragY=o,Je.createCoreData=s,Je.createDraggableData=l,Je.getBoundPosition=r,Je.getControlPosition=i,Je.snapToGrid=n;var e=dn(),t=Ma();function r(d,b,y){if(!d.props.bounds)return[b,y];let{bounds:w}=d.props;w=typeof w=="string"?w:u(w);const E=m(d);if(typeof w=="string"){const{ownerDocument:S}=E,h=S.defaultView;let c;if(w==="parent"?c=E.parentNode:c=E.getRootNode().querySelector(w),!(c instanceof h.HTMLElement))throw new Error('Bounds selector "'+w+'" could not find an element.');const g=c,v=h.getComputedStyle(E),p=h.getComputedStyle(g);w={left:-E.offsetLeft+(0,e.int)(p.paddingLeft)+(0,e.int)(v.marginLeft),top:-E.offsetTop+(0,e.int)(p.paddingTop)+(0,e.int)(v.marginTop),right:(0,t.innerWidth)(g)-(0,t.outerWidth)(E)-E.offsetLeft+(0,e.int)(p.paddingRight)-(0,e.int)(v.marginRight),bottom:(0,t.innerHeight)(g)-(0,t.outerHeight)(E)-E.offsetTop+(0,e.int)(p.paddingBottom)-(0,e.int)(v.marginBottom)}}return(0,e.isNum)(w.right)&&(b=Math.min(b,w.right)),(0,e.isNum)(w.bottom)&&(y=Math.min(y,w.bottom)),(0,e.isNum)(w.left)&&(b=Math.max(b,w.left)),(0,e.isNum)(w.top)&&(y=Math.max(y,w.top)),[b,y]}function n(d,b,y){const w=Math.round(b/d[0])*d[0],E=Math.round(y/d[1])*d[1];return[w,E]}function a(d){return d.props.axis==="both"||d.props.axis==="x"}function o(d){return d.props.axis==="both"||d.props.axis==="y"}function i(d,b,y){const w=typeof b=="number"?(0,t.getTouch)(d,b):null;if(typeof b=="number"&&!w)return null;const E=m(y),S=y.props.offsetParent||E.offsetParent||E.ownerDocument.body;return(0,t.offsetXYFromParent)(w||d,S,y.props.scale)}function s(d,b,y){const w=!(0,e.isNum)(d.lastX),E=m(d);return w?{node:E,deltaX:0,deltaY:0,lastX:b,lastY:y,x:b,y}:{node:E,deltaX:b-d.lastX,deltaY:y-d.lastY,lastX:d.lastX,lastY:d.lastY,x:b,y}}function l(d,b){const y=d.props.scale;return{node:b.node,x:d.state.x+b.deltaX/y,y:d.state.y+b.deltaY/y,deltaX:b.deltaX/y,deltaY:b.deltaY/y,lastX:d.state.x,lastY:d.state.y}}function u(d){return{left:d.left,top:d.top,right:d.right,bottom:d.bottom}}function m(d){const b=d.findDOMNode();if(!b)throw new Error("<DraggableCore>: Unmounted during event!");return b}return Je}var or={},Lr={},si;function xs(){if(si)return Lr;si=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.default=e;function e(){}return Lr}var li;function vf(){if(li)return or;li=1,Object.defineProperty(or,"__esModule",{value:!0}),or.default=void 0;var e=l(I),t=s(Er()),r=s(Lt),n=Ma(),a=Es(),o=dn(),i=s(xs());function s(E){return E&&E.__esModule?E:{default:E}}function l(E,S){if(typeof WeakMap=="function")var h=new WeakMap,c=new WeakMap;return(l=function(g,v){if(!v&&g&&g.__esModule)return g;var p,x,f={__proto__:null,default:g};if(g===null||typeof g!="object"&&typeof g!="function")return f;if(p=v?c:h){if(p.has(g))return p.get(g);p.set(g,f)}for(const O in g)O!=="default"&&{}.hasOwnProperty.call(g,O)&&((x=(p=Object.defineProperty)&&Object.getOwnPropertyDescriptor(g,O))&&(x.get||x.set)?p(f,O,x):f[O]=g[O]);return f})(E,S)}function u(E,S,h){return(S=m(S))in E?Object.defineProperty(E,S,{value:h,enumerable:!0,configurable:!0,writable:!0}):E[S]=h,E}function m(E){var S=d(E,"string");return typeof S=="symbol"?S:S+""}function d(E,S){if(typeof E!="object"||!E)return E;var h=E[Symbol.toPrimitive];if(h!==void 0){var c=h.call(E,S);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(E)}const b={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let y=b.mouse,w=class extends e.Component{constructor(){super(...arguments),u(this,"dragging",!1),u(this,"lastX",NaN),u(this,"lastY",NaN),u(this,"touchIdentifier",null),u(this,"mounted",!1),u(this,"handleDragStart",S=>{if(this.props.onMouseDown(S),!this.props.allowAnyClick&&typeof S.button=="number"&&S.button!==0)return!1;const h=this.findDOMNode();if(!h||!h.ownerDocument||!h.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:c}=h;if(this.props.disabled||!(S.target instanceof c.defaultView.Node)||this.props.handle&&!(0,n.matchesSelectorAndParentsTo)(S.target,this.props.handle,h)||this.props.cancel&&(0,n.matchesSelectorAndParentsTo)(S.target,this.props.cancel,h))return;S.type==="touchstart"&&!this.props.allowMobileScroll&&S.preventDefault();const g=(0,n.getTouchIdentifier)(S);this.touchIdentifier=g;const v=(0,a.getControlPosition)(S,g,this);if(v==null)return;const{x:p,y:x}=v,f=(0,a.createCoreData)(this,p,x);(0,i.default)("DraggableCore: handleDragStart: %j",f),(0,i.default)("calling",this.props.onStart),!(this.props.onStart(S,f)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,n.addUserSelectStyles)(c),this.dragging=!0,this.lastX=p,this.lastY=x,(0,n.addEvent)(c,y.move,this.handleDrag),(0,n.addEvent)(c,y.stop,this.handleDragStop))}),u(this,"handleDrag",S=>{const h=(0,a.getControlPosition)(S,this.touchIdentifier,this);if(h==null)return;let{x:c,y:g}=h;if(Array.isArray(this.props.grid)){let x=c-this.lastX,f=g-this.lastY;if([x,f]=(0,a.snapToGrid)(this.props.grid,x,f),!x&&!f)return;c=this.lastX+x,g=this.lastY+f}const v=(0,a.createCoreData)(this,c,g);if((0,i.default)("DraggableCore: handleDrag: %j",v),this.props.onDrag(S,v)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const f=document.createEvent("MouseEvents");f.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(f)}return}this.lastX=c,this.lastY=g}),u(this,"handleDragStop",S=>{if(!this.dragging)return;const h=(0,a.getControlPosition)(S,this.touchIdentifier,this);if(h==null)return;let{x:c,y:g}=h;if(Array.isArray(this.props.grid)){let f=c-this.lastX||0,O=g-this.lastY||0;[f,O]=(0,a.snapToGrid)(this.props.grid,f,O),c=this.lastX+f,g=this.lastY+O}const v=(0,a.createCoreData)(this,c,g);if(this.props.onStop(S,v)===!1||this.mounted===!1)return!1;const x=this.findDOMNode();x&&this.props.enableUserSelectHack&&(0,n.scheduleRemoveUserSelectStyles)(x.ownerDocument),(0,i.default)("DraggableCore: handleDragStop: %j",v),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,x&&((0,i.default)("DraggableCore: Removing handlers"),(0,n.removeEvent)(x.ownerDocument,y.move,this.handleDrag),(0,n.removeEvent)(x.ownerDocument,y.stop,this.handleDragStop))}),u(this,"onMouseDown",S=>(y=b.mouse,this.handleDragStart(S))),u(this,"onMouseUp",S=>(y=b.mouse,this.handleDragStop(S))),u(this,"onTouchStart",S=>(y=b.touch,this.handleDragStart(S))),u(this,"onTouchEnd",S=>(y=b.touch,this.handleDragStop(S)))}componentDidMount(){this.mounted=!0;const S=this.findDOMNode();S&&(0,n.addEvent)(S,b.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const S=this.findDOMNode();if(S){const{ownerDocument:h}=S;(0,n.removeEvent)(h,b.mouse.move,this.handleDrag),(0,n.removeEvent)(h,b.touch.move,this.handleDrag),(0,n.removeEvent)(h,b.mouse.stop,this.handleDragStop),(0,n.removeEvent)(h,b.touch.stop,this.handleDragStop),(0,n.removeEvent)(S,b.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,n.scheduleRemoveUserSelectStyles)(h)}}findDOMNode(){var S,h,c;return(S=this.props)!=null&&S.nodeRef?(c=(h=this.props)==null?void 0:h.nodeRef)==null?void 0:c.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return or.default=w,u(w,"displayName","DraggableCore"),u(w,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(E,S){if(E[S]&&E[S].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:o.dontSetMe,style:o.dontSetMe,transform:o.dontSetMe}),u(w,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),or}var ui;function yf(){return ui||(ui=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),e.default=void 0;var t=d(I),r=m(Er()),n=m(Lt),a=mf(),o=Ma(),i=Es(),s=dn(),l=m(vf()),u=m(xs());function m(h){return h&&h.__esModule?h:{default:h}}function d(h,c){if(typeof WeakMap=="function")var g=new WeakMap,v=new WeakMap;return(d=function(p,x){if(!x&&p&&p.__esModule)return p;var f,O,j={__proto__:null,default:p};if(p===null||typeof p!="object"&&typeof p!="function")return j;if(f=x?v:g){if(f.has(p))return f.get(p);f.set(p,j)}for(const M in p)M!=="default"&&{}.hasOwnProperty.call(p,M)&&((O=(f=Object.defineProperty)&&Object.getOwnPropertyDescriptor(p,M))&&(O.get||O.set)?f(j,M,O):j[M]=p[M]);return j})(h,c)}function b(){return b=Object.assign?Object.assign.bind():function(h){for(var c=1;c<arguments.length;c++){var g=arguments[c];for(var v in g)({}).hasOwnProperty.call(g,v)&&(h[v]=g[v])}return h},b.apply(null,arguments)}function y(h,c,g){return(c=w(c))in h?Object.defineProperty(h,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[c]=g,h}function w(h){var c=E(h,"string");return typeof c=="symbol"?c:c+""}function E(h,c){if(typeof h!="object"||!h)return h;var g=h[Symbol.toPrimitive];if(g!==void 0){var v=g.call(h,c);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(h)}class S extends t.Component{static getDerivedStateFromProps(c,g){let{position:v}=c,{prevPropsPosition:p}=g;return v&&(!p||v.x!==p.x||v.y!==p.y)?((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:v,prevPropsPosition:p}),{x:v.x,y:v.y,prevPropsPosition:{...v}}):null}constructor(c){super(c),y(this,"onDragStart",(g,v)=>{if((0,u.default)("Draggable: onDragStart: %j",v),this.props.onStart(g,(0,i.createDraggableData)(this,v))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),y(this,"onDrag",(g,v)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",v);const p=(0,i.createDraggableData)(this,v),x={x:p.x,y:p.y,slackX:0,slackY:0};if(this.props.bounds){const{x:O,y:j}=x;x.x+=this.state.slackX,x.y+=this.state.slackY;const[M,L]=(0,i.getBoundPosition)(this,x.x,x.y);x.x=M,x.y=L,x.slackX=this.state.slackX+(O-x.x),x.slackY=this.state.slackY+(j-x.y),p.x=x.x,p.y=x.y,p.deltaX=x.x-this.state.x,p.deltaY=x.y-this.state.y}if(this.props.onDrag(g,p)===!1)return!1;this.setState(x)}),y(this,"onDragStop",(g,v)=>{if(!this.state.dragging||this.props.onStop(g,(0,i.createDraggableData)(this,v))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",v);const x={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:O,y:j}=this.props.position;x.x=O,x.y=j}this.setState(x)}),this.state={dragging:!1,dragged:!1,x:c.position?c.position.x:c.defaultPosition.x,y:c.position?c.position.y:c.defaultPosition.y,prevPropsPosition:{...c.position},slackX:0,slackY:0,isElementSVG:!1},c.position&&!(c.onDrag||c.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var c,g;return((g=(c=this.props)==null?void 0:c.nodeRef)==null?void 0:g.current)??n.default.findDOMNode(this)}render(){const{axis:c,bounds:g,children:v,defaultPosition:p,defaultClassName:x,defaultClassNameDragging:f,defaultClassNameDragged:O,position:j,positionOffset:M,scale:L,...q}=this.props;let N={},Y=null;const te=!!!j||this.state.dragging,re=j||p,ie={x:(0,i.canDragX)(this)&&te?this.state.x:re.x,y:(0,i.canDragY)(this)&&te?this.state.y:re.y};this.state.isElementSVG?Y=(0,o.createSVGTransform)(ie,M):N=(0,o.createCSSTransform)(ie,M);const we=(0,a.clsx)(v.props.className||"",x,{[f]:this.state.dragging,[O]:this.state.dragged});return t.createElement(l.default,b({},q,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(v),{className:we,style:{...v.props.style,...N},transform:Y}))}}e.default=S,y(S,"displayName","Draggable"),y(S,"propTypes",{...l.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),y(S,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(Xn)),Xn}var ci;function Ss(){if(ci)return ar.exports;ci=1;const{default:e,DraggableCore:t}=yf();return ar.exports=e,ar.exports.default=e,ar.exports.DraggableCore=t,ar.exports}var zr={},fi;function bf(){if(fi)return zr;fi=1,zr.__esModule=!0,zr.cloneElement=s;var e=t(I);function t(l){return l&&l.__esModule?l:{default:l}}function r(l,u){var m=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);u&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(l,b).enumerable})),m.push.apply(m,d)}return m}function n(l){for(var u=1;u<arguments.length;u++){var m=arguments[u]!=null?arguments[u]:{};u%2?r(Object(m),!0).forEach(function(d){a(l,d,m[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(m)):r(Object(m)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(m,d))})}return l}function a(l,u,m){return u=o(u),u in l?Object.defineProperty(l,u,{value:m,enumerable:!0,configurable:!0,writable:!0}):l[u]=m,l}function o(l){var u=i(l,"string");return typeof u=="symbol"?u:String(u)}function i(l,u){if(typeof l!="object"||l===null)return l;var m=l[Symbol.toPrimitive];if(m!==void 0){var d=m.call(l,u);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(l)}function s(l,u){return u.style&&l.props.style&&(u.style=n(n({},l.props.style),u.style)),u.className&&l.props.className&&(u.className=l.props.className+" "+u.className),e.default.cloneElement(l,u)}return zr}var ir={},di;function ws(){if(di)return ir;di=1,ir.__esModule=!0,ir.resizableProps=void 0;var e=t(Er());Ss();function t(n){return n&&n.__esModule?n:{default:n}}var r={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];var s=o[0];if(s.axis==="both"||s.axis==="y"){var l;return(l=e.default.number).isRequired.apply(l,o)}return e.default.number.apply(e.default,o)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];var s=o[0];if(s.axis==="both"||s.axis==="x"){var l;return(l=e.default.number).isRequired.apply(l,o)}return e.default.number.apply(e.default,o)}};return ir.resizableProps=r,ir}var pi;function Rs(){if(pi)return nr;pi=1,nr.__esModule=!0,nr.default=void 0;var e=i(I),t=Ss(),r=bf(),n=ws(),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function o(h){if(typeof WeakMap!="function")return null;var c=new WeakMap,g=new WeakMap;return(o=function(p){return p?g:c})(h)}function i(h,c){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var g=o(c);if(g&&g.has(h))return g.get(h);var v={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in h)if(x!=="default"&&Object.prototype.hasOwnProperty.call(h,x)){var f=p?Object.getOwnPropertyDescriptor(h,x):null;f&&(f.get||f.set)?Object.defineProperty(v,x,f):v[x]=h[x]}return v.default=h,g&&g.set(h,v),v}function s(){return s=Object.assign?Object.assign.bind():function(h){for(var c=1;c<arguments.length;c++){var g=arguments[c];for(var v in g)Object.prototype.hasOwnProperty.call(g,v)&&(h[v]=g[v])}return h},s.apply(this,arguments)}function l(h,c){if(h==null)return{};var g={},v=Object.keys(h),p,x;for(x=0;x<v.length;x++)p=v[x],!(c.indexOf(p)>=0)&&(g[p]=h[p]);return g}function u(h,c){var g=Object.keys(h);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(h);c&&(v=v.filter(function(p){return Object.getOwnPropertyDescriptor(h,p).enumerable})),g.push.apply(g,v)}return g}function m(h){for(var c=1;c<arguments.length;c++){var g=arguments[c]!=null?arguments[c]:{};c%2?u(Object(g),!0).forEach(function(v){d(h,v,g[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(g)):u(Object(g)).forEach(function(v){Object.defineProperty(h,v,Object.getOwnPropertyDescriptor(g,v))})}return h}function d(h,c,g){return c=b(c),c in h?Object.defineProperty(h,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[c]=g,h}function b(h){var c=y(h,"string");return typeof c=="symbol"?c:String(c)}function y(h,c){if(typeof h!="object"||h===null)return h;var g=h[Symbol.toPrimitive];if(g!==void 0){var v=g.call(h,c);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(h)}function w(h,c){h.prototype=Object.create(c.prototype),h.prototype.constructor=h,E(h,c)}function E(h,c){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,p){return v.__proto__=p,v},E(h,c)}var S=(function(h){w(c,h);function c(){for(var v,p=arguments.length,x=new Array(p),f=0;f<p;f++)x[f]=arguments[f];return v=h.call.apply(h,[this].concat(x))||this,v.handleRefs={},v.lastHandleRect=null,v.slack=null,v}var g=c.prototype;return g.componentWillUnmount=function(){this.resetData()},g.resetData=function(){this.lastHandleRect=this.slack=null},g.runConstraints=function(p,x){var f=this.props,O=f.minConstraints,j=f.maxConstraints,M=f.lockAspectRatio;if(!O&&!j&&!M)return[p,x];if(M){var L=this.props.width/this.props.height,q=p-this.props.width,N=x-this.props.height;Math.abs(q)>Math.abs(N*L)?x=p/L:p=x*L}var Y=p,X=x,te=this.slack||[0,0],re=te[0],ie=te[1];return p+=re,x+=ie,O&&(p=Math.max(O[0],p),x=Math.max(O[1],x)),j&&(p=Math.min(j[0],p),x=Math.min(j[1],x)),this.slack=[re+(Y-p),ie+(X-x)],[p,x]},g.resizeHandler=function(p,x){var f=this;return function(O,j){var M=j.node,L=j.deltaX,q=j.deltaY;p==="onResizeStart"&&f.resetData();var N=(f.props.axis==="both"||f.props.axis==="x")&&x!=="n"&&x!=="s",Y=(f.props.axis==="both"||f.props.axis==="y")&&x!=="e"&&x!=="w";if(!(!N&&!Y)){var X=x[0],te=x[x.length-1],re=M.getBoundingClientRect();if(f.lastHandleRect!=null){if(te==="w"){var ie=re.left-f.lastHandleRect.left;L+=ie}if(X==="n"){var we=re.top-f.lastHandleRect.top;q+=we}}f.lastHandleRect=re,te==="w"&&(L=-L),X==="n"&&(q=-q);var A=f.props.width+(N?L/f.props.transformScale:0),P=f.props.height+(Y?q/f.props.transformScale:0),k=f.runConstraints(A,P);A=k[0],P=k[1];var U=A!==f.props.width||P!==f.props.height,W=typeof f.props[p]=="function"?f.props[p]:null,Z=p==="onResize"&&!U;W&&!Z&&(O.persist==null||O.persist(),W(O,{node:M,size:{width:A,height:P},handle:x})),p==="onResizeStop"&&f.resetData()}}},g.renderResizeHandle=function(p,x){var f=this.props.handle;if(!f)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+p,ref:x});if(typeof f=="function")return f(p,x);var O=typeof f.type=="string",j=m({ref:x},O?{}:{handleAxis:p});return e.cloneElement(f,j)},g.render=function(){var p=this,x=this.props,f=x.children,O=x.className,j=x.draggableOpts;x.width,x.height,x.handle,x.handleSize,x.lockAspectRatio,x.axis,x.minConstraints,x.maxConstraints,x.onResize,x.onResizeStop,x.onResizeStart;var M=x.resizeHandles;x.transformScale;var L=l(x,a);return(0,r.cloneElement)(f,m(m({},L),{},{className:(O?O+" ":"")+"react-resizable",children:[].concat(f.props.children,M.map(function(q){var N,Y=(N=p.handleRefs[q])!=null?N:p.handleRefs[q]=e.createRef();return e.createElement(t.DraggableCore,s({},j,{nodeRef:Y,key:"resizableHandle-"+q,onStop:p.resizeHandler("onResizeStop",q),onStart:p.resizeHandler("onResizeStart",q),onDrag:p.resizeHandler("onResize",q)}),p.renderResizeHandle(q,Y))}))}))},c})(e.Component);return nr.default=S,S.propTypes=n.resizableProps,S.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},nr}var sr={},hi;function Ef(){if(hi)return sr;hi=1,sr.__esModule=!0,sr.default=void 0;var e=s(I),t=o(Er()),r=o(Rs()),n=ws(),a=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function o(c){return c&&c.__esModule?c:{default:c}}function i(c){if(typeof WeakMap!="function")return null;var g=new WeakMap,v=new WeakMap;return(i=function(x){return x?v:g})(c)}function s(c,g){if(c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var v=i(g);if(v&&v.has(c))return v.get(c);var p={},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in c)if(f!=="default"&&Object.prototype.hasOwnProperty.call(c,f)){var O=x?Object.getOwnPropertyDescriptor(c,f):null;O&&(O.get||O.set)?Object.defineProperty(p,f,O):p[f]=c[f]}return p.default=c,v&&v.set(c,p),p}function l(){return l=Object.assign?Object.assign.bind():function(c){for(var g=1;g<arguments.length;g++){var v=arguments[g];for(var p in v)Object.prototype.hasOwnProperty.call(v,p)&&(c[p]=v[p])}return c},l.apply(this,arguments)}function u(c,g){var v=Object.keys(c);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(c);g&&(p=p.filter(function(x){return Object.getOwnPropertyDescriptor(c,x).enumerable})),v.push.apply(v,p)}return v}function m(c){for(var g=1;g<arguments.length;g++){var v=arguments[g]!=null?arguments[g]:{};g%2?u(Object(v),!0).forEach(function(p){d(c,p,v[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(v)):u(Object(v)).forEach(function(p){Object.defineProperty(c,p,Object.getOwnPropertyDescriptor(v,p))})}return c}function d(c,g,v){return g=b(g),g in c?Object.defineProperty(c,g,{value:v,enumerable:!0,configurable:!0,writable:!0}):c[g]=v,c}function b(c){var g=y(c,"string");return typeof g=="symbol"?g:String(g)}function y(c,g){if(typeof c!="object"||c===null)return c;var v=c[Symbol.toPrimitive];if(v!==void 0){var p=v.call(c,g);if(typeof p!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(c)}function w(c,g){if(c==null)return{};var v={},p=Object.keys(c),x,f;for(f=0;f<p.length;f++)x=p[f],!(g.indexOf(x)>=0)&&(v[x]=c[x]);return v}function E(c,g){c.prototype=Object.create(g.prototype),c.prototype.constructor=c,S(c,g)}function S(c,g){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,x){return p.__proto__=x,p},S(c,g)}var h=(function(c){E(g,c);function g(){for(var p,x=arguments.length,f=new Array(x),O=0;O<x;O++)f[O]=arguments[O];return p=c.call.apply(c,[this].concat(f))||this,p.state={width:p.props.width,height:p.props.height,propsWidth:p.props.width,propsHeight:p.props.height},p.onResize=function(j,M){var L=M.size;p.props.onResize?(j.persist==null||j.persist(),p.setState(L,function(){return p.props.onResize&&p.props.onResize(j,M)})):p.setState(L)},p}g.getDerivedStateFromProps=function(x,f){return f.propsWidth!==x.width||f.propsHeight!==x.height?{width:x.width,height:x.height,propsWidth:x.width,propsHeight:x.height}:null};var v=g.prototype;return v.render=function(){var x=this.props,f=x.handle,O=x.handleSize;x.onResize;var j=x.onResizeStart,M=x.onResizeStop,L=x.draggableOpts,q=x.minConstraints,N=x.maxConstraints,Y=x.lockAspectRatio,X=x.axis;x.width,x.height;var te=x.resizeHandles,re=x.style,ie=x.transformScale,we=w(x,a);return e.createElement(r.default,{axis:X,draggableOpts:L,handle:f,handleSize:O,height:this.state.height,lockAspectRatio:Y,maxConstraints:N,minConstraints:q,onResizeStart:j,onResize:this.onResize,onResizeStop:M,resizeHandles:te,transformScale:ie,width:this.state.width},e.createElement("div",l({},we,{style:m(m({},re),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},g})(e.Component);return sr.default=h,h.propTypes=m(m({},n.resizableProps),{},{children:t.default.element}),sr}var mi;function xf(){return mi||(mi=1,rr.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},rr.exports.Resizable=Rs().default,rr.exports.ResizableBox=Ef().default),rr.exports}var Sf=xf();const wf=e=>e?Array.isArray(e)?e.join("."):e:"",Rf=Ne.span`
261
261
  position: absolute;
262
262
  top: 0;
263
263
  right: 0;
@@ -286,7 +286,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var O=ue(B,X,$,F,Y+"."+X
286
286
  display: inline-block;
287
287
  transform: rotateZ(90deg) scale(0.3);
288
288
  }
289
- `,Ms=e=>{const{onResize:t,width:r,...n}=e,[o,a]=C.useState(!1);if(!r)return D.jsx("th",{...n});const i=l=>{a(!0)},u=l=>{a(!1)};return D.jsx(As.Resizable,{width:r,height:0,handle:D.jsx(Ns,{className:o?"resizing":"",onClick:l=>l.stopPropagation(),children:D.jsx(Ie.MenuOutlined,{className:"react-resizable-handle-icon"})}),onResize:t,onResizeStart:i,onResizeStop:u,draggableOpts:{enableUserSelectHack:!1},children:D.jsx("th",{...n})})},ks=(e,t)=>{const[r,n]=ba("table-resizable_"+t,{}),o=a=>(i,{size:u})=>{const l=Ds(a==null?void 0:a.dataIndex);n(c=>({...c,[l]:u.width}))};return C.useMemo(()=>e.map(a=>{let i=a.dataIndex;Array.isArray(a.dataIndex)?i=a.dataIndex.join("."):i=a.dataIndex;const u=(r==null?void 0:r[i])||a.width;return{...a,width:u,onHeaderCell:l=>({width:l.width,onResize:o(l)})}}),[e,r])},Is=oe.div`
289
+ `,Pf=e=>{const{onResize:t,width:r,...n}=e,[a,o]=I.useState(!1);if(!r)return z.jsx("th",{...n});const i=l=>{o(!0)},s=l=>{o(!1)};return z.jsx(Sf.Resizable,{width:r,height:0,handle:z.jsx(Rf,{className:a?"resizing":"",onClick:l=>l.stopPropagation(),children:z.jsx(qt.MenuOutlined,{className:"react-resizable-handle-icon"})}),onResize:t,onResizeStart:i,onResizeStop:s,draggableOpts:{enableUserSelectHack:!1},children:z.jsx("th",{...n})})},Of=(e,t)=>{const[r,n]=bs("table-resizable_"+t,{}),a=o=>(i,{size:s})=>{const l=wf(o==null?void 0:o.dataIndex);n(u=>({...u,[l]:s.width}))};return I.useMemo(()=>e.map(o=>{let i=o.dataIndex;Array.isArray(o.dataIndex)?i=o.dataIndex.join("."):i=o.dataIndex;const s=(r==null?void 0:r[i])||o.width;return{...o,width:s,onHeaderCell:l=>({width:l.width,onResize:a(l)})}}),[e,r])},_f=Ne.div`
290
290
  position: relative;
291
291
 
292
292
  .ant-pagination-options {
@@ -294,7 +294,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var O=ue(B,X,$,F,Y+"."+X
294
294
  width: auto !important;
295
295
  }
296
296
  }
297
- `;function $s(e,t){const{columns:r=[],columnsSort:n,columnsVisible:o,tableId:a="",pagination:i,dataSource:u,columnsResizable:l}=e,g=location.pathname+a,[d,T]=ba("TABLE_"+g,{defaultValue:null}),[E,w]=C.useState([]),[x,S]=C.useState([]),h=C.useRef(null),f=A=>{w(A),v(A,x)},m=A=>{S(A),v(E,A)},v=(A,j)=>{T({order:A,visibleItems:j})},s=()=>{if(d)w(d.order),S(d.visibleItems);else{const A=[],j=[];for(const I of r){let N;"dataIndex"in I&&(Array.isArray(I.dataIndex)?N=I.dataIndex.join(","):N=I.dataIndex,A.push(N),"columnVisible"in I&&!I.columnVisible||j.push(N))}w(A),S(j)}},y=A=>{const j={...A},I=N=>D.jsxs("span",{children:[N,D.jsx(gs,{onChangeOrder:f,onChangeVisible:m,order:E,columnsSort:n,visibleItems:x,columns:r,columnsVisible:o})]});return typeof A.title=="function"?j.title=N=>I(A.title(N)):j.title=I(A.title),j},p=A=>A!=null&&A!==""?D.jsx(te.Tooltip,{title:A,placement:"topLeft",children:D.jsx("span",{className:"column-ellipsis",children:A})}):"-",R=C.useMemo(()=>{let A=r;if(!n&&!o)A=r;else{const j=[];E.filter(I=>x.includes(I)).forEach((I,N,z)=>{for(const q of r)if("dataIndex"in q){let W;if(Array.isArray(q.dataIndex)?W=q.dataIndex.join(","):W=q.dataIndex,I===W){(n||o)&&N===z.length-1?j.push(y(q)):j.push(q);break}}}),A=j}return A.map(j=>{if(j.filters&&!j.filterIcon&&(j.filterIcon=D.jsx(Ie.DownOutlined,{type:"icon-xiajiantou",style:{fontWeight:500}})),j.ellipsis===!1)j.ellipsis=!1;else{const I=j.ellipsis||{};j.ellipsis={showTitle:!1,...I},j.render||(j.render=p)}return j})},[E,x,r]),_=C.useMemo(()=>e.pagination?{...i||{},showTotal:()=>u&&u.length>0&&D.jsx(ws,{...e})}:!1,[i]);return C.useEffect(()=>{s()},[]),D.jsx(Is,{ref:t,children:D.jsx(te.Table,{ref:h,scroll:{x:900},components:{header:{cell:l?Ms:void 0}},...e,pagination:_,columns:l?ks(R,a):R})})}const zs=C.forwardRef($s),Ls=oe(te.Form.Item)`
297
+ `;function Tf(e,t){const{columns:r=[],columnsSort:n,columnsVisible:a,tableId:o="",pagination:i,dataSource:s,columnsResizable:l}=e,m=location.pathname+o,[d,b]=bs("TABLE_"+m,{defaultValue:null}),[y,w]=I.useState([]),[E,S]=I.useState([]),h=I.useRef(null),c=M=>{w(M),v(M,E)},g=M=>{S(M),v(y,M)},v=(M,L)=>{b({order:M,visibleItems:L})},p=()=>{if(d)w(d.order),S(d.visibleItems);else{const M=[],L=[];for(const q of r){let N;"dataIndex"in q&&(Array.isArray(q.dataIndex)?N=q.dataIndex.join(","):N=q.dataIndex,M.push(N),"columnVisible"in q&&!q.columnVisible||L.push(N))}w(M),S(L)}},x=M=>{const L={...M},q=N=>z.jsxs("span",{children:[N,z.jsx(sf,{onChangeOrder:c,onChangeVisible:g,order:y,columnsSort:n,visibleItems:E,columns:r,columnsVisible:a})]});return typeof M.title=="function"?L.title=N=>q(M.title(N)):L.title=q(M.title),L},f=M=>M!=null&&M!==""?z.jsx(Ee.Tooltip,{title:M,placement:"topLeft",children:z.jsx("span",{className:"column-ellipsis",children:M})}):"-",O=I.useMemo(()=>{let M=r;if(!n&&!a)M=r;else{const L=[];y.filter(q=>E.includes(q)).forEach((q,N,Y)=>{for(const X of r)if("dataIndex"in X){let te;if(Array.isArray(X.dataIndex)?te=X.dataIndex.join(","):te=X.dataIndex,q===te){(n||a)&&N===Y.length-1?L.push(x(X)):L.push(X);break}}}),M=L}return M.map(L=>{if(L.filters&&!L.filterIcon&&(L.filterIcon=z.jsx(qt.DownOutlined,{type:"icon-xiajiantou",style:{fontWeight:500}})),L.ellipsis===!1)L.ellipsis=!1;else{const q=L.ellipsis||{};L.ellipsis={showTitle:!1,...q},L.render||(L.render=f)}return L})},[y,E,r]),j=I.useMemo(()=>e.pagination?{...i||{},showTotal:()=>s&&s.length>0&&z.jsx(hf,{...e})}:!1,[i]);return I.useEffect(()=>{p()},[]),z.jsx(_f,{ref:t,children:z.jsx(Ee.Table,{ref:h,scroll:{x:900},components:{header:{cell:l?Pf:void 0}},...e,pagination:j,columns:l?Of(O,o):O})})}const Cf=I.forwardRef(Tf),Df=Ne(Ee.Form.Item)`
298
298
  margin-bottom: 0 !important;
299
299
 
300
300
  .search-item__label {
@@ -317,14 +317,14 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var O=ue(B,X,$,F,Y+"."+X
317
317
  .search-item__content {
318
318
  flex: 1;
319
319
  }
320
- `;function Fs({children:e,...t}){return D.jsx(Ls,{...t,children:e})}const qs=oe(Ie.CaretUpOutlined,{shouldForwardProp:e=>e!=="show"})`
320
+ `;function jf({children:e,...t}){return z.jsx(Df,{...t,children:e})}const Nf=Ne(qt.CaretUpOutlined,{shouldForwardProp:e=>e!=="show"})`
321
321
  transition: transform 0.3s ease-in-out;
322
322
  transform: rotate(${e=>e.show?"0deg":"180deg"});
323
- `;function Ws({panel:e,onChange:t}){const r=C.useMemo(()=>e==null?void 0:e.show,[e]),n=C.useCallback(()=>{e==null||e.toggle(),t==null||t(!(e!=null&&e.show))},[e]);return D.jsxs(te.Button,{type:"link",style:{paddingLeft:0,paddingRight:0},onClick:n,children:[D.jsx(Me,{id:"comgponent.searcharea.togle",defaultMessage:"高级搜索"}),D.jsx(qs,{show:r})]})}const Ys=oe("div",{shouldForwardProp:e=>e!=="show"})`
323
+ `;function Af({panel:e,onChange:t}){const r=I.useMemo(()=>e==null?void 0:e.show,[e]),n=I.useCallback(()=>{e==null||e.toggle(),t==null||t(!(e!=null&&e.show))},[e]);return z.jsxs(Ee.Button,{type:"link",style:{paddingLeft:0,paddingRight:0},onClick:n,children:[z.jsx($t,{id:"comgponent.searcharea.togle",defaultMessage:"高级搜索"}),z.jsx(Nf,{show:r})]})}const Mf=Ne("div",{shouldForwardProp:e=>e!=="show"})`
324
324
  overflow: hidden;
325
325
  transition: max-height 0.4s ease-in-out;
326
326
  max-height: ${e=>e.show?"450px":"0"};
327
- `,Us=oe(te.Form)`
327
+ `,If=Ne(Ee.Form)`
328
328
  padding: 20px;
329
329
  padding-bottom: 0;
330
330
  margin-bottom: 20px;
@@ -334,9 +334,30 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var O=ue(B,X,$,F,Y+"."+X
334
334
  .ant-form-item {
335
335
  margin-bottom: 20px;
336
336
  }
337
- `,Hs=oe.div`
337
+ `,kf=Ne.div`
338
338
  gap: 10px;
339
339
  display: flex;
340
340
  justify-content: flex-end;
341
341
  margin-bottom: 20px;
342
- `;function Bs({children:e,onSearch:t,onClose:r,onReset:n,resetFieldsValue:o,col:a={},row:i={},loading:u=!1,instance:l,...c}){const[g]=te.Form.useForm(),[d,T]=C.useState((l==null?void 0:l.show)??!1),E=C.useMemo(()=>(l==null?void 0:l.show)??d,[l,d]),w=C.useCallback(()=>{var f;typeof(l==null?void 0:l.toggle)=="function"?(f=l==null?void 0:l.toggle)==null||f.call(l):T(m=>!m)},[l,d]),x=()=>{const f=g.getFieldsValue();t==null||t(f)},S=()=>{o?g.setFieldsValue(o):g.resetFields(),x(),n==null||n()},h=()=>{w(),r==null||r()};return D.jsx(Ys,{show:E,children:D.jsx(Us,{form:g,labelCol:{flex:"70px"},wrapperCol:{flex:"1",style:{maxWidth:"280px"}},...c,children:D.jsxs(te.Row,{gutter:10,justify:"space-between",...i,children:[Array.isArray(e)?e.map(f=>C.createElement(te.Col,{span:6,xxl:6,xl:8,lg:12,xs:24,key:f.props.name||f.key||f.props.label,...a},f)):e,D.jsx(te.Col,{flex:1,children:D.jsxs(Hs,{children:[D.jsx(te.Button,{loading:u,type:"primary",onClick:x,children:D.jsx(Me,{id:"component.searcharea.submit",defaultMessage:"筛选"})}),D.jsx(te.Button,{loading:u,onClick:S,children:D.jsx(Me,{id:"component.searcharea.reset",defaultMessage:"重置"})}),D.jsxs(te.Button,{type:"link",style:{paddingLeft:0,paddingRight:0},onClick:h,children:[D.jsx(Me,{id:"component.searcharea.close",defaultMessage:"收起"}),D.jsx(Ie.UpOutlined,{})]})]})})]})})})}const Nt=Bs;function Vs(e){const[t,r]=C.useState(e??!1);return{show:t,toggle:()=>{r(o=>!o)}}}Nt.useSearchArea=Vs;Nt.Item=Fs;Nt.ToggleButton=Ws;function Xs(e,t,r){const n=cs(e,{...t,onError(a,i){var u;((t==null?void 0:t.errorMessage)??!0)&&exports.message.error(a.message),(u=t==null?void 0:t.onError)==null||u.call(t,a,i)}},r),o=n.data&&typeof n.data=="object"&&"data"in n.data?n.data.data:n.data;return{...n,data:o}}const Gs={ascend:"ASC",descend:"DESC"},Ks={rowKey:"id",interval:!1,immediate:!0,defaultPagination:{current:1,pageSize:10},showRowSelection:!1,multiPageSelection:!1,onBeforeRequest:async e=>{},onAfterRequest:async e=>{}};function Js(e,t={}){const r=Vo(),{rowKey:n,interval:o,immediate:a,defaultPagination:i,showRowSelection:u,multiPageSelection:l,onBeforeRequest:c,onAfterRequest:g}={...Ks,...t},d=C.useRef(null),[T,E]=C.useState(!1),[w,x]=C.useState([]),[S,h]=C.useState({current:1,pageSize:10,total:0,...i}),[f,m]=C.useState([]),{current:v}=C.useRef({pageNum:1,pageSize:10,column:null,order:null}),s=C.useRef(S);s.current=S;const y=we(async(N=1,z=10,q)=>{if(q!=="auto")E(!0),R();else if(f.length!==0){p(N,z);return}try{const W={...v,pageNum:Number(N),pageSize:Number(z)},H=await(c==null?void 0:c(W)),ie=await e(H!==void 0?H:W),{records:b,total:P,current:M,size:k}=ie.data,$=await(g==null?void 0:g(ie)),F=Array.isArray($)?$:b;if(x(F),(M!==S.current||z!==S.pageSize||P!==S.total)&&h({current:M,pageSize:k,total:P}),F.length===0&&M&&M>1&&P&&P>0){const Y=Math.ceil(P/k);y(Y,z,q)}else p(M,k)}catch(W){const H=W instanceof Error?W.message:"请求失败";exports.message.error(H)}finally{l||m([]),E(!1)}}),p=we((N,z)=>{o&&(R(),d.current===null&&(d.current=setTimeout(()=>{y(N,z,"auto")},o)))}),R=C.useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=null)},[]),_=C.useCallback((N,z,q)=>{m(z)},[]),A=C.useCallback((N={})=>{const z={pageNum:1,pageSize:S.pageSize,column:v.column,order:v.order};Object.keys(v).forEach(q=>{q!=="column"&&q!=="order"&&q!=="pageNum"&&q!=="pageSize"&&Reflect.deleteProperty(v,q)}),Object.assign(v,z,N),y(1,S.pageSize)},[S.pageSize,y,v]),j=C.useCallback(()=>{y(s.current.current,s.current.pageSize)},[y]),I=C.useCallback((N,z,q,W)=>{var b;Object.entries(z).forEach(([P,M])=>{M&&Array.isArray(M)&&M.length===1?v[P]=M[0]:v[P]=M});const H=Array.isArray(q)?q[0]:q;H!=null&&H.order?((b=H==null?void 0:H.column)!=null&&b.sort?v.column=H.column.sort:H.field&&(v.column=Array.isArray(H.field)?H.field[0]:H.field),v.order=Gs[H.order]):(v.column=null,v.order=null);const re=N.current??s.current.current,ie=N.pageSize??s.current.pageSize;y(re,ie)},[y,v]);return C.useEffect(()=>(a&&y(s.current.current,s.current.pageSize),()=>{R()}),[a,y,R]),{loading:T,tableProps:{rowKey:String(n),loading:T,dataSource:w,...u?{rowSelection:{selectedRowKeys:f.map(N=>N[n]),onChange:_}}:{},onChange:I,pagination:{showQuickJumper:!0,showSizeChanger:!0,showTotal:N=>r.$t({id:"component.table.total",defaultMessage:"共{total}条"},{total:N}),...S}},search:{pagination:S,params:v,submit:A,refresh:j},rowSelection:{selectedRows:f,selectedRowKeys:f.map(N=>N[n])}}}exports.App=Jo;exports.CheckboxValue=ei;exports.ConfigContext=_t;exports.ConfigProvider=la;exports.GlobalLoading=sa;exports.IconButton=Ei;exports.IconFont=Pr;exports.SearchArea=Nt;exports.SwitchValue=ti;exports.Table=zs;exports.useRequest=Xs;exports.useTable=Js;
342
+ `;function Ff({children:e,onSearch:t,onClose:r,onReset:n,resetFieldsValue:a,col:o={},row:i={},loading:s=!1,instance:l,...u}){const[m]=Ee.Form.useForm(),[d,b]=I.useState((l==null?void 0:l.show)??!1),y=I.useMemo(()=>(l==null?void 0:l.show)??d,[l,d]),w=I.useCallback(()=>{var c;typeof(l==null?void 0:l.toggle)=="function"?(c=l==null?void 0:l.toggle)==null||c.call(l):b(g=>!g)},[l,d]),E=()=>{const c=m.getFieldsValue();t==null||t(c)},S=()=>{a?m.setFieldsValue(a):m.resetFields(),E(),n==null||n()},h=()=>{w(),r==null||r()};return z.jsx(Mf,{show:y,children:z.jsx(If,{form:m,labelCol:{flex:"70px"},wrapperCol:{flex:"1",style:{maxWidth:"280px"}},...u,children:z.jsxs(Ee.Row,{gutter:10,justify:"space-between",...i,children:[Array.isArray(e)?e.map(c=>I.createElement(Ee.Col,{span:6,xxl:6,xl:8,lg:12,xs:24,key:c.props.name||c.key||c.props.label,...o},c)):e,z.jsx(Ee.Col,{flex:1,children:z.jsxs(kf,{children:[z.jsx(Ee.Button,{loading:s,type:"primary",onClick:E,children:z.jsx($t,{id:"component.searcharea.submit",defaultMessage:"筛选"})}),z.jsx(Ee.Button,{loading:s,onClick:S,children:z.jsx($t,{id:"component.searcharea.reset",defaultMessage:"重置"})}),z.jsxs(Ee.Button,{type:"link",style:{paddingLeft:0,paddingRight:0},onClick:h,children:[z.jsx($t,{id:"component.searcharea.close",defaultMessage:"收起"}),z.jsx(qt.UpOutlined,{})]})]})})]})})})}const pn=Ff;function Lf(e){const[t,r]=I.useState(e??!1);return{show:t,toggle:()=>{r(a=>!a)}}}pn.useSearchArea=Lf;pn.Item=jf;pn.ToggleButton=Af;function zf(e,t,r){const n=Qc(e,{...t,onError(o,i){var s;((t==null?void 0:t.errorMessage)??!0)&&exports.message.error(o.message),(s=t==null?void 0:t.onError)==null||s.call(t,o,i)}},r),a=n.data&&typeof n.data=="object"&&"data"in n.data?n.data.data:n.data;return{...n,data:a}}const $f={ascend:"ASC",descend:"DESC"},Uf={rowKey:"id",interval:!1,immediate:!0,defaultPagination:{current:1,pageSize:10},showRowSelection:!1,multiPageSelection:!1,onBeforeRequest:async e=>{},onAfterRequest:async e=>{}};function Wf(e,t={}){const r=Nu(),{rowKey:n,interval:a,immediate:o,defaultPagination:i,showRowSelection:s,multiPageSelection:l,onBeforeRequest:u,onAfterRequest:m}={...Uf,...t},d=I.useRef(null),[b,y]=I.useState(!1),[w,E]=I.useState([]),[S,h]=I.useState({current:1,pageSize:10,total:0,...i}),[c,g]=I.useState([]),{current:v}=I.useRef({pageNum:1,pageSize:10,column:null,order:null}),p=I.useRef(S);p.current=S;const x=et(async(N=1,Y=10,X)=>{if(X!=="auto")y(!0),O();else if(c.length!==0){f(N,Y);return}try{const te={...v,pageNum:Number(N),pageSize:Number(Y)},re=await(u==null?void 0:u(te)),we=await e(re!==void 0?re:te),{records:A,total:P,current:k,size:U}=we.data,W=await(m==null?void 0:m(we)),Z=Array.isArray(W)?W:A;if(E(Z),(k!==S.current||Y!==S.pageSize||P!==S.total)&&h({current:k,pageSize:U,total:P}),Z.length===0&&k&&k>1&&P&&P>0){const ee=Math.ceil(P/U);x(ee,Y,X)}else f(k,U)}catch(te){const re=te instanceof Error?te.message:"请求失败";exports.message.error(re)}finally{l||g([]),y(!1)}}),f=et((N,Y)=>{a&&(O(),d.current===null&&(d.current=setTimeout(()=>{x(N,Y,"auto")},a)))}),O=I.useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=null)},[]),j=I.useCallback((N,Y,X)=>{g(Y)},[]),M=I.useCallback((N={})=>{const Y={pageNum:1,pageSize:S.pageSize,column:v.column,order:v.order};Object.keys(v).forEach(X=>{X!=="column"&&X!=="order"&&X!=="pageNum"&&X!=="pageSize"&&Reflect.deleteProperty(v,X)}),Object.assign(v,Y,N),x(1,S.pageSize)},[S.pageSize,x,v]),L=I.useCallback(N=>{if(N){const Y={column:v.column,order:v.order};N!=null&&N.pageSize&&h({...S,pageSize:N.pageSize}),N!=null&&N.pageNum&&h({...S,current:N.pageNum});for(const X in v)delete v[X];Object.assign(v,Y,N),x((N==null?void 0:N.pageNum)||S.current,(N==null?void 0:N.pageSize)||S.pageSize)}else x(S.current,S.pageSize)},[x,S,v]),q=I.useCallback((N,Y,X,te)=>{var A;Object.entries(Y).forEach(([P,k])=>{k&&Array.isArray(k)&&k.length===1?v[P]=k[0]:v[P]=k});const re=Array.isArray(X)?X[0]:X;re!=null&&re.order?((A=re==null?void 0:re.column)!=null&&A.sort?v.column=re.column.sort:re.field&&(v.column=Array.isArray(re.field)?re.field[0]:re.field),v.order=$f[re.order]):(v.column=null,v.order=null);const ie=N.current??p.current.current,we=N.pageSize??p.current.pageSize;x(ie,we)},[x,v]);return I.useEffect(()=>(o&&x(p.current.current,p.current.pageSize),()=>{O()}),[o,x,O]),{loading:b,tableProps:{rowKey:String(n),loading:b,dataSource:w,...s?{rowSelection:{selectedRowKeys:c.map(N=>N[n]),onChange:j}}:{},onChange:q,pagination:{showQuickJumper:!0,showSizeChanger:!0,showTotal:N=>r.$t({id:"component.table.total",defaultMessage:"共{total}条"},{total:N}),...S}},search:{pagination:S,params:v,submit:M,refresh:L},rowSelection:{selectedRows:c,selectedRowKeys:c.map(N=>N[n])}}}/**
343
+ * @remix-run/router v1.23.1
344
+ *
345
+ * Copyright (c) Remix Software Inc.
346
+ *
347
+ * This source code is licensed under the MIT license found in the
348
+ * LICENSE.md file in the root directory of this source tree.
349
+ *
350
+ * @license MIT
351
+ */function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Se.apply(this,arguments)}var Oe;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Oe||(Oe={}));function Ps(e){e===void 0&&(e={});let{initialEntries:t=["/"],initialIndex:r,v5Compat:n=!1}=e,a;a=t.map((y,w)=>m(y,typeof y=="string"?null:y.state,w===0?"default":void 0));let o=l(r??a.length-1),i=Oe.Pop,s=null;function l(y){return Math.min(Math.max(y,0),a.length-1)}function u(){return a[o]}function m(y,w,E){w===void 0&&(w=null);let S=da(a?u().pathname:"/",y,w,E);return je(S.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(y)),S}function d(y){return typeof y=="string"?y:wr(y)}return{get index(){return o},get action(){return i},get location(){return u()},createHref:d,createURL(y){return new URL(d(y),"http://localhost")},encodeLocation(y){let w=typeof y=="string"?Ge(y):y;return{pathname:w.pathname||"",search:w.search||"",hash:w.hash||""}},push(y,w){i=Oe.Push;let E=m(y,w);o+=1,a.splice(o,a.length,E),n&&s&&s({action:i,location:E,delta:1})},replace(y,w){i=Oe.Replace;let E=m(y,w);a[o]=E,n&&s&&s({action:i,location:E,delta:0})},go(y){i=Oe.Pop;let w=l(o+y),E=a[w];o=w,s&&s({action:i,location:E,delta:y})},listen(y){return s=y,()=>{s=null}}}}function K(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function je(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qf(){return Math.random().toString(36).substr(2,8)}function da(e,t,r,n){return r===void 0&&(r=null),Se({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ge(t):t,{state:r,key:t&&t.key||n||qf()})}function wr(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Ge(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var be;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(be||(be={}));const Bf=new Set(["lazy","caseSensitive","path","id","index","children"]);function Hf(e){return e.index===!0}function Qr(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,o)=>{let i=[...r,String(o)],s=typeof a.id=="string"?a.id:i.join("-");if(K(a.index!==!0||!a.children,"Cannot specify children on an index route"),K(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Hf(a)){let l=Se({},a,t(a),{id:s});return n[s]=l,l}else{let l=Se({},a,t(a),{id:s,children:void 0});return n[s]=l,a.children&&(l.children=Qr(a.children,t,i,n)),l}})}function dt(e,t,r){return r===void 0&&(r="/"),Gr(e,t,r,!1)}function Gr(e,t,r,n){let a=typeof t=="string"?Ge(t):t,o=_t(a.pathname||"/",r);if(o==null)return null;let i=_s(e);Yf(i);let s=null;for(let l=0;s==null&&l<i.length;++l){let u=Cs(o);s=td(i[l],u,n)}return s}function Os(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}function _s(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let a=(o,i,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};l.relativePath.startsWith("/")&&(K(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=ot([n,l.relativePath]),m=r.concat(l);o.children&&o.children.length>0&&(K(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),_s(o.children,t,m,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Qf(u,o.index),routesMeta:m})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let l of Ts(o.path))a(o,i,l)}),t}function Ts(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=Ts(n.join("/")),s=[];return s.push(...i.map(l=>l===""?o:[o,l].join("/"))),a&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Yf(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:ed(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Vf=/^:[\w-]+$/,Xf=3,Gf=2,Kf=1,Jf=10,Zf=-2,gi=e=>e==="*";function Qf(e,t){let r=e.split("/"),n=r.length;return r.some(gi)&&(n+=Zf),t&&(n+=Gf),r.filter(a=>!gi(a)).reduce((a,o)=>a+(Vf.test(o)?Xf:o===""?Kf:Jf),n)}function ed(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function td(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let s=0;s<n.length;++s){let l=n[s],u=s===n.length-1,m=o==="/"?t:t.slice(o.length)||"/",d=en({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},m),b=l.route;if(!d&&u&&r&&!n[n.length-1].route.index&&(d=en({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},m)),!d)return null;Object.assign(a,d.params),i.push({params:a,pathname:ot([o,d.pathname]),pathnameBase:id(ot([o,d.pathnameBase])),route:b}),d.pathnameBase!=="/"&&(o=ot([o,d.pathnameBase]))}return i}function rd(e,t){t===void 0&&(t={});let r=e;r.endsWith("*")&&r!=="*"&&!r.endsWith("/*")&&(je(!1,'Route path "'+r+'" will be treated as if it were '+('"'+r.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+r.replace(/\*$/,"/*")+'".')),r=r.replace(/\*$/,"/*"));const n=r.startsWith("/")?"/":"",a=i=>i==null?"":typeof i=="string"?i:String(i),o=r.split(/\/+/).map((i,s,l)=>{if(s===l.length-1&&i==="*")return a(t["*"]);const m=i.match(/^:([\w-]+)(\??)$/);if(m){const[,d,b]=m;let y=t[d];return K(b==="?"||y!=null,'Missing ":'+d+'" param'),a(y)}return i.replace(/\?$/g,"")}).filter(i=>!!i);return n+o.join("/")}function en(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=nd(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:n.reduce((u,m,d)=>{let{paramName:b,isOptional:y}=m;if(b==="*"){let E=s[d]||"";i=o.slice(0,o.length-E.length).replace(/(.)\/+$/,"$1")}const w=s[d];return y&&!w?u[b]=void 0:u[b]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function nd(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),je(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function Cs(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return je(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _t(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const ad=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,od=e=>ad.test(e);function Ds(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?Ge(e):e,o;if(r)if(od(r))o=r;else{if(r.includes("//")){let i=r;r=r.replace(/\/\/+/g,"/"),je(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+r))}r.startsWith("/")?o=vi(r.substring(1),"/"):o=vi(r,t)}else o=t;return{pathname:o,search:sd(n),hash:ld(a)}}function vi(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Gn(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function js(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function hn(e,t){let r=js(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function mn(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=Ge(e):(a=Se({},e),K(!a.pathname||!a.pathname.includes("?"),Gn("?","pathname","search",a)),K(!a.pathname||!a.pathname.includes("#"),Gn("#","pathname","hash",a)),K(!a.search||!a.search.includes("#"),Gn("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(i==null)s=r;else{let d=t.length-1;if(!n&&i.startsWith("..")){let b=i.split("/");for(;b[0]==="..";)b.shift(),d-=1;a.pathname=b.join("/")}s=d>=0?t[d]:"/"}let l=Ds(a,s),u=i&&i!=="/"&&i.endsWith("/"),m=(o||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||m)&&(l.pathname+="/"),l}const ot=e=>e.join("/").replace(/\/\/+/g,"/"),id=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),sd=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ld=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,ud=function(t,r){r===void 0&&(r={});let n=typeof r=="number"?{status:r}:r,a=new Headers(n.headers);return a.has("Content-Type")||a.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(t),Se({},n,{headers:a}))};class tn extends Error{}class cd{constructor(t,r){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],K(t&&typeof t=="object"&&!Array.isArray(t),"defer() only accepts plain objects");let n;this.abortPromise=new Promise((o,i)=>n=i),this.controller=new AbortController;let a=()=>n(new tn("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",a),this.controller.signal.addEventListener("abort",a),this.data=Object.entries(t).reduce((o,i)=>{let[s,l]=i;return Object.assign(o,{[s]:this.trackPromise(s,l)})},{}),this.done&&this.unlistenAbortSignal(),this.init=r}trackPromise(t,r){if(!(r instanceof Promise))return r;this.deferredKeys.push(t),this.pendingKeysSet.add(t);let n=Promise.race([r,this.abortPromise]).then(a=>this.onSettle(n,t,void 0,a),a=>this.onSettle(n,t,a));return n.catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(t,r,n,a){if(this.controller.signal.aborted&&n instanceof tn)return this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>n}),Promise.reject(n);if(this.pendingKeysSet.delete(r),this.done&&this.unlistenAbortSignal(),n===void 0&&a===void 0){let o=new Error('Deferred data for key "'+r+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(t,"_error",{get:()=>o}),this.emit(!1,r),Promise.reject(o)}return a===void 0?(Object.defineProperty(t,"_error",{get:()=>n}),this.emit(!1,r),Promise.reject(n)):(Object.defineProperty(t,"_data",{get:()=>a}),this.emit(!1,r),a)}emit(t,r){this.subscribers.forEach(n=>n(t,r))}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((t,r)=>this.pendingKeysSet.delete(r)),this.emit(!0)}async resolveData(t){let r=!1;if(!this.done){let n=()=>this.cancel();t.addEventListener("abort",n),r=await new Promise(a=>{this.subscribe(o=>{t.removeEventListener("abort",n),(o||this.done)&&a(o)})})}return r}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return K(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((t,r)=>{let[n,a]=r;return Object.assign(t,{[n]:dd(a)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function fd(e){return e instanceof Promise&&e._tracked===!0}function dd(e){if(!fd(e))return e;if(e._error)throw e._error;return e._data}const pd=function(t,r){r===void 0&&(r={});let n=typeof r=="number"?{status:r}:r;return new cd(t,n)},Ia=function(t,r){r===void 0&&(r=302);let n=r;typeof n=="number"?n={status:n}:typeof n.status>"u"&&(n.status=302);let a=new Headers(n.headers);return a.set("Location",t),new Response(null,Se({},n,{headers:a}))},hd=(e,t)=>{let r=Ia(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},md=(e,t)=>{let r=Ia(e,t);return r.headers.set("X-Remix-Replace","true"),r};class pa{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Wt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ns=["post","put","patch","delete"],gd=new Set(Ns),vd=["get",...Ns],yd=new Set(vd),bd=new Set([301,302,303,307,308]),Ed=new Set([307,308]),Kn={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},xd={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ft={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ka=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sd=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),As="remix-router-transitions";function wd(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;K(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let R=e.detectErrorBoundary;a=_=>({hasErrorBoundary:R(_)})}else a=Sd;let o={},i=Qr(e.routes,a,void 0,o),s,l=e.basename||"/",u=e.dataStrategy||_d,m=e.patchRoutesOnNavigation,d=Se({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),b=null,y=new Set,w=null,E=null,S=null,h=e.hydrationData!=null,c=dt(i,e.history.location,l),g=!1,v=null;if(c==null&&!m){let R=ze(404,{pathname:e.history.location.pathname}),{matches:_,route:T}=Ti(i);c=_,v={[T.id]:R}}c&&!e.hydrationData&&_r(c,i,e.history.location.pathname).active&&(c=null);let p;if(c)if(c.some(R=>R.route.lazy))p=!1;else if(!c.some(R=>R.route.loader))p=!0;else if(d.v7_partialHydration){let R=e.hydrationData?e.hydrationData.loaderData:null,_=e.hydrationData?e.hydrationData.errors:null;if(_){let T=c.findIndex(F=>_[F.route.id]!==void 0);p=c.slice(0,T+1).every(F=>!ma(F.route,R,_))}else p=c.every(T=>!ma(T.route,R,_))}else p=e.hydrationData!=null;else if(p=!1,c=[],d.v7_partialHydration){let R=_r(null,i,e.history.location.pathname);R.active&&R.matches&&(g=!0,c=R.matches)}let x,f={historyAction:e.history.action,location:e.history.location,matches:c,initialized:p,navigation:Kn,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},O=Oe.Pop,j=!1,M,L=!1,q=new Map,N=null,Y=!1,X=!1,te=[],re=new Set,ie=new Map,we=0,A=-1,P=new Map,k=new Set,U=new Map,W=new Map,Z=new Set,ee=new Map,B=new Map,ne;function ue(){if(b=e.history.listen(R=>{let{action:_,location:T,delta:F}=R;if(ne){ne(),ne=void 0;return}je(B.size===0||F!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let $=Qa({currentLocation:f.location,nextLocation:T,historyAction:_});if($&&F!=null){let Q=new Promise(ae=>{ne=ae});e.history.go(F*-1),Or($,{state:"blocked",location:T,proceed(){Or($,{state:"proceeding",proceed:void 0,reset:void 0,location:T}),Q.then(()=>e.history.go(F))},reset(){let ae=new Map(f.blockers);ae.set($,Ft),C({blockers:ae})}});return}return yt(_,T)}),r){Ud(t,q);let R=()=>Wd(t,q);t.addEventListener("pagehide",R),N=()=>t.removeEventListener("pagehide",R)}return f.initialized||yt(Oe.Pop,f.location,{initialHydration:!0}),x}function le(){b&&b(),N&&N(),y.clear(),M&&M.abort(),f.fetchers.forEach((R,_)=>Pr(_)),f.blockers.forEach((R,_)=>Za(_))}function Ae(R){return y.add(R),()=>y.delete(R)}function C(R,_){_===void 0&&(_={}),f=Se({},f,R);let T=[],F=[];d.v7_fetcherPersist&&f.fetchers.forEach(($,Q)=>{$.state==="idle"&&(Z.has(Q)?F.push(Q):T.push(Q))}),Z.forEach($=>{!f.fetchers.has($)&&!ie.has($)&&F.push($)}),[...y].forEach($=>$(f,{deletedFetchers:F,viewTransitionOpts:_.viewTransitionOpts,flushSync:_.flushSync===!0})),d.v7_fetcherPersist?(T.forEach($=>f.fetchers.delete($)),F.forEach($=>Pr($))):F.forEach($=>Z.delete($))}function _e(R,_,T){var F,$;let{flushSync:Q}=T===void 0?{}:T,ae=f.actionData!=null&&f.navigation.formMethod!=null&&Ve(f.navigation.formMethod)&&f.navigation.state==="loading"&&((F=R.state)==null?void 0:F._isRedirect)!==!0,V;_.actionData?Object.keys(_.actionData).length>0?V=_.actionData:V=null:ae?V=f.actionData:V=null;let G=_.loaderData?Oi(f.loaderData,_.loaderData,_.matches||[],_.errors):f.loaderData,H=f.blockers;H.size>0&&(H=new Map(H),H.forEach((ce,Me)=>H.set(Me,Ft)));let J=j===!0||f.navigation.formMethod!=null&&Ve(f.navigation.formMethod)&&(($=R.state)==null?void 0:$._isRedirect)!==!0;s&&(i=s,s=void 0),Y||O===Oe.Pop||(O===Oe.Push?e.history.push(R,R.state):O===Oe.Replace&&e.history.replace(R,R.state));let se;if(O===Oe.Pop){let ce=q.get(f.location.pathname);ce&&ce.has(R.pathname)?se={currentLocation:f.location,nextLocation:R}:q.has(R.pathname)&&(se={currentLocation:R,nextLocation:f.location})}else if(L){let ce=q.get(f.location.pathname);ce?ce.add(R.pathname):(ce=new Set([R.pathname]),q.set(f.location.pathname,ce)),se={currentLocation:f.location,nextLocation:R}}C(Se({},_,{actionData:V,loaderData:G,historyAction:O,location:R,initialized:!0,navigation:Kn,revalidation:"idle",restoreScrollPosition:to(R,_.matches||f.matches),preventScrollReset:J,blockers:H}),{viewTransitionOpts:se,flushSync:Q===!0}),O=Oe.Pop,j=!1,L=!1,Y=!1,X=!1,te=[]}async function Be(R,_){if(typeof R=="number"){e.history.go(R);return}let T=ha(f.location,f.matches,l,d.v7_prependBasename,R,d.v7_relativeSplatPath,_==null?void 0:_.fromRouteId,_==null?void 0:_.relative),{path:F,submission:$,error:Q}=yi(d.v7_normalizeFormMethod,!1,T,_),ae=f.location,V=da(f.location,F,_&&_.state);V=Se({},V,e.history.encodeLocation(V));let G=_&&_.replace!=null?_.replace:void 0,H=Oe.Push;G===!0?H=Oe.Replace:G===!1||$!=null&&Ve($.formMethod)&&$.formAction===f.location.pathname+f.location.search&&(H=Oe.Replace);let J=_&&"preventScrollReset"in _?_.preventScrollReset===!0:void 0,se=(_&&_.flushSync)===!0,ce=Qa({currentLocation:ae,nextLocation:V,historyAction:H});if(ce){Or(ce,{state:"blocked",location:V,proceed(){Or(ce,{state:"proceeding",proceed:void 0,reset:void 0,location:V}),Be(R,_)},reset(){let Me=new Map(f.blockers);Me.set(ce,Ft),C({blockers:Me})}});return}return await yt(H,V,{submission:$,pendingError:Q,preventScrollReset:J,replace:_&&_.replace,enableViewTransition:_&&_.viewTransition,flushSync:se})}function vt(){if(yn(),C({revalidation:"loading"}),f.navigation.state!=="submitting"){if(f.navigation.state==="idle"){yt(f.historyAction,f.location,{startUninterruptedRevalidation:!0});return}yt(O||f.historyAction,f.navigation.location,{overrideNavigation:f.navigation,enableViewTransition:L===!0})}}async function yt(R,_,T){M&&M.abort(),M=null,O=R,Y=(T&&T.startUninterruptedRevalidation)===!0,sl(f.location,f.matches),j=(T&&T.preventScrollReset)===!0,L=(T&&T.enableViewTransition)===!0;let F=s||i,$=T&&T.overrideNavigation,Q=T!=null&&T.initialHydration&&f.matches&&f.matches.length>0&&!g?f.matches:dt(F,_,l),ae=(T&&T.flushSync)===!0;if(Q&&f.initialized&&!X&&Ad(f.location,_)&&!(T&&T.submission&&Ve(T.submission.formMethod))){_e(_,{matches:Q},{flushSync:ae});return}let V=_r(Q,F,_.pathname);if(V.active&&V.matches&&(Q=V.matches),!Q){let{error:xe,notFoundMatches:de,route:Re}=bn(_.pathname);_e(_,{matches:de,loaderData:{},errors:{[Re.id]:xe}},{flushSync:ae});return}M=new AbortController;let G=Mt(e.history,_,M.signal,T&&T.submission),H;if(T&&T.pendingError)H=[Rt(Q).route.id,{type:be.error,error:T.pendingError}];else if(T&&T.submission&&Ve(T.submission.formMethod)){let xe=await Zs(G,_,T.submission,Q,V.active,{replace:T.replace,flushSync:ae});if(xe.shortCircuited)return;if(xe.pendingActionResult){let[de,Re]=xe.pendingActionResult;if(We(Re)&&Wt(Re.error)&&Re.error.status===404){M=null,_e(_,{matches:xe.matches,loaderData:{},errors:{[de]:Re.error}});return}}Q=xe.matches||Q,H=xe.pendingActionResult,$=Jn(_,T.submission),ae=!1,V.active=!1,G=Mt(e.history,G.url,G.signal)}let{shortCircuited:J,matches:se,loaderData:ce,errors:Me}=await Qs(G,_,Q,V.active,$,T&&T.submission,T&&T.fetcherSubmission,T&&T.replace,T&&T.initialHydration===!0,ae,H);J||(M=null,_e(_,Se({matches:se||Q},_i(H),{loaderData:ce,errors:Me})))}async function Zs(R,_,T,F,$,Q){Q===void 0&&(Q={}),yn();let ae=zd(_,T);if(C({navigation:ae},{flushSync:Q.flushSync===!0}),$){let H=await Tr(F,_.pathname,R.signal);if(H.type==="aborted")return{shortCircuited:!0};if(H.type==="error"){let J=Rt(H.partialMatches).route.id;return{matches:H.partialMatches,pendingActionResult:[J,{type:be.error,error:H.error}]}}else if(H.matches)F=H.matches;else{let{notFoundMatches:J,error:se,route:ce}=bn(_.pathname);return{matches:J,pendingActionResult:[ce.id,{type:be.error,error:se}]}}}let V,G=pr(F,_);if(!G.route.action&&!G.route.lazy)V={type:be.error,error:ze(405,{method:R.method,pathname:_.pathname,routeId:G.route.id})};else if(V=(await Vt("action",f,R,[G],F,null))[G.route.id],R.signal.aborted)return{shortCircuited:!0};if(Pt(V)){let H;return Q&&Q.replace!=null?H=Q.replace:H=wi(V.response.headers.get("Location"),new URL(R.url),l)===f.location.pathname+f.location.search,await bt(R,V,!0,{submission:T,replace:H}),{shortCircuited:!0}}if(pt(V))throw ze(400,{type:"defer-action"});if(We(V)){let H=Rt(F,G.route.id);return(Q&&Q.replace)!==!0&&(O=Oe.Push),{matches:F,pendingActionResult:[H.route.id,V]}}return{matches:F,pendingActionResult:[G.route.id,V]}}async function Qs(R,_,T,F,$,Q,ae,V,G,H,J){let se=$||Jn(_,Q),ce=Q||ae||Di(se),Me=!Y&&(!d.v7_partialHydration||!G);if(F){if(Me){let Pe=Ya(J);C(Se({navigation:se},Pe!==void 0?{actionData:Pe}:{}),{flushSync:H})}let fe=await Tr(T,_.pathname,R.signal);if(fe.type==="aborted")return{shortCircuited:!0};if(fe.type==="error"){let Pe=Rt(fe.partialMatches).route.id;return{matches:fe.partialMatches,loaderData:{},errors:{[Pe]:fe.error}}}else if(fe.matches)T=fe.matches;else{let{error:Pe,notFoundMatches:jt,route:Kt}=bn(_.pathname);return{matches:jt,loaderData:{},errors:{[Kt.id]:Pe}}}}let xe=s||i,[de,Re]=Ei(e.history,f,T,ce,_,d.v7_partialHydration&&G===!0,d.v7_skipActionErrorRevalidation,X,te,re,Z,U,k,xe,l,J);if(En(fe=>!(T&&T.some(Pe=>Pe.route.id===fe))||de&&de.some(Pe=>Pe.route.id===fe)),A=++we,de.length===0&&Re.length===0){let fe=Ka();return _e(_,Se({matches:T,loaderData:{},errors:J&&We(J[1])?{[J[0]]:J[1].error}:null},_i(J),fe?{fetchers:new Map(f.fetchers)}:{}),{flushSync:H}),{shortCircuited:!0}}if(Me){let fe={};if(!F){fe.navigation=se;let Pe=Ya(J);Pe!==void 0&&(fe.actionData=Pe)}Re.length>0&&(fe.fetchers=el(Re)),C(fe,{flushSync:H})}Re.forEach(fe=>{lt(fe.key),fe.controller&&ie.set(fe.key,fe.controller)});let Dt=()=>Re.forEach(fe=>lt(fe.key));M&&M.signal.addEventListener("abort",Dt);let{loaderResults:Xt,fetcherResults:at}=await Va(f,T,de,Re,R);if(R.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",Dt),Re.forEach(fe=>ie.delete(fe.key));let Ke=$r(Xt);if(Ke)return await bt(R,Ke.result,!0,{replace:V}),{shortCircuited:!0};if(Ke=$r(at),Ke)return k.add(Ke.key),await bt(R,Ke.result,!0,{replace:V}),{shortCircuited:!0};let{loaderData:xn,errors:Gt}=Pi(f,T,Xt,J,Re,at,ee);ee.forEach((fe,Pe)=>{fe.subscribe(jt=>{(jt||fe.done)&&ee.delete(Pe)})}),d.v7_partialHydration&&G&&f.errors&&(Gt=Se({},f.errors,Gt));let Et=Ka(),Cr=Ja(A),Dr=Et||Cr||Re.length>0;return Se({matches:T,loaderData:xn,errors:Gt},Dr?{fetchers:new Map(f.fetchers)}:{})}function Ya(R){if(R&&!We(R[1]))return{[R[0]]:R[1].data};if(f.actionData)return Object.keys(f.actionData).length===0?null:f.actionData}function el(R){return R.forEach(_=>{let T=f.fetchers.get(_.key),F=lr(void 0,T?T.data:void 0);f.fetchers.set(_.key,F)}),new Map(f.fetchers)}function tl(R,_,T,F){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");lt(R);let $=(F&&F.flushSync)===!0,Q=s||i,ae=ha(f.location,f.matches,l,d.v7_prependBasename,T,d.v7_relativeSplatPath,_,F==null?void 0:F.relative),V=dt(Q,ae,l),G=_r(V,Q,ae);if(G.active&&G.matches&&(V=G.matches),!V){nt(R,_,ze(404,{pathname:ae}),{flushSync:$});return}let{path:H,submission:J,error:se}=yi(d.v7_normalizeFormMethod,!0,ae,F);if(se){nt(R,_,se,{flushSync:$});return}let ce=pr(V,H),Me=(F&&F.preventScrollReset)===!0;if(J&&Ve(J.formMethod)){rl(R,_,H,ce,V,G.active,$,Me,J);return}U.set(R,{routeId:_,path:H}),nl(R,_,H,ce,V,G.active,$,Me,J)}async function rl(R,_,T,F,$,Q,ae,V,G){yn(),U.delete(R);function H(Ce){if(!Ce.route.action&&!Ce.route.lazy){let Nt=ze(405,{method:G.formMethod,pathname:T,routeId:_});return nt(R,_,Nt,{flushSync:ae}),!0}return!1}if(!Q&&H(F))return;let J=f.fetchers.get(R);st(R,$d(G,J),{flushSync:ae});let se=new AbortController,ce=Mt(e.history,T,se.signal,G);if(Q){let Ce=await Tr($,new URL(ce.url).pathname,ce.signal,R);if(Ce.type==="aborted")return;if(Ce.type==="error"){nt(R,_,Ce.error,{flushSync:ae});return}else if(Ce.matches){if($=Ce.matches,F=pr($,T),H(F))return}else{nt(R,_,ze(404,{pathname:T}),{flushSync:ae});return}}ie.set(R,se);let Me=we,de=(await Vt("action",f,ce,[F],$,R))[F.route.id];if(ce.signal.aborted){ie.get(R)===se&&ie.delete(R);return}if(d.v7_fetcherPersist&&Z.has(R)){if(Pt(de)||We(de)){st(R,ft(void 0));return}}else{if(Pt(de))if(ie.delete(R),A>Me){st(R,ft(void 0));return}else return k.add(R),st(R,lr(G)),bt(ce,de,!1,{fetcherSubmission:G,preventScrollReset:V});if(We(de)){nt(R,_,de.error);return}}if(pt(de))throw ze(400,{type:"defer-action"});let Re=f.navigation.location||f.location,Dt=Mt(e.history,Re,se.signal),Xt=s||i,at=f.navigation.state!=="idle"?dt(Xt,f.navigation.location,l):f.matches;K(at,"Didn't find any matches after fetcher action");let Ke=++we;P.set(R,Ke);let xn=lr(G,de.data);f.fetchers.set(R,xn);let[Gt,Et]=Ei(e.history,f,at,G,Re,!1,d.v7_skipActionErrorRevalidation,X,te,re,Z,U,k,Xt,l,[F.route.id,de]);Et.filter(Ce=>Ce.key!==R).forEach(Ce=>{let Nt=Ce.key,ro=f.fetchers.get(Nt),cl=lr(void 0,ro?ro.data:void 0);f.fetchers.set(Nt,cl),lt(Nt),Ce.controller&&ie.set(Nt,Ce.controller)}),C({fetchers:new Map(f.fetchers)});let Cr=()=>Et.forEach(Ce=>lt(Ce.key));se.signal.addEventListener("abort",Cr);let{loaderResults:Dr,fetcherResults:fe}=await Va(f,at,Gt,Et,Dt);if(se.signal.aborted)return;se.signal.removeEventListener("abort",Cr),P.delete(R),ie.delete(R),Et.forEach(Ce=>ie.delete(Ce.key));let Pe=$r(Dr);if(Pe)return bt(Dt,Pe.result,!1,{preventScrollReset:V});if(Pe=$r(fe),Pe)return k.add(Pe.key),bt(Dt,Pe.result,!1,{preventScrollReset:V});let{loaderData:jt,errors:Kt}=Pi(f,at,Dr,void 0,Et,fe,ee);if(f.fetchers.has(R)){let Ce=ft(de.data);f.fetchers.set(R,Ce)}Ja(Ke),f.navigation.state==="loading"&&Ke>A?(K(O,"Expected pending action"),M&&M.abort(),_e(f.navigation.location,{matches:at,loaderData:jt,errors:Kt,fetchers:new Map(f.fetchers)})):(C({errors:Kt,loaderData:Oi(f.loaderData,jt,at,Kt),fetchers:new Map(f.fetchers)}),X=!1)}async function nl(R,_,T,F,$,Q,ae,V,G){let H=f.fetchers.get(R);st(R,lr(G,H?H.data:void 0),{flushSync:ae});let J=new AbortController,se=Mt(e.history,T,J.signal);if(Q){let de=await Tr($,new URL(se.url).pathname,se.signal,R);if(de.type==="aborted")return;if(de.type==="error"){nt(R,_,de.error,{flushSync:ae});return}else if(de.matches)$=de.matches,F=pr($,T);else{nt(R,_,ze(404,{pathname:T}),{flushSync:ae});return}}ie.set(R,J);let ce=we,xe=(await Vt("loader",f,se,[F],$,R))[F.route.id];if(pt(xe)&&(xe=await Fa(xe,se.signal,!0)||xe),ie.get(R)===J&&ie.delete(R),!se.signal.aborted){if(Z.has(R)){st(R,ft(void 0));return}if(Pt(xe))if(A>ce){st(R,ft(void 0));return}else{k.add(R),await bt(se,xe,!1,{preventScrollReset:V});return}if(We(xe)){nt(R,_,xe.error);return}K(!pt(xe),"Unhandled fetcher deferred data"),st(R,ft(xe.data))}}async function bt(R,_,T,F){let{submission:$,fetcherSubmission:Q,preventScrollReset:ae,replace:V}=F===void 0?{}:F;_.response.headers.has("X-Remix-Revalidate")&&(X=!0);let G=_.response.headers.get("Location");K(G,"Expected a Location header on the redirect Response"),G=wi(G,new URL(R.url),l);let H=da(f.location,G,{_isRedirect:!0});if(r){let de=!1;if(_.response.headers.has("X-Remix-Reload-Document"))de=!0;else if(ka.test(G)){const Re=e.history.createURL(G);de=Re.origin!==t.location.origin||_t(Re.pathname,l)==null}if(de){V?t.location.replace(G):t.location.assign(G);return}}M=null;let J=V===!0||_.response.headers.has("X-Remix-Replace")?Oe.Replace:Oe.Push,{formMethod:se,formAction:ce,formEncType:Me}=f.navigation;!$&&!Q&&se&&ce&&Me&&($=Di(f.navigation));let xe=$||Q;if(Ed.has(_.response.status)&&xe&&Ve(xe.formMethod))await yt(J,H,{submission:Se({},xe,{formAction:G}),preventScrollReset:ae||j,enableViewTransition:T?L:void 0});else{let de=Jn(H,$);await yt(J,H,{overrideNavigation:de,fetcherSubmission:Q,preventScrollReset:ae||j,enableViewTransition:T?L:void 0})}}async function Vt(R,_,T,F,$,Q){let ae,V={};try{ae=await Td(u,R,_,T,F,$,Q,o,a)}catch(G){return F.forEach(H=>{V[H.route.id]={type:be.error,error:G}}),V}for(let[G,H]of Object.entries(ae))if(Md(H)){let J=H.result;V[G]={type:be.redirect,response:jd(J,T,G,$,l,d.v7_relativeSplatPath)}}else V[G]=await Dd(H);return V}async function Va(R,_,T,F,$){let Q=R.matches,ae=Vt("loader",R,$,T,_,null),V=Promise.all(F.map(async J=>{if(J.matches&&J.match&&J.controller){let ce=(await Vt("loader",R,Mt(e.history,J.path,J.controller.signal),[J.match],J.matches,J.key))[J.match.route.id];return{[J.key]:ce}}else return Promise.resolve({[J.key]:{type:be.error,error:ze(404,{pathname:J.path})}})})),G=await ae,H=(await V).reduce((J,se)=>Object.assign(J,se),{});return await Promise.all([Fd(_,G,$.signal,Q,R.loaderData),Ld(_,H,F)]),{loaderResults:G,fetcherResults:H}}function yn(){X=!0,te.push(...En()),U.forEach((R,_)=>{ie.has(_)&&re.add(_),lt(_)})}function st(R,_,T){T===void 0&&(T={}),f.fetchers.set(R,_),C({fetchers:new Map(f.fetchers)},{flushSync:(T&&T.flushSync)===!0})}function nt(R,_,T,F){F===void 0&&(F={});let $=Rt(f.matches,_);Pr(R),C({errors:{[$.route.id]:T},fetchers:new Map(f.fetchers)},{flushSync:(F&&F.flushSync)===!0})}function Xa(R){return W.set(R,(W.get(R)||0)+1),Z.has(R)&&Z.delete(R),f.fetchers.get(R)||xd}function Pr(R){let _=f.fetchers.get(R);ie.has(R)&&!(_&&_.state==="loading"&&P.has(R))&&lt(R),U.delete(R),P.delete(R),k.delete(R),d.v7_fetcherPersist&&Z.delete(R),re.delete(R),f.fetchers.delete(R)}function al(R){let _=(W.get(R)||0)-1;_<=0?(W.delete(R),Z.add(R),d.v7_fetcherPersist||Pr(R)):W.set(R,_),C({fetchers:new Map(f.fetchers)})}function lt(R){let _=ie.get(R);_&&(_.abort(),ie.delete(R))}function Ga(R){for(let _ of R){let T=Xa(_),F=ft(T.data);f.fetchers.set(_,F)}}function Ka(){let R=[],_=!1;for(let T of k){let F=f.fetchers.get(T);K(F,"Expected fetcher: "+T),F.state==="loading"&&(k.delete(T),R.push(T),_=!0)}return Ga(R),_}function Ja(R){let _=[];for(let[T,F]of P)if(F<R){let $=f.fetchers.get(T);K($,"Expected fetcher: "+T),$.state==="loading"&&(lt(T),P.delete(T),_.push(T))}return Ga(_),_.length>0}function ol(R,_){let T=f.blockers.get(R)||Ft;return B.get(R)!==_&&B.set(R,_),T}function Za(R){f.blockers.delete(R),B.delete(R)}function Or(R,_){let T=f.blockers.get(R)||Ft;K(T.state==="unblocked"&&_.state==="blocked"||T.state==="blocked"&&_.state==="blocked"||T.state==="blocked"&&_.state==="proceeding"||T.state==="blocked"&&_.state==="unblocked"||T.state==="proceeding"&&_.state==="unblocked","Invalid blocker state transition: "+T.state+" -> "+_.state);let F=new Map(f.blockers);F.set(R,_),C({blockers:F})}function Qa(R){let{currentLocation:_,nextLocation:T,historyAction:F}=R;if(B.size===0)return;B.size>1&&je(!1,"A router only supports one blocker at a time");let $=Array.from(B.entries()),[Q,ae]=$[$.length-1],V=f.blockers.get(Q);if(!(V&&V.state==="proceeding")&&ae({currentLocation:_,nextLocation:T,historyAction:F}))return Q}function bn(R){let _=ze(404,{pathname:R}),T=s||i,{matches:F,route:$}=Ti(T);return En(),{notFoundMatches:F,route:$,error:_}}function En(R){let _=[];return ee.forEach((T,F)=>{(!R||R(F))&&(T.cancel(),_.push(F),ee.delete(F))}),_}function il(R,_,T){if(w=R,S=_,E=T||null,!h&&f.navigation===Kn){h=!0;let F=to(f.location,f.matches);F!=null&&C({restoreScrollPosition:F})}return()=>{w=null,S=null,E=null}}function eo(R,_){return E&&E(R,_.map(F=>Os(F,f.loaderData)))||R.key}function sl(R,_){if(w&&S){let T=eo(R,_);w[T]=S()}}function to(R,_){if(w){let T=eo(R,_),F=w[T];if(typeof F=="number")return F}return null}function _r(R,_,T){if(m)if(R){if(Object.keys(R[0].params).length>0)return{active:!0,matches:Gr(_,T,l,!0)}}else return{active:!0,matches:Gr(_,T,l,!0)||[]};return{active:!1,matches:null}}async function Tr(R,_,T,F){if(!m)return{type:"success",matches:R};let $=R;for(;;){let Q=s==null,ae=s||i,V=o;try{await m({signal:T,path:_,matches:$,fetcherKey:F,patch:(J,se)=>{T.aborted||Si(J,se,ae,V,a)}})}catch(J){return{type:"error",error:J,partialMatches:$}}finally{Q&&!T.aborted&&(i=[...i])}if(T.aborted)return{type:"aborted"};let G=dt(ae,_,l);if(G)return{type:"success",matches:G};let H=Gr(ae,_,l,!0);if(!H||$.length===H.length&&$.every((J,se)=>J.route.id===H[se].route.id))return{type:"success",matches:null};$=H}}function ll(R){o={},s=Qr(R,a,void 0,o)}function ul(R,_){let T=s==null;Si(R,_,s||i,o,a),T&&(i=[...i],C({}))}return x={get basename(){return l},get future(){return d},get state(){return f},get routes(){return i},get window(){return t},initialize:ue,subscribe:Ae,enableScrollRestoration:il,navigate:Be,fetch:tl,revalidate:vt,createHref:R=>e.history.createHref(R),encodeLocation:R=>e.history.encodeLocation(R),getFetcher:Xa,deleteFetcher:al,dispose:le,getBlocker:ol,deleteBlocker:Za,patchRoutes:ul,_internalFetchControllers:ie,_internalActiveDeferreds:ee,_internalSetRoutes:ll},x}function Rd(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function ha(e,t,r,n,a,o,i,s){let l,u;if(i){l=[];for(let d of t)if(l.push(d),d.route.id===i){u=d;break}}else l=t,u=t[t.length-1];let m=mn(a||".",hn(l,o),_t(e.pathname,r)||e.pathname,s==="path");if(a==null&&(m.search=e.search,m.hash=e.hash),(a==null||a===""||a===".")&&u){let d=La(m.search);if(u.route.index&&!d)m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&d){let b=new URLSearchParams(m.search),y=b.getAll("index");b.delete("index"),y.filter(E=>E).forEach(E=>b.append("index",E));let w=b.toString();m.search=w?"?"+w:""}}return n&&r!=="/"&&(m.pathname=m.pathname==="/"?r:ot([r,m.pathname])),wr(m)}function yi(e,t,r,n){if(!n||!Rd(n))return{path:r};if(n.formMethod&&!kd(n.formMethod))return{path:r,error:ze(405,{method:n.formMethod})};let a=()=>({path:r,error:ze(400,{type:"invalid-body"})}),o=n.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),s=ks(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ve(i))return a();let b=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((y,w)=>{let[E,S]=w;return""+y+E+"="+S+`
352
+ `},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:b}}}else if(n.formEncType==="application/json"){if(!Ve(i))return a();try{let b=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:b,text:void 0}}}catch{return a()}}}K(typeof FormData=="function","FormData is not available in this environment");let l,u;if(n.formData)l=ga(n.formData),u=n.formData;else if(n.body instanceof FormData)l=ga(n.body),u=n.body;else if(n.body instanceof URLSearchParams)l=n.body,u=Ri(l);else if(n.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(n.body),u=Ri(l)}catch{return a()}let m={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Ve(m.formMethod))return{path:r,submission:m};let d=Ge(r);return t&&d.search&&La(d.search)&&l.append("index",""),d.search="?"+l,{path:wr(d),submission:m}}function bi(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(a=>a.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function Ei(e,t,r,n,a,o,i,s,l,u,m,d,b,y,w,E){let S=E?We(E[1])?E[1].error:E[1].data:void 0,h=e.createURL(t.location),c=e.createURL(a),g=r;o&&t.errors?g=bi(r,Object.keys(t.errors)[0],!0):E&&We(E[1])&&(g=bi(r,E[0]));let v=E?E[1].statusCode:void 0,p=i&&v&&v>=400,x=g.filter((O,j)=>{let{route:M}=O;if(M.lazy)return!0;if(M.loader==null)return!1;if(o)return ma(M,t.loaderData,t.errors);if(Pd(t.loaderData,t.matches[j],O)||l.some(N=>N===O.route.id))return!0;let L=t.matches[j],q=O;return xi(O,Se({currentUrl:h,currentParams:L.params,nextUrl:c,nextParams:q.params},n,{actionResult:S,actionStatus:v,defaultShouldRevalidate:p?!1:s||h.pathname+h.search===c.pathname+c.search||h.search!==c.search||Ms(L,q)}))}),f=[];return d.forEach((O,j)=>{if(o||!r.some(Y=>Y.route.id===O.routeId)||m.has(j))return;let M=dt(y,O.path,w);if(!M){f.push({key:j,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let L=t.fetchers.get(j),q=pr(M,O.path),N=!1;b.has(j)?N=!1:u.has(j)?(u.delete(j),N=!0):L&&L.state!=="idle"&&L.data===void 0?N=s:N=xi(q,Se({currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:c,nextParams:r[r.length-1].params},n,{actionResult:S,actionStatus:v,defaultShouldRevalidate:p?!1:s})),N&&f.push({key:j,routeId:O.routeId,path:O.path,matches:M,match:q,controller:new AbortController})}),[x,f]}function ma(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,a=r!=null&&r[e.id]!==void 0;return!n&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!a}function Pd(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function Ms(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function xi(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function Si(e,t,r,n,a){var o;let i;if(e){let u=n[e];K(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),i=u.children}else i=r;let s=t.filter(u=>!i.some(m=>Is(u,m))),l=Qr(s,a,[e||"_","patch",String(((o=i)==null?void 0:o.length)||"0")],n);i.push(...l)}function Is(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var a;return(a=t.children)==null?void 0:a.some(o=>Is(r,o))}):!1}async function Od(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];K(a,"No route found in manifest");let o={};for(let i in n){let l=a[i]!==void 0&&i!=="hasErrorBoundary";je(!l,'Route "'+a.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!l&&!Bf.has(i)&&(o[i]=n[i])}Object.assign(a,o),Object.assign(a,Se({},t(a),{lazy:void 0}))}async function _d(e){let{matches:t}=e,r=t.filter(a=>a.shouldLoad);return(await Promise.all(r.map(a=>a.resolve()))).reduce((a,o,i)=>Object.assign(a,{[r[i].route.id]:o}),{})}async function Td(e,t,r,n,a,o,i,s,l,u){let m=o.map(y=>y.route.lazy?Od(y.route,l,s):void 0),d=o.map((y,w)=>{let E=m[w],S=a.some(c=>c.route.id===y.route.id);return Se({},y,{shouldLoad:S,resolve:async c=>(c&&n.method==="GET"&&(y.route.lazy||y.route.loader)&&(S=!0),S?Cd(t,n,y,E,c,u):Promise.resolve({type:be.data,result:void 0}))})}),b=await e({matches:d,request:n,params:o[0].params,fetcherKey:i,context:u});try{await Promise.all(m)}catch{}return b}async function Cd(e,t,r,n,a,o){let i,s,l=u=>{let m,d=new Promise((w,E)=>m=E);s=()=>m(),t.signal.addEventListener("abort",s);let b=w=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):u({request:t,params:r.params,context:o},...w!==void 0?[w]:[]),y=(async()=>{try{return{type:"data",result:await(a?a(E=>b(E)):b())}}catch(w){return{type:"error",result:w}}})();return Promise.race([y,d])};try{let u=r.route[e];if(n)if(u){let m,[d]=await Promise.all([l(u).catch(b=>{m=b}),n]);if(m!==void 0)throw m;i=d}else if(await n,u=r.route[e],u)i=await l(u);else if(e==="action"){let m=new URL(t.url),d=m.pathname+m.search;throw ze(405,{method:t.method,pathname:d,routeId:r.route.id})}else return{type:be.data,result:void 0};else if(u)i=await l(u);else{let m=new URL(t.url),d=m.pathname+m.search;throw ze(404,{pathname:d})}K(i.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:be.error,result:u}}finally{s&&t.signal.removeEventListener("abort",s)}return i}async function Dd(e){let{result:t,type:r}=e;if(Fs(t)){let d;try{let b=t.headers.get("Content-Type");b&&/\bapplication\/json\b/.test(b)?t.body==null?d=null:d=await t.json():d=await t.text()}catch(b){return{type:be.error,error:b}}return r===be.error?{type:be.error,error:new pa(t.status,t.statusText,d),statusCode:t.status,headers:t.headers}:{type:be.data,data:d,statusCode:t.status,headers:t.headers}}if(r===be.error){if(Ci(t)){var n,a;if(t.data instanceof Error){var o,i;return{type:be.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}}return{type:be.error,error:new pa(((n=t.init)==null?void 0:n.status)||500,void 0,t.data),statusCode:Wt(t)?t.status:void 0,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}}return{type:be.error,error:t,statusCode:Wt(t)?t.status:void 0}}if(Id(t)){var s,l;return{type:be.deferred,deferredData:t,statusCode:(s=t.init)==null?void 0:s.status,headers:((l=t.init)==null?void 0:l.headers)&&new Headers(t.init.headers)}}if(Ci(t)){var u,m;return{type:be.data,data:t.data,statusCode:(u=t.init)==null?void 0:u.status,headers:(m=t.init)!=null&&m.headers?new Headers(t.init.headers):void 0}}return{type:be.data,data:t}}function jd(e,t,r,n,a,o){let i=e.headers.get("Location");if(K(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!ka.test(i)){let s=n.slice(0,n.findIndex(l=>l.route.id===r)+1);i=ha(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}function wi(e,t,r){if(ka.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=_t(a.pathname,r)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function Mt(e,t,r,n){let a=e.createURL(ks(t)).toString(),o={signal:r};if(n&&Ve(n.formMethod)){let{formMethod:i,formEncType:s}=n;o.method=i.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):s==="text/plain"?o.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?o.body=ga(n.formData):o.body=n.formData}return new Request(a,o)}function ga(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function Ri(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Nd(e,t,r,n,a){let o={},i=null,s,l=!1,u={},m=r&&We(r[1])?r[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let b=d.route.id,y=t[b];if(K(!Pt(y),"Cannot handle redirect results in processLoaderData"),We(y)){let w=y.error;m!==void 0&&(w=m,m=void 0),i=i||{};{let E=Rt(e,b);i[E.route.id]==null&&(i[E.route.id]=w)}o[b]=void 0,l||(l=!0,s=Wt(y.error)?y.error.status:500),y.headers&&(u[b]=y.headers)}else pt(y)?(n.set(b,y.deferredData),o[b]=y.deferredData.data,y.statusCode!=null&&y.statusCode!==200&&!l&&(s=y.statusCode),y.headers&&(u[b]=y.headers)):(o[b]=y.data,y.statusCode&&y.statusCode!==200&&!l&&(s=y.statusCode),y.headers&&(u[b]=y.headers))}),m!==void 0&&r&&(i={[r[0]]:m},o[r[0]]=void 0),{loaderData:o,errors:i,statusCode:s||200,loaderHeaders:u}}function Pi(e,t,r,n,a,o,i){let{loaderData:s,errors:l}=Nd(t,r,n,i);return a.forEach(u=>{let{key:m,match:d,controller:b}=u,y=o[m];if(K(y,"Did not find corresponding fetcher result"),!(b&&b.signal.aborted))if(We(y)){let w=Rt(e.matches,d==null?void 0:d.route.id);l&&l[w.route.id]||(l=Se({},l,{[w.route.id]:y.error})),e.fetchers.delete(m)}else if(Pt(y))K(!1,"Unhandled fetcher revalidation redirect");else if(pt(y))K(!1,"Unhandled fetcher deferred data");else{let w=ft(y.data);e.fetchers.set(m,w)}}),{loaderData:s,errors:l}}function Oi(e,t,r,n){let a=Se({},t);for(let o of r){let i=o.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(a[i]=t[i]):e[i]!==void 0&&o.route.loader&&(a[i]=e[i]),n&&n.hasOwnProperty(i))break}return a}function _i(e){return e?We(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Rt(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function Ti(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ze(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",a&&r&&n?l="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?l="defer() is not supported in actions":o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):e===404?(s="Not Found",l='No route matches URL "'+r+'"'):e===405&&(s="Method Not Allowed",a&&r&&n?l="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new pa(e||500,s,new Error(l),!0)}function $r(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(Pt(a))return{key:n,result:a}}}function ks(e){let t=typeof e=="string"?Ge(e):e;return wr(Se({},t,{hash:""}))}function Ad(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Md(e){return Fs(e.result)&&bd.has(e.result.status)}function pt(e){return e.type===be.deferred}function We(e){return e.type===be.error}function Pt(e){return(e&&e.type)===be.redirect}function Ci(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Id(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Fs(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function kd(e){return yd.has(e.toLowerCase())}function Ve(e){return gd.has(e.toLowerCase())}async function Fd(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[s,l]=o[i],u=e.find(b=>(b==null?void 0:b.route.id)===s);if(!u)continue;let m=n.find(b=>b.route.id===u.route.id),d=m!=null&&!Ms(m,u)&&(a&&a[u.route.id])!==void 0;pt(l)&&d&&await Fa(l,r,!1).then(b=>{b&&(t[s]=b)})}}async function Ld(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],s=t[a];e.find(u=>(u==null?void 0:u.route.id)===o)&&pt(s)&&(K(i,"Expected an AbortController for revalidating fetcher deferred result"),await Fa(s,i.signal,!0).then(u=>{u&&(t[a]=u)}))}}async function Fa(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:be.data,data:e.deferredData.unwrappedData}}catch(a){return{type:be.error,error:a}}return{type:be.data,data:e.deferredData.data}}}function La(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function pr(e,t){let r=typeof t=="string"?Ge(t).search:t.search;if(e[e.length-1].route.index&&La(r||""))return e[e.length-1];let n=js(e);return n[n.length-1]}function Di(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function Jn(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function zd(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function lr(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function $d(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ft(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Ud(e,t){try{let r=e.sessionStorage.getItem(As);if(r){let n=JSON.parse(r);for(let[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function Wd(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(As,JSON.stringify(r))}catch(n){je(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/**
353
+ * React Router v6.30.2
354
+ *
355
+ * Copyright (c) Remix Software Inc.
356
+ *
357
+ * This source code is licensed under the MIT license found in the
358
+ * LICENSE.md file in the root directory of this source tree.
359
+ *
360
+ * @license MIT
361
+ */function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ht.apply(this,arguments)}const Yt=D.createContext(null);process.env.NODE_ENV!=="production"&&(Yt.displayName="DataRouter");const gn=D.createContext(null);process.env.NODE_ENV!=="production"&&(gn.displayName="DataRouterState");const yr=D.createContext(null);process.env.NODE_ENV!=="production"&&(yr.displayName="Await");const it=D.createContext(null);process.env.NODE_ENV!=="production"&&(it.displayName="Navigation");const Tt=D.createContext(null);process.env.NODE_ENV!=="production"&&(Tt.displayName="Location");const Ye=D.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(Ye.displayName="Route");const za=D.createContext(null);process.env.NODE_ENV!=="production"&&(za.displayName="RouteError");function qd(e,t){let{relative:r}=t===void 0?{}:t;mt()||(process.env.NODE_ENV!=="production"?K(!1,"useHref() may be used only in the context of a <Router> component."):K(!1));let{basename:n,navigator:a}=D.useContext(it),{hash:o,pathname:i,search:s}=Ws(e,{relative:r}),l=i;return n!=="/"&&(l=i==="/"?n:ot([n,i])),a.createHref({pathname:l,search:s,hash:o})}function mt(){return D.useContext(Tt)!=null}function Ct(){return mt()||(process.env.NODE_ENV!=="production"?K(!1,"useLocation() may be used only in the context of a <Router> component."):K(!1)),D.useContext(Tt).location}function Bd(){return D.useContext(Tt).navigationType}function Hd(e){mt()||(process.env.NODE_ENV!=="production"?K(!1,"useMatch() may be used only in the context of a <Router> component."):K(!1));let{pathname:t}=Ct();return D.useMemo(()=>en(e,Cs(t)),[t,e])}const Ls="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function zs(e){D.useContext(it).static||D.useLayoutEffect(e)}function $a(){let{isDataRoute:e}=D.useContext(Ye);return e?up():Yd()}function Yd(){mt()||(process.env.NODE_ENV!=="production"?K(!1,"useNavigate() may be used only in the context of a <Router> component."):K(!1));let e=D.useContext(Yt),{basename:t,future:r,navigator:n}=D.useContext(it),{matches:a}=D.useContext(Ye),{pathname:o}=Ct(),i=JSON.stringify(hn(a,r.v7_relativeSplatPath)),s=D.useRef(!1);return zs(()=>{s.current=!0}),D.useCallback(function(u,m){if(m===void 0&&(m={}),process.env.NODE_ENV!=="production"&&je(s.current,Ls),!s.current)return;if(typeof u=="number"){n.go(u);return}let d=mn(u,JSON.parse(i),o,m.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:ot([t,d.pathname])),(m.replace?n.replace:n.push)(d,m.state,m)},[t,n,i,o,e])}const $s=D.createContext(null);function Vd(){return D.useContext($s)}function Us(e){let t=D.useContext(Ye).outlet;return t&&D.createElement($s.Provider,{value:e},t)}function Xd(){let{matches:e}=D.useContext(Ye),t=e[e.length-1];return t?t.params:{}}function Ws(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=D.useContext(it),{matches:a}=D.useContext(Ye),{pathname:o}=Ct(),i=JSON.stringify(hn(a,n.v7_relativeSplatPath));return D.useMemo(()=>mn(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function qs(e,t){return Ua(e,t)}function Ua(e,t,r,n){mt()||(process.env.NODE_ENV!=="production"?K(!1,"useRoutes() may be used only in the context of a <Router> component."):K(!1));let{navigator:a}=D.useContext(it),{matches:o}=D.useContext(Ye),i=o[o.length-1],s=i?i.params:{},l=i?i.pathname:"/",u=i?i.pathnameBase:"/",m=i&&i.route;if(process.env.NODE_ENV!=="production"){let c=m&&m.path||"";Xs(l,!m||c.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+l+'" (under <Route path="'+c+'">) but the ')+`parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
362
+
363
+ `+('Please change the parent <Route path="'+c+'"> to <Route ')+('path="'+(c==="/"?"*":c+"/*")+'">.'))}let d=Ct(),b;if(t){var y;let c=typeof t=="string"?Ge(t):t;u==="/"||(y=c.pathname)!=null&&y.startsWith(u)||(process.env.NODE_ENV!=="production"?K(!1,"When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was "+('matched by all parent routes. The current pathname base is "'+u+'" ')+('but pathname "'+c.pathname+'" was given in the `location` prop.')):K(!1)),b=c}else b=d;let w=b.pathname||"/",E=w;if(u!=="/"){let c=u.replace(/^\//,"").split("/");E="/"+w.replace(/^\//,"").split("/").slice(c.length).join("/")}let S=dt(e,{pathname:E});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&je(m||S!=null,'No routes matched location "'+b.pathname+b.search+b.hash+'" '),process.env.NODE_ENV!=="production"&&je(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,'Matched leaf route at location "'+b.pathname+b.search+b.hash+'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let h=Bs(S&&S.map(c=>Object.assign({},c,{params:Object.assign({},s,c.params),pathname:ot([u,a.encodeLocation?a.encodeLocation(c.pathname).pathname:c.pathname]),pathnameBase:c.pathnameBase==="/"?u:ot([u,a.encodeLocation?a.encodeLocation(c.pathnameBase).pathname:c.pathnameBase])})),o,r,n);return t&&h?D.createElement(Tt.Provider,{value:{location:ht({pathname:"/",search:"",hash:"",state:null,key:"default"},b),navigationType:Oe.Pop}},h):h}function Gd(){let e=Hs(),t=Wt(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n},i=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),i=D.createElement(D.Fragment,null,D.createElement("p",null,"💿 Hey developer 👋"),D.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",D.createElement("code",{style:o},"ErrorBoundary")," or"," ",D.createElement("code",{style:o},"errorElement")," prop on your route."))),D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},t),r?D.createElement("pre",{style:a},r):null,i)}const Kd=D.createElement(Gd,null);class Jd extends D.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?D.createElement(Ye.Provider,{value:this.props.routeContext},D.createElement(za.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Zd(e){let{routeContext:t,match:r,children:n}=e,a=D.useContext(Yt);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),D.createElement(Ye.Provider,{value:t},n)}function Bs(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,s=(a=r)==null?void 0:a.errors;if(s!=null){let m=i.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);m>=0||(process.env.NODE_ENV!=="production"?K(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(s).join(",")):K(!1)),i=i.slice(0,Math.min(i.length,m+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let m=0;m<i.length;m++){let d=i[m];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=m),d.route.id){let{loaderData:b,errors:y}=r,w=d.route.loader&&b[d.route.id]===void 0&&(!y||y[d.route.id]===void 0);if(d.route.lazy||w){l=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((m,d,b)=>{let y,w=!1,E=null,S=null;r&&(y=s&&d.route.id?s[d.route.id]:void 0,E=d.route.errorElement||Kd,l&&(u<0&&b===0?(Xs("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,S=null):u===b&&(w=!0,S=d.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,b+1)),c=()=>{let g;return y?g=E:w?g=S:d.route.Component?g=D.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=m,D.createElement(Zd,{match:d,routeContext:{outlet:m,matches:h,isDataRoute:r!=null},children:g})};return r&&(d.route.ErrorBoundary||d.route.errorElement||b===0)?D.createElement(Jd,{location:r.location,revalidation:r.revalidation,component:E,error:y,children:c(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):c()},null)}var vn=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(vn||{}),Ue=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(Ue||{});function Wa(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function qa(e){let t=D.useContext(Yt);return t||(process.env.NODE_ENV!=="production"?K(!1,Wa(e)):K(!1)),t}function gt(e){let t=D.useContext(gn);return t||(process.env.NODE_ENV!=="production"?K(!1,Wa(e)):K(!1)),t}function Qd(e){let t=D.useContext(Ye);return t||(process.env.NODE_ENV!=="production"?K(!1,Wa(e)):K(!1)),t}function Rr(e){let t=Qd(e),r=t.matches[t.matches.length-1];return r.route.id||(process.env.NODE_ENV!=="production"?K(!1,e+' can only be used on routes that contain a unique "id"'):K(!1)),r.route.id}function ep(){return Rr(Ue.UseRouteId)}function tp(){return gt(Ue.UseNavigation).navigation}function rp(){let e=qa(vn.UseRevalidator),t=gt(Ue.UseRevalidator);return D.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function np(){let{matches:e,loaderData:t}=gt(Ue.UseMatches);return D.useMemo(()=>e.map(r=>Os(r,t)),[e,t])}function ap(){let e=gt(Ue.UseLoaderData),t=Rr(Ue.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function op(e){return gt(Ue.UseRouteLoaderData).loaderData[e]}function ip(){let e=gt(Ue.UseActionData),t=Rr(Ue.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function Hs(){var e;let t=D.useContext(za),r=gt(Ue.UseRouteError),n=Rr(Ue.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function Ys(){let e=D.useContext(yr);return e==null?void 0:e._data}function sp(){let e=D.useContext(yr);return e==null?void 0:e._error}let lp=0;function Vs(e){let{router:t,basename:r}=qa(vn.UseBlocker),n=gt(Ue.UseBlocker),[a,o]=D.useState(""),i=D.useCallback(s=>{if(typeof e!="function")return!!e;if(r==="/")return e(s);let{currentLocation:l,nextLocation:u,historyAction:m}=s;return e({currentLocation:ht({},l,{pathname:_t(l.pathname,r)||l.pathname}),nextLocation:ht({},u,{pathname:_t(u.pathname,r)||u.pathname}),historyAction:m})},[r,e]);return D.useEffect(()=>{let s=String(++lp);return o(s),()=>t.deleteBlocker(s)},[t]),D.useEffect(()=>{a!==""&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):Ft}function up(){let{router:e}=qa(vn.UseNavigateStable),t=Rr(Ue.UseNavigateStable),r=D.useRef(!1);return zs(()=>{r.current=!0}),D.useCallback(function(a,o){o===void 0&&(o={}),process.env.NODE_ENV!=="production"&&je(r.current,Ls),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,ht({fromRouteId:t},o)))},[e,t])}const ji={};function Xs(e,t,r){!t&&!ji[e]&&(ji[e]=!0,process.env.NODE_ENV!=="production"&&je(!1,r))}const Ni={};function cp(e,t){process.env.NODE_ENV!=="production"&&!Ni[t]&&(Ni[t]=!0,console.warn(t))}const It=(e,t,r)=>cp(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+r+"."));function Ba(e,t){(e==null?void 0:e.v7_startTransition)===void 0&&It("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath===void 0)&&It("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist===void 0&&It("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod===void 0&&It("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration===void 0&&It("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation===void 0&&It("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}const fp="startTransition",rn=D[fp];function dp(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=D.useState(r.state),{v7_startTransition:i}=n||{},s=D.useCallback(d=>{i&&rn?rn(()=>o(d)):o(d)},[o,i]);D.useLayoutEffect(()=>r.subscribe(s),[r,s]),D.useEffect(()=>{process.env.NODE_ENV!=="production"&&je(t==null||!r.future.v7_partialHydration,"`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead")},[]);let l=D.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:d=>r.navigate(d),push:(d,b,y)=>r.navigate(d,{state:b,preventScrollReset:y==null?void 0:y.preventScrollReset}),replace:(d,b,y)=>r.navigate(d,{replace:!0,state:b,preventScrollReset:y==null?void 0:y.preventScrollReset})}),[r]),u=r.basename||"/",m=D.useMemo(()=>({router:r,navigator:l,static:!1,basename:u}),[r,l,u]);return D.useEffect(()=>Ba(n,r.future),[r,n]),D.createElement(D.Fragment,null,D.createElement(Yt.Provider,{value:m},D.createElement(gn.Provider,{value:a},D.createElement(Ha,{basename:u,location:a.location,navigationType:a.historyAction,navigator:l,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},a.initialized||r.future.v7_partialHydration?D.createElement(pp,{routes:r.routes,future:r.future,state:a}):t))),null)}function pp(e){let{routes:t,future:r,state:n}=e;return Ua(t,void 0,n,r)}function hp(e){let{basename:t,children:r,initialEntries:n,initialIndex:a,future:o}=e,i=D.useRef();i.current==null&&(i.current=Ps({initialEntries:n,initialIndex:a,v5Compat:!0}));let s=i.current,[l,u]=D.useState({action:s.action,location:s.location}),{v7_startTransition:m}=o||{},d=D.useCallback(b=>{m&&rn?rn(()=>u(b)):u(b)},[u,m]);return D.useLayoutEffect(()=>s.listen(d),[s,d]),D.useEffect(()=>Ba(o),[o]),D.createElement(Ha,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:s,future:o})}function mp(e){let{to:t,replace:r,state:n,relative:a}=e;mt()||(process.env.NODE_ENV!=="production"?K(!1,"<Navigate> may be used only in the context of a <Router> component."):K(!1));let{future:o,static:i}=D.useContext(it);process.env.NODE_ENV!=="production"&&je(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=D.useContext(Ye),{pathname:l}=Ct(),u=$a(),m=mn(t,hn(s,o.v7_relativeSplatPath),l,a==="path"),d=JSON.stringify(m);return D.useEffect(()=>u(JSON.parse(d),{replace:r,state:n,relative:a}),[u,d,a,r,n]),null}function gp(e){return Us(e.context)}function Gs(e){process.env.NODE_ENV!=="production"?K(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>."):K(!1)}function Ha(e){let{basename:t="/",children:r=null,location:n,navigationType:a=Oe.Pop,navigator:o,static:i=!1,future:s}=e;mt()&&(process.env.NODE_ENV!=="production"?K(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):K(!1));let l=t.replace(/^\/*/,"/"),u=D.useMemo(()=>({basename:l,navigator:o,static:i,future:ht({v7_relativeSplatPath:!1},s)}),[l,s,o,i]);typeof n=="string"&&(n=Ge(n));let{pathname:m="/",search:d="",hash:b="",state:y=null,key:w="default"}=n,E=D.useMemo(()=>{let S=_t(m,l);return S==null?null:{location:{pathname:S,search:d,hash:b,state:y,key:w},navigationType:a}},[l,m,d,b,y,w,a]);return process.env.NODE_ENV!=="production"&&je(E!=null,'<Router basename="'+l+'"> is not able to match the URL '+('"'+m+d+b+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),E==null?null:D.createElement(it.Provider,{value:u},D.createElement(Tt.Provider,{children:r,value:E}))}function vp(e){let{children:t,location:r}=e;return qs(br(t),r)}function yp(e){let{children:t,errorElement:r,resolve:n}=e;return D.createElement(Ep,{resolve:n,errorElement:r},D.createElement(xp,null,t))}var He=(function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e})(He||{});const bp=new Promise(()=>{});class Ep extends D.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,r){console.error("<Await> caught the following error during render",t,r)}render(){let{children:t,errorElement:r,resolve:n}=this.props,a=null,o=He.pending;if(!(n instanceof Promise))o=He.success,a=Promise.resolve(),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_data",{get:()=>n});else if(this.state.error){o=He.error;let i=this.state.error;a=Promise.reject().catch(()=>{}),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_error",{get:()=>i})}else n._tracked?(a=n,o="_error"in a?He.error:"_data"in a?He.success:He.pending):(o=He.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),a=n.then(i=>Object.defineProperty(n,"_data",{get:()=>i}),i=>Object.defineProperty(n,"_error",{get:()=>i})));if(o===He.error&&a._error instanceof tn)throw bp;if(o===He.error&&!r)throw a._error;if(o===He.error)return D.createElement(yr.Provider,{value:a,children:r});if(o===He.success)return D.createElement(yr.Provider,{value:a,children:t});throw a}}function xp(e){let{children:t}=e,r=Ys(),n=typeof t=="function"?t(r):t;return D.createElement(D.Fragment,null,n)}function br(e,t){t===void 0&&(t=[]);let r=[];return D.Children.forEach(e,(n,a)=>{if(!D.isValidElement(n))return;let o=[...t,a];if(n.type===D.Fragment){r.push.apply(r,br(n.props.children,o));return}n.type!==Gs&&(process.env.NODE_ENV!=="production"?K(!1,"["+(typeof n.type=="string"?n.type:n.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):K(!1)),!n.props.index||!n.props.children||(process.env.NODE_ENV!=="production"?K(!1,"An index route cannot have child routes."):K(!1));let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=br(n.props.children,o)),r.push(i)}),r}function Sp(e){return Bs(e)}function Ks(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(process.env.NODE_ENV!=="production"&&e.element&&process.env.NODE_ENV!=="production"&&je(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:D.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(process.env.NODE_ENV!=="production"&&e.hydrateFallbackElement&&process.env.NODE_ENV!=="production"&&je(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:D.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(process.env.NODE_ENV!=="production"&&e.errorElement&&process.env.NODE_ENV!=="production"&&je(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:D.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}function wp(e,t){return wd({basename:t==null?void 0:t.basename,future:ht({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Ps({initialEntries:t==null?void 0:t.initialEntries,initialIndex:t==null?void 0:t.initialIndex}),hydrationData:t==null?void 0:t.hydrationData,routes:e,mapRouteProperties:Ks,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation}).initialize()}const Rp=Object.freeze(Object.defineProperty({__proto__:null,AbortedDeferredError:tn,Await:yp,MemoryRouter:hp,Navigate:mp,get NavigationType(){return Oe},Outlet:gp,Route:Gs,Router:Ha,RouterProvider:dp,Routes:vp,UNSAFE_DataRouterContext:Yt,UNSAFE_DataRouterStateContext:gn,UNSAFE_LocationContext:Tt,UNSAFE_NavigationContext:it,UNSAFE_RouteContext:Ye,UNSAFE_logV6DeprecationWarnings:Ba,UNSAFE_mapRouteProperties:Ks,UNSAFE_useRouteId:ep,UNSAFE_useRoutesImpl:Ua,createMemoryRouter:wp,createPath:wr,createRoutesFromChildren:br,createRoutesFromElements:br,defer:pd,generatePath:rd,isRouteErrorResponse:Wt,json:ud,matchPath:en,matchRoutes:dt,parsePath:Ge,redirect:Ia,redirectDocument:hd,renderMatches:Sp,replace:md,resolvePath:Ds,useActionData:ip,useAsyncError:sp,useAsyncValue:Ys,useBlocker:Vs,useHref:qd,useInRouterContext:mt,useLoaderData:ap,useLocation:Ct,useMatch:Hd,useMatches:np,useNavigate:$a,useNavigation:tp,useNavigationType:Bd,useOutlet:Us,useOutletContext:Vd,useParams:Xd,useResolvedPath:Ws,useRevalidator:rp,useRouteError:Hs,useRouteLoaderData:op,useRoutes:qs},Symbol.toStringTag,{value:"Module"}));var Zn={},Qn,Ai;function Pp(){return Ai||(Ai=1,Qn=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Qn}var ea,Mi;function Op(){if(Mi)return ea;Mi=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(i,s){try{return[decodeURIComponent(i.join(""))]}catch{}if(i.length===1)return i;s=s||1;var l=i.slice(0,s),u=i.slice(s);return Array.prototype.concat.call([],n(l),n(u))}function a(i){try{return decodeURIComponent(i)}catch{for(var s=i.match(t)||[],l=1;l<s.length;l++)i=n(s,l).join(""),s=i.match(t)||[];return i}}function o(i){for(var s={"%FE%FF":"��","%FF%FE":"��"},l=r.exec(i);l;){try{s[l[0]]=decodeURIComponent(l[0])}catch{var u=a(l[0]);u!==l[0]&&(s[l[0]]=u)}l=r.exec(i)}s["%C2"]="�";for(var m=Object.keys(s),d=0;d<m.length;d++){var b=m[d];i=i.replace(new RegExp(b,"g"),s[b])}return i}return ea=function(i){if(typeof i!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof i+"`");try{return i=i.replace(/\+/g," "),decodeURIComponent(i)}catch{return o(i)}},ea}var ta,Ii;function _p(){return Ii||(Ii=1,ta=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}),ta}var ra,ki;function Tp(){return ki||(ki=1,ra=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),o=0;o<n.length;o++){var i=n[o],s=e[i];(a?t.indexOf(i)!==-1:t(i,s,e))&&(r[i]=s)}return r}),ra}var Fi;function Cp(){return Fi||(Fi=1,(function(e){const t=Pp(),r=Op(),n=_p(),a=Tp(),o=h=>h==null;function i(h){switch(h.arrayFormat){case"index":return c=>(g,v)=>{const p=g.length;return v===void 0||h.skipNull&&v===null||h.skipEmptyString&&v===""?g:v===null?[...g,[u(c,h),"[",p,"]"].join("")]:[...g,[u(c,h),"[",u(p,h),"]=",u(v,h)].join("")]};case"bracket":return c=>(g,v)=>v===void 0||h.skipNull&&v===null||h.skipEmptyString&&v===""?g:v===null?[...g,[u(c,h),"[]"].join("")]:[...g,[u(c,h),"[]=",u(v,h)].join("")];case"comma":case"separator":return c=>(g,v)=>v==null||v.length===0?g:g.length===0?[[u(c,h),"=",u(v,h)].join("")]:[[g,u(v,h)].join(h.arrayFormatSeparator)];default:return c=>(g,v)=>v===void 0||h.skipNull&&v===null||h.skipEmptyString&&v===""?g:v===null?[...g,u(c,h)]:[...g,[u(c,h),"=",u(v,h)].join("")]}}function s(h){let c;switch(h.arrayFormat){case"index":return(g,v,p)=>{if(c=/\[(\d*)\]$/.exec(g),g=g.replace(/\[\d*\]$/,""),!c){p[g]=v;return}p[g]===void 0&&(p[g]={}),p[g][c[1]]=v};case"bracket":return(g,v,p)=>{if(c=/(\[\])$/.exec(g),g=g.replace(/\[\]$/,""),!c){p[g]=v;return}if(p[g]===void 0){p[g]=[v];return}p[g]=[].concat(p[g],v)};case"comma":case"separator":return(g,v,p)=>{const x=typeof v=="string"&&v.includes(h.arrayFormatSeparator),f=typeof v=="string"&&!x&&m(v,h).includes(h.arrayFormatSeparator);v=f?m(v,h):v;const O=x||f?v.split(h.arrayFormatSeparator).map(j=>m(j,h)):v===null?v:m(v,h);p[g]=O};default:return(g,v,p)=>{if(p[g]===void 0){p[g]=v;return}p[g]=[].concat(p[g],v)}}}function l(h){if(typeof h!="string"||h.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(h,c){return c.encode?c.strict?t(h):encodeURIComponent(h):h}function m(h,c){return c.decode?r(h):h}function d(h){return Array.isArray(h)?h.sort():typeof h=="object"?d(Object.keys(h)).sort((c,g)=>Number(c)-Number(g)).map(c=>h[c]):h}function b(h){const c=h.indexOf("#");return c!==-1&&(h=h.slice(0,c)),h}function y(h){let c="";const g=h.indexOf("#");return g!==-1&&(c=h.slice(g)),c}function w(h){h=b(h);const c=h.indexOf("?");return c===-1?"":h.slice(c+1)}function E(h,c){return c.parseNumbers&&!Number.isNaN(Number(h))&&typeof h=="string"&&h.trim()!==""?h=Number(h):c.parseBooleans&&h!==null&&(h.toLowerCase()==="true"||h.toLowerCase()==="false")&&(h=h.toLowerCase()==="true"),h}function S(h,c){c=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},c),l(c.arrayFormatSeparator);const g=s(c),v=Object.create(null);if(typeof h!="string"||(h=h.trim().replace(/^[?#&]/,""),!h))return v;for(const p of h.split("&")){if(p==="")continue;let[x,f]=n(c.decode?p.replace(/\+/g," "):p,"=");f=f===void 0?null:["comma","separator"].includes(c.arrayFormat)?f:m(f,c),g(m(x,c),f,v)}for(const p of Object.keys(v)){const x=v[p];if(typeof x=="object"&&x!==null)for(const f of Object.keys(x))x[f]=E(x[f],c);else v[p]=E(x,c)}return c.sort===!1?v:(c.sort===!0?Object.keys(v).sort():Object.keys(v).sort(c.sort)).reduce((p,x)=>{const f=v[x];return f&&typeof f=="object"&&!Array.isArray(f)?p[x]=d(f):p[x]=f,p},Object.create(null))}e.extract=w,e.parse=S,e.stringify=(h,c)=>{if(!h)return"";c=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},c),l(c.arrayFormatSeparator);const g=f=>c.skipNull&&o(h[f])||c.skipEmptyString&&h[f]==="",v=i(c),p={};for(const f of Object.keys(h))g(f)||(p[f]=h[f]);const x=Object.keys(p);return c.sort!==!1&&x.sort(c.sort),x.map(f=>{const O=h[f];return O===void 0?"":O===null?u(f,c):Array.isArray(O)?O.reduce(v(f),[]).join("&"):u(f,c)+"="+u(O,c)}).filter(f=>f.length>0).join("&")},e.parseUrl=(h,c)=>{c=Object.assign({decode:!0},c);const[g,v]=n(h,"#");return Object.assign({url:g.split("?")[0]||"",query:S(w(h),c)},c&&c.parseFragmentIdentifier&&v?{fragmentIdentifier:m(v,c)}:{})},e.stringifyUrl=(h,c)=>{c=Object.assign({encode:!0,strict:!0},c);const g=b(h.url).split("?")[0]||"",v=e.extract(h.url),p=e.parse(v,{sort:!1}),x=Object.assign(p,h.query);let f=e.stringify(x,c);f&&(f=`?${f}`);let O=y(h.url);return h.fragmentIdentifier&&(O=`#${u(h.fragmentIdentifier,c)}`),`${g}${f}${O}`},e.pick=(h,c,g)=>{g=Object.assign({parseFragmentIdentifier:!0},g);const{url:v,query:p,fragmentIdentifier:x}=e.parseUrl(h,g);return e.stringifyUrl({url:v,query:a(p,c),fragmentIdentifier:x},g)},e.exclude=(h,c,g)=>{const v=Array.isArray(c)?p=>!c.includes(p):(p,x)=>!c(p,x);return e.pick(h,v,g)}})(Zn)),Zn}var na=Cp();const ur=Rp,Dp={parseNumbers:!1,parseBooleans:!1},jp={skipNull:!1,skipEmptyString:!1},Np=(e,t)=>{var r,n;const{navigateMode:a="push",parseOptions:o,stringifyOptions:i}=t||{},s=Object.assign(Object.assign({},Dp),o),l=Object.assign(Object.assign({},jp),i),u=ur.useLocation(),m=(r=ur.useHistory)===null||r===void 0?void 0:r.call(ur),d=(n=ur.useNavigate)===null||n===void 0?void 0:n.call(ur),b=Aa(),y=I.useRef(typeof e=="function"?e():e||{}),w=I.useMemo(()=>na.parse(u.search,s),[u.search]),E=I.useMemo(()=>Object.assign(Object.assign({},y.current),w),[w]);return[E,et(h=>{const c=typeof h=="function"?h(E):h;b(),m&&m[a]({hash:u.hash,search:na.stringify(Object.assign(Object.assign({},w),c),l)||"?"},u.state),d&&d({hash:u.hash,search:na.stringify(Object.assign(Object.assign({},w),c),l)||"?"},{replace:a==="replace",state:u.state})})]},cr={Array:"a",Boolean:"b",Number:"n",String:"s",Undefined:"u",Null:"N"},Js=(e,t)=>{const r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Array")return e.length?`${cr[r]}${Js(e[0],e)}`:"u_u";const n=t||[e];return r==="Boolean"?`${cr[r]}_${n.map(a=>a?1:0).join()}`:r==="String"?`${cr[r]}_${n.join()}`:r==="Null"?`${cr[r]}_${n.map(()=>"n").join()}`:r==="Number"?`${cr[r]}_${n.join()}`:`u_${n.map(()=>"u").join()}`},Ap=e=>{e=decodeURIComponent(e);const t=e.slice(0,1)==="a",r=t?e.slice(1,2):e.slice(0,1),n=t?e.slice(3).split(","):e.slice(2);return r==="b"?dr(n)?n.map(a=>a==="1"):n==="1":r==="s"?n:r==="n"?dr(n)?n.map(a=>Fo(a)):Fo(n):r==="u"?dr(n)?n.map(()=>{}):void 0:r==="N"?dr(n)?n.map(()=>null):null:n},Li=e=>Object.entries({...e}).reduce((t,[r,n])=>(t[r]=Js(n),t),{}),zi=e=>Object.entries({...e}).reduce((t,[r,n])=>(t[r]=Ap(n),t),{}),Mp={y:void 0},Ip=(e,t)=>{var h;const{useSearchParams:r}=I.useContext(Sr),{storage:n=(r==null?void 0:r.storage)||"state",stateKey:a=(r==null?void 0:r.stateKey)||"__searchParams__"}=t||r||{},o=Aa(),i=$a(),s=Ct(),[l,u]=Np(Li({...Mp,...e}),{navigateMode:"replace"}),m=n==="url"?zi(l):((h=s.state)==null?void 0:h[a])||{},{current:d}=I.useRef({...e,...m}),b=c=>{typeof c=="function"?Object.assign(d,c(d)):Object.assign(d,c),o()},y=async c=>{const g={...c,y:window.scrollY};if(n==="url"){u(Li(g));return}i(s.pathname,{replace:!0,state:{...s.state,[a]:g}})},w=()=>{if(n!=="url")return;const c=zi(l);Object.keys(c).forEach(g=>{c[g]=void 0}),u(c)};I.useEffect(()=>{n==="url"&&l?w():n==="state"&&y({}).catch(Br)},[]);const E=I.useRef(null),S=I.useRef(!1);return Vs(({currentLocation:c,nextLocation:g,historyAction:v})=>c.pathname!==g.pathname?n==="url"?c.search?!1:(E.current={...g,historyAction:v},y(d).catch(Br),!0):S.current?!1:(E.current={...g,historyAction:v},y(d).catch(Br),!0):(g.pathname===c.pathname&&E.current!==null&&(n==="url"&&g.search!==c.search||n==="state"&&!S.current)&&(setTimeout(()=>{const p=E.current,x=`${p.pathname}${p.search}`;i(x,{replace:p.historyAction!=="PUSH",state:p.state}),S.current=!1,E.current=null},0),S.current=!0),!1)),{searchParams:d,setSearchParams:b}};exports.App=ku;exports.CheckboxValue=zu;exports.ConfigContext=Sr;exports.ConfigProvider=ls;exports.GlobalLoading=os;exports.IconButton=pc;exports.IconFont=Ca;exports.SearchArea=pn;exports.SwitchValue=$u;exports.Table=Cf;exports.useRequest=zf;exports.useSearchParams=Ip;exports.useTable=Wf;