@lax-wp/design-system 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/buttons/option-button/OptionButton.d.ts +79 -0
- package/dist/components/data-display/badge/Badge.d.ts +44 -0
- package/dist/components/data-display/banner/Banner.d.ts +41 -0
- package/dist/components/data-display/code-editor/CodeEditor.d.ts +4 -0
- package/dist/components/data-display/code-editor/JsonGrid.d.ts +14 -0
- package/dist/components/data-display/code-editor/Tabs.d.ts +12 -0
- package/dist/components/data-display/diff-viewer/DiffViewer.d.ts +64 -0
- package/dist/components/data-display/label/Label.d.ts +10 -0
- package/dist/components/data-display/label-value/LabelValue.d.ts +132 -0
- package/dist/components/data-display/modal/Modal.d.ts +77 -0
- package/dist/components/data-display/pdf-viewer/PdfViewer.d.ts +45 -0
- package/dist/components/data-display/popper/Popper.d.ts +57 -0
- package/dist/components/data-display/resizable-sidebar/ResizableSidebar.d.ts +54 -0
- package/dist/components/data-display/status-color-mapping/StatusColorMapping.d.ts +29 -0
- package/dist/components/data-display/tag/Tag.d.ts +53 -0
- package/dist/components/data-display/typography/Typography.d.ts +15 -0
- package/dist/components/feedback/toast/Toast.d.ts +29 -0
- package/dist/components/floating-bar/FloatingBar.d.ts +147 -0
- package/dist/components/forms/checkbox/Checkbox.d.ts +55 -0
- package/dist/components/forms/color-picker/ColorPicker.d.ts +60 -0
- package/dist/components/forms/creatable-select/CreatableSelect.d.ts +92 -0
- package/dist/components/forms/currency-input/CurrencyInputField.d.ts +73 -0
- package/dist/components/forms/currency-input/currency.constant.d.ts +12 -0
- package/dist/components/forms/date-range/DateRange.d.ts +72 -0
- package/dist/components/forms/debounce-input/DebounceInputField.d.ts +76 -0
- package/dist/components/forms/file-upload/FileUpload.d.ts +81 -0
- package/dist/components/forms/input-field/InputField.d.ts +62 -0
- package/dist/components/forms/multi-file-upload/MultiFileUpload.d.ts +78 -0
- package/dist/components/forms/percentage-input/PercentageInputField.d.ts +75 -0
- package/dist/components/forms/text-field/TextField.d.ts +48 -0
- package/dist/components/forms/toggle/Toggle.d.ts +71 -0
- package/dist/components/icons/CloseIcon.d.ts +16 -0
- package/dist/components/icons/HelpIcon.d.ts +6 -0
- package/dist/components/icons/SearchIcon.d.ts +6 -0
- package/dist/components/tooltip/Tooltip.d.ts +8 -0
- package/dist/constants/colors.d.ts +263 -0
- package/dist/hooks/useOutsideClick.d.ts +28 -0
- package/dist/hooks/usePythonSyntax.d.ts +28 -0
- package/dist/hooks/useTheme.d.ts +6 -0
- package/dist/index.d.ts +67 -0
- package/dist/index.es.js +2834 -2804
- package/dist/index.umd.js +47 -47
- package/dist/services/monacoManager.d.ts +28 -0
- package/dist/types/index.d.ts +66 -0
- package/dist/utils/formatters.d.ts +24 -0
- package/dist/utils/messageConstants.d.ts +16 -0
- package/dist/utils/tagUtils.d.ts +12 -0
- package/dist/utils/utilities.d.ts +13 -0
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(xe,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react"),require("framer-motion"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","framer-motion","react-dom"],E):(xe=typeof globalThis<"u"?globalThis:xe||self,E(xe.LaxDesignSystem={},xe.React,xe.FramerMotion,xe.ReactDOM))})(this,function(xe,E,Ze,zr){"use strict";function u0(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 A=u0(E),d0=u0(zr);var
|
|
1
|
+
(function(xe,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react"),require("framer-motion"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","framer-motion","react-dom"],E):(xe=typeof globalThis<"u"?globalThis:xe||self,E(xe.LaxDesignSystem={},xe.React,xe.FramerMotion,xe.ReactDOM))})(this,function(xe,E,Ze,zr){"use strict";function u0(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 A=u0(E),d0=u0(zr);var Ya=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ja={exports:{}},xi={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -14,24 +14,24 @@
|
|
|
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 m0;function Qy(){return m0||(m0=1,process.env.NODE_ENV!=="production"&&function(){var e=E,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),h=Symbol.iterator,m="@@iterator";function p(R){if(R===null||typeof R!="object")return null;var te=h&&R[h]||R[m];return typeof te=="function"?te:null}var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(R){{for(var te=arguments.length,ae=new Array(te>1?te-1:0),fe=1;fe<te;fe++)ae[fe-1]=arguments[fe];w("error",R,ae)}}function w(R,te,ae){{var fe=b.ReactDebugCurrentFrame,ke=fe.getStackAddendum();ke!==""&&(te+="%s",ae=ae.concat([ke]));var Ve=ae.map(function(Oe){return String(Oe)});Ve.unshift("Warning: "+te),Function.prototype.apply.call(console[R],console,Ve)}}var S=!1,v=!1,I=!1,N=!1,O=!1,T;T=Symbol.for("react.module.reference");function P(R){return!!(typeof R=="string"||typeof R=="function"||R===n||R===i||O||R===o||R===c||R===u||N||R===g||S||v||I||typeof R=="object"&&R!==null&&(R.$$typeof===f||R.$$typeof===d||R.$$typeof===a||R.$$typeof===s||R.$$typeof===l||R.$$typeof===T||R.getModuleId!==void 0))}function M(R,te,ae){var fe=R.displayName;if(fe)return fe;var ke=te.displayName||te.name||"";return ke!==""?ae+"("+ke+")":ae}function x(R){return R.displayName||"Context"}function $(R){if(R==null)return null;if(typeof R.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof R=="function")return R.displayName||R.name||null;if(typeof R=="string")return R;switch(R){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof R=="object")switch(R.$$typeof){case s:var te=R;return x(te)+".Consumer";case a:var ae=R;return x(ae._context)+".Provider";case l:return M(R,R.render,"ForwardRef");case d:var fe=R.displayName||null;return fe!==null?fe:$(R.type)||"Memo";case f:{var ke=R,Ve=ke._payload,Oe=ke._init;try{return $(Oe(Ve))}catch{return null}}}return null}var k=Object.assign,F=0,j,
|
|
18
|
-
`+U+R}}var Z=!1,se;{var
|
|
17
|
+
*/var m0;function Qy(){return m0||(m0=1,process.env.NODE_ENV!=="production"&&function(){var e=E,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),h=Symbol.iterator,m="@@iterator";function p(R){if(R===null||typeof R!="object")return null;var te=h&&R[h]||R[m];return typeof te=="function"?te:null}var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(R){{for(var te=arguments.length,ae=new Array(te>1?te-1:0),fe=1;fe<te;fe++)ae[fe-1]=arguments[fe];w("error",R,ae)}}function w(R,te,ae){{var fe=b.ReactDebugCurrentFrame,ke=fe.getStackAddendum();ke!==""&&(te+="%s",ae=ae.concat([ke]));var Ve=ae.map(function(Oe){return String(Oe)});Ve.unshift("Warning: "+te),Function.prototype.apply.call(console[R],console,Ve)}}var S=!1,v=!1,I=!1,N=!1,O=!1,T;T=Symbol.for("react.module.reference");function P(R){return!!(typeof R=="string"||typeof R=="function"||R===n||R===i||O||R===o||R===c||R===u||N||R===g||S||v||I||typeof R=="object"&&R!==null&&(R.$$typeof===f||R.$$typeof===d||R.$$typeof===a||R.$$typeof===s||R.$$typeof===l||R.$$typeof===T||R.getModuleId!==void 0))}function M(R,te,ae){var fe=R.displayName;if(fe)return fe;var ke=te.displayName||te.name||"";return ke!==""?ae+"("+ke+")":ae}function x(R){return R.displayName||"Context"}function $(R){if(R==null)return null;if(typeof R.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof R=="function")return R.displayName||R.name||null;if(typeof R=="string")return R;switch(R){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof R=="object")switch(R.$$typeof){case s:var te=R;return x(te)+".Consumer";case a:var ae=R;return x(ae._context)+".Provider";case l:return M(R,R.render,"ForwardRef");case d:var fe=R.displayName||null;return fe!==null?fe:$(R.type)||"Memo";case f:{var ke=R,Ve=ke._payload,Oe=ke._init;try{return $(Oe(Ve))}catch{return null}}}return null}var k=Object.assign,F=0,j,G,W,V,_,D,B;function L(){}L.__reactDisabledLog=!0;function z(){{if(F===0){j=console.log,G=console.info,W=console.warn,V=console.error,_=console.group,D=console.groupCollapsed,B=console.groupEnd;var R={configurable:!0,enumerable:!0,value:L,writable:!0};Object.defineProperties(console,{info:R,log:R,warn:R,error:R,group:R,groupCollapsed:R,groupEnd:R})}F++}}function Q(){{if(F--,F===0){var R={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},R,{value:j}),info:k({},R,{value:G}),warn:k({},R,{value:W}),error:k({},R,{value:V}),group:k({},R,{value:_}),groupCollapsed:k({},R,{value:D}),groupEnd:k({},R,{value:B})})}F<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=b.ReactCurrentDispatcher,U;function K(R,te,ae){{if(U===void 0)try{throw Error()}catch(ke){var fe=ke.stack.trim().match(/\n( *(at )?)/);U=fe&&fe[1]||""}return`
|
|
18
|
+
`+U+R}}var Z=!1,se;{var ge=typeof WeakMap=="function"?WeakMap:Map;se=new ge}function Y(R,te){if(!R||Z)return"";{var ae=se.get(R);if(ae!==void 0)return ae}var fe;Z=!0;var ke=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ve;Ve=q.current,q.current=null,z();try{if(te){var Oe=function(){throw Error()};if(Object.defineProperty(Oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Oe,[])}catch(qt){fe=qt}Reflect.construct(R,[],Oe)}else{try{Oe.call()}catch(qt){fe=qt}R.call(Oe.prototype)}}else{try{throw Error()}catch(qt){fe=qt}R()}}catch(qt){if(qt&&fe&&typeof qt.stack=="string"){for(var Se=qt.stack.split(`
|
|
19
19
|
`),gt=fe.stack.split(`
|
|
20
20
|
`),Be=Se.length-1,ft=gt.length-1;Be>=1&&ft>=0&&Se[Be]!==gt[ft];)ft--;for(;Be>=1&&ft>=0;Be--,ft--)if(Se[Be]!==gt[ft]){if(Be!==1||ft!==1)do if(Be--,ft--,ft<0||Se[Be]!==gt[ft]){var je=`
|
|
21
21
|
`+Se[Be].replace(" at new "," at ");return R.displayName&&je.includes("<anonymous>")&&(je=je.replace("<anonymous>",R.displayName)),typeof R=="function"&&se.set(R,je),je}while(Be>=1&&ft>=0);break}}}finally{Z=!1,q.current=Ve,Q(),Error.prepareStackTrace=ke}var br=R?R.displayName||R.name:"",Vr=br?K(br):"";return typeof R=="function"&&se.set(R,Vr),Vr}function Ce(R,te,ae){return Y(R,!1)}function ne(R){var te=R.prototype;return!!(te&&te.isReactComponent)}function Ie(R,te,ae){if(R==null)return"";if(typeof R=="function")return Y(R,ne(R));if(typeof R=="string")return K(R);switch(R){case c:return K("Suspense");case u:return K("SuspenseList")}if(typeof R=="object")switch(R.$$typeof){case l:return Ce(R.render);case d:return Ie(R.type,te,ae);case f:{var fe=R,ke=fe._payload,Ve=fe._init;try{return Ie(Ve(ke),te,ae)}catch{}}}return""}var ve=Object.prototype.hasOwnProperty,Ye={},it=b.ReactDebugCurrentFrame;function Le(R){if(R){var te=R._owner,ae=Ie(R.type,R._source,te?te.type:null);it.setExtraStackFrame(ae)}else it.setExtraStackFrame(null)}function St(R,te,ae,fe,ke){{var Ve=Function.call.bind(ve);for(var Oe in R)if(Ve(R,Oe)){var Se=void 0;try{if(typeof R[Oe]!="function"){var gt=Error((fe||"React class")+": "+ae+" type `"+Oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof R[Oe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw gt.name="Invariant Violation",gt}Se=R[Oe](te,Oe,fe,ae,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Be){Se=Be}Se&&!(Se instanceof Error)&&(Le(ke),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",fe||"React class",ae,Oe,typeof Se),Le(null)),Se instanceof Error&&!(Se.message in Ye)&&(Ye[Se.message]=!0,Le(ke),y("Failed %s type: %s",ae,Se.message),Le(null))}}}var Fe=Array.isArray;function Me(R){return Fe(R)}function bt(R){{var te=typeof Symbol=="function"&&Symbol.toStringTag,ae=te&&R[Symbol.toStringTag]||R.constructor.name||"Object";return ae}}function Te(R){try{return Mt(R),!1}catch{return!0}}function Mt(R){return""+R}function at(R){if(Te(R))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",bt(R)),Mt(R)}var ir=b.ReactCurrentOwner,Xt={key:!0,ref:!0,__self:!0,__source:!0},jt,fr;function _e(R){if(ve.call(R,"ref")){var te=Object.getOwnPropertyDescriptor(R,"ref").get;if(te&&te.isReactWarning)return!1}return R.ref!==void 0}function De(R){if(ve.call(R,"key")){var te=Object.getOwnPropertyDescriptor(R,"key").get;if(te&&te.isReactWarning)return!1}return R.key!==void 0}function Rt(R,te){typeof R.ref=="string"&&ir.current}function Lt(R,te){{var ae=function(){jt||(jt=!0,y("%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://reactjs.org/link/special-props)",te))};ae.isReactWarning=!0,Object.defineProperty(R,"key",{get:ae,configurable:!0})}}function Dt(R,te){{var ae=function(){fr||(fr=!0,y("%s: `ref` 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://reactjs.org/link/special-props)",te))};ae.isReactWarning=!0,Object.defineProperty(R,"ref",{get:ae,configurable:!0})}}var he=function(R,te,ae,fe,ke,Ve,Oe){var Se={$$typeof:t,type:R,key:te,ref:ae,props:Oe,_owner:Ve};return Se._store={},Object.defineProperty(Se._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Se,"_self",{configurable:!1,enumerable:!1,writable:!1,value:fe}),Object.defineProperty(Se,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ke}),Object.freeze&&(Object.freeze(Se.props),Object.freeze(Se)),Se};function de(R,te,ae,fe,ke){{var Ve,Oe={},Se=null,gt=null;ae!==void 0&&(at(ae),Se=""+ae),De(te)&&(at(te.key),Se=""+te.key),_e(te)&&(gt=te.ref,Rt(te,ke));for(Ve in te)ve.call(te,Ve)&&!Xt.hasOwnProperty(Ve)&&(Oe[Ve]=te[Ve]);if(R&&R.defaultProps){var Be=R.defaultProps;for(Ve in Be)Oe[Ve]===void 0&&(Oe[Ve]=Be[Ve])}if(Se||gt){var ft=typeof R=="function"?R.displayName||R.name||"Unknown":R;Se&&Lt(Oe,ft),gt&&Dt(Oe,ft)}return he(R,Se,gt,ke,fe,ir.current,Oe)}}var Ae=b.ReactCurrentOwner,Ne=b.ReactDebugCurrentFrame;function $e(R){if(R){var te=R._owner,ae=Ie(R.type,R._source,te?te.type:null);Ne.setExtraStackFrame(ae)}else Ne.setExtraStackFrame(null)}var pt;pt=!1;function tr(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function ar(){{if(Ae.current){var R=$(Ae.current.type);if(R)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+R+"`."}return""}}function _t(R){return""}var Vt={};function Et(R){{var te=ar();if(!te){var ae=typeof R=="string"?R:R.displayName||R.name;ae&&(te=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+ae+">.")}return te}}function _r(R,te){{if(!R._store||R._store.validated||R.key!=null)return;R._store.validated=!0;var ae=Et(te);if(Vt[ae])return;Vt[ae]=!0;var fe="";R&&R._owner&&R._owner!==Ae.current&&(fe=" It was passed a child from "+$(R._owner.type)+"."),$e(R),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ae,fe),$e(null)}}function Wt(R,te){{if(typeof R!="object")return;if(Me(R))for(var ae=0;ae<R.length;ae++){var fe=R[ae];tr(fe)&&_r(fe,te)}else if(tr(R))R._store&&(R._store.validated=!0);else if(R){var ke=p(R);if(typeof ke=="function"&&ke!==R.entries)for(var Ve=ke.call(R),Oe;!(Oe=Ve.next()).done;)tr(Oe.value)&&_r(Oe.value,te)}}}function Je(R){{var te=R.type;if(te==null||typeof te=="string")return;var ae;if(typeof te=="function")ae=te.propTypes;else if(typeof te=="object"&&(te.$$typeof===l||te.$$typeof===d))ae=te.propTypes;else return;if(ae){var fe=$(te);St(ae,R.props,"prop",fe,R)}else if(te.PropTypes!==void 0&&!pt){pt=!0;var ke=$(te);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ke||"Unknown")}typeof te.getDefaultProps=="function"&&!te.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function He(R){{for(var te=Object.keys(R.props),ae=0;ae<te.length;ae++){var fe=te[ae];if(fe!=="children"&&fe!=="key"){$e(R),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",fe),$e(null);break}}R.ref!==null&&($e(R),y("Invalid attribute `ref` supplied to `React.Fragment`."),$e(null))}}var Bt={};function Tr(R,te,ae,fe,ke,Ve){{var Oe=P(R);if(!Oe){var Se="";(R===void 0||typeof R=="object"&&R!==null&&Object.keys(R).length===0)&&(Se+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var gt=_t();gt?Se+=gt:Se+=ar();var Be;R===null?Be="null":Me(R)?Be="array":R!==void 0&&R.$$typeof===t?(Be="<"+($(R.type)||"Unknown")+" />",Se=" Did you accidentally export a JSX literal instead of a component?"):Be=typeof R,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Be,Se)}var ft=de(R,te,ae,ke,Ve);if(ft==null)return ft;if(Oe){var je=te.children;if(je!==void 0)if(fe)if(Me(je)){for(var br=0;br<je.length;br++)Wt(je[br],R);Object.freeze&&Object.freeze(je)}else y("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 Wt(je,R)}if(ve.call(te,"key")){var Vr=$(R),qt=Object.keys(te).filter(function(
|
|
25
|
+
Check the top-level render call using <`+ae+">.")}return te}}function _r(R,te){{if(!R._store||R._store.validated||R.key!=null)return;R._store.validated=!0;var ae=Et(te);if(Vt[ae])return;Vt[ae]=!0;var fe="";R&&R._owner&&R._owner!==Ae.current&&(fe=" It was passed a child from "+$(R._owner.type)+"."),$e(R),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ae,fe),$e(null)}}function Wt(R,te){{if(typeof R!="object")return;if(Me(R))for(var ae=0;ae<R.length;ae++){var fe=R[ae];tr(fe)&&_r(fe,te)}else if(tr(R))R._store&&(R._store.validated=!0);else if(R){var ke=p(R);if(typeof ke=="function"&&ke!==R.entries)for(var Ve=ke.call(R),Oe;!(Oe=Ve.next()).done;)tr(Oe.value)&&_r(Oe.value,te)}}}function Je(R){{var te=R.type;if(te==null||typeof te=="string")return;var ae;if(typeof te=="function")ae=te.propTypes;else if(typeof te=="object"&&(te.$$typeof===l||te.$$typeof===d))ae=te.propTypes;else return;if(ae){var fe=$(te);St(ae,R.props,"prop",fe,R)}else if(te.PropTypes!==void 0&&!pt){pt=!0;var ke=$(te);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ke||"Unknown")}typeof te.getDefaultProps=="function"&&!te.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function He(R){{for(var te=Object.keys(R.props),ae=0;ae<te.length;ae++){var fe=te[ae];if(fe!=="children"&&fe!=="key"){$e(R),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",fe),$e(null);break}}R.ref!==null&&($e(R),y("Invalid attribute `ref` supplied to `React.Fragment`."),$e(null))}}var Bt={};function Tr(R,te,ae,fe,ke,Ve){{var Oe=P(R);if(!Oe){var Se="";(R===void 0||typeof R=="object"&&R!==null&&Object.keys(R).length===0)&&(Se+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var gt=_t();gt?Se+=gt:Se+=ar();var Be;R===null?Be="null":Me(R)?Be="array":R!==void 0&&R.$$typeof===t?(Be="<"+($(R.type)||"Unknown")+" />",Se=" Did you accidentally export a JSX literal instead of a component?"):Be=typeof R,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Be,Se)}var ft=de(R,te,ae,ke,Ve);if(ft==null)return ft;if(Oe){var je=te.children;if(je!==void 0)if(fe)if(Me(je)){for(var br=0;br<je.length;br++)Wt(je[br],R);Object.freeze&&Object.freeze(je)}else y("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 Wt(je,R)}if(ve.call(te,"key")){var Vr=$(R),qt=Object.keys(te).filter(function(_a){return _a!=="key"}),Kr=qt.length>0?"{key: someKey, "+qt.join(": ..., ")+": ...}":"{key: someKey}";if(!Bt[Vr+Kr]){var bi=qt.length>0?"{"+qt.join(": ..., ")+": ...}":"{}";y(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Kr,Vr,bi,Vr),Bt[Vr+Kr]=!0}}return R===n?He(ft):Je(ft),ft}}function sr(R,te,ae){return Tr(R,te,ae,!0)}function xt(R,te,ae){return Tr(R,te,ae,!1)}var pn=xt,Qr=sr;wi.Fragment=n,wi.jsx=pn,wi.jsxs=Qr}()),wi}var p0;function Ky(){return p0||(p0=1,process.env.NODE_ENV==="production"?
|
|
30
|
+
<%s key={someKey} {...props} />`,Kr,Vr,bi,Vr),Bt[Vr+Kr]=!0}}return R===n?He(ft):Je(ft),ft}}function sr(R,te,ae){return Tr(R,te,ae,!0)}function xt(R,te,ae){return Tr(R,te,ae,!1)}var pn=xt,Qr=sr;wi.Fragment=n,wi.jsx=pn,wi.jsxs=Qr}()),wi}var p0;function Ky(){return p0||(p0=1,process.env.NODE_ENV==="production"?Ja.exports=qy():Ja.exports=Qy()),Ja.exports}var C=Ky(),Pc={exports:{}};/*!
|
|
31
31
|
Copyright (c) 2018 Jed Watson.
|
|
32
32
|
Licensed under the MIT License (MIT), see
|
|
33
33
|
http://jedwatson.github.io/classnames
|
|
34
|
-
*/var g0;function e2(){return g0||(g0=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,n(s)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)t.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(
|
|
34
|
+
*/var g0;function e2(){return g0||(g0=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,n(s)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)t.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(Pc)),Pc.exports}var t2=e2();const J=Tc(t2),pe=({children:e,variant:t="regular",size:r="medium",onClick:n,className:o,highlight:i,appearance:a="title",style:s})=>{const l=()=>{switch(r){case"extra-small":return"text-xs";case"small":return"text-sm";case"display-small":return"text-xl";case"medium":return"text-base";case"display-medium":return"text-2xl";case"large":return"text-lg";case"extra-large":return"text-4xl";default:return"text-base"}},c=()=>{switch(a){case"title":return"text-neutral-900 dark:text-white";case"body":return"text-neutral-600 dark:text-neutral-300";case"subtitle":return"text-neutral-500 dark:text-neutral-400";case"custom":return""}},u=()=>{switch(t){case"regular":return"font-normal";case"medium":return"font-medium";case"semibold":return"font-semibold";case"bold":return"font-bold";case"extrablack":return"font-black";default:return"font-normal"}},d=`${l()} ${u()} ${c()}`,f=J(d,o,i?"bg-yellow-100 dark:bg-yellow-900":"");return C.jsx("div",{className:f,onClick:n,style:s,children:e})};pe.displayName="Typography";const h0=E.forwardRef(({id:e,value:t,onChange:r,onKeyDown:n,message:o,messageType:i="default",defaultValue:a,disabled:s=!1,max:l,min:c,required:u=!1,label:d,type:f="text",placeholder:g,fieldSuffix:h,wrapperClassNames:m,inputClassNames:p,inputStyle:b={},inputProps:y},w)=>{const S=E.useRef(null),[v,I]=E.useState(0),N=()=>i==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200":i==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200":i==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200":"border-neutral-200 dark:border-black-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",O=()=>i==="error"?"text-red-500 dark:text-red-400":i==="success"?"text-green-500 dark:text-green-400":i==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-black-100",T=e||`input-${d?.replace(/\s+/g,"-").toLowerCase()}`;E.useEffect(()=>{if(h&&S.current){const M=new ResizeObserver($=>{const k=$[0];if(k){const F=Math.ceil(k.contentRect.width)+24;I(F)}});M.observe(S.current);const x=Math.ceil(S.current.offsetWidth)+12;return I(x),()=>{M.disconnect()}}else I(0)},[h]);const P=()=>({"--input-bg-color":"var(--tw-bg-opacity, 1) rgb(var(--bg-color))","--text-color":"#111827",paddingRight:`${h?Math.max(12,v):12}px`,...b});return C.jsxs("div",{className:J("flex flex-col w-full",m),children:[C.jsx("style",{children:`
|
|
35
35
|
.input-field input:-webkit-autofill,
|
|
36
36
|
.input-field input:-webkit-autofill:hover,
|
|
37
37
|
.input-field input:-webkit-autofill:focus {
|
|
@@ -46,7 +46,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
46
46
|
-webkit-text-fill-color: white !important;
|
|
47
47
|
-webkit-box-shadow: 0 0 0px 1000px var(--input-bg-color) inset !important;
|
|
48
48
|
}
|
|
49
|
-
`}),d?C.jsx("label",{htmlFor:T,className:"mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",children:C.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:C.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:C.jsxs(
|
|
49
|
+
`}),d?C.jsx("label",{htmlFor:T,className:"mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",children:C.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:C.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:C.jsxs(pe,{variant:"medium",size:"extra-small",appearance:"subtitle",children:[d,u&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}):null,C.jsxs("div",{className:"relative input-field",children:[C.jsx("input",{...y,ref:w,id:T,type:f,value:t,defaultValue:a,placeholder:g,required:u,disabled:s,max:l,min:c,onKeyDown:n,style:P(),className:J("border border-solid h-8 rounded-md block w-full pl-3","text-sm font-medium text-neutral-900 dark:text-black-100","bg-white dark:bg-black-600","transition-colors duration-200 ease-in-out","focus:outline-none focus:ring-2",N(),s&&"opacity-70 cursor-not-allowed bg-neutral-50 dark:bg-black-700",p),onChange:M=>r(M.target.value),onClick:M=>M.stopPropagation()}),h&&C.jsx("div",{ref:S,className:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none",children:h})]}),C.jsx(Ze.AnimatePresence,{children:o&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:C.jsx(pe,{className:J("mt-1",O()),appearance:"custom",size:"extra-small",variant:"medium",children:o})})})]})});h0.displayName="InputField";const r2=E.forwardRef(({label:e,placeholder:t,value:r,onChange:n,rows:o=4,message:i,messageType:a="default",defaultValue:s,required:l=!1,disabled:c=!1,className:u,inputRef:d,maxLength:f,originalCase:g=!1,noBorder:h=!1,id:m,inputStyle:p,...b},y)=>{const w=m||`textarea-${Math.random().toString(36).substr(2,9)}`,S=r?.length||0,v=f&&S>f-Math.min(50,f/5),I=f&&S>=f,N=()=>a==="error"?"border-red-300 dark:border-red-500 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400":a==="success"?"border-green-300 dark:border-green-500 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400":a==="info"?"border-blue-300 dark:border-blue-500 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400":"border-gray-300 dark:border-gray-600",O=()=>a==="error"?"text-red-500 dark:text-red-400":a==="success"?"text-green-500 dark:text-green-400":a==="info"?"text-blue-500 dark:text-blue-400":"text-gray-500 dark:text-gray-400";return C.jsxs("div",{className:J("flex flex-col gap-0.5 relative",u),children:[e&&C.jsx("label",{htmlFor:w,className:J("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",{capitalize:!g}),children:C.jsxs(pe,{size:"extra-small",variant:"medium",appearance:"subtitle",children:[e,l&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})}),C.jsx("textarea",{...b,id:w,ref:y||d,onChange:T=>n(T.target.value),defaultValue:s,value:r,required:l,disabled:c,rows:o,placeholder:t,maxLength:f||void 0,style:p,className:J("border rounded-lg bg-white dark:bg-black-600 block w-full py-2.5 px-3","font-inter font-medium text-sm transition-colors duration-200","focus:ring-2 focus:outline-none resize-vertical min-h-[2.5rem]",!h&&N(),{"border-none focus:border-none focus:ring-0":h,"bg-gray-50 dark:bg-gray-700 text-gray-400 dark:text-gray-500 cursor-not-allowed":c,"placeholder:text-gray-400 dark:placeholder:text-gray-500":c,"text-gray-900 dark:text-gray-100":!c,"placeholder:text-gray-400 dark:placeholder:text-gray-400":!c}),onClick:T=>T.stopPropagation(),"aria-invalid":i&&a==="error"?"true":"false","aria-describedby":i?`${w}-message`:void 0}),f&&C.jsxs(pe,{className:"mt-0.5 text-right text-gray-600 dark:text-gray-400",appearance:"custom",size:"extra-small",children:[C.jsx("span",{className:J({"text-red-500 dark:text-red-400":I,"text-yellow-500 dark:text-yellow-400":v&&!I}),children:S}),C.jsxs("span",{className:"text-gray-400 dark:text-gray-500",children:[" ","/ ",f]})]}),C.jsx(Ze.AnimatePresence,{children:i&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${w}-message`,role:a==="error"?"alert":void 0,children:C.jsx(pe,{className:J("mt-1",O()),appearance:"custom",size:"extra-small",variant:"medium",children:i})})})]})});function le(){return le=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},le.apply(null,arguments)}function we(e){"@babel/helpers - typeof";return we=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},we(e)}var n2=Symbol.for("react.element"),o2=Symbol.for("react.transitional.element"),i2=Symbol.for("react.fragment");function v0(e){return e&&we(e)==="object"&&(e.$$typeof===n2||e.$$typeof===o2)&&e.type===i2}function Za(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return E.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(Za(n)):v0(n)&&n.props?r=r.concat(Za(n.props.children,t)):r.push(n))}),r}var kc={},Fc=[],a2=function(t){Fc.push(t)};function Io(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Fc.reduce(function(n,o){return o(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function s2(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Fc.reduce(function(n,o){return o(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function b0(){kc={}}function y0(e,t,r){!t&&!kc[r]&&(e(!1,r),kc[r]=!0)}function ht(e,t){y0(Io,e,t)}function l2(e,t){y0(s2,e,t)}ht.preMessage=a2,ht.resetWarned=b0,ht.noteOnce=l2;function c2(e,t){if(we(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(we(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function C0(e){var t=c2(e,"string");return we(t)=="symbol"?t:t+""}function X(e,t,r){return(t=C0(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?x0(Object(r),!0).forEach(function(n){X(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Si(e){return e instanceof HTMLElement||e instanceof SVGElement}function u2(e){return e&&we(e)==="object"&&Si(e.nativeElement)?e.nativeElement:Si(e)?e:null}function qa(e){var t=u2(e);if(t)return t;if(e instanceof E.Component){var r;return(r=zr.findDOMNode)===null||r===void 0?void 0:r.call(zr,e)}return null}var Qa={exports:{}},qe={};/**
|
|
50
50
|
* @license React
|
|
51
51
|
* react-is.production.min.js
|
|
52
52
|
*
|
|
@@ -62,18 +62,18 @@ React keys must be passed directly to JSX without using spread:
|
|
|
62
62
|
*
|
|
63
63
|
* This source code is licensed under the MIT license found in the
|
|
64
64
|
* LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/var S0;function f2(){return S0||(S0=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),h=!1,m=!1,p=!1,b=!1,y=!1,w;w=Symbol.for("react.module.reference");function S(ne){return!!(typeof ne=="string"||typeof ne=="function"||ne===r||ne===o||y||ne===n||ne===c||ne===u||b||ne===g||h||m||p||typeof ne=="object"&&ne!==null&&(ne.$$typeof===f||ne.$$typeof===d||ne.$$typeof===i||ne.$$typeof===a||ne.$$typeof===l||ne.$$typeof===w||ne.getModuleId!==void 0))}function v(ne){if(typeof ne=="object"&&ne!==null){var Ie=ne.$$typeof;switch(Ie){case e:var ve=ne.type;switch(ve){case r:case o:case n:case c:case u:return ve;default:var Ye=ve&&ve.$$typeof;switch(Ye){case s:case a:case l:case f:case d:case i:return Ye;default:return Ie}}case t:return Ie}}}var I=a,N=i,O=e,T=l,P=r,M=f,x=d,$=t,k=o,F=n,j=c,z=u,W=!1,V=!1;function _(ne){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function D(ne){return V||(V=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(ne){return v(ne)===a}function L(ne){return v(ne)===i}function G(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===e}function Q(ne){return v(ne)===l}function q(ne){return v(ne)===r}function U(ne){return v(ne)===f}function K(ne){return v(ne)===d}function Z(ne){return v(ne)===t}function se(ne){return v(ne)===o}function pe(ne){return v(ne)===n}function Y(ne){return v(ne)===c}function Ce(ne){return v(ne)===u}Qe.ContextConsumer=I,Qe.ContextProvider=N,Qe.Element=O,Qe.ForwardRef=T,Qe.Fragment=P,Qe.Lazy=M,Qe.Memo=x,Qe.Portal=$,Qe.Profiler=k,Qe.StrictMode=F,Qe.Suspense=j,Qe.SuspenseList=z,Qe.isAsyncMode=_,Qe.isConcurrentMode=D,Qe.isContextConsumer=B,Qe.isContextProvider=L,Qe.isElement=G,Qe.isForwardRef=Q,Qe.isFragment=q,Qe.isLazy=U,Qe.isMemo=K,Qe.isPortal=Z,Qe.isProfiler=se,Qe.isStrictMode=pe,Qe.isSuspense=Y,Qe.isSuspenseList=Ce,Qe.isValidElementType=S,Qe.typeOf=v}()),Qe}var E0;function m2(){return E0||(E0=1,process.env.NODE_ENV==="production"?qa.exports=d2():qa.exports=f2()),qa.exports}var Fc=m2();function $c(e,t,r){var n=A.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var p2=Number(E.version.split(".")[0]),Mc=function(t,r){typeof t=="function"?t(r):we(t)==="object"&&t&&"current"in t&&(t.current=r)},Ei=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=r.filter(Boolean);return o.length<=1?o[0]:function(i){r.forEach(function(a){Mc(a,i)})}},Qa=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return $c(function(){return Ei.apply(void 0,r)},r,function(o,i){return o.length!==i.length||o.every(function(a,s){return a!==i[s]})})},Ii=function(t){var r,n;if(!t)return!1;if(I0(t)&&p2>=19)return!0;var o=Fc.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((r=o.prototype)!==null&&r!==void 0&&r.render)&&o.$$typeof!==Fc.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==Fc.ForwardRef)};function I0(e){return E.isValidElement(e)&&!v0(e)}var Ka=function(t){if(t&&I0(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},jc=A.createContext(null);function g2(e){var t=e.children,r=e.onBatchResize,n=A.useRef(0),o=A.useRef([]),i=A.useContext(jc),a=A.useCallback(function(s,l,c){n.current+=1;var u=n.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===n.current&&(r?.(o.current),o.current=[])}),i?.(s,l,c)},[r,i]);return A.createElement(jc.Provider,{value:a},t)}var A0=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(o,i){return o[0]===r?(n=i,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];r.call(n,a[1],a[0])}},t}()}(),Rc=typeof window<"u"&&typeof document<"u"&&window.document===document,es=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),h2=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(es):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),v2=2;function b2(e,t){var r=!1,n=!1,o=0;function i(){r&&(r=!1,e()),n&&s()}function a(){h2(i)}function s(){var l=Date.now();if(r){if(l-o<v2)return;n=!0}else r=!0,n=!1,setTimeout(a,t);o=l}return s}var y2=20,C2=["top","right","bottom","left","width","height","size","weight"],x2=typeof MutationObserver<"u",w2=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=b2(this.refresh.bind(this),y2)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Rc||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),x2?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Rc||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,o=C2.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),N0=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Ao=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||es},O0=rs(0,0,0,0);function ts(e){return parseFloat(e)||0}function T0(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,o){var i=e["border-"+o+"-width"];return n+ts(i)},0)}function S2(e){for(var t=["top","right","bottom","left"],r={},n=0,o=t;n<o.length;n++){var i=o[n],a=e["padding-"+i];r[i]=ts(a)}return r}function E2(e){var t=e.getBBox();return rs(0,0,t.width,t.height)}function I2(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return O0;var n=Ao(e).getComputedStyle(e),o=S2(n),i=o.left+o.right,a=o.top+o.bottom,s=ts(n.width),l=ts(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=T0(n,"left","right")+i),Math.round(l+a)!==r&&(l-=T0(n,"top","bottom")+a)),!N2(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-r;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return rs(o.left,o.top,s,l)}var A2=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ao(e).SVGGraphicsElement}:function(e){return e instanceof Ao(e).SVGElement&&typeof e.getBBox=="function"}}();function N2(e){return e===Ao(e).document.documentElement}function O2(e){return Rc?A2(e)?E2(e):I2(e):O0}function T2(e){var t=e.x,r=e.y,n=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return N0(a,{x:t,y:r,width:n,height:o,top:r,right:t+n,bottom:o+r,left:t}),a}function rs(e,t,r,n){return{x:e,y:t,width:r,height:n}}var P2=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=rs(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=O2(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),k2=function(){function e(t,r){var n=T2(r);N0(this,{target:t,contentRect:n})}return e}(),F2=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new A0,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ao(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new P2(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ao(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new k2(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),P0=typeof WeakMap<"u"?new WeakMap:new A0,k0=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=w2.getInstance(),n=new F2(t,r,this);P0.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){k0.prototype[e]=function(){var t;return(t=P0.get(this))[e].apply(t,arguments)}});var $2=function(){return typeof es.ResizeObserver<"u"?es.ResizeObserver:k0}(),hn=new Map;function F0(e){e.forEach(function(t){var r,n=t.target;(r=hn.get(n))===null||r===void 0||r.forEach(function(o){return o(n)})})}var $0=new $2(F0);process.env.NODE_ENV,process.env.NODE_ENV;function M2(e,t){hn.has(e)||(hn.set(e,new Set),$0.observe(e)),hn.get(e).add(t)}function j2(e,t){hn.has(e)&&(hn.get(e).delete(t),hn.get(e).size||($0.unobserve(e),hn.delete(e)))}function Tt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,C0(n.key),n)}}function Pt(e,t,r){return t&&M0(e.prototype,t),r&&M0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ai(e,t){return Ai=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ai(e,t)}function Gr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ai(e,t)}function Ni(e){return Ni=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ni(e)}function Lc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lc=function(){return!!e})()}function be(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R2(e,t){if(t&&(we(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return be(e)}function Hr(e){var t=Lc();return function(){var r,n=Ni(e);if(t){var o=Ni(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return R2(this,r)}}var L2=function(e){Gr(r,e);var t=Hr(r);function r(){return Tt(this,r),t.apply(this,arguments)}return Pt(r,[{key:"render",value:function(){return this.props.children}}]),r}(A.Component);function D2(e,t){var r=e.children,n=e.disabled,o=A.useRef(null),i=A.useRef(null),a=A.useContext(jc),s=typeof r=="function",l=s?r(o):r,c=A.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&A.isValidElement(l)&&Ii(l),d=u?Ka(l):null,f=Qa(d,o),g=function(){var b;return Za(o.current)||(o.current&&we(o.current)==="object"?Za((b=o.current)===null||b===void 0?void 0:b.nativeElement):null)||Za(i.current)};A.useImperativeHandle(t,function(){return g()});var h=A.useRef(e);h.current=e;var m=A.useCallback(function(p){var b=h.current,y=b.onResize,w=b.data,S=p.getBoundingClientRect(),v=S.width,I=S.height,N=p.offsetWidth,O=p.offsetHeight,T=Math.floor(v),P=Math.floor(I);if(c.current.width!==T||c.current.height!==P||c.current.offsetWidth!==N||c.current.offsetHeight!==O){var M={width:T,height:P,offsetWidth:N,offsetHeight:O};c.current=M;var x=N===Math.round(v)?v:N,$=O===Math.round(I)?I:O,k=H(H({},M),{},{offsetWidth:x,offsetHeight:$});a?.(k,p,w),y&&Promise.resolve().then(function(){y(k,p)})}},[]);return A.useEffect(function(){var p=g();return p&&!n&&M2(p,m),function(){return j2(p,m)}},[o.current,n]),A.createElement(L2,{ref:i},u?A.cloneElement(l,{ref:f}):l)}var j0=A.forwardRef(D2);process.env.NODE_ENV!=="production"&&(j0.displayName="SingleObserver");var _2="rc-observer-key";function V2(e,t){var r=e.children,n=typeof r=="function"?[r]:Ja(r);return process.env.NODE_ENV!=="production"&&(n.length>1?Io(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&Io(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(o,i){var a=o?.key||"".concat(_2,"-").concat(i);return A.createElement(j0,le({},e,{key:a,ref:i===0?t:void 0}),o)})}var ns=A.forwardRef(V2);process.env.NODE_ENV!=="production"&&(ns.displayName="ResizeObserver"),ns.Collection=g2;function Dc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function B2(e){if(Array.isArray(e))return Dc(e)}function R0(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _c(e,t){if(e){if(typeof e=="string")return Dc(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Dc(e,t):void 0}}function z2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
66
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ue(e){return B2(e)||R0(e)||
|
|
67
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ie(e,t){return B0(e)||G2(e,t)||_c(e,t)||z0()}function Oi(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)}function lr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function H2(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var G0="data-rc-order",H0="data-rc-priority",W2="rc-util-key",Vc=new Map;function W0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):W2}function is(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function U2(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Bc(e){return Array.from((Vc.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function U0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!lr())return null;var r=t.csp,n=t.prepend,o=t.priority,i=o===void 0?0:o,a=U2(n),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(G0,a),s&&i&&l.setAttribute(H0,"".concat(i)),r!=null&&r.nonce&&(l.nonce=r?.nonce),l.innerHTML=e;var c=is(t),u=c.firstChild;if(n){if(s){var d=(t.styles||Bc(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(G0)))return!1;var g=Number(f.getAttribute(H0)||0);return i>=g});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function X0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=is(t);return(t.styles||Bc(r)).find(function(n){return n.getAttribute(W0(t))===e})}function Ti(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=X0(e,t);if(r){var n=is(t);n.removeChild(r)}}function X2(e,t){var r=Vc.get(e);if(!r||!H2(document,r)){var n=U0("",t),o=n.parentNode;Vc.set(e,o),e.removeChild(n)}}function vn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=is(r),o=Bc(n),i=H(H({},r),{},{styles:o});X2(n,i);var a=X0(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=U0(e,i);return u.setAttribute(W0(i),t),u}function Y2(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 vt(e,t){if(e==null)return{};var r,n,o=Y2(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function zc(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(i);if(ht(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(r&&s>1)return!1;n.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u<i.length;u++)if(!o(i[u],a[u],c))return!1;return!0}if(i&&a&&we(i)==="object"&&we(a)==="object"){var d=Object.keys(i);return d.length!==Object.keys(a).length?!1:d.every(function(f){return o(i[f],a[f],c)})}return!1}return o(e,t)}var J2="%";function Gc(e){return e.join(J2)}var Z2=function(){function e(t){Tt(this,e),X(this,"instanceId",void 0),X(this,"cache",new Map),X(this,"extracted",new Set),this.instanceId=t}return Pt(e,[{key:"get",value:function(r){return this.opGet(Gc(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(Gc(r),n)}},{key:"opUpdate",value:function(r,n){var o=this.cache.get(r),i=n(o);i===null?this.cache.delete(r):this.cache.set(r,i)}}]),e}(),No="data-token-hash",Wr="data-css-hash",q2="data-cache-path",zn="__cssinjs_instance__";function Q2(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Wr,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(o){o[zn]=o[zn]||e,o[zn]===e&&document.head.insertBefore(o,r)});var n={};Array.from(document.querySelectorAll("style[".concat(Wr,"]"))).forEach(function(o){var i=o.getAttribute(Wr);if(n[i]){if(o[zn]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else n[i]=!0})}return new Z2(e)}var Pi=A.createContext({hashPriority:"low",cache:Q2(),defaultCache:!0});function K2(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Hc=function(){function e(){Tt(this,e),X(this,"cache",void 0),X(this,"keys",void 0),X(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Pt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return r.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=a)!==null&&n!==void 0&&n.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var o=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var d=ie(c,2),f=d[1];return o.internalGet(u)[1]<f?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=ie(i,1),s=a[0];this.delete(s)}this.keys.push(r)}var l=this.cache;r.forEach(function(c,u){if(u===r.length-1)l.set(c,{value:[n,o.cacheCallTimes++]});else{var d=l.get(c);d?d.map||(d.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(r,n){var o=r.get(n[0]);if(n.length===1){var i;return o.map?r.set(n[0],{map:o.map}):r.delete(n[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&r.delete(n[0]),a}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!K2(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();X(Hc,"MAX_CACHE_SIZE",20),X(Hc,"MAX_CACHE_OFFSET",5);var Y0=0,J0=function(){function e(t){Tt(this,e),X(this,"derivatives",void 0),X(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Y0,t.length===0&&Io(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Y0+=1}return Pt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,o){return o(r,n)},void 0)}}]),e}(),Wc=new Hc;function Uc(e){var t=Array.isArray(e)?e:[e];return Wc.has(t)||Wc.set(t,new J0(t)),Wc.get(t)}var eC=new WeakMap,Xc={};function tC(e,t){for(var r=eC,n=0;n<t.length;n+=1){var o=t[n];r.has(o)||r.set(o,new WeakMap),r=r.get(o)}return r.has(Xc)||r.set(Xc,e()),r.get(Xc)}var Z0=new WeakMap;function ki(e){var t=Z0.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof J0?t+=n.id:n&&we(n)==="object"?t+=ki(n):t+=n}),t=Oi(t),Z0.set(e,t)),t}function q0(e,t){return Oi("".concat(t,"_").concat(ki(e)))}var Yc=lr();function st(e){return typeof e=="number"?"".concat(e,"px"):e}function as(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var i=H(H({},n),{},X(X({},No,t),Wr,r)),a=Object.keys(i).map(function(s){var l=i[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(a,">").concat(e,"</style>")}var ss=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},rC=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(o){var i=ie(o,2),a=i[0],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},Q0=function(t,r,n){var o={},i={};return Object.entries(t).forEach(function(a){var s,l,c=ie(a,2),u=c[0],d=c[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[u])i[u]=d;else if((typeof d=="string"||typeof d=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[u])){var f,g=ss(u,n?.prefix);o[g]=typeof d=="number"&&!(n!=null&&(f=n.unitless)!==null&&f!==void 0&&f[u])?"".concat(d,"px"):String(d),i[u]="var(".concat(g,")")}}),[i,rC(o,r,{scope:n?.scope})]},K0=process.env.NODE_ENV!=="test"&&lr()?A.useLayoutEffect:A.useEffect,rr=function(t,r){var n=A.useRef(!0);K0(function(){return t(n.current)},r),K0(function(){return n.current=!1,function(){n.current=!0}},[])},em=function(t,r){rr(function(n){if(!n)return t()},r)},nC=H({},A),tm=nC.useInsertionEffect,oC=function(t,r,n){A.useMemo(t,n),rr(function(){return r(!0)},n)},iC=tm?function(e,t,r){return tm(function(){return e(),t()},r)}:oC,aC=H({},A),sC=aC.useInsertionEffect,lC=function(t){var r=[],n=!1;function o(i){if(n){process.env.NODE_ENV!=="production"&&Io(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(i)}return A.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(i){return i()})}},t),o},cC=function(){return function(t){t()}},uC=typeof sC<"u"?lC:cC;function dC(){return!1}var Jc=!1;function fC(){return Jc}const mC=process.env.NODE_ENV==="production"?dC:fC;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var ls=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(ls&&typeof ls.webpackHotUpdate=="function"){var pC=ls.webpackHotUpdate;ls.webpackHotUpdate=function(){return Jc=!0,setTimeout(function(){Jc=!1},0),pC.apply(void 0,arguments)}}}function Zc(e,t,r,n,o){var i=A.useContext(Pi),a=i.cache,s=[e].concat(ue(t)),l=Gc(s),c=uC([l]),u=mC(),d=function(m){a.opUpdate(l,function(p){var b=p||[void 0,void 0],y=ie(b,2),w=y[0],S=w===void 0?0:w,v=y[1],I=v;process.env.NODE_ENV!=="production"&&v&&u&&(n?.(I,u),I=null);var N=I||r(),O=[S,N];return m?m(O):O})};A.useMemo(function(){d()},[l]);var f=a.opGet(l);process.env.NODE_ENV!=="production"&&!f&&(d(),f=a.opGet(l));var g=f[1];return iC(function(){o?.(g)},function(h){return d(function(m){var p=ie(m,2),b=p[0],y=p[1];return h&&b===0&&o?.(g),[b+1,y]}),function(){a.opUpdate(l,function(m){var p=m||[],b=ie(p,2),y=b[0],w=y===void 0?0:y,S=b[1],v=w-1;return v===0?(c(function(){(h||!a.opGet(l))&&n?.(S,!1)}),null):[w-1,S]})}},[l]),g}var gC={},hC=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",lo=new Map;function vC(e){lo.set(e,(lo.get(e)||0)+1)}function bC(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(No,'="').concat(e,'"]'));r.forEach(function(n){if(n[zn]===t){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}var yC=0;function CC(e,t){lo.set(e,(lo.get(e)||0)-1);var r=new Set;lo.forEach(function(n,o){n<=0&&r.add(o)}),lo.size-r.size>yC&&r.forEach(function(n){bC(n,t),lo.delete(n)})}var xC=function(t,r,n,o){var i=n.getDerivativeToken(t),a=H(H({},i),r);return o&&(a=o(a)),a},rm="token";function wC(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=E.useContext(Pi),o=n.cache.instanceId,i=n.container,a=r.salt,s=a===void 0?"":a,l=r.override,c=l===void 0?gC:l,u=r.formatToken,d=r.getComputedToken,f=r.cssVar,g=tC(function(){return Object.assign.apply(Object,[{}].concat(ue(t)))},t),h=ki(g),m=ki(c),p=f?ki(f):"",b=Zc(rm,[s,e.id,h,m,p],function(){var y,w=d?d(g,c,e):xC(g,c,e,u),S=H({},w),v="";if(f){var I=Q0(w,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),N=ie(I,2);w=N[0],v=N[1]}var O=q0(w,s);w._tokenKey=O,S._tokenKey=q0(S,s);var T=(y=f?.key)!==null&&y!==void 0?y:O;w._themeKey=T,vC(T);var P="".concat(hC,"-").concat(Oi(O));return w._hashId=P,[w,P,S,v,f?.key||""]},function(y){CC(y[0]._themeKey,o)},function(y){var w=ie(y,4),S=w[0],v=w[3];if(f&&v){var I=vn(v,Oi("css-variables-".concat(S._themeKey)),{mark:Wr,prepend:"queue",attachTo:i,priority:-999});I[zn]=o,I.setAttribute(No,S._themeKey)}});return b}var SC=function(t,r,n){var o=ie(t,5),i=o[2],a=o[3],s=o[4],l=n||{},c=l.plain;if(!a)return null;var u=i._tokenKey,d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},g=as(a,s,u,f,c);return[d,u,g]},EC={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},nm="comm",om="rule",im="decl",IC="@import",AC="@namespace",NC="@keyframes",OC="@layer",am=Math.abs,qc=String.fromCharCode;function sm(e){return e.trim()}function cs(e,t,r){return e.replace(t,r)}function TC(e,t,r){return e.indexOf(t,r)}function Oo(e,t){return e.charCodeAt(t)|0}function To(e,t,r){return e.slice(t,r)}function rn(e){return e.length}function PC(e){return e.length}function us(e,t){return t.push(e),e}var ds=1,Po=1,lm=0,Pr=0,zt=0,ko="";function Qc(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:ds,column:Po,length:a,return:"",siblings:s}}function kC(){return zt}function FC(){return zt=Pr>0?Oo(ko,--Pr):0,Po--,zt===10&&(Po=1,ds--),zt}function Ur(){return zt=Pr<lm?Oo(ko,Pr++):0,Po++,zt===10&&(Po=1,ds++),zt}function Gn(){return Oo(ko,Pr)}function fs(){return Pr}function ms(e,t){return To(ko,e,t)}function Fi(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 $C(e){return ds=Po=1,lm=rn(ko=e),Pr=0,[]}function MC(e){return ko="",e}function Kc(e){return sm(ms(Pr-1,eu(e===91?e+2:e===40?e+1:e)))}function jC(e){for(;(zt=Gn())&&zt<33;)Ur();return Fi(e)>2||Fi(zt)>3?"":" "}function RC(e,t){for(;--t&&Ur()&&!(zt<48||zt>102||zt>57&&zt<65||zt>70&&zt<97););return ms(e,fs()+(t<6&&Gn()==32&&Ur()==32))}function eu(e){for(;Ur();)switch(zt){case e:return Pr;case 34:case 39:e!==34&&e!==39&&eu(zt);break;case 40:e===41&&eu(e);break;case 92:Ur();break}return Pr}function LC(e,t){for(;Ur()&&e+zt!==57;)if(e+zt===84&&Gn()===47)break;return"/*"+ms(t,Pr-1)+"*"+qc(e===47?e:Ur())}function DC(e){for(;!Fi(Gn());)Ur();return ms(e,Pr)}function _C(e){return MC(ps("",null,null,null,[""],e=$C(e),0,[0],e))}function ps(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,g=0,h=0,m=1,p=1,b=1,y=0,w="",S=o,v=i,I=n,N=w;p;)switch(h=y,y=Ur()){case 40:if(h!=108&&Oo(N,d-1)==58){TC(N+=cs(Kc(y),"&","&\f"),"&\f",am(c?s[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:N+=Kc(y);break;case 9:case 10:case 13:case 32:N+=jC(h);break;case 92:N+=RC(fs()-1,7);continue;case 47:switch(Gn()){case 42:case 47:us(VC(LC(Ur(),fs()),t,r,l),l),(Fi(h||1)==5||Fi(Gn()||1)==5)&&rn(N)&&To(N,-1,void 0)!==" "&&(N+=" ");break;default:N+="/"}break;case 123*m:s[c++]=rn(N)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+u:b==-1&&(N=cs(N,/\f/g,"")),g>0&&(rn(N)-d||m===0&&h===47)&&us(g>32?um(N+";",n,r,d-1,l):um(cs(N," ","")+";",n,r,d-2,l),l);break;case 59:N+=";";default:if(us(I=cm(N,t,r,c,u,o,s,w,S=[],v=[],d,i),i),y===123)if(u===0)ps(N,t,I,I,S,i,d,s,v);else{switch(f){case 99:if(Oo(N,3)===110)break;case 108:if(Oo(N,2)===97)break;default:u=0;case 100:case 109:case 115:}u?ps(e,I,I,n&&us(cm(e,I,I,0,0,o,s,w,o,S=[],d,v),v),o,v,d,s,n?S:v):ps(N,I,I,I,[""],v,0,s,v)}}c=u=g=0,m=b=1,w=N="",d=a;break;case 58:d=1+rn(N),g=h;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&FC()==125)continue}switch(N+=qc(y),y*m){case 38:b=u>0?1:(N+="\f",-1);break;case 44:s[c++]=(rn(N)-1)*b,b=1;break;case 64:Gn()===45&&(N+=Kc(Ur())),f=Gn(),u=d=rn(w=N+=DC(fs())),y++;break;case 45:h===45&&rn(N)==2&&(m=0)}}return i}function cm(e,t,r,n,o,i,a,s,l,c,u,d){for(var f=o-1,g=o===0?i:[""],h=PC(g),m=0,p=0,b=0;m<n;++m)for(var y=0,w=To(e,f+1,f=am(p=a[m])),S=e;y<h;++y)(S=sm(p>0?g[y]+" "+w:cs(w,/&\f/g,g[y])))&&(l[b++]=S);return Qc(e,t,r,o===0?om:s,l,c,u,d)}function VC(e,t,r,n){return Qc(e,t,r,nm,qc(kC()),To(e,2,-2),0,n)}function um(e,t,r,n,o){return Qc(e,t,r,im,To(e,0,n),To(e,n+1,-1),n,o)}function tu(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function BC(e,t,r,n){switch(e.type){case OC:if(e.children.length)break;case IC:case AC:case im:return e.return=e.return||e.value;case nm:return"";case NC:return e.return=e.value+"{"+tu(e.children,n)+"}";case om:if(!rn(e.value=e.props.join(",")))return""}return rn(r=tu(e.children,n))?e.return=e.value+"{"+r+"}":""}function dm(e,t){var r=t.path,n=t.parentSelectors;ht(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var zC=function(t,r,n){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof r!="string"||i.indexOf(r)===-1&&!o.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&dm("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},GC=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&dm("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},fm="data-ant-cssinjs-cache-path",mm="_FILE_STYLE__",co,pm=!0;function HC(){if(!co&&(co={},lr())){var e=document.createElement("div");e.className=fm,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var i=o.split(":"),a=ie(i,2),s=a[0],l=a[1];co[s]=l});var r=document.querySelector("style[".concat(fm,"]"));if(r){var n;pm=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function WC(e){return HC(),!!co[e]}function UC(e){var t=co[e],r=null;if(t&&lr())if(pm)r=mm;else{var n=document.querySelector("style[".concat(Wr,'="').concat(co[e],'"]'));n?r=n.innerHTML:delete co[e]}return[r,t]}var gm="_skip_check_",hm="_multi_value_";function gs(e){var t=tu(_C(e),BC);return t.replace(/\{%%%\:[^;];}/g,";")}function XC(e){return we(e)==="object"&&e&&(gm in e||hm in e)}function vm(e,t,r){if(!t)return e;var n=".".concat(t),o=r==="low"?":where(".concat(n,")"):n,i=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(ue(l.slice(1))).join(" ")});return i.join(",")}var YC=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=n.root,i=n.injectHash,a=n.parentSelectors,s=r.hashId,l=r.layer,c=r.path,u=r.hashPriority,d=r.transformers,f=d===void 0?[]:d,g=r.linters,h=g===void 0?[]:g,m="",p={};function b(S){var v=S.getName(s);if(!p[v]){var I=e(S.style,r,{root:!1,parentSelectors:a}),N=ie(I,1),O=N[0];p[v]="@keyframes ".concat(S.getName(s)).concat(O)}}function y(S){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(I){Array.isArray(I)?y(I,v):I&&v.push(I)}),v}var w=y(Array.isArray(t)?t:[t]);return w.forEach(function(S){var v=typeof S=="string"&&!o?{}:S;if(typeof v=="string")m+="".concat(v,`
|
|
68
|
-
`);else if(v._keyframe)b(v);else{var I=f.reduce(function(N,O){var T;return(O==null||(T=O.visit)===null||T===void 0?void 0:T.call(O,N))||N},v);Object.keys(I).forEach(function(N){var O=I[N];if(we(O)==="object"&&O&&(N!=="animationName"||!O._keyframe)&&!XC(O)){var T=!1,P=N.trim(),M=!1;(o||i)&&s?P.startsWith("@")?T=!0:P==="&"?P=vm("",s,u):P=vm(N,s,u):o&&!s&&(P==="&"||P==="")&&(P="",M=!0);var x=e(O,r,{root:M,injectHash:T,parentSelectors:[].concat(ue(a),[P])}),$=ie(x,2),k=$[0],F=$[1];p=H(H({},p),F),m+="".concat(P).concat(k)}else{let W=function(V,_){process.env.NODE_ENV!=="production"&&(we(O)!=="object"||!(O!=null&&O[gm]))&&[zC,GC].concat(ue(h)).forEach(function(L){return L(V,_,{path:c,hashId:s,parentSelectors:a})});var D=V.replace(/[A-Z]/g,function(L){return"-".concat(L.toLowerCase())}),B=_;!EC[V]&&typeof B=="number"&&B!==0&&(B="".concat(B,"px")),V==="animationName"&&_!==null&&_!==void 0&&_._keyframe&&(b(_),B=_.getName(s)),m+="".concat(D,":").concat(B,";")};var j,
|
|
69
|
-
`))):m="{".concat(m,"}"),[m,p]};function bm(e,t){return Oi("".concat(e.join("%")).concat(t))}function JC(){return null}var ym="style";function ru(e,t){var r=e.token,n=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=A.useContext(Pi),d=u.autoClear,f=u.mock,g=u.defaultCache,h=u.hashPriority,m=u.container,p=u.ssrInline,b=u.transformers,y=u.linters,w=u.cache,S=u.layer,v=r._tokenKey,I=[v];S&&I.push("layer"),I.push.apply(I,ue(n));var N=Yc;process.env.NODE_ENV!=="production"&&f!==void 0&&(N=f==="client");var O=Zc(ym,I,function(){var $=I.join("|");if(WC($)){var k=UC($),F=ie(k,2),j=F[0],z=F[1];if(j)return[j,v,z,{},s,c]}var W=t(),V=YC(W,{hashId:o,hashPriority:h,layer:S?i:void 0,path:n.join("-"),transformers:b,linters:y}),_=ie(V,2),D=_[0],B=_[1],L=gs(D),G=bm(I,L);return[L,v,G,B,s,c]},function($,k){var F=ie($,3),j=F[2];(k||d)&&Yc&&Ti(j,{mark:Wr,attachTo:m})},function($){var k=ie($,4),F=k[0];k[1];var j=k[2],z=k[3];if(N&&F!==mm){var W={mark:Wr,prepend:S?!1:"queue",attachTo:m,priority:c},V=typeof a=="function"?a():a;V&&(W.csp={nonce:V});var _=[],D=[];Object.keys(z).forEach(function(L){L.startsWith("@layer")?_.push(L):D.push(L)}),_.forEach(function(L){vn(gs(z[L]),"_layer-".concat(L),H(H({},W),{},{prepend:!0}))});var B=vn(F,j,W);B[zn]=w.instanceId,B.setAttribute(No,v),process.env.NODE_ENV!=="production"&&B.setAttribute(q2,I.join("|")),D.forEach(function(L){vn(gs(z[L]),"_effect-".concat(L),W)})}}),T=ie(O,3),P=T[0],M=T[1],x=T[2];return function($){var k;return!p||N||!g?k=A.createElement(JC,null):k=A.createElement("style",le({},X(X({},No,M),Wr,x),{dangerouslySetInnerHTML:{__html:P}})),A.createElement(A.Fragment,null,k,$)}}var ZC=function(t,r,n){var o=ie(t,6),i=o[0],a=o[1],s=o[2],l=o[3],c=o[4],u=o[5],d=n||{},f=d.plain;if(c)return null;var g=i,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return g=as(i,a,s,h,f),l&&Object.keys(l).forEach(function(m){if(!r[m]){r[m]=!0;var p=gs(l[m]),b=as(p,a,"_effect-".concat(m),h,f);m.startsWith("@layer")?g=b+g:g+=b}}),[u,s,g]},Cm="cssVar",qC=function(t,r){var n=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=E.useContext(Pi),d=u.cache.instanceId,f=u.container,g=s._tokenKey,h=[].concat(ue(t.path),[n,c,g]),m=Zc(Cm,h,function(){var p=r(),b=Q0(p,n,{prefix:o,unitless:i,ignore:a,scope:c}),y=ie(b,2),w=y[0],S=y[1],v=bm(h,S);return[w,S,v,n]},function(p){var b=ie(p,3),y=b[2];Yc&&Ti(y,{mark:Wr,attachTo:f})},function(p){var b=ie(p,3),y=b[1],w=b[2];if(y){var S=vn(y,w,{mark:Wr,prepend:"queue",attachTo:f,priority:-999});S[zn]=d,S.setAttribute(No,n)}});return m},QC=function(t,r,n){var o=ie(t,4),i=o[1],a=o[2],s=o[3],l=n||{},c=l.plain;if(!i)return null;var u=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},f=as(i,s,a,d,c);return[u,a,f]};X(X(X({},ym,ZC),rm,SC),Cm,QC);var Qt=function(){function e(t,r){Tt(this,e),X(this,"name",void 0),X(this,"style",void 0),X(this,"_keyframe",!0),this.name=t,this.style=r}return Pt(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function Fo(e){return e.notSplit=!0,e}Fo(["borderTop","borderBottom"]),Fo(["borderTop"]),Fo(["borderBottom"]),Fo(["borderLeft","borderRight"]),Fo(["borderLeft"]),Fo(["borderRight"]);var nu=E.createContext({});function KC(e){return B0(e)||R0(e)||_c(e)||z0()}function nn(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function xm(e,t,r,n){if(!t.length)return r;var o=KC(t),i=o[0],a=o.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=ue(e):s=H({},e),n&&r===void 0&&a.length===1?delete s[i][a[0]]:s[i]=xm(s[i],a,r,n),s}function Xr(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!nn(e,t.slice(0,-1))?e:xm(e,t,r,n)}function ex(e){return we(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function wm(e){return Array.isArray(e)?[]:{}}var tx=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function $o(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=wm(t[0]);return t.forEach(function(o){function i(a,s){var l=new Set(s),c=nn(o,a),u=Array.isArray(c);if(u||ex(c)){if(!l.has(c)){l.add(c);var d=nn(n,a);u?n=Xr(n,a,[]):(!d||we(d)!=="object")&&(n=Xr(n,a,wm(c))),tx(c).forEach(function(f){i([].concat(ue(a),[f]),l)})}}else n=Xr(n,a,c)}i([])}),n}function Sm(){}let bn=null;function rx(){bn=null,b0()}let Em=Sm;process.env.NODE_ENV!=="production"&&(Em=(e,t,r)=>{ht(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&rx()});const Mo=Em,Im=A.createContext({}),kr=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=A.useContext(Im),r=(n,o,i)=>{if(!n)if(t===!1&&o==="deprecated"){const a=bn;bn||(bn={}),bn[e]=bn[e]||[],bn[e].includes(i||"")||bn[e].push(i||""),a||console.warn("[antd] There exists deprecated usage in your code:",bn)}else process.env.NODE_ENV!=="production"&&Mo(n,e,i)};return r.deprecated=(n,o,i,a)=>{r(n,"deprecated",`\`${o}\` is deprecated. Please use \`${i}\` instead.${a?` ${a}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=Sm,e},nx=E.createContext(void 0);var ox={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},ix={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},ax=H(H({},ix),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const Am={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Nm={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},ax),timePickerLocale:Object.assign({},Am)},yr="${label} is not a valid ${type}",uo={locale:"en",Pagination:ox,DatePicker:Nm,TimePicker:Am,Calendar:Nm,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:yr,method:yr,array:yr,object:yr,number:yr,date:yr,boolean:yr,integer:yr,float:yr,regexp:yr,email:yr,url:yr,hex:yr},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},uo.Modal);let hs=[];const Om=()=>hs.reduce((e,t)=>Object.assign(Object.assign({},e),t),uo.Modal);function sx(e){if(e){const t=Object.assign({},e);return hs.push(t),Om(),()=>{hs=hs.filter(r=>r!==t),Om()}}Object.assign({},uo.Modal)}const ou=E.createContext(void 0),lx=(e,t)=>{const r=A.useContext(ou),n=A.useMemo(()=>{var i;const a=t||uo[e],s=(i=r?.[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,r]),o=A.useMemo(()=>{const i=r?.locale;return r?.exist&&!i?uo.locale:i},[r]);return[n,o]},Tm="internalMark",Pm=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const i=kr("LocaleProvider");process.env.NODE_ENV!=="production"&&i(n===Tm,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}A.useEffect(()=>sx(t?.Modal),[t]);const o=A.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return A.createElement(ou.Provider,{value:o},r)};process.env.NODE_ENV!=="production"&&(Pm.displayName="LocaleProvider");const km={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},$i=Object.assign(Object.assign({},km),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
65
|
+
*/var S0;function f2(){return S0||(S0=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),h=!1,m=!1,p=!1,b=!1,y=!1,w;w=Symbol.for("react.module.reference");function S(ne){return!!(typeof ne=="string"||typeof ne=="function"||ne===r||ne===o||y||ne===n||ne===c||ne===u||b||ne===g||h||m||p||typeof ne=="object"&&ne!==null&&(ne.$$typeof===f||ne.$$typeof===d||ne.$$typeof===i||ne.$$typeof===a||ne.$$typeof===l||ne.$$typeof===w||ne.getModuleId!==void 0))}function v(ne){if(typeof ne=="object"&&ne!==null){var Ie=ne.$$typeof;switch(Ie){case e:var ve=ne.type;switch(ve){case r:case o:case n:case c:case u:return ve;default:var Ye=ve&&ve.$$typeof;switch(Ye){case s:case a:case l:case f:case d:case i:return Ye;default:return Ie}}case t:return Ie}}}var I=a,N=i,O=e,T=l,P=r,M=f,x=d,$=t,k=o,F=n,j=c,G=u,W=!1,V=!1;function _(ne){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function D(ne){return V||(V=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(ne){return v(ne)===a}function L(ne){return v(ne)===i}function z(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===e}function Q(ne){return v(ne)===l}function q(ne){return v(ne)===r}function U(ne){return v(ne)===f}function K(ne){return v(ne)===d}function Z(ne){return v(ne)===t}function se(ne){return v(ne)===o}function ge(ne){return v(ne)===n}function Y(ne){return v(ne)===c}function Ce(ne){return v(ne)===u}Qe.ContextConsumer=I,Qe.ContextProvider=N,Qe.Element=O,Qe.ForwardRef=T,Qe.Fragment=P,Qe.Lazy=M,Qe.Memo=x,Qe.Portal=$,Qe.Profiler=k,Qe.StrictMode=F,Qe.Suspense=j,Qe.SuspenseList=G,Qe.isAsyncMode=_,Qe.isConcurrentMode=D,Qe.isContextConsumer=B,Qe.isContextProvider=L,Qe.isElement=z,Qe.isForwardRef=Q,Qe.isFragment=q,Qe.isLazy=U,Qe.isMemo=K,Qe.isPortal=Z,Qe.isProfiler=se,Qe.isStrictMode=ge,Qe.isSuspense=Y,Qe.isSuspenseList=Ce,Qe.isValidElementType=S,Qe.typeOf=v}()),Qe}var E0;function m2(){return E0||(E0=1,process.env.NODE_ENV==="production"?Qa.exports=d2():Qa.exports=f2()),Qa.exports}var $c=m2();function Mc(e,t,r){var n=A.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var p2=Number(E.version.split(".")[0]),jc=function(t,r){typeof t=="function"?t(r):we(t)==="object"&&t&&"current"in t&&(t.current=r)},Ei=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=r.filter(Boolean);return o.length<=1?o[0]:function(i){r.forEach(function(a){jc(a,i)})}},Ka=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Mc(function(){return Ei.apply(void 0,r)},r,function(o,i){return o.length!==i.length||o.every(function(a,s){return a!==i[s]})})},Ii=function(t){var r,n;if(!t)return!1;if(I0(t)&&p2>=19)return!0;var o=$c.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((r=o.prototype)!==null&&r!==void 0&&r.render)&&o.$$typeof!==$c.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==$c.ForwardRef)};function I0(e){return E.isValidElement(e)&&!v0(e)}var es=function(t){if(t&&I0(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},Rc=A.createContext(null);function g2(e){var t=e.children,r=e.onBatchResize,n=A.useRef(0),o=A.useRef([]),i=A.useContext(Rc),a=A.useCallback(function(s,l,c){n.current+=1;var u=n.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===n.current&&(r?.(o.current),o.current=[])}),i?.(s,l,c)},[r,i]);return A.createElement(Rc.Provider,{value:a},t)}var A0=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(o,i){return o[0]===r?(n=i,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];r.call(n,a[1],a[0])}},t}()}(),Lc=typeof window<"u"&&typeof document<"u"&&window.document===document,ts=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),h2=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ts):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),v2=2;function b2(e,t){var r=!1,n=!1,o=0;function i(){r&&(r=!1,e()),n&&s()}function a(){h2(i)}function s(){var l=Date.now();if(r){if(l-o<v2)return;n=!0}else r=!0,n=!1,setTimeout(a,t);o=l}return s}var y2=20,C2=["top","right","bottom","left","width","height","size","weight"],x2=typeof MutationObserver<"u",w2=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=b2(this.refresh.bind(this),y2)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Lc||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),x2?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Lc||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,o=C2.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),N0=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Ao=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ts},O0=ns(0,0,0,0);function rs(e){return parseFloat(e)||0}function T0(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,o){var i=e["border-"+o+"-width"];return n+rs(i)},0)}function S2(e){for(var t=["top","right","bottom","left"],r={},n=0,o=t;n<o.length;n++){var i=o[n],a=e["padding-"+i];r[i]=rs(a)}return r}function E2(e){var t=e.getBBox();return ns(0,0,t.width,t.height)}function I2(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return O0;var n=Ao(e).getComputedStyle(e),o=S2(n),i=o.left+o.right,a=o.top+o.bottom,s=rs(n.width),l=rs(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=T0(n,"left","right")+i),Math.round(l+a)!==r&&(l-=T0(n,"top","bottom")+a)),!N2(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-r;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return ns(o.left,o.top,s,l)}var A2=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ao(e).SVGGraphicsElement}:function(e){return e instanceof Ao(e).SVGElement&&typeof e.getBBox=="function"}}();function N2(e){return e===Ao(e).document.documentElement}function O2(e){return Lc?A2(e)?E2(e):I2(e):O0}function T2(e){var t=e.x,r=e.y,n=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return N0(a,{x:t,y:r,width:n,height:o,top:r,right:t+n,bottom:o+r,left:t}),a}function ns(e,t,r,n){return{x:e,y:t,width:r,height:n}}var P2=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ns(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=O2(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),k2=function(){function e(t,r){var n=T2(r);N0(this,{target:t,contentRect:n})}return e}(),F2=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new A0,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ao(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new P2(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ao(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new k2(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),P0=typeof WeakMap<"u"?new WeakMap:new A0,k0=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=w2.getInstance(),n=new F2(t,r,this);P0.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){k0.prototype[e]=function(){var t;return(t=P0.get(this))[e].apply(t,arguments)}});var $2=function(){return typeof ts.ResizeObserver<"u"?ts.ResizeObserver:k0}(),hn=new Map;function F0(e){e.forEach(function(t){var r,n=t.target;(r=hn.get(n))===null||r===void 0||r.forEach(function(o){return o(n)})})}var $0=new $2(F0);process.env.NODE_ENV,process.env.NODE_ENV;function M2(e,t){hn.has(e)||(hn.set(e,new Set),$0.observe(e)),hn.get(e).add(t)}function j2(e,t){hn.has(e)&&(hn.get(e).delete(t),hn.get(e).size||($0.unobserve(e),hn.delete(e)))}function Tt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,C0(n.key),n)}}function Pt(e,t,r){return t&&M0(e.prototype,t),r&&M0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ai(e,t){return Ai=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ai(e,t)}function Gr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ai(e,t)}function Ni(e){return Ni=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ni(e)}function Dc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Dc=function(){return!!e})()}function be(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R2(e,t){if(t&&(we(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return be(e)}function Hr(e){var t=Dc();return function(){var r,n=Ni(e);if(t){var o=Ni(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return R2(this,r)}}var L2=function(e){Gr(r,e);var t=Hr(r);function r(){return Tt(this,r),t.apply(this,arguments)}return Pt(r,[{key:"render",value:function(){return this.props.children}}]),r}(A.Component);function D2(e,t){var r=e.children,n=e.disabled,o=A.useRef(null),i=A.useRef(null),a=A.useContext(Rc),s=typeof r=="function",l=s?r(o):r,c=A.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&A.isValidElement(l)&&Ii(l),d=u?es(l):null,f=Ka(d,o),g=function(){var b;return qa(o.current)||(o.current&&we(o.current)==="object"?qa((b=o.current)===null||b===void 0?void 0:b.nativeElement):null)||qa(i.current)};A.useImperativeHandle(t,function(){return g()});var h=A.useRef(e);h.current=e;var m=A.useCallback(function(p){var b=h.current,y=b.onResize,w=b.data,S=p.getBoundingClientRect(),v=S.width,I=S.height,N=p.offsetWidth,O=p.offsetHeight,T=Math.floor(v),P=Math.floor(I);if(c.current.width!==T||c.current.height!==P||c.current.offsetWidth!==N||c.current.offsetHeight!==O){var M={width:T,height:P,offsetWidth:N,offsetHeight:O};c.current=M;var x=N===Math.round(v)?v:N,$=O===Math.round(I)?I:O,k=H(H({},M),{},{offsetWidth:x,offsetHeight:$});a?.(k,p,w),y&&Promise.resolve().then(function(){y(k,p)})}},[]);return A.useEffect(function(){var p=g();return p&&!n&&M2(p,m),function(){return j2(p,m)}},[o.current,n]),A.createElement(L2,{ref:i},u?A.cloneElement(l,{ref:f}):l)}var j0=A.forwardRef(D2);process.env.NODE_ENV!=="production"&&(j0.displayName="SingleObserver");var _2="rc-observer-key";function V2(e,t){var r=e.children,n=typeof r=="function"?[r]:Za(r);return process.env.NODE_ENV!=="production"&&(n.length>1?Io(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&Io(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(o,i){var a=o?.key||"".concat(_2,"-").concat(i);return A.createElement(j0,le({},e,{key:a,ref:i===0?t:void 0}),o)})}var os=A.forwardRef(V2);process.env.NODE_ENV!=="production"&&(os.displayName="ResizeObserver"),os.Collection=g2;function _c(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function B2(e){if(Array.isArray(e))return _c(e)}function R0(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vc(e,t){if(e){if(typeof e=="string")return _c(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_c(e,t):void 0}}function z2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
66
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ue(e){return B2(e)||R0(e)||Vc(e)||z2()}var L0=function(t){return+setTimeout(t,16)},D0=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(L0=function(t){return window.requestAnimationFrame(t)},D0=function(t){return window.cancelAnimationFrame(t)});var _0=0,is=new Map;function V0(e){is.delete(e)}var tn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;_0+=1;var n=_0;function o(i){if(i===0)V0(n),t();else{var a=L0(function(){o(i-1)});is.set(n,a)}}return o(r),n};tn.cancel=function(e){var t=is.get(e);return V0(e),D0(t)},process.env.NODE_ENV!=="production"&&(tn.ids=function(){return is});function B0(e){if(Array.isArray(e))return e}function G2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function z0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
67
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ie(e,t){return B0(e)||G2(e,t)||Vc(e,t)||z0()}function Oi(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)}function lr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function H2(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var G0="data-rc-order",H0="data-rc-priority",W2="rc-util-key",Bc=new Map;function W0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):W2}function as(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function U2(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function zc(e){return Array.from((Bc.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function U0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!lr())return null;var r=t.csp,n=t.prepend,o=t.priority,i=o===void 0?0:o,a=U2(n),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(G0,a),s&&i&&l.setAttribute(H0,"".concat(i)),r!=null&&r.nonce&&(l.nonce=r?.nonce),l.innerHTML=e;var c=as(t),u=c.firstChild;if(n){if(s){var d=(t.styles||zc(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(G0)))return!1;var g=Number(f.getAttribute(H0)||0);return i>=g});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function X0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=as(t);return(t.styles||zc(r)).find(function(n){return n.getAttribute(W0(t))===e})}function Ti(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=X0(e,t);if(r){var n=as(t);n.removeChild(r)}}function X2(e,t){var r=Bc.get(e);if(!r||!H2(document,r)){var n=U0("",t),o=n.parentNode;Bc.set(e,o),e.removeChild(n)}}function vn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=as(r),o=zc(n),i=H(H({},r),{},{styles:o});X2(n,i);var a=X0(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=U0(e,i);return u.setAttribute(W0(i),t),u}function Y2(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 vt(e,t){if(e==null)return{};var r,n,o=Y2(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Gc(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(i);if(ht(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(r&&s>1)return!1;n.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u<i.length;u++)if(!o(i[u],a[u],c))return!1;return!0}if(i&&a&&we(i)==="object"&&we(a)==="object"){var d=Object.keys(i);return d.length!==Object.keys(a).length?!1:d.every(function(f){return o(i[f],a[f],c)})}return!1}return o(e,t)}var J2="%";function Hc(e){return e.join(J2)}var Z2=function(){function e(t){Tt(this,e),X(this,"instanceId",void 0),X(this,"cache",new Map),X(this,"extracted",new Set),this.instanceId=t}return Pt(e,[{key:"get",value:function(r){return this.opGet(Hc(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(Hc(r),n)}},{key:"opUpdate",value:function(r,n){var o=this.cache.get(r),i=n(o);i===null?this.cache.delete(r):this.cache.set(r,i)}}]),e}(),No="data-token-hash",Wr="data-css-hash",q2="data-cache-path",zn="__cssinjs_instance__";function Q2(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Wr,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(o){o[zn]=o[zn]||e,o[zn]===e&&document.head.insertBefore(o,r)});var n={};Array.from(document.querySelectorAll("style[".concat(Wr,"]"))).forEach(function(o){var i=o.getAttribute(Wr);if(n[i]){if(o[zn]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else n[i]=!0})}return new Z2(e)}var Pi=A.createContext({hashPriority:"low",cache:Q2(),defaultCache:!0});function K2(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Wc=function(){function e(){Tt(this,e),X(this,"cache",void 0),X(this,"keys",void 0),X(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Pt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return r.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=a)!==null&&n!==void 0&&n.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var o=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var d=ie(c,2),f=d[1];return o.internalGet(u)[1]<f?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=ie(i,1),s=a[0];this.delete(s)}this.keys.push(r)}var l=this.cache;r.forEach(function(c,u){if(u===r.length-1)l.set(c,{value:[n,o.cacheCallTimes++]});else{var d=l.get(c);d?d.map||(d.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(r,n){var o=r.get(n[0]);if(n.length===1){var i;return o.map?r.set(n[0],{map:o.map}):r.delete(n[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&r.delete(n[0]),a}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!K2(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();X(Wc,"MAX_CACHE_SIZE",20),X(Wc,"MAX_CACHE_OFFSET",5);var Y0=0,J0=function(){function e(t){Tt(this,e),X(this,"derivatives",void 0),X(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Y0,t.length===0&&Io(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Y0+=1}return Pt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,o){return o(r,n)},void 0)}}]),e}(),Uc=new Wc;function Xc(e){var t=Array.isArray(e)?e:[e];return Uc.has(t)||Uc.set(t,new J0(t)),Uc.get(t)}var eC=new WeakMap,Yc={};function tC(e,t){for(var r=eC,n=0;n<t.length;n+=1){var o=t[n];r.has(o)||r.set(o,new WeakMap),r=r.get(o)}return r.has(Yc)||r.set(Yc,e()),r.get(Yc)}var Z0=new WeakMap;function ki(e){var t=Z0.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof J0?t+=n.id:n&&we(n)==="object"?t+=ki(n):t+=n}),t=Oi(t),Z0.set(e,t)),t}function q0(e,t){return Oi("".concat(t,"_").concat(ki(e)))}var Jc=lr();function st(e){return typeof e=="number"?"".concat(e,"px"):e}function ss(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var i=H(H({},n),{},X(X({},No,t),Wr,r)),a=Object.keys(i).map(function(s){var l=i[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(a,">").concat(e,"</style>")}var ls=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},rC=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(o){var i=ie(o,2),a=i[0],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},Q0=function(t,r,n){var o={},i={};return Object.entries(t).forEach(function(a){var s,l,c=ie(a,2),u=c[0],d=c[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[u])i[u]=d;else if((typeof d=="string"||typeof d=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[u])){var f,g=ls(u,n?.prefix);o[g]=typeof d=="number"&&!(n!=null&&(f=n.unitless)!==null&&f!==void 0&&f[u])?"".concat(d,"px"):String(d),i[u]="var(".concat(g,")")}}),[i,rC(o,r,{scope:n?.scope})]},K0=process.env.NODE_ENV!=="test"&&lr()?A.useLayoutEffect:A.useEffect,rr=function(t,r){var n=A.useRef(!0);K0(function(){return t(n.current)},r),K0(function(){return n.current=!1,function(){n.current=!0}},[])},em=function(t,r){rr(function(n){if(!n)return t()},r)},nC=H({},A),tm=nC.useInsertionEffect,oC=function(t,r,n){A.useMemo(t,n),rr(function(){return r(!0)},n)},iC=tm?function(e,t,r){return tm(function(){return e(),t()},r)}:oC,aC=H({},A),sC=aC.useInsertionEffect,lC=function(t){var r=[],n=!1;function o(i){if(n){process.env.NODE_ENV!=="production"&&Io(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(i)}return A.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(i){return i()})}},t),o},cC=function(){return function(t){t()}},uC=typeof sC<"u"?lC:cC;function dC(){return!1}var Zc=!1;function fC(){return Zc}const mC=process.env.NODE_ENV==="production"?dC:fC;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var cs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(cs&&typeof cs.webpackHotUpdate=="function"){var pC=cs.webpackHotUpdate;cs.webpackHotUpdate=function(){return Zc=!0,setTimeout(function(){Zc=!1},0),pC.apply(void 0,arguments)}}}function qc(e,t,r,n,o){var i=A.useContext(Pi),a=i.cache,s=[e].concat(ue(t)),l=Hc(s),c=uC([l]),u=mC(),d=function(m){a.opUpdate(l,function(p){var b=p||[void 0,void 0],y=ie(b,2),w=y[0],S=w===void 0?0:w,v=y[1],I=v;process.env.NODE_ENV!=="production"&&v&&u&&(n?.(I,u),I=null);var N=I||r(),O=[S,N];return m?m(O):O})};A.useMemo(function(){d()},[l]);var f=a.opGet(l);process.env.NODE_ENV!=="production"&&!f&&(d(),f=a.opGet(l));var g=f[1];return iC(function(){o?.(g)},function(h){return d(function(m){var p=ie(m,2),b=p[0],y=p[1];return h&&b===0&&o?.(g),[b+1,y]}),function(){a.opUpdate(l,function(m){var p=m||[],b=ie(p,2),y=b[0],w=y===void 0?0:y,S=b[1],v=w-1;return v===0?(c(function(){(h||!a.opGet(l))&&n?.(S,!1)}),null):[w-1,S]})}},[l]),g}var gC={},hC=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",lo=new Map;function vC(e){lo.set(e,(lo.get(e)||0)+1)}function bC(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(No,'="').concat(e,'"]'));r.forEach(function(n){if(n[zn]===t){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}var yC=0;function CC(e,t){lo.set(e,(lo.get(e)||0)-1);var r=new Set;lo.forEach(function(n,o){n<=0&&r.add(o)}),lo.size-r.size>yC&&r.forEach(function(n){bC(n,t),lo.delete(n)})}var xC=function(t,r,n,o){var i=n.getDerivativeToken(t),a=H(H({},i),r);return o&&(a=o(a)),a},rm="token";function wC(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=E.useContext(Pi),o=n.cache.instanceId,i=n.container,a=r.salt,s=a===void 0?"":a,l=r.override,c=l===void 0?gC:l,u=r.formatToken,d=r.getComputedToken,f=r.cssVar,g=tC(function(){return Object.assign.apply(Object,[{}].concat(ue(t)))},t),h=ki(g),m=ki(c),p=f?ki(f):"",b=qc(rm,[s,e.id,h,m,p],function(){var y,w=d?d(g,c,e):xC(g,c,e,u),S=H({},w),v="";if(f){var I=Q0(w,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),N=ie(I,2);w=N[0],v=N[1]}var O=q0(w,s);w._tokenKey=O,S._tokenKey=q0(S,s);var T=(y=f?.key)!==null&&y!==void 0?y:O;w._themeKey=T,vC(T);var P="".concat(hC,"-").concat(Oi(O));return w._hashId=P,[w,P,S,v,f?.key||""]},function(y){CC(y[0]._themeKey,o)},function(y){var w=ie(y,4),S=w[0],v=w[3];if(f&&v){var I=vn(v,Oi("css-variables-".concat(S._themeKey)),{mark:Wr,prepend:"queue",attachTo:i,priority:-999});I[zn]=o,I.setAttribute(No,S._themeKey)}});return b}var SC=function(t,r,n){var o=ie(t,5),i=o[2],a=o[3],s=o[4],l=n||{},c=l.plain;if(!a)return null;var u=i._tokenKey,d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},g=ss(a,s,u,f,c);return[d,u,g]},EC={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},nm="comm",om="rule",im="decl",IC="@import",AC="@namespace",NC="@keyframes",OC="@layer",am=Math.abs,Qc=String.fromCharCode;function sm(e){return e.trim()}function us(e,t,r){return e.replace(t,r)}function TC(e,t,r){return e.indexOf(t,r)}function Oo(e,t){return e.charCodeAt(t)|0}function To(e,t,r){return e.slice(t,r)}function rn(e){return e.length}function PC(e){return e.length}function ds(e,t){return t.push(e),e}var fs=1,Po=1,lm=0,Pr=0,zt=0,ko="";function Kc(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:fs,column:Po,length:a,return:"",siblings:s}}function kC(){return zt}function FC(){return zt=Pr>0?Oo(ko,--Pr):0,Po--,zt===10&&(Po=1,fs--),zt}function Ur(){return zt=Pr<lm?Oo(ko,Pr++):0,Po++,zt===10&&(Po=1,fs++),zt}function Gn(){return Oo(ko,Pr)}function ms(){return Pr}function ps(e,t){return To(ko,e,t)}function Fi(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 $C(e){return fs=Po=1,lm=rn(ko=e),Pr=0,[]}function MC(e){return ko="",e}function eu(e){return sm(ps(Pr-1,tu(e===91?e+2:e===40?e+1:e)))}function jC(e){for(;(zt=Gn())&&zt<33;)Ur();return Fi(e)>2||Fi(zt)>3?"":" "}function RC(e,t){for(;--t&&Ur()&&!(zt<48||zt>102||zt>57&&zt<65||zt>70&&zt<97););return ps(e,ms()+(t<6&&Gn()==32&&Ur()==32))}function tu(e){for(;Ur();)switch(zt){case e:return Pr;case 34:case 39:e!==34&&e!==39&&tu(zt);break;case 40:e===41&&tu(e);break;case 92:Ur();break}return Pr}function LC(e,t){for(;Ur()&&e+zt!==57;)if(e+zt===84&&Gn()===47)break;return"/*"+ps(t,Pr-1)+"*"+Qc(e===47?e:Ur())}function DC(e){for(;!Fi(Gn());)Ur();return ps(e,Pr)}function _C(e){return MC(gs("",null,null,null,[""],e=$C(e),0,[0],e))}function gs(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,g=0,h=0,m=1,p=1,b=1,y=0,w="",S=o,v=i,I=n,N=w;p;)switch(h=y,y=Ur()){case 40:if(h!=108&&Oo(N,d-1)==58){TC(N+=us(eu(y),"&","&\f"),"&\f",am(c?s[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:N+=eu(y);break;case 9:case 10:case 13:case 32:N+=jC(h);break;case 92:N+=RC(ms()-1,7);continue;case 47:switch(Gn()){case 42:case 47:ds(VC(LC(Ur(),ms()),t,r,l),l),(Fi(h||1)==5||Fi(Gn()||1)==5)&&rn(N)&&To(N,-1,void 0)!==" "&&(N+=" ");break;default:N+="/"}break;case 123*m:s[c++]=rn(N)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+u:b==-1&&(N=us(N,/\f/g,"")),g>0&&(rn(N)-d||m===0&&h===47)&&ds(g>32?um(N+";",n,r,d-1,l):um(us(N," ","")+";",n,r,d-2,l),l);break;case 59:N+=";";default:if(ds(I=cm(N,t,r,c,u,o,s,w,S=[],v=[],d,i),i),y===123)if(u===0)gs(N,t,I,I,S,i,d,s,v);else{switch(f){case 99:if(Oo(N,3)===110)break;case 108:if(Oo(N,2)===97)break;default:u=0;case 100:case 109:case 115:}u?gs(e,I,I,n&&ds(cm(e,I,I,0,0,o,s,w,o,S=[],d,v),v),o,v,d,s,n?S:v):gs(N,I,I,I,[""],v,0,s,v)}}c=u=g=0,m=b=1,w=N="",d=a;break;case 58:d=1+rn(N),g=h;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&FC()==125)continue}switch(N+=Qc(y),y*m){case 38:b=u>0?1:(N+="\f",-1);break;case 44:s[c++]=(rn(N)-1)*b,b=1;break;case 64:Gn()===45&&(N+=eu(Ur())),f=Gn(),u=d=rn(w=N+=DC(ms())),y++;break;case 45:h===45&&rn(N)==2&&(m=0)}}return i}function cm(e,t,r,n,o,i,a,s,l,c,u,d){for(var f=o-1,g=o===0?i:[""],h=PC(g),m=0,p=0,b=0;m<n;++m)for(var y=0,w=To(e,f+1,f=am(p=a[m])),S=e;y<h;++y)(S=sm(p>0?g[y]+" "+w:us(w,/&\f/g,g[y])))&&(l[b++]=S);return Kc(e,t,r,o===0?om:s,l,c,u,d)}function VC(e,t,r,n){return Kc(e,t,r,nm,Qc(kC()),To(e,2,-2),0,n)}function um(e,t,r,n,o){return Kc(e,t,r,im,To(e,0,n),To(e,n+1,-1),n,o)}function ru(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function BC(e,t,r,n){switch(e.type){case OC:if(e.children.length)break;case IC:case AC:case im:return e.return=e.return||e.value;case nm:return"";case NC:return e.return=e.value+"{"+ru(e.children,n)+"}";case om:if(!rn(e.value=e.props.join(",")))return""}return rn(r=ru(e.children,n))?e.return=e.value+"{"+r+"}":""}function dm(e,t){var r=t.path,n=t.parentSelectors;ht(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var zC=function(t,r,n){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof r!="string"||i.indexOf(r)===-1&&!o.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&dm("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},GC=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&dm("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},fm="data-ant-cssinjs-cache-path",mm="_FILE_STYLE__",co,pm=!0;function HC(){if(!co&&(co={},lr())){var e=document.createElement("div");e.className=fm,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var i=o.split(":"),a=ie(i,2),s=a[0],l=a[1];co[s]=l});var r=document.querySelector("style[".concat(fm,"]"));if(r){var n;pm=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function WC(e){return HC(),!!co[e]}function UC(e){var t=co[e],r=null;if(t&&lr())if(pm)r=mm;else{var n=document.querySelector("style[".concat(Wr,'="').concat(co[e],'"]'));n?r=n.innerHTML:delete co[e]}return[r,t]}var gm="_skip_check_",hm="_multi_value_";function hs(e){var t=ru(_C(e),BC);return t.replace(/\{%%%\:[^;];}/g,";")}function XC(e){return we(e)==="object"&&e&&(gm in e||hm in e)}function vm(e,t,r){if(!t)return e;var n=".".concat(t),o=r==="low"?":where(".concat(n,")"):n,i=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(ue(l.slice(1))).join(" ")});return i.join(",")}var YC=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=n.root,i=n.injectHash,a=n.parentSelectors,s=r.hashId,l=r.layer,c=r.path,u=r.hashPriority,d=r.transformers,f=d===void 0?[]:d,g=r.linters,h=g===void 0?[]:g,m="",p={};function b(S){var v=S.getName(s);if(!p[v]){var I=e(S.style,r,{root:!1,parentSelectors:a}),N=ie(I,1),O=N[0];p[v]="@keyframes ".concat(S.getName(s)).concat(O)}}function y(S){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(I){Array.isArray(I)?y(I,v):I&&v.push(I)}),v}var w=y(Array.isArray(t)?t:[t]);return w.forEach(function(S){var v=typeof S=="string"&&!o?{}:S;if(typeof v=="string")m+="".concat(v,`
|
|
68
|
+
`);else if(v._keyframe)b(v);else{var I=f.reduce(function(N,O){var T;return(O==null||(T=O.visit)===null||T===void 0?void 0:T.call(O,N))||N},v);Object.keys(I).forEach(function(N){var O=I[N];if(we(O)==="object"&&O&&(N!=="animationName"||!O._keyframe)&&!XC(O)){var T=!1,P=N.trim(),M=!1;(o||i)&&s?P.startsWith("@")?T=!0:P==="&"?P=vm("",s,u):P=vm(N,s,u):o&&!s&&(P==="&"||P==="")&&(P="",M=!0);var x=e(O,r,{root:M,injectHash:T,parentSelectors:[].concat(ue(a),[P])}),$=ie(x,2),k=$[0],F=$[1];p=H(H({},p),F),m+="".concat(P).concat(k)}else{let W=function(V,_){process.env.NODE_ENV!=="production"&&(we(O)!=="object"||!(O!=null&&O[gm]))&&[zC,GC].concat(ue(h)).forEach(function(L){return L(V,_,{path:c,hashId:s,parentSelectors:a})});var D=V.replace(/[A-Z]/g,function(L){return"-".concat(L.toLowerCase())}),B=_;!EC[V]&&typeof B=="number"&&B!==0&&(B="".concat(B,"px")),V==="animationName"&&_!==null&&_!==void 0&&_._keyframe&&(b(_),B=_.getName(s)),m+="".concat(D,":").concat(B,";")};var j,G=(j=O?.value)!==null&&j!==void 0?j:O;we(O)==="object"&&O!==null&&O!==void 0&&O[hm]&&Array.isArray(G)?G.forEach(function(V){W(N,V)}):W(N,G)}})}}),o?l&&(m&&(m="@layer ".concat(l.name," {").concat(m,"}")),l.dependencies&&(p["@layer ".concat(l.name)]=l.dependencies.map(function(S){return"@layer ".concat(S,", ").concat(l.name,";")}).join(`
|
|
69
|
+
`))):m="{".concat(m,"}"),[m,p]};function bm(e,t){return Oi("".concat(e.join("%")).concat(t))}function JC(){return null}var ym="style";function nu(e,t){var r=e.token,n=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=A.useContext(Pi),d=u.autoClear,f=u.mock,g=u.defaultCache,h=u.hashPriority,m=u.container,p=u.ssrInline,b=u.transformers,y=u.linters,w=u.cache,S=u.layer,v=r._tokenKey,I=[v];S&&I.push("layer"),I.push.apply(I,ue(n));var N=Jc;process.env.NODE_ENV!=="production"&&f!==void 0&&(N=f==="client");var O=qc(ym,I,function(){var $=I.join("|");if(WC($)){var k=UC($),F=ie(k,2),j=F[0],G=F[1];if(j)return[j,v,G,{},s,c]}var W=t(),V=YC(W,{hashId:o,hashPriority:h,layer:S?i:void 0,path:n.join("-"),transformers:b,linters:y}),_=ie(V,2),D=_[0],B=_[1],L=hs(D),z=bm(I,L);return[L,v,z,B,s,c]},function($,k){var F=ie($,3),j=F[2];(k||d)&&Jc&&Ti(j,{mark:Wr,attachTo:m})},function($){var k=ie($,4),F=k[0];k[1];var j=k[2],G=k[3];if(N&&F!==mm){var W={mark:Wr,prepend:S?!1:"queue",attachTo:m,priority:c},V=typeof a=="function"?a():a;V&&(W.csp={nonce:V});var _=[],D=[];Object.keys(G).forEach(function(L){L.startsWith("@layer")?_.push(L):D.push(L)}),_.forEach(function(L){vn(hs(G[L]),"_layer-".concat(L),H(H({},W),{},{prepend:!0}))});var B=vn(F,j,W);B[zn]=w.instanceId,B.setAttribute(No,v),process.env.NODE_ENV!=="production"&&B.setAttribute(q2,I.join("|")),D.forEach(function(L){vn(hs(G[L]),"_effect-".concat(L),W)})}}),T=ie(O,3),P=T[0],M=T[1],x=T[2];return function($){var k;return!p||N||!g?k=A.createElement(JC,null):k=A.createElement("style",le({},X(X({},No,M),Wr,x),{dangerouslySetInnerHTML:{__html:P}})),A.createElement(A.Fragment,null,k,$)}}var ZC=function(t,r,n){var o=ie(t,6),i=o[0],a=o[1],s=o[2],l=o[3],c=o[4],u=o[5],d=n||{},f=d.plain;if(c)return null;var g=i,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return g=ss(i,a,s,h,f),l&&Object.keys(l).forEach(function(m){if(!r[m]){r[m]=!0;var p=hs(l[m]),b=ss(p,a,"_effect-".concat(m),h,f);m.startsWith("@layer")?g=b+g:g+=b}}),[u,s,g]},Cm="cssVar",qC=function(t,r){var n=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=E.useContext(Pi),d=u.cache.instanceId,f=u.container,g=s._tokenKey,h=[].concat(ue(t.path),[n,c,g]),m=qc(Cm,h,function(){var p=r(),b=Q0(p,n,{prefix:o,unitless:i,ignore:a,scope:c}),y=ie(b,2),w=y[0],S=y[1],v=bm(h,S);return[w,S,v,n]},function(p){var b=ie(p,3),y=b[2];Jc&&Ti(y,{mark:Wr,attachTo:f})},function(p){var b=ie(p,3),y=b[1],w=b[2];if(y){var S=vn(y,w,{mark:Wr,prepend:"queue",attachTo:f,priority:-999});S[zn]=d,S.setAttribute(No,n)}});return m},QC=function(t,r,n){var o=ie(t,4),i=o[1],a=o[2],s=o[3],l=n||{},c=l.plain;if(!i)return null;var u=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},f=ss(i,s,a,d,c);return[u,a,f]};X(X(X({},ym,ZC),rm,SC),Cm,QC);var Qt=function(){function e(t,r){Tt(this,e),X(this,"name",void 0),X(this,"style",void 0),X(this,"_keyframe",!0),this.name=t,this.style=r}return Pt(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function Fo(e){return e.notSplit=!0,e}Fo(["borderTop","borderBottom"]),Fo(["borderTop"]),Fo(["borderBottom"]),Fo(["borderLeft","borderRight"]),Fo(["borderLeft"]),Fo(["borderRight"]);var ou=E.createContext({});function KC(e){return B0(e)||R0(e)||Vc(e)||z0()}function nn(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function xm(e,t,r,n){if(!t.length)return r;var o=KC(t),i=o[0],a=o.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=ue(e):s=H({},e),n&&r===void 0&&a.length===1?delete s[i][a[0]]:s[i]=xm(s[i],a,r,n),s}function Xr(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!nn(e,t.slice(0,-1))?e:xm(e,t,r,n)}function ex(e){return we(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function wm(e){return Array.isArray(e)?[]:{}}var tx=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function $o(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=wm(t[0]);return t.forEach(function(o){function i(a,s){var l=new Set(s),c=nn(o,a),u=Array.isArray(c);if(u||ex(c)){if(!l.has(c)){l.add(c);var d=nn(n,a);u?n=Xr(n,a,[]):(!d||we(d)!=="object")&&(n=Xr(n,a,wm(c))),tx(c).forEach(function(f){i([].concat(ue(a),[f]),l)})}}else n=Xr(n,a,c)}i([])}),n}function Sm(){}let bn=null;function rx(){bn=null,b0()}let Em=Sm;process.env.NODE_ENV!=="production"&&(Em=(e,t,r)=>{ht(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&rx()});const Mo=Em,Im=A.createContext({}),kr=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=A.useContext(Im),r=(n,o,i)=>{if(!n)if(t===!1&&o==="deprecated"){const a=bn;bn||(bn={}),bn[e]=bn[e]||[],bn[e].includes(i||"")||bn[e].push(i||""),a||console.warn("[antd] There exists deprecated usage in your code:",bn)}else process.env.NODE_ENV!=="production"&&Mo(n,e,i)};return r.deprecated=(n,o,i,a)=>{r(n,"deprecated",`\`${o}\` is deprecated. Please use \`${i}\` instead.${a?` ${a}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=Sm,e},nx=E.createContext(void 0);var ox={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},ix={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},ax=H(H({},ix),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const Am={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Nm={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},ax),timePickerLocale:Object.assign({},Am)},yr="${label} is not a valid ${type}",uo={locale:"en",Pagination:ox,DatePicker:Nm,TimePicker:Am,Calendar:Nm,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:yr,method:yr,array:yr,object:yr,number:yr,date:yr,boolean:yr,integer:yr,float:yr,regexp:yr,email:yr,url:yr,hex:yr},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},uo.Modal);let vs=[];const Om=()=>vs.reduce((e,t)=>Object.assign(Object.assign({},e),t),uo.Modal);function sx(e){if(e){const t=Object.assign({},e);return vs.push(t),Om(),()=>{vs=vs.filter(r=>r!==t),Om()}}Object.assign({},uo.Modal)}const iu=E.createContext(void 0),lx=(e,t)=>{const r=A.useContext(iu),n=A.useMemo(()=>{var i;const a=t||uo[e],s=(i=r?.[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,r]),o=A.useMemo(()=>{const i=r?.locale;return r?.exist&&!i?uo.locale:i},[r]);return[n,o]},Tm="internalMark",Pm=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const i=kr("LocaleProvider");process.env.NODE_ENV!=="production"&&i(n===Tm,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}A.useEffect(()=>sx(t?.Modal),[t]);const o=A.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return A.createElement(iu.Provider,{value:o},r)};process.env.NODE_ENV!=="production"&&(Pm.displayName="LocaleProvider");const km={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},$i=Object.assign(Object.assign({},km),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
70
70
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
71
|
-
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),Jt=Math.round;function iu(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const Fm=(e,t,r)=>r===0?e:e/100;function Mi(e,t){const r=t||255;return e>r?r:e<0?0:e}class yt{constructor(t){X(this,"isValid",!0),X(this,"r",0),X(this,"g",0),X(this,"b",0),X(this,"a",1),X(this,"_h",void 0),X(this,"_s",void 0),X(this,"_l",void 0),X(this,"_v",void 0),X(this,"_max",void 0),X(this,"_min",void 0),X(this,"_brightness",void 0);function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let o=function(i){return n.startsWith(i)};const n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):o("rgb")?this.fromRgbString(n):o("hsl")?this.fromHslString(n):(o("hsv")||o("hsb"))&&this.fromHsvString(n)}else if(t instanceof yt)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=Mi(t.r),this.g=Mi(t.g),this.b=Mi(t.b),this.a=typeof t.a=="number"?Mi(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Jt(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:r,s:n,l:o,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){const n=this._c(t),o=r/100,i=s=>(n[s]-this[s])*o+this[s],a={r:Jt(i("r")),g:Jt(i("g")),b:Jt(i("b")),a:Jt(i("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),o=i=>Jt((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=Jt(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=Jt(this.getSaturation()*100),n=Jt(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const o=this.clone();return o[t]=Mi(r,n),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(o,i){return parseInt(r[o]+r[i||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){const f=Jt(n*255);this.r=f,this.g=f,this.b=f}let i=0,a=0,s=0;const l=t/60,c=(1-Math.abs(2*n-1))*r,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,a=u):l>=1&&l<2?(i=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);const d=n-c/2;this.r=Jt((i+d)*255),this.g=Jt((a+d)*255),this.b=Jt((s+d)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;const i=Jt(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const a=t/60,s=Math.floor(a),l=a-s,c=Jt(n*(1-r)*255),u=Jt(n*(1-r*l)*255),d=Jt(n*(1-r*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const r=iu(t,Fm);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=iu(t,Fm);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=iu(t,(n,o)=>o.includes("%")?Jt(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var vs=2,$m=.16,cx=.05,ux=.05,dx=.15,Mm=5,jm=4,fx=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Rm(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-vs*t:Math.round(e.h)+vs*t:n=r?Math.round(e.h)+vs*t:Math.round(e.h)-vs*t,n<0?n+=360:n>=360&&(n-=360),n}function Lm(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-$m*t:t===jm?n=e.s+$m:n=e.s+cx*t,n>1&&(n=1),r&&t===Mm&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function Dm(e,t,r){var n;return r?n=e.v+ux*t:n=e.v-dx*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function ji(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new yt(e),o=n.toHsv(),i=Mm;i>0;i-=1){var a=new yt({h:Rm(o,i,!0),s:Lm(o,i,!0),v:Dm(o,i,!0)});r.push(a)}r.push(n);for(var s=1;s<=jm;s+=1){var l=new yt({h:Rm(o,s),s:Lm(o,s),v:Dm(o,s)});r.push(l)}return t.theme==="dark"?fx.map(function(c){var u=c.index,d=c.amount;return new yt(t.backgroundColor||"#141414").mix(r[u],d).toHexString()}):r.map(function(c){return c.toHexString()})}var jo={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},au=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];au.primary=au[5];var su=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];su.primary=su[5];var lu=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];lu.primary=lu[5];var cu=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];cu.primary=cu[5];var uu=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];uu.primary=uu[5];var du=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];du.primary=du[5];var fu=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];fu.primary=fu[5];var mu=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];mu.primary=mu[5];var Ro=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ro.primary=Ro[5];var pu=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];pu.primary=pu[5];var gu=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];gu.primary=gu[5];var hu=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];hu.primary=hu[5];var vu=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];vu.primary=vu[5];var bu={red:au,volcano:su,orange:lu,gold:cu,yellow:uu,lime:du,green:fu,cyan:mu,blue:Ro,geekblue:pu,purple:gu,magenta:hu,grey:vu};function mx(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){const{colorSuccess:n,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),d=t(n),f=t(o),g=t(i),h=t(a),m=r(l,c),p=e.colorLink||e.colorInfo,b=t(p),y=new yt(g[1]).mix(new yt(g[3]),50).toHexString();return Object.assign(Object.assign({},m),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:y,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new yt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const px=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}};function gx(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1},px(n))}const hx=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function bs(e){return(e+8)/e}function vx(e){const t=Array.from({length:10}).map((r,n)=>{const o=n-1,i=e*Math.pow(Math.E,o/5),a=n>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:bs(r)}))}const bx=e=>{const t=vx(e),r=t.map(u=>u.size),n=t.map(u=>u.lineHeight),o=r[1],i=r[0],a=r[2],s=n[1],l=n[0],c=n[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function yx(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const Fr=(e,t)=>new yt(e).setA(t).toRgbString(),Ri=(e,t)=>new yt(e).darken(t).toHexString(),Cx=e=>{const t=ji(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},xx=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:Fr(n,.88),colorTextSecondary:Fr(n,.65),colorTextTertiary:Fr(n,.45),colorTextQuaternary:Fr(n,.25),colorFill:Fr(n,.15),colorFillSecondary:Fr(n,.06),colorFillTertiary:Fr(n,.04),colorFillQuaternary:Fr(n,.02),colorBgSolid:Fr(n,1),colorBgSolidHover:Fr(n,.75),colorBgSolidActive:Fr(n,.95),colorBgLayout:Ri(r,4),colorBgContainer:Ri(r,0),colorBgElevated:Ri(r,0),colorBgSpotlight:Fr(n,.85),colorBgBlur:"transparent",colorBorder:Ri(r,15),colorBorderSecondary:Ri(r,6)}};function wx(e){jo.pink=jo.magenta,bu.pink=bu.magenta;const t=Object.keys(km).map(r=>{const n=e[r]===jo[r]?bu[r]:ji(e[r]);return Array.from({length:10},()=>1).reduce((o,i,a)=>(o[`${r}-${a+1}`]=n[a],o[`${r}${a+1}`]=n[a],o),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),mx(e,{generateColorPalettes:Cx,generateNeutralColorPalettes:xx})),bx(e.fontSize)),yx(e)),hx(e)),gx(e))}const _m=Uc(wx),yu={token:$i,override:{override:$i},hashed:!0},Vm=E.createContext(yu),Li="ant",Cu="anticon",Sx=(e,t)=>t||(e?`${Li}-${e}`:Li),Zt=A.createContext({getPrefixCls:Sx,iconPrefixCls:Cu}),{Consumer:Z$}=Zt,Bm={};function xu(e){const t=A.useContext(Zt),{getPrefixCls:r,direction:n,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:Bm,styles:Bm},i),{getPrefixCls:r,direction:n,getPopupContainer:o})}const Ex=`-ant-${Date.now()}-${Math.random()}`;function Ix(e,t){const r={},n=(a,s)=>{let l=a.clone();return l=s?.(l)||l,l.toRgbString()},o=(a,s)=>{const l=new yt(a),c=ji(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=c[1],r[`${s}-color-hover`]=c[4],r[`${s}-color-active`]=c[6],r[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=c[0],r[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new yt(t.primaryColor),s=ji(a.toRgbString());s.forEach((c,u)=>{r[`primary-${u+1}`]=c}),r["primary-color-deprecated-l-35"]=n(a,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=n(a,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=n(a,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=n(a,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=n(a,c=>c.setA(c.a*.12));const l=new yt(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,c=>c.setA(c.a*.3)),r["primary-color-active-deprecated-d-02"]=n(l,c=>c.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
|
|
71
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),Jt=Math.round;function au(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const Fm=(e,t,r)=>r===0?e:e/100;function Mi(e,t){const r=t||255;return e>r?r:e<0?0:e}class yt{constructor(t){X(this,"isValid",!0),X(this,"r",0),X(this,"g",0),X(this,"b",0),X(this,"a",1),X(this,"_h",void 0),X(this,"_s",void 0),X(this,"_l",void 0),X(this,"_v",void 0),X(this,"_max",void 0),X(this,"_min",void 0),X(this,"_brightness",void 0);function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let o=function(i){return n.startsWith(i)};const n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):o("rgb")?this.fromRgbString(n):o("hsl")?this.fromHslString(n):(o("hsv")||o("hsb"))&&this.fromHsvString(n)}else if(t instanceof yt)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=Mi(t.r),this.g=Mi(t.g),this.b=Mi(t.b),this.a=typeof t.a=="number"?Mi(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Jt(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:r,s:n,l:o,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){const n=this._c(t),o=r/100,i=s=>(n[s]-this[s])*o+this[s],a={r:Jt(i("r")),g:Jt(i("g")),b:Jt(i("b")),a:Jt(i("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),o=i=>Jt((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=Jt(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=Jt(this.getSaturation()*100),n=Jt(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const o=this.clone();return o[t]=Mi(r,n),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(o,i){return parseInt(r[o]+r[i||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){const f=Jt(n*255);this.r=f,this.g=f,this.b=f}let i=0,a=0,s=0;const l=t/60,c=(1-Math.abs(2*n-1))*r,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,a=u):l>=1&&l<2?(i=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);const d=n-c/2;this.r=Jt((i+d)*255),this.g=Jt((a+d)*255),this.b=Jt((s+d)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;const i=Jt(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const a=t/60,s=Math.floor(a),l=a-s,c=Jt(n*(1-r)*255),u=Jt(n*(1-r*l)*255),d=Jt(n*(1-r*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const r=au(t,Fm);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=au(t,Fm);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=au(t,(n,o)=>o.includes("%")?Jt(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var bs=2,$m=.16,cx=.05,ux=.05,dx=.15,Mm=5,jm=4,fx=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Rm(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-bs*t:Math.round(e.h)+bs*t:n=r?Math.round(e.h)+bs*t:Math.round(e.h)-bs*t,n<0?n+=360:n>=360&&(n-=360),n}function Lm(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-$m*t:t===jm?n=e.s+$m:n=e.s+cx*t,n>1&&(n=1),r&&t===Mm&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function Dm(e,t,r){var n;return r?n=e.v+ux*t:n=e.v-dx*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function ji(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new yt(e),o=n.toHsv(),i=Mm;i>0;i-=1){var a=new yt({h:Rm(o,i,!0),s:Lm(o,i,!0),v:Dm(o,i,!0)});r.push(a)}r.push(n);for(var s=1;s<=jm;s+=1){var l=new yt({h:Rm(o,s),s:Lm(o,s),v:Dm(o,s)});r.push(l)}return t.theme==="dark"?fx.map(function(c){var u=c.index,d=c.amount;return new yt(t.backgroundColor||"#141414").mix(r[u],d).toHexString()}):r.map(function(c){return c.toHexString()})}var jo={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},su=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];su.primary=su[5];var lu=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];lu.primary=lu[5];var cu=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];cu.primary=cu[5];var uu=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];uu.primary=uu[5];var du=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];du.primary=du[5];var fu=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];fu.primary=fu[5];var mu=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];mu.primary=mu[5];var pu=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];pu.primary=pu[5];var Ro=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ro.primary=Ro[5];var gu=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];gu.primary=gu[5];var hu=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];hu.primary=hu[5];var vu=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];vu.primary=vu[5];var bu=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];bu.primary=bu[5];var yu={red:su,volcano:lu,orange:cu,gold:uu,yellow:du,lime:fu,green:mu,cyan:pu,blue:Ro,geekblue:gu,purple:hu,magenta:vu,grey:bu};function mx(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){const{colorSuccess:n,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),d=t(n),f=t(o),g=t(i),h=t(a),m=r(l,c),p=e.colorLink||e.colorInfo,b=t(p),y=new yt(g[1]).mix(new yt(g[3]),50).toHexString();return Object.assign(Object.assign({},m),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:y,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new yt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const px=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}};function gx(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1},px(n))}const hx=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function ys(e){return(e+8)/e}function vx(e){const t=Array.from({length:10}).map((r,n)=>{const o=n-1,i=e*Math.pow(Math.E,o/5),a=n>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:ys(r)}))}const bx=e=>{const t=vx(e),r=t.map(u=>u.size),n=t.map(u=>u.lineHeight),o=r[1],i=r[0],a=r[2],s=n[1],l=n[0],c=n[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function yx(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const Fr=(e,t)=>new yt(e).setA(t).toRgbString(),Ri=(e,t)=>new yt(e).darken(t).toHexString(),Cx=e=>{const t=ji(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},xx=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:Fr(n,.88),colorTextSecondary:Fr(n,.65),colorTextTertiary:Fr(n,.45),colorTextQuaternary:Fr(n,.25),colorFill:Fr(n,.15),colorFillSecondary:Fr(n,.06),colorFillTertiary:Fr(n,.04),colorFillQuaternary:Fr(n,.02),colorBgSolid:Fr(n,1),colorBgSolidHover:Fr(n,.75),colorBgSolidActive:Fr(n,.95),colorBgLayout:Ri(r,4),colorBgContainer:Ri(r,0),colorBgElevated:Ri(r,0),colorBgSpotlight:Fr(n,.85),colorBgBlur:"transparent",colorBorder:Ri(r,15),colorBorderSecondary:Ri(r,6)}};function wx(e){jo.pink=jo.magenta,yu.pink=yu.magenta;const t=Object.keys(km).map(r=>{const n=e[r]===jo[r]?yu[r]:ji(e[r]);return Array.from({length:10},()=>1).reduce((o,i,a)=>(o[`${r}-${a+1}`]=n[a],o[`${r}${a+1}`]=n[a],o),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),mx(e,{generateColorPalettes:Cx,generateNeutralColorPalettes:xx})),bx(e.fontSize)),yx(e)),hx(e)),gx(e))}const _m=Xc(wx),Cu={token:$i,override:{override:$i},hashed:!0},Vm=E.createContext(Cu),Li="ant",xu="anticon",Sx=(e,t)=>t||(e?`${Li}-${e}`:Li),Zt=A.createContext({getPrefixCls:Sx,iconPrefixCls:xu}),{Consumer:q$}=Zt,Bm={};function wu(e){const t=A.useContext(Zt),{getPrefixCls:r,direction:n,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:Bm,styles:Bm},i),{getPrefixCls:r,direction:n,getPopupContainer:o})}const Ex=`-ant-${Date.now()}-${Math.random()}`;function Ix(e,t){const r={},n=(a,s)=>{let l=a.clone();return l=s?.(l)||l,l.toRgbString()},o=(a,s)=>{const l=new yt(a),c=ji(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=c[1],r[`${s}-color-hover`]=c[4],r[`${s}-color-active`]=c[6],r[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=c[0],r[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new yt(t.primaryColor),s=ji(a.toRgbString());s.forEach((c,u)=>{r[`primary-${u+1}`]=c}),r["primary-color-deprecated-l-35"]=n(a,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=n(a,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=n(a,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=n(a,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=n(a,c=>c.setA(c.a*.12));const l=new yt(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,c=>c.setA(c.a*.3)),r["primary-color-active-deprecated-d-02"]=n(l,c=>c.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
|
|
72
72
|
:root {
|
|
73
73
|
${Object.keys(r).map(a=>`--${e}-${a}: ${r[a]};`).join(`
|
|
74
74
|
`)}
|
|
75
75
|
}
|
|
76
|
-
`.trim()}function Ax(e,t){const r=Ix(e,t);lr()?vn(r,`${Ex}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Mo(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Lo=A.createContext(!1),Nx=({children:e,disabled:t})=>{const r=A.useContext(Lo);return A.createElement(Lo.Provider,{value:t??r},e)},Do=A.createContext(void 0),Ox=({children:e,size:t})=>{const r=A.useContext(Do);return A.createElement(Do.Provider,{value:t||r},e)};function Tx(){const e=E.useContext(Lo),t=E.useContext(Do);return{componentDisabled:e,componentSize:t}}var zm=Pt(function e(){Tt(this,e)}),Gm="CALC_UNIT",Px=new RegExp(Gm,"g");function wu(e){return typeof e=="number"?"".concat(e).concat(Gm):e}var kx=function(e){Gr(r,e);var t=Hr(r);function r(n,o){var i;Tt(this,r),i=t.call(this),X(be(i),"result",""),X(be(i),"unitlessCssVar",void 0),X(be(i),"lowPriority",void 0);var a=we(n);return i.unitlessCssVar=o,n instanceof r?i.result="(".concat(n.result,")"):a==="number"?i.result=wu(n):a==="string"&&(i.result=n),i}return Pt(r,[{key:"add",value:function(o){return o instanceof r?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(wu(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof r?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(wu(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var i=this,a=o||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(l=!1),this.result=this.result.replace(Px,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(zm),Fx=function(e){Gr(r,e);var t=Hr(r);function r(n){var o;return Tt(this,r),o=t.call(this),X(be(o),"result",0),n instanceof r?o.result=n.result:typeof n=="number"&&(o.result=n),o}return Pt(r,[{key:"add",value:function(o){return o instanceof r?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof r?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof r?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof r?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),r}(zm),$x=function(t,r){var n=t==="css"?kx:Fx;return function(o){return new n(o,r)}},Hm=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function cr(e){var t=A.useRef();t.current=e;var r=A.useCallback(function(){for(var n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(i))},[]);return r}function Di(e){var t=A.useRef(!1),r=A.useState(e),n=ie(r,2),o=n[0],i=n[1];A.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||i(s)}return[o,a]}function Su(e){return e!==void 0}function ys(e,t){var r=t||{},n=r.defaultValue,o=r.value,i=r.onChange,a=r.postState,s=Di(function(){return Su(o)?o:Su(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=ie(s,2),c=l[0],u=l[1],d=o!==void 0?o:c,f=a?a(d):d,g=cr(i),h=Di([d]),m=ie(h,2),p=m[0],b=m[1];em(function(){var w=p[0];c!==w&&g(c,w)},[p]),em(function(){Su(o)||u(o)},[o]);var y=cr(function(w,S){u(w,S),b([d],S)});return[f,y]}function Wm(e,t,r,n){var o=H({},t[e]);if(n!=null&&n.deprecatedTokens){var i=n.deprecatedTokens;i.forEach(function(s){var l=ie(s,2),c=l[0],u=l[1];if(process.env.NODE_ENV!=="production"&&ht(!(o!=null&&o[c]),"Component Token `".concat(String(c),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(u),"` instead.")),o!=null&&o[c]||o!=null&&o[u]){var d;(d=o[u])!==null&&d!==void 0||(o[u]=o?.[c])}})}var a=H(H({},r),o);return Object.keys(a).forEach(function(s){a[s]===t[s]&&delete a[s]}),a}var Um=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",Eu=!0;function Yr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!Um)return Object.assign.apply(Object,[{}].concat(t));Eu=!1;var n={};return t.forEach(function(o){if(we(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(n,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),Eu=!0,n}var Xm={};function Mx(){}var jx=function(t){var r,n=t,o=Mx;return Um&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(a,s){if(Eu){var l;(l=r)===null||l===void 0||l.add(s)}return a[s]}}),o=function(a,s){var l;Xm[a]={global:Array.from(r),component:H(H({},(l=Xm[a])===null||l===void 0?void 0:l.component),s)}}),{token:n,keys:r,flush:o}};function Ym(e,t,r){if(typeof r=="function"){var n;return r(Yr(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function Rx(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return"max(".concat(n.map(function(i){return st(i)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return"min(".concat(n.map(function(i){return st(i)}).join(","),")")}}}var Lx=1e3*60*10,Dx=function(){function e(){Tt(this,e),X(this,"map",new Map),X(this,"objectIDMap",new WeakMap),X(this,"nextID",0),X(this,"lastAccessBeat",new Map),X(this,"accessBeat",0)}return Pt(e,[{key:"set",value:function(r,n){this.clear();var o=this.getCompositeKey(r);this.map.set(o,n),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),o=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(r){var n=this,o=r.map(function(i){return i&&we(i)==="object"?"obj_".concat(n.getObjectID(i)):"".concat(we(i),"_").concat(i)});return o.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(o,i){n-o>Lx&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),Jm=new Dx;function _x(e,t){return E.useMemo(function(){var r=Jm.get(t);if(r)return r;var n=e();return Jm.set(t,n),n},t)}var Vx=function(){return{}};function Bx(e){var t=e.useCSP,r=t===void 0?Vx:t,n=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(f,g,h,m){var p=Array.isArray(f)?f[0]:f;function b(O){return"".concat(String(p)).concat(O.slice(0,1).toUpperCase()).concat(O.slice(1))}var y=m?.unitless||{},w=typeof s=="function"?s(f):{},S=H(H({},w),{},X({},b("zIndexPopup"),!0));Object.keys(y).forEach(function(O){S[b(O)]=y[O]});var v=H(H({},m),{},{unitless:S,prefixToken:b}),I=u(f,g,h,v),N=c(p,h,v);return function(O){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:O,P=I(O,T),M=ie(P,2),x=M[1],$=N(T),k=ie($,2),F=k[0],j=k[1];return[F,x,j]}}function c(f,g,h){var m=h.unitless,p=h.injectStyle,b=p===void 0?!0:p,y=h.prefixToken,w=h.ignore,S=function(N){var O=N.rootCls,T=N.cssVar,P=T===void 0?{}:T,M=n(),x=M.realToken;return qC({path:[f],prefix:P.prefix,key:P.key,unitless:m,ignore:w,token:x,scope:O},function(){var $=Ym(f,x,g),k=Wm(f,x,$,{deprecatedTokens:h?.deprecatedTokens});return Object.keys($).forEach(function(F){k[y(F)]=k[F],delete k[F]}),k}),null},v=function(N){var O=n(),T=O.cssVar;return[function(P){return b&&T?E.createElement(E.Fragment,null,E.createElement(S,{rootCls:N,cssVar:T,component:f}),P):P},T?.key]};return v}function u(f,g,h){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=Array.isArray(f)?f:[f,f],b=ie(p,1),y=b[0],w=p.join("-"),S=e.layer||{name:"antd"};return function(v){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v,N=n(),O=N.theme,T=N.realToken,P=N.hashId,M=N.token,x=N.cssVar,$=o(),k=$.rootPrefixCls,F=$.iconPrefixCls,j=r(),z=x?"css":"js",W=_x(function(){var G=new Set;return x&&Object.keys(m.unitless||{}).forEach(function(Q){G.add(ss(Q,x.prefix)),G.add(ss(Q,Hm(y,x.prefix)))}),$x(z,G)},[z,y,x?.prefix]),V=Rx(z),_=V.max,D=V.min,B={theme:O,token:M,hashId:P,nonce:function(){return j.nonce},clientOnly:m.clientOnly,layer:S,order:m.order||-999};typeof i=="function"&&ru(H(H({},B),{},{clientOnly:!1,path:["Shared",k]}),function(){return i(M,{prefix:{rootPrefixCls:k,iconPrefixCls:F},csp:j})});var L=ru(H(H({},B),{},{path:[w,v,F]}),function(){if(m.injectStyle===!1)return[];var G=jx(M),Q=G.token,q=G.flush,U=Ym(y,T,h),K=".".concat(v),Z=Wm(y,T,U,{deprecatedTokens:m.deprecatedTokens});x&&U&&we(U)==="object"&&Object.keys(U).forEach(function(Ce){U[Ce]="var(".concat(ss(Ce,Hm(y,x.prefix)),")")});var se=Yr(Q,{componentCls:K,prefixCls:v,iconCls:".".concat(F),antCls:".".concat(k),calc:W,max:_,min:D},x?U:Z),pe=g(se,{hashId:P,prefixCls:v,rootPrefixCls:k,iconPrefixCls:F});q(y,Z);var Y=typeof a=="function"?a(se,v,I,m.resetFont):null;return[m.resetStyle===!1?null:Y,pe]});return[L,P]}}function d(f,g,h){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=u(f,g,h,H({resetStyle:!1,order:-998},m)),b=function(w){var S=w.prefixCls,v=w.rootCls,I=v===void 0?S:v;return p(S,I),null};return process.env.NODE_ENV!=="production"&&(b.displayName="SubStyle_".concat(String(Array.isArray(f)?f.join("."):f))),b}return{genStyleHooks:l,genSubStyleComponent:d,genComponentStyleHook:u}}const fo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],zx="5.27.0";function Iu(e){return e>=0&&e<=255}function _i(e,t){const{r,g:n,b:o,a:i}=new yt(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new yt(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((r-a*(1-c))/c),d=Math.round((n-s*(1-c))/c),f=Math.round((o-l*(1-c))/c);if(Iu(u)&&Iu(d)&&Iu(f))return new yt({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new yt({r,g:n,b:o,a:1}).toRgbString()}var Gx=function(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 Zm(e){const{override:t}=e,r=Gx(e,["override"]),n=Object.assign({},t);Object.keys($i).forEach(f=>{delete n[f]});const o=Object.assign(Object.assign({},r),n),i=480,a=576,s=768,l=992,c=1200,u=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:_i(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:_i(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:_i(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:_i(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
76
|
+
`.trim()}function Ax(e,t){const r=Ix(e,t);lr()?vn(r,`${Ex}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Mo(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Lo=A.createContext(!1),Nx=({children:e,disabled:t})=>{const r=A.useContext(Lo);return A.createElement(Lo.Provider,{value:t??r},e)},Do=A.createContext(void 0),Ox=({children:e,size:t})=>{const r=A.useContext(Do);return A.createElement(Do.Provider,{value:t||r},e)};function Tx(){const e=E.useContext(Lo),t=E.useContext(Do);return{componentDisabled:e,componentSize:t}}var zm=Pt(function e(){Tt(this,e)}),Gm="CALC_UNIT",Px=new RegExp(Gm,"g");function Su(e){return typeof e=="number"?"".concat(e).concat(Gm):e}var kx=function(e){Gr(r,e);var t=Hr(r);function r(n,o){var i;Tt(this,r),i=t.call(this),X(be(i),"result",""),X(be(i),"unitlessCssVar",void 0),X(be(i),"lowPriority",void 0);var a=we(n);return i.unitlessCssVar=o,n instanceof r?i.result="(".concat(n.result,")"):a==="number"?i.result=Su(n):a==="string"&&(i.result=n),i}return Pt(r,[{key:"add",value:function(o){return o instanceof r?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(Su(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof r?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(Su(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var i=this,a=o||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(l=!1),this.result=this.result.replace(Px,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(zm),Fx=function(e){Gr(r,e);var t=Hr(r);function r(n){var o;return Tt(this,r),o=t.call(this),X(be(o),"result",0),n instanceof r?o.result=n.result:typeof n=="number"&&(o.result=n),o}return Pt(r,[{key:"add",value:function(o){return o instanceof r?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof r?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof r?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof r?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),r}(zm),$x=function(t,r){var n=t==="css"?kx:Fx;return function(o){return new n(o,r)}},Hm=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function cr(e){var t=A.useRef();t.current=e;var r=A.useCallback(function(){for(var n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(i))},[]);return r}function Di(e){var t=A.useRef(!1),r=A.useState(e),n=ie(r,2),o=n[0],i=n[1];A.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||i(s)}return[o,a]}function Eu(e){return e!==void 0}function Cs(e,t){var r=t||{},n=r.defaultValue,o=r.value,i=r.onChange,a=r.postState,s=Di(function(){return Eu(o)?o:Eu(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=ie(s,2),c=l[0],u=l[1],d=o!==void 0?o:c,f=a?a(d):d,g=cr(i),h=Di([d]),m=ie(h,2),p=m[0],b=m[1];em(function(){var w=p[0];c!==w&&g(c,w)},[p]),em(function(){Eu(o)||u(o)},[o]);var y=cr(function(w,S){u(w,S),b([d],S)});return[f,y]}function Wm(e,t,r,n){var o=H({},t[e]);if(n!=null&&n.deprecatedTokens){var i=n.deprecatedTokens;i.forEach(function(s){var l=ie(s,2),c=l[0],u=l[1];if(process.env.NODE_ENV!=="production"&&ht(!(o!=null&&o[c]),"Component Token `".concat(String(c),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(u),"` instead.")),o!=null&&o[c]||o!=null&&o[u]){var d;(d=o[u])!==null&&d!==void 0||(o[u]=o?.[c])}})}var a=H(H({},r),o);return Object.keys(a).forEach(function(s){a[s]===t[s]&&delete a[s]}),a}var Um=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",Iu=!0;function Yr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!Um)return Object.assign.apply(Object,[{}].concat(t));Iu=!1;var n={};return t.forEach(function(o){if(we(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(n,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),Iu=!0,n}var Xm={};function Mx(){}var jx=function(t){var r,n=t,o=Mx;return Um&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(a,s){if(Iu){var l;(l=r)===null||l===void 0||l.add(s)}return a[s]}}),o=function(a,s){var l;Xm[a]={global:Array.from(r),component:H(H({},(l=Xm[a])===null||l===void 0?void 0:l.component),s)}}),{token:n,keys:r,flush:o}};function Ym(e,t,r){if(typeof r=="function"){var n;return r(Yr(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function Rx(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return"max(".concat(n.map(function(i){return st(i)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return"min(".concat(n.map(function(i){return st(i)}).join(","),")")}}}var Lx=1e3*60*10,Dx=function(){function e(){Tt(this,e),X(this,"map",new Map),X(this,"objectIDMap",new WeakMap),X(this,"nextID",0),X(this,"lastAccessBeat",new Map),X(this,"accessBeat",0)}return Pt(e,[{key:"set",value:function(r,n){this.clear();var o=this.getCompositeKey(r);this.map.set(o,n),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),o=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(r){var n=this,o=r.map(function(i){return i&&we(i)==="object"?"obj_".concat(n.getObjectID(i)):"".concat(we(i),"_").concat(i)});return o.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(o,i){n-o>Lx&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),Jm=new Dx;function _x(e,t){return E.useMemo(function(){var r=Jm.get(t);if(r)return r;var n=e();return Jm.set(t,n),n},t)}var Vx=function(){return{}};function Bx(e){var t=e.useCSP,r=t===void 0?Vx:t,n=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(f,g,h,m){var p=Array.isArray(f)?f[0]:f;function b(O){return"".concat(String(p)).concat(O.slice(0,1).toUpperCase()).concat(O.slice(1))}var y=m?.unitless||{},w=typeof s=="function"?s(f):{},S=H(H({},w),{},X({},b("zIndexPopup"),!0));Object.keys(y).forEach(function(O){S[b(O)]=y[O]});var v=H(H({},m),{},{unitless:S,prefixToken:b}),I=u(f,g,h,v),N=c(p,h,v);return function(O){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:O,P=I(O,T),M=ie(P,2),x=M[1],$=N(T),k=ie($,2),F=k[0],j=k[1];return[F,x,j]}}function c(f,g,h){var m=h.unitless,p=h.injectStyle,b=p===void 0?!0:p,y=h.prefixToken,w=h.ignore,S=function(N){var O=N.rootCls,T=N.cssVar,P=T===void 0?{}:T,M=n(),x=M.realToken;return qC({path:[f],prefix:P.prefix,key:P.key,unitless:m,ignore:w,token:x,scope:O},function(){var $=Ym(f,x,g),k=Wm(f,x,$,{deprecatedTokens:h?.deprecatedTokens});return Object.keys($).forEach(function(F){k[y(F)]=k[F],delete k[F]}),k}),null},v=function(N){var O=n(),T=O.cssVar;return[function(P){return b&&T?E.createElement(E.Fragment,null,E.createElement(S,{rootCls:N,cssVar:T,component:f}),P):P},T?.key]};return v}function u(f,g,h){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=Array.isArray(f)?f:[f,f],b=ie(p,1),y=b[0],w=p.join("-"),S=e.layer||{name:"antd"};return function(v){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v,N=n(),O=N.theme,T=N.realToken,P=N.hashId,M=N.token,x=N.cssVar,$=o(),k=$.rootPrefixCls,F=$.iconPrefixCls,j=r(),G=x?"css":"js",W=_x(function(){var z=new Set;return x&&Object.keys(m.unitless||{}).forEach(function(Q){z.add(ls(Q,x.prefix)),z.add(ls(Q,Hm(y,x.prefix)))}),$x(G,z)},[G,y,x?.prefix]),V=Rx(G),_=V.max,D=V.min,B={theme:O,token:M,hashId:P,nonce:function(){return j.nonce},clientOnly:m.clientOnly,layer:S,order:m.order||-999};typeof i=="function"&&nu(H(H({},B),{},{clientOnly:!1,path:["Shared",k]}),function(){return i(M,{prefix:{rootPrefixCls:k,iconPrefixCls:F},csp:j})});var L=nu(H(H({},B),{},{path:[w,v,F]}),function(){if(m.injectStyle===!1)return[];var z=jx(M),Q=z.token,q=z.flush,U=Ym(y,T,h),K=".".concat(v),Z=Wm(y,T,U,{deprecatedTokens:m.deprecatedTokens});x&&U&&we(U)==="object"&&Object.keys(U).forEach(function(Ce){U[Ce]="var(".concat(ls(Ce,Hm(y,x.prefix)),")")});var se=Yr(Q,{componentCls:K,prefixCls:v,iconCls:".".concat(F),antCls:".".concat(k),calc:W,max:_,min:D},x?U:Z),ge=g(se,{hashId:P,prefixCls:v,rootPrefixCls:k,iconPrefixCls:F});q(y,Z);var Y=typeof a=="function"?a(se,v,I,m.resetFont):null;return[m.resetStyle===!1?null:Y,ge]});return[L,P]}}function d(f,g,h){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=u(f,g,h,H({resetStyle:!1,order:-998},m)),b=function(w){var S=w.prefixCls,v=w.rootCls,I=v===void 0?S:v;return p(S,I),null};return process.env.NODE_ENV!=="production"&&(b.displayName="SubStyle_".concat(String(Array.isArray(f)?f.join("."):f))),b}return{genStyleHooks:l,genSubStyleComponent:d,genComponentStyleHook:u}}const fo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],zx="5.27.0";function Au(e){return e>=0&&e<=255}function _i(e,t){const{r,g:n,b:o,a:i}=new yt(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new yt(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((r-a*(1-c))/c),d=Math.round((n-s*(1-c))/c),f=Math.round((o-l*(1-c))/c);if(Au(u)&&Au(d)&&Au(f))return new yt({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new yt({r,g:n,b:o,a:1}).toRgbString()}var Gx=function(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 Zm(e){const{override:t}=e,r=Gx(e,["override"]),n=Object.assign({},t);Object.keys($i).forEach(f=>{delete n[f]});const o=Object.assign(Object.assign({},r),n),i=480,a=576,s=768,l=992,c=1200,u=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:_i(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:_i(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:_i(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:_i(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
77
77
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
78
78
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
79
79
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
@@ -105,7 +105,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
105
105
|
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
106
106
|
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
107
107
|
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
108
|
-
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var qm=function(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};const Qm={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Hx={motionBase:!0,motionUnit:!0},Wx={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Km=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:o}=t,i=qm(t,["override"]);let a=Object.assign(Object.assign({},n),{override:o});return a=Zm(a),i&&Object.entries(i).forEach(([s,l])=>{const{theme:c}=l,u=qm(l,["theme"]);let d=u;c&&(d=Km(Object.assign(Object.assign({},a),u),{override:u},c)),a[s]=d}),a};function Hn(){const{token:e,hashed:t,theme:r,override:n,cssVar:o}=E.useContext(Vm),i=`${zx}-${t||""}`,a=r||_m,[s,l,c]=wC(a,[$i,e],{salt:i,override:n,getComputedToken:Km,formatToken:Zm,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Qm,ignore:Hx,preserve:Wx}});return[a,c,t?l:"",s,o]}const ep={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},_o=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),tp=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),rp=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Ux=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Xx=(e,t,r,n)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=r?`.${r}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},np=(e,t)=>({outline:`${st(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Yx=(e,t)=>({"&:focus-visible":np(e,t)}),op=e=>({[`.${e}`]:Object.assign(Object.assign({},tp()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:Vi,genComponentStyleHook:Jx,genSubStyleComponent:Zx}=Bx({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=E.useContext(Zt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,o]=Hn();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{const{csp:e}=E.useContext(Zt);return e??{}},getResetStyles:(e,t)=>{var r;const n=Ux(e);return[n,{"&":n},op((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:Cu)]},getCommonStyle:Xx,getCompUnitless:()=>Qm});function qx(e,t){return fo.reduce((r,n)=>{const o=e[`${n}1`],i=e[`${n}3`],a=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}const Qx=(e,t)=>{const[r,n]=Hn();return ru({token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>op(e))},Kx=Object.assign({},A),{useId:ip}=Kx,ew=typeof ip>"u"?()=>"":ip;function tw(e,t,r){var n,o;const i=kr("ConfigProvider"),a=e||{},s=a.inherit===!1||!t?Object.assign(Object.assign({},yu),{hashed:(n=t?.hashed)!==null&&n!==void 0?n:yu.hashed,cssVar:t?.cssVar}):t,l=ew();if(process.env.NODE_ENV!=="production"){const c=a.cssVar||s.cssVar,u=!!(typeof a.cssVar=="object"&&(!((o=a.cssVar)===null||o===void 0)&&o.key)||l);process.env.NODE_ENV!=="production"&&i(!c||u,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return $c(()=>{var c,u;if(!e)return t;const d=Object.assign({},s.components);Object.keys(e.components||{}).forEach(h=>{d[h]=Object.assign(Object.assign({},d[h]),e.components[h])});const f=`css-var-${l.replace(/:/g,"")}`,g=((c=a.cssVar)!==null&&c!==void 0?c:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r?.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((u=a.cssVar)===null||u===void 0?void 0:u.key)||f});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:d,cssVar:g})},[a,s],(c,u)=>c.some((d,f)=>{const g=u[f];return!zc(d,g,!0)}))}var rw=["children"],ap=A.createContext({});function nw(e){var t=e.children,r=vt(e,rw);return A.createElement(ap.Provider,{value:r},t)}var ow=function(e){Gr(r,e);var t=Hr(r);function r(){return Tt(this,r),t.apply(this,arguments)}return Pt(r,[{key:"render",value:function(){return this.props.children}}]),r}(A.Component);function iw(e){var t=A.useReducer(function(s){return s+1},0),r=ie(t,2),n=r[1],o=A.useRef(e),i=cr(function(){return o.current}),a=cr(function(s){o.current=typeof s=="function"?s(o.current):s,n()});return[i,a]}var Wn="none",Cs="appear",xs="enter",ws="leave",sp="none",Jr="prepare",Vo="start",Bo="active",Au="end",lp="prepared";function cp(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function aw(e,t){var r={animationend:cp("Animation","AnimationEnd"),transitionend:cp("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var sw=aw(lr(),typeof window<"u"?window:{}),up={};if(lr()){var lw=document.createElement("div");up=lw.style}var Ss={};function dp(e){if(Ss[e])return Ss[e];var t=sw[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o<n;o+=1){var i=r[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in up)return Ss[e]=t[i],Ss[e]}return""}var fp=dp("animationend"),mp=dp("transitionend"),pp=!!(fp&&mp),gp=fp||"animationend",hp=mp||"transitionend";function vp(e,t){if(!e)return null;if(we(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const cw=function(e){var t=E.useRef();function r(o){o&&(o.removeEventListener(hp,e),o.removeEventListener(gp,e))}function n(o){t.current&&t.current!==o&&r(t.current),o&&o!==t.current&&(o.addEventListener(hp,e),o.addEventListener(gp,e),t.current=o)}return A.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var bp=lr()?E.useLayoutEffect:E.useEffect;const uw=function(){var e=A.useRef(null);function t(){tn.cancel(e.current)}function r(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=tn(function(){o<=1?n({isCanceled:function(){return i!==e.current}}):r(n,o-1)});e.current=i}return A.useEffect(function(){return function(){t()}},[]),[r,t]};var dw=[Jr,Vo,Bo,Au],fw=[Jr,lp],yp=!1,mw=!0;function Cp(e){return e===Bo||e===Au}const pw=function(e,t,r){var n=Di(sp),o=ie(n,2),i=o[0],a=o[1],s=uw(),l=ie(s,2),c=l[0],u=l[1];function d(){a(Jr,!0)}var f=t?fw:dw;return bp(function(){if(i!==sp&&i!==Au){var g=f.indexOf(i),h=f[g+1],m=r(i);m===yp?a(h,!0):h&&c(function(p){function b(){p.isCanceled()||a(h,!0)}m===!0?b():Promise.resolve(m).then(b)})}},[e,i]),A.useEffect(function(){return function(){u()}},[]),[d,i]};function gw(e,t,r,n){var o=n.motionEnter,i=o===void 0?!0:o,a=n.motionAppear,s=a===void 0?!0:a,l=n.motionLeave,c=l===void 0?!0:l,u=n.motionDeadline,d=n.motionLeaveImmediately,f=n.onAppearPrepare,g=n.onEnterPrepare,h=n.onLeavePrepare,m=n.onAppearStart,p=n.onEnterStart,b=n.onLeaveStart,y=n.onAppearActive,w=n.onEnterActive,S=n.onLeaveActive,v=n.onAppearEnd,I=n.onEnterEnd,N=n.onLeaveEnd,O=n.onVisibleChanged,T=Di(),P=ie(T,2),M=P[0],x=P[1],$=iw(Wn),k=ie($,2),F=k[0],j=k[1],z=Di(null),W=ie(z,2),V=W[0],_=W[1],D=F(),B=E.useRef(!1),L=E.useRef(null);function G(){return r()}var Q=E.useRef(!1);function q(){j(Wn),_(null,!0)}var U=cr(function(Fe){var Me=F();if(Me!==Wn){var bt=G();if(!(Fe&&!Fe.deadline&&Fe.target!==bt)){var Te=Q.current,Mt;Me===Cs&&Te?Mt=v?.(bt,Fe):Me===xs&&Te?Mt=I?.(bt,Fe):Me===ws&&Te&&(Mt=N?.(bt,Fe)),Te&&Mt!==!1&&q()}}}),K=cw(U),Z=ie(K,1),se=Z[0],pe=function(Me){switch(Me){case Cs:return X(X(X({},Jr,f),Vo,m),Bo,y);case xs:return X(X(X({},Jr,g),Vo,p),Bo,w);case ws:return X(X(X({},Jr,h),Vo,b),Bo,S);default:return{}}},Y=A.useMemo(function(){return pe(D)},[D]),Ce=pw(D,!e,function(Fe){if(Fe===Jr){var Me=Y[Jr];return Me?Me(G()):yp}if(ve in Y){var bt;_(((bt=Y[ve])===null||bt===void 0?void 0:bt.call(Y,G(),null))||null)}return ve===Bo&&D!==Wn&&(se(G()),u>0&&(clearTimeout(L.current),L.current=setTimeout(function(){U({deadline:!0})},u))),ve===lp&&q(),mw}),ne=ie(Ce,2),Ie=ne[0],ve=ne[1],Ye=Cp(ve);Q.current=Ye;var it=E.useRef(null);bp(function(){if(!(B.current&&it.current===t)){x(t);var Fe=B.current;B.current=!0;var Me;!Fe&&t&&s&&(Me=Cs),Fe&&t&&i&&(Me=xs),(Fe&&!t&&c||!Fe&&d&&!t&&c)&&(Me=ws);var bt=pe(Me);Me&&(e||bt[Jr])?(j(Me),Ie()):j(Wn),it.current=t}},[t]),E.useEffect(function(){(D===Cs&&!s||D===xs&&!i||D===ws&&!c)&&j(Wn)},[s,i,c]),E.useEffect(function(){return function(){B.current=!1,clearTimeout(L.current)}},[]);var Le=A.useRef(!1);E.useEffect(function(){M&&(Le.current=!0),M!==void 0&&D===Wn&&((Le.current||M)&&O?.(M),Le.current=!0)},[M,D]);var St=V;return Y[Jr]&&ve===Vo&&(St=H({transition:"none"},St)),[D,ve,St,M??t]}function hw(e){var t=e;we(e)==="object"&&(t=e.transitionSupport);function r(o,i){return!!(o.motionName&&t&&i!==!1)}var n=A.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,d=o.children,f=o.motionName,g=o.leavedClassName,h=o.eventProps,m=A.useContext(ap),p=m.motion,b=r(o,p),y=E.useRef(),w=E.useRef();function S(){try{return y.current instanceof HTMLElement?y.current:Za(w.current)}catch{return null}}var v=gw(b,s,S,o),I=ie(v,4),N=I[0],O=I[1],T=I[2],P=I[3],M=A.useRef(P);P&&(M.current=!0);var x=A.useCallback(function(W){y.current=W,Mc(i,W)},[i]),$,k=H(H({},h),{},{visible:s});if(!d)$=null;else if(N===Wn)P?$=d(H({},k),x):!c&&M.current&&g?$=d(H(H({},k),{},{className:g}),x):u||!c&&!g?$=d(H(H({},k),{},{style:{display:"none"}}),x):$=null;else{var F;O===Jr?F="prepare":Cp(O)?F="active":O===Vo&&(F="start");var j=vp(f,"".concat(N,"-").concat(F));$=d(H(H({},k),{},{className:J(vp(f,N),X(X({},j,j&&F),f,typeof f=="string")),style:T}),x)}if(A.isValidElement($)&&Ii($)){var z=Ka($);z||($=A.cloneElement($,{ref:x}))}return A.createElement(ow,{ref:w},$)});return n.displayName="CSSMotion",n}const mo=hw(pp);var Nu="add",Ou="keep",Tu="remove",Pu="removed";function vw(e){var t;return e&&we(e)==="object"&&"key"in e?t=e:t={key:e},H(H({},t),{},{key:String(t.key)})}function ku(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(vw)}function bw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,o=t.length,i=ku(e),a=ku(t);i.forEach(function(c){for(var u=!1,d=n;d<o;d+=1){var f=a[d];if(f.key===c.key){n<d&&(r=r.concat(a.slice(n,d).map(function(g){return H(H({},g),{},{status:Nu})})),n=d),r.push(H(H({},f),{},{status:Ou})),n+=1,u=!0;break}}u||r.push(H(H({},c),{},{status:Tu}))}),n<o&&(r=r.concat(a.slice(n).map(function(c){return H(H({},c),{},{status:Nu})})));var s={};r.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){r=r.filter(function(u){var d=u.key,f=u.status;return d!==c||f!==Tu}),r.forEach(function(u){u.key===c&&(u.status=Ou)})}),r}var yw=["component","children","onVisibleChanged","onAllRemoved"],Cw=["status"],xw=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ww(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mo,r=function(n){Gr(i,n);var o=Hr(i);function i(){var a;Tt(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=o.call.apply(o,[this].concat(l)),X(be(a),"state",{keyEntities:[]}),X(be(a),"removeKey",function(u){a.setState(function(d){var f=d.keyEntities.map(function(g){return g.key!==u?g:H(H({},g),{},{status:Pu})});return{keyEntities:f}},function(){var d=a.state.keyEntities,f=d.filter(function(g){var h=g.status;return h!==Pu}).length;f===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return Pt(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,f=c.onVisibleChanged;c.onAllRemoved;var g=vt(c,yw),h=u||A.Fragment,m={};return xw.forEach(function(p){m[p]=g[p],delete g[p]}),delete g.keys,A.createElement(h,g,l.map(function(p,b){var y=p.status,w=vt(p,Cw),S=y===Nu||y===Ou;return A.createElement(t,le({},m,{key:w.key,visible:S,eventProps:w,onVisibleChanged:function(I){f?.(I,{key:w.key}),I||s.removeKey(w.key)}}),function(v,I){return d(H(H({},v),{},{index:b}),I)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=ku(c),f=bw(u,d);return{keyEntities:f.filter(function(g){var h=u.find(function(m){var p=m.key;return g.key===p});return!(h&&h.status===Pu&&g.status===Tu)})}}}]),i}(A.Component);return X(r,"defaultProps",{component:"div"}),r}const Sw=ww(pp),Fu=A.createContext(!0);process.env.NODE_ENV!=="production"&&(Fu.displayName="MotionCacheContext");function Ew(e){const t=A.useContext(Fu),{children:r}=e,[,n]=Hn(),{motion:o}=n,i=A.useRef(!1);return i.current||(i.current=t!==o),i.current?A.createElement(Fu.Provider,{value:o},A.createElement(nw,{motion:o},r)):r}const xp=A.memo(({dropdownMatchSelectWidth:e})=>(kr("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(xp.displayName="PropWarning");const Iw=process.env.NODE_ENV!=="production"?xp:()=>null;var Aw=function(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};let $u=!1;process.env.NODE_ENV;const Nw=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let wp;function Ow(){return wp||Li}function Tw(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const Pw=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:o}=e;t!==void 0&&(wp=t),n&&Tw(n)&&(process.env.NODE_ENV!=="production"&&Mo(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Ax(Ow(),n))},kw=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:d,virtual:f,dropdownMatchSelectWidth:g,popupMatchSelectWidth:h,popupOverflow:m,legacyLocale:p,parentContext:b,iconPrefixCls:y,theme:w,componentDisabled:S,segmented:v,statistic:I,spin:N,calendar:O,carousel:T,cascader:P,collapse:M,typography:x,checkbox:$,descriptions:k,divider:F,drawer:j,skeleton:z,steps:W,image:V,layout:_,list:D,mentions:B,modal:L,progress:G,result:Q,slider:q,breadcrumb:U,menu:K,pagination:Z,input:se,textArea:pe,empty:Y,badge:Ce,radio:ne,rate:Ie,switch:ve,transfer:Ye,avatar:it,message:Le,tag:St,table:Fe,card:Me,tabs:bt,timeline:Te,timePicker:Mt,upload:at,notification:ir,tree:Xt,colorPicker:jt,datePicker:fr,rangePicker:_e,flex:De,wave:Rt,dropdown:Lt,warning:Dt,tour:he,tooltip:de,popover:Ae,popconfirm:Ne,floatButton:$e,floatButtonGroup:pt,variant:tr,inputNumber:ar,treeSelect:_t}=e,Vt=A.useCallback((R,te)=>{const{prefixCls:ae}=e;if(te)return te;const fe=ae||b.getPrefixCls("");return R?`${fe}-${R}`:fe},[b.getPrefixCls,e.prefixCls]),Et=y||b.iconPrefixCls||Cu,_r=r||b.csp;Qx(Et,_r);const Wt=tw(w,b.theme,{prefixCls:Vt("")});process.env.NODE_ENV!=="production"&&($u=$u||!!Wt);const Je={csp:_r,autoInsertSpaceInButton:n,alert:o,anchor:i,locale:s||p,direction:c,space:u,splitter:d,virtual:f,popupMatchSelectWidth:h??g,popupOverflow:m,getPrefixCls:Vt,iconPrefixCls:Et,theme:Wt,segmented:v,statistic:I,spin:N,calendar:O,carousel:T,cascader:P,collapse:M,typography:x,checkbox:$,descriptions:k,divider:F,drawer:j,skeleton:z,steps:W,image:V,input:se,textArea:pe,layout:_,list:D,mentions:B,modal:L,progress:G,result:Q,slider:q,breadcrumb:U,menu:K,pagination:Z,empty:Y,badge:Ce,radio:ne,rate:Ie,switch:ve,transfer:Ye,avatar:it,message:Le,tag:St,table:Fe,card:Me,tabs:bt,timeline:Te,timePicker:Mt,upload:at,notification:ir,tree:Xt,colorPicker:jt,datePicker:fr,rangePicker:_e,flex:De,wave:Rt,dropdown:Lt,warning:Dt,tour:he,tooltip:de,popover:Ae,popconfirm:Ne,floatButton:$e,floatButtonGroup:pt,variant:tr,inputNumber:ar,treeSelect:_t};process.env.NODE_ENV!=="production"&&kr("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const He=Object.assign({},b);Object.keys(Je).forEach(R=>{Je[R]!==void 0&&(He[R]=Je[R])}),Nw.forEach(R=>{const te=e[R];te&&(He[R]=te)}),typeof n<"u"&&(He.button=Object.assign({autoInsertSpace:n},He.button));const Bt=$c(()=>He,He,(R,te)=>{const ae=Object.keys(R),fe=Object.keys(te);return ae.length!==fe.length||ae.some(ke=>R[ke]!==te[ke])}),{layer:Tr}=A.useContext(Pi),sr=A.useMemo(()=>({prefixCls:Et,csp:_r,layer:Tr?"antd":void 0}),[Et,_r,Tr]);let xt=A.createElement(A.Fragment,null,A.createElement(Iw,{dropdownMatchSelectWidth:g}),t);const pn=A.useMemo(()=>{var R,te,ae,fe;return $o(((R=uo.Form)===null||R===void 0?void 0:R.defaultValidateMessages)||{},((ae=(te=Bt.locale)===null||te===void 0?void 0:te.Form)===null||ae===void 0?void 0:ae.defaultValidateMessages)||{},((fe=Bt.form)===null||fe===void 0?void 0:fe.validateMessages)||{},a?.validateMessages||{})},[Bt,a?.validateMessages]);Object.keys(pn).length>0&&(xt=A.createElement(nx.Provider,{value:pn},xt)),s&&(xt=A.createElement(Pm,{locale:s,_ANT_MARK__:Tm},xt)),xt=A.createElement(nu.Provider,{value:sr},xt),l&&(xt=A.createElement(Ox,{size:l},xt)),xt=A.createElement(Ew,null,xt);const Qr=A.useMemo(()=>{const R=Wt||{},{algorithm:te,token:ae,components:fe,cssVar:ke}=R,Ve=Aw(R,["algorithm","token","components","cssVar"]),Oe=te&&(!Array.isArray(te)||te.length>0)?Uc(te):_m,Se={};Object.entries(fe||{}).forEach(([Be,ft])=>{const je=Object.assign({},ft);"algorithm"in je&&(je.algorithm===!0?je.theme=Oe:(Array.isArray(je.algorithm)||typeof je.algorithm=="function")&&(je.theme=Uc(je.algorithm)),delete je.algorithm),Se[Be]=je});const gt=Object.assign(Object.assign({},$i),ae);return Object.assign(Object.assign({},Ve),{theme:Oe,token:gt,components:Se,override:Object.assign({override:gt},Se),cssVar:ke})},[Wt]);return w&&(xt=A.createElement(Vm.Provider,{value:Qr},xt)),Bt.warning&&(xt=A.createElement(Im.Provider,{value:Bt.warning},xt)),S!==void 0&&(xt=A.createElement(Nx,{disabled:S},xt)),A.createElement(Zt.Provider,{value:Bt},xt)},zo=e=>{const t=A.useContext(Zt),r=A.useContext(ou);return A.createElement(kw,Object.assign({parentContext:t,legacyLocale:r},e))};zo.ConfigContext=Zt,zo.SizeContext=Do,zo.config=Pw,zo.useConfig=Tx,Object.defineProperty(zo,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Mo(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Do)}),process.env.NODE_ENV!=="production"&&(zo.displayName="ConfigProvider");var Fw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function Sp(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function $w(e){return Sp(e)instanceof ShadowRoot}function Es(e){return $w(e)?Sp(e):null}function Mw(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function jw(e,t){ht(e,"[@ant-design/icons] ".concat(t))}function Ep(e){return we(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(we(e.icon)==="object"||typeof e.icon=="function")}function Ip(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[Mw(r)]=n}return t},{})}function Mu(e,t,r){return r?E.createElement(e.tag,H(H({key:t},Ip(e.attrs)),r),(e.children||[]).map(function(n,o){return Mu(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):E.createElement(e.tag,H({key:t},Ip(e.attrs)),(e.children||[]).map(function(n,o){return Mu(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Ap(e){return ji(e)[0]}function Np(e){return e?Array.isArray(e)?e:[e]:[]}var Rw=`
|
|
108
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var qm=function(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};const Qm={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Hx={motionBase:!0,motionUnit:!0},Wx={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Km=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:o}=t,i=qm(t,["override"]);let a=Object.assign(Object.assign({},n),{override:o});return a=Zm(a),i&&Object.entries(i).forEach(([s,l])=>{const{theme:c}=l,u=qm(l,["theme"]);let d=u;c&&(d=Km(Object.assign(Object.assign({},a),u),{override:u},c)),a[s]=d}),a};function Hn(){const{token:e,hashed:t,theme:r,override:n,cssVar:o}=E.useContext(Vm),i=`${zx}-${t||""}`,a=r||_m,[s,l,c]=wC(a,[$i,e],{salt:i,override:n,getComputedToken:Km,formatToken:Zm,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Qm,ignore:Hx,preserve:Wx}});return[a,c,t?l:"",s,o]}const ep={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},_o=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),tp=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),rp=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Ux=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Xx=(e,t,r,n)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=r?`.${r}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},np=(e,t)=>({outline:`${st(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Yx=(e,t)=>({"&:focus-visible":np(e,t)}),op=e=>({[`.${e}`]:Object.assign(Object.assign({},tp()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:Vi,genComponentStyleHook:Jx,genSubStyleComponent:Zx}=Bx({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=E.useContext(Zt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,o]=Hn();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{const{csp:e}=E.useContext(Zt);return e??{}},getResetStyles:(e,t)=>{var r;const n=Ux(e);return[n,{"&":n},op((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:xu)]},getCommonStyle:Xx,getCompUnitless:()=>Qm});function qx(e,t){return fo.reduce((r,n)=>{const o=e[`${n}1`],i=e[`${n}3`],a=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}const Qx=(e,t)=>{const[r,n]=Hn();return nu({token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>op(e))},Kx=Object.assign({},A),{useId:ip}=Kx,ew=typeof ip>"u"?()=>"":ip;function tw(e,t,r){var n,o;const i=kr("ConfigProvider"),a=e||{},s=a.inherit===!1||!t?Object.assign(Object.assign({},Cu),{hashed:(n=t?.hashed)!==null&&n!==void 0?n:Cu.hashed,cssVar:t?.cssVar}):t,l=ew();if(process.env.NODE_ENV!=="production"){const c=a.cssVar||s.cssVar,u=!!(typeof a.cssVar=="object"&&(!((o=a.cssVar)===null||o===void 0)&&o.key)||l);process.env.NODE_ENV!=="production"&&i(!c||u,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Mc(()=>{var c,u;if(!e)return t;const d=Object.assign({},s.components);Object.keys(e.components||{}).forEach(h=>{d[h]=Object.assign(Object.assign({},d[h]),e.components[h])});const f=`css-var-${l.replace(/:/g,"")}`,g=((c=a.cssVar)!==null&&c!==void 0?c:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r?.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((u=a.cssVar)===null||u===void 0?void 0:u.key)||f});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:d,cssVar:g})},[a,s],(c,u)=>c.some((d,f)=>{const g=u[f];return!Gc(d,g,!0)}))}var rw=["children"],ap=A.createContext({});function nw(e){var t=e.children,r=vt(e,rw);return A.createElement(ap.Provider,{value:r},t)}var ow=function(e){Gr(r,e);var t=Hr(r);function r(){return Tt(this,r),t.apply(this,arguments)}return Pt(r,[{key:"render",value:function(){return this.props.children}}]),r}(A.Component);function iw(e){var t=A.useReducer(function(s){return s+1},0),r=ie(t,2),n=r[1],o=A.useRef(e),i=cr(function(){return o.current}),a=cr(function(s){o.current=typeof s=="function"?s(o.current):s,n()});return[i,a]}var Wn="none",xs="appear",ws="enter",Ss="leave",sp="none",Jr="prepare",Vo="start",Bo="active",Nu="end",lp="prepared";function cp(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function aw(e,t){var r={animationend:cp("Animation","AnimationEnd"),transitionend:cp("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var sw=aw(lr(),typeof window<"u"?window:{}),up={};if(lr()){var lw=document.createElement("div");up=lw.style}var Es={};function dp(e){if(Es[e])return Es[e];var t=sw[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o<n;o+=1){var i=r[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in up)return Es[e]=t[i],Es[e]}return""}var fp=dp("animationend"),mp=dp("transitionend"),pp=!!(fp&&mp),gp=fp||"animationend",hp=mp||"transitionend";function vp(e,t){if(!e)return null;if(we(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const cw=function(e){var t=E.useRef();function r(o){o&&(o.removeEventListener(hp,e),o.removeEventListener(gp,e))}function n(o){t.current&&t.current!==o&&r(t.current),o&&o!==t.current&&(o.addEventListener(hp,e),o.addEventListener(gp,e),t.current=o)}return A.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var bp=lr()?E.useLayoutEffect:E.useEffect;const uw=function(){var e=A.useRef(null);function t(){tn.cancel(e.current)}function r(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=tn(function(){o<=1?n({isCanceled:function(){return i!==e.current}}):r(n,o-1)});e.current=i}return A.useEffect(function(){return function(){t()}},[]),[r,t]};var dw=[Jr,Vo,Bo,Nu],fw=[Jr,lp],yp=!1,mw=!0;function Cp(e){return e===Bo||e===Nu}const pw=function(e,t,r){var n=Di(sp),o=ie(n,2),i=o[0],a=o[1],s=uw(),l=ie(s,2),c=l[0],u=l[1];function d(){a(Jr,!0)}var f=t?fw:dw;return bp(function(){if(i!==sp&&i!==Nu){var g=f.indexOf(i),h=f[g+1],m=r(i);m===yp?a(h,!0):h&&c(function(p){function b(){p.isCanceled()||a(h,!0)}m===!0?b():Promise.resolve(m).then(b)})}},[e,i]),A.useEffect(function(){return function(){u()}},[]),[d,i]};function gw(e,t,r,n){var o=n.motionEnter,i=o===void 0?!0:o,a=n.motionAppear,s=a===void 0?!0:a,l=n.motionLeave,c=l===void 0?!0:l,u=n.motionDeadline,d=n.motionLeaveImmediately,f=n.onAppearPrepare,g=n.onEnterPrepare,h=n.onLeavePrepare,m=n.onAppearStart,p=n.onEnterStart,b=n.onLeaveStart,y=n.onAppearActive,w=n.onEnterActive,S=n.onLeaveActive,v=n.onAppearEnd,I=n.onEnterEnd,N=n.onLeaveEnd,O=n.onVisibleChanged,T=Di(),P=ie(T,2),M=P[0],x=P[1],$=iw(Wn),k=ie($,2),F=k[0],j=k[1],G=Di(null),W=ie(G,2),V=W[0],_=W[1],D=F(),B=E.useRef(!1),L=E.useRef(null);function z(){return r()}var Q=E.useRef(!1);function q(){j(Wn),_(null,!0)}var U=cr(function(Fe){var Me=F();if(Me!==Wn){var bt=z();if(!(Fe&&!Fe.deadline&&Fe.target!==bt)){var Te=Q.current,Mt;Me===xs&&Te?Mt=v?.(bt,Fe):Me===ws&&Te?Mt=I?.(bt,Fe):Me===Ss&&Te&&(Mt=N?.(bt,Fe)),Te&&Mt!==!1&&q()}}}),K=cw(U),Z=ie(K,1),se=Z[0],ge=function(Me){switch(Me){case xs:return X(X(X({},Jr,f),Vo,m),Bo,y);case ws:return X(X(X({},Jr,g),Vo,p),Bo,w);case Ss:return X(X(X({},Jr,h),Vo,b),Bo,S);default:return{}}},Y=A.useMemo(function(){return ge(D)},[D]),Ce=pw(D,!e,function(Fe){if(Fe===Jr){var Me=Y[Jr];return Me?Me(z()):yp}if(ve in Y){var bt;_(((bt=Y[ve])===null||bt===void 0?void 0:bt.call(Y,z(),null))||null)}return ve===Bo&&D!==Wn&&(se(z()),u>0&&(clearTimeout(L.current),L.current=setTimeout(function(){U({deadline:!0})},u))),ve===lp&&q(),mw}),ne=ie(Ce,2),Ie=ne[0],ve=ne[1],Ye=Cp(ve);Q.current=Ye;var it=E.useRef(null);bp(function(){if(!(B.current&&it.current===t)){x(t);var Fe=B.current;B.current=!0;var Me;!Fe&&t&&s&&(Me=xs),Fe&&t&&i&&(Me=ws),(Fe&&!t&&c||!Fe&&d&&!t&&c)&&(Me=Ss);var bt=ge(Me);Me&&(e||bt[Jr])?(j(Me),Ie()):j(Wn),it.current=t}},[t]),E.useEffect(function(){(D===xs&&!s||D===ws&&!i||D===Ss&&!c)&&j(Wn)},[s,i,c]),E.useEffect(function(){return function(){B.current=!1,clearTimeout(L.current)}},[]);var Le=A.useRef(!1);E.useEffect(function(){M&&(Le.current=!0),M!==void 0&&D===Wn&&((Le.current||M)&&O?.(M),Le.current=!0)},[M,D]);var St=V;return Y[Jr]&&ve===Vo&&(St=H({transition:"none"},St)),[D,ve,St,M??t]}function hw(e){var t=e;we(e)==="object"&&(t=e.transitionSupport);function r(o,i){return!!(o.motionName&&t&&i!==!1)}var n=A.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,d=o.children,f=o.motionName,g=o.leavedClassName,h=o.eventProps,m=A.useContext(ap),p=m.motion,b=r(o,p),y=E.useRef(),w=E.useRef();function S(){try{return y.current instanceof HTMLElement?y.current:qa(w.current)}catch{return null}}var v=gw(b,s,S,o),I=ie(v,4),N=I[0],O=I[1],T=I[2],P=I[3],M=A.useRef(P);P&&(M.current=!0);var x=A.useCallback(function(W){y.current=W,jc(i,W)},[i]),$,k=H(H({},h),{},{visible:s});if(!d)$=null;else if(N===Wn)P?$=d(H({},k),x):!c&&M.current&&g?$=d(H(H({},k),{},{className:g}),x):u||!c&&!g?$=d(H(H({},k),{},{style:{display:"none"}}),x):$=null;else{var F;O===Jr?F="prepare":Cp(O)?F="active":O===Vo&&(F="start");var j=vp(f,"".concat(N,"-").concat(F));$=d(H(H({},k),{},{className:J(vp(f,N),X(X({},j,j&&F),f,typeof f=="string")),style:T}),x)}if(A.isValidElement($)&&Ii($)){var G=es($);G||($=A.cloneElement($,{ref:x}))}return A.createElement(ow,{ref:w},$)});return n.displayName="CSSMotion",n}const mo=hw(pp);var Ou="add",Tu="keep",Pu="remove",ku="removed";function vw(e){var t;return e&&we(e)==="object"&&"key"in e?t=e:t={key:e},H(H({},t),{},{key:String(t.key)})}function Fu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(vw)}function bw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,o=t.length,i=Fu(e),a=Fu(t);i.forEach(function(c){for(var u=!1,d=n;d<o;d+=1){var f=a[d];if(f.key===c.key){n<d&&(r=r.concat(a.slice(n,d).map(function(g){return H(H({},g),{},{status:Ou})})),n=d),r.push(H(H({},f),{},{status:Tu})),n+=1,u=!0;break}}u||r.push(H(H({},c),{},{status:Pu}))}),n<o&&(r=r.concat(a.slice(n).map(function(c){return H(H({},c),{},{status:Ou})})));var s={};r.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){r=r.filter(function(u){var d=u.key,f=u.status;return d!==c||f!==Pu}),r.forEach(function(u){u.key===c&&(u.status=Tu)})}),r}var yw=["component","children","onVisibleChanged","onAllRemoved"],Cw=["status"],xw=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ww(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mo,r=function(n){Gr(i,n);var o=Hr(i);function i(){var a;Tt(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=o.call.apply(o,[this].concat(l)),X(be(a),"state",{keyEntities:[]}),X(be(a),"removeKey",function(u){a.setState(function(d){var f=d.keyEntities.map(function(g){return g.key!==u?g:H(H({},g),{},{status:ku})});return{keyEntities:f}},function(){var d=a.state.keyEntities,f=d.filter(function(g){var h=g.status;return h!==ku}).length;f===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return Pt(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,f=c.onVisibleChanged;c.onAllRemoved;var g=vt(c,yw),h=u||A.Fragment,m={};return xw.forEach(function(p){m[p]=g[p],delete g[p]}),delete g.keys,A.createElement(h,g,l.map(function(p,b){var y=p.status,w=vt(p,Cw),S=y===Ou||y===Tu;return A.createElement(t,le({},m,{key:w.key,visible:S,eventProps:w,onVisibleChanged:function(I){f?.(I,{key:w.key}),I||s.removeKey(w.key)}}),function(v,I){return d(H(H({},v),{},{index:b}),I)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=Fu(c),f=bw(u,d);return{keyEntities:f.filter(function(g){var h=u.find(function(m){var p=m.key;return g.key===p});return!(h&&h.status===ku&&g.status===Pu)})}}}]),i}(A.Component);return X(r,"defaultProps",{component:"div"}),r}const Sw=ww(pp),$u=A.createContext(!0);process.env.NODE_ENV!=="production"&&($u.displayName="MotionCacheContext");function Ew(e){const t=A.useContext($u),{children:r}=e,[,n]=Hn(),{motion:o}=n,i=A.useRef(!1);return i.current||(i.current=t!==o),i.current?A.createElement($u.Provider,{value:o},A.createElement(nw,{motion:o},r)):r}const xp=A.memo(({dropdownMatchSelectWidth:e})=>(kr("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(xp.displayName="PropWarning");const Iw=process.env.NODE_ENV!=="production"?xp:()=>null;var Aw=function(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};let Mu=!1;process.env.NODE_ENV;const Nw=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let wp;function Ow(){return wp||Li}function Tw(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const Pw=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:o}=e;t!==void 0&&(wp=t),n&&Tw(n)&&(process.env.NODE_ENV!=="production"&&Mo(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Ax(Ow(),n))},kw=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:d,virtual:f,dropdownMatchSelectWidth:g,popupMatchSelectWidth:h,popupOverflow:m,legacyLocale:p,parentContext:b,iconPrefixCls:y,theme:w,componentDisabled:S,segmented:v,statistic:I,spin:N,calendar:O,carousel:T,cascader:P,collapse:M,typography:x,checkbox:$,descriptions:k,divider:F,drawer:j,skeleton:G,steps:W,image:V,layout:_,list:D,mentions:B,modal:L,progress:z,result:Q,slider:q,breadcrumb:U,menu:K,pagination:Z,input:se,textArea:ge,empty:Y,badge:Ce,radio:ne,rate:Ie,switch:ve,transfer:Ye,avatar:it,message:Le,tag:St,table:Fe,card:Me,tabs:bt,timeline:Te,timePicker:Mt,upload:at,notification:ir,tree:Xt,colorPicker:jt,datePicker:fr,rangePicker:_e,flex:De,wave:Rt,dropdown:Lt,warning:Dt,tour:he,tooltip:de,popover:Ae,popconfirm:Ne,floatButton:$e,floatButtonGroup:pt,variant:tr,inputNumber:ar,treeSelect:_t}=e,Vt=A.useCallback((R,te)=>{const{prefixCls:ae}=e;if(te)return te;const fe=ae||b.getPrefixCls("");return R?`${fe}-${R}`:fe},[b.getPrefixCls,e.prefixCls]),Et=y||b.iconPrefixCls||xu,_r=r||b.csp;Qx(Et,_r);const Wt=tw(w,b.theme,{prefixCls:Vt("")});process.env.NODE_ENV!=="production"&&(Mu=Mu||!!Wt);const Je={csp:_r,autoInsertSpaceInButton:n,alert:o,anchor:i,locale:s||p,direction:c,space:u,splitter:d,virtual:f,popupMatchSelectWidth:h??g,popupOverflow:m,getPrefixCls:Vt,iconPrefixCls:Et,theme:Wt,segmented:v,statistic:I,spin:N,calendar:O,carousel:T,cascader:P,collapse:M,typography:x,checkbox:$,descriptions:k,divider:F,drawer:j,skeleton:G,steps:W,image:V,input:se,textArea:ge,layout:_,list:D,mentions:B,modal:L,progress:z,result:Q,slider:q,breadcrumb:U,menu:K,pagination:Z,empty:Y,badge:Ce,radio:ne,rate:Ie,switch:ve,transfer:Ye,avatar:it,message:Le,tag:St,table:Fe,card:Me,tabs:bt,timeline:Te,timePicker:Mt,upload:at,notification:ir,tree:Xt,colorPicker:jt,datePicker:fr,rangePicker:_e,flex:De,wave:Rt,dropdown:Lt,warning:Dt,tour:he,tooltip:de,popover:Ae,popconfirm:Ne,floatButton:$e,floatButtonGroup:pt,variant:tr,inputNumber:ar,treeSelect:_t};process.env.NODE_ENV!=="production"&&kr("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const He=Object.assign({},b);Object.keys(Je).forEach(R=>{Je[R]!==void 0&&(He[R]=Je[R])}),Nw.forEach(R=>{const te=e[R];te&&(He[R]=te)}),typeof n<"u"&&(He.button=Object.assign({autoInsertSpace:n},He.button));const Bt=Mc(()=>He,He,(R,te)=>{const ae=Object.keys(R),fe=Object.keys(te);return ae.length!==fe.length||ae.some(ke=>R[ke]!==te[ke])}),{layer:Tr}=A.useContext(Pi),sr=A.useMemo(()=>({prefixCls:Et,csp:_r,layer:Tr?"antd":void 0}),[Et,_r,Tr]);let xt=A.createElement(A.Fragment,null,A.createElement(Iw,{dropdownMatchSelectWidth:g}),t);const pn=A.useMemo(()=>{var R,te,ae,fe;return $o(((R=uo.Form)===null||R===void 0?void 0:R.defaultValidateMessages)||{},((ae=(te=Bt.locale)===null||te===void 0?void 0:te.Form)===null||ae===void 0?void 0:ae.defaultValidateMessages)||{},((fe=Bt.form)===null||fe===void 0?void 0:fe.validateMessages)||{},a?.validateMessages||{})},[Bt,a?.validateMessages]);Object.keys(pn).length>0&&(xt=A.createElement(nx.Provider,{value:pn},xt)),s&&(xt=A.createElement(Pm,{locale:s,_ANT_MARK__:Tm},xt)),xt=A.createElement(ou.Provider,{value:sr},xt),l&&(xt=A.createElement(Ox,{size:l},xt)),xt=A.createElement(Ew,null,xt);const Qr=A.useMemo(()=>{const R=Wt||{},{algorithm:te,token:ae,components:fe,cssVar:ke}=R,Ve=Aw(R,["algorithm","token","components","cssVar"]),Oe=te&&(!Array.isArray(te)||te.length>0)?Xc(te):_m,Se={};Object.entries(fe||{}).forEach(([Be,ft])=>{const je=Object.assign({},ft);"algorithm"in je&&(je.algorithm===!0?je.theme=Oe:(Array.isArray(je.algorithm)||typeof je.algorithm=="function")&&(je.theme=Xc(je.algorithm)),delete je.algorithm),Se[Be]=je});const gt=Object.assign(Object.assign({},$i),ae);return Object.assign(Object.assign({},Ve),{theme:Oe,token:gt,components:Se,override:Object.assign({override:gt},Se),cssVar:ke})},[Wt]);return w&&(xt=A.createElement(Vm.Provider,{value:Qr},xt)),Bt.warning&&(xt=A.createElement(Im.Provider,{value:Bt.warning},xt)),S!==void 0&&(xt=A.createElement(Nx,{disabled:S},xt)),A.createElement(Zt.Provider,{value:Bt},xt)},zo=e=>{const t=A.useContext(Zt),r=A.useContext(iu);return A.createElement(kw,Object.assign({parentContext:t,legacyLocale:r},e))};zo.ConfigContext=Zt,zo.SizeContext=Do,zo.config=Pw,zo.useConfig=Tx,Object.defineProperty(zo,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Mo(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Do)}),process.env.NODE_ENV!=="production"&&(zo.displayName="ConfigProvider");var Fw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function Sp(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function $w(e){return Sp(e)instanceof ShadowRoot}function Is(e){return $w(e)?Sp(e):null}function Mw(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function jw(e,t){ht(e,"[@ant-design/icons] ".concat(t))}function Ep(e){return we(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(we(e.icon)==="object"||typeof e.icon=="function")}function Ip(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[Mw(r)]=n}return t},{})}function ju(e,t,r){return r?E.createElement(e.tag,H(H({key:t},Ip(e.attrs)),r),(e.children||[]).map(function(n,o){return ju(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):E.createElement(e.tag,H({key:t},Ip(e.attrs)),(e.children||[]).map(function(n,o){return ju(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Ap(e){return ji(e)[0]}function Np(e){return e?Array.isArray(e)?e:[e]:[]}var Rw=`
|
|
109
109
|
.anticon {
|
|
110
110
|
display: inline-flex;
|
|
111
111
|
align-items: center;
|
|
@@ -160,9 +160,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
160
160
|
transform: rotate(360deg);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
`,Lw=function(t){var r=E.useContext(
|
|
163
|
+
`,Lw=function(t){var r=E.useContext(ou),n=r.csp,o=r.prefixCls,i=r.layer,a=Rw;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` {
|
|
164
164
|
`).concat(a,`
|
|
165
|
-
}`)),E.useEffect(function(){var s=t.current,l=
|
|
165
|
+
}`)),E.useEffect(function(){var s=t.current,l=Is(s);vn(a,"@ant-design-icons",{prepend:!i,csp:n,attachTo:l})},[])},Dw=["icon","className","onClick","style","primaryColor","secondaryColor"],Bi={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function _w(e){var t=e.primaryColor,r=e.secondaryColor;Bi.primaryColor=t,Bi.secondaryColor=r||Ap(t),Bi.calculated=!!r}function Vw(){return H({},Bi)}var Go=function(t){var r=t.icon,n=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=vt(t,Dw),c=A.useRef(),u=Bi;if(a&&(u={primaryColor:a,secondaryColor:s||Ap(a)}),Lw(c),jw(Ep(r),"icon should be icon definiton, but got ".concat(r)),!Ep(r))return null;var d=r;return d&&typeof d.icon=="function"&&(d=H(H({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),ju(d.icon,"svg-".concat(d.name),H(H({className:n,onClick:o,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Go.displayName="IconReact",Go.getTwoToneColors=Vw,Go.setTwoToneColors=_w;function Op(e){var t=Np(e),r=ie(t,2),n=r[0],o=r[1];return Go.setTwoToneColors({primaryColor:n,secondaryColor:o})}function Bw(){var e=Go.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var zw=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Op(Ro.primary);var mr=A.forwardRef(function(e,t){var r=e.className,n=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=vt(e,zw),u=A.useContext(ou),d=u.prefixCls,f=d===void 0?"anticon":d,g=u.rootClassName,h=J(g,f,X(X({},"".concat(f,"-").concat(n.name),!!n.name),"".concat(f,"-spin"),!!o||n.name==="loading"),r),m=a;m===void 0&&s&&(m=-1);var p=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,b=Np(l),y=ie(b,2),w=y[0],S=y[1];return A.createElement("span",le({role:"img","aria-label":n.name},c,{ref:t,tabIndex:m,onClick:s,className:h}),A.createElement(Go,{icon:n,primaryColor:w,secondaryColor:S,style:p}))});mr.displayName="AntdIcon",mr.getTwoToneColor=Bw,mr.setTwoToneColor=Op;var Gw=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:Fw}))},Tp=A.forwardRef(Gw);process.env.NODE_ENV!=="production"&&(Tp.displayName="CheckCircleFilled");var Hw={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},Ww=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:Hw}))},Pp=A.forwardRef(Ww);process.env.NODE_ENV!=="production"&&(Pp.displayName="CloseCircleFilled");var Uw={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},Xw=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:Uw}))},kp=A.forwardRef(Xw);process.env.NODE_ENV!=="production"&&(kp.displayName="CloseOutlined");var Yw=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
166
166
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
167
167
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
168
168
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
@@ -179,7 +179,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
179
179
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
180
180
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
181
181
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
182
|
-
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Zw="".concat(Yw," ").concat(Jw).split(/[\s\n]+/),qw="aria-",Qw="data-";function Fp(e,t){return e.indexOf(t)===0}function Kw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=H({},t);var n={};return Object.keys(e).forEach(function(o){(r.aria&&(o==="role"||Fp(o,qw))||r.data&&Fp(o,Qw)||r.attr&&Zw.includes(o))&&(n[o]=e[o])}),n}function $p(e){return e&&E.isValidElement(e)&&e.type===E.Fragment}const eS=(e,t,r)=>E.isValidElement(e)?E.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function zi(e,t){return eS(e,e,t)}const Mp=e=>{const[,,,,t]=Hn();return t?`${e}-css-var`:""};var tS={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},rS=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:tS}))},Is=A.forwardRef(rS);process.env.NODE_ENV!=="production"&&(Is.displayName="LoadingOutlined");const ju=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(ju.displayName="zIndexContext");const yn=100,nS=yn*10+yn,jp={Modal:yn,Drawer:yn,Popover:yn,Popconfirm:yn,Tooltip:yn,Tour:yn,FloatButton:yn},oS={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function iS(e){return e in jp}const aS=(e,t)=>{const[,r]=Hn(),n=E.useContext(ju),o=iS(e);let i;if(t!==void 0)i=[t,t];else{let a=n??0;o?a+=(n?0:r.zIndexPopupBase)+jp[e]:a+=oS[e],i=[n===void 0?t:a,a]}if(process.env.NODE_ENV!=="production"){const a=kr(e),s=r.zIndexPopupBase+nS,l=i[0]||0;process.env.NODE_ENV!=="production"&&a(t!==void 0||l<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return i};function Rp(e,t){this.v=e,this.k=t}function nr(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}nr=function(a,s,l,c){function u(d,f){nr(a,d,function(g){return this._invoke(d,f,g)})}s?o?o(a,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):a[s]=l:(u("next",0),u("throw",1),u("return",2))},nr(e,t,r,n)}function Ru(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(g,h,m,p){var b=h&&h.prototype instanceof s?h:s,y=Object.create(b.prototype);return nr(y,"_invoke",function(w,S,v){var I,N,O,T=0,P=v||[],M=!1,x={p:0,n:0,v:e,a:$,f:$.bind(e,4),d:function(F,j){return I=F,N=0,O=e,x.n=j,a}};function $(k,F){for(N=k,O=F,t=0;!M&&T&&!j&&t<P.length;t++){var j,z=P[t],W=x.p,V=z[2];k>3?(j=V===F)&&(O=z[(N=z[4])?5:(N=3,3)],z[4]=z[5]=e):z[0]<=W&&((j=k<2&&W<z[1])?(N=0,x.v=F,x.n=z[1]):W<V&&(j=k<3||z[0]>F||F>V)&&(z[4]=k,z[5]=F,x.n=V,N=0))}if(j||k>1)return a;throw M=!0,F}return function(k,F,j){if(T>1)throw TypeError("Generator is already running");for(M&&F===1&&$(F,j),N=F,O=j;(t=N<2?e:O)||!M;){I||(N?N<3?(N>1&&(x.n=-1),$(N,O)):x.n=O:x.v=O);try{if(T=2,I){if(N||(k="next"),t=I[k]){if(!(t=t.call(I,O)))throw TypeError("iterator result is not an object");if(!t.done)return t;O=t.value,N<2&&(N=0)}else N===1&&(t=I.return)&&t.call(I),N<2&&(O=TypeError("The iterator does not provide a '"+k+"' method"),N=1);I=e}else if((t=(M=x.n<0)?O:w.call(S,x))!==a)break}catch(z){I=e,N=1,O=z}finally{T=1}}return{value:t,done:M}}}(g,m,p),!0),y}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(nr(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,c):(g.__proto__=c,nr(g,o,"GeneratorFunction")),g.prototype=Object.create(d),g}return l.prototype=c,nr(d,"constructor",c),nr(c,"constructor",l),l.displayName="GeneratorFunction",nr(c,o,"GeneratorFunction"),nr(d),nr(d,o,"Generator"),nr(d,n,function(){return this}),nr(d,"toString",function(){return"[object Generator]"}),(Ru=function(){return{w:i,m:f}})()}function As(e,t){function r(o,i,a,s){try{var l=e[o](i),c=l.value;return c instanceof Rp?t.resolve(c.v).then(function(u){r("next",u,a,s)},function(u){r("throw",u,a,s)}):t.resolve(c).then(function(u){l.value=u,a(l)},function(u){return r("throw",u,a,s)})}catch(u){s(u)}}var n;this.next||(nr(As.prototype),nr(As.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),nr(this,"_invoke",function(o,i,a){function s(){return new t(function(l,c){r(o,a,l,c)})}return n=n?n.then(s,s):s()},!0)}function Lp(e,t,r,n,o){return new As(Ru().w(e,t,r,n),o||Promise)}function sS(e,t,r,n,o){var i=Lp(e,t,r,n,o);return i.next().then(function(a){return a.done?a.value:i.next()})}function lS(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function o(){for(;r.length;)if((n=r.pop())in t)return o.value=n,o.done=!1,o;return o.done=!0,o}}function Dp(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(we(e)+" is not iterable")}function ze(){var e=Ru(),t=e.m(ze),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(a){var s=typeof a=="function"&&a.constructor;return!!s&&(s===r||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function i(a){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(d,f){return l(c.a,o[d],f)},delegateYield:function(d,f,g){return s.resultName=f,l(c.d,Dp(d),g)},finish:function(d){return l(c.f,d)}},l=function(d,f,g){c.p=s.prev,c.n=s.next;try{return d(f,g)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return a.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(ze=function(){return{wrap:function(l,c,u,d){return e.w(i(l),c,u,d&&d.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(l,c){return new Rp(l,c)},AsyncIterator:As,async:function(l,c,u,d,f){return(n(c)?Lp:sS)(i(l),c,u,d,f)},keys:lS,values:Dp}})()}function _p(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,o)}function ur(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(l){_p(i,n,o,a,s,"next",l)}function s(l){_p(i,n,o,a,s,"throw",l)}a(void 0)})}}var Gi=H({},d0),cS=Gi.version,Lu=Gi.render,uS=Gi.unmountComponentAtNode,Ns;try{var dS=Number((cS||"").split(".")[0]);dS>=18&&(Ns=Gi.createRoot)}catch{}function Vp(e){var t=Gi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&we(t)==="object"&&(t.usingClientEntryPoint=e)}var Os="__rc_react_root__";function fS(e,t){Vp(!0);var r=t[Os]||Ns(t);Vp(!1),r.render(e),t[Os]=r}function mS(e,t){Lu?.(e,t)}function pS(e,t){if(Ns){fS(e,t);return}mS(e,t)}function gS(e){return Du.apply(this,arguments)}function Du(){return Du=ur(ze().mark(function e(t){return ze().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Os])===null||o===void 0||o.unmount(),delete t[Os]}));case 1:case"end":return n.stop()}},e)})),Du.apply(this,arguments)}function hS(e){uS(e)}function vS(e){return _u.apply(this,arguments)}function _u(){return _u=ur(ze().mark(function e(t){return ze().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(Ns===void 0){n.next=2;break}return n.abrupt("return",gS(t));case 2:hS(t);case 3:case"end":return n.stop()}},e)})),_u.apply(this,arguments)}let bS=(e,t)=>{if(process.env.NODE_ENV!=="production"){const r=parseInt(A.version.split(".")[0],10),n=Object.keys(d0);process.env.NODE_ENV!=="production"&&Mo(r<19||n.includes("createRoot"),"compatible","antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.")}return pS(e,t),()=>vS(t)};function yS(e){return bS}const Vu=()=>({height:0,opacity:0}),Bp=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},CS=e=>({height:e?e.offsetHeight:0}),Bu=(e,t)=>t?.deadline===!0||t.propertyName==="height",xS=(e=Li)=>({motionName:`${e}-motion-collapse`,onAppearStart:Vu,onEnterStart:Vu,onAppearActive:Bp,onEnterActive:Bp,onLeaveStart:CS,onLeaveActive:Vu,onAppearEnd:Bu,onEnterEnd:Bu,onLeaveEnd:Bu,motionDeadline:500}),wS=(e,t,r)=>r!==void 0?r:`${e}-${t}`;function Ts(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}const zp=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},SS=Jx("Wave",e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}}),zu=`${Li}-wave-target`;function Gu(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function ES(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return Gu(t)?t:Gu(r)?r:Gu(n)?n:null}function Hu(e){return Number.isNaN(e)?0:e}const IS=e=>{const{className:t,target:r,component:n,registerUnmount:o}=e,i=A.useRef(null),a=A.useRef(null);A.useEffect(()=>{a.current=o()},[]);const[s,l]=A.useState(null),[c,u]=A.useState([]),[d,f]=A.useState(0),[g,h]=A.useState(0),[m,p]=A.useState(0),[b,y]=A.useState(0),[w,S]=A.useState(!1),v={left:d,top:g,width:m,height:b,borderRadius:c.map(O=>`${O}px`).join(" ")};s&&(v["--wave-color"]=s);function I(){const O=getComputedStyle(r);l(ES(r));const T=O.position==="static",{borderLeftWidth:P,borderTopWidth:M}=O;f(T?r.offsetLeft:Hu(-parseFloat(P))),h(T?r.offsetTop:Hu(-parseFloat(M))),p(r.offsetWidth),y(r.offsetHeight);const{borderTopLeftRadius:x,borderTopRightRadius:$,borderBottomLeftRadius:k,borderBottomRightRadius:F}=O;u([x,$,F,k].map(j=>Hu(parseFloat(j))))}if(A.useEffect(()=>{if(r){const O=tn(()=>{I(),S(!0)});let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(I),T.observe(r)),()=>{tn.cancel(O),T?.disconnect()}}},[]),!w)return null;const N=(n==="Checkbox"||n==="Radio")&&r?.classList.contains(zu);return A.createElement(mo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(O,T)=>{var P,M;if(T.deadline||T.propertyName==="opacity"){const x=(P=i.current)===null||P===void 0?void 0:P.parentElement;(M=a.current)===null||M===void 0||M.call(a).then(()=>{x?.remove()})}return!1}},({className:O},T)=>A.createElement("div",{ref:Ei(i,T),className:J(t,O,{"wave-quick":N}),style:v}))},AS=(e,t)=>{var r;const{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e?.insertBefore(o,e?.firstChild);const i=yS();let a=null;function s(){return a}a=i(A.createElement(IS,Object.assign({},t,{target:e,registerUnmount:s})),o)},NS=(e,t,r)=>{const{wave:n}=A.useContext(Zt),[,o,i]=Hn(),a=cr(c=>{const u=e.current;if(n?.disabled||!u)return;const d=u.querySelector(`.${zu}`)||u,{showEffect:f}=n||{};(f||AS)(d,{className:t,token:o,component:r,event:c,hashId:i})}),s=A.useRef(null);return c=>{tn.cancel(s.current),s.current=tn(()=>{a(c)})}},Wu=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:o}=E.useContext(Zt),i=E.useRef(null),a=o("wave"),[,s]=SS(a),l=NS(i,J(a,s),n);if(E.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==1||r)return;const d=f=>{!zp(f.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(f)};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0)}},[r]),!E.isValidElement(t))return t??null;const c=Ii(t)?Ei(Ka(t),i):i;return zi(t,{ref:c})};process.env.NODE_ENV!=="production"&&(Wu.displayName="Wave");const OS=e=>{const t=E.useContext(Do);return E.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},Gp=A.createContext(null),TS=(e,t)=>{const r=A.useContext(Gp),n=A.useMemo(()=>{if(!r)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=r,s=o==="vertical"?"-vertical-":"-";return J(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r?.compactSize,compactDirection:r?.compactDirection,compactItemClassnames:n}},PS=e=>{const{children:t}=e;return A.createElement(Gp.Provider,{value:null},t)};var kS=function(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};const Hp=A.createContext(void 0),FS=e=>{const{getPrefixCls:t,direction:r}=A.useContext(Zt),{prefixCls:n,size:o,className:i}=e,a=kS(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=Hn(),c=A.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]);if(process.env.NODE_ENV!=="production"){const d=kr("Button.Group");d.deprecated(!1,"Button.Group","Space.Compact"),process.env.NODE_ENV!=="production"&&d(!o||["large","small","middle"].includes(o),"usage","Invalid prop `size`.")}const u=J(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},i,l);return A.createElement(Hp.Provider,{value:o},A.createElement("div",Object.assign({},a,{className:u})))},Wp=/^[\u4E00-\u9FA5]{2}$/,Uu=Wp.test.bind(Wp);function Up(e){return typeof e=="string"}function Ps(e){return e==="text"||e==="link"}function $S(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Up(e.type)&&Uu(e.props.children)?zi(e,{children:e.props.children.split("").join(r)}):Up(e)?Uu(e)?E.createElement("span",null,e.split("").join(r)):E.createElement("span",null,e):$p(e)?E.createElement("span",null,e):e}function MS(e,t){let r=!1;const n=[];return E.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(r&&a){const s=n.length-1,l=n[s];n[s]=`${l}${o}`}else n.push(o);r=a}),E.Children.map(n,o=>$S(o,t))}["default","primary","danger"].concat(ue(fo));const Xu=E.forwardRef((e,t)=>{const{className:r,style:n,children:o,prefixCls:i}=e,a=J(`${i}-icon`,r);return E.createElement("span",{ref:t,className:a,style:n},o)}),Xp=E.forwardRef((e,t)=>{const{prefixCls:r,className:n,style:o,iconClassName:i}=e,a=J(`${r}-loading-icon`,n);return E.createElement(Xu,{prefixCls:r,className:a,style:o,ref:t},E.createElement(Is,{className:i}))}),Yu=()=>({width:0,opacity:0,transform:"scale(0)"}),Ju=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),jS=e=>{const{prefixCls:t,loading:r,existIcon:n,className:o,style:i,mount:a}=e,s=!!r;return n?E.createElement(Xp,{prefixCls:t,className:o,style:i}):E.createElement(mo,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:Yu,onAppearActive:Ju,onEnterStart:Yu,onEnterActive:Ju,onLeaveStart:Ju,onLeaveActive:Yu},({className:l,style:c},u)=>{const d=Object.assign(Object.assign({},i),c);return E.createElement(Xp,{prefixCls:t,className:J(o,l),style:d,ref:u})})},Yp=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),RS=e=>{const{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},Yp(`${t}-primary`,o),Yp(`${t}-danger`,i)]}};var LS=["b"],DS=["v"],Zu=function(t){return Math.round(Number(t||0))},_S=function(t){if(t instanceof yt)return t;if(t&&we(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,o=vt(r,LS);return H(H({},o),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Cn=function(e){Gr(r,e);var t=Hr(r);function r(n){return Tt(this,r),t.call(this,_S(n))}return Pt(r,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=Zu(o.s*100),a=Zu(o.b*100),s=Zu(o.h),l=o.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,a=vt(o,DS);return H(H({},a),{},{b:i,a:this.a})}}]),r}(yt),VS="rc-color-picker",Ho=function(t){return t instanceof Cn?t:new Cn(t)},BS=Ho("#1677ff"),Jp=function(t){var r=t.offset,n=t.targetRef,o=t.containerRef,i=t.color,a=t.type,s=o.current.getBoundingClientRect(),l=s.width,c=s.height,u=n.current.getBoundingClientRect(),d=u.width,f=u.height,g=d/2,h=f/2,m=(r.x+g)/l,p=1-(r.y+h)/c,b=i.toHsb(),y=m,w=(r.x+g)/l*360;if(a)switch(a){case"hue":return Ho(H(H({},b),{},{h:w<=0?0:w}));case"alpha":return Ho(H(H({},b),{},{a:y<=0?0:y}))}return Ho({h:b.h,s:m<=0?0:m,b:p>=1?1:p,a:b.a})},Zp=function(t,r){var n=t.toHsb();switch(r){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:n.s*100,y:(1-n.b)*100}}},zS=function(t){var r=t.color,n=t.prefixCls,o=t.className,i=t.style,a=t.onClick,s="".concat(n,"-color-block");return E.createElement("div",{className:J(s,o),style:i,onClick:a},E.createElement("div",{className:"".concat(s,"-inner"),style:{background:r}}))};function GS(e){var t="touches"in e?e.touches[0]:e,r=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,n=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-r,pageY:t.pageY-n}}function qp(e){var t=e.targetRef,r=e.containerRef,n=e.direction,o=e.onDragChange,i=e.onDragChangeComplete,a=e.calculate,s=e.color,l=e.disabledDrag,c=E.useState({x:0,y:0}),u=ie(c,2),d=u[0],f=u[1],g=E.useRef(null),h=E.useRef(null);E.useEffect(function(){f(a())},[s]),E.useEffect(function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",h.current),g.current=null,h.current=null}},[]);var m=function(S){var v=GS(S),I=v.pageX,N=v.pageY,O=r.current.getBoundingClientRect(),T=O.x,P=O.y,M=O.width,x=O.height,$=t.current.getBoundingClientRect(),k=$.width,F=$.height,j=k/2,z=F/2,W=Math.max(0,Math.min(I-T,M))-j,V=Math.max(0,Math.min(N-P,x))-z,_={x:W,y:n==="x"?d.y:V};if(k===0&&F===0||k!==F)return!1;o?.(_)},p=function(S){S.preventDefault(),m(S)},b=function(S){S.preventDefault(),document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",h.current),g.current=null,h.current=null,i?.()},y=function(S){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),!l&&(m(S),document.addEventListener("mousemove",p),document.addEventListener("mouseup",b),document.addEventListener("touchmove",p),document.addEventListener("touchend",b),g.current=p,h.current=b)};return[d,y]}var Qp=function(t){var r=t.size,n=r===void 0?"default":r,o=t.color,i=t.prefixCls;return E.createElement("div",{className:J("".concat(i,"-handler"),X({},"".concat(i,"-handler-sm"),n==="small")),style:{backgroundColor:o}})},Kp=function(t){var r=t.children,n=t.style,o=t.prefixCls;return E.createElement("div",{className:"".concat(o,"-palette"),style:H({position:"relative"},n)},r)},eg=E.forwardRef(function(e,t){var r=e.children,n=e.x,o=e.y;return E.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(n,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},r)}),HS=function(t){var r=t.color,n=t.onChange,o=t.prefixCls,i=t.onChangeComplete,a=t.disabled,s=E.useRef(),l=E.useRef(),c=E.useRef(r),u=cr(function(m){var p=Jp({offset:m,targetRef:l,containerRef:s,color:r});c.current=p,n(p)}),d=qp({color:r,containerRef:s,targetRef:l,calculate:function(){return Zp(r)},onDragChange:u,onDragChangeComplete:function(){return i?.(c.current)},disabledDrag:a}),f=ie(d,2),g=f[0],h=f[1];return E.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:h,onTouchStart:h},E.createElement(Kp,{prefixCls:o},E.createElement(eg,{x:g.x,y:g.y,ref:l},E.createElement(Qp,{color:r.toRgbString(),prefixCls:o})),E.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(r.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},WS=function(t,r){var n=ys(t,{value:r}),o=ie(n,2),i=o[0],a=o[1],s=E.useMemo(function(){return Ho(i)},[i]);return[s,a]},US=function(t){var r=t.colors,n=t.children,o=t.direction,i=o===void 0?"to right":o,a=t.type,s=t.prefixCls,l=E.useMemo(function(){return r.map(function(c,u){var d=Ho(c);return a==="alpha"&&u===r.length-1&&(d=new Cn(d.setA(1))),d.toRgbString()}).join(",")},[r,a]);return E.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(l,")")}},n)},XS=function(t){var r=t.prefixCls,n=t.colors,o=t.disabled,i=t.onChange,a=t.onChangeComplete,s=t.color,l=t.type,c=E.useRef(),u=E.useRef(),d=E.useRef(s),f=function(v){return l==="hue"?v.getHue():v.a*100},g=cr(function(S){var v=Jp({offset:S,targetRef:u,containerRef:c,color:s,type:l});d.current=v,i(f(v))}),h=qp({color:s,targetRef:u,containerRef:c,calculate:function(){return Zp(s,l)},onDragChange:g,onDragChangeComplete:function(){a(f(d.current))},direction:"x",disabledDrag:o}),m=ie(h,2),p=m[0],b=m[1],y=E.useMemo(function(){if(l==="hue"){var S=s.toHsb();S.s=1,S.b=1,S.a=1;var v=new Cn(S);return v}return s},[s,l]),w=E.useMemo(function(){return n.map(function(S){return"".concat(S.color," ").concat(S.percent,"%")})},[n]);return E.createElement("div",{ref:c,className:J("".concat(r,"-slider"),"".concat(r,"-slider-").concat(l)),onMouseDown:b,onTouchStart:b},E.createElement(Kp,{prefixCls:r},E.createElement(eg,{x:p.x,y:p.y,ref:u},E.createElement(Qp,{size:"small",color:y.toHexString(),prefixCls:r})),E.createElement(US,{colors:w,type:l,prefixCls:r})))};function YS(e){return A.useMemo(function(){var t=e||{},r=t.slider;return[r||XS]},[e])}var JS=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],ZS=E.forwardRef(function(e,t){var r=e.value,n=e.defaultValue,o=e.prefixCls,i=o===void 0?VS:o,a=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,f=d===void 0?!1:d,g=e.disabled,h=g===void 0?!1:g,m=e.components,p=YS(m),b=ie(p,1),y=b[0],w=WS(n||BS,r),S=ie(w,2),v=S[0],I=S[1],N=E.useMemo(function(){return v.setA(1).toRgbString()},[v]),O=function(V,_){r||I(V),a?.(V,_)},T=function(V){return new Cn(v.setHue(V))},P=function(V){return new Cn(v.setA(V/100))},M=function(V){O(T(V),{type:"hue",value:V})},x=function(V){O(P(V),{type:"alpha",value:V})},$=function(V){s&&s(T(V))},k=function(V){s&&s(P(V))},F=J("".concat(i,"-panel"),l,X({},"".concat(i,"-panel-disabled"),h)),j={prefixCls:i,disabled:h,color:v},z=E.createElement(E.Fragment,null,E.createElement(HS,le({onChange:O},j,{onChangeComplete:s})),E.createElement("div",{className:"".concat(i,"-slider-container")},E.createElement("div",{className:J("".concat(i,"-slider-group"),X({},"".concat(i,"-slider-group-disabled-alpha"),f))},E.createElement(y,le({},j,{type:"hue",colors:JS,min:0,max:359,value:v.getHue(),onChange:M,onChangeComplete:$})),!f&&E.createElement(y,le({},j,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:N}],min:0,max:100,value:v.a*100,onChange:x,onChangeComplete:k}))),E.createElement(zS,{color:v.toRgbString(),prefixCls:i})));return E.createElement("div",{className:F,style:c,ref:t},typeof u=="function"?u(z):z)});process.env.NODE_ENV!=="production"&&(ZS.displayName="ColorPicker");const qS=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",QS=(e,t)=>e?qS(e,t):"";let qu=function(){function e(t){Tt(this,e);var r;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)===null||r===void 0?void 0:r.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:o,percent:i})=>({color:new e(o),percent:i})),this.metaColor=new Cn(this.colors[0].color.metaColor)):this.metaColor=new Cn(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Pt(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return QS(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:r}=this;return r?`linear-gradient(90deg, ${r.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((n,o)=>{const i=r.colors[o];return n.percent===i.percent&&n.color.equals(i.color)}):this.toHexString()===r.toHexString()}}])}();const KS=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
182
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Zw="".concat(Yw," ").concat(Jw).split(/[\s\n]+/),qw="aria-",Qw="data-";function Fp(e,t){return e.indexOf(t)===0}function Kw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=H({},t);var n={};return Object.keys(e).forEach(function(o){(r.aria&&(o==="role"||Fp(o,qw))||r.data&&Fp(o,Qw)||r.attr&&Zw.includes(o))&&(n[o]=e[o])}),n}function $p(e){return e&&E.isValidElement(e)&&e.type===E.Fragment}const eS=(e,t,r)=>E.isValidElement(e)?E.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function zi(e,t){return eS(e,e,t)}const Mp=e=>{const[,,,,t]=Hn();return t?`${e}-css-var`:""};var tS={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},rS=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:tS}))},As=A.forwardRef(rS);process.env.NODE_ENV!=="production"&&(As.displayName="LoadingOutlined");const Ru=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ru.displayName="zIndexContext");const yn=100,nS=yn*10+yn,jp={Modal:yn,Drawer:yn,Popover:yn,Popconfirm:yn,Tooltip:yn,Tour:yn,FloatButton:yn},oS={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function iS(e){return e in jp}const aS=(e,t)=>{const[,r]=Hn(),n=E.useContext(Ru),o=iS(e);let i;if(t!==void 0)i=[t,t];else{let a=n??0;o?a+=(n?0:r.zIndexPopupBase)+jp[e]:a+=oS[e],i=[n===void 0?t:a,a]}if(process.env.NODE_ENV!=="production"){const a=kr(e),s=r.zIndexPopupBase+nS,l=i[0]||0;process.env.NODE_ENV!=="production"&&a(t!==void 0||l<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return i};function Rp(e,t){this.v=e,this.k=t}function nr(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}nr=function(a,s,l,c){function u(d,f){nr(a,d,function(g){return this._invoke(d,f,g)})}s?o?o(a,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):a[s]=l:(u("next",0),u("throw",1),u("return",2))},nr(e,t,r,n)}function Lu(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(g,h,m,p){var b=h&&h.prototype instanceof s?h:s,y=Object.create(b.prototype);return nr(y,"_invoke",function(w,S,v){var I,N,O,T=0,P=v||[],M=!1,x={p:0,n:0,v:e,a:$,f:$.bind(e,4),d:function(F,j){return I=F,N=0,O=e,x.n=j,a}};function $(k,F){for(N=k,O=F,t=0;!M&&T&&!j&&t<P.length;t++){var j,G=P[t],W=x.p,V=G[2];k>3?(j=V===F)&&(O=G[(N=G[4])?5:(N=3,3)],G[4]=G[5]=e):G[0]<=W&&((j=k<2&&W<G[1])?(N=0,x.v=F,x.n=G[1]):W<V&&(j=k<3||G[0]>F||F>V)&&(G[4]=k,G[5]=F,x.n=V,N=0))}if(j||k>1)return a;throw M=!0,F}return function(k,F,j){if(T>1)throw TypeError("Generator is already running");for(M&&F===1&&$(F,j),N=F,O=j;(t=N<2?e:O)||!M;){I||(N?N<3?(N>1&&(x.n=-1),$(N,O)):x.n=O:x.v=O);try{if(T=2,I){if(N||(k="next"),t=I[k]){if(!(t=t.call(I,O)))throw TypeError("iterator result is not an object");if(!t.done)return t;O=t.value,N<2&&(N=0)}else N===1&&(t=I.return)&&t.call(I),N<2&&(O=TypeError("The iterator does not provide a '"+k+"' method"),N=1);I=e}else if((t=(M=x.n<0)?O:w.call(S,x))!==a)break}catch(G){I=e,N=1,O=G}finally{T=1}}return{value:t,done:M}}}(g,m,p),!0),y}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(nr(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,c):(g.__proto__=c,nr(g,o,"GeneratorFunction")),g.prototype=Object.create(d),g}return l.prototype=c,nr(d,"constructor",c),nr(c,"constructor",l),l.displayName="GeneratorFunction",nr(c,o,"GeneratorFunction"),nr(d),nr(d,o,"Generator"),nr(d,n,function(){return this}),nr(d,"toString",function(){return"[object Generator]"}),(Lu=function(){return{w:i,m:f}})()}function Ns(e,t){function r(o,i,a,s){try{var l=e[o](i),c=l.value;return c instanceof Rp?t.resolve(c.v).then(function(u){r("next",u,a,s)},function(u){r("throw",u,a,s)}):t.resolve(c).then(function(u){l.value=u,a(l)},function(u){return r("throw",u,a,s)})}catch(u){s(u)}}var n;this.next||(nr(Ns.prototype),nr(Ns.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),nr(this,"_invoke",function(o,i,a){function s(){return new t(function(l,c){r(o,a,l,c)})}return n=n?n.then(s,s):s()},!0)}function Lp(e,t,r,n,o){return new Ns(Lu().w(e,t,r,n),o||Promise)}function sS(e,t,r,n,o){var i=Lp(e,t,r,n,o);return i.next().then(function(a){return a.done?a.value:i.next()})}function lS(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function o(){for(;r.length;)if((n=r.pop())in t)return o.value=n,o.done=!1,o;return o.done=!0,o}}function Dp(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(we(e)+" is not iterable")}function ze(){var e=Lu(),t=e.m(ze),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(a){var s=typeof a=="function"&&a.constructor;return!!s&&(s===r||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function i(a){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(d,f){return l(c.a,o[d],f)},delegateYield:function(d,f,g){return s.resultName=f,l(c.d,Dp(d),g)},finish:function(d){return l(c.f,d)}},l=function(d,f,g){c.p=s.prev,c.n=s.next;try{return d(f,g)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return a.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(ze=function(){return{wrap:function(l,c,u,d){return e.w(i(l),c,u,d&&d.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(l,c){return new Rp(l,c)},AsyncIterator:Ns,async:function(l,c,u,d,f){return(n(c)?Lp:sS)(i(l),c,u,d,f)},keys:lS,values:Dp}})()}function _p(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,o)}function ur(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(l){_p(i,n,o,a,s,"next",l)}function s(l){_p(i,n,o,a,s,"throw",l)}a(void 0)})}}var Gi=H({},d0),cS=Gi.version,Du=Gi.render,uS=Gi.unmountComponentAtNode,Os;try{var dS=Number((cS||"").split(".")[0]);dS>=18&&(Os=Gi.createRoot)}catch{}function Vp(e){var t=Gi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&we(t)==="object"&&(t.usingClientEntryPoint=e)}var Ts="__rc_react_root__";function fS(e,t){Vp(!0);var r=t[Ts]||Os(t);Vp(!1),r.render(e),t[Ts]=r}function mS(e,t){Du?.(e,t)}function pS(e,t){if(Os){fS(e,t);return}mS(e,t)}function gS(e){return _u.apply(this,arguments)}function _u(){return _u=ur(ze().mark(function e(t){return ze().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Ts])===null||o===void 0||o.unmount(),delete t[Ts]}));case 1:case"end":return n.stop()}},e)})),_u.apply(this,arguments)}function hS(e){uS(e)}function vS(e){return Vu.apply(this,arguments)}function Vu(){return Vu=ur(ze().mark(function e(t){return ze().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(Os===void 0){n.next=2;break}return n.abrupt("return",gS(t));case 2:hS(t);case 3:case"end":return n.stop()}},e)})),Vu.apply(this,arguments)}let bS=(e,t)=>{if(process.env.NODE_ENV!=="production"){const r=parseInt(A.version.split(".")[0],10),n=Object.keys(d0);process.env.NODE_ENV!=="production"&&Mo(r<19||n.includes("createRoot"),"compatible","antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.")}return pS(e,t),()=>vS(t)};function yS(e){return bS}const Bu=()=>({height:0,opacity:0}),Bp=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},CS=e=>({height:e?e.offsetHeight:0}),zu=(e,t)=>t?.deadline===!0||t.propertyName==="height",xS=(e=Li)=>({motionName:`${e}-motion-collapse`,onAppearStart:Bu,onEnterStart:Bu,onAppearActive:Bp,onEnterActive:Bp,onLeaveStart:CS,onLeaveActive:Bu,onAppearEnd:zu,onEnterEnd:zu,onLeaveEnd:zu,motionDeadline:500}),wS=(e,t,r)=>r!==void 0?r:`${e}-${t}`;function Ps(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}const zp=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},SS=Jx("Wave",e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}}),Gu=`${Li}-wave-target`;function Hu(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function ES(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return Hu(t)?t:Hu(r)?r:Hu(n)?n:null}function Wu(e){return Number.isNaN(e)?0:e}const IS=e=>{const{className:t,target:r,component:n,registerUnmount:o}=e,i=A.useRef(null),a=A.useRef(null);A.useEffect(()=>{a.current=o()},[]);const[s,l]=A.useState(null),[c,u]=A.useState([]),[d,f]=A.useState(0),[g,h]=A.useState(0),[m,p]=A.useState(0),[b,y]=A.useState(0),[w,S]=A.useState(!1),v={left:d,top:g,width:m,height:b,borderRadius:c.map(O=>`${O}px`).join(" ")};s&&(v["--wave-color"]=s);function I(){const O=getComputedStyle(r);l(ES(r));const T=O.position==="static",{borderLeftWidth:P,borderTopWidth:M}=O;f(T?r.offsetLeft:Wu(-parseFloat(P))),h(T?r.offsetTop:Wu(-parseFloat(M))),p(r.offsetWidth),y(r.offsetHeight);const{borderTopLeftRadius:x,borderTopRightRadius:$,borderBottomLeftRadius:k,borderBottomRightRadius:F}=O;u([x,$,F,k].map(j=>Wu(parseFloat(j))))}if(A.useEffect(()=>{if(r){const O=tn(()=>{I(),S(!0)});let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(I),T.observe(r)),()=>{tn.cancel(O),T?.disconnect()}}},[]),!w)return null;const N=(n==="Checkbox"||n==="Radio")&&r?.classList.contains(Gu);return A.createElement(mo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(O,T)=>{var P,M;if(T.deadline||T.propertyName==="opacity"){const x=(P=i.current)===null||P===void 0?void 0:P.parentElement;(M=a.current)===null||M===void 0||M.call(a).then(()=>{x?.remove()})}return!1}},({className:O},T)=>A.createElement("div",{ref:Ei(i,T),className:J(t,O,{"wave-quick":N}),style:v}))},AS=(e,t)=>{var r;const{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e?.insertBefore(o,e?.firstChild);const i=yS();let a=null;function s(){return a}a=i(A.createElement(IS,Object.assign({},t,{target:e,registerUnmount:s})),o)},NS=(e,t,r)=>{const{wave:n}=A.useContext(Zt),[,o,i]=Hn(),a=cr(c=>{const u=e.current;if(n?.disabled||!u)return;const d=u.querySelector(`.${Gu}`)||u,{showEffect:f}=n||{};(f||AS)(d,{className:t,token:o,component:r,event:c,hashId:i})}),s=A.useRef(null);return c=>{tn.cancel(s.current),s.current=tn(()=>{a(c)})}},Uu=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:o}=E.useContext(Zt),i=E.useRef(null),a=o("wave"),[,s]=SS(a),l=NS(i,J(a,s),n);if(E.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==1||r)return;const d=f=>{!zp(f.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(f)};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0)}},[r]),!E.isValidElement(t))return t??null;const c=Ii(t)?Ei(es(t),i):i;return zi(t,{ref:c})};process.env.NODE_ENV!=="production"&&(Uu.displayName="Wave");const OS=e=>{const t=E.useContext(Do);return E.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},Gp=A.createContext(null),TS=(e,t)=>{const r=A.useContext(Gp),n=A.useMemo(()=>{if(!r)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=r,s=o==="vertical"?"-vertical-":"-";return J(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r?.compactSize,compactDirection:r?.compactDirection,compactItemClassnames:n}},PS=e=>{const{children:t}=e;return A.createElement(Gp.Provider,{value:null},t)};var kS=function(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};const Hp=A.createContext(void 0),FS=e=>{const{getPrefixCls:t,direction:r}=A.useContext(Zt),{prefixCls:n,size:o,className:i}=e,a=kS(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=Hn(),c=A.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]);if(process.env.NODE_ENV!=="production"){const d=kr("Button.Group");d.deprecated(!1,"Button.Group","Space.Compact"),process.env.NODE_ENV!=="production"&&d(!o||["large","small","middle"].includes(o),"usage","Invalid prop `size`.")}const u=J(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},i,l);return A.createElement(Hp.Provider,{value:o},A.createElement("div",Object.assign({},a,{className:u})))},Wp=/^[\u4E00-\u9FA5]{2}$/,Xu=Wp.test.bind(Wp);function Up(e){return typeof e=="string"}function ks(e){return e==="text"||e==="link"}function $S(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Up(e.type)&&Xu(e.props.children)?zi(e,{children:e.props.children.split("").join(r)}):Up(e)?Xu(e)?E.createElement("span",null,e.split("").join(r)):E.createElement("span",null,e):$p(e)?E.createElement("span",null,e):e}function MS(e,t){let r=!1;const n=[];return E.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(r&&a){const s=n.length-1,l=n[s];n[s]=`${l}${o}`}else n.push(o);r=a}),E.Children.map(n,o=>$S(o,t))}["default","primary","danger"].concat(ue(fo));const Yu=E.forwardRef((e,t)=>{const{className:r,style:n,children:o,prefixCls:i}=e,a=J(`${i}-icon`,r);return E.createElement("span",{ref:t,className:a,style:n},o)}),Xp=E.forwardRef((e,t)=>{const{prefixCls:r,className:n,style:o,iconClassName:i}=e,a=J(`${r}-loading-icon`,n);return E.createElement(Yu,{prefixCls:r,className:a,style:o,ref:t},E.createElement(As,{className:i}))}),Ju=()=>({width:0,opacity:0,transform:"scale(0)"}),Zu=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),jS=e=>{const{prefixCls:t,loading:r,existIcon:n,className:o,style:i,mount:a}=e,s=!!r;return n?E.createElement(Xp,{prefixCls:t,className:o,style:i}):E.createElement(mo,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:Ju,onAppearActive:Zu,onEnterStart:Ju,onEnterActive:Zu,onLeaveStart:Zu,onLeaveActive:Ju},({className:l,style:c},u)=>{const d=Object.assign(Object.assign({},i),c);return E.createElement(Xp,{prefixCls:t,className:J(o,l),style:d,ref:u})})},Yp=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),RS=e=>{const{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},Yp(`${t}-primary`,o),Yp(`${t}-danger`,i)]}};var LS=["b"],DS=["v"],qu=function(t){return Math.round(Number(t||0))},_S=function(t){if(t instanceof yt)return t;if(t&&we(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,o=vt(r,LS);return H(H({},o),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Cn=function(e){Gr(r,e);var t=Hr(r);function r(n){return Tt(this,r),t.call(this,_S(n))}return Pt(r,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=qu(o.s*100),a=qu(o.b*100),s=qu(o.h),l=o.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,a=vt(o,DS);return H(H({},a),{},{b:i,a:this.a})}}]),r}(yt),VS="rc-color-picker",Ho=function(t){return t instanceof Cn?t:new Cn(t)},BS=Ho("#1677ff"),Jp=function(t){var r=t.offset,n=t.targetRef,o=t.containerRef,i=t.color,a=t.type,s=o.current.getBoundingClientRect(),l=s.width,c=s.height,u=n.current.getBoundingClientRect(),d=u.width,f=u.height,g=d/2,h=f/2,m=(r.x+g)/l,p=1-(r.y+h)/c,b=i.toHsb(),y=m,w=(r.x+g)/l*360;if(a)switch(a){case"hue":return Ho(H(H({},b),{},{h:w<=0?0:w}));case"alpha":return Ho(H(H({},b),{},{a:y<=0?0:y}))}return Ho({h:b.h,s:m<=0?0:m,b:p>=1?1:p,a:b.a})},Zp=function(t,r){var n=t.toHsb();switch(r){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:n.s*100,y:(1-n.b)*100}}},zS=function(t){var r=t.color,n=t.prefixCls,o=t.className,i=t.style,a=t.onClick,s="".concat(n,"-color-block");return E.createElement("div",{className:J(s,o),style:i,onClick:a},E.createElement("div",{className:"".concat(s,"-inner"),style:{background:r}}))};function GS(e){var t="touches"in e?e.touches[0]:e,r=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,n=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-r,pageY:t.pageY-n}}function qp(e){var t=e.targetRef,r=e.containerRef,n=e.direction,o=e.onDragChange,i=e.onDragChangeComplete,a=e.calculate,s=e.color,l=e.disabledDrag,c=E.useState({x:0,y:0}),u=ie(c,2),d=u[0],f=u[1],g=E.useRef(null),h=E.useRef(null);E.useEffect(function(){f(a())},[s]),E.useEffect(function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",h.current),g.current=null,h.current=null}},[]);var m=function(S){var v=GS(S),I=v.pageX,N=v.pageY,O=r.current.getBoundingClientRect(),T=O.x,P=O.y,M=O.width,x=O.height,$=t.current.getBoundingClientRect(),k=$.width,F=$.height,j=k/2,G=F/2,W=Math.max(0,Math.min(I-T,M))-j,V=Math.max(0,Math.min(N-P,x))-G,_={x:W,y:n==="x"?d.y:V};if(k===0&&F===0||k!==F)return!1;o?.(_)},p=function(S){S.preventDefault(),m(S)},b=function(S){S.preventDefault(),document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",h.current),g.current=null,h.current=null,i?.()},y=function(S){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),!l&&(m(S),document.addEventListener("mousemove",p),document.addEventListener("mouseup",b),document.addEventListener("touchmove",p),document.addEventListener("touchend",b),g.current=p,h.current=b)};return[d,y]}var Qp=function(t){var r=t.size,n=r===void 0?"default":r,o=t.color,i=t.prefixCls;return E.createElement("div",{className:J("".concat(i,"-handler"),X({},"".concat(i,"-handler-sm"),n==="small")),style:{backgroundColor:o}})},Kp=function(t){var r=t.children,n=t.style,o=t.prefixCls;return E.createElement("div",{className:"".concat(o,"-palette"),style:H({position:"relative"},n)},r)},eg=E.forwardRef(function(e,t){var r=e.children,n=e.x,o=e.y;return E.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(n,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},r)}),HS=function(t){var r=t.color,n=t.onChange,o=t.prefixCls,i=t.onChangeComplete,a=t.disabled,s=E.useRef(),l=E.useRef(),c=E.useRef(r),u=cr(function(m){var p=Jp({offset:m,targetRef:l,containerRef:s,color:r});c.current=p,n(p)}),d=qp({color:r,containerRef:s,targetRef:l,calculate:function(){return Zp(r)},onDragChange:u,onDragChangeComplete:function(){return i?.(c.current)},disabledDrag:a}),f=ie(d,2),g=f[0],h=f[1];return E.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:h,onTouchStart:h},E.createElement(Kp,{prefixCls:o},E.createElement(eg,{x:g.x,y:g.y,ref:l},E.createElement(Qp,{color:r.toRgbString(),prefixCls:o})),E.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(r.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},WS=function(t,r){var n=Cs(t,{value:r}),o=ie(n,2),i=o[0],a=o[1],s=E.useMemo(function(){return Ho(i)},[i]);return[s,a]},US=function(t){var r=t.colors,n=t.children,o=t.direction,i=o===void 0?"to right":o,a=t.type,s=t.prefixCls,l=E.useMemo(function(){return r.map(function(c,u){var d=Ho(c);return a==="alpha"&&u===r.length-1&&(d=new Cn(d.setA(1))),d.toRgbString()}).join(",")},[r,a]);return E.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(l,")")}},n)},XS=function(t){var r=t.prefixCls,n=t.colors,o=t.disabled,i=t.onChange,a=t.onChangeComplete,s=t.color,l=t.type,c=E.useRef(),u=E.useRef(),d=E.useRef(s),f=function(v){return l==="hue"?v.getHue():v.a*100},g=cr(function(S){var v=Jp({offset:S,targetRef:u,containerRef:c,color:s,type:l});d.current=v,i(f(v))}),h=qp({color:s,targetRef:u,containerRef:c,calculate:function(){return Zp(s,l)},onDragChange:g,onDragChangeComplete:function(){a(f(d.current))},direction:"x",disabledDrag:o}),m=ie(h,2),p=m[0],b=m[1],y=E.useMemo(function(){if(l==="hue"){var S=s.toHsb();S.s=1,S.b=1,S.a=1;var v=new Cn(S);return v}return s},[s,l]),w=E.useMemo(function(){return n.map(function(S){return"".concat(S.color," ").concat(S.percent,"%")})},[n]);return E.createElement("div",{ref:c,className:J("".concat(r,"-slider"),"".concat(r,"-slider-").concat(l)),onMouseDown:b,onTouchStart:b},E.createElement(Kp,{prefixCls:r},E.createElement(eg,{x:p.x,y:p.y,ref:u},E.createElement(Qp,{size:"small",color:y.toHexString(),prefixCls:r})),E.createElement(US,{colors:w,type:l,prefixCls:r})))};function YS(e){return A.useMemo(function(){var t=e||{},r=t.slider;return[r||XS]},[e])}var JS=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],ZS=E.forwardRef(function(e,t){var r=e.value,n=e.defaultValue,o=e.prefixCls,i=o===void 0?VS:o,a=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,f=d===void 0?!1:d,g=e.disabled,h=g===void 0?!1:g,m=e.components,p=YS(m),b=ie(p,1),y=b[0],w=WS(n||BS,r),S=ie(w,2),v=S[0],I=S[1],N=E.useMemo(function(){return v.setA(1).toRgbString()},[v]),O=function(V,_){r||I(V),a?.(V,_)},T=function(V){return new Cn(v.setHue(V))},P=function(V){return new Cn(v.setA(V/100))},M=function(V){O(T(V),{type:"hue",value:V})},x=function(V){O(P(V),{type:"alpha",value:V})},$=function(V){s&&s(T(V))},k=function(V){s&&s(P(V))},F=J("".concat(i,"-panel"),l,X({},"".concat(i,"-panel-disabled"),h)),j={prefixCls:i,disabled:h,color:v},G=E.createElement(E.Fragment,null,E.createElement(HS,le({onChange:O},j,{onChangeComplete:s})),E.createElement("div",{className:"".concat(i,"-slider-container")},E.createElement("div",{className:J("".concat(i,"-slider-group"),X({},"".concat(i,"-slider-group-disabled-alpha"),f))},E.createElement(y,le({},j,{type:"hue",colors:JS,min:0,max:359,value:v.getHue(),onChange:M,onChangeComplete:$})),!f&&E.createElement(y,le({},j,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:N}],min:0,max:100,value:v.a*100,onChange:x,onChangeComplete:k}))),E.createElement(zS,{color:v.toRgbString(),prefixCls:i})));return E.createElement("div",{className:F,style:c,ref:t},typeof u=="function"?u(G):G)});process.env.NODE_ENV!=="production"&&(ZS.displayName="ColorPicker");const qS=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",QS=(e,t)=>e?qS(e,t):"";let Qu=function(){function e(t){Tt(this,e);var r;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)===null||r===void 0?void 0:r.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:o,percent:i})=>({color:new e(o),percent:i})),this.metaColor=new Cn(this.colors[0].color.metaColor)):this.metaColor=new Cn(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Pt(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return QS(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:r}=this;return r?`linear-gradient(90deg, ${r.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((n,o)=>{const i=r.colors[o];return n.percent===i.percent&&n.color.equals(i.color)}):this.toHexString()===r.toHexString()}}])}();const KS=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
183
183
|
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
184
184
|
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),eE=e=>({animationDuration:e,animationFillMode:"both"}),tE=e=>({animationDuration:e,animationFillMode:"both"}),tg=(e,t,r,n,o=!1)=>{const i=o?"&":"";return{[`
|
|
185
185
|
${i}${e}-enter,
|
|
@@ -193,7 +193,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
193
193
|
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${n}-leave`]:{animationTimingFunction:"linear"}}]},iE=new Qt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),aE=new Qt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),rg=new Qt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ng=new Qt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),sE=new Qt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),lE=new Qt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),cE=new Qt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),uE=new Qt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),dE=new Qt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),fE=new Qt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),mE=new Qt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),pE=new Qt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),gE={zoom:{inKeyframes:iE,outKeyframes:aE},"zoom-big":{inKeyframes:rg,outKeyframes:ng},"zoom-big-fast":{inKeyframes:rg,outKeyframes:ng},"zoom-left":{inKeyframes:cE,outKeyframes:uE},"zoom-right":{inKeyframes:dE,outKeyframes:fE},"zoom-up":{inKeyframes:sE,outKeyframes:lE},"zoom-down":{inKeyframes:mE,outKeyframes:pE}},hE=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=gE[t];return[tg(n,o,i,e.motionDurationFast),{[`
|
|
194
194
|
${n}-enter,
|
|
195
195
|
${n}-appear
|
|
196
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},vE=e=>e instanceof qu?e:new qu(e),bE=(e,t)=>{const{r,g:n,b:o,a:i}=e.toRgb(),a=new Cn(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:r*.299+n*.587+o*.114>192},og=e=>{const{paddingInline:t,onlyIconSize:r}=e;return Yr(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},ig=e=>{var t,r,n,o,i,a;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,c=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,u=(o=e.contentLineHeight)!==null&&o!==void 0?o:bs(s),d=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:bs(l),f=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:bs(c),g=bE(new qu(e.colorBgSolid),"#fff")?"#000":"#fff",h=fo.reduce((m,p)=>Object.assign(Object.assign({},m),{[`${p}ShadowColor`]:`0 ${st(e.controlOutlineWidth)} 0 ${_i(e[`${p}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:g,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)})},yE=e=>{const{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,iconGap:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${st(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:tp(),"> a":{color:"currentColor"},"&:not(:disabled)":Yx(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},ag=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),CE=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),xE=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),wE=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),ks=(e,t,r,n,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},ag(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),SE=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},wE(e))}),EE=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Fs=(e,t,r,n)=>{const i=n&&["link","text"].includes(n)?EE:SE;return Object.assign(Object.assign({},i(e)),ag(e.componentCls,t,r))},$s=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},Fs(e,n,o))}),Ms=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},Fs(e,n,o))}),js=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Rs=(e,t,r,n)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Fs(e,r,n))}),on=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},Fs(e,n,o,r))}),IE=e=>{const{componentCls:t}=e;return fo.reduce((r,n)=>{const o=e[`${n}6`],i=e[`${n}1`],a=e[`${n}5`],s=e[`${n}2`],l=e[`${n}3`],c=e[`${n}7`];return Object.assign(Object.assign({},r),{[`&${t}-color-${n}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${n}ShadowColor`]},$s(e,e.colorTextLightSolid,o,{background:a},{background:c})),Ms(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),js(e)),Rs(e,i,{color:o,background:s},{color:o,background:l})),on(e,o,"link",{color:a},{color:c})),on(e,o,"text",{color:a,background:i},{color:c,background:l}))})},{})},AE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},$s(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),js(e)),Rs(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),ks(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),on(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),NE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Ms(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),js(e)),Rs(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),on(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),on(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),ks(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),OE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},$s(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Ms(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),js(e)),Rs(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),on(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),on(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),ks(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),TE=e=>Object.assign(Object.assign({},on(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),ks(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),PE=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:AE(e),[`${t}-color-primary`]:NE(e),[`${t}-color-dangerous`]:OE(e),[`${t}-color-link`]:TE(e)},IE(e))},kE=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Ms(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),on(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),$s(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),on(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Qu=(e,t="")=>{const{componentCls:r,controlHeight:n,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:n,padding:`${st(l)} ${st(a)}`,borderRadius:i,[`&${r}-icon-only`]:{width:n,[s]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:CE(e)},{[`${r}${r}-round${t}`]:xE(e)}]},FE=e=>{const t=Yr(e,{fontSize:e.contentFontSize});return Qu(t,e.componentCls)},$E=e=>{const t=Yr(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Qu(t,`${e.componentCls}-sm`)},ME=e=>{const t=Yr(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Qu(t,`${e.componentCls}-lg`)},jE=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},RE=Vi("Button",e=>{const t=og(e);return[yE(t),FE(t),$E(t),ME(t),jE(t),PE(t),kE(t),RS(t)]},ig,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function LE(e,t,r,n){const{focusElCls:o,focus:i,borderElCls:a}=r,s=a?"> *":"",l=["hover",i?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[l]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function DE(e,t,r){const{borderElCls:n}=r,o=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function _E(e,t={focus:!0}){const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},LE(e,n,t,r)),DE(r,n,t))}}function VE(e,t,r){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function BE(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function zE(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},VE(e,t,e.componentCls)),BE(e.componentCls,t))}}const GE=e=>{const{componentCls:t,colorPrimaryHover:r,lineWidth:n,calc:o}=e,i=o(n).mul(-1).equal(),a=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?i:0,insetInlineStart:s?0:i,backgroundColor:r,content:'""',width:s?"100%":n,height:s?n:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},HE=Zx(["Button","compact"],e=>{const t=og(e);return[_E(t),zE(t),GE(t)]},ig);var WE=function(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 UE(e){if(typeof e=="object"&&e){let t=e?.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const XE={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Hi=E.forwardRef((e,t)=>{var r,n;const{loading:o=!1,prefixCls:i,color:a,variant:s,type:l,danger:c=!1,shape:u,size:d,styles:f,disabled:g,className:h,rootClassName:m,children:p,icon:b,iconPosition:y="start",ghost:w=!1,block:S=!1,htmlType:v="button",classNames:I,style:N={},autoInsertSpace:O,autoFocus:T}=e,P=WE(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),M=l||"default",{button:x}=E.useContext(Zt),$=u||x?.shape||"default",[k,F]=E.useMemo(()=>{if(a&&s)return[a,s];if(l||c){const de=XE[M]||[];return c?["danger",de[1]]:de}return x?.color&&x?.variant?[x.color,x.variant]:["default","outlined"]},[l,a,s,c,x?.variant,x?.color]),z=k==="danger"?"dangerous":k,{getPrefixCls:W,direction:V,autoInsertSpace:_,className:D,style:B,classNames:L,styles:G}=xu("button"),Q=(r=O??_)!==null&&r!==void 0?r:!0,q=W("btn",i),[U,K,Z]=RE(q),se=E.useContext(Lo),pe=g??se,Y=E.useContext(Hp),Ce=E.useMemo(()=>UE(o),[o]),[ne,Ie]=E.useState(Ce.loading),[ve,Ye]=E.useState(!1),it=E.useRef(null),Le=Qa(t,it),St=E.Children.count(p)===1&&!b&&!Ps(F),Fe=E.useRef(!0);E.useEffect(()=>(Fe.current=!1,()=>{Fe.current=!0}),[]),rr(()=>{let de=null;Ce.delay>0?de=setTimeout(()=>{de=null,Ie(!0)},Ce.delay):Ie(Ce.loading);function Ae(){de&&(clearTimeout(de),de=null)}return Ae},[Ce.delay,Ce.loading]),E.useEffect(()=>{if(!it.current||!Q)return;const de=it.current.textContent||"";St&&Uu(de)?ve||Ye(!0):ve&&Ye(!1)}),E.useEffect(()=>{T&&it.current&&it.current.focus()},[]);const Me=E.useCallback(de=>{var Ae;if(ne||pe){de.preventDefault();return}(Ae=e.onClick)===null||Ae===void 0||Ae.call(e,("href"in e,de))},[e.onClick,ne,pe]);if(process.env.NODE_ENV!=="production"){const de=kr("Button");process.env.NODE_ENV!=="production"&&de(!(typeof b=="string"&&b.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${b}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&de(!(w&&Ps(F)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:bt,compactItemClassnames:Te}=TS(q,V),Mt={large:"lg",small:"sm",middle:void 0},at=OS(de=>{var Ae,Ne;return(Ne=(Ae=d??bt)!==null&&Ae!==void 0?Ae:Y)!==null&&Ne!==void 0?Ne:de}),ir=at&&(n=Mt[at])!==null&&n!==void 0?n:"",Xt=ne?"loading":b,jt=Ts(P,["navigate"]),fr=J(q,K,Z,{[`${q}-${$}`]:$!=="default"&&$,[`${q}-${M}`]:M,[`${q}-dangerous`]:c,[`${q}-color-${z}`]:z,[`${q}-variant-${F}`]:F,[`${q}-${ir}`]:ir,[`${q}-icon-only`]:!p&&p!==0&&!!Xt,[`${q}-background-ghost`]:w&&!Ps(F),[`${q}-loading`]:ne,[`${q}-two-chinese-chars`]:ve&&Q&&!ne,[`${q}-block`]:S,[`${q}-rtl`]:V==="rtl",[`${q}-icon-end`]:y==="end"},Te,h,m,D),_e=Object.assign(Object.assign({},B),N),De=J(I?.icon,L.icon),Rt=Object.assign(Object.assign({},f?.icon||{}),G.icon||{}),Lt=b&&!ne?E.createElement(Xu,{prefixCls:q,className:De,style:Rt},b):o&&typeof o=="object"&&o.icon?E.createElement(Xu,{prefixCls:q,className:De,style:Rt},o.icon):E.createElement(jS,{existIcon:!!b,prefixCls:q,loading:ne,mount:Fe.current}),Dt=p||p===0?MS(p,St&&Q):null;if(jt.href!==void 0)return U(E.createElement("a",Object.assign({},jt,{className:J(fr,{[`${q}-disabled`]:pe}),href:pe?void 0:jt.href,style:_e,onClick:Me,ref:Le,tabIndex:pe?-1:0}),Lt,Dt));let he=E.createElement("button",Object.assign({},P,{type:v,className:fr,style:_e,onClick:Me,disabled:pe,ref:Le}),Lt,Dt,Te&&E.createElement(HE,{prefixCls:q}));return Ps(F)||(he=E.createElement(Wu,{component:"Button",disabled:ne},he)),U(he)});Hi.Group=FS,Hi.__ANT_BUTTON=!0,process.env.NODE_ENV!=="production"&&(Hi.displayName="Button");var sg=A.createContext(null),lg=[];function YE(e,t){var r=A.useState(function(){if(!lr())return null;var h=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&h.setAttribute("data-debug",t),h}),n=ie(r,1),o=n[0],i=A.useRef(!1),a=A.useContext(sg),s=A.useState(lg),l=ie(s,2),c=l[0],u=l[1],d=a||(i.current?void 0:function(h){u(function(m){var p=[h].concat(ue(m));return p})});function f(){o.parentElement||document.body.appendChild(o),i.current=!0}function g(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),i.current=!1}return rr(function(){return e?a?a(f):f():g(),g},[e]),rr(function(){c.length&&(c.forEach(function(h){return h()}),u(lg))},[c]),[o,d]}function JE(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var o,i;if(e){var a=getComputedStyle(e);n.scrollbarColor=a.scrollbarColor,n.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";vn(`
|
|
196
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},vE=e=>e instanceof Qu?e:new Qu(e),bE=(e,t)=>{const{r,g:n,b:o,a:i}=e.toRgb(),a=new Cn(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:r*.299+n*.587+o*.114>192},og=e=>{const{paddingInline:t,onlyIconSize:r}=e;return Yr(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},ig=e=>{var t,r,n,o,i,a;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,c=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,u=(o=e.contentLineHeight)!==null&&o!==void 0?o:ys(s),d=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:ys(l),f=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:ys(c),g=bE(new Qu(e.colorBgSolid),"#fff")?"#000":"#fff",h=fo.reduce((m,p)=>Object.assign(Object.assign({},m),{[`${p}ShadowColor`]:`0 ${st(e.controlOutlineWidth)} 0 ${_i(e[`${p}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:g,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)})},yE=e=>{const{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,iconGap:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${st(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:tp(),"> a":{color:"currentColor"},"&:not(:disabled)":Yx(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},ag=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),CE=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),xE=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),wE=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Fs=(e,t,r,n,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},ag(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),SE=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},wE(e))}),EE=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),$s=(e,t,r,n)=>{const i=n&&["link","text"].includes(n)?EE:SE;return Object.assign(Object.assign({},i(e)),ag(e.componentCls,t,r))},Ms=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},$s(e,n,o))}),js=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},$s(e,n,o))}),Rs=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Ls=(e,t,r,n)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},$s(e,r,n))}),on=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},$s(e,n,o,r))}),IE=e=>{const{componentCls:t}=e;return fo.reduce((r,n)=>{const o=e[`${n}6`],i=e[`${n}1`],a=e[`${n}5`],s=e[`${n}2`],l=e[`${n}3`],c=e[`${n}7`];return Object.assign(Object.assign({},r),{[`&${t}-color-${n}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${n}ShadowColor`]},Ms(e,e.colorTextLightSolid,o,{background:a},{background:c})),js(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),Rs(e)),Ls(e,i,{color:o,background:s},{color:o,background:l})),on(e,o,"link",{color:a},{color:c})),on(e,o,"text",{color:a,background:i},{color:c,background:l}))})},{})},AE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Ms(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Rs(e)),Ls(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),Fs(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),on(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),NE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},js(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Rs(e)),Ls(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),on(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),on(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Fs(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),OE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Ms(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),js(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Rs(e)),Ls(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),on(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),on(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Fs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),TE=e=>Object.assign(Object.assign({},on(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Fs(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),PE=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:AE(e),[`${t}-color-primary`]:NE(e),[`${t}-color-dangerous`]:OE(e),[`${t}-color-link`]:TE(e)},IE(e))},kE=e=>Object.assign(Object.assign(Object.assign(Object.assign({},js(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),on(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Ms(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),on(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Ku=(e,t="")=>{const{componentCls:r,controlHeight:n,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:n,padding:`${st(l)} ${st(a)}`,borderRadius:i,[`&${r}-icon-only`]:{width:n,[s]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:CE(e)},{[`${r}${r}-round${t}`]:xE(e)}]},FE=e=>{const t=Yr(e,{fontSize:e.contentFontSize});return Ku(t,e.componentCls)},$E=e=>{const t=Yr(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Ku(t,`${e.componentCls}-sm`)},ME=e=>{const t=Yr(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Ku(t,`${e.componentCls}-lg`)},jE=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},RE=Vi("Button",e=>{const t=og(e);return[yE(t),FE(t),$E(t),ME(t),jE(t),PE(t),kE(t),RS(t)]},ig,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function LE(e,t,r,n){const{focusElCls:o,focus:i,borderElCls:a}=r,s=a?"> *":"",l=["hover",i?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[l]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function DE(e,t,r){const{borderElCls:n}=r,o=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function _E(e,t={focus:!0}){const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},LE(e,n,t,r)),DE(r,n,t))}}function VE(e,t,r){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function BE(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function zE(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},VE(e,t,e.componentCls)),BE(e.componentCls,t))}}const GE=e=>{const{componentCls:t,colorPrimaryHover:r,lineWidth:n,calc:o}=e,i=o(n).mul(-1).equal(),a=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?i:0,insetInlineStart:s?0:i,backgroundColor:r,content:'""',width:s?"100%":n,height:s?n:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},HE=Zx(["Button","compact"],e=>{const t=og(e);return[_E(t),zE(t),GE(t)]},ig);var WE=function(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 UE(e){if(typeof e=="object"&&e){let t=e?.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const XE={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Hi=E.forwardRef((e,t)=>{var r,n;const{loading:o=!1,prefixCls:i,color:a,variant:s,type:l,danger:c=!1,shape:u,size:d,styles:f,disabled:g,className:h,rootClassName:m,children:p,icon:b,iconPosition:y="start",ghost:w=!1,block:S=!1,htmlType:v="button",classNames:I,style:N={},autoInsertSpace:O,autoFocus:T}=e,P=WE(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),M=l||"default",{button:x}=E.useContext(Zt),$=u||x?.shape||"default",[k,F]=E.useMemo(()=>{if(a&&s)return[a,s];if(l||c){const de=XE[M]||[];return c?["danger",de[1]]:de}return x?.color&&x?.variant?[x.color,x.variant]:["default","outlined"]},[l,a,s,c,x?.variant,x?.color]),G=k==="danger"?"dangerous":k,{getPrefixCls:W,direction:V,autoInsertSpace:_,className:D,style:B,classNames:L,styles:z}=wu("button"),Q=(r=O??_)!==null&&r!==void 0?r:!0,q=W("btn",i),[U,K,Z]=RE(q),se=E.useContext(Lo),ge=g??se,Y=E.useContext(Hp),Ce=E.useMemo(()=>UE(o),[o]),[ne,Ie]=E.useState(Ce.loading),[ve,Ye]=E.useState(!1),it=E.useRef(null),Le=Ka(t,it),St=E.Children.count(p)===1&&!b&&!ks(F),Fe=E.useRef(!0);E.useEffect(()=>(Fe.current=!1,()=>{Fe.current=!0}),[]),rr(()=>{let de=null;Ce.delay>0?de=setTimeout(()=>{de=null,Ie(!0)},Ce.delay):Ie(Ce.loading);function Ae(){de&&(clearTimeout(de),de=null)}return Ae},[Ce.delay,Ce.loading]),E.useEffect(()=>{if(!it.current||!Q)return;const de=it.current.textContent||"";St&&Xu(de)?ve||Ye(!0):ve&&Ye(!1)}),E.useEffect(()=>{T&&it.current&&it.current.focus()},[]);const Me=E.useCallback(de=>{var Ae;if(ne||ge){de.preventDefault();return}(Ae=e.onClick)===null||Ae===void 0||Ae.call(e,("href"in e,de))},[e.onClick,ne,ge]);if(process.env.NODE_ENV!=="production"){const de=kr("Button");process.env.NODE_ENV!=="production"&&de(!(typeof b=="string"&&b.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${b}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&de(!(w&&ks(F)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:bt,compactItemClassnames:Te}=TS(q,V),Mt={large:"lg",small:"sm",middle:void 0},at=OS(de=>{var Ae,Ne;return(Ne=(Ae=d??bt)!==null&&Ae!==void 0?Ae:Y)!==null&&Ne!==void 0?Ne:de}),ir=at&&(n=Mt[at])!==null&&n!==void 0?n:"",Xt=ne?"loading":b,jt=Ps(P,["navigate"]),fr=J(q,K,Z,{[`${q}-${$}`]:$!=="default"&&$,[`${q}-${M}`]:M,[`${q}-dangerous`]:c,[`${q}-color-${G}`]:G,[`${q}-variant-${F}`]:F,[`${q}-${ir}`]:ir,[`${q}-icon-only`]:!p&&p!==0&&!!Xt,[`${q}-background-ghost`]:w&&!ks(F),[`${q}-loading`]:ne,[`${q}-two-chinese-chars`]:ve&&Q&&!ne,[`${q}-block`]:S,[`${q}-rtl`]:V==="rtl",[`${q}-icon-end`]:y==="end"},Te,h,m,D),_e=Object.assign(Object.assign({},B),N),De=J(I?.icon,L.icon),Rt=Object.assign(Object.assign({},f?.icon||{}),z.icon||{}),Lt=b&&!ne?E.createElement(Yu,{prefixCls:q,className:De,style:Rt},b):o&&typeof o=="object"&&o.icon?E.createElement(Yu,{prefixCls:q,className:De,style:Rt},o.icon):E.createElement(jS,{existIcon:!!b,prefixCls:q,loading:ne,mount:Fe.current}),Dt=p||p===0?MS(p,St&&Q):null;if(jt.href!==void 0)return U(E.createElement("a",Object.assign({},jt,{className:J(fr,{[`${q}-disabled`]:ge}),href:ge?void 0:jt.href,style:_e,onClick:Me,ref:Le,tabIndex:ge?-1:0}),Lt,Dt));let he=E.createElement("button",Object.assign({},P,{type:v,className:fr,style:_e,onClick:Me,disabled:ge,ref:Le}),Lt,Dt,Te&&E.createElement(HE,{prefixCls:q}));return ks(F)||(he=E.createElement(Uu,{component:"Button",disabled:ne},he)),U(he)});Hi.Group=FS,Hi.__ANT_BUTTON=!0,process.env.NODE_ENV!=="production"&&(Hi.displayName="Button");var sg=A.createContext(null),lg=[];function YE(e,t){var r=A.useState(function(){if(!lr())return null;var h=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&h.setAttribute("data-debug",t),h}),n=ie(r,1),o=n[0],i=A.useRef(!1),a=A.useContext(sg),s=A.useState(lg),l=ie(s,2),c=l[0],u=l[1],d=a||(i.current?void 0:function(h){u(function(m){var p=[h].concat(ue(m));return p})});function f(){o.parentElement||document.body.appendChild(o),i.current=!0}function g(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),i.current=!1}return rr(function(){return e?a?a(f):f():g(),g},[e]),rr(function(){c.length&&(c.forEach(function(h){return h()}),u(lg))},[c]),[o,d]}function JE(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var o,i;if(e){var a=getComputedStyle(e);n.scrollbarColor=a.scrollbarColor,n.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";vn(`
|
|
197
197
|
#`.concat(t,`::-webkit-scrollbar {
|
|
198
198
|
`).concat(u,`
|
|
199
199
|
`).concat(d,`
|
|
@@ -201,13 +201,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
201
201
|
html body {
|
|
202
202
|
overflow-y: hidden;
|
|
203
203
|
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
|
|
204
|
-
}`),o)}else Ti(o);return function(){Ti(o)}},[t,o])}var e5=!1;function t5(e){return e5}var ug=function(t){return t===!1?!1:!lr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Ku=A.forwardRef(function(e,t){var r=e.open,n=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,l=e.children,c=A.useState(r),u=ie(c,2),d=u[0],f=u[1],g=d||r;process.env.NODE_ENV!=="production"&&ht(lr()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),A.useEffect(function(){(s||r)&&f(r)},[r,s]);var h=A.useState(function(){return ug(o)}),m=ie(h,2),p=m[0],b=m[1];A.useEffect(function(){var x=ug(o);b(x??null)});var y=YE(g&&!p,i),w=ie(y,2),S=w[0],v=w[1],I=p??S;KE(n&&r&&lr()&&(I===S||I===document.body));var N=null;if(l&&Ii(l)&&t){var O=l;N=O.ref}var T=Qa(N,t);if(!g||!lr()||p===void 0)return null;var P=I===!1||t5(),M=l;return t&&(M=A.cloneElement(l,{ref:T})),A.createElement(sg.Provider,{value:v},P?M:zr.createPortal(M,I))});process.env.NODE_ENV!=="production"&&(Ku.displayName="Portal");function r5(){var e=H({},A);return e.useId}var dg=0,fg=r5();const mg=fg?function(t){var r=fg();return t||(process.env.NODE_ENV==="test"?"test-id":r)}:function(t){var r=A.useState("ssr-id"),n=ie(r,2),o=n[0],i=n[1];return A.useEffect(function(){var a=dg;dg+=1,i("rc_unique_".concat(a))},[]),t||(process.env.NODE_ENV==="test"?"test-id":o)};var po="RC_FORM_INTERNAL_HOOKS",lt=function(){ht(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Wo=A.createContext({getFieldValue:lt,getFieldsValue:lt,getFieldError:lt,getFieldWarning:lt,getFieldsError:lt,isFieldsTouched:lt,isFieldTouched:lt,isFieldValidating:lt,isFieldsValidating:lt,resetFields:lt,setFields:lt,setFieldValue:lt,setFieldsValue:lt,validateFields:lt,submit:lt,getInternalHooks:function(){return lt(),{dispatch:lt,initEntityValue:lt,registerField:lt,useSubscribe:lt,setInitialValues:lt,destroyForm:lt,setCallbacks:lt,registerWatch:lt,getFields:lt,setValidateMessages:lt,setPreserve:lt,getInitialValue:lt}}}),Ls=A.createContext(null);function ed(e){return e==null?[]:Array.isArray(e)?e:[e]}function n5(e){return e&&!!e._init}function td(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var rd=td();function o5(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function i5(e,t,r){if(Lc())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Ai(o,r.prototype),o}function nd(e){var t=typeof Map=="function"?new Map:void 0;return nd=function(n){if(n===null||!o5(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return i5(n,arguments,Ni(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ai(o,n)},nd(e)}var a5=/%[sdj%]/g,pg=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(pg=function(t,r){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&r.every(function(n){return typeof n=="string"})&&console.warn(t,r)});function od(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Cr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=0,i=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var a=e.replace(a5,function(s){if(s==="%%")return"%";if(o>=i)return s;switch(s){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function s5(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ut(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||s5(t)&&typeof e=="string"&&!e)}function l5(e,t,r){var n=[],o=0,i=e.length;function a(s){n.push.apply(n,ue(s||[])),o++,o===i&&r(n)}e.forEach(function(s){t(s,a)})}function gg(e,t,r){var n=0,o=e.length;function i(a){if(a&&a.length){r(a);return}var s=n;n=n+1,s<o?t(e[s],i):r([])}i([])}function c5(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,ue(e[r]||[]))}),t}var hg=function(e){Gr(r,e);var t=Hr(r);function r(n,o){var i;return Tt(this,r),i=t.call(this,"Async Validation Error"),X(be(i),"errors",void 0),X(be(i),"fields",void 0),i.errors=n,i.fields=o,i}return Pt(r)}(nd(Error));function u5(e,t,r,n,o){if(t.first){var i=new Promise(function(f,g){var h=function(b){return n(b),b.length?g(new hg(b,od(b))):f(o)},m=c5(e);gg(m,r,h)});return i.catch(function(f){return f}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(f,g){var h=function(p){if(u.push.apply(u,p),c++,c===l)return n(u),u.length?g(new hg(u,od(u))):f(o)};s.length||(n(u),f(o)),s.forEach(function(m){var p=e[m];a.indexOf(m)!==-1?gg(p,r,h):l5(p,r,h)})});return d.catch(function(f){return f}),d}function d5(e){return!!(e&&e.message!==void 0)}function f5(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function vg(e,t){return function(r){var n;return e.fullFields?n=f5(t,e.fullFields):n=t[r.field||e.fullField],d5(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function bg(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];we(n)==="object"&&we(e[r])==="object"?e[r]=H(H({},e[r]),n):e[r]=n}}return e}var Uo="enum",m5=function(t,r,n,o,i){t[Uo]=Array.isArray(t[Uo])?t[Uo]:[],t[Uo].indexOf(r)===-1&&o.push(Cr(i.messages[Uo],t.fullField,t[Uo].join(", ")))},p5=function(t,r,n,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||o.push(Cr(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(r)||o.push(Cr(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},g5=function(t,r,n,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=r,d=null,f=typeof r=="number",g=typeof r=="string",h=Array.isArray(r);if(f?d="number":g?d="string":h&&(d="array"),!d)return!1;h&&(u=r.length),g&&(u=r.replace(c,"_").length),a?u!==t.len&&o.push(Cr(i.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(Cr(i.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(Cr(i.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(Cr(i.messages[d].range,t.fullField,t.min,t.max))},yg=function(t,r,n,o,i,a){t.required&&(!n.hasOwnProperty(t.field)||Ut(r,a||t.type))&&o.push(Cr(i.messages.required,t.fullField))},Ds;const h5=function(){if(Ds)return Ds;var e="[a-fA-F\\d:]",t=function(I){return I&&I.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",o=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(r,"$")),c=new RegExp("^".concat(a,"$")),u=function(I){return I&&I.exact?s:new RegExp("(?:".concat(t(I)).concat(r).concat(t(I),")|(?:").concat(t(I)).concat(a).concat(t(I),")"),"g")};u.v4=function(v){return v&&v.exact?l:new RegExp("".concat(t(v)).concat(r).concat(t(v)),"g")},u.v6=function(v){return v&&v.exact?c:new RegExp("".concat(t(v)).concat(a).concat(t(v)),"g")};var d="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",g=u.v4().source,h=u.v6().source,m="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",w='(?:[/?#][^\\s"]*)?',S="(?:".concat(d,"|www\\.)").concat(f,"(?:localhost|").concat(g,"|").concat(h,"|").concat(m).concat(p).concat(b,")").concat(y).concat(w);return Ds=new RegExp("(?:^".concat(S,"$)"),"i"),Ds};var Cg={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Wi={integer:function(t){return Wi.number(t)&&parseInt(t,10)===t},float:function(t){return Wi.number(t)&&!Wi.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return we(t)==="object"&&!Wi.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Cg.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(h5())},hex:function(t){return typeof t=="string"&&!!t.match(Cg.hex)}},v5=function(t,r,n,o,i){if(t.required&&r===void 0){yg(t,r,n,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?Wi[s](r)||o.push(Cr(i.messages.types[s],t.fullField,t.type)):s&&we(r)!==t.type&&o.push(Cr(i.messages.types[s],t.fullField,t.type))},b5=function(t,r,n,o,i){(/^\s+$/.test(r)||r==="")&&o.push(Cr(i.messages.whitespace,t.fullField))};const Re={required:yg,whitespace:b5,type:v5,range:g5,enum:m5,pattern:p5};var y5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i)}n(a)},C5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Re.required(t,r,o,a,i,"array"),r!=null&&(Re.type(t,r,o,a,i),Re.range(t,r,o,a,i))}n(a)},x5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),r!==void 0&&Re.type(t,r,o,a,i)}n(a)},w5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r,"date")&&!t.required)return n();if(Re.required(t,r,o,a,i),!Ut(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Re.type(t,l,o,a,i),l&&Re.range(t,l.getTime(),o,a,i)}}n(a)},S5="enum",E5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),r!==void 0&&Re[S5](t,r,o,a,i)}n(a)},I5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),r!==void 0&&(Re.type(t,r,o,a,i),Re.range(t,r,o,a,i))}n(a)},A5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),r!==void 0&&(Re.type(t,r,o,a,i),Re.range(t,r,o,a,i))}n(a)},N5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),r!==void 0&&Re.type(t,r,o,a,i)}n(a)},O5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),r!==void 0&&(Re.type(t,r,o,a,i),Re.range(t,r,o,a,i))}n(a)},T5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),r!==void 0&&Re.type(t,r,o,a,i)}n(a)},P5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r,"string")&&!t.required)return n();Re.required(t,r,o,a,i),Ut(r,"string")||Re.pattern(t,r,o,a,i)}n(a)},k5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),Ut(r)||Re.type(t,r,o,a,i)}n(a)},F5=function(t,r,n,o,i){var a=[],s=Array.isArray(r)?"array":we(r);Re.required(t,r,o,a,i,s),n(a)},$5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r,"string")&&!t.required)return n();Re.required(t,r,o,a,i,"string"),Ut(r,"string")||(Re.type(t,r,o,a,i),Re.range(t,r,o,a,i),Re.pattern(t,r,o,a,i),t.whitespace===!0&&Re.whitespace(t,r,o,a,i))}n(a)},id=function(t,r,n,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ut(r,a)&&!t.required)return n();Re.required(t,r,o,s,i,a),Ut(r,a)||Re.type(t,r,o,s,i)}n(s)};const Ui={string:$5,method:N5,number:O5,boolean:x5,regexp:k5,integer:A5,float:I5,array:C5,object:T5,enum:E5,pattern:P5,date:w5,url:id,hex:id,email:id,required:F5,any:y5};var Xi=function(){function e(t){Tt(this,e),X(this,"rules",null),X(this,"_messages",rd),this.define(t)}return Pt(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(we(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var i=r[o];n.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(r){return r&&(this._messages=bg(td(),r)),this._messages}},{key:"validate",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=r,s=o,l=i;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function c(h){var m=[],p={};function b(w){if(Array.isArray(w)){var S;m=(S=m).concat.apply(S,ue(w))}else m.push(w)}for(var y=0;y<h.length;y++)b(h[y]);m.length?(p=od(m),l(m,p)):l(null,a)}if(s.messages){var u=this.messages();u===rd&&(u=td()),bg(u,s.messages),s.messages=u}else s.messages=this.messages();var d={},f=s.keys||Object.keys(this.rules);f.forEach(function(h){var m=n.rules[h],p=a[h];m.forEach(function(b){var y=b;typeof y.transform=="function"&&(a===r&&(a=H({},a)),p=a[h]=y.transform(p),p!=null&&(y.type=y.type||(Array.isArray(p)?"array":we(p)))),typeof y=="function"?y={validator:y}:y=H({},y),y.validator=n.getValidationMethod(y),y.validator&&(y.field=h,y.fullField=y.fullField||h,y.type=n.getType(y),d[h]=d[h]||[],d[h].push({rule:y,value:p,source:a,field:h}))})});var g={};return u5(d,s,function(h,m){var p=h.rule,b=(p.type==="object"||p.type==="array")&&(we(p.fields)==="object"||we(p.defaultField)==="object");b=b&&(p.required||!p.required&&h.value),p.field=h.field;function y(N,O){return H(H({},O),{},{fullField:"".concat(p.fullField,".").concat(N),fullFields:p.fullFields?[].concat(ue(p.fullFields),[N]):[N]})}function w(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],O=Array.isArray(N)?N:[N];!s.suppressWarning&&O.length&&e.warning("async-validator:",O),O.length&&p.message!==void 0&&(O=[].concat(p.message));var T=O.map(vg(p,a));if(s.first&&T.length)return g[p.field]=1,m(T);if(!b)m(T);else{if(p.required&&!h.value)return p.message!==void 0?T=[].concat(p.message).map(vg(p,a)):s.error&&(T=[s.error(p,Cr(s.messages.required,p.field))]),m(T);var P={};p.defaultField&&Object.keys(h.value).map(function($){P[$]=p.defaultField}),P=H(H({},P),h.rule.fields);var M={};Object.keys(P).forEach(function($){var k=P[$],F=Array.isArray(k)?k:[k];M[$]=F.map(y.bind(null,$))});var x=new e(M);x.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),x.validate(h.value,h.rule.options||s,function($){var k=[];T&&T.length&&k.push.apply(k,ue(T)),$&&$.length&&k.push.apply(k,ue($)),m(k.length?k:null)})}}var S;if(p.asyncValidator)S=p.asyncValidator(p,h.value,w,h.source,s);else if(p.validator){try{S=p.validator(p,h.value,w,h.source,s)}catch(N){var v,I;(v=(I=console).error)===null||v===void 0||v.call(I,N),s.suppressValidatorError||setTimeout(function(){throw N},0),w(N.message)}S===!0?w():S===!1?w(typeof p.message=="function"?p.message(p.fullField||p.field):p.message||"".concat(p.fullField||p.field," fails")):S instanceof Array?w(S):S instanceof Error&&w(S.message)}S&&S.then&&S.then(function(){return w()},function(N){return w(N)})},function(h){c(h)},a)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Ui.hasOwnProperty(r.type))throw new Error(Cr("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),o=n.indexOf("message");return o!==-1&&n.splice(o,1),n.length===1&&n[0]==="required"?Ui.required:Ui[this.getType(r)]||void 0}}]),e}();X(Xi,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ui[t]=r}),X(Xi,"warning",pg),X(Xi,"messages",rd),X(Xi,"validators",Ui);var xr="'${name}' is not a valid ${type}",xg={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:xr,method:xr,array:xr,object:xr,number:xr,date:xr,boolean:xr,integer:xr,float:xr,regexp:xr,email:xr,url:xr,hex:xr},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},wg=Xi;function M5(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var Sg="CODE_LOGIC_ERROR";function ad(e,t,r,n,o){return sd.apply(this,arguments)}function sd(){return sd=ur(ze().mark(function e(t,r,n,o,i){var a,s,l,c,u,d,f,g,h;return ze().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return a=H({},n),delete a.ruleIndex,wg.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(Sg)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new wg(X({},t,[a])),u=$o(xg,o.validateMessages),c.messages(u),d=[],p.prev=10,p.next=13,Promise.resolve(c.validate(X({},t,r),H({},o)));case 13:p.next=18;break;case 15:p.prev=15,p.t0=p.catch(10),p.t0.errors&&(d=p.t0.errors.map(function(b,y){var w=b.message,S=w===Sg?u.default:w;return A.isValidElement(S)?A.cloneElement(S,{key:"error_".concat(y)}):S}));case 18:if(!(!d.length&&l)){p.next=23;break}return p.next=21,Promise.all(r.map(function(b,y){return ad("".concat(t,".").concat(y),b,l,o,i)}));case 21:return f=p.sent,p.abrupt("return",f.reduce(function(b,y){return[].concat(ue(b),ue(y))},[]));case 23:return g=H(H({},n),{},{name:t,enum:(n.enum||[]).join(", ")},i),h=d.map(function(b){return typeof b=="string"?M5(b,g):b}),p.abrupt("return",h);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),sd.apply(this,arguments)}function j5(e,t,r,n,o,i){var a=e.join("."),s=r.map(function(u,d){var f=u.validator,g=H(H({},u),{},{ruleIndex:d});return f&&(g.validator=function(h,m,p){var b=!1,y=function(){for(var v=arguments.length,I=new Array(v),N=0;N<v;N++)I[N]=arguments[N];Promise.resolve().then(function(){ht(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||p.apply(void 0,I)})},w=f(h,m,y);b=w&&typeof w.then=="function"&&typeof w.catch=="function",ht(b,"`callback` is deprecated. Please return a promise instead."),b&&w.then(function(){p()}).catch(function(S){p(S||" ")})}),g}).sort(function(u,d){var f=u.warningOnly,g=u.ruleIndex,h=d.warningOnly,m=d.ruleIndex;return!!f==!!h?g-m:f?1:-1}),l;if(o===!0)l=new Promise(function(){var u=ur(ze().mark(function d(f,g){var h,m,p;return ze().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:h=0;case 1:if(!(h<s.length)){y.next=12;break}return m=s[h],y.next=5,ad(a,t,m,n,i);case 5:if(p=y.sent,!p.length){y.next=9;break}return g([{errors:p,rule:m}]),y.abrupt("return");case 9:h+=1,y.next=1;break;case 12:f([]);case 13:case"end":return y.stop()}},d)}));return function(d,f){return u.apply(this,arguments)}}());else{var c=s.map(function(u){return ad(a,t,u,n,i).then(function(d){return{errors:d,rule:u}})});l=(o?L5(c):R5(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function R5(e){return ld.apply(this,arguments)}function ld(){return ld=ur(ze().mark(function e(t){return ze().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,ue(o));return a}));case 1:case"end":return n.stop()}},e)})),ld.apply(this,arguments)}function L5(e){return cd.apply(this,arguments)}function cd(){return cd=ur(ze().mark(function e(t){var r;return ze().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return r=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(s){s.errors.length&&i([s]),r+=1,r===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),cd.apply(this,arguments)}function kt(e){return ed(e)}function Eg(e,t){var r={};return t.forEach(function(n){var o=nn(e,n);r=Xr(r,n,o)}),r}function Xo(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return Ig(t,n,r)})}function Ig(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,o){return e[o]===n})}function D5(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||we(e)!=="object"||we(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),o=new Set([].concat(r,n));return ue(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function _5(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&we(t.target)==="object"&&e in t.target?t.target[e]:t}function Ag(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var o=e[t],i=t-r;return i>0?[].concat(ue(e.slice(0,r)),[o],ue(e.slice(r,t)),ue(e.slice(t+1,n))):i<0?[].concat(ue(e.slice(0,t)),ue(e.slice(t+1,r+1)),[o],ue(e.slice(r+1,n))):e}var V5=["name"],$r=[];function ud(e,t,r,n,o,i){return typeof e=="function"?e(t,r,"source"in i?{source:i.source}:{}):n!==o}var dd=function(e){Gr(r,e);var t=Hr(r);function r(n){var o;if(Tt(this,r),o=t.call(this,n),X(be(o),"state",{resetCount:0}),X(be(o),"cancelRegisterFunc",null),X(be(o),"mounted",!1),X(be(o),"touched",!1),X(be(o),"dirty",!1),X(be(o),"validatePromise",void 0),X(be(o),"prevValidating",void 0),X(be(o),"errors",$r),X(be(o),"warnings",$r),X(be(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,d=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,kt(d)),o.cancelRegisterFunc=null}),X(be(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,d=u.prefixName,f=d===void 0?[]:d;return c!==void 0?[].concat(ue(f),ue(c)):[]}),X(be(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(f){return typeof f=="function"?f(d):f})}),X(be(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),X(be(o),"metaCache",null),X(be(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=H(H({},o.getMeta()),{},{destroy:l});zc(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),X(be(o),"onStoreChange",function(l,c,u){var d=o.props,f=d.shouldUpdate,g=d.dependencies,h=g===void 0?[]:g,m=d.onReset,p=u.store,b=o.getNamePath(),y=o.getValue(l),w=o.getValue(p),S=c&&Xo(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&!zc(y,w)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=$r,o.warnings=$r,o.triggerMetaEvent()),u.type){case"reset":if(!c||S){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=$r,o.warnings=$r,o.triggerMetaEvent(),m?.(),o.refresh();return}break;case"remove":{if(f&&ud(f,l,p,y,w,u)){o.reRender();return}break}case"setField":{var v=u.data;if(S){"touched"in v&&(o.touched=v.touched),"validating"in v&&!("originRCField"in v)&&(o.validatePromise=v.validating?Promise.resolve([]):null),"errors"in v&&(o.errors=v.errors||$r),"warnings"in v&&(o.warnings=v.warnings||$r),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in v&&Xo(c,b,!0)){o.reRender();return}if(f&&!b.length&&ud(f,l,p,y,w,u)){o.reRender();return}break}case"dependenciesUpdate":{var I=h.map(kt);if(I.some(function(N){return Xo(u.relatedFields,N)})){o.reRender();return}break}default:if(S||(!h.length||b.length||f)&&ud(f,l,p,y,w,u)){o.reRender();return}break}f===!0&&o.reRender()}),X(be(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),d=l||{},f=d.triggerName,g=d.validateOnly,h=g===void 0?!1:g,m=Promise.resolve().then(ur(ze().mark(function p(){var b,y,w,S,v,I,N;return ze().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(o.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,w=y===void 0?!1:y,S=b.messageVariables,v=b.validateDebounce,I=o.getRules(),f&&(I=I.filter(function(P){return P}).filter(function(P){var M=P.validateTrigger;if(!M)return!0;var x=ed(M);return x.includes(f)})),!(v&&f)){T.next=10;break}return T.next=8,new Promise(function(P){setTimeout(P,v)});case 8:if(o.validatePromise===m){T.next=10;break}return T.abrupt("return",[]);case 10:return N=j5(c,u,I,l,w,S),N.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$r;if(o.validatePromise===m){var M;o.validatePromise=null;var x=[],$=[];(M=P.forEach)===null||M===void 0||M.call(P,function(k){var F=k.rule.warningOnly,j=k.errors,z=j===void 0?$r:j;F?$.push.apply($,ue(z)):x.push.apply(x,ue(z))}),o.errors=x,o.warnings=$,o.triggerMetaEvent(),o.reRender()}}),T.abrupt("return",N);case 13:case"end":return T.stop()}},p)})));return h||(o.validatePromise=m,o.dirty=!0,o.errors=$r,o.warnings=$r,o.triggerMetaEvent(),o.reRender()),m}),X(be(o),"isFieldValidating",function(){return!!o.validatePromise}),X(be(o),"isFieldTouched",function(){return o.touched}),X(be(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(po),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),X(be(o),"getErrors",function(){return o.errors}),X(be(o),"getWarnings",function(){return o.warnings}),X(be(o),"isListField",function(){return o.props.isListField}),X(be(o),"isList",function(){return o.props.isList}),X(be(o),"isPreserve",function(){return o.props.preserve}),X(be(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),X(be(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return H(H({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=Ja(l);return u.length!==1||!A.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),X(be(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return nn(l||c(!0),u)}),X(be(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,d=c.trigger,f=c.validateTrigger,g=c.getValueFromEvent,h=c.normalize,m=c.valuePropName,p=c.getValueProps,b=c.fieldContext,y=f!==void 0?f:b.validateTrigger,w=o.getNamePath(),S=b.getInternalHooks,v=b.getFieldsValue,I=S(po),N=I.dispatch,O=o.getValue(),T=p||function(k){return X({},m,k)},P=l[d],M=u!==void 0?T(O):{};process.env.NODE_ENV!=="production"&&M&&Object.keys(M).forEach(function(k){ht(typeof M[k]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(k,")"))});var x=H(H({},l),M);x[d]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var k,F=arguments.length,j=new Array(F),z=0;z<F;z++)j[z]=arguments[z];g?k=g.apply(void 0,j):k=_5.apply(void 0,[m].concat(j)),h&&(k=h(k,O,v(!0))),k!==O&&N({type:"updateValue",namePath:w,value:k}),P&&P.apply(void 0,j)};var $=ed(y||[]);return $.forEach(function(k){var F=x[k];x[k]=function(){F&&F.apply(void 0,arguments);var j=o.props.rules;j&&j.length&&N({type:"validateField",namePath:w,triggerName:k})}}),x}),n.fieldContext){var i=n.fieldContext.getInternalHooks,a=i(po),s=a.initEntityValue;s(be(o))}return o}return Pt(r,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s(po),c=l.registerField;this.cancelRegisterFunc=c(this)}i===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,i=this.props.children,a=this.getOnlyChild(i),s=a.child,l=a.isFunction,c;return l?c=s:A.isValidElement(s)?c=A.cloneElement(s,this.getControlled(s.props)):(ht(!s,"`children` of Field is not validate ReactElement."),c=s),A.createElement(A.Fragment,{key:o},c)}}]),r}(A.Component);X(dd,"contextType",Wo),X(dd,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Ng(e){var t,r=e.name,n=vt(e,V5),o=A.useContext(Wo),i=A.useContext(Ls),a=r!==void 0?kt(r):void 0,s=(t=n.isListField)!==null&&t!==void 0?t:!!i,l="keep";return s||(l="_".concat((a||[]).join("_"))),process.env.NODE_ENV!=="production"&&n.preserve===!1&&s&&a.length<=1&&ht(!1,"`preserve` should not apply on Form.List fields."),A.createElement(dd,le({key:l,name:a,isListField:s},n,{fieldContext:o}))}function B5(e){var t=e.name,r=e.initialValue,n=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,s=A.useContext(Wo),l=A.useContext(Ls),c=A.useRef({keys:[],id:0}),u=c.current,d=A.useMemo(function(){var m=kt(s.prefixName)||[];return[].concat(ue(m),ue(kt(t)))},[s.prefixName,t]),f=A.useMemo(function(){return H(H({},s),{},{prefixName:d})},[s,d]),g=A.useMemo(function(){return{getKey:function(p){var b=d.length,y=p[b];return[u.keys[y],p.slice(b+1)]}}},[d]);if(typeof n!="function")return ht(!1,"Form.List only accepts function as children."),null;var h=function(p,b,y){var w=y.source;return w==="internal"?!1:p!==b};return A.createElement(Ls.Provider,{value:g},A.createElement(Wo.Provider,{value:f},A.createElement(Ng,{name:[],shouldUpdate:h,rules:o,validateTrigger:i,initialValue:r,isList:!0,isListField:a??!!l},function(m,p){var b=m.value,y=b===void 0?[]:b,w=m.onChange,S=s.getFieldValue,v=function(){var T=S(d||[]);return T||[]},I={add:function(T,P){var M=v();P>=0&&P<=M.length?(u.keys=[].concat(ue(u.keys.slice(0,P)),[u.id],ue(u.keys.slice(P))),w([].concat(ue(M.slice(0,P)),[T],ue(M.slice(P))))):(process.env.NODE_ENV!=="production"&&(P<0||P>M.length)&&ht(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(ue(u.keys),[u.id]),w([].concat(ue(M),[T]))),u.id+=1},remove:function(T){var P=v(),M=new Set(Array.isArray(T)?T:[T]);M.size<=0||(u.keys=u.keys.filter(function(x,$){return!M.has($)}),w(P.filter(function(x,$){return!M.has($)})))},move:function(T,P){if(T!==P){var M=v();T<0||T>=M.length||P<0||P>=M.length||(u.keys=Ag(u.keys,T,P),w(Ag(M,T,P)))}}},N=y||[];return Array.isArray(N)||(N=[],process.env.NODE_ENV!=="production"&&ht(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),n(N.map(function(O,T){var P=u.keys[T];return P===void 0&&(u.keys[T]=u.id,P=u.keys[T],u.id+=1),{name:T,key:P,isListField:!0}}),I,p)})))}function z5(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&i(n),o(n))})})}):Promise.resolve([])}var Og="__@field_split__";function fd(e){return e.map(function(t){return"".concat(we(t),":").concat(t)}).join(Og)}var Yo=function(){function e(){Tt(this,e),X(this,"kvs",new Map)}return Pt(e,[{key:"set",value:function(r,n){this.kvs.set(fd(r),n)}},{key:"get",value:function(r){return this.kvs.get(fd(r))}},{key:"update",value:function(r,n){var o=this.get(r),i=n(o);i?this.set(r,i):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(fd(r))}},{key:"map",value:function(r){return ue(this.kvs.entries()).map(function(n){var o=ie(n,2),i=o[0],a=o[1],s=i.split(Og);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=ie(c,3),d=u[1],f=u[2];return d==="number"?Number(f):f}),value:a})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var o=n.key,i=n.value;return r[o.join(".")]=i,null}),r}}]),e}(),G5=["name"],H5=Pt(function e(t){var r=this;Tt(this,e),X(this,"formHooked",!1),X(this,"forceRootUpdate",void 0),X(this,"subscribable",!0),X(this,"store",{}),X(this,"fieldEntities",[]),X(this,"initialValues",{}),X(this,"callbacks",{}),X(this,"validateMessages",null),X(this,"preserve",null),X(this,"lastValidatePromise",null),X(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),X(this,"getInternalHooks",function(n){return n===po?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(ht(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),X(this,"useSubscribe",function(n){r.subscribable=n}),X(this,"prevWithoutPreserves",null),X(this,"setInitialValues",function(n,o){if(r.initialValues=n||{},o){var i,a=$o(n,r.store);(i=r.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=Xr(a,l,nn(n,l))}),r.prevWithoutPreserves=null,r.updateStore(a)}}),X(this,"destroyForm",function(n){if(n)r.updateStore({});else{var o=new Yo;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),r.prevWithoutPreserves=o}}),X(this,"getInitialValue",function(n){var o=nn(r.initialValues,n);return n.length?$o(o):o}),X(this,"setCallbacks",function(n){r.callbacks=n}),X(this,"setValidateMessages",function(n){r.validateMessages=n}),X(this,"setPreserve",function(n){r.preserve=n}),X(this,"watchList",[]),X(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(o){return o!==n})}}),X(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var o=r.getFieldsValue(),i=r.getFieldsValue(!0);r.watchList.forEach(function(a){a(o,i,n)})}}),X(this,"timeoutId",null),X(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!r.timeoutId&&typeof window<"u"&&(r.timeoutId=setTimeout(function(){r.timeoutId=null,r.formHooked||ht(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),X(this,"updateStore",function(n){r.store=n}),X(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(o){return o.getNamePath().length}):r.fieldEntities}),X(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Yo;return r.getFieldEntities(n).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),X(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var o=r.getFieldsMap(!0);return n.map(function(i){var a=kt(i);return o.get(a)||{INVALIDATE_NAME_PATH:kt(i)}})}),X(this,"getFieldsValue",function(n,o){r.warningUnhooked();var i,a,s;if(n===!0||Array.isArray(n)?(i=n,a=o):n&&we(n)==="object"&&(s=n.strict,a=n.filter),i===!0&&!a)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var d,f,g="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,m;if((h=(m=u).isList)!==null&&h!==void 0&&h.call(m))return}else if(!i&&(d=(f=u).isListField)!==null&&d!==void 0&&d.call(f))return;if(!a)c.push(g);else{var p="getMeta"in u?u.getMeta():null;a(p)&&c.push(g)}}),Eg(r.store,c.map(kt))}),X(this,"getFieldValue",function(n){r.warningUnhooked();var o=kt(n);return nn(r.store,o)}),X(this,"getFieldsError",function(n){r.warningUnhooked();var o=r.getFieldEntitiesForNamePathList(n);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:kt(n[a]),errors:[],warnings:[]}})}),X(this,"getFieldError",function(n){r.warningUnhooked();var o=kt(n),i=r.getFieldsError([o])[0];return i.errors}),X(this,"getFieldWarning",function(n){r.warningUnhooked();var o=kt(n),i=r.getFieldsError([o])[0];return i.warnings}),X(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(a)?(l=a.map(kt),c=!1):(l=null,c=a):(l=a.map(kt),c=s);var u=r.getFieldEntities(!0),d=function(p){return p.isFieldTouched()};if(!l)return c?u.every(function(m){return d(m)||m.isList()}):u.some(d);var f=new Yo;l.forEach(function(m){f.set(m,[])}),u.forEach(function(m){var p=m.getNamePath();l.forEach(function(b){b.every(function(y,w){return p[w]===y})&&f.update(b,function(y){return[].concat(ue(y),[m])})})});var g=function(p){return p.some(d)},h=f.map(function(m){var p=m.value;return p});return c?h.every(g):h.some(g)}),X(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),X(this,"isFieldsValidating",function(n){r.warningUnhooked();var o=r.getFieldEntities();if(!n)return o.some(function(a){return a.isFieldValidating()});var i=n.map(kt);return o.some(function(a){var s=a.getNamePath();return Xo(i,s)&&a.isFieldValidating()})}),X(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),X(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Yo,i=r.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=o.get(u)||new Set;d.add({entity:l,value:c}),o.set(u,d)}});var a=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var f=u.getNamePath(),g=r.getInitialValue(f);if(g!==void 0)ht(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var h=o.get(f);if(h&&h.size>1)ht(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var m=r.getFieldValue(f),p=u.isListField();!p&&(!n.skipExist||m===void 0)&&r.updateStore(Xr(r.store,f,ue(h)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,ue(ue(c).map(function(d){return d.entity})))}})):s=i,a(s)}),X(this,"resetFields",function(n){r.warningUnhooked();var o=r.store;if(!n){r.updateStore($o(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(o,null,{type:"reset"}),r.notifyWatch();return}var i=n.map(kt);i.forEach(function(a){var s=r.getInitialValue(a);r.updateStore(Xr(r.store,a,s))}),r.resetWithFieldInitialValue({namePathList:i}),r.notifyObservers(o,i,{type:"reset"}),r.notifyWatch(i)}),X(this,"setFields",function(n){r.warningUnhooked();var o=r.store,i=[];n.forEach(function(a){var s=a.name,l=vt(a,G5),c=kt(s);i.push(c),"value"in l&&r.updateStore(Xr(r.store,c,l.value)),r.notifyObservers(o,[c],{type:"setField",data:a})}),r.notifyWatch(i)}),X(this,"getFields",function(){var n=r.getFieldEntities(!0),o=n.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=H(H({},s),{},{name:a,value:r.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),X(this,"initEntityValue",function(n){var o=n.props.initialValue;if(o!==void 0){var i=n.getNamePath(),a=nn(r.store,i);a===void 0&&r.updateStore(Xr(r.store,i,o))}}),X(this,"isMergedPreserve",function(n){var o=n!==void 0?n:r.preserve;return o??!0}),X(this,"registerField",function(n){r.fieldEntities.push(n);var o=n.getNamePath();if(r.notifyWatch([o]),n.props.initialValue!==void 0){var i=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(i,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(d){return d!==n}),!r.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:r.getInitialValue(o);if(o.length&&r.getFieldValue(o)!==c&&r.fieldEntities.every(function(d){return!Ig(d.getNamePath(),o)})){var u=r.store;r.updateStore(Xr(u,o,c,!0)),r.notifyObservers(u,[o],{type:"remove"}),r.triggerDependenciesUpdate(u,o)}}r.notifyWatch([o])}}),X(this,"dispatch",function(n){switch(n.type){case"updateValue":{var o=n.namePath,i=n.value;r.updateValue(o,i);break}case"validateField":{var a=n.namePath,s=n.triggerName;r.validateFields([a],{triggerName:s});break}}}),X(this,"notifyObservers",function(n,o,i){if(r.subscribable){var a=H(H({},i),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,o,a)})}else r.forceRootUpdate()}),X(this,"triggerDependenciesUpdate",function(n,o){var i=r.getDependencyChildrenFields(o);return i.length&&r.validateFields(i),r.notifyObservers(n,i,{type:"dependenciesUpdate",relatedFields:[o].concat(ue(i))}),i}),X(this,"updateValue",function(n,o){var i=kt(n),a=r.store;r.updateStore(Xr(r.store,i,o)),r.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),r.notifyWatch([i]);var s=r.triggerDependenciesUpdate(a,i),l=r.callbacks.onValuesChange;if(l){var c=Eg(r.store,[i]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([i].concat(ue(s)))}),X(this,"setFieldsValue",function(n){r.warningUnhooked();var o=r.store;if(n){var i=$o(r.store,n);r.updateStore(i)}r.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),X(this,"setFieldValue",function(n,o){r.setFields([{name:n,value:o,errors:[],warnings:[]}])}),X(this,"getDependencyChildrenFields",function(n){var o=new Set,i=[],a=new Yo;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=kt(u);a.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(l),f})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(d){if(!o.has(d)){o.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(i.push(f),l(f))}})};return s(n),i}),X(this,"triggerOnFieldsChange",function(n,o){var i=r.callbacks.onFieldsChange;if(i){var a=r.getFields();if(o){var s=new Yo;o.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return Xo(n,u)});l.length&&i(l,a)}}),X(this,"validateFields",function(n,o){r.warningUnhooked();var i,a;Array.isArray(n)||typeof n=="string"||typeof o=="string"?(i=n,a=o):a=n;var s=!!i,l=s?i.map(kt):[],c=[],u=String(Date.now()),d=new Set,f=a||{},g=f.recursive,h=f.dirty;r.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(h&&!y.isFieldDirty())){var w=y.getNamePath();if(d.add(w.join(u)),!s||Xo(l,w,g)){var S=y.validateRules(H({validateMessages:H(H({},xg),r.validateMessages)},a));c.push(S.then(function(){return{name:w,errors:[],warnings:[]}}).catch(function(v){var I,N=[],O=[];return(I=v.forEach)===null||I===void 0||I.call(v,function(T){var P=T.rule.warningOnly,M=T.errors;P?O.push.apply(O,ue(M)):N.push.apply(N,ue(M))}),N.length?Promise.reject({name:w,errors:N,warnings:O}):{name:w,errors:N,warnings:O}}))}}});var m=z5(c);r.lastValidatePromise=m,m.catch(function(y){return y}).then(function(y){var w=y.map(function(S){var v=S.name;return v});r.notifyObservers(r.store,w,{type:"validateFinish"}),r.triggerOnFieldsChange(w,y)});var p=m.then(function(){return r.lastValidatePromise===m?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var w=y.filter(function(S){return S&&S.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:w,outOfDate:r.lastValidatePromise!==m})});p.catch(function(y){return y});var b=l.filter(function(y){return d.has(y.join(u))});return r.triggerOnFieldsChange(b),p}),X(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var o=r.callbacks.onFinish;if(o)try{o(n)}catch(i){console.error(i)}}).catch(function(n){var o=r.callbacks.onFinishFailed;o&&o(n)})}),this.forceRootUpdate=t});function Tg(e){var t=A.useRef(),r=A.useState({}),n=ie(r,2),o=n[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new H5(i);t.current=a.getForm()}return[t.current]}var md=A.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),W5=function(t){var r=t.validateMessages,n=t.onFormChange,o=t.onFormFinish,i=t.children,a=A.useContext(md),s=A.useRef({});return A.createElement(md.Provider,{value:H(H({},a),{},{validateMessages:H(H({},a.validateMessages),r),triggerFormChange:function(c,u){n&&n(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=H(H({},s.current),{},X({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=H({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},i)},U5=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],X5=function(t,r){var n=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,f=t.validateTrigger,g=f===void 0?"onChange":f,h=t.onValuesChange,m=t.onFieldsChange,p=t.onFinish,b=t.onFinishFailed,y=t.clearOnDestroy,w=vt(t,U5),S=A.useRef(null),v=A.useContext(md),I=Tg(a),N=ie(I,1),O=N[0],T=O.getInternalHooks(po),P=T.useSubscribe,M=T.setInitialValues,x=T.setCallbacks,$=T.setValidateMessages,k=T.setPreserve,F=T.destroyForm;A.useImperativeHandle(r,function(){return H(H({},O),{},{nativeElement:S.current})}),A.useEffect(function(){return v.registerForm(n,O),function(){v.unregisterForm(n)}},[v,O,n]),$(H(H({},v.validateMessages),d)),x({onValuesChange:h,onFieldsChange:function(G){if(v.triggerFormChange(n,G),m){for(var Q=arguments.length,q=new Array(Q>1?Q-1:0),U=1;U<Q;U++)q[U-1]=arguments[U];m.apply(void 0,[G].concat(q))}},onFinish:function(G){v.triggerFormFinish(n,G),p&&p(G)},onFinishFailed:b}),k(s);var j=A.useRef(null);M(o,!j.current),j.current||(j.current=!0),A.useEffect(function(){return function(){return F(y)}},[]);var z,W=typeof l=="function";if(W){var V=O.getFieldsValue(!0);z=l(V,O)}else z=l;P(!W);var _=A.useRef();A.useEffect(function(){D5(_.current||[],i||[])||O.setFields(i||[]),_.current=i},[i,O]);var D=A.useMemo(function(){return H(H({},O),{},{validateTrigger:g})},[O,g]),B=A.createElement(Ls.Provider,{value:null},A.createElement(Wo.Provider,{value:D},z));return u===!1?B:A.createElement(u,le({},w,{ref:S,onSubmit:function(G){G.preventDefault(),G.stopPropagation(),O.submit()},onReset:function(G){var Q;G.preventDefault(),O.resetFields(),(Q=w.onReset)===null||Q===void 0||Q.call(w,G)}}),B)};function Pg(e){try{return JSON.stringify(e)}catch{return Math.random()}}var Y5=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),r=E.useRef(t);ht(r.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function J5(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],i=o===void 0?{}:o,a=n5(i)?{form:i}:i,s=a.form,l=E.useState(),c=ie(l,2),u=c[0],d=c[1],f=E.useMemo(function(){return Pg(u)},[u]),g=E.useRef(f);g.current=f;var h=E.useContext(Wo),m=s||h,p=m&&m._init;process.env.NODE_ENV!=="production"&&ht(t.length===2?s?p:!0:p,"useWatch requires a form instance since it can not auto detect from context.");var b=kt(n),y=E.useRef(b);return y.current=b,Y5(b),E.useEffect(function(){if(p){var w=m.getFieldsValue,S=m.getInternalHooks,v=S(po),I=v.registerWatch,N=function(M,x){var $=a.preserve?x:M;return typeof n=="function"?n($):nn($,y.current)},O=I(function(P,M){var x=N(P,M),$=Pg(x);g.current!==$&&(g.current=$,d(x))}),T=N(w(),w(!0));return u!==T&&d(T),O}},[p]),u}var Z5=A.forwardRef(X5),Yi=Z5;Yi.FormProvider=W5,Yi.Field=Ng,Yi.List=B5,Yi.useForm=Tg,Yi.useWatch=J5;const _s=A.createContext({});process.env.NODE_ENV!=="production"&&(_s.displayName="FormItemInputContext");const q5=({children:e,status:t,override:r})=>{const n=A.useContext(_s),o=A.useMemo(()=>{const i=Object.assign({},n);return r&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,r,n]);return A.createElement(_s.Provider,{value:o},e)},Q5=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let o=n;return r&&(o=E.createElement(q5,{override:!0,status:!0},o)),t&&(o=E.createElement(PS,null,o)),o},K5=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e?.substr(0,4))};function eI(e){var t=e.prefixCls,r=e.align,n=e.arrow,o=e.arrowPos,i=n||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,u=o.y,d=u===void 0?0:u,f=A.useRef();if(!r||!r.points)return null;var g={position:"absolute"};if(r.autoArrow!==!1){var h=r.points[0],m=r.points[1],p=h[0],b=h[1],y=m[0],w=m[1];p===y||!["t","b"].includes(p)?g.top=d:p==="t"?g.top=0:g.bottom=0,b===w||!["l","r"].includes(b)?g.left=c:b==="l"?g.left=0:g.right=0}return A.createElement("div",{ref:f,className:J("".concat(t,"-arrow"),a),style:g},s)}function tI(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,i=e.motion;return o?A.createElement(mo,le({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var s=a.className;return A.createElement("div",{style:{zIndex:n},className:J("".concat(t,"-mask"),s)})}):null}var kg=A.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(kg.displayName="PopupContent");var Fg=A.forwardRef(function(e,t){var r=e.popup,n=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,g=e.arrow,h=e.arrowPos,m=e.align,p=e.motion,b=e.maskMotion,y=e.forceRender,w=e.getPopupContainer,S=e.autoDestroy,v=e.portal,I=e.zIndex,N=e.onMouseEnter,O=e.onMouseLeave,T=e.onPointerEnter,P=e.onPointerDownCapture,M=e.ready,x=e.offsetX,$=e.offsetY,k=e.offsetR,F=e.offsetB,j=e.onAlign,z=e.onPrepare,W=e.stretch,V=e.targetWidth,_=e.targetHeight,D=typeof r=="function"?r():r,B=l||c,L=w?.length>0,G=A.useState(!w||!L),Q=ie(G,2),q=Q[0],U=Q[1];if(rr(function(){!q&&L&&a&&U(!0)},[q,L,a]),!q)return null;var K="auto",Z={left:"-1000vw",top:"-1000vh",right:K,bottom:K};if(M||!l){var se,pe=m.points,Y=m.dynamicInset||((se=m._experimental)===null||se===void 0?void 0:se.dynamicInset),Ce=Y&&pe[0][1]==="r",ne=Y&&pe[0][0]==="b";Ce?(Z.right=k,Z.left=K):(Z.left=x,Z.right=K),ne?(Z.bottom=F,Z.top=K):(Z.top=$,Z.bottom=K)}var Ie={};return W&&(W.includes("height")&&_?Ie.height=_:W.includes("minHeight")&&_&&(Ie.minHeight=_),W.includes("width")&&V?Ie.width=V:W.includes("minWidth")&&V&&(Ie.minWidth=V)),l||(Ie.pointerEvents="none"),A.createElement(v,{open:y||B,getContainer:w&&function(){return w(a)},autoDestroy:S},A.createElement(tI,{prefixCls:o,open:l,zIndex:I,mask:f,motion:b}),A.createElement(ns,{onResize:j,disabled:!l},function(ve){return A.createElement(mo,le({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},p,{onAppearPrepare:z,onEnterPrepare:z,visible:l,onVisibleChanged:function(it){var Le;p==null||(Le=p.onVisibleChanged)===null||Le===void 0||Le.call(p,it),s(it)}}),function(Ye,it){var Le=Ye.className,St=Ye.style,Fe=J(o,Le,n);return A.createElement("div",{ref:Ei(ve,t,it),className:Fe,style:H(H(H(H({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},Z),Ie),St),{},{boxSizing:"border-box",zIndex:I},i),onMouseEnter:N,onMouseLeave:O,onPointerEnter:T,onClick:d,onPointerDownCapture:P},g&&A.createElement(eI,{prefixCls:o,arrow:g,arrowPos:h,align:m}),A.createElement(kg,{cache:!l&&!u},D))})}))});process.env.NODE_ENV!=="production"&&(Fg.displayName="Popup");var $g=A.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=Ii(r),i=A.useCallback(function(s){Mc(t,n?n(s):s)},[n]),a=Qa(i,Ka(r));return o?A.cloneElement(r,{ref:a}):r});process.env.NODE_ENV!=="production"&&($g.displayName="TriggerWrapper");var Mg=A.createContext(null);function jg(e){return e?Array.isArray(e)?e:[e]:[]}function rI(e,t,r,n){return A.useMemo(function(){var o=jg(r??t),i=jg(n??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,r,n])}function nI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function oI(e,t,r,n){for(var o=r.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(nI((s=e[l])===null||s===void 0?void 0:s.points,o,n))return"".concat(t,"-placement-").concat(l)}return""}function Rg(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function Ji(e){return e.ownerDocument.defaultView}function pd(e){for(var t=[],r=e?.parentElement,n=["hidden","scroll","clip","auto"];r;){var o=Ji(r).getComputedStyle(r),i=o.overflowX,a=o.overflowY,s=o.overflow;[i,a,s].some(function(l){return n.includes(l)})&&t.push(r),r=r.parentElement}return t}function Zi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function qi(e){return Zi(parseFloat(e),0)}function Lg(e,t){var r=H({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var o=Ji(n).getComputedStyle(n),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=n.getBoundingClientRect(),f=n.offsetHeight,g=n.clientHeight,h=n.offsetWidth,m=n.clientWidth,p=qi(s),b=qi(l),y=qi(c),w=qi(u),S=Zi(Math.round(d.width/h*1e3)/1e3),v=Zi(Math.round(d.height/f*1e3)/1e3),I=(h-m-y-w)*S,N=(f-g-p-b)*v,O=p*v,T=b*v,P=y*S,M=w*S,x=0,$=0;if(i==="clip"){var k=qi(a);x=k*S,$=k*v}var F=d.x+P-x,j=d.y+O-$,z=F+d.width+2*x-P-M-I,W=j+d.height+2*$-O-T-N;r.left=Math.max(r.left,F),r.top=Math.max(r.top,j),r.right=Math.min(r.right,z),r.bottom=Math.min(r.bottom,W)}}),r}function Dg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function _g(e,t){var r=t||[],n=ie(r,2),o=n[0],i=n[1];return[Dg(e.width,o),Dg(e.height,i)]}function Vg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Jo(e,t){var r=t[0],n=t[1],o,i;return r==="t"?i=e.y:r==="b"?i=e.y+e.height:i=e.y+e.height/2,n==="l"?o=e.x:n==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function Un(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,o){return o===t?r[n]||"c":n}).join("")}function iI(e,t,r,n,o,i,a){var s=A.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),l=ie(s,2),c=l[0],u=l[1],d=A.useRef(0),f=A.useMemo(function(){return t?pd(t):[]},[t]),g=A.useRef({}),h=function(){g.current={}};e||h();var m=cr(function(){if(t&&r&&e){let Br=function(Ga,Bn){var so=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Mt,Ha=B.x+Ga,Ic=B.y+Bn,a0=Ha+ne,s0=Ic+Ce,l0=Math.max(Ha,so.left),me=Math.max(Ic,so.top),Ee=Math.min(a0,so.right),wt=Math.min(s0,so.bottom);return Math.max(0,(Ee-l0)*(wt-me))},Ci=function(){Oe=B.y+He,Se=Oe+Ce,gt=B.x+Je,Be=gt+ne};var y,w,S,v,I=t,N=I.ownerDocument,O=Ji(I),T=O.getComputedStyle(I),P=T.position,M=I.style.left,x=I.style.top,$=I.style.right,k=I.style.bottom,F=I.style.overflow,j=H(H({},o[n]),i),z=N.createElement("div");(y=I.parentElement)===null||y===void 0||y.appendChild(z),z.style.left="".concat(I.offsetLeft,"px"),z.style.top="".concat(I.offsetTop,"px"),z.style.position=P,z.style.height="".concat(I.offsetHeight,"px"),z.style.width="".concat(I.offsetWidth,"px"),I.style.left="0",I.style.top="0",I.style.right="auto",I.style.bottom="auto",I.style.overflow="hidden";var W;if(Array.isArray(r))W={x:r[0],y:r[1],width:0,height:0};else{var V,_,D=r.getBoundingClientRect();D.x=(V=D.x)!==null&&V!==void 0?V:D.left,D.y=(_=D.y)!==null&&_!==void 0?_:D.top,W={x:D.x,y:D.y,width:D.width,height:D.height}}var B=I.getBoundingClientRect(),L=O.getComputedStyle(I),G=L.height,Q=L.width;B.x=(w=B.x)!==null&&w!==void 0?w:B.left,B.y=(S=B.y)!==null&&S!==void 0?S:B.top;var q=N.documentElement,U=q.clientWidth,K=q.clientHeight,Z=q.scrollWidth,se=q.scrollHeight,pe=q.scrollTop,Y=q.scrollLeft,Ce=B.height,ne=B.width,Ie=W.height,ve=W.width,Ye={left:0,top:0,right:U,bottom:K},it={left:-Y,top:-pe,right:Z-Y,bottom:se-pe},Le=j.htmlRegion,St="visible",Fe="visibleFirst";Le!=="scroll"&&Le!==Fe&&(Le=St);var Me=Le===Fe,bt=Lg(it,f),Te=Lg(Ye,f),Mt=Le===St?Te:bt,at=Me?Te:Mt;I.style.left="auto",I.style.top="auto",I.style.right="0",I.style.bottom="0";var ir=I.getBoundingClientRect();I.style.left=M,I.style.top=x,I.style.right=$,I.style.bottom=k,I.style.overflow=F,(v=I.parentElement)===null||v===void 0||v.removeChild(z);var Xt=Zi(Math.round(ne/parseFloat(Q)*1e3)/1e3),jt=Zi(Math.round(Ce/parseFloat(G)*1e3)/1e3);if(Xt===0||jt===0||Si(r)&&!zp(r))return;var fr=j.offset,_e=j.targetOffset,De=_g(B,fr),Rt=ie(De,2),Lt=Rt[0],Dt=Rt[1],he=_g(W,_e),de=ie(he,2),Ae=de[0],Ne=de[1];W.x-=Ae,W.y-=Ne;var $e=j.points||[],pt=ie($e,2),tr=pt[0],ar=pt[1],_t=Vg(ar),Vt=Vg(tr),Et=Jo(W,_t),_r=Jo(B,Vt),Wt=H({},j),Je=Et.x-_r.x+Lt,He=Et.y-_r.y+Dt,Bt=Br(Je,He),Tr=Br(Je,He,Te),sr=Jo(W,["t","l"]),xt=Jo(B,["t","l"]),pn=Jo(W,["b","r"]),Qr=Jo(B,["b","r"]),R=j.overflow||{},te=R.adjustX,ae=R.adjustY,fe=R.shiftX,ke=R.shiftY,Ve=function(Bn){return typeof Bn=="boolean"?Bn:Bn>=0},Oe,Se,gt,Be;Ci();var ft=Ve(ae),je=Vt[0]===_t[0];if(ft&&Vt[0]==="t"&&(Se>at.bottom||g.current.bt)){var br=He;je?br-=Ce-Ie:br=sr.y-Qr.y-Dt;var Vr=Br(Je,br),qt=Br(Je,br,Te);Vr>Bt||Vr===Bt&&(!Me||qt>=Tr)?(g.current.bt=!0,He=br,Dt=-Dt,Wt.points=[Un(Vt,0),Un(_t,0)]):g.current.bt=!1}if(ft&&Vt[0]==="b"&&(Oe<at.top||g.current.tb)){var Kr=He;je?Kr+=Ce-Ie:Kr=pn.y-xt.y-Dt;var bi=Br(Je,Kr),Da=Br(Je,Kr,Te);bi>Bt||bi===Bt&&(!Me||Da>=Tr)?(g.current.tb=!0,He=Kr,Dt=-Dt,Wt.points=[Un(Vt,0),Un(_t,0)]):g.current.tb=!1}var bc=Ve(te),yc=Vt[1]===_t[1];if(bc&&Vt[1]==="l"&&(Be>at.right||g.current.rl)){var wo=Je;yc?wo-=ne-ve:wo=sr.x-Qr.x-Lt;var So=Br(wo,He),_a=Br(wo,He,Te);So>Bt||So===Bt&&(!Me||_a>=Tr)?(g.current.rl=!0,Je=wo,Lt=-Lt,Wt.points=[Un(Vt,1),Un(_t,1)]):g.current.rl=!1}if(bc&&Vt[1]==="r"&&(gt<at.left||g.current.lr)){var Eo=Je;yc?Eo+=ne-ve:Eo=pn.x-xt.x-Lt;var Va=Br(Eo,He),yi=Br(Eo,He,Te);Va>Bt||Va===Bt&&(!Me||yi>=Tr)?(g.current.lr=!0,Je=Eo,Lt=-Lt,Wt.points=[Un(Vt,1),Un(_t,1)]):g.current.lr=!1}Ci();var en=fe===!0?0:fe;typeof en=="number"&&(gt<Te.left&&(Je-=gt-Te.left-Lt,W.x+ve<Te.left+en&&(Je+=W.x-Te.left+ve-en)),Be>Te.right&&(Je-=Be-Te.right-Lt,W.x>Te.right-en&&(Je+=W.x-Te.right+en)));var oo=ke===!0?0:ke;typeof oo=="number"&&(Oe<Te.top&&(He-=Oe-Te.top-Dt,W.y+Ie<Te.top+oo&&(He+=W.y-Te.top+Ie-oo)),Se>Te.bottom&&(He-=Se-Te.bottom-Dt,W.y>Te.bottom-oo&&(He+=W.y-Te.bottom+oo)));var io=B.x+Je,ao=io+ne,Ba=B.y+He,qf=Ba+Ce,Cc=W.x,xc=Cc+ve,wc=W.y,Qf=wc+Ie,Kf=Math.max(io,Cc),Sc=Math.min(ao,xc),e0=(Kf+Sc)/2,t0=e0-io,Ec=Math.max(Ba,wc),r0=Math.min(qf,Qf),n0=(Ec+r0)/2,o0=n0-Ba;a?.(t,Wt);var gn=ir.right-B.x-(Je+B.width),za=ir.bottom-B.y-(He+B.height);Xt===1&&(Je=Math.round(Je),gn=Math.round(gn)),jt===1&&(He=Math.round(He),za=Math.round(za));var i0={ready:!0,offsetX:Je/Xt,offsetY:He/jt,offsetR:gn/Xt,offsetB:za/jt,arrowX:t0/Xt,arrowY:o0/jt,scaleX:Xt,scaleY:jt,align:Wt};u(i0)}}),p=function(){d.current+=1;var w=d.current;Promise.resolve().then(function(){d.current===w&&m()})},b=function(){u(function(w){return H(H({},w),{},{ready:!1})})};return rr(b,[n]),rr(function(){e||b()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,p]}function aI(e,t,r,n,o){rr(function(){if(e&&t&&r){let d=function(){n(),o()};var i=t,a=r,s=pd(i),l=pd(a),c=Ji(a),u=new Set([c].concat(ue(s),ue(l)));return u.forEach(function(f){f.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),n(),function(){u.forEach(function(f){f.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,r])}function sI(e,t,r,n,o,i,a,s){var l=A.useRef(e);l.current=e;var c=A.useRef(!1);A.useEffect(function(){if(t&&n&&(!o||i)){var d=function(){c.current=!1},f=function(S){var v;l.current&&!a(((v=S.composedPath)===null||v===void 0||(v=v.call(S))===null||v===void 0?void 0:v[0])||S.target)&&!c.current&&s(!1)},g=Ji(n);g.addEventListener("pointerdown",d,!0),g.addEventListener("mousedown",f,!0),g.addEventListener("contextmenu",f,!0);var h=Es(r);if(h&&(h.addEventListener("mousedown",f,!0),h.addEventListener("contextmenu",f,!0)),process.env.NODE_ENV!=="production"){var m,p,b=r==null||(m=r.getRootNode)===null||m===void 0?void 0:m.call(r),y=(p=n.getRootNode)===null||p===void 0?void 0:p.call(n);Io(b===y,"trigger element and popup element should in same shadow root.")}return function(){g.removeEventListener("pointerdown",d,!0),g.removeEventListener("mousedown",f,!0),g.removeEventListener("contextmenu",f,!0),h&&(h.removeEventListener("mousedown",f,!0),h.removeEventListener("contextmenu",f,!0))}}},[t,r,n,o,i]);function u(){c.current=!0}return u}var lI=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function cI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ku,t=A.forwardRef(function(r,n){var o=r.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=r.children,s=r.action,l=s===void 0?"hover":s,c=r.showAction,u=r.hideAction,d=r.popupVisible,f=r.defaultPopupVisible,g=r.onPopupVisibleChange,h=r.afterPopupVisibleChange,m=r.mouseEnterDelay,p=r.mouseLeaveDelay,b=p===void 0?.1:p,y=r.focusDelay,w=r.blurDelay,S=r.mask,v=r.maskClosable,I=v===void 0?!0:v,N=r.getPopupContainer,O=r.forceRender,T=r.autoDestroy,P=r.destroyPopupOnHide,M=r.popup,x=r.popupClassName,$=r.popupStyle,k=r.popupPlacement,F=r.builtinPlacements,j=F===void 0?{}:F,z=r.popupAlign,W=r.zIndex,V=r.stretch,_=r.getPopupClassNameFromAlign,D=r.fresh,B=r.alignPoint,L=r.onPopupClick,G=r.onPopupAlign,Q=r.arrow,q=r.popupMotion,U=r.maskMotion,K=r.popupTransitionName,Z=r.popupAnimation,se=r.maskTransitionName,pe=r.maskAnimation,Y=r.className,Ce=r.getTriggerDOMNode,ne=vt(r,lI),Ie=T||P||!1,ve=A.useState(!1),Ye=ie(ve,2),it=Ye[0],Le=Ye[1];rr(function(){Le(K5())},[]);var St=A.useRef({}),Fe=A.useContext(Mg),Me=A.useMemo(function(){return{registerSubPopup:function(Ee,wt){St.current[Ee]=wt,Fe?.registerSubPopup(Ee,wt)}}},[Fe]),bt=mg(),Te=A.useState(null),Mt=ie(Te,2),at=Mt[0],ir=Mt[1],Xt=A.useRef(null),jt=cr(function(me){Xt.current=me,Si(me)&&at!==me&&ir(me),Fe?.registerSubPopup(bt,me)}),fr=A.useState(null),_e=ie(fr,2),De=_e[0],Rt=_e[1],Lt=A.useRef(null),Dt=cr(function(me){Si(me)&&De!==me&&(Rt(me),Lt.current=me)}),he=A.Children.only(a),de=he?.props||{},Ae={},Ne=cr(function(me){var Ee,wt,Yt=De;return Yt?.contains(me)||((Ee=Es(Yt))===null||Ee===void 0?void 0:Ee.host)===me||me===Yt||at?.contains(me)||((wt=Es(at))===null||wt===void 0?void 0:wt.host)===me||me===at||Object.values(St.current).some(function(Ot){return Ot?.contains(me)||me===Ot})}),$e=Rg(i,q,Z,K),pt=Rg(i,U,pe,se),tr=A.useState(f||!1),ar=ie(tr,2),_t=ar[0],Vt=ar[1],Et=d??_t,_r=cr(function(me){d===void 0&&Vt(me)});rr(function(){Vt(d||!1)},[d]);var Wt=A.useRef(Et);Wt.current=Et;var Je=A.useRef([]);Je.current=[];var He=cr(function(me){var Ee;_r(me),((Ee=Je.current[Je.current.length-1])!==null&&Ee!==void 0?Ee:Et)!==me&&(Je.current.push(me),g?.(me))}),Bt=A.useRef(),Tr=function(){clearTimeout(Bt.current)},sr=function(Ee){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Tr(),wt===0?He(Ee):Bt.current=setTimeout(function(){He(Ee)},wt*1e3)};A.useEffect(function(){return Tr},[]);var xt=A.useState(!1),pn=ie(xt,2),Qr=pn[0],R=pn[1];rr(function(me){(!me||Et)&&R(!0)},[Et]);var te=A.useState(null),ae=ie(te,2),fe=ae[0],ke=ae[1],Ve=A.useState(null),Oe=ie(Ve,2),Se=Oe[0],gt=Oe[1],Be=function(Ee){gt([Ee.clientX,Ee.clientY])},ft=iI(Et,at,B&&Se!==null?Se:De,k,j,z,G),je=ie(ft,11),br=je[0],Vr=je[1],qt=je[2],Kr=je[3],bi=je[4],Da=je[5],bc=je[6],yc=je[7],wo=je[8],So=je[9],_a=je[10],Eo=rI(it,l,c,u),Va=ie(Eo,2),yi=Va[0],en=Va[1],oo=yi.has("click"),io=en.has("click")||en.has("contextMenu"),ao=cr(function(){Qr||_a()}),Ba=function(){Wt.current&&B&&io&&sr(!1)};aI(Et,De,at,ao,Ba),rr(function(){ao()},[Se,k]),rr(function(){Et&&!(j!=null&&j[k])&&ao()},[JSON.stringify(z)]);var qf=A.useMemo(function(){var me=oI(j,i,So,B);return J(me,_?.(So))},[So,_,j,i,B]);A.useImperativeHandle(n,function(){return{nativeElement:Lt.current,popupElement:Xt.current,forceAlign:ao}});var Cc=A.useState(0),xc=ie(Cc,2),wc=xc[0],Qf=xc[1],Kf=A.useState(0),Sc=ie(Kf,2),e0=Sc[0],t0=Sc[1],Ec=function(){if(V&&De){var Ee=De.getBoundingClientRect();Qf(Ee.width),t0(Ee.height)}},r0=function(){Ec(),ao()},n0=function(Ee){R(!1),_a(),h?.(Ee)},o0=function(){return new Promise(function(Ee){Ec(),ke(function(){return Ee})})};rr(function(){fe&&(_a(),fe(),ke(null))},[fe]);function gn(me,Ee,wt,Yt){Ae[me]=function(Ot){var Ac;Yt?.(Ot),sr(Ee,wt);for(var c0=arguments.length,Zy=new Array(c0>1?c0-1:0),Nc=1;Nc<c0;Nc++)Zy[Nc-1]=arguments[Nc];(Ac=de[me])===null||Ac===void 0||Ac.call.apply(Ac,[de,Ot].concat(Zy))}}(oo||io)&&(Ae.onClick=function(me){var Ee;Wt.current&&io?sr(!1):!Wt.current&&oo&&(Be(me),sr(!0));for(var wt=arguments.length,Yt=new Array(wt>1?wt-1:0),Ot=1;Ot<wt;Ot++)Yt[Ot-1]=arguments[Ot];(Ee=de.onClick)===null||Ee===void 0||Ee.call.apply(Ee,[de,me].concat(Yt))});var za=sI(Et,io,De,at,S,I,Ne,sr),i0=yi.has("hover"),Br=en.has("hover"),Ci,Ga;i0&&(gn("onMouseEnter",!0,m,function(me){Be(me)}),gn("onPointerEnter",!0,m,function(me){Be(me)}),Ci=function(Ee){(Et||Qr)&&at!==null&&at!==void 0&&at.contains(Ee.target)&&sr(!0,m)},B&&(Ae.onMouseMove=function(me){var Ee;(Ee=de.onMouseMove)===null||Ee===void 0||Ee.call(de,me)})),Br&&(gn("onMouseLeave",!1,b),gn("onPointerLeave",!1,b),Ga=function(){sr(!1,b)}),yi.has("focus")&&gn("onFocus",!0,y),en.has("focus")&&gn("onBlur",!1,w),yi.has("contextMenu")&&(Ae.onContextMenu=function(me){var Ee;Wt.current&&en.has("contextMenu")?sr(!1):(Be(me),sr(!0)),me.preventDefault();for(var wt=arguments.length,Yt=new Array(wt>1?wt-1:0),Ot=1;Ot<wt;Ot++)Yt[Ot-1]=arguments[Ot];(Ee=de.onContextMenu)===null||Ee===void 0||Ee.call.apply(Ee,[de,me].concat(Yt))}),Y&&(Ae.className=J(de.className,Y));var Bn=A.useRef(!1);Bn.current||(Bn.current=O||Et||Qr);var so=H(H({},de),Ae),Ha={},Ic=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ic.forEach(function(me){ne[me]&&(Ha[me]=function(){for(var Ee,wt=arguments.length,Yt=new Array(wt),Ot=0;Ot<wt;Ot++)Yt[Ot]=arguments[Ot];(Ee=so[me])===null||Ee===void 0||Ee.call.apply(Ee,[so].concat(Yt)),ne[me].apply(ne,Yt)})});var a0=A.cloneElement(he,H(H({},so),Ha)),s0={x:Da,y:bc},l0=Q?H({},Q!==!0?Q:{}):null;return A.createElement(A.Fragment,null,A.createElement(ns,{disabled:!Et,ref:Dt,onResize:r0},A.createElement($g,{getTriggerDOMNode:Ce},a0)),Bn.current&&A.createElement(Mg.Provider,{value:Me},A.createElement(Fg,{portal:e,ref:jt,prefixCls:i,popup:M,className:J(x,qf),style:$,target:De,onMouseEnter:Ci,onMouseLeave:Ga,onPointerEnter:Ci,zIndex:W,open:Et,keepDom:Qr,fresh:D,onClick:L,onPointerDownCapture:za,mask:S,motion:$e,maskMotion:pt,onVisibleChanged:n0,onPrepare:o0,forceRender:O,autoDestroy:Ie,getPopupContainer:N,align:So,arrow:l0,arrowPos:s0,ready:br,offsetX:Vr,offsetY:qt,offsetR:Kr,offsetB:bi,onAlign:ao,stretch:V,targetWidth:wc/yc,targetHeight:e0/wo})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const uI=cI(Ku);var dI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},fI=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:dI}))},Bg=A.forwardRef(fI);process.env.NODE_ENV!=="production"&&(Bg.displayName="CheckOutlined");function mI(){const[,e]=A.useReducer(t=>t+1,0);return e}function zg(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,s=e.style;return A.createElement("div",{className:J("".concat(r,"-content"),a),style:s},A.createElement("div",{className:J("".concat(r,"-inner"),i),id:n,role:"tooltip",style:o},typeof t=="function"?t():t))}var Zo={shiftX:64,adjustY:1},qo={adjustX:1,shiftY:!0},Mr=[0,0],pI={left:{points:["cr","cl"],overflow:qo,offset:[-4,0],targetOffset:Mr},right:{points:["cl","cr"],overflow:qo,offset:[4,0],targetOffset:Mr},top:{points:["bc","tc"],overflow:Zo,offset:[0,-4],targetOffset:Mr},bottom:{points:["tc","bc"],overflow:Zo,offset:[0,4],targetOffset:Mr},topLeft:{points:["bl","tl"],overflow:Zo,offset:[0,-4],targetOffset:Mr},leftTop:{points:["tr","tl"],overflow:qo,offset:[-4,0],targetOffset:Mr},topRight:{points:["br","tr"],overflow:Zo,offset:[0,-4],targetOffset:Mr},rightTop:{points:["tl","tr"],overflow:qo,offset:[4,0],targetOffset:Mr},bottomRight:{points:["tr","br"],overflow:Zo,offset:[0,4],targetOffset:Mr},rightBottom:{points:["bl","br"],overflow:qo,offset:[4,0],targetOffset:Mr},bottomLeft:{points:["tl","bl"],overflow:Zo,offset:[0,4],targetOffset:Mr},leftBottom:{points:["br","bl"],overflow:qo,offset:[-4,0],targetOffset:Mr}},gI=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],hI=function(t,r){var n=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,f=d===void 0?"rc-tooltip":d,g=t.children,h=t.onVisibleChange,m=t.afterVisibleChange,p=t.transitionName,b=t.animation,y=t.motion,w=t.placement,S=w===void 0?"right":w,v=t.align,I=v===void 0?{}:v,N=t.destroyTooltipOnHide,O=N===void 0?!1:N,T=t.defaultVisible,P=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var x=t.overlay,$=t.id,k=t.showArrow,F=k===void 0?!0:k,j=t.classNames,z=t.styles,W=vt(t,gI),V=mg($),_=E.useRef(null);E.useImperativeHandle(r,function(){return _.current});var D=H({},W);"visible"in t&&(D.popupVisible=t.visible);var B=function(){return A.createElement(zg,{key:"content",prefixCls:f,id:V,bodyClassName:j?.body,overlayInnerStyle:H(H({},M),z?.body)},x)},L=function(){var Q=A.Children.only(g),q=Q?.props||{},U=H(H({},q),{},{"aria-describedby":x?V:null});return A.cloneElement(g,U)};return A.createElement(uI,le({popupClassName:J(n,j?.root),prefixCls:f,popup:B,action:i,builtinPlacements:pI,popupPlacement:S,ref:_,popupAlign:I,getPopupContainer:P,onPopupVisibleChange:h,afterPopupVisibleChange:m,popupTransitionName:p,popupAnimation:b,popupMotion:y,defaultPopupVisible:T,autoDestroy:O,mouseLeaveDelay:c,popupStyle:H(H({},u),z?.root),mouseEnterDelay:s,arrow:F},D),L())};const vI=E.forwardRef(hI);function bI(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,o=t/2,i=0,a=o,s=n*1/Math.sqrt(2),l=o-n*(1-1/Math.sqrt(2)),c=o-r*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),d=2*o-c,f=u,g=2*o-s,h=l,m=2*o-i,p=a,b=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),y=n*(Math.sqrt(2)-1),w=`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`,S=`path('M ${i} ${a} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${r} ${r} 0 0 1 ${d} ${f} L ${g} ${h} A ${n} ${n} 0 0 0 ${m} ${p} Z')`;return{arrowShadowWidth:b,arrowPath:S,arrowPolygon:w}}const yI=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${st(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},Gg=8;function Hg(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?Gg:n}}function Vs(e,t){return e?t:{}}function CI(e,t,r){const{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},yI(e,t,o)),{"&:before":{background:t}})]},Vs(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${st(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Vs(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${st(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Vs(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:i},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:i}})),Vs(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:i},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:i}}))}}function xI(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const o=n&&typeof n=="object"?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+r,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+r,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const Wg={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},wI={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},SI=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function EI(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:i}=e,a=t/2,s={},l=Hg({contentRadius:i,limitVerticalRadius:!0});return Object.keys(Wg).forEach(c=>{const u=n&&wI[c]||Wg[c],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(s[c]=d,SI.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-a-o;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=a+o;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-a-o;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=a+o;break}if(n)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-l.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":d.offset[0]=l.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":d.offset[1]=-l.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":d.offset[1]=l.arrowOffsetHorizontal*2-a;break}d.overflow=xI(c,l,t,r),d.htmlRegion="visibleFirst"}),s}const II=e=>{const{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:g}=e,h=t(a).add(g).add(f).equal(),m=t(a).mul(2).add(g).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},_o(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${r}-inner`]:{minWidth:m,minHeight:l,padding:`${st(e.calc(u).div(2).equal())} ${st(d)}`,color:`var(--ant-tooltip-color,${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(a,Gg)}},[`${r}-content`]:{position:"relative"}}),qx(e,(p,{darkColor:b})=>({[`&${r}-${p}`]:{[`${r}-inner`]:{backgroundColor:b},[`${r}-arrow`]:{"--antd-arrow-background-color":b}}}))),{"&-rtl":{direction:"rtl"}})},CI(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},AI=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Hg({contentRadius:e.borderRadius,limitVerticalRadius:!0})),bI(Yr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Ug=(e,t=!0)=>Vi("Tooltip",n=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=n,s=Yr(n,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[II(s),hE(n,"zoom-big-fast")]},AI,{resetStyle:!1,injectStyle:t})(e),NI=fo.map(e=>`${e}-inverse`);function OI(e,t=!0){return t?[].concat(ue(NI),ue(fo)).includes(e):fo.includes(e)}function Xg(e,t){const r=OI(t),n=J({[`${e}-${t}`]:t&&r}),o={},i={},a=vE(t).toRgb(),l=(.299*a.r+.587*a.g+.114*a.b)/255<.5?"#FFF":"#000";return t&&!r&&(o.background=t,o["--ant-tooltip-color"]=l,i["--antd-arrow-background-color"]=t),{className:n,overlayStyle:o,arrowStyle:i}}const TI=e=>{const{prefixCls:t,className:r,placement:n="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=A.useContext(Zt),l=s("tooltip",t),[c,u,d]=Ug(l),f=Xg(l,i),g=f.arrowStyle,h=Object.assign(Object.assign({},a),f.overlayStyle),m=J(u,d,l,`${l}-pure`,`${l}-placement-${n}`,r,f.className);return c(A.createElement("div",{className:m,style:g},A.createElement("div",{className:`${l}-arrow`}),A.createElement(zg,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))};var PI=function(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};const Bs=A.forwardRef((e,t)=>{var r,n;const{prefixCls:o,openClassName:i,getTooltipContainer:a,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:d,destroyTooltipOnHide:f,destroyOnHidden:g,arrow:h=!0,title:m,overlay:p,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:w=!0,motion:S,getPopupContainer:v,placement:I="top",mouseEnterDelay:N=.1,mouseLeaveDelay:O=.1,overlayStyle:T,rootClassName:P,overlayClassName:M,styles:x,classNames:$}=e,k=PI(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),F=!!h,[,j]=Hn(),{getPopupContainer:z,getPrefixCls:W,direction:V,className:_,style:D,classNames:B,styles:L}=xu("tooltip"),G=kr("Tooltip"),Q=A.useRef(null),q=()=>{var _e;(_e=Q.current)===null||_e===void 0||_e.forceAlign()};A.useImperativeHandle(t,()=>{var _e,De;return{forceAlign:q,forcePopupAlign:()=>{G.deprecated(!1,"forcePopupAlign","forceAlign"),q()},nativeElement:(_e=Q.current)===null||_e===void 0?void 0:_e.nativeElement,popupElement:(De=Q.current)===null||De===void 0?void 0:De.popupElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["destroyTooltipOnHide","destroyOnHidden"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"],["overlayStyle","styles={{ root: {} }}"],["overlayInnerStyle","styles={{ body: {} }}"],["overlayClassName",'classNames={{ root: "" }}']].forEach(([_e,De])=>{G.deprecated(!(_e in e),_e,De)}),process.env.NODE_ENV!=="production"&&G(!f||typeof f=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&G(!h||typeof h=="boolean"||!("arrowPointAtCenter"in h),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[U,K]=ys(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),Z=!m&&!p&&m!==0,se=_e=>{var De,Rt;K(Z?!1:_e),Z||((De=e.onOpenChange)===null||De===void 0||De.call(e,_e),(Rt=e.onVisibleChange)===null||Rt===void 0||Rt.call(e,_e))},pe=A.useMemo(()=>{var _e,De;let Rt=y;return typeof h=="object"&&(Rt=(De=(_e=h.pointAtCenter)!==null&&_e!==void 0?_e:h.arrowPointAtCenter)!==null&&De!==void 0?De:y),b||EI({arrowPointAtCenter:Rt,autoAdjustOverflow:w,arrowWidth:F?j.sizePopupArrow:0,borderRadius:j.borderRadius,offset:j.marginXXS})},[y,h,b,j]),Y=A.useMemo(()=>m===0?m:p||m||"",[p,m]),Ce=A.createElement(Q5,{space:!0},typeof Y=="function"?Y():Y),ne=W("tooltip",o),Ie=W(),ve=e["data-popover-inject"];let Ye=U;!("open"in e)&&!("visible"in e)&&Z&&(Ye=!1);const it=A.isValidElement(c)&&!$p(c)?c:A.createElement("span",null,c),Le=it.props,St=!Le.className||typeof Le.className=="string"?J(Le.className,i||`${ne}-open`):Le.className,[Fe,Me,bt]=Ug(ne,!ve),Te=Xg(ne,s),Mt=Te.arrowStyle,at=J(M,{[`${ne}-rtl`]:V==="rtl"},Te.className,P,Me,bt,_,B.root,$?.root),ir=J(B.body,$?.body),[Xt,jt]=aS("Tooltip",k.zIndex),fr=A.createElement(vI,Object.assign({},k,{zIndex:Xt,showArrow:F,placement:I,mouseEnterDelay:N,mouseLeaveDelay:O,prefixCls:ne,classNames:{root:at,body:ir},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mt),L.root),D),T),x?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},L.body),l),x?.body),Te.overlayStyle)},getTooltipContainer:v||a||z,ref:Q,builtinPlacements:pe,overlay:Ce,visible:Ye,onVisibleChange:se,afterVisibleChange:u??d,arrowContent:A.createElement("span",{className:`${ne}-arrow-content`}),motion:{motionName:wS(Ie,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:g??!!f}),Ye?zi(it,{className:St}):it);return Fe(A.createElement(ju.Provider,{value:jt},fr))});process.env.NODE_ENV!=="production"&&(Bs.displayName="Tooltip"),Bs._InternalPanelDoNotUseOrYouWillBeFired=TI;var kI=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],FI=E.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-checkbox":r,o=e.className,i=e.style,a=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,d=u===void 0?"checkbox":u,f=e.title,g=e.onChange,h=vt(e,kI),m=E.useRef(null),p=E.useRef(null),b=ys(c,{value:a}),y=ie(b,2),w=y[0],S=y[1];E.useImperativeHandle(t,function(){return{focus:function(O){var T;(T=m.current)===null||T===void 0||T.focus(O)},blur:function(){var O;(O=m.current)===null||O===void 0||O.blur()},input:m.current,nativeElement:p.current}});var v=J(n,o,X(X({},"".concat(n,"-checked"),w),"".concat(n,"-disabled"),s)),I=function(O){s||("checked"in e||S(O.target.checked),g?.({target:H(H({},e),{},{type:d,checked:O.target.checked}),stopPropagation:function(){O.stopPropagation()},preventDefault:function(){O.preventDefault()},nativeEvent:O.nativeEvent}))};return A.createElement("span",{className:v,title:f,style:i,ref:p},A.createElement("input",le({},h,{className:"".concat(n,"-input"),ref:m,onChange:I,disabled:s,checked:!!w,type:d})),A.createElement("span",{className:"".concat(n,"-inner")}))});function $I(e){const t=E.useRef(null),r=()=>{tn.cancel(t.current),t.current=null};return[()=>{r(),t.current=tn(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),r()),e?.(i)}]}const MI=e=>{const{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},_o(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},_o(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},_o(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:np(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${st(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${st(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
|
|
204
|
+
}`),o)}else Ti(o);return function(){Ti(o)}},[t,o])}var e5=!1;function t5(e){return e5}var ug=function(t){return t===!1?!1:!lr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},ed=A.forwardRef(function(e,t){var r=e.open,n=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,l=e.children,c=A.useState(r),u=ie(c,2),d=u[0],f=u[1],g=d||r;process.env.NODE_ENV!=="production"&&ht(lr()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),A.useEffect(function(){(s||r)&&f(r)},[r,s]);var h=A.useState(function(){return ug(o)}),m=ie(h,2),p=m[0],b=m[1];A.useEffect(function(){var x=ug(o);b(x??null)});var y=YE(g&&!p,i),w=ie(y,2),S=w[0],v=w[1],I=p??S;KE(n&&r&&lr()&&(I===S||I===document.body));var N=null;if(l&&Ii(l)&&t){var O=l;N=O.ref}var T=Ka(N,t);if(!g||!lr()||p===void 0)return null;var P=I===!1||t5(),M=l;return t&&(M=A.cloneElement(l,{ref:T})),A.createElement(sg.Provider,{value:v},P?M:zr.createPortal(M,I))});process.env.NODE_ENV!=="production"&&(ed.displayName="Portal");function r5(){var e=H({},A);return e.useId}var dg=0,fg=r5();const mg=fg?function(t){var r=fg();return t||(process.env.NODE_ENV==="test"?"test-id":r)}:function(t){var r=A.useState("ssr-id"),n=ie(r,2),o=n[0],i=n[1];return A.useEffect(function(){var a=dg;dg+=1,i("rc_unique_".concat(a))},[]),t||(process.env.NODE_ENV==="test"?"test-id":o)};var po="RC_FORM_INTERNAL_HOOKS",lt=function(){ht(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Wo=A.createContext({getFieldValue:lt,getFieldsValue:lt,getFieldError:lt,getFieldWarning:lt,getFieldsError:lt,isFieldsTouched:lt,isFieldTouched:lt,isFieldValidating:lt,isFieldsValidating:lt,resetFields:lt,setFields:lt,setFieldValue:lt,setFieldsValue:lt,validateFields:lt,submit:lt,getInternalHooks:function(){return lt(),{dispatch:lt,initEntityValue:lt,registerField:lt,useSubscribe:lt,setInitialValues:lt,destroyForm:lt,setCallbacks:lt,registerWatch:lt,getFields:lt,setValidateMessages:lt,setPreserve:lt,getInitialValue:lt}}}),Ds=A.createContext(null);function td(e){return e==null?[]:Array.isArray(e)?e:[e]}function n5(e){return e&&!!e._init}function rd(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var nd=rd();function o5(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function i5(e,t,r){if(Dc())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Ai(o,r.prototype),o}function od(e){var t=typeof Map=="function"?new Map:void 0;return od=function(n){if(n===null||!o5(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return i5(n,arguments,Ni(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ai(o,n)},od(e)}var a5=/%[sdj%]/g,pg=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(pg=function(t,r){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&r.every(function(n){return typeof n=="string"})&&console.warn(t,r)});function id(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Cr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=0,i=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var a=e.replace(a5,function(s){if(s==="%%")return"%";if(o>=i)return s;switch(s){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function s5(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ut(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||s5(t)&&typeof e=="string"&&!e)}function l5(e,t,r){var n=[],o=0,i=e.length;function a(s){n.push.apply(n,ue(s||[])),o++,o===i&&r(n)}e.forEach(function(s){t(s,a)})}function gg(e,t,r){var n=0,o=e.length;function i(a){if(a&&a.length){r(a);return}var s=n;n=n+1,s<o?t(e[s],i):r([])}i([])}function c5(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,ue(e[r]||[]))}),t}var hg=function(e){Gr(r,e);var t=Hr(r);function r(n,o){var i;return Tt(this,r),i=t.call(this,"Async Validation Error"),X(be(i),"errors",void 0),X(be(i),"fields",void 0),i.errors=n,i.fields=o,i}return Pt(r)}(od(Error));function u5(e,t,r,n,o){if(t.first){var i=new Promise(function(f,g){var h=function(b){return n(b),b.length?g(new hg(b,id(b))):f(o)},m=c5(e);gg(m,r,h)});return i.catch(function(f){return f}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(f,g){var h=function(p){if(u.push.apply(u,p),c++,c===l)return n(u),u.length?g(new hg(u,id(u))):f(o)};s.length||(n(u),f(o)),s.forEach(function(m){var p=e[m];a.indexOf(m)!==-1?gg(p,r,h):l5(p,r,h)})});return d.catch(function(f){return f}),d}function d5(e){return!!(e&&e.message!==void 0)}function f5(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function vg(e,t){return function(r){var n;return e.fullFields?n=f5(t,e.fullFields):n=t[r.field||e.fullField],d5(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function bg(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];we(n)==="object"&&we(e[r])==="object"?e[r]=H(H({},e[r]),n):e[r]=n}}return e}var Uo="enum",m5=function(t,r,n,o,i){t[Uo]=Array.isArray(t[Uo])?t[Uo]:[],t[Uo].indexOf(r)===-1&&o.push(Cr(i.messages[Uo],t.fullField,t[Uo].join(", ")))},p5=function(t,r,n,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||o.push(Cr(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(r)||o.push(Cr(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},g5=function(t,r,n,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=r,d=null,f=typeof r=="number",g=typeof r=="string",h=Array.isArray(r);if(f?d="number":g?d="string":h&&(d="array"),!d)return!1;h&&(u=r.length),g&&(u=r.replace(c,"_").length),a?u!==t.len&&o.push(Cr(i.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(Cr(i.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(Cr(i.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(Cr(i.messages[d].range,t.fullField,t.min,t.max))},yg=function(t,r,n,o,i,a){t.required&&(!n.hasOwnProperty(t.field)||Ut(r,a||t.type))&&o.push(Cr(i.messages.required,t.fullField))},_s;const h5=function(){if(_s)return _s;var e="[a-fA-F\\d:]",t=function(I){return I&&I.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",o=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(r,"$")),c=new RegExp("^".concat(a,"$")),u=function(I){return I&&I.exact?s:new RegExp("(?:".concat(t(I)).concat(r).concat(t(I),")|(?:").concat(t(I)).concat(a).concat(t(I),")"),"g")};u.v4=function(v){return v&&v.exact?l:new RegExp("".concat(t(v)).concat(r).concat(t(v)),"g")},u.v6=function(v){return v&&v.exact?c:new RegExp("".concat(t(v)).concat(a).concat(t(v)),"g")};var d="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",g=u.v4().source,h=u.v6().source,m="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",w='(?:[/?#][^\\s"]*)?',S="(?:".concat(d,"|www\\.)").concat(f,"(?:localhost|").concat(g,"|").concat(h,"|").concat(m).concat(p).concat(b,")").concat(y).concat(w);return _s=new RegExp("(?:^".concat(S,"$)"),"i"),_s};var Cg={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Wi={integer:function(t){return Wi.number(t)&&parseInt(t,10)===t},float:function(t){return Wi.number(t)&&!Wi.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return we(t)==="object"&&!Wi.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Cg.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(h5())},hex:function(t){return typeof t=="string"&&!!t.match(Cg.hex)}},v5=function(t,r,n,o,i){if(t.required&&r===void 0){yg(t,r,n,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?Wi[s](r)||o.push(Cr(i.messages.types[s],t.fullField,t.type)):s&&we(r)!==t.type&&o.push(Cr(i.messages.types[s],t.fullField,t.type))},b5=function(t,r,n,o,i){(/^\s+$/.test(r)||r==="")&&o.push(Cr(i.messages.whitespace,t.fullField))};const Re={required:yg,whitespace:b5,type:v5,range:g5,enum:m5,pattern:p5};var y5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i)}n(a)},C5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Re.required(t,r,o,a,i,"array"),r!=null&&(Re.type(t,r,o,a,i),Re.range(t,r,o,a,i))}n(a)},x5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),r!==void 0&&Re.type(t,r,o,a,i)}n(a)},w5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r,"date")&&!t.required)return n();if(Re.required(t,r,o,a,i),!Ut(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Re.type(t,l,o,a,i),l&&Re.range(t,l.getTime(),o,a,i)}}n(a)},S5="enum",E5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),r!==void 0&&Re[S5](t,r,o,a,i)}n(a)},I5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),r!==void 0&&(Re.type(t,r,o,a,i),Re.range(t,r,o,a,i))}n(a)},A5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),r!==void 0&&(Re.type(t,r,o,a,i),Re.range(t,r,o,a,i))}n(a)},N5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),r!==void 0&&Re.type(t,r,o,a,i)}n(a)},O5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),r!==void 0&&(Re.type(t,r,o,a,i),Re.range(t,r,o,a,i))}n(a)},T5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),r!==void 0&&Re.type(t,r,o,a,i)}n(a)},P5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r,"string")&&!t.required)return n();Re.required(t,r,o,a,i),Ut(r,"string")||Re.pattern(t,r,o,a,i)}n(a)},k5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),Ut(r)||Re.type(t,r,o,a,i)}n(a)},F5=function(t,r,n,o,i){var a=[],s=Array.isArray(r)?"array":we(r);Re.required(t,r,o,a,i,s),n(a)},$5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r,"string")&&!t.required)return n();Re.required(t,r,o,a,i,"string"),Ut(r,"string")||(Re.type(t,r,o,a,i),Re.range(t,r,o,a,i),Re.pattern(t,r,o,a,i),t.whitespace===!0&&Re.whitespace(t,r,o,a,i))}n(a)},ad=function(t,r,n,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ut(r,a)&&!t.required)return n();Re.required(t,r,o,s,i,a),Ut(r,a)||Re.type(t,r,o,s,i)}n(s)};const Ui={string:$5,method:N5,number:O5,boolean:x5,regexp:k5,integer:A5,float:I5,array:C5,object:T5,enum:E5,pattern:P5,date:w5,url:ad,hex:ad,email:ad,required:F5,any:y5};var Xi=function(){function e(t){Tt(this,e),X(this,"rules",null),X(this,"_messages",nd),this.define(t)}return Pt(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(we(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var i=r[o];n.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(r){return r&&(this._messages=bg(rd(),r)),this._messages}},{key:"validate",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=r,s=o,l=i;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function c(h){var m=[],p={};function b(w){if(Array.isArray(w)){var S;m=(S=m).concat.apply(S,ue(w))}else m.push(w)}for(var y=0;y<h.length;y++)b(h[y]);m.length?(p=id(m),l(m,p)):l(null,a)}if(s.messages){var u=this.messages();u===nd&&(u=rd()),bg(u,s.messages),s.messages=u}else s.messages=this.messages();var d={},f=s.keys||Object.keys(this.rules);f.forEach(function(h){var m=n.rules[h],p=a[h];m.forEach(function(b){var y=b;typeof y.transform=="function"&&(a===r&&(a=H({},a)),p=a[h]=y.transform(p),p!=null&&(y.type=y.type||(Array.isArray(p)?"array":we(p)))),typeof y=="function"?y={validator:y}:y=H({},y),y.validator=n.getValidationMethod(y),y.validator&&(y.field=h,y.fullField=y.fullField||h,y.type=n.getType(y),d[h]=d[h]||[],d[h].push({rule:y,value:p,source:a,field:h}))})});var g={};return u5(d,s,function(h,m){var p=h.rule,b=(p.type==="object"||p.type==="array")&&(we(p.fields)==="object"||we(p.defaultField)==="object");b=b&&(p.required||!p.required&&h.value),p.field=h.field;function y(N,O){return H(H({},O),{},{fullField:"".concat(p.fullField,".").concat(N),fullFields:p.fullFields?[].concat(ue(p.fullFields),[N]):[N]})}function w(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],O=Array.isArray(N)?N:[N];!s.suppressWarning&&O.length&&e.warning("async-validator:",O),O.length&&p.message!==void 0&&(O=[].concat(p.message));var T=O.map(vg(p,a));if(s.first&&T.length)return g[p.field]=1,m(T);if(!b)m(T);else{if(p.required&&!h.value)return p.message!==void 0?T=[].concat(p.message).map(vg(p,a)):s.error&&(T=[s.error(p,Cr(s.messages.required,p.field))]),m(T);var P={};p.defaultField&&Object.keys(h.value).map(function($){P[$]=p.defaultField}),P=H(H({},P),h.rule.fields);var M={};Object.keys(P).forEach(function($){var k=P[$],F=Array.isArray(k)?k:[k];M[$]=F.map(y.bind(null,$))});var x=new e(M);x.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),x.validate(h.value,h.rule.options||s,function($){var k=[];T&&T.length&&k.push.apply(k,ue(T)),$&&$.length&&k.push.apply(k,ue($)),m(k.length?k:null)})}}var S;if(p.asyncValidator)S=p.asyncValidator(p,h.value,w,h.source,s);else if(p.validator){try{S=p.validator(p,h.value,w,h.source,s)}catch(N){var v,I;(v=(I=console).error)===null||v===void 0||v.call(I,N),s.suppressValidatorError||setTimeout(function(){throw N},0),w(N.message)}S===!0?w():S===!1?w(typeof p.message=="function"?p.message(p.fullField||p.field):p.message||"".concat(p.fullField||p.field," fails")):S instanceof Array?w(S):S instanceof Error&&w(S.message)}S&&S.then&&S.then(function(){return w()},function(N){return w(N)})},function(h){c(h)},a)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Ui.hasOwnProperty(r.type))throw new Error(Cr("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),o=n.indexOf("message");return o!==-1&&n.splice(o,1),n.length===1&&n[0]==="required"?Ui.required:Ui[this.getType(r)]||void 0}}]),e}();X(Xi,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ui[t]=r}),X(Xi,"warning",pg),X(Xi,"messages",nd),X(Xi,"validators",Ui);var xr="'${name}' is not a valid ${type}",xg={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:xr,method:xr,array:xr,object:xr,number:xr,date:xr,boolean:xr,integer:xr,float:xr,regexp:xr,email:xr,url:xr,hex:xr},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},wg=Xi;function M5(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var Sg="CODE_LOGIC_ERROR";function sd(e,t,r,n,o){return ld.apply(this,arguments)}function ld(){return ld=ur(ze().mark(function e(t,r,n,o,i){var a,s,l,c,u,d,f,g,h;return ze().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return a=H({},n),delete a.ruleIndex,wg.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(Sg)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new wg(X({},t,[a])),u=$o(xg,o.validateMessages),c.messages(u),d=[],p.prev=10,p.next=13,Promise.resolve(c.validate(X({},t,r),H({},o)));case 13:p.next=18;break;case 15:p.prev=15,p.t0=p.catch(10),p.t0.errors&&(d=p.t0.errors.map(function(b,y){var w=b.message,S=w===Sg?u.default:w;return A.isValidElement(S)?A.cloneElement(S,{key:"error_".concat(y)}):S}));case 18:if(!(!d.length&&l)){p.next=23;break}return p.next=21,Promise.all(r.map(function(b,y){return sd("".concat(t,".").concat(y),b,l,o,i)}));case 21:return f=p.sent,p.abrupt("return",f.reduce(function(b,y){return[].concat(ue(b),ue(y))},[]));case 23:return g=H(H({},n),{},{name:t,enum:(n.enum||[]).join(", ")},i),h=d.map(function(b){return typeof b=="string"?M5(b,g):b}),p.abrupt("return",h);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),ld.apply(this,arguments)}function j5(e,t,r,n,o,i){var a=e.join("."),s=r.map(function(u,d){var f=u.validator,g=H(H({},u),{},{ruleIndex:d});return f&&(g.validator=function(h,m,p){var b=!1,y=function(){for(var v=arguments.length,I=new Array(v),N=0;N<v;N++)I[N]=arguments[N];Promise.resolve().then(function(){ht(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||p.apply(void 0,I)})},w=f(h,m,y);b=w&&typeof w.then=="function"&&typeof w.catch=="function",ht(b,"`callback` is deprecated. Please return a promise instead."),b&&w.then(function(){p()}).catch(function(S){p(S||" ")})}),g}).sort(function(u,d){var f=u.warningOnly,g=u.ruleIndex,h=d.warningOnly,m=d.ruleIndex;return!!f==!!h?g-m:f?1:-1}),l;if(o===!0)l=new Promise(function(){var u=ur(ze().mark(function d(f,g){var h,m,p;return ze().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:h=0;case 1:if(!(h<s.length)){y.next=12;break}return m=s[h],y.next=5,sd(a,t,m,n,i);case 5:if(p=y.sent,!p.length){y.next=9;break}return g([{errors:p,rule:m}]),y.abrupt("return");case 9:h+=1,y.next=1;break;case 12:f([]);case 13:case"end":return y.stop()}},d)}));return function(d,f){return u.apply(this,arguments)}}());else{var c=s.map(function(u){return sd(a,t,u,n,i).then(function(d){return{errors:d,rule:u}})});l=(o?L5(c):R5(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function R5(e){return cd.apply(this,arguments)}function cd(){return cd=ur(ze().mark(function e(t){return ze().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,ue(o));return a}));case 1:case"end":return n.stop()}},e)})),cd.apply(this,arguments)}function L5(e){return ud.apply(this,arguments)}function ud(){return ud=ur(ze().mark(function e(t){var r;return ze().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return r=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(s){s.errors.length&&i([s]),r+=1,r===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),ud.apply(this,arguments)}function kt(e){return td(e)}function Eg(e,t){var r={};return t.forEach(function(n){var o=nn(e,n);r=Xr(r,n,o)}),r}function Xo(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return Ig(t,n,r)})}function Ig(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,o){return e[o]===n})}function D5(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||we(e)!=="object"||we(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),o=new Set([].concat(r,n));return ue(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function _5(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&we(t.target)==="object"&&e in t.target?t.target[e]:t}function Ag(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var o=e[t],i=t-r;return i>0?[].concat(ue(e.slice(0,r)),[o],ue(e.slice(r,t)),ue(e.slice(t+1,n))):i<0?[].concat(ue(e.slice(0,t)),ue(e.slice(t+1,r+1)),[o],ue(e.slice(r+1,n))):e}var V5=["name"],$r=[];function dd(e,t,r,n,o,i){return typeof e=="function"?e(t,r,"source"in i?{source:i.source}:{}):n!==o}var fd=function(e){Gr(r,e);var t=Hr(r);function r(n){var o;if(Tt(this,r),o=t.call(this,n),X(be(o),"state",{resetCount:0}),X(be(o),"cancelRegisterFunc",null),X(be(o),"mounted",!1),X(be(o),"touched",!1),X(be(o),"dirty",!1),X(be(o),"validatePromise",void 0),X(be(o),"prevValidating",void 0),X(be(o),"errors",$r),X(be(o),"warnings",$r),X(be(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,d=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,kt(d)),o.cancelRegisterFunc=null}),X(be(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,d=u.prefixName,f=d===void 0?[]:d;return c!==void 0?[].concat(ue(f),ue(c)):[]}),X(be(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(f){return typeof f=="function"?f(d):f})}),X(be(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),X(be(o),"metaCache",null),X(be(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=H(H({},o.getMeta()),{},{destroy:l});Gc(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),X(be(o),"onStoreChange",function(l,c,u){var d=o.props,f=d.shouldUpdate,g=d.dependencies,h=g===void 0?[]:g,m=d.onReset,p=u.store,b=o.getNamePath(),y=o.getValue(l),w=o.getValue(p),S=c&&Xo(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&!Gc(y,w)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=$r,o.warnings=$r,o.triggerMetaEvent()),u.type){case"reset":if(!c||S){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=$r,o.warnings=$r,o.triggerMetaEvent(),m?.(),o.refresh();return}break;case"remove":{if(f&&dd(f,l,p,y,w,u)){o.reRender();return}break}case"setField":{var v=u.data;if(S){"touched"in v&&(o.touched=v.touched),"validating"in v&&!("originRCField"in v)&&(o.validatePromise=v.validating?Promise.resolve([]):null),"errors"in v&&(o.errors=v.errors||$r),"warnings"in v&&(o.warnings=v.warnings||$r),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in v&&Xo(c,b,!0)){o.reRender();return}if(f&&!b.length&&dd(f,l,p,y,w,u)){o.reRender();return}break}case"dependenciesUpdate":{var I=h.map(kt);if(I.some(function(N){return Xo(u.relatedFields,N)})){o.reRender();return}break}default:if(S||(!h.length||b.length||f)&&dd(f,l,p,y,w,u)){o.reRender();return}break}f===!0&&o.reRender()}),X(be(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),d=l||{},f=d.triggerName,g=d.validateOnly,h=g===void 0?!1:g,m=Promise.resolve().then(ur(ze().mark(function p(){var b,y,w,S,v,I,N;return ze().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(o.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,w=y===void 0?!1:y,S=b.messageVariables,v=b.validateDebounce,I=o.getRules(),f&&(I=I.filter(function(P){return P}).filter(function(P){var M=P.validateTrigger;if(!M)return!0;var x=td(M);return x.includes(f)})),!(v&&f)){T.next=10;break}return T.next=8,new Promise(function(P){setTimeout(P,v)});case 8:if(o.validatePromise===m){T.next=10;break}return T.abrupt("return",[]);case 10:return N=j5(c,u,I,l,w,S),N.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$r;if(o.validatePromise===m){var M;o.validatePromise=null;var x=[],$=[];(M=P.forEach)===null||M===void 0||M.call(P,function(k){var F=k.rule.warningOnly,j=k.errors,G=j===void 0?$r:j;F?$.push.apply($,ue(G)):x.push.apply(x,ue(G))}),o.errors=x,o.warnings=$,o.triggerMetaEvent(),o.reRender()}}),T.abrupt("return",N);case 13:case"end":return T.stop()}},p)})));return h||(o.validatePromise=m,o.dirty=!0,o.errors=$r,o.warnings=$r,o.triggerMetaEvent(),o.reRender()),m}),X(be(o),"isFieldValidating",function(){return!!o.validatePromise}),X(be(o),"isFieldTouched",function(){return o.touched}),X(be(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(po),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),X(be(o),"getErrors",function(){return o.errors}),X(be(o),"getWarnings",function(){return o.warnings}),X(be(o),"isListField",function(){return o.props.isListField}),X(be(o),"isList",function(){return o.props.isList}),X(be(o),"isPreserve",function(){return o.props.preserve}),X(be(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),X(be(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return H(H({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=Za(l);return u.length!==1||!A.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),X(be(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return nn(l||c(!0),u)}),X(be(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,d=c.trigger,f=c.validateTrigger,g=c.getValueFromEvent,h=c.normalize,m=c.valuePropName,p=c.getValueProps,b=c.fieldContext,y=f!==void 0?f:b.validateTrigger,w=o.getNamePath(),S=b.getInternalHooks,v=b.getFieldsValue,I=S(po),N=I.dispatch,O=o.getValue(),T=p||function(k){return X({},m,k)},P=l[d],M=u!==void 0?T(O):{};process.env.NODE_ENV!=="production"&&M&&Object.keys(M).forEach(function(k){ht(typeof M[k]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(k,")"))});var x=H(H({},l),M);x[d]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var k,F=arguments.length,j=new Array(F),G=0;G<F;G++)j[G]=arguments[G];g?k=g.apply(void 0,j):k=_5.apply(void 0,[m].concat(j)),h&&(k=h(k,O,v(!0))),k!==O&&N({type:"updateValue",namePath:w,value:k}),P&&P.apply(void 0,j)};var $=td(y||[]);return $.forEach(function(k){var F=x[k];x[k]=function(){F&&F.apply(void 0,arguments);var j=o.props.rules;j&&j.length&&N({type:"validateField",namePath:w,triggerName:k})}}),x}),n.fieldContext){var i=n.fieldContext.getInternalHooks,a=i(po),s=a.initEntityValue;s(be(o))}return o}return Pt(r,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s(po),c=l.registerField;this.cancelRegisterFunc=c(this)}i===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,i=this.props.children,a=this.getOnlyChild(i),s=a.child,l=a.isFunction,c;return l?c=s:A.isValidElement(s)?c=A.cloneElement(s,this.getControlled(s.props)):(ht(!s,"`children` of Field is not validate ReactElement."),c=s),A.createElement(A.Fragment,{key:o},c)}}]),r}(A.Component);X(fd,"contextType",Wo),X(fd,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Ng(e){var t,r=e.name,n=vt(e,V5),o=A.useContext(Wo),i=A.useContext(Ds),a=r!==void 0?kt(r):void 0,s=(t=n.isListField)!==null&&t!==void 0?t:!!i,l="keep";return s||(l="_".concat((a||[]).join("_"))),process.env.NODE_ENV!=="production"&&n.preserve===!1&&s&&a.length<=1&&ht(!1,"`preserve` should not apply on Form.List fields."),A.createElement(fd,le({key:l,name:a,isListField:s},n,{fieldContext:o}))}function B5(e){var t=e.name,r=e.initialValue,n=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,s=A.useContext(Wo),l=A.useContext(Ds),c=A.useRef({keys:[],id:0}),u=c.current,d=A.useMemo(function(){var m=kt(s.prefixName)||[];return[].concat(ue(m),ue(kt(t)))},[s.prefixName,t]),f=A.useMemo(function(){return H(H({},s),{},{prefixName:d})},[s,d]),g=A.useMemo(function(){return{getKey:function(p){var b=d.length,y=p[b];return[u.keys[y],p.slice(b+1)]}}},[d]);if(typeof n!="function")return ht(!1,"Form.List only accepts function as children."),null;var h=function(p,b,y){var w=y.source;return w==="internal"?!1:p!==b};return A.createElement(Ds.Provider,{value:g},A.createElement(Wo.Provider,{value:f},A.createElement(Ng,{name:[],shouldUpdate:h,rules:o,validateTrigger:i,initialValue:r,isList:!0,isListField:a??!!l},function(m,p){var b=m.value,y=b===void 0?[]:b,w=m.onChange,S=s.getFieldValue,v=function(){var T=S(d||[]);return T||[]},I={add:function(T,P){var M=v();P>=0&&P<=M.length?(u.keys=[].concat(ue(u.keys.slice(0,P)),[u.id],ue(u.keys.slice(P))),w([].concat(ue(M.slice(0,P)),[T],ue(M.slice(P))))):(process.env.NODE_ENV!=="production"&&(P<0||P>M.length)&&ht(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(ue(u.keys),[u.id]),w([].concat(ue(M),[T]))),u.id+=1},remove:function(T){var P=v(),M=new Set(Array.isArray(T)?T:[T]);M.size<=0||(u.keys=u.keys.filter(function(x,$){return!M.has($)}),w(P.filter(function(x,$){return!M.has($)})))},move:function(T,P){if(T!==P){var M=v();T<0||T>=M.length||P<0||P>=M.length||(u.keys=Ag(u.keys,T,P),w(Ag(M,T,P)))}}},N=y||[];return Array.isArray(N)||(N=[],process.env.NODE_ENV!=="production"&&ht(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),n(N.map(function(O,T){var P=u.keys[T];return P===void 0&&(u.keys[T]=u.id,P=u.keys[T],u.id+=1),{name:T,key:P,isListField:!0}}),I,p)})))}function z5(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&i(n),o(n))})})}):Promise.resolve([])}var Og="__@field_split__";function md(e){return e.map(function(t){return"".concat(we(t),":").concat(t)}).join(Og)}var Yo=function(){function e(){Tt(this,e),X(this,"kvs",new Map)}return Pt(e,[{key:"set",value:function(r,n){this.kvs.set(md(r),n)}},{key:"get",value:function(r){return this.kvs.get(md(r))}},{key:"update",value:function(r,n){var o=this.get(r),i=n(o);i?this.set(r,i):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(md(r))}},{key:"map",value:function(r){return ue(this.kvs.entries()).map(function(n){var o=ie(n,2),i=o[0],a=o[1],s=i.split(Og);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=ie(c,3),d=u[1],f=u[2];return d==="number"?Number(f):f}),value:a})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var o=n.key,i=n.value;return r[o.join(".")]=i,null}),r}}]),e}(),G5=["name"],H5=Pt(function e(t){var r=this;Tt(this,e),X(this,"formHooked",!1),X(this,"forceRootUpdate",void 0),X(this,"subscribable",!0),X(this,"store",{}),X(this,"fieldEntities",[]),X(this,"initialValues",{}),X(this,"callbacks",{}),X(this,"validateMessages",null),X(this,"preserve",null),X(this,"lastValidatePromise",null),X(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),X(this,"getInternalHooks",function(n){return n===po?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(ht(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),X(this,"useSubscribe",function(n){r.subscribable=n}),X(this,"prevWithoutPreserves",null),X(this,"setInitialValues",function(n,o){if(r.initialValues=n||{},o){var i,a=$o(n,r.store);(i=r.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=Xr(a,l,nn(n,l))}),r.prevWithoutPreserves=null,r.updateStore(a)}}),X(this,"destroyForm",function(n){if(n)r.updateStore({});else{var o=new Yo;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),r.prevWithoutPreserves=o}}),X(this,"getInitialValue",function(n){var o=nn(r.initialValues,n);return n.length?$o(o):o}),X(this,"setCallbacks",function(n){r.callbacks=n}),X(this,"setValidateMessages",function(n){r.validateMessages=n}),X(this,"setPreserve",function(n){r.preserve=n}),X(this,"watchList",[]),X(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(o){return o!==n})}}),X(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var o=r.getFieldsValue(),i=r.getFieldsValue(!0);r.watchList.forEach(function(a){a(o,i,n)})}}),X(this,"timeoutId",null),X(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!r.timeoutId&&typeof window<"u"&&(r.timeoutId=setTimeout(function(){r.timeoutId=null,r.formHooked||ht(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),X(this,"updateStore",function(n){r.store=n}),X(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(o){return o.getNamePath().length}):r.fieldEntities}),X(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Yo;return r.getFieldEntities(n).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),X(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var o=r.getFieldsMap(!0);return n.map(function(i){var a=kt(i);return o.get(a)||{INVALIDATE_NAME_PATH:kt(i)}})}),X(this,"getFieldsValue",function(n,o){r.warningUnhooked();var i,a,s;if(n===!0||Array.isArray(n)?(i=n,a=o):n&&we(n)==="object"&&(s=n.strict,a=n.filter),i===!0&&!a)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var d,f,g="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,m;if((h=(m=u).isList)!==null&&h!==void 0&&h.call(m))return}else if(!i&&(d=(f=u).isListField)!==null&&d!==void 0&&d.call(f))return;if(!a)c.push(g);else{var p="getMeta"in u?u.getMeta():null;a(p)&&c.push(g)}}),Eg(r.store,c.map(kt))}),X(this,"getFieldValue",function(n){r.warningUnhooked();var o=kt(n);return nn(r.store,o)}),X(this,"getFieldsError",function(n){r.warningUnhooked();var o=r.getFieldEntitiesForNamePathList(n);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:kt(n[a]),errors:[],warnings:[]}})}),X(this,"getFieldError",function(n){r.warningUnhooked();var o=kt(n),i=r.getFieldsError([o])[0];return i.errors}),X(this,"getFieldWarning",function(n){r.warningUnhooked();var o=kt(n),i=r.getFieldsError([o])[0];return i.warnings}),X(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(a)?(l=a.map(kt),c=!1):(l=null,c=a):(l=a.map(kt),c=s);var u=r.getFieldEntities(!0),d=function(p){return p.isFieldTouched()};if(!l)return c?u.every(function(m){return d(m)||m.isList()}):u.some(d);var f=new Yo;l.forEach(function(m){f.set(m,[])}),u.forEach(function(m){var p=m.getNamePath();l.forEach(function(b){b.every(function(y,w){return p[w]===y})&&f.update(b,function(y){return[].concat(ue(y),[m])})})});var g=function(p){return p.some(d)},h=f.map(function(m){var p=m.value;return p});return c?h.every(g):h.some(g)}),X(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),X(this,"isFieldsValidating",function(n){r.warningUnhooked();var o=r.getFieldEntities();if(!n)return o.some(function(a){return a.isFieldValidating()});var i=n.map(kt);return o.some(function(a){var s=a.getNamePath();return Xo(i,s)&&a.isFieldValidating()})}),X(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),X(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Yo,i=r.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=o.get(u)||new Set;d.add({entity:l,value:c}),o.set(u,d)}});var a=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var f=u.getNamePath(),g=r.getInitialValue(f);if(g!==void 0)ht(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var h=o.get(f);if(h&&h.size>1)ht(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var m=r.getFieldValue(f),p=u.isListField();!p&&(!n.skipExist||m===void 0)&&r.updateStore(Xr(r.store,f,ue(h)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,ue(ue(c).map(function(d){return d.entity})))}})):s=i,a(s)}),X(this,"resetFields",function(n){r.warningUnhooked();var o=r.store;if(!n){r.updateStore($o(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(o,null,{type:"reset"}),r.notifyWatch();return}var i=n.map(kt);i.forEach(function(a){var s=r.getInitialValue(a);r.updateStore(Xr(r.store,a,s))}),r.resetWithFieldInitialValue({namePathList:i}),r.notifyObservers(o,i,{type:"reset"}),r.notifyWatch(i)}),X(this,"setFields",function(n){r.warningUnhooked();var o=r.store,i=[];n.forEach(function(a){var s=a.name,l=vt(a,G5),c=kt(s);i.push(c),"value"in l&&r.updateStore(Xr(r.store,c,l.value)),r.notifyObservers(o,[c],{type:"setField",data:a})}),r.notifyWatch(i)}),X(this,"getFields",function(){var n=r.getFieldEntities(!0),o=n.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=H(H({},s),{},{name:a,value:r.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),X(this,"initEntityValue",function(n){var o=n.props.initialValue;if(o!==void 0){var i=n.getNamePath(),a=nn(r.store,i);a===void 0&&r.updateStore(Xr(r.store,i,o))}}),X(this,"isMergedPreserve",function(n){var o=n!==void 0?n:r.preserve;return o??!0}),X(this,"registerField",function(n){r.fieldEntities.push(n);var o=n.getNamePath();if(r.notifyWatch([o]),n.props.initialValue!==void 0){var i=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(i,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(d){return d!==n}),!r.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:r.getInitialValue(o);if(o.length&&r.getFieldValue(o)!==c&&r.fieldEntities.every(function(d){return!Ig(d.getNamePath(),o)})){var u=r.store;r.updateStore(Xr(u,o,c,!0)),r.notifyObservers(u,[o],{type:"remove"}),r.triggerDependenciesUpdate(u,o)}}r.notifyWatch([o])}}),X(this,"dispatch",function(n){switch(n.type){case"updateValue":{var o=n.namePath,i=n.value;r.updateValue(o,i);break}case"validateField":{var a=n.namePath,s=n.triggerName;r.validateFields([a],{triggerName:s});break}}}),X(this,"notifyObservers",function(n,o,i){if(r.subscribable){var a=H(H({},i),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,o,a)})}else r.forceRootUpdate()}),X(this,"triggerDependenciesUpdate",function(n,o){var i=r.getDependencyChildrenFields(o);return i.length&&r.validateFields(i),r.notifyObservers(n,i,{type:"dependenciesUpdate",relatedFields:[o].concat(ue(i))}),i}),X(this,"updateValue",function(n,o){var i=kt(n),a=r.store;r.updateStore(Xr(r.store,i,o)),r.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),r.notifyWatch([i]);var s=r.triggerDependenciesUpdate(a,i),l=r.callbacks.onValuesChange;if(l){var c=Eg(r.store,[i]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([i].concat(ue(s)))}),X(this,"setFieldsValue",function(n){r.warningUnhooked();var o=r.store;if(n){var i=$o(r.store,n);r.updateStore(i)}r.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),X(this,"setFieldValue",function(n,o){r.setFields([{name:n,value:o,errors:[],warnings:[]}])}),X(this,"getDependencyChildrenFields",function(n){var o=new Set,i=[],a=new Yo;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=kt(u);a.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(l),f})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(d){if(!o.has(d)){o.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(i.push(f),l(f))}})};return s(n),i}),X(this,"triggerOnFieldsChange",function(n,o){var i=r.callbacks.onFieldsChange;if(i){var a=r.getFields();if(o){var s=new Yo;o.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return Xo(n,u)});l.length&&i(l,a)}}),X(this,"validateFields",function(n,o){r.warningUnhooked();var i,a;Array.isArray(n)||typeof n=="string"||typeof o=="string"?(i=n,a=o):a=n;var s=!!i,l=s?i.map(kt):[],c=[],u=String(Date.now()),d=new Set,f=a||{},g=f.recursive,h=f.dirty;r.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(h&&!y.isFieldDirty())){var w=y.getNamePath();if(d.add(w.join(u)),!s||Xo(l,w,g)){var S=y.validateRules(H({validateMessages:H(H({},xg),r.validateMessages)},a));c.push(S.then(function(){return{name:w,errors:[],warnings:[]}}).catch(function(v){var I,N=[],O=[];return(I=v.forEach)===null||I===void 0||I.call(v,function(T){var P=T.rule.warningOnly,M=T.errors;P?O.push.apply(O,ue(M)):N.push.apply(N,ue(M))}),N.length?Promise.reject({name:w,errors:N,warnings:O}):{name:w,errors:N,warnings:O}}))}}});var m=z5(c);r.lastValidatePromise=m,m.catch(function(y){return y}).then(function(y){var w=y.map(function(S){var v=S.name;return v});r.notifyObservers(r.store,w,{type:"validateFinish"}),r.triggerOnFieldsChange(w,y)});var p=m.then(function(){return r.lastValidatePromise===m?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var w=y.filter(function(S){return S&&S.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:w,outOfDate:r.lastValidatePromise!==m})});p.catch(function(y){return y});var b=l.filter(function(y){return d.has(y.join(u))});return r.triggerOnFieldsChange(b),p}),X(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var o=r.callbacks.onFinish;if(o)try{o(n)}catch(i){console.error(i)}}).catch(function(n){var o=r.callbacks.onFinishFailed;o&&o(n)})}),this.forceRootUpdate=t});function Tg(e){var t=A.useRef(),r=A.useState({}),n=ie(r,2),o=n[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new H5(i);t.current=a.getForm()}return[t.current]}var pd=A.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),W5=function(t){var r=t.validateMessages,n=t.onFormChange,o=t.onFormFinish,i=t.children,a=A.useContext(pd),s=A.useRef({});return A.createElement(pd.Provider,{value:H(H({},a),{},{validateMessages:H(H({},a.validateMessages),r),triggerFormChange:function(c,u){n&&n(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=H(H({},s.current),{},X({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=H({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},i)},U5=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],X5=function(t,r){var n=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,f=t.validateTrigger,g=f===void 0?"onChange":f,h=t.onValuesChange,m=t.onFieldsChange,p=t.onFinish,b=t.onFinishFailed,y=t.clearOnDestroy,w=vt(t,U5),S=A.useRef(null),v=A.useContext(pd),I=Tg(a),N=ie(I,1),O=N[0],T=O.getInternalHooks(po),P=T.useSubscribe,M=T.setInitialValues,x=T.setCallbacks,$=T.setValidateMessages,k=T.setPreserve,F=T.destroyForm;A.useImperativeHandle(r,function(){return H(H({},O),{},{nativeElement:S.current})}),A.useEffect(function(){return v.registerForm(n,O),function(){v.unregisterForm(n)}},[v,O,n]),$(H(H({},v.validateMessages),d)),x({onValuesChange:h,onFieldsChange:function(z){if(v.triggerFormChange(n,z),m){for(var Q=arguments.length,q=new Array(Q>1?Q-1:0),U=1;U<Q;U++)q[U-1]=arguments[U];m.apply(void 0,[z].concat(q))}},onFinish:function(z){v.triggerFormFinish(n,z),p&&p(z)},onFinishFailed:b}),k(s);var j=A.useRef(null);M(o,!j.current),j.current||(j.current=!0),A.useEffect(function(){return function(){return F(y)}},[]);var G,W=typeof l=="function";if(W){var V=O.getFieldsValue(!0);G=l(V,O)}else G=l;P(!W);var _=A.useRef();A.useEffect(function(){D5(_.current||[],i||[])||O.setFields(i||[]),_.current=i},[i,O]);var D=A.useMemo(function(){return H(H({},O),{},{validateTrigger:g})},[O,g]),B=A.createElement(Ds.Provider,{value:null},A.createElement(Wo.Provider,{value:D},G));return u===!1?B:A.createElement(u,le({},w,{ref:S,onSubmit:function(z){z.preventDefault(),z.stopPropagation(),O.submit()},onReset:function(z){var Q;z.preventDefault(),O.resetFields(),(Q=w.onReset)===null||Q===void 0||Q.call(w,z)}}),B)};function Pg(e){try{return JSON.stringify(e)}catch{return Math.random()}}var Y5=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),r=E.useRef(t);ht(r.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function J5(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],i=o===void 0?{}:o,a=n5(i)?{form:i}:i,s=a.form,l=E.useState(),c=ie(l,2),u=c[0],d=c[1],f=E.useMemo(function(){return Pg(u)},[u]),g=E.useRef(f);g.current=f;var h=E.useContext(Wo),m=s||h,p=m&&m._init;process.env.NODE_ENV!=="production"&&ht(t.length===2?s?p:!0:p,"useWatch requires a form instance since it can not auto detect from context.");var b=kt(n),y=E.useRef(b);return y.current=b,Y5(b),E.useEffect(function(){if(p){var w=m.getFieldsValue,S=m.getInternalHooks,v=S(po),I=v.registerWatch,N=function(M,x){var $=a.preserve?x:M;return typeof n=="function"?n($):nn($,y.current)},O=I(function(P,M){var x=N(P,M),$=Pg(x);g.current!==$&&(g.current=$,d(x))}),T=N(w(),w(!0));return u!==T&&d(T),O}},[p]),u}var Z5=A.forwardRef(X5),Yi=Z5;Yi.FormProvider=W5,Yi.Field=Ng,Yi.List=B5,Yi.useForm=Tg,Yi.useWatch=J5;const Vs=A.createContext({});process.env.NODE_ENV!=="production"&&(Vs.displayName="FormItemInputContext");const q5=({children:e,status:t,override:r})=>{const n=A.useContext(Vs),o=A.useMemo(()=>{const i=Object.assign({},n);return r&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,r,n]);return A.createElement(Vs.Provider,{value:o},e)},Q5=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let o=n;return r&&(o=E.createElement(q5,{override:!0,status:!0},o)),t&&(o=E.createElement(PS,null,o)),o},K5=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e?.substr(0,4))};function eI(e){var t=e.prefixCls,r=e.align,n=e.arrow,o=e.arrowPos,i=n||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,u=o.y,d=u===void 0?0:u,f=A.useRef();if(!r||!r.points)return null;var g={position:"absolute"};if(r.autoArrow!==!1){var h=r.points[0],m=r.points[1],p=h[0],b=h[1],y=m[0],w=m[1];p===y||!["t","b"].includes(p)?g.top=d:p==="t"?g.top=0:g.bottom=0,b===w||!["l","r"].includes(b)?g.left=c:b==="l"?g.left=0:g.right=0}return A.createElement("div",{ref:f,className:J("".concat(t,"-arrow"),a),style:g},s)}function tI(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,i=e.motion;return o?A.createElement(mo,le({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var s=a.className;return A.createElement("div",{style:{zIndex:n},className:J("".concat(t,"-mask"),s)})}):null}var kg=A.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(kg.displayName="PopupContent");var Fg=A.forwardRef(function(e,t){var r=e.popup,n=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,g=e.arrow,h=e.arrowPos,m=e.align,p=e.motion,b=e.maskMotion,y=e.forceRender,w=e.getPopupContainer,S=e.autoDestroy,v=e.portal,I=e.zIndex,N=e.onMouseEnter,O=e.onMouseLeave,T=e.onPointerEnter,P=e.onPointerDownCapture,M=e.ready,x=e.offsetX,$=e.offsetY,k=e.offsetR,F=e.offsetB,j=e.onAlign,G=e.onPrepare,W=e.stretch,V=e.targetWidth,_=e.targetHeight,D=typeof r=="function"?r():r,B=l||c,L=w?.length>0,z=A.useState(!w||!L),Q=ie(z,2),q=Q[0],U=Q[1];if(rr(function(){!q&&L&&a&&U(!0)},[q,L,a]),!q)return null;var K="auto",Z={left:"-1000vw",top:"-1000vh",right:K,bottom:K};if(M||!l){var se,ge=m.points,Y=m.dynamicInset||((se=m._experimental)===null||se===void 0?void 0:se.dynamicInset),Ce=Y&&ge[0][1]==="r",ne=Y&&ge[0][0]==="b";Ce?(Z.right=k,Z.left=K):(Z.left=x,Z.right=K),ne?(Z.bottom=F,Z.top=K):(Z.top=$,Z.bottom=K)}var Ie={};return W&&(W.includes("height")&&_?Ie.height=_:W.includes("minHeight")&&_&&(Ie.minHeight=_),W.includes("width")&&V?Ie.width=V:W.includes("minWidth")&&V&&(Ie.minWidth=V)),l||(Ie.pointerEvents="none"),A.createElement(v,{open:y||B,getContainer:w&&function(){return w(a)},autoDestroy:S},A.createElement(tI,{prefixCls:o,open:l,zIndex:I,mask:f,motion:b}),A.createElement(os,{onResize:j,disabled:!l},function(ve){return A.createElement(mo,le({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},p,{onAppearPrepare:G,onEnterPrepare:G,visible:l,onVisibleChanged:function(it){var Le;p==null||(Le=p.onVisibleChanged)===null||Le===void 0||Le.call(p,it),s(it)}}),function(Ye,it){var Le=Ye.className,St=Ye.style,Fe=J(o,Le,n);return A.createElement("div",{ref:Ei(ve,t,it),className:Fe,style:H(H(H(H({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},Z),Ie),St),{},{boxSizing:"border-box",zIndex:I},i),onMouseEnter:N,onMouseLeave:O,onPointerEnter:T,onClick:d,onPointerDownCapture:P},g&&A.createElement(eI,{prefixCls:o,arrow:g,arrowPos:h,align:m}),A.createElement(kg,{cache:!l&&!u},D))})}))});process.env.NODE_ENV!=="production"&&(Fg.displayName="Popup");var $g=A.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=Ii(r),i=A.useCallback(function(s){jc(t,n?n(s):s)},[n]),a=Ka(i,es(r));return o?A.cloneElement(r,{ref:a}):r});process.env.NODE_ENV!=="production"&&($g.displayName="TriggerWrapper");var Mg=A.createContext(null);function jg(e){return e?Array.isArray(e)?e:[e]:[]}function rI(e,t,r,n){return A.useMemo(function(){var o=jg(r??t),i=jg(n??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,r,n])}function nI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function oI(e,t,r,n){for(var o=r.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(nI((s=e[l])===null||s===void 0?void 0:s.points,o,n))return"".concat(t,"-placement-").concat(l)}return""}function Rg(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function Ji(e){return e.ownerDocument.defaultView}function gd(e){for(var t=[],r=e?.parentElement,n=["hidden","scroll","clip","auto"];r;){var o=Ji(r).getComputedStyle(r),i=o.overflowX,a=o.overflowY,s=o.overflow;[i,a,s].some(function(l){return n.includes(l)})&&t.push(r),r=r.parentElement}return t}function Zi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function qi(e){return Zi(parseFloat(e),0)}function Lg(e,t){var r=H({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var o=Ji(n).getComputedStyle(n),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=n.getBoundingClientRect(),f=n.offsetHeight,g=n.clientHeight,h=n.offsetWidth,m=n.clientWidth,p=qi(s),b=qi(l),y=qi(c),w=qi(u),S=Zi(Math.round(d.width/h*1e3)/1e3),v=Zi(Math.round(d.height/f*1e3)/1e3),I=(h-m-y-w)*S,N=(f-g-p-b)*v,O=p*v,T=b*v,P=y*S,M=w*S,x=0,$=0;if(i==="clip"){var k=qi(a);x=k*S,$=k*v}var F=d.x+P-x,j=d.y+O-$,G=F+d.width+2*x-P-M-I,W=j+d.height+2*$-O-T-N;r.left=Math.max(r.left,F),r.top=Math.max(r.top,j),r.right=Math.min(r.right,G),r.bottom=Math.min(r.bottom,W)}}),r}function Dg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function _g(e,t){var r=t||[],n=ie(r,2),o=n[0],i=n[1];return[Dg(e.width,o),Dg(e.height,i)]}function Vg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Jo(e,t){var r=t[0],n=t[1],o,i;return r==="t"?i=e.y:r==="b"?i=e.y+e.height:i=e.y+e.height/2,n==="l"?o=e.x:n==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function Un(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,o){return o===t?r[n]||"c":n}).join("")}function iI(e,t,r,n,o,i,a){var s=A.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),l=ie(s,2),c=l[0],u=l[1],d=A.useRef(0),f=A.useMemo(function(){return t?gd(t):[]},[t]),g=A.useRef({}),h=function(){g.current={}};e||h();var m=cr(function(){if(t&&r&&e){let Br=function(Ha,Bn){var so=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Mt,Wa=B.x+Ha,Ac=B.y+Bn,a0=Wa+ne,s0=Ac+Ce,l0=Math.max(Wa,so.left),me=Math.max(Ac,so.top),Ee=Math.min(a0,so.right),wt=Math.min(s0,so.bottom);return Math.max(0,(Ee-l0)*(wt-me))},Ci=function(){Oe=B.y+He,Se=Oe+Ce,gt=B.x+Je,Be=gt+ne};var y,w,S,v,I=t,N=I.ownerDocument,O=Ji(I),T=O.getComputedStyle(I),P=T.position,M=I.style.left,x=I.style.top,$=I.style.right,k=I.style.bottom,F=I.style.overflow,j=H(H({},o[n]),i),G=N.createElement("div");(y=I.parentElement)===null||y===void 0||y.appendChild(G),G.style.left="".concat(I.offsetLeft,"px"),G.style.top="".concat(I.offsetTop,"px"),G.style.position=P,G.style.height="".concat(I.offsetHeight,"px"),G.style.width="".concat(I.offsetWidth,"px"),I.style.left="0",I.style.top="0",I.style.right="auto",I.style.bottom="auto",I.style.overflow="hidden";var W;if(Array.isArray(r))W={x:r[0],y:r[1],width:0,height:0};else{var V,_,D=r.getBoundingClientRect();D.x=(V=D.x)!==null&&V!==void 0?V:D.left,D.y=(_=D.y)!==null&&_!==void 0?_:D.top,W={x:D.x,y:D.y,width:D.width,height:D.height}}var B=I.getBoundingClientRect(),L=O.getComputedStyle(I),z=L.height,Q=L.width;B.x=(w=B.x)!==null&&w!==void 0?w:B.left,B.y=(S=B.y)!==null&&S!==void 0?S:B.top;var q=N.documentElement,U=q.clientWidth,K=q.clientHeight,Z=q.scrollWidth,se=q.scrollHeight,ge=q.scrollTop,Y=q.scrollLeft,Ce=B.height,ne=B.width,Ie=W.height,ve=W.width,Ye={left:0,top:0,right:U,bottom:K},it={left:-Y,top:-ge,right:Z-Y,bottom:se-ge},Le=j.htmlRegion,St="visible",Fe="visibleFirst";Le!=="scroll"&&Le!==Fe&&(Le=St);var Me=Le===Fe,bt=Lg(it,f),Te=Lg(Ye,f),Mt=Le===St?Te:bt,at=Me?Te:Mt;I.style.left="auto",I.style.top="auto",I.style.right="0",I.style.bottom="0";var ir=I.getBoundingClientRect();I.style.left=M,I.style.top=x,I.style.right=$,I.style.bottom=k,I.style.overflow=F,(v=I.parentElement)===null||v===void 0||v.removeChild(G);var Xt=Zi(Math.round(ne/parseFloat(Q)*1e3)/1e3),jt=Zi(Math.round(Ce/parseFloat(z)*1e3)/1e3);if(Xt===0||jt===0||Si(r)&&!zp(r))return;var fr=j.offset,_e=j.targetOffset,De=_g(B,fr),Rt=ie(De,2),Lt=Rt[0],Dt=Rt[1],he=_g(W,_e),de=ie(he,2),Ae=de[0],Ne=de[1];W.x-=Ae,W.y-=Ne;var $e=j.points||[],pt=ie($e,2),tr=pt[0],ar=pt[1],_t=Vg(ar),Vt=Vg(tr),Et=Jo(W,_t),_r=Jo(B,Vt),Wt=H({},j),Je=Et.x-_r.x+Lt,He=Et.y-_r.y+Dt,Bt=Br(Je,He),Tr=Br(Je,He,Te),sr=Jo(W,["t","l"]),xt=Jo(B,["t","l"]),pn=Jo(W,["b","r"]),Qr=Jo(B,["b","r"]),R=j.overflow||{},te=R.adjustX,ae=R.adjustY,fe=R.shiftX,ke=R.shiftY,Ve=function(Bn){return typeof Bn=="boolean"?Bn:Bn>=0},Oe,Se,gt,Be;Ci();var ft=Ve(ae),je=Vt[0]===_t[0];if(ft&&Vt[0]==="t"&&(Se>at.bottom||g.current.bt)){var br=He;je?br-=Ce-Ie:br=sr.y-Qr.y-Dt;var Vr=Br(Je,br),qt=Br(Je,br,Te);Vr>Bt||Vr===Bt&&(!Me||qt>=Tr)?(g.current.bt=!0,He=br,Dt=-Dt,Wt.points=[Un(Vt,0),Un(_t,0)]):g.current.bt=!1}if(ft&&Vt[0]==="b"&&(Oe<at.top||g.current.tb)){var Kr=He;je?Kr+=Ce-Ie:Kr=pn.y-xt.y-Dt;var bi=Br(Je,Kr),_a=Br(Je,Kr,Te);bi>Bt||bi===Bt&&(!Me||_a>=Tr)?(g.current.tb=!0,He=Kr,Dt=-Dt,Wt.points=[Un(Vt,0),Un(_t,0)]):g.current.tb=!1}var yc=Ve(te),Cc=Vt[1]===_t[1];if(yc&&Vt[1]==="l"&&(Be>at.right||g.current.rl)){var wo=Je;Cc?wo-=ne-ve:wo=sr.x-Qr.x-Lt;var So=Br(wo,He),Va=Br(wo,He,Te);So>Bt||So===Bt&&(!Me||Va>=Tr)?(g.current.rl=!0,Je=wo,Lt=-Lt,Wt.points=[Un(Vt,1),Un(_t,1)]):g.current.rl=!1}if(yc&&Vt[1]==="r"&&(gt<at.left||g.current.lr)){var Eo=Je;Cc?Eo+=ne-ve:Eo=pn.x-xt.x-Lt;var Ba=Br(Eo,He),yi=Br(Eo,He,Te);Ba>Bt||Ba===Bt&&(!Me||yi>=Tr)?(g.current.lr=!0,Je=Eo,Lt=-Lt,Wt.points=[Un(Vt,1),Un(_t,1)]):g.current.lr=!1}Ci();var en=fe===!0?0:fe;typeof en=="number"&&(gt<Te.left&&(Je-=gt-Te.left-Lt,W.x+ve<Te.left+en&&(Je+=W.x-Te.left+ve-en)),Be>Te.right&&(Je-=Be-Te.right-Lt,W.x>Te.right-en&&(Je+=W.x-Te.right+en)));var oo=ke===!0?0:ke;typeof oo=="number"&&(Oe<Te.top&&(He-=Oe-Te.top-Dt,W.y+Ie<Te.top+oo&&(He+=W.y-Te.top+Ie-oo)),Se>Te.bottom&&(He-=Se-Te.bottom-Dt,W.y>Te.bottom-oo&&(He+=W.y-Te.bottom+oo)));var io=B.x+Je,ao=io+ne,za=B.y+He,qf=za+Ce,xc=W.x,wc=xc+ve,Sc=W.y,Qf=Sc+Ie,Kf=Math.max(io,xc),Ec=Math.min(ao,wc),e0=(Kf+Ec)/2,t0=e0-io,Ic=Math.max(za,Sc),r0=Math.min(qf,Qf),n0=(Ic+r0)/2,o0=n0-za;a?.(t,Wt);var gn=ir.right-B.x-(Je+B.width),Ga=ir.bottom-B.y-(He+B.height);Xt===1&&(Je=Math.round(Je),gn=Math.round(gn)),jt===1&&(He=Math.round(He),Ga=Math.round(Ga));var i0={ready:!0,offsetX:Je/Xt,offsetY:He/jt,offsetR:gn/Xt,offsetB:Ga/jt,arrowX:t0/Xt,arrowY:o0/jt,scaleX:Xt,scaleY:jt,align:Wt};u(i0)}}),p=function(){d.current+=1;var w=d.current;Promise.resolve().then(function(){d.current===w&&m()})},b=function(){u(function(w){return H(H({},w),{},{ready:!1})})};return rr(b,[n]),rr(function(){e||b()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,p]}function aI(e,t,r,n,o){rr(function(){if(e&&t&&r){let d=function(){n(),o()};var i=t,a=r,s=gd(i),l=gd(a),c=Ji(a),u=new Set([c].concat(ue(s),ue(l)));return u.forEach(function(f){f.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),n(),function(){u.forEach(function(f){f.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,r])}function sI(e,t,r,n,o,i,a,s){var l=A.useRef(e);l.current=e;var c=A.useRef(!1);A.useEffect(function(){if(t&&n&&(!o||i)){var d=function(){c.current=!1},f=function(S){var v;l.current&&!a(((v=S.composedPath)===null||v===void 0||(v=v.call(S))===null||v===void 0?void 0:v[0])||S.target)&&!c.current&&s(!1)},g=Ji(n);g.addEventListener("pointerdown",d,!0),g.addEventListener("mousedown",f,!0),g.addEventListener("contextmenu",f,!0);var h=Is(r);if(h&&(h.addEventListener("mousedown",f,!0),h.addEventListener("contextmenu",f,!0)),process.env.NODE_ENV!=="production"){var m,p,b=r==null||(m=r.getRootNode)===null||m===void 0?void 0:m.call(r),y=(p=n.getRootNode)===null||p===void 0?void 0:p.call(n);Io(b===y,"trigger element and popup element should in same shadow root.")}return function(){g.removeEventListener("pointerdown",d,!0),g.removeEventListener("mousedown",f,!0),g.removeEventListener("contextmenu",f,!0),h&&(h.removeEventListener("mousedown",f,!0),h.removeEventListener("contextmenu",f,!0))}}},[t,r,n,o,i]);function u(){c.current=!0}return u}var lI=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function cI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ed,t=A.forwardRef(function(r,n){var o=r.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=r.children,s=r.action,l=s===void 0?"hover":s,c=r.showAction,u=r.hideAction,d=r.popupVisible,f=r.defaultPopupVisible,g=r.onPopupVisibleChange,h=r.afterPopupVisibleChange,m=r.mouseEnterDelay,p=r.mouseLeaveDelay,b=p===void 0?.1:p,y=r.focusDelay,w=r.blurDelay,S=r.mask,v=r.maskClosable,I=v===void 0?!0:v,N=r.getPopupContainer,O=r.forceRender,T=r.autoDestroy,P=r.destroyPopupOnHide,M=r.popup,x=r.popupClassName,$=r.popupStyle,k=r.popupPlacement,F=r.builtinPlacements,j=F===void 0?{}:F,G=r.popupAlign,W=r.zIndex,V=r.stretch,_=r.getPopupClassNameFromAlign,D=r.fresh,B=r.alignPoint,L=r.onPopupClick,z=r.onPopupAlign,Q=r.arrow,q=r.popupMotion,U=r.maskMotion,K=r.popupTransitionName,Z=r.popupAnimation,se=r.maskTransitionName,ge=r.maskAnimation,Y=r.className,Ce=r.getTriggerDOMNode,ne=vt(r,lI),Ie=T||P||!1,ve=A.useState(!1),Ye=ie(ve,2),it=Ye[0],Le=Ye[1];rr(function(){Le(K5())},[]);var St=A.useRef({}),Fe=A.useContext(Mg),Me=A.useMemo(function(){return{registerSubPopup:function(Ee,wt){St.current[Ee]=wt,Fe?.registerSubPopup(Ee,wt)}}},[Fe]),bt=mg(),Te=A.useState(null),Mt=ie(Te,2),at=Mt[0],ir=Mt[1],Xt=A.useRef(null),jt=cr(function(me){Xt.current=me,Si(me)&&at!==me&&ir(me),Fe?.registerSubPopup(bt,me)}),fr=A.useState(null),_e=ie(fr,2),De=_e[0],Rt=_e[1],Lt=A.useRef(null),Dt=cr(function(me){Si(me)&&De!==me&&(Rt(me),Lt.current=me)}),he=A.Children.only(a),de=he?.props||{},Ae={},Ne=cr(function(me){var Ee,wt,Yt=De;return Yt?.contains(me)||((Ee=Is(Yt))===null||Ee===void 0?void 0:Ee.host)===me||me===Yt||at?.contains(me)||((wt=Is(at))===null||wt===void 0?void 0:wt.host)===me||me===at||Object.values(St.current).some(function(Ot){return Ot?.contains(me)||me===Ot})}),$e=Rg(i,q,Z,K),pt=Rg(i,U,ge,se),tr=A.useState(f||!1),ar=ie(tr,2),_t=ar[0],Vt=ar[1],Et=d??_t,_r=cr(function(me){d===void 0&&Vt(me)});rr(function(){Vt(d||!1)},[d]);var Wt=A.useRef(Et);Wt.current=Et;var Je=A.useRef([]);Je.current=[];var He=cr(function(me){var Ee;_r(me),((Ee=Je.current[Je.current.length-1])!==null&&Ee!==void 0?Ee:Et)!==me&&(Je.current.push(me),g?.(me))}),Bt=A.useRef(),Tr=function(){clearTimeout(Bt.current)},sr=function(Ee){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Tr(),wt===0?He(Ee):Bt.current=setTimeout(function(){He(Ee)},wt*1e3)};A.useEffect(function(){return Tr},[]);var xt=A.useState(!1),pn=ie(xt,2),Qr=pn[0],R=pn[1];rr(function(me){(!me||Et)&&R(!0)},[Et]);var te=A.useState(null),ae=ie(te,2),fe=ae[0],ke=ae[1],Ve=A.useState(null),Oe=ie(Ve,2),Se=Oe[0],gt=Oe[1],Be=function(Ee){gt([Ee.clientX,Ee.clientY])},ft=iI(Et,at,B&&Se!==null?Se:De,k,j,G,z),je=ie(ft,11),br=je[0],Vr=je[1],qt=je[2],Kr=je[3],bi=je[4],_a=je[5],yc=je[6],Cc=je[7],wo=je[8],So=je[9],Va=je[10],Eo=rI(it,l,c,u),Ba=ie(Eo,2),yi=Ba[0],en=Ba[1],oo=yi.has("click"),io=en.has("click")||en.has("contextMenu"),ao=cr(function(){Qr||Va()}),za=function(){Wt.current&&B&&io&&sr(!1)};aI(Et,De,at,ao,za),rr(function(){ao()},[Se,k]),rr(function(){Et&&!(j!=null&&j[k])&&ao()},[JSON.stringify(G)]);var qf=A.useMemo(function(){var me=oI(j,i,So,B);return J(me,_?.(So))},[So,_,j,i,B]);A.useImperativeHandle(n,function(){return{nativeElement:Lt.current,popupElement:Xt.current,forceAlign:ao}});var xc=A.useState(0),wc=ie(xc,2),Sc=wc[0],Qf=wc[1],Kf=A.useState(0),Ec=ie(Kf,2),e0=Ec[0],t0=Ec[1],Ic=function(){if(V&&De){var Ee=De.getBoundingClientRect();Qf(Ee.width),t0(Ee.height)}},r0=function(){Ic(),ao()},n0=function(Ee){R(!1),Va(),h?.(Ee)},o0=function(){return new Promise(function(Ee){Ic(),ke(function(){return Ee})})};rr(function(){fe&&(Va(),fe(),ke(null))},[fe]);function gn(me,Ee,wt,Yt){Ae[me]=function(Ot){var Nc;Yt?.(Ot),sr(Ee,wt);for(var c0=arguments.length,Zy=new Array(c0>1?c0-1:0),Oc=1;Oc<c0;Oc++)Zy[Oc-1]=arguments[Oc];(Nc=de[me])===null||Nc===void 0||Nc.call.apply(Nc,[de,Ot].concat(Zy))}}(oo||io)&&(Ae.onClick=function(me){var Ee;Wt.current&&io?sr(!1):!Wt.current&&oo&&(Be(me),sr(!0));for(var wt=arguments.length,Yt=new Array(wt>1?wt-1:0),Ot=1;Ot<wt;Ot++)Yt[Ot-1]=arguments[Ot];(Ee=de.onClick)===null||Ee===void 0||Ee.call.apply(Ee,[de,me].concat(Yt))});var Ga=sI(Et,io,De,at,S,I,Ne,sr),i0=yi.has("hover"),Br=en.has("hover"),Ci,Ha;i0&&(gn("onMouseEnter",!0,m,function(me){Be(me)}),gn("onPointerEnter",!0,m,function(me){Be(me)}),Ci=function(Ee){(Et||Qr)&&at!==null&&at!==void 0&&at.contains(Ee.target)&&sr(!0,m)},B&&(Ae.onMouseMove=function(me){var Ee;(Ee=de.onMouseMove)===null||Ee===void 0||Ee.call(de,me)})),Br&&(gn("onMouseLeave",!1,b),gn("onPointerLeave",!1,b),Ha=function(){sr(!1,b)}),yi.has("focus")&&gn("onFocus",!0,y),en.has("focus")&&gn("onBlur",!1,w),yi.has("contextMenu")&&(Ae.onContextMenu=function(me){var Ee;Wt.current&&en.has("contextMenu")?sr(!1):(Be(me),sr(!0)),me.preventDefault();for(var wt=arguments.length,Yt=new Array(wt>1?wt-1:0),Ot=1;Ot<wt;Ot++)Yt[Ot-1]=arguments[Ot];(Ee=de.onContextMenu)===null||Ee===void 0||Ee.call.apply(Ee,[de,me].concat(Yt))}),Y&&(Ae.className=J(de.className,Y));var Bn=A.useRef(!1);Bn.current||(Bn.current=O||Et||Qr);var so=H(H({},de),Ae),Wa={},Ac=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ac.forEach(function(me){ne[me]&&(Wa[me]=function(){for(var Ee,wt=arguments.length,Yt=new Array(wt),Ot=0;Ot<wt;Ot++)Yt[Ot]=arguments[Ot];(Ee=so[me])===null||Ee===void 0||Ee.call.apply(Ee,[so].concat(Yt)),ne[me].apply(ne,Yt)})});var a0=A.cloneElement(he,H(H({},so),Wa)),s0={x:_a,y:yc},l0=Q?H({},Q!==!0?Q:{}):null;return A.createElement(A.Fragment,null,A.createElement(os,{disabled:!Et,ref:Dt,onResize:r0},A.createElement($g,{getTriggerDOMNode:Ce},a0)),Bn.current&&A.createElement(Mg.Provider,{value:Me},A.createElement(Fg,{portal:e,ref:jt,prefixCls:i,popup:M,className:J(x,qf),style:$,target:De,onMouseEnter:Ci,onMouseLeave:Ha,onPointerEnter:Ci,zIndex:W,open:Et,keepDom:Qr,fresh:D,onClick:L,onPointerDownCapture:Ga,mask:S,motion:$e,maskMotion:pt,onVisibleChanged:n0,onPrepare:o0,forceRender:O,autoDestroy:Ie,getPopupContainer:N,align:So,arrow:l0,arrowPos:s0,ready:br,offsetX:Vr,offsetY:qt,offsetR:Kr,offsetB:bi,onAlign:ao,stretch:V,targetWidth:Sc/Cc,targetHeight:e0/wo})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const uI=cI(ed);var dI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},fI=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:dI}))},Bg=A.forwardRef(fI);process.env.NODE_ENV!=="production"&&(Bg.displayName="CheckOutlined");function mI(){const[,e]=A.useReducer(t=>t+1,0);return e}function zg(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,s=e.style;return A.createElement("div",{className:J("".concat(r,"-content"),a),style:s},A.createElement("div",{className:J("".concat(r,"-inner"),i),id:n,role:"tooltip",style:o},typeof t=="function"?t():t))}var Zo={shiftX:64,adjustY:1},qo={adjustX:1,shiftY:!0},Mr=[0,0],pI={left:{points:["cr","cl"],overflow:qo,offset:[-4,0],targetOffset:Mr},right:{points:["cl","cr"],overflow:qo,offset:[4,0],targetOffset:Mr},top:{points:["bc","tc"],overflow:Zo,offset:[0,-4],targetOffset:Mr},bottom:{points:["tc","bc"],overflow:Zo,offset:[0,4],targetOffset:Mr},topLeft:{points:["bl","tl"],overflow:Zo,offset:[0,-4],targetOffset:Mr},leftTop:{points:["tr","tl"],overflow:qo,offset:[-4,0],targetOffset:Mr},topRight:{points:["br","tr"],overflow:Zo,offset:[0,-4],targetOffset:Mr},rightTop:{points:["tl","tr"],overflow:qo,offset:[4,0],targetOffset:Mr},bottomRight:{points:["tr","br"],overflow:Zo,offset:[0,4],targetOffset:Mr},rightBottom:{points:["bl","br"],overflow:qo,offset:[4,0],targetOffset:Mr},bottomLeft:{points:["tl","bl"],overflow:Zo,offset:[0,4],targetOffset:Mr},leftBottom:{points:["br","bl"],overflow:qo,offset:[-4,0],targetOffset:Mr}},gI=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],hI=function(t,r){var n=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,f=d===void 0?"rc-tooltip":d,g=t.children,h=t.onVisibleChange,m=t.afterVisibleChange,p=t.transitionName,b=t.animation,y=t.motion,w=t.placement,S=w===void 0?"right":w,v=t.align,I=v===void 0?{}:v,N=t.destroyTooltipOnHide,O=N===void 0?!1:N,T=t.defaultVisible,P=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var x=t.overlay,$=t.id,k=t.showArrow,F=k===void 0?!0:k,j=t.classNames,G=t.styles,W=vt(t,gI),V=mg($),_=E.useRef(null);E.useImperativeHandle(r,function(){return _.current});var D=H({},W);"visible"in t&&(D.popupVisible=t.visible);var B=function(){return A.createElement(zg,{key:"content",prefixCls:f,id:V,bodyClassName:j?.body,overlayInnerStyle:H(H({},M),G?.body)},x)},L=function(){var Q=A.Children.only(g),q=Q?.props||{},U=H(H({},q),{},{"aria-describedby":x?V:null});return A.cloneElement(g,U)};return A.createElement(uI,le({popupClassName:J(n,j?.root),prefixCls:f,popup:B,action:i,builtinPlacements:pI,popupPlacement:S,ref:_,popupAlign:I,getPopupContainer:P,onPopupVisibleChange:h,afterPopupVisibleChange:m,popupTransitionName:p,popupAnimation:b,popupMotion:y,defaultPopupVisible:T,autoDestroy:O,mouseLeaveDelay:c,popupStyle:H(H({},u),G?.root),mouseEnterDelay:s,arrow:F},D),L())};const vI=E.forwardRef(hI);function bI(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,o=t/2,i=0,a=o,s=n*1/Math.sqrt(2),l=o-n*(1-1/Math.sqrt(2)),c=o-r*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),d=2*o-c,f=u,g=2*o-s,h=l,m=2*o-i,p=a,b=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),y=n*(Math.sqrt(2)-1),w=`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`,S=`path('M ${i} ${a} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${r} ${r} 0 0 1 ${d} ${f} L ${g} ${h} A ${n} ${n} 0 0 0 ${m} ${p} Z')`;return{arrowShadowWidth:b,arrowPath:S,arrowPolygon:w}}const yI=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${st(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},Gg=8;function Hg(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?Gg:n}}function Bs(e,t){return e?t:{}}function CI(e,t,r){const{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},yI(e,t,o)),{"&:before":{background:t}})]},Bs(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${st(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Bs(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${st(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Bs(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:i},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:i}})),Bs(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:i},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:i}}))}}function xI(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const o=n&&typeof n=="object"?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+r,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+r,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const Wg={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},wI={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},SI=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function EI(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:i}=e,a=t/2,s={},l=Hg({contentRadius:i,limitVerticalRadius:!0});return Object.keys(Wg).forEach(c=>{const u=n&&wI[c]||Wg[c],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(s[c]=d,SI.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-a-o;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=a+o;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-a-o;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=a+o;break}if(n)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-l.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":d.offset[0]=l.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":d.offset[1]=-l.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":d.offset[1]=l.arrowOffsetHorizontal*2-a;break}d.overflow=xI(c,l,t,r),d.htmlRegion="visibleFirst"}),s}const II=e=>{const{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:g}=e,h=t(a).add(g).add(f).equal(),m=t(a).mul(2).add(g).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},_o(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${r}-inner`]:{minWidth:m,minHeight:l,padding:`${st(e.calc(u).div(2).equal())} ${st(d)}`,color:`var(--ant-tooltip-color,${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(a,Gg)}},[`${r}-content`]:{position:"relative"}}),qx(e,(p,{darkColor:b})=>({[`&${r}-${p}`]:{[`${r}-inner`]:{backgroundColor:b},[`${r}-arrow`]:{"--antd-arrow-background-color":b}}}))),{"&-rtl":{direction:"rtl"}})},CI(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},AI=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Hg({contentRadius:e.borderRadius,limitVerticalRadius:!0})),bI(Yr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Ug=(e,t=!0)=>Vi("Tooltip",n=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=n,s=Yr(n,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[II(s),hE(n,"zoom-big-fast")]},AI,{resetStyle:!1,injectStyle:t})(e),NI=fo.map(e=>`${e}-inverse`);function OI(e,t=!0){return t?[].concat(ue(NI),ue(fo)).includes(e):fo.includes(e)}function Xg(e,t){const r=OI(t),n=J({[`${e}-${t}`]:t&&r}),o={},i={},a=vE(t).toRgb(),l=(.299*a.r+.587*a.g+.114*a.b)/255<.5?"#FFF":"#000";return t&&!r&&(o.background=t,o["--ant-tooltip-color"]=l,i["--antd-arrow-background-color"]=t),{className:n,overlayStyle:o,arrowStyle:i}}const TI=e=>{const{prefixCls:t,className:r,placement:n="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=A.useContext(Zt),l=s("tooltip",t),[c,u,d]=Ug(l),f=Xg(l,i),g=f.arrowStyle,h=Object.assign(Object.assign({},a),f.overlayStyle),m=J(u,d,l,`${l}-pure`,`${l}-placement-${n}`,r,f.className);return c(A.createElement("div",{className:m,style:g},A.createElement("div",{className:`${l}-arrow`}),A.createElement(zg,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))};var PI=function(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};const zs=A.forwardRef((e,t)=>{var r,n;const{prefixCls:o,openClassName:i,getTooltipContainer:a,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:d,destroyTooltipOnHide:f,destroyOnHidden:g,arrow:h=!0,title:m,overlay:p,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:w=!0,motion:S,getPopupContainer:v,placement:I="top",mouseEnterDelay:N=.1,mouseLeaveDelay:O=.1,overlayStyle:T,rootClassName:P,overlayClassName:M,styles:x,classNames:$}=e,k=PI(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),F=!!h,[,j]=Hn(),{getPopupContainer:G,getPrefixCls:W,direction:V,className:_,style:D,classNames:B,styles:L}=wu("tooltip"),z=kr("Tooltip"),Q=A.useRef(null),q=()=>{var _e;(_e=Q.current)===null||_e===void 0||_e.forceAlign()};A.useImperativeHandle(t,()=>{var _e,De;return{forceAlign:q,forcePopupAlign:()=>{z.deprecated(!1,"forcePopupAlign","forceAlign"),q()},nativeElement:(_e=Q.current)===null||_e===void 0?void 0:_e.nativeElement,popupElement:(De=Q.current)===null||De===void 0?void 0:De.popupElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["destroyTooltipOnHide","destroyOnHidden"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"],["overlayStyle","styles={{ root: {} }}"],["overlayInnerStyle","styles={{ body: {} }}"],["overlayClassName",'classNames={{ root: "" }}']].forEach(([_e,De])=>{z.deprecated(!(_e in e),_e,De)}),process.env.NODE_ENV!=="production"&&z(!f||typeof f=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&z(!h||typeof h=="boolean"||!("arrowPointAtCenter"in h),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[U,K]=Cs(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),Z=!m&&!p&&m!==0,se=_e=>{var De,Rt;K(Z?!1:_e),Z||((De=e.onOpenChange)===null||De===void 0||De.call(e,_e),(Rt=e.onVisibleChange)===null||Rt===void 0||Rt.call(e,_e))},ge=A.useMemo(()=>{var _e,De;let Rt=y;return typeof h=="object"&&(Rt=(De=(_e=h.pointAtCenter)!==null&&_e!==void 0?_e:h.arrowPointAtCenter)!==null&&De!==void 0?De:y),b||EI({arrowPointAtCenter:Rt,autoAdjustOverflow:w,arrowWidth:F?j.sizePopupArrow:0,borderRadius:j.borderRadius,offset:j.marginXXS})},[y,h,b,j]),Y=A.useMemo(()=>m===0?m:p||m||"",[p,m]),Ce=A.createElement(Q5,{space:!0},typeof Y=="function"?Y():Y),ne=W("tooltip",o),Ie=W(),ve=e["data-popover-inject"];let Ye=U;!("open"in e)&&!("visible"in e)&&Z&&(Ye=!1);const it=A.isValidElement(c)&&!$p(c)?c:A.createElement("span",null,c),Le=it.props,St=!Le.className||typeof Le.className=="string"?J(Le.className,i||`${ne}-open`):Le.className,[Fe,Me,bt]=Ug(ne,!ve),Te=Xg(ne,s),Mt=Te.arrowStyle,at=J(M,{[`${ne}-rtl`]:V==="rtl"},Te.className,P,Me,bt,_,B.root,$?.root),ir=J(B.body,$?.body),[Xt,jt]=aS("Tooltip",k.zIndex),fr=A.createElement(vI,Object.assign({},k,{zIndex:Xt,showArrow:F,placement:I,mouseEnterDelay:N,mouseLeaveDelay:O,prefixCls:ne,classNames:{root:at,body:ir},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mt),L.root),D),T),x?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},L.body),l),x?.body),Te.overlayStyle)},getTooltipContainer:v||a||G,ref:Q,builtinPlacements:ge,overlay:Ce,visible:Ye,onVisibleChange:se,afterVisibleChange:u??d,arrowContent:A.createElement("span",{className:`${ne}-arrow-content`}),motion:{motionName:wS(Ie,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:g??!!f}),Ye?zi(it,{className:St}):it);return Fe(A.createElement(Ru.Provider,{value:jt},fr))});process.env.NODE_ENV!=="production"&&(zs.displayName="Tooltip"),zs._InternalPanelDoNotUseOrYouWillBeFired=TI;var kI=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],FI=E.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-checkbox":r,o=e.className,i=e.style,a=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,d=u===void 0?"checkbox":u,f=e.title,g=e.onChange,h=vt(e,kI),m=E.useRef(null),p=E.useRef(null),b=Cs(c,{value:a}),y=ie(b,2),w=y[0],S=y[1];E.useImperativeHandle(t,function(){return{focus:function(O){var T;(T=m.current)===null||T===void 0||T.focus(O)},blur:function(){var O;(O=m.current)===null||O===void 0||O.blur()},input:m.current,nativeElement:p.current}});var v=J(n,o,X(X({},"".concat(n,"-checked"),w),"".concat(n,"-disabled"),s)),I=function(O){s||("checked"in e||S(O.target.checked),g?.({target:H(H({},e),{},{type:d,checked:O.target.checked}),stopPropagation:function(){O.stopPropagation()},preventDefault:function(){O.preventDefault()},nativeEvent:O.nativeEvent}))};return A.createElement("span",{className:v,title:f,style:i,ref:p},A.createElement("input",le({},h,{className:"".concat(n,"-input"),ref:m,onChange:I,disabled:s,checked:!!w,type:d})),A.createElement("span",{className:"".concat(n,"-inner")}))});function $I(e){const t=E.useRef(null),r=()=>{tn.cancel(t.current),t.current=null};return[()=>{r(),t.current=tn(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),r()),e?.(i)}]}const MI=e=>{const{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},_o(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},_o(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},_o(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:np(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${st(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${st(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
|
|
205
205
|
${r}:not(${r}-disabled),
|
|
206
206
|
${t}:not(${t}-disabled)
|
|
207
207
|
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
|
|
208
208
|
${r}-checked:not(${r}-disabled),
|
|
209
209
|
${t}-checked:not(${t}-disabled)
|
|
210
|
-
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function jI(e,t){const r=Yr(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return MI(r)}const Yg=Vi("Checkbox",(e,{prefixCls:t})=>[jI(t,e)]),Jg=E.createContext(null);var RI=function(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};const LI=(e,t)=>{var r;const{prefixCls:n,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:f}=e,g=RI(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:m,checkbox:p}=A.useContext(Zt),b=A.useContext(Jg),{isFormItemInput:y}=A.useContext(_s),w=A.useContext(Lo),S=(r=b?.disabled||f)!==null&&r!==void 0?r:w,v=A.useRef(g.value),I=A.useRef(null),N=Ei(t,I);if(process.env.NODE_ENV!=="production"){const W=kr("Checkbox");process.env.NODE_ENV!=="production"&&W("checked"in g||!!b||!("value"in g),"usage","`value` is not a valid prop, do you mean `checked`?")}A.useEffect(()=>{b?.registerValue(g.value)},[]),A.useEffect(()=>{if(!d)return g.value!==v.current&&(b?.cancelValue(v.current),b?.registerValue(g.value),v.current=g.value),()=>b?.cancelValue(g.value)},[g.value]),A.useEffect(()=>{var W;!((W=I.current)===null||W===void 0)&&W.input&&(I.current.input.indeterminate=s)},[s]);const O=h("checkbox",n),T=Mp(O),[P,M,x]=Yg(O,T),$=Object.assign({},g);b&&!d&&($.onChange=(...W)=>{g.onChange&&g.onChange.apply(g,W),b.toggleOption&&b.toggleOption({label:a,value:g.value})},$.name=b.name,$.checked=b.value.includes(g.value));const k=J(`${O}-wrapper`,{[`${O}-rtl`]:m==="rtl",[`${O}-wrapper-checked`]:$.checked,[`${O}-wrapper-disabled`]:S,[`${O}-wrapper-in-form-item`]:y},p?.className,o,i,x,T,M),F=J({[`${O}-indeterminate`]:s},zu,M),[j,z]=$I($.onClick);return P(A.createElement(Wu,{component:"Checkbox",disabled:S},A.createElement("label",{className:k,style:Object.assign(Object.assign({},p?.style),l),onMouseEnter:c,onMouseLeave:u,onClick:j},A.createElement(FI,Object.assign({},$,{onClick:z,prefixCls:O,className:F,disabled:S,ref:N})),a!=null&&A.createElement("span",{className:`${O}-label`},a))))},gd=A.forwardRef(LI);process.env.NODE_ENV!=="production"&&(gd.displayName="Checkbox");var DI=function(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};const _I=A.forwardRef((e,t)=>{const{defaultValue:r,children:n,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=DI(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=A.useContext(Zt),[g,h]=A.useState(u.value||r||[]),[m,p]=A.useState([]);A.useEffect(()=>{"value"in u&&h(u.value||[])},[u.value]);const b=A.useMemo(()=>o.map(F=>typeof F=="string"||typeof F=="number"?{label:F,value:F}:F),[o]),y=F=>{p(j=>j.filter(z=>z!==F))},w=F=>{p(j=>[].concat(ue(j),[F]))},S=F=>{const j=g.indexOf(F.value),z=ue(g);j===-1?z.push(F.value):z.splice(j,1),"value"in u||h(z),c?.(z.filter(W=>m.includes(W)).sort((W,V)=>{const _=b.findIndex(B=>B.value===W),D=b.findIndex(B=>B.value===V);return _-D}))},v=d("checkbox",i),I=`${v}-group`,N=Mp(v),[O,T,P]=Yg(v,N),M=Ts(u,["value","disabled"]),x=o.length?b.map(F=>A.createElement(gd,{prefixCls:v,key:F.value.toString(),disabled:"disabled"in F?F.disabled:u.disabled,value:F.value,checked:g.includes(F.value),onChange:F.onChange,className:J(`${I}-item`,F.className),style:F.style,title:F.title,id:F.id,required:F.required},F.label)):n,$=A.useMemo(()=>({toggleOption:S,value:g,disabled:u.disabled,name:u.name,registerValue:w,cancelValue:y}),[S,g,u.disabled,u.name,w,y]),k=J(I,{[`${I}-rtl`]:f==="rtl"},a,s,P,N,T);return O(A.createElement("div",Object.assign({className:k,style:l},M,{ref:t}),A.createElement(Jg.Provider,{value:$},x)))}),zs=gd;zs.Group=_I,zs.__ANT_CHECKBOX=!0,process.env.NODE_ENV!=="production"&&(zs.displayName="Checkbox");var VI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},BI=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:VI}))},Zg=A.forwardRef(BI);process.env.NODE_ENV!=="production"&&(Zg.displayName="EyeOutlined");var zI={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},GI=function(){var t=E.useRef([]),r=E.useRef(null);return E.useEffect(function(){var n=Date.now(),o=!1;t.current.forEach(function(i){if(i){o=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",r.current&&n-r.current<100&&(a.transitionDuration="0s, 0s")}}),o&&(r.current=Date.now())}),t.current};process.env.NODE_ENV;var qg=0,HI=process.env.NODE_ENV!=="test"&&lr();function WI(){var e;return HI?(e=qg,qg+=1):e="TEST_OR_SSR",e}const UI=function(e){var t=A.useState(),r=ie(t,2),n=r[0],o=r[1];return A.useEffect(function(){o("rc_progress_".concat(WI()))},[]),e||n};var Qg=function(t){var r=t.bg,n=t.children;return A.createElement("div",{style:{width:"100%",height:"100%",background:r}},n)};function Kg(e,t){return Object.keys(e).map(function(r){var n=parseFloat(r),o="".concat(Math.floor(n*t),"%");return"".concat(e[r]," ").concat(o)})}var eh=A.forwardRef(function(e,t){var r=e.prefixCls,n=e.color,o=e.gradientId,i=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,d=e.gapDegree,f=n&&we(n)==="object",g=f?"#FFF":void 0,h=u/2,m=A.createElement("circle",{className:"".concat(r,"-circle-path"),r:i,cx:h,cy:h,stroke:g,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!f)return m;var p="".concat(o,"-conic"),b=d?"".concat(180+d/2,"deg"):"0deg",y=Kg(n,(360-d)/360),w=Kg(n,1),S="conic-gradient(from ".concat(b,", ").concat(y.join(", "),")"),v="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(w.join(", "),")");return A.createElement(A.Fragment,null,A.createElement("mask",{id:p},m),A.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(p,")")},A.createElement(Qg,{bg:v},A.createElement(Qg,{bg:S}))))});process.env.NODE_ENV!=="production"&&(eh.displayName="PtgCircle");var Qi=100,hd=function(t,r,n,o,i,a,s,l,c,u){var d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,f=n/100*360*((360-a)/360),g=a===0?0:{bottom:0,top:180,left:90,right:-90}[s],h=(100-o)/100*r;c==="round"&&o!==100&&(h+=u/2,h>=r&&(h=r-.01));var m=Qi/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:h+d,transform:"rotate(".concat(i+f+g,"deg)"),transformOrigin:"".concat(m,"px ").concat(m,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},XI=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function th(e){var t=e??[];return Array.isArray(t)?t:[t]}var rh=function(t){var r=H(H({},zI),t),n=r.id,o=r.prefixCls,i=r.steps,a=r.strokeWidth,s=r.trailWidth,l=r.gapDegree,c=l===void 0?0:l,u=r.gapPosition,d=r.trailColor,f=r.strokeLinecap,g=r.style,h=r.className,m=r.strokeColor,p=r.percent,b=vt(r,XI),y=Qi/2,w=UI(n),S="".concat(w,"-gradient"),v=y-a/2,I=Math.PI*2*v,N=c>0?90+c/2:-90,O=I*((360-c)/360),T=we(i)==="object"?i:{count:i,gap:2},P=T.count,M=T.gap,x=th(p),$=th(m),k=$.find(function(D){return D&&we(D)==="object"}),F=k&&we(k)==="object",j=F?"butt":f,z=hd(I,O,0,100,N,c,u,d,j,a),W=GI(),V=function(){var B=0;return x.map(function(L,G){var Q=$[G]||$[$.length-1],q=hd(I,O,B,L,N,c,u,Q,j,a);return B+=L,A.createElement(eh,{key:G,color:Q,ptg:L,radius:v,prefixCls:o,gradientId:S,style:q,strokeLinecap:j,strokeWidth:a,gapDegree:c,ref:function(K){W[G]=K},size:Qi})}).reverse()},_=function(){var B=Math.round(P*(x[0]/100)),L=100/P,G=0;return new Array(P).fill(null).map(function(Q,q){var U=q<=B-1?$[0]:d,K=U&&we(U)==="object"?"url(#".concat(S,")"):void 0,Z=hd(I,O,G,L,N,c,u,U,"butt",a,M);return G+=(O-Z.strokeDashoffset+M)*100/O,A.createElement("circle",{key:q,className:"".concat(o,"-circle-path"),r:v,cx:y,cy:y,stroke:K,strokeWidth:a,opacity:1,style:Z,ref:function(pe){W[q]=pe}})})};return A.createElement("svg",le({className:J("".concat(o,"-circle"),h),viewBox:"0 0 ".concat(Qi," ").concat(Qi),style:g,id:n,role:"presentation"},b),!P&&A.createElement("circle",{className:"".concat(o,"-circle-trail"),r:v,cx:y,cy:y,stroke:d,strokeLinecap:j,strokeWidth:s||a,style:z}),P?_():V())};process.env.NODE_ENV!=="production"&&(rh.displayName="Circle");function Xn(e){return!e||e<0?0:e>100?100:e}function Gs({success:e,successPercent:t}){let r=t;return e&&"progress"in e&&(r=e.progress),e&&"percent"in e&&(r=e.percent),r}const YI=({percent:e,success:t,successPercent:r})=>{const n=Xn(Gs({success:t,successPercent:r}));return[n,Xn(Xn(e)-n)]},JI=({success:e={},strokeColor:t})=>{const{strokeColor:r}=e;return[r||jo.green,t||null]},Hs=(e,t,r)=>{var n,o,i,a;let s=-1,l=-1;if(t==="step"){const c=r.steps,u=r.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){const c=r?.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(o=(n=e[0])!==null&&n!==void 0?n:e[1])!==null&&o!==void 0?o:120,l=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[s,l]},ZI=3,qI=e=>ZI/e*100,QI=e=>{const{prefixCls:t,trailColor:r=null,strokeLinecap:n="round",gapPosition:o,gapDegree:i,width:a=120,type:s,children:l,success:c,size:u=a,steps:d}=e,[f,g]=Hs(u,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(qI(f),6));const m={width:f,height:g,fontSize:f*.15+6},p=A.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),b=YI(e),y=o||s==="dashboard"&&"bottom"||void 0,w=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=JI({success:c,strokeColor:e.strokeColor}),v=J(`${t}-inner`,{[`${t}-circle-gradient`]:w}),I=A.createElement(rh,{steps:d,percent:d?b[1]:b,strokeWidth:h,trailWidth:h,strokeColor:d?S[1]:S,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:p,gapPosition:y}),N=f<=20,O=A.createElement("div",{className:v,style:m},I,!N&&l);return N?A.createElement(Bs,{title:l},O):O},Ws="--progress-line-stroke-color",nh="--progress-percent",oh=e=>{const t=e?"100%":"-100%";return new Qt(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},KI=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},_o(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Ws})`]},height:"100%",width:`calc(1 / var(${nh}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${st(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:oh(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:oh(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},e4=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},t4=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},r4=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},n4=Vi("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),r=Yr(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[KI(r),e4(r),t4(r),r4(r)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}));var o4=function(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};const i4=e=>{let t=[];return Object.keys(e).forEach(r=>{const n=parseFloat(r.replace(/%/g,""));Number.isNaN(n)||t.push({key:n,value:e[r]})}),t=t.sort((r,n)=>r.key-n.key),t.map(({key:r,value:n})=>`${n} ${r}%`).join(", ")},a4=(e,t)=>{const{from:r=jo.blue,to:n=jo.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=o4(e,["from","to","direction"]);if(Object.keys(i).length!==0){const s=i4(i),l=`linear-gradient(${o}, ${s})`;return{background:l,[Ws]:l}}const a=`linear-gradient(${o}, ${r}, ${n})`;return{background:a,[Ws]:a}},s4=e=>{const{prefixCls:t,direction:r,percent:n,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:d}=e,{align:f,type:g}=u,h=a&&typeof a!="string"?a4(a,r):{[Ws]:a,background:a},m=s==="square"||s==="butt"?0:void 0,p=o??[-1,i||(o==="small"?6:8)],[b,y]=Hs(p,"line",{strokeWidth:i});process.env.NODE_ENV!=="production"&&kr("Progress").deprecated(!("strokeWidth"in e),"strokeWidth","size");const w={backgroundColor:c||void 0,borderRadius:m},S=Object.assign(Object.assign({width:`${Xn(n)}%`,height:y,borderRadius:m},h),{[nh]:Xn(n)/100}),v=Gs(e),I={width:`${Xn(v)}%`,height:y,borderRadius:m,backgroundColor:d?.strokeColor},N={width:b<0?"100%":b},O=A.createElement("div",{className:`${t}-inner`,style:w},A.createElement("div",{className:J(`${t}-bg`,`${t}-bg-${g}`),style:S},g==="inner"&&l),v!==void 0&&A.createElement("div",{className:`${t}-success-bg`,style:I})),T=g==="outer"&&f==="start",P=g==="outer"&&f==="end";return g==="outer"&&f==="center"?A.createElement("div",{className:`${t}-layout-bottom`},O,l):A.createElement("div",{className:`${t}-outer`,style:N},T&&l,O,P&&l)},l4=e=>{const{size:t,steps:r,rounding:n=Math.round,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:c}=e,u=n(r*(o/100)),f=t??[t==="small"?2:14,i],[g,h]=Hs(f,"step",{steps:r,strokeWidth:i}),m=g/r,p=Array.from({length:r});for(let b=0;b<r;b++){const y=Array.isArray(a)?a[b]:a;p[b]=A.createElement("div",{key:b,className:J(`${l}-steps-item`,{[`${l}-steps-item-active`]:b<=u-1}),style:{backgroundColor:b<=u-1?y:s,width:m,height:h}})}return A.createElement("div",{className:`${l}-steps-outer`},p,c)};var c4=function(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};const u4=["normal","exception","active","success"],ih=A.forwardRef((e,t)=>{const{prefixCls:r,className:n,rootClassName:o,steps:i,strokeColor:a,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:d,format:f,style:g,percentPosition:h={}}=e,m=c4(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:p="end",type:b="outer"}=h,y=Array.isArray(a)?a[0]:a,w=typeof a=="string"||Array.isArray(a)?a:void 0,S=A.useMemo(()=>{if(y){const V=typeof y=="string"?y:Object.values(y)[0];return new yt(V).isLight()}return!1},[a]),v=A.useMemo(()=>{var V,_;const D=Gs(e);return parseInt(D!==void 0?(V=D??0)===null||V===void 0?void 0:V.toString():(_=s??0)===null||_===void 0?void 0:_.toString(),10)},[s,e.success,e.successPercent]),I=A.useMemo(()=>!u4.includes(d)&&v>=100?"success":d||"normal",[d,v]),{getPrefixCls:N,direction:O,progress:T}=A.useContext(Zt),P=N("progress",r),[M,x,$]=n4(P),k=u==="line",F=k&&!i,j=A.useMemo(()=>{if(!c)return null;const V=Gs(e);let _;const D=f||(L=>`${L}%`),B=k&&S&&b==="inner";return b==="inner"||f||I!=="exception"&&I!=="success"?_=D(Xn(s),Xn(V)):I==="exception"?_=k?A.createElement(Pp,null):A.createElement(kp,null):I==="success"&&(_=k?A.createElement(Tp,null):A.createElement(Bg,null)),A.createElement("span",{className:J(`${P}-text`,{[`${P}-text-bright`]:B,[`${P}-text-${p}`]:F,[`${P}-text-${b}`]:F}),title:typeof _=="string"?_:void 0},_)},[c,s,v,I,u,P,f]);if(process.env.NODE_ENV!=="production"){const V=kr("Progress");V.deprecated(!("successPercent"in e),"successPercent","success.percent"),V.deprecated(!("width"in e),"width","size"),(u==="circle"||u==="dashboard")&&(Array.isArray(l)?process.env.NODE_ENV!=="production"&&V(!1,"usage",'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.'):typeof l=="object"&&process.env.NODE_ENV!=="production"&&V(!1,"usage",'Type "circle" and "dashboard" do not accept object as `size`, please use number or preset size instead.')),e.success&&"progress"in e.success&&V.deprecated(!1,"success.progress","success.percent")}let z;u==="line"?z=i?A.createElement(l4,Object.assign({},e,{strokeColor:w,prefixCls:P,steps:typeof i=="object"?i.count:i}),j):A.createElement(s4,Object.assign({},e,{strokeColor:y,prefixCls:P,direction:O,percentPosition:{align:p,type:b}}),j):(u==="circle"||u==="dashboard")&&(z=A.createElement(QI,Object.assign({},e,{strokeColor:y,prefixCls:P,progressStatus:I}),j));const W=J(P,`${P}-status-${I}`,{[`${P}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${P}-inline-circle`]:u==="circle"&&Hs(l,"circle")[0]<=20,[`${P}-line`]:F,[`${P}-line-align-${p}`]:F,[`${P}-line-position-${b}`]:F,[`${P}-steps`]:i,[`${P}-show-info`]:c,[`${P}-${l}`]:typeof l=="string",[`${P}-rtl`]:O==="rtl"},T?.className,n,o,x,$);return M(A.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},T?.style),g),className:W,role:"progressbar","aria-valuenow":v,"aria-valuemin":0,"aria-valuemax":100},Ts(m,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),z))});process.env.NODE_ENV!=="production"&&(ih.displayName="Progress");var d4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},f4=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:d4}))},ah=A.forwardRef(f4);process.env.NODE_ENV!=="production"&&(ah.displayName="DeleteOutlined");var m4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},p4=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:m4}))},sh=A.forwardRef(p4);process.env.NODE_ENV!=="production"&&(sh.displayName="DownloadOutlined");var g4={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:r}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},h4=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:g4}))},lh=A.forwardRef(h4);process.env.NODE_ENV!=="production"&&(lh.displayName="FileTwoTone");var v4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},b4=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:v4}))},ch=A.forwardRef(b4);process.env.NODE_ENV!=="production"&&(ch.displayName="PaperClipOutlined");var y4={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:r}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:r}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:r}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},C4=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:y4}))},uh=A.forwardRef(C4);process.env.NODE_ENV!=="production"&&(uh.displayName="PictureTwoTone");const vd=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return r.some(function(a){var s=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(s.charAt(0)==="."){var l=n.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(d){return l.endsWith(d)})}return/\/\*$/.test(s)?i===s.replace(/\/.*$/,""):o===s?!0:/^\w+$/.test(s)?(ht(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function x4(e,t){var r="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),n=new Error(r);return n.status=t.status,n.method=e.method,n.url=e.action,n}function dh(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function w4(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(o){var i=e.data[o];if(Array.isArray(i)){i.forEach(function(a){r.append("".concat(o,"[]"),a)});return}r.append(o,i)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(x4(e,t),dh(t)):e.onSuccess(dh(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=e.headers||{};return n["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach(function(o){n[o]!==null&&t.setRequestHeader(o,n[o])}),t.send(r),{abort:function(){t.abort()}}}var S4=function(){var e=ur(ze().mark(function t(r,n){var o,i,a,s,l,c,u,d;return ze().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:c=function(){return c=ur(ze().mark(function m(p){return ze().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",new Promise(function(w){p.file(function(S){n(S)?(p.fullPath&&!S.webkitRelativePath&&(Object.defineProperties(S,{webkitRelativePath:{writable:!0}}),S.webkitRelativePath=p.fullPath.replace(/^\//,""),Object.defineProperties(S,{webkitRelativePath:{writable:!1}})),w(S)):w(null)})}));case 1:case"end":return y.stop()}},m)})),c.apply(this,arguments)},l=function(m){return c.apply(this,arguments)},s=function(){return s=ur(ze().mark(function m(p){var b,y,w,S,v;return ze().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:b=p.createReader(),y=[];case 2:return N.next=5,new Promise(function(O){b.readEntries(O,function(){return O([])})});case 5:if(w=N.sent,S=w.length,S){N.next=9;break}return N.abrupt("break",12);case 9:for(v=0;v<S;v++)y.push(w[v]);N.next=2;break;case 12:return N.abrupt("return",y);case 13:case"end":return N.stop()}},m)})),s.apply(this,arguments)},a=function(m){return s.apply(this,arguments)},o=[],i=[],r.forEach(function(h){return i.push(h.webkitGetAsEntry())}),u=function(){var h=ur(ze().mark(function m(p,b){var y,w;return ze().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(p){v.next=2;break}return v.abrupt("return");case 2:if(p.path=b||"",!p.isFile){v.next=10;break}return v.next=6,l(p);case 6:y=v.sent,y&&o.push(y),v.next=15;break;case 10:if(!p.isDirectory){v.next=15;break}return v.next=13,a(p);case 13:w=v.sent,i.push.apply(i,ue(w));case 15:case"end":return v.stop()}},m)}));return function(p,b){return h.apply(this,arguments)}}(),d=0;case 9:if(!(d<i.length)){g.next=15;break}return g.next=12,u(i[d]);case 12:d++,g.next=9;break;case 15:return g.abrupt("return",o);case 16:case"end":return g.stop()}},t)}));return function(r,n){return e.apply(this,arguments)}}(),E4=+new Date,I4=0;function bd(){return"rc-upload-".concat(E4,"-").concat(++I4)}var A4=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],N4=function(e){Gr(r,e);var t=Hr(r);function r(){var n;Tt(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),X(be(n),"state",{uid:bd()}),X(be(n),"reqs",{}),X(be(n),"fileInput",void 0),X(be(n),"_isMounted",void 0),X(be(n),"onChange",function(s){var l=n.props,c=l.accept,u=l.directory,d=s.target.files,f=ue(d).filter(function(g){return!u||vd(g,c)});n.uploadFiles(f),n.reset()}),X(be(n),"onClick",function(s){var l=n.fileInput;if(l){var c=s.target,u=n.props.onClick;if(c&&c.tagName==="BUTTON"){var d=l.parentNode;d.focus(),c.blur()}l.click(),u&&u(s)}}),X(be(n),"onKeyDown",function(s){s.key==="Enter"&&n.onClick(s)}),X(be(n),"onDataTransferFiles",function(){var s=ur(ze().mark(function l(c,u){var d,f,g,h,m,p,b;return ze().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(d=n.props,f=d.multiple,g=d.accept,h=d.directory,m=ue(c.items||[]),p=ue(c.files||[]),(p.length>0||m.some(function(S){return S.kind==="file"}))&&u?.(),!h){w.next=11;break}return w.next=7,S4(Array.prototype.slice.call(m),function(S){return vd(S,n.props.accept)});case 7:p=w.sent,n.uploadFiles(p),w.next=14;break;case 11:b=ue(p).filter(function(S){return vd(S,g)}),f===!1&&(b=p.slice(0,1)),n.uploadFiles(b);case 14:case"end":return w.stop()}},l)}));return function(l,c){return s.apply(this,arguments)}}()),X(be(n),"onFilePaste",function(){var s=ur(ze().mark(function l(c){var u,d;return ze().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(u=n.props.pastable,u){g.next=3;break}return g.abrupt("return");case 3:if(c.type!=="paste"){g.next=6;break}return d=c.clipboardData,g.abrupt("return",n.onDataTransferFiles(d,function(){c.preventDefault()}));case 6:case"end":return g.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),X(be(n),"onFileDragOver",function(s){s.preventDefault()}),X(be(n),"onFileDrop",function(){var s=ur(ze().mark(function l(c){var u;return ze().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(c.preventDefault(),c.type!=="drop"){f.next=4;break}return u=c.dataTransfer,f.abrupt("return",n.onDataTransferFiles(u));case 4:case"end":return f.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),X(be(n),"uploadFiles",function(s){var l=ue(s),c=l.map(function(u){return u.uid=bd(),n.processFile(u,l)});Promise.all(c).then(function(u){var d=n.props.onBatchStart;d?.(u.map(function(f){var g=f.origin,h=f.parsedFile;return{file:g,parsedFile:h}})),u.filter(function(f){return f.parsedFile!==null}).forEach(function(f){n.post(f)})})}),X(be(n),"processFile",function(){var s=ur(ze().mark(function l(c,u){var d,f,g,h,m,p,b,y,w;return ze().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(d=n.props.beforeUpload,f=c,!d){v.next=14;break}return v.prev=3,v.next=6,d(c,u);case 6:f=v.sent,v.next=12;break;case 9:v.prev=9,v.t0=v.catch(3),f=!1;case 12:if(f!==!1){v.next=14;break}return v.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(g=n.props.action,typeof g!="function"){v.next=21;break}return v.next=18,g(c);case 18:h=v.sent,v.next=22;break;case 21:h=g;case 22:if(m=n.props.data,typeof m!="function"){v.next=29;break}return v.next=26,m(c);case 26:p=v.sent,v.next=30;break;case 29:p=m;case 30:return b=(we(f)==="object"||typeof f=="string")&&f?f:c,b instanceof File?y=b:y=new File([b],c.name,{type:c.type}),w=y,w.uid=c.uid,v.abrupt("return",{origin:c,data:p,parsedFile:w,action:h});case 35:case"end":return v.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}}()),X(be(n),"saveFileInput",function(s){n.fileInput=s}),n}return Pt(r,[{key:"componentDidMount",value:function(){this._isMounted=!0;var o=this.props.pastable;o&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(o){var i=this.props.pastable;i&&!o.pastable?document.addEventListener("paste",this.onFilePaste):!i&&o.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(o){var i=this,a=o.data,s=o.origin,l=o.action,c=o.parsedFile;if(this._isMounted){var u=this.props,d=u.onStart,f=u.customRequest,g=u.name,h=u.headers,m=u.withCredentials,p=u.method,b=s.uid,y=f||w4,w={action:l,filename:g,data:a,file:c,headers:h,withCredentials:m,method:p||"post",onProgress:function(v){var I=i.props.onProgress;I?.(v,c)},onSuccess:function(v,I){var N=i.props.onSuccess;N?.(v,c,I),delete i.reqs[b]},onError:function(v,I){var N=i.props.onError;N?.(v,I,c),delete i.reqs[b]}};d(s),this.reqs[b]=y(w)}}},{key:"reset",value:function(){this.setState({uid:bd()})}},{key:"abort",value:function(o){var i=this.reqs;if(o){var a=o.uid?o.uid:o;i[a]&&i[a].abort&&i[a].abort(),delete i[a]}else Object.keys(i).forEach(function(s){i[s]&&i[s].abort&&i[s].abort(),delete i[s]})}},{key:"render",value:function(){var o=this.props,i=o.component,a=o.prefixCls,s=o.className,l=o.classNames,c=l===void 0?{}:l,u=o.disabled,d=o.id,f=o.name,g=o.style,h=o.styles,m=h===void 0?{}:h,p=o.multiple,b=o.accept,y=o.capture,w=o.children,S=o.directory,v=o.openFileDialogOnClick,I=o.onMouseEnter,N=o.onMouseLeave,O=o.hasControlInside,T=vt(o,A4),P=J(X(X(X({},a,!0),"".concat(a,"-disabled"),u),s,s)),M=S?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},x=u?{}:{onClick:v?this.onClick:function(){},onKeyDown:v?this.onKeyDown:function(){},onMouseEnter:I,onMouseLeave:N,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:O?void 0:"0"};return E.createElement(i,le({},x,{className:P,role:O?void 0:"button",style:g}),E.createElement("input",le({},Kw(T,{aria:!0,data:!0}),{id:d,name:f,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(k){return k.stopPropagation()},key:this.state.uid,style:H({display:"none"},m.input),className:c.input,accept:b},M,{multiple:p,onChange:this.onChange},y!=null?{capture:y}:{})),w)}}]),r}(E.Component);function yd(){}var Cd=function(e){Gr(r,e);var t=Hr(r);function r(){var n;Tt(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),X(be(n),"uploader",void 0),X(be(n),"saveUploader",function(s){n.uploader=s}),n}return Pt(r,[{key:"abort",value:function(o){this.uploader.abort(o)}},{key:"render",value:function(){return E.createElement(N4,le({},this.props,{ref:this.saveUploader}))}}]),r}(E.Component);X(Cd,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:yd,onError:yd,onSuccess:yd,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const O4=e=>{const{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${st(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${st(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
210
|
+
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function jI(e,t){const r=Yr(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return MI(r)}const Yg=Vi("Checkbox",(e,{prefixCls:t})=>[jI(t,e)]),Jg=E.createContext(null);var RI=function(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};const LI=(e,t)=>{var r;const{prefixCls:n,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:f}=e,g=RI(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:m,checkbox:p}=A.useContext(Zt),b=A.useContext(Jg),{isFormItemInput:y}=A.useContext(Vs),w=A.useContext(Lo),S=(r=b?.disabled||f)!==null&&r!==void 0?r:w,v=A.useRef(g.value),I=A.useRef(null),N=Ei(t,I);if(process.env.NODE_ENV!=="production"){const W=kr("Checkbox");process.env.NODE_ENV!=="production"&&W("checked"in g||!!b||!("value"in g),"usage","`value` is not a valid prop, do you mean `checked`?")}A.useEffect(()=>{b?.registerValue(g.value)},[]),A.useEffect(()=>{if(!d)return g.value!==v.current&&(b?.cancelValue(v.current),b?.registerValue(g.value),v.current=g.value),()=>b?.cancelValue(g.value)},[g.value]),A.useEffect(()=>{var W;!((W=I.current)===null||W===void 0)&&W.input&&(I.current.input.indeterminate=s)},[s]);const O=h("checkbox",n),T=Mp(O),[P,M,x]=Yg(O,T),$=Object.assign({},g);b&&!d&&($.onChange=(...W)=>{g.onChange&&g.onChange.apply(g,W),b.toggleOption&&b.toggleOption({label:a,value:g.value})},$.name=b.name,$.checked=b.value.includes(g.value));const k=J(`${O}-wrapper`,{[`${O}-rtl`]:m==="rtl",[`${O}-wrapper-checked`]:$.checked,[`${O}-wrapper-disabled`]:S,[`${O}-wrapper-in-form-item`]:y},p?.className,o,i,x,T,M),F=J({[`${O}-indeterminate`]:s},Gu,M),[j,G]=$I($.onClick);return P(A.createElement(Uu,{component:"Checkbox",disabled:S},A.createElement("label",{className:k,style:Object.assign(Object.assign({},p?.style),l),onMouseEnter:c,onMouseLeave:u,onClick:j},A.createElement(FI,Object.assign({},$,{onClick:G,prefixCls:O,className:F,disabled:S,ref:N})),a!=null&&A.createElement("span",{className:`${O}-label`},a))))},hd=A.forwardRef(LI);process.env.NODE_ENV!=="production"&&(hd.displayName="Checkbox");var DI=function(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};const _I=A.forwardRef((e,t)=>{const{defaultValue:r,children:n,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=DI(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=A.useContext(Zt),[g,h]=A.useState(u.value||r||[]),[m,p]=A.useState([]);A.useEffect(()=>{"value"in u&&h(u.value||[])},[u.value]);const b=A.useMemo(()=>o.map(F=>typeof F=="string"||typeof F=="number"?{label:F,value:F}:F),[o]),y=F=>{p(j=>j.filter(G=>G!==F))},w=F=>{p(j=>[].concat(ue(j),[F]))},S=F=>{const j=g.indexOf(F.value),G=ue(g);j===-1?G.push(F.value):G.splice(j,1),"value"in u||h(G),c?.(G.filter(W=>m.includes(W)).sort((W,V)=>{const _=b.findIndex(B=>B.value===W),D=b.findIndex(B=>B.value===V);return _-D}))},v=d("checkbox",i),I=`${v}-group`,N=Mp(v),[O,T,P]=Yg(v,N),M=Ps(u,["value","disabled"]),x=o.length?b.map(F=>A.createElement(hd,{prefixCls:v,key:F.value.toString(),disabled:"disabled"in F?F.disabled:u.disabled,value:F.value,checked:g.includes(F.value),onChange:F.onChange,className:J(`${I}-item`,F.className),style:F.style,title:F.title,id:F.id,required:F.required},F.label)):n,$=A.useMemo(()=>({toggleOption:S,value:g,disabled:u.disabled,name:u.name,registerValue:w,cancelValue:y}),[S,g,u.disabled,u.name,w,y]),k=J(I,{[`${I}-rtl`]:f==="rtl"},a,s,P,N,T);return O(A.createElement("div",Object.assign({className:k,style:l},M,{ref:t}),A.createElement(Jg.Provider,{value:$},x)))}),Gs=hd;Gs.Group=_I,Gs.__ANT_CHECKBOX=!0,process.env.NODE_ENV!=="production"&&(Gs.displayName="Checkbox");var VI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},BI=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:VI}))},Zg=A.forwardRef(BI);process.env.NODE_ENV!=="production"&&(Zg.displayName="EyeOutlined");var zI={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},GI=function(){var t=E.useRef([]),r=E.useRef(null);return E.useEffect(function(){var n=Date.now(),o=!1;t.current.forEach(function(i){if(i){o=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",r.current&&n-r.current<100&&(a.transitionDuration="0s, 0s")}}),o&&(r.current=Date.now())}),t.current};process.env.NODE_ENV;var qg=0,HI=process.env.NODE_ENV!=="test"&&lr();function WI(){var e;return HI?(e=qg,qg+=1):e="TEST_OR_SSR",e}const UI=function(e){var t=A.useState(),r=ie(t,2),n=r[0],o=r[1];return A.useEffect(function(){o("rc_progress_".concat(WI()))},[]),e||n};var Qg=function(t){var r=t.bg,n=t.children;return A.createElement("div",{style:{width:"100%",height:"100%",background:r}},n)};function Kg(e,t){return Object.keys(e).map(function(r){var n=parseFloat(r),o="".concat(Math.floor(n*t),"%");return"".concat(e[r]," ").concat(o)})}var eh=A.forwardRef(function(e,t){var r=e.prefixCls,n=e.color,o=e.gradientId,i=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,d=e.gapDegree,f=n&&we(n)==="object",g=f?"#FFF":void 0,h=u/2,m=A.createElement("circle",{className:"".concat(r,"-circle-path"),r:i,cx:h,cy:h,stroke:g,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!f)return m;var p="".concat(o,"-conic"),b=d?"".concat(180+d/2,"deg"):"0deg",y=Kg(n,(360-d)/360),w=Kg(n,1),S="conic-gradient(from ".concat(b,", ").concat(y.join(", "),")"),v="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(w.join(", "),")");return A.createElement(A.Fragment,null,A.createElement("mask",{id:p},m),A.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(p,")")},A.createElement(Qg,{bg:v},A.createElement(Qg,{bg:S}))))});process.env.NODE_ENV!=="production"&&(eh.displayName="PtgCircle");var Qi=100,vd=function(t,r,n,o,i,a,s,l,c,u){var d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,f=n/100*360*((360-a)/360),g=a===0?0:{bottom:0,top:180,left:90,right:-90}[s],h=(100-o)/100*r;c==="round"&&o!==100&&(h+=u/2,h>=r&&(h=r-.01));var m=Qi/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:h+d,transform:"rotate(".concat(i+f+g,"deg)"),transformOrigin:"".concat(m,"px ").concat(m,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},XI=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function th(e){var t=e??[];return Array.isArray(t)?t:[t]}var rh=function(t){var r=H(H({},zI),t),n=r.id,o=r.prefixCls,i=r.steps,a=r.strokeWidth,s=r.trailWidth,l=r.gapDegree,c=l===void 0?0:l,u=r.gapPosition,d=r.trailColor,f=r.strokeLinecap,g=r.style,h=r.className,m=r.strokeColor,p=r.percent,b=vt(r,XI),y=Qi/2,w=UI(n),S="".concat(w,"-gradient"),v=y-a/2,I=Math.PI*2*v,N=c>0?90+c/2:-90,O=I*((360-c)/360),T=we(i)==="object"?i:{count:i,gap:2},P=T.count,M=T.gap,x=th(p),$=th(m),k=$.find(function(D){return D&&we(D)==="object"}),F=k&&we(k)==="object",j=F?"butt":f,G=vd(I,O,0,100,N,c,u,d,j,a),W=GI(),V=function(){var B=0;return x.map(function(L,z){var Q=$[z]||$[$.length-1],q=vd(I,O,B,L,N,c,u,Q,j,a);return B+=L,A.createElement(eh,{key:z,color:Q,ptg:L,radius:v,prefixCls:o,gradientId:S,style:q,strokeLinecap:j,strokeWidth:a,gapDegree:c,ref:function(K){W[z]=K},size:Qi})}).reverse()},_=function(){var B=Math.round(P*(x[0]/100)),L=100/P,z=0;return new Array(P).fill(null).map(function(Q,q){var U=q<=B-1?$[0]:d,K=U&&we(U)==="object"?"url(#".concat(S,")"):void 0,Z=vd(I,O,z,L,N,c,u,U,"butt",a,M);return z+=(O-Z.strokeDashoffset+M)*100/O,A.createElement("circle",{key:q,className:"".concat(o,"-circle-path"),r:v,cx:y,cy:y,stroke:K,strokeWidth:a,opacity:1,style:Z,ref:function(ge){W[q]=ge}})})};return A.createElement("svg",le({className:J("".concat(o,"-circle"),h),viewBox:"0 0 ".concat(Qi," ").concat(Qi),style:g,id:n,role:"presentation"},b),!P&&A.createElement("circle",{className:"".concat(o,"-circle-trail"),r:v,cx:y,cy:y,stroke:d,strokeLinecap:j,strokeWidth:s||a,style:G}),P?_():V())};process.env.NODE_ENV!=="production"&&(rh.displayName="Circle");function Xn(e){return!e||e<0?0:e>100?100:e}function Hs({success:e,successPercent:t}){let r=t;return e&&"progress"in e&&(r=e.progress),e&&"percent"in e&&(r=e.percent),r}const YI=({percent:e,success:t,successPercent:r})=>{const n=Xn(Hs({success:t,successPercent:r}));return[n,Xn(Xn(e)-n)]},JI=({success:e={},strokeColor:t})=>{const{strokeColor:r}=e;return[r||jo.green,t||null]},Ws=(e,t,r)=>{var n,o,i,a;let s=-1,l=-1;if(t==="step"){const c=r.steps,u=r.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){const c=r?.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(o=(n=e[0])!==null&&n!==void 0?n:e[1])!==null&&o!==void 0?o:120,l=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[s,l]},ZI=3,qI=e=>ZI/e*100,QI=e=>{const{prefixCls:t,trailColor:r=null,strokeLinecap:n="round",gapPosition:o,gapDegree:i,width:a=120,type:s,children:l,success:c,size:u=a,steps:d}=e,[f,g]=Ws(u,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(qI(f),6));const m={width:f,height:g,fontSize:f*.15+6},p=A.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),b=YI(e),y=o||s==="dashboard"&&"bottom"||void 0,w=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=JI({success:c,strokeColor:e.strokeColor}),v=J(`${t}-inner`,{[`${t}-circle-gradient`]:w}),I=A.createElement(rh,{steps:d,percent:d?b[1]:b,strokeWidth:h,trailWidth:h,strokeColor:d?S[1]:S,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:p,gapPosition:y}),N=f<=20,O=A.createElement("div",{className:v,style:m},I,!N&&l);return N?A.createElement(zs,{title:l},O):O},Us="--progress-line-stroke-color",nh="--progress-percent",oh=e=>{const t=e?"100%":"-100%";return new Qt(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},KI=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},_o(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Us})`]},height:"100%",width:`calc(1 / var(${nh}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${st(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:oh(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:oh(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},e4=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},t4=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},r4=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},n4=Vi("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),r=Yr(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[KI(r),e4(r),t4(r),r4(r)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}));var o4=function(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};const i4=e=>{let t=[];return Object.keys(e).forEach(r=>{const n=parseFloat(r.replace(/%/g,""));Number.isNaN(n)||t.push({key:n,value:e[r]})}),t=t.sort((r,n)=>r.key-n.key),t.map(({key:r,value:n})=>`${n} ${r}%`).join(", ")},a4=(e,t)=>{const{from:r=jo.blue,to:n=jo.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=o4(e,["from","to","direction"]);if(Object.keys(i).length!==0){const s=i4(i),l=`linear-gradient(${o}, ${s})`;return{background:l,[Us]:l}}const a=`linear-gradient(${o}, ${r}, ${n})`;return{background:a,[Us]:a}},s4=e=>{const{prefixCls:t,direction:r,percent:n,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:d}=e,{align:f,type:g}=u,h=a&&typeof a!="string"?a4(a,r):{[Us]:a,background:a},m=s==="square"||s==="butt"?0:void 0,p=o??[-1,i||(o==="small"?6:8)],[b,y]=Ws(p,"line",{strokeWidth:i});process.env.NODE_ENV!=="production"&&kr("Progress").deprecated(!("strokeWidth"in e),"strokeWidth","size");const w={backgroundColor:c||void 0,borderRadius:m},S=Object.assign(Object.assign({width:`${Xn(n)}%`,height:y,borderRadius:m},h),{[nh]:Xn(n)/100}),v=Hs(e),I={width:`${Xn(v)}%`,height:y,borderRadius:m,backgroundColor:d?.strokeColor},N={width:b<0?"100%":b},O=A.createElement("div",{className:`${t}-inner`,style:w},A.createElement("div",{className:J(`${t}-bg`,`${t}-bg-${g}`),style:S},g==="inner"&&l),v!==void 0&&A.createElement("div",{className:`${t}-success-bg`,style:I})),T=g==="outer"&&f==="start",P=g==="outer"&&f==="end";return g==="outer"&&f==="center"?A.createElement("div",{className:`${t}-layout-bottom`},O,l):A.createElement("div",{className:`${t}-outer`,style:N},T&&l,O,P&&l)},l4=e=>{const{size:t,steps:r,rounding:n=Math.round,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:c}=e,u=n(r*(o/100)),f=t??[t==="small"?2:14,i],[g,h]=Ws(f,"step",{steps:r,strokeWidth:i}),m=g/r,p=Array.from({length:r});for(let b=0;b<r;b++){const y=Array.isArray(a)?a[b]:a;p[b]=A.createElement("div",{key:b,className:J(`${l}-steps-item`,{[`${l}-steps-item-active`]:b<=u-1}),style:{backgroundColor:b<=u-1?y:s,width:m,height:h}})}return A.createElement("div",{className:`${l}-steps-outer`},p,c)};var c4=function(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};const u4=["normal","exception","active","success"],ih=A.forwardRef((e,t)=>{const{prefixCls:r,className:n,rootClassName:o,steps:i,strokeColor:a,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:d,format:f,style:g,percentPosition:h={}}=e,m=c4(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:p="end",type:b="outer"}=h,y=Array.isArray(a)?a[0]:a,w=typeof a=="string"||Array.isArray(a)?a:void 0,S=A.useMemo(()=>{if(y){const V=typeof y=="string"?y:Object.values(y)[0];return new yt(V).isLight()}return!1},[a]),v=A.useMemo(()=>{var V,_;const D=Hs(e);return parseInt(D!==void 0?(V=D??0)===null||V===void 0?void 0:V.toString():(_=s??0)===null||_===void 0?void 0:_.toString(),10)},[s,e.success,e.successPercent]),I=A.useMemo(()=>!u4.includes(d)&&v>=100?"success":d||"normal",[d,v]),{getPrefixCls:N,direction:O,progress:T}=A.useContext(Zt),P=N("progress",r),[M,x,$]=n4(P),k=u==="line",F=k&&!i,j=A.useMemo(()=>{if(!c)return null;const V=Hs(e);let _;const D=f||(L=>`${L}%`),B=k&&S&&b==="inner";return b==="inner"||f||I!=="exception"&&I!=="success"?_=D(Xn(s),Xn(V)):I==="exception"?_=k?A.createElement(Pp,null):A.createElement(kp,null):I==="success"&&(_=k?A.createElement(Tp,null):A.createElement(Bg,null)),A.createElement("span",{className:J(`${P}-text`,{[`${P}-text-bright`]:B,[`${P}-text-${p}`]:F,[`${P}-text-${b}`]:F}),title:typeof _=="string"?_:void 0},_)},[c,s,v,I,u,P,f]);if(process.env.NODE_ENV!=="production"){const V=kr("Progress");V.deprecated(!("successPercent"in e),"successPercent","success.percent"),V.deprecated(!("width"in e),"width","size"),(u==="circle"||u==="dashboard")&&(Array.isArray(l)?process.env.NODE_ENV!=="production"&&V(!1,"usage",'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.'):typeof l=="object"&&process.env.NODE_ENV!=="production"&&V(!1,"usage",'Type "circle" and "dashboard" do not accept object as `size`, please use number or preset size instead.')),e.success&&"progress"in e.success&&V.deprecated(!1,"success.progress","success.percent")}let G;u==="line"?G=i?A.createElement(l4,Object.assign({},e,{strokeColor:w,prefixCls:P,steps:typeof i=="object"?i.count:i}),j):A.createElement(s4,Object.assign({},e,{strokeColor:y,prefixCls:P,direction:O,percentPosition:{align:p,type:b}}),j):(u==="circle"||u==="dashboard")&&(G=A.createElement(QI,Object.assign({},e,{strokeColor:y,prefixCls:P,progressStatus:I}),j));const W=J(P,`${P}-status-${I}`,{[`${P}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${P}-inline-circle`]:u==="circle"&&Ws(l,"circle")[0]<=20,[`${P}-line`]:F,[`${P}-line-align-${p}`]:F,[`${P}-line-position-${b}`]:F,[`${P}-steps`]:i,[`${P}-show-info`]:c,[`${P}-${l}`]:typeof l=="string",[`${P}-rtl`]:O==="rtl"},T?.className,n,o,x,$);return M(A.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},T?.style),g),className:W,role:"progressbar","aria-valuenow":v,"aria-valuemin":0,"aria-valuemax":100},Ps(m,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),G))});process.env.NODE_ENV!=="production"&&(ih.displayName="Progress");var d4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},f4=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:d4}))},ah=A.forwardRef(f4);process.env.NODE_ENV!=="production"&&(ah.displayName="DeleteOutlined");var m4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},p4=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:m4}))},sh=A.forwardRef(p4);process.env.NODE_ENV!=="production"&&(sh.displayName="DownloadOutlined");var g4={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:r}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},h4=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:g4}))},lh=A.forwardRef(h4);process.env.NODE_ENV!=="production"&&(lh.displayName="FileTwoTone");var v4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},b4=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:v4}))},ch=A.forwardRef(b4);process.env.NODE_ENV!=="production"&&(ch.displayName="PaperClipOutlined");var y4={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:r}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:r}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:r}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},C4=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:y4}))},uh=A.forwardRef(C4);process.env.NODE_ENV!=="production"&&(uh.displayName="PictureTwoTone");const bd=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return r.some(function(a){var s=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(s.charAt(0)==="."){var l=n.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(d){return l.endsWith(d)})}return/\/\*$/.test(s)?i===s.replace(/\/.*$/,""):o===s?!0:/^\w+$/.test(s)?(ht(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function x4(e,t){var r="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),n=new Error(r);return n.status=t.status,n.method=e.method,n.url=e.action,n}function dh(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function w4(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(o){var i=e.data[o];if(Array.isArray(i)){i.forEach(function(a){r.append("".concat(o,"[]"),a)});return}r.append(o,i)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(x4(e,t),dh(t)):e.onSuccess(dh(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=e.headers||{};return n["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach(function(o){n[o]!==null&&t.setRequestHeader(o,n[o])}),t.send(r),{abort:function(){t.abort()}}}var S4=function(){var e=ur(ze().mark(function t(r,n){var o,i,a,s,l,c,u,d;return ze().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:c=function(){return c=ur(ze().mark(function m(p){return ze().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",new Promise(function(w){p.file(function(S){n(S)?(p.fullPath&&!S.webkitRelativePath&&(Object.defineProperties(S,{webkitRelativePath:{writable:!0}}),S.webkitRelativePath=p.fullPath.replace(/^\//,""),Object.defineProperties(S,{webkitRelativePath:{writable:!1}})),w(S)):w(null)})}));case 1:case"end":return y.stop()}},m)})),c.apply(this,arguments)},l=function(m){return c.apply(this,arguments)},s=function(){return s=ur(ze().mark(function m(p){var b,y,w,S,v;return ze().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:b=p.createReader(),y=[];case 2:return N.next=5,new Promise(function(O){b.readEntries(O,function(){return O([])})});case 5:if(w=N.sent,S=w.length,S){N.next=9;break}return N.abrupt("break",12);case 9:for(v=0;v<S;v++)y.push(w[v]);N.next=2;break;case 12:return N.abrupt("return",y);case 13:case"end":return N.stop()}},m)})),s.apply(this,arguments)},a=function(m){return s.apply(this,arguments)},o=[],i=[],r.forEach(function(h){return i.push(h.webkitGetAsEntry())}),u=function(){var h=ur(ze().mark(function m(p,b){var y,w;return ze().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(p){v.next=2;break}return v.abrupt("return");case 2:if(p.path=b||"",!p.isFile){v.next=10;break}return v.next=6,l(p);case 6:y=v.sent,y&&o.push(y),v.next=15;break;case 10:if(!p.isDirectory){v.next=15;break}return v.next=13,a(p);case 13:w=v.sent,i.push.apply(i,ue(w));case 15:case"end":return v.stop()}},m)}));return function(p,b){return h.apply(this,arguments)}}(),d=0;case 9:if(!(d<i.length)){g.next=15;break}return g.next=12,u(i[d]);case 12:d++,g.next=9;break;case 15:return g.abrupt("return",o);case 16:case"end":return g.stop()}},t)}));return function(r,n){return e.apply(this,arguments)}}(),E4=+new Date,I4=0;function yd(){return"rc-upload-".concat(E4,"-").concat(++I4)}var A4=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],N4=function(e){Gr(r,e);var t=Hr(r);function r(){var n;Tt(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),X(be(n),"state",{uid:yd()}),X(be(n),"reqs",{}),X(be(n),"fileInput",void 0),X(be(n),"_isMounted",void 0),X(be(n),"onChange",function(s){var l=n.props,c=l.accept,u=l.directory,d=s.target.files,f=ue(d).filter(function(g){return!u||bd(g,c)});n.uploadFiles(f),n.reset()}),X(be(n),"onClick",function(s){var l=n.fileInput;if(l){var c=s.target,u=n.props.onClick;if(c&&c.tagName==="BUTTON"){var d=l.parentNode;d.focus(),c.blur()}l.click(),u&&u(s)}}),X(be(n),"onKeyDown",function(s){s.key==="Enter"&&n.onClick(s)}),X(be(n),"onDataTransferFiles",function(){var s=ur(ze().mark(function l(c,u){var d,f,g,h,m,p,b;return ze().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(d=n.props,f=d.multiple,g=d.accept,h=d.directory,m=ue(c.items||[]),p=ue(c.files||[]),(p.length>0||m.some(function(S){return S.kind==="file"}))&&u?.(),!h){w.next=11;break}return w.next=7,S4(Array.prototype.slice.call(m),function(S){return bd(S,n.props.accept)});case 7:p=w.sent,n.uploadFiles(p),w.next=14;break;case 11:b=ue(p).filter(function(S){return bd(S,g)}),f===!1&&(b=p.slice(0,1)),n.uploadFiles(b);case 14:case"end":return w.stop()}},l)}));return function(l,c){return s.apply(this,arguments)}}()),X(be(n),"onFilePaste",function(){var s=ur(ze().mark(function l(c){var u,d;return ze().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(u=n.props.pastable,u){g.next=3;break}return g.abrupt("return");case 3:if(c.type!=="paste"){g.next=6;break}return d=c.clipboardData,g.abrupt("return",n.onDataTransferFiles(d,function(){c.preventDefault()}));case 6:case"end":return g.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),X(be(n),"onFileDragOver",function(s){s.preventDefault()}),X(be(n),"onFileDrop",function(){var s=ur(ze().mark(function l(c){var u;return ze().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(c.preventDefault(),c.type!=="drop"){f.next=4;break}return u=c.dataTransfer,f.abrupt("return",n.onDataTransferFiles(u));case 4:case"end":return f.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),X(be(n),"uploadFiles",function(s){var l=ue(s),c=l.map(function(u){return u.uid=yd(),n.processFile(u,l)});Promise.all(c).then(function(u){var d=n.props.onBatchStart;d?.(u.map(function(f){var g=f.origin,h=f.parsedFile;return{file:g,parsedFile:h}})),u.filter(function(f){return f.parsedFile!==null}).forEach(function(f){n.post(f)})})}),X(be(n),"processFile",function(){var s=ur(ze().mark(function l(c,u){var d,f,g,h,m,p,b,y,w;return ze().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(d=n.props.beforeUpload,f=c,!d){v.next=14;break}return v.prev=3,v.next=6,d(c,u);case 6:f=v.sent,v.next=12;break;case 9:v.prev=9,v.t0=v.catch(3),f=!1;case 12:if(f!==!1){v.next=14;break}return v.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(g=n.props.action,typeof g!="function"){v.next=21;break}return v.next=18,g(c);case 18:h=v.sent,v.next=22;break;case 21:h=g;case 22:if(m=n.props.data,typeof m!="function"){v.next=29;break}return v.next=26,m(c);case 26:p=v.sent,v.next=30;break;case 29:p=m;case 30:return b=(we(f)==="object"||typeof f=="string")&&f?f:c,b instanceof File?y=b:y=new File([b],c.name,{type:c.type}),w=y,w.uid=c.uid,v.abrupt("return",{origin:c,data:p,parsedFile:w,action:h});case 35:case"end":return v.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}}()),X(be(n),"saveFileInput",function(s){n.fileInput=s}),n}return Pt(r,[{key:"componentDidMount",value:function(){this._isMounted=!0;var o=this.props.pastable;o&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(o){var i=this.props.pastable;i&&!o.pastable?document.addEventListener("paste",this.onFilePaste):!i&&o.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(o){var i=this,a=o.data,s=o.origin,l=o.action,c=o.parsedFile;if(this._isMounted){var u=this.props,d=u.onStart,f=u.customRequest,g=u.name,h=u.headers,m=u.withCredentials,p=u.method,b=s.uid,y=f||w4,w={action:l,filename:g,data:a,file:c,headers:h,withCredentials:m,method:p||"post",onProgress:function(v){var I=i.props.onProgress;I?.(v,c)},onSuccess:function(v,I){var N=i.props.onSuccess;N?.(v,c,I),delete i.reqs[b]},onError:function(v,I){var N=i.props.onError;N?.(v,I,c),delete i.reqs[b]}};d(s),this.reqs[b]=y(w)}}},{key:"reset",value:function(){this.setState({uid:yd()})}},{key:"abort",value:function(o){var i=this.reqs;if(o){var a=o.uid?o.uid:o;i[a]&&i[a].abort&&i[a].abort(),delete i[a]}else Object.keys(i).forEach(function(s){i[s]&&i[s].abort&&i[s].abort(),delete i[s]})}},{key:"render",value:function(){var o=this.props,i=o.component,a=o.prefixCls,s=o.className,l=o.classNames,c=l===void 0?{}:l,u=o.disabled,d=o.id,f=o.name,g=o.style,h=o.styles,m=h===void 0?{}:h,p=o.multiple,b=o.accept,y=o.capture,w=o.children,S=o.directory,v=o.openFileDialogOnClick,I=o.onMouseEnter,N=o.onMouseLeave,O=o.hasControlInside,T=vt(o,A4),P=J(X(X(X({},a,!0),"".concat(a,"-disabled"),u),s,s)),M=S?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},x=u?{}:{onClick:v?this.onClick:function(){},onKeyDown:v?this.onKeyDown:function(){},onMouseEnter:I,onMouseLeave:N,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:O?void 0:"0"};return E.createElement(i,le({},x,{className:P,role:O?void 0:"button",style:g}),E.createElement("input",le({},Kw(T,{aria:!0,data:!0}),{id:d,name:f,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(k){return k.stopPropagation()},key:this.state.uid,style:H({display:"none"},m.input),className:c.input,accept:b},M,{multiple:p,onChange:this.onChange},y!=null?{capture:y}:{})),w)}}]),r}(E.Component);function Cd(){}var xd=function(e){Gr(r,e);var t=Hr(r);function r(){var n;Tt(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),X(be(n),"uploader",void 0),X(be(n),"saveUploader",function(s){n.uploader=s}),n}return Pt(r,[{key:"abort",value:function(o){this.uploader.abort(o)}},{key:"render",value:function(){return E.createElement(N4,le({},this.props,{ref:this.saveUploader}))}}]),r}(E.Component);X(xd,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Cd,onError:Cd,onSuccess:Cd,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const O4=e=>{const{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${st(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${st(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
211
211
|
&:not(${t}-disabled):hover,
|
|
212
212
|
&-hover:not(${t}-disabled)
|
|
213
213
|
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${st(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${r},
|
|
@@ -227,7 +227,7 @@ html body {
|
|
|
227
227
|
${r}-eye,
|
|
228
228
|
${r}-download,
|
|
229
229
|
${r}-delete
|
|
230
|
-
`]:{zIndex:10,width:n,margin:`0 ${st(e.marginXXS)}`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${st(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${st(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},$4=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},M4=e=>{const{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},_o(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}},j4=Vi("Upload",e=>{const{fontSizeHeading3:t,fontHeight:r,lineWidth:n,controlHeightLG:o,calc:i}=e,a=Yr(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(r).div(2)).add(n).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[M4(a),O4(a),k4(a),F4(a),T4(a),P4(a),$4(a),KS(a)]},e=>({actionsColor:e.colorIcon}));function Us(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Xs(e,t){const r=ue(t),n=r.findIndex(({uid:o})=>o===e.uid);return n===-1?r.push(e):r[n]=e,r}function xd(e,t){const r=e.uid!==void 0?"uid":"name";return t.filter(n=>n[r]===e[r])[0]}function R4(e,t){const r=e.uid!==void 0?"uid":"name",n=t.filter(o=>o[r]!==e[r]);return n.length===t.length?null:n}const L4=(e="")=>{const t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},fh=e=>e.indexOf("image/")===0,D4=e=>{if(e.type&&!e.thumbUrl)return fh(e.type);const t=e.thumbUrl||e.url||"",r=L4(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r)?!0:!(/^data:/.test(t)||r)},Yn=200;function _4(e){return new Promise(t=>{if(!e.type||!fh(e.type)){t("");return}const r=document.createElement("canvas");r.width=Yn,r.height=Yn,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${Yn}px; height: ${Yn}px; z-index: 9999; display: none;`,document.body.appendChild(r);const n=r.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:i,height:a}=o;let s=Yn,l=Yn,c=0,u=0;i>a?(l=a*(Yn/i),u=-(l-s)/2):(s=i*(Yn/a),c=-(s-l)/2),n.drawImage(o,c,u,s,l);const d=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(o.src),t(d)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(o.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}const V4=A.forwardRef(({prefixCls:e,className:t,style:r,locale:n,listType:o,file:i,items:a,progress:s,iconRender:l,actionIconRender:c,itemRender:u,isImgUrl:d,showPreviewIcon:f,showRemoveIcon:g,showDownloadIcon:h,previewIcon:m,removeIcon:p,downloadIcon:b,extra:y,onPreview:w,onDownload:S,onClose:v},I)=>{var N,O;const{status:T}=i,[P,M]=A.useState(T);A.useEffect(()=>{T!=="removed"&&M(T)},[T]);const[x,$]=A.useState(!1);A.useEffect(()=>{const Y=setTimeout(()=>{$(!0)},300);return()=>{clearTimeout(Y)}},[]);const k=l(i);let F=A.createElement("div",{className:`${e}-icon`},k);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(P==="uploading"||!i.thumbUrl&&!i.url){const Y=J(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:P!=="uploading"});F=A.createElement("div",{className:Y},k)}else{const Y=d?.(i)?A.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):k,Ce=J(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:d&&!d(i)});F=A.createElement("a",{className:Ce,onClick:ne=>w(i,ne),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Y)}const j=J(`${e}-list-item`,`${e}-list-item-${P}`),z=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,W=(typeof g=="function"?g(i):g)?c((typeof p=="function"?p(i):p)||A.createElement(ah,null),()=>v(i),e,n.removeFile,!0):null,V=(typeof h=="function"?h(i):h)&&P==="done"?c((typeof b=="function"?b(i):b)||A.createElement(sh,null),()=>S(i),e,n.downloadFile):null,_=o!=="picture-card"&&o!=="picture-circle"&&A.createElement("span",{key:"download-delete",className:J(`${e}-list-item-actions`,{picture:o==="picture"})},V,W),D=typeof y=="function"?y(i):y,B=D&&A.createElement("span",{className:`${e}-list-item-extra`},D),L=J(`${e}-list-item-name`),G=i.url?A.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:L,title:i.name},z,{href:i.url,onClick:Y=>w(i,Y)}),i.name,B):A.createElement("span",{key:"view",className:L,onClick:Y=>w(i,Y),title:i.name},i.name,B),Q=(typeof f=="function"?f(i):f)&&(i.url||i.thumbUrl)?A.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Y=>w(i,Y),title:n.previewFile},typeof m=="function"?m(i):m||A.createElement(Zg,null)):null,q=(o==="picture-card"||o==="picture-circle")&&P!=="uploading"&&A.createElement("span",{className:`${e}-list-item-actions`},Q,P==="done"&&V,W),{getPrefixCls:U}=A.useContext(Zt),K=U(),Z=A.createElement("div",{className:j},F,G,_,q,x&&A.createElement(mo,{motionName:`${K}-fade`,visible:P==="uploading",motionDeadline:2e3},({className:Y})=>{const Ce="percent"in i?A.createElement(ih,Object.assign({type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]},s)):null;return A.createElement("div",{className:J(`${e}-list-item-progress`,Y)},Ce)})),se=i.response&&typeof i.response=="string"?i.response:((N=i.error)===null||N===void 0?void 0:N.statusText)||((O=i.error)===null||O===void 0?void 0:O.message)||n.uploadError,pe=P==="error"?A.createElement(Bs,{title:se,getPopupContainer:Y=>Y.parentNode},Z):Z;return A.createElement("div",{className:J(`${e}-list-item-container`,t),style:r,ref:I},u?u(pe,i,a,{download:S.bind(null,i),preview:w.bind(null,i),remove:v.bind(null,i)}):pe)}),B4=(e,t)=>{const{listType:r="text",previewFile:n=_4,onPreview:o,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:c=D4,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:g=!0,showDownloadIcon:h=!1,removeIcon:m,previewIcon:p,downloadIcon:b,extra:y,progress:w={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:v=!0,itemRender:I,disabled:N}=e,O=mI(),[T,P]=A.useState(!1),M=["picture-card","picture-circle"].includes(r);A.useEffect(()=>{r.startsWith("picture")&&(d||[]).forEach(L=>{!(L.originFileObj instanceof File||L.originFileObj instanceof Blob)||L.thumbUrl!==void 0||(L.thumbUrl="",n?.(L.originFileObj).then(G=>{L.thumbUrl=G||"",O()}))})},[r,d,n]),A.useEffect(()=>{P(!0)},[]);const x=(L,G)=>{if(o)return G?.preventDefault(),o(L)},$=L=>{typeof i=="function"?i(L):L.url&&window.open(L.url)},k=L=>{a?.(L)},F=L=>{if(l)return l(L,r);const G=L.status==="uploading";if(r.startsWith("picture")){const Q=r==="picture"?A.createElement(Is,null):s.uploading,q=c?.(L)?A.createElement(uh,null):A.createElement(lh,null);return G?Q:q}return G?A.createElement(Is,null):A.createElement(ch,null)},j=(L,G,Q,q,U)=>{const K={type:"text",size:"small",title:q,onClick:Z=>{var se,pe;G(),A.isValidElement(L)&&((pe=(se=L.props).onClick)===null||pe===void 0||pe.call(se,Z))},className:`${Q}-list-item-action`,disabled:U?N:!1};return A.isValidElement(L)?A.createElement(Hi,Object.assign({},K,{icon:zi(L,Object.assign(Object.assign({},L.props),{onClick:()=>{}}))})):A.createElement(Hi,Object.assign({},K),A.createElement("span",null,L))};A.useImperativeHandle(t,()=>({handlePreview:x,handleDownload:$}));const{getPrefixCls:z}=A.useContext(Zt),W=z("upload",u),V=z(),_=J(`${W}-list`,`${W}-list-${r}`),D=A.useMemo(()=>Ts(xS(V),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[V]),B=Object.assign(Object.assign({},M?{}:D),{motionDeadline:2e3,motionName:`${W}-${M?"animate-inline":"animate"}`,keys:ue(d.map(L=>({key:L.uid,file:L}))),motionAppear:T});return A.createElement("div",{className:_},A.createElement(Sw,Object.assign({},B,{component:!1}),({key:L,file:G,className:Q,style:q})=>A.createElement(V4,{key:L,locale:s,prefixCls:W,className:Q,style:q,file:G,items:d,progress:w,listType:r,isImgUrl:c,showPreviewIcon:f,showRemoveIcon:g,showDownloadIcon:h,removeIcon:m,previewIcon:p,downloadIcon:b,extra:y,iconRender:F,actionIconRender:j,itemRender:I,onPreview:x,onDownload:$,onClose:k})),S&&A.createElement(mo,Object.assign({},B,{visible:v,forceRender:!0}),({className:L,style:G})=>zi(S,Q=>({className:J(Q.className,L),style:Object.assign(Object.assign(Object.assign({},G),{pointerEvents:L?"none":void 0}),Q.style)}))))},mh=A.forwardRef(B4);process.env.NODE_ENV!=="production"&&(mh.displayName="UploadList");var z4=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};const Ki=`__LIST_IGNORE_${Date.now()}__`,G4=(e,t)=>{const r=xu("upload"),{fileList:n,defaultFileList:o,onRemove:i,showUploadList:a=!0,listType:s="text",onPreview:l,onDownload:c,onChange:u,onDrop:d,previewFile:f,disabled:g,locale:h,iconRender:m,isImageUrl:p,progress:b,prefixCls:y,className:w,type:S="select",children:v,style:I,itemRender:N,maxCount:O,data:T={},multiple:P=!1,hasControlInside:M=!0,action:x="",accept:$="",supportServerRender:k=!0,rootClassName:F}=e,j=A.useContext(Lo),z=g??j,W=e.customRequest||r.customRequest,[V,_]=ys(o||[],{value:n,postState:he=>he??[]}),[D,B]=A.useState("drop"),L=A.useRef(null),G=A.useRef(null);if(process.env.NODE_ENV!=="production"){const he=kr("Upload");process.env.NODE_ENV!=="production"&&he("fileList"in e||!("value"in e),"usage","`value` is not a valid prop, do you mean `fileList`?"),he.deprecated(!("transformFile"in e),"transformFile","beforeUpload")}A.useMemo(()=>{const he=Date.now();(n||[]).forEach((de,Ae)=>{!de.uid&&!Object.isFrozen(de)&&(de.uid=`__AUTO__${he}_${Ae}__`)})},[n]);const Q=(he,de,Ae)=>{let Ne=ue(de),$e=!1;O===1?Ne=Ne.slice(-1):O&&($e=Ne.length>O,Ne=Ne.slice(0,O)),zr.flushSync(()=>{_(Ne)});const pt={file:he,fileList:Ne};Ae&&(pt.event=Ae),(!$e||he.status==="removed"||Ne.some(tr=>tr.uid===he.uid))&&zr.flushSync(()=>{u?.(pt)})},q=(he,de)=>z4(void 0,void 0,void 0,function*(){const{beforeUpload:Ae,transformFile:Ne}=e;let $e=he;if(Ae){const pt=yield Ae(he,de);if(pt===!1)return!1;if(delete he[Ki],pt===Ki)return Object.defineProperty(he,Ki,{value:!0,configurable:!0}),!1;typeof pt=="object"&&pt&&($e=pt)}return Ne&&($e=yield Ne($e)),$e}),U=he=>{const de=he.filter($e=>!$e.file[Ki]);if(!de.length)return;const Ae=de.map($e=>Us($e.file));let Ne=ue(V);Ae.forEach($e=>{Ne=Xs($e,Ne)}),Ae.forEach(($e,pt)=>{let tr=$e;if(de[pt].parsedFile)$e.status="uploading";else{const{originFileObj:ar}=$e;let _t;try{_t=new File([ar],ar.name,{type:ar.type})}catch{_t=new Blob([ar],{type:ar.type}),_t.name=ar.name,_t.lastModifiedDate=new Date,_t.lastModified=new Date().getTime()}_t.uid=$e.uid,tr=_t}Q(tr,Ne)})},K=(he,de,Ae)=>{try{typeof he=="string"&&(he=JSON.parse(he))}catch{}if(!xd(de,V))return;const Ne=Us(de);Ne.status="done",Ne.percent=100,Ne.response=he,Ne.xhr=Ae;const $e=Xs(Ne,V);Q(Ne,$e)},Z=(he,de)=>{if(!xd(de,V))return;const Ae=Us(de);Ae.status="uploading",Ae.percent=he.percent;const Ne=Xs(Ae,V);Q(Ae,Ne,he)},se=(he,de,Ae)=>{if(!xd(Ae,V))return;const Ne=Us(Ae);Ne.error=he,Ne.response=de,Ne.status="error";const $e=Xs(Ne,V);Q(Ne,$e)},pe=he=>{let de;Promise.resolve(typeof i=="function"?i(he):i).then(Ae=>{var Ne;if(Ae===!1)return;const $e=R4(he,V);$e&&(de=Object.assign(Object.assign({},he),{status:"removed"}),V?.forEach(pt=>{const tr=de.uid!==void 0?"uid":"name";pt[tr]===de[tr]&&!Object.isFrozen(pt)&&(pt.status="removed")}),(Ne=L.current)===null||Ne===void 0||Ne.abort(de),Q(de,$e))})},Y=he=>{B(he.type),he.type==="drop"&&d?.(he)};A.useImperativeHandle(t,()=>({onBatchStart:U,onSuccess:K,onProgress:Z,onError:se,fileList:V,upload:L.current,nativeElement:G.current}));const{getPrefixCls:Ce,direction:ne,upload:Ie}=A.useContext(Zt),ve=Ce("upload",y),Ye=Object.assign(Object.assign({onBatchStart:U,onError:se,onProgress:Z,onSuccess:K},e),{customRequest:W,data:T,multiple:P,action:x,accept:$,supportServerRender:k,prefixCls:ve,disabled:z,beforeUpload:q,onChange:void 0,hasControlInside:M});delete Ye.className,delete Ye.style,(!v||z)&&delete Ye.id;const it=`${ve}-wrapper`,[Le,St,Fe]=j4(ve,it),[Me]=lx("Upload",uo.Upload),{showRemoveIcon:bt,showPreviewIcon:Te,showDownloadIcon:Mt,removeIcon:at,previewIcon:ir,downloadIcon:Xt,extra:jt}=typeof a=="boolean"?{}:a,fr=typeof bt>"u"?!z:bt,_e=(he,de)=>a?A.createElement(mh,{prefixCls:ve,listType:s,items:V,previewFile:f,onPreview:l,onDownload:c,onRemove:pe,showRemoveIcon:fr,showPreviewIcon:Te,showDownloadIcon:Mt,removeIcon:at,previewIcon:ir,downloadIcon:Xt,iconRender:m,extra:jt,locale:Object.assign(Object.assign({},Me),h),isImageUrl:p,progress:b,appendAction:he,appendActionVisible:de,itemRender:N,disabled:z}):he,De=J(it,w,F,St,Fe,Ie?.className,{[`${ve}-rtl`]:ne==="rtl",[`${ve}-picture-card-wrapper`]:s==="picture-card",[`${ve}-picture-circle-wrapper`]:s==="picture-circle"}),Rt=Object.assign(Object.assign({},Ie?.style),I);if(S==="drag"){const he=J(St,ve,`${ve}-drag`,{[`${ve}-drag-uploading`]:V.some(de=>de.status==="uploading"),[`${ve}-drag-hover`]:D==="dragover",[`${ve}-disabled`]:z,[`${ve}-rtl`]:ne==="rtl"});return Le(A.createElement("span",{className:De,ref:G},A.createElement("div",{className:he,style:Rt,onDrop:Y,onDragOver:Y,onDragLeave:Y},A.createElement(Cd,Object.assign({},Ye,{ref:L,className:`${ve}-btn`}),A.createElement("div",{className:`${ve}-drag-container`},v))),_e()))}const Lt=J(ve,`${ve}-select`,{[`${ve}-disabled`]:z,[`${ve}-hidden`]:!v}),Dt=A.createElement("div",{className:Lt,style:Rt},A.createElement(Cd,Object.assign({},Ye,{ref:L})));return Le(s==="picture-card"||s==="picture-circle"?A.createElement("span",{className:De,ref:G},_e(Dt,!!v)):A.createElement("span",{className:De,ref:G},Dt,_e()))},wd=A.forwardRef(G4);process.env.NODE_ENV!=="production"&&(wd.displayName="Upload");var H4=function(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};const ph=A.forwardRef((e,t)=>{var{style:r,height:n,hasControlInside:o=!1}=e,i=H4(e,["style","height","hasControlInside"]);return A.createElement(wd,Object.assign({ref:t,hasControlInside:o},i,{type:"drag",style:Object.assign(Object.assign({},r),{height:n})}))});process.env.NODE_ENV!=="production"&&(ph.displayName="Dragger");const Qo=wd;Qo.Dragger=ph,Qo.LIST_IGNORE=Ki;const gh=E.forwardRef(({id:e,label:t,checked:r,isChecked:n,onChange:o,disabled:i=!1,required:a=!1,message:s,messageType:l="default",wrapperClassName:c,checkboxClassName:u,labelClassName:d,size:f="medium",variant:g="default",labelPosition:h="right",checkboxProps:m},p)=>{const b=r!==void 0?r:n||!1,y=()=>{switch(f){case"small":return"w-3 h-3";case"large":return"w-5 h-5";default:return"w-4 h-4"}},w=()=>{if(l==="error")return"text-red-600 border-red-300 focus:ring-red-500 dark:focus:ring-red-600";if(l==="success")return"text-green-600 border-green-300 focus:ring-green-500 dark:focus:ring-green-600";if(l==="info")return"text-blue-600 border-blue-300 focus:ring-blue-500 dark:focus:ring-blue-600";switch(g){case"outline":return"text-primary-600 bg-transparent border-neutral-300 focus:ring-primary-500 dark:focus:ring-primary-600";case"solid":return"text-primary-600 bg-primary-50 border-primary-300 focus:ring-primary-500 dark:focus:ring-primary-600 dark:bg-primary-900/20";default:return"text-primary-600 bg-gray-100 border-gray-300 focus:ring-primary-500 dark:focus:ring-primary-600 dark:bg-neutral-600 dark:border-gray-600"}},S=()=>l==="error"?"text-red-500 dark:text-red-400":l==="success"?"text-green-500 dark:text-green-400":l==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",v=()=>{switch(f){case"small":return"extra-small";case"large":return"medium";default:return"small"}},I=T=>{o(T.target.checked,T)},N=C.jsx(zs,{...m,ref:p,id:e,checked:b,onChange:I,disabled:i,className:J("rounded focus:ring-2 focus:ring-offset-gray-800 transition-colors duration-200",y(),w(),i&&"opacity-50 cursor-not-allowed",u),"aria-required":a,"aria-invalid":s&&l==="error"?"true":"false","aria-describedby":s?`${e}-message`:void 0}),O=t?C.jsx("label",{htmlFor:e,className:J("font-medium cursor-pointer transition-colors duration-200",i?"text-neutral-400 dark:text-neutral-600 cursor-not-allowed":"text-neutral-900 dark:text-neutral-100",h==="right"?"ml-2":"mr-2",d),children:C.jsxs(ge,{variant:"medium",size:v(),appearance:"body",children:[t,a&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})}):null;return C.jsxs("div",{className:J("flex flex-col",c),children:[C.jsx("div",{className:J("flex items-center",h==="left"&&"flex-row-reverse justify-end"),children:h==="left"?C.jsxs(C.Fragment,{children:[N,O]}):C.jsxs(C.Fragment,{children:[N,O]})}),C.jsx(Ze.AnimatePresence,{children:s&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-message`,role:l==="error"?"alert":void 0,children:C.jsx(ge,{className:J("mt-1",S()),appearance:"custom",size:"extra-small",variant:"medium",children:s})})})]})});gh.displayName="Checkbox";const hh=E.forwardRef(({id:e,label:t,value:r,defaultValue:n="#000000",onChange:o,onColorChange:i,disabled:a=!1,required:s=!1,message:l,messageType:c="default",wrapperClassName:u,inputClassName:d,labelClassName:f,size:g="medium",showValue:h=!1,valueFormat:m="hex",inputProps:p,helpText:b},y)=>{const w=r!==void 0?r:n,S=()=>{switch(g){case"small":return"w-8 h-8";case"large":return"w-16 h-16";default:return"w-12 h-12"}},v=()=>c==="error"?"text-red-500 dark:text-red-400":c==="success"?"text-green-500 dark:text-green-400":c==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",I=()=>c==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":c==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":c==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",N=()=>{switch(g){case"small":return"extra-small";case"large":return"medium";default:return"small"}},O=x=>{const $=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(x);if(!$)return x;const k=parseInt($[1],16),F=parseInt($[2],16),j=parseInt($[3],16);return`rgb(${k}, ${F}, ${j})`},T=x=>{const $=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(x);if(!$)return x;const k=parseInt($[1],16)/255,F=parseInt($[2],16)/255,j=parseInt($[3],16)/255,z=Math.max(k,F,j),W=Math.min(k,F,j);let V=0,_=0;const D=(z+W)/2;if(z!==W){const B=z-W;switch(_=D>.5?B/(2-z-W):B/(z+W),z){case k:V=(F-j)/B+(F<j?6:0);break;case F:V=(j-k)/B+2;break;case j:V=(k-F)/B+4;break}V/=6}return`hsl(${Math.round(V*360)}, ${Math.round(_*100)}%, ${Math.round(D*100)}%)`},P=()=>{switch(m){case"rgb":return O(w);case"hsl":return T(w);default:return w.toUpperCase()}},M=x=>{const $=x.target.value;o($,x),i?.($)};return C.jsxs("div",{className:J("flex flex-col w-full",u),children:[t&&C.jsx("label",{htmlFor:e,className:J("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",f),children:C.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:C.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:C.jsxs(ge,{variant:"medium",size:N(),appearance:"subtitle",children:[t,s&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),b&&C.jsx(ge,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:b}),C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx("div",{className:"relative",children:C.jsx("input",{...p,ref:y,type:"color",id:e,value:w,onChange:M,disabled:a,required:s,className:J("border rounded-md cursor-pointer transition-all duration-200","focus:outline-none focus:ring-2",S(),I(),a&&"opacity-50 cursor-not-allowed",d),style:{backgroundColor:w},"aria-required":s,"aria-invalid":l&&c==="error"?"true":"false","aria-describedby":l||b?`${e}-description`:void 0})}),h&&C.jsx("div",{className:"flex-1",children:C.jsx(ge,{variant:"medium",size:"small",appearance:"body",className:"font-mono text-neutral-700 dark:text-neutral-300",children:P()})})]}),C.jsx(Ze.AnimatePresence,{children:l&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:c==="error"?"alert":void 0,children:C.jsx(ge,{className:J("mt-1",v()),appearance:"custom",size:"extra-small",variant:"medium",children:l})})}),b&&!l&&C.jsx("div",{id:`${e}-description`,className:"sr-only",children:b})]})});hh.displayName="ColorPicker";function W4(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 U4(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 X4=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),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(U4(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=W4(o);try{i.insertRule(n,i.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}(),or="-ms-",Ys="-moz-",We="-webkit-",vh="comm",Sd="rule",Ed="decl",Y4="@import",bh="@keyframes",J4="@layer",Z4=Math.abs,Js=String.fromCharCode,q4=Object.assign;function Q4(e,t){return Kt(e,0)^45?(((t<<2^Kt(e,0))<<2^Kt(e,1))<<2^Kt(e,2))<<2^Kt(e,3):0}function yh(e){return e.trim()}function K4(e,t){return(e=t.exec(e))?e[0]:e}function Ue(e,t,r){return e.replace(t,r)}function Id(e,t){return e.indexOf(t)}function Kt(e,t){return e.charCodeAt(t)|0}function ea(e,t,r){return e.slice(t,r)}function an(e){return e.length}function Ad(e){return e.length}function Zs(e,t){return t.push(e),e}function e3(e,t){return e.map(t).join("")}var qs=1,Ko=1,Ch=0,pr=0,Gt=0,ei="";function Qs(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:qs,column:Ko,length:a,return:""}}function ta(e,t){return q4(Qs("",null,null,"",null,null,0),e,{length:-e.length},t)}function t3(){return Gt}function r3(){return Gt=pr>0?Kt(ei,--pr):0,Ko--,Gt===10&&(Ko=1,qs--),Gt}function wr(){return Gt=pr<Ch?Kt(ei,pr++):0,Ko++,Gt===10&&(Ko=1,qs++),Gt}function sn(){return Kt(ei,pr)}function Ks(){return pr}function ra(e,t){return ea(ei,e,t)}function na(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 xh(e){return qs=Ko=1,Ch=an(ei=e),pr=0,[]}function wh(e){return ei="",e}function el(e){return yh(ra(pr-1,Nd(e===91?e+2:e===40?e+1:e)))}function n3(e){for(;(Gt=sn())&&Gt<33;)wr();return na(e)>2||na(Gt)>3?"":" "}function o3(e,t){for(;--t&&wr()&&!(Gt<48||Gt>102||Gt>57&&Gt<65||Gt>70&&Gt<97););return ra(e,Ks()+(t<6&&sn()==32&&wr()==32))}function Nd(e){for(;wr();)switch(Gt){case e:return pr;case 34:case 39:e!==34&&e!==39&&Nd(Gt);break;case 40:e===41&&Nd(e);break;case 92:wr();break}return pr}function i3(e,t){for(;wr()&&e+Gt!==57;)if(e+Gt===84&&sn()===47)break;return"/*"+ra(t,pr-1)+"*"+Js(e===47?e:wr())}function a3(e){for(;!na(sn());)wr();return ra(e,pr)}function s3(e){return wh(tl("",null,null,null,[""],e=xh(e),0,[0],e))}function tl(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,g=0,h=0,m=1,p=1,b=1,y=0,w="",S=o,v=i,I=n,N=w;p;)switch(h=y,y=wr()){case 40:if(h!=108&&Kt(N,d-1)==58){Id(N+=Ue(el(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:N+=el(y);break;case 9:case 10:case 13:case 32:N+=n3(h);break;case 92:N+=o3(Ks()-1,7);continue;case 47:switch(sn()){case 42:case 47:Zs(l3(i3(wr(),Ks()),t,r),l);break;default:N+="/"}break;case 123*m:s[c++]=an(N)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+u:b==-1&&(N=Ue(N,/\f/g,"")),g>0&&an(N)-d&&Zs(g>32?Eh(N+";",n,r,d-1):Eh(Ue(N," ","")+";",n,r,d-2),l);break;case 59:N+=";";default:if(Zs(I=Sh(N,t,r,c,u,o,s,w,S=[],v=[],d),i),y===123)if(u===0)tl(N,t,I,I,S,i,d,s,v);else switch(f===99&&Kt(N,3)===110?100:f){case 100:case 108:case 109:case 115:tl(e,I,I,n&&Zs(Sh(e,I,I,0,0,o,s,w,o,S=[],d),v),o,v,d,s,n?S:v);break;default:tl(N,I,I,I,[""],v,0,s,v)}}c=u=g=0,m=b=1,w=N="",d=a;break;case 58:d=1+an(N),g=h;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&r3()==125)continue}switch(N+=Js(y),y*m){case 38:b=u>0?1:(N+="\f",-1);break;case 44:s[c++]=(an(N)-1)*b,b=1;break;case 64:sn()===45&&(N+=el(wr())),f=sn(),u=d=an(w=N+=a3(Ks())),y++;break;case 45:h===45&&an(N)==2&&(m=0)}}return i}function Sh(e,t,r,n,o,i,a,s,l,c,u){for(var d=o-1,f=o===0?i:[""],g=Ad(f),h=0,m=0,p=0;h<n;++h)for(var b=0,y=ea(e,d+1,d=Z4(m=a[h])),w=e;b<g;++b)(w=yh(m>0?f[b]+" "+y:Ue(y,/&\f/g,f[b])))&&(l[p++]=w);return Qs(e,t,r,o===0?Sd:s,l,c,u)}function l3(e,t,r){return Qs(e,t,r,vh,Js(t3()),ea(e,2,-2),0)}function Eh(e,t,r,n){return Qs(e,t,r,Ed,ea(e,0,n),ea(e,n+1,-1),n)}function ti(e,t){for(var r="",n=Ad(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function c3(e,t,r,n){switch(e.type){case J4:if(e.children.length)break;case Y4:case Ed:return e.return=e.return||e.value;case vh:return"";case bh:return e.return=e.value+"{"+ti(e.children,n)+"}";case Sd:e.value=e.props.join(",")}return an(r=ti(e.children,n))?e.return=e.value+"{"+r+"}":""}function u3(e){var t=Ad(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}function d3(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ih(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var f3=function(t,r,n){for(var o=0,i=0;o=i,i=sn(),o===38&&i===12&&(r[n]=1),!na(i);)wr();return ra(t,pr)},m3=function(t,r){var n=-1,o=44;do switch(na(o)){case 0:o===38&&sn()===12&&(r[n]=1),t[n]+=f3(pr-1,r,n);break;case 2:t[n]+=el(o);break;case 4:if(o===44){t[++n]=sn()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Js(o)}while(o=wr());return t},p3=function(t,r){return wh(m3(xh(t),r))},Ah=new WeakMap,g3=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&&!Ah.get(n))&&!o){Ah.set(t,!0);for(var i=[],a=p3(r,i),s=n.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=i[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l]}}},h3=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Nh(e,t){switch(Q4(e,t)){case 5103:return We+"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 We+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return We+e+Ys+e+or+e+e;case 6828:case 4268:return We+e+or+e+e;case 6165:return We+e+or+"flex-"+e+e;case 5187:return We+e+Ue(e,/(\w+).+(:[^]+)/,We+"box-$1$2"+or+"flex-$1$2")+e;case 5443:return We+e+or+"flex-item-"+Ue(e,/flex-|-self/,"")+e;case 4675:return We+e+or+"flex-line-pack"+Ue(e,/align-content|flex-|-self/,"")+e;case 5548:return We+e+or+Ue(e,"shrink","negative")+e;case 5292:return We+e+or+Ue(e,"basis","preferred-size")+e;case 6060:return We+"box-"+Ue(e,"-grow","")+We+e+or+Ue(e,"grow","positive")+e;case 4554:return We+Ue(e,/([^-])(transform)/g,"$1"+We+"$2")+e;case 6187:return Ue(Ue(Ue(e,/(zoom-|grab)/,We+"$1"),/(image-set)/,We+"$1"),e,"")+e;case 5495:case 3959:return Ue(e,/(image-set\([^]*)/,We+"$1$`$1");case 4968:return Ue(Ue(e,/(.+:)(flex-)?(.*)/,We+"box-pack:$3"+or+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+We+e+e;case 4095:case 3583:case 4068:case 2532:return Ue(e,/(.+)-inline(.+)/,We+"$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(an(e)-1-t>6)switch(Kt(e,t+1)){case 109:if(Kt(e,t+4)!==45)break;case 102:return Ue(e,/(.+:)(.+)-([^]+)/,"$1"+We+"$2-$3$1"+Ys+(Kt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Id(e,"stretch")?Nh(Ue(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Kt(e,t+1)!==115)break;case 6444:switch(Kt(e,an(e)-3-(~Id(e,"!important")&&10))){case 107:return Ue(e,":",":"+We)+e;case 101:return Ue(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+We+(Kt(e,14)===45?"inline-":"")+"box$3$1"+We+"$2$3$1"+or+"$2box$3")+e}break;case 5936:switch(Kt(e,t+11)){case 114:return We+e+or+Ue(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return We+e+or+Ue(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return We+e+or+Ue(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return We+e+or+e+e}return e}var v3=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Ed:t.return=Nh(t.value,t.length);break;case bh:return ti([ta(t,{value:Ue(t.value,"@","@"+We)})],o);case Sd:if(t.length)return e3(t.props,function(i){switch(K4(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ti([ta(t,{props:[Ue(i,/:(read-\w+)/,":"+Ys+"$1")]})],o);case"::placeholder":return ti([ta(t,{props:[Ue(i,/:(plac\w+)/,":"+We+"input-$1")]}),ta(t,{props:[Ue(i,/:(plac\w+)/,":"+Ys+"$1")]}),ta(t,{props:[Ue(i,/:(plac\w+)/,or+"input-$1")]})],o)}return""})}},b3=[v3],y3=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(m){var p=m.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||b3,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var p=m.getAttribute("data-emotion").split(" "),b=1;b<p.length;b++)i[p[b]]=!0;s.push(m)});var l,c=[g3,h3];{var u,d=[c3,d3(function(m){u.insert(m)})],f=u3(c.concat(o,d)),g=function(p){return ti(s3(p),f)};l=function(p,b,y,w){u=y,g(p?p+"{"+b.styles+"}":b.styles),w&&(h.inserted[b.name]=!0)}}var h={key:r,sheet:new X4({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return h.sheet.hydrate(s),h},rl={exports:{}},Ke={};/** @license React v16.13.1
|
|
230
|
+
`]:{zIndex:10,width:n,margin:`0 ${st(e.marginXXS)}`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${st(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${st(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},$4=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},M4=e=>{const{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},_o(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}},j4=Vi("Upload",e=>{const{fontSizeHeading3:t,fontHeight:r,lineWidth:n,controlHeightLG:o,calc:i}=e,a=Yr(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(r).div(2)).add(n).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[M4(a),O4(a),k4(a),F4(a),T4(a),P4(a),$4(a),KS(a)]},e=>({actionsColor:e.colorIcon}));function Xs(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Ys(e,t){const r=ue(t),n=r.findIndex(({uid:o})=>o===e.uid);return n===-1?r.push(e):r[n]=e,r}function wd(e,t){const r=e.uid!==void 0?"uid":"name";return t.filter(n=>n[r]===e[r])[0]}function R4(e,t){const r=e.uid!==void 0?"uid":"name",n=t.filter(o=>o[r]!==e[r]);return n.length===t.length?null:n}const L4=(e="")=>{const t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},fh=e=>e.indexOf("image/")===0,D4=e=>{if(e.type&&!e.thumbUrl)return fh(e.type);const t=e.thumbUrl||e.url||"",r=L4(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r)?!0:!(/^data:/.test(t)||r)},Yn=200;function _4(e){return new Promise(t=>{if(!e.type||!fh(e.type)){t("");return}const r=document.createElement("canvas");r.width=Yn,r.height=Yn,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${Yn}px; height: ${Yn}px; z-index: 9999; display: none;`,document.body.appendChild(r);const n=r.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:i,height:a}=o;let s=Yn,l=Yn,c=0,u=0;i>a?(l=a*(Yn/i),u=-(l-s)/2):(s=i*(Yn/a),c=-(s-l)/2),n.drawImage(o,c,u,s,l);const d=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(o.src),t(d)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(o.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}const V4=A.forwardRef(({prefixCls:e,className:t,style:r,locale:n,listType:o,file:i,items:a,progress:s,iconRender:l,actionIconRender:c,itemRender:u,isImgUrl:d,showPreviewIcon:f,showRemoveIcon:g,showDownloadIcon:h,previewIcon:m,removeIcon:p,downloadIcon:b,extra:y,onPreview:w,onDownload:S,onClose:v},I)=>{var N,O;const{status:T}=i,[P,M]=A.useState(T);A.useEffect(()=>{T!=="removed"&&M(T)},[T]);const[x,$]=A.useState(!1);A.useEffect(()=>{const Y=setTimeout(()=>{$(!0)},300);return()=>{clearTimeout(Y)}},[]);const k=l(i);let F=A.createElement("div",{className:`${e}-icon`},k);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(P==="uploading"||!i.thumbUrl&&!i.url){const Y=J(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:P!=="uploading"});F=A.createElement("div",{className:Y},k)}else{const Y=d?.(i)?A.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):k,Ce=J(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:d&&!d(i)});F=A.createElement("a",{className:Ce,onClick:ne=>w(i,ne),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Y)}const j=J(`${e}-list-item`,`${e}-list-item-${P}`),G=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,W=(typeof g=="function"?g(i):g)?c((typeof p=="function"?p(i):p)||A.createElement(ah,null),()=>v(i),e,n.removeFile,!0):null,V=(typeof h=="function"?h(i):h)&&P==="done"?c((typeof b=="function"?b(i):b)||A.createElement(sh,null),()=>S(i),e,n.downloadFile):null,_=o!=="picture-card"&&o!=="picture-circle"&&A.createElement("span",{key:"download-delete",className:J(`${e}-list-item-actions`,{picture:o==="picture"})},V,W),D=typeof y=="function"?y(i):y,B=D&&A.createElement("span",{className:`${e}-list-item-extra`},D),L=J(`${e}-list-item-name`),z=i.url?A.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:L,title:i.name},G,{href:i.url,onClick:Y=>w(i,Y)}),i.name,B):A.createElement("span",{key:"view",className:L,onClick:Y=>w(i,Y),title:i.name},i.name,B),Q=(typeof f=="function"?f(i):f)&&(i.url||i.thumbUrl)?A.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Y=>w(i,Y),title:n.previewFile},typeof m=="function"?m(i):m||A.createElement(Zg,null)):null,q=(o==="picture-card"||o==="picture-circle")&&P!=="uploading"&&A.createElement("span",{className:`${e}-list-item-actions`},Q,P==="done"&&V,W),{getPrefixCls:U}=A.useContext(Zt),K=U(),Z=A.createElement("div",{className:j},F,z,_,q,x&&A.createElement(mo,{motionName:`${K}-fade`,visible:P==="uploading",motionDeadline:2e3},({className:Y})=>{const Ce="percent"in i?A.createElement(ih,Object.assign({type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]},s)):null;return A.createElement("div",{className:J(`${e}-list-item-progress`,Y)},Ce)})),se=i.response&&typeof i.response=="string"?i.response:((N=i.error)===null||N===void 0?void 0:N.statusText)||((O=i.error)===null||O===void 0?void 0:O.message)||n.uploadError,ge=P==="error"?A.createElement(zs,{title:se,getPopupContainer:Y=>Y.parentNode},Z):Z;return A.createElement("div",{className:J(`${e}-list-item-container`,t),style:r,ref:I},u?u(ge,i,a,{download:S.bind(null,i),preview:w.bind(null,i),remove:v.bind(null,i)}):ge)}),B4=(e,t)=>{const{listType:r="text",previewFile:n=_4,onPreview:o,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:c=D4,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:g=!0,showDownloadIcon:h=!1,removeIcon:m,previewIcon:p,downloadIcon:b,extra:y,progress:w={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:v=!0,itemRender:I,disabled:N}=e,O=mI(),[T,P]=A.useState(!1),M=["picture-card","picture-circle"].includes(r);A.useEffect(()=>{r.startsWith("picture")&&(d||[]).forEach(L=>{!(L.originFileObj instanceof File||L.originFileObj instanceof Blob)||L.thumbUrl!==void 0||(L.thumbUrl="",n?.(L.originFileObj).then(z=>{L.thumbUrl=z||"",O()}))})},[r,d,n]),A.useEffect(()=>{P(!0)},[]);const x=(L,z)=>{if(o)return z?.preventDefault(),o(L)},$=L=>{typeof i=="function"?i(L):L.url&&window.open(L.url)},k=L=>{a?.(L)},F=L=>{if(l)return l(L,r);const z=L.status==="uploading";if(r.startsWith("picture")){const Q=r==="picture"?A.createElement(As,null):s.uploading,q=c?.(L)?A.createElement(uh,null):A.createElement(lh,null);return z?Q:q}return z?A.createElement(As,null):A.createElement(ch,null)},j=(L,z,Q,q,U)=>{const K={type:"text",size:"small",title:q,onClick:Z=>{var se,ge;z(),A.isValidElement(L)&&((ge=(se=L.props).onClick)===null||ge===void 0||ge.call(se,Z))},className:`${Q}-list-item-action`,disabled:U?N:!1};return A.isValidElement(L)?A.createElement(Hi,Object.assign({},K,{icon:zi(L,Object.assign(Object.assign({},L.props),{onClick:()=>{}}))})):A.createElement(Hi,Object.assign({},K),A.createElement("span",null,L))};A.useImperativeHandle(t,()=>({handlePreview:x,handleDownload:$}));const{getPrefixCls:G}=A.useContext(Zt),W=G("upload",u),V=G(),_=J(`${W}-list`,`${W}-list-${r}`),D=A.useMemo(()=>Ps(xS(V),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[V]),B=Object.assign(Object.assign({},M?{}:D),{motionDeadline:2e3,motionName:`${W}-${M?"animate-inline":"animate"}`,keys:ue(d.map(L=>({key:L.uid,file:L}))),motionAppear:T});return A.createElement("div",{className:_},A.createElement(Sw,Object.assign({},B,{component:!1}),({key:L,file:z,className:Q,style:q})=>A.createElement(V4,{key:L,locale:s,prefixCls:W,className:Q,style:q,file:z,items:d,progress:w,listType:r,isImgUrl:c,showPreviewIcon:f,showRemoveIcon:g,showDownloadIcon:h,removeIcon:m,previewIcon:p,downloadIcon:b,extra:y,iconRender:F,actionIconRender:j,itemRender:I,onPreview:x,onDownload:$,onClose:k})),S&&A.createElement(mo,Object.assign({},B,{visible:v,forceRender:!0}),({className:L,style:z})=>zi(S,Q=>({className:J(Q.className,L),style:Object.assign(Object.assign(Object.assign({},z),{pointerEvents:L?"none":void 0}),Q.style)}))))},mh=A.forwardRef(B4);process.env.NODE_ENV!=="production"&&(mh.displayName="UploadList");var z4=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};const Ki=`__LIST_IGNORE_${Date.now()}__`,G4=(e,t)=>{const r=wu("upload"),{fileList:n,defaultFileList:o,onRemove:i,showUploadList:a=!0,listType:s="text",onPreview:l,onDownload:c,onChange:u,onDrop:d,previewFile:f,disabled:g,locale:h,iconRender:m,isImageUrl:p,progress:b,prefixCls:y,className:w,type:S="select",children:v,style:I,itemRender:N,maxCount:O,data:T={},multiple:P=!1,hasControlInside:M=!0,action:x="",accept:$="",supportServerRender:k=!0,rootClassName:F}=e,j=A.useContext(Lo),G=g??j,W=e.customRequest||r.customRequest,[V,_]=Cs(o||[],{value:n,postState:he=>he??[]}),[D,B]=A.useState("drop"),L=A.useRef(null),z=A.useRef(null);if(process.env.NODE_ENV!=="production"){const he=kr("Upload");process.env.NODE_ENV!=="production"&&he("fileList"in e||!("value"in e),"usage","`value` is not a valid prop, do you mean `fileList`?"),he.deprecated(!("transformFile"in e),"transformFile","beforeUpload")}A.useMemo(()=>{const he=Date.now();(n||[]).forEach((de,Ae)=>{!de.uid&&!Object.isFrozen(de)&&(de.uid=`__AUTO__${he}_${Ae}__`)})},[n]);const Q=(he,de,Ae)=>{let Ne=ue(de),$e=!1;O===1?Ne=Ne.slice(-1):O&&($e=Ne.length>O,Ne=Ne.slice(0,O)),zr.flushSync(()=>{_(Ne)});const pt={file:he,fileList:Ne};Ae&&(pt.event=Ae),(!$e||he.status==="removed"||Ne.some(tr=>tr.uid===he.uid))&&zr.flushSync(()=>{u?.(pt)})},q=(he,de)=>z4(void 0,void 0,void 0,function*(){const{beforeUpload:Ae,transformFile:Ne}=e;let $e=he;if(Ae){const pt=yield Ae(he,de);if(pt===!1)return!1;if(delete he[Ki],pt===Ki)return Object.defineProperty(he,Ki,{value:!0,configurable:!0}),!1;typeof pt=="object"&&pt&&($e=pt)}return Ne&&($e=yield Ne($e)),$e}),U=he=>{const de=he.filter($e=>!$e.file[Ki]);if(!de.length)return;const Ae=de.map($e=>Xs($e.file));let Ne=ue(V);Ae.forEach($e=>{Ne=Ys($e,Ne)}),Ae.forEach(($e,pt)=>{let tr=$e;if(de[pt].parsedFile)$e.status="uploading";else{const{originFileObj:ar}=$e;let _t;try{_t=new File([ar],ar.name,{type:ar.type})}catch{_t=new Blob([ar],{type:ar.type}),_t.name=ar.name,_t.lastModifiedDate=new Date,_t.lastModified=new Date().getTime()}_t.uid=$e.uid,tr=_t}Q(tr,Ne)})},K=(he,de,Ae)=>{try{typeof he=="string"&&(he=JSON.parse(he))}catch{}if(!wd(de,V))return;const Ne=Xs(de);Ne.status="done",Ne.percent=100,Ne.response=he,Ne.xhr=Ae;const $e=Ys(Ne,V);Q(Ne,$e)},Z=(he,de)=>{if(!wd(de,V))return;const Ae=Xs(de);Ae.status="uploading",Ae.percent=he.percent;const Ne=Ys(Ae,V);Q(Ae,Ne,he)},se=(he,de,Ae)=>{if(!wd(Ae,V))return;const Ne=Xs(Ae);Ne.error=he,Ne.response=de,Ne.status="error";const $e=Ys(Ne,V);Q(Ne,$e)},ge=he=>{let de;Promise.resolve(typeof i=="function"?i(he):i).then(Ae=>{var Ne;if(Ae===!1)return;const $e=R4(he,V);$e&&(de=Object.assign(Object.assign({},he),{status:"removed"}),V?.forEach(pt=>{const tr=de.uid!==void 0?"uid":"name";pt[tr]===de[tr]&&!Object.isFrozen(pt)&&(pt.status="removed")}),(Ne=L.current)===null||Ne===void 0||Ne.abort(de),Q(de,$e))})},Y=he=>{B(he.type),he.type==="drop"&&d?.(he)};A.useImperativeHandle(t,()=>({onBatchStart:U,onSuccess:K,onProgress:Z,onError:se,fileList:V,upload:L.current,nativeElement:z.current}));const{getPrefixCls:Ce,direction:ne,upload:Ie}=A.useContext(Zt),ve=Ce("upload",y),Ye=Object.assign(Object.assign({onBatchStart:U,onError:se,onProgress:Z,onSuccess:K},e),{customRequest:W,data:T,multiple:P,action:x,accept:$,supportServerRender:k,prefixCls:ve,disabled:G,beforeUpload:q,onChange:void 0,hasControlInside:M});delete Ye.className,delete Ye.style,(!v||G)&&delete Ye.id;const it=`${ve}-wrapper`,[Le,St,Fe]=j4(ve,it),[Me]=lx("Upload",uo.Upload),{showRemoveIcon:bt,showPreviewIcon:Te,showDownloadIcon:Mt,removeIcon:at,previewIcon:ir,downloadIcon:Xt,extra:jt}=typeof a=="boolean"?{}:a,fr=typeof bt>"u"?!G:bt,_e=(he,de)=>a?A.createElement(mh,{prefixCls:ve,listType:s,items:V,previewFile:f,onPreview:l,onDownload:c,onRemove:ge,showRemoveIcon:fr,showPreviewIcon:Te,showDownloadIcon:Mt,removeIcon:at,previewIcon:ir,downloadIcon:Xt,iconRender:m,extra:jt,locale:Object.assign(Object.assign({},Me),h),isImageUrl:p,progress:b,appendAction:he,appendActionVisible:de,itemRender:N,disabled:G}):he,De=J(it,w,F,St,Fe,Ie?.className,{[`${ve}-rtl`]:ne==="rtl",[`${ve}-picture-card-wrapper`]:s==="picture-card",[`${ve}-picture-circle-wrapper`]:s==="picture-circle"}),Rt=Object.assign(Object.assign({},Ie?.style),I);if(S==="drag"){const he=J(St,ve,`${ve}-drag`,{[`${ve}-drag-uploading`]:V.some(de=>de.status==="uploading"),[`${ve}-drag-hover`]:D==="dragover",[`${ve}-disabled`]:G,[`${ve}-rtl`]:ne==="rtl"});return Le(A.createElement("span",{className:De,ref:z},A.createElement("div",{className:he,style:Rt,onDrop:Y,onDragOver:Y,onDragLeave:Y},A.createElement(xd,Object.assign({},Ye,{ref:L,className:`${ve}-btn`}),A.createElement("div",{className:`${ve}-drag-container`},v))),_e()))}const Lt=J(ve,`${ve}-select`,{[`${ve}-disabled`]:G,[`${ve}-hidden`]:!v}),Dt=A.createElement("div",{className:Lt,style:Rt},A.createElement(xd,Object.assign({},Ye,{ref:L})));return Le(s==="picture-card"||s==="picture-circle"?A.createElement("span",{className:De,ref:z},_e(Dt,!!v)):A.createElement("span",{className:De,ref:z},Dt,_e()))},Sd=A.forwardRef(G4);process.env.NODE_ENV!=="production"&&(Sd.displayName="Upload");var H4=function(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};const ph=A.forwardRef((e,t)=>{var{style:r,height:n,hasControlInside:o=!1}=e,i=H4(e,["style","height","hasControlInside"]);return A.createElement(Sd,Object.assign({ref:t,hasControlInside:o},i,{type:"drag",style:Object.assign(Object.assign({},r),{height:n})}))});process.env.NODE_ENV!=="production"&&(ph.displayName="Dragger");const Qo=Sd;Qo.Dragger=ph,Qo.LIST_IGNORE=Ki;const gh=E.forwardRef(({id:e,label:t,checked:r,isChecked:n,onChange:o,disabled:i=!1,required:a=!1,message:s,messageType:l="default",wrapperClassName:c,checkboxClassName:u,labelClassName:d,size:f="medium",variant:g="default",labelPosition:h="right",checkboxProps:m},p)=>{const b=r!==void 0?r:n||!1,y=()=>{switch(f){case"small":return"w-3 h-3";case"large":return"w-5 h-5";default:return"w-4 h-4"}},w=()=>{if(l==="error")return"text-red-600 border-red-300 focus:ring-red-500 dark:focus:ring-red-600";if(l==="success")return"text-green-600 border-green-300 focus:ring-green-500 dark:focus:ring-green-600";if(l==="info")return"text-blue-600 border-blue-300 focus:ring-blue-500 dark:focus:ring-blue-600";switch(g){case"outline":return"text-primary-600 bg-transparent border-neutral-300 focus:ring-primary-500 dark:focus:ring-primary-600";case"solid":return"text-primary-600 bg-primary-50 border-primary-300 focus:ring-primary-500 dark:focus:ring-primary-600 dark:bg-primary-900/20";default:return"text-primary-600 bg-gray-100 border-gray-300 focus:ring-primary-500 dark:focus:ring-primary-600 dark:bg-neutral-600 dark:border-gray-600"}},S=()=>l==="error"?"text-red-500 dark:text-red-400":l==="success"?"text-green-500 dark:text-green-400":l==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",v=()=>{switch(f){case"small":return"extra-small";case"large":return"medium";default:return"small"}},I=T=>{o(T.target.checked,T)},N=C.jsx(Gs,{...m,ref:p,id:e,checked:b,onChange:I,disabled:i,className:J("rounded focus:ring-2 focus:ring-offset-gray-800 transition-colors duration-200",y(),w(),i&&"opacity-50 cursor-not-allowed",u),"aria-required":a,"aria-invalid":s&&l==="error"?"true":"false","aria-describedby":s?`${e}-message`:void 0}),O=t?C.jsx("label",{htmlFor:e,className:J("font-medium cursor-pointer transition-colors duration-200",i?"text-neutral-400 dark:text-neutral-600 cursor-not-allowed":"text-neutral-900 dark:text-neutral-100",h==="right"?"ml-2":"mr-2",d),children:C.jsxs(pe,{variant:"medium",size:v(),appearance:"body",children:[t,a&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})}):null;return C.jsxs("div",{className:J("flex flex-col",c),children:[C.jsx("div",{className:J("flex items-center",h==="left"&&"flex-row-reverse justify-end"),children:h==="left"?C.jsxs(C.Fragment,{children:[N,O]}):C.jsxs(C.Fragment,{children:[N,O]})}),C.jsx(Ze.AnimatePresence,{children:s&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-message`,role:l==="error"?"alert":void 0,children:C.jsx(pe,{className:J("mt-1",S()),appearance:"custom",size:"extra-small",variant:"medium",children:s})})})]})});gh.displayName="Checkbox";const hh=E.forwardRef(({id:e,label:t,value:r,defaultValue:n="#000000",onChange:o,onColorChange:i,disabled:a=!1,required:s=!1,message:l,messageType:c="default",wrapperClassName:u,inputClassName:d,labelClassName:f,size:g="medium",showValue:h=!1,valueFormat:m="hex",inputProps:p,helpText:b},y)=>{const w=r!==void 0?r:n,S=()=>{switch(g){case"small":return"w-8 h-8";case"large":return"w-16 h-16";default:return"w-12 h-12"}},v=()=>c==="error"?"text-red-500 dark:text-red-400":c==="success"?"text-green-500 dark:text-green-400":c==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",I=()=>c==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":c==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":c==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",N=()=>{switch(g){case"small":return"extra-small";case"large":return"medium";default:return"small"}},O=x=>{const $=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(x);if(!$)return x;const k=parseInt($[1],16),F=parseInt($[2],16),j=parseInt($[3],16);return`rgb(${k}, ${F}, ${j})`},T=x=>{const $=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(x);if(!$)return x;const k=parseInt($[1],16)/255,F=parseInt($[2],16)/255,j=parseInt($[3],16)/255,G=Math.max(k,F,j),W=Math.min(k,F,j);let V=0,_=0;const D=(G+W)/2;if(G!==W){const B=G-W;switch(_=D>.5?B/(2-G-W):B/(G+W),G){case k:V=(F-j)/B+(F<j?6:0);break;case F:V=(j-k)/B+2;break;case j:V=(k-F)/B+4;break}V/=6}return`hsl(${Math.round(V*360)}, ${Math.round(_*100)}%, ${Math.round(D*100)}%)`},P=()=>{switch(m){case"rgb":return O(w);case"hsl":return T(w);default:return w.toUpperCase()}},M=x=>{const $=x.target.value;o($,x),i?.($)};return C.jsxs("div",{className:J("flex flex-col w-full",u),children:[t&&C.jsx("label",{htmlFor:e,className:J("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",f),children:C.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:C.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:C.jsxs(pe,{variant:"medium",size:N(),appearance:"subtitle",children:[t,s&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),b&&C.jsx(pe,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:b}),C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx("div",{className:"relative",children:C.jsx("input",{...p,ref:y,type:"color",id:e,value:w,onChange:M,disabled:a,required:s,className:J("border rounded-md cursor-pointer transition-all duration-200","focus:outline-none focus:ring-2",S(),I(),a&&"opacity-50 cursor-not-allowed",d),style:{backgroundColor:w},"aria-required":s,"aria-invalid":l&&c==="error"?"true":"false","aria-describedby":l||b?`${e}-description`:void 0})}),h&&C.jsx("div",{className:"flex-1",children:C.jsx(pe,{variant:"medium",size:"small",appearance:"body",className:"font-mono text-neutral-700 dark:text-neutral-300",children:P()})})]}),C.jsx(Ze.AnimatePresence,{children:l&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:c==="error"?"alert":void 0,children:C.jsx(pe,{className:J("mt-1",v()),appearance:"custom",size:"extra-small",variant:"medium",children:l})})}),b&&!l&&C.jsx("div",{id:`${e}-description`,className:"sr-only",children:b})]})});hh.displayName="ColorPicker";function W4(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 U4(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 X4=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),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(U4(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=W4(o);try{i.insertRule(n,i.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}(),or="-ms-",Js="-moz-",We="-webkit-",vh="comm",Ed="rule",Id="decl",Y4="@import",bh="@keyframes",J4="@layer",Z4=Math.abs,Zs=String.fromCharCode,q4=Object.assign;function Q4(e,t){return Kt(e,0)^45?(((t<<2^Kt(e,0))<<2^Kt(e,1))<<2^Kt(e,2))<<2^Kt(e,3):0}function yh(e){return e.trim()}function K4(e,t){return(e=t.exec(e))?e[0]:e}function Ue(e,t,r){return e.replace(t,r)}function Ad(e,t){return e.indexOf(t)}function Kt(e,t){return e.charCodeAt(t)|0}function ea(e,t,r){return e.slice(t,r)}function an(e){return e.length}function Nd(e){return e.length}function qs(e,t){return t.push(e),e}function e3(e,t){return e.map(t).join("")}var Qs=1,Ko=1,Ch=0,pr=0,Gt=0,ei="";function Ks(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Qs,column:Ko,length:a,return:""}}function ta(e,t){return q4(Ks("",null,null,"",null,null,0),e,{length:-e.length},t)}function t3(){return Gt}function r3(){return Gt=pr>0?Kt(ei,--pr):0,Ko--,Gt===10&&(Ko=1,Qs--),Gt}function wr(){return Gt=pr<Ch?Kt(ei,pr++):0,Ko++,Gt===10&&(Ko=1,Qs++),Gt}function sn(){return Kt(ei,pr)}function el(){return pr}function ra(e,t){return ea(ei,e,t)}function na(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 xh(e){return Qs=Ko=1,Ch=an(ei=e),pr=0,[]}function wh(e){return ei="",e}function tl(e){return yh(ra(pr-1,Od(e===91?e+2:e===40?e+1:e)))}function n3(e){for(;(Gt=sn())&&Gt<33;)wr();return na(e)>2||na(Gt)>3?"":" "}function o3(e,t){for(;--t&&wr()&&!(Gt<48||Gt>102||Gt>57&&Gt<65||Gt>70&&Gt<97););return ra(e,el()+(t<6&&sn()==32&&wr()==32))}function Od(e){for(;wr();)switch(Gt){case e:return pr;case 34:case 39:e!==34&&e!==39&&Od(Gt);break;case 40:e===41&&Od(e);break;case 92:wr();break}return pr}function i3(e,t){for(;wr()&&e+Gt!==57;)if(e+Gt===84&&sn()===47)break;return"/*"+ra(t,pr-1)+"*"+Zs(e===47?e:wr())}function a3(e){for(;!na(sn());)wr();return ra(e,pr)}function s3(e){return wh(rl("",null,null,null,[""],e=xh(e),0,[0],e))}function rl(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,g=0,h=0,m=1,p=1,b=1,y=0,w="",S=o,v=i,I=n,N=w;p;)switch(h=y,y=wr()){case 40:if(h!=108&&Kt(N,d-1)==58){Ad(N+=Ue(tl(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:N+=tl(y);break;case 9:case 10:case 13:case 32:N+=n3(h);break;case 92:N+=o3(el()-1,7);continue;case 47:switch(sn()){case 42:case 47:qs(l3(i3(wr(),el()),t,r),l);break;default:N+="/"}break;case 123*m:s[c++]=an(N)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+u:b==-1&&(N=Ue(N,/\f/g,"")),g>0&&an(N)-d&&qs(g>32?Eh(N+";",n,r,d-1):Eh(Ue(N," ","")+";",n,r,d-2),l);break;case 59:N+=";";default:if(qs(I=Sh(N,t,r,c,u,o,s,w,S=[],v=[],d),i),y===123)if(u===0)rl(N,t,I,I,S,i,d,s,v);else switch(f===99&&Kt(N,3)===110?100:f){case 100:case 108:case 109:case 115:rl(e,I,I,n&&qs(Sh(e,I,I,0,0,o,s,w,o,S=[],d),v),o,v,d,s,n?S:v);break;default:rl(N,I,I,I,[""],v,0,s,v)}}c=u=g=0,m=b=1,w=N="",d=a;break;case 58:d=1+an(N),g=h;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&r3()==125)continue}switch(N+=Zs(y),y*m){case 38:b=u>0?1:(N+="\f",-1);break;case 44:s[c++]=(an(N)-1)*b,b=1;break;case 64:sn()===45&&(N+=tl(wr())),f=sn(),u=d=an(w=N+=a3(el())),y++;break;case 45:h===45&&an(N)==2&&(m=0)}}return i}function Sh(e,t,r,n,o,i,a,s,l,c,u){for(var d=o-1,f=o===0?i:[""],g=Nd(f),h=0,m=0,p=0;h<n;++h)for(var b=0,y=ea(e,d+1,d=Z4(m=a[h])),w=e;b<g;++b)(w=yh(m>0?f[b]+" "+y:Ue(y,/&\f/g,f[b])))&&(l[p++]=w);return Ks(e,t,r,o===0?Ed:s,l,c,u)}function l3(e,t,r){return Ks(e,t,r,vh,Zs(t3()),ea(e,2,-2),0)}function Eh(e,t,r,n){return Ks(e,t,r,Id,ea(e,0,n),ea(e,n+1,-1),n)}function ti(e,t){for(var r="",n=Nd(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function c3(e,t,r,n){switch(e.type){case J4:if(e.children.length)break;case Y4:case Id:return e.return=e.return||e.value;case vh:return"";case bh:return e.return=e.value+"{"+ti(e.children,n)+"}";case Ed:e.value=e.props.join(",")}return an(r=ti(e.children,n))?e.return=e.value+"{"+r+"}":""}function u3(e){var t=Nd(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}function d3(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ih(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var f3=function(t,r,n){for(var o=0,i=0;o=i,i=sn(),o===38&&i===12&&(r[n]=1),!na(i);)wr();return ra(t,pr)},m3=function(t,r){var n=-1,o=44;do switch(na(o)){case 0:o===38&&sn()===12&&(r[n]=1),t[n]+=f3(pr-1,r,n);break;case 2:t[n]+=tl(o);break;case 4:if(o===44){t[++n]=sn()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Zs(o)}while(o=wr());return t},p3=function(t,r){return wh(m3(xh(t),r))},Ah=new WeakMap,g3=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&&!Ah.get(n))&&!o){Ah.set(t,!0);for(var i=[],a=p3(r,i),s=n.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=i[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l]}}},h3=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Nh(e,t){switch(Q4(e,t)){case 5103:return We+"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 We+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return We+e+Js+e+or+e+e;case 6828:case 4268:return We+e+or+e+e;case 6165:return We+e+or+"flex-"+e+e;case 5187:return We+e+Ue(e,/(\w+).+(:[^]+)/,We+"box-$1$2"+or+"flex-$1$2")+e;case 5443:return We+e+or+"flex-item-"+Ue(e,/flex-|-self/,"")+e;case 4675:return We+e+or+"flex-line-pack"+Ue(e,/align-content|flex-|-self/,"")+e;case 5548:return We+e+or+Ue(e,"shrink","negative")+e;case 5292:return We+e+or+Ue(e,"basis","preferred-size")+e;case 6060:return We+"box-"+Ue(e,"-grow","")+We+e+or+Ue(e,"grow","positive")+e;case 4554:return We+Ue(e,/([^-])(transform)/g,"$1"+We+"$2")+e;case 6187:return Ue(Ue(Ue(e,/(zoom-|grab)/,We+"$1"),/(image-set)/,We+"$1"),e,"")+e;case 5495:case 3959:return Ue(e,/(image-set\([^]*)/,We+"$1$`$1");case 4968:return Ue(Ue(e,/(.+:)(flex-)?(.*)/,We+"box-pack:$3"+or+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+We+e+e;case 4095:case 3583:case 4068:case 2532:return Ue(e,/(.+)-inline(.+)/,We+"$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(an(e)-1-t>6)switch(Kt(e,t+1)){case 109:if(Kt(e,t+4)!==45)break;case 102:return Ue(e,/(.+:)(.+)-([^]+)/,"$1"+We+"$2-$3$1"+Js+(Kt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ad(e,"stretch")?Nh(Ue(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Kt(e,t+1)!==115)break;case 6444:switch(Kt(e,an(e)-3-(~Ad(e,"!important")&&10))){case 107:return Ue(e,":",":"+We)+e;case 101:return Ue(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+We+(Kt(e,14)===45?"inline-":"")+"box$3$1"+We+"$2$3$1"+or+"$2box$3")+e}break;case 5936:switch(Kt(e,t+11)){case 114:return We+e+or+Ue(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return We+e+or+Ue(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return We+e+or+Ue(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return We+e+or+e+e}return e}var v3=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Id:t.return=Nh(t.value,t.length);break;case bh:return ti([ta(t,{value:Ue(t.value,"@","@"+We)})],o);case Ed:if(t.length)return e3(t.props,function(i){switch(K4(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ti([ta(t,{props:[Ue(i,/:(read-\w+)/,":"+Js+"$1")]})],o);case"::placeholder":return ti([ta(t,{props:[Ue(i,/:(plac\w+)/,":"+We+"input-$1")]}),ta(t,{props:[Ue(i,/:(plac\w+)/,":"+Js+"$1")]}),ta(t,{props:[Ue(i,/:(plac\w+)/,or+"input-$1")]})],o)}return""})}},b3=[v3],y3=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(m){var p=m.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||b3,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var p=m.getAttribute("data-emotion").split(" "),b=1;b<p.length;b++)i[p[b]]=!0;s.push(m)});var l,c=[g3,h3];{var u,d=[c3,d3(function(m){u.insert(m)})],f=u3(c.concat(o,d)),g=function(p){return ti(s3(p),f)};l=function(p,b,y,w){u=y,g(p?p+"{"+b.styles+"}":b.styles),w&&(h.inserted[b.name]=!0)}}var h={key:r,sheet:new X4({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return h.sheet.hydrate(s),h},nl={exports:{}},Ke={};/** @license React v16.13.1
|
|
231
231
|
* react-is.production.min.js
|
|
232
232
|
*
|
|
233
233
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -241,10 +241,10 @@ html body {
|
|
|
241
241
|
*
|
|
242
242
|
* This source code is licensed under the MIT license found in the
|
|
243
243
|
* LICENSE file in the root directory of this source tree.
|
|
244
|
-
*/var Th;function x3(){return Th||(Th=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,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function w(Y){return typeof Y=="string"||typeof Y=="function"||Y===n||Y===c||Y===i||Y===o||Y===d||Y===f||typeof Y=="object"&&Y!==null&&(Y.$$typeof===h||Y.$$typeof===g||Y.$$typeof===a||Y.$$typeof===s||Y.$$typeof===u||Y.$$typeof===p||Y.$$typeof===b||Y.$$typeof===y||Y.$$typeof===m)}function S(Y){if(typeof Y=="object"&&Y!==null){var Ce=Y.$$typeof;switch(Ce){case t:var ne=Y.type;switch(ne){case l:case c:case n:case i:case o:case d:return ne;default:var Ie=ne&&ne.$$typeof;switch(Ie){case s:case u:case h:case g:case a:return Ie;default:return Ce}}case r:return Ce}}}var v=l,I=c,N=s,O=a,T=t,P=u,M=n,x=h,$=g,k=r,F=i,j=o,z=d,W=!1;function V(Y){return W||(W=!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.")),_(Y)||S(Y)===l}function _(Y){return S(Y)===c}function D(Y){return S(Y)===s}function B(Y){return S(Y)===a}function L(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===t}function G(Y){return S(Y)===u}function Q(Y){return S(Y)===n}function q(Y){return S(Y)===h}function U(Y){return S(Y)===g}function K(Y){return S(Y)===r}function Z(Y){return S(Y)===i}function se(Y){return S(Y)===o}function pe(Y){return S(Y)===d}et.AsyncMode=v,et.ConcurrentMode=I,et.ContextConsumer=N,et.ContextProvider=O,et.Element=T,et.ForwardRef=P,et.Fragment=M,et.Lazy=x,et.Memo=$,et.Portal=k,et.Profiler=F,et.StrictMode=j,et.Suspense=z,et.isAsyncMode=V,et.isConcurrentMode=_,et.isContextConsumer=D,et.isContextProvider=B,et.isElement=L,et.isForwardRef=G,et.isFragment=Q,et.isLazy=q,et.isMemo=U,et.isPortal=K,et.isProfiler=Z,et.isStrictMode=se,et.isSuspense=pe,et.isValidElementType=w,et.typeOf=S}()),et}var Ph;function w3(){return Ph||(Ph=1,process.env.NODE_ENV==="production"?rl.exports=C3():rl.exports=x3()),rl.exports}var Od,kh;function S3(){if(kh)return Od;kh=1;var e=w3(),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},i={};i[e.ForwardRef]=n,i[e.Memo]=o;function a(h){return e.isMemo(h)?o:i[h.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function g(h,m,p){if(typeof m!="string"){if(f){var b=d(m);b&&b!==f&&g(h,b,p)}var y=l(m);c&&(y=y.concat(c(m)));for(var w=a(h),S=a(m),v=0;v<y.length;++v){var I=y[v];if(!r[I]&&!(p&&p[I])&&!(S&&S[I])&&!(w&&w[I])){var N=u(m,I);try{s(h,I,N)}catch{}}}}return h}return Od=g,Od}S3();var E3=!0;function Fh(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Td=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||E3===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},$h=function(t,r,n){Td(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function I3(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 A3={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},N3=/[A-Z]|^ms/g,O3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Mh=function(t){return t.charCodeAt(1)===45},jh=function(t){return t!=null&&typeof t!="boolean"},Pd=Ih(function(e){return Mh(e)?e:e.replace(N3,"-$&").toLowerCase()}),Rh=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(O3,function(n,o,i){return ln={name:o,styles:i,next:ln},o})}return A3[t]!==1&&!Mh(t)&&typeof r=="number"&&r!==0?r+"px":r};function oa(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 ln={name:o.name,styles:o.styles,next:ln},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ln={name:a.name,styles:a.styles,next:ln},a=a.next;var s=i.styles+";";return s}return T3(e,t,r)}case"function":{if(e!==void 0){var l=ln,c=r(e);return ln=l,oa(e,t,c)}break}}var u=r;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function T3(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=oa(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":jh(s)&&(n+=Pd(i)+":"+Rh(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)jh(a[l])&&(n+=Pd(i)+":"+Rh(i,a[l])+";");else{var c=oa(e,t,a);switch(i){case"animation":case"animationName":{n+=Pd(i)+":"+c+";";break}default:n+=i+"{"+c+"}"}}}return n}var Lh=/label:\s*([^\s;{]+)\s*(;|$)/g,ln;function nl(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="";ln=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=oa(r,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=oa(r,t,e[s]),n){var l=i;o+=l[s]}Lh.lastIndex=0;for(var c="",u;(u=Lh.exec(o))!==null;)c+="-"+u[1];var d=I3(o)+c;return{name:d,styles:o,next:ln}}var P3=function(t){return t()},k3=A.useInsertionEffect?A.useInsertionEffect:!1,Dh=k3||P3,_h=A.createContext(typeof HTMLElement<"u"?y3({key:"css"}):null);_h.Provider;var Vh=function(t){return E.forwardRef(function(r,n){var o=E.useContext(_h);return t(r,o,n)})},Bh=A.createContext({}),kd={}.hasOwnProperty,Fd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",F3=function(t,r){var n={};for(var o in r)kd.call(r,o)&&(n[o]=r[o]);return n[Fd]=t,n},$3=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Td(r,n,o),Dh(function(){return $h(r,n,o)}),null},M3=Vh(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Fd],i=[n],a="";typeof e.className=="string"?a=Fh(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=nl(i,void 0,A.useContext(Bh));a+=t.key+"-"+s.name;var l={};for(var c in e)kd.call(e,c)&&c!=="css"&&c!==Fd&&(l[c]=e[c]);return l.className=a,r&&(l.ref=r),A.createElement(A.Fragment,null,A.createElement($3,{cache:t,serialized:s,isStringTag:typeof o=="string"}),A.createElement(o,l))}),j3=M3,ye=function(t,r){var n=arguments;if(r==null||!kd.call(r,"css"))return A.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=j3,i[1]=F3(t,r);for(var a=2;a<o;a++)i[a]=n[a];return A.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(ye||(ye={}));function $d(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return nl(t)}function R3(){var e=$d.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_"}}}function L3(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const D3=Math.min,_3=Math.max,ol=Math.round,il=Math.floor,al=e=>({x:e,y:e});function V3(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function sl(){return typeof window<"u"}function zh(e){return Hh(e)?(e.nodeName||"").toLowerCase():"#document"}function xn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Gh(e){var t;return(t=(Hh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hh(e){return sl()?e instanceof Node||e instanceof xn(e).Node:!1}function B3(e){return sl()?e instanceof Element||e instanceof xn(e).Element:!1}function Md(e){return sl()?e instanceof HTMLElement||e instanceof xn(e).HTMLElement:!1}function Wh(e){return!sl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xn(e).ShadowRoot}const z3=new Set(["inline","contents"]);function Uh(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=jd(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!z3.has(o)}function G3(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const H3=new Set(["html","body","#document"]);function W3(e){return H3.has(zh(e))}function jd(e){return xn(e).getComputedStyle(e)}function U3(e){if(zh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Wh(e)&&e.host||Gh(e);return Wh(t)?t.host:t}function Xh(e){const t=U3(e);return W3(t)?e.ownerDocument?e.ownerDocument.body:e.body:Md(t)&&Uh(t)?t:Xh(t)}function ll(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Xh(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=xn(o);if(i){const s=Rd(a);return t.concat(a,a.visualViewport||[],Uh(o)?o:[],s&&r?ll(s):[])}return t.concat(o,ll(o,[],r))}function Rd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function X3(e){const t=jd(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Md(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=ol(r)!==i||ol(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function Ld(e){return B3(e)?e:e.contextElement}function Yh(e){const t=Ld(e);if(!Md(t))return al(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=X3(t);let a=(i?ol(r.width):r.width)/n,s=(i?ol(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Y3=al(0);function J3(e){const t=xn(e);return!G3()||!t.visualViewport?Y3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Z3(e,t,r){return!1}function Jh(e,t,r,n){t===void 0&&(t=!1);const o=e.getBoundingClientRect(),i=Ld(e);let a=al(1);t&&(a=Yh(e));const s=Z3()?J3(i):al(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const f=xn(i),g=n;let h=f,m=Rd(h);for(;m&&n&&g!==h;){const p=Yh(m),b=m.getBoundingClientRect(),y=jd(m),w=b.left+(m.clientLeft+parseFloat(y.paddingLeft))*p.x,S=b.top+(m.clientTop+parseFloat(y.paddingTop))*p.y;l*=p.x,c*=p.y,u*=p.x,d*=p.y,l+=w,c+=S,h=xn(m),m=Rd(h)}}return V3({width:u,height:d,x:l,y:c})}function Zh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function q3(e,t){let r=null,n;const o=Gh(e);function i(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:g}=c;if(s||t(),!f||!g)return;const h=il(d),m=il(o.clientWidth-(u+f)),p=il(o.clientHeight-(d+g)),b=il(u),w={rootMargin:-h+"px "+-m+"px "+-p+"px "+-b+"px",threshold:_3(0,D3(1,l))||1};let S=!0;function v(I){const N=I[0].intersectionRatio;if(N!==l){if(!S)return a();N?a(!1,N):n=setTimeout(()=>{a(!1,1e-7)},1e3)}N===1&&!Zh(c,e.getBoundingClientRect())&&a(),S=!1}try{r=new IntersectionObserver(v,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(v,w)}r.observe(e)}return a(!0),i}function Q3(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Ld(e),u=o||i?[...c?ll(c):[],...ll(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),i&&b.addEventListener("resize",r)});const d=c&&s?q3(c,r):null;let f=-1,g=null;a&&(g=new ResizeObserver(b=>{let[y]=b;y&&y.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),r()}),c&&!l&&g.observe(c),g.observe(t));let h,m=l?Jh(e):null;l&&p();function p(){const b=Jh(e);m&&!Zh(m,b)&&r(),m=b,h=requestAnimationFrame(p)}return r(),()=>{var b;u.forEach(y=>{o&&y.removeEventListener("scroll",r),i&&y.removeEventListener("resize",r)}),d?.(),(b=g)==null||b.disconnect(),g=null,l&&cancelAnimationFrame(h)}}var Dd=E.useLayoutEffect,K3=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],cl=function(){};function eA(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function tA(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];var i=[].concat(n);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(eA(e,a)));return i.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var ul=function(t){return uA(t)?t.filter(Boolean):we(t)==="object"&&t!==null?[t]:[]},qh=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var r=vt(t,K3);return H({},r)},It=function(t,r,n){var o=t.cx,i=t.getStyles,a=t.getClassNames,s=t.className;return{css:i(r,t),className:o(n??{},a(r,t),s)}};function dl(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function rA(e){return dl(e)?window.innerHeight:e.clientHeight}function Qh(e){return dl(e)?window.pageYOffset:e.scrollTop}function fl(e,t){if(dl(e)){window.scrollTo(0,t);return}e.scrollTop=t}function nA(e){var t=getComputedStyle(e),r=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(r&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function oA(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function ml(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:cl,o=Qh(e),i=t-o,a=10,s=0;function l(){s+=a;var c=oA(s,o,i,r);fl(e,c),s<r?window.requestAnimationFrame(l):n(e)}l()}function Kh(e,t){var r=e.getBoundingClientRect(),n=t.getBoundingClientRect(),o=t.offsetHeight/3;n.bottom+o>r.bottom?fl(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):n.top-o<r.top&&fl(e,Math.max(t.offsetTop-o,0))}function iA(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function ev(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function aA(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var tv=!1,sA={get passive(){return tv=!0}},pl=typeof window<"u"?window:{};pl.addEventListener&&pl.removeEventListener&&(pl.addEventListener("p",cl,sA),pl.removeEventListener("p",cl,!1));var lA=tv;function cA(e){return e!=null}function uA(e){return Array.isArray(e)}function ia(e,t,r){return e?t:r}function a8(e){return e}function s8(e){return e}var dA=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var i=Object.entries(t).filter(function(a){var s=ie(a,1),l=s[0];return!n.includes(l)});return i.reduce(function(a,s){var l=ie(s,2),c=l[0],u=l[1];return a[c]=u,a},{})},fA=["children","innerProps"],mA=["children","innerProps"];function pA(e){var t=e.maxHeight,r=e.menuEl,n=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=nA(r),c={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return c;var u=l.getBoundingClientRect(),d=u.height,f=r.getBoundingClientRect(),g=f.bottom,h=f.height,m=f.top,p=r.offsetParent.getBoundingClientRect(),b=p.top,y=a?window.innerHeight:rA(l),w=Qh(l),S=parseInt(getComputedStyle(r).marginBottom,10),v=parseInt(getComputedStyle(r).marginTop,10),I=b-v,N=y-m,O=I+w,T=d-w-m,P=g-y+w+S,M=w+m-v,x=160;switch(o){case"auto":case"bottom":if(N>=h)return{placement:"bottom",maxHeight:t};if(T>=h&&!a)return i&&ml(l,P,x),{placement:"bottom",maxHeight:t};if(!a&&T>=n||a&&N>=n){i&&ml(l,P,x);var $=a?N-S:T-S;return{placement:"bottom",maxHeight:$}}if(o==="auto"||a){var k=t,F=a?I:O;return F>=n&&(k=Math.min(F-S-s,t)),{placement:"top",maxHeight:k}}if(o==="bottom")return i&&fl(l,P),{placement:"bottom",maxHeight:t};break;case"top":if(I>=h)return{placement:"top",maxHeight:t};if(O>=h&&!a)return i&&ml(l,M,x),{placement:"top",maxHeight:t};if(!a&&O>=n||a&&I>=n){var j=t;return(!a&&O>=n||a&&I>=n)&&(j=a?I-v:O-v),i&&ml(l,M,x),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}function gA(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var rv=function(t){return t==="auto"?"bottom":t},hA=function(t,r){var n,o=t.placement,i=t.theme,a=i.borderRadius,s=i.spacing,l=i.colors;return H((n={label:"menu"},X(n,gA(o),"100%"),X(n,"position","absolute"),X(n,"width","100%"),X(n,"zIndex",1),n),r?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},nv=E.createContext(null),vA=function(t){var r=t.children,n=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,c=E.useContext(nv)||{},u=c.setPortalPlacement,d=E.useRef(null),f=E.useState(o),g=ie(f,2),h=g[0],m=g[1],p=E.useState(null),b=ie(p,2),y=b[0],w=b[1],S=l.spacing.controlHeight;return Dd(function(){var v=d.current;if(v){var I=a==="fixed",N=s&&!I,O=pA({maxHeight:o,menuEl:v,minHeight:n,placement:i,shouldScroll:N,isFixedPosition:I,controlHeight:S});m(O.maxHeight),w(O.placement),u?.(O.placement)}},[o,i,a,s,n,u,S]),r({ref:d,placerProps:H(H({},t),{},{placement:y||rv(i),maxHeight:h})})},bA=function(t){var r=t.children,n=t.innerRef,o=t.innerProps;return ye("div",le({},It(t,"menu",{menu:!0}),{ref:n},o),r)},yA=bA,CA=function(t,r){var n=t.maxHeight,o=t.theme.spacing.baseUnit;return H({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:o,paddingTop:o})},xA=function(t){var r=t.children,n=t.innerProps,o=t.innerRef,i=t.isMulti;return ye("div",le({},It(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),r)},ov=function(t,r){var n=t.theme,o=n.spacing.baseUnit,i=n.colors;return H({textAlign:"center"},r?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},wA=ov,SA=ov,EA=function(t){var r=t.children,n=r===void 0?"No options":r,o=t.innerProps,i=vt(t,fA);return ye("div",le({},It(H(H({},i),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},IA=function(t){var r=t.children,n=r===void 0?"Loading...":r,o=t.innerProps,i=vt(t,mA);return ye("div",le({},It(H(H({},i),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},AA=function(t){var r=t.rect,n=t.offset,o=t.position;return{left:r.left,position:o,top:n,width:r.width,zIndex:1}},NA=function(t){var r=t.appendTo,n=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,s=t.menuPosition,l=E.useRef(null),c=E.useRef(null),u=E.useState(rv(a)),d=ie(u,2),f=d[0],g=d[1],h=E.useMemo(function(){return{setPortalPlacement:g}},[]),m=E.useState(null),p=ie(m,2),b=p[0],y=p[1],w=E.useCallback(function(){if(o){var N=iA(o),O=s==="fixed"?0:window.pageYOffset,T=N[f]+O;(T!==b?.offset||N.left!==b?.rect.left||N.width!==b?.rect.width)&&y({offset:T,rect:N})}},[o,s,f,b?.offset,b?.rect.left,b?.rect.width]);Dd(function(){w()},[w]);var S=E.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),o&&l.current&&(c.current=Q3(o,l.current,w,{elementResize:"ResizeObserver"in window}))},[o,w]);Dd(function(){S()},[S]);var v=E.useCallback(function(N){l.current=N,S()},[S]);if(!r&&s!=="fixed"||!b)return null;var I=ye("div",le({ref:v},It(H(H({},t),{},{offset:b.offset,position:s,rect:b.rect}),"menuPortal",{"menu-portal":!0}),i),n);return ye(nv.Provider,{value:h},r?zr.createPortal(I,r):I)},OA=function(t){var r=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},TA=function(t){var r=t.children,n=t.innerProps,o=t.isDisabled,i=t.isRtl;return ye("div",le({},It(t,"container",{"--is-disabled":o,"--is-rtl":i}),n),r)},PA=function(t,r){var n=t.theme.spacing,o=t.isMulti,i=t.hasValue,a=t.selectProps.controlShouldRenderValue;return H({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},kA=function(t){var r=t.children,n=t.innerProps,o=t.isMulti,i=t.hasValue;return ye("div",le({},It(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),r)},FA=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},$A=function(t){var r=t.children,n=t.innerProps;return ye("div",le({},It(t,"indicatorsContainer",{indicators:!0}),n),r)},iv,MA=["size"],jA=["innerProps","isRtl","size"];function RA(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var LA=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:RA},av=function(t){var r=t.size,n=vt(t,MA);return ye("svg",le({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:LA},n))},_d=function(t){return ye(av,le({size:20},t),ye("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},sv=function(t){return ye(av,le({size:20},t),ye("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},lv=function(t,r){var n=t.isFocused,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return H({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:n?a.neutral60:a.neutral20,padding:i*2,":hover":{color:n?a.neutral80:a.neutral40}})},DA=lv,_A=function(t){var r=t.children,n=t.innerProps;return ye("div",le({},It(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),r||ye(sv,null))},VA=lv,BA=function(t){var r=t.children,n=t.innerProps;return ye("div",le({},It(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),r||ye(_d,null))},zA=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return H({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},GA=function(t){var r=t.innerProps;return ye("span",le({},r,It(t,"indicatorSeparator",{"indicator-separator":!0})))},HA=R3(iv||(iv=L3([`
|
|
244
|
+
*/var Th;function x3(){return Th||(Th=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,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function w(Y){return typeof Y=="string"||typeof Y=="function"||Y===n||Y===c||Y===i||Y===o||Y===d||Y===f||typeof Y=="object"&&Y!==null&&(Y.$$typeof===h||Y.$$typeof===g||Y.$$typeof===a||Y.$$typeof===s||Y.$$typeof===u||Y.$$typeof===p||Y.$$typeof===b||Y.$$typeof===y||Y.$$typeof===m)}function S(Y){if(typeof Y=="object"&&Y!==null){var Ce=Y.$$typeof;switch(Ce){case t:var ne=Y.type;switch(ne){case l:case c:case n:case i:case o:case d:return ne;default:var Ie=ne&&ne.$$typeof;switch(Ie){case s:case u:case h:case g:case a:return Ie;default:return Ce}}case r:return Ce}}}var v=l,I=c,N=s,O=a,T=t,P=u,M=n,x=h,$=g,k=r,F=i,j=o,G=d,W=!1;function V(Y){return W||(W=!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.")),_(Y)||S(Y)===l}function _(Y){return S(Y)===c}function D(Y){return S(Y)===s}function B(Y){return S(Y)===a}function L(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===t}function z(Y){return S(Y)===u}function Q(Y){return S(Y)===n}function q(Y){return S(Y)===h}function U(Y){return S(Y)===g}function K(Y){return S(Y)===r}function Z(Y){return S(Y)===i}function se(Y){return S(Y)===o}function ge(Y){return S(Y)===d}et.AsyncMode=v,et.ConcurrentMode=I,et.ContextConsumer=N,et.ContextProvider=O,et.Element=T,et.ForwardRef=P,et.Fragment=M,et.Lazy=x,et.Memo=$,et.Portal=k,et.Profiler=F,et.StrictMode=j,et.Suspense=G,et.isAsyncMode=V,et.isConcurrentMode=_,et.isContextConsumer=D,et.isContextProvider=B,et.isElement=L,et.isForwardRef=z,et.isFragment=Q,et.isLazy=q,et.isMemo=U,et.isPortal=K,et.isProfiler=Z,et.isStrictMode=se,et.isSuspense=ge,et.isValidElementType=w,et.typeOf=S}()),et}var Ph;function w3(){return Ph||(Ph=1,process.env.NODE_ENV==="production"?nl.exports=C3():nl.exports=x3()),nl.exports}var Td,kh;function S3(){if(kh)return Td;kh=1;var e=w3(),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},i={};i[e.ForwardRef]=n,i[e.Memo]=o;function a(h){return e.isMemo(h)?o:i[h.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function g(h,m,p){if(typeof m!="string"){if(f){var b=d(m);b&&b!==f&&g(h,b,p)}var y=l(m);c&&(y=y.concat(c(m)));for(var w=a(h),S=a(m),v=0;v<y.length;++v){var I=y[v];if(!r[I]&&!(p&&p[I])&&!(S&&S[I])&&!(w&&w[I])){var N=u(m,I);try{s(h,I,N)}catch{}}}}return h}return Td=g,Td}S3();var E3=!0;function Fh(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Pd=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||E3===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},$h=function(t,r,n){Pd(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function I3(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 A3={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},N3=/[A-Z]|^ms/g,O3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Mh=function(t){return t.charCodeAt(1)===45},jh=function(t){return t!=null&&typeof t!="boolean"},kd=Ih(function(e){return Mh(e)?e:e.replace(N3,"-$&").toLowerCase()}),Rh=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(O3,function(n,o,i){return ln={name:o,styles:i,next:ln},o})}return A3[t]!==1&&!Mh(t)&&typeof r=="number"&&r!==0?r+"px":r};function oa(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 ln={name:o.name,styles:o.styles,next:ln},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ln={name:a.name,styles:a.styles,next:ln},a=a.next;var s=i.styles+";";return s}return T3(e,t,r)}case"function":{if(e!==void 0){var l=ln,c=r(e);return ln=l,oa(e,t,c)}break}}var u=r;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function T3(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=oa(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":jh(s)&&(n+=kd(i)+":"+Rh(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)jh(a[l])&&(n+=kd(i)+":"+Rh(i,a[l])+";");else{var c=oa(e,t,a);switch(i){case"animation":case"animationName":{n+=kd(i)+":"+c+";";break}default:n+=i+"{"+c+"}"}}}return n}var Lh=/label:\s*([^\s;{]+)\s*(;|$)/g,ln;function ol(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="";ln=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=oa(r,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=oa(r,t,e[s]),n){var l=i;o+=l[s]}Lh.lastIndex=0;for(var c="",u;(u=Lh.exec(o))!==null;)c+="-"+u[1];var d=I3(o)+c;return{name:d,styles:o,next:ln}}var P3=function(t){return t()},k3=A.useInsertionEffect?A.useInsertionEffect:!1,Dh=k3||P3,_h=A.createContext(typeof HTMLElement<"u"?y3({key:"css"}):null);_h.Provider;var Vh=function(t){return E.forwardRef(function(r,n){var o=E.useContext(_h);return t(r,o,n)})},Bh=A.createContext({}),Fd={}.hasOwnProperty,$d="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",F3=function(t,r){var n={};for(var o in r)Fd.call(r,o)&&(n[o]=r[o]);return n[$d]=t,n},$3=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Pd(r,n,o),Dh(function(){return $h(r,n,o)}),null},M3=Vh(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[$d],i=[n],a="";typeof e.className=="string"?a=Fh(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=ol(i,void 0,A.useContext(Bh));a+=t.key+"-"+s.name;var l={};for(var c in e)Fd.call(e,c)&&c!=="css"&&c!==$d&&(l[c]=e[c]);return l.className=a,r&&(l.ref=r),A.createElement(A.Fragment,null,A.createElement($3,{cache:t,serialized:s,isStringTag:typeof o=="string"}),A.createElement(o,l))}),j3=M3,ye=function(t,r){var n=arguments;if(r==null||!Fd.call(r,"css"))return A.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=j3,i[1]=F3(t,r);for(var a=2;a<o;a++)i[a]=n[a];return A.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(ye||(ye={}));function Md(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ol(t)}function R3(){var e=Md.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_"}}}function L3(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const D3=Math.min,_3=Math.max,il=Math.round,al=Math.floor,sl=e=>({x:e,y:e});function V3(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function ll(){return typeof window<"u"}function zh(e){return Hh(e)?(e.nodeName||"").toLowerCase():"#document"}function xn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Gh(e){var t;return(t=(Hh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hh(e){return ll()?e instanceof Node||e instanceof xn(e).Node:!1}function B3(e){return ll()?e instanceof Element||e instanceof xn(e).Element:!1}function jd(e){return ll()?e instanceof HTMLElement||e instanceof xn(e).HTMLElement:!1}function Wh(e){return!ll()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xn(e).ShadowRoot}const z3=new Set(["inline","contents"]);function Uh(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Rd(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!z3.has(o)}function G3(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const H3=new Set(["html","body","#document"]);function W3(e){return H3.has(zh(e))}function Rd(e){return xn(e).getComputedStyle(e)}function U3(e){if(zh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Wh(e)&&e.host||Gh(e);return Wh(t)?t.host:t}function Xh(e){const t=U3(e);return W3(t)?e.ownerDocument?e.ownerDocument.body:e.body:jd(t)&&Uh(t)?t:Xh(t)}function cl(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Xh(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=xn(o);if(i){const s=Ld(a);return t.concat(a,a.visualViewport||[],Uh(o)?o:[],s&&r?cl(s):[])}return t.concat(o,cl(o,[],r))}function Ld(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function X3(e){const t=Rd(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=jd(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=il(r)!==i||il(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function Dd(e){return B3(e)?e:e.contextElement}function Yh(e){const t=Dd(e);if(!jd(t))return sl(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=X3(t);let a=(i?il(r.width):r.width)/n,s=(i?il(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Y3=sl(0);function J3(e){const t=xn(e);return!G3()||!t.visualViewport?Y3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Z3(e,t,r){return!1}function Jh(e,t,r,n){t===void 0&&(t=!1);const o=e.getBoundingClientRect(),i=Dd(e);let a=sl(1);t&&(a=Yh(e));const s=Z3()?J3(i):sl(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const f=xn(i),g=n;let h=f,m=Ld(h);for(;m&&n&&g!==h;){const p=Yh(m),b=m.getBoundingClientRect(),y=Rd(m),w=b.left+(m.clientLeft+parseFloat(y.paddingLeft))*p.x,S=b.top+(m.clientTop+parseFloat(y.paddingTop))*p.y;l*=p.x,c*=p.y,u*=p.x,d*=p.y,l+=w,c+=S,h=xn(m),m=Ld(h)}}return V3({width:u,height:d,x:l,y:c})}function Zh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function q3(e,t){let r=null,n;const o=Gh(e);function i(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:g}=c;if(s||t(),!f||!g)return;const h=al(d),m=al(o.clientWidth-(u+f)),p=al(o.clientHeight-(d+g)),b=al(u),w={rootMargin:-h+"px "+-m+"px "+-p+"px "+-b+"px",threshold:_3(0,D3(1,l))||1};let S=!0;function v(I){const N=I[0].intersectionRatio;if(N!==l){if(!S)return a();N?a(!1,N):n=setTimeout(()=>{a(!1,1e-7)},1e3)}N===1&&!Zh(c,e.getBoundingClientRect())&&a(),S=!1}try{r=new IntersectionObserver(v,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(v,w)}r.observe(e)}return a(!0),i}function Q3(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Dd(e),u=o||i?[...c?cl(c):[],...cl(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),i&&b.addEventListener("resize",r)});const d=c&&s?q3(c,r):null;let f=-1,g=null;a&&(g=new ResizeObserver(b=>{let[y]=b;y&&y.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),r()}),c&&!l&&g.observe(c),g.observe(t));let h,m=l?Jh(e):null;l&&p();function p(){const b=Jh(e);m&&!Zh(m,b)&&r(),m=b,h=requestAnimationFrame(p)}return r(),()=>{var b;u.forEach(y=>{o&&y.removeEventListener("scroll",r),i&&y.removeEventListener("resize",r)}),d?.(),(b=g)==null||b.disconnect(),g=null,l&&cancelAnimationFrame(h)}}var _d=E.useLayoutEffect,K3=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ul=function(){};function eA(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function tA(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];var i=[].concat(n);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(eA(e,a)));return i.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var dl=function(t){return uA(t)?t.filter(Boolean):we(t)==="object"&&t!==null?[t]:[]},qh=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var r=vt(t,K3);return H({},r)},It=function(t,r,n){var o=t.cx,i=t.getStyles,a=t.getClassNames,s=t.className;return{css:i(r,t),className:o(n??{},a(r,t),s)}};function fl(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function rA(e){return fl(e)?window.innerHeight:e.clientHeight}function Qh(e){return fl(e)?window.pageYOffset:e.scrollTop}function ml(e,t){if(fl(e)){window.scrollTo(0,t);return}e.scrollTop=t}function nA(e){var t=getComputedStyle(e),r=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(r&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function oA(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function pl(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ul,o=Qh(e),i=t-o,a=10,s=0;function l(){s+=a;var c=oA(s,o,i,r);ml(e,c),s<r?window.requestAnimationFrame(l):n(e)}l()}function Kh(e,t){var r=e.getBoundingClientRect(),n=t.getBoundingClientRect(),o=t.offsetHeight/3;n.bottom+o>r.bottom?ml(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):n.top-o<r.top&&ml(e,Math.max(t.offsetTop-o,0))}function iA(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function ev(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function aA(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var tv=!1,sA={get passive(){return tv=!0}},gl=typeof window<"u"?window:{};gl.addEventListener&&gl.removeEventListener&&(gl.addEventListener("p",ul,sA),gl.removeEventListener("p",ul,!1));var lA=tv;function cA(e){return e!=null}function uA(e){return Array.isArray(e)}function ia(e,t,r){return e?t:r}function s8(e){return e}function l8(e){return e}var dA=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var i=Object.entries(t).filter(function(a){var s=ie(a,1),l=s[0];return!n.includes(l)});return i.reduce(function(a,s){var l=ie(s,2),c=l[0],u=l[1];return a[c]=u,a},{})},fA=["children","innerProps"],mA=["children","innerProps"];function pA(e){var t=e.maxHeight,r=e.menuEl,n=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=nA(r),c={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return c;var u=l.getBoundingClientRect(),d=u.height,f=r.getBoundingClientRect(),g=f.bottom,h=f.height,m=f.top,p=r.offsetParent.getBoundingClientRect(),b=p.top,y=a?window.innerHeight:rA(l),w=Qh(l),S=parseInt(getComputedStyle(r).marginBottom,10),v=parseInt(getComputedStyle(r).marginTop,10),I=b-v,N=y-m,O=I+w,T=d-w-m,P=g-y+w+S,M=w+m-v,x=160;switch(o){case"auto":case"bottom":if(N>=h)return{placement:"bottom",maxHeight:t};if(T>=h&&!a)return i&&pl(l,P,x),{placement:"bottom",maxHeight:t};if(!a&&T>=n||a&&N>=n){i&&pl(l,P,x);var $=a?N-S:T-S;return{placement:"bottom",maxHeight:$}}if(o==="auto"||a){var k=t,F=a?I:O;return F>=n&&(k=Math.min(F-S-s,t)),{placement:"top",maxHeight:k}}if(o==="bottom")return i&&ml(l,P),{placement:"bottom",maxHeight:t};break;case"top":if(I>=h)return{placement:"top",maxHeight:t};if(O>=h&&!a)return i&&pl(l,M,x),{placement:"top",maxHeight:t};if(!a&&O>=n||a&&I>=n){var j=t;return(!a&&O>=n||a&&I>=n)&&(j=a?I-v:O-v),i&&pl(l,M,x),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}function gA(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var rv=function(t){return t==="auto"?"bottom":t},hA=function(t,r){var n,o=t.placement,i=t.theme,a=i.borderRadius,s=i.spacing,l=i.colors;return H((n={label:"menu"},X(n,gA(o),"100%"),X(n,"position","absolute"),X(n,"width","100%"),X(n,"zIndex",1),n),r?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},nv=E.createContext(null),vA=function(t){var r=t.children,n=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,c=E.useContext(nv)||{},u=c.setPortalPlacement,d=E.useRef(null),f=E.useState(o),g=ie(f,2),h=g[0],m=g[1],p=E.useState(null),b=ie(p,2),y=b[0],w=b[1],S=l.spacing.controlHeight;return _d(function(){var v=d.current;if(v){var I=a==="fixed",N=s&&!I,O=pA({maxHeight:o,menuEl:v,minHeight:n,placement:i,shouldScroll:N,isFixedPosition:I,controlHeight:S});m(O.maxHeight),w(O.placement),u?.(O.placement)}},[o,i,a,s,n,u,S]),r({ref:d,placerProps:H(H({},t),{},{placement:y||rv(i),maxHeight:h})})},bA=function(t){var r=t.children,n=t.innerRef,o=t.innerProps;return ye("div",le({},It(t,"menu",{menu:!0}),{ref:n},o),r)},yA=bA,CA=function(t,r){var n=t.maxHeight,o=t.theme.spacing.baseUnit;return H({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:o,paddingTop:o})},xA=function(t){var r=t.children,n=t.innerProps,o=t.innerRef,i=t.isMulti;return ye("div",le({},It(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),r)},ov=function(t,r){var n=t.theme,o=n.spacing.baseUnit,i=n.colors;return H({textAlign:"center"},r?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},wA=ov,SA=ov,EA=function(t){var r=t.children,n=r===void 0?"No options":r,o=t.innerProps,i=vt(t,fA);return ye("div",le({},It(H(H({},i),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},IA=function(t){var r=t.children,n=r===void 0?"Loading...":r,o=t.innerProps,i=vt(t,mA);return ye("div",le({},It(H(H({},i),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},AA=function(t){var r=t.rect,n=t.offset,o=t.position;return{left:r.left,position:o,top:n,width:r.width,zIndex:1}},NA=function(t){var r=t.appendTo,n=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,s=t.menuPosition,l=E.useRef(null),c=E.useRef(null),u=E.useState(rv(a)),d=ie(u,2),f=d[0],g=d[1],h=E.useMemo(function(){return{setPortalPlacement:g}},[]),m=E.useState(null),p=ie(m,2),b=p[0],y=p[1],w=E.useCallback(function(){if(o){var N=iA(o),O=s==="fixed"?0:window.pageYOffset,T=N[f]+O;(T!==b?.offset||N.left!==b?.rect.left||N.width!==b?.rect.width)&&y({offset:T,rect:N})}},[o,s,f,b?.offset,b?.rect.left,b?.rect.width]);_d(function(){w()},[w]);var S=E.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),o&&l.current&&(c.current=Q3(o,l.current,w,{elementResize:"ResizeObserver"in window}))},[o,w]);_d(function(){S()},[S]);var v=E.useCallback(function(N){l.current=N,S()},[S]);if(!r&&s!=="fixed"||!b)return null;var I=ye("div",le({ref:v},It(H(H({},t),{},{offset:b.offset,position:s,rect:b.rect}),"menuPortal",{"menu-portal":!0}),i),n);return ye(nv.Provider,{value:h},r?zr.createPortal(I,r):I)},OA=function(t){var r=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},TA=function(t){var r=t.children,n=t.innerProps,o=t.isDisabled,i=t.isRtl;return ye("div",le({},It(t,"container",{"--is-disabled":o,"--is-rtl":i}),n),r)},PA=function(t,r){var n=t.theme.spacing,o=t.isMulti,i=t.hasValue,a=t.selectProps.controlShouldRenderValue;return H({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},kA=function(t){var r=t.children,n=t.innerProps,o=t.isMulti,i=t.hasValue;return ye("div",le({},It(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),r)},FA=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},$A=function(t){var r=t.children,n=t.innerProps;return ye("div",le({},It(t,"indicatorsContainer",{indicators:!0}),n),r)},iv,MA=["size"],jA=["innerProps","isRtl","size"];function RA(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var LA=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:RA},av=function(t){var r=t.size,n=vt(t,MA);return ye("svg",le({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:LA},n))},Vd=function(t){return ye(av,le({size:20},t),ye("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},sv=function(t){return ye(av,le({size:20},t),ye("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},lv=function(t,r){var n=t.isFocused,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return H({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:n?a.neutral60:a.neutral20,padding:i*2,":hover":{color:n?a.neutral80:a.neutral40}})},DA=lv,_A=function(t){var r=t.children,n=t.innerProps;return ye("div",le({},It(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),r||ye(sv,null))},VA=lv,BA=function(t){var r=t.children,n=t.innerProps;return ye("div",le({},It(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),r||ye(Vd,null))},zA=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return H({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},GA=function(t){var r=t.innerProps;return ye("span",le({},r,It(t,"indicatorSeparator",{"indicator-separator":!0})))},HA=R3(iv||(iv=L3([`
|
|
245
245
|
0%, 80%, 100% { opacity: 0; }
|
|
246
246
|
40% { opacity: 1; }
|
|
247
|
-
`]))),WA=function(t,r){var n=t.isFocused,o=t.size,i=t.theme,a=i.colors,s=i.spacing.baseUnit;return H({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},r?{}:{color:n?a.neutral60:a.neutral20,padding:s*2})},Vd=function(t){var r=t.delay,n=t.offset;return ye("span",{css:$d({animation:"".concat(HA," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},UA=function(t){var r=t.innerProps,n=t.isRtl,o=t.size,i=o===void 0?4:o,a=vt(t,jA);return ye("div",le({},It(H(H({},a),{},{innerProps:r,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),ye(Vd,{delay:0,offset:n}),ye(Vd,{delay:160,offset:!0}),ye(Vd,{delay:320,offset:!n}))},XA=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.theme,a=i.colors,s=i.borderRadius,l=i.spacing;return H({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},YA=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.innerRef,a=t.innerProps,s=t.menuIsOpen;return ye("div",le({ref:i},It(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":s}),a,{"aria-disabled":n||void 0}),r)},JA=YA,ZA=["data"],qA=function(t,r){var n=t.theme.spacing;return r?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},QA=function(t){var r=t.children,n=t.cx,o=t.getStyles,i=t.getClassNames,a=t.Heading,s=t.headingProps,l=t.innerProps,c=t.label,u=t.theme,d=t.selectProps;return ye("div",le({},It(t,"group",{group:!0}),l),ye(a,le({},s,{selectProps:d,theme:u,getStyles:o,getClassNames:i,cx:n}),c),ye("div",null,r))},KA=function(t,r){var n=t.theme,o=n.colors,i=n.spacing;return H({label:"group",cursor:"default",display:"block"},r?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},eN=function(t){var r=qh(t);r.data;var n=vt(r,ZA);return ye("div",le({},It(t,"groupHeading",{"group-heading":!0}),n))},tN=QA,rN=["innerRef","isDisabled","isHidden","inputClassName"],nN=function(t,r){var n=t.isDisabled,o=t.value,i=t.theme,a=i.spacing,s=i.colors;return H(H({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},oN),r?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},cv={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},oN={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":H({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},cv)},iN=function(t){return H({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},cv)},aN=function(t){var r=t.cx,n=t.value,o=qh(t),i=o.innerRef,a=o.isDisabled,s=o.isHidden,l=o.inputClassName,c=vt(o,rN);return ye("div",le({},It(t,"input",{"input-container":!0}),{"data-value":n||""}),ye("input",le({className:r({input:!0},l),ref:i,style:iN(s),disabled:a},c)))},sN=aN,lN=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors;return H({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},cN=function(t,r){var n=t.theme,o=n.borderRadius,i=n.colors,a=t.cropWithEllipsis;return H({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},uN=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors,s=t.isFocused;return H({alignItems:"center",display:"flex"},r?{}:{borderRadius:i/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},uv=function(t){var r=t.children,n=t.innerProps;return ye("div",n,r)},dN=uv,fN=uv;function mN(e){var t=e.children,r=e.innerProps;return ye("div",le({role:"button"},r),t||ye(_d,{size:14}))}var pN=function(t){var r=t.children,n=t.components,o=t.data,i=t.innerProps,a=t.isDisabled,s=t.removeProps,l=t.selectProps,c=n.Container,u=n.Label,d=n.Remove;return ye(c,{data:o,innerProps:H(H({},It(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:l},ye(u,{data:o,innerProps:H({},It(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},r),ye(d,{data:o,innerProps:H(H({},It(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},s),selectProps:l}))},gN=pN,hN=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.theme,s=a.spacing,l=a.colors;return H({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:i?l.primary:o?l.primary25:"transparent",color:n?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:i?l.primary:l.primary50}})},vN=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.innerRef,s=t.innerProps;return ye("div",le({},It(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":n},s),r)},bN=vN,yN=function(t,r){var n=t.theme,o=n.spacing,i=n.colors;return H({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},CN=function(t){var r=t.children,n=t.innerProps;return ye("div",le({},It(t,"placeholder",{placeholder:!0}),n),r)},xN=CN,wN=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing,a=o.colors;return H({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},SN=function(t){var r=t.children,n=t.isDisabled,o=t.innerProps;return ye("div",le({},It(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),r)},EN=SN,IN={ClearIndicator:BA,Control:JA,DropdownIndicator:_A,DownChevron:sv,CrossIcon:_d,Group:tN,GroupHeading:eN,IndicatorsContainer:$A,IndicatorSeparator:GA,Input:sN,LoadingIndicator:UA,Menu:yA,MenuList:xA,MenuPortal:NA,LoadingMessage:IA,NoOptionsMessage:EA,MultiValue:gN,MultiValueContainer:dN,MultiValueLabel:fN,MultiValueRemove:mN,Option:bN,Placeholder:xN,SelectContainer:TA,SingleValue:EN,ValueContainer:kA},AN=function(t){return H(H({},IN),t.components)},dv=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function NN(e,t){return!!(e===t||dv(e)&&dv(t))}function ON(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!NN(e[r],t[r]))return!1;return!0}function TN(e,t){t===void 0&&(t=ON);var r=null;function n(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(r&&r.lastThis===this&&t(o,r.lastArgs))return r.lastResult;var a=e.apply(this,o);return r={lastResult:a,lastArgs:o,lastThis:this},a}return n.clear=function(){r=null},n}function PN(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var kN=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:PN},FN=function(t){return ye("span",le({css:kN},t))},fv=FN,$N={guidance:function(t){var r=t.isSearchable,n=t.isMulti,o=t.tabSelectsValue,i=t.context,a=t.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(t["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var r=t.action,n=t.label,o=n===void 0?"":n,i=t.labels,a=t.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var r=t.context,n=t.focused,o=t.options,i=t.label,a=i===void 0?"":i,s=t.selectValue,l=t.isDisabled,c=t.isSelected,u=t.isAppleDevice,d=function(m,p){return m&&m.length?"".concat(m.indexOf(p)+1," of ").concat(m.length):""};if(r==="value"&&s)return"value ".concat(a," focused, ").concat(d(s,n),".");if(r==="menu"&&u){var f=l?" disabled":"",g="".concat(c?" selected":"").concat(f);return"".concat(a).concat(g,", ").concat(d(o,n),".")}return""},onFilter:function(t){var r=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(r?" for search term "+r:"",".")}},MN=function(t){var r=t.ariaSelection,n=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,c=t.id,u=t.isAppleDevice,d=l.ariaLiveMessages,f=l.getOptionLabel,g=l.inputValue,h=l.isMulti,m=l.isOptionDisabled,p=l.isSearchable,b=l.menuIsOpen,y=l.options,w=l.screenReaderStatus,S=l.tabSelectsValue,v=l.isLoading,I=l["aria-label"],N=l["aria-live"],O=E.useMemo(function(){return H(H({},$N),d||{})},[d]),T=E.useMemo(function(){var F="";if(r&&O.onChange){var j=r.option,z=r.options,W=r.removedValue,V=r.removedValues,_=r.value,D=function(K){return Array.isArray(K)?null:K},B=W||j||D(_),L=B?f(B):"",G=z||V||void 0,Q=G?G.map(f):[],q=H({isDisabled:B&&m(B,s),label:L,labels:Q},r);F=O.onChange(q)}return F},[r,O,m,s,f]),P=E.useMemo(function(){var F="",j=n||o,z=!!(n&&s&&s.includes(n));if(j&&O.onFocus){var W={focused:j,label:f(j),isDisabled:m(j,s),isSelected:z,options:i,context:j===n?"menu":"value",selectValue:s,isAppleDevice:u};F=O.onFocus(W)}return F},[n,o,f,m,O,i,s,u]),M=E.useMemo(function(){var F="";if(b&&y.length&&!v&&O.onFilter){var j=w({count:i.length});F=O.onFilter({inputValue:g,resultsMessage:j})}return F},[i,g,b,O,y,w,v]),x=r?.action==="initial-input-focus",$=E.useMemo(function(){var F="";if(O.guidance){var j=o?"value":b?"menu":"input";F=O.guidance({"aria-label":I,context:j,isDisabled:n&&m(n,s),isMulti:h,isSearchable:p,tabSelectsValue:S,isInitialFocus:x})}return F},[I,n,o,h,m,p,b,O,s,S,x]),k=ye(E.Fragment,null,ye("span",{id:"aria-selection"},T),ye("span",{id:"aria-focused"},P),ye("span",{id:"aria-results"},M),ye("span",{id:"aria-guidance"},$));return ye(E.Fragment,null,ye(fv,{id:c},x&&k),ye(fv,{"aria-live":N,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!x&&k))},jN=MN,Bd=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],RN=new RegExp("["+Bd.map(function(e){return e.letters}).join("")+"]","g"),mv={},zd=0;zd<Bd.length;zd++)for(var Gd=Bd[zd],Hd=0;Hd<Gd.letters.length;Hd++)mv[Gd.letters[Hd]]=Gd.base;var pv=function(t){return t.replace(RN,function(r){return mv[r]})},LN=TN(pv),gv=function(t){return t.replace(/^\s+|\s+$/g,"")},DN=function(t){return"".concat(t.label," ").concat(t.value)},_N=function(t){return function(r,n){if(r.data.__isNew__)return!0;var o=H({ignoreCase:!0,ignoreAccents:!0,stringify:DN,trim:!0,matchFrom:"any"},t),i=o.ignoreCase,a=o.ignoreAccents,s=o.stringify,l=o.trim,c=o.matchFrom,u=l?gv(n):n,d=l?gv(s(r)):s(r);return i&&(u=u.toLowerCase(),d=d.toLowerCase()),a&&(u=LN(u),d=pv(d)),c==="start"?d.substr(0,u.length)===u:d.indexOf(u)>-1}},VN=["innerRef"];function BN(e){var t=e.innerRef,r=vt(e,VN),n=dA(r,"onExited","in","enter","exit","appear");return ye("input",le({ref:t},n,{css:$d({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var zN=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function GN(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=E.useRef(!1),s=E.useRef(!1),l=E.useRef(0),c=E.useRef(null),u=E.useCallback(function(p,b){if(c.current!==null){var y=c.current,w=y.scrollTop,S=y.scrollHeight,v=y.clientHeight,I=c.current,N=b>0,O=S-v-w,T=!1;O>b&&a.current&&(n&&n(p),a.current=!1),N&&s.current&&(i&&i(p),s.current=!1),N&&b>O?(r&&!a.current&&r(p),I.scrollTop=S,T=!0,a.current=!0):!N&&-b>w&&(o&&!s.current&&o(p),I.scrollTop=0,T=!0,s.current=!0),T&&zN(p)}},[r,n,o,i]),d=E.useCallback(function(p){u(p,p.deltaY)},[u]),f=E.useCallback(function(p){l.current=p.changedTouches[0].clientY},[]),g=E.useCallback(function(p){var b=l.current-p.changedTouches[0].clientY;u(p,b)},[u]),h=E.useCallback(function(p){if(p){var b=lA?{passive:!1}:!1;p.addEventListener("wheel",d,b),p.addEventListener("touchstart",f,b),p.addEventListener("touchmove",g,b)}},[g,f,d]),m=E.useCallback(function(p){p&&(p.removeEventListener("wheel",d,!1),p.removeEventListener("touchstart",f,!1),p.removeEventListener("touchmove",g,!1))},[g,f,d]);return E.useEffect(function(){if(t){var p=c.current;return h(p),function(){m(p)}}},[t,h,m]),function(p){c.current=p}}var hv=["boxSizing","height","overflow","paddingRight","position"],vv={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function bv(e){e.cancelable&&e.preventDefault()}function yv(e){e.stopPropagation()}function Cv(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function xv(){return"ontouchstart"in window||navigator.maxTouchPoints}var wv=!!(typeof window<"u"&&window.document&&window.document.createElement),aa=0,ri={capture:!1,passive:!1};function HN(e){var t=e.isEnabled,r=e.accountForScrollbars,n=r===void 0?!0:r,o=E.useRef({}),i=E.useRef(null),a=E.useCallback(function(l){if(wv){var c=document.body,u=c&&c.style;if(n&&hv.forEach(function(h){var m=u&&u[h];o.current[h]=m}),n&&aa<1){var d=parseInt(o.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,g=window.innerWidth-f+d||0;Object.keys(vv).forEach(function(h){var m=vv[h];u&&(u[h]=m)}),u&&(u.paddingRight="".concat(g,"px"))}c&&xv()&&(c.addEventListener("touchmove",bv,ri),l&&(l.addEventListener("touchstart",Cv,ri),l.addEventListener("touchmove",yv,ri))),aa+=1}},[n]),s=E.useCallback(function(l){if(wv){var c=document.body,u=c&&c.style;aa=Math.max(aa-1,0),n&&aa<1&&hv.forEach(function(d){var f=o.current[d];u&&(u[d]=f)}),c&&xv()&&(c.removeEventListener("touchmove",bv,ri),l&&(l.removeEventListener("touchstart",Cv,ri),l.removeEventListener("touchmove",yv,ri)))}},[n]);return E.useEffect(function(){if(t){var l=i.current;return a(l),function(){s(l)}}},[t,a,s]),function(l){i.current=l}}function WN(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var UN=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},XN=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:WN};function YN(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,o=n===void 0?!0:n,i=e.onBottomArrive,a=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,c=GN({isEnabled:o,onBottomArrive:i,onBottomLeave:a,onTopArrive:s,onTopLeave:l}),u=HN({isEnabled:r}),d=function(g){c(g),u(g)};return ye(E.Fragment,null,r&&ye("div",{onClick:UN,css:XN}),t(d))}function JN(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var ZN=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:JN},qN=function(t){var r=t.name,n=t.onFocus;return ye("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:ZN,value:"",onChange:function(){}})},QN=qN;function Wd(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function KN(){return Wd(/^iPhone/i)}function Sv(){return Wd(/^Mac/i)}function eO(){return Wd(/^iPad/i)||Sv()&&navigator.maxTouchPoints>1}function tO(){return KN()||eO()}function rO(){return Sv()||tO()}var nO=function(t){return t.label},Ev=function(t){return t.label},Iv=function(t){return t.value},oO=function(t){return!!t.isDisabled},iO={clearIndicator:VA,container:OA,control:XA,dropdownIndicator:DA,group:qA,groupHeading:KA,indicatorsContainer:FA,indicatorSeparator:zA,input:nN,loadingIndicator:WA,loadingMessage:SA,menu:hA,menuList:CA,menuPortal:AA,multiValue:lN,multiValueLabel:cN,multiValueRemove:uN,noOptionsMessage:wA,option:hN,placeholder:yN,singleValue:wN,valueContainer:PA},aO={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},sO=4,Av=4,lO=38,cO=Av*2,uO={baseUnit:Av,controlHeight:lO,menuGutter:cO},Ud={borderRadius:sO,colors:aO,spacing:uO},dO={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ev(),captureMenuScroll:!ev(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:_N(),formatGroupLabel:nO,getOptionLabel:Ev,getOptionValue:Iv,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:oO,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!aA(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Nv(e,t,r,n){var o=Fv(e,t,r),i=$v(e,t,r),a=kv(e,t),s=hl(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:a,value:s,index:n}}function gl(e,t){return e.options.map(function(r,n){if("options"in r){var o=r.options.map(function(a,s){return Nv(e,a,t,s)}).filter(function(a){return Pv(e,a)});return o.length>0?{type:"group",data:r,options:o,index:n}:void 0}var i=Nv(e,r,t,n);return Pv(e,i)?i:void 0}).filter(cA)}function Ov(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,ue(r.options.map(function(n){return n.data}))):t.push(r.data),t},[])}function Tv(e,t){return e.reduce(function(r,n){return n.type==="group"?r.push.apply(r,ue(n.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(n.index,"-").concat(o.index)}}))):r.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),r},[])}function fO(e,t){return Ov(gl(e,t))}function Pv(e,t){var r=e.inputValue,n=r===void 0?"":r,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!jv(e)||!i)&&Mv(e,{label:a,value:s,data:o},n)}function mO(e,t){var r=e.focusedValue,n=e.selectValue,o=n.indexOf(r);if(o>-1){var i=t.indexOf(r);if(i>-1)return r;if(o<t.length)return t[o]}return null}function pO(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var Xd=function(t,r){var n,o=(n=t.find(function(i){return i.data===r}))===null||n===void 0?void 0:n.id;return o||null},kv=function(t,r){return t.getOptionLabel(r)},hl=function(t,r){return t.getOptionValue(r)};function Fv(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function $v(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var n=hl(e,t);return r.some(function(o){return hl(e,o)===n})}function Mv(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var jv=function(t){var r=t.hideSelectedOptions,n=t.isMulti;return r===void 0?n:r},gO=1,Rv=function(e){Gr(r,e);var t=Hr(r);function r(n){var o;if(Tt(this,r),o=t.call(this,n),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(l){o.controlRef=l},o.focusedOptionRef=null,o.getFocusedOptionRef=function(l){o.focusedOptionRef=l},o.menuListRef=null,o.getMenuListRef=function(l){o.menuListRef=l},o.inputRef=null,o.getInputRef=function(l){o.inputRef=l},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(l,c){var u=o.props,d=u.onChange,f=u.name;c.name=f,o.ariaOnChange(l,c),d(l,c)},o.setValue=function(l,c,u){var d=o.props,f=d.closeMenuOnSelect,g=d.isMulti,h=d.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:h}),f&&(o.setState({inputIsHiddenAfterUpdate:!g}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(l,{action:c,option:u})},o.selectOption=function(l){var c=o.props,u=c.blurInputOnSelect,d=c.isMulti,f=c.name,g=o.state.selectValue,h=d&&o.isOptionSelected(l,g),m=o.isOptionDisabled(l,g);if(h){var p=o.getOptionValue(l);o.setValue(g.filter(function(b){return o.getOptionValue(b)!==p}),"deselect-option",l)}else if(!m)d?o.setValue([].concat(ue(g),[l]),"select-option",l):o.setValue(l,"select-option");else{o.ariaOnChange(l,{action:"select-option",option:l,name:f});return}u&&o.blurInput()},o.removeValue=function(l){var c=o.props.isMulti,u=o.state.selectValue,d=o.getOptionValue(l),f=u.filter(function(h){return o.getOptionValue(h)!==d}),g=ia(c,f,f[0]||null);o.onChange(g,{action:"remove-value",removedValue:l}),o.focusInput()},o.clearValue=function(){var l=o.state.selectValue;o.onChange(ia(o.props.isMulti,[],null),{action:"clear",removedValues:l})},o.popValue=function(){var l=o.props.isMulti,c=o.state.selectValue,u=c[c.length-1],d=c.slice(0,c.length-1),f=ia(l,d,d[0]||null);u&&o.onChange(f,{action:"pop-value",removedValue:u})},o.getFocusedOptionId=function(l){return Xd(o.state.focusableOptionsWithIds,l)},o.getFocusableOptionsWithIds=function(){return Tv(gl(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return tA.apply(void 0,[o.props.classNamePrefix].concat(c))},o.getOptionLabel=function(l){return kv(o.props,l)},o.getOptionValue=function(l){return hl(o.props,l)},o.getStyles=function(l,c){var u=o.props.unstyled,d=iO[l](c,u);d.boxSizing="border-box";var f=o.props.styles[l];return f?f(d,c):d},o.getClassNames=function(l,c){var u,d;return(u=(d=o.props.classNames)[l])===null||u===void 0?void 0:u.call(d,c)},o.getElementId=function(l){return"".concat(o.state.instancePrefix,"-").concat(l)},o.getComponents=function(){return AN(o.props)},o.buildCategorizedOptions=function(){return gl(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return Ov(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(l,c){o.setState({ariaSelection:H({value:l},c)})},o.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(l){o.blockOptionHover=!1},o.onControlMouseDown=function(l){if(!l.defaultPrevented){var c=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&o.onMenuClose():c&&o.openMenu("first"):(c&&(o.openAfterFocus=!0),o.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},o.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!o.props.isDisabled){var c=o.props,u=c.isMulti,d=c.menuIsOpen;o.focusInput(),d?(o.setState({inputIsHiddenAfterUpdate:!u}),o.onMenuClose()):o.openMenu("first"),l.preventDefault()}},o.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(o.clearValue(),l.preventDefault(),o.openAfterFocus=!1,l.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(l){typeof o.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&dl(l.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(l)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(l){var c=l.touches,u=c&&c.item(0);u&&(o.initialTouchX=u.clientX,o.initialTouchY=u.clientY,o.userIsDragging=!1)},o.onTouchMove=function(l){var c=l.touches,u=c&&c.item(0);if(u){var d=Math.abs(u.clientX-o.initialTouchX),f=Math.abs(u.clientY-o.initialTouchY),g=5;o.userIsDragging=d>g||f>g}},o.onTouchEnd=function(l){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(l.target)&&o.menuListRef&&!o.menuListRef.contains(l.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(l){o.userIsDragging||o.onControlMouseDown(l)},o.onClearIndicatorTouchEnd=function(l){o.userIsDragging||o.onClearIndicatorMouseDown(l)},o.onDropdownIndicatorTouchEnd=function(l){o.userIsDragging||o.onDropdownIndicatorMouseDown(l)},o.handleInputChange=function(l){var c=o.props.inputValue,u=l.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(u,{action:"input-change",prevInputValue:c}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(l){o.props.onFocus&&o.props.onFocus(l),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(l){var c=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(l),o.onInputChange("",{action:"input-blur",prevInputValue:c}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(l){if(!(o.blockOptionHover||o.state.focusedOption===l)){var c=o.getFocusableOptions(),u=c.indexOf(l);o.setState({focusedOption:l,focusedOptionId:u>-1?o.getFocusedOptionId(l):null})}},o.shouldHideSelectedOptions=function(){return jv(o.props)},o.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),o.focus()},o.onKeyDown=function(l){var c=o.props,u=c.isMulti,d=c.backspaceRemovesValue,f=c.escapeClearsValue,g=c.inputValue,h=c.isClearable,m=c.isDisabled,p=c.menuIsOpen,b=c.onKeyDown,y=c.tabSelectsValue,w=c.openMenuOnFocus,S=o.state,v=S.focusedOption,I=S.focusedValue,N=S.selectValue;if(!m&&!(typeof b=="function"&&(b(l),l.defaultPrevented))){switch(o.blockOptionHover=!0,l.key){case"ArrowLeft":if(!u||g)return;o.focusValue("previous");break;case"ArrowRight":if(!u||g)return;o.focusValue("next");break;case"Delete":case"Backspace":if(g)return;if(I)o.removeValue(I);else{if(!d)return;u?o.popValue():h&&o.clearValue()}break;case"Tab":if(o.isComposing||l.shiftKey||!p||!y||!v||w&&o.isOptionSelected(v,N))return;o.selectOption(v);break;case"Enter":if(l.keyCode===229)break;if(p){if(!v||o.isComposing)return;o.selectOption(v);break}return;case"Escape":p?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:g}),o.onMenuClose()):h&&f&&o.clearValue();break;case" ":if(g)return;if(!p){o.openMenu("first");break}if(!v)return;o.selectOption(v);break;case"ArrowUp":p?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":p?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!p)return;o.focusOption("pageup");break;case"PageDown":if(!p)return;o.focusOption("pagedown");break;case"Home":if(!p)return;o.focusOption("first");break;case"End":if(!p)return;o.focusOption("last");break;default:return}l.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++gO),o.state.selectValue=ul(n.value),n.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),s=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=a[s],o.state.focusedOptionId=Xd(i,a[s])}return o}return Pt(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Kh(this.menuListRef,this.focusedOptionRef),rO()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isDisabled,s=i.menuIsOpen,l=this.state.isFocused;(l&&!a&&o.isDisabled||l&&s&&!o.menuIsOpen)&&this.focusInput(),l&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Kh(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,a=this.state,s=a.selectValue,l=a.isFocused,c=this.buildFocusableOptions(),u=o==="first"?0:c.length-1;if(!this.props.isMulti){var d=c.indexOf(s[0]);d>-1&&(u=d)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[u],focusedOptionId:this.getFocusedOptionId(c[u])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,a=i.selectValue,s=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(s);s||(l=-1);var c=a.length-1,u=-1;if(a.length){switch(o){case"previous":l===0?u=0:l===-1?u=c:u=l-1;break;case"next":l>-1&&l<c&&(u=l+1);break}this.setState({inputIsHidden:u!==-1,focusedValue:a[u]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,a=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,c=s.indexOf(a);a||(c=-1),o==="up"?l=c>0?c-1:s.length-1:o==="down"?l=(c+1)%s.length:o==="pageup"?(l=c-i,l<0&&(l=0)):o==="pagedown"?(l=c+i,l>s.length-1&&(l=s.length-1)):o==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Ud):H(H({},Ud),this.props.theme):Ud}},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,a=this.getStyles,s=this.getClassNames,l=this.getValue,c=this.selectOption,u=this.setValue,d=this.props,f=d.isMulti,g=d.isRtl,h=d.options,m=this.hasValue();return{clearValue:o,cx:i,getStyles:a,getClassNames:s,getValue:l,hasValue:m,isMulti:f,isRtl:g,options:h,selectOption:c,selectProps:d,setValue:u,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,a=o.isMulti;return i===void 0?a:i}},{key:"isOptionDisabled",value:function(o,i){return Fv(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return $v(this.props,o,i)}},{key:"filterOption",value:function(o,i){return Mv(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:a,selectValue:s})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,i=o.isDisabled,a=o.isSearchable,s=o.inputId,l=o.inputValue,c=o.tabIndex,u=o.form,d=o.menuIsOpen,f=o.required,g=this.getComponents(),h=g.Input,m=this.state,p=m.inputIsHidden,b=m.ariaSelection,y=this.commonProps,w=s||this.getElementId("input"),S=H(H(H({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?b?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?A.createElement(h,le({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:w,innerRef:this.getInputRef,isDisabled:i,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:u,type:"text",value:l},S)):A.createElement(BN,le({id:w,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:cl,onFocus:this.onInputFocus,disabled:i,tabIndex:c,inputMode:"none",form:u,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),a=i.MultiValue,s=i.MultiValueContainer,l=i.MultiValueLabel,c=i.MultiValueRemove,u=i.SingleValue,d=i.Placeholder,f=this.commonProps,g=this.props,h=g.controlShouldRenderValue,m=g.isDisabled,p=g.isMulti,b=g.inputValue,y=g.placeholder,w=this.state,S=w.selectValue,v=w.focusedValue,I=w.isFocused;if(!this.hasValue()||!h)return b?null:A.createElement(d,le({},f,{key:"placeholder",isDisabled:m,isFocused:I,innerProps:{id:this.getElementId("placeholder")}}),y);if(p)return S.map(function(O,T){var P=O===v,M="".concat(o.getOptionLabel(O),"-").concat(o.getOptionValue(O));return A.createElement(a,le({},f,{components:{Container:s,Label:l,Remove:c},isFocused:P,isDisabled:m,key:M,index:T,removeProps:{onClick:function(){return o.removeValue(O)},onTouchEnd:function(){return o.removeValue(O)},onMouseDown:function($){$.preventDefault()}},data:O}),o.formatOptionLabel(O,"value"))});if(b)return null;var N=S[0];return A.createElement(u,le({},f,{data:N,isDisabled:m}),this.formatOptionLabel(N,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,c=s.isLoading,u=this.state.isFocused;if(!this.isClearable()||!i||l||!this.hasValue()||c)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return A.createElement(i,le({},a,{innerProps:d,isFocused:u}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,c=s.isLoading,u=this.state.isFocused;if(!i||!c)return null;var d={"aria-hidden":"true"};return A.createElement(i,le({},a,{innerProps:d,isDisabled:l,isFocused:u}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,a=o.IndicatorSeparator;if(!i||!a)return null;var s=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused;return A.createElement(a,le({},s,{isDisabled:l,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var a=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return A.createElement(i,le({},a,{innerProps:c,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),a=i.Group,s=i.GroupHeading,l=i.Menu,c=i.MenuList,u=i.MenuPortal,d=i.LoadingMessage,f=i.NoOptionsMessage,g=i.Option,h=this.commonProps,m=this.state.focusedOption,p=this.props,b=p.captureMenuScroll,y=p.inputValue,w=p.isLoading,S=p.loadingMessage,v=p.minMenuHeight,I=p.maxMenuHeight,N=p.menuIsOpen,O=p.menuPlacement,T=p.menuPosition,P=p.menuPortalTarget,M=p.menuShouldBlockScroll,x=p.menuShouldScrollIntoView,$=p.noOptionsMessage,k=p.onMenuScrollToTop,F=p.onMenuScrollToBottom;if(!N)return null;var j=function(L,G){var Q=L.type,q=L.data,U=L.isDisabled,K=L.isSelected,Z=L.label,se=L.value,pe=m===q,Y=U?void 0:function(){return o.onOptionHover(q)},Ce=U?void 0:function(){return o.selectOption(q)},ne="".concat(o.getElementId("option"),"-").concat(G),Ie={id:ne,onClick:Ce,onMouseMove:Y,onMouseOver:Y,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:K};return A.createElement(g,le({},h,{innerProps:Ie,data:q,isDisabled:U,isSelected:K,key:ne,label:Z,type:Q,value:se,isFocused:pe,innerRef:pe?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(L.data,"menu"))},z;if(this.hasOptions())z=this.getCategorizedOptions().map(function(B){if(B.type==="group"){var L=B.data,G=B.options,Q=B.index,q="".concat(o.getElementId("group"),"-").concat(Q),U="".concat(q,"-heading");return A.createElement(a,le({},h,{key:q,data:L,options:G,Heading:s,headingProps:{id:U,data:B.data},label:o.formatGroupLabel(B.data)}),B.options.map(function(K){return j(K,"".concat(Q,"-").concat(K.index))}))}else if(B.type==="option")return j(B,"".concat(B.index))});else if(w){var W=S({inputValue:y});if(W===null)return null;z=A.createElement(d,h,W)}else{var V=$({inputValue:y});if(V===null)return null;z=A.createElement(f,h,V)}var _={minMenuHeight:v,maxMenuHeight:I,menuPlacement:O,menuPosition:T,menuShouldScrollIntoView:x},D=A.createElement(vA,le({},h,_),function(B){var L=B.ref,G=B.placerProps,Q=G.placement,q=G.maxHeight;return A.createElement(l,le({},h,_,{innerRef:L,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:w,placement:Q}),A.createElement(YN,{captureEnabled:b,onTopArrive:k,onBottomArrive:F,lockEnabled:M},function(U){return A.createElement(c,le({},h,{innerRef:function(Z){o.getMenuListRef(Z),U(Z)},innerProps:{role:"listbox","aria-multiselectable":h.isMulti,id:o.getElementId("listbox")},isLoading:w,maxHeight:q,focusedOption:m}),z)}))});return P||T==="fixed"?A.createElement(u,le({},h,{appendTo:P,controlElement:this.controlRef,menuPlacement:O,menuPosition:T}),D):D}},{key:"renderFormField",value:function(){var o=this,i=this.props,a=i.delimiter,s=i.isDisabled,l=i.isMulti,c=i.name,u=i.required,d=this.state.selectValue;if(u&&!this.hasValue()&&!s)return A.createElement(QN,{name:c,onFocus:this.onValueInputFocus});if(!(!c||s))if(l)if(a){var f=d.map(function(m){return o.getOptionValue(m)}).join(a);return A.createElement("input",{name:c,type:"hidden",value:f})}else{var g=d.length>0?d.map(function(m,p){return A.createElement("input",{key:"i-".concat(p),name:c,type:"hidden",value:o.getOptionValue(m)})}):A.createElement("input",{name:c,type:"hidden",value:""});return A.createElement("div",null,g)}else{var h=d[0]?this.getOptionValue(d[0]):"";return A.createElement("input",{name:c,type:"hidden",value:h})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,a=i.ariaSelection,s=i.focusedOption,l=i.focusedValue,c=i.isFocused,u=i.selectValue,d=this.getFocusableOptions();return A.createElement(jN,le({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:s,focusedValue:l,isFocused:c,selectValue:u,focusableOptions:d,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,a=o.IndicatorsContainer,s=o.SelectContainer,l=o.ValueContainer,c=this.props,u=c.className,d=c.id,f=c.isDisabled,g=c.menuIsOpen,h=this.state.isFocused,m=this.commonProps=this.getCommonProps();return A.createElement(s,le({},m,{className:u,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:h}),this.renderLiveRegion(),A.createElement(i,le({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:h,menuIsOpen:g}),A.createElement(l,le({},m,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),A.createElement(a,le({},m,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,s=i.clearFocusValueOnUpdate,l=i.inputIsHiddenAfterUpdate,c=i.ariaSelection,u=i.isFocused,d=i.prevWasFocused,f=i.instancePrefix,g=o.options,h=o.value,m=o.menuIsOpen,p=o.inputValue,b=o.isMulti,y=ul(h),w={};if(a&&(h!==a.value||g!==a.options||m!==a.menuIsOpen||p!==a.inputValue)){var S=m?fO(o,y):[],v=m?Tv(gl(o,y),"".concat(f,"-option")):[],I=s?mO(i,y):null,N=pO(i,S),O=Xd(v,N);w={selectValue:y,focusedOption:N,focusedOptionId:O,focusableOptionsWithIds:v,focusedValue:I,clearFocusValueOnUpdate:!1}}var T=l!=null&&o!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},P=c,M=u&&d;return u&&!M&&(P={value:ia(b,y,y[0]||null),options:y,action:"initial-input-focus"},M=!d),c?.action==="initial-input-focus"&&(P=null),H(H(H({},w),T),{},{prevProps:o,ariaSelection:P,prevWasFocused:M})}}]),r}(E.Component);Rv.defaultProps=dO;var hO=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function vO(e){var t=e.defaultInputValue,r=t===void 0?"":t,n=e.defaultMenuIsOpen,o=n===void 0?!1:n,i=e.defaultValue,a=i===void 0?null:i,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,g=e.value,h=vt(e,hO),m=E.useState(s!==void 0?s:r),p=ie(m,2),b=p[0],y=p[1],w=E.useState(l!==void 0?l:o),S=ie(w,2),v=S[0],I=S[1],N=E.useState(g!==void 0?g:a),O=ie(N,2),T=O[0],P=O[1],M=E.useCallback(function(W,V){typeof c=="function"&&c(W,V),P(W)},[c]),x=E.useCallback(function(W,V){var _;typeof u=="function"&&(_=u(W,V)),y(_!==void 0?_:W)},[u]),$=E.useCallback(function(){typeof f=="function"&&f(),I(!0)},[f]),k=E.useCallback(function(){typeof d=="function"&&d(),I(!1)},[d]),F=s!==void 0?s:b,j=l!==void 0?l:v,z=g!==void 0?g:T;return H(H({},h),{},{inputValue:F,menuIsOpen:j,onChange:M,onInputChange:x,onMenuClose:k,onMenuOpen:$,value:z})}var bO=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Lv=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=String(t).toLowerCase(),i=String(n.getOptionValue(r)).toLowerCase(),a=String(n.getOptionLabel(r)).toLowerCase();return i===o||a===o},Yd={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,r,n,o){return!(!t||r.some(function(i){return Lv(t,i,o)})||n.some(function(i){return Lv(t,i,o)}))},getNewOptionData:function(t,r){return{label:r,value:t,__isNew__:!0}}};function yO(e){var t=e.allowCreateWhileLoading,r=t===void 0?!1:t,n=e.createOptionPosition,o=n===void 0?"last":n,i=e.formatCreateLabel,a=i===void 0?Yd.formatCreateLabel:i,s=e.isValidNewOption,l=s===void 0?Yd.isValidNewOption:s,c=e.getNewOptionData,u=c===void 0?Yd.getNewOptionData:c,d=e.onCreateOption,f=e.options,g=f===void 0?[]:f,h=e.onChange,m=vt(e,bO),p=m.getOptionValue,b=p===void 0?Iv:p,y=m.getOptionLabel,w=y===void 0?Ev:y,S=m.inputValue,v=m.isLoading,I=m.isMulti,N=m.value,O=m.name,T=E.useMemo(function(){return l(S,ul(N),g,{getOptionValue:b,getOptionLabel:w})?u(S,a(S)):void 0},[a,u,w,b,S,l,g,N]),P=E.useMemo(function(){return(r||!v)&&T?o==="first"?[T].concat(ue(g)):[].concat(ue(g),[T]):g},[r,o,v,T,g]),M=E.useCallback(function(x,$){if($.action!=="select-option")return h(x,$);var k=Array.isArray(x)?x:[x];if(k[k.length-1]===T){if(d)d(S);else{var F=u(S,S),j={action:"create-option",name:O,option:F};h(ia(I,[].concat(ue(ul(N)),[F]),F),j)}return}h(x,$)},[u,S,I,O,T,d,h,N]);return H(H({},m),{},{options:P,onChange:M})}var CO=E.forwardRef(function(e,t){var r=vO(e),n=yO(r);return A.createElement(Rv,le({ref:t},n))}),xO=CO;const Dv=e=>e,wO=(()=>{let e=Dv;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Dv}}})();function Jn(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function go(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Jn(7));return e.charAt(0).toUpperCase()+e.slice(1)}var vl={exports:{}},bl={exports:{}},tt={};/** @license React v16.13.1
|
|
247
|
+
`]))),WA=function(t,r){var n=t.isFocused,o=t.size,i=t.theme,a=i.colors,s=i.spacing.baseUnit;return H({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},r?{}:{color:n?a.neutral60:a.neutral20,padding:s*2})},Bd=function(t){var r=t.delay,n=t.offset;return ye("span",{css:Md({animation:"".concat(HA," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},UA=function(t){var r=t.innerProps,n=t.isRtl,o=t.size,i=o===void 0?4:o,a=vt(t,jA);return ye("div",le({},It(H(H({},a),{},{innerProps:r,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),ye(Bd,{delay:0,offset:n}),ye(Bd,{delay:160,offset:!0}),ye(Bd,{delay:320,offset:!n}))},XA=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.theme,a=i.colors,s=i.borderRadius,l=i.spacing;return H({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},YA=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.innerRef,a=t.innerProps,s=t.menuIsOpen;return ye("div",le({ref:i},It(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":s}),a,{"aria-disabled":n||void 0}),r)},JA=YA,ZA=["data"],qA=function(t,r){var n=t.theme.spacing;return r?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},QA=function(t){var r=t.children,n=t.cx,o=t.getStyles,i=t.getClassNames,a=t.Heading,s=t.headingProps,l=t.innerProps,c=t.label,u=t.theme,d=t.selectProps;return ye("div",le({},It(t,"group",{group:!0}),l),ye(a,le({},s,{selectProps:d,theme:u,getStyles:o,getClassNames:i,cx:n}),c),ye("div",null,r))},KA=function(t,r){var n=t.theme,o=n.colors,i=n.spacing;return H({label:"group",cursor:"default",display:"block"},r?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},eN=function(t){var r=qh(t);r.data;var n=vt(r,ZA);return ye("div",le({},It(t,"groupHeading",{"group-heading":!0}),n))},tN=QA,rN=["innerRef","isDisabled","isHidden","inputClassName"],nN=function(t,r){var n=t.isDisabled,o=t.value,i=t.theme,a=i.spacing,s=i.colors;return H(H({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},oN),r?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},cv={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},oN={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":H({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},cv)},iN=function(t){return H({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},cv)},aN=function(t){var r=t.cx,n=t.value,o=qh(t),i=o.innerRef,a=o.isDisabled,s=o.isHidden,l=o.inputClassName,c=vt(o,rN);return ye("div",le({},It(t,"input",{"input-container":!0}),{"data-value":n||""}),ye("input",le({className:r({input:!0},l),ref:i,style:iN(s),disabled:a},c)))},sN=aN,lN=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors;return H({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},cN=function(t,r){var n=t.theme,o=n.borderRadius,i=n.colors,a=t.cropWithEllipsis;return H({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},uN=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors,s=t.isFocused;return H({alignItems:"center",display:"flex"},r?{}:{borderRadius:i/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},uv=function(t){var r=t.children,n=t.innerProps;return ye("div",n,r)},dN=uv,fN=uv;function mN(e){var t=e.children,r=e.innerProps;return ye("div",le({role:"button"},r),t||ye(Vd,{size:14}))}var pN=function(t){var r=t.children,n=t.components,o=t.data,i=t.innerProps,a=t.isDisabled,s=t.removeProps,l=t.selectProps,c=n.Container,u=n.Label,d=n.Remove;return ye(c,{data:o,innerProps:H(H({},It(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:l},ye(u,{data:o,innerProps:H({},It(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},r),ye(d,{data:o,innerProps:H(H({},It(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},s),selectProps:l}))},gN=pN,hN=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.theme,s=a.spacing,l=a.colors;return H({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:i?l.primary:o?l.primary25:"transparent",color:n?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:i?l.primary:l.primary50}})},vN=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.innerRef,s=t.innerProps;return ye("div",le({},It(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":n},s),r)},bN=vN,yN=function(t,r){var n=t.theme,o=n.spacing,i=n.colors;return H({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},CN=function(t){var r=t.children,n=t.innerProps;return ye("div",le({},It(t,"placeholder",{placeholder:!0}),n),r)},xN=CN,wN=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing,a=o.colors;return H({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},SN=function(t){var r=t.children,n=t.isDisabled,o=t.innerProps;return ye("div",le({},It(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),r)},EN=SN,IN={ClearIndicator:BA,Control:JA,DropdownIndicator:_A,DownChevron:sv,CrossIcon:Vd,Group:tN,GroupHeading:eN,IndicatorsContainer:$A,IndicatorSeparator:GA,Input:sN,LoadingIndicator:UA,Menu:yA,MenuList:xA,MenuPortal:NA,LoadingMessage:IA,NoOptionsMessage:EA,MultiValue:gN,MultiValueContainer:dN,MultiValueLabel:fN,MultiValueRemove:mN,Option:bN,Placeholder:xN,SelectContainer:TA,SingleValue:EN,ValueContainer:kA},AN=function(t){return H(H({},IN),t.components)},dv=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function NN(e,t){return!!(e===t||dv(e)&&dv(t))}function ON(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!NN(e[r],t[r]))return!1;return!0}function TN(e,t){t===void 0&&(t=ON);var r=null;function n(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(r&&r.lastThis===this&&t(o,r.lastArgs))return r.lastResult;var a=e.apply(this,o);return r={lastResult:a,lastArgs:o,lastThis:this},a}return n.clear=function(){r=null},n}function PN(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var kN=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:PN},FN=function(t){return ye("span",le({css:kN},t))},fv=FN,$N={guidance:function(t){var r=t.isSearchable,n=t.isMulti,o=t.tabSelectsValue,i=t.context,a=t.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(t["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var r=t.action,n=t.label,o=n===void 0?"":n,i=t.labels,a=t.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var r=t.context,n=t.focused,o=t.options,i=t.label,a=i===void 0?"":i,s=t.selectValue,l=t.isDisabled,c=t.isSelected,u=t.isAppleDevice,d=function(m,p){return m&&m.length?"".concat(m.indexOf(p)+1," of ").concat(m.length):""};if(r==="value"&&s)return"value ".concat(a," focused, ").concat(d(s,n),".");if(r==="menu"&&u){var f=l?" disabled":"",g="".concat(c?" selected":"").concat(f);return"".concat(a).concat(g,", ").concat(d(o,n),".")}return""},onFilter:function(t){var r=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(r?" for search term "+r:"",".")}},MN=function(t){var r=t.ariaSelection,n=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,c=t.id,u=t.isAppleDevice,d=l.ariaLiveMessages,f=l.getOptionLabel,g=l.inputValue,h=l.isMulti,m=l.isOptionDisabled,p=l.isSearchable,b=l.menuIsOpen,y=l.options,w=l.screenReaderStatus,S=l.tabSelectsValue,v=l.isLoading,I=l["aria-label"],N=l["aria-live"],O=E.useMemo(function(){return H(H({},$N),d||{})},[d]),T=E.useMemo(function(){var F="";if(r&&O.onChange){var j=r.option,G=r.options,W=r.removedValue,V=r.removedValues,_=r.value,D=function(K){return Array.isArray(K)?null:K},B=W||j||D(_),L=B?f(B):"",z=G||V||void 0,Q=z?z.map(f):[],q=H({isDisabled:B&&m(B,s),label:L,labels:Q},r);F=O.onChange(q)}return F},[r,O,m,s,f]),P=E.useMemo(function(){var F="",j=n||o,G=!!(n&&s&&s.includes(n));if(j&&O.onFocus){var W={focused:j,label:f(j),isDisabled:m(j,s),isSelected:G,options:i,context:j===n?"menu":"value",selectValue:s,isAppleDevice:u};F=O.onFocus(W)}return F},[n,o,f,m,O,i,s,u]),M=E.useMemo(function(){var F="";if(b&&y.length&&!v&&O.onFilter){var j=w({count:i.length});F=O.onFilter({inputValue:g,resultsMessage:j})}return F},[i,g,b,O,y,w,v]),x=r?.action==="initial-input-focus",$=E.useMemo(function(){var F="";if(O.guidance){var j=o?"value":b?"menu":"input";F=O.guidance({"aria-label":I,context:j,isDisabled:n&&m(n,s),isMulti:h,isSearchable:p,tabSelectsValue:S,isInitialFocus:x})}return F},[I,n,o,h,m,p,b,O,s,S,x]),k=ye(E.Fragment,null,ye("span",{id:"aria-selection"},T),ye("span",{id:"aria-focused"},P),ye("span",{id:"aria-results"},M),ye("span",{id:"aria-guidance"},$));return ye(E.Fragment,null,ye(fv,{id:c},x&&k),ye(fv,{"aria-live":N,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!x&&k))},jN=MN,zd=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],RN=new RegExp("["+zd.map(function(e){return e.letters}).join("")+"]","g"),mv={},Gd=0;Gd<zd.length;Gd++)for(var Hd=zd[Gd],Wd=0;Wd<Hd.letters.length;Wd++)mv[Hd.letters[Wd]]=Hd.base;var pv=function(t){return t.replace(RN,function(r){return mv[r]})},LN=TN(pv),gv=function(t){return t.replace(/^\s+|\s+$/g,"")},DN=function(t){return"".concat(t.label," ").concat(t.value)},_N=function(t){return function(r,n){if(r.data.__isNew__)return!0;var o=H({ignoreCase:!0,ignoreAccents:!0,stringify:DN,trim:!0,matchFrom:"any"},t),i=o.ignoreCase,a=o.ignoreAccents,s=o.stringify,l=o.trim,c=o.matchFrom,u=l?gv(n):n,d=l?gv(s(r)):s(r);return i&&(u=u.toLowerCase(),d=d.toLowerCase()),a&&(u=LN(u),d=pv(d)),c==="start"?d.substr(0,u.length)===u:d.indexOf(u)>-1}},VN=["innerRef"];function BN(e){var t=e.innerRef,r=vt(e,VN),n=dA(r,"onExited","in","enter","exit","appear");return ye("input",le({ref:t},n,{css:Md({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var zN=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function GN(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=E.useRef(!1),s=E.useRef(!1),l=E.useRef(0),c=E.useRef(null),u=E.useCallback(function(p,b){if(c.current!==null){var y=c.current,w=y.scrollTop,S=y.scrollHeight,v=y.clientHeight,I=c.current,N=b>0,O=S-v-w,T=!1;O>b&&a.current&&(n&&n(p),a.current=!1),N&&s.current&&(i&&i(p),s.current=!1),N&&b>O?(r&&!a.current&&r(p),I.scrollTop=S,T=!0,a.current=!0):!N&&-b>w&&(o&&!s.current&&o(p),I.scrollTop=0,T=!0,s.current=!0),T&&zN(p)}},[r,n,o,i]),d=E.useCallback(function(p){u(p,p.deltaY)},[u]),f=E.useCallback(function(p){l.current=p.changedTouches[0].clientY},[]),g=E.useCallback(function(p){var b=l.current-p.changedTouches[0].clientY;u(p,b)},[u]),h=E.useCallback(function(p){if(p){var b=lA?{passive:!1}:!1;p.addEventListener("wheel",d,b),p.addEventListener("touchstart",f,b),p.addEventListener("touchmove",g,b)}},[g,f,d]),m=E.useCallback(function(p){p&&(p.removeEventListener("wheel",d,!1),p.removeEventListener("touchstart",f,!1),p.removeEventListener("touchmove",g,!1))},[g,f,d]);return E.useEffect(function(){if(t){var p=c.current;return h(p),function(){m(p)}}},[t,h,m]),function(p){c.current=p}}var hv=["boxSizing","height","overflow","paddingRight","position"],vv={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function bv(e){e.cancelable&&e.preventDefault()}function yv(e){e.stopPropagation()}function Cv(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function xv(){return"ontouchstart"in window||navigator.maxTouchPoints}var wv=!!(typeof window<"u"&&window.document&&window.document.createElement),aa=0,ri={capture:!1,passive:!1};function HN(e){var t=e.isEnabled,r=e.accountForScrollbars,n=r===void 0?!0:r,o=E.useRef({}),i=E.useRef(null),a=E.useCallback(function(l){if(wv){var c=document.body,u=c&&c.style;if(n&&hv.forEach(function(h){var m=u&&u[h];o.current[h]=m}),n&&aa<1){var d=parseInt(o.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,g=window.innerWidth-f+d||0;Object.keys(vv).forEach(function(h){var m=vv[h];u&&(u[h]=m)}),u&&(u.paddingRight="".concat(g,"px"))}c&&xv()&&(c.addEventListener("touchmove",bv,ri),l&&(l.addEventListener("touchstart",Cv,ri),l.addEventListener("touchmove",yv,ri))),aa+=1}},[n]),s=E.useCallback(function(l){if(wv){var c=document.body,u=c&&c.style;aa=Math.max(aa-1,0),n&&aa<1&&hv.forEach(function(d){var f=o.current[d];u&&(u[d]=f)}),c&&xv()&&(c.removeEventListener("touchmove",bv,ri),l&&(l.removeEventListener("touchstart",Cv,ri),l.removeEventListener("touchmove",yv,ri)))}},[n]);return E.useEffect(function(){if(t){var l=i.current;return a(l),function(){s(l)}}},[t,a,s]),function(l){i.current=l}}function WN(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var UN=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},XN=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:WN};function YN(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,o=n===void 0?!0:n,i=e.onBottomArrive,a=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,c=GN({isEnabled:o,onBottomArrive:i,onBottomLeave:a,onTopArrive:s,onTopLeave:l}),u=HN({isEnabled:r}),d=function(g){c(g),u(g)};return ye(E.Fragment,null,r&&ye("div",{onClick:UN,css:XN}),t(d))}function JN(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var ZN=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:JN},qN=function(t){var r=t.name,n=t.onFocus;return ye("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:ZN,value:"",onChange:function(){}})},QN=qN;function Ud(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function KN(){return Ud(/^iPhone/i)}function Sv(){return Ud(/^Mac/i)}function eO(){return Ud(/^iPad/i)||Sv()&&navigator.maxTouchPoints>1}function tO(){return KN()||eO()}function rO(){return Sv()||tO()}var nO=function(t){return t.label},Ev=function(t){return t.label},Iv=function(t){return t.value},oO=function(t){return!!t.isDisabled},iO={clearIndicator:VA,container:OA,control:XA,dropdownIndicator:DA,group:qA,groupHeading:KA,indicatorsContainer:FA,indicatorSeparator:zA,input:nN,loadingIndicator:WA,loadingMessage:SA,menu:hA,menuList:CA,menuPortal:AA,multiValue:lN,multiValueLabel:cN,multiValueRemove:uN,noOptionsMessage:wA,option:hN,placeholder:yN,singleValue:wN,valueContainer:PA},aO={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},sO=4,Av=4,lO=38,cO=Av*2,uO={baseUnit:Av,controlHeight:lO,menuGutter:cO},Xd={borderRadius:sO,colors:aO,spacing:uO},dO={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ev(),captureMenuScroll:!ev(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:_N(),formatGroupLabel:nO,getOptionLabel:Ev,getOptionValue:Iv,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:oO,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!aA(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Nv(e,t,r,n){var o=Fv(e,t,r),i=$v(e,t,r),a=kv(e,t),s=vl(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:a,value:s,index:n}}function hl(e,t){return e.options.map(function(r,n){if("options"in r){var o=r.options.map(function(a,s){return Nv(e,a,t,s)}).filter(function(a){return Pv(e,a)});return o.length>0?{type:"group",data:r,options:o,index:n}:void 0}var i=Nv(e,r,t,n);return Pv(e,i)?i:void 0}).filter(cA)}function Ov(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,ue(r.options.map(function(n){return n.data}))):t.push(r.data),t},[])}function Tv(e,t){return e.reduce(function(r,n){return n.type==="group"?r.push.apply(r,ue(n.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(n.index,"-").concat(o.index)}}))):r.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),r},[])}function fO(e,t){return Ov(hl(e,t))}function Pv(e,t){var r=e.inputValue,n=r===void 0?"":r,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!jv(e)||!i)&&Mv(e,{label:a,value:s,data:o},n)}function mO(e,t){var r=e.focusedValue,n=e.selectValue,o=n.indexOf(r);if(o>-1){var i=t.indexOf(r);if(i>-1)return r;if(o<t.length)return t[o]}return null}function pO(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var Yd=function(t,r){var n,o=(n=t.find(function(i){return i.data===r}))===null||n===void 0?void 0:n.id;return o||null},kv=function(t,r){return t.getOptionLabel(r)},vl=function(t,r){return t.getOptionValue(r)};function Fv(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function $v(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var n=vl(e,t);return r.some(function(o){return vl(e,o)===n})}function Mv(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var jv=function(t){var r=t.hideSelectedOptions,n=t.isMulti;return r===void 0?n:r},gO=1,Rv=function(e){Gr(r,e);var t=Hr(r);function r(n){var o;if(Tt(this,r),o=t.call(this,n),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(l){o.controlRef=l},o.focusedOptionRef=null,o.getFocusedOptionRef=function(l){o.focusedOptionRef=l},o.menuListRef=null,o.getMenuListRef=function(l){o.menuListRef=l},o.inputRef=null,o.getInputRef=function(l){o.inputRef=l},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(l,c){var u=o.props,d=u.onChange,f=u.name;c.name=f,o.ariaOnChange(l,c),d(l,c)},o.setValue=function(l,c,u){var d=o.props,f=d.closeMenuOnSelect,g=d.isMulti,h=d.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:h}),f&&(o.setState({inputIsHiddenAfterUpdate:!g}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(l,{action:c,option:u})},o.selectOption=function(l){var c=o.props,u=c.blurInputOnSelect,d=c.isMulti,f=c.name,g=o.state.selectValue,h=d&&o.isOptionSelected(l,g),m=o.isOptionDisabled(l,g);if(h){var p=o.getOptionValue(l);o.setValue(g.filter(function(b){return o.getOptionValue(b)!==p}),"deselect-option",l)}else if(!m)d?o.setValue([].concat(ue(g),[l]),"select-option",l):o.setValue(l,"select-option");else{o.ariaOnChange(l,{action:"select-option",option:l,name:f});return}u&&o.blurInput()},o.removeValue=function(l){var c=o.props.isMulti,u=o.state.selectValue,d=o.getOptionValue(l),f=u.filter(function(h){return o.getOptionValue(h)!==d}),g=ia(c,f,f[0]||null);o.onChange(g,{action:"remove-value",removedValue:l}),o.focusInput()},o.clearValue=function(){var l=o.state.selectValue;o.onChange(ia(o.props.isMulti,[],null),{action:"clear",removedValues:l})},o.popValue=function(){var l=o.props.isMulti,c=o.state.selectValue,u=c[c.length-1],d=c.slice(0,c.length-1),f=ia(l,d,d[0]||null);u&&o.onChange(f,{action:"pop-value",removedValue:u})},o.getFocusedOptionId=function(l){return Yd(o.state.focusableOptionsWithIds,l)},o.getFocusableOptionsWithIds=function(){return Tv(hl(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return tA.apply(void 0,[o.props.classNamePrefix].concat(c))},o.getOptionLabel=function(l){return kv(o.props,l)},o.getOptionValue=function(l){return vl(o.props,l)},o.getStyles=function(l,c){var u=o.props.unstyled,d=iO[l](c,u);d.boxSizing="border-box";var f=o.props.styles[l];return f?f(d,c):d},o.getClassNames=function(l,c){var u,d;return(u=(d=o.props.classNames)[l])===null||u===void 0?void 0:u.call(d,c)},o.getElementId=function(l){return"".concat(o.state.instancePrefix,"-").concat(l)},o.getComponents=function(){return AN(o.props)},o.buildCategorizedOptions=function(){return hl(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return Ov(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(l,c){o.setState({ariaSelection:H({value:l},c)})},o.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(l){o.blockOptionHover=!1},o.onControlMouseDown=function(l){if(!l.defaultPrevented){var c=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&o.onMenuClose():c&&o.openMenu("first"):(c&&(o.openAfterFocus=!0),o.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},o.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!o.props.isDisabled){var c=o.props,u=c.isMulti,d=c.menuIsOpen;o.focusInput(),d?(o.setState({inputIsHiddenAfterUpdate:!u}),o.onMenuClose()):o.openMenu("first"),l.preventDefault()}},o.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(o.clearValue(),l.preventDefault(),o.openAfterFocus=!1,l.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(l){typeof o.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&fl(l.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(l)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(l){var c=l.touches,u=c&&c.item(0);u&&(o.initialTouchX=u.clientX,o.initialTouchY=u.clientY,o.userIsDragging=!1)},o.onTouchMove=function(l){var c=l.touches,u=c&&c.item(0);if(u){var d=Math.abs(u.clientX-o.initialTouchX),f=Math.abs(u.clientY-o.initialTouchY),g=5;o.userIsDragging=d>g||f>g}},o.onTouchEnd=function(l){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(l.target)&&o.menuListRef&&!o.menuListRef.contains(l.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(l){o.userIsDragging||o.onControlMouseDown(l)},o.onClearIndicatorTouchEnd=function(l){o.userIsDragging||o.onClearIndicatorMouseDown(l)},o.onDropdownIndicatorTouchEnd=function(l){o.userIsDragging||o.onDropdownIndicatorMouseDown(l)},o.handleInputChange=function(l){var c=o.props.inputValue,u=l.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(u,{action:"input-change",prevInputValue:c}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(l){o.props.onFocus&&o.props.onFocus(l),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(l){var c=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(l),o.onInputChange("",{action:"input-blur",prevInputValue:c}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(l){if(!(o.blockOptionHover||o.state.focusedOption===l)){var c=o.getFocusableOptions(),u=c.indexOf(l);o.setState({focusedOption:l,focusedOptionId:u>-1?o.getFocusedOptionId(l):null})}},o.shouldHideSelectedOptions=function(){return jv(o.props)},o.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),o.focus()},o.onKeyDown=function(l){var c=o.props,u=c.isMulti,d=c.backspaceRemovesValue,f=c.escapeClearsValue,g=c.inputValue,h=c.isClearable,m=c.isDisabled,p=c.menuIsOpen,b=c.onKeyDown,y=c.tabSelectsValue,w=c.openMenuOnFocus,S=o.state,v=S.focusedOption,I=S.focusedValue,N=S.selectValue;if(!m&&!(typeof b=="function"&&(b(l),l.defaultPrevented))){switch(o.blockOptionHover=!0,l.key){case"ArrowLeft":if(!u||g)return;o.focusValue("previous");break;case"ArrowRight":if(!u||g)return;o.focusValue("next");break;case"Delete":case"Backspace":if(g)return;if(I)o.removeValue(I);else{if(!d)return;u?o.popValue():h&&o.clearValue()}break;case"Tab":if(o.isComposing||l.shiftKey||!p||!y||!v||w&&o.isOptionSelected(v,N))return;o.selectOption(v);break;case"Enter":if(l.keyCode===229)break;if(p){if(!v||o.isComposing)return;o.selectOption(v);break}return;case"Escape":p?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:g}),o.onMenuClose()):h&&f&&o.clearValue();break;case" ":if(g)return;if(!p){o.openMenu("first");break}if(!v)return;o.selectOption(v);break;case"ArrowUp":p?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":p?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!p)return;o.focusOption("pageup");break;case"PageDown":if(!p)return;o.focusOption("pagedown");break;case"Home":if(!p)return;o.focusOption("first");break;case"End":if(!p)return;o.focusOption("last");break;default:return}l.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++gO),o.state.selectValue=dl(n.value),n.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),s=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=a[s],o.state.focusedOptionId=Yd(i,a[s])}return o}return Pt(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Kh(this.menuListRef,this.focusedOptionRef),rO()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isDisabled,s=i.menuIsOpen,l=this.state.isFocused;(l&&!a&&o.isDisabled||l&&s&&!o.menuIsOpen)&&this.focusInput(),l&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Kh(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,a=this.state,s=a.selectValue,l=a.isFocused,c=this.buildFocusableOptions(),u=o==="first"?0:c.length-1;if(!this.props.isMulti){var d=c.indexOf(s[0]);d>-1&&(u=d)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[u],focusedOptionId:this.getFocusedOptionId(c[u])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,a=i.selectValue,s=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(s);s||(l=-1);var c=a.length-1,u=-1;if(a.length){switch(o){case"previous":l===0?u=0:l===-1?u=c:u=l-1;break;case"next":l>-1&&l<c&&(u=l+1);break}this.setState({inputIsHidden:u!==-1,focusedValue:a[u]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,a=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,c=s.indexOf(a);a||(c=-1),o==="up"?l=c>0?c-1:s.length-1:o==="down"?l=(c+1)%s.length:o==="pageup"?(l=c-i,l<0&&(l=0)):o==="pagedown"?(l=c+i,l>s.length-1&&(l=s.length-1)):o==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Xd):H(H({},Xd),this.props.theme):Xd}},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,a=this.getStyles,s=this.getClassNames,l=this.getValue,c=this.selectOption,u=this.setValue,d=this.props,f=d.isMulti,g=d.isRtl,h=d.options,m=this.hasValue();return{clearValue:o,cx:i,getStyles:a,getClassNames:s,getValue:l,hasValue:m,isMulti:f,isRtl:g,options:h,selectOption:c,selectProps:d,setValue:u,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,a=o.isMulti;return i===void 0?a:i}},{key:"isOptionDisabled",value:function(o,i){return Fv(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return $v(this.props,o,i)}},{key:"filterOption",value:function(o,i){return Mv(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:a,selectValue:s})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,i=o.isDisabled,a=o.isSearchable,s=o.inputId,l=o.inputValue,c=o.tabIndex,u=o.form,d=o.menuIsOpen,f=o.required,g=this.getComponents(),h=g.Input,m=this.state,p=m.inputIsHidden,b=m.ariaSelection,y=this.commonProps,w=s||this.getElementId("input"),S=H(H(H({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?b?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?A.createElement(h,le({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:w,innerRef:this.getInputRef,isDisabled:i,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:u,type:"text",value:l},S)):A.createElement(BN,le({id:w,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ul,onFocus:this.onInputFocus,disabled:i,tabIndex:c,inputMode:"none",form:u,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),a=i.MultiValue,s=i.MultiValueContainer,l=i.MultiValueLabel,c=i.MultiValueRemove,u=i.SingleValue,d=i.Placeholder,f=this.commonProps,g=this.props,h=g.controlShouldRenderValue,m=g.isDisabled,p=g.isMulti,b=g.inputValue,y=g.placeholder,w=this.state,S=w.selectValue,v=w.focusedValue,I=w.isFocused;if(!this.hasValue()||!h)return b?null:A.createElement(d,le({},f,{key:"placeholder",isDisabled:m,isFocused:I,innerProps:{id:this.getElementId("placeholder")}}),y);if(p)return S.map(function(O,T){var P=O===v,M="".concat(o.getOptionLabel(O),"-").concat(o.getOptionValue(O));return A.createElement(a,le({},f,{components:{Container:s,Label:l,Remove:c},isFocused:P,isDisabled:m,key:M,index:T,removeProps:{onClick:function(){return o.removeValue(O)},onTouchEnd:function(){return o.removeValue(O)},onMouseDown:function($){$.preventDefault()}},data:O}),o.formatOptionLabel(O,"value"))});if(b)return null;var N=S[0];return A.createElement(u,le({},f,{data:N,isDisabled:m}),this.formatOptionLabel(N,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,c=s.isLoading,u=this.state.isFocused;if(!this.isClearable()||!i||l||!this.hasValue()||c)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return A.createElement(i,le({},a,{innerProps:d,isFocused:u}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,c=s.isLoading,u=this.state.isFocused;if(!i||!c)return null;var d={"aria-hidden":"true"};return A.createElement(i,le({},a,{innerProps:d,isDisabled:l,isFocused:u}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,a=o.IndicatorSeparator;if(!i||!a)return null;var s=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused;return A.createElement(a,le({},s,{isDisabled:l,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var a=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return A.createElement(i,le({},a,{innerProps:c,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),a=i.Group,s=i.GroupHeading,l=i.Menu,c=i.MenuList,u=i.MenuPortal,d=i.LoadingMessage,f=i.NoOptionsMessage,g=i.Option,h=this.commonProps,m=this.state.focusedOption,p=this.props,b=p.captureMenuScroll,y=p.inputValue,w=p.isLoading,S=p.loadingMessage,v=p.minMenuHeight,I=p.maxMenuHeight,N=p.menuIsOpen,O=p.menuPlacement,T=p.menuPosition,P=p.menuPortalTarget,M=p.menuShouldBlockScroll,x=p.menuShouldScrollIntoView,$=p.noOptionsMessage,k=p.onMenuScrollToTop,F=p.onMenuScrollToBottom;if(!N)return null;var j=function(L,z){var Q=L.type,q=L.data,U=L.isDisabled,K=L.isSelected,Z=L.label,se=L.value,ge=m===q,Y=U?void 0:function(){return o.onOptionHover(q)},Ce=U?void 0:function(){return o.selectOption(q)},ne="".concat(o.getElementId("option"),"-").concat(z),Ie={id:ne,onClick:Ce,onMouseMove:Y,onMouseOver:Y,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:K};return A.createElement(g,le({},h,{innerProps:Ie,data:q,isDisabled:U,isSelected:K,key:ne,label:Z,type:Q,value:se,isFocused:ge,innerRef:ge?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(L.data,"menu"))},G;if(this.hasOptions())G=this.getCategorizedOptions().map(function(B){if(B.type==="group"){var L=B.data,z=B.options,Q=B.index,q="".concat(o.getElementId("group"),"-").concat(Q),U="".concat(q,"-heading");return A.createElement(a,le({},h,{key:q,data:L,options:z,Heading:s,headingProps:{id:U,data:B.data},label:o.formatGroupLabel(B.data)}),B.options.map(function(K){return j(K,"".concat(Q,"-").concat(K.index))}))}else if(B.type==="option")return j(B,"".concat(B.index))});else if(w){var W=S({inputValue:y});if(W===null)return null;G=A.createElement(d,h,W)}else{var V=$({inputValue:y});if(V===null)return null;G=A.createElement(f,h,V)}var _={minMenuHeight:v,maxMenuHeight:I,menuPlacement:O,menuPosition:T,menuShouldScrollIntoView:x},D=A.createElement(vA,le({},h,_),function(B){var L=B.ref,z=B.placerProps,Q=z.placement,q=z.maxHeight;return A.createElement(l,le({},h,_,{innerRef:L,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:w,placement:Q}),A.createElement(YN,{captureEnabled:b,onTopArrive:k,onBottomArrive:F,lockEnabled:M},function(U){return A.createElement(c,le({},h,{innerRef:function(Z){o.getMenuListRef(Z),U(Z)},innerProps:{role:"listbox","aria-multiselectable":h.isMulti,id:o.getElementId("listbox")},isLoading:w,maxHeight:q,focusedOption:m}),G)}))});return P||T==="fixed"?A.createElement(u,le({},h,{appendTo:P,controlElement:this.controlRef,menuPlacement:O,menuPosition:T}),D):D}},{key:"renderFormField",value:function(){var o=this,i=this.props,a=i.delimiter,s=i.isDisabled,l=i.isMulti,c=i.name,u=i.required,d=this.state.selectValue;if(u&&!this.hasValue()&&!s)return A.createElement(QN,{name:c,onFocus:this.onValueInputFocus});if(!(!c||s))if(l)if(a){var f=d.map(function(m){return o.getOptionValue(m)}).join(a);return A.createElement("input",{name:c,type:"hidden",value:f})}else{var g=d.length>0?d.map(function(m,p){return A.createElement("input",{key:"i-".concat(p),name:c,type:"hidden",value:o.getOptionValue(m)})}):A.createElement("input",{name:c,type:"hidden",value:""});return A.createElement("div",null,g)}else{var h=d[0]?this.getOptionValue(d[0]):"";return A.createElement("input",{name:c,type:"hidden",value:h})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,a=i.ariaSelection,s=i.focusedOption,l=i.focusedValue,c=i.isFocused,u=i.selectValue,d=this.getFocusableOptions();return A.createElement(jN,le({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:s,focusedValue:l,isFocused:c,selectValue:u,focusableOptions:d,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,a=o.IndicatorsContainer,s=o.SelectContainer,l=o.ValueContainer,c=this.props,u=c.className,d=c.id,f=c.isDisabled,g=c.menuIsOpen,h=this.state.isFocused,m=this.commonProps=this.getCommonProps();return A.createElement(s,le({},m,{className:u,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:h}),this.renderLiveRegion(),A.createElement(i,le({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:h,menuIsOpen:g}),A.createElement(l,le({},m,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),A.createElement(a,le({},m,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,s=i.clearFocusValueOnUpdate,l=i.inputIsHiddenAfterUpdate,c=i.ariaSelection,u=i.isFocused,d=i.prevWasFocused,f=i.instancePrefix,g=o.options,h=o.value,m=o.menuIsOpen,p=o.inputValue,b=o.isMulti,y=dl(h),w={};if(a&&(h!==a.value||g!==a.options||m!==a.menuIsOpen||p!==a.inputValue)){var S=m?fO(o,y):[],v=m?Tv(hl(o,y),"".concat(f,"-option")):[],I=s?mO(i,y):null,N=pO(i,S),O=Yd(v,N);w={selectValue:y,focusedOption:N,focusedOptionId:O,focusableOptionsWithIds:v,focusedValue:I,clearFocusValueOnUpdate:!1}}var T=l!=null&&o!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},P=c,M=u&&d;return u&&!M&&(P={value:ia(b,y,y[0]||null),options:y,action:"initial-input-focus"},M=!d),c?.action==="initial-input-focus"&&(P=null),H(H(H({},w),T),{},{prevProps:o,ariaSelection:P,prevWasFocused:M})}}]),r}(E.Component);Rv.defaultProps=dO;var hO=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function vO(e){var t=e.defaultInputValue,r=t===void 0?"":t,n=e.defaultMenuIsOpen,o=n===void 0?!1:n,i=e.defaultValue,a=i===void 0?null:i,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,g=e.value,h=vt(e,hO),m=E.useState(s!==void 0?s:r),p=ie(m,2),b=p[0],y=p[1],w=E.useState(l!==void 0?l:o),S=ie(w,2),v=S[0],I=S[1],N=E.useState(g!==void 0?g:a),O=ie(N,2),T=O[0],P=O[1],M=E.useCallback(function(W,V){typeof c=="function"&&c(W,V),P(W)},[c]),x=E.useCallback(function(W,V){var _;typeof u=="function"&&(_=u(W,V)),y(_!==void 0?_:W)},[u]),$=E.useCallback(function(){typeof f=="function"&&f(),I(!0)},[f]),k=E.useCallback(function(){typeof d=="function"&&d(),I(!1)},[d]),F=s!==void 0?s:b,j=l!==void 0?l:v,G=g!==void 0?g:T;return H(H({},h),{},{inputValue:F,menuIsOpen:j,onChange:M,onInputChange:x,onMenuClose:k,onMenuOpen:$,value:G})}var bO=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Lv=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=String(t).toLowerCase(),i=String(n.getOptionValue(r)).toLowerCase(),a=String(n.getOptionLabel(r)).toLowerCase();return i===o||a===o},Jd={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,r,n,o){return!(!t||r.some(function(i){return Lv(t,i,o)})||n.some(function(i){return Lv(t,i,o)}))},getNewOptionData:function(t,r){return{label:r,value:t,__isNew__:!0}}};function yO(e){var t=e.allowCreateWhileLoading,r=t===void 0?!1:t,n=e.createOptionPosition,o=n===void 0?"last":n,i=e.formatCreateLabel,a=i===void 0?Jd.formatCreateLabel:i,s=e.isValidNewOption,l=s===void 0?Jd.isValidNewOption:s,c=e.getNewOptionData,u=c===void 0?Jd.getNewOptionData:c,d=e.onCreateOption,f=e.options,g=f===void 0?[]:f,h=e.onChange,m=vt(e,bO),p=m.getOptionValue,b=p===void 0?Iv:p,y=m.getOptionLabel,w=y===void 0?Ev:y,S=m.inputValue,v=m.isLoading,I=m.isMulti,N=m.value,O=m.name,T=E.useMemo(function(){return l(S,dl(N),g,{getOptionValue:b,getOptionLabel:w})?u(S,a(S)):void 0},[a,u,w,b,S,l,g,N]),P=E.useMemo(function(){return(r||!v)&&T?o==="first"?[T].concat(ue(g)):[].concat(ue(g),[T]):g},[r,o,v,T,g]),M=E.useCallback(function(x,$){if($.action!=="select-option")return h(x,$);var k=Array.isArray(x)?x:[x];if(k[k.length-1]===T){if(d)d(S);else{var F=u(S,S),j={action:"create-option",name:O,option:F};h(ia(I,[].concat(ue(dl(N)),[F]),F),j)}return}h(x,$)},[u,S,I,O,T,d,h,N]);return H(H({},m),{},{options:P,onChange:M})}var CO=E.forwardRef(function(e,t){var r=vO(e),n=yO(r);return A.createElement(Rv,le({ref:t},n))}),xO=CO;const Dv=e=>e,wO=(()=>{let e=Dv;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Dv}}})();function Jn(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function go(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Jn(7));return e.charAt(0).toUpperCase()+e.slice(1)}var bl={exports:{}},yl={exports:{}},tt={};/** @license React v16.13.1
|
|
248
248
|
* react-is.production.min.js
|
|
249
249
|
*
|
|
250
250
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -258,12 +258,12 @@ html body {
|
|
|
258
258
|
*
|
|
259
259
|
* This source code is licensed under the MIT license found in the
|
|
260
260
|
* LICENSE file in the root directory of this source tree.
|
|
261
|
-
*/var Vv;function EO(){return Vv||(Vv=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,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function w(Y){return typeof Y=="string"||typeof Y=="function"||Y===n||Y===c||Y===i||Y===o||Y===d||Y===f||typeof Y=="object"&&Y!==null&&(Y.$$typeof===h||Y.$$typeof===g||Y.$$typeof===a||Y.$$typeof===s||Y.$$typeof===u||Y.$$typeof===p||Y.$$typeof===b||Y.$$typeof===y||Y.$$typeof===m)}function S(Y){if(typeof Y=="object"&&Y!==null){var Ce=Y.$$typeof;switch(Ce){case t:var ne=Y.type;switch(ne){case l:case c:case n:case i:case o:case d:return ne;default:var Ie=ne&&ne.$$typeof;switch(Ie){case s:case u:case h:case g:case a:return Ie;default:return Ce}}case r:return Ce}}}var v=l,I=c,N=s,O=a,T=t,P=u,M=n,x=h,$=g,k=r,F=i,j=o,
|
|
261
|
+
*/var Vv;function EO(){return Vv||(Vv=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,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function w(Y){return typeof Y=="string"||typeof Y=="function"||Y===n||Y===c||Y===i||Y===o||Y===d||Y===f||typeof Y=="object"&&Y!==null&&(Y.$$typeof===h||Y.$$typeof===g||Y.$$typeof===a||Y.$$typeof===s||Y.$$typeof===u||Y.$$typeof===p||Y.$$typeof===b||Y.$$typeof===y||Y.$$typeof===m)}function S(Y){if(typeof Y=="object"&&Y!==null){var Ce=Y.$$typeof;switch(Ce){case t:var ne=Y.type;switch(ne){case l:case c:case n:case i:case o:case d:return ne;default:var Ie=ne&&ne.$$typeof;switch(Ie){case s:case u:case h:case g:case a:return Ie;default:return Ce}}case r:return Ce}}}var v=l,I=c,N=s,O=a,T=t,P=u,M=n,x=h,$=g,k=r,F=i,j=o,G=d,W=!1;function V(Y){return W||(W=!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.")),_(Y)||S(Y)===l}function _(Y){return S(Y)===c}function D(Y){return S(Y)===s}function B(Y){return S(Y)===a}function L(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===t}function z(Y){return S(Y)===u}function Q(Y){return S(Y)===n}function q(Y){return S(Y)===h}function U(Y){return S(Y)===g}function K(Y){return S(Y)===r}function Z(Y){return S(Y)===i}function se(Y){return S(Y)===o}function ge(Y){return S(Y)===d}rt.AsyncMode=v,rt.ConcurrentMode=I,rt.ContextConsumer=N,rt.ContextProvider=O,rt.Element=T,rt.ForwardRef=P,rt.Fragment=M,rt.Lazy=x,rt.Memo=$,rt.Portal=k,rt.Profiler=F,rt.StrictMode=j,rt.Suspense=G,rt.isAsyncMode=V,rt.isConcurrentMode=_,rt.isContextConsumer=D,rt.isContextProvider=B,rt.isElement=L,rt.isForwardRef=z,rt.isFragment=Q,rt.isLazy=q,rt.isMemo=U,rt.isPortal=K,rt.isProfiler=Z,rt.isStrictMode=se,rt.isSuspense=ge,rt.isValidElementType=w,rt.typeOf=S}()),rt}var Bv;function zv(){return Bv||(Bv=1,process.env.NODE_ENV==="production"?yl.exports=SO():yl.exports=EO()),yl.exports}/*
|
|
262
262
|
object-assign
|
|
263
263
|
(c) Sindre Sorhus
|
|
264
264
|
@license MIT
|
|
265
|
-
*/var
|
|
266
|
-
Valid keys: `+JSON.stringify(Object.keys(_),null," "));var Y=
|
|
265
|
+
*/var Zd,Gv;function IO(){if(Gv)return Zd;Gv=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Zd=o()?Object.assign:function(i,a){for(var s,l=n(i),c,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)t.call(s,d)&&(l[d]=s[d]);if(e){c=e(s);for(var f=0;f<c.length;f++)r.call(s,c[f])&&(l[c[f]]=s[c[f]])}}return l},Zd}var qd,Hv;function Qd(){if(Hv)return qd;Hv=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return qd=e,qd}var Kd,Wv;function Uv(){return Wv||(Wv=1,Kd=Function.call.bind(Object.prototype.hasOwnProperty)),Kd}var ef,Xv;function AO(){if(Xv)return ef;Xv=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Qd(),r={},n=Uv();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,s,l,c){if(process.env.NODE_ENV!=="production"){for(var u in i)if(n(i,u)){var d;try{if(typeof i[u]!="function"){var f=Error((l||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=i[u](a,u,l,s,null,t)}catch(h){d=h}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+u+"` 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 g=c?c():"";e("Failed "+s+" type: "+d.message+(g??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ef=o,ef}var tf,Yv;function NO(){if(Yv)return tf;Yv=1;var e=zv(),t=IO(),r=Qd(),n=Uv(),o=AO(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return tf=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(_){var D=_&&(c&&_[c]||_[u]);if(typeof D=="function")return D}var f="<<anonymous>>",g={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:y(),arrayOf:w,element:S(),elementType:v(),instanceOf:I,node:P(),objectOf:O,oneOf:N,oneOfType:T,shape:x,exact:$};function h(_,D){return _===D?_!==0||1/_===1/D:_!==_&&D!==D}function m(_,D){this.message=_,this.data=D&&typeof D=="object"?D:{},this.stack=""}m.prototype=Error.prototype;function p(_){if(process.env.NODE_ENV!=="production")var D={},B=0;function L(Q,q,U,K,Z,se,ge){if(K=K||f,se=se||U,ge!==r){if(l){var Y=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 Y.name="Invariant Violation",Y}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ce=K+":"+U;!D[Ce]&&B<3&&(i("You are manually calling a React.PropTypes validation function for the `"+se+"` prop on `"+K+"`. 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."),D[Ce]=!0,B++)}}return q[U]==null?Q?q[U]===null?new m("The "+Z+" `"+se+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new m("The "+Z+" `"+se+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:_(q,U,K,Z,se)}var z=L.bind(null,!1);return z.isRequired=L.bind(null,!0),z}function b(_){function D(B,L,z,Q,q,U){var K=B[L],Z=j(K);if(Z!==_){var se=G(K);return new m("Invalid "+Q+" `"+q+"` of type "+("`"+se+"` supplied to `"+z+"`, expected ")+("`"+_+"`."),{expectedType:_})}return null}return p(D)}function y(){return p(a)}function w(_){function D(B,L,z,Q,q){if(typeof _!="function")return new m("Property `"+q+"` of component `"+z+"` has invalid PropType notation inside arrayOf.");var U=B[L];if(!Array.isArray(U)){var K=j(U);return new m("Invalid "+Q+" `"+q+"` of type "+("`"+K+"` supplied to `"+z+"`, expected an array."))}for(var Z=0;Z<U.length;Z++){var se=_(U,Z,z,Q,q+"["+Z+"]",r);if(se instanceof Error)return se}return null}return p(D)}function S(){function _(D,B,L,z,Q){var q=D[B];if(!s(q)){var U=j(q);return new m("Invalid "+z+" `"+Q+"` of type "+("`"+U+"` supplied to `"+L+"`, expected a single ReactElement."))}return null}return p(_)}function v(){function _(D,B,L,z,Q){var q=D[B];if(!e.isValidElementType(q)){var U=j(q);return new m("Invalid "+z+" `"+Q+"` of type "+("`"+U+"` supplied to `"+L+"`, expected a single ReactElement type."))}return null}return p(_)}function I(_){function D(B,L,z,Q,q){if(!(B[L]instanceof _)){var U=_.name||f,K=V(B[L]);return new m("Invalid "+Q+" `"+q+"` of type "+("`"+K+"` supplied to `"+z+"`, expected ")+("instance of `"+U+"`."))}return null}return p(D)}function N(_){if(!Array.isArray(_))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("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])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function D(B,L,z,Q,q){for(var U=B[L],K=0;K<_.length;K++)if(h(U,_[K]))return null;var Z=JSON.stringify(_,function(ge,Y){var Ce=G(Y);return Ce==="symbol"?String(Y):Y});return new m("Invalid "+Q+" `"+q+"` of value `"+String(U)+"` "+("supplied to `"+z+"`, expected one of "+Z+"."))}return p(D)}function O(_){function D(B,L,z,Q,q){if(typeof _!="function")return new m("Property `"+q+"` of component `"+z+"` has invalid PropType notation inside objectOf.");var U=B[L],K=j(U);if(K!=="object")return new m("Invalid "+Q+" `"+q+"` of type "+("`"+K+"` supplied to `"+z+"`, expected an object."));for(var Z in U)if(n(U,Z)){var se=_(U,Z,z,Q,q+"."+Z,r);if(se instanceof Error)return se}return null}return p(D)}function T(_){if(!Array.isArray(_))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var D=0;D<_.length;D++){var B=_[D];if(typeof B!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+W(B)+" at index "+D+"."),a}function L(z,Q,q,U,K){for(var Z=[],se=0;se<_.length;se++){var ge=_[se],Y=ge(z,Q,q,U,K,r);if(Y==null)return null;Y.data&&n(Y.data,"expectedType")&&Z.push(Y.data.expectedType)}var Ce=Z.length>0?", expected one of type ["+Z.join(", ")+"]":"";return new m("Invalid "+U+" `"+K+"` supplied to "+("`"+q+"`"+Ce+"."))}return p(L)}function P(){function _(D,B,L,z,Q){return k(D[B])?null:new m("Invalid "+z+" `"+Q+"` supplied to "+("`"+L+"`, expected a ReactNode."))}return p(_)}function M(_,D,B,L,z){return new m((_||"React class")+": "+D+" type `"+B+"."+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+z+"`.")}function x(_){function D(B,L,z,Q,q){var U=B[L],K=j(U);if(K!=="object")return new m("Invalid "+Q+" `"+q+"` of type `"+K+"` "+("supplied to `"+z+"`, expected `object`."));for(var Z in _){var se=_[Z];if(typeof se!="function")return M(z,Q,q,Z,G(se));var ge=se(U,Z,z,Q,q+"."+Z,r);if(ge)return ge}return null}return p(D)}function $(_){function D(B,L,z,Q,q){var U=B[L],K=j(U);if(K!=="object")return new m("Invalid "+Q+" `"+q+"` of type `"+K+"` "+("supplied to `"+z+"`, expected `object`."));var Z=t({},B[L],_);for(var se in Z){var ge=_[se];if(n(_,se)&&typeof ge!="function")return M(z,Q,q,se,G(ge));if(!ge)return new m("Invalid "+Q+" `"+q+"` key `"+se+"` supplied to `"+z+"`.\nBad object: "+JSON.stringify(B[L],null," ")+`
|
|
266
|
+
Valid keys: `+JSON.stringify(Object.keys(_),null," "));var Y=ge(U,se,z,Q,q+"."+se,r);if(Y)return Y}return null}return p(D)}function k(_){switch(typeof _){case"number":case"string":case"undefined":return!0;case"boolean":return!_;case"object":if(Array.isArray(_))return _.every(k);if(_===null||s(_))return!0;var D=d(_);if(D){var B=D.call(_),L;if(D!==_.entries){for(;!(L=B.next()).done;)if(!k(L.value))return!1}else for(;!(L=B.next()).done;){var z=L.value;if(z&&!k(z[1]))return!1}}else return!1;return!0;default:return!1}}function F(_,D){return _==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function j(_){var D=typeof _;return Array.isArray(_)?"array":_ instanceof RegExp?"object":F(D,_)?"symbol":D}function G(_){if(typeof _>"u"||_===null)return""+_;var D=j(_);if(D==="object"){if(_ instanceof Date)return"date";if(_ instanceof RegExp)return"regexp"}return D}function W(_){var D=G(_);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function V(_){return!_.constructor||!_.constructor.name?f:_.constructor.name}return g.checkPropTypes=o,g.resetWarningCache=o.resetWarningCache,g.PropTypes=g,g},tf}var rf,Jv;function OO(){if(Jv)return rf;Jv=1;var e=Qd();function t(){}function r(){}return r.resetWarningCache=t,rf=function(){function n(a,s,l,c,u,d){if(d!==e){var f=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 f.name="Invariant Violation",f}}n.isRequired=n;function o(){return n}var i={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 i.PropTypes=i,i},rf}var Zv;function TO(){if(Zv)return bl.exports;if(Zv=1,process.env.NODE_ENV!=="production"){var e=zv(),t=!0;bl.exports=NO()(e.isElement,t)}else bl.exports=OO()();return bl.exports}var PO=TO();const Ge=Tc(PO);function qv(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=qv(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function cn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=qv(e))&&(n&&(n+=" "),n+=t);return n}function kO(e,t,r=void 0){const n={};for(const o in e){const i=e[o];let a="",s=!0;for(let l=0;l<i.length;l+=1){const c=i[l];c&&(a+=(s===!0?"":" ")+t(c),s=!1,r&&r[c]&&(a+=" "+r[c]))}n[o]=a}return n}var Cl={exports:{}},ct={};/**
|
|
267
267
|
* @license React
|
|
268
268
|
* react-is.production.js
|
|
269
269
|
*
|
|
@@ -279,20 +279,20 @@ Valid keys: `+JSON.stringify(Object.keys(_),null," "));var Y=pe(U,se,G,Q,q+"."+
|
|
|
279
279
|
*
|
|
280
280
|
* This source code is licensed under the MIT license found in the
|
|
281
281
|
* LICENSE file in the root directory of this source tree.
|
|
282
|
-
*/var Kv;function $O(){return Kv||(Kv=1,process.env.NODE_ENV!=="production"&&function(){function e(m){if(typeof m=="object"&&m!==null){var p=m.$$typeof;switch(p){case t:switch(m=m.type,m){case n:case i:case o:case c:case u:case g:return m;default:switch(m=m&&m.$$typeof,m){case s:case l:case f:case d:return m;case a:return m;default:return p}}case r:return p}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");ut.ContextConsumer=a,ut.ContextProvider=s,ut.Element=t,ut.ForwardRef=l,ut.Fragment=n,ut.Lazy=f,ut.Memo=d,ut.Portal=r,ut.Profiler=i,ut.StrictMode=o,ut.Suspense=c,ut.SuspenseList=u,ut.isContextConsumer=function(m){return e(m)===a},ut.isContextProvider=function(m){return e(m)===s},ut.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},ut.isForwardRef=function(m){return e(m)===l},ut.isFragment=function(m){return e(m)===n},ut.isLazy=function(m){return e(m)===f},ut.isMemo=function(m){return e(m)===d},ut.isPortal=function(m){return e(m)===r},ut.isProfiler=function(m){return e(m)===i},ut.isStrictMode=function(m){return e(m)===o},ut.isSuspense=function(m){return e(m)===c},ut.isSuspenseList=function(m){return e(m)===u},ut.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===i||m===o||m===c||m===u||typeof m=="object"&&m!==null&&(m.$$typeof===f||m.$$typeof===d||m.$$typeof===s||m.$$typeof===a||m.$$typeof===l||m.$$typeof===h||m.getModuleId!==void 0)},ut.typeOf=e}()),ut}var eb;function MO(){return eb||(eb=1,process.env.NODE_ENV==="production"?
|
|
283
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Jn(18,`(${t})`));return null}const[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function LO(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function r(i,a){i.up=(...s)=>t(e.breakpoints.up(...s),a),i.down=(...s)=>t(e.breakpoints.down(...s),a),i.between=(...s)=>t(e.breakpoints.between(...s),a),i.only=(...s)=>t(e.breakpoints.only(...s),a),i.not=(...s)=>{const l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},o=i=>(r(n,i),n);return r(o),{...e,containerQueries:o}}const
|
|
282
|
+
*/var Kv;function $O(){return Kv||(Kv=1,process.env.NODE_ENV!=="production"&&function(){function e(m){if(typeof m=="object"&&m!==null){var p=m.$$typeof;switch(p){case t:switch(m=m.type,m){case n:case i:case o:case c:case u:case g:return m;default:switch(m=m&&m.$$typeof,m){case s:case l:case f:case d:return m;case a:return m;default:return p}}case r:return p}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");ut.ContextConsumer=a,ut.ContextProvider=s,ut.Element=t,ut.ForwardRef=l,ut.Fragment=n,ut.Lazy=f,ut.Memo=d,ut.Portal=r,ut.Profiler=i,ut.StrictMode=o,ut.Suspense=c,ut.SuspenseList=u,ut.isContextConsumer=function(m){return e(m)===a},ut.isContextProvider=function(m){return e(m)===s},ut.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},ut.isForwardRef=function(m){return e(m)===l},ut.isFragment=function(m){return e(m)===n},ut.isLazy=function(m){return e(m)===f},ut.isMemo=function(m){return e(m)===d},ut.isPortal=function(m){return e(m)===r},ut.isProfiler=function(m){return e(m)===i},ut.isStrictMode=function(m){return e(m)===o},ut.isSuspense=function(m){return e(m)===c},ut.isSuspenseList=function(m){return e(m)===u},ut.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===i||m===o||m===c||m===u||typeof m=="object"&&m!==null&&(m.$$typeof===f||m.$$typeof===d||m.$$typeof===s||m.$$typeof===a||m.$$typeof===l||m.$$typeof===h||m.getModuleId!==void 0)},ut.typeOf=e}()),ut}var eb;function MO(){return eb||(eb=1,process.env.NODE_ENV==="production"?Cl.exports=FO():Cl.exports=$O()),Cl.exports}var xl=MO();function wn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function tb(e){if(A.isValidElement(e)||xl.isValidElementType(e)||!wn(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=tb(e[r])}),t}function Sr(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return wn(e)&&wn(t)&&Object.keys(t).forEach(o=>{A.isValidElement(t[o])||xl.isValidElementType(t[o])?n[o]=t[o]:wn(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&wn(e[o])?n[o]=Sr(e[o],t[o],r):r.clone?n[o]=wn(t[o])?tb(t[o]):t[o]:n[o]=t[o]}),n}function sa(e,t){return t?Sr(e,t,{clone:!1}):e}const Zn=process.env.NODE_ENV!=="production"?Ge.oneOfType([Ge.number,Ge.string,Ge.object,Ge.array]):{};function rb(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{const i=/min-width:\s*([0-9.]+)/;return+(n.match(i)?.[1]||0)-+(o.match(i)?.[1]||0)});return r.length?r.reduce((n,o)=>{const i=t[o];return delete n[o],n[o]=i,n},{...t}):t}function jO(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function RO(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
283
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Jn(18,`(${t})`));return null}const[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function LO(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function r(i,a){i.up=(...s)=>t(e.breakpoints.up(...s),a),i.down=(...s)=>t(e.breakpoints.down(...s),a),i.between=(...s)=>t(e.breakpoints.between(...s),a),i.only=(...s)=>t(e.breakpoints.only(...s),a),i.not=(...s)=>{const l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},o=i=>(r(n,i),n);return r(o),{...e,containerQueries:o}}const wl={xs:0,sm:600,md:900,lg:1200,xl:1536},nb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${wl[e]}px)`},DO={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:wl[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Sn(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||nb;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=r(t[l]),a),{})}if(typeof t=="object"){const i=n.breakpoints||nb;return Object.keys(t).reduce((a,s)=>{if(jO(i.keys,s)){const l=RO(n.containerQueries?n:DO,s);l&&(a[l]=r(t[s],s))}else if(Object.keys(i.values||wl).includes(s)){const l=i.up(s);a[l]=r(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return r(t)}function _O(e={}){return e.keys?.reduce((r,n)=>{const o=e.up(n);return r[o]={},r},{})||{}}function ob(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Sl(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function El(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Sl(e,r)||n,t&&(o=t(o,n,e)),o}function Ft(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=Sl(l,n)||{};return Sn(a,s,d=>{let f=El(c,o,d);return d===f&&typeof d=="string"&&(f=El(c,o,`${t}${d==="default"?"":go(d)}`,d)),r===!1?f:{[r]:f}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Zn}:{},i.filterProps=[t],i}function VO(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const BO={m:"margin",p:"padding"},zO={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ib={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},GO=VO(e=>{if(e.length>2)if(ib[e])e=ib[e];else return[e];const[t,r]=e.split(""),n=BO[t],o=zO[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),Il=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Al=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],HO=[...Il,...Al];function la(e,t,r,n){const o=Sl(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
|
|
284
284
|
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
285
285
|
`)));const s=o[a];return i>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
286
|
-
`)),()=>{})}function rf(e){return la(e,"spacing",8,"spacing")}function ca(e,t){return typeof t=="string"||t==null?t:e(t)}function WO(e,t){return r=>e.reduce((n,o)=>(n[o]=ca(t,r),n),{})}function UO(e,t,r,n){if(!t.includes(r))return null;const o=GO(r),i=WO(o,n),a=e[r];return Sn(e,a,i)}function ab(e,t){const r=rf(e.theme);return Object.keys(e).map(n=>UO(e,t,n,r)).reduce(sa,{})}function At(e){return ab(e,El)}At.propTypes=process.env.NODE_ENV!=="production"?El.reduce((e,t)=>(e[t]=Zn,e),{}):{},At.filterProps=El;function Nt(e){return ab(e,Il)}Nt.propTypes=process.env.NODE_ENV!=="production"?Il.reduce((e,t)=>(e[t]=Zn,e),{}):{},Nt.filterProps=Il,process.env.NODE_ENV!=="production"&&HO.reduce((e,t)=>(e[t]=Zn,e),{});function Al(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?sa(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function jr(e){return typeof e!="number"?e:`${e}px solid`}function Rr(e,t){return Ft({prop:e,themeKey:"borders",transform:t})}const XO=Rr("border",jr),YO=Rr("borderTop",jr),JO=Rr("borderRight",jr),ZO=Rr("borderBottom",jr),qO=Rr("borderLeft",jr),QO=Rr("borderColor"),KO=Rr("borderTopColor"),e6=Rr("borderRightColor"),t6=Rr("borderBottomColor"),r6=Rr("borderLeftColor"),n6=Rr("outline",jr),o6=Rr("outlineColor"),Nl=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=la(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:ca(t,n)});return Sn(e,e.borderRadius,r)}return null};Nl.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Zn}:{},Nl.filterProps=["borderRadius"],Al(XO,YO,JO,ZO,qO,QO,KO,e6,t6,r6,Nl,n6,o6);const Ol=e=>{if(e.gap!==void 0&&e.gap!==null){const t=la(e.theme,"spacing",8,"gap"),r=n=>({gap:ca(t,n)});return Sn(e,e.gap,r)}return null};Ol.propTypes=process.env.NODE_ENV!=="production"?{gap:Zn}:{},Ol.filterProps=["gap"];const Tl=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=la(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:ca(t,n)});return Sn(e,e.columnGap,r)}return null};Tl.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Zn}:{},Tl.filterProps=["columnGap"];const Pl=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=la(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:ca(t,n)});return Sn(e,e.rowGap,r)}return null};Pl.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Zn}:{},Pl.filterProps=["rowGap"];const i6=Ft({prop:"gridColumn"}),a6=Ft({prop:"gridRow"}),s6=Ft({prop:"gridAutoFlow"}),l6=Ft({prop:"gridAutoColumns"}),c6=Ft({prop:"gridAutoRows"}),u6=Ft({prop:"gridTemplateColumns"}),d6=Ft({prop:"gridTemplateRows"}),f6=Ft({prop:"gridTemplateAreas"}),m6=Ft({prop:"gridArea"});Al(Ol,Tl,Pl,i6,a6,s6,l6,c6,u6,d6,f6,m6);function ni(e,t){return t==="grey"?t:e}const p6=Ft({prop:"color",themeKey:"palette",transform:ni}),g6=Ft({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ni}),h6=Ft({prop:"backgroundColor",themeKey:"palette",transform:ni});Al(p6,g6,h6);function Er(e){return e<=1&&e!==0?`${e*100}%`:e}const v6=Ft({prop:"width",transform:Er}),nf=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||xl[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Er(r)}};return Sn(e,e.maxWidth,t)}return null};nf.filterProps=["maxWidth"];const b6=Ft({prop:"minWidth",transform:Er}),y6=Ft({prop:"height",transform:Er}),C6=Ft({prop:"maxHeight",transform:Er}),x6=Ft({prop:"minHeight",transform:Er});Ft({prop:"size",cssProperty:"width",transform:Er}),Ft({prop:"size",cssProperty:"height",transform:Er});const w6=Ft({prop:"boxSizing"});Al(v6,nf,b6,y6,C6,x6,w6);const kl={border:{themeKey:"borders",transform:jr},borderTop:{themeKey:"borders",transform:jr},borderRight:{themeKey:"borders",transform:jr},borderBottom:{themeKey:"borders",transform:jr},borderLeft:{themeKey:"borders",transform:jr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:jr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Nl},color:{themeKey:"palette",transform:ni},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ni},backgroundColor:{themeKey:"palette",transform:ni},p:{style:Nt},pt:{style:Nt},pr:{style:Nt},pb:{style:Nt},pl:{style:Nt},px:{style:Nt},py:{style:Nt},padding:{style:Nt},paddingTop:{style:Nt},paddingRight:{style:Nt},paddingBottom:{style:Nt},paddingLeft:{style:Nt},paddingX:{style:Nt},paddingY:{style:Nt},paddingInline:{style:Nt},paddingInlineStart:{style:Nt},paddingInlineEnd:{style:Nt},paddingBlock:{style:Nt},paddingBlockStart:{style:Nt},paddingBlockEnd:{style:Nt},m:{style:At},mt:{style:At},mr:{style:At},mb:{style:At},ml:{style:At},mx:{style:At},my:{style:At},margin:{style:At},marginTop:{style:At},marginRight:{style:At},marginBottom:{style:At},marginLeft:{style:At},marginX:{style:At},marginY:{style:At},marginInline:{style:At},marginInlineStart:{style:At},marginInlineEnd:{style:At},marginBlock:{style:At},marginBlockStart:{style:At},marginBlockEnd:{style:At},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ol},rowGap:{style:Pl},columnGap:{style:Tl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Er},maxWidth:{style:nf},minWidth:{transform:Er},height:{transform:Er},maxHeight:{transform:Er},minHeight:{transform:Er},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function S6(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function E6(e,t){return typeof e=="function"?e(t):e}function I6(){function e(r,n,o,i){const a={[r]:n,theme:o},s=i[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:u,style:d}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const f=wl(o,c)||{};return d?d(a):Sn(a,n,h=>{let m=Sl(f,u,h);return h===m&&typeof h=="string"&&(m=Sl(f,u,`${r}${h==="default"?"":go(h)}`,h)),l===!1?m:{[l]:m}})}function t(r){const{sx:n,theme:o={},nested:i}=r||{};if(!n)return null;const a=o.unstable_sxConfig??kl;function s(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const u=_O(o.breakpoints),d=Object.keys(u);let f=u;return Object.keys(c).forEach(g=>{const h=E6(c[g],o);if(h!=null)if(typeof h=="object")if(a[g])f=sa(f,e(g,h,o,a));else{const m=Sn({theme:o},h,p=>({[g]:p}));S6(m,h)?f[g]=t({sx:h,theme:o,nested:!0}):f=sa(f,m)}else f=sa(f,e(g,h,o,a))}),!i&&o.modularCssLayers?{"@layer sx":rb(o,ob(d,f))}:rb(o,ob(d,f))}return Array.isArray(n)?n.map(s):s(n)}return t}const oi=I6();oi.filterProps=["sx"];var A6=/^((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)-.*))$/,N6=Ih(function(e){return A6.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),O6=N6,T6=function(t){return t!=="theme"},sb=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?O6:T6},lb=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},P6=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Td(r,n,o),Dh(function(){return $h(r,n,o)}),null},k6=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=lb(t,r,n),l=s||sb(o),c=!l("as");return function(){var u=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var g=u.length,h=1;h<g;h++)d.push(u[h],f[h])}var m=Vh(function(p,b,y){var w=c&&p.as||o,S="",v=[],I=p;if(p.theme==null){I={};for(var N in p)I[N]=p[N];I.theme=A.useContext(Bh)}typeof p.className=="string"?S=Fh(b.registered,v,p.className):p.className!=null&&(S=p.className+" ");var O=nl(d.concat(v),b.registered,I);S+=b.key+"-"+O.name,a!==void 0&&(S+=" "+a);var T=c&&s===void 0?sb(w):l,P={};for(var M in p)c&&M==="as"||T(M)&&(P[M]=p[M]);return P.className=S,y&&(P.ref=y),A.createElement(A.Fragment,null,A.createElement(P6,{cache:b,serialized:O,isStringTag:typeof w=="string"}),A.createElement(w,P))});return m.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=o,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+a}}),m.withComponent=function(p,b){var y=e(p,le({},r,b,{shouldForwardProp:lb(m,b,!0)}));return y.apply(void 0,d)},m}},F6=["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"],of=k6.bind(null);F6.forEach(function(e){of[e]=of(e)});/**
|
|
286
|
+
`)),()=>{})}function nf(e){return la(e,"spacing",8,"spacing")}function ca(e,t){return typeof t=="string"||t==null?t:e(t)}function WO(e,t){return r=>e.reduce((n,o)=>(n[o]=ca(t,r),n),{})}function UO(e,t,r,n){if(!t.includes(r))return null;const o=GO(r),i=WO(o,n),a=e[r];return Sn(e,a,i)}function ab(e,t){const r=nf(e.theme);return Object.keys(e).map(n=>UO(e,t,n,r)).reduce(sa,{})}function At(e){return ab(e,Il)}At.propTypes=process.env.NODE_ENV!=="production"?Il.reduce((e,t)=>(e[t]=Zn,e),{}):{},At.filterProps=Il;function Nt(e){return ab(e,Al)}Nt.propTypes=process.env.NODE_ENV!=="production"?Al.reduce((e,t)=>(e[t]=Zn,e),{}):{},Nt.filterProps=Al,process.env.NODE_ENV!=="production"&&HO.reduce((e,t)=>(e[t]=Zn,e),{});function Nl(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?sa(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function jr(e){return typeof e!="number"?e:`${e}px solid`}function Rr(e,t){return Ft({prop:e,themeKey:"borders",transform:t})}const XO=Rr("border",jr),YO=Rr("borderTop",jr),JO=Rr("borderRight",jr),ZO=Rr("borderBottom",jr),qO=Rr("borderLeft",jr),QO=Rr("borderColor"),KO=Rr("borderTopColor"),e6=Rr("borderRightColor"),t6=Rr("borderBottomColor"),r6=Rr("borderLeftColor"),n6=Rr("outline",jr),o6=Rr("outlineColor"),Ol=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=la(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:ca(t,n)});return Sn(e,e.borderRadius,r)}return null};Ol.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Zn}:{},Ol.filterProps=["borderRadius"],Nl(XO,YO,JO,ZO,qO,QO,KO,e6,t6,r6,Ol,n6,o6);const Tl=e=>{if(e.gap!==void 0&&e.gap!==null){const t=la(e.theme,"spacing",8,"gap"),r=n=>({gap:ca(t,n)});return Sn(e,e.gap,r)}return null};Tl.propTypes=process.env.NODE_ENV!=="production"?{gap:Zn}:{},Tl.filterProps=["gap"];const Pl=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=la(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:ca(t,n)});return Sn(e,e.columnGap,r)}return null};Pl.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Zn}:{},Pl.filterProps=["columnGap"];const kl=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=la(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:ca(t,n)});return Sn(e,e.rowGap,r)}return null};kl.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Zn}:{},kl.filterProps=["rowGap"];const i6=Ft({prop:"gridColumn"}),a6=Ft({prop:"gridRow"}),s6=Ft({prop:"gridAutoFlow"}),l6=Ft({prop:"gridAutoColumns"}),c6=Ft({prop:"gridAutoRows"}),u6=Ft({prop:"gridTemplateColumns"}),d6=Ft({prop:"gridTemplateRows"}),f6=Ft({prop:"gridTemplateAreas"}),m6=Ft({prop:"gridArea"});Nl(Tl,Pl,kl,i6,a6,s6,l6,c6,u6,d6,f6,m6);function ni(e,t){return t==="grey"?t:e}const p6=Ft({prop:"color",themeKey:"palette",transform:ni}),g6=Ft({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ni}),h6=Ft({prop:"backgroundColor",themeKey:"palette",transform:ni});Nl(p6,g6,h6);function Er(e){return e<=1&&e!==0?`${e*100}%`:e}const v6=Ft({prop:"width",transform:Er}),of=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||wl[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Er(r)}};return Sn(e,e.maxWidth,t)}return null};of.filterProps=["maxWidth"];const b6=Ft({prop:"minWidth",transform:Er}),y6=Ft({prop:"height",transform:Er}),C6=Ft({prop:"maxHeight",transform:Er}),x6=Ft({prop:"minHeight",transform:Er});Ft({prop:"size",cssProperty:"width",transform:Er}),Ft({prop:"size",cssProperty:"height",transform:Er});const w6=Ft({prop:"boxSizing"});Nl(v6,of,b6,y6,C6,x6,w6);const Fl={border:{themeKey:"borders",transform:jr},borderTop:{themeKey:"borders",transform:jr},borderRight:{themeKey:"borders",transform:jr},borderBottom:{themeKey:"borders",transform:jr},borderLeft:{themeKey:"borders",transform:jr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:jr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ol},color:{themeKey:"palette",transform:ni},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ni},backgroundColor:{themeKey:"palette",transform:ni},p:{style:Nt},pt:{style:Nt},pr:{style:Nt},pb:{style:Nt},pl:{style:Nt},px:{style:Nt},py:{style:Nt},padding:{style:Nt},paddingTop:{style:Nt},paddingRight:{style:Nt},paddingBottom:{style:Nt},paddingLeft:{style:Nt},paddingX:{style:Nt},paddingY:{style:Nt},paddingInline:{style:Nt},paddingInlineStart:{style:Nt},paddingInlineEnd:{style:Nt},paddingBlock:{style:Nt},paddingBlockStart:{style:Nt},paddingBlockEnd:{style:Nt},m:{style:At},mt:{style:At},mr:{style:At},mb:{style:At},ml:{style:At},mx:{style:At},my:{style:At},margin:{style:At},marginTop:{style:At},marginRight:{style:At},marginBottom:{style:At},marginLeft:{style:At},marginX:{style:At},marginY:{style:At},marginInline:{style:At},marginInlineStart:{style:At},marginInlineEnd:{style:At},marginBlock:{style:At},marginBlockStart:{style:At},marginBlockEnd:{style:At},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Tl},rowGap:{style:kl},columnGap:{style:Pl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Er},maxWidth:{style:of},minWidth:{transform:Er},height:{transform:Er},maxHeight:{transform:Er},minHeight:{transform:Er},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function S6(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function E6(e,t){return typeof e=="function"?e(t):e}function I6(){function e(r,n,o,i){const a={[r]:n,theme:o},s=i[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:u,style:d}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const f=Sl(o,c)||{};return d?d(a):Sn(a,n,h=>{let m=El(f,u,h);return h===m&&typeof h=="string"&&(m=El(f,u,`${r}${h==="default"?"":go(h)}`,h)),l===!1?m:{[l]:m}})}function t(r){const{sx:n,theme:o={},nested:i}=r||{};if(!n)return null;const a=o.unstable_sxConfig??Fl;function s(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const u=_O(o.breakpoints),d=Object.keys(u);let f=u;return Object.keys(c).forEach(g=>{const h=E6(c[g],o);if(h!=null)if(typeof h=="object")if(a[g])f=sa(f,e(g,h,o,a));else{const m=Sn({theme:o},h,p=>({[g]:p}));S6(m,h)?f[g]=t({sx:h,theme:o,nested:!0}):f=sa(f,m)}else f=sa(f,e(g,h,o,a))}),!i&&o.modularCssLayers?{"@layer sx":rb(o,ob(d,f))}:rb(o,ob(d,f))}return Array.isArray(n)?n.map(s):s(n)}return t}const oi=I6();oi.filterProps=["sx"];var A6=/^((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)-.*))$/,N6=Ih(function(e){return A6.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),O6=N6,T6=function(t){return t!=="theme"},sb=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?O6:T6},lb=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},P6=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Pd(r,n,o),Dh(function(){return $h(r,n,o)}),null},k6=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=lb(t,r,n),l=s||sb(o),c=!l("as");return function(){var u=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var g=u.length,h=1;h<g;h++)d.push(u[h],f[h])}var m=Vh(function(p,b,y){var w=c&&p.as||o,S="",v=[],I=p;if(p.theme==null){I={};for(var N in p)I[N]=p[N];I.theme=A.useContext(Bh)}typeof p.className=="string"?S=Fh(b.registered,v,p.className):p.className!=null&&(S=p.className+" ");var O=ol(d.concat(v),b.registered,I);S+=b.key+"-"+O.name,a!==void 0&&(S+=" "+a);var T=c&&s===void 0?sb(w):l,P={};for(var M in p)c&&M==="as"||T(M)&&(P[M]=p[M]);return P.className=S,y&&(P.ref=y),A.createElement(A.Fragment,null,A.createElement(P6,{cache:b,serialized:O,isStringTag:typeof w=="string"}),A.createElement(w,P))});return m.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=o,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+a}}),m.withComponent=function(p,b){var y=e(p,le({},r,b,{shouldForwardProp:lb(m,b,!0)}));return y.apply(void 0,d)},m}},F6=["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"],af=k6.bind(null);F6.forEach(function(e){af[e]=af(e)});/**
|
|
287
287
|
* @mui/styled-engine v7.3.1
|
|
288
288
|
*
|
|
289
289
|
* @license MIT
|
|
290
290
|
* This source code is licensed under the MIT license found in the
|
|
291
291
|
* LICENSE file in the root directory of this source tree.
|
|
292
|
-
*/function $6(e,t){const r=
|
|
293
|
-
`)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}function M6(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const cb=[];function ho(e){return cb[0]=e,
|
|
292
|
+
*/function $6(e,t){const r=af(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
293
|
+
`)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}function M6(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const cb=[];function ho(e){return cb[0]=e,ol(cb)}const j6=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function R6(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,i=j6(t),a=Object.keys(i);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function c(f,g){const h=a.indexOf(g);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(h!==-1&&typeof t[a[h]]=="number"?t[a[h]]:g)-n/100}${r})`}function u(f){return a.indexOf(f)+1<a.length?c(f,a[a.indexOf(f)+1]):s(f)}function d(f){const g=a.indexOf(f);return g===0?s(a[1]):g===a.length-1?l(a[g]):c(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:s,down:l,between:c,only:u,not:d,unit:r,...o}}const L6={borderRadius:4};function ub(e=8,t=nf({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function D6(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function db(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={},...a}=e,s=R6(r),l=ub(o);let c=Sr({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...L6,...i}},a);return c=LO(c),c.applyStyles=D6,c=t.reduce((u,d)=>Sr(u,d),c),c.unstable_sxConfig={...Fl,...a?.unstable_sxConfig},c.unstable_sx=function(d){return oi({sx:d,theme:this})},c}const _6={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function sf(e,t,r="Mui"){const n=_6[t];return n?`${r}-${n}`:`${wO.generate(e)}-${t}`}function V6(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=sf(e,o,r)}),n}function fb(e,t=""){return e.displayName||e.name||t}function mb(e,t,r){const n=fb(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function B6(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return fb(e,"Component");if(typeof e=="object")switch(e.$$typeof){case xl.ForwardRef:return mb(e,e.render,"ForwardRef");case xl.Memo:return mb(e,e.type,"memo");default:return}}}function pb(e){const{variants:t,...r}=e,n={variants:t,style:ho(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=ho(o.style))}),n}const z6=db();function lf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function vo(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function G6(e){return e?(t,r)=>r[e]:null}function H6(e,t,r){e.theme=Y6(e.theme)?r:e.theme[t]||e.theme}function $l(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>$l(e,o,r));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=r?vo(n.style,r):n.style;else{const{variants:i,...a}=n;o=r?vo(ho(a),r):a}return gb(e,n.variants,[o],r)}return n?.isProcessed?r?vo(ho(n.style),r):n.style:r?vo(ho(n),r):n}function gb(e,t,r=[],n=void 0){let o;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&e.ownerState?.[s]!==a.props[s])continue e;typeof a.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?vo(ho(a.style(o)),n):a.style(o))):r.push(n?vo(ho(a.style),n):a.style)}return r}function W6(e={}){const{themeId:t,defaultTheme:r=z6,rootShouldForwardProp:n=lf,slotShouldForwardProp:o=lf}=e;function i(s){H6(s,t,r)}return(s,l={})=>{M6(s,I=>I.filter(N=>N!==oi));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:g=G6(hb(u)),...h}=l,m=c&&c.startsWith("Mui")||u?"components":"custom",p=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,b=f||!1;let y=lf;u==="Root"||u==="root"?y=n:u?y=o:J6(s)&&(y=void 0);const w=$6(s,{shouldForwardProp:y,label:X6(c,u),...h}),S=I=>{if(I.__emotion_real===I)return I;if(typeof I=="function")return function(O){return $l(O,I,O.theme.modularCssLayers?m:void 0)};if(wn(I)){const N=pb(I);return function(T){return N.variants?$l(T,N,T.theme.modularCssLayers?m:void 0):T.theme.modularCssLayers?vo(N.style,m):N.style}}return I},v=(...I)=>{const N=[],O=I.map(S),T=[];if(N.push(i),c&&g&&T.push(function($){const F=$.theme.components?.[c]?.styleOverrides;if(!F)return null;const j={};for(const G in F)j[G]=$l($,F[G],$.theme.modularCssLayers?"theme":void 0);return g($,j)}),c&&!p&&T.push(function($){const F=$.theme?.components?.[c]?.variants;return F?gb($,F,[],$.theme.modularCssLayers?"theme":void 0):null}),b||T.push(oi),Array.isArray(O[0])){const x=O.shift(),$=new Array(N.length).fill(""),k=new Array(T.length).fill("");let F;F=[...$,...x,...k],F.raw=[...$,...x.raw,...k],N.unshift(F)}const P=[...N,...O,...T],M=w(...P);return s.muiName&&(M.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(M.displayName=U6(c,u,s)),M};return w.withConfig&&(v.withConfig=w.withConfig),v}}function U6(e,t,r){return e?`${e}${go(t||"")}`:`Styled(${B6(r)})`}function X6(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${hb(t||"Root")}`),r}function Y6(e){for(const t in e)return!1;return!0}function J6(e){return typeof e=="string"&&e.charCodeAt(0)>96}function hb(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function cf(e,t,r=!1){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")n[i]={...e[i],...n[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],s=t[i];if(!s)n[i]=a||{};else if(!a)n[i]=s;else{n[i]={...s};for(const l in a)if(Object.prototype.hasOwnProperty.call(a,l)){const c=l;n[i][c]=cf(a[c],s[c],r)}}}else i==="className"&&r&&t.className?n.className=cn(e?.className,t?.className):i==="style"&&r&&t.style?n.style={...e?.style,...t?.style}:n[i]===void 0&&(n[i]=e[i])}return n}function Z6(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function uf(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),Z6(e,t,r)}function q6(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function qn(e){if(e.type)return e;if(e.charAt(0)==="#")return qn(q6(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
294
294
|
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Jn(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
|
|
295
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Jn(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const Q6=e=>{const t=qn(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},ua=(e,t)=>{try{return Q6(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function
|
|
295
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Jn(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const Q6=e=>{const t=qn(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},ua=(e,t)=>{try{return Q6(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Ml(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function vb(e){e=qn(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(c,u=(c+r/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Ml({type:s,values:l})}function df(e){e=qn(e);let t=e.type==="hsl"||e.type==="hsla"?qn(vb(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function bb(e,t){const r=df(e),n=df(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function yb(e,t){return e=qn(e),t=uf(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ml(e)}function bo(e,t,r){try{return yb(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function jl(e,t){if(e=qn(e),t=uf(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Ml(e)}function nt(e,t,r){try{return jl(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Rl(e,t){if(e=qn(e),t=uf(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Ml(e)}function ot(e,t,r){try{return Rl(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function K6(e,t=.15){return df(e)>.5?jl(e,t):Rl(e,t)}function Ll(e,t,r){try{return K6(e,t)}catch{return e}}const e9=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ge.node,Ge.object);function t9(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?cf(o.defaultProps,n,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?cf(o,n,t.components.mergeClassNameAndStyle):n}function r9({props:e,name:t}){const r=A.useContext(e9);return t9({props:e,name:t,theme:{components:r}})}const Cb={theme:void 0};function n9(e){let t,r;return function(o){let i=t;return(i===void 0||o.theme!==r)&&(Cb.theme=o.theme,i=pb(e(Cb)),t=i,r=o.theme),i}}function o9(e=""){function t(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const xb=(e,t,r,n=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=r:o&&typeof o=="object"&&(o[i]=r):o&&typeof o=="object"&&(o[i]||(o[i]=n.includes(i)?[]:{}),o=o[i])})},i9=(e,t,r)=>{function n(o,i=[],a=[]){Object.entries(o).forEach(([s,l])=>{(!r||r&&!r([...i,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...i,s],Array.isArray(l)?[...a,s]:a):t([...i,s],l,a))})}n(e)},a9=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function ff(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},a={};return i9(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(s,l))){const u=`--${r?`${r}-`:""}${s.join("-")}`,d=a9(s,l);Object.assign(o,{[u]:d}),xb(i,s,`var(${u})`,c),xb(a,s,`var(${u}, ${d})`,c)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function s9(e,t={}){const{getSelector:r=b,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...c}=e,{vars:u,css:d,varsWithDefaults:f}=ff(c,t);let g=f;const h={},{[l]:m,...p}=a;if(Object.entries(p||{}).forEach(([S,v])=>{const{vars:I,css:N,varsWithDefaults:O}=ff(v,t);g=Sr(g,O),h[S]={css:N,vars:I}}),m){const{css:S,vars:v,varsWithDefaults:I}=ff(m,t);g=Sr(g,I),h[l]={css:S,vars:v}}function b(S,v){let I=o;if(o==="class"&&(I=".%s"),o==="data"&&(I="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(I=`[${o}="%s"]`),S){if(I==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${a[S]?.palette?.mode||S})`]:{":root":v}};if(I)return e.defaultColorScheme===S?`:root, ${I.replace("%s",String(S))}`:I.replace("%s",String(S))}return":root"}return{vars:g,generateThemeVars:()=>{let S={...u};return Object.entries(h).forEach(([,{vars:v}])=>{S=Sr(S,v)}),S},generateStyleSheets:()=>{const S=[],v=e.defaultColorScheme||"light";function I(T,P){Object.keys(P).length&&S.push(typeof T=="string"?{[T]:{...P}}:T)}I(r(void 0,{...d}),d);const{[v]:N,...O}=h;if(N){const{css:T}=N,P=a[v]?.palette?.mode,M=!n&&P?{colorScheme:P,...T}:{...T};I(r(v,{...M}),M)}return Object.entries(O).forEach(([T,{css:P}])=>{const M=a[T]?.palette?.mode,x=!n&&M?{colorScheme:M,...P}:{...P};I(r(T,{...x}),x)}),i&&S.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),S}}}function l9(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const da={black:"#000",white:"#fff"},c9={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ii={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ai={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},fa={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},si={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},li={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ci={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function wb(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:da.white,default:da.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Sb=wb();function Eb(){return{text:{primary:da.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:da.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const mf=Eb();function Ib(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Rl(e.main,o):t==="dark"&&(e.dark=jl(e.main,i)))}function Ab(e,t,r,n,o){const i=o.light||o,a=o.dark||o*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function u9(e="light"){return e==="dark"?{main:si[200],light:si[50],dark:si[400]}:{main:si[700],light:si[400],dark:si[800]}}function d9(e="light"){return e==="dark"?{main:ii[200],light:ii[50],dark:ii[400]}:{main:ii[500],light:ii[300],dark:ii[700]}}function f9(e="light"){return e==="dark"?{main:ai[500],light:ai[300],dark:ai[700]}:{main:ai[700],light:ai[400],dark:ai[800]}}function m9(e="light"){return e==="dark"?{main:li[400],light:li[300],dark:li[700]}:{main:li[700],light:li[500],dark:li[900]}}function p9(e="light"){return e==="dark"?{main:ci[400],light:ci[300],dark:ci[700]}:{main:ci[800],light:ci[500],dark:ci[900]}}function g9(e="light"){return e==="dark"?{main:fa[400],light:fa[300],dark:fa[700]}:{main:"#ed6c02",light:fa[500],dark:fa[900]}}function h9(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function pf(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:o,...i}=e,a=e.primary||u9(t),s=e.secondary||d9(t),l=e.error||f9(t),c=e.info||m9(t),u=e.success||p9(t),d=e.warning||g9(t);function f(p){if(o)return h9(p);const b=bb(p,mf.text.primary)>=r?mf.text.primary:Sb.text.primary;if(process.env.NODE_ENV!=="production"){const y=bb(p,b);y<3&&console.error([`MUI: The contrast ratio of ${y}:1 for ${b} on ${p}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
296
296
|
`))}return b}const g=({color:p,name:b,mainShade:y=500,lightShade:w=300,darkShade:S=700})=>{if(p={...p},!p.main&&p[y]&&(p.main=p[y]),!p.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
|
|
297
297
|
The color object needs to have a \`main\` property or a \`${y}\` property.`:Jn(11,b?` (${b})`:"",y));if(typeof p.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
|
|
298
298
|
\`color.main\` should be a string, but \`${JSON.stringify(p.main)}\` was provided instead.
|
|
@@ -315,11 +315,11 @@ const theme = ${JSON.stringify(t,null,2)};
|
|
|
315
315
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
316
316
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
317
317
|
|
|
318
|
-
export default theme;`}function kb(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const k9=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function F9(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:yb(t,k9(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${kb(r)})`:
|
|
319
|
-
`))}p[y]={}}}};Object.keys(g.components).forEach(p=>{const b=g.components[p].styleOverrides;b&&p.startsWith("Mui")&&m(b,p)})}return g.unstable_sxConfig={...
|
|
320
|
-
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function V9(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const un=e=>{try{return e()}catch{}},B9=(e="mui")=>o9(e);function gf(e,t,r,n,o){if(!r)return;r=r===!0?{}:r;const i=o==="dark"?"dark":"light";if(!n){t[o]=j9({...r,palette:{mode:i,...r?.palette},colorSpace:e});return}const{palette:a,...s}=pf({...n,palette:{mode:i,...r?.palette},colorSpace:e});return t[o]={...r,palette:a,opacity:{...Fb(i),...r?.opacity},overlays:r?.overlays||$b(i)},s}function z9(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=R9,colorSchemeSelector:l=r.light&&r.dark?"media":void 0,rootSelector:c=":root",...u}=e,d=Object.keys(r)[0],f=n||(r.light&&d!=="light"?"light":d),g=B9(i),{[f]:h,light:m,dark:p,...b}=r,y={...b};let w=h;if((f==="dark"&&!("dark"in r)||f==="light"&&!("light"in r))&&(w=!0),!w)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:Jn(21,f));let S;a&&(S="oklch");const v=gf(S,y,w,u,f);m&&!y.light&&gf(S,y,m,void 0,"light"),p&&!y.dark&&gf(S,y,p,void 0,"dark");let I={defaultColorScheme:f,...v,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:c,getCssVar:g,colorSchemes:y,font:{...v9(v.typography),...v.font},spacing:V9(u.spacing)};Object.keys(I.colorSchemes).forEach(M=>{const x=I.colorSchemes[M].palette,$=F=>{const j=F.split("-"),z=j[1],W=j[2];return g(F,x[z][W])};x.mode==="light"&&(ee(x.common,"background","#fff"),ee(x.common,"onBackground","#000")),x.mode==="dark"&&(ee(x.common,"background","#000"),ee(x.common,"onBackground","#fff"));function k(F,j,z){if(S){let W;return F===bo&&(W=`transparent ${((1-z)*100).toFixed(0)}%`),F===nt&&(W=`#000 ${(z*100).toFixed(0)}%`),F===ot&&(W=`#fff ${(z*100).toFixed(0)}%`),`color-mix(in ${S}, ${j}, ${W})`}return F(j,z)}if(_9(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){ee(x.Alert,"errorColor",k(nt,x.error.light,.6)),ee(x.Alert,"infoColor",k(nt,x.info.light,.6)),ee(x.Alert,"successColor",k(nt,x.success.light,.6)),ee(x.Alert,"warningColor",k(nt,x.warning.light,.6)),ee(x.Alert,"errorFilledBg",$("palette-error-main")),ee(x.Alert,"infoFilledBg",$("palette-info-main")),ee(x.Alert,"successFilledBg",$("palette-success-main")),ee(x.Alert,"warningFilledBg",$("palette-warning-main")),ee(x.Alert,"errorFilledColor",un(()=>x.getContrastText(x.error.main))),ee(x.Alert,"infoFilledColor",un(()=>x.getContrastText(x.info.main))),ee(x.Alert,"successFilledColor",un(()=>x.getContrastText(x.success.main))),ee(x.Alert,"warningFilledColor",un(()=>x.getContrastText(x.warning.main))),ee(x.Alert,"errorStandardBg",k(ot,x.error.light,.9)),ee(x.Alert,"infoStandardBg",k(ot,x.info.light,.9)),ee(x.Alert,"successStandardBg",k(ot,x.success.light,.9)),ee(x.Alert,"warningStandardBg",k(ot,x.warning.light,.9)),ee(x.Alert,"errorIconColor",$("palette-error-main")),ee(x.Alert,"infoIconColor",$("palette-info-main")),ee(x.Alert,"successIconColor",$("palette-success-main")),ee(x.Alert,"warningIconColor",$("palette-warning-main")),ee(x.AppBar,"defaultBg",$("palette-grey-100")),ee(x.Avatar,"defaultBg",$("palette-grey-400")),ee(x.Button,"inheritContainedBg",$("palette-grey-300")),ee(x.Button,"inheritContainedHoverBg",$("palette-grey-A100")),ee(x.Chip,"defaultBorder",$("palette-grey-400")),ee(x.Chip,"defaultAvatarColor",$("palette-grey-700")),ee(x.Chip,"defaultIconColor",$("palette-grey-700")),ee(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ee(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ee(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ee(x.LinearProgress,"primaryBg",k(ot,x.primary.main,.62)),ee(x.LinearProgress,"secondaryBg",k(ot,x.secondary.main,.62)),ee(x.LinearProgress,"errorBg",k(ot,x.error.main,.62)),ee(x.LinearProgress,"infoBg",k(ot,x.info.main,.62)),ee(x.LinearProgress,"successBg",k(ot,x.success.main,.62)),ee(x.LinearProgress,"warningBg",k(ot,x.warning.main,.62)),ee(x.Skeleton,"bg",S?k(bo,x.text.primary,.11):`rgba(${$("palette-text-primaryChannel")} / 0.11)`),ee(x.Slider,"primaryTrack",k(ot,x.primary.main,.62)),ee(x.Slider,"secondaryTrack",k(ot,x.secondary.main,.62)),ee(x.Slider,"errorTrack",k(ot,x.error.main,.62)),ee(x.Slider,"infoTrack",k(ot,x.info.main,.62)),ee(x.Slider,"successTrack",k(ot,x.success.main,.62)),ee(x.Slider,"warningTrack",k(ot,x.warning.main,.62));const F=S?k(nt,x.background.default,.6825):Rl(x.background.default,.8);ee(x.SnackbarContent,"bg",F),ee(x.SnackbarContent,"color",un(()=>S?ff.text.primary:x.getContrastText(F))),ee(x.SpeedDialAction,"fabHoverBg",Rl(x.background.paper,.15)),ee(x.StepConnector,"border",$("palette-grey-400")),ee(x.StepContent,"border",$("palette-grey-400")),ee(x.Switch,"defaultColor",$("palette-common-white")),ee(x.Switch,"defaultDisabledColor",$("palette-grey-100")),ee(x.Switch,"primaryDisabledColor",k(ot,x.primary.main,.62)),ee(x.Switch,"secondaryDisabledColor",k(ot,x.secondary.main,.62)),ee(x.Switch,"errorDisabledColor",k(ot,x.error.main,.62)),ee(x.Switch,"infoDisabledColor",k(ot,x.info.main,.62)),ee(x.Switch,"successDisabledColor",k(ot,x.success.main,.62)),ee(x.Switch,"warningDisabledColor",k(ot,x.warning.main,.62)),ee(x.TableCell,"border",k(ot,k(bo,x.divider,1),.88)),ee(x.Tooltip,"bg",k(bo,x.grey[700],.92))}if(x.mode==="dark"){ee(x.Alert,"errorColor",k(ot,x.error.light,.6)),ee(x.Alert,"infoColor",k(ot,x.info.light,.6)),ee(x.Alert,"successColor",k(ot,x.success.light,.6)),ee(x.Alert,"warningColor",k(ot,x.warning.light,.6)),ee(x.Alert,"errorFilledBg",$("palette-error-dark")),ee(x.Alert,"infoFilledBg",$("palette-info-dark")),ee(x.Alert,"successFilledBg",$("palette-success-dark")),ee(x.Alert,"warningFilledBg",$("palette-warning-dark")),ee(x.Alert,"errorFilledColor",un(()=>x.getContrastText(x.error.dark))),ee(x.Alert,"infoFilledColor",un(()=>x.getContrastText(x.info.dark))),ee(x.Alert,"successFilledColor",un(()=>x.getContrastText(x.success.dark))),ee(x.Alert,"warningFilledColor",un(()=>x.getContrastText(x.warning.dark))),ee(x.Alert,"errorStandardBg",k(nt,x.error.light,.9)),ee(x.Alert,"infoStandardBg",k(nt,x.info.light,.9)),ee(x.Alert,"successStandardBg",k(nt,x.success.light,.9)),ee(x.Alert,"warningStandardBg",k(nt,x.warning.light,.9)),ee(x.Alert,"errorIconColor",$("palette-error-main")),ee(x.Alert,"infoIconColor",$("palette-info-main")),ee(x.Alert,"successIconColor",$("palette-success-main")),ee(x.Alert,"warningIconColor",$("palette-warning-main")),ee(x.AppBar,"defaultBg",$("palette-grey-900")),ee(x.AppBar,"darkBg",$("palette-background-paper")),ee(x.AppBar,"darkColor",$("palette-text-primary")),ee(x.Avatar,"defaultBg",$("palette-grey-600")),ee(x.Button,"inheritContainedBg",$("palette-grey-800")),ee(x.Button,"inheritContainedHoverBg",$("palette-grey-700")),ee(x.Chip,"defaultBorder",$("palette-grey-700")),ee(x.Chip,"defaultAvatarColor",$("palette-grey-300")),ee(x.Chip,"defaultIconColor",$("palette-grey-300")),ee(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ee(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ee(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ee(x.LinearProgress,"primaryBg",k(nt,x.primary.main,.5)),ee(x.LinearProgress,"secondaryBg",k(nt,x.secondary.main,.5)),ee(x.LinearProgress,"errorBg",k(nt,x.error.main,.5)),ee(x.LinearProgress,"infoBg",k(nt,x.info.main,.5)),ee(x.LinearProgress,"successBg",k(nt,x.success.main,.5)),ee(x.LinearProgress,"warningBg",k(nt,x.warning.main,.5)),ee(x.Skeleton,"bg",S?k(bo,x.text.primary,.13):`rgba(${$("palette-text-primaryChannel")} / 0.13)`),ee(x.Slider,"primaryTrack",k(nt,x.primary.main,.5)),ee(x.Slider,"secondaryTrack",k(nt,x.secondary.main,.5)),ee(x.Slider,"errorTrack",k(nt,x.error.main,.5)),ee(x.Slider,"infoTrack",k(nt,x.info.main,.5)),ee(x.Slider,"successTrack",k(nt,x.success.main,.5)),ee(x.Slider,"warningTrack",k(nt,x.warning.main,.5));const F=S?k(ot,x.background.default,.985):Rl(x.background.default,.98);ee(x.SnackbarContent,"bg",F),ee(x.SnackbarContent,"color",un(()=>S?Sb.text.primary:x.getContrastText(F))),ee(x.SpeedDialAction,"fabHoverBg",Rl(x.background.paper,.15)),ee(x.StepConnector,"border",$("palette-grey-600")),ee(x.StepContent,"border",$("palette-grey-600")),ee(x.Switch,"defaultColor",$("palette-grey-300")),ee(x.Switch,"defaultDisabledColor",$("palette-grey-600")),ee(x.Switch,"primaryDisabledColor",k(nt,x.primary.main,.55)),ee(x.Switch,"secondaryDisabledColor",k(nt,x.secondary.main,.55)),ee(x.Switch,"errorDisabledColor",k(nt,x.error.main,.55)),ee(x.Switch,"infoDisabledColor",k(nt,x.info.main,.55)),ee(x.Switch,"successDisabledColor",k(nt,x.success.main,.55)),ee(x.Switch,"warningDisabledColor",k(nt,x.warning.main,.55)),ee(x.TableCell,"border",k(nt,k(bo,x.divider,1),.68)),ee(x.Tooltip,"bg",k(bo,x.grey[700],.92))}En(x.background,"default"),En(x.background,"paper"),En(x.common,"background"),En(x.common,"onBackground"),En(x,"divider"),Object.keys(x).forEach(F=>{const j=x[F];F!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&ee(x[F],"mainChannel",ua(ma(j.main))),j.light&&ee(x[F],"lightChannel",ua(ma(j.light))),j.dark&&ee(x[F],"darkChannel",ua(ma(j.dark))),j.contrastText&&ee(x[F],"contrastTextChannel",ua(ma(j.contrastText))),F==="text"&&(En(x[F],"primary"),En(x[F],"secondary")),F==="action"&&(j.active&&En(x[F],"active"),j.selected&&En(x[F],"selected")))})}),I=t.reduce((M,x)=>Sr(M,x),I);const N={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:D9(I),enableContrastVars:a},{vars:O,generateThemeVars:T,generateStyleSheets:P}=s9(I,N);return I.vars=O,Object.entries(I.colorSchemes[I.defaultColorScheme]).forEach(([M,x])=>{I[M]=x}),I.generateThemeVars=T,I.generateStyleSheets=P,I.generateSpacing=function(){return ub(u.spacing,rf(this))},I.getColorSchemeSelector=l9(l),I.spacing=I.generateSpacing(),I.shouldSkipGeneratingVar=s,I.unstable_sxConfig={...kl,...u?.unstable_sxConfig},I.unstable_sx=function(x){return oi({sx:x,theme:this})},I.toRuntimeSource=Pb,I}function Mb(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:mf({...r===!0?{}:r.palette,mode:t})})}function G9(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:i=r?.mode,...a}=e,s=i||"light",l=o?.[s],c={...o,...r?{[s]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return pf(e,...t);let u=r;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const d=pf({...e,palette:u},...t);return d.defaultColorScheme=s,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},Mb(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},Mb(d,"light",c.light)),d}return!r&&!("light"in c)&&s==="light"&&(c.light=!0),z9({...a,colorSchemes:c,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const H9=G9(),W9="$$material";function U9(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const X9=W6({themeId:W9,defaultTheme:H9,rootShouldForwardProp:e=>U9(e)&&e!=="classes"}),Y9=n9;process.env.NODE_ENV!=="production"&&(Ge.node,Ge.object.isRequired);function J9(e){return r9(e)}function Z9(e){return af("MuiSvgIcon",e)}V6("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const q9=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${go(t)}`,`fontSize${go(r)}`]};return kO(o,Z9,n)},Q9=X9("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${go(r.color)}`],t[`fontSize${go(r.fontSize)}`]]}})(Y9(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Ll=A.forwardRef(function(t,r){const n=J9({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...g}=n,h=A.isValidElement(o)&&o.type==="svg",m={...n,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:h},p={};u||(p.viewBox=f);const b=q9(m);return C.jsxs(Q9,{as:s,className:cn(b.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...p,...g,...h&&o.props,ownerState:m,children:[h?o.props.children:o,d?C.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(Ll.propTypes={children:Ge.node,classes:Ge.object,className:Ge.string,color:Ge.oneOfType([Ge.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),Ge.string]),component:Ge.elementType,fontSize:Ge.oneOfType([Ge.oneOf(["inherit","large","medium","small"]),Ge.string]),htmlColor:Ge.string,inheritViewBox:Ge.bool,shapeRendering:Ge.string,sx:Ge.oneOfType([Ge.arrayOf(Ge.oneOfType([Ge.func,Ge.object,Ge.bool])),Ge.func,Ge.object]),titleAccess:Ge.string,viewBox:Ge.string}),Ll.muiName="SvgIcon";function hf(e,t){function r(n,o){return C.jsx(Ll,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Ll.muiName,A.memo(A.forwardRef(r))}const K9=hf(C.jsx("path",{d:"M14.71 6.71a.996.996 0 0 0-1.41 0L8.71 11.3c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L10.83 12l3.88-3.88c.39-.39.38-1.03 0-1.41"}),"ChevronLeftRounded"),eT=hf(C.jsx("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"CloseRounded"),tT=hf(C.jsx("path",{d:"M14.59 2.59c-.38-.38-.89-.59-1.42-.59H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8.83c0-.53-.21-1.04-.59-1.41zM15 18H9c-.55 0-1-.45-1-1s.45-1 1-1h6c.55 0 1 .45 1 1s-.45 1-1 1m0-4H9c-.55 0-1-.45-1-1s.45-1 1-1h6c.55 0 1 .45 1 1s-.45 1-1 1m-2-6V3.5L18.5 9H14c-.55 0-1-.45-1-1"}),"DescriptionRounded"),jb=E.forwardRef(({id:e,label:t,placeholder:r="Select...",value:n,selectedValues:o,onChange:i,onColorChange:a,selectOptions:s,loading:l=!1,multiSelect:c=!1,disabled:u=!1,isClearable:d=!0,required:f=!1,message:g,messageType:h="default",originalCase:m=!1,wrapperClassName:p,selectClassName:b,labelClassName:y,helpText:w,size:S="medium",filterOption:v,selectProps:I,components:N,tags:O,tooltip:T},P)=>{const M=()=>{switch(S){case"small":return{height:"28px",minHeight:"28px",fontSize:"12px",padding:"2px 8px"};case"large":return{height:"40px",minHeight:"40px",fontSize:"16px",padding:"8px 12px"};default:return{height:"32px",minHeight:"32px",fontSize:"14px",padding:"4px 10px"}}},x=L=>g&&h==="error"?"rgb(253 164 155)":g&&h==="success"?"rgb(34 197 94)":g&&h==="info"?"rgb(59 130 246)":L.isFocused?"rgb(0 108 207)":"rgb(229 229 229)",$=M(),k={control:(L,G)=>({...L,borderColor:x(G),backgroundColor:G.isDisabled?"rgb(245 245 245)":"rgb(255 255 255)",borderRadius:"6px",...$,opacity:G.isDisabled?.6:1,cursor:G.isDisabled?"not-allowed":"default",boxShadow:G.isFocused?"0 0 0 2px rgba(59, 130, 246, 0.1)":"none","&:hover":{borderColor:x(G)},transition:"all 0.2s ease-in-out"}),valueContainer:L=>({...L,fontSize:$.fontSize,padding:0,height:"auto",minHeight:"20px"}),input:L=>({...L,margin:"0",padding:"0",color:"inherit"}),indicatorsContainer:L=>({...L,fontSize:$.fontSize,padding:0,height:"20px"}),option:(L,G)=>({...L,fontFamily:"Inter",fontWeight:500,fontSize:$.fontSize,lineHeight:"1.2",borderBottom:"1px solid rgb(229 229 229)",backgroundColor:G.isSelected?"rgb(59 130 246)":G.isFocused?"rgb(245 245 245)":"rgb(255 255 255)",color:G.isSelected?"white":G.isDisabled?"rgb(163 163 163)":"inherit",cursor:G.isDisabled?"not-allowed":"pointer",opacity:G.isDisabled?.6:1,"&:hover":{backgroundColor:G.isSelected?"rgb(59 130 246)":G.isDisabled?"rgb(255 255 255)":"rgb(245 245 245)"}}),singleValue:(L,G)=>({...L,fontFamily:"Inter",fontWeight:500,fontSize:$.fontSize,lineHeight:"1.25rem",display:"block",color:G.isDisabled?"rgb(163 163 163)":"inherit"}),placeholder:(L,G)=>({...L,fontFamily:"Inter",fontSize:$.fontSize,fontWeight:500,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",color:G.isDisabled?"rgb(163 163 163)":"rgb(115 115 115)"}),multiValue:L=>({...L,backgroundColor:"rgb(230 241 252)",border:"1px solid rgb(198 225 249)",borderRadius:"4px",fontFamily:"Inter"}),multiValueLabel:L=>({...L,color:"rgb(0 108 207)",fontSize:"12px"}),multiValueRemove:L=>({...L,color:"rgb(0 108 207)",":hover":{backgroundColor:"rgb(230 241 252)",color:"rgb(220 38 38)"}}),menu:L=>({...L,backgroundColor:"rgb(255 255 255)",border:"1px solid rgb(229 229 229)",borderRadius:"6px",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"}),loadingIndicator:L=>({...L,color:"rgb(99 102 241)"}),noOptionsMessage:L=>({...L,color:"rgb(107 114 128)",fontSize:$.fontSize})},F=()=>h==="error"?"text-red-500 dark:text-red-400":h==="success"?"text-green-500 dark:text-green-400":h==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",j=()=>{switch(S){case"small":return"extra-small";case"large":return"medium";default:return"small"}},z=()=>C.jsx("div",{className:"flex items-center",children:C.jsx(K9,{className:"-rotate-90 transition-transform duration-200",sx:{fontSize:S==="small"?"14px":S==="large"?"18px":"16px"}})}),W=L=>C.jsx("div",{className:"absolute top-0 left-0 h-full flex items-center dark:text-neutral-100",children:L.data.label}),V=!!o?.length,D=d&&(V||!!n),B=(L,G)=>{i(L,G),a?.(L)};return C.jsxs("div",{className:J("flex flex-col w-full",p),children:[t&&C.jsx("label",{htmlFor:e,className:J("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",!m&&"capitalize",y),children:C.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:C.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:C.jsxs(ge,{variant:"medium",size:j(),appearance:"subtitle",children:[t,f&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),w&&C.jsx(ge,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:w}),C.jsx(xO,{...I,ref:P,id:e,required:f,options:s,isClearable:D,isLoading:l,isDisabled:u,styles:k,isMulti:c,value:c?o:n,placeholder:r,filterOption:v,onChange:B,className:J("react-select-container",b),classNamePrefix:"react-select",components:{IndicatorsContainer:z,SingleValue:W,...N},"aria-required":f,"aria-invalid":g&&h==="error"?"true":"false","aria-describedby":g||w?`${e}-description`:void 0}),C.jsx(Ze.AnimatePresence,{children:g&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:h==="error"?"alert":void 0,children:C.jsx(ge,{className:J("mt-1",F()),appearance:"custom",size:"extra-small",variant:"medium",children:g})})}),w&&!g&&C.jsx("div",{id:`${e}-description`,className:"sr-only",children:w})]})});jb.displayName="CreatableSelectField";const vf=[{value:"USD",label:"United States Dollar",symbol:"$"},{value:"EUR",label:"Euro",symbol:"€"},{value:"GBP",label:"British Pound",symbol:"£"},{value:"JPY",label:"Japanese Yen",symbol:"¥"},{value:"CAD",label:"Canadian Dollar",symbol:"C$"},{value:"AUD",label:"Australian Dollar",symbol:"A$"},{value:"CHF",label:"Swiss Franc",symbol:"CHF"},{value:"CNY",label:"Chinese Yuan",symbol:"¥"},{value:"SEK",label:"Swedish Krona",symbol:"kr"},{value:"NZD",label:"New Zealand Dollar",symbol:"NZ$"}],Rb={USD:"$",EUR:"€",GBP:"£",JPY:"¥",CAD:"C$",AUD:"A$",CHF:"CHF",CNY:"¥",SEK:"kr",NZD:"NZ$"},Lb=E.forwardRef(({id:e,label:t,value:r,defaultValue:n,onChange:o,disabled:i=!1,required:a=!1,placeholder:s,message:l,messageType:c="default",wrapperClassName:u,inputClassName:d,labelClassName:f,helpText:g,size:h="medium",currencyCode:m="USD",allowCurrencyChange:p=!1,availableCurrencies:b,showSymbol:y=!0,formatValue:w=!0,min:S,max:v,decimalPlaces:I=2,inputProps:N,inputStyle:O},T)=>{const[P,M]=E.useState(!1),[x,$]=E.useState(m),[k,F]=E.useState(!1),j=b?vf.filter(U=>b.includes(U.value)):vf,z=()=>{switch(h){case"small":return{height:"h-7",padding:"px-2 py-1",fontSize:"text-xs",symbolPadding:"pl-8"};case"large":return{height:"h-10",padding:"px-4 py-2",fontSize:"text-base",symbolPadding:"pl-12"};default:return{height:"h-8",padding:"px-3 py-1.5",fontSize:"text-sm",symbolPadding:"pl-10"}}},W=()=>c==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":c==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":c==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",V=()=>c==="error"?"text-red-500 dark:text-red-400":c==="success"?"text-green-500 dark:text-green-400":c==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",_=()=>{switch(h){case"small":return"extra-small";case"large":return"medium";default:return"small"}},D=U=>{if(U==null)return"";const K=Number(U);return isNaN(K)?String(U):w?K.toLocaleString("en-US",{minimumFractionDigits:I,maximumFractionDigits:I}):String(K)},B=U=>{const K=U.target.value;if(K===""||K===null||K===void 0)o(null,x);else{const Z=Number(K);isNaN(Z)||o(Z,x)}},L=U=>{$(U),F(!1),o(r??null,U)},G=()=>{M(!0)},Q=()=>{M(!1)},q=z();return E.useEffect(()=>{$(m)},[m]),C.jsxs("div",{className:J("flex flex-col w-full",u),children:[t&&C.jsx("label",{htmlFor:e,className:J("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",f),children:C.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:C.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:C.jsxs(ge,{variant:"medium",size:_(),appearance:"subtitle",children:[t,a&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),g&&C.jsx(ge,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:g}),C.jsxs("div",{className:"relative",children:[y&&C.jsx("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3 text-neutral-900 dark:text-neutral-100 pointer-events-none",children:Rb[x]||x}),C.jsx("input",{...N,ref:T,id:e,type:P?"number":"text",value:P?r??"":D(r),defaultValue:n!==void 0?P?n??"":D(n):void 0,placeholder:s,required:a,disabled:i,min:S,max:v,step:1/Math.pow(10,I),onFocus:G,onBlur:Q,onChange:B,className:J("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",q.height,q.padding,q.fontSize,y?q.symbolPadding:"",W(),p?"pr-20":"",i&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",d),style:O,"aria-required":a,"aria-invalid":l&&c==="error"?"true":"false","aria-describedby":l||g?`${e}-description`:void 0}),p&&C.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center",children:C.jsxs("div",{className:"relative",children:[C.jsxs("button",{type:"button",onClick:()=>F(!k),disabled:i,className:J("px-3 py-1 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700 rounded-r-md border-l border-gray-300 dark:border-gray-600 transition-colors",i&&"opacity-50 cursor-not-allowed"),children:[x,C.jsx("svg",{className:"w-4 h-4 ml-1 inline-block",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),k&&C.jsx("div",{className:"absolute top-full right-0 mt-1 w-64 bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-md shadow-lg z-50 max-h-60 overflow-y-auto",children:j.map(U=>C.jsxs("button",{type:"button",onClick:()=>L(U.value),className:"w-full px-4 py-2 text-left text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700 flex justify-between items-center",children:[C.jsxs("span",{children:[U.value," - ",U.label]}),C.jsx("span",{className:"text-gray-500",children:U.symbol})]},U.value))})]})}),k&&C.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>F(!1)})]}),C.jsx(Ze.AnimatePresence,{children:l&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:c==="error"?"alert":void 0,children:C.jsx(ge,{className:J("mt-1",V()),appearance:"custom",size:"extra-small",variant:"medium",children:l})})}),g&&!l&&C.jsx("div",{id:`${e}-description`,className:"sr-only",children:g})]})});Lb.displayName="CurrencyInputField";const Db=E.forwardRef(({id:e,label:t,value:r,defaultValue:n,onChange:o,disabled:i=!1,required:a=!1,message:s,messageType:l="default",wrapperClassName:c,inputClassName:u,labelClassName:d,helpText:f,size:g="medium",minDate:h,maxDate:m,startPlaceholder:p="Start date",endPlaceholder:b="End date",allowClear:y=!0,inputProps:w},S)=>{const v=r!==void 0?r:n||{startDate:null,endDate:null},I=()=>{switch(g){case"small":return{height:"h-7",padding:"px-2 py-1",fontSize:"text-xs"};case"large":return{height:"h-10",padding:"px-4 py-2",fontSize:"text-base"};default:return{height:"h-8",padding:"px-3 py-1.5",fontSize:"text-sm"}}},N=()=>l==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":l==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":l==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",O=()=>l==="error"?"text-red-500 dark:text-red-400":l==="success"?"text-green-500 dark:text-green-400":l==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",T=()=>{switch(g){case"small":return"extra-small";case"large":return"medium";default:return"small"}},P=z=>{if(!z)return"";const W=z.getFullYear(),V=String(z.getMonth()+1).padStart(2,"0"),_=String(z.getDate()).padStart(2,"0");return`${W}-${V}-${_}`},M=z=>{if(!z)return null;const W=new Date(z);return isNaN(W.getTime())?null:W},x=z=>{const W=M(z.target.value);o({startDate:W,endDate:v.endDate})},$=z=>{const W=M(z.target.value);o({startDate:v.startDate,endDate:W})},k=()=>{o({startDate:null,endDate:null})},F=z=>z?P(z):void 0,j=I();return C.jsxs("div",{className:J("flex flex-col w-full",c),ref:S,children:[t&&C.jsx("label",{htmlFor:`${e}-start`,className:J("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",d),children:C.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:C.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:C.jsxs(ge,{variant:"medium",size:T(),appearance:"subtitle",children:[t,a&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),f&&C.jsx(ge,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:f}),C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("div",{className:"flex-1",children:C.jsx("input",{...w,id:`${e}-start`,type:"date",value:P(v.startDate),onChange:x,disabled:i,required:a,min:F(h),max:F(m),placeholder:p,className:J("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",j.height,j.padding,j.fontSize,N(),i&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",u),"aria-required":a,"aria-invalid":s&&l==="error"?"true":"false","aria-describedby":s||f?`${e}-description`:void 0})}),C.jsx("div",{className:"flex-shrink-0 text-neutral-500 dark:text-neutral-400",children:C.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 12H6"})})}),C.jsx("div",{className:"flex-1",children:C.jsx("input",{...w,id:`${e}-end`,type:"date",value:P(v.endDate),onChange:$,disabled:i,required:a,min:F(v.startDate||h),max:F(m),placeholder:b,className:J("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",j.height,j.padding,j.fontSize,N(),i&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",u),"aria-required":a,"aria-invalid":s&&l==="error"?"true":"false","aria-describedby":s||f?`${e}-description`:void 0})}),y&&(v.startDate||v.endDate)&&!i&&C.jsx("button",{type:"button",onClick:k,className:"flex-shrink-0 p-1 text-neutral-500 hover:text-neutral-700 dark:text-neutral-400 dark:hover:text-neutral-200 transition-colors","aria-label":"Clear date range",children:C.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),C.jsx("div",{className:"absolute right-3 top-1/2 transform -translate-y-1/2 pointer-events-none text-neutral-400 dark:text-neutral-500",children:C.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),C.jsx(Ze.AnimatePresence,{children:s&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:l==="error"?"alert":void 0,children:C.jsx(ge,{className:J("mt-1",O()),appearance:"custom",size:"extra-small",variant:"medium",children:s})})}),f&&!s&&C.jsx("div",{id:`${e}-description`,className:"sr-only",children:f})]})});Db.displayName="DateRange";const _b=E.forwardRef(({id:e,label:t,value:r,defaultValue:n,onChange:o,onImmediateChange:i,disabled:a=!1,required:s=!1,placeholder:l,message:c,messageType:u="default",wrapperClassName:d,inputClassName:f,labelClassName:g,helpText:h,size:m="medium",type:p="text",debounceTimeout:b=300,min:y,max:w,maxLength:S,pattern:v,inputProps:I,inputStyle:N,onKeyDown:O,onFocus:T,onBlur:P},M)=>{const[x,$]=E.useState(r||n||""),[k,F]=E.useState(r||n||""),j=()=>{switch(m){case"small":return{height:"h-7",padding:"px-2 py-1",fontSize:"text-xs"};case"large":return{height:"h-10",padding:"px-4 py-2",fontSize:"text-base"};default:return{height:"h-8",padding:"px-3 py-1.5",fontSize:"text-sm"}}},z=()=>u==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":u==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":u==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",W=()=>u==="error"?"text-red-500 dark:text-red-400":u==="success"?"text-green-500 dark:text-green-400":u==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",V=()=>{switch(m){case"small":return"extra-small";case"large":return"medium";default:return"small"}};E.useEffect(()=>{const B=setTimeout(()=>{k!==x&&(F(x),o(x))},b);return()=>clearTimeout(B)},[x,b,o,k]),E.useEffect(()=>{r!==void 0&&r!==x&&($(r),F(r))},[r,x]);const _=E.useCallback(B=>{const L=B.target.value;$(L),i?.(L)},[i]),D=j();return C.jsxs("div",{className:J("flex flex-col w-full",d),children:[t&&C.jsx("label",{htmlFor:e,className:J("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",g),children:C.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:C.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:C.jsxs(ge,{variant:"medium",size:V(),appearance:"subtitle",children:[t,s&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),h&&C.jsx(ge,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:h}),C.jsxs("div",{className:"relative",children:[C.jsx("input",{...I,ref:M,id:e,type:p,value:x,defaultValue:n,placeholder:l,required:s,disabled:a,min:y,max:w,maxLength:S,pattern:v,onChange:_,onKeyDown:O,onFocus:T,onBlur:P,className:J("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",D.height,D.padding,D.fontSize,z(),a&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",f),style:N,"aria-required":s,"aria-invalid":c&&u==="error"?"true":"false","aria-describedby":c||h?`${e}-description`:void 0}),x!==k&&C.jsx("div",{className:"absolute right-2 top-1/2 transform -translate-y-1/2",children:C.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full animate-pulse"})})]}),S&&C.jsx("div",{className:"mt-1 text-right",children:C.jsxs(ge,{className:J("text-xs",x.length>S*.9?"text-orange-500":x.length===S?"text-red-500":"text-neutral-400 dark:text-neutral-500"),appearance:"custom",size:"extra-small",children:[x.length,"/",S]})}),C.jsx(Ze.AnimatePresence,{children:c&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:u==="error"?"alert":void 0,children:C.jsx(ge,{className:J("mt-1",W()),appearance:"custom",size:"extra-small",variant:"medium",children:c})})}),h&&!c&&C.jsx("div",{id:`${e}-description`,className:"sr-only",children:h})]})});_b.displayName="DebounceInputField";const Vb=E.forwardRef(({id:e,label:t,value:r,defaultValue:n,onChange:o,disabled:i=!1,required:a=!1,placeholder:s,message:l,messageType:c="default",wrapperClassName:u,inputClassName:d,labelClassName:f,helpText:g,size:h="medium",min:m=0,max:p=100,step:b=.01,decimalPlaces:y=2,showSymbol:w=!0,allowNegative:S=!1,inputProps:v,inputStyle:I,onKeyDown:N,onFocus:O,onBlur:T},P)=>{const M=()=>{switch(h){case"small":return{height:"h-7",padding:"px-2 py-1",fontSize:"text-xs",symbolPadding:"pr-8"};case"large":return{height:"h-10",padding:"px-4 py-2",fontSize:"text-base",symbolPadding:"pr-10"};default:return{height:"h-8",padding:"px-3 py-1.5",fontSize:"text-sm",symbolPadding:"pr-9"}}},x=()=>c==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":c==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":c==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",$=()=>c==="error"?"text-red-500 dark:text-red-400":c==="success"?"text-green-500 dark:text-green-400":c==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",k=()=>{switch(h){case"small":return"extra-small";case"large":return"medium";default:return"small"}},F=V=>{const _=V.target.value;if(_===""||_===null||_===void 0)o(null);else{const D=Number(_);if(!isNaN(D)){let B=D;!S&&B<0&&(B=0),m!==void 0&&B<m&&(B=m),p!==void 0&&B>p&&(B=p);const L=Math.pow(10,y);B=Math.round(B*L)/L,o(B)}}},j=V=>{O?.(V)},z=V=>{T?.(V)},W=M();return C.jsxs("div",{className:J("flex flex-col w-full",u),children:[t&&C.jsx("label",{htmlFor:e,className:J("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",f),children:C.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:C.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:C.jsxs(ge,{variant:"medium",size:k(),appearance:"subtitle",children:[t,a&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),g&&C.jsx(ge,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:g}),C.jsxs("div",{className:"relative",children:[C.jsx("input",{...v,ref:P,id:e,type:"number",value:r??"",defaultValue:n??"",placeholder:s,required:a,disabled:i,min:S?void 0:m,max:p,step:b,onChange:F,onKeyDown:N,onFocus:j,onBlur:z,className:J("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",W.height,W.padding,W.fontSize,w?W.symbolPadding:"",x(),i&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",d),style:I,"aria-required":a,"aria-invalid":l&&c==="error"?"true":"false","aria-describedby":l||g?`${e}-description`:void 0}),w&&C.jsx("span",{className:"absolute inset-y-0 right-0 flex items-center pr-3 text-neutral-900 dark:text-neutral-100 pointer-events-none",children:"%"})]}),r!=null&&C.jsxs("div",{className:"mt-1 flex justify-between items-center text-xs",children:[C.jsxs("div",{className:"flex items-center gap-2",children:[r<m&&C.jsxs("span",{className:"text-orange-500",children:["Below minimum (",m,"%)"]}),r>p&&C.jsxs("span",{className:"text-orange-500",children:["Above maximum (",p,"%)"]}),r>=m&&r<=p&&C.jsx("span",{className:"text-green-500",children:"Valid range"})]}),C.jsxs("span",{className:"text-neutral-400 dark:text-neutral-500",children:[r.toFixed(y),"%"]})]}),C.jsx(Ze.AnimatePresence,{children:l&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:c==="error"?"alert":void 0,children:C.jsx(ge,{className:J("mt-1",$()),appearance:"custom",size:"extra-small",variant:"medium",children:l})})}),g&&!l&&C.jsx("div",{id:`${e}-description`,className:"sr-only",children:g})]})});Vb.displayName="PercentageInputField";const rT=(e,t,r,n,o)=>{const i={small:"w-7 h-4 after:h-3 after:w-3 after:top-0.5 after:left-0.5",medium:"w-9 h-5 after:h-4 after:w-4 after:top-0.5 after:left-0.5",large:"w-11 h-6 after:h-5 after:w-5 after:top-0.5 after:left-0.5"},a={small:"peer-checked:after:translate-x-3",medium:"peer-checked:after:translate-x-4",large:"peer-checked:after:translate-x-5"};return J("p-0.5 rounded-full peer after:content-[''] after:absolute after:rounded-full after:transition-all bg-gray-200",i[o],a[o],{"dark:bg-neutral-400 dark:peer-focus:ring-blue-800 dark:after:bg-neutral-500":r==="secondary"&&!e,"dark:bg-neutral-500 dark:peer-focus:ring-blue-800 dark:after:bg-neutral-700":r==="primary"&&!e,"peer-checked:bg-blue-600 dark:peer-checked:bg-primary-900 after:bg-white dark:after:bg-primary-500":e,"after:bg-white dark:after:bg-neutral-700":!e,"text-white dark:text-neutral-900":t,"cursor-not-allowed opacity-70":n})},bf=E.forwardRef(({id:e,checked:t,onChange:r,label:n,required:o=!1,disabled:i=!1,message:a,messageType:s="default",wrapperClassName:l,toggleClassName:c,labelClassName:u,helpText:d,size:f="medium",labelDirection:g="top",hideStatus:h=!1,statusText:m,withIcon:p=!1,icon:b,variant:y="primary",originalCase:w=!1,stopClickPropagation:S=!0},v)=>{const I=g==="top",N=g==="left",O=g==="right",T=()=>s==="error"?"text-red-500 dark:text-red-400":s==="success"?"text-green-500 dark:text-green-400":s==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",P=$=>{i||r($.target.checked)},M=()=>C.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),x=()=>C.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})});return C.jsxs("div",{className:J("flex flex-col w-full",l),onClick:$=>{S&&$.stopPropagation()},children:[I&&n&&C.jsx("div",{className:"w-full flex justify-between flex-wrap mb-1",children:C.jsx("label",{htmlFor:e,className:J("text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",!w&&"capitalize",u),children:C.jsxs(ge,{size:"extra-small",variant:"medium",appearance:"subtitle",children:[n,o&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})}),d&&C.jsx(ge,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:d}),C.jsxs("div",{className:"flex items-center",children:[N&&n&&C.jsx(ge,{size:"small",variant:"medium",className:J("mr-2 text-neutral-700 dark:text-neutral-200",u),appearance:"custom",children:n}),C.jsxs("label",{className:J("relative inline-flex items-center",O||m?"":"w-min",i?"cursor-not-allowed opacity-50":"cursor-pointer"),onClick:$=>$.stopPropagation(),children:[C.jsx("input",{ref:v,type:"checkbox",id:e,onChange:P,disabled:i,checked:t,className:J("sr-only peer w-full",c),"aria-required":o,"aria-invalid":a&&s==="error"?"true":"false","aria-describedby":a||d?`${e}-description`:void 0}),C.jsx("div",{className:rT(t,p,y,i,f),children:p&&C.jsx("div",{className:"flex items-center justify-center h-full",children:C.jsx("div",{className:J("z-10 transition-all transform",f==="small"&&(t?"translate-x-2 translate-y-[-2px]":"translate-x-[-6px] translate-y-[-2px]"),f==="medium"&&(t?"translate-x-[8.5px] translate-y-[-2px]":"translate-x-[-8px] translate-y-[-2px]"),f==="large"&&(t?"translate-x-3 translate-y-[-2px]":"translate-x-[-10px] translate-y-[-2px]")),children:t?b?.checkedIcon?b.checkedIcon:C.jsx(M,{}):b?.uncheckedIcon?b.uncheckedIcon:C.jsx(x,{})})})}),O&&n&&C.jsx(ge,{size:"small",variant:"medium",className:J("ml-2 text-neutral-700 dark:text-neutral-300",u),appearance:"custom",children:n}),!h&&C.jsx(ge,{size:"small",variant:"medium",className:"ml-2 text-neutral-900 dark:text-neutral-100",appearance:"custom",children:m||(t?"Yes":"No")})]})]}),C.jsx(Ze.AnimatePresence,{children:a&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:s==="error"?"alert":void 0,children:C.jsx(ge,{className:J("mt-1",T()),appearance:"custom",size:"extra-small",variant:"medium",children:a})})}),d&&!a&&C.jsx("div",{id:`${e}-description`,className:"sr-only",children:d})]})});bf.displayName="Toggle";var Bb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},zb=E.createContext&&E.createContext(Bb),nT=["attr","size","title"];function oT(e,t){if(e==null)return{};var r=iT(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function iT(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Dl(){return Dl=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},Dl.apply(this,arguments)}function Gb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function _l(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gb(Object(r),!0).forEach(function(n){aT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aT(e,t,r){return t=sT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sT(e){var t=lT(e,"string");return typeof t=="symbol"?t:t+""}function lT(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hb(e){return e&&e.map((t,r)=>E.createElement(t.tag,_l({key:r},t.attr),Hb(t.child)))}function Vl(e){return t=>E.createElement(cT,Dl({attr:_l({},e.attr)},t),Hb(e.child))}function cT(e){var t=r=>{var{attr:n,size:o,title:i}=e,a=oT(e,nT),s=o||r.size||"1em",l;return r.className&&(l=r.className),e.className&&(l=(l?l+" ":"")+e.className),E.createElement("svg",Dl({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:l,style:_l(_l({color:e.color||r.color},r.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&E.createElement("title",null,i),e.children)};return zb!==void 0?E.createElement(zb.Consumer,null,r=>t(r)):t(Bb)}function uT(e){return Vl({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"},child:[]},{tag:"polyline",attr:{points:"7 10 12 15 17 10"},child:[]},{tag:"line",attr:{x1:"12",y1:"15",x2:"12",y2:"3"},child:[]}]})(e)}function dT(e){return Vl({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"3 6 5 6 21 6"},child:[]},{tag:"path",attr:{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"},child:[]},{tag:"line",attr:{x1:"10",y1:"11",x2:"10",y2:"17"},child:[]},{tag:"line",attr:{x1:"14",y1:"11",x2:"14",y2:"17"},child:[]}]})(e)}function fT(e){return Vl({attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M2 12C2 6.47715 6.47715 2 12 2V5C8.13401 5 5 8.13401 5 12H2Z",fill:"currentColor"},child:[]}]})(e)}function mT(e){return Vl({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM1.6 11.85H0v3.999h.791v-1.342h.803q.43 0 .732-.173.305-.175.463-.474a1.4 1.4 0 0 0 .161-.677q0-.375-.158-.677a1.2 1.2 0 0 0-.46-.477q-.3-.18-.732-.179m.545 1.333a.8.8 0 0 1-.085.38.57.57 0 0 1-.238.241.8.8 0 0 1-.375.082H.788V12.48h.66q.327 0 .512.181.185.183.185.522m1.217-1.333v3.999h1.46q.602 0 .998-.237a1.45 1.45 0 0 0 .595-.689q.196-.45.196-1.084 0-.63-.196-1.075a1.43 1.43 0 0 0-.589-.68q-.396-.234-1.005-.234zm.791.645h.563q.371 0 .609.152a.9.9 0 0 1 .354.454q.118.302.118.753a2.3 2.3 0 0 1-.068.592 1.1 1.1 0 0 1-.196.422.8.8 0 0 1-.334.252 1.3 1.3 0 0 1-.483.082h-.563zm3.743 1.763v1.591h-.79V11.85h2.548v.653H7.896v1.117h1.606v.638z"},child:[]}]})(e)}const{Dragger:pT}=Qo,gT=e=>e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(2)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(2)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`,hT=(e,t=20)=>e?e.length<=t?e:e.slice(0,t-7)+"...."+e.slice(-7):"",Wb=E.forwardRef(({id:e,onFileChange:t,description:r,errorMessage:n,disabled:o=!1,defaultFile:i=null,acceptedFiles:a="*",isLoading:s=!1,asBase64:l=!1,toFileServer:c=!1,setFileUploading:u,fileUploading:d=!1,multiple:f=!1,getRealFileName:g=!1,maxSize:h=50*1024*1024,onUpload:m,onDelete:p,wrapperClassName:b,uploadClassName:y,showFileSize:w=!0,formatFileSize:S=gT},v)=>{const[I,N]=E.useState(null),[O,T]=E.useState([]),[P,M]=E.useState("#d9d9d9"),[x,$]=E.useState(!1),[k,F]=E.useState(null),j=E.useCallback(async()=>{if(m)try{const V=await m(O),_=f?V?.map(B=>B?.fileUrl):V?.[0]?.fileUrl,D=g?I?.name:V?.[0]?.fileName;t(_,D),u?.(null)}catch(V){console.error("Upload failed:",V),u?.(null)}},[m,O,f,I,g,t,u]),z={accept:a,multiple:f,showUploadList:!1,disabled:o,onRemove:()=>{T([])},beforeUpload:(V,_)=>{if(V.size>h){const D=(h/1048576).toFixed(0);return console.error(`File size exceeds ${D}MB limit`),!1}return N(V),c?(u?.(e||"field-file-upload"),T(_)):(l?Promise.all((f?_:[V]).map(D=>new Promise(B=>{const L=new FileReader;L.onload=G=>{B({filename:D.name,content:G?.target?.result?.split(",")[1]})},L.readAsDataURL(D)}))).then(D=>{t(f?D:D[0])}):t(V),N(V)),!1}},W=async()=>{if(c&&k&&p)try{await p(k),F(null)}catch(V){console.error("Delete failed:",V)}N(null),T([]),t(null)};return E.useEffect(()=>{M(n?"#EF4444":"#d9d9d9")},[n]),E.useEffect(()=>{O.length&&c&&j()},[O,c,j]),E.useEffect(()=>{i?.name&&N(i)},[i]),C.jsxs("div",{ref:v,className:J("w-full",b),children:[C.jsx("div",{className:"h-32",onMouseEnter:()=>$(!0),onMouseLeave:()=>$(!1),children:C.jsx(pT,{...z,className:y,style:{borderColor:x&&!n?"#1890ff":P},disabled:o||d,children:I?C.jsxs("div",{className:"flex items-center justify-between mx-5",title:I?.name||i?.name||"",children:[C.jsxs("div",{className:"flex items-center justify-center gap-4",children:[I?.type==="application/pdf"?C.jsx("div",{className:"p-3 bg-[#E6F1FC] rounded-lg",children:C.jsx(mT,{size:20,fill:"#006CCF"})}):C.jsx("div",{className:"p-3 bg-[#E6F1FC] rounded-lg",children:C.jsx(tT,{sx:{height:"20px",width:"20px",color:"#006CCF"}})}),C.jsxs("div",{className:"text-left",children:[C.jsx(ge,{size:"small",variant:"medium",className:"font-inter text-md font-medium text-base",children:hT(I?.name||i?.name||"")}),d?C.jsx(ge,{size:"small",variant:"medium",appearance:"subtitle",children:"Uploading..."}):w&&I?.size>0?C.jsx(ge,{size:"small",variant:"medium",appearance:"subtitle",children:S(I.size)}):null]})]}),s?C.jsx(fT,{size:40,className:"spinner text-primary-600"}):C.jsx("button",{id:`btn-file-upload-${e}`,className:"ml-4",onClick:V=>{V.stopPropagation(),W()},disabled:o,type:"button","aria-label":"Delete file",children:C.jsx(dT,{size:20,className:"text-gray-400"})})]}):C.jsx("div",{className:"flex items-center justify-center",children:C.jsxs("div",{className:"flex-col",children:[C.jsx("div",{className:"mb-4 flex justify-center",children:C.jsx(uT,{size:24,className:"text-gray-400"})}),C.jsxs("div",{children:[C.jsxs("div",{className:"flex items-center justify-center",children:[C.jsx(ge,{size:"small",variant:"medium",className:"text-primary-600 dark:text-primary-300",appearance:"custom",children:"Click to upload"}),C.jsx(ge,{size:"small",variant:"medium",className:"ml-1",appearance:"subtitle",children:"or drag and drop"})]}),r?C.jsx(ge,{size:"small",variant:"medium",appearance:"subtitle",children:r}):null]})]})})})}),n&&C.jsx(ge,{className:"text-red-500 mt-1",appearance:"custom",size:"extra-small",variant:"medium",children:n})]})});Wb.displayName="MultiFileUpload";const{Dragger:vT}=Qo,bT=200*1024*1024,yT=(e,t,r,n,o)=>{const i={small:"h-24",medium:"h-32",large:"h-40"},a={primary:"border-blue-200 hover:border-blue-400",secondary:"border-gray-200 hover:border-gray-400"};return J("border-2 border-dashed rounded-lg transition-colors duration-200",i[e],a[t],{"border-red-400 bg-red-50":n,"cursor-not-allowed opacity-50":r,"cursor-pointer":!r})},CT=()=>C.jsx("div",{className:"p-3 bg-blue-50 rounded-lg",children:C.jsx("svg",{className:"w-5 h-5 text-blue-600",fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4zm2 6a1 1 0 011-1h6a1 1 0 110 2H7a1 1 0 01-1-1zm1 3a1 1 0 100 2h6a1 1 0 100-2H7z",clipRule:"evenodd"})})}),xT=()=>C.jsx("div",{className:"p-3 bg-blue-50 rounded-lg",children:C.jsx("svg",{className:"w-5 h-5 text-blue-600",fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4z",clipRule:"evenodd"})})}),wT=()=>C.jsx("svg",{className:"w-6 h-6 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})}),ST=()=>C.jsx("svg",{className:"w-5 h-5 text-gray-400",fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})}),Ub=E.forwardRef(({id:e,onFileSelect:t,onUpload:r,description:n,errorMessage:o,disabled:i=!1,defaultFile:a=null,acceptedFiles:s="*",isLoading:l=!1,asBase64:c=!1,multiple:u=!1,hideSelectedFile:d=!1,onDelete:f,maxSize:g=bT,wrapperClassName:h,uploadClassName:m,size:p="medium",variant:b="primary",uploadIcon:y,deleteIcon:w,fileTypeIcons:S,showFileSize:v=!0,showProgress:I=!1,progress:N=0},O)=>{const[T,P]=E.useState(null),[M,x]=E.useState(!1),$=(V,_)=>{if(V.size>g){const D=Math.round(g/1048576);return console.error(`File size exceeds the limit of ${D} MB`),Qo.LIST_IGNORE}if(d||P(V),c){const D=new FileReader;D.onload=B=>{const L=B?.target?.result;t(L,V.name)},D.readAsDataURL(V)}else t(u?_:V,V.name);return r&&r(u?_:V),Qo.LIST_IGNORE},k=()=>{P(null),t(null),f?.()},F=V=>{if(V===0)return"0 Bytes";const _=1024,D=["Bytes","KB","MB","GB"],B=Math.floor(Math.log(V)/Math.log(_));return parseFloat((V/Math.pow(_,B)).toFixed(2))+" "+D[B]},j=V=>V.length<=30?V:`${V.slice(0,23)}....${V.slice(-7)}`,z=V=>V.type==="application/pdf"?S?.pdf||C.jsx(CT,{}):S?.default||C.jsx(xT,{});E.useEffect(()=>{a&&P(a)},[a]);const W={accept:s,multiple:u,showUploadList:!1,disabled:i,beforeUpload:$};return C.jsxs("div",{ref:O,className:J("w-full",h),children:[C.jsx("div",{className:J(yT(p,b,i,!!o),m),onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),role:"button",tabIndex:i?-1:0,"aria-label":"File upload area",children:C.jsx(vT,{...W,children:T&&!d?C.jsxs("div",{className:"flex items-center justify-between mx-5",title:T.name,children:[C.jsxs("div",{className:"flex items-center gap-4",children:[z(T),C.jsxs("div",{className:"text-left",children:[C.jsx(ge,{size:"small",variant:"medium",className:"text-neutral-900 font-medium",children:j(T.name)}),v&&T.size>0&&C.jsx(ge,{size:"small",variant:"medium",appearance:"subtitle",children:F(T.size)}),I&&N>0&&C.jsxs("div",{className:"mt-1",children:[C.jsx("div",{className:"w-full bg-gray-200 rounded-full h-1",children:C.jsx("div",{className:"bg-blue-600 h-1 rounded-full transition-all duration-300",style:{width:`${N}%`}})}),C.jsxs(ge,{size:"extra-small",variant:"medium",appearance:"subtitle",children:[N,"% uploaded"]})]})]})]}),l?C.jsx("div",{className:"animate-spin",children:C.jsx("svg",{className:"w-5 h-5 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})}):C.jsx("button",{className:"ml-4 p-1 hover:bg-gray-100 rounded",onClick:V=>{V.stopPropagation(),k()},disabled:i,type:"button","aria-label":"Delete file",children:w||C.jsx(ST,{})})]}):C.jsx("div",{className:"flex items-center justify-center h-full",children:C.jsxs("div",{className:"flex flex-col items-center",children:[C.jsx("div",{className:"mb-4 flex justify-center",children:y||C.jsx(wT,{})}),C.jsxs("div",{className:"text-center",children:[C.jsxs("div",{className:"flex items-center justify-center gap-1",children:[C.jsx(ge,{size:"small",variant:"medium",className:"text-blue-600 dark:text-blue-300",appearance:"custom",children:"Click to upload"}),C.jsx(ge,{size:"small",variant:"medium",appearance:"subtitle",children:"or drag and drop"})]}),n&&C.jsx(ge,{size:"small",variant:"medium",className:"text-neutral-400 mt-1",children:n})]})]})})})}),o&&C.jsx(ge,{className:"text-red-500 mt-1",appearance:"custom",size:"extra-small",variant:"medium",children:o})]})});Ub.displayName="FileUpload";const Xb=E.forwardRef(({status:e,children:t,className:r,size:n="medium","aria-label":o},i)=>{const a=()=>{switch(n){case"small":return"text-xs px-1.5 py-0.5";case"large":return"text-base px-3 py-1.5";default:return"text-sm px-2 py-1"}},s=()=>{switch(e?.toLowerCase()){case"purple":return"bg-purple-50 text-purple-500 border border-purple-100 dark:bg-purple-950 dark:text-purple-400 dark:border-purple-800";case"blue":return"bg-blue-50 text-blue-500 border border-blue-100 dark:bg-blue-950 dark:text-blue-400 dark:border-blue-800";case"teal":return"bg-teal-50 text-teal-500 border border-teal-100 dark:bg-teal-950 dark:text-teal-400 dark:border-teal-800";case"green":return"bg-green-50 text-green-500 border border-green-100 dark:bg-green-950 dark:text-green-400 dark:border-green-800";case"yellow":return"bg-yellow-50 text-yellow-600 border border-yellow-100 dark:bg-yellow-950 dark:text-yellow-400 dark:border-yellow-800";case"orange":return"bg-orange-50 text-orange-500 border border-orange-100 dark:bg-orange-950 dark:text-orange-400 dark:border-orange-800";case"peach":return"bg-orange-50 text-orange-400 border border-orange-100 dark:bg-orange-950 dark:text-orange-300 dark:border-orange-800";case"red":return"bg-red-50 text-red-500 border border-red-100 dark:bg-red-950 dark:text-red-400 dark:border-red-800";case"navy":return"bg-slate-50 text-slate-700 border border-slate-100 dark:bg-slate-950 dark:text-slate-400 dark:border-slate-800";case"grey":return"bg-neutral-50 text-neutral-500 border border-neutral-100 dark:bg-neutral-950 dark:text-neutral-400 dark:border-neutral-800";default:return"bg-blue-50 text-blue-600 border border-blue-200 dark:bg-blue-950 dark:text-blue-400 dark:border-blue-800"}};return C.jsx("span",{ref:i,className:J("inline-flex items-center justify-center font-medium rounded-md transition-colors",a(),s(),r),"aria-label":o||`Status: ${e||"default"}`,role:"status",children:t})});Xb.displayName="StatusColorMapping";const Yb=E.forwardRef(({status:e="default",children:t,appearance:r="outline",size:n="md",className:o,isRounded:i=!1,capitalize:a=!0,"aria-label":s},l)=>{const c=h=>!h||!a?h:h.replace(/\w\S*/g,m=>m.charAt(0).toUpperCase()+m.substr(1).toLowerCase()),u=()=>{switch(n){case"sm":return"text-xs px-1.5 py-0.5";case"lg":return"text-sm px-3 py-1.5";default:return"text-xs px-2 py-1"}},d=()=>{switch(e){case"primary":case"default":return"bg-blue-50 dark:bg-blue-950 text-blue-600 dark:text-blue-300 border border-blue-300 dark:border-blue-700";case"warning":return"bg-yellow-50 dark:bg-yellow-950 text-yellow-600 dark:text-yellow-300 border border-yellow-300 dark:border-yellow-700";case"error":return"bg-red-50 dark:bg-red-950 text-red-600 dark:text-red-300 border border-red-300 dark:border-red-700";case"neutral":return"bg-neutral-50 dark:bg-neutral-950 text-neutral-600 dark:text-neutral-300 border border-neutral-300 dark:border-neutral-700";case"success":return"bg-green-50 dark:bg-green-950 text-green-600 dark:text-green-300 border border-green-300 dark:border-green-700";case"info":return"bg-blue-50 dark:bg-blue-950 text-blue-600 dark:text-blue-300 border border-blue-300 dark:border-blue-700";default:return"bg-blue-50 dark:bg-blue-950 text-blue-600 dark:text-blue-300 border border-blue-300 dark:border-blue-700"}},f=()=>{switch(e){case"primary":case"default":return"bg-blue-600 dark:bg-blue-700 text-white";case"warning":return"bg-yellow-600 dark:bg-yellow-700 text-white";case"success":return"bg-green-600 dark:bg-green-700 text-white";case"error":return"bg-red-600 dark:bg-red-700 text-white";case"neutral":return"bg-neutral-600 dark:bg-neutral-700 text-white";case"info":return"bg-blue-600 dark:bg-blue-700 text-white";default:return"bg-blue-600 dark:bg-blue-700 text-white"}},g=()=>r==="filled"?f():d();return C.jsx("span",{ref:l,className:J("inline-flex items-center justify-center font-medium transition-colors",i?"rounded-full":"rounded",u(),g(),o),"aria-label":s||`Badge: ${e}`,role:"status",children:c(t)})});Yb.displayName="Badge";const Jb=E.forwardRef(({open:e,children:t,title:r,mask:n=!0,onlyBody:o=!1,bodySpacing:i=!0,headerRightContent:a,parentContainer:s="full-screen-container",zIndex:l,asForm:c,onSubmit:u,showCloseButton:d=!0,noPadding:f=!1,onClose:g,onCancel:h,size:m="md",appearance:p="default",className:b,width:y,height:w,footer:S,closable:v=!0,centered:I=!0,style:N,...O},T)=>{const P=()=>{switch(m){case"sm":return"max-w-sm";case"lg":return"max-w-2xl";case"xl":return"max-w-4xl";case"full":return"max-w-full h-full";default:return"max-w-lg"}},M=()=>{switch(p){case"centered":return"flex items-center justify-center";case"fullscreen":return"w-full h-full";default:return"flex items-center justify-center"}},x=V=>{V.preventDefault(),u&&u()},$=()=>{g?g():h&&h()},k=V=>{v&&V.target===V.currentTarget&&$()},F=()=>o?null:C.jsxs("div",{className:"flex justify-between items-center",children:[d?C.jsx(ge,{size:"large",variant:"semibold",appearance:"title",className:"tour__title",children:r}):C.jsx("div",{className:"flex flex-col w-full",children:r}),a||d&&C.jsx("button",{id:"btn-modal-close",onClick:$,className:"p-1 hover:bg-neutral-100 dark:hover:bg-neutral-800 rounded transition-colors",type:"button","aria-label":"Close modal",children:C.jsx(eT,{sx:{fontSize:"20px"},className:"cursor-pointer text-neutral-400 hover:text-neutral-600 dark:text-neutral-500 dark:hover:text-neutral-400"})})]}),j=c?"form":"div";if(!e)return null;const z=C.jsx("div",{ref:T,className:J("fixed inset-0 z-[1000]",M(),n?"bg-black/50 backdrop-blur-sm":"",b),onClick:k,onKeyDown:V=>{V.key==="Escape"&&v&&$()},style:{zIndex:l||1e3,...N},role:"dialog","aria-modal":"true",tabIndex:-1,"aria-label":typeof r=="string"?r:"Modal",children:C.jsx("div",{className:J("bg-white dark:bg-neutral-900 rounded-lg shadow-xl",P(),p==="fullscreen"?"w-full h-full rounded-none":"",I?"mx-auto":""),style:{width:y||void 0,height:w||void 0},onClick:V=>V.stopPropagation(),onKeyDown:V=>V.stopPropagation(),role:"document",children:C.jsxs(j,{onSubmit:c?x:void 0,className:"flex flex-col h-full",children:[F(),O.addLineAfterHeader&&C.jsx("hr",{className:"mt-2 border-neutral-200 dark:border-neutral-700"}),C.jsx("div",{className:J("flex-1 overflow-auto",f?"p-0":i?"p-6":"p-0"),children:t}),S&&C.jsx("div",{className:J("border-t border-neutral-200 dark:border-neutral-700",f?"p-0":"p-6"),children:S})]})})}),W=document.getElementById(s)||document.body;return zr.createPortal(z,W)});Jb.displayName="Modal";const Zb=E.forwardRef(({size:e=24,fill:t="currentColor",className:r,...n},o)=>C.jsx("svg",{ref:o,className:J(r),width:e,height:e,viewBox:"0 0 20 20",fill:t,xmlns:"http://www.w3.org/2000/svg",...n,children:C.jsx("path",{d:"M10.0002 11.1666L5.91683 15.2499C5.76405 15.4027 5.56961 15.4791 5.3335 15.4791C5.09739 15.4791 4.90294 15.4027 4.75016 15.2499C4.59738 15.0971 4.521 14.9027 4.521 14.6666C4.521 14.4305 4.59738 14.236 4.75016 14.0833L8.8335 9.99992L4.75016 5.91659C4.59738 5.76381 4.521 5.56936 4.521 5.33325C4.521 5.09714 4.59738 4.9027 4.75016 4.74992C4.90294 4.59714 5.09739 4.52075 5.3335 4.52075C5.56961 4.52075 5.76405 4.59714 5.91683 4.74992L10.0002 8.83325L14.0835 4.74992C14.2363 4.59714 14.4307 4.52075 14.6668 4.52075C14.9029 4.52075 15.0974 4.59714 15.2502 4.74992C15.4029 4.9027 15.4793 5.09714 15.4793 5.33325C15.4793 5.56936 15.4029 5.76381 15.2502 5.91659L11.1668 9.99992L15.2502 14.0833C15.4029 14.236 15.4793 14.4305 15.4793 14.6666C15.4793 14.9027 15.4029 15.0971 15.2502 15.2499C15.0974 15.4027 14.9029 15.4791 14.6668 15.4791C14.4307 15.4791 14.2363 15.4027 14.0835 15.2499L10.0002 11.1666Z"})}));Zb.displayName="CloseIcon";const Qn={primary:{50:"#E6F1FC",100:"#C6E1F9",200:"#8AC0F2",300:"#54A4EC",400:"#3392E9",500:"#0077E3",600:"#016DCF",700:"#0054A1",800:"#00417D",900:"#00325F",950:"#001c35",975:"#00111f"},black:{50:"#f0f0f0",100:"#d9d9d9",200:"#bfbfbf",300:"#8c8c8c",400:"#595959",500:"#454545",600:"#262626",700:"#1f1f1f",800:"#141414",900:"#000000",950:"#0a0a0a",975:"#050505"},blue:{50:"#E6F1FC",100:"#C6E1F9",200:"#8AC0F2",300:"#54A4EC",400:"#3392E9",500:"#0077E3",600:"#016DCF",700:"#0054A1",800:"#00417D",900:"#00325F",950:"#002547",975:"#001529"},success:{50:"#ECFDF3",100:"#D1FADF",200:"#A6F4C5",300:"#6CE9A6",400:"#32D583",500:"#12B76A",600:"#039855",700:"#027A48",800:"#05603A",900:"#054F31",950:"#033625",975:"#022419"},neutral:{50:"#F9FAFB",100:"#F2F4F7",200:"#EAECF0",300:"#D0D5DD",400:"#98A2B3",500:"#667085",600:"#475467",700:"#344054",800:"#1D2939",900:"#101828",950:"#0c1219",975:"#080a0f"},error:{50:"#FEF3F2",100:"#FEE4E2",200:"#FECDCA",300:"#FDA29B",400:"#F97066",500:"#F04438",600:"#D92D20",700:"#B42318",800:"#912018",900:"#7A271A",950:"#3d1008",975:"#2a0b05"},warning:{50:"#FFFAEB",100:"#FEF0C7",200:"#FEDF89",300:"#FEC84B",400:"#FDB022",500:"#F79009",600:"#DC6803",700:"#B54708",800:"#93370D",900:"#7A2E0E",950:"#662505",975:"#451803"},teal:{50:"#ebf5f5",100:"#c2e0df",200:"#a4d1d0",300:"#7abcba",400:"#61afad",500:"#399b98",600:"#348d8a",700:"#286e6c",800:"#1f5554",900:"#184140",950:"#133534",975:"#0c2222"},green:{50:"#f2f7f2",100:"#d5e5d5",200:"#c1d9c1",300:"#a5c7a5",400:"#94bd93",500:"#79ac78",600:"#6e9d6d",700:"#567a55",800:"#435f42",900:"#334832",950:"#001e00",975:"#182818"},yellow:{50:"#fffaed",100:"#fff0c7",200:"#ffe8ac",300:"#ffde86",400:"#ffd76f",500:"#ffcd4b",600:"#e8bb44",700:"#b59235",800:"#8c7129",900:"#6b5620",950:"#524314",975:"#382e0e"},orange:{50:"#fef4e8",100:"#fddeb7",200:"#fcce94",300:"#fbb764",400:"#faa945",500:"#f99417",600:"#e38715",700:"#b16910",800:"#89510d",900:"#693e0a",950:"#4d2d07",975:"#331e05"},peach:{50:"#fceef3",100:"#f5cad9",200:"#f0b0c6",300:"#ea8cad",400:"#e5759d",500:"#df5384",600:"#cb4c78",700:"#9e3b5e",800:"#7b2e49",900:"#5e2337",950:"#451a2b",975:"#2e111d"},red:{50:"#fceaeb",100:"#f6bec0",200:"#f29ea2",300:"#ec7278",400:"#e9575d",500:"#e32d35",600:"#cf2930",700:"#a12026",800:"#7d191d",900:"#5f1316",950:"#470c0f",975:"#2f080a"},purple:{50:"#f5e7ff",100:"#dfb4ff",200:"#d090ff",300:"#bb5dff",400:"#ad3dff",500:"#990dff",600:"#8b0ce8",700:"#6d09b5",800:"#54078c",900:"#40056b",950:"#300450",975:"#200336"},navy:{50:"#eaebf6",100:"#bebfe2",200:"#9ea1d3",300:"#7276bf",400:"#575bb3",500:"#2d32a0",600:"#292e92",700:"#202472",800:"#191c58",900:"#131543",950:"#0d0e2f",975:"#090a20"},grey:{50:"#f2f2f2",100:"#d5d5d5",200:"#c1c1c1",300:"#a5a5a5",400:"#939393",500:"#787878",600:"#6d6d6d",700:"#555555",800:"#424242",900:"#323232",950:"#252525",975:"#191919"}},ET=e=>{let t=0;for(let o=0;o<e.length;o++)t=e.charCodeAt(o)+((t<<5)-t);const r=(t&16777215).toString(16).toUpperCase();return`#${"00000".substring(0,6-r.length)+r}`},yf=(e,t=80)=>{let r=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16);return r=Math.min(255,r+(255-r)*(t/100)),n=Math.min(255,n+(255-n)*(t/100)),o=Math.min(255,o+(255-o)*(t/100)),`#${Math.round(r).toString(16).padStart(2,"0")}${Math.round(n).toString(16).padStart(2,"0")}${Math.round(o).toString(16).padStart(2,"0")}`},qb=(e,t=30)=>{let r=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16);return r=Math.max(0,r*(1-t/100)),n=Math.max(0,n*(1-t/100)),o=Math.max(0,o*(1-t/100)),`#${Math.round(r).toString(16).padStart(2,"0")}${Math.round(n).toString(16).padStart(2,"0")}${Math.round(o).toString(16).padStart(2,"0")}`},IT=(e,t)=>({background:t?Qn[e]?.[975]:Qn[e]?.[50],borderColor:t?Qn[e]?.[900]:Qn[e]?.[100],color:t?Qn[e]?.[500]:Qn[e]?.[600]}),AT=(e,t)=>{const r=e.startsWith("#")?e:ET(e);return{background:t?qb(r,80):yf(r,90),borderColor:t?qb(r,40):yf(r,50),color:t?yf(r,40):r}},NT=e=>({background:e?"#2D3748":"#F7FAFC",borderColor:e?"#4A5568":"#E2E8F0",color:e?"#A0AEC0":"#4A5568"}),OT=e=>{switch(e){case"xs":return"text-xs px-1 py-0.5";case"lg":return"text-sm px-2.5 py-1.5";case"md":return"text-sm px-2 py-1";default:return"text-xs px-1.5 py-0.5"}},TT=(e,t,r,n)=>e?r?t.color:Qn[e]?.[500]||t.color:n?"#A0AEC0":"#4A5568",Cf=E.forwardRef(({label:e,color:t,size:r="sm",className:n,onClick:o,onMouseDown:i,truncate:a,isHashColor:s=!1,icon:l,removable:c=!1,onRemove:u,onUpload:d,acceptsUpload:f=!1,theme:g="light","aria-label":h},m)=>{const p=g==="dark",b=()=>t?t in Qn?IT(t,p):AT(t,p):NT(p),y=I=>{const N=I.target.files?.[0];N&&d&&d(N),I.target.value=""},w=I=>{(I.key==="Enter"||I.key===" ")&&(o||f)&&(I.preventDefault(),o&&o(I))},S=b(),v=TT(t,S,s,p);return C.jsx("div",{ref:m,className:J("inline-flex items-center border rounded-md transition-colors",OT(r),(o||f)&&"cursor-pointer hover:opacity-80",n),style:S,onMouseDown:i,onClick:o,onKeyDown:w,"aria-label":h||`Tag: ${e}`,role:"button",tabIndex:o||f?0:void 0,children:C.jsxs("div",{className:"flex items-center gap-0.5 truncate w-full overflow-hidden",children:[l,a?C.jsx("p",{title:e,className:`text-${r} ${o||f?"cursor-pointer":""}`,children:e.length>a?`${e.slice(0,a)}...`:e}):C.jsx("p",{className:`text-${r}`,children:e}),f&&C.jsx("input",{type:"file",onChange:y,className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer","aria-label":`Upload file for ${e}`}),c&&u&&C.jsx("button",{onClick:u,className:"ml-1 flex-shrink-0","aria-label":`Remove ${e}`,type:"button",children:C.jsx(Zb,{size:12,fill:v,className:"cursor-pointer"})})]})})});Cf.displayName="Tag";const PT=({size:e=16,className:t="",...r})=>C.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`text-neutral-500 hover:text-neutral-700 ${t}`,...r,children:[C.jsx("circle",{cx:"12",cy:"12",r:"10"}),C.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),C.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),kT=({size:e=20,className:t="",...r})=>C.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`text-primary-600 dark:text-primary-300 cursor-pointer ${t}`,...r,children:[C.jsx("circle",{cx:"11",cy:"11",r:"8"}),C.jsx("path",{d:"M21 21l-4.35-4.35"})]}),In=({title:e,placement:t="top",children:r,className:n=""})=>{const[o,i]=E.useState(!1),a={top:"bottom-full left-1/2 transform -translate-x-1/2 mb-2",bottom:"top-full left-1/2 transform -translate-x-1/2 mt-2",left:"right-full top-1/2 transform -translate-y-1/2 mr-2",right:"left-full top-1/2 transform -translate-y-1/2 ml-2"},s={top:"top-full left-1/2 transform -translate-x-1/2 border-l-transparent border-r-transparent border-b-transparent border-t-gray-800",bottom:"bottom-full left-1/2 transform -translate-x-1/2 border-l-transparent border-r-transparent border-t-transparent border-b-gray-800",left:"left-full top-1/2 transform -translate-y-1/2 border-t-transparent border-b-transparent border-r-transparent border-l-gray-800",right:"right-full top-1/2 transform -translate-y-1/2 border-t-transparent border-b-transparent border-l-transparent border-r-gray-800"};return C.jsxs("div",{className:`relative inline-block ${n}`,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onFocus:()=>i(!0),onBlur:()=>i(!1),role:"button",tabIndex:0,children:[r,o&&C.jsxs("div",{className:`absolute z-50 px-2 py-1 text-sm text-white bg-gray-800 rounded shadow-lg whitespace-nowrap ${a[t]}`,role:"tooltip","aria-live":"polite",children:[e,C.jsx("div",{className:`absolute w-0 h-0 border-4 ${s[t]}`})]})]})},xf=e=>e===1||e==="1"||typeof e=="string"&&e.toLowerCase()==="yes"||typeof e=="string"&&e.toLowerCase()==="true"?"Yes":e===0||e==="0"||typeof e=="string"&&e.toLowerCase()==="no"||typeof e=="string"&&e.toLowerCase()==="false"?"No":e?.toString()||"-",wf=(e,t="USD")=>{try{if(e==null)return"";const r=Number(e);if(isNaN(r))return e?.toString()||"";const n=r.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2});return`${{USD:"$",EUR:"€",GBP:"£",JPY:"¥",CAD:"C$",AUD:"A$",CHF:"CHF",CNY:"¥",SEK:"kr",NOK:"kr",DKK:"kr",PLN:"zł",CZK:"Kč",HUF:"Ft",RUB:"₽",BRL:"R$",INR:"₹",KRW:"₩",SGD:"S$",HKD:"HK$",NZD:"NZ$",MXN:"$",ZAR:"R",TRY:"₺",ILS:"₪",AED:"د.إ",SAR:"﷼",QAR:"﷼",KWD:"د.ك",BHD:"د.ب",OMR:"﷼",JOD:"د.ا",LBP:"ل.ل",EGP:"£",MAD:"د.م.",TND:"د.ت",DZD:"د.ج",LYD:"ل.د",SDG:"ج.س.",ETB:"Br",KES:"KSh",UGX:"USh",TZS:"TSh",ZMW:"ZK",BWP:"P",ZWL:"Z$",AOA:"Kz",MZN:"MT",GHS:"₵",NGN:"₦",XAF:"FCFA",XOF:"CFA",CDF:"FC",RWF:"RF",BIF:"FBu",KMF:"CF",DJF:"Fdj",SOS:"S",ERN:"Nfk"}[t]||"$"}${n}`}catch{return"-"}},pa=(e,t={})=>{const{format:r,relative:n=!1,withTime:o=!0,fallback:i="-",skipTimezone:a=!1,onlyTime:s=!1}=t||{};if(!e)return i;try{const l=new Date(e);if(isNaN(l.getTime()))return i;if(n){const g=Math.floor((new Date().getTime()-l.getTime())/1e3);return g<60?"just now":g<3600?`${Math.floor(g/60)} minutes ago`:g<86400?`${Math.floor(g/3600)} hours ago`:g<2592e3?`${Math.floor(g/86400)} days ago`:g<31536e3?`${Math.floor(g/2592e3)} months ago`:`${Math.floor(g/31536e3)} years ago`}const c="MM/dd/yyyy",u="hh:mm a",d=o&&!s;return l.toLocaleDateString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:o?"2-digit":void 0,minute:o?"2-digit":void 0,hour12:!0})}catch{return i}},Qb=e=>typeof e=="string"&&/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/.test(e),Kb=E.forwardRef(({label:e,value:t,className:r,type:n="string",tags:o,tooltip:i,items:a,isModified:s=!1,isChanged:l=!1,size:c="medium",isHighlighted:u=!1,deletedValue:d,highlightColor:f="warning",isSearchActive:g=!1,originalValue:h=!1,showDiff:m=!1,theme:p="light",onUpload:b,acceptsUpload:y=!1,MasterDataModal:w,riskDetails:S,isRiskAnalysisOpen:v=!1,RiskDetailsCard:I,"aria-label":N},O)=>{const[T,P]=E.useState(!0),[M,x]=E.useState(!1),[$,k]=E.useState(null),[F,j]=E.useState(!1),z=()=>{P(!T)},W=G=>{x(!0),k({...G,value:t})},V=()=>{x(!1),k(null)},_=G=>{const Q=G.target.files?.[0];Q&&b&&b(Q),G.target.value=""},D=()=>{const G=typeof t=="string"&&Qb(t);if(g&&typeof t=="object")return t;if(t||n==="boolean"&&t===0||n==="currency"&&Number(t)>=0){if((t===!0||t==="True")&&!h)return"Yes";if((t===!1||t==="False")&&!h)return"No";if(n==="url")return C.jsx("a",{href:t,className:"text-primary-600 truncate",children:t});if(n==="boolean")return xf(t);if(n==="currency")return wf(t,a?.currency_code)||"-";if(n==="datetime"){const Q=typeof t=="string"&&t.includes("Z")?t.replace(/\.000Z$/,"Z"):t;return pa(Q,{skipTimezone:!1,withTime:!0})}else if(n==="date"||G){const Q=typeof t=="string"&&t.includes("Z")?t.replace(/\.000Z$/,"Z"):t;return pa(Q,{skipTimezone:!0,withTime:!1})}else return n==="percentage"?`${t}%`:typeof t=="string"&&t.length>100?C.jsxs("p",{children:[t.slice(0,T?100:t.length),T?"... ":" ",C.jsx("button",{id:`btn-label-value-${T?"Show more":"Show less"}`,className:"text-primary-400 text-sm hover:text-primary-500 cursor-pointer whitespace-nowrap",onClick:z,onKeyDown:Q=>{(Q.key==="Enter"||Q.key===" ")&&(Q.preventDefault(),z())},"aria-label":T?"Show more content":"Show less content",type:"button",children:T?"Show more":"Show less"})]}):t}return"-"},B=()=>{switch(c){case"small":return"text-xs";case"large":return"text-lg";default:return"text-base"}},L=()=>{switch(f){case"success":return"bg-green-100 dark:bg-green-900";case"warning":return"bg-yellow-100 dark:bg-yellow-900";case"error":return"bg-red-100 dark:bg-red-900";case"info":return"bg-blue-100 dark:bg-blue-900";default:return"bg-yellow-100 dark:bg-yellow-900"}};return C.jsxs("div",{ref:O,className:J("font-medium relative",r),onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),"aria-label":N||`Label: ${e}, Value: ${t}`,children:[C.jsxs("div",{className:J("flex gap-1 flex-wrap",B()),children:[C.jsx("span",{className:"text-neutral-600 dark:text-neutral-400",children:e}),o&&o.length>0&&C.jsx("div",{className:"flex gap-1 flex-wrap",children:o.map(G=>C.jsx(Cf,{label:G.label,color:G.color,size:"xs",theme:p},`${G.label}-${G.value||G.color}`))}),i&&C.jsx(In,{placement:"top",title:i,children:C.jsx("div",{className:"cursor-pointer",role:"button",tabIndex:0,onKeyDown:G=>{(G.key==="Enter"||G.key===" ")&&G.preventDefault()},children:C.jsx(PT,{size:14})})})]}),C.jsxs("div",{className:J("whitespace-normal break-all flex gap-1 pt-0.5",B(),s&&"bg-neutral-50 dark:bg-neutral-800 p-1 rounded",v&&S?.color&&`bg-${S.color}-50 dark:bg-${S.color}-900 border-${S.color}-300 dark:border-${S.color}-700 px-0.5 rounded-lg`),children:[m&&d&&t?C.jsxs("div",{className:"flex gap-2",children:[C.jsx("span",{className:"line-through text-red-500",children:d}),C.jsx("span",{className:"text-green-600",children:D()})]}):l||u?C.jsx("mark",{className:J("rounded-md py-0.5 px-1",L()),children:D()}):D(),a?.is_master_data&&a?.reference&&t&&C.jsx("button",{onClick:()=>W(a),onKeyDown:G=>{(G.key==="Enter"||G.key===" ")&&(G.preventDefault(),W(a))},"aria-label":`Search master data for ${e}`,type:"button",className:"cursor-pointer",children:C.jsx(kT,{size:20})}),y&&C.jsx("input",{type:"file",onChange:_,className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer","aria-label":`Upload file for ${e}`})]}),d&&!m&&C.jsx("div",{className:J("text-xs pt-1",B()),children:C.jsx("mark",{className:"rounded-md py-0.5 px-1 bg-red-100 dark:bg-red-900",children:C.jsx("del",{className:"text-red-600 dark:text-red-400",children:d||n==="boolean"&&d==="0"?d==="True"?"Yes":d==="False"?"No":n==="boolean"?xf(d):n==="currency"?wf(d,a?.currency_code):n==="date"?pa(d,{skipTimezone:!0,withTime:!1}):n==="datetime"?pa(d,{skipTimezone:!0,withTime:!0}):n==="percentage"?`${d}%`:d.length>100?C.jsxs("p",{children:[d.slice(0,T?100:d.length),T?"... ":" ",C.jsx("button",{id:`btn-label-value-${T?"Show more":"Show less"}`,className:"text-primary-400 text-sm hover:text-primary-500 cursor-pointer whitespace-nowrap",onClick:z,children:T?"Show more":"Show less"})]}):d:"-"})})}),w&&C.jsx(w,{isVisible:M,onClose:V,masterdataInfo:$}),F&&S&&v&&C.jsx("div",{className:"absolute left-0 right-0 top-[95%] mt-1 z-50 bg-white dark:bg-neutral-800 rounded-xl",onClick:G=>G.stopPropagation(),onMouseDown:G=>G.preventDefault(),onKeyDown:G=>{G.key==="Escape"&&j(!1)},role:"tooltip","aria-label":"Risk analysis details",tabIndex:0,children:I?C.jsx(I,{riskDetails:S}):C.jsx("div",{className:"shadow-lg p-4",children:C.jsxs("div",{className:"text-sm",children:[C.jsx("h4",{className:"font-semibold mb-2",children:"Risk Details"}),C.jsx("p",{className:"text-neutral-600 dark:text-neutral-300",children:S.description||"Risk analysis information"})]})})})]})});Kb.displayName="LabelValue";const e1=E.forwardRef(({status:e,children:t,additionalChildren:r,ExpandedComponent:n,expandable:o=!1,icon:i,className:a,onClick:s,"aria-label":l},c)=>{const[u,d]=E.useState(!1),f=()=>{switch(e){case"success":return"bg-green-50 dark:bg-green-950 text-green-700 dark:text-green-300 border-l-4 border-green-400 dark:border-green-600";case"error":return"bg-red-50 dark:bg-red-950 text-red-700 dark:text-red-300 border-l-4 border-red-400 dark:border-red-600";case"warning":return"bg-yellow-50 dark:bg-yellow-950 text-yellow-700 dark:text-yellow-300 border-l-4 border-yellow-400 dark:border-yellow-600";case"info":return"bg-blue-50 dark:bg-blue-950 text-blue-700 dark:text-blue-300 border-l-4 border-blue-400 dark:border-blue-600";case"archived":return"bg-neutral-50 dark:bg-neutral-950 text-neutral-700 dark:text-neutral-300 border-l-4 border-neutral-400 dark:border-neutral-600";case"canceled":return"bg-gray-50 dark:bg-gray-950 text-gray-700 dark:text-gray-300 border-l-4 border-gray-400 dark:border-gray-600";case"queued":return"bg-blue-50 dark:bg-blue-950 text-blue-700 dark:text-blue-300 border-l-4 border-blue-400 dark:border-blue-600";case"paused":return"bg-orange-50 dark:bg-orange-950 text-orange-700 dark:text-orange-300 border-l-4 border-orange-400 dark:border-orange-600";case"awaiting_action":return"bg-orange-50 dark:bg-orange-950 text-orange-700 dark:text-orange-300 border-l-4 border-orange-400 dark:border-orange-600";case"skipped":return"bg-gray-50 dark:bg-gray-950 text-gray-700 dark:text-gray-300 border-l-4 border-gray-400 dark:border-gray-600";case"pending":return"bg-purple-50 dark:bg-purple-950 text-purple-700 dark:text-purple-300 border-l-4 border-purple-400 dark:border-purple-600";default:return"bg-blue-50 dark:bg-blue-950 text-blue-700 dark:text-blue-300 border-l-4 border-blue-400 dark:border-blue-600"}},g=()=>{if(i)return i;const p="w-5 h-5 flex-shrink-0";switch(e){case"success":return C.jsx("svg",{className:J(p,"text-green-600 dark:text-green-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.236 4.53L7.53 10.06a.75.75 0 00-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})});case"error":return C.jsx("svg",{className:J(p,"text-red-600 dark:text-red-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z",clipRule:"evenodd"})});case"warning":return C.jsx("svg",{className:J(p,"text-yellow-600 dark:text-yellow-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})});case"info":case"queued":case"pending":return C.jsx("svg",{className:J(p,"text-blue-600 dark:text-blue-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})});case"paused":return C.jsx("svg",{className:J(p,"text-orange-600 dark:text-orange-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{d:"M5.75 3a.75.75 0 00-.75.75v12.5c0 .414.336.75.75.75h1.5a.75.75 0 00.75-.75V3.75A.75.75 0 007.25 3h-1.5zM12.75 3a.75.75 0 00-.75.75v12.5c0 .414.336.75.75.75h1.5a.75.75 0 00.75-.75V3.75a.75.75 0 00-.75-.75h-1.5z"})});case"archived":case"canceled":case"skipped":return C.jsx("svg",{className:J(p,"text-gray-600 dark:text-gray-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z",clipRule:"evenodd"})});case"awaiting_action":return C.jsx("svg",{className:J(p,"text-orange-600 dark:text-orange-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm.75-13a.75.75 0 00-1.5 0v5c0 .414.336.75.75.75h4a.75.75 0 000-1.5h-3.25V5z",clipRule:"evenodd"})});default:return C.jsx("svg",{className:J(p,"text-blue-600 dark:text-blue-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})})}},h=()=>{(o||e==="error")&&(d(!u),s?.())},m=o||e==="error";return C.jsxs("div",{ref:c,className:J("w-full",a),children:[C.jsxs("div",{className:J("flex items-center justify-between p-4 rounded-lg font-medium text-sm transition-all duration-200",f(),m&&["cursor-pointer select-none","hover:shadow-md","active:scale-[0.99]"]),onClick:h,role:m?"button":void 0,tabIndex:m?0:void 0,onKeyDown:p=>{m&&(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),h())},"aria-label":l||`Banner: ${e}`,"aria-expanded":m?u:void 0,children:[C.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[g(),C.jsx("span",{className:"flex-1",children:t})]}),C.jsxs("div",{className:"flex items-center gap-2",children:[r&&C.jsx("div",{className:"flex items-center",children:r}),m&&C.jsx("div",{className:"flex items-center",children:C.jsx("svg",{className:J("w-5 h-5 transition-transform duration-200",u?"rotate-180":"rotate-0"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]})]}),C.jsx(Ze.AnimatePresence,{children:u&&n&&C.jsx(Ze.motion.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"overflow-hidden",children:C.jsx("div",{className:"pt-2",children:C.jsx(n,{children:t})})})})]})});e1.displayName="Banner";var Ht=function(){return Ht=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ht.apply(this,arguments)},t1={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},r1={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Bl={width:"20px",height:"20px",position:"absolute",zIndex:1},FT={top:Ht(Ht({},t1),{top:"-5px"}),right:Ht(Ht({},r1),{left:void 0,right:"-5px"}),bottom:Ht(Ht({},t1),{top:void 0,bottom:"-5px"}),left:Ht(Ht({},r1),{left:"-5px"}),topRight:Ht(Ht({},Bl),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Ht(Ht({},Bl),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Ht(Ht({},Bl),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Ht(Ht({},Bl),{left:"-10px",top:"-10px",cursor:"nw-resize"})},$T=E.memo(function(e){var t=e.onResizeStart,r=e.direction,n=e.children,o=e.replaceStyles,i=e.className,a=E.useCallback(function(c){t(c,r)},[t,r]),s=E.useCallback(function(c){t(c,r)},[t,r]),l=E.useMemo(function(){return Ht(Ht({position:"absolute",userSelect:"none"},FT[r]),o??{})},[o,r]);return C.jsx("div",{className:i||void 0,style:l,onMouseDown:a,onTouchStart:s,children:n})}),MT=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),dn=function(){return dn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},dn.apply(this,arguments)},jT={width:"auto",height:"auto"},zl=function(e,t,r){return Math.max(Math.min(e,r),t)},n1=function(e,t,r){var n=Math.round(e/t);return n*t+r*(n-1)},ui=function(e,t){return new RegExp(e,"i").test(t)},Gl=function(e){return!!(e.touches&&e.touches.length)},RT=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},o1=function(e,t,r){r===void 0&&(r=0);var n=t.reduce(function(i,a,s){return Math.abs(a-e)<Math.abs(t[i]-e)?s:i},0),o=Math.abs(t[n]-e);return r===0||o<r?t[n]:e},Sf=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},Hl=function(e,t,r,n){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var o=Number(e.replace("%",""))/100;return t*o}if(e.endsWith("vw")){var o=Number(e.replace("vw",""))/100;return r*o}if(e.endsWith("vh")){var o=Number(e.replace("vh",""))/100;return n*o}}return e},LT=function(e,t,r,n,o,i,a){return n=Hl(n,e.width,t,r),o=Hl(o,e.height,t,r),i=Hl(i,e.width,t,r),a=Hl(a,e.height,t,r),{maxWidth:typeof n>"u"?void 0:Number(n),maxHeight:typeof o>"u"?void 0:Number(o),minWidth:typeof i>"u"?void 0:Number(i),minHeight:typeof a>"u"?void 0:Number(a)}},DT=function(e){return Array.isArray(e)?e:[e,e]},_T=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],i1="__resizable_base__",VT=function(e){MT(t,e);function t(r){var n,o,i,a,s=e.call(this,r)||this;return s.ratio=1,s.resizable=null,s.parentLeft=0,s.parentTop=0,s.resizableLeft=0,s.resizableRight=0,s.resizableTop=0,s.resizableBottom=0,s.targetLeft=0,s.targetTop=0,s.delta={width:0,height:0},s.appendBase=function(){if(!s.resizable||!s.window)return null;var l=s.parentNode;if(!l)return null;var c=s.window.document.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.position="absolute",c.style.transform="scale(0, 0)",c.style.left="0",c.style.flex="0 0 100%",c.classList?c.classList.add(i1):c.className+=i1,l.appendChild(c),c},s.removeBase=function(l){var c=s.parentNode;c&&c.removeChild(l)},s.state={isResizing:!1,width:(o=(n=s.propsSize)===null||n===void 0?void 0:n.width)!==null&&o!==void 0?o:"auto",height:(a=(i=s.propsSize)===null||i===void 0?void 0:i.height)!==null&&a!==void 0?a:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},s.onResizeStart=s.onResizeStart.bind(s),s.onMouseMove=s.onMouseMove.bind(s),s.onMouseUp=s.onMouseUp.bind(s),s}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||jT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,i=this.resizable.offsetHeight,a=this.resizable.style.position;a!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:o,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:i,this.resizable.style.position=a}return{width:r,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,n=this.props.size,o=function(s){var l;if(typeof r.state[s]>"u"||r.state[s]==="auto")return"auto";if(r.propsSize&&r.propsSize[s]&&(!((l=r.propsSize[s])===null||l===void 0)&&l.toString().endsWith("%"))){if(r.state[s].toString().endsWith("%"))return r.state[s].toString();var c=r.getParentSize(),u=Number(r.state[s].toString().replace("px","")),d=u/c[s]*100;return"".concat(d,"%")}return Sf(r.state[s])},i=n&&typeof n.width<"u"&&!this.state.isResizing?Sf(n.width):o("width"),a=n&&typeof n.height<"u"&&!this.state.isResizing?Sf(n.height):o("height");return{width:i,height:a}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var r=this.appendBase();if(!r)return{width:0,height:0};var n=!1,o=this.parentNode.style.flexWrap;o!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var i={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=o),this.removeBase(r),i},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,n){var o=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof o>"u"||o==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var o=this.props.boundsByDirection,i=this.state.direction,a=o&&ui("left",i),s=o&&ui("top",i),l,c;if(this.props.bounds==="parent"){var u=this.parentNode;u&&(l=a?this.resizableRight-this.parentLeft:u.offsetWidth+(this.parentLeft-this.resizableLeft),c=s?this.resizableBottom-this.parentTop:u.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(l=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,c=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(l=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),c=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return l&&Number.isFinite(l)&&(r=r&&r<l?r:l),c&&Number.isFinite(c)&&(n=n&&n<c?n:c),{maxWidth:r,maxHeight:n}},t.prototype.calculateNewSizeFromDirection=function(r,n){var o=this.props.scale||1,i=DT(this.props.resizeRatio||1),a=i[0],s=i[1],l=this.state,c=l.direction,u=l.original,d=this.props,f=d.lockAspectRatio,g=d.lockAspectRatioExtraHeight,h=d.lockAspectRatioExtraWidth,m=u.width,p=u.height,b=g||0,y=h||0;return ui("right",c)&&(m=u.width+(r-u.x)*a/o,f&&(p=(m-y)/this.ratio+b)),ui("left",c)&&(m=u.width-(r-u.x)*a/o,f&&(p=(m-y)/this.ratio+b)),ui("bottom",c)&&(p=u.height+(n-u.y)*s/o,f&&(m=(p-b)*this.ratio+y)),ui("top",c)&&(p=u.height-(n-u.y)*s/o,f&&(m=(p-b)*this.ratio+y)),{newWidth:m,newHeight:p}},t.prototype.calculateNewSizeFromAspectRatio=function(r,n,o,i){var a=this.props,s=a.lockAspectRatio,l=a.lockAspectRatioExtraHeight,c=a.lockAspectRatioExtraWidth,u=typeof i.width>"u"?10:i.width,d=typeof o.width>"u"||o.width<0?r:o.width,f=typeof i.height>"u"?10:i.height,g=typeof o.height>"u"||o.height<0?n:o.height,h=l||0,m=c||0;if(s){var p=(f-h)*this.ratio+m,b=(g-h)*this.ratio+m,y=(u-m)/this.ratio+h,w=(d-m)/this.ratio+h,S=Math.max(u,p),v=Math.min(d,b),I=Math.max(f,y),N=Math.min(g,w);r=zl(r,S,v),n=zl(n,I,N)}else r=zl(r,u,d),n=zl(n,f,g);return{newWidth:r,newHeight:n}},t.prototype.setBoundingClientRect=function(){var r=1/(this.props.scale||1);if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var o=n.getBoundingClientRect();this.parentLeft=o.left*r,this.parentTop=o.top*r}}if(this.props.bounds&&typeof this.props.bounds!="string"){var i=this.props.bounds.getBoundingClientRect();this.targetLeft=i.left*r,this.targetTop=i.top*r}if(this.resizable){var a=this.resizable.getBoundingClientRect(),s=a.left,l=a.top,c=a.right,u=a.bottom;this.resizableLeft=s*r,this.resizableRight=c*r,this.resizableTop=l*r,this.resizableBottom=u*r}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var o=0,i=0;if(r.nativeEvent&&RT(r.nativeEvent)?(o=r.nativeEvent.clientX,i=r.nativeEvent.clientY):r.nativeEvent&&Gl(r.nativeEvent)&&(o=r.nativeEvent.touches[0].clientX,i=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var a=this.props.onResizeStart(r,n,this.resizable);if(a===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var s,l=this.window.getComputedStyle(this.resizable);if(l.flexBasis!=="auto"){var c=this.parentNode;if(c){var u=this.window.getComputedStyle(c).flexDirection;this.flexDir=u.startsWith("row")?"row":"column",s=l.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var d={original:{x:o,y:i,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:dn(dn({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:s};this.setState(d)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Gl(r))try{r.preventDefault(),r.stopPropagation()}catch{}var o=this.props,i=o.maxWidth,a=o.maxHeight,s=o.minWidth,l=o.minHeight,c=Gl(r)?r.touches[0].clientX:r.clientX,u=Gl(r)?r.touches[0].clientY:r.clientY,d=this.state,f=d.direction,g=d.original,h=d.width,m=d.height,p=this.getParentSize(),b=LT(p,this.window.innerWidth,this.window.innerHeight,i,a,s,l);i=b.maxWidth,a=b.maxHeight,s=b.minWidth,l=b.minHeight;var y=this.calculateNewSizeFromDirection(c,u),w=y.newHeight,S=y.newWidth,v=this.calculateNewMaxFromBoundary(i,a);this.props.snap&&this.props.snap.x&&(S=o1(S,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(w=o1(w,this.props.snap.y,this.props.snapGap));var I=this.calculateNewSizeFromAspectRatio(S,w,{width:v.maxWidth,height:v.maxHeight},{width:s,height:l});if(S=I.newWidth,w=I.newHeight,this.props.grid){var N=n1(S,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),O=n1(w,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),T=this.props.snapGap||0,P=T===0||Math.abs(N-S)<=T?N:S,M=T===0||Math.abs(O-w)<=T?O:w;S=P,w=M}var x={width:S-g.width,height:w-g.height};if(this.delta=x,h&&typeof h=="string"){if(h.endsWith("%")){var $=S/p.width*100;S="".concat($,"%")}else if(h.endsWith("vw")){var k=S/this.window.innerWidth*100;S="".concat(k,"vw")}else if(h.endsWith("vh")){var F=S/this.window.innerHeight*100;S="".concat(F,"vh")}}if(m&&typeof m=="string"){if(m.endsWith("%")){var $=w/p.height*100;w="".concat($,"%")}else if(m.endsWith("vw")){var k=w/this.window.innerWidth*100;w="".concat(k,"vw")}else if(m.endsWith("vh")){var F=w/this.window.innerHeight*100;w="".concat(F,"vh")}}var j={width:this.createSizeForCssProperty(S,"width"),height:this.createSizeForCssProperty(w,"height")};this.flexDir==="row"?j.flexBasis=j.width:this.flexDir==="column"&&(j.flexBasis=j.height);var z=this.state.width!==j.width,W=this.state.height!==j.height,V=this.state.flexBasis!==j.flexBasis,_=z||W||V;_&&zr.flushSync(function(){n.setState(j)}),this.props.onResize&&_&&this.props.onResize(r,f,this.resizable,x)}},t.prototype.onMouseUp=function(r){var n,o,i=this.state,a=i.isResizing,s=i.direction;i.original,!(!a||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(r,s,this.resizable,this.delta),this.props.size&&this.setState({width:(n=this.props.size.width)!==null&&n!==void 0?n:"auto",height:(o=this.props.size.height)!==null&&o!==void 0?o:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:dn(dn({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(r){var n,o;this.setState({width:(n=r.width)!==null&&n!==void 0?n:"auto",height:(o=r.height)!==null&&o!==void 0?o:"auto"})},t.prototype.renderResizer=function(){var r=this,n=this.props,o=n.enable,i=n.handleStyles,a=n.handleClasses,s=n.handleWrapperStyle,l=n.handleWrapperClass,c=n.handleComponent;if(!o)return null;var u=Object.keys(o).map(function(d){return o[d]!==!1?C.jsx($T,{direction:d,onResizeStart:r.onResizeStart,replaceStyles:i&&i[d],className:a&&a[d],children:c&&c[d]?c[d]:null},d):null});return C.jsx("div",{className:l,style:s,children:u})},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(a,s){return _T.indexOf(s)!==-1||(a[s]=r.props[s]),a},{}),o=dn(dn(dn({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var i=this.props.as||"div";return C.jsxs(i,dn({style:o,className:this.props.className},n,{ref:function(a){a&&(r.resizable=a)},children:[this.state.isResizing&&C.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(E.PureComponent);const BT=()=>C.jsx("div",{className:"cursor-ew-resize flex items-center justify-center rounded-full bg-[#1018288F] bg-opacity-55 w-8 h-8 shadow-200 border-[1.5px] border-[#FFFFFF3D]",children:C.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_36675_12",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:C.jsx("rect",{y:"20",width:"20",height:"20",transform:"rotate(-90 0 20)",fill:"#D9D9D9"})}),C.jsx("g",{mask:"url(#mask0_36675_12)",children:C.jsx("path",{d:"M15.9583 10L12.7292 6.77084C12.5625 6.60418 12.4792 6.40973 12.4792 6.18751C12.4792 5.96529 12.5625 5.77084 12.7292 5.60418C12.8958 5.43751 13.0938 5.35418 13.3229 5.35418C13.5521 5.35418 13.75 5.43751 13.9167 5.60418L17.1458 8.81251C17.4653 9.13195 17.625 9.52779 17.625 10C17.625 10.4722 17.4653 10.8681 17.1458 11.1875L13.9167 14.4167C13.75 14.5833 13.5521 14.6632 13.3229 14.6563C13.0938 14.6493 12.8958 14.5625 12.7292 14.3958C12.5625 14.2292 12.4792 14.0313 12.4792 13.8021C12.4792 13.5729 12.5625 13.375 12.7292 13.2083L15.9583 10ZM4.04167 10L7.25 13.2083C7.41667 13.375 7.49653 13.5695 7.48958 13.7917C7.48264 14.0139 7.40278 14.2083 7.25 14.375C7.08333 14.5417 6.88542 14.6285 6.65625 14.6354C6.42708 14.6424 6.22917 14.5625 6.0625 14.3958L2.85417 11.1875C2.53472 10.8681 2.375 10.4722 2.375 10C2.375 9.52779 2.53472 9.13195 2.85417 8.81251L6.0625 5.60418C6.22917 5.43751 6.42708 5.35765 6.65625 5.36459C6.88542 5.37154 7.08333 5.45834 7.25 5.62501C7.40278 5.79168 7.48264 5.98612 7.48958 6.20834C7.49653 6.43057 7.41667 6.62501 7.25 6.79168L4.04167 10Z",fill:"white"})})]})}),zT=(e,t)=>{const r=document.getElementById(e);r?t(r):requestAnimationFrame(()=>{const n=document.getElementById(e);n&&t(n)})},GT=(e,t)=>{if(e.current){if(t)localStorage.setItem("resizable-sidebar-width-before-fullscreen",String(e.current.size?.width));else{const r=localStorage.getItem("resizable-sidebar-width-before-fullscreen");if(r){e.current.updateSize({width:r,height:"100%"});return}}e.current.updateSize({width:t?"100vw":"",height:"100%"})}},a1=e=>e==="dark"?"bg-black-800 border-black-700":"bg-white border-neutral-200",HT=e=>e==="dark"?"hover:bg-neutral-700":"hover:bg-neutral-200",WT=(e,t,r,n,o,i)=>{const[a,s]=E.useState(!1),[l,c]=E.useState(null);return E.useEffect(()=>{if(!e||typeof window>"u"){c(null);return}zT(e,c)},[e]),E.useEffect(()=>{GT(o,r)},[r]),E.useEffect(()=>{if(e&&t){const u=requestAnimationFrame(()=>{s(!0)});return()=>{cancelAnimationFrame(u),s(!1)}}e||s(!0),t||s(!1)},[t,e]),E.useEffect(()=>{o.current?.size?.width&&n&&n(o.current.size.width)},[o.current?.size?.width,n]),{shouldRenderSidebar:a,portalTarget:l}},UT=({isOpen:e,header:t,id:r,ref:n,className:o,containerClassName:i,widthStyle:a,heightStyle:s,motionVariants:l,resizableRef:c,fullScreen:u,maxResizableWidth:d,minWidth:f,handleKey:g,theme:h,onDragEnd:m,onResize:p,children:b})=>C.jsx(Ze.AnimatePresence,{children:e&&C.jsx(Ze.motion.div,{ref:n,id:r,initial:l.initial,animate:l.animate,exit:l.exit,transition:{type:"tween",duration:.3},className:J("flex-shrink-0 z-50 relative",a1(h),u?"fixed w-full transition translate-x-4 duration-300":"sticky",o),style:{width:a,height:s},children:C.jsx(VT,{onResize:y=>{y.stopPropagation();const w=c.current?.size?.width;p&&p(w||f)},onResizeStart:y=>{y.stopPropagation()},ref:c,maxWidth:u?d:d*.75,minWidth:f,minHeight:s,maxHeight:s,enable:u?{}:{[g]:!0},handleClasses:{[g]:J("relative w-6 -left-1 flex items-center justify-center bg-transparent transition-colors cursor-ew-resize group z-[9999]",HT(h))},handleComponent:{[g]:C.jsx("div",{className:J("absolute -left-2.5 top-1/2 -translate-y-1/2 flex items-center justify-center w-8 h-12 cursor-ew-resize opacity-0 group-hover:opacity-100 hover:opacity-100 active:opacity-100 transition-opacity z-[9999]",g==="left"&&"-right-2.5 -left-auto"),children:C.jsx(BT,{})})},className:"!h-full",onResizeStop:m||void 0,children:C.jsxs("div",{className:J("h-full w-full flex flex-col overflow-hidden @container/sidebar",a1(h),h==="dark"&&"border",i),children:[t?C.jsx("div",{className:"py-4 px-6",children:t||null}):null,C.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:b})]})})})}),s1=E.forwardRef(({isOpen:e,children:t,fullScreen:r=!1,defaultSize:n=void 0,minWidth:o=400,onDragEnd:i=null,onResize:a,className:s,placement:l="right",parentContainer:c,header:u,id:d,containerClassName:f,ignoreParentContainerHeight:g=!1,height:h,isMainSidebarExpanded:m=!1,mainSidebarExpandedWidth:p=280,mainSidebarCollapsedWidth:b=80,navbarHeight:y=64,theme:w="light"},S)=>{const v=m?p:b,I=E.useRef(null),{shouldRenderSidebar:N,portalTarget:O}=WT(c,e,r,a,I),T=typeof window<"u"?window.innerWidth-v:0,P=n,M=l==="right",x=h||(c&&!g?"100%":`calc(100vh - ${y}px)`),$={initial:{x:M?"100%":"-100%"},animate:{x:0},exit:{x:M?"100%":"-100%"}},k=M?"left":"right",F=C.jsx(UT,{isOpen:e,header:u,id:d,ref:S,className:s,containerClassName:f,widthStyle:P,heightStyle:x,motionVariants:$,resizableRef:I,fullScreen:r,maxResizableWidth:T,minWidth:o,handleKey:k,theme:w,onDragEnd:i,onResize:a,children:t});return c?!N||!O?null:zr.createPortal(F,O):N?F:null});s1.displayName="ResizableSidebar";const l1=E.forwardRef(({pdfUrl:e,width:t="100%",height:r="100vh",className:n,iframeClassName:o,title:i="PDF Viewer",showLoading:a=!0,loadingComponent:s,errorComponent:l,onError:c,onLoad:u,allowFullScreen:d=!0,"aria-label":f},g)=>{const[h,m]=E.useState(!0),[p,b]=E.useState(!1),y=()=>{m(!1),b(!1),u?.()},w=()=>{m(!1),b(!0),c?.()},S=C.jsx("div",{className:"flex items-center justify-center h-full bg-neutral-50 dark:bg-neutral-900",children:C.jsxs("div",{className:"text-center",children:[C.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600 mx-auto mb-4"}),C.jsx("p",{className:"text-neutral-600 dark:text-neutral-400 text-sm",children:"Loading PDF..."})]})}),v=C.jsx("div",{className:"flex items-center justify-center h-full bg-neutral-50 dark:bg-neutral-900",children:C.jsxs("div",{className:"text-center p-6",children:[C.jsx("svg",{className:"mx-auto h-12 w-12 text-red-400 mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.998-.833-2.768 0L3.046 16.5c-.77.833.192 2.5 1.732 2.5z"})}),C.jsx("h3",{className:"text-lg font-medium text-neutral-900 dark:text-neutral-100 mb-2",children:"Failed to load PDF"}),C.jsx("p",{className:"text-neutral-600 dark:text-neutral-400 text-sm mb-4",children:"The PDF document could not be displayed. Please check the URL or try again later."}),C.jsx("button",{onClick:()=>{b(!1),m(!0);const N=document.querySelector(`iframe[src="${e}"]`);N&&(N.src=N.src)},className:"bg-blue-600 text-white px-4 py-2 rounded-md text-sm hover:bg-blue-700 transition-colors",children:"Retry"})]})});return!e||!(N=>{try{return new URL(N,window.location.href).pathname.toLowerCase().endsWith(".pdf")||N.includes("pdf")}catch{return!1}})(e)?C.jsx("div",{ref:g,className:J("relative overflow-hidden",n),style:{width:t,height:r},children:l||v}):C.jsxs("div",{ref:g,className:J("relative overflow-hidden",n),style:{width:t,height:r},"aria-label":f||`PDF Viewer: ${i}`,children:[h&&a&&C.jsx("div",{className:"absolute inset-0 z-10",children:s||S}),p&&C.jsx("div",{className:"absolute inset-0 z-10",children:l||v}),!p&&C.jsx("iframe",{src:e,title:i,className:J("w-full h-full border-none",h&&"opacity-0",o),onLoad:y,onError:w,allowFullScreen:d,loading:"lazy",sandbox:"allow-same-origin allow-scripts allow-forms","aria-label":f||`PDF document: ${i}`}),C.jsx("div",{className:"sr-only",children:"PDF document viewer. Use your browser's PDF controls to navigate, zoom, or download the document."})]})});l1.displayName="PdfViewer";const c1=({ref:e,handler:t,enabled:r=!0})=>{E.useEffect(()=>{if(!r)return;const n=o=>{e.current&&!e.current.contains(o.target)&&t()};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[e,t,r])},u1=E.forwardRef(({children:e,component:t,placement:r="bottom",isOpen:n,toggleMenu:o,parentContainer:i,noSpacing:a=!1,triggerClassName:s,containerClassName:l,className:c,showArrow:u=!1,offset:d=8,disableOutsideClick:f=!1,"aria-label":g,disabled:h=!1},m)=>{const p=E.useRef(null),b=E.useRef(null);c1({ref:b,handler:()=>{!f&&n&&o?.()},enabled:n&&!f}),E.useEffect(()=>{if(!n||!p.current||!b.current)return;const I=p.current,N=b.current,O=I.getBoundingClientRect(),T=N.getBoundingClientRect(),P={width:window.innerWidth,height:window.innerHeight};let M=0,x=0;switch(r){case"top":M=O.top-T.height-d,x=O.left+(O.width-T.width)/2;break;case"top-start":M=O.top-T.height-d,x=O.left;break;case"top-end":M=O.top-T.height-d,x=O.right-T.width;break;case"bottom":M=O.bottom+d,x=O.left+(O.width-T.width)/2;break;case"bottom-start":M=O.bottom+d,x=O.left;break;case"bottom-end":M=O.bottom+d,x=O.right-T.width;break;case"left":M=O.top+(O.height-T.height)/2,x=O.left-T.width-d;break;case"left-start":M=O.top,x=O.left-T.width-d;break;case"left-end":M=O.bottom-T.height,x=O.left-T.width-d;break;case"right":M=O.top+(O.height-T.height)/2,x=O.right+d;break;case"right-start":M=O.top,x=O.right+d;break;case"right-end":M=O.bottom-T.height,x=O.right+d;break}x<0&&(x=8),x+T.width>P.width&&(x=P.width-T.width-8),M<0&&(M=8),M+T.height>P.height&&(M=P.height-T.height-8),N.style.top=`${M}px`,N.style.left=`${x}px`},[n,r,d]);const y=I=>{h||o?.(I)},w=I=>{I.key==="Escape"&&n&&o?.()},S=()=>{const I="absolute w-2 h-2 bg-white dark:bg-neutral-800 transform rotate-45 border";switch(r){case"top":case"top-start":case"top-end":return J(I,"bottom-[-4px] border-t-0 border-l-0");case"bottom":case"bottom-start":case"bottom-end":return J(I,"top-[-4px] border-b-0 border-r-0");case"left":case"left-start":case"left-end":return J(I,"right-[-4px] border-l-0 border-b-0");case"right":case"right-start":case"right-end":return J(I,"left-[-4px] border-r-0 border-t-0");default:return J(I,"top-[-4px] border-b-0 border-r-0")}},v=()=>{switch(r){case"top":case"bottom":return{left:"50%",transform:"translateX(-50%)"};case"top-start":case"bottom-start":return{left:"12px"};case"top-end":case"bottom-end":return{right:"12px"};case"left":case"right":return{top:"50%",transform:"translateY(-50%)"};case"left-start":case"right-start":return{top:"12px"};case"left-end":case"right-end":return{bottom:"12px"};default:return{left:"50%",transform:"translateX(-50%)"}}};return C.jsxs("div",{ref:m,className:J("relative inline-block",c),children:[C.jsx("button",{ref:p,onClick:y,onKeyDown:w,className:J("flex items-center justify-center outline-none focus:outline-none transition-colors",!a&&"p-2",h&&"opacity-50 cursor-not-allowed",s),"aria-label":g,"aria-expanded":n,"aria-haspopup":"true",disabled:h,type:"button",children:e}),n&&zr.createPortal(C.jsx(Ze.AnimatePresence,{children:C.jsxs(Ze.motion.div,{ref:b,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.15},className:J("fixed z-[9999] bg-white dark:bg-neutral-800 rounded-lg shadow-lg border border-neutral-200 dark:border-neutral-700","focus:outline-none",l),style:{minWidth:"120px"},role:"menu","aria-orientation":"vertical",tabIndex:-1,children:[u&&C.jsx("div",{className:S(),style:v()}),C.jsx("div",{className:"relative",children:t})]})}),document.getElementById(i)||document.body)]})});u1.displayName="Popper";const ga=e=>typeof e=="number"&&!isNaN(e),yo=e=>typeof e=="string",Ir=e=>typeof e=="function",Wl=e=>yo(e)||Ir(e)?e:null,Ef=e=>E.isValidElement(e)||yo(e)||Ir(e)||ga(e);function XT(e,t,r){r===void 0&&(r=300);const{scrollHeight:n,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=n+"px",o.transition=`all ${r}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,r)})})}function Ul(e){let{enter:t,exit:r,appendPosition:n=!1,collapse:o=!0,collapseDuration:i=300}=e;return function(a){let{children:s,position:l,preventExitTransition:c,done:u,nodeRef:d,isIn:f,playToast:g}=a;const h=n?`${t}--${l}`:t,m=n?`${r}--${l}`:r,p=E.useRef(0);return E.useLayoutEffect(()=>{const b=d.current,y=h.split(" "),w=S=>{S.target===d.current&&(g(),b.removeEventListener("animationend",w),b.removeEventListener("animationcancel",w),p.current===0&&S.type!=="animationcancel"&&b.classList.remove(...y))};b.classList.add(...y),b.addEventListener("animationend",w),b.addEventListener("animationcancel",w)},[]),E.useEffect(()=>{const b=d.current,y=()=>{b.removeEventListener("animationend",y),o?XT(b,u,i):u()};f||(c?y():(p.current=1,b.className+=` ${m}`,b.addEventListener("animationend",y)))},[f]),E.createElement(E.Fragment,null,s)}}function d1(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const dr=new Map;let ha=[];const If=new Set,YT=e=>If.forEach(t=>t(e)),f1=()=>dr.size>0;function m1(e,t){var r;if(t)return!((r=dr.get(t))==null||!r.isToastActive(e));let n=!1;return dr.forEach(o=>{o.isToastActive(e)&&(n=!0)}),n}function p1(e,t){Ef(e)&&(f1()||ha.push({content:e,options:t}),dr.forEach(r=>{r.buildToast(e,t)}))}function g1(e,t){dr.forEach(r=>{t!=null&&t!=null&&t.containerId?t?.containerId===r.id&&r.toggle(e,t?.id):r.toggle(e,t?.id)})}function JT(e){const{subscribe:t,getSnapshot:r,setProps:n}=E.useRef(function(i){const a=i.containerId||1;return{subscribe(s){const l=function(u,d,f){let g=1,h=0,m=[],p=[],b=[],y=d;const w=new Map,S=new Set,v=()=>{b=Array.from(w.values()),S.forEach(O=>O())},I=O=>{p=O==null?[]:p.filter(T=>T!==O),v()},N=O=>{const{toastId:T,onOpen:P,updateId:M,children:x}=O.props,$=M==null;O.staleId&&w.delete(O.staleId),w.set(T,O),p=[...p,O.props.toastId].filter(k=>k!==O.staleId),v(),f(d1(O,$?"added":"updated")),$&&Ir(P)&&P(E.isValidElement(x)&&x.props)};return{id:u,props:y,observe:O=>(S.add(O),()=>S.delete(O)),toggle:(O,T)=>{w.forEach(P=>{T!=null&&T!==P.props.toastId||Ir(P.toggle)&&P.toggle(O)})},removeToast:I,toasts:w,clearQueue:()=>{h-=m.length,m=[]},buildToast:(O,T)=>{if((B=>{let{containerId:L,toastId:G,updateId:Q}=B;const q=L?L!==u:u!==1,U=w.has(G)&&Q==null;return q||U})(T))return;const{toastId:P,updateId:M,data:x,staleId:$,delay:k}=T,F=()=>{I(P)},j=M==null;j&&h++;const z={...y,style:y.toastStyle,key:g++,...Object.fromEntries(Object.entries(T).filter(B=>{let[L,G]=B;return G!=null})),toastId:P,updateId:M,data:x,closeToast:F,isIn:!1,className:Wl(T.className||y.toastClassName),bodyClassName:Wl(T.bodyClassName||y.bodyClassName),progressClassName:Wl(T.progressClassName||y.progressClassName),autoClose:!T.isLoading&&(W=T.autoClose,V=y.autoClose,W===!1||ga(W)&&W>0?W:V),deleteToast(){const B=w.get(P),{onClose:L,children:G}=B.props;Ir(L)&&L(E.isValidElement(G)&&G.props),f(d1(B,"removed")),w.delete(P),h--,h<0&&(h=0),m.length>0?N(m.shift()):v()}};var W,V;z.closeButton=y.closeButton,T.closeButton===!1||Ef(T.closeButton)?z.closeButton=T.closeButton:T.closeButton===!0&&(z.closeButton=!Ef(y.closeButton)||y.closeButton);let _=O;E.isValidElement(O)&&!yo(O.type)?_=E.cloneElement(O,{closeToast:F,toastProps:z,data:x}):Ir(O)&&(_=O({closeToast:F,toastProps:z,data:x}));const D={content:_,props:z,staleId:$};y.limit&&y.limit>0&&h>y.limit&&j?m.push(D):ga(k)?setTimeout(()=>{N(D)},k):N(D)},setProps(O){y=O},setToggle:(O,T)=>{w.get(O).toggle=T},isToastActive:O=>p.some(T=>T===O),getSnapshot:()=>b}}(a,i,YT);dr.set(a,l);const c=l.observe(s);return ha.forEach(u=>p1(u.content,u.options)),ha=[],()=>{c(),dr.delete(a)}},setProps(s){var l;(l=dr.get(a))==null||l.setProps(s)},getSnapshot(){var s;return(s=dr.get(a))==null?void 0:s.getSnapshot()}}}(e)).current;n(e);const o=E.useSyncExternalStore(t,r,r);return{getToastToRender:function(i){if(!o)return[];const a=new Map;return e.newestOnTop&&o.reverse(),o.forEach(s=>{const{position:l}=s.props;a.has(l)||a.set(l,[]),a.get(l).push(s)}),Array.from(a,s=>i(s[0],s[1]))},isToastActive:m1,count:o?.length}}function ZT(e){const[t,r]=E.useState(!1),[n,o]=E.useState(!1),i=E.useRef(null),a=E.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:l,closeToast:c,onClick:u,closeOnClick:d}=e;var f,g;function h(){r(!0)}function m(){r(!1)}function p(w){const S=i.current;a.canDrag&&S&&(a.didMove=!0,t&&m(),a.delta=e.draggableDirection==="x"?w.clientX-a.start:w.clientY-a.start,a.start!==w.clientX&&(a.canCloseOnClick=!1),S.style.transform=`translate3d(${e.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,S.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function b(){document.removeEventListener("pointermove",p),document.removeEventListener("pointerup",b);const w=i.current;if(a.canDrag&&a.didMove&&w){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();w.style.transition="transform 0.2s, opacity 0.2s",w.style.removeProperty("transform"),w.style.removeProperty("opacity")}}(g=dr.get((f={id:e.toastId,containerId:e.containerId,fn:r}).containerId||1))==null||g.setToggle(f.id,f.fn),E.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||m(),window.addEventListener("focus",h),window.addEventListener("blur",m),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",m)}},[e.pauseOnFocusLoss]);const y={onPointerDown:function(w){if(e.draggable===!0||e.draggable===w.pointerType){a.didMove=!1,document.addEventListener("pointermove",p),document.addEventListener("pointerup",b);const S=i.current;a.canCloseOnClick=!0,a.canDrag=!0,S.style.transition="none",e.draggableDirection==="x"?(a.start=w.clientX,a.removalDistance=S.offsetWidth*(e.draggablePercent/100)):(a.start=w.clientY,a.removalDistance=S.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(w){const{top:S,bottom:v,left:I,right:N}=i.current.getBoundingClientRect();w.nativeEvent.type!=="touchend"&&e.pauseOnHover&&w.clientX>=I&&w.clientX<=N&&w.clientY>=S&&w.clientY<=v?m():h()}};return s&&l&&(y.onMouseEnter=m,e.stacked||(y.onMouseLeave=h)),d&&(y.onClick=w=>{u&&u(w),a.canCloseOnClick&&c()}),{playToast:h,pauseToast:m,isRunning:t,preventExitTransition:n,toastRef:i,eventHandlers:y}}function qT(e){let{delay:t,isRunning:r,closeToast:n,type:o="default",hide:i,className:a,style:s,controlledProgress:l,progress:c,rtl:u,isIn:d,theme:f}=e;const g=i||l&&c===0,h={...s,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused"};l&&(h.transform=`scaleX(${c})`);const m=cn("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),p=Ir(a)?a({rtl:u,type:o,defaultClassName:m}):cn(m,a),b={[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{d&&n()}};return E.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":g},E.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${o}`}),E.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:p,style:h,...b}))}let QT=1;const h1=()=>""+QT++;function KT(e){return e&&(yo(e.toastId)||ga(e.toastId))?e.toastId:h1()}function va(e,t){return p1(e,t),t.toastId}function Xl(e,t){return{...t,type:t&&t.type||e,toastId:KT(t)}}function Yl(e){return(t,r)=>va(t,Xl(e,r))}function Pe(e,t){return va(e,Xl("default",t))}Pe.loading=(e,t)=>va(e,Xl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Pe.promise=function(e,t,r){let n,{pending:o,error:i,success:a}=t;o&&(n=yo(o)?Pe.loading(o,r):Pe.loading(o.render,{...r,...o}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(u,d,f)=>{if(d==null)return void Pe.dismiss(n);const g={type:u,...s,...r,data:f},h=yo(d)?{render:d}:d;return n?Pe.update(n,{...g,...h}):Pe(h.render,{...g,...h}),f},c=Ir(e)?e():e;return c.then(u=>l("success",a,u)).catch(u=>l("error",i,u)),c},Pe.success=Yl("success"),Pe.info=Yl("info"),Pe.error=Yl("error"),Pe.warning=Yl("warning"),Pe.warn=Pe.warning,Pe.dark=(e,t)=>va(e,Xl("default",{theme:"dark",...t})),Pe.dismiss=function(e){(function(t){var r;if(f1()){if(t==null||yo(r=t)||ga(r))dr.forEach(n=>{n.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const n=dr.get(t.containerId);n?n.removeToast(t.id):dr.forEach(o=>{o.removeToast(t.id)})}}else ha=ha.filter(n=>t!=null&&n.options.toastId!==t)})(e)},Pe.clearWaitingQueue=function(e){e===void 0&&(e={}),dr.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},Pe.isActive=m1,Pe.update=function(e,t){t===void 0&&(t={});const r=((n,o)=>{var i;let{containerId:a}=o;return(i=dr.get(a||1))==null?void 0:i.toasts.get(n)})(e,t);if(r){const{props:n,content:o}=r,i={delay:100,...n,...t,toastId:t.toastId||e,updateId:h1()};i.toastId!==e&&(i.staleId=e);const a=i.render||o;delete i.render,va(a,i)}},Pe.done=e=>{Pe.update(e,{progress:1})},Pe.onChange=function(e){return If.add(e),()=>{If.delete(e)}},Pe.play=e=>g1(!0,e),Pe.pause=e=>g1(!1,e);const eP=typeof window<"u"?E.useLayoutEffect:E.useEffect,Jl=e=>{let{theme:t,type:r,isLoading:n,...o}=e;return E.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${r})`,...o})},Af={info:function(e){return E.createElement(Jl,{...e},E.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return E.createElement(Jl,{...e},E.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return E.createElement(Jl,{...e},E.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return E.createElement(Jl,{...e},E.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return E.createElement("div",{className:"Toastify__spinner"})}},tP=e=>{const{isRunning:t,preventExitTransition:r,toastRef:n,eventHandlers:o,playToast:i}=ZT(e),{closeButton:a,children:s,autoClose:l,onClick:c,type:u,hideProgressBar:d,closeToast:f,transition:g,position:h,className:m,style:p,bodyClassName:b,bodyStyle:y,progressClassName:w,progressStyle:S,updateId:v,role:I,progress:N,rtl:O,toastId:T,deleteToast:P,isIn:M,isLoading:x,closeOnClick:$,theme:k}=e,F=cn("Toastify__toast",`Toastify__toast-theme--${k}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":O},{"Toastify__toast--close-on-click":$}),j=Ir(m)?m({rtl:O,position:h,type:u,defaultClassName:F}):cn(F,m),z=function(D){let{theme:B,type:L,isLoading:G,icon:Q}=D,q=null;const U={theme:B,type:L};return Q===!1||(Ir(Q)?q=Q({...U,isLoading:G}):E.isValidElement(Q)?q=E.cloneElement(Q,U):G?q=Af.spinner():(K=>K in Af)(L)&&(q=Af[L](U))),q}(e),W=!!N||!l,V={closeToast:f,type:u,theme:k};let _=null;return a===!1||(_=Ir(a)?a(V):E.isValidElement(a)?E.cloneElement(a,V):function(D){let{closeToast:B,theme:L,ariaLabel:G="close"}=D;return E.createElement("button",{className:`Toastify__close-button Toastify__close-button--${L}`,type:"button",onClick:Q=>{Q.stopPropagation(),B(Q)},"aria-label":G},E.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},E.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(V)),E.createElement(g,{isIn:M,done:P,position:h,preventExitTransition:r,nodeRef:n,playToast:i},E.createElement("div",{id:T,onClick:c,"data-in":M,className:j,...o,style:p,ref:n},E.createElement("div",{...M&&{role:I},className:Ir(b)?b({type:u}):cn("Toastify__toast-body",b),style:y},z!=null&&E.createElement("div",{className:cn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!x})},z),E.createElement("div",null,s)),_,E.createElement(qT,{...v&&!W?{key:`pb-${v}`}:{},rtl:O,theme:k,delay:l,isRunning:t,isIn:M,closeToast:f,hide:d,type:u,style:S,className:w,controlledProgress:W,progress:N||0})))},Zl=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},rP=Ul(Zl("bounce",!0)),nP=Ul(Zl("slide",!0));Ul(Zl("zoom")),Ul(Zl("flip"));const oP={position:"top-right",transition:rP,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function iP(e){let t={...oP,...e};const r=e.stacked,[n,o]=E.useState(!0),i=E.useRef(null),{getToastToRender:a,isToastActive:s,count:l}=JT(t),{className:c,style:u,rtl:d,containerId:f}=t;function g(m){const p=cn("Toastify__toast-container",`Toastify__toast-container--${m}`,{"Toastify__toast-container--rtl":d});return Ir(c)?c({position:m,rtl:d,defaultClassName:p}):cn(p,Wl(c))}function h(){r&&(o(!0),Pe.play())}return eP(()=>{if(r){var m;const p=i.current.querySelectorAll('[data-in="true"]'),b=12,y=(m=t.position)==null?void 0:m.includes("top");let w=0,S=0;Array.from(p).reverse().forEach((v,I)=>{const N=v;N.classList.add("Toastify__toast--stacked"),I>0&&(N.dataset.collapsed=`${n}`),N.dataset.pos||(N.dataset.pos=y?"top":"bot");const O=w*(n?.2:1)+(n?0:b*I);N.style.setProperty("--y",`${y?O:-1*O}px`),N.style.setProperty("--g",`${b}`),N.style.setProperty("--s",""+(1-(n?S:0))),w+=N.offsetHeight,S+=.025})}},[n,l,r]),E.createElement("div",{ref:i,className:"Toastify",id:f,onMouseEnter:()=>{r&&(o(!1),Pe.pause())},onMouseLeave:h},a((m,p)=>{const b=p.length?{...u}:{...u,pointerEvents:"none"};return E.createElement("div",{className:g(m),style:b,key:`container-${m}`},p.map(y=>{let{content:w,props:S}=y;return E.createElement(tP,{...S,stacked:r,collapseAll:h,isIn:s(S.toastId,S.containerId),style:S.style,key:`toast-${S.key}`},w)}))}))}const aP=({size:e=24,fill:t="#12B76A"})=>C.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,xmlns:"http://www.w3.org/2000/svg",children:C.jsx("g",{mask:"url(#mask0_4874_46615)",children:C.jsx("path",{d:"M10.6 13.8L8.425 11.625C8.24167 11.4417 8.01267 11.3543 7.738 11.363C7.46267 11.371 7.23333 11.4667 7.05 11.65C6.86667 11.8333 6.775 12.0667 6.775 12.35C6.775 12.6333 6.86667 12.8667 7.05 13.05L9.9 15.9C10.0833 16.0833 10.3167 16.175 10.6 16.175C10.8833 16.175 11.1167 16.0833 11.3 15.9L16.975 10.225C17.1583 10.0417 17.246 9.81233 17.238 9.537C17.2293 9.26233 17.1333 9.03333 16.95 8.85C16.7667 8.66667 16.5333 8.575 16.25 8.575C15.9667 8.575 15.7333 8.66667 15.55 8.85L10.6 13.8ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6873 5.825 19.975 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26267 14.6833 2 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31267 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.31233 8.1 2.787C9.31667 2.26233 10.6167 2 12 2C13.3833 2 14.6833 2.26233 15.9 2.787C17.1167 3.31233 18.175 4.025 19.075 4.925C19.975 5.825 20.6873 6.88333 21.212 8.1C21.7373 9.31667 22 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6873 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6873 15.9 21.212C14.6833 21.7373 13.3833 22 12 22ZM12 20C14.2167 20 16.1043 19.221 17.663 17.663C19.221 16.1043 20 14.2167 20 12C20 9.78333 19.221 7.89567 17.663 6.337C16.1043 4.779 14.2167 4 12 4C9.78333 4 7.896 4.779 6.338 6.337C4.77933 7.89567 4 9.78333 4 12C4 14.2167 4.77933 16.1043 6.338 17.663C7.896 19.221 9.78333 20 12 20Z",fill:t})})}),sP=({size:e=24,fill:t="#F04438"})=>C.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("g",{id:"error",children:C.jsx("g",{mask:"url(#mask0_4874_46622)",children:C.jsx("path",{id:"error_2",d:"M12 17C12.2833 17 12.5208 16.9042 12.7125 16.7125C12.9042 16.5208 13 16.2833 13 16C13 15.7167 12.9042 15.4792 12.7125 15.2875C12.5208 15.0958 12.2833 15 12 15C11.7167 15 11.4792 15.0958 11.2875 15.2875C11.0958 15.4792 11 15.7167 11 16C11 16.2833 11.0958 16.5208 11.2875 16.7125C11.4792 16.9042 11.7167 17 12 17ZM12 13C12.2833 13 12.5208 12.9042 12.7125 12.7125C12.9042 12.5208 13 12.2833 13 12V8C13 7.71667 12.9042 7.47917 12.7125 7.2875C12.5208 7.09583 12.2833 7 12 7C11.7167 7 11.4792 7.09583 11.2875 7.2875C11.0958 7.47917 11 7.71667 11 8V12C11 12.2833 11.0958 12.5208 11.2875 12.7125C11.4792 12.9042 11.7167 13 12 13ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:t})})})}),lP=({size:e=24,fill:t="#F79009"})=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:C.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99ZM2.74 18C1.97 19.33 2.93 21 4.47 21H19.53C21.07 21 22.03 19.33 21.26 18L13.73 4.99C12.96 3.66 11.04 3.66 10.27 4.99L2.74 18ZM11 11V13C11 13.55 11.45 14 12 14C12.55 14 13 13.55 13 13V11C13 10.45 12.55 10 12 10C11.45 10 11 10.45 11 11ZM11 16H13V18H11V16Z",fill:t})}),cP=({size:e=24,fill:t="#016DCF"})=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[C.jsx("mask",{id:"mask0_32271_5688",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),C.jsx("g",{mask:"url(#mask0_32271_5688)",children:C.jsx("path",{d:"M12 17C12.2833 17 12.5208 16.9042 12.7125 16.7125C12.9042 16.5208 13 16.2833 13 16V12C13 11.7167 12.9042 11.4792 12.7125 11.2875C12.5208 11.0958 12.2833 11 12 11C11.7167 11 11.4792 11.0958 11.2875 11.2875C11.0958 11.4792 11 11.7167 11 12V16C11 16.2833 11.0958 16.5208 11.2875 16.7125C11.4792 16.9042 11.7167 17 12 17ZM12 9C12.2833 9 12.5208 8.90417 12.7125 8.7125C12.9042 8.52083 13 8.28333 13 8C13 7.71667 12.9042 7.47917 12.7125 7.2875C12.5208 7.09583 12.2833 7 12 7C11.7167 7 11.4792 7.09583 11.2875 7.2875C11.0958 7.47917 11 7.71667 11 8C11 8.28333 11.0958 8.52083 11.2875 8.7125C11.4792 8.90417 11.7167 9 12 9ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:t})})]}),uP=({size:e=24,fill:t="#016DCF"})=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[C.jsx("mask",{id:"mask0_35096_2621",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),C.jsx("g",{mask:"url(#mask0_35096_2621)",children:C.jsx("path",{d:"M8 20H16V17C16 15.9 15.6083 14.9583 14.825 14.175C14.0417 13.3917 13.1 13 12 13C10.9 13 9.95833 13.3917 9.175 14.175C8.39167 14.9583 8 15.9 8 17V20ZM12 11C13.1 11 14.0417 10.6083 14.825 9.825C15.6083 9.04167 16 8.1 16 7V4H8V7C8 8.1 8.39167 9.04167 9.175 9.825C9.95833 10.6083 10.9 11 12 11ZM5 22C4.71667 22 4.47917 21.9042 4.2875 21.7125C4.09583 21.5208 4 21.2833 4 21C4 20.7167 4.09583 20.4792 4.2875 20.2875C4.47917 20.0958 4.71667 20 5 20H6V17C6 15.9833 6.2375 15.0292 6.7125 14.1375C7.1875 13.2458 7.85 12.5333 8.7 12C7.85 11.4667 7.1875 10.7542 6.7125 9.8625C6.2375 8.97083 6 8.01667 6 7V4H5C4.71667 4 4.47917 3.90417 4.2875 3.7125C4.09583 3.52083 4 3.28333 4 3C4 2.71667 4.09583 2.47917 4.2875 2.2875C4.47917 2.09583 4.71667 2 5 2H19C19.2833 2 19.5208 2.09583 19.7125 2.2875C19.9042 2.47917 20 2.71667 20 3C20 3.28333 19.9042 3.52083 19.7125 3.7125C19.5208 3.90417 19.2833 4 19 4H18V7C18 8.01667 17.7625 8.97083 17.2875 9.8625C16.8125 10.7542 16.15 11.4667 15.3 12C16.15 12.5333 16.8125 13.2458 17.2875 14.1375C17.7625 15.0292 18 15.9833 18 17V20H19C19.2833 20 19.5208 20.0958 19.7125 20.2875C19.9042 20.4792 20 20.7167 20 21C20 21.2833 19.9042 21.5208 19.7125 21.7125C19.5208 21.9042 19.2833 22 19 22H5Z",fill:t})})]}),dP=({size:e=16})=>C.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{d:"M18.3 5.71a.996.996 0 00-1.41 0L12 10.59 7.11 5.7A.996.996 0 105.7 7.11L10.59 12 5.7 16.89a.996.996 0 101.41 1.41L12 13.41l4.89 4.89a.996.996 0 101.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"})}),fP=e=>{switch(e){case"success":return C.jsx("div",{className:"w-8 h-8 bg-green-50 dark:bg-green-900 rounded-full p-1 flex justify-center items-center",children:C.jsx(aP,{size:24,fill:"#12B76A"})});case"error":return C.jsx("div",{className:"w-8 h-8 bg-red-50 dark:bg-red-900 rounded-full p-1 flex justify-center items-center",children:C.jsx(sP,{fill:"#F04438",size:24})});case"warning":return C.jsx("div",{className:"w-8 h-8 bg-yellow-50 dark:bg-yellow-900 rounded-full p-1 flex justify-center items-center",children:C.jsx(lP,{fill:"#F79009",size:24})});case"info":return C.jsx("div",{className:"w-8 h-8 bg-blue-50 dark:bg-blue-900 rounded-full p-1 flex justify-center items-center",children:C.jsx(cP,{})});case"in-progress":return C.jsx("div",{className:"w-8 h-8 bg-blue-50 dark:bg-blue-900 rounded-full p-1 flex justify-center items-center",children:C.jsx(uP,{})});default:return null}},mP={success:"border-b-[5px] !border-green-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600",error:"border-b-[5px] !border-red-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600",warning:"border-b-[5px] !border-yellow-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600",info:"border-b-[5px] !border-blue-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600","in-progress":"border-b-[5px] !border-blue-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600"},pP=({closeToast:e})=>C.jsx("button",{onClick:e,className:"text-neutral-900 dark:text-white hover:text-neutral-600 dark:hover:text-neutral-300 transition-colors",children:C.jsx(dP,{size:16})}),gP=({position:e="bottom-right",autoClose:t=3e3,hideProgressBar:r=!0,newestOnTop:n=!0,closeOnClick:o=!0,pauseOnFocusLoss:i=!1,draggable:a=!0,pauseOnHover:s=!0,rtl:l=!1,className:c,style:u={zIndex:1e5},...d})=>C.jsx(iP,{position:e,transition:nP,autoClose:t,hideProgressBar:r,newestOnTop:n,closeOnClick:o,rtl:l,pauseOnFocusLoss:i,draggable:a,pauseOnHover:s,icon:({type:f})=>fP(f),bodyStyle:{gap:"4px"},style:u,toastClassName:f=>{const{type:g="",defaultClassName:h=""}=f||{};return`w-[100%] sm:w-[400px] bg-white dark:bg-neutral-800 rounded-[4px] font-medium text-sm text-neutral-900 dark:text-white shadow-lg p-[20px] min-h-0 ${h} ${mP[g]} ${c||""}`},closeButton:pP,...d}),hP={success:(e,t)=>Pe.success(e,t),error:(e,t)=>Pe.error(e,t),warning:(e,t)=>Pe.warning(e,t),info:(e,t)=>Pe.info(e,t),inProgress:(e,t)=>Pe(e,{...t,type:"in-progress"}),dismiss:e=>Pe.dismiss(e),isActive:e=>Pe.isActive(e)};typeof window<"u"&&(window.CODEIUM_REACT_CODE_VERSION="1.0.12");function v1(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 Nf(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(e,[])).next())})}typeof SuppressedError=="function"&&SuppressedError;function gr(e,t){if(!e)throw new Error(t)}const vP=34028234663852886e22,bP=-34028234663852886e22,yP=4294967295,CP=2147483647,xP=-2147483648;function ql(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>CP||e<xP)throw new Error("invalid int 32: "+e)}function Of(e){if(typeof e!="number")throw new Error("invalid uint 32: "+typeof e);if(!Number.isInteger(e)||e>yP||e<0)throw new Error("invalid uint 32: "+e)}function b1(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>vP||e<bP))throw new Error("invalid float 32: "+e)}const y1=Symbol("@bufbuild/protobuf/enum-type");function wP(e){const t=e[y1];return gr(t,"missing enum type on enum object"),t}function C1(e,t,r,n){e[y1]=x1(t,r.map(o=>({no:o.no,name:o.name,localName:e[o.no]})))}function x1(e,t,r){const n=Object.create(null),o=Object.create(null),i=[];for(const a of t){const s=w1(a);i.push(s),n[a.name]=s,o[a.no]=s}return{typeName:e,values:i,findName(a){return n[a]},findNumber(a){return o[a]}}}function SP(e,t,r){const n={};for(const o of t){const i=w1(o);n[i.localName]=i.no,n[i.no]=i.localName}return C1(n,e,t),n}function w1(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}class mt{equals(t){return this.getType().runtime.util.equals(this.getType(),this,t)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(t,r){const n=this.getType(),o=n.runtime.bin,i=o.makeReadOptions(r);return o.readMessage(this,i.readerFactory(t),t.byteLength,i),this}fromJson(t,r){const n=this.getType(),o=n.runtime.json,i=o.makeReadOptions(r);return o.readMessage(n,t,i,this),this}fromJsonString(t,r){let n;try{n=JSON.parse(t)}catch(o){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${o instanceof Error?o.message:String(o)}`)}return this.fromJson(n,r)}toBinary(t){const r=this.getType(),n=r.runtime.bin,o=n.makeWriteOptions(t),i=o.writerFactory();return n.writeMessage(this,i,o),i.finish()}toJson(t){const r=this.getType(),n=r.runtime.json,o=n.makeWriteOptions(t);return n.writeMessage(this,o)}toJsonString(t){var r;const n=this.toJson(t);return JSON.stringify(n,null,(r=t?.prettySpaces)!==null&&r!==void 0?r:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}function EP(e,t,r,n){var o;const i=(o=n?.localName)!==null&&o!==void 0?o:t.substring(t.lastIndexOf(".")+1),a={[i]:function(s){e.util.initFields(this),e.util.initPartial(s,this)}}[i];return Object.setPrototypeOf(a.prototype,new mt),Object.assign(a,{runtime:e,typeName:t,fields:e.util.newFieldList(r),fromBinary(s,l){return new a().fromBinary(s,l)},fromJson(s,l){return new a().fromJson(s,l)},fromJsonString(s,l){return new a().fromJsonString(s,l)},equals(s,l){return e.util.equals(a,s,l)}}),a}function IP(e,t,r,n){return{syntax:e,json:t,bin:r,util:n,makeMessageType(o,i,a){return EP(this,o,i,a)},makeEnum:SP,makeEnumType:x1,getEnumType:wP}}var re;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(re||(re={}));var Co;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(Co||(Co={}));function AP(){let e=0,t=0;for(let n=0;n<28;n+=7){let o=this.buf[this.pos++];if(e|=(o&127)<<n,(o&128)==0)return this.assertBounds(),[e,t]}let r=this.buf[this.pos++];if(e|=(r&15)<<28,t=(r&112)>>4,(r&128)==0)return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let o=this.buf[this.pos++];if(t|=(o&127)<<n,(o&128)==0)return this.assertBounds(),[e,t]}throw new Error("invalid varint")}function Tf(e,t,r){for(let i=0;i<28;i=i+7){const a=e>>>i,s=!(!(a>>>7)&&t==0),l=(s?a|128:a)&255;if(r.push(l),!s)return}const n=e>>>28&15|(t&7)<<4,o=t>>3!=0;if(r.push((o?n|128:n)&255),!!o){for(let i=3;i<31;i=i+7){const a=t>>>i,s=!!(a>>>7),l=(s?a|128:a)&255;if(r.push(l),!s)return}r.push(t>>>31&1)}}const Ql=4294967296;function S1(e){const t=e[0]==="-";t&&(e=e.slice(1));const r=1e6;let n=0,o=0;function i(a,s){const l=Number(e.slice(a,s));o*=r,n=n*r+l,n>=Ql&&(o=o+(n/Ql|0),n=n%Ql)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),t?I1(n,o):Pf(n,o)}function NP(e,t){let r=Pf(e,t);const n=r.hi&2147483648;n&&(r=I1(r.lo,r.hi));const o=E1(r.lo,r.hi);return n?"-"+o:o}function E1(e,t){if({lo:e,hi:t}=OP(e,t),t<=2097151)return String(Ql*t+e);const r=e&16777215,n=(e>>>24|t<<8)&16777215,o=t>>16&65535;let i=r+n*6777216+o*6710656,a=n+o*8147497,s=o*2;const l=1e7;return i>=l&&(a+=Math.floor(i/l),i%=l),a>=l&&(s+=Math.floor(a/l),a%=l),s.toString()+A1(a)+A1(i)}function OP(e,t){return{lo:e>>>0,hi:t>>>0}}function Pf(e,t){return{lo:e|0,hi:t|0}}function I1(e,t){return t=~t,e?e=~e+1:t+=1,Pf(e,t)}const A1=e=>{const t=String(e);return"0000000".slice(t.length)+t};function N1(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let r=0;r<9;r++)t.push(e&127|128),e=e>>7;t.push(1)}}function TP(){let e=this.buf[this.pos++],t=e&127;if((e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,(e&128)==0)return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let r=5;(e&128)!==0&&r<10;r++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");return this.assertBounds(),t>>>0}function PP(){const e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(typeof process!="object"||typeof process.env!="object"||process.env.BUF_BIGINT_DISABLE!=="1")){const o=BigInt("-9223372036854775808"),i=BigInt("9223372036854775807"),a=BigInt("0"),s=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(l){const c=typeof l=="bigint"?l:BigInt(l);if(c>i||c<o)throw new Error(`int64 invalid: ${l}`);return c},uParse(l){const c=typeof l=="bigint"?l:BigInt(l);if(c>s||c<a)throw new Error(`uint64 invalid: ${l}`);return c},enc(l){return e.setBigInt64(0,this.parse(l),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(l){return e.setBigInt64(0,this.uParse(l),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec(l,c){return e.setInt32(0,l,!0),e.setInt32(4,c,!0),e.getBigInt64(0,!0)},uDec(l,c){return e.setInt32(0,l,!0),e.setInt32(4,c,!0),e.getBigUint64(0,!0)}}}const r=o=>gr(/^-?[0-9]+$/.test(o),`int64 invalid: ${o}`),n=o=>gr(/^[0-9]+$/.test(o),`uint64 invalid: ${o}`);return{zero:"0",supported:!1,parse(o){return typeof o!="string"&&(o=o.toString()),r(o),o},uParse(o){return typeof o!="string"&&(o=o.toString()),n(o),o},enc(o){return typeof o!="string"&&(o=o.toString()),r(o),S1(o)},uEnc(o){return typeof o!="string"&&(o=o.toString()),n(o),S1(o)},dec(o,i){return NP(o,i)},uDec(o,i){return E1(o,i)}}}const dt=PP();var $t;(function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"})($t||($t={}));class kP{constructor(t){this.stack=[],this.textEncoder=t??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let t=0;for(let o=0;o<this.chunks.length;o++)t+=this.chunks[o].length;let r=new Uint8Array(t),n=0;for(let o=0;o<this.chunks.length;o++)r.set(this.chunks[o],n),n+=this.chunks[o].length;return this.chunks=[],r}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let t=this.finish(),r=this.stack.pop();if(!r)throw new Error("invalid state, fork stack empty");return this.chunks=r.chunks,this.buf=r.buf,this.uint32(t.byteLength),this.raw(t)}tag(t,r){return this.uint32((t<<3|r)>>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(Of(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return ql(t),N1(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let r=this.textEncoder.encode(t);return this.uint32(r.byteLength),this.raw(r)}float(t){b1(t);let r=new Uint8Array(4);return new DataView(r.buffer).setFloat32(0,t,!0),this.raw(r)}double(t){let r=new Uint8Array(8);return new DataView(r.buffer).setFloat64(0,t,!0),this.raw(r)}fixed32(t){Of(t);let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,t,!0),this.raw(r)}sfixed32(t){ql(t);let r=new Uint8Array(4);return new DataView(r.buffer).setInt32(0,t,!0),this.raw(r)}sint32(t){return ql(t),t=(t<<1^t>>31)>>>0,N1(t,this.buf),this}sfixed64(t){let r=new Uint8Array(8),n=new DataView(r.buffer),o=dt.enc(t);return n.setInt32(0,o.lo,!0),n.setInt32(4,o.hi,!0),this.raw(r)}fixed64(t){let r=new Uint8Array(8),n=new DataView(r.buffer),o=dt.uEnc(t);return n.setInt32(0,o.lo,!0),n.setInt32(4,o.hi,!0),this.raw(r)}int64(t){let r=dt.enc(t);return Tf(r.lo,r.hi,this.buf),this}sint64(t){let r=dt.enc(t),n=r.hi>>31,o=r.lo<<1^n,i=(r.hi<<1|r.lo>>>31)^n;return Tf(o,i,this.buf),this}uint64(t){let r=dt.uEnc(t);return Tf(r.lo,r.hi,this.buf),this}}class FP{constructor(t,r){this.varint64=AP,this.uint32=TP,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=r??new TextDecoder}tag(){let t=this.uint32(),r=t>>>3,n=t&7;if(r<=0||n<0||n>5)throw new Error("illegal tag: field no "+r+" wire type "+n);return[r,n]}skip(t){let r=this.pos;switch(t){case $t.Varint:for(;this.buf[this.pos++]&128;);break;case $t.Bit64:this.pos+=4;case $t.Bit32:this.pos+=4;break;case $t.LengthDelimited:let n=this.uint32();this.pos+=n;break;case $t.StartGroup:let o;for(;(o=this.tag()[1])!==$t.EndGroup;)this.skip(o);break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(r,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return dt.dec(...this.varint64())}uint64(){return dt.uDec(...this.varint64())}sint64(){let[t,r]=this.varint64(),n=-(t&1);return t=(t>>>1|(r&1)<<31)^n,r=r>>>1^n,dt.dec(t,r)}bool(){let[t,r]=this.varint64();return t!==0||r!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return dt.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return dt.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),r=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(r,r+t)}string(){return this.textDecoder.decode(this.bytes())}}function kf(e,t){return t instanceof mt||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}re.DOUBLE,re.FLOAT,re.INT64,re.UINT64,re.INT32,re.UINT32,re.BOOL,re.STRING,re.BYTES;function Kn(e,t,r){if(t===r)return!0;if(e==re.BYTES){if(!(t instanceof Uint8Array)||!(r instanceof Uint8Array)||t.length!==r.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==r[n])return!1;return!0}switch(e){case re.UINT64:case re.FIXED64:case re.INT64:case re.SFIXED64:case re.SINT64:return t==r}return!1}function Ff(e,t){switch(e){case re.BOOL:return!1;case re.UINT64:case re.FIXED64:case re.INT64:case re.SFIXED64:case re.SINT64:return t==0?dt.zero:"0";case re.DOUBLE:case re.FLOAT:return 0;case re.BYTES:return new Uint8Array(0);case re.STRING:return"";default:return 0}}function O1(e,t){const r=t===void 0;let n=$t.Varint,o=t===0;switch(e){case re.STRING:o=r||!t.length,n=$t.LengthDelimited;break;case re.BOOL:o=t===!1;break;case re.DOUBLE:n=$t.Bit64;break;case re.FLOAT:n=$t.Bit32;break;case re.INT64:o=r||t==0;break;case re.UINT64:o=r||t==0;break;case re.FIXED64:o=r||t==0,n=$t.Bit64;break;case re.BYTES:o=r||!t.byteLength,n=$t.LengthDelimited;break;case re.FIXED32:n=$t.Bit32;break;case re.SFIXED32:n=$t.Bit32;break;case re.SFIXED64:o=r||t==0,n=$t.Bit64;break;case re.SINT64:o=r||t==0;break}const i=re[e].toLowerCase();return[n,i,r||o]}const di=Symbol("@bufbuild/protobuf/unknown-fields"),T1={readUnknownFields:!0,readerFactory:e=>new FP(e)},P1={writeUnknownFields:!0,writerFactory:()=>new kP};function $P(e){return e?Object.assign(Object.assign({},T1),e):T1}function MP(e){return e?Object.assign(Object.assign({},P1),e):P1}function jP(){return{makeReadOptions:$P,makeWriteOptions:MP,listUnknownFields(e){var t;return(t=e[di])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[di]},writeUnknownFields(e,t){const n=e[di];if(n)for(const o of n)t.tag(o.no,o.wireType).raw(o.data)},onUnknownField(e,t,r,n){const o=e;Array.isArray(o[di])||(o[di]=[]),o[di].push({no:t,wireType:r,data:n})},readMessage(e,t,r,n){const o=e.getType(),i=r===void 0?t.len:t.pos+r;for(;t.pos<i;){const[a,s]=t.tag(),l=o.fields.find(a);if(!l){const f=t.skip(s);n.readUnknownFields&&this.onUnknownField(e,a,s,f);continue}let c=e,u=l.repeated,d=l.localName;switch(l.oneof&&(c=c[l.oneof.localName],c.case!=d&&delete c.value,c.case=d,d="value"),l.kind){case"scalar":case"enum":const f=l.kind=="enum"?re.INT32:l.T;let g=ec;if(l.kind=="scalar"&&l.L>0&&(g=LP),u){let b=c[d];if(s==$t.LengthDelimited&&f!=re.STRING&&f!=re.BYTES){let y=t.uint32()+t.pos;for(;t.pos<y;)b.push(g(t,f))}else b.push(g(t,f))}else c[d]=g(t,f);break;case"message":const h=l.T;u?c[d].push(Kl(t,new h,n)):c[d]instanceof mt?Kl(t,c[d],n):(c[d]=Kl(t,new h,n),h.fieldWrapper&&!l.oneof&&!l.repeated&&(c[d]=h.fieldWrapper.unwrapField(c[d])));break;case"map":let[m,p]=RP(l,t,n);c[d][m]=p;break}}}}}function Kl(e,t,r){return t.getType().runtime.bin.readMessage(t,e,e.uint32(),r),t}function RP(e,t,r){const n=t.uint32(),o=t.pos+n;let i,a;for(;t.pos<o;){let[s]=t.tag();switch(s){case 1:i=ec(t,e.K);break;case 2:switch(e.V.kind){case"scalar":a=ec(t,e.V.T);break;case"enum":a=t.int32();break;case"message":a=Kl(t,new e.V.T,r);break}break}}if(i===void 0){let s=Ff(e.K,Co.BIGINT);i=e.K==re.BOOL?s.toString():s}if(typeof i!="string"&&typeof i!="number"&&(i=i.toString()),a===void 0)switch(e.V.kind){case"scalar":a=Ff(e.V.T,Co.BIGINT);break;case"enum":a=0;break;case"message":a=new e.V.T;break}return[i,a]}function LP(e,t){const r=ec(e,t);return typeof r=="bigint"?r.toString():r}function ec(e,t){switch(t){case re.STRING:return e.string();case re.BOOL:return e.bool();case re.DOUBLE:return e.double();case re.FLOAT:return e.float();case re.INT32:return e.int32();case re.INT64:return e.int64();case re.UINT64:return e.uint64();case re.FIXED64:return e.fixed64();case re.BYTES:return e.bytes();case re.FIXED32:return e.fixed32();case re.SFIXED32:return e.sfixed32();case re.SFIXED64:return e.sfixed64();case re.SINT64:return e.sint64();case re.UINT32:return e.uint32();case re.SINT32:return e.sint32()}}function DP(e,t,r,n,o){e.tag(r.no,$t.LengthDelimited),e.fork();let i=n;switch(r.K){case re.INT32:case re.FIXED32:case re.UINT32:case re.SFIXED32:case re.SINT32:i=Number.parseInt(n);break;case re.BOOL:gr(n=="true"||n=="false"),i=n=="true";break}switch(ba(e,r.K,1,i,!0),r.V.kind){case"scalar":ba(e,r.V.T,2,o,!0);break;case"enum":ba(e,re.INT32,2,o,!0);break;case"message":$f(e,t,r.V.T,2,o);break}e.join()}function $f(e,t,r,n,o){if(o!==void 0){const i=kf(r,o);e.tag(n,$t.LengthDelimited).bytes(i.toBinary(t))}}function ba(e,t,r,n,o){let[i,a,s]=O1(t,n);(!s||o)&&e.tag(r,i)[a](n)}function _P(e,t,r,n){if(!n.length)return;e.tag(r,$t.LengthDelimited).fork();let[,o]=O1(t);for(let i=0;i<n.length;i++)e[o](n[i]);e.join()}function VP(){return Object.assign(Object.assign({},jP()),{writeMessage(e,t,r){const n=e.getType();for(const o of n.fields.byNumber()){let i,a=o.repeated,s=o.localName;if(o.oneof){const l=e[o.oneof.localName];if(l.case!==s)continue;i=l.value}else i=e[s];switch(o.kind){case"scalar":case"enum":let l=o.kind=="enum"?re.INT32:o.T;if(a)if(o.packed)_P(t,l,o.no,i);else for(const c of i)ba(t,l,o.no,c,!0);else i!==void 0&&ba(t,l,o.no,i,!!o.oneof||o.opt);break;case"message":if(a)for(const c of i)$f(t,r,o.T,o.no,c);else $f(t,r,o.T,o.no,i);break;case"map":for(const[c,u]of Object.entries(i))DP(t,r,o,c,u);break}}return r.writeUnknownFields&&this.writeUnknownFields(e,t),t}})}let An="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),tc=[];for(let e=0;e<An.length;e++)tc[An[e].charCodeAt(0)]=e;tc[45]=An.indexOf("+"),tc[95]=An.indexOf("/");const rc={dec(e){let t=e.length*3/4;e[e.length-2]=="="?t-=2:e[e.length-1]=="="&&(t-=1);let r=new Uint8Array(t),n=0,o=0,i,a=0;for(let s=0;s<e.length;s++){if(i=tc[e.charCodeAt(s)],i===void 0)switch(e[s]){case"=":o=0;case`
|
|
321
|
-
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(o){case 0:a=i,o=1;break;case 1:r[n++]=a<<2|(i&48)>>4,a=i,o=2;break;case 2:r[n++]=(a&15)<<4|(i&60)>>2,a=i,o=3;break;case 3:r[n++]=(a&3)<<6|i,o=0;break}}if(o==1)throw Error("invalid base64 string.");return r.subarray(0,n)},enc(e){let t="",r=0,n,o=0;for(let i=0;i<e.length;i++)switch(n=e[i],r){case 0:t+=An[n>>2],o=(n&3)<<4,r=1;break;case 1:t+=An[o|n>>4],o=(n&15)<<2,r=2;break;case 2:t+=An[o|n>>6],t+=An[n&63],r=0;break}return r&&(t+=An[o],t+="=",r==1&&(t+="=")),t}},k1={ignoreUnknownFields:!1},F1={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function BP(e){return e?Object.assign(Object.assign({},k1),e):k1}function zP(e){return e?Object.assign(Object.assign({},F1),e):F1}function GP(e){const t=e(HP,M1);return{makeReadOptions:BP,makeWriteOptions:zP,readMessage(r,n,o,i){if(n==null||Array.isArray(n)||typeof n!="object")throw new Error(`cannot decode message ${r.typeName} from JSON: ${this.debug(n)}`);i=i??new r;const a={};for(const[s,l]of Object.entries(n)){const c=r.fields.findJsonName(s);if(!c){if(!o.ignoreUnknownFields)throw new Error(`cannot decode message ${r.typeName} from JSON: key "${s}" is unknown`);continue}let u=c.localName,d=i;if(c.oneof){if(l===null&&c.kind=="scalar")continue;const f=a[c.oneof.localName];if(f)throw new Error(`cannot decode message ${r.typeName} from JSON: multiple keys for oneof "${c.oneof.name}" present: "${f}", "${s}"`);a[c.oneof.localName]=s,d=d[c.oneof.localName]={case:u},u="value"}if(c.repeated){if(l===null)continue;if(!Array.isArray(l))throw new Error(`cannot decode field ${r.typeName}.${c.name} from JSON: ${this.debug(l)}`);const f=d[u];for(const g of l){if(g===null)throw new Error(`cannot decode field ${r.typeName}.${c.name} from JSON: ${this.debug(g)}`);let h;switch(c.kind){case"message":h=c.T.fromJson(g,o);break;case"enum":if(h=Mf(c.T,g,o.ignoreUnknownFields),h===void 0)continue;break;case"scalar":try{h=ya(c.T,g,c.L)}catch(m){let p=`cannot decode field ${r.typeName}.${c.name} from JSON: ${this.debug(g)}`;throw m instanceof Error&&m.message.length>0&&(p+=`: ${m.message}`),new Error(p)}break}f.push(h)}}else if(c.kind=="map"){if(l===null)continue;if(Array.isArray(l)||typeof l!="object")throw new Error(`cannot decode field ${r.typeName}.${c.name} from JSON: ${this.debug(l)}`);const f=d[u];for(const[g,h]of Object.entries(l)){if(h===null)throw new Error(`cannot decode field ${r.typeName}.${c.name} from JSON: map value null`);let m;switch(c.V.kind){case"message":m=c.V.T.fromJson(h,o);break;case"enum":if(m=Mf(c.V.T,h,o.ignoreUnknownFields),m===void 0)continue;break;case"scalar":try{m=ya(c.V.T,h,Co.BIGINT)}catch(p){let b=`cannot decode map value for field ${r.typeName}.${c.name} from JSON: ${this.debug(l)}`;throw p instanceof Error&&p.message.length>0&&(b+=`: ${p.message}`),new Error(b)}break}try{f[ya(c.K,c.K==re.BOOL?g=="true"?!0:g=="false"?!1:g:g,Co.BIGINT).toString()]=m}catch(p){let b=`cannot decode map key for field ${r.typeName}.${c.name} from JSON: ${this.debug(l)}`;throw p instanceof Error&&p.message.length>0&&(b+=`: ${p.message}`),new Error(b)}}}else switch(c.kind){case"message":const f=c.T;if(l===null&&f.typeName!="google.protobuf.Value"){if(c.oneof)throw new Error(`cannot decode field ${r.typeName}.${c.name} from JSON: null is invalid for oneof field "${s}"`);continue}d[u]instanceof mt?d[u].fromJson(l,o):(d[u]=f.fromJson(l,o),f.fieldWrapper&&!c.oneof&&(d[u]=f.fieldWrapper.unwrapField(d[u])));break;case"enum":const g=Mf(c.T,l,o.ignoreUnknownFields);g!==void 0&&(d[u]=g);break;case"scalar":try{d[u]=ya(c.T,l,c.L)}catch(h){let m=`cannot decode field ${r.typeName}.${c.name} from JSON: ${this.debug(l)}`;throw h instanceof Error&&h.message.length>0&&(m+=`: ${h.message}`),new Error(m)}break}}return i},writeMessage(r,n){const o=r.getType(),i={};let a;try{for(const s of o.fields.byMember()){let l;if(s.kind=="oneof"){const c=r[s.localName];if(c.value===void 0)continue;if(a=s.findField(c.case),!a)throw"oneof case not found: "+c.case;l=t(a,c.value,n)}else a=s,l=t(a,r[a.localName],n);l!==void 0&&(i[n.useProtoFieldName?a.name:a.jsonName]=l)}}catch(s){const l=a?`cannot encode field ${o.typeName}.${a.name} to JSON`:`cannot encode message ${o.typeName} to JSON`,c=s instanceof Error?s.message:String(s);throw new Error(l+(c.length>0?`: ${c}`:""))}return i},readScalar:ya,writeScalar:M1,debug:$1}}function $1(e){if(e===null)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":`"${e.split('"').join('\\"')}"`;default:return String(e)}}function ya(e,t,r){switch(e){case re.DOUBLE:case re.FLOAT:if(t===null)return 0;if(t==="NaN")return Number.NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(t===""||typeof t=="string"&&t.trim().length!==t.length||typeof t!="string"&&typeof t!="number")break;const n=Number(t);if(Number.isNaN(n)||!Number.isFinite(n))break;return e==re.FLOAT&&b1(n),n;case re.INT32:case re.FIXED32:case re.SFIXED32:case re.SINT32:case re.UINT32:if(t===null)return 0;let o;if(typeof t=="number"?o=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(o=Number(t)),o===void 0)break;return e==re.UINT32?Of(o):ql(o),o;case re.INT64:case re.SFIXED64:case re.SINT64:if(t===null)return dt.zero;if(typeof t!="number"&&typeof t!="string")break;const i=dt.parse(t);return r?i.toString():i;case re.FIXED64:case re.UINT64:if(t===null)return dt.zero;if(typeof t!="number"&&typeof t!="string")break;const a=dt.uParse(t);return r?a.toString():a;case re.BOOL:if(t===null)return!1;if(typeof t!="boolean")break;return t;case re.STRING:if(t===null)return"";if(typeof t!="string")break;try{encodeURIComponent(t)}catch{throw new Error("invalid UTF8")}return t;case re.BYTES:if(t===null||t==="")return new Uint8Array(0);if(typeof t!="string")break;return rc.dec(t)}throw new Error}function Mf(e,t,r){if(t===null)return 0;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":const n=e.findName(t);if(n||r)return n?.no;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${$1(t)}`)}function HP(e,t,r,n){var o;if(t===void 0)return t;if(t===0&&!r)return;if(n)return t;if(e.typeName=="google.protobuf.NullValue")return null;const i=e.findNumber(t);return(o=i?.name)!==null&&o!==void 0?o:t}function M1(e,t,r){if(t!==void 0)switch(e){case re.INT32:case re.SFIXED32:case re.SINT32:case re.FIXED32:case re.UINT32:return gr(typeof t=="number"),t!=0||r?t:void 0;case re.FLOAT:case re.DOUBLE:return gr(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t!==0||r?t:void 0;case re.STRING:return gr(typeof t=="string"),t.length>0||r?t:void 0;case re.BOOL:return gr(typeof t=="boolean"),t||r?t:void 0;case re.UINT64:case re.FIXED64:case re.INT64:case re.SFIXED64:case re.SINT64:return gr(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),r||t!=0?t.toString(10):void 0;case re.BYTES:return gr(t instanceof Uint8Array),r||t.byteLength>0?rc.enc(t):void 0}}function WP(){return GP((e,t)=>function(n,o,i){if(n.kind=="map"){const a={};switch(n.V.kind){case"scalar":for(const[l,c]of Object.entries(o)){const u=t(n.V.T,c,!0);gr(u!==void 0),a[l.toString()]=u}break;case"message":for(const[l,c]of Object.entries(o))a[l.toString()]=c.toJson(i);break;case"enum":const s=n.V.T;for(const[l,c]of Object.entries(o)){gr(c===void 0||typeof c=="number");const u=e(s,c,!0,i.enumAsInteger);gr(u!==void 0),a[l.toString()]=u}break}return i.emitDefaultValues||Object.keys(a).length>0?a:void 0}else if(n.repeated){const a=[];switch(n.kind){case"scalar":for(let s=0;s<o.length;s++)a.push(t(n.T,o[s],!0));break;case"enum":for(let s=0;s<o.length;s++)a.push(e(n.T,o[s],!0,i.enumAsInteger));break;case"message":for(let s=0;s<o.length;s++)a.push(kf(n.T,o[s]).toJson(i));break}return i.emitDefaultValues||a.length>0?a:void 0}else switch(n.kind){case"scalar":return t(n.T,o,!!n.oneof||n.opt||i.emitDefaultValues);case"enum":return e(n.T,o,!!n.oneof||n.opt||i.emitDefaultValues,i.enumAsInteger);case"message":return o!==void 0?kf(n.T,o).toJson(i):void 0}})}function UP(){return{setEnumType:C1,initPartial(e,t){if(e===void 0)return;const r=t.getType();for(const n of r.fields.byMember()){const o=n.localName,i=t,a=e;if(a[o]!==void 0)switch(n.kind){case"oneof":const s=a[o].case;if(s===void 0)continue;const l=n.findField(s);let c=a[o].value;l&&l.kind=="message"&&!(c instanceof l.T)?c=new l.T(c):l&&l.kind==="scalar"&&l.T===re.BYTES&&(c=Ca(c)),i[o]={case:s,value:c};break;case"scalar":case"enum":let u=a[o];n.T===re.BYTES&&(u=n.repeated?u.map(Ca):Ca(u)),i[o]=u;break;case"map":switch(n.V.kind){case"scalar":case"enum":if(n.V.T===re.BYTES)for(const[g,h]of Object.entries(a[o]))i[o][g]=Ca(h);else Object.assign(i[o],a[o]);break;case"message":const f=n.V.T;for(const g of Object.keys(a[o])){let h=a[o][g];f.fieldWrapper||(h=new f(h)),i[o][g]=h}break}break;case"message":const d=n.T;if(n.repeated)i[o]=a[o].map(f=>f instanceof d?f:new d(f));else if(a[o]!==void 0){const f=a[o];d.fieldWrapper?d.typeName==="google.protobuf.BytesValue"?i[o]=Ca(f):i[o]=f:i[o]=f instanceof d?f:new d(f)}break}}},equals(e,t,r){return t===r?!0:!t||!r?!1:e.fields.byMember().every(n=>{const o=t[n.localName],i=r[n.localName];if(n.repeated){if(o.length!==i.length)return!1;switch(n.kind){case"message":return o.every((a,s)=>n.T.equals(a,i[s]));case"scalar":return o.every((a,s)=>Kn(n.T,a,i[s]));case"enum":return o.every((a,s)=>Kn(re.INT32,a,i[s]))}throw new Error(`repeated cannot contain ${n.kind}`)}switch(n.kind){case"message":return n.T.equals(o,i);case"enum":return Kn(re.INT32,o,i);case"scalar":return Kn(n.T,o,i);case"oneof":if(o.case!==i.case)return!1;const a=n.findField(o.case);if(a===void 0)return!0;switch(a.kind){case"message":return a.T.equals(o.value,i.value);case"enum":return Kn(re.INT32,o.value,i.value);case"scalar":return Kn(a.T,o.value,i.value)}throw new Error(`oneof cannot contain ${a.kind}`);case"map":const s=Object.keys(o).concat(Object.keys(i));switch(n.V.kind){case"message":const l=n.V.T;return s.every(u=>l.equals(o[u],i[u]));case"enum":return s.every(u=>Kn(re.INT32,o[u],i[u]));case"scalar":const c=n.V.T;return s.every(u=>Kn(c,o[u],i[u]))}break}})},clone(e){const t=e.getType(),r=new t,n=r;for(const o of t.fields.byMember()){const i=e[o.localName];let a;if(o.repeated)a=i.map(nc);else if(o.kind=="map"){a=n[o.localName];for(const[s,l]of Object.entries(i))a[s]=nc(l)}else o.kind=="oneof"?a=o.findField(i.case)?{case:i.case,value:nc(i.value)}:{case:void 0}:a=nc(i);n[o.localName]=a}return r}}}function nc(e){if(e===void 0)return e;if(e instanceof mt)return e.clone();if(e instanceof Uint8Array){const t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function Ca(e){return e instanceof Uint8Array?e:new Uint8Array(e)}class XP{constructor(t,r){this._fields=t,this._normalizer=r}findJsonName(t){if(!this.jsonNames){const r={};for(const n of this.list())r[n.jsonName]=r[n.name]=n;this.jsonNames=r}return this.jsonNames[t]}find(t){if(!this.numbers){const r={};for(const n of this.list())r[n.no]=n;this.numbers=r}return this.numbers[t]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((t,r)=>t.no-r.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const t=this.members;let r;for(const n of this.list())n.oneof?n.oneof!==r&&(r=n.oneof,t.push(r)):t.push(n)}return this.members}}function j1(e,t){const r=R1(e);return t?r:KP(QP(r))}function YP(e){return j1(e,!1)}const JP=R1;function R1(e){let t=!1;const r=[];for(let n=0;n<e.length;n++){let o=e.charAt(n);switch(o){case"_":t=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r.push(o),t=!1;break;default:t&&(t=!1,o=o.toUpperCase()),r.push(o);break}}return r.join("")}const ZP=new Set(["constructor","toString","toJSON","valueOf"]),qP=new Set(["getType","clone","equals","fromBinary","fromJson","fromJsonString","toBinary","toJson","toJsonString","toObject"]),L1=e=>`${e}$`,QP=e=>qP.has(e)?L1(e):e,KP=e=>ZP.has(e)?L1(e):e;class e7{constructor(t){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this.name=t,this.localName=YP(t)}addField(t){gr(t.oneof===this,`field ${t.name} not one of ${this.name}`),this.fields.push(t)}findField(t){if(!this._lookup){this._lookup=Object.create(null);for(let r=0;r<this.fields.length;r++)this._lookup[this.fields[r].localName]=this.fields[r]}return this._lookup[t]}}const oe=IP("proto3",WP(),VP(),Object.assign(Object.assign({},UP()),{newFieldList(e){return new XP(e,t7)},initFields(e){for(const t of e.getType().fields.byMember()){if(t.opt)continue;const r=t.localName,n=e;if(t.repeated){n[r]=[];continue}switch(t.kind){case"oneof":n[r]={case:void 0};break;case"enum":n[r]=0;break;case"map":n[r]={};break;case"scalar":n[r]=Ff(t.T,t.L);break}}}}));function t7(e){var t,r,n,o;const i=[];let a;for(const s of typeof e=="function"?e():e){const l=s;if(l.localName=j1(s.name,s.oneof!==void 0),l.jsonName=(t=s.jsonName)!==null&&t!==void 0?t:JP(s.name),l.repeated=(r=s.repeated)!==null&&r!==void 0?r:!1,s.kind=="scalar"&&(l.L=(n=s.L)!==null&&n!==void 0?n:Co.BIGINT),l.packed=(o=s.packed)!==null&&o!==void 0?o:s.kind=="enum"||s.kind=="scalar"&&s.T!=re.BYTES&&s.T!=re.STRING,s.oneof!==void 0){const c=typeof s.oneof=="string"?s.oneof:s.oneof.name;(!a||a.name!=c)&&(a=new e7(c)),l.oneof=a,a.addField(l)}i.push(l)}return i}var Lr;(function(e){e[e.Unary=0]="Unary",e[e.ServerStreaming=1]="ServerStreaming",e[e.ClientStreaming=2]="ClientStreaming",e[e.BiDiStreaming=3]="BiDiStreaming"})(Lr||(Lr={}));var jf;(function(e){e[e.NoSideEffects=1]="NoSideEffects",e[e.Idempotent=2]="Idempotent"})(jf||(jf={}));var Xe;(function(e){e[e.Canceled=1]="Canceled",e[e.Unknown=2]="Unknown",e[e.InvalidArgument=3]="InvalidArgument",e[e.DeadlineExceeded=4]="DeadlineExceeded",e[e.NotFound=5]="NotFound",e[e.AlreadyExists=6]="AlreadyExists",e[e.PermissionDenied=7]="PermissionDenied",e[e.ResourceExhausted=8]="ResourceExhausted",e[e.FailedPrecondition=9]="FailedPrecondition",e[e.Aborted=10]="Aborted",e[e.OutOfRange=11]="OutOfRange",e[e.Unimplemented=12]="Unimplemented",e[e.Internal=13]="Internal",e[e.Unavailable=14]="Unavailable",e[e.DataLoss=15]="DataLoss",e[e.Unauthenticated=16]="Unauthenticated"})(Xe||(Xe={}));function Rf(e){const t=Xe[e];return typeof t!="string"?e.toString():t[0].toLowerCase()+t.substring(1).replace(/[A-Z]/g,r=>"_"+r.toLowerCase())}let oc;function r7(e){if(!oc){oc={};for(const t of Object.values(Xe))typeof t!="string"&&(oc[Rf(t)]=t)}return oc[e]}class er extends Error{constructor(t,r=Xe.Unknown,n,o,i){super(n7(t,r)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=t,this.code=r,this.metadata=new Headers(n??{}),this.details=o??[],this.cause=i}static from(t,r=Xe.Unknown){return t instanceof er?t:t instanceof Error?t.name=="AbortError"?new er(t.message,Xe.Canceled):new er(t.message,r,void 0,void 0,t):new er(String(t),r,void 0,void 0,t)}findDetails(t){const r="typeName"in t?{findMessage:o=>o===t.typeName?t:void 0}:t,n=[];for(const o of this.details){if(o instanceof mt){r.findMessage(o.getType().typeName)&&n.push(o);continue}const i=r.findMessage(o.type);if(i)try{n.push(i.fromBinary(o.value))}catch{}}return n}}function n7(e,t){return e.length?`[${Rf(t)}] ${e}`:`[${Rf(t)}]`}function o7(...e){const t=new Headers;for(const r of e)r.forEach((n,o)=>{t.append(o,n)});return t}function i7(e,t){const r={};for(const[n,o]of Object.entries(e.methods)){const i=t(Object.assign(Object.assign({},o),{localName:n,service:e}));i!=null&&(r[n]=i)}return r}function a7(e){let t,r=new Uint8Array(0);function n(o){const i=new Uint8Array(r.length+o.length);i.set(r),i.set(o,r.length),r=i}return new ReadableStream({start(){t=e.getReader()},async pull(o){let i;for(;;){if(i===void 0&&r.byteLength>=5){let l=0;for(let c=1;c<5;c++)l=(l<<8)+r[c];i={flags:r[0],length:l}}if(i!==void 0&&r.byteLength>=i.length+5)break;const s=await t.read();if(s.done)break;n(s.value)}if(i===void 0){if(r.byteLength==0){o.close();return}o.error(new er("premature end of stream",Xe.DataLoss));return}const a=r.subarray(5,5+i.length);r=r.subarray(5+i.length),o.enqueue({flags:i.flags,data:a})}})}function s7(e,t){const r=new Uint8Array(t.length+5);r.set(t,5);const n=new DataView(r.buffer,r.byteOffset,r.byteLength);return n.setUint8(0,e),n.setUint32(1,t.length),r}var l7=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(s,l){a=e[i](a),o(s,l,a.done,a.value)})}}function o(i,a,s,l){Promise.resolve(l).then(function(c){i({value:c,done:s})},a)}},xa=function(e){return this instanceof xa?(this.v=e,this):new xa(e)},c7=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(f){n[f]&&(o[f]=function(g){return new Promise(function(h,m){i.push([f,g,h,m])>1||s(f,g)})})}function s(f,g){try{l(n[f](g))}catch(h){d(i[0][3],h)}}function l(f){f.value instanceof xa?Promise.resolve(f.value.v).then(c,u):d(i[0][2],f)}function c(f){s("next",f)}function u(f){s("throw",f)}function d(f,g){f(g),i.shift(),i.length&&s(i[0][0],i[0][1])}},u7=function(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(a){return(r=!r)?{value:xa(e[o](a)),done:!1}:i?i(a):a}:i}};function d7(e){return c7(this,arguments,function*(){yield xa(yield*u7(l7(e)))})}var D1=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(s,l){a=e[i](a),o(s,l,a.done,a.value)})}}function o(i,a,s,l){Promise.resolve(l).then(function(c){i({value:c,done:s})},a)}},fi=function(e){return this instanceof fi?(this.v=e,this):new fi(e)},f7=function(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(a){return(r=!r)?{value:fi(e[o](a)),done:!1}:i?i(a):a}:i}},m7=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(f){n[f]&&(o[f]=function(g){return new Promise(function(h,m){i.push([f,g,h,m])>1||s(f,g)})})}function s(f,g){try{l(n[f](g))}catch(h){d(i[0][3],h)}}function l(f){f.value instanceof fi?Promise.resolve(f.value.v).then(c,u):d(i[0][2],f)}function c(f){s("next",f)}function u(f){s("throw",f)}function d(f,g){f(g),i.shift(),i.length&&s(i[0][0],i[0][1])}};function p7(e,t){return i7(e,r=>{switch(r.kind){case Lr.Unary:return g7(t,e,r);case Lr.ServerStreaming:return h7(t,e,r);case Lr.ClientStreaming:return v7(t,e,r);case Lr.BiDiStreaming:return b7(t,e,r);default:return null}})}function g7(e,t,r){return async function(n,o){var i,a;const s=await e.unary(t,r,o?.signal,o?.timeoutMs,o?.headers,n,o?.contextValues);return(i=o?.onHeader)===null||i===void 0||i.call(o,s.header),(a=o?.onTrailer)===null||a===void 0||a.call(o,s.trailer),s.message}}function h7(e,t,r){return function(n,o){return _1(e.stream(t,r,o?.signal,o?.timeoutMs,o?.headers,d7([n]),o?.contextValues),o)}}function v7(e,t,r){return async function(n,o){var i,a,s,l,c,u;const d=await e.stream(t,r,o?.signal,o?.timeoutMs,o?.headers,n,o?.contextValues);(c=o?.onHeader)===null||c===void 0||c.call(o,d.header);let f;try{for(var g=!0,h=D1(d.message),m;m=await h.next(),i=m.done,!i;g=!0)l=m.value,g=!1,f=l}catch(p){a={error:p}}finally{try{!g&&!i&&(s=h.return)&&await s.call(h)}finally{if(a)throw a.error}}if(!f)throw new er("protocol error: missing response message",Xe.Internal);return(u=o?.onTrailer)===null||u===void 0||u.call(o,d.trailer),f}}function b7(e,t,r){return function(n,o){return _1(e.stream(t,r,o?.signal,o?.timeoutMs,o?.headers,n,o?.contextValues),o)}}function _1(e,t){const r=function(){var n,o;return m7(this,arguments,function*(){const i=yield fi(e);(n=t?.onHeader)===null||n===void 0||n.call(t,i.header),yield fi(yield*f7(D1(i.message))),(o=t?.onTrailer)===null||o===void 0||o.call(t,i.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>r.next()})}}function y7(...e){const t=new AbortController,r=e.filter(o=>o!==void 0).concat(t.signal);for(const o of r){if(o.aborted){n.apply(o);break}o.addEventListener("abort",n)}function n(){t.signal.aborted||t.abort(V1(this));for(const o of r)o.removeEventListener("abort",n)}return t}function C7(e){const t=new AbortController,r=()=>{t.abort(new er("the operation timed out",Xe.DeadlineExceeded))};let n;return e!==void 0&&(e<=0?r():n=setTimeout(r,e)),{signal:t.signal,cleanup:()=>clearTimeout(n)}}function V1(e){if(!e.aborted)return;if(e.reason!==void 0)return e.reason;const t=new Error("This operation was aborted");return t.name="AbortError",t}function B1(){return{get(e){return e.id in this?this[e.id]:e.defaultValue},set(e,t){return this[e.id]=t,this},delete(e){return delete this[e.id],this}}}function z1(e,t,r){const n=typeof t=="string"?t:t.typeName,o=typeof r=="string"?r:r.name;return e.toString().replace(/\/?$/,`/${n}/${o}`)}function G1(e,t){return t instanceof mt?t:new e(t)}function x7(e,t){function r(n){return n.done===!0?n:{done:n.done,value:G1(e,n.value)}}return{[Symbol.asyncIterator](){const n=t[Symbol.asyncIterator](),o={next:()=>n.next().then(r)};return n.throw!==void 0&&(o.throw=i=>n.throw(i).then(r)),n.return!==void 0&&(o.return=i=>n.return(i).then(r)),o}}}function H1(e){var t;const r=Object.assign({},e);return(t=r.ignoreUnknownFields)!==null&&t!==void 0||(r.ignoreUnknownFields=!0),r}function W1(e,t,r,n){const o=t?U1(e.I,n):X1(e.I,r);return{parse:(t?U1(e.O,n):X1(e.O,r)).parse,serialize:o.serialize}}function U1(e,t){return{parse(r){try{return e.fromBinary(r,t)}catch(n){const o=n instanceof Error?n.message:String(n);throw new er(`parse binary: ${o}`,Xe.InvalidArgument)}},serialize(r){try{return r.toBinary(t)}catch(n){const o=n instanceof Error?n.message:String(n);throw new er(`serialize binary: ${o}`,Xe.Internal)}}}}function X1(e,t){var r,n;const o=(r=t?.textEncoder)!==null&&r!==void 0?r:new TextEncoder,i=(n=t?.textDecoder)!==null&&n!==void 0?n:new TextDecoder,a=H1(t);return{parse(s){try{const l=i.decode(s);return e.fromJsonString(l,a)}catch(l){throw er.from(l,Xe.InvalidArgument)}},serialize(s){try{const l=s.toJsonString(a);return o.encode(l)}catch(l){throw er.from(l,Xe.Internal)}}}}const w7=/^application\/(connect\+)?(?:(json)(?:; ?charset=utf-?8)?|(proto))$/i,S7="application/proto",E7="application/json",I7="application/connect+proto",A7="application/connect+json";function N7(e){const t=e?.match(w7);if(!t)return;const r=!!t[1],n=!!t[3];return{stream:r,binary:n}}function Y1(e,t,r){if(t&&new Headers(t).forEach((a,s)=>r.metadata.append(s,a)),typeof e!="object"||e==null||Array.isArray(e)||!("code"in e)||typeof e.code!="string")throw r;const n=r7(e.code);if(n===void 0)throw r;const o=e.message;if(o!=null&&typeof o!="string")throw r;const i=new er(o??"",n,t);if("details"in e&&Array.isArray(e.details))for(const a of e.details){if(a===null||typeof a!="object"||Array.isArray(a)||typeof a.type!="string"||typeof a.value!="string"||"debug"in a&&typeof a.debug!="object")throw r;try{i.details.push({type:a.type,value:rc.dec(a.value),debug:a.debug})}catch{throw r}}return i}const J1=2;function O7(e){const t=new er("invalid end stream",Xe.InvalidArgument);let r;try{r=JSON.parse(typeof e=="string"?e:new TextDecoder().decode(e))}catch{throw t}if(typeof r!="object"||r==null||Array.isArray(r))throw t;const n=new Headers;if("metadata"in r){if(typeof r.metadata!="object"||r.metadata==null||Array.isArray(r.metadata))throw t;for(const[i,a]of Object.entries(r.metadata)){if(!Array.isArray(a)||a.some(s=>typeof s!="string"))throw t;for(const s of a)n.append(i,s)}}const o="error"in r?Y1(r.error,n,t):void 0;return{metadata:n,error:o}}const Lf="Content-Type",T7="Content-Length",Z1="Content-Encoding",P7="Accept-Encoding",k7="Connect-Timeout-Ms",q1="Connect-Protocol-Version",F7="User-Agent";function $7(e){switch(e){case 400:return Xe.InvalidArgument;case 401:return Xe.Unauthenticated;case 403:return Xe.PermissionDenied;case 404:return Xe.Unimplemented;case 408:return Xe.DeadlineExceeded;case 409:return Xe.Aborted;case 412:return Xe.FailedPrecondition;case 413:return Xe.ResourceExhausted;case 415:return Xe.Internal;case 429:return Xe.Unavailable;case 431:return Xe.ResourceExhausted;case 502:return Xe.Unavailable;case 503:return Xe.Unavailable;case 504:return Xe.Unavailable;default:return Xe.Unknown}}function Q1(e){const t=new Headers,r=new Headers;return e.forEach((n,o)=>{o.toLowerCase().startsWith("trailer-")?r.set(o.substring(8),n):t.set(o,n)}),[t,r]}const K1="1";function ey(e,t,r,n){const o=new Headers(n??{});return r!==void 0&&o.set(k7,`${r}`),o.set(Lf,e==Lr.Unary?t?S7:E7:t?I7:A7),o.set(q1,K1),o.set(F7,"connect-es/1.1.3"),o}function ty(e,t,r){const n=r.get("Content-Type"),o=N7(n);if(t!==200){const i=new er(`HTTP ${t}`,$7(t),r);if(e==Lr.Unary&&o&&!o.binary)return{isUnaryError:!0,unaryError:i};throw i}return{isUnaryError:!1}}const ry="application/";function M7(e,t){return t?rc.enc(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""):encodeURIComponent(new TextDecoder().decode(e))}function j7(e,t,r){let n=`?connect=v${K1}`;const o=e.header.get(Lf);o?.indexOf(ry)===0&&(n+="&encoding="+encodeURIComponent(o.slice(ry.length)));const i=e.header.get(Z1);i!==null&&i!=="identity"&&(n+="&compression="+encodeURIComponent(i),r=!0),r&&(n+="&base64=1"),n+="&message="+M7(t,r);const a=e.url+n,s=new Headers(e.header);return[q1,Lf,T7,Z1,P7].forEach(l=>s.delete(l)),Object.assign(Object.assign({},e),{init:Object.assign(Object.assign({},e.init),{method:"GET"}),url:a,header:s})}function R7(e){const t=oy(e.next,e.interceptors),[r,n,o]=ny(e),i=Object.assign(Object.assign({},e.req),{message:G1(e.req.method.I,e.req.message),signal:r});return t(i).then(a=>(o(),a),n)}function L7(e){const t=oy(e.next,e.interceptors),[r,n,o]=ny(e),i=Object.assign(Object.assign({},e.req),{message:x7(e.req.method.I,e.req.message),signal:r});let a=!1;return r.addEventListener("abort",function(){var s,l;const c=e.req.message[Symbol.asyncIterator]();a||(s=c.throw)===null||s===void 0||s.call(c,this.reason).catch(()=>{}),(l=c.return)===null||l===void 0||l.call(c).catch(()=>{})}),t(i).then(s=>Object.assign(Object.assign({},s),{message:{[Symbol.asyncIterator](){const l=s.message[Symbol.asyncIterator]();return{next(){return l.next().then(c=>(c.done==!0&&(a=!0,o()),c),n)}}}}}),n)}function ny(e){const{signal:t,cleanup:r}=C7(e.timeoutMs),n=y7(e.signal,t);return[n.signal,function(i){const a=er.from(t.aborted?V1(t):i);return n.abort(a),r(),Promise.reject(a)},function(){r(),n.abort()}]}function oy(e,t){var r;return(r=t?.concat().reverse().reduce((n,o)=>o(n),e))!==null&&r!==void 0?r:e}function D7(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}var wa=function(e){return this instanceof wa?(this.v=e,this):new wa(e)},_7=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(f){n[f]&&(o[f]=function(g){return new Promise(function(h,m){i.push([f,g,h,m])>1||s(f,g)})})}function s(f,g){try{l(n[f](g))}catch(h){d(i[0][3],h)}}function l(f){f.value instanceof wa?Promise.resolve(f.value.v).then(c,u):d(i[0][2],f)}function c(f){s("next",f)}function u(f){s("throw",f)}function d(f,g){f(g),i.shift(),i.length&&s(i[0][0],i[0][1])}};function V7(e){var t;D7();const r=(t=e.useBinaryFormat)!==null&&t!==void 0?t:!1;return{async unary(n,o,i,a,s,l,c){var u;const{serialize:d,parse:f}=W1(o,r,e.jsonOptions,e.binaryOptions);return a=a===void 0?e.defaultTimeoutMs:a<=0?void 0:a,await R7({interceptors:e.interceptors,signal:i,timeoutMs:a,req:{stream:!1,service:n,method:o,url:z1(e.baseUrl,n,o),init:{method:"POST",credentials:(u=e.credentials)!==null&&u!==void 0?u:"same-origin",redirect:"error",mode:"cors"},header:ey(o.kind,r,a,s),contextValues:c??B1(),message:l},next:async g=>{var h;const m=e.useHttpGet===!0&&o.idempotency===jf.NoSideEffects;let p=null;m?g=j7(g,d(g.message),r):p=d(g.message);const y=await((h=e.fetch)!==null&&h!==void 0?h:globalThis.fetch)(g.url,Object.assign(Object.assign({},g.init),{headers:g.header,signal:g.signal,body:p})),{isUnaryError:w,unaryError:S}=ty(o.kind,y.status,y.headers);if(w)throw Y1(await y.json(),o7(...Q1(y.headers)),S);const[v,I]=Q1(y.headers);return{stream:!1,service:n,method:o,header:v,message:r?f(new Uint8Array(await y.arrayBuffer())):o.O.fromJson(await y.json(),H1(e.jsonOptions)),trailer:I}}})},async stream(n,o,i,a,s,l,c){var u;const{serialize:d,parse:f}=W1(o,r,e.jsonOptions,e.binaryOptions);function g(m,p){return _7(this,arguments,function*(){const y=a7(m).getReader();let w=!1;for(;;){const S=yield wa(y.read());if(S.done)break;const{flags:v,data:I}=S.value;if((v&J1)===J1){w=!0;const N=O7(I);if(N.error)throw N.error;N.metadata.forEach((O,T)=>p.set(T,O));continue}yield yield wa(f(I))}if(!w)throw"missing EndStreamResponse"})}async function h(m){if(o.kind!=Lr.ServerStreaming)throw"The fetch API does not support streaming request bodies";const p=await m[Symbol.asyncIterator]().next();if(p.done==!0)throw"missing request message";return s7(0,d(p.value))}return a=a===void 0?e.defaultTimeoutMs:a<=0?void 0:a,await L7({interceptors:e.interceptors,timeoutMs:a,signal:i,req:{stream:!0,service:n,method:o,url:z1(e.baseUrl,n,o),init:{method:"POST",credentials:(u=e.credentials)!==null&&u!==void 0?u:"same-origin",redirect:"error",mode:"cors"},header:ey(o.kind,r,a,s),contextValues:c??B1(),message:l},next:async m=>{var p;const y=await((p=e.fetch)!==null&&p!==void 0?p:globalThis.fetch)(m.url,Object.assign(Object.assign({},m.init),{headers:m.header,signal:m.signal,body:await h(m.message)}));if(ty(o.kind,y.status,y.headers),y.body===null)throw"missing response body";const w=new Headers;return Object.assign(Object.assign({},m),{header:y.headers,trailer:w,message:g(y.body,w)})}})}}}var xo;(function(e){e.INACTIVE="inactive",e.PROCESSING="processing",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error"})(xo||(xo={}));function B7(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ay(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iy(Object(r),!0).forEach(function(n){B7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function z7(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function G7(e,t){if(e==null)return{};var r=z7(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function H7(e,t){return W7(e)||U7(e,t)||X7(e,t)||Y7()}function W7(e){if(Array.isArray(e))return e}function U7(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,i=void 0;try{for(var a=e[Symbol.iterator](),s;!(n=(s=a.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){o=!0,i=l}finally{try{!n&&a.return!=null&&a.return()}finally{if(o)throw i}}return r}}function X7(e,t){if(e){if(typeof e=="string")return sy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sy(e,t)}}function sy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Y7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
322
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
318
|
+
export default theme;`}function kb(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const k9=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function F9(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:yb(t,k9(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${kb(r)})`:Rl(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${kb(r)})`:jl(t,r)}})}function gf(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,colorSpace:c,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Jn(20));const d=pf({...i,colorSpace:c}),f=db(e);let g=Sr(f,{mixins:b9(f.breakpoints,n),palette:d,shadows:E9.slice(),typography:C9(d,s),transitions:O9(a),zIndex:{...T9}});if(g=Sr(g,u),g=t.reduce((h,m)=>Sr(h,m),g),process.env.NODE_ENV!=="production"){const h=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],m=(p,b)=>{let y;for(y in p){const w=p[y];if(h.includes(y)&&Object.keys(w).length>0){if(process.env.NODE_ENV!=="production"){const S=sf("",y);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(p,null,2),"",`Instead, you need to use the '&.${S}' syntax:`,JSON.stringify({root:{[`&.${S}`]:w}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
319
|
+
`))}p[y]={}}}};Object.keys(g.components).forEach(p=>{const b=g.components[p].styleOverrides;b&&p.startsWith("Mui")&&m(b,p)})}return g.unstable_sxConfig={...Fl,...u?.unstable_sxConfig},g.unstable_sx=function(m){return oi({sx:m,theme:this})},g.toRuntimeSource=Pb,F9(g),g}function $9(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const M9=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=$9(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Fb(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function $b(e){return e==="dark"?M9:[]}function j9(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:o,...i}=e,a=pf({...t,colorSpace:o});return{palette:a,opacity:{...Fb(a.mode),...r},overlays:n||$b(a.mode),...i}}function R9(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const L9=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],D9=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return L9(e.cssVarPrefix).forEach(s=>{a[s]=r[s],delete r[s]}),i==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:a}}:i?{[i.replace("%s",t)]:a,[`${n}, ${i.replace("%s",t)}`]:r}:{[n]:{...r,...a}}}if(i&&i!=="media")return`${n}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(i)return i.replace("%s",String(t))}return n};function _9(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function ee(e,t,r){!e[t]&&r&&(e[t]=r)}function ma(e){return typeof e!="string"||!e.startsWith("hsl")?e:vb(e)}function En(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ua(ma(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
320
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function V9(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const un=e=>{try{return e()}catch{}},B9=(e="mui")=>o9(e);function hf(e,t,r,n,o){if(!r)return;r=r===!0?{}:r;const i=o==="dark"?"dark":"light";if(!n){t[o]=j9({...r,palette:{mode:i,...r?.palette},colorSpace:e});return}const{palette:a,...s}=gf({...n,palette:{mode:i,...r?.palette},colorSpace:e});return t[o]={...r,palette:a,opacity:{...Fb(i),...r?.opacity},overlays:r?.overlays||$b(i)},s}function z9(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=R9,colorSchemeSelector:l=r.light&&r.dark?"media":void 0,rootSelector:c=":root",...u}=e,d=Object.keys(r)[0],f=n||(r.light&&d!=="light"?"light":d),g=B9(i),{[f]:h,light:m,dark:p,...b}=r,y={...b};let w=h;if((f==="dark"&&!("dark"in r)||f==="light"&&!("light"in r))&&(w=!0),!w)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:Jn(21,f));let S;a&&(S="oklch");const v=hf(S,y,w,u,f);m&&!y.light&&hf(S,y,m,void 0,"light"),p&&!y.dark&&hf(S,y,p,void 0,"dark");let I={defaultColorScheme:f,...v,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:c,getCssVar:g,colorSchemes:y,font:{...v9(v.typography),...v.font},spacing:V9(u.spacing)};Object.keys(I.colorSchemes).forEach(M=>{const x=I.colorSchemes[M].palette,$=F=>{const j=F.split("-"),G=j[1],W=j[2];return g(F,x[G][W])};x.mode==="light"&&(ee(x.common,"background","#fff"),ee(x.common,"onBackground","#000")),x.mode==="dark"&&(ee(x.common,"background","#000"),ee(x.common,"onBackground","#fff"));function k(F,j,G){if(S){let W;return F===bo&&(W=`transparent ${((1-G)*100).toFixed(0)}%`),F===nt&&(W=`#000 ${(G*100).toFixed(0)}%`),F===ot&&(W=`#fff ${(G*100).toFixed(0)}%`),`color-mix(in ${S}, ${j}, ${W})`}return F(j,G)}if(_9(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){ee(x.Alert,"errorColor",k(nt,x.error.light,.6)),ee(x.Alert,"infoColor",k(nt,x.info.light,.6)),ee(x.Alert,"successColor",k(nt,x.success.light,.6)),ee(x.Alert,"warningColor",k(nt,x.warning.light,.6)),ee(x.Alert,"errorFilledBg",$("palette-error-main")),ee(x.Alert,"infoFilledBg",$("palette-info-main")),ee(x.Alert,"successFilledBg",$("palette-success-main")),ee(x.Alert,"warningFilledBg",$("palette-warning-main")),ee(x.Alert,"errorFilledColor",un(()=>x.getContrastText(x.error.main))),ee(x.Alert,"infoFilledColor",un(()=>x.getContrastText(x.info.main))),ee(x.Alert,"successFilledColor",un(()=>x.getContrastText(x.success.main))),ee(x.Alert,"warningFilledColor",un(()=>x.getContrastText(x.warning.main))),ee(x.Alert,"errorStandardBg",k(ot,x.error.light,.9)),ee(x.Alert,"infoStandardBg",k(ot,x.info.light,.9)),ee(x.Alert,"successStandardBg",k(ot,x.success.light,.9)),ee(x.Alert,"warningStandardBg",k(ot,x.warning.light,.9)),ee(x.Alert,"errorIconColor",$("palette-error-main")),ee(x.Alert,"infoIconColor",$("palette-info-main")),ee(x.Alert,"successIconColor",$("palette-success-main")),ee(x.Alert,"warningIconColor",$("palette-warning-main")),ee(x.AppBar,"defaultBg",$("palette-grey-100")),ee(x.Avatar,"defaultBg",$("palette-grey-400")),ee(x.Button,"inheritContainedBg",$("palette-grey-300")),ee(x.Button,"inheritContainedHoverBg",$("palette-grey-A100")),ee(x.Chip,"defaultBorder",$("palette-grey-400")),ee(x.Chip,"defaultAvatarColor",$("palette-grey-700")),ee(x.Chip,"defaultIconColor",$("palette-grey-700")),ee(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ee(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ee(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ee(x.LinearProgress,"primaryBg",k(ot,x.primary.main,.62)),ee(x.LinearProgress,"secondaryBg",k(ot,x.secondary.main,.62)),ee(x.LinearProgress,"errorBg",k(ot,x.error.main,.62)),ee(x.LinearProgress,"infoBg",k(ot,x.info.main,.62)),ee(x.LinearProgress,"successBg",k(ot,x.success.main,.62)),ee(x.LinearProgress,"warningBg",k(ot,x.warning.main,.62)),ee(x.Skeleton,"bg",S?k(bo,x.text.primary,.11):`rgba(${$("palette-text-primaryChannel")} / 0.11)`),ee(x.Slider,"primaryTrack",k(ot,x.primary.main,.62)),ee(x.Slider,"secondaryTrack",k(ot,x.secondary.main,.62)),ee(x.Slider,"errorTrack",k(ot,x.error.main,.62)),ee(x.Slider,"infoTrack",k(ot,x.info.main,.62)),ee(x.Slider,"successTrack",k(ot,x.success.main,.62)),ee(x.Slider,"warningTrack",k(ot,x.warning.main,.62));const F=S?k(nt,x.background.default,.6825):Ll(x.background.default,.8);ee(x.SnackbarContent,"bg",F),ee(x.SnackbarContent,"color",un(()=>S?mf.text.primary:x.getContrastText(F))),ee(x.SpeedDialAction,"fabHoverBg",Ll(x.background.paper,.15)),ee(x.StepConnector,"border",$("palette-grey-400")),ee(x.StepContent,"border",$("palette-grey-400")),ee(x.Switch,"defaultColor",$("palette-common-white")),ee(x.Switch,"defaultDisabledColor",$("palette-grey-100")),ee(x.Switch,"primaryDisabledColor",k(ot,x.primary.main,.62)),ee(x.Switch,"secondaryDisabledColor",k(ot,x.secondary.main,.62)),ee(x.Switch,"errorDisabledColor",k(ot,x.error.main,.62)),ee(x.Switch,"infoDisabledColor",k(ot,x.info.main,.62)),ee(x.Switch,"successDisabledColor",k(ot,x.success.main,.62)),ee(x.Switch,"warningDisabledColor",k(ot,x.warning.main,.62)),ee(x.TableCell,"border",k(ot,k(bo,x.divider,1),.88)),ee(x.Tooltip,"bg",k(bo,x.grey[700],.92))}if(x.mode==="dark"){ee(x.Alert,"errorColor",k(ot,x.error.light,.6)),ee(x.Alert,"infoColor",k(ot,x.info.light,.6)),ee(x.Alert,"successColor",k(ot,x.success.light,.6)),ee(x.Alert,"warningColor",k(ot,x.warning.light,.6)),ee(x.Alert,"errorFilledBg",$("palette-error-dark")),ee(x.Alert,"infoFilledBg",$("palette-info-dark")),ee(x.Alert,"successFilledBg",$("palette-success-dark")),ee(x.Alert,"warningFilledBg",$("palette-warning-dark")),ee(x.Alert,"errorFilledColor",un(()=>x.getContrastText(x.error.dark))),ee(x.Alert,"infoFilledColor",un(()=>x.getContrastText(x.info.dark))),ee(x.Alert,"successFilledColor",un(()=>x.getContrastText(x.success.dark))),ee(x.Alert,"warningFilledColor",un(()=>x.getContrastText(x.warning.dark))),ee(x.Alert,"errorStandardBg",k(nt,x.error.light,.9)),ee(x.Alert,"infoStandardBg",k(nt,x.info.light,.9)),ee(x.Alert,"successStandardBg",k(nt,x.success.light,.9)),ee(x.Alert,"warningStandardBg",k(nt,x.warning.light,.9)),ee(x.Alert,"errorIconColor",$("palette-error-main")),ee(x.Alert,"infoIconColor",$("palette-info-main")),ee(x.Alert,"successIconColor",$("palette-success-main")),ee(x.Alert,"warningIconColor",$("palette-warning-main")),ee(x.AppBar,"defaultBg",$("palette-grey-900")),ee(x.AppBar,"darkBg",$("palette-background-paper")),ee(x.AppBar,"darkColor",$("palette-text-primary")),ee(x.Avatar,"defaultBg",$("palette-grey-600")),ee(x.Button,"inheritContainedBg",$("palette-grey-800")),ee(x.Button,"inheritContainedHoverBg",$("palette-grey-700")),ee(x.Chip,"defaultBorder",$("palette-grey-700")),ee(x.Chip,"defaultAvatarColor",$("palette-grey-300")),ee(x.Chip,"defaultIconColor",$("palette-grey-300")),ee(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ee(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ee(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ee(x.LinearProgress,"primaryBg",k(nt,x.primary.main,.5)),ee(x.LinearProgress,"secondaryBg",k(nt,x.secondary.main,.5)),ee(x.LinearProgress,"errorBg",k(nt,x.error.main,.5)),ee(x.LinearProgress,"infoBg",k(nt,x.info.main,.5)),ee(x.LinearProgress,"successBg",k(nt,x.success.main,.5)),ee(x.LinearProgress,"warningBg",k(nt,x.warning.main,.5)),ee(x.Skeleton,"bg",S?k(bo,x.text.primary,.13):`rgba(${$("palette-text-primaryChannel")} / 0.13)`),ee(x.Slider,"primaryTrack",k(nt,x.primary.main,.5)),ee(x.Slider,"secondaryTrack",k(nt,x.secondary.main,.5)),ee(x.Slider,"errorTrack",k(nt,x.error.main,.5)),ee(x.Slider,"infoTrack",k(nt,x.info.main,.5)),ee(x.Slider,"successTrack",k(nt,x.success.main,.5)),ee(x.Slider,"warningTrack",k(nt,x.warning.main,.5));const F=S?k(ot,x.background.default,.985):Ll(x.background.default,.98);ee(x.SnackbarContent,"bg",F),ee(x.SnackbarContent,"color",un(()=>S?Sb.text.primary:x.getContrastText(F))),ee(x.SpeedDialAction,"fabHoverBg",Ll(x.background.paper,.15)),ee(x.StepConnector,"border",$("palette-grey-600")),ee(x.StepContent,"border",$("palette-grey-600")),ee(x.Switch,"defaultColor",$("palette-grey-300")),ee(x.Switch,"defaultDisabledColor",$("palette-grey-600")),ee(x.Switch,"primaryDisabledColor",k(nt,x.primary.main,.55)),ee(x.Switch,"secondaryDisabledColor",k(nt,x.secondary.main,.55)),ee(x.Switch,"errorDisabledColor",k(nt,x.error.main,.55)),ee(x.Switch,"infoDisabledColor",k(nt,x.info.main,.55)),ee(x.Switch,"successDisabledColor",k(nt,x.success.main,.55)),ee(x.Switch,"warningDisabledColor",k(nt,x.warning.main,.55)),ee(x.TableCell,"border",k(nt,k(bo,x.divider,1),.68)),ee(x.Tooltip,"bg",k(bo,x.grey[700],.92))}En(x.background,"default"),En(x.background,"paper"),En(x.common,"background"),En(x.common,"onBackground"),En(x,"divider"),Object.keys(x).forEach(F=>{const j=x[F];F!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&ee(x[F],"mainChannel",ua(ma(j.main))),j.light&&ee(x[F],"lightChannel",ua(ma(j.light))),j.dark&&ee(x[F],"darkChannel",ua(ma(j.dark))),j.contrastText&&ee(x[F],"contrastTextChannel",ua(ma(j.contrastText))),F==="text"&&(En(x[F],"primary"),En(x[F],"secondary")),F==="action"&&(j.active&&En(x[F],"active"),j.selected&&En(x[F],"selected")))})}),I=t.reduce((M,x)=>Sr(M,x),I);const N={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:D9(I),enableContrastVars:a},{vars:O,generateThemeVars:T,generateStyleSheets:P}=s9(I,N);return I.vars=O,Object.entries(I.colorSchemes[I.defaultColorScheme]).forEach(([M,x])=>{I[M]=x}),I.generateThemeVars=T,I.generateStyleSheets=P,I.generateSpacing=function(){return ub(u.spacing,nf(this))},I.getColorSchemeSelector=l9(l),I.spacing=I.generateSpacing(),I.shouldSkipGeneratingVar=s,I.unstable_sxConfig={...Fl,...u?.unstable_sxConfig},I.unstable_sx=function(x){return oi({sx:x,theme:this})},I.toRuntimeSource=Pb,I}function Mb(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:pf({...r===!0?{}:r.palette,mode:t})})}function G9(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:i=r?.mode,...a}=e,s=i||"light",l=o?.[s],c={...o,...r?{[s]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return gf(e,...t);let u=r;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const d=gf({...e,palette:u},...t);return d.defaultColorScheme=s,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},Mb(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},Mb(d,"light",c.light)),d}return!r&&!("light"in c)&&s==="light"&&(c.light=!0),z9({...a,colorSchemes:c,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const H9=G9(),W9="$$material";function U9(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const X9=W6({themeId:W9,defaultTheme:H9,rootShouldForwardProp:e=>U9(e)&&e!=="classes"}),Y9=n9;process.env.NODE_ENV!=="production"&&(Ge.node,Ge.object.isRequired);function J9(e){return r9(e)}function Z9(e){return sf("MuiSvgIcon",e)}V6("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const q9=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${go(t)}`,`fontSize${go(r)}`]};return kO(o,Z9,n)},Q9=X9("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${go(r.color)}`],t[`fontSize${go(r.fontSize)}`]]}})(Y9(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Dl=A.forwardRef(function(t,r){const n=J9({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...g}=n,h=A.isValidElement(o)&&o.type==="svg",m={...n,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:h},p={};u||(p.viewBox=f);const b=q9(m);return C.jsxs(Q9,{as:s,className:cn(b.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...p,...g,...h&&o.props,ownerState:m,children:[h?o.props.children:o,d?C.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(Dl.propTypes={children:Ge.node,classes:Ge.object,className:Ge.string,color:Ge.oneOfType([Ge.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),Ge.string]),component:Ge.elementType,fontSize:Ge.oneOfType([Ge.oneOf(["inherit","large","medium","small"]),Ge.string]),htmlColor:Ge.string,inheritViewBox:Ge.bool,shapeRendering:Ge.string,sx:Ge.oneOfType([Ge.arrayOf(Ge.oneOfType([Ge.func,Ge.object,Ge.bool])),Ge.func,Ge.object]),titleAccess:Ge.string,viewBox:Ge.string}),Dl.muiName="SvgIcon";function vf(e,t){function r(n,o){return C.jsx(Dl,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Dl.muiName,A.memo(A.forwardRef(r))}const K9=vf(C.jsx("path",{d:"M14.71 6.71a.996.996 0 0 0-1.41 0L8.71 11.3c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L10.83 12l3.88-3.88c.39-.39.38-1.03 0-1.41"}),"ChevronLeftRounded"),eT=vf(C.jsx("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"CloseRounded"),tT=vf(C.jsx("path",{d:"M14.59 2.59c-.38-.38-.89-.59-1.42-.59H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8.83c0-.53-.21-1.04-.59-1.41zM15 18H9c-.55 0-1-.45-1-1s.45-1 1-1h6c.55 0 1 .45 1 1s-.45 1-1 1m0-4H9c-.55 0-1-.45-1-1s.45-1 1-1h6c.55 0 1 .45 1 1s-.45 1-1 1m-2-6V3.5L18.5 9H14c-.55 0-1-.45-1-1"}),"DescriptionRounded"),jb=E.forwardRef(({id:e,label:t,placeholder:r="Select...",value:n,selectedValues:o,onChange:i,onColorChange:a,selectOptions:s,loading:l=!1,multiSelect:c=!1,disabled:u=!1,isClearable:d=!0,required:f=!1,message:g,messageType:h="default",originalCase:m=!1,wrapperClassName:p,selectClassName:b,labelClassName:y,helpText:w,size:S="medium",filterOption:v,selectProps:I,components:N,tags:O,tooltip:T},P)=>{const M=()=>{switch(S){case"small":return{height:"28px",minHeight:"28px",fontSize:"12px",padding:"2px 8px"};case"large":return{height:"40px",minHeight:"40px",fontSize:"16px",padding:"8px 12px"};default:return{height:"32px",minHeight:"32px",fontSize:"14px",padding:"4px 10px"}}},x=L=>g&&h==="error"?"rgb(253 164 155)":g&&h==="success"?"rgb(34 197 94)":g&&h==="info"?"rgb(59 130 246)":L.isFocused?"rgb(0 108 207)":"rgb(229 229 229)",$=M(),k={control:(L,z)=>({...L,borderColor:x(z),backgroundColor:z.isDisabled?"rgb(245 245 245)":"rgb(255 255 255)",borderRadius:"6px",...$,opacity:z.isDisabled?.6:1,cursor:z.isDisabled?"not-allowed":"default",boxShadow:z.isFocused?"0 0 0 2px rgba(59, 130, 246, 0.1)":"none","&:hover":{borderColor:x(z)},transition:"all 0.2s ease-in-out"}),valueContainer:L=>({...L,fontSize:$.fontSize,padding:0,height:"auto",minHeight:"20px"}),input:L=>({...L,margin:"0",padding:"0",color:"inherit"}),indicatorsContainer:L=>({...L,fontSize:$.fontSize,padding:0,height:"20px"}),option:(L,z)=>({...L,fontFamily:"Inter",fontWeight:500,fontSize:$.fontSize,lineHeight:"1.2",borderBottom:"1px solid rgb(229 229 229)",backgroundColor:z.isSelected?"rgb(59 130 246)":z.isFocused?"rgb(245 245 245)":"rgb(255 255 255)",color:z.isSelected?"white":z.isDisabled?"rgb(163 163 163)":"inherit",cursor:z.isDisabled?"not-allowed":"pointer",opacity:z.isDisabled?.6:1,"&:hover":{backgroundColor:z.isSelected?"rgb(59 130 246)":z.isDisabled?"rgb(255 255 255)":"rgb(245 245 245)"}}),singleValue:(L,z)=>({...L,fontFamily:"Inter",fontWeight:500,fontSize:$.fontSize,lineHeight:"1.25rem",display:"block",color:z.isDisabled?"rgb(163 163 163)":"inherit"}),placeholder:(L,z)=>({...L,fontFamily:"Inter",fontSize:$.fontSize,fontWeight:500,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",color:z.isDisabled?"rgb(163 163 163)":"rgb(115 115 115)"}),multiValue:L=>({...L,backgroundColor:"rgb(230 241 252)",border:"1px solid rgb(198 225 249)",borderRadius:"4px",fontFamily:"Inter"}),multiValueLabel:L=>({...L,color:"rgb(0 108 207)",fontSize:"12px"}),multiValueRemove:L=>({...L,color:"rgb(0 108 207)",":hover":{backgroundColor:"rgb(230 241 252)",color:"rgb(220 38 38)"}}),menu:L=>({...L,backgroundColor:"rgb(255 255 255)",border:"1px solid rgb(229 229 229)",borderRadius:"6px",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"}),loadingIndicator:L=>({...L,color:"rgb(99 102 241)"}),noOptionsMessage:L=>({...L,color:"rgb(107 114 128)",fontSize:$.fontSize})},F=()=>h==="error"?"text-red-500 dark:text-red-400":h==="success"?"text-green-500 dark:text-green-400":h==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",j=()=>{switch(S){case"small":return"extra-small";case"large":return"medium";default:return"small"}},G=()=>C.jsx("div",{className:"flex items-center",children:C.jsx(K9,{className:"-rotate-90 transition-transform duration-200",sx:{fontSize:S==="small"?"14px":S==="large"?"18px":"16px"}})}),W=L=>C.jsx("div",{className:"absolute top-0 left-0 h-full flex items-center dark:text-neutral-100",children:L.data.label}),V=!!o?.length,D=d&&(V||!!n),B=(L,z)=>{i(L,z),a?.(L)};return C.jsxs("div",{className:J("flex flex-col w-full",p),children:[t&&C.jsx("label",{htmlFor:e,className:J("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",!m&&"capitalize",y),children:C.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:C.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:C.jsxs(pe,{variant:"medium",size:j(),appearance:"subtitle",children:[t,f&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),w&&C.jsx(pe,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:w}),C.jsx(xO,{...I,ref:P,id:e,required:f,options:s,isClearable:D,isLoading:l,isDisabled:u,styles:k,isMulti:c,value:c?o:n,placeholder:r,filterOption:v,onChange:B,className:J("react-select-container",b),classNamePrefix:"react-select",components:{IndicatorsContainer:G,SingleValue:W,...N},"aria-required":f,"aria-invalid":g&&h==="error"?"true":"false","aria-describedby":g||w?`${e}-description`:void 0}),C.jsx(Ze.AnimatePresence,{children:g&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:h==="error"?"alert":void 0,children:C.jsx(pe,{className:J("mt-1",F()),appearance:"custom",size:"extra-small",variant:"medium",children:g})})}),w&&!g&&C.jsx("div",{id:`${e}-description`,className:"sr-only",children:w})]})});jb.displayName="CreatableSelectField";const bf=[{value:"USD",label:"United States Dollar",symbol:"$"},{value:"EUR",label:"Euro",symbol:"€"},{value:"GBP",label:"British Pound",symbol:"£"},{value:"JPY",label:"Japanese Yen",symbol:"¥"},{value:"CAD",label:"Canadian Dollar",symbol:"C$"},{value:"AUD",label:"Australian Dollar",symbol:"A$"},{value:"CHF",label:"Swiss Franc",symbol:"CHF"},{value:"CNY",label:"Chinese Yuan",symbol:"¥"},{value:"SEK",label:"Swedish Krona",symbol:"kr"},{value:"NZD",label:"New Zealand Dollar",symbol:"NZ$"}],Rb={USD:"$",EUR:"€",GBP:"£",JPY:"¥",CAD:"C$",AUD:"A$",CHF:"CHF",CNY:"¥",SEK:"kr",NZD:"NZ$"},Lb=E.forwardRef(({id:e,label:t,value:r,defaultValue:n,onChange:o,disabled:i=!1,required:a=!1,placeholder:s,message:l,messageType:c="default",wrapperClassName:u,inputClassName:d,labelClassName:f,helpText:g,size:h="medium",currencyCode:m="USD",allowCurrencyChange:p=!1,availableCurrencies:b,showSymbol:y=!0,formatValue:w=!0,min:S,max:v,decimalPlaces:I=2,inputProps:N,inputStyle:O},T)=>{const[P,M]=E.useState(!1),[x,$]=E.useState(m),[k,F]=E.useState(!1),j=b?bf.filter(U=>b.includes(U.value)):bf,G=()=>{switch(h){case"small":return{height:"h-7",padding:"px-2 py-1",fontSize:"text-xs",symbolPadding:"pl-8"};case"large":return{height:"h-10",padding:"px-4 py-2",fontSize:"text-base",symbolPadding:"pl-12"};default:return{height:"h-8",padding:"px-3 py-1.5",fontSize:"text-sm",symbolPadding:"pl-10"}}},W=()=>c==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":c==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":c==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",V=()=>c==="error"?"text-red-500 dark:text-red-400":c==="success"?"text-green-500 dark:text-green-400":c==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",_=()=>{switch(h){case"small":return"extra-small";case"large":return"medium";default:return"small"}},D=U=>{if(U==null)return"";const K=Number(U);return isNaN(K)?String(U):w?K.toLocaleString("en-US",{minimumFractionDigits:I,maximumFractionDigits:I}):String(K)},B=U=>{const K=U.target.value;if(K===""||K===null||K===void 0)o(null,x);else{const Z=Number(K);isNaN(Z)||o(Z,x)}},L=U=>{$(U),F(!1),o(r??null,U)},z=()=>{M(!0)},Q=()=>{M(!1)},q=G();return E.useEffect(()=>{$(m)},[m]),C.jsxs("div",{className:J("flex flex-col w-full",u),children:[t&&C.jsx("label",{htmlFor:e,className:J("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",f),children:C.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:C.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:C.jsxs(pe,{variant:"medium",size:_(),appearance:"subtitle",children:[t,a&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),g&&C.jsx(pe,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:g}),C.jsxs("div",{className:"relative",children:[y&&C.jsx("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3 text-neutral-900 dark:text-neutral-100 pointer-events-none",children:Rb[x]||x}),C.jsx("input",{...N,ref:T,id:e,type:P?"number":"text",value:P?r??"":D(r),defaultValue:n!==void 0?P?n??"":D(n):void 0,placeholder:s,required:a,disabled:i,min:S,max:v,step:1/Math.pow(10,I),onFocus:z,onBlur:Q,onChange:B,className:J("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",q.height,q.padding,q.fontSize,y?q.symbolPadding:"",W(),p?"pr-20":"",i&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",d),style:O,"aria-required":a,"aria-invalid":l&&c==="error"?"true":"false","aria-describedby":l||g?`${e}-description`:void 0}),p&&C.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center",children:C.jsxs("div",{className:"relative",children:[C.jsxs("button",{type:"button",onClick:()=>F(!k),disabled:i,className:J("px-3 py-1 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700 rounded-r-md border-l border-gray-300 dark:border-gray-600 transition-colors",i&&"opacity-50 cursor-not-allowed"),children:[x,C.jsx("svg",{className:"w-4 h-4 ml-1 inline-block",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),k&&C.jsx("div",{className:"absolute top-full right-0 mt-1 w-64 bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-md shadow-lg z-50 max-h-60 overflow-y-auto",children:j.map(U=>C.jsxs("button",{type:"button",onClick:()=>L(U.value),className:"w-full px-4 py-2 text-left text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700 flex justify-between items-center",children:[C.jsxs("span",{children:[U.value," - ",U.label]}),C.jsx("span",{className:"text-gray-500",children:U.symbol})]},U.value))})]})}),k&&C.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>F(!1)})]}),C.jsx(Ze.AnimatePresence,{children:l&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:c==="error"?"alert":void 0,children:C.jsx(pe,{className:J("mt-1",V()),appearance:"custom",size:"extra-small",variant:"medium",children:l})})}),g&&!l&&C.jsx("div",{id:`${e}-description`,className:"sr-only",children:g})]})});Lb.displayName="CurrencyInputField";const Db=E.forwardRef(({id:e,label:t,value:r,defaultValue:n,onChange:o,disabled:i=!1,required:a=!1,message:s,messageType:l="default",wrapperClassName:c,inputClassName:u,labelClassName:d,helpText:f,size:g="medium",minDate:h,maxDate:m,startPlaceholder:p="Start date",endPlaceholder:b="End date",allowClear:y=!0,inputProps:w},S)=>{const v=r!==void 0?r:n||{startDate:null,endDate:null},I=()=>{switch(g){case"small":return{height:"h-7",padding:"px-2 py-1",fontSize:"text-xs"};case"large":return{height:"h-10",padding:"px-4 py-2",fontSize:"text-base"};default:return{height:"h-8",padding:"px-3 py-1.5",fontSize:"text-sm"}}},N=()=>l==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":l==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":l==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",O=()=>l==="error"?"text-red-500 dark:text-red-400":l==="success"?"text-green-500 dark:text-green-400":l==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",T=()=>{switch(g){case"small":return"extra-small";case"large":return"medium";default:return"small"}},P=G=>{if(!G)return"";const W=G.getFullYear(),V=String(G.getMonth()+1).padStart(2,"0"),_=String(G.getDate()).padStart(2,"0");return`${W}-${V}-${_}`},M=G=>{if(!G)return null;const W=new Date(G);return isNaN(W.getTime())?null:W},x=G=>{const W=M(G.target.value);o({startDate:W,endDate:v.endDate})},$=G=>{const W=M(G.target.value);o({startDate:v.startDate,endDate:W})},k=()=>{o({startDate:null,endDate:null})},F=G=>G?P(G):void 0,j=I();return C.jsxs("div",{className:J("flex flex-col w-full",c),ref:S,children:[t&&C.jsx("label",{htmlFor:`${e}-start`,className:J("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",d),children:C.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:C.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:C.jsxs(pe,{variant:"medium",size:T(),appearance:"subtitle",children:[t,a&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),f&&C.jsx(pe,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:f}),C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("div",{className:"flex-1",children:C.jsx("input",{...w,id:`${e}-start`,type:"date",value:P(v.startDate),onChange:x,disabled:i,required:a,min:F(h),max:F(m),placeholder:p,className:J("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",j.height,j.padding,j.fontSize,N(),i&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",u),"aria-required":a,"aria-invalid":s&&l==="error"?"true":"false","aria-describedby":s||f?`${e}-description`:void 0})}),C.jsx("div",{className:"flex-shrink-0 text-neutral-500 dark:text-neutral-400",children:C.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 12H6"})})}),C.jsx("div",{className:"flex-1",children:C.jsx("input",{...w,id:`${e}-end`,type:"date",value:P(v.endDate),onChange:$,disabled:i,required:a,min:F(v.startDate||h),max:F(m),placeholder:b,className:J("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",j.height,j.padding,j.fontSize,N(),i&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",u),"aria-required":a,"aria-invalid":s&&l==="error"?"true":"false","aria-describedby":s||f?`${e}-description`:void 0})}),y&&(v.startDate||v.endDate)&&!i&&C.jsx("button",{type:"button",onClick:k,className:"flex-shrink-0 p-1 text-neutral-500 hover:text-neutral-700 dark:text-neutral-400 dark:hover:text-neutral-200 transition-colors","aria-label":"Clear date range",children:C.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),C.jsx("div",{className:"absolute right-3 top-1/2 transform -translate-y-1/2 pointer-events-none text-neutral-400 dark:text-neutral-500",children:C.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),C.jsx(Ze.AnimatePresence,{children:s&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:l==="error"?"alert":void 0,children:C.jsx(pe,{className:J("mt-1",O()),appearance:"custom",size:"extra-small",variant:"medium",children:s})})}),f&&!s&&C.jsx("div",{id:`${e}-description`,className:"sr-only",children:f})]})});Db.displayName="DateRange";const _b=E.forwardRef(({id:e,label:t,value:r,defaultValue:n,onChange:o,onImmediateChange:i,disabled:a=!1,required:s=!1,placeholder:l,message:c,messageType:u="default",wrapperClassName:d,inputClassName:f,labelClassName:g,helpText:h,size:m="medium",type:p="text",debounceTimeout:b=300,min:y,max:w,maxLength:S,pattern:v,inputProps:I,inputStyle:N,onKeyDown:O,onFocus:T,onBlur:P},M)=>{const[x,$]=E.useState(r||n||""),[k,F]=E.useState(r||n||""),j=()=>{switch(m){case"small":return{height:"h-7",padding:"px-2 py-1",fontSize:"text-xs"};case"large":return{height:"h-10",padding:"px-4 py-2",fontSize:"text-base"};default:return{height:"h-8",padding:"px-3 py-1.5",fontSize:"text-sm"}}},G=()=>u==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":u==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":u==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",W=()=>u==="error"?"text-red-500 dark:text-red-400":u==="success"?"text-green-500 dark:text-green-400":u==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",V=()=>{switch(m){case"small":return"extra-small";case"large":return"medium";default:return"small"}};E.useEffect(()=>{const B=setTimeout(()=>{k!==x&&(F(x),o(x))},b);return()=>clearTimeout(B)},[x,b,o,k]),E.useEffect(()=>{r!==void 0&&r!==x&&($(r),F(r))},[r,x]);const _=E.useCallback(B=>{const L=B.target.value;$(L),i?.(L)},[i]),D=j();return C.jsxs("div",{className:J("flex flex-col w-full",d),children:[t&&C.jsx("label",{htmlFor:e,className:J("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",g),children:C.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:C.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:C.jsxs(pe,{variant:"medium",size:V(),appearance:"subtitle",children:[t,s&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),h&&C.jsx(pe,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:h}),C.jsxs("div",{className:"relative",children:[C.jsx("input",{...I,ref:M,id:e,type:p,value:x,defaultValue:n,placeholder:l,required:s,disabled:a,min:y,max:w,maxLength:S,pattern:v,onChange:_,onKeyDown:O,onFocus:T,onBlur:P,className:J("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",D.height,D.padding,D.fontSize,G(),a&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",f),style:N,"aria-required":s,"aria-invalid":c&&u==="error"?"true":"false","aria-describedby":c||h?`${e}-description`:void 0}),x!==k&&C.jsx("div",{className:"absolute right-2 top-1/2 transform -translate-y-1/2",children:C.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full animate-pulse"})})]}),S&&C.jsx("div",{className:"mt-1 text-right",children:C.jsxs(pe,{className:J("text-xs",x.length>S*.9?"text-orange-500":x.length===S?"text-red-500":"text-neutral-400 dark:text-neutral-500"),appearance:"custom",size:"extra-small",children:[x.length,"/",S]})}),C.jsx(Ze.AnimatePresence,{children:c&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:u==="error"?"alert":void 0,children:C.jsx(pe,{className:J("mt-1",W()),appearance:"custom",size:"extra-small",variant:"medium",children:c})})}),h&&!c&&C.jsx("div",{id:`${e}-description`,className:"sr-only",children:h})]})});_b.displayName="DebounceInputField";const Vb=E.forwardRef(({id:e,label:t,value:r,defaultValue:n,onChange:o,disabled:i=!1,required:a=!1,placeholder:s,message:l,messageType:c="default",wrapperClassName:u,inputClassName:d,labelClassName:f,helpText:g,size:h="medium",min:m=0,max:p=100,step:b=.01,decimalPlaces:y=2,showSymbol:w=!0,allowNegative:S=!1,inputProps:v,inputStyle:I,onKeyDown:N,onFocus:O,onBlur:T},P)=>{const M=()=>{switch(h){case"small":return{height:"h-7",padding:"px-2 py-1",fontSize:"text-xs",symbolPadding:"pr-8"};case"large":return{height:"h-10",padding:"px-4 py-2",fontSize:"text-base",symbolPadding:"pr-10"};default:return{height:"h-8",padding:"px-3 py-1.5",fontSize:"text-sm",symbolPadding:"pr-9"}}},x=()=>c==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":c==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":c==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",$=()=>c==="error"?"text-red-500 dark:text-red-400":c==="success"?"text-green-500 dark:text-green-400":c==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",k=()=>{switch(h){case"small":return"extra-small";case"large":return"medium";default:return"small"}},F=V=>{const _=V.target.value;if(_===""||_===null||_===void 0)o(null);else{const D=Number(_);if(!isNaN(D)){let B=D;!S&&B<0&&(B=0),m!==void 0&&B<m&&(B=m),p!==void 0&&B>p&&(B=p);const L=Math.pow(10,y);B=Math.round(B*L)/L,o(B)}}},j=V=>{O?.(V)},G=V=>{T?.(V)},W=M();return C.jsxs("div",{className:J("flex flex-col w-full",u),children:[t&&C.jsx("label",{htmlFor:e,className:J("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",f),children:C.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:C.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:C.jsxs(pe,{variant:"medium",size:k(),appearance:"subtitle",children:[t,a&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),g&&C.jsx(pe,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:g}),C.jsxs("div",{className:"relative",children:[C.jsx("input",{...v,ref:P,id:e,type:"number",value:r??"",defaultValue:n??"",placeholder:s,required:a,disabled:i,min:S?void 0:m,max:p,step:b,onChange:F,onKeyDown:N,onFocus:j,onBlur:G,className:J("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",W.height,W.padding,W.fontSize,w?W.symbolPadding:"",x(),i&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",d),style:I,"aria-required":a,"aria-invalid":l&&c==="error"?"true":"false","aria-describedby":l||g?`${e}-description`:void 0}),w&&C.jsx("span",{className:"absolute inset-y-0 right-0 flex items-center pr-3 text-neutral-900 dark:text-neutral-100 pointer-events-none",children:"%"})]}),r!=null&&C.jsxs("div",{className:"mt-1 flex justify-between items-center text-xs",children:[C.jsxs("div",{className:"flex items-center gap-2",children:[r<m&&C.jsxs("span",{className:"text-orange-500",children:["Below minimum (",m,"%)"]}),r>p&&C.jsxs("span",{className:"text-orange-500",children:["Above maximum (",p,"%)"]}),r>=m&&r<=p&&C.jsx("span",{className:"text-green-500",children:"Valid range"})]}),C.jsxs("span",{className:"text-neutral-400 dark:text-neutral-500",children:[r.toFixed(y),"%"]})]}),C.jsx(Ze.AnimatePresence,{children:l&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:c==="error"?"alert":void 0,children:C.jsx(pe,{className:J("mt-1",$()),appearance:"custom",size:"extra-small",variant:"medium",children:l})})}),g&&!l&&C.jsx("div",{id:`${e}-description`,className:"sr-only",children:g})]})});Vb.displayName="PercentageInputField";const rT=(e,t,r,n,o)=>{const i={small:"w-7 h-4 after:h-3 after:w-3 after:top-0.5 after:left-0.5",medium:"w-9 h-5 after:h-4 after:w-4 after:top-0.5 after:left-0.5",large:"w-11 h-6 after:h-5 after:w-5 after:top-0.5 after:left-0.5"},a={small:"peer-checked:after:translate-x-3",medium:"peer-checked:after:translate-x-4",large:"peer-checked:after:translate-x-5"};return J("p-0.5 rounded-full peer after:content-[''] after:absolute after:rounded-full after:transition-all bg-gray-200",i[o],a[o],{"dark:bg-neutral-400 dark:peer-focus:ring-blue-800 dark:after:bg-neutral-500":r==="secondary"&&!e,"dark:bg-neutral-500 dark:peer-focus:ring-blue-800 dark:after:bg-neutral-700":r==="primary"&&!e,"peer-checked:bg-blue-600 dark:peer-checked:bg-primary-900 after:bg-white dark:after:bg-primary-500":e,"after:bg-white dark:after:bg-neutral-700":!e,"text-white dark:text-neutral-900":t,"cursor-not-allowed opacity-70":n})},yf=E.forwardRef(({id:e,checked:t,onChange:r,label:n,required:o=!1,disabled:i=!1,message:a,messageType:s="default",wrapperClassName:l,toggleClassName:c,labelClassName:u,helpText:d,size:f="medium",labelDirection:g="top",hideStatus:h=!1,statusText:m,withIcon:p=!1,icon:b,variant:y="primary",originalCase:w=!1,stopClickPropagation:S=!0},v)=>{const I=g==="top",N=g==="left",O=g==="right",T=()=>s==="error"?"text-red-500 dark:text-red-400":s==="success"?"text-green-500 dark:text-green-400":s==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",P=$=>{i||r($.target.checked)},M=()=>C.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),x=()=>C.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})});return C.jsxs("div",{className:J("flex flex-col w-full",l),onClick:$=>{S&&$.stopPropagation()},children:[I&&n&&C.jsx("div",{className:"w-full flex justify-between flex-wrap mb-1",children:C.jsx("label",{htmlFor:e,className:J("text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",!w&&"capitalize",u),children:C.jsxs(pe,{size:"extra-small",variant:"medium",appearance:"subtitle",children:[n,o&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})}),d&&C.jsx(pe,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:d}),C.jsxs("div",{className:"flex items-center",children:[N&&n&&C.jsx(pe,{size:"small",variant:"medium",className:J("mr-2 text-neutral-700 dark:text-neutral-200",u),appearance:"custom",children:n}),C.jsxs("label",{className:J("relative inline-flex items-center",O||m?"":"w-min",i?"cursor-not-allowed opacity-50":"cursor-pointer"),onClick:$=>$.stopPropagation(),children:[C.jsx("input",{ref:v,type:"checkbox",id:e,onChange:P,disabled:i,checked:t,className:J("sr-only peer w-full",c),"aria-required":o,"aria-invalid":a&&s==="error"?"true":"false","aria-describedby":a||d?`${e}-description`:void 0}),C.jsx("div",{className:rT(t,p,y,i,f),children:p&&C.jsx("div",{className:"flex items-center justify-center h-full",children:C.jsx("div",{className:J("z-10 transition-all transform",f==="small"&&(t?"translate-x-2 translate-y-[-2px]":"translate-x-[-6px] translate-y-[-2px]"),f==="medium"&&(t?"translate-x-[8.5px] translate-y-[-2px]":"translate-x-[-8px] translate-y-[-2px]"),f==="large"&&(t?"translate-x-3 translate-y-[-2px]":"translate-x-[-10px] translate-y-[-2px]")),children:t?b?.checkedIcon?b.checkedIcon:C.jsx(M,{}):b?.uncheckedIcon?b.uncheckedIcon:C.jsx(x,{})})})}),O&&n&&C.jsx(pe,{size:"small",variant:"medium",className:J("ml-2 text-neutral-700 dark:text-neutral-300",u),appearance:"custom",children:n}),!h&&C.jsx(pe,{size:"small",variant:"medium",className:"ml-2 text-neutral-900 dark:text-neutral-100",appearance:"custom",children:m||(t?"Yes":"No")})]})]}),C.jsx(Ze.AnimatePresence,{children:a&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:s==="error"?"alert":void 0,children:C.jsx(pe,{className:J("mt-1",T()),appearance:"custom",size:"extra-small",variant:"medium",children:a})})}),d&&!a&&C.jsx("div",{id:`${e}-description`,className:"sr-only",children:d})]})});yf.displayName="Toggle";var Bb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},zb=E.createContext&&E.createContext(Bb),nT=["attr","size","title"];function oT(e,t){if(e==null)return{};var r=iT(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function iT(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _l(){return _l=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},_l.apply(this,arguments)}function Gb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Vl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gb(Object(r),!0).forEach(function(n){aT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aT(e,t,r){return t=sT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sT(e){var t=lT(e,"string");return typeof t=="symbol"?t:t+""}function lT(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hb(e){return e&&e.map((t,r)=>E.createElement(t.tag,Vl({key:r},t.attr),Hb(t.child)))}function Bl(e){return t=>E.createElement(cT,_l({attr:Vl({},e.attr)},t),Hb(e.child))}function cT(e){var t=r=>{var{attr:n,size:o,title:i}=e,a=oT(e,nT),s=o||r.size||"1em",l;return r.className&&(l=r.className),e.className&&(l=(l?l+" ":"")+e.className),E.createElement("svg",_l({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:l,style:Vl(Vl({color:e.color||r.color},r.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&E.createElement("title",null,i),e.children)};return zb!==void 0?E.createElement(zb.Consumer,null,r=>t(r)):t(Bb)}function uT(e){return Bl({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"},child:[]},{tag:"polyline",attr:{points:"7 10 12 15 17 10"},child:[]},{tag:"line",attr:{x1:"12",y1:"15",x2:"12",y2:"3"},child:[]}]})(e)}function dT(e){return Bl({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"3 6 5 6 21 6"},child:[]},{tag:"path",attr:{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"},child:[]},{tag:"line",attr:{x1:"10",y1:"11",x2:"10",y2:"17"},child:[]},{tag:"line",attr:{x1:"14",y1:"11",x2:"14",y2:"17"},child:[]}]})(e)}function fT(e){return Bl({attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M2 12C2 6.47715 6.47715 2 12 2V5C8.13401 5 5 8.13401 5 12H2Z",fill:"currentColor"},child:[]}]})(e)}function mT(e){return Bl({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM1.6 11.85H0v3.999h.791v-1.342h.803q.43 0 .732-.173.305-.175.463-.474a1.4 1.4 0 0 0 .161-.677q0-.375-.158-.677a1.2 1.2 0 0 0-.46-.477q-.3-.18-.732-.179m.545 1.333a.8.8 0 0 1-.085.38.57.57 0 0 1-.238.241.8.8 0 0 1-.375.082H.788V12.48h.66q.327 0 .512.181.185.183.185.522m1.217-1.333v3.999h1.46q.602 0 .998-.237a1.45 1.45 0 0 0 .595-.689q.196-.45.196-1.084 0-.63-.196-1.075a1.43 1.43 0 0 0-.589-.68q-.396-.234-1.005-.234zm.791.645h.563q.371 0 .609.152a.9.9 0 0 1 .354.454q.118.302.118.753a2.3 2.3 0 0 1-.068.592 1.1 1.1 0 0 1-.196.422.8.8 0 0 1-.334.252 1.3 1.3 0 0 1-.483.082h-.563zm3.743 1.763v1.591h-.79V11.85h2.548v.653H7.896v1.117h1.606v.638z"},child:[]}]})(e)}const{Dragger:pT}=Qo,gT=e=>e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(2)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(2)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`,hT=(e,t=20)=>e?e.length<=t?e:e.slice(0,t-7)+"...."+e.slice(-7):"",Wb=E.forwardRef(({id:e,onFileChange:t,description:r,errorMessage:n,disabled:o=!1,defaultFile:i=null,acceptedFiles:a="*",isLoading:s=!1,asBase64:l=!1,toFileServer:c=!1,setFileUploading:u,fileUploading:d=!1,multiple:f=!1,getRealFileName:g=!1,maxSize:h=50*1024*1024,onUpload:m,onDelete:p,wrapperClassName:b,uploadClassName:y,showFileSize:w=!0,formatFileSize:S=gT},v)=>{const[I,N]=E.useState(null),[O,T]=E.useState([]),[P,M]=E.useState("#d9d9d9"),[x,$]=E.useState(!1),[k,F]=E.useState(null),j=E.useCallback(async()=>{if(m)try{const V=await m(O),_=f?V?.map(B=>B?.fileUrl):V?.[0]?.fileUrl,D=g?I?.name:V?.[0]?.fileName;t(_,D),u?.(null)}catch(V){console.error("Upload failed:",V),u?.(null)}},[m,O,f,I,g,t,u]),G={accept:a,multiple:f,showUploadList:!1,disabled:o,onRemove:()=>{T([])},beforeUpload:(V,_)=>{if(V.size>h){const D=(h/1048576).toFixed(0);return console.error(`File size exceeds ${D}MB limit`),!1}return N(V),c?(u?.(e||"field-file-upload"),T(_)):(l?Promise.all((f?_:[V]).map(D=>new Promise(B=>{const L=new FileReader;L.onload=z=>{B({filename:D.name,content:z?.target?.result?.split(",")[1]})},L.readAsDataURL(D)}))).then(D=>{t(f?D:D[0])}):t(V),N(V)),!1}},W=async()=>{if(c&&k&&p)try{await p(k),F(null)}catch(V){console.error("Delete failed:",V)}N(null),T([]),t(null)};return E.useEffect(()=>{M(n?"#EF4444":"#d9d9d9")},[n]),E.useEffect(()=>{O.length&&c&&j()},[O,c,j]),E.useEffect(()=>{i?.name&&N(i)},[i]),C.jsxs("div",{ref:v,className:J("w-full",b),children:[C.jsx("div",{className:"h-32",onMouseEnter:()=>$(!0),onMouseLeave:()=>$(!1),children:C.jsx(pT,{...G,className:y,style:{borderColor:x&&!n?"#1890ff":P},disabled:o||d,children:I?C.jsxs("div",{className:"flex items-center justify-between mx-5",title:I?.name||i?.name||"",children:[C.jsxs("div",{className:"flex items-center justify-center gap-4",children:[I?.type==="application/pdf"?C.jsx("div",{className:"p-3 bg-[#E6F1FC] rounded-lg",children:C.jsx(mT,{size:20,fill:"#006CCF"})}):C.jsx("div",{className:"p-3 bg-[#E6F1FC] rounded-lg",children:C.jsx(tT,{sx:{height:"20px",width:"20px",color:"#006CCF"}})}),C.jsxs("div",{className:"text-left",children:[C.jsx(pe,{size:"small",variant:"medium",className:"font-inter text-md font-medium text-base",children:hT(I?.name||i?.name||"")}),d?C.jsx(pe,{size:"small",variant:"medium",appearance:"subtitle",children:"Uploading..."}):w&&I?.size>0?C.jsx(pe,{size:"small",variant:"medium",appearance:"subtitle",children:S(I.size)}):null]})]}),s?C.jsx(fT,{size:40,className:"spinner text-primary-600"}):C.jsx("button",{id:`btn-file-upload-${e}`,className:"ml-4",onClick:V=>{V.stopPropagation(),W()},disabled:o,type:"button","aria-label":"Delete file",children:C.jsx(dT,{size:20,className:"text-gray-400"})})]}):C.jsx("div",{className:"flex items-center justify-center",children:C.jsxs("div",{className:"flex-col",children:[C.jsx("div",{className:"mb-4 flex justify-center",children:C.jsx(uT,{size:24,className:"text-gray-400"})}),C.jsxs("div",{children:[C.jsxs("div",{className:"flex items-center justify-center",children:[C.jsx(pe,{size:"small",variant:"medium",className:"text-primary-600 dark:text-primary-300",appearance:"custom",children:"Click to upload"}),C.jsx(pe,{size:"small",variant:"medium",className:"ml-1",appearance:"subtitle",children:"or drag and drop"})]}),r?C.jsx(pe,{size:"small",variant:"medium",appearance:"subtitle",children:r}):null]})]})})})}),n&&C.jsx(pe,{className:"text-red-500 mt-1",appearance:"custom",size:"extra-small",variant:"medium",children:n})]})});Wb.displayName="MultiFileUpload";const{Dragger:vT}=Qo,bT=200*1024*1024,yT=(e,t,r,n,o)=>{const i={small:"h-24",medium:"h-32",large:"h-40"},a={primary:"border-blue-200 hover:border-blue-400",secondary:"border-gray-200 hover:border-gray-400"};return J("border-2 border-dashed rounded-lg transition-colors duration-200",i[e],a[t],{"border-red-400 bg-red-50":n,"cursor-not-allowed opacity-50":r,"cursor-pointer":!r})},CT=()=>C.jsx("div",{className:"p-3 bg-blue-50 rounded-lg",children:C.jsx("svg",{className:"w-5 h-5 text-blue-600",fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4zm2 6a1 1 0 011-1h6a1 1 0 110 2H7a1 1 0 01-1-1zm1 3a1 1 0 100 2h6a1 1 0 100-2H7z",clipRule:"evenodd"})})}),xT=()=>C.jsx("div",{className:"p-3 bg-blue-50 rounded-lg",children:C.jsx("svg",{className:"w-5 h-5 text-blue-600",fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4z",clipRule:"evenodd"})})}),wT=()=>C.jsx("svg",{className:"w-6 h-6 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})}),ST=()=>C.jsx("svg",{className:"w-5 h-5 text-gray-400",fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})}),Ub=E.forwardRef(({id:e,onFileSelect:t,onUpload:r,description:n,errorMessage:o,disabled:i=!1,defaultFile:a=null,acceptedFiles:s="*",isLoading:l=!1,asBase64:c=!1,multiple:u=!1,hideSelectedFile:d=!1,onDelete:f,maxSize:g=bT,wrapperClassName:h,uploadClassName:m,size:p="medium",variant:b="primary",uploadIcon:y,deleteIcon:w,fileTypeIcons:S,showFileSize:v=!0,showProgress:I=!1,progress:N=0},O)=>{const[T,P]=E.useState(null),[M,x]=E.useState(!1),$=(V,_)=>{if(V.size>g){const D=Math.round(g/1048576);return console.error(`File size exceeds the limit of ${D} MB`),Qo.LIST_IGNORE}if(d||P(V),c){const D=new FileReader;D.onload=B=>{const L=B?.target?.result;t(L,V.name)},D.readAsDataURL(V)}else t(u?_:V,V.name);return r&&r(u?_:V),Qo.LIST_IGNORE},k=()=>{P(null),t(null),f?.()},F=V=>{if(V===0)return"0 Bytes";const _=1024,D=["Bytes","KB","MB","GB"],B=Math.floor(Math.log(V)/Math.log(_));return parseFloat((V/Math.pow(_,B)).toFixed(2))+" "+D[B]},j=V=>V.length<=30?V:`${V.slice(0,23)}....${V.slice(-7)}`,G=V=>V.type==="application/pdf"?S?.pdf||C.jsx(CT,{}):S?.default||C.jsx(xT,{});E.useEffect(()=>{a&&P(a)},[a]);const W={accept:s,multiple:u,showUploadList:!1,disabled:i,beforeUpload:$};return C.jsxs("div",{ref:O,className:J("w-full",h),children:[C.jsx("div",{className:J(yT(p,b,i,!!o),m),onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),role:"button",tabIndex:i?-1:0,"aria-label":"File upload area",children:C.jsx(vT,{...W,children:T&&!d?C.jsxs("div",{className:"flex items-center justify-between mx-5",title:T.name,children:[C.jsxs("div",{className:"flex items-center gap-4",children:[G(T),C.jsxs("div",{className:"text-left",children:[C.jsx(pe,{size:"small",variant:"medium",className:"text-neutral-900 font-medium",children:j(T.name)}),v&&T.size>0&&C.jsx(pe,{size:"small",variant:"medium",appearance:"subtitle",children:F(T.size)}),I&&N>0&&C.jsxs("div",{className:"mt-1",children:[C.jsx("div",{className:"w-full bg-gray-200 rounded-full h-1",children:C.jsx("div",{className:"bg-blue-600 h-1 rounded-full transition-all duration-300",style:{width:`${N}%`}})}),C.jsxs(pe,{size:"extra-small",variant:"medium",appearance:"subtitle",children:[N,"% uploaded"]})]})]})]}),l?C.jsx("div",{className:"animate-spin",children:C.jsx("svg",{className:"w-5 h-5 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})}):C.jsx("button",{className:"ml-4 p-1 hover:bg-gray-100 rounded",onClick:V=>{V.stopPropagation(),k()},disabled:i,type:"button","aria-label":"Delete file",children:w||C.jsx(ST,{})})]}):C.jsx("div",{className:"flex items-center justify-center h-full",children:C.jsxs("div",{className:"flex flex-col items-center",children:[C.jsx("div",{className:"mb-4 flex justify-center",children:y||C.jsx(wT,{})}),C.jsxs("div",{className:"text-center",children:[C.jsxs("div",{className:"flex items-center justify-center gap-1",children:[C.jsx(pe,{size:"small",variant:"medium",className:"text-blue-600 dark:text-blue-300",appearance:"custom",children:"Click to upload"}),C.jsx(pe,{size:"small",variant:"medium",appearance:"subtitle",children:"or drag and drop"})]}),n&&C.jsx(pe,{size:"small",variant:"medium",className:"text-neutral-400 mt-1",children:n})]})]})})})}),o&&C.jsx(pe,{className:"text-red-500 mt-1",appearance:"custom",size:"extra-small",variant:"medium",children:o})]})});Ub.displayName="FileUpload";const Xb=E.forwardRef(({status:e,children:t,className:r,size:n="medium","aria-label":o},i)=>{const a=()=>{switch(n){case"small":return"text-xs px-1.5 py-0.5";case"large":return"text-base px-3 py-1.5";default:return"text-sm px-2 py-1"}},s=()=>{switch(e?.toLowerCase()){case"purple":return"bg-purple-50 text-purple-500 border border-purple-100 dark:bg-purple-950 dark:text-purple-400 dark:border-purple-800";case"blue":return"bg-blue-50 text-blue-500 border border-blue-100 dark:bg-blue-950 dark:text-blue-400 dark:border-blue-800";case"teal":return"bg-teal-50 text-teal-500 border border-teal-100 dark:bg-teal-950 dark:text-teal-400 dark:border-teal-800";case"green":return"bg-green-50 text-green-500 border border-green-100 dark:bg-green-950 dark:text-green-400 dark:border-green-800";case"yellow":return"bg-yellow-50 text-yellow-600 border border-yellow-100 dark:bg-yellow-950 dark:text-yellow-400 dark:border-yellow-800";case"orange":return"bg-orange-50 text-orange-500 border border-orange-100 dark:bg-orange-950 dark:text-orange-400 dark:border-orange-800";case"peach":return"bg-orange-50 text-orange-400 border border-orange-100 dark:bg-orange-950 dark:text-orange-300 dark:border-orange-800";case"red":return"bg-red-50 text-red-500 border border-red-100 dark:bg-red-950 dark:text-red-400 dark:border-red-800";case"navy":return"bg-slate-50 text-slate-700 border border-slate-100 dark:bg-slate-950 dark:text-slate-400 dark:border-slate-800";case"grey":return"bg-neutral-50 text-neutral-500 border border-neutral-100 dark:bg-neutral-950 dark:text-neutral-400 dark:border-neutral-800";default:return"bg-blue-50 text-blue-600 border border-blue-200 dark:bg-blue-950 dark:text-blue-400 dark:border-blue-800"}};return C.jsx("span",{ref:i,className:J("inline-flex items-center justify-center font-medium rounded-md transition-colors",a(),s(),r),"aria-label":o||`Status: ${e||"default"}`,role:"status",children:t})});Xb.displayName="StatusColorMapping";const Yb=E.forwardRef(({status:e="default",children:t,appearance:r="outline",size:n="md",className:o,isRounded:i=!1,capitalize:a=!0,"aria-label":s},l)=>{const c=h=>!h||!a?h:h.replace(/\w\S*/g,m=>m.charAt(0).toUpperCase()+m.substr(1).toLowerCase()),u=()=>{switch(n){case"sm":return"text-xs px-1.5 py-0.5";case"lg":return"text-sm px-3 py-1.5";default:return"text-xs px-2 py-1"}},d=()=>{switch(e){case"primary":case"default":return"bg-blue-50 dark:bg-blue-950 text-blue-600 dark:text-blue-300 border border-blue-300 dark:border-blue-700";case"warning":return"bg-yellow-50 dark:bg-yellow-950 text-yellow-600 dark:text-yellow-300 border border-yellow-300 dark:border-yellow-700";case"error":return"bg-red-50 dark:bg-red-950 text-red-600 dark:text-red-300 border border-red-300 dark:border-red-700";case"neutral":return"bg-neutral-50 dark:bg-neutral-950 text-neutral-600 dark:text-neutral-300 border border-neutral-300 dark:border-neutral-700";case"success":return"bg-green-50 dark:bg-green-950 text-green-600 dark:text-green-300 border border-green-300 dark:border-green-700";case"info":return"bg-blue-50 dark:bg-blue-950 text-blue-600 dark:text-blue-300 border border-blue-300 dark:border-blue-700";default:return"bg-blue-50 dark:bg-blue-950 text-blue-600 dark:text-blue-300 border border-blue-300 dark:border-blue-700"}},f=()=>{switch(e){case"primary":case"default":return"bg-blue-600 dark:bg-blue-700 text-white";case"warning":return"bg-yellow-600 dark:bg-yellow-700 text-white";case"success":return"bg-green-600 dark:bg-green-700 text-white";case"error":return"bg-red-600 dark:bg-red-700 text-white";case"neutral":return"bg-neutral-600 dark:bg-neutral-700 text-white";case"info":return"bg-blue-600 dark:bg-blue-700 text-white";default:return"bg-blue-600 dark:bg-blue-700 text-white"}},g=()=>r==="filled"?f():d();return C.jsx("span",{ref:l,className:J("inline-flex items-center justify-center font-medium transition-colors",i?"rounded-full":"rounded",u(),g(),o),"aria-label":s||`Badge: ${e}`,role:"status",children:c(t)})});Yb.displayName="Badge";const Jb=E.forwardRef(({open:e,children:t,title:r,mask:n=!0,onlyBody:o=!1,bodySpacing:i=!0,headerRightContent:a,parentContainer:s="full-screen-container",zIndex:l,asForm:c,onSubmit:u,showCloseButton:d=!0,noPadding:f=!1,onClose:g,onCancel:h,size:m="md",appearance:p="default",className:b,width:y,height:w,footer:S,closable:v=!0,centered:I=!0,style:N,...O},T)=>{const P=()=>{switch(m){case"sm":return"max-w-sm";case"lg":return"max-w-2xl";case"xl":return"max-w-4xl";case"full":return"max-w-full h-full";default:return"max-w-lg"}},M=()=>{switch(p){case"centered":return"flex items-center justify-center";case"fullscreen":return"w-full h-full";default:return"flex items-center justify-center"}},x=V=>{V.preventDefault(),u&&u()},$=()=>{g?g():h&&h()},k=V=>{v&&V.target===V.currentTarget&&$()},F=()=>o?null:C.jsxs("div",{className:"flex justify-between items-center",children:[d?C.jsx(pe,{size:"large",variant:"semibold",appearance:"title",className:"tour__title",children:r}):C.jsx("div",{className:"flex flex-col w-full",children:r}),a||d&&C.jsx("button",{id:"btn-modal-close",onClick:$,className:"p-1 hover:bg-neutral-100 dark:hover:bg-neutral-800 rounded transition-colors",type:"button","aria-label":"Close modal",children:C.jsx(eT,{sx:{fontSize:"20px"},className:"cursor-pointer text-neutral-400 hover:text-neutral-600 dark:text-neutral-500 dark:hover:text-neutral-400"})})]}),j=c?"form":"div";if(!e)return null;const G=C.jsx("div",{ref:T,className:J("fixed inset-0 z-[1000]",M(),n?"bg-black/50 backdrop-blur-sm":"",b),onClick:k,onKeyDown:V=>{V.key==="Escape"&&v&&$()},style:{zIndex:l||1e3,...N},role:"dialog","aria-modal":"true",tabIndex:-1,"aria-label":typeof r=="string"?r:"Modal",children:C.jsx("div",{className:J("bg-white dark:bg-neutral-900 rounded-lg shadow-xl",P(),p==="fullscreen"?"w-full h-full rounded-none":"",I?"mx-auto":""),style:{width:y||void 0,height:w||void 0},onClick:V=>V.stopPropagation(),onKeyDown:V=>V.stopPropagation(),role:"document",children:C.jsxs(j,{onSubmit:c?x:void 0,className:"flex flex-col h-full",children:[F(),O.addLineAfterHeader&&C.jsx("hr",{className:"mt-2 border-neutral-200 dark:border-neutral-700"}),C.jsx("div",{className:J("flex-1 overflow-auto",f?"p-0":i?"p-6":"p-0"),children:t}),S&&C.jsx("div",{className:J("border-t border-neutral-200 dark:border-neutral-700",f?"p-0":"p-6"),children:S})]})})}),W=document.getElementById(s)||document.body;return zr.createPortal(G,W)});Jb.displayName="Modal";const Zb=E.forwardRef(({size:e=24,fill:t="currentColor",className:r,...n},o)=>C.jsx("svg",{ref:o,className:J(r),width:e,height:e,viewBox:"0 0 20 20",fill:t,xmlns:"http://www.w3.org/2000/svg",...n,children:C.jsx("path",{d:"M10.0002 11.1666L5.91683 15.2499C5.76405 15.4027 5.56961 15.4791 5.3335 15.4791C5.09739 15.4791 4.90294 15.4027 4.75016 15.2499C4.59738 15.0971 4.521 14.9027 4.521 14.6666C4.521 14.4305 4.59738 14.236 4.75016 14.0833L8.8335 9.99992L4.75016 5.91659C4.59738 5.76381 4.521 5.56936 4.521 5.33325C4.521 5.09714 4.59738 4.9027 4.75016 4.74992C4.90294 4.59714 5.09739 4.52075 5.3335 4.52075C5.56961 4.52075 5.76405 4.59714 5.91683 4.74992L10.0002 8.83325L14.0835 4.74992C14.2363 4.59714 14.4307 4.52075 14.6668 4.52075C14.9029 4.52075 15.0974 4.59714 15.2502 4.74992C15.4029 4.9027 15.4793 5.09714 15.4793 5.33325C15.4793 5.56936 15.4029 5.76381 15.2502 5.91659L11.1668 9.99992L15.2502 14.0833C15.4029 14.236 15.4793 14.4305 15.4793 14.6666C15.4793 14.9027 15.4029 15.0971 15.2502 15.2499C15.0974 15.4027 14.9029 15.4791 14.6668 15.4791C14.4307 15.4791 14.2363 15.4027 14.0835 15.2499L10.0002 11.1666Z"})}));Zb.displayName="CloseIcon";const Qn={primary:{50:"#E6F1FC",100:"#C6E1F9",200:"#8AC0F2",300:"#54A4EC",400:"#3392E9",500:"#0077E3",600:"#016DCF",700:"#0054A1",800:"#00417D",900:"#00325F",950:"#001c35",975:"#00111f"},black:{50:"#f0f0f0",100:"#d9d9d9",200:"#bfbfbf",300:"#8c8c8c",400:"#595959",500:"#454545",600:"#262626",700:"#1f1f1f",800:"#141414",900:"#000000",950:"#0a0a0a",975:"#050505"},blue:{50:"#E6F1FC",100:"#C6E1F9",200:"#8AC0F2",300:"#54A4EC",400:"#3392E9",500:"#0077E3",600:"#016DCF",700:"#0054A1",800:"#00417D",900:"#00325F",950:"#002547",975:"#001529"},success:{50:"#ECFDF3",100:"#D1FADF",200:"#A6F4C5",300:"#6CE9A6",400:"#32D583",500:"#12B76A",600:"#039855",700:"#027A48",800:"#05603A",900:"#054F31",950:"#033625",975:"#022419"},neutral:{50:"#F9FAFB",100:"#F2F4F7",200:"#EAECF0",300:"#D0D5DD",400:"#98A2B3",500:"#667085",600:"#475467",700:"#344054",800:"#1D2939",900:"#101828",950:"#0c1219",975:"#080a0f"},error:{50:"#FEF3F2",100:"#FEE4E2",200:"#FECDCA",300:"#FDA29B",400:"#F97066",500:"#F04438",600:"#D92D20",700:"#B42318",800:"#912018",900:"#7A271A",950:"#3d1008",975:"#2a0b05"},warning:{50:"#FFFAEB",100:"#FEF0C7",200:"#FEDF89",300:"#FEC84B",400:"#FDB022",500:"#F79009",600:"#DC6803",700:"#B54708",800:"#93370D",900:"#7A2E0E",950:"#662505",975:"#451803"},teal:{50:"#ebf5f5",100:"#c2e0df",200:"#a4d1d0",300:"#7abcba",400:"#61afad",500:"#399b98",600:"#348d8a",700:"#286e6c",800:"#1f5554",900:"#184140",950:"#133534",975:"#0c2222"},green:{50:"#f2f7f2",100:"#d5e5d5",200:"#c1d9c1",300:"#a5c7a5",400:"#94bd93",500:"#79ac78",600:"#6e9d6d",700:"#567a55",800:"#435f42",900:"#334832",950:"#001e00",975:"#182818"},yellow:{50:"#fffaed",100:"#fff0c7",200:"#ffe8ac",300:"#ffde86",400:"#ffd76f",500:"#ffcd4b",600:"#e8bb44",700:"#b59235",800:"#8c7129",900:"#6b5620",950:"#524314",975:"#382e0e"},orange:{50:"#fef4e8",100:"#fddeb7",200:"#fcce94",300:"#fbb764",400:"#faa945",500:"#f99417",600:"#e38715",700:"#b16910",800:"#89510d",900:"#693e0a",950:"#4d2d07",975:"#331e05"},peach:{50:"#fceef3",100:"#f5cad9",200:"#f0b0c6",300:"#ea8cad",400:"#e5759d",500:"#df5384",600:"#cb4c78",700:"#9e3b5e",800:"#7b2e49",900:"#5e2337",950:"#451a2b",975:"#2e111d"},red:{50:"#fceaeb",100:"#f6bec0",200:"#f29ea2",300:"#ec7278",400:"#e9575d",500:"#e32d35",600:"#cf2930",700:"#a12026",800:"#7d191d",900:"#5f1316",950:"#470c0f",975:"#2f080a"},purple:{50:"#f5e7ff",100:"#dfb4ff",200:"#d090ff",300:"#bb5dff",400:"#ad3dff",500:"#990dff",600:"#8b0ce8",700:"#6d09b5",800:"#54078c",900:"#40056b",950:"#300450",975:"#200336"},navy:{50:"#eaebf6",100:"#bebfe2",200:"#9ea1d3",300:"#7276bf",400:"#575bb3",500:"#2d32a0",600:"#292e92",700:"#202472",800:"#191c58",900:"#131543",950:"#0d0e2f",975:"#090a20"},grey:{50:"#f2f2f2",100:"#d5d5d5",200:"#c1c1c1",300:"#a5a5a5",400:"#939393",500:"#787878",600:"#6d6d6d",700:"#555555",800:"#424242",900:"#323232",950:"#252525",975:"#191919"}},ET=e=>{let t=0;for(let o=0;o<e.length;o++)t=e.charCodeAt(o)+((t<<5)-t);const r=(t&16777215).toString(16).toUpperCase();return`#${"00000".substring(0,6-r.length)+r}`},Cf=(e,t=80)=>{let r=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16);return r=Math.min(255,r+(255-r)*(t/100)),n=Math.min(255,n+(255-n)*(t/100)),o=Math.min(255,o+(255-o)*(t/100)),`#${Math.round(r).toString(16).padStart(2,"0")}${Math.round(n).toString(16).padStart(2,"0")}${Math.round(o).toString(16).padStart(2,"0")}`},qb=(e,t=30)=>{let r=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16);return r=Math.max(0,r*(1-t/100)),n=Math.max(0,n*(1-t/100)),o=Math.max(0,o*(1-t/100)),`#${Math.round(r).toString(16).padStart(2,"0")}${Math.round(n).toString(16).padStart(2,"0")}${Math.round(o).toString(16).padStart(2,"0")}`},IT=(e,t)=>({background:t?Qn[e]?.[975]:Qn[e]?.[50],borderColor:t?Qn[e]?.[900]:Qn[e]?.[100],color:t?Qn[e]?.[500]:Qn[e]?.[600]}),AT=(e,t)=>{const r=e.startsWith("#")?e:ET(e);return{background:t?qb(r,80):Cf(r,90),borderColor:t?qb(r,40):Cf(r,50),color:t?Cf(r,40):r}},NT=e=>({background:e?"#2D3748":"#F7FAFC",borderColor:e?"#4A5568":"#E2E8F0",color:e?"#A0AEC0":"#4A5568"}),OT=e=>{switch(e){case"xs":return"text-xs px-1 py-0.5";case"lg":return"text-sm px-2.5 py-1.5";case"md":return"text-sm px-2 py-1";default:return"text-xs px-1.5 py-0.5"}},TT=(e,t,r,n)=>e?r?t.color:Qn[e]?.[500]||t.color:n?"#A0AEC0":"#4A5568",pa=E.forwardRef(({label:e,color:t,size:r="sm",className:n,onClick:o,onMouseDown:i,truncate:a,isHashColor:s=!1,icon:l,removable:c=!1,onRemove:u,onUpload:d,acceptsUpload:f=!1,theme:g="light","aria-label":h},m)=>{const p=g==="dark",b=()=>t?t in Qn?IT(t,p):AT(t,p):NT(p),y=I=>{const N=I.target.files?.[0];N&&d&&d(N),I.target.value=""},w=I=>{(I.key==="Enter"||I.key===" ")&&(o||f)&&(I.preventDefault(),o&&o(I))},S=b(),v=TT(t,S,s,p);return C.jsx("div",{ref:m,className:J("inline-flex items-center border rounded-md transition-colors",OT(r),(o||f)&&"cursor-pointer hover:opacity-80",n),style:S,onMouseDown:i,onClick:o,onKeyDown:w,"aria-label":h||`Tag: ${e}`,role:"button",tabIndex:o||f?0:void 0,children:C.jsxs("div",{className:"flex items-center gap-0.5 truncate w-full overflow-hidden",children:[l,a?C.jsx("p",{title:e,className:`text-${r} ${o||f?"cursor-pointer":""}`,children:e.length>a?`${e.slice(0,a)}...`:e}):C.jsx("p",{className:`text-${r}`,children:e}),f&&C.jsx("input",{type:"file",onChange:y,className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer","aria-label":`Upload file for ${e}`}),c&&u&&C.jsx("button",{onClick:u,className:"ml-1 flex-shrink-0","aria-label":`Remove ${e}`,type:"button",children:C.jsx(Zb,{size:12,fill:v,className:"cursor-pointer"})})]})})});pa.displayName="Tag";const PT=({size:e=16,className:t="",...r})=>C.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`text-neutral-500 hover:text-neutral-700 ${t}`,...r,children:[C.jsx("circle",{cx:"12",cy:"12",r:"10"}),C.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),C.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),kT=({size:e=20,className:t="",...r})=>C.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`text-primary-600 dark:text-primary-300 cursor-pointer ${t}`,...r,children:[C.jsx("circle",{cx:"11",cy:"11",r:"8"}),C.jsx("path",{d:"M21 21l-4.35-4.35"})]}),In=({title:e,placement:t="top",children:r,className:n=""})=>{const[o,i]=E.useState(!1),a={top:"bottom-full left-1/2 transform -translate-x-1/2 mb-2",bottom:"top-full left-1/2 transform -translate-x-1/2 mt-2",left:"right-full top-1/2 transform -translate-y-1/2 mr-2",right:"left-full top-1/2 transform -translate-y-1/2 ml-2"},s={top:"top-full left-1/2 transform -translate-x-1/2 border-l-transparent border-r-transparent border-b-transparent border-t-gray-800",bottom:"bottom-full left-1/2 transform -translate-x-1/2 border-l-transparent border-r-transparent border-t-transparent border-b-gray-800",left:"left-full top-1/2 transform -translate-y-1/2 border-t-transparent border-b-transparent border-r-transparent border-l-gray-800",right:"right-full top-1/2 transform -translate-y-1/2 border-t-transparent border-b-transparent border-l-transparent border-r-gray-800"};return C.jsxs("div",{className:`relative inline-block ${n}`,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onFocus:()=>i(!0),onBlur:()=>i(!1),role:"button",tabIndex:0,children:[r,o&&C.jsxs("div",{className:`absolute z-50 px-2 py-1 text-sm text-white bg-gray-800 rounded shadow-lg whitespace-nowrap ${a[t]}`,role:"tooltip","aria-live":"polite",children:[e,C.jsx("div",{className:`absolute w-0 h-0 border-4 ${s[t]}`})]})]})},xf=e=>e===1||e==="1"||typeof e=="string"&&e.toLowerCase()==="yes"||typeof e=="string"&&e.toLowerCase()==="true"?"Yes":e===0||e==="0"||typeof e=="string"&&e.toLowerCase()==="no"||typeof e=="string"&&e.toLowerCase()==="false"?"No":e?.toString()||"-",wf=(e,t="USD")=>{try{if(e==null)return"";const r=Number(e);if(isNaN(r))return e?.toString()||"";const n=r.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2});return`${{USD:"$",EUR:"€",GBP:"£",JPY:"¥",CAD:"C$",AUD:"A$",CHF:"CHF",CNY:"¥",SEK:"kr",NOK:"kr",DKK:"kr",PLN:"zł",CZK:"Kč",HUF:"Ft",RUB:"₽",BRL:"R$",INR:"₹",KRW:"₩",SGD:"S$",HKD:"HK$",NZD:"NZ$",MXN:"$",ZAR:"R",TRY:"₺",ILS:"₪",AED:"د.إ",SAR:"﷼",QAR:"﷼",KWD:"د.ك",BHD:"د.ب",OMR:"﷼",JOD:"د.ا",LBP:"ل.ل",EGP:"£",MAD:"د.م.",TND:"د.ت",DZD:"د.ج",LYD:"ل.د",SDG:"ج.س.",ETB:"Br",KES:"KSh",UGX:"USh",TZS:"TSh",ZMW:"ZK",BWP:"P",ZWL:"Z$",AOA:"Kz",MZN:"MT",GHS:"₵",NGN:"₦",XAF:"FCFA",XOF:"CFA",CDF:"FC",RWF:"RF",BIF:"FBu",KMF:"CF",DJF:"Fdj",SOS:"S",ERN:"Nfk"}[t]||"$"}${n}`}catch{return"-"}},ga=(e,t={})=>{const{format:r,relative:n=!1,withTime:o=!0,fallback:i="-",skipTimezone:a=!1,onlyTime:s=!1}=t||{};if(!e)return i;try{const l=new Date(e);if(isNaN(l.getTime()))return i;if(n){const g=Math.floor((new Date().getTime()-l.getTime())/1e3);return g<60?"just now":g<3600?`${Math.floor(g/60)} minutes ago`:g<86400?`${Math.floor(g/3600)} hours ago`:g<2592e3?`${Math.floor(g/86400)} days ago`:g<31536e3?`${Math.floor(g/2592e3)} months ago`:`${Math.floor(g/31536e3)} years ago`}const c="MM/dd/yyyy",u="hh:mm a",d=o&&!s;return l.toLocaleDateString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:o?"2-digit":void 0,minute:o?"2-digit":void 0,hour12:!0})}catch{return i}},Qb=e=>typeof e=="string"&&/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/.test(e),FT=({labels:e=[]})=>{const t=[],r=[];return e.forEach(n=>{typeof n=="string"&&!t.includes(n)?t.push(n):typeof n!="string"&&!r.some(o=>o.label===n.label)&&r.push(n)}),C.jsxs(C.Fragment,{children:[t?.map(n=>C.jsx(pa,{size:"xs",label:n,color:"primary"},n)),r?.map((n,o)=>C.jsx(pa,{size:"xs",label:n?.label,color:n?.color},n?.id||o))]})},Kb=E.forwardRef(({label:e,value:t,className:r,type:n="string",tags:o,tooltip:i,items:a,isModified:s=!1,isChanged:l=!1,size:c="medium",isHighlighted:u=!1,deletedValue:d,highlightColor:f="warning",isSearchActive:g=!1,originalValue:h=!1,showDiff:m=!1,theme:p="light",onUpload:b,acceptsUpload:y=!1,MasterDataModal:w,riskDetails:S,isRiskAnalysisOpen:v=!1,RiskDetailsCard:I,"aria-label":N},O)=>{const[T,P]=E.useState(!0),[M,x]=E.useState(!1),[$,k]=E.useState(null),[F,j]=E.useState(!1),G=()=>{P(!T)},W=z=>{x(!0),k({...z,value:t})},V=()=>{x(!1),k(null)},_=z=>{const Q=z.target.files?.[0];Q&&b&&b(Q),z.target.value=""},D=()=>{const z=typeof t=="string"&&Qb(t);if(g&&typeof t=="object")return t;if(t||n==="boolean"&&t===0||n==="currency"&&Number(t)>=0){if((t===!0||t==="True")&&!h)return"Yes";if((t===!1||t==="False")&&!h)return"No";if(n==="url")return C.jsx("a",{href:t,className:"text-primary-600 truncate",children:t});if(n==="boolean")return xf(t);if(n==="currency")return wf(t,a?.currency_code)||"-";if(n==="datetime"){const Q=typeof t=="string"&&t.includes("Z")?t.replace(/\.000Z$/,"Z"):t;return ga(Q,{skipTimezone:!1,withTime:!0})}else if(n==="date"||z){const Q=typeof t=="string"&&t.includes("Z")?t.replace(/\.000Z$/,"Z"):t;return ga(Q,{skipTimezone:!0,withTime:!1})}else return n==="percentage"?`${t}%`:typeof t=="string"&&t.length>100?C.jsxs("p",{children:[t.slice(0,T?100:t.length),T?"... ":" ",C.jsx("button",{id:`btn-label-value-${T?"Show more":"Show less"}`,className:"text-primary-400 text-sm hover:text-primary-500 cursor-pointer whitespace-nowrap",onClick:G,onKeyDown:Q=>{(Q.key==="Enter"||Q.key===" ")&&(Q.preventDefault(),G())},"aria-label":T?"Show more content":"Show less content",type:"button",children:T?"Show more":"Show less"})]}):t}return"-"},B=()=>{switch(c){case"small":return"extra-small";case"large":return"large";default:return"small"}},L=()=>{switch(f){case"success":return"bg-success-100";case"warning":return"bg-warning-100";case"error":return"bg-error-100";case"info":return"bg-info-100";default:return"bg-warning-100"}};return C.jsxs("div",{ref:O,className:J("font-medium relative",r),onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),"aria-label":N||`Label: ${e}, Value: ${t}`,children:[C.jsxs(pe,{variant:"medium",size:B(),className:"flex gap-1 flex-wrap",appearance:"subtitle",children:[e," ",C.jsx(FT,{labels:o?.map(z=>({...z,color:z.color||"primary"}))}),o&&o.length>0&&C.jsx(C.Fragment,{children:o.map(z=>C.jsx(pa,{label:z.label,color:z.color,size:"xs",theme:p},`${z.label}-${z.value||z.color}`))}),i&&C.jsx(In,{placement:"top",title:i,children:C.jsx("div",{className:"cursor-pointer",role:"button",tabIndex:0,onKeyDown:z=>{(z.key==="Enter"||z.key===" ")&&z.preventDefault()},children:C.jsx(PT,{size:14})})})]}),C.jsxs(pe,{variant:"medium",size:B(),className:J("text-- whitespace-normal break-all flex gap-1 pt-0.5",s&&"bg-neutral-50 dark:bg-black-700 p-1 rounded",v&&S?.color&&`bg-${S.color}-50 border-${S.color}-300 px-0.5 rounded-lg`),appearance:"body",children:[m&&d&&t?C.jsxs("div",{className:"flex gap-2",children:[C.jsx("span",{className:"line-through",children:d}),C.jsx("span",{children:D()})]}):l||u?C.jsx("mark",{className:J("rounded-md py-0.5 px-1",L()),children:D()}):D(),a?.is_master_data&&a?.reference&&t&&C.jsx("button",{onClick:()=>W(a),onKeyDown:z=>{(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),W(a))},"aria-label":`Search master data for ${e}`,type:"button",className:"cursor-pointer",children:C.jsx(kT,{size:20})}),y&&C.jsx("input",{type:"file",onChange:_,className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer","aria-label":`Upload file for ${e}`})]}),d&&!m&&C.jsx(pe,{variant:"medium",size:"extra-small",className:"pt-0.5",appearance:"body",children:C.jsx("mark",{className:"rounded-md py-0.5 px-1 bg-error-100",children:C.jsx("del",{children:d||n==="boolean"&&d==="0"?d==="True"?"Yes":d==="False"?"No":n==="boolean"?xf(d):n==="currency"?wf(d,a?.currency_code):n==="date"?ga(d,{skipTimezone:!0,withTime:!1}):n==="datetime"?ga(d,{skipTimezone:!0,withTime:!0}):n==="percentage"?`${d}%`:d.length>100?C.jsxs("p",{children:[d.slice(0,T?100:d.length),T?"... ":" ",C.jsx("button",{id:`btn-label-value-${T?"Show more":"Show less"}`,className:"text-primary-400 text-sm hover:text-primary-500 cursor-pointer whitespace-nowrap",onClick:G,children:T?"Show more":"Show less"})]}):d:"-"})})}),w&&C.jsx(w,{isVisible:M,onClose:V,masterdataInfo:$}),F&&S&&v&&C.jsx("div",{className:"absolute left-0 right-0 top-[95%] mt-1 z-50 bg-white dark:bg-black-600 rounded-xl",onClick:z=>z.stopPropagation(),onMouseDown:z=>z.preventDefault(),onKeyDown:z=>{z.key==="Escape"&&j(!1)},role:"tooltip","aria-label":"Risk analysis details",tabIndex:0,children:I?C.jsx(I,{riskDetails:S}):C.jsx("div",{className:"shadow-lg p-4",children:C.jsxs("div",{className:"text-sm",children:[C.jsx("h4",{className:"font-semibold mb-2",children:"Risk Details"}),C.jsx("p",{className:"text-neutral-600 dark:text-neutral-300",children:S.description||"Risk analysis information"})]})})})]})});Kb.displayName="LabelValue";const e1=E.forwardRef(({status:e,children:t,additionalChildren:r,ExpandedComponent:n,expandable:o=!1,icon:i,className:a,onClick:s,"aria-label":l},c)=>{const[u,d]=E.useState(!1),f=()=>{switch(e){case"success":return"bg-green-50 dark:bg-green-950 text-green-700 dark:text-green-300 border-l-4 border-green-400 dark:border-green-600";case"error":return"bg-red-50 dark:bg-red-950 text-red-700 dark:text-red-300 border-l-4 border-red-400 dark:border-red-600";case"warning":return"bg-yellow-50 dark:bg-yellow-950 text-yellow-700 dark:text-yellow-300 border-l-4 border-yellow-400 dark:border-yellow-600";case"info":return"bg-blue-50 dark:bg-blue-950 text-blue-700 dark:text-blue-300 border-l-4 border-blue-400 dark:border-blue-600";case"archived":return"bg-neutral-50 dark:bg-neutral-950 text-neutral-700 dark:text-neutral-300 border-l-4 border-neutral-400 dark:border-neutral-600";case"canceled":return"bg-gray-50 dark:bg-gray-950 text-gray-700 dark:text-gray-300 border-l-4 border-gray-400 dark:border-gray-600";case"queued":return"bg-blue-50 dark:bg-blue-950 text-blue-700 dark:text-blue-300 border-l-4 border-blue-400 dark:border-blue-600";case"paused":return"bg-orange-50 dark:bg-orange-950 text-orange-700 dark:text-orange-300 border-l-4 border-orange-400 dark:border-orange-600";case"awaiting_action":return"bg-orange-50 dark:bg-orange-950 text-orange-700 dark:text-orange-300 border-l-4 border-orange-400 dark:border-orange-600";case"skipped":return"bg-gray-50 dark:bg-gray-950 text-gray-700 dark:text-gray-300 border-l-4 border-gray-400 dark:border-gray-600";case"pending":return"bg-purple-50 dark:bg-purple-950 text-purple-700 dark:text-purple-300 border-l-4 border-purple-400 dark:border-purple-600";default:return"bg-blue-50 dark:bg-blue-950 text-blue-700 dark:text-blue-300 border-l-4 border-blue-400 dark:border-blue-600"}},g=()=>{if(i)return i;const p="w-5 h-5 flex-shrink-0";switch(e){case"success":return C.jsx("svg",{className:J(p,"text-green-600 dark:text-green-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.236 4.53L7.53 10.06a.75.75 0 00-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})});case"error":return C.jsx("svg",{className:J(p,"text-red-600 dark:text-red-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z",clipRule:"evenodd"})});case"warning":return C.jsx("svg",{className:J(p,"text-yellow-600 dark:text-yellow-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})});case"info":case"queued":case"pending":return C.jsx("svg",{className:J(p,"text-blue-600 dark:text-blue-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})});case"paused":return C.jsx("svg",{className:J(p,"text-orange-600 dark:text-orange-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{d:"M5.75 3a.75.75 0 00-.75.75v12.5c0 .414.336.75.75.75h1.5a.75.75 0 00.75-.75V3.75A.75.75 0 007.25 3h-1.5zM12.75 3a.75.75 0 00-.75.75v12.5c0 .414.336.75.75.75h1.5a.75.75 0 00.75-.75V3.75a.75.75 0 00-.75-.75h-1.5z"})});case"archived":case"canceled":case"skipped":return C.jsx("svg",{className:J(p,"text-gray-600 dark:text-gray-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z",clipRule:"evenodd"})});case"awaiting_action":return C.jsx("svg",{className:J(p,"text-orange-600 dark:text-orange-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm.75-13a.75.75 0 00-1.5 0v5c0 .414.336.75.75.75h4a.75.75 0 000-1.5h-3.25V5z",clipRule:"evenodd"})});default:return C.jsx("svg",{className:J(p,"text-blue-600 dark:text-blue-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})})}},h=()=>{(o||e==="error")&&(d(!u),s?.())},m=o||e==="error";return C.jsxs("div",{ref:c,className:J("w-full",a),children:[C.jsxs("div",{className:J("flex items-center justify-between p-4 rounded-lg font-medium text-sm transition-all duration-200",f(),m&&["cursor-pointer select-none","hover:shadow-md","active:scale-[0.99]"]),onClick:h,role:m?"button":void 0,tabIndex:m?0:void 0,onKeyDown:p=>{m&&(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),h())},"aria-label":l||`Banner: ${e}`,"aria-expanded":m?u:void 0,children:[C.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[g(),C.jsx("span",{className:"flex-1",children:t})]}),C.jsxs("div",{className:"flex items-center gap-2",children:[r&&C.jsx("div",{className:"flex items-center",children:r}),m&&C.jsx("div",{className:"flex items-center",children:C.jsx("svg",{className:J("w-5 h-5 transition-transform duration-200",u?"rotate-180":"rotate-0"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]})]}),C.jsx(Ze.AnimatePresence,{children:u&&n&&C.jsx(Ze.motion.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"overflow-hidden",children:C.jsx("div",{className:"pt-2",children:C.jsx(n,{children:t})})})})]})});e1.displayName="Banner";var Ht=function(){return Ht=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ht.apply(this,arguments)},t1={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},r1={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},zl={width:"20px",height:"20px",position:"absolute",zIndex:1},$T={top:Ht(Ht({},t1),{top:"-5px"}),right:Ht(Ht({},r1),{left:void 0,right:"-5px"}),bottom:Ht(Ht({},t1),{top:void 0,bottom:"-5px"}),left:Ht(Ht({},r1),{left:"-5px"}),topRight:Ht(Ht({},zl),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Ht(Ht({},zl),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Ht(Ht({},zl),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Ht(Ht({},zl),{left:"-10px",top:"-10px",cursor:"nw-resize"})},MT=E.memo(function(e){var t=e.onResizeStart,r=e.direction,n=e.children,o=e.replaceStyles,i=e.className,a=E.useCallback(function(c){t(c,r)},[t,r]),s=E.useCallback(function(c){t(c,r)},[t,r]),l=E.useMemo(function(){return Ht(Ht({position:"absolute",userSelect:"none"},$T[r]),o??{})},[o,r]);return C.jsx("div",{className:i||void 0,style:l,onMouseDown:a,onTouchStart:s,children:n})}),jT=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),dn=function(){return dn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},dn.apply(this,arguments)},RT={width:"auto",height:"auto"},Gl=function(e,t,r){return Math.max(Math.min(e,r),t)},n1=function(e,t,r){var n=Math.round(e/t);return n*t+r*(n-1)},ui=function(e,t){return new RegExp(e,"i").test(t)},Hl=function(e){return!!(e.touches&&e.touches.length)},LT=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},o1=function(e,t,r){r===void 0&&(r=0);var n=t.reduce(function(i,a,s){return Math.abs(a-e)<Math.abs(t[i]-e)?s:i},0),o=Math.abs(t[n]-e);return r===0||o<r?t[n]:e},Sf=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},Wl=function(e,t,r,n){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var o=Number(e.replace("%",""))/100;return t*o}if(e.endsWith("vw")){var o=Number(e.replace("vw",""))/100;return r*o}if(e.endsWith("vh")){var o=Number(e.replace("vh",""))/100;return n*o}}return e},DT=function(e,t,r,n,o,i,a){return n=Wl(n,e.width,t,r),o=Wl(o,e.height,t,r),i=Wl(i,e.width,t,r),a=Wl(a,e.height,t,r),{maxWidth:typeof n>"u"?void 0:Number(n),maxHeight:typeof o>"u"?void 0:Number(o),minWidth:typeof i>"u"?void 0:Number(i),minHeight:typeof a>"u"?void 0:Number(a)}},_T=function(e){return Array.isArray(e)?e:[e,e]},VT=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],i1="__resizable_base__",BT=function(e){jT(t,e);function t(r){var n,o,i,a,s=e.call(this,r)||this;return s.ratio=1,s.resizable=null,s.parentLeft=0,s.parentTop=0,s.resizableLeft=0,s.resizableRight=0,s.resizableTop=0,s.resizableBottom=0,s.targetLeft=0,s.targetTop=0,s.delta={width:0,height:0},s.appendBase=function(){if(!s.resizable||!s.window)return null;var l=s.parentNode;if(!l)return null;var c=s.window.document.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.position="absolute",c.style.transform="scale(0, 0)",c.style.left="0",c.style.flex="0 0 100%",c.classList?c.classList.add(i1):c.className+=i1,l.appendChild(c),c},s.removeBase=function(l){var c=s.parentNode;c&&c.removeChild(l)},s.state={isResizing:!1,width:(o=(n=s.propsSize)===null||n===void 0?void 0:n.width)!==null&&o!==void 0?o:"auto",height:(a=(i=s.propsSize)===null||i===void 0?void 0:i.height)!==null&&a!==void 0?a:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},s.onResizeStart=s.onResizeStart.bind(s),s.onMouseMove=s.onMouseMove.bind(s),s.onMouseUp=s.onMouseUp.bind(s),s}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||RT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,i=this.resizable.offsetHeight,a=this.resizable.style.position;a!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:o,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:i,this.resizable.style.position=a}return{width:r,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,n=this.props.size,o=function(s){var l;if(typeof r.state[s]>"u"||r.state[s]==="auto")return"auto";if(r.propsSize&&r.propsSize[s]&&(!((l=r.propsSize[s])===null||l===void 0)&&l.toString().endsWith("%"))){if(r.state[s].toString().endsWith("%"))return r.state[s].toString();var c=r.getParentSize(),u=Number(r.state[s].toString().replace("px","")),d=u/c[s]*100;return"".concat(d,"%")}return Sf(r.state[s])},i=n&&typeof n.width<"u"&&!this.state.isResizing?Sf(n.width):o("width"),a=n&&typeof n.height<"u"&&!this.state.isResizing?Sf(n.height):o("height");return{width:i,height:a}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var r=this.appendBase();if(!r)return{width:0,height:0};var n=!1,o=this.parentNode.style.flexWrap;o!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var i={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=o),this.removeBase(r),i},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,n){var o=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof o>"u"||o==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var o=this.props.boundsByDirection,i=this.state.direction,a=o&&ui("left",i),s=o&&ui("top",i),l,c;if(this.props.bounds==="parent"){var u=this.parentNode;u&&(l=a?this.resizableRight-this.parentLeft:u.offsetWidth+(this.parentLeft-this.resizableLeft),c=s?this.resizableBottom-this.parentTop:u.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(l=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,c=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(l=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),c=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return l&&Number.isFinite(l)&&(r=r&&r<l?r:l),c&&Number.isFinite(c)&&(n=n&&n<c?n:c),{maxWidth:r,maxHeight:n}},t.prototype.calculateNewSizeFromDirection=function(r,n){var o=this.props.scale||1,i=_T(this.props.resizeRatio||1),a=i[0],s=i[1],l=this.state,c=l.direction,u=l.original,d=this.props,f=d.lockAspectRatio,g=d.lockAspectRatioExtraHeight,h=d.lockAspectRatioExtraWidth,m=u.width,p=u.height,b=g||0,y=h||0;return ui("right",c)&&(m=u.width+(r-u.x)*a/o,f&&(p=(m-y)/this.ratio+b)),ui("left",c)&&(m=u.width-(r-u.x)*a/o,f&&(p=(m-y)/this.ratio+b)),ui("bottom",c)&&(p=u.height+(n-u.y)*s/o,f&&(m=(p-b)*this.ratio+y)),ui("top",c)&&(p=u.height-(n-u.y)*s/o,f&&(m=(p-b)*this.ratio+y)),{newWidth:m,newHeight:p}},t.prototype.calculateNewSizeFromAspectRatio=function(r,n,o,i){var a=this.props,s=a.lockAspectRatio,l=a.lockAspectRatioExtraHeight,c=a.lockAspectRatioExtraWidth,u=typeof i.width>"u"?10:i.width,d=typeof o.width>"u"||o.width<0?r:o.width,f=typeof i.height>"u"?10:i.height,g=typeof o.height>"u"||o.height<0?n:o.height,h=l||0,m=c||0;if(s){var p=(f-h)*this.ratio+m,b=(g-h)*this.ratio+m,y=(u-m)/this.ratio+h,w=(d-m)/this.ratio+h,S=Math.max(u,p),v=Math.min(d,b),I=Math.max(f,y),N=Math.min(g,w);r=Gl(r,S,v),n=Gl(n,I,N)}else r=Gl(r,u,d),n=Gl(n,f,g);return{newWidth:r,newHeight:n}},t.prototype.setBoundingClientRect=function(){var r=1/(this.props.scale||1);if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var o=n.getBoundingClientRect();this.parentLeft=o.left*r,this.parentTop=o.top*r}}if(this.props.bounds&&typeof this.props.bounds!="string"){var i=this.props.bounds.getBoundingClientRect();this.targetLeft=i.left*r,this.targetTop=i.top*r}if(this.resizable){var a=this.resizable.getBoundingClientRect(),s=a.left,l=a.top,c=a.right,u=a.bottom;this.resizableLeft=s*r,this.resizableRight=c*r,this.resizableTop=l*r,this.resizableBottom=u*r}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var o=0,i=0;if(r.nativeEvent&<(r.nativeEvent)?(o=r.nativeEvent.clientX,i=r.nativeEvent.clientY):r.nativeEvent&&Hl(r.nativeEvent)&&(o=r.nativeEvent.touches[0].clientX,i=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var a=this.props.onResizeStart(r,n,this.resizable);if(a===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var s,l=this.window.getComputedStyle(this.resizable);if(l.flexBasis!=="auto"){var c=this.parentNode;if(c){var u=this.window.getComputedStyle(c).flexDirection;this.flexDir=u.startsWith("row")?"row":"column",s=l.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var d={original:{x:o,y:i,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:dn(dn({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:s};this.setState(d)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Hl(r))try{r.preventDefault(),r.stopPropagation()}catch{}var o=this.props,i=o.maxWidth,a=o.maxHeight,s=o.minWidth,l=o.minHeight,c=Hl(r)?r.touches[0].clientX:r.clientX,u=Hl(r)?r.touches[0].clientY:r.clientY,d=this.state,f=d.direction,g=d.original,h=d.width,m=d.height,p=this.getParentSize(),b=DT(p,this.window.innerWidth,this.window.innerHeight,i,a,s,l);i=b.maxWidth,a=b.maxHeight,s=b.minWidth,l=b.minHeight;var y=this.calculateNewSizeFromDirection(c,u),w=y.newHeight,S=y.newWidth,v=this.calculateNewMaxFromBoundary(i,a);this.props.snap&&this.props.snap.x&&(S=o1(S,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(w=o1(w,this.props.snap.y,this.props.snapGap));var I=this.calculateNewSizeFromAspectRatio(S,w,{width:v.maxWidth,height:v.maxHeight},{width:s,height:l});if(S=I.newWidth,w=I.newHeight,this.props.grid){var N=n1(S,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),O=n1(w,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),T=this.props.snapGap||0,P=T===0||Math.abs(N-S)<=T?N:S,M=T===0||Math.abs(O-w)<=T?O:w;S=P,w=M}var x={width:S-g.width,height:w-g.height};if(this.delta=x,h&&typeof h=="string"){if(h.endsWith("%")){var $=S/p.width*100;S="".concat($,"%")}else if(h.endsWith("vw")){var k=S/this.window.innerWidth*100;S="".concat(k,"vw")}else if(h.endsWith("vh")){var F=S/this.window.innerHeight*100;S="".concat(F,"vh")}}if(m&&typeof m=="string"){if(m.endsWith("%")){var $=w/p.height*100;w="".concat($,"%")}else if(m.endsWith("vw")){var k=w/this.window.innerWidth*100;w="".concat(k,"vw")}else if(m.endsWith("vh")){var F=w/this.window.innerHeight*100;w="".concat(F,"vh")}}var j={width:this.createSizeForCssProperty(S,"width"),height:this.createSizeForCssProperty(w,"height")};this.flexDir==="row"?j.flexBasis=j.width:this.flexDir==="column"&&(j.flexBasis=j.height);var G=this.state.width!==j.width,W=this.state.height!==j.height,V=this.state.flexBasis!==j.flexBasis,_=G||W||V;_&&zr.flushSync(function(){n.setState(j)}),this.props.onResize&&_&&this.props.onResize(r,f,this.resizable,x)}},t.prototype.onMouseUp=function(r){var n,o,i=this.state,a=i.isResizing,s=i.direction;i.original,!(!a||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(r,s,this.resizable,this.delta),this.props.size&&this.setState({width:(n=this.props.size.width)!==null&&n!==void 0?n:"auto",height:(o=this.props.size.height)!==null&&o!==void 0?o:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:dn(dn({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(r){var n,o;this.setState({width:(n=r.width)!==null&&n!==void 0?n:"auto",height:(o=r.height)!==null&&o!==void 0?o:"auto"})},t.prototype.renderResizer=function(){var r=this,n=this.props,o=n.enable,i=n.handleStyles,a=n.handleClasses,s=n.handleWrapperStyle,l=n.handleWrapperClass,c=n.handleComponent;if(!o)return null;var u=Object.keys(o).map(function(d){return o[d]!==!1?C.jsx(MT,{direction:d,onResizeStart:r.onResizeStart,replaceStyles:i&&i[d],className:a&&a[d],children:c&&c[d]?c[d]:null},d):null});return C.jsx("div",{className:l,style:s,children:u})},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(a,s){return VT.indexOf(s)!==-1||(a[s]=r.props[s]),a},{}),o=dn(dn(dn({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var i=this.props.as||"div";return C.jsxs(i,dn({style:o,className:this.props.className},n,{ref:function(a){a&&(r.resizable=a)},children:[this.state.isResizing&&C.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(E.PureComponent);const zT=()=>C.jsx("div",{className:"cursor-ew-resize flex items-center justify-center rounded-full bg-[#1018288F] bg-opacity-55 w-8 h-8 shadow-200 border-[1.5px] border-[#FFFFFF3D]",children:C.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_36675_12",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:C.jsx("rect",{y:"20",width:"20",height:"20",transform:"rotate(-90 0 20)",fill:"#D9D9D9"})}),C.jsx("g",{mask:"url(#mask0_36675_12)",children:C.jsx("path",{d:"M15.9583 10L12.7292 6.77084C12.5625 6.60418 12.4792 6.40973 12.4792 6.18751C12.4792 5.96529 12.5625 5.77084 12.7292 5.60418C12.8958 5.43751 13.0938 5.35418 13.3229 5.35418C13.5521 5.35418 13.75 5.43751 13.9167 5.60418L17.1458 8.81251C17.4653 9.13195 17.625 9.52779 17.625 10C17.625 10.4722 17.4653 10.8681 17.1458 11.1875L13.9167 14.4167C13.75 14.5833 13.5521 14.6632 13.3229 14.6563C13.0938 14.6493 12.8958 14.5625 12.7292 14.3958C12.5625 14.2292 12.4792 14.0313 12.4792 13.8021C12.4792 13.5729 12.5625 13.375 12.7292 13.2083L15.9583 10ZM4.04167 10L7.25 13.2083C7.41667 13.375 7.49653 13.5695 7.48958 13.7917C7.48264 14.0139 7.40278 14.2083 7.25 14.375C7.08333 14.5417 6.88542 14.6285 6.65625 14.6354C6.42708 14.6424 6.22917 14.5625 6.0625 14.3958L2.85417 11.1875C2.53472 10.8681 2.375 10.4722 2.375 10C2.375 9.52779 2.53472 9.13195 2.85417 8.81251L6.0625 5.60418C6.22917 5.43751 6.42708 5.35765 6.65625 5.36459C6.88542 5.37154 7.08333 5.45834 7.25 5.62501C7.40278 5.79168 7.48264 5.98612 7.48958 6.20834C7.49653 6.43057 7.41667 6.62501 7.25 6.79168L4.04167 10Z",fill:"white"})})]})}),GT=(e,t)=>{const r=document.getElementById(e);r?t(r):requestAnimationFrame(()=>{const n=document.getElementById(e);n&&t(n)})},HT=(e,t)=>{if(e.current){if(t)localStorage.setItem("resizable-sidebar-width-before-fullscreen",String(e.current.size?.width));else{const r=localStorage.getItem("resizable-sidebar-width-before-fullscreen");if(r){e.current.updateSize({width:r,height:"100%"});return}}e.current.updateSize({width:t?"100vw":"",height:"100%"})}},a1=e=>e==="dark"?"bg-black-800 border-black-700":"bg-white border-neutral-200",WT=e=>e==="dark"?"hover:bg-neutral-700":"hover:bg-neutral-200",UT=(e,t,r,n,o,i)=>{const[a,s]=E.useState(!1),[l,c]=E.useState(null);return E.useEffect(()=>{if(!e||typeof window>"u"){c(null);return}GT(e,c)},[e]),E.useEffect(()=>{HT(o,r)},[r]),E.useEffect(()=>{if(e&&t){const u=requestAnimationFrame(()=>{s(!0)});return()=>{cancelAnimationFrame(u),s(!1)}}e||s(!0),t||s(!1)},[t,e]),E.useEffect(()=>{o.current?.size?.width&&n&&n(o.current.size.width)},[o.current?.size?.width,n]),{shouldRenderSidebar:a,portalTarget:l}},XT=({isOpen:e,header:t,id:r,ref:n,className:o,containerClassName:i,widthStyle:a,heightStyle:s,motionVariants:l,resizableRef:c,fullScreen:u,maxResizableWidth:d,minWidth:f,handleKey:g,theme:h,onDragEnd:m,onResize:p,children:b})=>C.jsx(Ze.AnimatePresence,{children:e&&C.jsx(Ze.motion.div,{ref:n,id:r,initial:l.initial,animate:l.animate,exit:l.exit,transition:{type:"tween",duration:.3},className:J("flex-shrink-0 z-50 relative",a1(h),u?"fixed w-full transition translate-x-4 duration-300":"sticky",o),style:{width:a,height:s},children:C.jsx(BT,{onResize:y=>{y.stopPropagation();const w=c.current?.size?.width;p&&p(w||f)},onResizeStart:y=>{y.stopPropagation()},ref:c,maxWidth:u?d:d*.75,minWidth:f,minHeight:s,maxHeight:s,enable:u?{}:{[g]:!0},handleClasses:{[g]:J("relative w-6 -left-1 flex items-center justify-center bg-transparent transition-colors cursor-ew-resize group z-[9999]",WT(h))},handleComponent:{[g]:C.jsx("div",{className:J("absolute -left-2.5 top-1/2 -translate-y-1/2 flex items-center justify-center w-8 h-12 cursor-ew-resize opacity-0 group-hover:opacity-100 hover:opacity-100 active:opacity-100 transition-opacity z-[9999]",g==="left"&&"-right-2.5 -left-auto"),children:C.jsx(zT,{})})},className:"!h-full",onResizeStop:m||void 0,children:C.jsxs("div",{className:J("h-full w-full flex flex-col overflow-hidden @container/sidebar",a1(h),h==="dark"&&"border",i),children:[t?C.jsx("div",{className:"py-4 px-6",children:t||null}):null,C.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:b})]})})})}),s1=E.forwardRef(({isOpen:e,children:t,fullScreen:r=!1,defaultSize:n=void 0,minWidth:o=400,onDragEnd:i=null,onResize:a,className:s,placement:l="right",parentContainer:c,header:u,id:d,containerClassName:f,ignoreParentContainerHeight:g=!1,height:h,isMainSidebarExpanded:m=!1,mainSidebarExpandedWidth:p=280,mainSidebarCollapsedWidth:b=80,navbarHeight:y=64,theme:w="light"},S)=>{const v=m?p:b,I=E.useRef(null),{shouldRenderSidebar:N,portalTarget:O}=UT(c,e,r,a,I),T=typeof window<"u"?window.innerWidth-v:0,P=n,M=l==="right",x=h||(c&&!g?"100%":`calc(100vh - ${y}px)`),$={initial:{x:M?"100%":"-100%"},animate:{x:0},exit:{x:M?"100%":"-100%"}},k=M?"left":"right",F=C.jsx(XT,{isOpen:e,header:u,id:d,ref:S,className:s,containerClassName:f,widthStyle:P,heightStyle:x,motionVariants:$,resizableRef:I,fullScreen:r,maxResizableWidth:T,minWidth:o,handleKey:k,theme:w,onDragEnd:i,onResize:a,children:t});return c?!N||!O?null:zr.createPortal(F,O):N?F:null});s1.displayName="ResizableSidebar";const l1=E.forwardRef(({pdfUrl:e,width:t="100%",height:r="100vh",className:n,iframeClassName:o,title:i="PDF Viewer",showLoading:a=!0,loadingComponent:s,errorComponent:l,onError:c,onLoad:u,allowFullScreen:d=!0,"aria-label":f},g)=>{const[h,m]=E.useState(!0),[p,b]=E.useState(!1),y=()=>{m(!1),b(!1),u?.()},w=()=>{m(!1),b(!0),c?.()},S=C.jsx("div",{className:"flex items-center justify-center h-full bg-neutral-50 dark:bg-neutral-900",children:C.jsxs("div",{className:"text-center",children:[C.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600 mx-auto mb-4"}),C.jsx("p",{className:"text-neutral-600 dark:text-neutral-400 text-sm",children:"Loading PDF..."})]})}),v=C.jsx("div",{className:"flex items-center justify-center h-full bg-neutral-50 dark:bg-neutral-900",children:C.jsxs("div",{className:"text-center p-6",children:[C.jsx("svg",{className:"mx-auto h-12 w-12 text-red-400 mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.998-.833-2.768 0L3.046 16.5c-.77.833.192 2.5 1.732 2.5z"})}),C.jsx("h3",{className:"text-lg font-medium text-neutral-900 dark:text-neutral-100 mb-2",children:"Failed to load PDF"}),C.jsx("p",{className:"text-neutral-600 dark:text-neutral-400 text-sm mb-4",children:"The PDF document could not be displayed. Please check the URL or try again later."}),C.jsx("button",{onClick:()=>{b(!1),m(!0);const N=document.querySelector(`iframe[src="${e}"]`);N&&(N.src=N.src)},className:"bg-blue-600 text-white px-4 py-2 rounded-md text-sm hover:bg-blue-700 transition-colors",children:"Retry"})]})});return!e||!(N=>{try{return new URL(N,window.location.href).pathname.toLowerCase().endsWith(".pdf")||N.includes("pdf")}catch{return!1}})(e)?C.jsx("div",{ref:g,className:J("relative overflow-hidden",n),style:{width:t,height:r},children:l||v}):C.jsxs("div",{ref:g,className:J("relative overflow-hidden",n),style:{width:t,height:r},"aria-label":f||`PDF Viewer: ${i}`,children:[h&&a&&C.jsx("div",{className:"absolute inset-0 z-10",children:s||S}),p&&C.jsx("div",{className:"absolute inset-0 z-10",children:l||v}),!p&&C.jsx("iframe",{src:e,title:i,className:J("w-full h-full border-none",h&&"opacity-0",o),onLoad:y,onError:w,allowFullScreen:d,loading:"lazy",sandbox:"allow-same-origin allow-scripts allow-forms","aria-label":f||`PDF document: ${i}`}),C.jsx("div",{className:"sr-only",children:"PDF document viewer. Use your browser's PDF controls to navigate, zoom, or download the document."})]})});l1.displayName="PdfViewer";const c1=({ref:e,handler:t,enabled:r=!0})=>{E.useEffect(()=>{if(!r)return;const n=o=>{e.current&&!e.current.contains(o.target)&&t()};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[e,t,r])},u1=E.forwardRef(({children:e,component:t,placement:r="bottom",isOpen:n,toggleMenu:o,parentContainer:i,noSpacing:a=!1,triggerClassName:s,containerClassName:l,className:c,showArrow:u=!1,offset:d=8,disableOutsideClick:f=!1,"aria-label":g,disabled:h=!1},m)=>{const p=E.useRef(null),b=E.useRef(null);c1({ref:b,handler:()=>{!f&&n&&o?.()},enabled:n&&!f}),E.useEffect(()=>{if(!n||!p.current||!b.current)return;const I=p.current,N=b.current,O=I.getBoundingClientRect(),T=N.getBoundingClientRect(),P={width:window.innerWidth,height:window.innerHeight};let M=0,x=0;switch(r){case"top":M=O.top-T.height-d,x=O.left+(O.width-T.width)/2;break;case"top-start":M=O.top-T.height-d,x=O.left;break;case"top-end":M=O.top-T.height-d,x=O.right-T.width;break;case"bottom":M=O.bottom+d,x=O.left+(O.width-T.width)/2;break;case"bottom-start":M=O.bottom+d,x=O.left;break;case"bottom-end":M=O.bottom+d,x=O.right-T.width;break;case"left":M=O.top+(O.height-T.height)/2,x=O.left-T.width-d;break;case"left-start":M=O.top,x=O.left-T.width-d;break;case"left-end":M=O.bottom-T.height,x=O.left-T.width-d;break;case"right":M=O.top+(O.height-T.height)/2,x=O.right+d;break;case"right-start":M=O.top,x=O.right+d;break;case"right-end":M=O.bottom-T.height,x=O.right+d;break}x<0&&(x=8),x+T.width>P.width&&(x=P.width-T.width-8),M<0&&(M=8),M+T.height>P.height&&(M=P.height-T.height-8),N.style.top=`${M}px`,N.style.left=`${x}px`},[n,r,d]);const y=I=>{h||o?.(I)},w=I=>{I.key==="Escape"&&n&&o?.()},S=()=>{const I="absolute w-2 h-2 bg-white dark:bg-neutral-800 transform rotate-45 border";switch(r){case"top":case"top-start":case"top-end":return J(I,"bottom-[-4px] border-t-0 border-l-0");case"bottom":case"bottom-start":case"bottom-end":return J(I,"top-[-4px] border-b-0 border-r-0");case"left":case"left-start":case"left-end":return J(I,"right-[-4px] border-l-0 border-b-0");case"right":case"right-start":case"right-end":return J(I,"left-[-4px] border-r-0 border-t-0");default:return J(I,"top-[-4px] border-b-0 border-r-0")}},v=()=>{switch(r){case"top":case"bottom":return{left:"50%",transform:"translateX(-50%)"};case"top-start":case"bottom-start":return{left:"12px"};case"top-end":case"bottom-end":return{right:"12px"};case"left":case"right":return{top:"50%",transform:"translateY(-50%)"};case"left-start":case"right-start":return{top:"12px"};case"left-end":case"right-end":return{bottom:"12px"};default:return{left:"50%",transform:"translateX(-50%)"}}};return C.jsxs("div",{ref:m,className:J("relative inline-block",c),children:[C.jsx("button",{ref:p,onClick:y,onKeyDown:w,className:J("flex items-center justify-center outline-none focus:outline-none transition-colors",!a&&"p-2",h&&"opacity-50 cursor-not-allowed",s),"aria-label":g,"aria-expanded":n,"aria-haspopup":"true",disabled:h,type:"button",children:e}),n&&zr.createPortal(C.jsx(Ze.AnimatePresence,{children:C.jsxs(Ze.motion.div,{ref:b,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.15},className:J("fixed z-[9999] bg-white dark:bg-neutral-800 rounded-lg shadow-lg border border-neutral-200 dark:border-neutral-700","focus:outline-none",l),style:{minWidth:"120px"},role:"menu","aria-orientation":"vertical",tabIndex:-1,children:[u&&C.jsx("div",{className:S(),style:v()}),C.jsx("div",{className:"relative",children:t})]})}),document.getElementById(i)||document.body)]})});u1.displayName="Popper";const ha=e=>typeof e=="number"&&!isNaN(e),yo=e=>typeof e=="string",Ir=e=>typeof e=="function",Ul=e=>yo(e)||Ir(e)?e:null,Ef=e=>E.isValidElement(e)||yo(e)||Ir(e)||ha(e);function YT(e,t,r){r===void 0&&(r=300);const{scrollHeight:n,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=n+"px",o.transition=`all ${r}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,r)})})}function Xl(e){let{enter:t,exit:r,appendPosition:n=!1,collapse:o=!0,collapseDuration:i=300}=e;return function(a){let{children:s,position:l,preventExitTransition:c,done:u,nodeRef:d,isIn:f,playToast:g}=a;const h=n?`${t}--${l}`:t,m=n?`${r}--${l}`:r,p=E.useRef(0);return E.useLayoutEffect(()=>{const b=d.current,y=h.split(" "),w=S=>{S.target===d.current&&(g(),b.removeEventListener("animationend",w),b.removeEventListener("animationcancel",w),p.current===0&&S.type!=="animationcancel"&&b.classList.remove(...y))};b.classList.add(...y),b.addEventListener("animationend",w),b.addEventListener("animationcancel",w)},[]),E.useEffect(()=>{const b=d.current,y=()=>{b.removeEventListener("animationend",y),o?YT(b,u,i):u()};f||(c?y():(p.current=1,b.className+=` ${m}`,b.addEventListener("animationend",y)))},[f]),E.createElement(E.Fragment,null,s)}}function d1(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const dr=new Map;let va=[];const If=new Set,JT=e=>If.forEach(t=>t(e)),f1=()=>dr.size>0;function m1(e,t){var r;if(t)return!((r=dr.get(t))==null||!r.isToastActive(e));let n=!1;return dr.forEach(o=>{o.isToastActive(e)&&(n=!0)}),n}function p1(e,t){Ef(e)&&(f1()||va.push({content:e,options:t}),dr.forEach(r=>{r.buildToast(e,t)}))}function g1(e,t){dr.forEach(r=>{t!=null&&t!=null&&t.containerId?t?.containerId===r.id&&r.toggle(e,t?.id):r.toggle(e,t?.id)})}function ZT(e){const{subscribe:t,getSnapshot:r,setProps:n}=E.useRef(function(i){const a=i.containerId||1;return{subscribe(s){const l=function(u,d,f){let g=1,h=0,m=[],p=[],b=[],y=d;const w=new Map,S=new Set,v=()=>{b=Array.from(w.values()),S.forEach(O=>O())},I=O=>{p=O==null?[]:p.filter(T=>T!==O),v()},N=O=>{const{toastId:T,onOpen:P,updateId:M,children:x}=O.props,$=M==null;O.staleId&&w.delete(O.staleId),w.set(T,O),p=[...p,O.props.toastId].filter(k=>k!==O.staleId),v(),f(d1(O,$?"added":"updated")),$&&Ir(P)&&P(E.isValidElement(x)&&x.props)};return{id:u,props:y,observe:O=>(S.add(O),()=>S.delete(O)),toggle:(O,T)=>{w.forEach(P=>{T!=null&&T!==P.props.toastId||Ir(P.toggle)&&P.toggle(O)})},removeToast:I,toasts:w,clearQueue:()=>{h-=m.length,m=[]},buildToast:(O,T)=>{if((B=>{let{containerId:L,toastId:z,updateId:Q}=B;const q=L?L!==u:u!==1,U=w.has(z)&&Q==null;return q||U})(T))return;const{toastId:P,updateId:M,data:x,staleId:$,delay:k}=T,F=()=>{I(P)},j=M==null;j&&h++;const G={...y,style:y.toastStyle,key:g++,...Object.fromEntries(Object.entries(T).filter(B=>{let[L,z]=B;return z!=null})),toastId:P,updateId:M,data:x,closeToast:F,isIn:!1,className:Ul(T.className||y.toastClassName),bodyClassName:Ul(T.bodyClassName||y.bodyClassName),progressClassName:Ul(T.progressClassName||y.progressClassName),autoClose:!T.isLoading&&(W=T.autoClose,V=y.autoClose,W===!1||ha(W)&&W>0?W:V),deleteToast(){const B=w.get(P),{onClose:L,children:z}=B.props;Ir(L)&&L(E.isValidElement(z)&&z.props),f(d1(B,"removed")),w.delete(P),h--,h<0&&(h=0),m.length>0?N(m.shift()):v()}};var W,V;G.closeButton=y.closeButton,T.closeButton===!1||Ef(T.closeButton)?G.closeButton=T.closeButton:T.closeButton===!0&&(G.closeButton=!Ef(y.closeButton)||y.closeButton);let _=O;E.isValidElement(O)&&!yo(O.type)?_=E.cloneElement(O,{closeToast:F,toastProps:G,data:x}):Ir(O)&&(_=O({closeToast:F,toastProps:G,data:x}));const D={content:_,props:G,staleId:$};y.limit&&y.limit>0&&h>y.limit&&j?m.push(D):ha(k)?setTimeout(()=>{N(D)},k):N(D)},setProps(O){y=O},setToggle:(O,T)=>{w.get(O).toggle=T},isToastActive:O=>p.some(T=>T===O),getSnapshot:()=>b}}(a,i,JT);dr.set(a,l);const c=l.observe(s);return va.forEach(u=>p1(u.content,u.options)),va=[],()=>{c(),dr.delete(a)}},setProps(s){var l;(l=dr.get(a))==null||l.setProps(s)},getSnapshot(){var s;return(s=dr.get(a))==null?void 0:s.getSnapshot()}}}(e)).current;n(e);const o=E.useSyncExternalStore(t,r,r);return{getToastToRender:function(i){if(!o)return[];const a=new Map;return e.newestOnTop&&o.reverse(),o.forEach(s=>{const{position:l}=s.props;a.has(l)||a.set(l,[]),a.get(l).push(s)}),Array.from(a,s=>i(s[0],s[1]))},isToastActive:m1,count:o?.length}}function qT(e){const[t,r]=E.useState(!1),[n,o]=E.useState(!1),i=E.useRef(null),a=E.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:l,closeToast:c,onClick:u,closeOnClick:d}=e;var f,g;function h(){r(!0)}function m(){r(!1)}function p(w){const S=i.current;a.canDrag&&S&&(a.didMove=!0,t&&m(),a.delta=e.draggableDirection==="x"?w.clientX-a.start:w.clientY-a.start,a.start!==w.clientX&&(a.canCloseOnClick=!1),S.style.transform=`translate3d(${e.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,S.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function b(){document.removeEventListener("pointermove",p),document.removeEventListener("pointerup",b);const w=i.current;if(a.canDrag&&a.didMove&&w){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();w.style.transition="transform 0.2s, opacity 0.2s",w.style.removeProperty("transform"),w.style.removeProperty("opacity")}}(g=dr.get((f={id:e.toastId,containerId:e.containerId,fn:r}).containerId||1))==null||g.setToggle(f.id,f.fn),E.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||m(),window.addEventListener("focus",h),window.addEventListener("blur",m),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",m)}},[e.pauseOnFocusLoss]);const y={onPointerDown:function(w){if(e.draggable===!0||e.draggable===w.pointerType){a.didMove=!1,document.addEventListener("pointermove",p),document.addEventListener("pointerup",b);const S=i.current;a.canCloseOnClick=!0,a.canDrag=!0,S.style.transition="none",e.draggableDirection==="x"?(a.start=w.clientX,a.removalDistance=S.offsetWidth*(e.draggablePercent/100)):(a.start=w.clientY,a.removalDistance=S.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(w){const{top:S,bottom:v,left:I,right:N}=i.current.getBoundingClientRect();w.nativeEvent.type!=="touchend"&&e.pauseOnHover&&w.clientX>=I&&w.clientX<=N&&w.clientY>=S&&w.clientY<=v?m():h()}};return s&&l&&(y.onMouseEnter=m,e.stacked||(y.onMouseLeave=h)),d&&(y.onClick=w=>{u&&u(w),a.canCloseOnClick&&c()}),{playToast:h,pauseToast:m,isRunning:t,preventExitTransition:n,toastRef:i,eventHandlers:y}}function QT(e){let{delay:t,isRunning:r,closeToast:n,type:o="default",hide:i,className:a,style:s,controlledProgress:l,progress:c,rtl:u,isIn:d,theme:f}=e;const g=i||l&&c===0,h={...s,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused"};l&&(h.transform=`scaleX(${c})`);const m=cn("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),p=Ir(a)?a({rtl:u,type:o,defaultClassName:m}):cn(m,a),b={[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{d&&n()}};return E.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":g},E.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${o}`}),E.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:p,style:h,...b}))}let KT=1;const h1=()=>""+KT++;function eP(e){return e&&(yo(e.toastId)||ha(e.toastId))?e.toastId:h1()}function ba(e,t){return p1(e,t),t.toastId}function Yl(e,t){return{...t,type:t&&t.type||e,toastId:eP(t)}}function Jl(e){return(t,r)=>ba(t,Yl(e,r))}function Pe(e,t){return ba(e,Yl("default",t))}Pe.loading=(e,t)=>ba(e,Yl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Pe.promise=function(e,t,r){let n,{pending:o,error:i,success:a}=t;o&&(n=yo(o)?Pe.loading(o,r):Pe.loading(o.render,{...r,...o}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(u,d,f)=>{if(d==null)return void Pe.dismiss(n);const g={type:u,...s,...r,data:f},h=yo(d)?{render:d}:d;return n?Pe.update(n,{...g,...h}):Pe(h.render,{...g,...h}),f},c=Ir(e)?e():e;return c.then(u=>l("success",a,u)).catch(u=>l("error",i,u)),c},Pe.success=Jl("success"),Pe.info=Jl("info"),Pe.error=Jl("error"),Pe.warning=Jl("warning"),Pe.warn=Pe.warning,Pe.dark=(e,t)=>ba(e,Yl("default",{theme:"dark",...t})),Pe.dismiss=function(e){(function(t){var r;if(f1()){if(t==null||yo(r=t)||ha(r))dr.forEach(n=>{n.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const n=dr.get(t.containerId);n?n.removeToast(t.id):dr.forEach(o=>{o.removeToast(t.id)})}}else va=va.filter(n=>t!=null&&n.options.toastId!==t)})(e)},Pe.clearWaitingQueue=function(e){e===void 0&&(e={}),dr.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},Pe.isActive=m1,Pe.update=function(e,t){t===void 0&&(t={});const r=((n,o)=>{var i;let{containerId:a}=o;return(i=dr.get(a||1))==null?void 0:i.toasts.get(n)})(e,t);if(r){const{props:n,content:o}=r,i={delay:100,...n,...t,toastId:t.toastId||e,updateId:h1()};i.toastId!==e&&(i.staleId=e);const a=i.render||o;delete i.render,ba(a,i)}},Pe.done=e=>{Pe.update(e,{progress:1})},Pe.onChange=function(e){return If.add(e),()=>{If.delete(e)}},Pe.play=e=>g1(!0,e),Pe.pause=e=>g1(!1,e);const tP=typeof window<"u"?E.useLayoutEffect:E.useEffect,Zl=e=>{let{theme:t,type:r,isLoading:n,...o}=e;return E.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${r})`,...o})},Af={info:function(e){return E.createElement(Zl,{...e},E.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return E.createElement(Zl,{...e},E.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return E.createElement(Zl,{...e},E.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return E.createElement(Zl,{...e},E.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return E.createElement("div",{className:"Toastify__spinner"})}},rP=e=>{const{isRunning:t,preventExitTransition:r,toastRef:n,eventHandlers:o,playToast:i}=qT(e),{closeButton:a,children:s,autoClose:l,onClick:c,type:u,hideProgressBar:d,closeToast:f,transition:g,position:h,className:m,style:p,bodyClassName:b,bodyStyle:y,progressClassName:w,progressStyle:S,updateId:v,role:I,progress:N,rtl:O,toastId:T,deleteToast:P,isIn:M,isLoading:x,closeOnClick:$,theme:k}=e,F=cn("Toastify__toast",`Toastify__toast-theme--${k}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":O},{"Toastify__toast--close-on-click":$}),j=Ir(m)?m({rtl:O,position:h,type:u,defaultClassName:F}):cn(F,m),G=function(D){let{theme:B,type:L,isLoading:z,icon:Q}=D,q=null;const U={theme:B,type:L};return Q===!1||(Ir(Q)?q=Q({...U,isLoading:z}):E.isValidElement(Q)?q=E.cloneElement(Q,U):z?q=Af.spinner():(K=>K in Af)(L)&&(q=Af[L](U))),q}(e),W=!!N||!l,V={closeToast:f,type:u,theme:k};let _=null;return a===!1||(_=Ir(a)?a(V):E.isValidElement(a)?E.cloneElement(a,V):function(D){let{closeToast:B,theme:L,ariaLabel:z="close"}=D;return E.createElement("button",{className:`Toastify__close-button Toastify__close-button--${L}`,type:"button",onClick:Q=>{Q.stopPropagation(),B(Q)},"aria-label":z},E.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},E.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(V)),E.createElement(g,{isIn:M,done:P,position:h,preventExitTransition:r,nodeRef:n,playToast:i},E.createElement("div",{id:T,onClick:c,"data-in":M,className:j,...o,style:p,ref:n},E.createElement("div",{...M&&{role:I},className:Ir(b)?b({type:u}):cn("Toastify__toast-body",b),style:y},G!=null&&E.createElement("div",{className:cn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!x})},G),E.createElement("div",null,s)),_,E.createElement(QT,{...v&&!W?{key:`pb-${v}`}:{},rtl:O,theme:k,delay:l,isRunning:t,isIn:M,closeToast:f,hide:d,type:u,style:S,className:w,controlledProgress:W,progress:N||0})))},ql=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},nP=Xl(ql("bounce",!0)),oP=Xl(ql("slide",!0));Xl(ql("zoom")),Xl(ql("flip"));const iP={position:"top-right",transition:nP,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function aP(e){let t={...iP,...e};const r=e.stacked,[n,o]=E.useState(!0),i=E.useRef(null),{getToastToRender:a,isToastActive:s,count:l}=ZT(t),{className:c,style:u,rtl:d,containerId:f}=t;function g(m){const p=cn("Toastify__toast-container",`Toastify__toast-container--${m}`,{"Toastify__toast-container--rtl":d});return Ir(c)?c({position:m,rtl:d,defaultClassName:p}):cn(p,Ul(c))}function h(){r&&(o(!0),Pe.play())}return tP(()=>{if(r){var m;const p=i.current.querySelectorAll('[data-in="true"]'),b=12,y=(m=t.position)==null?void 0:m.includes("top");let w=0,S=0;Array.from(p).reverse().forEach((v,I)=>{const N=v;N.classList.add("Toastify__toast--stacked"),I>0&&(N.dataset.collapsed=`${n}`),N.dataset.pos||(N.dataset.pos=y?"top":"bot");const O=w*(n?.2:1)+(n?0:b*I);N.style.setProperty("--y",`${y?O:-1*O}px`),N.style.setProperty("--g",`${b}`),N.style.setProperty("--s",""+(1-(n?S:0))),w+=N.offsetHeight,S+=.025})}},[n,l,r]),E.createElement("div",{ref:i,className:"Toastify",id:f,onMouseEnter:()=>{r&&(o(!1),Pe.pause())},onMouseLeave:h},a((m,p)=>{const b=p.length?{...u}:{...u,pointerEvents:"none"};return E.createElement("div",{className:g(m),style:b,key:`container-${m}`},p.map(y=>{let{content:w,props:S}=y;return E.createElement(rP,{...S,stacked:r,collapseAll:h,isIn:s(S.toastId,S.containerId),style:S.style,key:`toast-${S.key}`},w)}))}))}const sP=({size:e=24,fill:t="#12B76A"})=>C.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,xmlns:"http://www.w3.org/2000/svg",children:C.jsx("g",{mask:"url(#mask0_4874_46615)",children:C.jsx("path",{d:"M10.6 13.8L8.425 11.625C8.24167 11.4417 8.01267 11.3543 7.738 11.363C7.46267 11.371 7.23333 11.4667 7.05 11.65C6.86667 11.8333 6.775 12.0667 6.775 12.35C6.775 12.6333 6.86667 12.8667 7.05 13.05L9.9 15.9C10.0833 16.0833 10.3167 16.175 10.6 16.175C10.8833 16.175 11.1167 16.0833 11.3 15.9L16.975 10.225C17.1583 10.0417 17.246 9.81233 17.238 9.537C17.2293 9.26233 17.1333 9.03333 16.95 8.85C16.7667 8.66667 16.5333 8.575 16.25 8.575C15.9667 8.575 15.7333 8.66667 15.55 8.85L10.6 13.8ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6873 5.825 19.975 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26267 14.6833 2 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31267 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.31233 8.1 2.787C9.31667 2.26233 10.6167 2 12 2C13.3833 2 14.6833 2.26233 15.9 2.787C17.1167 3.31233 18.175 4.025 19.075 4.925C19.975 5.825 20.6873 6.88333 21.212 8.1C21.7373 9.31667 22 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6873 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6873 15.9 21.212C14.6833 21.7373 13.3833 22 12 22ZM12 20C14.2167 20 16.1043 19.221 17.663 17.663C19.221 16.1043 20 14.2167 20 12C20 9.78333 19.221 7.89567 17.663 6.337C16.1043 4.779 14.2167 4 12 4C9.78333 4 7.896 4.779 6.338 6.337C4.77933 7.89567 4 9.78333 4 12C4 14.2167 4.77933 16.1043 6.338 17.663C7.896 19.221 9.78333 20 12 20Z",fill:t})})}),lP=({size:e=24,fill:t="#F04438"})=>C.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("g",{id:"error",children:C.jsx("g",{mask:"url(#mask0_4874_46622)",children:C.jsx("path",{id:"error_2",d:"M12 17C12.2833 17 12.5208 16.9042 12.7125 16.7125C12.9042 16.5208 13 16.2833 13 16C13 15.7167 12.9042 15.4792 12.7125 15.2875C12.5208 15.0958 12.2833 15 12 15C11.7167 15 11.4792 15.0958 11.2875 15.2875C11.0958 15.4792 11 15.7167 11 16C11 16.2833 11.0958 16.5208 11.2875 16.7125C11.4792 16.9042 11.7167 17 12 17ZM12 13C12.2833 13 12.5208 12.9042 12.7125 12.7125C12.9042 12.5208 13 12.2833 13 12V8C13 7.71667 12.9042 7.47917 12.7125 7.2875C12.5208 7.09583 12.2833 7 12 7C11.7167 7 11.4792 7.09583 11.2875 7.2875C11.0958 7.47917 11 7.71667 11 8V12C11 12.2833 11.0958 12.5208 11.2875 12.7125C11.4792 12.9042 11.7167 13 12 13ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:t})})})}),cP=({size:e=24,fill:t="#F79009"})=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:C.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99ZM2.74 18C1.97 19.33 2.93 21 4.47 21H19.53C21.07 21 22.03 19.33 21.26 18L13.73 4.99C12.96 3.66 11.04 3.66 10.27 4.99L2.74 18ZM11 11V13C11 13.55 11.45 14 12 14C12.55 14 13 13.55 13 13V11C13 10.45 12.55 10 12 10C11.45 10 11 10.45 11 11ZM11 16H13V18H11V16Z",fill:t})}),uP=({size:e=24,fill:t="#016DCF"})=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[C.jsx("mask",{id:"mask0_32271_5688",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),C.jsx("g",{mask:"url(#mask0_32271_5688)",children:C.jsx("path",{d:"M12 17C12.2833 17 12.5208 16.9042 12.7125 16.7125C12.9042 16.5208 13 16.2833 13 16V12C13 11.7167 12.9042 11.4792 12.7125 11.2875C12.5208 11.0958 12.2833 11 12 11C11.7167 11 11.4792 11.0958 11.2875 11.2875C11.0958 11.4792 11 11.7167 11 12V16C11 16.2833 11.0958 16.5208 11.2875 16.7125C11.4792 16.9042 11.7167 17 12 17ZM12 9C12.2833 9 12.5208 8.90417 12.7125 8.7125C12.9042 8.52083 13 8.28333 13 8C13 7.71667 12.9042 7.47917 12.7125 7.2875C12.5208 7.09583 12.2833 7 12 7C11.7167 7 11.4792 7.09583 11.2875 7.2875C11.0958 7.47917 11 7.71667 11 8C11 8.28333 11.0958 8.52083 11.2875 8.7125C11.4792 8.90417 11.7167 9 12 9ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:t})})]}),dP=({size:e=24,fill:t="#016DCF"})=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[C.jsx("mask",{id:"mask0_35096_2621",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),C.jsx("g",{mask:"url(#mask0_35096_2621)",children:C.jsx("path",{d:"M8 20H16V17C16 15.9 15.6083 14.9583 14.825 14.175C14.0417 13.3917 13.1 13 12 13C10.9 13 9.95833 13.3917 9.175 14.175C8.39167 14.9583 8 15.9 8 17V20ZM12 11C13.1 11 14.0417 10.6083 14.825 9.825C15.6083 9.04167 16 8.1 16 7V4H8V7C8 8.1 8.39167 9.04167 9.175 9.825C9.95833 10.6083 10.9 11 12 11ZM5 22C4.71667 22 4.47917 21.9042 4.2875 21.7125C4.09583 21.5208 4 21.2833 4 21C4 20.7167 4.09583 20.4792 4.2875 20.2875C4.47917 20.0958 4.71667 20 5 20H6V17C6 15.9833 6.2375 15.0292 6.7125 14.1375C7.1875 13.2458 7.85 12.5333 8.7 12C7.85 11.4667 7.1875 10.7542 6.7125 9.8625C6.2375 8.97083 6 8.01667 6 7V4H5C4.71667 4 4.47917 3.90417 4.2875 3.7125C4.09583 3.52083 4 3.28333 4 3C4 2.71667 4.09583 2.47917 4.2875 2.2875C4.47917 2.09583 4.71667 2 5 2H19C19.2833 2 19.5208 2.09583 19.7125 2.2875C19.9042 2.47917 20 2.71667 20 3C20 3.28333 19.9042 3.52083 19.7125 3.7125C19.5208 3.90417 19.2833 4 19 4H18V7C18 8.01667 17.7625 8.97083 17.2875 9.8625C16.8125 10.7542 16.15 11.4667 15.3 12C16.15 12.5333 16.8125 13.2458 17.2875 14.1375C17.7625 15.0292 18 15.9833 18 17V20H19C19.2833 20 19.5208 20.0958 19.7125 20.2875C19.9042 20.4792 20 20.7167 20 21C20 21.2833 19.9042 21.5208 19.7125 21.7125C19.5208 21.9042 19.2833 22 19 22H5Z",fill:t})})]}),fP=({size:e=16})=>C.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{d:"M18.3 5.71a.996.996 0 00-1.41 0L12 10.59 7.11 5.7A.996.996 0 105.7 7.11L10.59 12 5.7 16.89a.996.996 0 101.41 1.41L12 13.41l4.89 4.89a.996.996 0 101.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"})}),mP=e=>{switch(e){case"success":return C.jsx("div",{className:"w-8 h-8 bg-green-50 dark:bg-green-900 rounded-full p-1 flex justify-center items-center",children:C.jsx(sP,{size:24,fill:"#12B76A"})});case"error":return C.jsx("div",{className:"w-8 h-8 bg-red-50 dark:bg-red-900 rounded-full p-1 flex justify-center items-center",children:C.jsx(lP,{fill:"#F04438",size:24})});case"warning":return C.jsx("div",{className:"w-8 h-8 bg-yellow-50 dark:bg-yellow-900 rounded-full p-1 flex justify-center items-center",children:C.jsx(cP,{fill:"#F79009",size:24})});case"info":return C.jsx("div",{className:"w-8 h-8 bg-blue-50 dark:bg-blue-900 rounded-full p-1 flex justify-center items-center",children:C.jsx(uP,{})});case"in-progress":return C.jsx("div",{className:"w-8 h-8 bg-blue-50 dark:bg-blue-900 rounded-full p-1 flex justify-center items-center",children:C.jsx(dP,{})});default:return null}},pP={success:"border-b-[5px] !border-green-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600",error:"border-b-[5px] !border-red-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600",warning:"border-b-[5px] !border-yellow-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600",info:"border-b-[5px] !border-blue-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600","in-progress":"border-b-[5px] !border-blue-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600"},gP=({closeToast:e})=>C.jsx("button",{onClick:e,className:"text-neutral-900 dark:text-white hover:text-neutral-600 dark:hover:text-neutral-300 transition-colors",children:C.jsx(fP,{size:16})}),hP=({position:e="bottom-right",autoClose:t=3e3,hideProgressBar:r=!0,newestOnTop:n=!0,closeOnClick:o=!0,pauseOnFocusLoss:i=!1,draggable:a=!0,pauseOnHover:s=!0,rtl:l=!1,className:c,style:u={zIndex:1e5},...d})=>C.jsx(aP,{position:e,transition:oP,autoClose:t,hideProgressBar:r,newestOnTop:n,closeOnClick:o,rtl:l,pauseOnFocusLoss:i,draggable:a,pauseOnHover:s,icon:({type:f})=>mP(f),bodyStyle:{gap:"4px"},style:u,toastClassName:f=>{const{type:g="",defaultClassName:h=""}=f||{};return`w-[100%] sm:w-[400px] bg-white dark:bg-neutral-800 rounded-[4px] font-medium text-sm text-neutral-900 dark:text-white shadow-lg p-[20px] min-h-0 ${h} ${pP[g]} ${c||""}`},closeButton:gP,...d}),vP={success:(e,t)=>Pe.success(e,t),error:(e,t)=>Pe.error(e,t),warning:(e,t)=>Pe.warning(e,t),info:(e,t)=>Pe.info(e,t),inProgress:(e,t)=>Pe(e,{...t,type:"in-progress"}),dismiss:e=>Pe.dismiss(e),isActive:e=>Pe.isActive(e)};typeof window<"u"&&(window.CODEIUM_REACT_CODE_VERSION="1.0.12");function v1(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 Nf(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(e,[])).next())})}typeof SuppressedError=="function"&&SuppressedError;function gr(e,t){if(!e)throw new Error(t)}const bP=34028234663852886e22,yP=-34028234663852886e22,CP=4294967295,xP=2147483647,wP=-2147483648;function Ql(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>xP||e<wP)throw new Error("invalid int 32: "+e)}function Of(e){if(typeof e!="number")throw new Error("invalid uint 32: "+typeof e);if(!Number.isInteger(e)||e>CP||e<0)throw new Error("invalid uint 32: "+e)}function b1(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>bP||e<yP))throw new Error("invalid float 32: "+e)}const y1=Symbol("@bufbuild/protobuf/enum-type");function SP(e){const t=e[y1];return gr(t,"missing enum type on enum object"),t}function C1(e,t,r,n){e[y1]=x1(t,r.map(o=>({no:o.no,name:o.name,localName:e[o.no]})))}function x1(e,t,r){const n=Object.create(null),o=Object.create(null),i=[];for(const a of t){const s=w1(a);i.push(s),n[a.name]=s,o[a.no]=s}return{typeName:e,values:i,findName(a){return n[a]},findNumber(a){return o[a]}}}function EP(e,t,r){const n={};for(const o of t){const i=w1(o);n[i.localName]=i.no,n[i.no]=i.localName}return C1(n,e,t),n}function w1(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}class mt{equals(t){return this.getType().runtime.util.equals(this.getType(),this,t)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(t,r){const n=this.getType(),o=n.runtime.bin,i=o.makeReadOptions(r);return o.readMessage(this,i.readerFactory(t),t.byteLength,i),this}fromJson(t,r){const n=this.getType(),o=n.runtime.json,i=o.makeReadOptions(r);return o.readMessage(n,t,i,this),this}fromJsonString(t,r){let n;try{n=JSON.parse(t)}catch(o){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${o instanceof Error?o.message:String(o)}`)}return this.fromJson(n,r)}toBinary(t){const r=this.getType(),n=r.runtime.bin,o=n.makeWriteOptions(t),i=o.writerFactory();return n.writeMessage(this,i,o),i.finish()}toJson(t){const r=this.getType(),n=r.runtime.json,o=n.makeWriteOptions(t);return n.writeMessage(this,o)}toJsonString(t){var r;const n=this.toJson(t);return JSON.stringify(n,null,(r=t?.prettySpaces)!==null&&r!==void 0?r:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}function IP(e,t,r,n){var o;const i=(o=n?.localName)!==null&&o!==void 0?o:t.substring(t.lastIndexOf(".")+1),a={[i]:function(s){e.util.initFields(this),e.util.initPartial(s,this)}}[i];return Object.setPrototypeOf(a.prototype,new mt),Object.assign(a,{runtime:e,typeName:t,fields:e.util.newFieldList(r),fromBinary(s,l){return new a().fromBinary(s,l)},fromJson(s,l){return new a().fromJson(s,l)},fromJsonString(s,l){return new a().fromJsonString(s,l)},equals(s,l){return e.util.equals(a,s,l)}}),a}function AP(e,t,r,n){return{syntax:e,json:t,bin:r,util:n,makeMessageType(o,i,a){return IP(this,o,i,a)},makeEnum:EP,makeEnumType:x1,getEnumType:SP}}var re;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(re||(re={}));var Co;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(Co||(Co={}));function NP(){let e=0,t=0;for(let n=0;n<28;n+=7){let o=this.buf[this.pos++];if(e|=(o&127)<<n,(o&128)==0)return this.assertBounds(),[e,t]}let r=this.buf[this.pos++];if(e|=(r&15)<<28,t=(r&112)>>4,(r&128)==0)return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let o=this.buf[this.pos++];if(t|=(o&127)<<n,(o&128)==0)return this.assertBounds(),[e,t]}throw new Error("invalid varint")}function Tf(e,t,r){for(let i=0;i<28;i=i+7){const a=e>>>i,s=!(!(a>>>7)&&t==0),l=(s?a|128:a)&255;if(r.push(l),!s)return}const n=e>>>28&15|(t&7)<<4,o=t>>3!=0;if(r.push((o?n|128:n)&255),!!o){for(let i=3;i<31;i=i+7){const a=t>>>i,s=!!(a>>>7),l=(s?a|128:a)&255;if(r.push(l),!s)return}r.push(t>>>31&1)}}const Kl=4294967296;function S1(e){const t=e[0]==="-";t&&(e=e.slice(1));const r=1e6;let n=0,o=0;function i(a,s){const l=Number(e.slice(a,s));o*=r,n=n*r+l,n>=Kl&&(o=o+(n/Kl|0),n=n%Kl)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),t?I1(n,o):Pf(n,o)}function OP(e,t){let r=Pf(e,t);const n=r.hi&2147483648;n&&(r=I1(r.lo,r.hi));const o=E1(r.lo,r.hi);return n?"-"+o:o}function E1(e,t){if({lo:e,hi:t}=TP(e,t),t<=2097151)return String(Kl*t+e);const r=e&16777215,n=(e>>>24|t<<8)&16777215,o=t>>16&65535;let i=r+n*6777216+o*6710656,a=n+o*8147497,s=o*2;const l=1e7;return i>=l&&(a+=Math.floor(i/l),i%=l),a>=l&&(s+=Math.floor(a/l),a%=l),s.toString()+A1(a)+A1(i)}function TP(e,t){return{lo:e>>>0,hi:t>>>0}}function Pf(e,t){return{lo:e|0,hi:t|0}}function I1(e,t){return t=~t,e?e=~e+1:t+=1,Pf(e,t)}const A1=e=>{const t=String(e);return"0000000".slice(t.length)+t};function N1(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let r=0;r<9;r++)t.push(e&127|128),e=e>>7;t.push(1)}}function PP(){let e=this.buf[this.pos++],t=e&127;if((e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,(e&128)==0)return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let r=5;(e&128)!==0&&r<10;r++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");return this.assertBounds(),t>>>0}function kP(){const e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(typeof process!="object"||typeof process.env!="object"||process.env.BUF_BIGINT_DISABLE!=="1")){const o=BigInt("-9223372036854775808"),i=BigInt("9223372036854775807"),a=BigInt("0"),s=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(l){const c=typeof l=="bigint"?l:BigInt(l);if(c>i||c<o)throw new Error(`int64 invalid: ${l}`);return c},uParse(l){const c=typeof l=="bigint"?l:BigInt(l);if(c>s||c<a)throw new Error(`uint64 invalid: ${l}`);return c},enc(l){return e.setBigInt64(0,this.parse(l),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(l){return e.setBigInt64(0,this.uParse(l),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec(l,c){return e.setInt32(0,l,!0),e.setInt32(4,c,!0),e.getBigInt64(0,!0)},uDec(l,c){return e.setInt32(0,l,!0),e.setInt32(4,c,!0),e.getBigUint64(0,!0)}}}const r=o=>gr(/^-?[0-9]+$/.test(o),`int64 invalid: ${o}`),n=o=>gr(/^[0-9]+$/.test(o),`uint64 invalid: ${o}`);return{zero:"0",supported:!1,parse(o){return typeof o!="string"&&(o=o.toString()),r(o),o},uParse(o){return typeof o!="string"&&(o=o.toString()),n(o),o},enc(o){return typeof o!="string"&&(o=o.toString()),r(o),S1(o)},uEnc(o){return typeof o!="string"&&(o=o.toString()),n(o),S1(o)},dec(o,i){return OP(o,i)},uDec(o,i){return E1(o,i)}}}const dt=kP();var $t;(function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"})($t||($t={}));class FP{constructor(t){this.stack=[],this.textEncoder=t??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let t=0;for(let o=0;o<this.chunks.length;o++)t+=this.chunks[o].length;let r=new Uint8Array(t),n=0;for(let o=0;o<this.chunks.length;o++)r.set(this.chunks[o],n),n+=this.chunks[o].length;return this.chunks=[],r}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let t=this.finish(),r=this.stack.pop();if(!r)throw new Error("invalid state, fork stack empty");return this.chunks=r.chunks,this.buf=r.buf,this.uint32(t.byteLength),this.raw(t)}tag(t,r){return this.uint32((t<<3|r)>>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(Of(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return Ql(t),N1(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let r=this.textEncoder.encode(t);return this.uint32(r.byteLength),this.raw(r)}float(t){b1(t);let r=new Uint8Array(4);return new DataView(r.buffer).setFloat32(0,t,!0),this.raw(r)}double(t){let r=new Uint8Array(8);return new DataView(r.buffer).setFloat64(0,t,!0),this.raw(r)}fixed32(t){Of(t);let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,t,!0),this.raw(r)}sfixed32(t){Ql(t);let r=new Uint8Array(4);return new DataView(r.buffer).setInt32(0,t,!0),this.raw(r)}sint32(t){return Ql(t),t=(t<<1^t>>31)>>>0,N1(t,this.buf),this}sfixed64(t){let r=new Uint8Array(8),n=new DataView(r.buffer),o=dt.enc(t);return n.setInt32(0,o.lo,!0),n.setInt32(4,o.hi,!0),this.raw(r)}fixed64(t){let r=new Uint8Array(8),n=new DataView(r.buffer),o=dt.uEnc(t);return n.setInt32(0,o.lo,!0),n.setInt32(4,o.hi,!0),this.raw(r)}int64(t){let r=dt.enc(t);return Tf(r.lo,r.hi,this.buf),this}sint64(t){let r=dt.enc(t),n=r.hi>>31,o=r.lo<<1^n,i=(r.hi<<1|r.lo>>>31)^n;return Tf(o,i,this.buf),this}uint64(t){let r=dt.uEnc(t);return Tf(r.lo,r.hi,this.buf),this}}class $P{constructor(t,r){this.varint64=NP,this.uint32=PP,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=r??new TextDecoder}tag(){let t=this.uint32(),r=t>>>3,n=t&7;if(r<=0||n<0||n>5)throw new Error("illegal tag: field no "+r+" wire type "+n);return[r,n]}skip(t){let r=this.pos;switch(t){case $t.Varint:for(;this.buf[this.pos++]&128;);break;case $t.Bit64:this.pos+=4;case $t.Bit32:this.pos+=4;break;case $t.LengthDelimited:let n=this.uint32();this.pos+=n;break;case $t.StartGroup:let o;for(;(o=this.tag()[1])!==$t.EndGroup;)this.skip(o);break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(r,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return dt.dec(...this.varint64())}uint64(){return dt.uDec(...this.varint64())}sint64(){let[t,r]=this.varint64(),n=-(t&1);return t=(t>>>1|(r&1)<<31)^n,r=r>>>1^n,dt.dec(t,r)}bool(){let[t,r]=this.varint64();return t!==0||r!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return dt.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return dt.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),r=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(r,r+t)}string(){return this.textDecoder.decode(this.bytes())}}function kf(e,t){return t instanceof mt||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}re.DOUBLE,re.FLOAT,re.INT64,re.UINT64,re.INT32,re.UINT32,re.BOOL,re.STRING,re.BYTES;function Kn(e,t,r){if(t===r)return!0;if(e==re.BYTES){if(!(t instanceof Uint8Array)||!(r instanceof Uint8Array)||t.length!==r.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==r[n])return!1;return!0}switch(e){case re.UINT64:case re.FIXED64:case re.INT64:case re.SFIXED64:case re.SINT64:return t==r}return!1}function Ff(e,t){switch(e){case re.BOOL:return!1;case re.UINT64:case re.FIXED64:case re.INT64:case re.SFIXED64:case re.SINT64:return t==0?dt.zero:"0";case re.DOUBLE:case re.FLOAT:return 0;case re.BYTES:return new Uint8Array(0);case re.STRING:return"";default:return 0}}function O1(e,t){const r=t===void 0;let n=$t.Varint,o=t===0;switch(e){case re.STRING:o=r||!t.length,n=$t.LengthDelimited;break;case re.BOOL:o=t===!1;break;case re.DOUBLE:n=$t.Bit64;break;case re.FLOAT:n=$t.Bit32;break;case re.INT64:o=r||t==0;break;case re.UINT64:o=r||t==0;break;case re.FIXED64:o=r||t==0,n=$t.Bit64;break;case re.BYTES:o=r||!t.byteLength,n=$t.LengthDelimited;break;case re.FIXED32:n=$t.Bit32;break;case re.SFIXED32:n=$t.Bit32;break;case re.SFIXED64:o=r||t==0,n=$t.Bit64;break;case re.SINT64:o=r||t==0;break}const i=re[e].toLowerCase();return[n,i,r||o]}const di=Symbol("@bufbuild/protobuf/unknown-fields"),T1={readUnknownFields:!0,readerFactory:e=>new $P(e)},P1={writeUnknownFields:!0,writerFactory:()=>new FP};function MP(e){return e?Object.assign(Object.assign({},T1),e):T1}function jP(e){return e?Object.assign(Object.assign({},P1),e):P1}function RP(){return{makeReadOptions:MP,makeWriteOptions:jP,listUnknownFields(e){var t;return(t=e[di])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[di]},writeUnknownFields(e,t){const n=e[di];if(n)for(const o of n)t.tag(o.no,o.wireType).raw(o.data)},onUnknownField(e,t,r,n){const o=e;Array.isArray(o[di])||(o[di]=[]),o[di].push({no:t,wireType:r,data:n})},readMessage(e,t,r,n){const o=e.getType(),i=r===void 0?t.len:t.pos+r;for(;t.pos<i;){const[a,s]=t.tag(),l=o.fields.find(a);if(!l){const f=t.skip(s);n.readUnknownFields&&this.onUnknownField(e,a,s,f);continue}let c=e,u=l.repeated,d=l.localName;switch(l.oneof&&(c=c[l.oneof.localName],c.case!=d&&delete c.value,c.case=d,d="value"),l.kind){case"scalar":case"enum":const f=l.kind=="enum"?re.INT32:l.T;let g=tc;if(l.kind=="scalar"&&l.L>0&&(g=DP),u){let b=c[d];if(s==$t.LengthDelimited&&f!=re.STRING&&f!=re.BYTES){let y=t.uint32()+t.pos;for(;t.pos<y;)b.push(g(t,f))}else b.push(g(t,f))}else c[d]=g(t,f);break;case"message":const h=l.T;u?c[d].push(ec(t,new h,n)):c[d]instanceof mt?ec(t,c[d],n):(c[d]=ec(t,new h,n),h.fieldWrapper&&!l.oneof&&!l.repeated&&(c[d]=h.fieldWrapper.unwrapField(c[d])));break;case"map":let[m,p]=LP(l,t,n);c[d][m]=p;break}}}}}function ec(e,t,r){return t.getType().runtime.bin.readMessage(t,e,e.uint32(),r),t}function LP(e,t,r){const n=t.uint32(),o=t.pos+n;let i,a;for(;t.pos<o;){let[s]=t.tag();switch(s){case 1:i=tc(t,e.K);break;case 2:switch(e.V.kind){case"scalar":a=tc(t,e.V.T);break;case"enum":a=t.int32();break;case"message":a=ec(t,new e.V.T,r);break}break}}if(i===void 0){let s=Ff(e.K,Co.BIGINT);i=e.K==re.BOOL?s.toString():s}if(typeof i!="string"&&typeof i!="number"&&(i=i.toString()),a===void 0)switch(e.V.kind){case"scalar":a=Ff(e.V.T,Co.BIGINT);break;case"enum":a=0;break;case"message":a=new e.V.T;break}return[i,a]}function DP(e,t){const r=tc(e,t);return typeof r=="bigint"?r.toString():r}function tc(e,t){switch(t){case re.STRING:return e.string();case re.BOOL:return e.bool();case re.DOUBLE:return e.double();case re.FLOAT:return e.float();case re.INT32:return e.int32();case re.INT64:return e.int64();case re.UINT64:return e.uint64();case re.FIXED64:return e.fixed64();case re.BYTES:return e.bytes();case re.FIXED32:return e.fixed32();case re.SFIXED32:return e.sfixed32();case re.SFIXED64:return e.sfixed64();case re.SINT64:return e.sint64();case re.UINT32:return e.uint32();case re.SINT32:return e.sint32()}}function _P(e,t,r,n,o){e.tag(r.no,$t.LengthDelimited),e.fork();let i=n;switch(r.K){case re.INT32:case re.FIXED32:case re.UINT32:case re.SFIXED32:case re.SINT32:i=Number.parseInt(n);break;case re.BOOL:gr(n=="true"||n=="false"),i=n=="true";break}switch(ya(e,r.K,1,i,!0),r.V.kind){case"scalar":ya(e,r.V.T,2,o,!0);break;case"enum":ya(e,re.INT32,2,o,!0);break;case"message":$f(e,t,r.V.T,2,o);break}e.join()}function $f(e,t,r,n,o){if(o!==void 0){const i=kf(r,o);e.tag(n,$t.LengthDelimited).bytes(i.toBinary(t))}}function ya(e,t,r,n,o){let[i,a,s]=O1(t,n);(!s||o)&&e.tag(r,i)[a](n)}function VP(e,t,r,n){if(!n.length)return;e.tag(r,$t.LengthDelimited).fork();let[,o]=O1(t);for(let i=0;i<n.length;i++)e[o](n[i]);e.join()}function BP(){return Object.assign(Object.assign({},RP()),{writeMessage(e,t,r){const n=e.getType();for(const o of n.fields.byNumber()){let i,a=o.repeated,s=o.localName;if(o.oneof){const l=e[o.oneof.localName];if(l.case!==s)continue;i=l.value}else i=e[s];switch(o.kind){case"scalar":case"enum":let l=o.kind=="enum"?re.INT32:o.T;if(a)if(o.packed)VP(t,l,o.no,i);else for(const c of i)ya(t,l,o.no,c,!0);else i!==void 0&&ya(t,l,o.no,i,!!o.oneof||o.opt);break;case"message":if(a)for(const c of i)$f(t,r,o.T,o.no,c);else $f(t,r,o.T,o.no,i);break;case"map":for(const[c,u]of Object.entries(i))_P(t,r,o,c,u);break}}return r.writeUnknownFields&&this.writeUnknownFields(e,t),t}})}let An="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),rc=[];for(let e=0;e<An.length;e++)rc[An[e].charCodeAt(0)]=e;rc[45]=An.indexOf("+"),rc[95]=An.indexOf("/");const nc={dec(e){let t=e.length*3/4;e[e.length-2]=="="?t-=2:e[e.length-1]=="="&&(t-=1);let r=new Uint8Array(t),n=0,o=0,i,a=0;for(let s=0;s<e.length;s++){if(i=rc[e.charCodeAt(s)],i===void 0)switch(e[s]){case"=":o=0;case`
|
|
321
|
+
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(o){case 0:a=i,o=1;break;case 1:r[n++]=a<<2|(i&48)>>4,a=i,o=2;break;case 2:r[n++]=(a&15)<<4|(i&60)>>2,a=i,o=3;break;case 3:r[n++]=(a&3)<<6|i,o=0;break}}if(o==1)throw Error("invalid base64 string.");return r.subarray(0,n)},enc(e){let t="",r=0,n,o=0;for(let i=0;i<e.length;i++)switch(n=e[i],r){case 0:t+=An[n>>2],o=(n&3)<<4,r=1;break;case 1:t+=An[o|n>>4],o=(n&15)<<2,r=2;break;case 2:t+=An[o|n>>6],t+=An[n&63],r=0;break}return r&&(t+=An[o],t+="=",r==1&&(t+="=")),t}},k1={ignoreUnknownFields:!1},F1={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function zP(e){return e?Object.assign(Object.assign({},k1),e):k1}function GP(e){return e?Object.assign(Object.assign({},F1),e):F1}function HP(e){const t=e(WP,M1);return{makeReadOptions:zP,makeWriteOptions:GP,readMessage(r,n,o,i){if(n==null||Array.isArray(n)||typeof n!="object")throw new Error(`cannot decode message ${r.typeName} from JSON: ${this.debug(n)}`);i=i??new r;const a={};for(const[s,l]of Object.entries(n)){const c=r.fields.findJsonName(s);if(!c){if(!o.ignoreUnknownFields)throw new Error(`cannot decode message ${r.typeName} from JSON: key "${s}" is unknown`);continue}let u=c.localName,d=i;if(c.oneof){if(l===null&&c.kind=="scalar")continue;const f=a[c.oneof.localName];if(f)throw new Error(`cannot decode message ${r.typeName} from JSON: multiple keys for oneof "${c.oneof.name}" present: "${f}", "${s}"`);a[c.oneof.localName]=s,d=d[c.oneof.localName]={case:u},u="value"}if(c.repeated){if(l===null)continue;if(!Array.isArray(l))throw new Error(`cannot decode field ${r.typeName}.${c.name} from JSON: ${this.debug(l)}`);const f=d[u];for(const g of l){if(g===null)throw new Error(`cannot decode field ${r.typeName}.${c.name} from JSON: ${this.debug(g)}`);let h;switch(c.kind){case"message":h=c.T.fromJson(g,o);break;case"enum":if(h=Mf(c.T,g,o.ignoreUnknownFields),h===void 0)continue;break;case"scalar":try{h=Ca(c.T,g,c.L)}catch(m){let p=`cannot decode field ${r.typeName}.${c.name} from JSON: ${this.debug(g)}`;throw m instanceof Error&&m.message.length>0&&(p+=`: ${m.message}`),new Error(p)}break}f.push(h)}}else if(c.kind=="map"){if(l===null)continue;if(Array.isArray(l)||typeof l!="object")throw new Error(`cannot decode field ${r.typeName}.${c.name} from JSON: ${this.debug(l)}`);const f=d[u];for(const[g,h]of Object.entries(l)){if(h===null)throw new Error(`cannot decode field ${r.typeName}.${c.name} from JSON: map value null`);let m;switch(c.V.kind){case"message":m=c.V.T.fromJson(h,o);break;case"enum":if(m=Mf(c.V.T,h,o.ignoreUnknownFields),m===void 0)continue;break;case"scalar":try{m=Ca(c.V.T,h,Co.BIGINT)}catch(p){let b=`cannot decode map value for field ${r.typeName}.${c.name} from JSON: ${this.debug(l)}`;throw p instanceof Error&&p.message.length>0&&(b+=`: ${p.message}`),new Error(b)}break}try{f[Ca(c.K,c.K==re.BOOL?g=="true"?!0:g=="false"?!1:g:g,Co.BIGINT).toString()]=m}catch(p){let b=`cannot decode map key for field ${r.typeName}.${c.name} from JSON: ${this.debug(l)}`;throw p instanceof Error&&p.message.length>0&&(b+=`: ${p.message}`),new Error(b)}}}else switch(c.kind){case"message":const f=c.T;if(l===null&&f.typeName!="google.protobuf.Value"){if(c.oneof)throw new Error(`cannot decode field ${r.typeName}.${c.name} from JSON: null is invalid for oneof field "${s}"`);continue}d[u]instanceof mt?d[u].fromJson(l,o):(d[u]=f.fromJson(l,o),f.fieldWrapper&&!c.oneof&&(d[u]=f.fieldWrapper.unwrapField(d[u])));break;case"enum":const g=Mf(c.T,l,o.ignoreUnknownFields);g!==void 0&&(d[u]=g);break;case"scalar":try{d[u]=Ca(c.T,l,c.L)}catch(h){let m=`cannot decode field ${r.typeName}.${c.name} from JSON: ${this.debug(l)}`;throw h instanceof Error&&h.message.length>0&&(m+=`: ${h.message}`),new Error(m)}break}}return i},writeMessage(r,n){const o=r.getType(),i={};let a;try{for(const s of o.fields.byMember()){let l;if(s.kind=="oneof"){const c=r[s.localName];if(c.value===void 0)continue;if(a=s.findField(c.case),!a)throw"oneof case not found: "+c.case;l=t(a,c.value,n)}else a=s,l=t(a,r[a.localName],n);l!==void 0&&(i[n.useProtoFieldName?a.name:a.jsonName]=l)}}catch(s){const l=a?`cannot encode field ${o.typeName}.${a.name} to JSON`:`cannot encode message ${o.typeName} to JSON`,c=s instanceof Error?s.message:String(s);throw new Error(l+(c.length>0?`: ${c}`:""))}return i},readScalar:Ca,writeScalar:M1,debug:$1}}function $1(e){if(e===null)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":`"${e.split('"').join('\\"')}"`;default:return String(e)}}function Ca(e,t,r){switch(e){case re.DOUBLE:case re.FLOAT:if(t===null)return 0;if(t==="NaN")return Number.NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(t===""||typeof t=="string"&&t.trim().length!==t.length||typeof t!="string"&&typeof t!="number")break;const n=Number(t);if(Number.isNaN(n)||!Number.isFinite(n))break;return e==re.FLOAT&&b1(n),n;case re.INT32:case re.FIXED32:case re.SFIXED32:case re.SINT32:case re.UINT32:if(t===null)return 0;let o;if(typeof t=="number"?o=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(o=Number(t)),o===void 0)break;return e==re.UINT32?Of(o):Ql(o),o;case re.INT64:case re.SFIXED64:case re.SINT64:if(t===null)return dt.zero;if(typeof t!="number"&&typeof t!="string")break;const i=dt.parse(t);return r?i.toString():i;case re.FIXED64:case re.UINT64:if(t===null)return dt.zero;if(typeof t!="number"&&typeof t!="string")break;const a=dt.uParse(t);return r?a.toString():a;case re.BOOL:if(t===null)return!1;if(typeof t!="boolean")break;return t;case re.STRING:if(t===null)return"";if(typeof t!="string")break;try{encodeURIComponent(t)}catch{throw new Error("invalid UTF8")}return t;case re.BYTES:if(t===null||t==="")return new Uint8Array(0);if(typeof t!="string")break;return nc.dec(t)}throw new Error}function Mf(e,t,r){if(t===null)return 0;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":const n=e.findName(t);if(n||r)return n?.no;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${$1(t)}`)}function WP(e,t,r,n){var o;if(t===void 0)return t;if(t===0&&!r)return;if(n)return t;if(e.typeName=="google.protobuf.NullValue")return null;const i=e.findNumber(t);return(o=i?.name)!==null&&o!==void 0?o:t}function M1(e,t,r){if(t!==void 0)switch(e){case re.INT32:case re.SFIXED32:case re.SINT32:case re.FIXED32:case re.UINT32:return gr(typeof t=="number"),t!=0||r?t:void 0;case re.FLOAT:case re.DOUBLE:return gr(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t!==0||r?t:void 0;case re.STRING:return gr(typeof t=="string"),t.length>0||r?t:void 0;case re.BOOL:return gr(typeof t=="boolean"),t||r?t:void 0;case re.UINT64:case re.FIXED64:case re.INT64:case re.SFIXED64:case re.SINT64:return gr(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),r||t!=0?t.toString(10):void 0;case re.BYTES:return gr(t instanceof Uint8Array),r||t.byteLength>0?nc.enc(t):void 0}}function UP(){return HP((e,t)=>function(n,o,i){if(n.kind=="map"){const a={};switch(n.V.kind){case"scalar":for(const[l,c]of Object.entries(o)){const u=t(n.V.T,c,!0);gr(u!==void 0),a[l.toString()]=u}break;case"message":for(const[l,c]of Object.entries(o))a[l.toString()]=c.toJson(i);break;case"enum":const s=n.V.T;for(const[l,c]of Object.entries(o)){gr(c===void 0||typeof c=="number");const u=e(s,c,!0,i.enumAsInteger);gr(u!==void 0),a[l.toString()]=u}break}return i.emitDefaultValues||Object.keys(a).length>0?a:void 0}else if(n.repeated){const a=[];switch(n.kind){case"scalar":for(let s=0;s<o.length;s++)a.push(t(n.T,o[s],!0));break;case"enum":for(let s=0;s<o.length;s++)a.push(e(n.T,o[s],!0,i.enumAsInteger));break;case"message":for(let s=0;s<o.length;s++)a.push(kf(n.T,o[s]).toJson(i));break}return i.emitDefaultValues||a.length>0?a:void 0}else switch(n.kind){case"scalar":return t(n.T,o,!!n.oneof||n.opt||i.emitDefaultValues);case"enum":return e(n.T,o,!!n.oneof||n.opt||i.emitDefaultValues,i.enumAsInteger);case"message":return o!==void 0?kf(n.T,o).toJson(i):void 0}})}function XP(){return{setEnumType:C1,initPartial(e,t){if(e===void 0)return;const r=t.getType();for(const n of r.fields.byMember()){const o=n.localName,i=t,a=e;if(a[o]!==void 0)switch(n.kind){case"oneof":const s=a[o].case;if(s===void 0)continue;const l=n.findField(s);let c=a[o].value;l&&l.kind=="message"&&!(c instanceof l.T)?c=new l.T(c):l&&l.kind==="scalar"&&l.T===re.BYTES&&(c=xa(c)),i[o]={case:s,value:c};break;case"scalar":case"enum":let u=a[o];n.T===re.BYTES&&(u=n.repeated?u.map(xa):xa(u)),i[o]=u;break;case"map":switch(n.V.kind){case"scalar":case"enum":if(n.V.T===re.BYTES)for(const[g,h]of Object.entries(a[o]))i[o][g]=xa(h);else Object.assign(i[o],a[o]);break;case"message":const f=n.V.T;for(const g of Object.keys(a[o])){let h=a[o][g];f.fieldWrapper||(h=new f(h)),i[o][g]=h}break}break;case"message":const d=n.T;if(n.repeated)i[o]=a[o].map(f=>f instanceof d?f:new d(f));else if(a[o]!==void 0){const f=a[o];d.fieldWrapper?d.typeName==="google.protobuf.BytesValue"?i[o]=xa(f):i[o]=f:i[o]=f instanceof d?f:new d(f)}break}}},equals(e,t,r){return t===r?!0:!t||!r?!1:e.fields.byMember().every(n=>{const o=t[n.localName],i=r[n.localName];if(n.repeated){if(o.length!==i.length)return!1;switch(n.kind){case"message":return o.every((a,s)=>n.T.equals(a,i[s]));case"scalar":return o.every((a,s)=>Kn(n.T,a,i[s]));case"enum":return o.every((a,s)=>Kn(re.INT32,a,i[s]))}throw new Error(`repeated cannot contain ${n.kind}`)}switch(n.kind){case"message":return n.T.equals(o,i);case"enum":return Kn(re.INT32,o,i);case"scalar":return Kn(n.T,o,i);case"oneof":if(o.case!==i.case)return!1;const a=n.findField(o.case);if(a===void 0)return!0;switch(a.kind){case"message":return a.T.equals(o.value,i.value);case"enum":return Kn(re.INT32,o.value,i.value);case"scalar":return Kn(a.T,o.value,i.value)}throw new Error(`oneof cannot contain ${a.kind}`);case"map":const s=Object.keys(o).concat(Object.keys(i));switch(n.V.kind){case"message":const l=n.V.T;return s.every(u=>l.equals(o[u],i[u]));case"enum":return s.every(u=>Kn(re.INT32,o[u],i[u]));case"scalar":const c=n.V.T;return s.every(u=>Kn(c,o[u],i[u]))}break}})},clone(e){const t=e.getType(),r=new t,n=r;for(const o of t.fields.byMember()){const i=e[o.localName];let a;if(o.repeated)a=i.map(oc);else if(o.kind=="map"){a=n[o.localName];for(const[s,l]of Object.entries(i))a[s]=oc(l)}else o.kind=="oneof"?a=o.findField(i.case)?{case:i.case,value:oc(i.value)}:{case:void 0}:a=oc(i);n[o.localName]=a}return r}}}function oc(e){if(e===void 0)return e;if(e instanceof mt)return e.clone();if(e instanceof Uint8Array){const t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function xa(e){return e instanceof Uint8Array?e:new Uint8Array(e)}class YP{constructor(t,r){this._fields=t,this._normalizer=r}findJsonName(t){if(!this.jsonNames){const r={};for(const n of this.list())r[n.jsonName]=r[n.name]=n;this.jsonNames=r}return this.jsonNames[t]}find(t){if(!this.numbers){const r={};for(const n of this.list())r[n.no]=n;this.numbers=r}return this.numbers[t]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((t,r)=>t.no-r.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const t=this.members;let r;for(const n of this.list())n.oneof?n.oneof!==r&&(r=n.oneof,t.push(r)):t.push(n)}return this.members}}function j1(e,t){const r=R1(e);return t?r:e7(KP(r))}function JP(e){return j1(e,!1)}const ZP=R1;function R1(e){let t=!1;const r=[];for(let n=0;n<e.length;n++){let o=e.charAt(n);switch(o){case"_":t=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r.push(o),t=!1;break;default:t&&(t=!1,o=o.toUpperCase()),r.push(o);break}}return r.join("")}const qP=new Set(["constructor","toString","toJSON","valueOf"]),QP=new Set(["getType","clone","equals","fromBinary","fromJson","fromJsonString","toBinary","toJson","toJsonString","toObject"]),L1=e=>`${e}$`,KP=e=>QP.has(e)?L1(e):e,e7=e=>qP.has(e)?L1(e):e;class t7{constructor(t){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this.name=t,this.localName=JP(t)}addField(t){gr(t.oneof===this,`field ${t.name} not one of ${this.name}`),this.fields.push(t)}findField(t){if(!this._lookup){this._lookup=Object.create(null);for(let r=0;r<this.fields.length;r++)this._lookup[this.fields[r].localName]=this.fields[r]}return this._lookup[t]}}const oe=AP("proto3",UP(),BP(),Object.assign(Object.assign({},XP()),{newFieldList(e){return new YP(e,r7)},initFields(e){for(const t of e.getType().fields.byMember()){if(t.opt)continue;const r=t.localName,n=e;if(t.repeated){n[r]=[];continue}switch(t.kind){case"oneof":n[r]={case:void 0};break;case"enum":n[r]=0;break;case"map":n[r]={};break;case"scalar":n[r]=Ff(t.T,t.L);break}}}}));function r7(e){var t,r,n,o;const i=[];let a;for(const s of typeof e=="function"?e():e){const l=s;if(l.localName=j1(s.name,s.oneof!==void 0),l.jsonName=(t=s.jsonName)!==null&&t!==void 0?t:ZP(s.name),l.repeated=(r=s.repeated)!==null&&r!==void 0?r:!1,s.kind=="scalar"&&(l.L=(n=s.L)!==null&&n!==void 0?n:Co.BIGINT),l.packed=(o=s.packed)!==null&&o!==void 0?o:s.kind=="enum"||s.kind=="scalar"&&s.T!=re.BYTES&&s.T!=re.STRING,s.oneof!==void 0){const c=typeof s.oneof=="string"?s.oneof:s.oneof.name;(!a||a.name!=c)&&(a=new t7(c)),l.oneof=a,a.addField(l)}i.push(l)}return i}var Lr;(function(e){e[e.Unary=0]="Unary",e[e.ServerStreaming=1]="ServerStreaming",e[e.ClientStreaming=2]="ClientStreaming",e[e.BiDiStreaming=3]="BiDiStreaming"})(Lr||(Lr={}));var jf;(function(e){e[e.NoSideEffects=1]="NoSideEffects",e[e.Idempotent=2]="Idempotent"})(jf||(jf={}));var Xe;(function(e){e[e.Canceled=1]="Canceled",e[e.Unknown=2]="Unknown",e[e.InvalidArgument=3]="InvalidArgument",e[e.DeadlineExceeded=4]="DeadlineExceeded",e[e.NotFound=5]="NotFound",e[e.AlreadyExists=6]="AlreadyExists",e[e.PermissionDenied=7]="PermissionDenied",e[e.ResourceExhausted=8]="ResourceExhausted",e[e.FailedPrecondition=9]="FailedPrecondition",e[e.Aborted=10]="Aborted",e[e.OutOfRange=11]="OutOfRange",e[e.Unimplemented=12]="Unimplemented",e[e.Internal=13]="Internal",e[e.Unavailable=14]="Unavailable",e[e.DataLoss=15]="DataLoss",e[e.Unauthenticated=16]="Unauthenticated"})(Xe||(Xe={}));function Rf(e){const t=Xe[e];return typeof t!="string"?e.toString():t[0].toLowerCase()+t.substring(1).replace(/[A-Z]/g,r=>"_"+r.toLowerCase())}let ic;function n7(e){if(!ic){ic={};for(const t of Object.values(Xe))typeof t!="string"&&(ic[Rf(t)]=t)}return ic[e]}class er extends Error{constructor(t,r=Xe.Unknown,n,o,i){super(o7(t,r)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=t,this.code=r,this.metadata=new Headers(n??{}),this.details=o??[],this.cause=i}static from(t,r=Xe.Unknown){return t instanceof er?t:t instanceof Error?t.name=="AbortError"?new er(t.message,Xe.Canceled):new er(t.message,r,void 0,void 0,t):new er(String(t),r,void 0,void 0,t)}findDetails(t){const r="typeName"in t?{findMessage:o=>o===t.typeName?t:void 0}:t,n=[];for(const o of this.details){if(o instanceof mt){r.findMessage(o.getType().typeName)&&n.push(o);continue}const i=r.findMessage(o.type);if(i)try{n.push(i.fromBinary(o.value))}catch{}}return n}}function o7(e,t){return e.length?`[${Rf(t)}] ${e}`:`[${Rf(t)}]`}function i7(...e){const t=new Headers;for(const r of e)r.forEach((n,o)=>{t.append(o,n)});return t}function a7(e,t){const r={};for(const[n,o]of Object.entries(e.methods)){const i=t(Object.assign(Object.assign({},o),{localName:n,service:e}));i!=null&&(r[n]=i)}return r}function s7(e){let t,r=new Uint8Array(0);function n(o){const i=new Uint8Array(r.length+o.length);i.set(r),i.set(o,r.length),r=i}return new ReadableStream({start(){t=e.getReader()},async pull(o){let i;for(;;){if(i===void 0&&r.byteLength>=5){let l=0;for(let c=1;c<5;c++)l=(l<<8)+r[c];i={flags:r[0],length:l}}if(i!==void 0&&r.byteLength>=i.length+5)break;const s=await t.read();if(s.done)break;n(s.value)}if(i===void 0){if(r.byteLength==0){o.close();return}o.error(new er("premature end of stream",Xe.DataLoss));return}const a=r.subarray(5,5+i.length);r=r.subarray(5+i.length),o.enqueue({flags:i.flags,data:a})}})}function l7(e,t){const r=new Uint8Array(t.length+5);r.set(t,5);const n=new DataView(r.buffer,r.byteOffset,r.byteLength);return n.setUint8(0,e),n.setUint32(1,t.length),r}var c7=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(s,l){a=e[i](a),o(s,l,a.done,a.value)})}}function o(i,a,s,l){Promise.resolve(l).then(function(c){i({value:c,done:s})},a)}},wa=function(e){return this instanceof wa?(this.v=e,this):new wa(e)},u7=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(f){n[f]&&(o[f]=function(g){return new Promise(function(h,m){i.push([f,g,h,m])>1||s(f,g)})})}function s(f,g){try{l(n[f](g))}catch(h){d(i[0][3],h)}}function l(f){f.value instanceof wa?Promise.resolve(f.value.v).then(c,u):d(i[0][2],f)}function c(f){s("next",f)}function u(f){s("throw",f)}function d(f,g){f(g),i.shift(),i.length&&s(i[0][0],i[0][1])}},d7=function(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(a){return(r=!r)?{value:wa(e[o](a)),done:!1}:i?i(a):a}:i}};function f7(e){return u7(this,arguments,function*(){yield wa(yield*d7(c7(e)))})}var D1=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(s,l){a=e[i](a),o(s,l,a.done,a.value)})}}function o(i,a,s,l){Promise.resolve(l).then(function(c){i({value:c,done:s})},a)}},fi=function(e){return this instanceof fi?(this.v=e,this):new fi(e)},m7=function(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(a){return(r=!r)?{value:fi(e[o](a)),done:!1}:i?i(a):a}:i}},p7=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(f){n[f]&&(o[f]=function(g){return new Promise(function(h,m){i.push([f,g,h,m])>1||s(f,g)})})}function s(f,g){try{l(n[f](g))}catch(h){d(i[0][3],h)}}function l(f){f.value instanceof fi?Promise.resolve(f.value.v).then(c,u):d(i[0][2],f)}function c(f){s("next",f)}function u(f){s("throw",f)}function d(f,g){f(g),i.shift(),i.length&&s(i[0][0],i[0][1])}};function g7(e,t){return a7(e,r=>{switch(r.kind){case Lr.Unary:return h7(t,e,r);case Lr.ServerStreaming:return v7(t,e,r);case Lr.ClientStreaming:return b7(t,e,r);case Lr.BiDiStreaming:return y7(t,e,r);default:return null}})}function h7(e,t,r){return async function(n,o){var i,a;const s=await e.unary(t,r,o?.signal,o?.timeoutMs,o?.headers,n,o?.contextValues);return(i=o?.onHeader)===null||i===void 0||i.call(o,s.header),(a=o?.onTrailer)===null||a===void 0||a.call(o,s.trailer),s.message}}function v7(e,t,r){return function(n,o){return _1(e.stream(t,r,o?.signal,o?.timeoutMs,o?.headers,f7([n]),o?.contextValues),o)}}function b7(e,t,r){return async function(n,o){var i,a,s,l,c,u;const d=await e.stream(t,r,o?.signal,o?.timeoutMs,o?.headers,n,o?.contextValues);(c=o?.onHeader)===null||c===void 0||c.call(o,d.header);let f;try{for(var g=!0,h=D1(d.message),m;m=await h.next(),i=m.done,!i;g=!0)l=m.value,g=!1,f=l}catch(p){a={error:p}}finally{try{!g&&!i&&(s=h.return)&&await s.call(h)}finally{if(a)throw a.error}}if(!f)throw new er("protocol error: missing response message",Xe.Internal);return(u=o?.onTrailer)===null||u===void 0||u.call(o,d.trailer),f}}function y7(e,t,r){return function(n,o){return _1(e.stream(t,r,o?.signal,o?.timeoutMs,o?.headers,n,o?.contextValues),o)}}function _1(e,t){const r=function(){var n,o;return p7(this,arguments,function*(){const i=yield fi(e);(n=t?.onHeader)===null||n===void 0||n.call(t,i.header),yield fi(yield*m7(D1(i.message))),(o=t?.onTrailer)===null||o===void 0||o.call(t,i.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>r.next()})}}function C7(...e){const t=new AbortController,r=e.filter(o=>o!==void 0).concat(t.signal);for(const o of r){if(o.aborted){n.apply(o);break}o.addEventListener("abort",n)}function n(){t.signal.aborted||t.abort(V1(this));for(const o of r)o.removeEventListener("abort",n)}return t}function x7(e){const t=new AbortController,r=()=>{t.abort(new er("the operation timed out",Xe.DeadlineExceeded))};let n;return e!==void 0&&(e<=0?r():n=setTimeout(r,e)),{signal:t.signal,cleanup:()=>clearTimeout(n)}}function V1(e){if(!e.aborted)return;if(e.reason!==void 0)return e.reason;const t=new Error("This operation was aborted");return t.name="AbortError",t}function B1(){return{get(e){return e.id in this?this[e.id]:e.defaultValue},set(e,t){return this[e.id]=t,this},delete(e){return delete this[e.id],this}}}function z1(e,t,r){const n=typeof t=="string"?t:t.typeName,o=typeof r=="string"?r:r.name;return e.toString().replace(/\/?$/,`/${n}/${o}`)}function G1(e,t){return t instanceof mt?t:new e(t)}function w7(e,t){function r(n){return n.done===!0?n:{done:n.done,value:G1(e,n.value)}}return{[Symbol.asyncIterator](){const n=t[Symbol.asyncIterator](),o={next:()=>n.next().then(r)};return n.throw!==void 0&&(o.throw=i=>n.throw(i).then(r)),n.return!==void 0&&(o.return=i=>n.return(i).then(r)),o}}}function H1(e){var t;const r=Object.assign({},e);return(t=r.ignoreUnknownFields)!==null&&t!==void 0||(r.ignoreUnknownFields=!0),r}function W1(e,t,r,n){const o=t?U1(e.I,n):X1(e.I,r);return{parse:(t?U1(e.O,n):X1(e.O,r)).parse,serialize:o.serialize}}function U1(e,t){return{parse(r){try{return e.fromBinary(r,t)}catch(n){const o=n instanceof Error?n.message:String(n);throw new er(`parse binary: ${o}`,Xe.InvalidArgument)}},serialize(r){try{return r.toBinary(t)}catch(n){const o=n instanceof Error?n.message:String(n);throw new er(`serialize binary: ${o}`,Xe.Internal)}}}}function X1(e,t){var r,n;const o=(r=t?.textEncoder)!==null&&r!==void 0?r:new TextEncoder,i=(n=t?.textDecoder)!==null&&n!==void 0?n:new TextDecoder,a=H1(t);return{parse(s){try{const l=i.decode(s);return e.fromJsonString(l,a)}catch(l){throw er.from(l,Xe.InvalidArgument)}},serialize(s){try{const l=s.toJsonString(a);return o.encode(l)}catch(l){throw er.from(l,Xe.Internal)}}}}const S7=/^application\/(connect\+)?(?:(json)(?:; ?charset=utf-?8)?|(proto))$/i,E7="application/proto",I7="application/json",A7="application/connect+proto",N7="application/connect+json";function O7(e){const t=e?.match(S7);if(!t)return;const r=!!t[1],n=!!t[3];return{stream:r,binary:n}}function Y1(e,t,r){if(t&&new Headers(t).forEach((a,s)=>r.metadata.append(s,a)),typeof e!="object"||e==null||Array.isArray(e)||!("code"in e)||typeof e.code!="string")throw r;const n=n7(e.code);if(n===void 0)throw r;const o=e.message;if(o!=null&&typeof o!="string")throw r;const i=new er(o??"",n,t);if("details"in e&&Array.isArray(e.details))for(const a of e.details){if(a===null||typeof a!="object"||Array.isArray(a)||typeof a.type!="string"||typeof a.value!="string"||"debug"in a&&typeof a.debug!="object")throw r;try{i.details.push({type:a.type,value:nc.dec(a.value),debug:a.debug})}catch{throw r}}return i}const J1=2;function T7(e){const t=new er("invalid end stream",Xe.InvalidArgument);let r;try{r=JSON.parse(typeof e=="string"?e:new TextDecoder().decode(e))}catch{throw t}if(typeof r!="object"||r==null||Array.isArray(r))throw t;const n=new Headers;if("metadata"in r){if(typeof r.metadata!="object"||r.metadata==null||Array.isArray(r.metadata))throw t;for(const[i,a]of Object.entries(r.metadata)){if(!Array.isArray(a)||a.some(s=>typeof s!="string"))throw t;for(const s of a)n.append(i,s)}}const o="error"in r?Y1(r.error,n,t):void 0;return{metadata:n,error:o}}const Lf="Content-Type",P7="Content-Length",Z1="Content-Encoding",k7="Accept-Encoding",F7="Connect-Timeout-Ms",q1="Connect-Protocol-Version",$7="User-Agent";function M7(e){switch(e){case 400:return Xe.InvalidArgument;case 401:return Xe.Unauthenticated;case 403:return Xe.PermissionDenied;case 404:return Xe.Unimplemented;case 408:return Xe.DeadlineExceeded;case 409:return Xe.Aborted;case 412:return Xe.FailedPrecondition;case 413:return Xe.ResourceExhausted;case 415:return Xe.Internal;case 429:return Xe.Unavailable;case 431:return Xe.ResourceExhausted;case 502:return Xe.Unavailable;case 503:return Xe.Unavailable;case 504:return Xe.Unavailable;default:return Xe.Unknown}}function Q1(e){const t=new Headers,r=new Headers;return e.forEach((n,o)=>{o.toLowerCase().startsWith("trailer-")?r.set(o.substring(8),n):t.set(o,n)}),[t,r]}const K1="1";function ey(e,t,r,n){const o=new Headers(n??{});return r!==void 0&&o.set(F7,`${r}`),o.set(Lf,e==Lr.Unary?t?E7:I7:t?A7:N7),o.set(q1,K1),o.set($7,"connect-es/1.1.3"),o}function ty(e,t,r){const n=r.get("Content-Type"),o=O7(n);if(t!==200){const i=new er(`HTTP ${t}`,M7(t),r);if(e==Lr.Unary&&o&&!o.binary)return{isUnaryError:!0,unaryError:i};throw i}return{isUnaryError:!1}}const ry="application/";function j7(e,t){return t?nc.enc(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""):encodeURIComponent(new TextDecoder().decode(e))}function R7(e,t,r){let n=`?connect=v${K1}`;const o=e.header.get(Lf);o?.indexOf(ry)===0&&(n+="&encoding="+encodeURIComponent(o.slice(ry.length)));const i=e.header.get(Z1);i!==null&&i!=="identity"&&(n+="&compression="+encodeURIComponent(i),r=!0),r&&(n+="&base64=1"),n+="&message="+j7(t,r);const a=e.url+n,s=new Headers(e.header);return[q1,Lf,P7,Z1,k7].forEach(l=>s.delete(l)),Object.assign(Object.assign({},e),{init:Object.assign(Object.assign({},e.init),{method:"GET"}),url:a,header:s})}function L7(e){const t=oy(e.next,e.interceptors),[r,n,o]=ny(e),i=Object.assign(Object.assign({},e.req),{message:G1(e.req.method.I,e.req.message),signal:r});return t(i).then(a=>(o(),a),n)}function D7(e){const t=oy(e.next,e.interceptors),[r,n,o]=ny(e),i=Object.assign(Object.assign({},e.req),{message:w7(e.req.method.I,e.req.message),signal:r});let a=!1;return r.addEventListener("abort",function(){var s,l;const c=e.req.message[Symbol.asyncIterator]();a||(s=c.throw)===null||s===void 0||s.call(c,this.reason).catch(()=>{}),(l=c.return)===null||l===void 0||l.call(c).catch(()=>{})}),t(i).then(s=>Object.assign(Object.assign({},s),{message:{[Symbol.asyncIterator](){const l=s.message[Symbol.asyncIterator]();return{next(){return l.next().then(c=>(c.done==!0&&(a=!0,o()),c),n)}}}}}),n)}function ny(e){const{signal:t,cleanup:r}=x7(e.timeoutMs),n=C7(e.signal,t);return[n.signal,function(i){const a=er.from(t.aborted?V1(t):i);return n.abort(a),r(),Promise.reject(a)},function(){r(),n.abort()}]}function oy(e,t){var r;return(r=t?.concat().reverse().reduce((n,o)=>o(n),e))!==null&&r!==void 0?r:e}function _7(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}var Sa=function(e){return this instanceof Sa?(this.v=e,this):new Sa(e)},V7=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(f){n[f]&&(o[f]=function(g){return new Promise(function(h,m){i.push([f,g,h,m])>1||s(f,g)})})}function s(f,g){try{l(n[f](g))}catch(h){d(i[0][3],h)}}function l(f){f.value instanceof Sa?Promise.resolve(f.value.v).then(c,u):d(i[0][2],f)}function c(f){s("next",f)}function u(f){s("throw",f)}function d(f,g){f(g),i.shift(),i.length&&s(i[0][0],i[0][1])}};function B7(e){var t;_7();const r=(t=e.useBinaryFormat)!==null&&t!==void 0?t:!1;return{async unary(n,o,i,a,s,l,c){var u;const{serialize:d,parse:f}=W1(o,r,e.jsonOptions,e.binaryOptions);return a=a===void 0?e.defaultTimeoutMs:a<=0?void 0:a,await L7({interceptors:e.interceptors,signal:i,timeoutMs:a,req:{stream:!1,service:n,method:o,url:z1(e.baseUrl,n,o),init:{method:"POST",credentials:(u=e.credentials)!==null&&u!==void 0?u:"same-origin",redirect:"error",mode:"cors"},header:ey(o.kind,r,a,s),contextValues:c??B1(),message:l},next:async g=>{var h;const m=e.useHttpGet===!0&&o.idempotency===jf.NoSideEffects;let p=null;m?g=R7(g,d(g.message),r):p=d(g.message);const y=await((h=e.fetch)!==null&&h!==void 0?h:globalThis.fetch)(g.url,Object.assign(Object.assign({},g.init),{headers:g.header,signal:g.signal,body:p})),{isUnaryError:w,unaryError:S}=ty(o.kind,y.status,y.headers);if(w)throw Y1(await y.json(),i7(...Q1(y.headers)),S);const[v,I]=Q1(y.headers);return{stream:!1,service:n,method:o,header:v,message:r?f(new Uint8Array(await y.arrayBuffer())):o.O.fromJson(await y.json(),H1(e.jsonOptions)),trailer:I}}})},async stream(n,o,i,a,s,l,c){var u;const{serialize:d,parse:f}=W1(o,r,e.jsonOptions,e.binaryOptions);function g(m,p){return V7(this,arguments,function*(){const y=s7(m).getReader();let w=!1;for(;;){const S=yield Sa(y.read());if(S.done)break;const{flags:v,data:I}=S.value;if((v&J1)===J1){w=!0;const N=T7(I);if(N.error)throw N.error;N.metadata.forEach((O,T)=>p.set(T,O));continue}yield yield Sa(f(I))}if(!w)throw"missing EndStreamResponse"})}async function h(m){if(o.kind!=Lr.ServerStreaming)throw"The fetch API does not support streaming request bodies";const p=await m[Symbol.asyncIterator]().next();if(p.done==!0)throw"missing request message";return l7(0,d(p.value))}return a=a===void 0?e.defaultTimeoutMs:a<=0?void 0:a,await D7({interceptors:e.interceptors,timeoutMs:a,signal:i,req:{stream:!0,service:n,method:o,url:z1(e.baseUrl,n,o),init:{method:"POST",credentials:(u=e.credentials)!==null&&u!==void 0?u:"same-origin",redirect:"error",mode:"cors"},header:ey(o.kind,r,a,s),contextValues:c??B1(),message:l},next:async m=>{var p;const y=await((p=e.fetch)!==null&&p!==void 0?p:globalThis.fetch)(m.url,Object.assign(Object.assign({},m.init),{headers:m.header,signal:m.signal,body:await h(m.message)}));if(ty(o.kind,y.status,y.headers),y.body===null)throw"missing response body";const w=new Headers;return Object.assign(Object.assign({},m),{header:y.headers,trailer:w,message:g(y.body,w)})}})}}}var xo;(function(e){e.INACTIVE="inactive",e.PROCESSING="processing",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error"})(xo||(xo={}));function z7(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ay(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iy(Object(r),!0).forEach(function(n){z7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G7(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function H7(e,t){if(e==null)return{};var r=G7(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function W7(e,t){return U7(e)||X7(e,t)||Y7(e,t)||J7()}function U7(e){if(Array.isArray(e))return e}function X7(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,i=void 0;try{for(var a=e[Symbol.iterator](),s;!(n=(s=a.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){o=!0,i=l}finally{try{!n&&a.return!=null&&a.return()}finally{if(o)throw i}}return r}}function Y7(e,t){if(e){if(typeof e=="string")return sy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sy(e,t)}}function sy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function J7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
322
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z7(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ly(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function cy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ly(Object(r),!0).forEach(function(n){Z7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ly(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q7(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(o,i){return i(o)},n)}}function Ea(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(r,[].concat(o,s))}}}function ac(e){return{}.toString.call(e).includes("Object")}function Q7(e){return!Object.keys(e).length}function Ia(e){return typeof e=="function"}function K7(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ek(e,t){return ac(t)||eo("changeType"),Object.keys(t).some(function(r){return!K7(e,r)})&&eo("changeField"),t}function tk(e){Ia(e)||eo("selectorType")}function rk(e){Ia(e)||ac(e)||eo("handlerType"),ac(e)&&Object.values(e).some(function(t){return!Ia(t)})&&eo("handlersType")}function nk(e){e||eo("initialIsRequired"),ac(e)||eo("initialType"),Q7(e)&&eo("initialContent")}function ok(e,t){throw new Error(e[t]||e.default)}var ik={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},eo=Ea(ok)(ik),sc={changes:ek,selector:tk,handler:rk,initial:nk};function ak(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};sc.initial(e),sc.handler(t);var r={current:e},n=Ea(ck)(r,t),o=Ea(lk)(r),i=Ea(sc.changes)(e),a=Ea(sk)(r);function s(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(u){return u};return sc.selector(c),c(r.current)}function l(c){q7(n,o,i,a)(c)}return[s,l]}function sk(e,t){return Ia(t)?t(e.current):t}function lk(e,t){return e.current=cy(cy({},e.current),t),t}function ck(e,t,r){return Ia(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var uk={create:ak},dk={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function fk(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(r,[].concat(o,s))}}}function mk(e){return{}.toString.call(e).includes("Object")}function pk(e){return e||dy("configIsRequired"),mk(e)||dy("configType"),e.urls?(gk(),{paths:{vs:e.urls.monacoBase}}):e}function gk(){console.warn(uy.deprecation)}function hk(e,t){throw new Error(e[t]||e.default)}var uy={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
323
323
|
You are using deprecated way of configuration.
|
|
324
324
|
|
|
325
325
|
Instead of using
|
|
@@ -328,7 +328,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
328
328
|
monaco.config({ paths: { vs: '...' } })
|
|
329
329
|
|
|
330
330
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
331
|
-
`},dy=
|
|
331
|
+
`},dy=fk(hk)(uy),vk={config:pk},bk=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(i,a){return a(i)},o)}};function fy(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],fy(e[r],t[r]))}),ay(ay({},e),t)}var yk={type:"cancelation",msg:"operation is manually canceled"};function Df(e){var t=!1,r=new Promise(function(n,o){e.then(function(i){return t?o(yk):n(i)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var Ck=uk.create({config:dk,isInitialized:!1,resolve:null,reject:null,monaco:null}),my=W7(Ck,2),Aa=my[0],lc=my[1];function xk(e){var t=vk.config(e),r=t.monaco,n=H7(t,["monaco"]);lc(function(o){return{config:fy(o.config,n),monaco:r}})}function wk(){var e=Aa(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(lc({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Df(_f);if(window.monaco&&window.monaco.editor)return py(window.monaco),e.resolve(window.monaco),Df(_f);bk(Sk,Ik)(Ak)}return Df(_f)}function Sk(e){return document.body.appendChild(e)}function Ek(e){var t=document.createElement("script");return e&&(t.src=e),t}function Ik(e){var t=Aa(function(n){var o=n.config,i=n.reject;return{config:o,reject:i}}),r=Ek("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function Ak(){var e=Aa(function(r){var n=r.config,o=r.resolve,i=r.reject;return{config:n,resolve:o,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){py(r),e.resolve(r)},function(r){e.reject(r)})}function py(e){Aa().monaco||lc({monaco:e})}function Nk(){return Aa(function(e){var t=e.monaco;return t})}var _f=new Promise(function(e,t){return lc({resolve:e,reject:t})}),gy={config:xk,init:wk,__getMonacoInstance:Nk},Ok={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Vf=Ok,Tk={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Pk=Tk;function kk({children:e}){return E.createElement("div",{style:Pk.container},e)}var Fk=kk,$k=Fk;function Mk({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:i,wrapperProps:a}){return E.createElement("section",{style:{...Vf.wrapper,width:e,height:t},...a},!r&&E.createElement($k,null,n),E.createElement("div",{ref:o,style:{...Vf.fullWidth,...!r&&Vf.hide},className:i}))}var jk=Mk,hy=E.memo(jk);function Rk(e){E.useEffect(e,[])}var vy=Rk;function Lk(e,t,r=!0){let n=E.useRef(!0);E.useEffect(n.current||!r?()=>{n.current=!1}:e,t)}var Ar=Lk;function Na(){}function mi(e,t,r,n){return Dk(e,n)||_k(e,t,r,n)}function Dk(e,t){return e.editor.getModel(by(e,t))}function _k(e,t,r,n){return e.editor.createModel(t,r,n?by(e,n):void 0)}function by(e,t){return e.Uri.parse(t)}function Vk({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:a,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:l=!1,theme:c="light",loading:u="Loading...",options:d={},height:f="100%",width:g="100%",className:h,wrapperProps:m={},beforeMount:p=Na,onMount:b=Na}){let[y,w]=E.useState(!1),[S,v]=E.useState(!0),I=E.useRef(null),N=E.useRef(null),O=E.useRef(null),T=E.useRef(b),P=E.useRef(p),M=E.useRef(!1);vy(()=>{let F=gy.init();return F.then(j=>(N.current=j)&&v(!1)).catch(j=>j?.type!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>I.current?k():F.cancel()}),Ar(()=>{if(I.current&&N.current){let F=I.current.getOriginalEditor(),j=mi(N.current,e||"",n||r||"text",i||"");j!==F.getModel()&&F.setModel(j)}},[i],y),Ar(()=>{if(I.current&&N.current){let F=I.current.getModifiedEditor(),j=mi(N.current,t||"",o||r||"text",a||"");j!==F.getModel()&&F.setModel(j)}},[a],y),Ar(()=>{let F=I.current.getModifiedEditor();F.getOption(N.current.editor.EditorOption.readOnly)?F.setValue(t||""):t!==F.getValue()&&(F.executeEdits("",[{range:F.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),F.pushUndoStop())},[t],y),Ar(()=>{I.current?.getModel()?.original.setValue(e||"")},[e],y),Ar(()=>{let{original:F,modified:j}=I.current.getModel();N.current.editor.setModelLanguage(F,n||r||"text"),N.current.editor.setModelLanguage(j,o||r||"text")},[r,n,o],y),Ar(()=>{N.current?.editor.setTheme(c)},[c],y),Ar(()=>{I.current?.updateOptions(d)},[d],y);let x=E.useCallback(()=>{if(!N.current)return;P.current(N.current);let F=mi(N.current,e||"",n||r||"text",i||""),j=mi(N.current,t||"",o||r||"text",a||"");I.current?.setModel({original:F,modified:j})},[r,t,o,e,n,i,a]),$=E.useCallback(()=>{!M.current&&O.current&&(I.current=N.current.editor.createDiffEditor(O.current,{automaticLayout:!0,...d}),x(),N.current?.editor.setTheme(c),w(!0),M.current=!0)},[d,c,x]);E.useEffect(()=>{y&&T.current(I.current,N.current)},[y]),E.useEffect(()=>{!S&&!y&&$()},[S,y,$]);function k(){let F=I.current?.getModel();s||F?.original?.dispose(),l||F?.modified?.dispose(),I.current?.dispose()}return E.createElement(hy,{width:g,height:f,isEditorReady:y,loading:u,_ref:O,className:h,wrapperProps:m})}var Bk=Vk;E.memo(Bk);function zk(e){let t=E.useRef();return E.useEffect(()=>{t.current=e},[e]),t.current}var Gk=zk,cc=new Map;function Hk({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:i,theme:a="light",line:s,loading:l="Loading...",options:c={},overrideServices:u={},saveViewState:d=!0,keepCurrentModel:f=!1,width:g="100%",height:h="100%",className:m,wrapperProps:p={},beforeMount:b=Na,onMount:y=Na,onChange:w,onValidate:S=Na}){let[v,I]=E.useState(!1),[N,O]=E.useState(!0),T=E.useRef(null),P=E.useRef(null),M=E.useRef(null),x=E.useRef(y),$=E.useRef(b),k=E.useRef(),F=E.useRef(n),j=Gk(i),G=E.useRef(!1),W=E.useRef(!1);vy(()=>{let D=gy.init();return D.then(B=>(T.current=B)&&O(!1)).catch(B=>B?.type!=="cancelation"&&console.error("Monaco initialization: error:",B)),()=>P.current?_():D.cancel()}),Ar(()=>{let D=mi(T.current,e||n||"",t||o||"",i||r||"");D!==P.current?.getModel()&&(d&&cc.set(j,P.current?.saveViewState()),P.current?.setModel(D),d&&P.current?.restoreViewState(cc.get(i)))},[i],v),Ar(()=>{P.current?.updateOptions(c)},[c],v),Ar(()=>{!P.current||n===void 0||(P.current.getOption(T.current.editor.EditorOption.readOnly)?P.current.setValue(n):n!==P.current.getValue()&&(W.current=!0,P.current.executeEdits("",[{range:P.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),P.current.pushUndoStop(),W.current=!1))},[n],v),Ar(()=>{let D=P.current?.getModel();D&&o&&T.current?.editor.setModelLanguage(D,o)},[o],v),Ar(()=>{s!==void 0&&P.current?.revealLine(s)},[s],v),Ar(()=>{T.current?.editor.setTheme(a)},[a],v);let V=E.useCallback(()=>{if(!(!M.current||!T.current)&&!G.current){$.current(T.current);let D=i||r,B=mi(T.current,n||e||"",t||o||"",D||"");P.current=T.current?.editor.create(M.current,{model:B,automaticLayout:!0,...c},u),d&&P.current.restoreViewState(cc.get(D)),T.current.editor.setTheme(a),s!==void 0&&P.current.revealLine(s),I(!0),G.current=!0}},[e,t,r,n,o,i,c,u,d,a,s]);E.useEffect(()=>{v&&x.current(P.current,T.current)},[v]),E.useEffect(()=>{!N&&!v&&V()},[N,v,V]),F.current=n,E.useEffect(()=>{v&&w&&(k.current?.dispose(),k.current=P.current?.onDidChangeModelContent(D=>{W.current||w(P.current.getValue(),D)}))},[v,w]),E.useEffect(()=>{if(v){let D=T.current.editor.onDidChangeMarkers(B=>{let L=P.current.getModel()?.uri;if(L&&B.find(z=>z.path===L.path)){let z=T.current.editor.getModelMarkers({resource:L});S?.(z)}});return()=>{D?.dispose()}}return()=>{}},[v,S]);function _(){k.current?.dispose(),f?d&&cc.set(i,P.current.saveViewState()):P.current.getModel()?.dispose(),P.current.dispose()}return E.createElement(hy,{width:g,height:h,isEditorReady:v,loading:l,_ref:M,className:m,wrapperProps:p})}var Wk=Hk,Uk=E.memo(Wk),Xk=Uk;const Yk=e=>{switch(e){case"typescript":case"tsx":case"javascript":case"java":return`// Welcome to Codeium Editor!
|
|
332
332
|
// Press Enter and use Tab to accept AI suggestions. Here's an example:
|
|
333
333
|
|
|
334
334
|
// fib(n) function to calculate the n-th fibonacci number`;case"python":return`# Welcome to Codeium Editor!
|
|
@@ -337,9 +337,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
337
337
|
# fib(n) function to calculate the n-th fibonacci number`;case"css":return`/* Welcome to Codeium Editor!
|
|
338
338
|
Press Enter and use Tab to accept AI suggestions. Here's an example:*/
|
|
339
339
|
|
|
340
|
-
/* .action-button class with a hover effect. */`;default:return""}};var cc;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.JUPYTER_FORMAT=77]="JUPYTER_FORMAT"})(cc||(cc={})),oe.util.setEnumType(cc,"exa.codeium_common_pb.ExperimentKey",[{no:0,name:"UNSPECIFIED"},{no:77,name:"JUPYTER_FORMAT"}]);var Na;(function(e){e[e.CODEIUM=0]="CODEIUM"})(Na||(Na={})),oe.util.setEnumType(Na,"exa.codeium_common_pb.AuthSource",[{no:0,name:"AUTH_SOURCE_CODEIUM"}]);var Oa;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ENABLE_CODEIUM=1]="ENABLE_CODEIUM",e[e.DISABLE_CODEIUM=2]="DISABLE_CODEIUM",e[e.SHOW_PREVIOUS_COMPLETION=3]="SHOW_PREVIOUS_COMPLETION",e[e.SHOW_NEXT_COMPLETION=4]="SHOW_NEXT_COMPLETION"})(Oa||(Oa={})),oe.util.setEnumType(Oa,"exa.codeium_common_pb.EventType",[{no:0,name:"EVENT_TYPE_UNSPECIFIED"},{no:1,name:"EVENT_TYPE_ENABLE_CODEIUM"},{no:2,name:"EVENT_TYPE_DISABLE_CODEIUM"},{no:3,name:"EVENT_TYPE_SHOW_PREVIOUS_COMPLETION"},{no:4,name:"EVENT_TYPE_SHOW_NEXT_COMPLETION"}]);var Ta;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TYPING_AS_SUGGESTED=1]="TYPING_AS_SUGGESTED",e[e.CACHE=2]="CACHE",e[e.NETWORK=3]="NETWORK"})(Ta||(Ta={})),oe.util.setEnumType(Ta,"exa.codeium_common_pb.CompletionSource",[{no:0,name:"COMPLETION_SOURCE_UNSPECIFIED"},{no:1,name:"COMPLETION_SOURCE_TYPING_AS_SUGGESTED"},{no:2,name:"COMPLETION_SOURCE_CACHE"},{no:3,name:"COMPLETION_SOURCE_NETWORK"}]);var ce;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.C=1]="C",e[e.CLOJURE=2]="CLOJURE",e[e.COFFEESCRIPT=3]="COFFEESCRIPT",e[e.CPP=4]="CPP",e[e.CSHARP=5]="CSHARP",e[e.CSS=6]="CSS",e[e.CUDACPP=7]="CUDACPP",e[e.DOCKERFILE=8]="DOCKERFILE",e[e.GO=9]="GO",e[e.GROOVY=10]="GROOVY",e[e.HANDLEBARS=11]="HANDLEBARS",e[e.HASKELL=12]="HASKELL",e[e.HCL=13]="HCL",e[e.HTML=14]="HTML",e[e.INI=15]="INI",e[e.JAVA=16]="JAVA",e[e.JAVASCRIPT=17]="JAVASCRIPT",e[e.JSON=18]="JSON",e[e.JULIA=19]="JULIA",e[e.KOTLIN=20]="KOTLIN",e[e.LATEX=21]="LATEX",e[e.LESS=22]="LESS",e[e.LUA=23]="LUA",e[e.MAKEFILE=24]="MAKEFILE",e[e.MARKDOWN=25]="MARKDOWN",e[e.OBJECTIVEC=26]="OBJECTIVEC",e[e.OBJECTIVECPP=27]="OBJECTIVECPP",e[e.PERL=28]="PERL",e[e.PHP=29]="PHP",e[e.PLAINTEXT=30]="PLAINTEXT",e[e.PROTOBUF=31]="PROTOBUF",e[e.PBTXT=32]="PBTXT",e[e.PYTHON=33]="PYTHON",e[e.R=34]="R",e[e.RUBY=35]="RUBY",e[e.RUST=36]="RUST",e[e.SASS=37]="SASS",e[e.SCALA=38]="SCALA",e[e.SCSS=39]="SCSS",e[e.SHELL=40]="SHELL",e[e.SQL=41]="SQL",e[e.STARLARK=42]="STARLARK",e[e.SWIFT=43]="SWIFT",e[e.TSX=44]="TSX",e[e.TYPESCRIPT=45]="TYPESCRIPT",e[e.VISUALBASIC=46]="VISUALBASIC",e[e.VUE=47]="VUE",e[e.XML=48]="XML",e[e.XSL=49]="XSL",e[e.YAML=50]="YAML",e[e.SVELTE=51]="SVELTE",e[e.TOML=52]="TOML",e[e.DART=53]="DART",e[e.RST=54]="RST",e[e.OCAML=55]="OCAML",e[e.CMAKE=56]="CMAKE",e[e.PASCAL=57]="PASCAL",e[e.ELIXIR=58]="ELIXIR",e[e.FSHARP=59]="FSHARP",e[e.LISP=60]="LISP",e[e.MATLAB=61]="MATLAB",e[e.POWERSHELL=62]="POWERSHELL",e[e.SOLIDITY=63]="SOLIDITY",e[e.ADA=64]="ADA",e[e.OCAML_INTERFACE=65]="OCAML_INTERFACE"})(ce||(ce={})),oe.util.setEnumType(ce,"exa.codeium_common_pb.Language",[{no:0,name:"LANGUAGE_UNSPECIFIED"},{no:1,name:"LANGUAGE_C"},{no:2,name:"LANGUAGE_CLOJURE"},{no:3,name:"LANGUAGE_COFFEESCRIPT"},{no:4,name:"LANGUAGE_CPP"},{no:5,name:"LANGUAGE_CSHARP"},{no:6,name:"LANGUAGE_CSS"},{no:7,name:"LANGUAGE_CUDACPP"},{no:8,name:"LANGUAGE_DOCKERFILE"},{no:9,name:"LANGUAGE_GO"},{no:10,name:"LANGUAGE_GROOVY"},{no:11,name:"LANGUAGE_HANDLEBARS"},{no:12,name:"LANGUAGE_HASKELL"},{no:13,name:"LANGUAGE_HCL"},{no:14,name:"LANGUAGE_HTML"},{no:15,name:"LANGUAGE_INI"},{no:16,name:"LANGUAGE_JAVA"},{no:17,name:"LANGUAGE_JAVASCRIPT"},{no:18,name:"LANGUAGE_JSON"},{no:19,name:"LANGUAGE_JULIA"},{no:20,name:"LANGUAGE_KOTLIN"},{no:21,name:"LANGUAGE_LATEX"},{no:22,name:"LANGUAGE_LESS"},{no:23,name:"LANGUAGE_LUA"},{no:24,name:"LANGUAGE_MAKEFILE"},{no:25,name:"LANGUAGE_MARKDOWN"},{no:26,name:"LANGUAGE_OBJECTIVEC"},{no:27,name:"LANGUAGE_OBJECTIVECPP"},{no:28,name:"LANGUAGE_PERL"},{no:29,name:"LANGUAGE_PHP"},{no:30,name:"LANGUAGE_PLAINTEXT"},{no:31,name:"LANGUAGE_PROTOBUF"},{no:32,name:"LANGUAGE_PBTXT"},{no:33,name:"LANGUAGE_PYTHON"},{no:34,name:"LANGUAGE_R"},{no:35,name:"LANGUAGE_RUBY"},{no:36,name:"LANGUAGE_RUST"},{no:37,name:"LANGUAGE_SASS"},{no:38,name:"LANGUAGE_SCALA"},{no:39,name:"LANGUAGE_SCSS"},{no:40,name:"LANGUAGE_SHELL"},{no:41,name:"LANGUAGE_SQL"},{no:42,name:"LANGUAGE_STARLARK"},{no:43,name:"LANGUAGE_SWIFT"},{no:44,name:"LANGUAGE_TSX"},{no:45,name:"LANGUAGE_TYPESCRIPT"},{no:46,name:"LANGUAGE_VISUALBASIC"},{no:47,name:"LANGUAGE_VUE"},{no:48,name:"LANGUAGE_XML"},{no:49,name:"LANGUAGE_XSL"},{no:50,name:"LANGUAGE_YAML"},{no:51,name:"LANGUAGE_SVELTE"},{no:52,name:"LANGUAGE_TOML"},{no:53,name:"LANGUAGE_DART"},{no:54,name:"LANGUAGE_RST"},{no:55,name:"LANGUAGE_OCAML"},{no:56,name:"LANGUAGE_CMAKE"},{no:57,name:"LANGUAGE_PASCAL"},{no:58,name:"LANGUAGE_ELIXIR"},{no:59,name:"LANGUAGE_FSHARP"},{no:60,name:"LANGUAGE_LISP"},{no:61,name:"LANGUAGE_MATLAB"},{no:62,name:"LANGUAGE_POWERSHELL"},{no:63,name:"LANGUAGE_SOLIDITY"},{no:64,name:"LANGUAGE_ADA"},{no:65,name:"LANGUAGE_OCAML_INTERFACE"}]);class Nn extends mt{constructor(t){super(),this.completionId="",this.text="",this.prefix="",this.stop="",this.score=0,this.tokens=[],this.decodedTokens=[],this.probabilities=[],this.adjustedProbabilities=[],this.generatedLength=dt.zero,oe.util.initPartial(t,this)}static fromBinary(t,r){return new Nn().fromBinary(t,r)}static fromJson(t,r){return new Nn().fromJson(t,r)}static fromJsonString(t,r){return new Nn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Nn,t,r)}}Nn.runtime=oe,Nn.typeName="exa.codeium_common_pb.Completion",Nn.fields=oe.util.newFieldList(()=>[{no:1,name:"completion_id",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9},{no:3,name:"prefix",kind:"scalar",T:9},{no:4,name:"stop",kind:"scalar",T:9},{no:5,name:"score",kind:"scalar",T:1},{no:6,name:"tokens",kind:"scalar",T:4,repeated:!0},{no:7,name:"decoded_tokens",kind:"scalar",T:9,repeated:!0},{no:8,name:"probabilities",kind:"scalar",T:1,repeated:!0},{no:9,name:"adjusted_probabilities",kind:"scalar",T:1,repeated:!0},{no:10,name:"generated_length",kind:"scalar",T:4}]);class Zr extends mt{constructor(t){super(),this.ideName="",this.ideVersion="",this.extensionName="",this.extensionVersion="",this.apiKey="",this.locale="",this.sessionId="",this.requestId=dt.zero,this.userAgent="",this.url="",this.authSource=Na.CODEIUM,oe.util.initPartial(t,this)}static fromBinary(t,r){return new Zr().fromBinary(t,r)}static fromJson(t,r){return new Zr().fromJson(t,r)}static fromJsonString(t,r){return new Zr().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Zr,t,r)}}Zr.runtime=oe,Zr.typeName="exa.codeium_common_pb.Metadata",Zr.fields=oe.util.newFieldList(()=>[{no:1,name:"ide_name",kind:"scalar",T:9},{no:7,name:"ide_version",kind:"scalar",T:9},{no:12,name:"extension_name",kind:"scalar",T:9},{no:2,name:"extension_version",kind:"scalar",T:9},{no:3,name:"api_key",kind:"scalar",T:9},{no:4,name:"locale",kind:"scalar",T:9},{no:10,name:"session_id",kind:"scalar",T:9},{no:9,name:"request_id",kind:"scalar",T:4},{no:13,name:"user_agent",kind:"scalar",T:9},{no:14,name:"url",kind:"scalar",T:9},{no:15,name:"auth_source",kind:"enum",T:oe.getEnumType(Na)}]);class On extends mt{constructor(t){super(),this.tabSize=dt.zero,this.insertSpaces=!1,oe.util.initPartial(t,this)}static fromBinary(t,r){return new On().fromBinary(t,r)}static fromJson(t,r){return new On().fromJson(t,r)}static fromJsonString(t,r){return new On().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(On,t,r)}}On.runtime=oe,On.typeName="exa.codeium_common_pb.EditorOptions",On.fields=oe.util.newFieldList(()=>[{no:1,name:"tab_size",kind:"scalar",T:4},{no:2,name:"insert_spaces",kind:"scalar",T:8}]);class to extends mt{constructor(t){super(),this.eventType=Oa.UNSPECIFIED,this.eventJson="",this.timestampUnixMs=dt.zero,oe.util.initPartial(t,this)}static fromBinary(t,r){return new to().fromBinary(t,r)}static fromJson(t,r){return new to().fromJson(t,r)}static fromJsonString(t,r){return new to().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(to,t,r)}}to.runtime=oe,to.typeName="exa.codeium_common_pb.Event",to.fields=oe.util.newFieldList(()=>[{no:1,name:"event_type",kind:"enum",T:oe.getEnumType(Oa)},{no:2,name:"event_json",kind:"scalar",T:9},{no:3,name:"timestamp_unix_ms",kind:"scalar",T:3}]);var Pa;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.INACTIVE=1]="INACTIVE",e[e.PROCESSING=2]="PROCESSING",e[e.SUCCESS=3]="SUCCESS",e[e.WARNING=4]="WARNING",e[e.ERROR=5]="ERROR"})(Pa||(Pa={})),oe.util.setEnumType(Pa,"exa.language_server_pb.CodeiumState",[{no:0,name:"CODEIUM_STATE_UNSPECIFIED"},{no:1,name:"CODEIUM_STATE_INACTIVE"},{no:2,name:"CODEIUM_STATE_PROCESSING"},{no:3,name:"CODEIUM_STATE_SUCCESS"},{no:4,name:"CODEIUM_STATE_WARNING"},{no:5,name:"CODEIUM_STATE_ERROR"}]);var Bf;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SINGLE=1]="SINGLE",e[e.MULTI=2]="MULTI"})(Bf||(Bf={})),oe.util.setEnumType(Bf,"exa.language_server_pb.LineType",[{no:0,name:"LINE_TYPE_UNSPECIFIED"},{no:1,name:"LINE_TYPE_SINGLE"},{no:2,name:"LINE_TYPE_MULTI"}]);var ka;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.INLINE=1]="INLINE",e[e.BLOCK=2]="BLOCK",e[e.INLINE_MASK=3]="INLINE_MASK"})(ka||(ka={})),oe.util.setEnumType(ka,"exa.language_server_pb.CompletionPartType",[{no:0,name:"COMPLETION_PART_TYPE_UNSPECIFIED"},{no:1,name:"COMPLETION_PART_TYPE_INLINE"},{no:2,name:"COMPLETION_PART_TYPE_BLOCK"},{no:3,name:"COMPLETION_PART_TYPE_INLINE_MASK"}]);class fn extends mt{constructor(t){super(),this.threshold=0,oe.util.initPartial(t,this)}static fromBinary(t,r){return new fn().fromBinary(t,r)}static fromJson(t,r){return new fn().fromJson(t,r)}static fromJsonString(t,r){return new fn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(fn,t,r)}}fn.runtime=oe,fn.typeName="exa.language_server_pb.MultilineConfig",fn.fields=oe.util.newFieldList(()=>[{no:1,name:"threshold",kind:"scalar",T:2}]);class Tn extends mt{constructor(t){super(),this.otherDocuments=[],this.modelName="",oe.util.initPartial(t,this)}static fromBinary(t,r){return new Tn().fromBinary(t,r)}static fromJson(t,r){return new Tn().fromJson(t,r)}static fromJsonString(t,r){return new Tn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Tn,t,r)}}Tn.runtime=oe,Tn.typeName="exa.language_server_pb.GetCompletionsRequest",Tn.fields=oe.util.newFieldList(()=>[{no:1,name:"metadata",kind:"message",T:Zr},{no:2,name:"document",kind:"message",T:pi},{no:3,name:"editor_options",kind:"message",T:On},{no:5,name:"other_documents",kind:"message",T:pi,repeated:!0},{no:7,name:"experiment_config",kind:"message",T:jn},{no:10,name:"model_name",kind:"scalar",T:9},{no:13,name:"multiline_config",kind:"message",T:fn}]);class Pn extends mt{constructor(t){super(),this.completionItems=[],oe.util.initPartial(t,this)}static fromBinary(t,r){return new Pn().fromBinary(t,r)}static fromJson(t,r){return new Pn().fromJson(t,r)}static fromJsonString(t,r){return new Pn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Pn,t,r)}}Pn.runtime=oe,Pn.typeName="exa.language_server_pb.GetCompletionsResponse",Pn.fields=oe.util.newFieldList(()=>[{no:1,name:"state",kind:"message",T:Rn},{no:2,name:"completion_items",kind:"message",T:_n,repeated:!0}]);class kn extends mt{constructor(t){super(),this.completionId="",oe.util.initPartial(t,this)}static fromBinary(t,r){return new kn().fromBinary(t,r)}static fromJson(t,r){return new kn().fromJson(t,r)}static fromJsonString(t,r){return new kn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(kn,t,r)}}kn.runtime=oe,kn.typeName="exa.language_server_pb.AcceptCompletionRequest",kn.fields=oe.util.newFieldList(()=>[{no:1,name:"metadata",kind:"message",T:Zr},{no:2,name:"completion_id",kind:"scalar",T:9}]);class Fn extends mt{constructor(t){super(),oe.util.initPartial(t,this)}static fromBinary(t,r){return new Fn().fromBinary(t,r)}static fromJson(t,r){return new Fn().fromJson(t,r)}static fromJsonString(t,r){return new Fn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Fn,t,r)}}Fn.runtime=oe,Fn.typeName="exa.language_server_pb.AcceptCompletionResponse",Fn.fields=oe.util.newFieldList(()=>[]);class $n extends mt{constructor(t){super(),oe.util.initPartial(t,this)}static fromBinary(t,r){return new $n().fromBinary(t,r)}static fromJson(t,r){return new $n().fromJson(t,r)}static fromJsonString(t,r){return new $n().fromJsonString(t,r)}static equals(t,r){return oe.util.equals($n,t,r)}}$n.runtime=oe,$n.typeName="exa.language_server_pb.GetAuthTokenRequest",$n.fields=oe.util.newFieldList(()=>[]);class Mn extends mt{constructor(t){super(),this.authToken="",this.uuid="",oe.util.initPartial(t,this)}static fromBinary(t,r){return new Mn().fromBinary(t,r)}static fromJson(t,r){return new Mn().fromJson(t,r)}static fromJsonString(t,r){return new Mn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Mn,t,r)}}Mn.runtime=oe,Mn.typeName="exa.language_server_pb.GetAuthTokenResponse",Mn.fields=oe.util.newFieldList(()=>[{no:1,name:"auth_token",kind:"scalar",T:9},{no:2,name:"uuid",kind:"scalar",T:9}]);class qr extends mt{constructor(t){super(),this.row=dt.zero,this.col=dt.zero,oe.util.initPartial(t,this)}static fromBinary(t,r){return new qr().fromBinary(t,r)}static fromJson(t,r){return new qr().fromJson(t,r)}static fromJsonString(t,r){return new qr().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(qr,t,r)}}qr.runtime=oe,qr.typeName="exa.language_server_pb.DocumentPosition",qr.fields=oe.util.newFieldList(()=>[{no:1,name:"row",kind:"scalar",T:4},{no:2,name:"col",kind:"scalar",T:4}]);let pi=class Wa extends mt{constructor(t){super(),this.absolutePath="",this.relativePath="",this.text="",this.editorLanguage="",this.language=ce.UNSPECIFIED,this.cursorOffset=dt.zero,this.lineEnding="",oe.util.initPartial(t,this)}static fromBinary(t,r){return new Wa().fromBinary(t,r)}static fromJson(t,r){return new Wa().fromJson(t,r)}static fromJsonString(t,r){return new Wa().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Wa,t,r)}};pi.runtime=oe,pi.typeName="exa.language_server_pb.Document",pi.fields=oe.util.newFieldList(()=>[{no:1,name:"absolute_path",kind:"scalar",T:9},{no:2,name:"relative_path",kind:"scalar",T:9},{no:3,name:"text",kind:"scalar",T:9},{no:4,name:"editor_language",kind:"scalar",T:9},{no:5,name:"language",kind:"enum",T:oe.getEnumType(ce)},{no:6,name:"cursor_offset",kind:"scalar",T:4},{no:8,name:"cursor_position",kind:"message",T:qr},{no:7,name:"line_ending",kind:"scalar",T:9}]);class jn extends mt{constructor(t){super(),this.forceEnableExperiments=[],oe.util.initPartial(t,this)}static fromBinary(t,r){return new jn().fromBinary(t,r)}static fromJson(t,r){return new jn().fromJson(t,r)}static fromJsonString(t,r){return new jn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(jn,t,r)}}jn.runtime=oe,jn.typeName="exa.language_server_pb.ExperimentConfig",jn.fields=oe.util.newFieldList(()=>[{no:1,name:"force_enable_experiments",kind:"enum",T:oe.getEnumType(cc),repeated:!0}]);class Rn extends mt{constructor(t){super(),this.state=Pa.UNSPECIFIED,this.message="",oe.util.initPartial(t,this)}static fromBinary(t,r){return new Rn().fromBinary(t,r)}static fromJson(t,r){return new Rn().fromJson(t,r)}static fromJsonString(t,r){return new Rn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Rn,t,r)}}Rn.runtime=oe,Rn.typeName="exa.language_server_pb.State",Rn.fields=oe.util.newFieldList(()=>[{no:1,name:"state",kind:"enum",T:oe.getEnumType(Pa)},{no:2,name:"message",kind:"scalar",T:9}]);let uc=class Ua extends mt{constructor(t){super(),this.startOffset=dt.zero,this.endOffset=dt.zero,oe.util.initPartial(t,this)}static fromBinary(t,r){return new Ua().fromBinary(t,r)}static fromJson(t,r){return new Ua().fromJson(t,r)}static fromJsonString(t,r){return new Ua().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Ua,t,r)}};uc.runtime=oe,uc.typeName="exa.language_server_pb.Range",uc.fields=oe.util.newFieldList(()=>[{no:1,name:"start_offset",kind:"scalar",T:4},{no:2,name:"end_offset",kind:"scalar",T:4},{no:3,name:"start_position",kind:"message",T:qr},{no:4,name:"end_position",kind:"message",T:qr}]);class Ln extends mt{constructor(t){super(),this.text="",this.deltaCursorOffset=dt.zero,oe.util.initPartial(t,this)}static fromBinary(t,r){return new Ln().fromBinary(t,r)}static fromJson(t,r){return new Ln().fromJson(t,r)}static fromJsonString(t,r){return new Ln().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Ln,t,r)}}Ln.runtime=oe,Ln.typeName="exa.language_server_pb.Suffix",Ln.fields=oe.util.newFieldList(()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"delta_cursor_offset",kind:"scalar",T:3}]);class Dn extends mt{constructor(t){super(),this.text="",this.offset=dt.zero,this.type=ka.UNSPECIFIED,this.prefix="",this.line=dt.zero,oe.util.initPartial(t,this)}static fromBinary(t,r){return new Dn().fromBinary(t,r)}static fromJson(t,r){return new Dn().fromJson(t,r)}static fromJsonString(t,r){return new Dn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Dn,t,r)}}Dn.runtime=oe,Dn.typeName="exa.language_server_pb.CompletionPart",Dn.fields=oe.util.newFieldList(()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"offset",kind:"scalar",T:4},{no:3,name:"type",kind:"enum",T:oe.getEnumType(ka)},{no:4,name:"prefix",kind:"scalar",T:9},{no:5,name:"line",kind:"scalar",T:4}]);class _n extends mt{constructor(t){super(),this.source=Ta.UNSPECIFIED,this.completionParts=[],oe.util.initPartial(t,this)}static fromBinary(t,r){return new _n().fromBinary(t,r)}static fromJson(t,r){return new _n().fromJson(t,r)}static fromJsonString(t,r){return new _n().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(_n,t,r)}}_n.runtime=oe,_n.typeName="exa.language_server_pb.CompletionItem",_n.fields=oe.util.newFieldList(()=>[{no:1,name:"completion",kind:"message",T:Nn},{no:5,name:"suffix",kind:"message",T:Ln},{no:2,name:"range",kind:"message",T:uc},{no:3,name:"source",kind:"enum",T:oe.getEnumType(Ta)},{no:8,name:"completion_parts",kind:"message",T:Dn,repeated:!0}]);const Yk={typeName:"exa.language_server_pb.LanguageServerService",methods:{getCompletions:{name:"GetCompletions",I:Tn,O:Pn,kind:Lr.Unary},acceptCompletion:{name:"AcceptCompletion",I:kn,O:Fn,kind:Lr.Unary},getAuthToken:{name:"GetAuthToken",I:$n,O:Mn,kind:Lr.Unary}}};class mn{constructor(t,r){this.line=t,this.character=r,this.lineNumber=t+1,this.column=r+1}static fromMonaco(t){return new mn(t.lineNumber-1,t.column-1)}static fromPosition(t){return new mn(t.line,t.character)}}class gi{constructor(t,r){this.start=t,this.end=r,this.startLineNumber=t.line+1,this.startColumn=t.character+1,this.endLineNumber=r.line+1,this.endColumn=r.character+1}static fromMonaco(t){return new gi(new mn(t.startLineNumber-1,t.startColumn-1),new mn(t.endLineNumber-1,t.endColumn-1))}static fromRange(t){return new gi(t.start,t.end)}}class Jk{constructor(t,r){this.text=t,this.range=r}}class Zk{constructor(t){this.model=t,this.uri=t.uri,this.languageId=t.getLanguageId()}get lineCount(){return this.model.getLineCount()}lineAt(t){return typeof t!="number"&&(t=t.line),new Jk(this.model.getLineContent(t+1),new gi(new mn(t,0),new mn(t,this.model.getLineLength(t+1))))}offsetAt(t){return this.model.getOffsetAt(mn.fromPosition(t))}positionAt(t){return mn.fromMonaco(this.model.getPositionAt(t))}getText(t){return t?this.model.getValueInRange(gi.fromRange(t)):this.model.getValue()}}function yy(e){return e<128?1:e<2048?2:e<65536?3:4}function qk(e,t){if(t===0)return 0;let r=0,n=0;for(const o of e)if(n+=o.length,r+=yy(o.codePointAt(0)),t!==void 0&&n>=t)break;return r}function Cy(e,t){if(t===0)return 0;let r=0,n=0;for(const o of e)if(n+=yy(o.codePointAt(0)),r+=o.length,t!==void 0&&n>=t)break;return r}const Qk=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)}),Kk=()=>{try{return window.location.href}catch{return null}},eF=()=>{try{return window.CODEIUM_REACT_CODE_VERSION?window.CODEIUM_REACT_CODE_VERSION:null}catch{return null}},tF=e=>{switch(e.toLowerCase()){case"c":return ce.C;case"clojure":return ce.CLOJURE;case"coffeescript":return ce.COFFEESCRIPT;case"cpp":return ce.CPP;case"csharp":return ce.CSHARP;case"css":return ce.CSS;case"cudacpp":return ce.CUDACPP;case"dockerfile":return ce.DOCKERFILE;case"go":return ce.GO;case"groovy":return ce.GROOVY;case"handlebars":return ce.HANDLEBARS;case"haskell":return ce.HASKELL;case"hcl":return ce.HCL;case"html":return ce.HTML;case"ini":return ce.INI;case"java":return ce.JAVA;case"javascript":return ce.JAVASCRIPT;case"json":return ce.JSON;case"julia":return ce.JULIA;case"kotlin":return ce.KOTLIN;case"latex":return ce.LATEX;case"less":return ce.LESS;case"lua":return ce.LUA;case"makefile":return ce.MAKEFILE;case"markdown":return ce.MARKDOWN;case"objectivec":return ce.OBJECTIVEC;case"objectivecpp":return ce.OBJECTIVECPP;case"perl":return ce.PERL;case"php":return ce.PHP;case"plaintext":return ce.PLAINTEXT;case"protobuf":return ce.PROTOBUF;case"pbtxt":return ce.PBTXT;case"python":return ce.PYTHON;case"r":return ce.R;case"ruby":return ce.RUBY;case"rust":return ce.RUST;case"sass":return ce.SASS;case"scala":return ce.SCALA;case"scss":return ce.SCSS;case"shell":return ce.SHELL;case"sql":return ce.SQL;case"starlark":return ce.STARLARK;case"swift":return ce.SWIFT;case"tsx":return ce.TSX;case"typescript":return ce.TYPESCRIPT;case"visualbasic":return ce.VISUALBASIC;case"vue":return ce.VUE;case"xml":return ce.XML;case"xsl":return ce.XSL;case"yaml":return ce.YAML;case"svelte":return ce.SVELTE;case"toml":return ce.TOML;case"dart":return ce.DART;case"rst":return ce.RST;case"ocaml":return ce.OCAML;case"cmake":return ce.CMAKE;case"pascal":return ce.PASCAL;case"elixir":return ce.ELIXIR;case"fsharp":return ce.FSHARP;case"lisp":return ce.LISP;case"matlab":return ce.MATLAB;case"powershell":return ce.POWERSHELL;case"solidity":return ce.SOLIDITY;case"ada":return ce.ADA;case"ocaml_interface":return ce.OCAML_INTERFACE;default:return ce.UNSPECIFIED}};class rF{constructor(t,r,n){this.insertText=t,this.text=t,this.range=r,this.command={id:"codeium.acceptCompletion",title:"Accept Completion",arguments:[n,t]}}}const nF="d49954eb-cfba-4992-980f-d8fb37f0e942";class oF{constructor(t,r,n,o,i){this.setStatus=r,this.setMessage=n,this.apiKey=o,this.multilineModelThreshold=i,this.otherDocuments=[],this.sessionId=`react-editor-${Qk()}`,this.client=t}getAuthHeader(){const t=this.getMetadata();return{Authorization:`Basic ${t.apiKey}-${t.sessionId}`}}getMetadata(){var t,r,n;return new Zr({ideName:"web",ideVersion:(t=Kk())!==null&&t!==void 0?t:"unknown",extensionName:"@codeium/react-code-editor",extensionVersion:(r=eF())!==null&&r!==void 0?r:"unknown",apiKey:(n=this.apiKey)!==null&&n!==void 0?n:nF,sessionId:this.sessionId})}provideInlineCompletions(t,r,n){return Nf(this,void 0,void 0,function*(){const o=new Zk(t),i=mn.fromMonaco(r);n.onCancellationRequested(()=>{var p;return(p=n.cancellationCallback)===null||p===void 0?void 0:p.call(n)});const a=new AbortController;n.onCancellationRequested(()=>{a.abort()});const s=a.signal;this.setStatus(xo.PROCESSING),this.setMessage("Generating completions...");const l=this.getDocumentInfo(o,i),c={tabSize:BigInt(t.getOptions().tabSize),insertSpaces:t.getOptions().insertSpaces};let u=this.otherDocuments;u.length>10&&(console.warn(`Too many other documents: ${u.length} (max 10)`),u=u.slice(0,10));let d;this.multilineModelThreshold!==void 0&&(d=new fn({threshold:this.multilineModelThreshold}));let f;try{f=yield this.client.getCompletions({metadata:this.getMetadata(),document:l,editorOptions:c,otherDocuments:u,multilineConfig:d},{signal:s,headers:this.getAuthHeader()})}catch(p){p instanceof er&&p.code===Xe.Canceled||(this.setStatus(xo.ERROR),this.setMessage("Something went wrong; please try again."));return}if(!f.completionItems){const p=" No completions were generated";this.setStatus(xo.SUCCESS),this.setMessage(p);return}const h=f.completionItems.map(p=>this.createInlineCompletionItem(p,o)).filter(p=>!!p);this.setStatus(xo.SUCCESS);let m=`Generated ${h.length} completions`;return h.length===1&&(m="Generated 1 completion"),this.setMessage(m),{items:h}})}acceptedLastCompletion(t){new Promise((r,n)=>{this.client.acceptCompletion({metadata:this.getMetadata(),completionId:t},{headers:this.getAuthHeader()}).then(r).catch(o=>{console.log("Error: ",o)})})}getDocumentInfo(t,r){const n=t.getText(),o=t.offsetAt(r),i=qk(n,o),a=tF(t.languageId);return a===ce.UNSPECIFIED&&console.warn(`Unknown language: ${t.languageId}`),new pi({text:n,editorLanguage:t.languageId,language:a,cursorOffset:BigInt(i),lineEnding:`
|
|
341
|
-
`})}createInlineCompletionItem(t,r){if(!t.completion||!t.range)return;const n=r.getText(),o=r.positionAt(Cy(n,Number(t.range.startOffset))),i=r.positionAt(Cy(n,Number(t.range.endOffset))),a=new gi(o,i);return new
|
|
342
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
340
|
+
/* .action-button class with a hover effect. */`;default:return""}};var uc;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.JUPYTER_FORMAT=77]="JUPYTER_FORMAT"})(uc||(uc={})),oe.util.setEnumType(uc,"exa.codeium_common_pb.ExperimentKey",[{no:0,name:"UNSPECIFIED"},{no:77,name:"JUPYTER_FORMAT"}]);var Oa;(function(e){e[e.CODEIUM=0]="CODEIUM"})(Oa||(Oa={})),oe.util.setEnumType(Oa,"exa.codeium_common_pb.AuthSource",[{no:0,name:"AUTH_SOURCE_CODEIUM"}]);var Ta;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ENABLE_CODEIUM=1]="ENABLE_CODEIUM",e[e.DISABLE_CODEIUM=2]="DISABLE_CODEIUM",e[e.SHOW_PREVIOUS_COMPLETION=3]="SHOW_PREVIOUS_COMPLETION",e[e.SHOW_NEXT_COMPLETION=4]="SHOW_NEXT_COMPLETION"})(Ta||(Ta={})),oe.util.setEnumType(Ta,"exa.codeium_common_pb.EventType",[{no:0,name:"EVENT_TYPE_UNSPECIFIED"},{no:1,name:"EVENT_TYPE_ENABLE_CODEIUM"},{no:2,name:"EVENT_TYPE_DISABLE_CODEIUM"},{no:3,name:"EVENT_TYPE_SHOW_PREVIOUS_COMPLETION"},{no:4,name:"EVENT_TYPE_SHOW_NEXT_COMPLETION"}]);var Pa;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TYPING_AS_SUGGESTED=1]="TYPING_AS_SUGGESTED",e[e.CACHE=2]="CACHE",e[e.NETWORK=3]="NETWORK"})(Pa||(Pa={})),oe.util.setEnumType(Pa,"exa.codeium_common_pb.CompletionSource",[{no:0,name:"COMPLETION_SOURCE_UNSPECIFIED"},{no:1,name:"COMPLETION_SOURCE_TYPING_AS_SUGGESTED"},{no:2,name:"COMPLETION_SOURCE_CACHE"},{no:3,name:"COMPLETION_SOURCE_NETWORK"}]);var ce;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.C=1]="C",e[e.CLOJURE=2]="CLOJURE",e[e.COFFEESCRIPT=3]="COFFEESCRIPT",e[e.CPP=4]="CPP",e[e.CSHARP=5]="CSHARP",e[e.CSS=6]="CSS",e[e.CUDACPP=7]="CUDACPP",e[e.DOCKERFILE=8]="DOCKERFILE",e[e.GO=9]="GO",e[e.GROOVY=10]="GROOVY",e[e.HANDLEBARS=11]="HANDLEBARS",e[e.HASKELL=12]="HASKELL",e[e.HCL=13]="HCL",e[e.HTML=14]="HTML",e[e.INI=15]="INI",e[e.JAVA=16]="JAVA",e[e.JAVASCRIPT=17]="JAVASCRIPT",e[e.JSON=18]="JSON",e[e.JULIA=19]="JULIA",e[e.KOTLIN=20]="KOTLIN",e[e.LATEX=21]="LATEX",e[e.LESS=22]="LESS",e[e.LUA=23]="LUA",e[e.MAKEFILE=24]="MAKEFILE",e[e.MARKDOWN=25]="MARKDOWN",e[e.OBJECTIVEC=26]="OBJECTIVEC",e[e.OBJECTIVECPP=27]="OBJECTIVECPP",e[e.PERL=28]="PERL",e[e.PHP=29]="PHP",e[e.PLAINTEXT=30]="PLAINTEXT",e[e.PROTOBUF=31]="PROTOBUF",e[e.PBTXT=32]="PBTXT",e[e.PYTHON=33]="PYTHON",e[e.R=34]="R",e[e.RUBY=35]="RUBY",e[e.RUST=36]="RUST",e[e.SASS=37]="SASS",e[e.SCALA=38]="SCALA",e[e.SCSS=39]="SCSS",e[e.SHELL=40]="SHELL",e[e.SQL=41]="SQL",e[e.STARLARK=42]="STARLARK",e[e.SWIFT=43]="SWIFT",e[e.TSX=44]="TSX",e[e.TYPESCRIPT=45]="TYPESCRIPT",e[e.VISUALBASIC=46]="VISUALBASIC",e[e.VUE=47]="VUE",e[e.XML=48]="XML",e[e.XSL=49]="XSL",e[e.YAML=50]="YAML",e[e.SVELTE=51]="SVELTE",e[e.TOML=52]="TOML",e[e.DART=53]="DART",e[e.RST=54]="RST",e[e.OCAML=55]="OCAML",e[e.CMAKE=56]="CMAKE",e[e.PASCAL=57]="PASCAL",e[e.ELIXIR=58]="ELIXIR",e[e.FSHARP=59]="FSHARP",e[e.LISP=60]="LISP",e[e.MATLAB=61]="MATLAB",e[e.POWERSHELL=62]="POWERSHELL",e[e.SOLIDITY=63]="SOLIDITY",e[e.ADA=64]="ADA",e[e.OCAML_INTERFACE=65]="OCAML_INTERFACE"})(ce||(ce={})),oe.util.setEnumType(ce,"exa.codeium_common_pb.Language",[{no:0,name:"LANGUAGE_UNSPECIFIED"},{no:1,name:"LANGUAGE_C"},{no:2,name:"LANGUAGE_CLOJURE"},{no:3,name:"LANGUAGE_COFFEESCRIPT"},{no:4,name:"LANGUAGE_CPP"},{no:5,name:"LANGUAGE_CSHARP"},{no:6,name:"LANGUAGE_CSS"},{no:7,name:"LANGUAGE_CUDACPP"},{no:8,name:"LANGUAGE_DOCKERFILE"},{no:9,name:"LANGUAGE_GO"},{no:10,name:"LANGUAGE_GROOVY"},{no:11,name:"LANGUAGE_HANDLEBARS"},{no:12,name:"LANGUAGE_HASKELL"},{no:13,name:"LANGUAGE_HCL"},{no:14,name:"LANGUAGE_HTML"},{no:15,name:"LANGUAGE_INI"},{no:16,name:"LANGUAGE_JAVA"},{no:17,name:"LANGUAGE_JAVASCRIPT"},{no:18,name:"LANGUAGE_JSON"},{no:19,name:"LANGUAGE_JULIA"},{no:20,name:"LANGUAGE_KOTLIN"},{no:21,name:"LANGUAGE_LATEX"},{no:22,name:"LANGUAGE_LESS"},{no:23,name:"LANGUAGE_LUA"},{no:24,name:"LANGUAGE_MAKEFILE"},{no:25,name:"LANGUAGE_MARKDOWN"},{no:26,name:"LANGUAGE_OBJECTIVEC"},{no:27,name:"LANGUAGE_OBJECTIVECPP"},{no:28,name:"LANGUAGE_PERL"},{no:29,name:"LANGUAGE_PHP"},{no:30,name:"LANGUAGE_PLAINTEXT"},{no:31,name:"LANGUAGE_PROTOBUF"},{no:32,name:"LANGUAGE_PBTXT"},{no:33,name:"LANGUAGE_PYTHON"},{no:34,name:"LANGUAGE_R"},{no:35,name:"LANGUAGE_RUBY"},{no:36,name:"LANGUAGE_RUST"},{no:37,name:"LANGUAGE_SASS"},{no:38,name:"LANGUAGE_SCALA"},{no:39,name:"LANGUAGE_SCSS"},{no:40,name:"LANGUAGE_SHELL"},{no:41,name:"LANGUAGE_SQL"},{no:42,name:"LANGUAGE_STARLARK"},{no:43,name:"LANGUAGE_SWIFT"},{no:44,name:"LANGUAGE_TSX"},{no:45,name:"LANGUAGE_TYPESCRIPT"},{no:46,name:"LANGUAGE_VISUALBASIC"},{no:47,name:"LANGUAGE_VUE"},{no:48,name:"LANGUAGE_XML"},{no:49,name:"LANGUAGE_XSL"},{no:50,name:"LANGUAGE_YAML"},{no:51,name:"LANGUAGE_SVELTE"},{no:52,name:"LANGUAGE_TOML"},{no:53,name:"LANGUAGE_DART"},{no:54,name:"LANGUAGE_RST"},{no:55,name:"LANGUAGE_OCAML"},{no:56,name:"LANGUAGE_CMAKE"},{no:57,name:"LANGUAGE_PASCAL"},{no:58,name:"LANGUAGE_ELIXIR"},{no:59,name:"LANGUAGE_FSHARP"},{no:60,name:"LANGUAGE_LISP"},{no:61,name:"LANGUAGE_MATLAB"},{no:62,name:"LANGUAGE_POWERSHELL"},{no:63,name:"LANGUAGE_SOLIDITY"},{no:64,name:"LANGUAGE_ADA"},{no:65,name:"LANGUAGE_OCAML_INTERFACE"}]);class Nn extends mt{constructor(t){super(),this.completionId="",this.text="",this.prefix="",this.stop="",this.score=0,this.tokens=[],this.decodedTokens=[],this.probabilities=[],this.adjustedProbabilities=[],this.generatedLength=dt.zero,oe.util.initPartial(t,this)}static fromBinary(t,r){return new Nn().fromBinary(t,r)}static fromJson(t,r){return new Nn().fromJson(t,r)}static fromJsonString(t,r){return new Nn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Nn,t,r)}}Nn.runtime=oe,Nn.typeName="exa.codeium_common_pb.Completion",Nn.fields=oe.util.newFieldList(()=>[{no:1,name:"completion_id",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9},{no:3,name:"prefix",kind:"scalar",T:9},{no:4,name:"stop",kind:"scalar",T:9},{no:5,name:"score",kind:"scalar",T:1},{no:6,name:"tokens",kind:"scalar",T:4,repeated:!0},{no:7,name:"decoded_tokens",kind:"scalar",T:9,repeated:!0},{no:8,name:"probabilities",kind:"scalar",T:1,repeated:!0},{no:9,name:"adjusted_probabilities",kind:"scalar",T:1,repeated:!0},{no:10,name:"generated_length",kind:"scalar",T:4}]);class Zr extends mt{constructor(t){super(),this.ideName="",this.ideVersion="",this.extensionName="",this.extensionVersion="",this.apiKey="",this.locale="",this.sessionId="",this.requestId=dt.zero,this.userAgent="",this.url="",this.authSource=Oa.CODEIUM,oe.util.initPartial(t,this)}static fromBinary(t,r){return new Zr().fromBinary(t,r)}static fromJson(t,r){return new Zr().fromJson(t,r)}static fromJsonString(t,r){return new Zr().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Zr,t,r)}}Zr.runtime=oe,Zr.typeName="exa.codeium_common_pb.Metadata",Zr.fields=oe.util.newFieldList(()=>[{no:1,name:"ide_name",kind:"scalar",T:9},{no:7,name:"ide_version",kind:"scalar",T:9},{no:12,name:"extension_name",kind:"scalar",T:9},{no:2,name:"extension_version",kind:"scalar",T:9},{no:3,name:"api_key",kind:"scalar",T:9},{no:4,name:"locale",kind:"scalar",T:9},{no:10,name:"session_id",kind:"scalar",T:9},{no:9,name:"request_id",kind:"scalar",T:4},{no:13,name:"user_agent",kind:"scalar",T:9},{no:14,name:"url",kind:"scalar",T:9},{no:15,name:"auth_source",kind:"enum",T:oe.getEnumType(Oa)}]);class On extends mt{constructor(t){super(),this.tabSize=dt.zero,this.insertSpaces=!1,oe.util.initPartial(t,this)}static fromBinary(t,r){return new On().fromBinary(t,r)}static fromJson(t,r){return new On().fromJson(t,r)}static fromJsonString(t,r){return new On().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(On,t,r)}}On.runtime=oe,On.typeName="exa.codeium_common_pb.EditorOptions",On.fields=oe.util.newFieldList(()=>[{no:1,name:"tab_size",kind:"scalar",T:4},{no:2,name:"insert_spaces",kind:"scalar",T:8}]);class to extends mt{constructor(t){super(),this.eventType=Ta.UNSPECIFIED,this.eventJson="",this.timestampUnixMs=dt.zero,oe.util.initPartial(t,this)}static fromBinary(t,r){return new to().fromBinary(t,r)}static fromJson(t,r){return new to().fromJson(t,r)}static fromJsonString(t,r){return new to().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(to,t,r)}}to.runtime=oe,to.typeName="exa.codeium_common_pb.Event",to.fields=oe.util.newFieldList(()=>[{no:1,name:"event_type",kind:"enum",T:oe.getEnumType(Ta)},{no:2,name:"event_json",kind:"scalar",T:9},{no:3,name:"timestamp_unix_ms",kind:"scalar",T:3}]);var ka;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.INACTIVE=1]="INACTIVE",e[e.PROCESSING=2]="PROCESSING",e[e.SUCCESS=3]="SUCCESS",e[e.WARNING=4]="WARNING",e[e.ERROR=5]="ERROR"})(ka||(ka={})),oe.util.setEnumType(ka,"exa.language_server_pb.CodeiumState",[{no:0,name:"CODEIUM_STATE_UNSPECIFIED"},{no:1,name:"CODEIUM_STATE_INACTIVE"},{no:2,name:"CODEIUM_STATE_PROCESSING"},{no:3,name:"CODEIUM_STATE_SUCCESS"},{no:4,name:"CODEIUM_STATE_WARNING"},{no:5,name:"CODEIUM_STATE_ERROR"}]);var Bf;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SINGLE=1]="SINGLE",e[e.MULTI=2]="MULTI"})(Bf||(Bf={})),oe.util.setEnumType(Bf,"exa.language_server_pb.LineType",[{no:0,name:"LINE_TYPE_UNSPECIFIED"},{no:1,name:"LINE_TYPE_SINGLE"},{no:2,name:"LINE_TYPE_MULTI"}]);var Fa;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.INLINE=1]="INLINE",e[e.BLOCK=2]="BLOCK",e[e.INLINE_MASK=3]="INLINE_MASK"})(Fa||(Fa={})),oe.util.setEnumType(Fa,"exa.language_server_pb.CompletionPartType",[{no:0,name:"COMPLETION_PART_TYPE_UNSPECIFIED"},{no:1,name:"COMPLETION_PART_TYPE_INLINE"},{no:2,name:"COMPLETION_PART_TYPE_BLOCK"},{no:3,name:"COMPLETION_PART_TYPE_INLINE_MASK"}]);class fn extends mt{constructor(t){super(),this.threshold=0,oe.util.initPartial(t,this)}static fromBinary(t,r){return new fn().fromBinary(t,r)}static fromJson(t,r){return new fn().fromJson(t,r)}static fromJsonString(t,r){return new fn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(fn,t,r)}}fn.runtime=oe,fn.typeName="exa.language_server_pb.MultilineConfig",fn.fields=oe.util.newFieldList(()=>[{no:1,name:"threshold",kind:"scalar",T:2}]);class Tn extends mt{constructor(t){super(),this.otherDocuments=[],this.modelName="",oe.util.initPartial(t,this)}static fromBinary(t,r){return new Tn().fromBinary(t,r)}static fromJson(t,r){return new Tn().fromJson(t,r)}static fromJsonString(t,r){return new Tn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Tn,t,r)}}Tn.runtime=oe,Tn.typeName="exa.language_server_pb.GetCompletionsRequest",Tn.fields=oe.util.newFieldList(()=>[{no:1,name:"metadata",kind:"message",T:Zr},{no:2,name:"document",kind:"message",T:pi},{no:3,name:"editor_options",kind:"message",T:On},{no:5,name:"other_documents",kind:"message",T:pi,repeated:!0},{no:7,name:"experiment_config",kind:"message",T:jn},{no:10,name:"model_name",kind:"scalar",T:9},{no:13,name:"multiline_config",kind:"message",T:fn}]);class Pn extends mt{constructor(t){super(),this.completionItems=[],oe.util.initPartial(t,this)}static fromBinary(t,r){return new Pn().fromBinary(t,r)}static fromJson(t,r){return new Pn().fromJson(t,r)}static fromJsonString(t,r){return new Pn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Pn,t,r)}}Pn.runtime=oe,Pn.typeName="exa.language_server_pb.GetCompletionsResponse",Pn.fields=oe.util.newFieldList(()=>[{no:1,name:"state",kind:"message",T:Rn},{no:2,name:"completion_items",kind:"message",T:_n,repeated:!0}]);class kn extends mt{constructor(t){super(),this.completionId="",oe.util.initPartial(t,this)}static fromBinary(t,r){return new kn().fromBinary(t,r)}static fromJson(t,r){return new kn().fromJson(t,r)}static fromJsonString(t,r){return new kn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(kn,t,r)}}kn.runtime=oe,kn.typeName="exa.language_server_pb.AcceptCompletionRequest",kn.fields=oe.util.newFieldList(()=>[{no:1,name:"metadata",kind:"message",T:Zr},{no:2,name:"completion_id",kind:"scalar",T:9}]);class Fn extends mt{constructor(t){super(),oe.util.initPartial(t,this)}static fromBinary(t,r){return new Fn().fromBinary(t,r)}static fromJson(t,r){return new Fn().fromJson(t,r)}static fromJsonString(t,r){return new Fn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Fn,t,r)}}Fn.runtime=oe,Fn.typeName="exa.language_server_pb.AcceptCompletionResponse",Fn.fields=oe.util.newFieldList(()=>[]);class $n extends mt{constructor(t){super(),oe.util.initPartial(t,this)}static fromBinary(t,r){return new $n().fromBinary(t,r)}static fromJson(t,r){return new $n().fromJson(t,r)}static fromJsonString(t,r){return new $n().fromJsonString(t,r)}static equals(t,r){return oe.util.equals($n,t,r)}}$n.runtime=oe,$n.typeName="exa.language_server_pb.GetAuthTokenRequest",$n.fields=oe.util.newFieldList(()=>[]);class Mn extends mt{constructor(t){super(),this.authToken="",this.uuid="",oe.util.initPartial(t,this)}static fromBinary(t,r){return new Mn().fromBinary(t,r)}static fromJson(t,r){return new Mn().fromJson(t,r)}static fromJsonString(t,r){return new Mn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Mn,t,r)}}Mn.runtime=oe,Mn.typeName="exa.language_server_pb.GetAuthTokenResponse",Mn.fields=oe.util.newFieldList(()=>[{no:1,name:"auth_token",kind:"scalar",T:9},{no:2,name:"uuid",kind:"scalar",T:9}]);class qr extends mt{constructor(t){super(),this.row=dt.zero,this.col=dt.zero,oe.util.initPartial(t,this)}static fromBinary(t,r){return new qr().fromBinary(t,r)}static fromJson(t,r){return new qr().fromJson(t,r)}static fromJsonString(t,r){return new qr().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(qr,t,r)}}qr.runtime=oe,qr.typeName="exa.language_server_pb.DocumentPosition",qr.fields=oe.util.newFieldList(()=>[{no:1,name:"row",kind:"scalar",T:4},{no:2,name:"col",kind:"scalar",T:4}]);let pi=class Ua extends mt{constructor(t){super(),this.absolutePath="",this.relativePath="",this.text="",this.editorLanguage="",this.language=ce.UNSPECIFIED,this.cursorOffset=dt.zero,this.lineEnding="",oe.util.initPartial(t,this)}static fromBinary(t,r){return new Ua().fromBinary(t,r)}static fromJson(t,r){return new Ua().fromJson(t,r)}static fromJsonString(t,r){return new Ua().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Ua,t,r)}};pi.runtime=oe,pi.typeName="exa.language_server_pb.Document",pi.fields=oe.util.newFieldList(()=>[{no:1,name:"absolute_path",kind:"scalar",T:9},{no:2,name:"relative_path",kind:"scalar",T:9},{no:3,name:"text",kind:"scalar",T:9},{no:4,name:"editor_language",kind:"scalar",T:9},{no:5,name:"language",kind:"enum",T:oe.getEnumType(ce)},{no:6,name:"cursor_offset",kind:"scalar",T:4},{no:8,name:"cursor_position",kind:"message",T:qr},{no:7,name:"line_ending",kind:"scalar",T:9}]);class jn extends mt{constructor(t){super(),this.forceEnableExperiments=[],oe.util.initPartial(t,this)}static fromBinary(t,r){return new jn().fromBinary(t,r)}static fromJson(t,r){return new jn().fromJson(t,r)}static fromJsonString(t,r){return new jn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(jn,t,r)}}jn.runtime=oe,jn.typeName="exa.language_server_pb.ExperimentConfig",jn.fields=oe.util.newFieldList(()=>[{no:1,name:"force_enable_experiments",kind:"enum",T:oe.getEnumType(uc),repeated:!0}]);class Rn extends mt{constructor(t){super(),this.state=ka.UNSPECIFIED,this.message="",oe.util.initPartial(t,this)}static fromBinary(t,r){return new Rn().fromBinary(t,r)}static fromJson(t,r){return new Rn().fromJson(t,r)}static fromJsonString(t,r){return new Rn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Rn,t,r)}}Rn.runtime=oe,Rn.typeName="exa.language_server_pb.State",Rn.fields=oe.util.newFieldList(()=>[{no:1,name:"state",kind:"enum",T:oe.getEnumType(ka)},{no:2,name:"message",kind:"scalar",T:9}]);let dc=class Xa extends mt{constructor(t){super(),this.startOffset=dt.zero,this.endOffset=dt.zero,oe.util.initPartial(t,this)}static fromBinary(t,r){return new Xa().fromBinary(t,r)}static fromJson(t,r){return new Xa().fromJson(t,r)}static fromJsonString(t,r){return new Xa().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Xa,t,r)}};dc.runtime=oe,dc.typeName="exa.language_server_pb.Range",dc.fields=oe.util.newFieldList(()=>[{no:1,name:"start_offset",kind:"scalar",T:4},{no:2,name:"end_offset",kind:"scalar",T:4},{no:3,name:"start_position",kind:"message",T:qr},{no:4,name:"end_position",kind:"message",T:qr}]);class Ln extends mt{constructor(t){super(),this.text="",this.deltaCursorOffset=dt.zero,oe.util.initPartial(t,this)}static fromBinary(t,r){return new Ln().fromBinary(t,r)}static fromJson(t,r){return new Ln().fromJson(t,r)}static fromJsonString(t,r){return new Ln().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Ln,t,r)}}Ln.runtime=oe,Ln.typeName="exa.language_server_pb.Suffix",Ln.fields=oe.util.newFieldList(()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"delta_cursor_offset",kind:"scalar",T:3}]);class Dn extends mt{constructor(t){super(),this.text="",this.offset=dt.zero,this.type=Fa.UNSPECIFIED,this.prefix="",this.line=dt.zero,oe.util.initPartial(t,this)}static fromBinary(t,r){return new Dn().fromBinary(t,r)}static fromJson(t,r){return new Dn().fromJson(t,r)}static fromJsonString(t,r){return new Dn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Dn,t,r)}}Dn.runtime=oe,Dn.typeName="exa.language_server_pb.CompletionPart",Dn.fields=oe.util.newFieldList(()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"offset",kind:"scalar",T:4},{no:3,name:"type",kind:"enum",T:oe.getEnumType(Fa)},{no:4,name:"prefix",kind:"scalar",T:9},{no:5,name:"line",kind:"scalar",T:4}]);class _n extends mt{constructor(t){super(),this.source=Pa.UNSPECIFIED,this.completionParts=[],oe.util.initPartial(t,this)}static fromBinary(t,r){return new _n().fromBinary(t,r)}static fromJson(t,r){return new _n().fromJson(t,r)}static fromJsonString(t,r){return new _n().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(_n,t,r)}}_n.runtime=oe,_n.typeName="exa.language_server_pb.CompletionItem",_n.fields=oe.util.newFieldList(()=>[{no:1,name:"completion",kind:"message",T:Nn},{no:5,name:"suffix",kind:"message",T:Ln},{no:2,name:"range",kind:"message",T:dc},{no:3,name:"source",kind:"enum",T:oe.getEnumType(Pa)},{no:8,name:"completion_parts",kind:"message",T:Dn,repeated:!0}]);const Jk={typeName:"exa.language_server_pb.LanguageServerService",methods:{getCompletions:{name:"GetCompletions",I:Tn,O:Pn,kind:Lr.Unary},acceptCompletion:{name:"AcceptCompletion",I:kn,O:Fn,kind:Lr.Unary},getAuthToken:{name:"GetAuthToken",I:$n,O:Mn,kind:Lr.Unary}}};class mn{constructor(t,r){this.line=t,this.character=r,this.lineNumber=t+1,this.column=r+1}static fromMonaco(t){return new mn(t.lineNumber-1,t.column-1)}static fromPosition(t){return new mn(t.line,t.character)}}class gi{constructor(t,r){this.start=t,this.end=r,this.startLineNumber=t.line+1,this.startColumn=t.character+1,this.endLineNumber=r.line+1,this.endColumn=r.character+1}static fromMonaco(t){return new gi(new mn(t.startLineNumber-1,t.startColumn-1),new mn(t.endLineNumber-1,t.endColumn-1))}static fromRange(t){return new gi(t.start,t.end)}}class Zk{constructor(t,r){this.text=t,this.range=r}}class qk{constructor(t){this.model=t,this.uri=t.uri,this.languageId=t.getLanguageId()}get lineCount(){return this.model.getLineCount()}lineAt(t){return typeof t!="number"&&(t=t.line),new Zk(this.model.getLineContent(t+1),new gi(new mn(t,0),new mn(t,this.model.getLineLength(t+1))))}offsetAt(t){return this.model.getOffsetAt(mn.fromPosition(t))}positionAt(t){return mn.fromMonaco(this.model.getPositionAt(t))}getText(t){return t?this.model.getValueInRange(gi.fromRange(t)):this.model.getValue()}}function yy(e){return e<128?1:e<2048?2:e<65536?3:4}function Qk(e,t){if(t===0)return 0;let r=0,n=0;for(const o of e)if(n+=o.length,r+=yy(o.codePointAt(0)),t!==void 0&&n>=t)break;return r}function Cy(e,t){if(t===0)return 0;let r=0,n=0;for(const o of e)if(n+=yy(o.codePointAt(0)),r+=o.length,t!==void 0&&n>=t)break;return r}const Kk=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)}),eF=()=>{try{return window.location.href}catch{return null}},tF=()=>{try{return window.CODEIUM_REACT_CODE_VERSION?window.CODEIUM_REACT_CODE_VERSION:null}catch{return null}},rF=e=>{switch(e.toLowerCase()){case"c":return ce.C;case"clojure":return ce.CLOJURE;case"coffeescript":return ce.COFFEESCRIPT;case"cpp":return ce.CPP;case"csharp":return ce.CSHARP;case"css":return ce.CSS;case"cudacpp":return ce.CUDACPP;case"dockerfile":return ce.DOCKERFILE;case"go":return ce.GO;case"groovy":return ce.GROOVY;case"handlebars":return ce.HANDLEBARS;case"haskell":return ce.HASKELL;case"hcl":return ce.HCL;case"html":return ce.HTML;case"ini":return ce.INI;case"java":return ce.JAVA;case"javascript":return ce.JAVASCRIPT;case"json":return ce.JSON;case"julia":return ce.JULIA;case"kotlin":return ce.KOTLIN;case"latex":return ce.LATEX;case"less":return ce.LESS;case"lua":return ce.LUA;case"makefile":return ce.MAKEFILE;case"markdown":return ce.MARKDOWN;case"objectivec":return ce.OBJECTIVEC;case"objectivecpp":return ce.OBJECTIVECPP;case"perl":return ce.PERL;case"php":return ce.PHP;case"plaintext":return ce.PLAINTEXT;case"protobuf":return ce.PROTOBUF;case"pbtxt":return ce.PBTXT;case"python":return ce.PYTHON;case"r":return ce.R;case"ruby":return ce.RUBY;case"rust":return ce.RUST;case"sass":return ce.SASS;case"scala":return ce.SCALA;case"scss":return ce.SCSS;case"shell":return ce.SHELL;case"sql":return ce.SQL;case"starlark":return ce.STARLARK;case"swift":return ce.SWIFT;case"tsx":return ce.TSX;case"typescript":return ce.TYPESCRIPT;case"visualbasic":return ce.VISUALBASIC;case"vue":return ce.VUE;case"xml":return ce.XML;case"xsl":return ce.XSL;case"yaml":return ce.YAML;case"svelte":return ce.SVELTE;case"toml":return ce.TOML;case"dart":return ce.DART;case"rst":return ce.RST;case"ocaml":return ce.OCAML;case"cmake":return ce.CMAKE;case"pascal":return ce.PASCAL;case"elixir":return ce.ELIXIR;case"fsharp":return ce.FSHARP;case"lisp":return ce.LISP;case"matlab":return ce.MATLAB;case"powershell":return ce.POWERSHELL;case"solidity":return ce.SOLIDITY;case"ada":return ce.ADA;case"ocaml_interface":return ce.OCAML_INTERFACE;default:return ce.UNSPECIFIED}};class nF{constructor(t,r,n){this.insertText=t,this.text=t,this.range=r,this.command={id:"codeium.acceptCompletion",title:"Accept Completion",arguments:[n,t]}}}const oF="d49954eb-cfba-4992-980f-d8fb37f0e942";class iF{constructor(t,r,n,o,i){this.setStatus=r,this.setMessage=n,this.apiKey=o,this.multilineModelThreshold=i,this.otherDocuments=[],this.sessionId=`react-editor-${Kk()}`,this.client=t}getAuthHeader(){const t=this.getMetadata();return{Authorization:`Basic ${t.apiKey}-${t.sessionId}`}}getMetadata(){var t,r,n;return new Zr({ideName:"web",ideVersion:(t=eF())!==null&&t!==void 0?t:"unknown",extensionName:"@codeium/react-code-editor",extensionVersion:(r=tF())!==null&&r!==void 0?r:"unknown",apiKey:(n=this.apiKey)!==null&&n!==void 0?n:oF,sessionId:this.sessionId})}provideInlineCompletions(t,r,n){return Nf(this,void 0,void 0,function*(){const o=new qk(t),i=mn.fromMonaco(r);n.onCancellationRequested(()=>{var p;return(p=n.cancellationCallback)===null||p===void 0?void 0:p.call(n)});const a=new AbortController;n.onCancellationRequested(()=>{a.abort()});const s=a.signal;this.setStatus(xo.PROCESSING),this.setMessage("Generating completions...");const l=this.getDocumentInfo(o,i),c={tabSize:BigInt(t.getOptions().tabSize),insertSpaces:t.getOptions().insertSpaces};let u=this.otherDocuments;u.length>10&&(console.warn(`Too many other documents: ${u.length} (max 10)`),u=u.slice(0,10));let d;this.multilineModelThreshold!==void 0&&(d=new fn({threshold:this.multilineModelThreshold}));let f;try{f=yield this.client.getCompletions({metadata:this.getMetadata(),document:l,editorOptions:c,otherDocuments:u,multilineConfig:d},{signal:s,headers:this.getAuthHeader()})}catch(p){p instanceof er&&p.code===Xe.Canceled||(this.setStatus(xo.ERROR),this.setMessage("Something went wrong; please try again."));return}if(!f.completionItems){const p=" No completions were generated";this.setStatus(xo.SUCCESS),this.setMessage(p);return}const h=f.completionItems.map(p=>this.createInlineCompletionItem(p,o)).filter(p=>!!p);this.setStatus(xo.SUCCESS);let m=`Generated ${h.length} completions`;return h.length===1&&(m="Generated 1 completion"),this.setMessage(m),{items:h}})}acceptedLastCompletion(t){new Promise((r,n)=>{this.client.acceptCompletion({metadata:this.getMetadata(),completionId:t},{headers:this.getAuthHeader()}).then(r).catch(o=>{console.log("Error: ",o)})})}getDocumentInfo(t,r){const n=t.getText(),o=t.offsetAt(r),i=Qk(n,o),a=rF(t.languageId);return a===ce.UNSPECIFIED&&console.warn(`Unknown language: ${t.languageId}`),new pi({text:n,editorLanguage:t.languageId,language:a,cursorOffset:BigInt(i),lineEnding:`
|
|
341
|
+
`})}createInlineCompletionItem(t,r){if(!t.completion||!t.range)return;const n=r.getText(),o=r.positionAt(Cy(n,Number(t.range.startOffset))),i=r.positionAt(Cy(n,Number(t.range.endOffset))),a=new gi(o,i);return new nF(t.completion.text,a,t.completion.completionId)}}class aF{constructor(t,r,n,o,i,a){this.setCompletionCount=r,this.numCompletionsProvided=0,this.completionProvider=new iF(t,n,o,i,a)}freeInlineCompletions(){}provideInlineCompletions(t,r,n,o){return Nf(this,void 0,void 0,function*(){const i=yield this.completionProvider.provideInlineCompletions(t,r,o);return i&&(this.numCompletionsProvided+=1,this.setCompletionCount(this.numCompletionsProvided)),i})}acceptedLastCompletion(t){this.completionProvider.acceptedLastCompletion(t)}updateOtherDocuments(t){this.completionProvider.otherDocuments=t}}const sF=e=>{var{className:t,loading:r=!1}=e,n=v1(e,["className","loading"]);return E.createElement("svg",Object.assign({viewBox:"0 0 124 124","aria-label":"Codeium Logo",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{className:t}),E.createElement("mask",{id:"mask0_306_96",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"124",height:"124"},E.createElement("path",{d:"M0 10C0 4.47715 4.47715 0 10 0H114C119.523 0 124 4.47715 124 10V114C124 119.523 119.523 124 114 124H10C4.47715 124 0 119.523 0 114V10Z",fill:"#D9D9D9"})),E.createElement("g",{mask:"url(#mask0_306_96)"},E.createElement("path",{d:"M62 62L0 124V0L62 62Z",fill:"#60D5C4"}),E.createElement("path",{d:"M62 62L124 124V0L62 62Z",fill:"#60D5C4"}),E.createElement("path",{d:"M62 62L124 124L0 124L62 62Z",fill:"#71E9D8"}),E.createElement("path",{d:"M62 62L124 0L0 0L62 62Z",fill:"#71E9D8"}),E.createElement("path",{d:"M107.387 16H16.6133C16.2746 16 16 16.2746 16 16.6133V107.387C16 107.725 16.2746 108 16.6133 108H107.387C107.725 108 108 107.725 108 107.387V16.6133C108 16.2746 107.725 16 107.387 16Z",fill:"#09B6A2"}),E.createElement("path",{d:"M75.196 77.1134C74.1902 77.1134 73.3102 76.7612 72.5559 76.0566C71.8375 75.3169 71.4783 74.4538 71.4783 73.4675C71.4783 72.4459 71.8375 71.5828 72.5559 70.8783C73.3102 70.1386 74.1902 69.7687 75.196 69.7687C76.2377 69.7687 77.1177 70.1386 77.8361 70.8783C78.5545 71.5828 78.9137 72.4459 78.9137 73.4675C78.9137 74.4538 78.5545 75.3169 77.8361 76.0566C77.1177 76.7612 76.2377 77.1134 75.196 77.1134Z",fill:"white","aria-label":"right-dot",className:r?"animate-blink duration-1000":"",style:{animationDelay:"666ms"}}),E.createElement("path",{d:"M62.3573 77.1134C61.3516 77.1134 60.4715 76.7612 59.7172 76.0566C58.9988 75.3169 58.6396 74.4538 58.6396 73.4675C58.6396 72.4459 58.9988 71.5828 59.7172 70.8783C60.4715 70.1386 61.3516 69.7687 62.3573 69.7687C63.399 69.7687 64.2791 70.1386 64.9974 70.8783C65.7158 71.5828 66.075 72.4459 66.075 73.4675C66.075 74.4538 65.7158 75.3169 64.9974 76.0566C64.2791 76.7612 63.399 77.1134 62.3573 77.1134Z",fill:"white","aria-label":"middle-dot",className:r?"animate-blink duration-1000":"",style:{animationDelay:"333ms"}}),E.createElement("path",{d:"M49.519 77.1134C48.5132 77.1134 47.6332 76.7612 46.8789 76.0566C46.1605 75.3169 45.8013 74.4538 45.8013 73.4675C45.8013 72.4459 46.1605 71.5828 46.8789 70.8783C47.6332 70.1386 48.5132 69.7687 49.519 69.7687C50.5607 69.7687 51.4407 70.1386 52.1591 70.8783C52.8775 71.5828 53.2367 72.4459 53.2367 73.4675C53.2367 74.4538 52.8775 75.3169 52.1591 76.0566C51.4407 76.7612 50.5607 77.1134 49.519 77.1134Z",fill:"white","aria-label":"left-dot",className:r?"animate-blink duration-1000":"",style:{animationDelay:"0ms"}}),E.createElement("path",{d:"M85.9869 88.6325C85.1967 88.6325 84.5501 88.3683 84.0473 87.8399C83.5444 87.3468 83.2929 86.7127 83.2929 85.9377C83.2929 85.1275 83.5444 84.4758 84.0473 83.9826C84.5501 83.4894 85.1967 83.2429 85.9869 83.2429C88.178 83.2429 89.2736 82.1684 89.2736 80.0196V67.7079C89.2736 65.2421 89.8483 63.287 90.9977 61.8427C90.423 61.1029 89.992 60.2399 89.7046 59.2535C89.4173 58.2672 89.2736 57.1575 89.2736 55.9246V43.6129C89.2736 41.4641 88.178 40.3897 85.9869 40.3897C85.1967 40.3897 84.5501 40.1431 84.0473 39.6499C83.5444 39.1567 83.2929 38.5227 83.2929 37.7477C83.2929 36.9727 83.5444 36.321 84.0473 35.7926C84.5501 35.2642 85.1967 35 85.9869 35C91.8419 35 94.7693 37.871 94.7693 43.6129V55.9246C94.7693 58.0734 95.8469 59.1478 98.0021 59.1478C98.7924 59.1478 99.4389 59.3944 99.9418 59.8876C100.481 60.3808 100.75 61.0325 100.75 61.8427C100.75 62.6177 100.481 63.2517 99.9418 63.7449C99.4389 64.2381 98.7924 64.4847 98.0021 64.4847C95.8469 64.4847 94.7693 65.5591 94.7693 67.7079V80.0196C94.7693 85.7616 91.8419 88.6325 85.9869 88.6325Z",fill:"white","aria-label":"open-bracket"}),E.createElement("path",{d:"M38.7631 88.6325C32.9081 88.6325 29.9807 85.7616 29.9807 80.0196V67.7079C29.9807 65.5591 28.9031 64.4847 26.7479 64.4847C25.9576 64.4847 25.2931 64.2381 24.7543 63.7449C24.2514 63.2517 24 62.6177 24 61.8427C24 61.0325 24.2514 60.3808 24.7543 59.8876C25.2931 59.3944 25.9576 59.1478 26.7479 59.1478C28.9031 59.1478 29.9807 58.0734 29.9807 55.9246V43.6129C29.9807 37.871 32.9081 35 38.7631 35C39.5533 35 40.1999 35.2642 40.7027 35.7926C41.2056 36.321 41.4571 36.9727 41.4571 37.7477C41.4571 38.5227 41.2056 39.1567 40.7027 39.6499C40.1999 40.1431 39.5533 40.3897 38.7631 40.3897C36.572 40.3897 35.4764 41.4641 35.4764 43.6129V55.9246C35.4764 57.1575 35.3327 58.2672 35.0454 59.2535C34.758 60.2399 34.327 61.1029 33.7522 61.8427C34.9017 63.287 35.4764 65.2421 35.4764 67.7079V80.0196C35.4764 82.1684 36.572 83.2429 38.7631 83.2429C39.5533 83.2429 40.1999 83.4894 40.7027 83.9826C41.2056 84.4758 41.4571 85.1275 41.4571 85.9377C41.4571 86.7127 41.2056 87.3468 40.7027 87.8399C40.1999 88.3683 39.5533 88.6325 38.7631 88.6325Z",fill:"white","aria-label":"close-bracket"})))};function xy(e,t){const r=Object.assign({},t);for(const n in e)typeof e[n]=="object"&&!Array.isArray(e[n])?t[n]&&typeof t[n]=="object"&&!Array.isArray(t[n])?r[n]=xy(e[n],t[n]):r[n]=Object.assign({},e[n]):r[n]=e[n];return r}const lF=e=>{var{languageServerAddress:t="https://web-backend.codeium.com",otherDocuments:r=[],containerClassName:n="",containerStyle:o={}}=e,i=v1(e,["languageServerAddress","otherDocuments","containerClassName","containerStyle"]);const a=E.useRef(null),s=E.useRef(null),l=E.useRef(null),[c,u]=E.useState(-1),[d,f]=E.useState(0),[g,h]=E.useState(xo.INACTIVE),[m,p]=E.useState(""),[b,y]=E.useState(!1),w=E.useMemo(()=>B7({baseUrl:t,useBinaryFormat:!0}),[t]),S=E.useMemo(()=>g7(Jk,w),[w]);l.current=E.useMemo(()=>new aF(S,f,h,p,i.apiKey,i.multilineModelThreshold),[]),E.useEffect(()=>{if(!a?.current||!s.current||!l.current)return;const O=s.current,T=O.languages.registerInlineCompletionsProvider({pattern:"**"},l.current),P=O.editor.registerCommand("codeium.acceptCompletion",(M,x,$)=>{var k;try{i.onAutocomplete&&i.onAutocomplete($),u(c+1),(k=l.current)===null||k===void 0||k.acceptedLastCompletion(x)}catch{console.log("Err")}});return()=>{T.dispose(),P.dispose()}},[a?.current,s?.current,l?.current,c,b]);const v=(O,T)=>Nf(void 0,void 0,void 0,function*(){a.current=O,s.current=T,y(!0);try{yield S.getCompletions({})}catch{}i.onMount&&i.onMount(O,T)});E.useEffect(()=>{var O;(O=l.current)===null||O===void 0||O.updateOtherDocuments(r)},[r]);let I={defaultLanguage:i.language,defaultValue:Yk(i.language)};const N={width:i.width||"100%",height:i.height||"300px"};return E.createElement("div",{style:Object.assign(Object.assign(Object.assign({},N),{position:"relative"}),o),className:n},E.createElement("a",{href:"https://codeium.com?referrer=codeium-editor",target:"_blank",rel:"noreferrer noopener"},E.createElement(sF,{width:30,height:30,style:{position:"absolute",top:12,right:12,zIndex:1}})),E.createElement(Xk,Object.assign({},I,i,{width:N.width,height:N.height,onMount:v,options:xy(i.options,{scrollBeyondLastColumn:0,scrollbar:{alwaysConsumeMouseWheel:!1},codeLens:!1,minimap:{enabled:!1},quickSuggestions:!1,folding:!1,foldingHighlight:!1,foldingImportsByDefault:!1,links:!1,fontSize:14,wordWrap:"on"})})))};function cF(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Sy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wy(Object(r),!0).forEach(function(n){cF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uF(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function dF(e,t){if(e==null)return{};var r=uF(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fF(e,t){return mF(e)||pF(e,t)||gF(e,t)||hF()}function mF(e){if(Array.isArray(e))return e}function pF(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,i=void 0;try{for(var a=e[Symbol.iterator](),s;!(n=(s=a.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){o=!0,i=l}finally{try{!n&&a.return!=null&&a.return()}finally{if(o)throw i}}return r}}function gF(e,t){if(e){if(typeof e=="string")return Ey(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ey(e,t)}}function Ey(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function hF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
342
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vF(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Iy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ay(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Iy(Object(r),!0).forEach(function(n){vF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Iy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bF(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(o,i){return i(o)},n)}}function $a(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(r,[].concat(o,s))}}}function fc(e){return{}.toString.call(e).includes("Object")}function yF(e){return!Object.keys(e).length}function Ma(e){return typeof e=="function"}function CF(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function xF(e,t){return fc(t)||ro("changeType"),Object.keys(t).some(function(r){return!CF(e,r)})&&ro("changeField"),t}function wF(e){Ma(e)||ro("selectorType")}function SF(e){Ma(e)||fc(e)||ro("handlerType"),fc(e)&&Object.values(e).some(function(t){return!Ma(t)})&&ro("handlersType")}function EF(e){e||ro("initialIsRequired"),fc(e)||ro("initialType"),yF(e)&&ro("initialContent")}function IF(e,t){throw new Error(e[t]||e.default)}var AF={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},ro=$a(IF)(AF),mc={changes:xF,selector:wF,handler:SF,initial:EF};function NF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};mc.initial(e),mc.handler(t);var r={current:e},n=$a(PF)(r,t),o=$a(TF)(r),i=$a(mc.changes)(e),a=$a(OF)(r);function s(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(u){return u};return mc.selector(c),c(r.current)}function l(c){bF(n,o,i,a)(c)}return[s,l]}function OF(e,t){return Ma(t)?t(e.current):t}function TF(e,t){return e.current=Ay(Ay({},e.current),t),t}function PF(e,t,r){return Ma(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var kF={create:NF},FF={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function $F(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(r,[].concat(o,s))}}}function MF(e){return{}.toString.call(e).includes("Object")}function jF(e){return e||Oy("configIsRequired"),MF(e)||Oy("configType"),e.urls?(RF(),{paths:{vs:e.urls.monacoBase}}):e}function RF(){console.warn(Ny.deprecation)}function LF(e,t){throw new Error(e[t]||e.default)}var Ny={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
343
343
|
You are using deprecated way of configuration.
|
|
344
344
|
|
|
345
345
|
Instead of using
|
|
@@ -348,15 +348,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
348
348
|
monaco.config({ paths: { vs: '...' } })
|
|
349
349
|
|
|
350
350
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
351
|
-
`},Oy=FF(RF)(Ny),LF={config:MF},DF=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(i,a){return a(i)},o)}};function Ty(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],Ty(e[r],t[r]))}),Sy(Sy({},e),t)}var _F={type:"cancelation",msg:"operation is manually canceled"};function zf(e){var t=!1,r=new Promise(function(n,o){e.then(function(i){return t?o(_F):n(i)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var VF=PF.create({config:kF,isInitialized:!1,resolve:null,reject:null,monaco:null}),Py=dF(VF,2),Ma=Py[0],mc=Py[1];function BF(e){var t=LF.config(e),r=t.monaco,n=uF(t,["monaco"]);mc(function(o){return{config:Ty(o.config,n),monaco:r}})}function zF(){var e=Ma(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(mc({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),zf(Gf);if(window.monaco&&window.monaco.editor)return ky(window.monaco),e.resolve(window.monaco),zf(Gf);DF(GF,WF)(UF)}return zf(Gf)}function GF(e){return document.body.appendChild(e)}function HF(e){var t=document.createElement("script");return e&&(t.src=e),t}function WF(e){var t=Ma(function(n){var o=n.config,i=n.reject;return{config:o,reject:i}}),r=HF("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function UF(){var e=Ma(function(r){var n=r.config,o=r.resolve,i=r.reject;return{config:n,resolve:o,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){ky(r),e.resolve(r)},function(r){e.reject(r)})}function ky(e){Ma().monaco||mc({monaco:e})}function XF(){return Ma(function(e){var t=e.monaco;return t})}var Gf=new Promise(function(e,t){return mc({resolve:e,reject:t})}),Hf={config:BF,init:zF,__getMonacoInstance:XF},YF={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Wf=YF,JF={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},ZF=JF;function qF({children:e}){return E.createElement("div",{style:ZF.container},e)}var QF=qF,KF=QF;function e$({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:i,wrapperProps:a}){return E.createElement("section",{style:{...Wf.wrapper,width:e,height:t},...a},!r&&E.createElement(KF,null,n),E.createElement("div",{ref:o,style:{...Wf.fullWidth,...!r&&Wf.hide},className:i}))}var t$=e$,Fy=E.memo(t$);function r$(e){E.useEffect(e,[])}var $y=r$;function n$(e,t,r=!0){let n=E.useRef(!0);E.useEffect(n.current||!r?()=>{n.current=!1}:e,t)}var Nr=n$;function ja(){}function hi(e,t,r,n){return o$(e,n)||i$(e,t,r,n)}function o$(e,t){return e.editor.getModel(My(e,t))}function i$(e,t,r,n){return e.editor.createModel(t,r,n?My(e,n):void 0)}function My(e,t){return e.Uri.parse(t)}function a$({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:a,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:l=!1,theme:c="light",loading:u="Loading...",options:d={},height:f="100%",width:g="100%",className:h,wrapperProps:m={},beforeMount:p=ja,onMount:b=ja}){let[y,w]=E.useState(!1),[S,v]=E.useState(!0),I=E.useRef(null),N=E.useRef(null),O=E.useRef(null),T=E.useRef(b),P=E.useRef(p),M=E.useRef(!1);$y(()=>{let F=Hf.init();return F.then(j=>(N.current=j)&&v(!1)).catch(j=>j?.type!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>I.current?k():F.cancel()}),Nr(()=>{if(I.current&&N.current){let F=I.current.getOriginalEditor(),j=hi(N.current,e||"",n||r||"text",i||"");j!==F.getModel()&&F.setModel(j)}},[i],y),Nr(()=>{if(I.current&&N.current){let F=I.current.getModifiedEditor(),j=hi(N.current,t||"",o||r||"text",a||"");j!==F.getModel()&&F.setModel(j)}},[a],y),Nr(()=>{let F=I.current.getModifiedEditor();F.getOption(N.current.editor.EditorOption.readOnly)?F.setValue(t||""):t!==F.getValue()&&(F.executeEdits("",[{range:F.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),F.pushUndoStop())},[t],y),Nr(()=>{I.current?.getModel()?.original.setValue(e||"")},[e],y),Nr(()=>{let{original:F,modified:j}=I.current.getModel();N.current.editor.setModelLanguage(F,n||r||"text"),N.current.editor.setModelLanguage(j,o||r||"text")},[r,n,o],y),Nr(()=>{N.current?.editor.setTheme(c)},[c],y),Nr(()=>{I.current?.updateOptions(d)},[d],y);let x=E.useCallback(()=>{if(!N.current)return;P.current(N.current);let F=hi(N.current,e||"",n||r||"text",i||""),j=hi(N.current,t||"",o||r||"text",a||"");I.current?.setModel({original:F,modified:j})},[r,t,o,e,n,i,a]),$=E.useCallback(()=>{!M.current&&O.current&&(I.current=N.current.editor.createDiffEditor(O.current,{automaticLayout:!0,...d}),x(),N.current?.editor.setTheme(c),w(!0),M.current=!0)},[d,c,x]);E.useEffect(()=>{y&&T.current(I.current,N.current)},[y]),E.useEffect(()=>{!S&&!y&&$()},[S,y,$]);function k(){let F=I.current?.getModel();s||F?.original?.dispose(),l||F?.modified?.dispose(),I.current?.dispose()}return E.createElement(Fy,{width:g,height:f,isEditorReady:y,loading:u,_ref:O,className:h,wrapperProps:m})}var s$=a$;E.memo(s$);function l$(e){let t=E.useRef();return E.useEffect(()=>{t.current=e},[e]),t.current}var c$=l$,pc=new Map;function u$({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:i,theme:a="light",line:s,loading:l="Loading...",options:c={},overrideServices:u={},saveViewState:d=!0,keepCurrentModel:f=!1,width:g="100%",height:h="100%",className:m,wrapperProps:p={},beforeMount:b=ja,onMount:y=ja,onChange:w,onValidate:S=ja}){let[v,I]=E.useState(!1),[N,O]=E.useState(!0),T=E.useRef(null),P=E.useRef(null),M=E.useRef(null),x=E.useRef(y),$=E.useRef(b),k=E.useRef(),F=E.useRef(n),j=c$(i),z=E.useRef(!1),W=E.useRef(!1);$y(()=>{let D=Hf.init();return D.then(B=>(T.current=B)&&O(!1)).catch(B=>B?.type!=="cancelation"&&console.error("Monaco initialization: error:",B)),()=>P.current?_():D.cancel()}),Nr(()=>{let D=hi(T.current,e||n||"",t||o||"",i||r||"");D!==P.current?.getModel()&&(d&&pc.set(j,P.current?.saveViewState()),P.current?.setModel(D),d&&P.current?.restoreViewState(pc.get(i)))},[i],v),Nr(()=>{P.current?.updateOptions(c)},[c],v),Nr(()=>{!P.current||n===void 0||(P.current.getOption(T.current.editor.EditorOption.readOnly)?P.current.setValue(n):n!==P.current.getValue()&&(W.current=!0,P.current.executeEdits("",[{range:P.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),P.current.pushUndoStop(),W.current=!1))},[n],v),Nr(()=>{let D=P.current?.getModel();D&&o&&T.current?.editor.setModelLanguage(D,o)},[o],v),Nr(()=>{s!==void 0&&P.current?.revealLine(s)},[s],v),Nr(()=>{T.current?.editor.setTheme(a)},[a],v);let V=E.useCallback(()=>{if(!(!M.current||!T.current)&&!z.current){$.current(T.current);let D=i||r,B=hi(T.current,n||e||"",t||o||"",D||"");P.current=T.current?.editor.create(M.current,{model:B,automaticLayout:!0,...c},u),d&&P.current.restoreViewState(pc.get(D)),T.current.editor.setTheme(a),s!==void 0&&P.current.revealLine(s),I(!0),z.current=!0}},[e,t,r,n,o,i,c,u,d,a,s]);E.useEffect(()=>{v&&x.current(P.current,T.current)},[v]),E.useEffect(()=>{!N&&!v&&V()},[N,v,V]),F.current=n,E.useEffect(()=>{v&&w&&(k.current?.dispose(),k.current=P.current?.onDidChangeModelContent(D=>{W.current||w(P.current.getValue(),D)}))},[v,w]),E.useEffect(()=>{if(v){let D=T.current.editor.onDidChangeMarkers(B=>{let L=P.current.getModel()?.uri;if(L&&B.find(G=>G.path===L.path)){let G=T.current.editor.getModelMarkers({resource:L});S?.(G)}});return()=>{D?.dispose()}}return()=>{}},[v,S]);function _(){k.current?.dispose(),f?d&&pc.set(i,P.current.saveViewState()):P.current.getModel()?.dispose(),P.current.dispose()}return E.createElement(Fy,{width:g,height:h,isEditorReady:v,loading:l,_ref:M,className:m,wrapperProps:p})}var d$=u$;E.memo(d$);var Or={fullscreenEnabled:0,fullscreenElement:1,requestFullscreen:2,exitFullscreen:3,fullscreenchange:4,fullscreenerror:5,fullscreen:6},jy=["webkitFullscreenEnabled","webkitFullscreenElement","webkitRequestFullscreen","webkitExitFullscreen","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],Ry=["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],Ly=["msFullscreenEnabled","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"],hr=typeof window<"u"&&typeof window.document<"u"?window.document:{},Dr="fullscreenEnabled"in hr&&Object.keys(Or)||jy[0]in hr&&jy||Ry[0]in hr&&Ry||Ly[0]in hr&&Ly||[],Vn={requestFullscreen:function(e){return e[Dr[Or.requestFullscreen]]()},requestFullscreenFunction:function(e){return e[Dr[Or.requestFullscreen]]},get exitFullscreen(){return hr[Dr[Or.exitFullscreen]].bind(hr)},get fullscreenPseudoClass(){return":"+Dr[Or.fullscreen]},addEventListener:function(e,t,r){return hr.addEventListener(Dr[Or[e]],t,r)},removeEventListener:function(e,t,r){return hr.removeEventListener(Dr[Or[e]],t,r)},get fullscreenEnabled(){return!!hr[Dr[Or.fullscreenEnabled]]},set fullscreenEnabled(e){},get fullscreenElement(){return hr[Dr[Or.fullscreenElement]]},set fullscreenElement(e){},get onfullscreenchange(){return hr[("on"+Dr[Or.fullscreenchange]).toLowerCase()]},set onfullscreenchange(e){return hr[("on"+Dr[Or.fullscreenchange]).toLowerCase()]=e},get onfullscreenerror(){return hr[("on"+Dr[Or.fullscreenerror]).toLowerCase()]},set onfullscreenerror(e){return hr[("on"+Dr[Or.fullscreenerror]).toLowerCase()]=e}};function f$(){var e=E.useState(!1),t=e[0],r=e[1],n=E.useRef(null);E.useEffect(function(){var a=function(){r(Vn.fullscreenElement===n.current)};return Vn.addEventListener("fullscreenchange",a),function(){return Vn.removeEventListener("fullscreenchange",a)}},[]);var o=E.useCallback(function(){if(Vn.fullscreenElement)return Vn.exitFullscreen().then(function(){return Vn.requestFullscreen(n.current)});if(n.current)return Vn.requestFullscreen(n.current)},[]),i=E.useCallback(function(){return Vn.fullscreenElement===n.current?Vn.exitFullscreen():Promise.resolve()},[]);return E.useMemo(function(){return{active:t,enter:o,exit:i,node:n}},[t,o,i])}var m$=function(t){var r=t.handle,n=t.onChange,o=t.children,i=t.className,a=[];return i&&a.push(i),a.push("fullscreen"),r.active&&a.push("fullscreen-enabled"),E.useEffect(function(){n&&n(r.active,r)},[r.active]),E.createElement("div",{className:a.join(" "),ref:r.node,style:r.active?{height:"100%",width:"100%"}:void 0},o)},Uf,Dy;function p$(){if(Dy)return Uf;Dy=1;var e="Expected a function",t=NaN,r="[object Symbol]",n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,l=typeof Xa=="object"&&Xa&&Xa.Object===Object&&Xa,c=typeof self=="object"&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype,f=d.toString,g=Math.max,h=Math.min,m=function(){return u.Date.now()};function p(v,I,N){var O,T,P,M,x,$,k=0,F=!1,j=!1,z=!0;if(typeof v!="function")throw new TypeError(e);I=S(I)||0,b(N)&&(F=!!N.leading,j="maxWait"in N,P=j?g(S(N.maxWait)||0,I):P,z="trailing"in N?!!N.trailing:z);function W(U){var K=O,Z=T;return O=T=void 0,k=U,M=v.apply(Z,K),M}function V(U){return k=U,x=setTimeout(B,I),F?W(U):M}function _(U){var K=U-$,Z=U-k,se=I-K;return j?h(se,P-Z):se}function D(U){var K=U-$,Z=U-k;return $===void 0||K>=I||K<0||j&&Z>=P}function B(){var U=m();if(D(U))return L(U);x=setTimeout(B,_(U))}function L(U){return x=void 0,z&&O?W(U):(O=T=void 0,M)}function G(){x!==void 0&&clearTimeout(x),k=0,O=$=T=x=void 0}function Q(){return x===void 0?M:L(m())}function q(){var U=m(),K=D(U);if(O=arguments,T=this,$=U,K){if(x===void 0)return V($);if(j)return x=setTimeout(B,I),W($)}return x===void 0&&(x=setTimeout(B,I)),M}return q.cancel=G,q.flush=Q,q}function b(v){var I=typeof v;return!!v&&(I=="object"||I=="function")}function y(v){return!!v&&typeof v=="object"}function w(v){return typeof v=="symbol"||y(v)&&f.call(v)==r}function S(v){if(typeof v=="number")return v;if(w(v))return t;if(b(v)){var I=typeof v.valueOf=="function"?v.valueOf():v;v=b(I)?I+"":I}if(typeof v!="string")return v===0?v:+v;v=v.replace(n,"");var N=i.test(v);return N||a.test(v)?s(v.slice(2),N?2:8):o.test(v)?t:+v}return Uf=p,Uf}var g$=p$();const h$=Oc(g$),vr={createSuccess:function(e){return`${e} created successfully.`},createFailure:function(e){return`${e} creation failed. Please retry.`},updateSuccess:function(e){return`${e} updated successfully.`},updateFailure:function(e){return`${e} update failed. Please retry.`},copySuccess:function(e){return`${e} copied successfully.`},copyFailure:function(e){return`${e} copy failed. Please retry.`},copyToClipboard:function(e){return`${e} copied to clipboard.`},deleteSuccess:function(e){return`${e} deleted successfully.`},deleteFailure:function(e){return`${e} delete failed. Please retry.`},errorMessage:"Something went wrong.",requiredFieldError:"Please fill out all mandatory fields.",noItemSelected:"No item selected.",invalidFileType:"Non acceptable file type.",formatFailed:"Failed to format."},_y=({monacoEditor:e,currentEditorModel:t,code:r,setCode:n,enable:o,checkSyntaxAPI:i,formatCodeAPI:a})=>{const[s,l]=E.useState(null),[c,u]=E.useState(!1);function d(m){const p={};let b=0;return{result:m.replace(/{{(.*?)}}/g,(w,S,v,I)=>{const N=I.slice(0,v),O=I.slice(v+w.length),T=N.endsWith('"')&&O.startsWith('"'),P=N.endsWith("'")&&O.startsWith("'");return T||P?w:(p[`__dynamic_value_${b}`]=w,`"__dynamic_value_${b++}"`)}),originalValues:p}}function f(m,p){return m.replace(/"__dynamic_value_\d+"/g,b=>{const y=b.slice(1,-1);return p[y]||b})}const g=async()=>{if(!e||!t||!i){console.warn("Monaco editor, model, or syntax check API not available");return}u(!0);try{const{result:m}=d(r),b=(await i(m))?.data?.error;if(b?.message){l(b);const y=[{startLineNumber:b.line||1,endLineNumber:b.line||1,startColumn:b.column||1,endColumn:b.column||1,message:b.message,severity:e.MarkerSeverity?.Error||8}];try{e.editor.setModelMarkers(t,"owner",y)}catch(w){console.warn("Failed to set error markers:",w)}}else{l(null);try{e.editor.setModelMarkers(t,"owner",[])}catch(y){console.warn("Failed to clear error markers:",y)}}}catch(m){if(console.warn("Syntax check failed:",m),l(null),e&&t)try{e.editor.setModelMarkers(t,"owner",[])}catch(p){console.warn("Failed to clear error markers after error:",p)}}finally{u(!1)}},h=async()=>{if(!e||!t||!a){console.warn("Monaco editor, model, or format API not available");return}u(!0);try{const{result:m,originalValues:p}=d(r),b=await a(m);if(b?.data?.formatted_code){const y=f(b.data.formatted_code,p);n(y)}else console.warn("No formatted code received from service")}catch(m){const p=m?.message||vr.formatFailed;console.warn("Code formatting failed:",p),Pe.error(p,{toastId:p})}finally{u(!1)}};return E.useEffect(()=>{if(e&&o&&i){const m=h$(g,500);return m(),()=>{m.cancel()}}},[r,e]),{pythonError:s,pythonLoading:c,handleCheckSyntax:g,handleFormatCode:h}},Vy=()=>{const[e,t]=E.useState("light"),[r,n]=E.useState("vs"),o=E.useCallback(i=>{n(i),t(i==="vs-dark"?"dark":"light")},[]);return{theme:e,editorTheme:r,setEditorTheme:o}};class vi{static instance;monaco=null;initialized=!1;initializationPromise=null;static getInstance(){return vi.instance||(vi.instance=new vi),vi.instance}async initialize(){return this.initialized&&this.monaco?this.monaco:this.initializationPromise?this.initializationPromise:(this.initializationPromise=this.performInitialization(),this.initializationPromise)}async performInitialization(){try{return this.monaco=await Hf.init(),this.initialized=!0,this.initializationPromise=null,this.monaco}catch(t){throw this.initializationPromise=null,console.error("Failed to initialize Monaco Editor:",t),new Error(`Monaco Editor initialization failed: ${t instanceof Error?t.message:"Unknown error"}`)}}getMonaco(){return this.monaco}isInitialized(){return this.initialized}getEditorInstance(t=0){if(!this.monaco)return console.warn("Monaco Editor not initialized"),null;const r=this.monaco.editor.getEditors();return r.length<=t?(console.warn(`No editor found at index ${t}. Available editors: ${r.length}`),null):r[t]}getFirstEditorInstance(){return this.getEditorInstance(0)}static safeDispose(t){t.forEach(r=>{try{r&&typeof r.dispose=="function"&&r.dispose()}catch(n){console.warn("Error disposing Monaco resource:",n)}})}}const By=vi.getInstance(),zy=e=>{try{return JSON.parse(e)}catch(t){throw new Error(`Invalid JSON: ${t.message}`)}},v$=e=>{if(!e.length)return[];const t=[...e].sort((n,o)=>n.length-o.length),r=[];for(const n of t)!r.some(i=>n.startsWith(i+".")||n===i)&&r.push(n);return r},b$=e=>{const t="0123456789abcdef";let r="";for(let n=0;n<e;n++)r+=t[Math.floor(Math.random()*t.length)];return r},Gy=({style:e,value:t,onChange:r,isEditMode:n,isDarkMode:o,allExpanded:i})=>{const[a,s]=E.useState({}),[l,c]=E.useState(null);E.useEffect(()=>{try{const d=zy(t);s(d),c(null)}catch(d){c("Invalid JSON: "+d.message)}},[t]);const u=(d,f,g=0)=>{const h=g*20;if(d===null)return C.jsxs("div",{style:{marginLeft:h},className:"text-neutral-500",children:[f&&C.jsxs("span",{className:"text-blue-600",children:[f,": "]}),C.jsx("span",{children:"null"})]});if(typeof d=="boolean"||typeof d=="number")return C.jsxs("div",{style:{marginLeft:h},className:"text-orange-600",children:[f&&C.jsxs("span",{className:"text-blue-600",children:[f,": "]}),C.jsx("span",{children:String(d)})]});if(typeof d=="string")return C.jsxs("div",{style:{marginLeft:h},className:"text-green-600",children:[f&&C.jsxs("span",{className:"text-blue-600",children:[f,": "]}),C.jsxs("span",{children:['"',d,'"']})]});if(Array.isArray(d))return C.jsxs("div",{style:{marginLeft:h},children:[f&&C.jsxs("span",{className:"text-blue-600",children:[f,": "]}),C.jsx("span",{className:"text-neutral-600",children:"["}),d.length>0&&C.jsx("div",{className:"ml-4",children:d.map((m,p)=>C.jsxs("div",{children:[u(m,void 0,g+1),p<d.length-1&&C.jsx("span",{className:"text-neutral-600",children:","})]},p))}),C.jsx("span",{className:"text-neutral-600",children:"]"})]});if(typeof d=="object"&&d!==null){const m=Object.entries(d);return C.jsxs("div",{style:{marginLeft:h},children:[f&&C.jsxs("span",{className:"text-blue-600",children:[f,": "]}),C.jsx("span",{className:"text-neutral-600",children:"{"}),m.length>0&&C.jsx("div",{className:"ml-4",children:m.map(([p,b],y)=>C.jsxs("div",{children:[u(b,p,g+1),y<m.length-1&&C.jsx("span",{className:"text-neutral-600",children:","})]},p))}),C.jsx("span",{className:"text-neutral-600",children:"}"})]})}return null};return C.jsx("div",{className:`bg-white dark:bg-neutral-800 rounded-b-lg p-4 overflow-auto font-mono text-sm ${o?"text-white":"text-neutral-900"}`,style:e,children:l?C.jsx("div",{className:"text-red-600 font-medium",children:l}):C.jsx("div",{className:"whitespace-pre-wrap",children:u(a)})})},Hy=({variant:e="default",tabs:t,activeTab:r,onTabClick:n,size:o="md",tabIcons:i={},height:a="h-6",className:s})=>e==="switch"?C.jsx("div",{className:J("inline",s),children:C.jsx("ul",{className:"inline-flex grow-0 p-1 rounded-lg bg-neutral-100 dark:bg-neutral-700 w-auto",children:t.map(l=>{const c=r===l,u=i?.[l];return C.jsx("li",{className:"inline-flex w-auto",children:C.jsxs("button",{onClick:()=>n(l),className:J("relative py-0.5 px-3 border-gray-200",a,"w-auto flex items-center justify-center","relative text-xs font-semibold font-sans whitespace-nowrap",c?"text-neutral-900 dark:text-neutral-100":"text-neutral-700 dark:text-neutral-100"),children:[c&&C.jsx("span",{className:"absolute inset-0 bg-white dark:bg-neutral-800 rounded-md z-0"}),C.jsxs("span",{className:"relative z-10 flex items-center gap-1",children:[u,l]})]})},l)})})}):C.jsx("div",{className:J("w-full",s),children:C.jsx("ul",{className:J("flex items-center w-full",o==="sm"?"gap-1":"gap-2"),children:t.map(l=>{const c=r===l,u=i?.[l];return C.jsx("li",{className:"sm:mr-2",children:C.jsxs("button",{onClick:()=>n(l),className:J("relative inline-flex pt-1 pb-3 px-2 pl-3 sm:px-2 rounded-t-lg group","relative uppercase font-sans font-semibold text-sm whitespace-nowrap",c?"text-blue-600 dark:text-blue-500":"text-neutral-400 hover:text-neutral-500 dark:text-neutral-100 dark:hover:text-white"),children:[C.jsxs("span",{className:"flex items-center gap-1",children:[u,l]}),c&&C.jsx("span",{className:"absolute left-0 bottom-0 w-full h-[3px] bg-blue-600"})]})},l)})})}),y$=()=>C.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0L19.2 12l-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"})}),C$=()=>C.jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M3 3v8h8V3H3zm6 6H5V5h4v4zm-6 4v8h8v-8H3zm6 6H5v-4h4v4zm4-16v8h8V3h-8zm6 6h-4V5h4v4zm-6 4v8h8v-8h-8zm6 6h-4v-4h4v4z"})}),x$=()=>C.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M17.75 4.09L15.22 6.03L16.13 9.09L13.5 7.28L10.87 9.09L11.78 6.03L9.25 4.09L12.44 4L13.5 1L14.56 4L17.75 4.09ZM21.25 11L19.61 12.25L20.2 14.23L18.5 13.06L16.8 14.23L17.39 12.25L15.75 11L17.81 10.95L18.5 9L19.19 10.95L21.25 11ZM18.97 15.95C19.8 15.87 20.69 17.05 20.16 17.8C19.84 18.25 19.5 18.67 19.08 19.07C15.17 23 8.84 23 4.94 19.07C1.03 15.17 1.03 8.83 4.94 4.93C5.34 4.53 5.76 4.17 6.21 3.85C6.96 3.32 8.14 4.21 8.06 5.04C7.79 7.9 8.75 10.87 10.95 13.06C13.14 15.26 16.1 16.22 18.97 15.95Z"})}),w$=()=>C.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M12,8A4,4 0 0,0 8,12A4,4 0 0,0 12,16A4,4 0 0,0 16,12A4,4 0 0,0 12,8M12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6A6,6 0 0,1 18,12A6,6 0 0,1 12,18M20,8.69V4H15.31L12,0.69L8.69,4H4V8.69L0.69,12L4,15.31V20H8.69L12,23.31L15.31,20H20V15.31L23.31,12L20,8.69Z"})}),S$=()=>C.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})}),E$=()=>C.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"})}),I$=()=>C.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M7,14H5V19H10V17H7V14M12,14H17V17H14V19H19V14H17V12H12V14M12,10H17V7H14V5H19V10H17V12H12V10M7,10H10V12H5V7H10V5H5V10H7V12"})}),A$=()=>C.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M3,3H21V5H3V3M3,7H15V9H3V7M3,11H21V13H3V11M3,15H15V17H3V15M3,19H21V21H3V19Z"})}),N$=()=>C.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"})}),O$=()=>C.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M16.59,8.59L12,13.17L7.41,8.59L6,10L12,16L18,10L16.59,8.59Z"})}),T$=()=>C.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"})}),P$={JSON:C.jsx(y$,{}),Grid:C.jsx(C$,{})},k$=["JSON","Grid"],F$=({value:e,onChange:t=()=>!1,withFullScreen:r=!0,withTheme:n=!0,isEditMode:o=!1,height:i="55vh",language:a="json",monacoEditor:s,isShowCopy:l=!0,isShowDownload:c=!0,setIsDisableSave:u,withJsonGrid:d=!0})=>{const f=E.useRef(null),{editorTheme:g,setEditorTheme:h,theme:m}=Vy(),[p,b]=E.useState(!1),[y,w]=E.useState(null),[S,v]=E.useState(null),[I,N]=E.useState(!1);E.useEffect(()=>{(async()=>{try{const K=await By.initialize();v(K),N(!0)}catch(K){console.error("Failed to initialize Monaco Editor:",K),N(!1)}})()},[]);const O=s||S,{handleFormatCode:T,pythonError:P,pythonLoading:M}=_y({code:e,setCode:t,currentEditorModel:y,monacoEditor:O,enable:o===!0&&a==="python"}),x=f$(),[$,k]=E.useState("JSON"),[F,j]=E.useState(!1),z=a==="json",W=()=>{x?.active?x.exit():x.enter()},V=U=>{f.current=U;const K=()=>{try{if(a==="python"){const Z=U.getModel();Z&&w(Z)}a==="json"&&requestAnimationFrame(()=>{D()}),U.updateOptions({fontSize:14})}catch(Z){console.warn("Failed to initialize editor:",Z)}};if(U.getModel())K();else{const Z=U.onDidChangeModel(()=>{K(),Z.dispose()})}},_=()=>{try{const U=JSON.parse(e),K=JSON.stringify(U,null,4);t(K),y&&O&&O.editor.setModelMarkers(y,"json",[])}catch(U){if(y&&O){const K=U instanceof Error?U.message:"Invalid JSON";try{O.editor.setModelMarkers(y,"json",[{startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1,message:`Cannot format: ${K}`,severity:O.MarkerSeverity.Error}])}catch(Z){console.warn("Failed to set JSON error markers:",Z)}}}},D=()=>{if(a==="python"){T();return}if(a==="json"){_();return}if(f.current)try{const U=f.current.getAction("editor.action.formatDocument");U&&U.run()}catch(U){console.warn("Failed to format document:",U)}},B=U=>{typeof U=="string"&&t(U)};if(E.useEffect(()=>{u&&u(P||M)},[P,M,u]),!s&&!I)return C.jsx("div",{className:"flex items-center justify-center p-8 border border-neutral-200 dark:border-neutral-700 rounded-lg",children:C.jsx("div",{className:"text-neutral-600 dark:text-neutral-400",children:"Loading editor..."})});const L=J("hover:bg-neutral-300 hover:dark:bg-neutral-700 p-0.5 rounded-md flex items-center justify-center"),G=()=>{if(a==="python")try{let U=e;U&&(U=U.replace(/\r\n/g,`
|
|
351
|
+
`},Oy=$F(LF)(Ny),DF={config:jF},_F=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(i,a){return a(i)},o)}};function Ty(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],Ty(e[r],t[r]))}),Sy(Sy({},e),t)}var VF={type:"cancelation",msg:"operation is manually canceled"};function zf(e){var t=!1,r=new Promise(function(n,o){e.then(function(i){return t?o(VF):n(i)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var BF=kF.create({config:FF,isInitialized:!1,resolve:null,reject:null,monaco:null}),Py=fF(BF,2),ja=Py[0],pc=Py[1];function zF(e){var t=DF.config(e),r=t.monaco,n=dF(t,["monaco"]);pc(function(o){return{config:Ty(o.config,n),monaco:r}})}function GF(){var e=ja(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(pc({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),zf(Gf);if(window.monaco&&window.monaco.editor)return ky(window.monaco),e.resolve(window.monaco),zf(Gf);_F(HF,UF)(XF)}return zf(Gf)}function HF(e){return document.body.appendChild(e)}function WF(e){var t=document.createElement("script");return e&&(t.src=e),t}function UF(e){var t=ja(function(n){var o=n.config,i=n.reject;return{config:o,reject:i}}),r=WF("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function XF(){var e=ja(function(r){var n=r.config,o=r.resolve,i=r.reject;return{config:n,resolve:o,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){ky(r),e.resolve(r)},function(r){e.reject(r)})}function ky(e){ja().monaco||pc({monaco:e})}function YF(){return ja(function(e){var t=e.monaco;return t})}var Gf=new Promise(function(e,t){return pc({resolve:e,reject:t})}),Hf={config:zF,init:GF,__getMonacoInstance:YF},JF={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Wf=JF,ZF={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},qF=ZF;function QF({children:e}){return E.createElement("div",{style:qF.container},e)}var KF=QF,e$=KF;function t$({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:i,wrapperProps:a}){return E.createElement("section",{style:{...Wf.wrapper,width:e,height:t},...a},!r&&E.createElement(e$,null,n),E.createElement("div",{ref:o,style:{...Wf.fullWidth,...!r&&Wf.hide},className:i}))}var r$=t$,Fy=E.memo(r$);function n$(e){E.useEffect(e,[])}var $y=n$;function o$(e,t,r=!0){let n=E.useRef(!0);E.useEffect(n.current||!r?()=>{n.current=!1}:e,t)}var Nr=o$;function Ra(){}function hi(e,t,r,n){return i$(e,n)||a$(e,t,r,n)}function i$(e,t){return e.editor.getModel(My(e,t))}function a$(e,t,r,n){return e.editor.createModel(t,r,n?My(e,n):void 0)}function My(e,t){return e.Uri.parse(t)}function s$({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:a,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:l=!1,theme:c="light",loading:u="Loading...",options:d={},height:f="100%",width:g="100%",className:h,wrapperProps:m={},beforeMount:p=Ra,onMount:b=Ra}){let[y,w]=E.useState(!1),[S,v]=E.useState(!0),I=E.useRef(null),N=E.useRef(null),O=E.useRef(null),T=E.useRef(b),P=E.useRef(p),M=E.useRef(!1);$y(()=>{let F=Hf.init();return F.then(j=>(N.current=j)&&v(!1)).catch(j=>j?.type!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>I.current?k():F.cancel()}),Nr(()=>{if(I.current&&N.current){let F=I.current.getOriginalEditor(),j=hi(N.current,e||"",n||r||"text",i||"");j!==F.getModel()&&F.setModel(j)}},[i],y),Nr(()=>{if(I.current&&N.current){let F=I.current.getModifiedEditor(),j=hi(N.current,t||"",o||r||"text",a||"");j!==F.getModel()&&F.setModel(j)}},[a],y),Nr(()=>{let F=I.current.getModifiedEditor();F.getOption(N.current.editor.EditorOption.readOnly)?F.setValue(t||""):t!==F.getValue()&&(F.executeEdits("",[{range:F.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),F.pushUndoStop())},[t],y),Nr(()=>{I.current?.getModel()?.original.setValue(e||"")},[e],y),Nr(()=>{let{original:F,modified:j}=I.current.getModel();N.current.editor.setModelLanguage(F,n||r||"text"),N.current.editor.setModelLanguage(j,o||r||"text")},[r,n,o],y),Nr(()=>{N.current?.editor.setTheme(c)},[c],y),Nr(()=>{I.current?.updateOptions(d)},[d],y);let x=E.useCallback(()=>{if(!N.current)return;P.current(N.current);let F=hi(N.current,e||"",n||r||"text",i||""),j=hi(N.current,t||"",o||r||"text",a||"");I.current?.setModel({original:F,modified:j})},[r,t,o,e,n,i,a]),$=E.useCallback(()=>{!M.current&&O.current&&(I.current=N.current.editor.createDiffEditor(O.current,{automaticLayout:!0,...d}),x(),N.current?.editor.setTheme(c),w(!0),M.current=!0)},[d,c,x]);E.useEffect(()=>{y&&T.current(I.current,N.current)},[y]),E.useEffect(()=>{!S&&!y&&$()},[S,y,$]);function k(){let F=I.current?.getModel();s||F?.original?.dispose(),l||F?.modified?.dispose(),I.current?.dispose()}return E.createElement(Fy,{width:g,height:f,isEditorReady:y,loading:u,_ref:O,className:h,wrapperProps:m})}var l$=s$;E.memo(l$);function c$(e){let t=E.useRef();return E.useEffect(()=>{t.current=e},[e]),t.current}var u$=c$,gc=new Map;function d$({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:i,theme:a="light",line:s,loading:l="Loading...",options:c={},overrideServices:u={},saveViewState:d=!0,keepCurrentModel:f=!1,width:g="100%",height:h="100%",className:m,wrapperProps:p={},beforeMount:b=Ra,onMount:y=Ra,onChange:w,onValidate:S=Ra}){let[v,I]=E.useState(!1),[N,O]=E.useState(!0),T=E.useRef(null),P=E.useRef(null),M=E.useRef(null),x=E.useRef(y),$=E.useRef(b),k=E.useRef(),F=E.useRef(n),j=u$(i),G=E.useRef(!1),W=E.useRef(!1);$y(()=>{let D=Hf.init();return D.then(B=>(T.current=B)&&O(!1)).catch(B=>B?.type!=="cancelation"&&console.error("Monaco initialization: error:",B)),()=>P.current?_():D.cancel()}),Nr(()=>{let D=hi(T.current,e||n||"",t||o||"",i||r||"");D!==P.current?.getModel()&&(d&&gc.set(j,P.current?.saveViewState()),P.current?.setModel(D),d&&P.current?.restoreViewState(gc.get(i)))},[i],v),Nr(()=>{P.current?.updateOptions(c)},[c],v),Nr(()=>{!P.current||n===void 0||(P.current.getOption(T.current.editor.EditorOption.readOnly)?P.current.setValue(n):n!==P.current.getValue()&&(W.current=!0,P.current.executeEdits("",[{range:P.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),P.current.pushUndoStop(),W.current=!1))},[n],v),Nr(()=>{let D=P.current?.getModel();D&&o&&T.current?.editor.setModelLanguage(D,o)},[o],v),Nr(()=>{s!==void 0&&P.current?.revealLine(s)},[s],v),Nr(()=>{T.current?.editor.setTheme(a)},[a],v);let V=E.useCallback(()=>{if(!(!M.current||!T.current)&&!G.current){$.current(T.current);let D=i||r,B=hi(T.current,n||e||"",t||o||"",D||"");P.current=T.current?.editor.create(M.current,{model:B,automaticLayout:!0,...c},u),d&&P.current.restoreViewState(gc.get(D)),T.current.editor.setTheme(a),s!==void 0&&P.current.revealLine(s),I(!0),G.current=!0}},[e,t,r,n,o,i,c,u,d,a,s]);E.useEffect(()=>{v&&x.current(P.current,T.current)},[v]),E.useEffect(()=>{!N&&!v&&V()},[N,v,V]),F.current=n,E.useEffect(()=>{v&&w&&(k.current?.dispose(),k.current=P.current?.onDidChangeModelContent(D=>{W.current||w(P.current.getValue(),D)}))},[v,w]),E.useEffect(()=>{if(v){let D=T.current.editor.onDidChangeMarkers(B=>{let L=P.current.getModel()?.uri;if(L&&B.find(z=>z.path===L.path)){let z=T.current.editor.getModelMarkers({resource:L});S?.(z)}});return()=>{D?.dispose()}}return()=>{}},[v,S]);function _(){k.current?.dispose(),f?d&&gc.set(i,P.current.saveViewState()):P.current.getModel()?.dispose(),P.current.dispose()}return E.createElement(Fy,{width:g,height:h,isEditorReady:v,loading:l,_ref:M,className:m,wrapperProps:p})}var f$=d$;E.memo(f$);var Or={fullscreenEnabled:0,fullscreenElement:1,requestFullscreen:2,exitFullscreen:3,fullscreenchange:4,fullscreenerror:5,fullscreen:6},jy=["webkitFullscreenEnabled","webkitFullscreenElement","webkitRequestFullscreen","webkitExitFullscreen","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],Ry=["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],Ly=["msFullscreenEnabled","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"],hr=typeof window<"u"&&typeof window.document<"u"?window.document:{},Dr="fullscreenEnabled"in hr&&Object.keys(Or)||jy[0]in hr&&jy||Ry[0]in hr&&Ry||Ly[0]in hr&&Ly||[],Vn={requestFullscreen:function(e){return e[Dr[Or.requestFullscreen]]()},requestFullscreenFunction:function(e){return e[Dr[Or.requestFullscreen]]},get exitFullscreen(){return hr[Dr[Or.exitFullscreen]].bind(hr)},get fullscreenPseudoClass(){return":"+Dr[Or.fullscreen]},addEventListener:function(e,t,r){return hr.addEventListener(Dr[Or[e]],t,r)},removeEventListener:function(e,t,r){return hr.removeEventListener(Dr[Or[e]],t,r)},get fullscreenEnabled(){return!!hr[Dr[Or.fullscreenEnabled]]},set fullscreenEnabled(e){},get fullscreenElement(){return hr[Dr[Or.fullscreenElement]]},set fullscreenElement(e){},get onfullscreenchange(){return hr[("on"+Dr[Or.fullscreenchange]).toLowerCase()]},set onfullscreenchange(e){return hr[("on"+Dr[Or.fullscreenchange]).toLowerCase()]=e},get onfullscreenerror(){return hr[("on"+Dr[Or.fullscreenerror]).toLowerCase()]},set onfullscreenerror(e){return hr[("on"+Dr[Or.fullscreenerror]).toLowerCase()]=e}};function m$(){var e=E.useState(!1),t=e[0],r=e[1],n=E.useRef(null);E.useEffect(function(){var a=function(){r(Vn.fullscreenElement===n.current)};return Vn.addEventListener("fullscreenchange",a),function(){return Vn.removeEventListener("fullscreenchange",a)}},[]);var o=E.useCallback(function(){if(Vn.fullscreenElement)return Vn.exitFullscreen().then(function(){return Vn.requestFullscreen(n.current)});if(n.current)return Vn.requestFullscreen(n.current)},[]),i=E.useCallback(function(){return Vn.fullscreenElement===n.current?Vn.exitFullscreen():Promise.resolve()},[]);return E.useMemo(function(){return{active:t,enter:o,exit:i,node:n}},[t,o,i])}var p$=function(t){var r=t.handle,n=t.onChange,o=t.children,i=t.className,a=[];return i&&a.push(i),a.push("fullscreen"),r.active&&a.push("fullscreen-enabled"),E.useEffect(function(){n&&n(r.active,r)},[r.active]),E.createElement("div",{className:a.join(" "),ref:r.node,style:r.active?{height:"100%",width:"100%"}:void 0},o)},Uf,Dy;function g$(){if(Dy)return Uf;Dy=1;var e="Expected a function",t=NaN,r="[object Symbol]",n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,l=typeof Ya=="object"&&Ya&&Ya.Object===Object&&Ya,c=typeof self=="object"&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype,f=d.toString,g=Math.max,h=Math.min,m=function(){return u.Date.now()};function p(v,I,N){var O,T,P,M,x,$,k=0,F=!1,j=!1,G=!0;if(typeof v!="function")throw new TypeError(e);I=S(I)||0,b(N)&&(F=!!N.leading,j="maxWait"in N,P=j?g(S(N.maxWait)||0,I):P,G="trailing"in N?!!N.trailing:G);function W(U){var K=O,Z=T;return O=T=void 0,k=U,M=v.apply(Z,K),M}function V(U){return k=U,x=setTimeout(B,I),F?W(U):M}function _(U){var K=U-$,Z=U-k,se=I-K;return j?h(se,P-Z):se}function D(U){var K=U-$,Z=U-k;return $===void 0||K>=I||K<0||j&&Z>=P}function B(){var U=m();if(D(U))return L(U);x=setTimeout(B,_(U))}function L(U){return x=void 0,G&&O?W(U):(O=T=void 0,M)}function z(){x!==void 0&&clearTimeout(x),k=0,O=$=T=x=void 0}function Q(){return x===void 0?M:L(m())}function q(){var U=m(),K=D(U);if(O=arguments,T=this,$=U,K){if(x===void 0)return V($);if(j)return x=setTimeout(B,I),W($)}return x===void 0&&(x=setTimeout(B,I)),M}return q.cancel=z,q.flush=Q,q}function b(v){var I=typeof v;return!!v&&(I=="object"||I=="function")}function y(v){return!!v&&typeof v=="object"}function w(v){return typeof v=="symbol"||y(v)&&f.call(v)==r}function S(v){if(typeof v=="number")return v;if(w(v))return t;if(b(v)){var I=typeof v.valueOf=="function"?v.valueOf():v;v=b(I)?I+"":I}if(typeof v!="string")return v===0?v:+v;v=v.replace(n,"");var N=i.test(v);return N||a.test(v)?s(v.slice(2),N?2:8):o.test(v)?t:+v}return Uf=p,Uf}var h$=g$();const v$=Tc(h$),vr={createSuccess:function(e){return`${e} created successfully.`},createFailure:function(e){return`${e} creation failed. Please retry.`},updateSuccess:function(e){return`${e} updated successfully.`},updateFailure:function(e){return`${e} update failed. Please retry.`},copySuccess:function(e){return`${e} copied successfully.`},copyFailure:function(e){return`${e} copy failed. Please retry.`},copyToClipboard:function(e){return`${e} copied to clipboard.`},deleteSuccess:function(e){return`${e} deleted successfully.`},deleteFailure:function(e){return`${e} delete failed. Please retry.`},errorMessage:"Something went wrong.",requiredFieldError:"Please fill out all mandatory fields.",noItemSelected:"No item selected.",invalidFileType:"Non acceptable file type.",formatFailed:"Failed to format."},_y=({monacoEditor:e,currentEditorModel:t,code:r,setCode:n,enable:o,checkSyntaxAPI:i,formatCodeAPI:a})=>{const[s,l]=E.useState(null),[c,u]=E.useState(!1);function d(m){const p={};let b=0;return{result:m.replace(/{{(.*?)}}/g,(w,S,v,I)=>{const N=I.slice(0,v),O=I.slice(v+w.length),T=N.endsWith('"')&&O.startsWith('"'),P=N.endsWith("'")&&O.startsWith("'");return T||P?w:(p[`__dynamic_value_${b}`]=w,`"__dynamic_value_${b++}"`)}),originalValues:p}}function f(m,p){return m.replace(/"__dynamic_value_\d+"/g,b=>{const y=b.slice(1,-1);return p[y]||b})}const g=async()=>{if(!e||!t||!i){console.warn("Monaco editor, model, or syntax check API not available");return}u(!0);try{const{result:m}=d(r),b=(await i(m))?.data?.error;if(b?.message){l(b);const y=[{startLineNumber:b.line||1,endLineNumber:b.line||1,startColumn:b.column||1,endColumn:b.column||1,message:b.message,severity:e.MarkerSeverity?.Error||8}];try{e.editor.setModelMarkers(t,"owner",y)}catch(w){console.warn("Failed to set error markers:",w)}}else{l(null);try{e.editor.setModelMarkers(t,"owner",[])}catch(y){console.warn("Failed to clear error markers:",y)}}}catch(m){if(console.warn("Syntax check failed:",m),l(null),e&&t)try{e.editor.setModelMarkers(t,"owner",[])}catch(p){console.warn("Failed to clear error markers after error:",p)}}finally{u(!1)}},h=async()=>{if(!e||!t||!a){console.warn("Monaco editor, model, or format API not available");return}u(!0);try{const{result:m,originalValues:p}=d(r),b=await a(m);if(b?.data?.formatted_code){const y=f(b.data.formatted_code,p);n(y)}else console.warn("No formatted code received from service")}catch(m){const p=m?.message||vr.formatFailed;console.warn("Code formatting failed:",p),Pe.error(p,{toastId:p})}finally{u(!1)}};return E.useEffect(()=>{if(e&&o&&i){const m=v$(g,500);return m(),()=>{m.cancel()}}},[r,e]),{pythonError:s,pythonLoading:c,handleCheckSyntax:g,handleFormatCode:h}},Vy=()=>{const[e,t]=E.useState("light"),[r,n]=E.useState("vs"),o=E.useCallback(i=>{n(i),t(i==="vs-dark"?"dark":"light")},[]);return{theme:e,editorTheme:r,setEditorTheme:o}};class vi{static instance;monaco=null;initialized=!1;initializationPromise=null;static getInstance(){return vi.instance||(vi.instance=new vi),vi.instance}async initialize(){return this.initialized&&this.monaco?this.monaco:this.initializationPromise?this.initializationPromise:(this.initializationPromise=this.performInitialization(),this.initializationPromise)}async performInitialization(){try{return this.monaco=await Hf.init(),this.initialized=!0,this.initializationPromise=null,this.monaco}catch(t){throw this.initializationPromise=null,console.error("Failed to initialize Monaco Editor:",t),new Error(`Monaco Editor initialization failed: ${t instanceof Error?t.message:"Unknown error"}`)}}getMonaco(){return this.monaco}isInitialized(){return this.initialized}getEditorInstance(t=0){if(!this.monaco)return console.warn("Monaco Editor not initialized"),null;const r=this.monaco.editor.getEditors();return r.length<=t?(console.warn(`No editor found at index ${t}. Available editors: ${r.length}`),null):r[t]}getFirstEditorInstance(){return this.getEditorInstance(0)}static safeDispose(t){t.forEach(r=>{try{r&&typeof r.dispose=="function"&&r.dispose()}catch(n){console.warn("Error disposing Monaco resource:",n)}})}}const By=vi.getInstance(),zy=e=>{try{return JSON.parse(e)}catch(t){throw new Error(`Invalid JSON: ${t.message}`)}},b$=e=>{if(!e.length)return[];const t=[...e].sort((n,o)=>n.length-o.length),r=[];for(const n of t)!r.some(i=>n.startsWith(i+".")||n===i)&&r.push(n);return r},y$=e=>{const t="0123456789abcdef";let r="";for(let n=0;n<e;n++)r+=t[Math.floor(Math.random()*t.length)];return r},Gy=({style:e,value:t,onChange:r,isEditMode:n,isDarkMode:o,allExpanded:i})=>{const[a,s]=E.useState({}),[l,c]=E.useState(null);E.useEffect(()=>{try{const d=zy(t);s(d),c(null)}catch(d){c("Invalid JSON: "+d.message)}},[t]);const u=(d,f,g=0)=>{const h=g*20;if(d===null)return C.jsxs("div",{style:{marginLeft:h},className:"text-neutral-500",children:[f&&C.jsxs("span",{className:"text-blue-600",children:[f,": "]}),C.jsx("span",{children:"null"})]});if(typeof d=="boolean"||typeof d=="number")return C.jsxs("div",{style:{marginLeft:h},className:"text-orange-600",children:[f&&C.jsxs("span",{className:"text-blue-600",children:[f,": "]}),C.jsx("span",{children:String(d)})]});if(typeof d=="string")return C.jsxs("div",{style:{marginLeft:h},className:"text-green-600",children:[f&&C.jsxs("span",{className:"text-blue-600",children:[f,": "]}),C.jsxs("span",{children:['"',d,'"']})]});if(Array.isArray(d))return C.jsxs("div",{style:{marginLeft:h},children:[f&&C.jsxs("span",{className:"text-blue-600",children:[f,": "]}),C.jsx("span",{className:"text-neutral-600",children:"["}),d.length>0&&C.jsx("div",{className:"ml-4",children:d.map((m,p)=>C.jsxs("div",{children:[u(m,void 0,g+1),p<d.length-1&&C.jsx("span",{className:"text-neutral-600",children:","})]},p))}),C.jsx("span",{className:"text-neutral-600",children:"]"})]});if(typeof d=="object"&&d!==null){const m=Object.entries(d);return C.jsxs("div",{style:{marginLeft:h},children:[f&&C.jsxs("span",{className:"text-blue-600",children:[f,": "]}),C.jsx("span",{className:"text-neutral-600",children:"{"}),m.length>0&&C.jsx("div",{className:"ml-4",children:m.map(([p,b],y)=>C.jsxs("div",{children:[u(b,p,g+1),y<m.length-1&&C.jsx("span",{className:"text-neutral-600",children:","})]},p))}),C.jsx("span",{className:"text-neutral-600",children:"}"})]})}return null};return C.jsx("div",{className:`bg-white dark:bg-neutral-800 rounded-b-lg p-4 overflow-auto font-mono text-sm ${o?"text-white":"text-neutral-900"}`,style:e,children:l?C.jsx("div",{className:"text-red-600 font-medium",children:l}):C.jsx("div",{className:"whitespace-pre-wrap",children:u(a)})})},Hy=({variant:e="default",tabs:t,activeTab:r,onTabClick:n,size:o="md",tabIcons:i={},height:a="h-6",className:s})=>e==="switch"?C.jsx("div",{className:J("inline",s),children:C.jsx("ul",{className:"inline-flex grow-0 p-1 rounded-lg bg-neutral-100 dark:bg-neutral-700 w-auto",children:t.map(l=>{const c=r===l,u=i?.[l];return C.jsx("li",{className:"inline-flex w-auto",children:C.jsxs("button",{onClick:()=>n(l),className:J("relative py-0.5 px-3 border-gray-200",a,"w-auto flex items-center justify-center","relative text-xs font-semibold font-sans whitespace-nowrap",c?"text-neutral-900 dark:text-neutral-100":"text-neutral-700 dark:text-neutral-100"),children:[c&&C.jsx("span",{className:"absolute inset-0 bg-white dark:bg-neutral-800 rounded-md z-0"}),C.jsxs("span",{className:"relative z-10 flex items-center gap-1",children:[u,l]})]})},l)})})}):C.jsx("div",{className:J("w-full",s),children:C.jsx("ul",{className:J("flex items-center w-full",o==="sm"?"gap-1":"gap-2"),children:t.map(l=>{const c=r===l,u=i?.[l];return C.jsx("li",{className:"sm:mr-2",children:C.jsxs("button",{onClick:()=>n(l),className:J("relative inline-flex pt-1 pb-3 px-2 pl-3 sm:px-2 rounded-t-lg group","relative uppercase font-sans font-semibold text-sm whitespace-nowrap",c?"text-blue-600 dark:text-blue-500":"text-neutral-400 hover:text-neutral-500 dark:text-neutral-100 dark:hover:text-white"),children:[C.jsxs("span",{className:"flex items-center gap-1",children:[u,l]}),c&&C.jsx("span",{className:"absolute left-0 bottom-0 w-full h-[3px] bg-blue-600"})]})},l)})})}),C$=()=>C.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0L19.2 12l-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"})}),x$=()=>C.jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M3 3v8h8V3H3zm6 6H5V5h4v4zm-6 4v8h8v-8H3zm6 6H5v-4h4v4zm4-16v8h8V3h-8zm6 6h-4V5h4v4zm-6 4v8h8v-8h-8zm6 6h-4v-4h4v4z"})}),w$=()=>C.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M17.75 4.09L15.22 6.03L16.13 9.09L13.5 7.28L10.87 9.09L11.78 6.03L9.25 4.09L12.44 4L13.5 1L14.56 4L17.75 4.09ZM21.25 11L19.61 12.25L20.2 14.23L18.5 13.06L16.8 14.23L17.39 12.25L15.75 11L17.81 10.95L18.5 9L19.19 10.95L21.25 11ZM18.97 15.95C19.8 15.87 20.69 17.05 20.16 17.8C19.84 18.25 19.5 18.67 19.08 19.07C15.17 23 8.84 23 4.94 19.07C1.03 15.17 1.03 8.83 4.94 4.93C5.34 4.53 5.76 4.17 6.21 3.85C6.96 3.32 8.14 4.21 8.06 5.04C7.79 7.9 8.75 10.87 10.95 13.06C13.14 15.26 16.1 16.22 18.97 15.95Z"})}),S$=()=>C.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M12,8A4,4 0 0,0 8,12A4,4 0 0,0 12,16A4,4 0 0,0 16,12A4,4 0 0,0 12,8M12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6A6,6 0 0,1 18,12A6,6 0 0,1 12,18M20,8.69V4H15.31L12,0.69L8.69,4H4V8.69L0.69,12L4,15.31V20H8.69L12,23.31L15.31,20H20V15.31L23.31,12L20,8.69Z"})}),E$=()=>C.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})}),I$=()=>C.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"})}),A$=()=>C.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M7,14H5V19H10V17H7V14M12,14H17V17H14V19H19V14H17V12H12V14M12,10H17V7H14V5H19V10H17V12H12V10M7,10H10V12H5V7H10V5H5V10H7V12"})}),N$=()=>C.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M3,3H21V5H3V3M3,7H15V9H3V7M3,11H21V13H3V11M3,15H15V17H3V15M3,19H21V21H3V19Z"})}),O$=()=>C.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"})}),T$=()=>C.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M16.59,8.59L12,13.17L7.41,8.59L6,10L12,16L18,10L16.59,8.59Z"})}),P$=()=>C.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"})}),k$={JSON:C.jsx(C$,{}),Grid:C.jsx(x$,{})},F$=["JSON","Grid"],$$=({value:e,onChange:t=()=>!1,withFullScreen:r=!0,withTheme:n=!0,isEditMode:o=!1,height:i="55vh",language:a="json",monacoEditor:s,isShowCopy:l=!0,isShowDownload:c=!0,setIsDisableSave:u,withJsonGrid:d=!0})=>{const f=E.useRef(null),{editorTheme:g,setEditorTheme:h,theme:m}=Vy(),[p,b]=E.useState(!1),[y,w]=E.useState(null),[S,v]=E.useState(null),[I,N]=E.useState(!1);E.useEffect(()=>{(async()=>{try{const K=await By.initialize();v(K),N(!0)}catch(K){console.error("Failed to initialize Monaco Editor:",K),N(!1)}})()},[]);const O=s||S,{handleFormatCode:T,pythonError:P,pythonLoading:M}=_y({code:e,setCode:t,currentEditorModel:y,monacoEditor:O,enable:o===!0&&a==="python"}),x=m$(),[$,k]=E.useState("JSON"),[F,j]=E.useState(!1),G=a==="json",W=()=>{x?.active?x.exit():x.enter()},V=U=>{f.current=U;const K=()=>{try{if(a==="python"){const Z=U.getModel();Z&&w(Z)}a==="json"&&requestAnimationFrame(()=>{D()}),U.updateOptions({fontSize:14})}catch(Z){console.warn("Failed to initialize editor:",Z)}};if(U.getModel())K();else{const Z=U.onDidChangeModel(()=>{K(),Z.dispose()})}},_=()=>{try{const U=JSON.parse(e),K=JSON.stringify(U,null,4);t(K),y&&O&&O.editor.setModelMarkers(y,"json",[])}catch(U){if(y&&O){const K=U instanceof Error?U.message:"Invalid JSON";try{O.editor.setModelMarkers(y,"json",[{startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1,message:`Cannot format: ${K}`,severity:O.MarkerSeverity.Error}])}catch(Z){console.warn("Failed to set JSON error markers:",Z)}}}},D=()=>{if(a==="python"){T();return}if(a==="json"){_();return}if(f.current)try{const U=f.current.getAction("editor.action.formatDocument");U&&U.run()}catch(U){console.warn("Failed to format document:",U)}},B=U=>{typeof U=="string"&&t(U)};if(E.useEffect(()=>{u&&u(P||M)},[P,M,u]),!s&&!I)return C.jsx("div",{className:"flex items-center justify-center p-8 border border-neutral-200 dark:border-neutral-700 rounded-lg",children:C.jsx("div",{className:"text-neutral-600 dark:text-neutral-400",children:"Loading editor..."})});const L=J("hover:bg-neutral-300 hover:dark:bg-neutral-700 p-0.5 rounded-md flex items-center justify-center"),z=()=>{if(a==="python")try{let U=e;U&&(U=U.replace(/\r\n/g,`
|
|
352
352
|
`).replace(/\r/g,`
|
|
353
353
|
`),U=U.split(`
|
|
354
354
|
`).map(K=>K.trimEnd()).join(`
|
|
355
355
|
`),U=U.replace(/\n+$/,"")+`
|
|
356
|
-
`),navigator?.clipboard?.writeText(U).then(()=>{Pe.success(vr.copySuccess("Python Code"))}).catch(K=>{const Z=K;Pe.error(Z?.message||vr.copyFailure("Python Code"),{toastId:vr.copyFailure("Python Code")})})}catch(U){const K=U;Pe.error(K?.message||vr.copyFailure("Python Code"),{toastId:vr.copyFailure("Python Code")})}else if(a==="json")try{const U=JSON.parse(e),K=JSON.stringify(U,null,4);navigator?.clipboard?.writeText(K),Pe.success(vr.copySuccess("JSON Code"))}catch(U){const K=U;Pe.error(K?.message||vr.copyFailure("JSON Code"),{toastId:vr.copyFailure("JSON Code")})}else navigator?.clipboard?.writeText(e),Pe.success(vr.copySuccess("Code"))},Q=U=>U==="python"?{type:"text/x-python",extension:"py"}:U==="json"?{type:"application/json",extension:"json"}:{type:"text/plain",extension:"txt"},q=()=>{try{const U=new Blob([e],{type:Q(a)?.type}),K=URL.createObjectURL(U),Z=document.createElement("a");Z.href=K,Z.download=`code_${Date.now()}.${Q(a)?.extension}`,document.body.appendChild(Z),Z.click(),document.body.removeChild(Z),URL.revokeObjectURL(K),Pe.success(vr.copySuccess("Code download"))}catch(U){const K=U;Pe.error(K?.message||vr.copyFailure("Code download"),{toastId:vr.copyFailure("Code download")})}};return C.jsx(m$,{handle:x,className:"h-full",children:C.jsxs("div",{className:"relative border border-neutral-200 dark:border-neutral-700 rounded-lg h-full",id:"code-editor-container-with-json-grid",children:[C.jsxs("div",{className:J(`px-3 py-2 flex items-center bg-white rounded-t-lg dark:bg-neutral-800 ${d?"border-none":"border-b border-neutral-200 dark:border-neutral-700"} `,z?"justify-between":"justify-end"),children:[z&&d&&C.jsx(Hy,{variant:"switch",tabs:k$,activeTab:$,size:"sm",onTabClick:U=>k(U),tabIcons:P$,height:"h-[20px]"}),C.jsxs("div",{className:"flex items-center gap-0.5",children:[$==="Grid"&&o&&d&&C.jsx("span",{className:"flex items-center justify-center border-r border-neutral-200 dark:border-neutral-700 mr-1.5 pr-1.5",children:C.jsx(In,{title:"Add key",children:C.jsx("button",{id:"btn-code-editor-json-grid-up",onClick:()=>j(!0),className:J("p-0.5 rounded-md flex items-center justify-center","hover:bg-blue-100 hover:dark:bg-neutral-800 text-blue-600 dark:text-neutral-100"),children:C.jsx(T$,{})})})}),$==="Grid"?C.jsxs(C.Fragment,{children:[C.jsx(In,{title:"Collapse all",children:C.jsx("button",{id:"btn-code-editor-json-grid-up",onClick:()=>b(!1),className:L,children:C.jsx(N$,{})})}),C.jsx(In,{title:"Expand all",children:C.jsx("button",{id:"btn-code-editor-json-grid-down",onClick:()=>b(!0),className:L,children:C.jsx(O$,{})})})]}):null,$==="JSON"&&d?C.jsx(In,{title:"Format",children:C.jsx("button",{id:"btn-code-editor-format-code",onClick:D,className:L,children:C.jsx(A$,{})})}):null,n&&$==="JSON"&&d?C.jsx(In,{title:g==="vs"?"Dark mode":"Light mode",children:C.jsx("button",{id:"btn-code-editor-with-theme",onClick:()=>h(g==="vs"?"vs-dark":"vs"),className:L,children:g==="vs"?C.jsx(x$,{}):C.jsx(w$,{})})}):null,(a==="python"||a==="json")&&l?C.jsx(In,{title:"Copy",children:C.jsx("button",{id:"btn-code-editor-copy-code",onClick:G,className:L,children:C.jsx(S$,{})})}):null,(a==="python"||a==="json")&&c?C.jsx(In,{title:"Download",children:C.jsx("button",{id:"btn-code-editor-download-code",onClick:q,className:L,children:C.jsx(E$,{})})}):null,r?C.jsx(In,{title:"Fullscreen",children:C.jsx("button",{onClick:W,id:"btn-code-editor-fullscreen",className:L,children:C.jsx(I$,{})})}):null]})]}),$==="Grid"&&a==="json"?C.jsx("div",{children:C.jsx(Gy,{isFullScreen:x?.active,allExpanded:p,toggleAll:()=>b(U=>!U),isEditMode:!!o,isDarkMode:m==="dark",style:{height:x?.active?"100vh":i},value:e,onChange:t,setIsAddKeyModalOpen:j,isAddKeyModalOpen:F})}):C.jsx(sF,{height:x?.active?"100vh":i,containerStyle:{height:i},language:a,value:e,onChange:B,theme:g,onMount:V,options:{fontSize:16,folding:!0,fontFamily:"Menlo, Monaco, 'Courier New', monospace",fontLigatures:!0,readOnly:!o}})]})})};class gc{diff(t,r,n={}){let o;typeof n=="function"?(o=n,n={}):"callback"in n&&(o=n.callback);const i=this.castInput(t,n),a=this.castInput(r,n),s=this.removeEmpty(this.tokenize(i,n)),l=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(s,l,n,o)}diffWithOptionsObj(t,r,n,o){var i;const a=y=>{if(y=this.postProcess(y,n),o){setTimeout(function(){o(y)},0);return}else return y},s=r.length,l=t.length;let c=1,u=s+l;n.maxEditLength!=null&&(u=Math.min(u,n.maxEditLength));const d=(i=n.timeout)!==null&&i!==void 0?i:1/0,f=Date.now()+d,g=[{oldPos:-1,lastComponent:void 0}];let h=this.extractCommon(g[0],r,t,0,n);if(g[0].oldPos+1>=l&&h+1>=s)return a(this.buildValues(g[0].lastComponent,r,t));let m=-1/0,p=1/0;const b=()=>{for(let y=Math.max(m,-c);y<=Math.min(p,c);y+=2){let w;const S=g[y-1],v=g[y+1];S&&(g[y-1]=void 0);let I=!1;if(v){const O=v.oldPos-y;I=v&&0<=O&&O<s}const N=S&&S.oldPos+1<l;if(!I&&!N){g[y]=void 0;continue}if(!N||I&&S.oldPos<v.oldPos?w=this.addToPath(v,!0,!1,0,n):w=this.addToPath(S,!1,!0,1,n),h=this.extractCommon(w,r,t,y,n),w.oldPos+1>=l&&h+1>=s)return a(this.buildValues(w.lastComponent,r,t))||!0;g[y]=w,w.oldPos+1>=l&&(p=Math.min(p,y-1)),h+1>=s&&(m=Math.max(m,y+1))}c++};if(o)(function y(){setTimeout(function(){if(c>u||Date.now()>f)return o(void 0);b()||y()},0)})();else for(;c<=u&&Date.now()<=f;){const y=b();if(y)return y}}addToPath(t,r,n,o,i){const a=t.lastComponent;return a&&!i.oneChangePerToken&&a.added===r&&a.removed===n?{oldPos:t.oldPos+o,lastComponent:{count:a.count+1,added:r,removed:n,previousComponent:a.previousComponent}}:{oldPos:t.oldPos+o,lastComponent:{count:1,added:r,removed:n,previousComponent:a}}}extractCommon(t,r,n,o,i){const a=r.length,s=n.length;let l=t.oldPos,c=l-o,u=0;for(;c+1<a&&l+1<s&&this.equals(n[l+1],r[c+1],i);)c++,l++,u++,i.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return u&&!i.oneChangePerToken&&(t.lastComponent={count:u,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=l,c}equals(t,r,n){return n.comparator?n.comparator(t,r):t===r||!!n.ignoreCase&&t.toLowerCase()===r.toLowerCase()}removeEmpty(t){const r=[];for(let n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r}castInput(t,r){return t}tokenize(t,r){return Array.from(t)}join(t){return t.join("")}postProcess(t,r){return t}get useLongestToken(){return!1}buildValues(t,r,n){const o=[];let i;for(;t;)o.push(t),i=t.previousComponent,delete t.previousComponent,t=i;o.reverse();const a=o.length;let s=0,l=0,c=0;for(;s<a;s++){const u=o[s];if(u.removed)u.value=this.join(n.slice(c,c+u.count)),c+=u.count;else{if(!u.added&&this.useLongestToken){let d=r.slice(l,l+u.count);d=d.map(function(f,g){const h=n[c+g];return h.length>f.length?h:f}),u.value=this.join(d)}else u.value=this.join(r.slice(l,l+u.count));l+=u.count,u.added||(c+=u.count)}}return o}}class $$ extends gc{}const M$=new $$;function j$(e,t,r){return M$.diff(e,t,r)}function Wy(e,t){let r;for(r=0;r<e.length&&r<t.length;r++)if(e[r]!=t[r])return e.slice(0,r);return e.slice(0,r)}function Uy(e,t){let r;if(!e||!t||e[e.length-1]!=t[t.length-1])return"";for(r=0;r<e.length&&r<t.length;r++)if(e[e.length-(r+1)]!=t[t.length-(r+1)])return e.slice(-r);return e.slice(-r)}function Xf(e,t,r){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return r+e.slice(t.length)}function Yf(e,t,r){if(!t)return e+r;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+r}function Ra(e,t){return Xf(e,t,"")}function hc(e,t){return Yf(e,t,"")}function Xy(e,t){return t.slice(0,R$(e,t))}function R$(e,t){let r=0;e.length>t.length&&(r=e.length-t.length);let n=t.length;e.length<t.length&&(n=e.length);const o=Array(n);let i=0;o[0]=0;for(let a=1;a<n;a++){for(t[a]==t[i]?o[a]=o[i]:o[a]=i;i>0&&t[a]!=t[i];)i=o[i];t[a]==t[i]&&i++}i=0;for(let a=r;a<e.length;a++){for(;i>0&&e[a]!=t[i];)i=o[i];e[a]==t[i]&&i++}return i}function La(e){let t;for(t=e.length-1;t>=0&&e[t].match(/\s/);t--);return e.substring(t+1)}function no(e){const t=e.match(/^\s*/);return t?t[0]:""}const vc="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",L$=new RegExp(`[${vc}]+|\\s+|[^${vc}]`,"ug");class D$ extends gc{equals(t,r,n){return n.ignoreCase&&(t=t.toLowerCase(),r=r.toLowerCase()),t.trim()===r.trim()}tokenize(t,r={}){let n;if(r.intlSegmenter){const a=r.intlSegmenter;if(a.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');n=Array.from(a.segment(t),s=>s.segment)}else n=t.match(L$)||[];const o=[];let i=null;return n.forEach(a=>{/\s/.test(a)?i==null?o.push(a):o.push(o.pop()+a):i!=null&&/\s/.test(i)?o[o.length-1]==i?o.push(o.pop()+a):o.push(i+a):o.push(a),i=a}),o}join(t){return t.map((r,n)=>n==0?r:r.replace(/^\s+/,"")).join("")}postProcess(t,r){if(!t||r.oneChangePerToken)return t;let n=null,o=null,i=null;return t.forEach(a=>{a.added?o=a:a.removed?i=a:((o||i)&&Yy(n,i,o,a),n=a,o=null,i=null)}),(o||i)&&Yy(n,i,o,null),t}}const _$=new D$;function V$(e,t,r){return r?.ignoreWhitespace!=null&&!r.ignoreWhitespace?G$(e,t,r):_$.diff(e,t,r)}function Yy(e,t,r,n){if(t&&r){const o=no(t.value),i=La(t.value),a=no(r.value),s=La(r.value);if(e){const l=Wy(o,a);e.value=Yf(e.value,a,l),t.value=Ra(t.value,l),r.value=Ra(r.value,l)}if(n){const l=Uy(i,s);n.value=Xf(n.value,s,l),t.value=hc(t.value,l),r.value=hc(r.value,l)}}else if(r){if(e){const o=no(r.value);r.value=r.value.substring(o.length)}if(n){const o=no(n.value);n.value=n.value.substring(o.length)}}else if(e&&n){const o=no(n.value),i=no(t.value),a=La(t.value),s=Wy(o,i);t.value=Ra(t.value,s);const l=Uy(Ra(o,s),a);t.value=hc(t.value,l),n.value=Xf(n.value,o,l),e.value=Yf(e.value,o,o.slice(0,o.length-l.length))}else if(n){const o=no(n.value),i=La(t.value),a=Xy(i,o);t.value=hc(t.value,a)}else if(e){const o=La(e.value),i=no(t.value),a=Xy(o,i);t.value=Ra(t.value,a)}}class B$ extends gc{tokenize(t){const r=new RegExp(`(\\r?\\n)|[${vc}]+|[^\\S\\n\\r]+|[^${vc}]`,"ug");return t.match(r)||[]}}const z$=new B$;function G$(e,t,r){return z$.diff(e,t,r)}class H$ extends gc{constructor(){super(...arguments),this.tokenize=X$}equals(t,r,n){return n.ignoreWhitespace?((!n.newlineIsToken||!t.includes(`
|
|
356
|
+
`),navigator?.clipboard?.writeText(U).then(()=>{Pe.success(vr.copySuccess("Python Code"))}).catch(K=>{const Z=K;Pe.error(Z?.message||vr.copyFailure("Python Code"),{toastId:vr.copyFailure("Python Code")})})}catch(U){const K=U;Pe.error(K?.message||vr.copyFailure("Python Code"),{toastId:vr.copyFailure("Python Code")})}else if(a==="json")try{const U=JSON.parse(e),K=JSON.stringify(U,null,4);navigator?.clipboard?.writeText(K),Pe.success(vr.copySuccess("JSON Code"))}catch(U){const K=U;Pe.error(K?.message||vr.copyFailure("JSON Code"),{toastId:vr.copyFailure("JSON Code")})}else navigator?.clipboard?.writeText(e),Pe.success(vr.copySuccess("Code"))},Q=U=>U==="python"?{type:"text/x-python",extension:"py"}:U==="json"?{type:"application/json",extension:"json"}:{type:"text/plain",extension:"txt"},q=()=>{try{const U=new Blob([e],{type:Q(a)?.type}),K=URL.createObjectURL(U),Z=document.createElement("a");Z.href=K,Z.download=`code_${Date.now()}.${Q(a)?.extension}`,document.body.appendChild(Z),Z.click(),document.body.removeChild(Z),URL.revokeObjectURL(K),Pe.success(vr.copySuccess("Code download"))}catch(U){const K=U;Pe.error(K?.message||vr.copyFailure("Code download"),{toastId:vr.copyFailure("Code download")})}};return C.jsx(p$,{handle:x,className:"h-full",children:C.jsxs("div",{className:"relative border border-neutral-200 dark:border-neutral-700 rounded-lg h-full",id:"code-editor-container-with-json-grid",children:[C.jsxs("div",{className:J(`px-3 py-2 flex items-center bg-white rounded-t-lg dark:bg-neutral-800 ${d?"border-none":"border-b border-neutral-200 dark:border-neutral-700"} `,G?"justify-between":"justify-end"),children:[G&&d&&C.jsx(Hy,{variant:"switch",tabs:F$,activeTab:$,size:"sm",onTabClick:U=>k(U),tabIcons:k$,height:"h-[20px]"}),C.jsxs("div",{className:"flex items-center gap-0.5",children:[$==="Grid"&&o&&d&&C.jsx("span",{className:"flex items-center justify-center border-r border-neutral-200 dark:border-neutral-700 mr-1.5 pr-1.5",children:C.jsx(In,{title:"Add key",children:C.jsx("button",{id:"btn-code-editor-json-grid-up",onClick:()=>j(!0),className:J("p-0.5 rounded-md flex items-center justify-center","hover:bg-blue-100 hover:dark:bg-neutral-800 text-blue-600 dark:text-neutral-100"),children:C.jsx(P$,{})})})}),$==="Grid"?C.jsxs(C.Fragment,{children:[C.jsx(In,{title:"Collapse all",children:C.jsx("button",{id:"btn-code-editor-json-grid-up",onClick:()=>b(!1),className:L,children:C.jsx(O$,{})})}),C.jsx(In,{title:"Expand all",children:C.jsx("button",{id:"btn-code-editor-json-grid-down",onClick:()=>b(!0),className:L,children:C.jsx(T$,{})})})]}):null,$==="JSON"&&d?C.jsx(In,{title:"Format",children:C.jsx("button",{id:"btn-code-editor-format-code",onClick:D,className:L,children:C.jsx(N$,{})})}):null,n&&$==="JSON"&&d?C.jsx(In,{title:g==="vs"?"Dark mode":"Light mode",children:C.jsx("button",{id:"btn-code-editor-with-theme",onClick:()=>h(g==="vs"?"vs-dark":"vs"),className:L,children:g==="vs"?C.jsx(w$,{}):C.jsx(S$,{})})}):null,(a==="python"||a==="json")&&l?C.jsx(In,{title:"Copy",children:C.jsx("button",{id:"btn-code-editor-copy-code",onClick:z,className:L,children:C.jsx(E$,{})})}):null,(a==="python"||a==="json")&&c?C.jsx(In,{title:"Download",children:C.jsx("button",{id:"btn-code-editor-download-code",onClick:q,className:L,children:C.jsx(I$,{})})}):null,r?C.jsx(In,{title:"Fullscreen",children:C.jsx("button",{onClick:W,id:"btn-code-editor-fullscreen",className:L,children:C.jsx(A$,{})})}):null]})]}),$==="Grid"&&a==="json"?C.jsx("div",{children:C.jsx(Gy,{isFullScreen:x?.active,allExpanded:p,toggleAll:()=>b(U=>!U),isEditMode:!!o,isDarkMode:m==="dark",style:{height:x?.active?"100vh":i},value:e,onChange:t,setIsAddKeyModalOpen:j,isAddKeyModalOpen:F})}):C.jsx(lF,{height:x?.active?"100vh":i,containerStyle:{height:i},language:a,value:e,onChange:B,theme:g,onMount:V,options:{fontSize:16,folding:!0,fontFamily:"Menlo, Monaco, 'Courier New', monospace",fontLigatures:!0,readOnly:!o}})]})})};class hc{diff(t,r,n={}){let o;typeof n=="function"?(o=n,n={}):"callback"in n&&(o=n.callback);const i=this.castInput(t,n),a=this.castInput(r,n),s=this.removeEmpty(this.tokenize(i,n)),l=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(s,l,n,o)}diffWithOptionsObj(t,r,n,o){var i;const a=y=>{if(y=this.postProcess(y,n),o){setTimeout(function(){o(y)},0);return}else return y},s=r.length,l=t.length;let c=1,u=s+l;n.maxEditLength!=null&&(u=Math.min(u,n.maxEditLength));const d=(i=n.timeout)!==null&&i!==void 0?i:1/0,f=Date.now()+d,g=[{oldPos:-1,lastComponent:void 0}];let h=this.extractCommon(g[0],r,t,0,n);if(g[0].oldPos+1>=l&&h+1>=s)return a(this.buildValues(g[0].lastComponent,r,t));let m=-1/0,p=1/0;const b=()=>{for(let y=Math.max(m,-c);y<=Math.min(p,c);y+=2){let w;const S=g[y-1],v=g[y+1];S&&(g[y-1]=void 0);let I=!1;if(v){const O=v.oldPos-y;I=v&&0<=O&&O<s}const N=S&&S.oldPos+1<l;if(!I&&!N){g[y]=void 0;continue}if(!N||I&&S.oldPos<v.oldPos?w=this.addToPath(v,!0,!1,0,n):w=this.addToPath(S,!1,!0,1,n),h=this.extractCommon(w,r,t,y,n),w.oldPos+1>=l&&h+1>=s)return a(this.buildValues(w.lastComponent,r,t))||!0;g[y]=w,w.oldPos+1>=l&&(p=Math.min(p,y-1)),h+1>=s&&(m=Math.max(m,y+1))}c++};if(o)(function y(){setTimeout(function(){if(c>u||Date.now()>f)return o(void 0);b()||y()},0)})();else for(;c<=u&&Date.now()<=f;){const y=b();if(y)return y}}addToPath(t,r,n,o,i){const a=t.lastComponent;return a&&!i.oneChangePerToken&&a.added===r&&a.removed===n?{oldPos:t.oldPos+o,lastComponent:{count:a.count+1,added:r,removed:n,previousComponent:a.previousComponent}}:{oldPos:t.oldPos+o,lastComponent:{count:1,added:r,removed:n,previousComponent:a}}}extractCommon(t,r,n,o,i){const a=r.length,s=n.length;let l=t.oldPos,c=l-o,u=0;for(;c+1<a&&l+1<s&&this.equals(n[l+1],r[c+1],i);)c++,l++,u++,i.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return u&&!i.oneChangePerToken&&(t.lastComponent={count:u,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=l,c}equals(t,r,n){return n.comparator?n.comparator(t,r):t===r||!!n.ignoreCase&&t.toLowerCase()===r.toLowerCase()}removeEmpty(t){const r=[];for(let n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r}castInput(t,r){return t}tokenize(t,r){return Array.from(t)}join(t){return t.join("")}postProcess(t,r){return t}get useLongestToken(){return!1}buildValues(t,r,n){const o=[];let i;for(;t;)o.push(t),i=t.previousComponent,delete t.previousComponent,t=i;o.reverse();const a=o.length;let s=0,l=0,c=0;for(;s<a;s++){const u=o[s];if(u.removed)u.value=this.join(n.slice(c,c+u.count)),c+=u.count;else{if(!u.added&&this.useLongestToken){let d=r.slice(l,l+u.count);d=d.map(function(f,g){const h=n[c+g];return h.length>f.length?h:f}),u.value=this.join(d)}else u.value=this.join(r.slice(l,l+u.count));l+=u.count,u.added||(c+=u.count)}}return o}}class M$ extends hc{}const j$=new M$;function R$(e,t,r){return j$.diff(e,t,r)}function Wy(e,t){let r;for(r=0;r<e.length&&r<t.length;r++)if(e[r]!=t[r])return e.slice(0,r);return e.slice(0,r)}function Uy(e,t){let r;if(!e||!t||e[e.length-1]!=t[t.length-1])return"";for(r=0;r<e.length&&r<t.length;r++)if(e[e.length-(r+1)]!=t[t.length-(r+1)])return e.slice(-r);return e.slice(-r)}function Xf(e,t,r){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return r+e.slice(t.length)}function Yf(e,t,r){if(!t)return e+r;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+r}function La(e,t){return Xf(e,t,"")}function vc(e,t){return Yf(e,t,"")}function Xy(e,t){return t.slice(0,L$(e,t))}function L$(e,t){let r=0;e.length>t.length&&(r=e.length-t.length);let n=t.length;e.length<t.length&&(n=e.length);const o=Array(n);let i=0;o[0]=0;for(let a=1;a<n;a++){for(t[a]==t[i]?o[a]=o[i]:o[a]=i;i>0&&t[a]!=t[i];)i=o[i];t[a]==t[i]&&i++}i=0;for(let a=r;a<e.length;a++){for(;i>0&&e[a]!=t[i];)i=o[i];e[a]==t[i]&&i++}return i}function Da(e){let t;for(t=e.length-1;t>=0&&e[t].match(/\s/);t--);return e.substring(t+1)}function no(e){const t=e.match(/^\s*/);return t?t[0]:""}const bc="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",D$=new RegExp(`[${bc}]+|\\s+|[^${bc}]`,"ug");class _$ extends hc{equals(t,r,n){return n.ignoreCase&&(t=t.toLowerCase(),r=r.toLowerCase()),t.trim()===r.trim()}tokenize(t,r={}){let n;if(r.intlSegmenter){const a=r.intlSegmenter;if(a.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');n=Array.from(a.segment(t),s=>s.segment)}else n=t.match(D$)||[];const o=[];let i=null;return n.forEach(a=>{/\s/.test(a)?i==null?o.push(a):o.push(o.pop()+a):i!=null&&/\s/.test(i)?o[o.length-1]==i?o.push(o.pop()+a):o.push(i+a):o.push(a),i=a}),o}join(t){return t.map((r,n)=>n==0?r:r.replace(/^\s+/,"")).join("")}postProcess(t,r){if(!t||r.oneChangePerToken)return t;let n=null,o=null,i=null;return t.forEach(a=>{a.added?o=a:a.removed?i=a:((o||i)&&Yy(n,i,o,a),n=a,o=null,i=null)}),(o||i)&&Yy(n,i,o,null),t}}const V$=new _$;function B$(e,t,r){return r?.ignoreWhitespace!=null&&!r.ignoreWhitespace?H$(e,t,r):V$.diff(e,t,r)}function Yy(e,t,r,n){if(t&&r){const o=no(t.value),i=Da(t.value),a=no(r.value),s=Da(r.value);if(e){const l=Wy(o,a);e.value=Yf(e.value,a,l),t.value=La(t.value,l),r.value=La(r.value,l)}if(n){const l=Uy(i,s);n.value=Xf(n.value,s,l),t.value=vc(t.value,l),r.value=vc(r.value,l)}}else if(r){if(e){const o=no(r.value);r.value=r.value.substring(o.length)}if(n){const o=no(n.value);n.value=n.value.substring(o.length)}}else if(e&&n){const o=no(n.value),i=no(t.value),a=Da(t.value),s=Wy(o,i);t.value=La(t.value,s);const l=Uy(La(o,s),a);t.value=vc(t.value,l),n.value=Xf(n.value,o,l),e.value=Yf(e.value,o,o.slice(0,o.length-l.length))}else if(n){const o=no(n.value),i=Da(t.value),a=Xy(i,o);t.value=vc(t.value,a)}else if(e){const o=Da(e.value),i=no(t.value),a=Xy(o,i);t.value=La(t.value,a)}}class z$ extends hc{tokenize(t){const r=new RegExp(`(\\r?\\n)|[${bc}]+|[^\\S\\n\\r]+|[^${bc}]`,"ug");return t.match(r)||[]}}const G$=new z$;function H$(e,t,r){return G$.diff(e,t,r)}class W$ extends hc{constructor(){super(...arguments),this.tokenize=Y$}equals(t,r,n){return n.ignoreWhitespace?((!n.newlineIsToken||!t.includes(`
|
|
357
357
|
`))&&(t=t.trim()),(!n.newlineIsToken||!r.includes(`
|
|
358
358
|
`))&&(r=r.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(t.endsWith(`
|
|
359
359
|
`)&&(t=t.slice(0,-1)),r.endsWith(`
|
|
360
|
-
`)&&(r=r.slice(0,-1))),super.equals(t,r,n)}}const
|
|
361
|
-
`));const r=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(let o=0;o<n.length;o++){const i=n[o];o%2&&!t.newlineIsToken?r[r.length-1]+=i:r.push(i)}return r}const Jf=E.forwardRef(({oldText:e,newText:t,diffType:r="words",theme:n="default",showLineNumbers:o=!1,wordWrap:i=!0,className:a,segmentClassName:s,addedClassName:l,removedClassName:c,unchangedClassName:u,ignoreCase:d=!1,ignoreWhitespace:f=!1,maxWidth:g,"aria-label":h,onDiffCalculated:m},p)=>{const b=E.useMemo(()=>{let O=[];switch(r){case"lines":O=
|
|
362
|
-
`).length-1,x=Array.from({length:M},($,k)=>O+k);return O+=M,x.map(($,k)=>C.jsx("div",{className:"h-6",children:$},`${P}-${k}`))}return null})}),C.jsx("div",{className:"flex-1 pl-4",children:v()})]})},v=()=>{const O=y();return b.map((T,P)=>{let M="";return T.added?M=J(O.added,l,s):T.removed?M=J(O.removed,c,s):M=J(O.unchanged,u,s),C.jsx("span",{className:M,"data-diff-type":T.added?"added":T.removed?"removed":"unchanged",children:T.value},P)})},N=(()=>{const O=b.filter(M=>M.added).reduce((M,x)=>M+x.value.length,0),T=b.filter(M=>M.removed).reduce((M,x)=>M+x.value.length,0),P=b.filter(M=>!M.added&&!M.removed).reduce((M,x)=>M+x.value.length,0);return{added:O,removed:T,unchanged:P,total:O+T+P}})();return C.jsxs("div",{ref:p,className:J(w(),a),style:{maxWidth:g},"aria-label":h||`Text diff: ${N.added} additions, ${N.removed} deletions`,role:"region","aria-live":"polite",children:[C.jsxs("div",{className:"sr-only",children:["Diff statistics: ",N.added," characters added, ",N.removed," ","characters removed, ",N.unchanged," characters unchanged."]}),o&&r==="lines"?S():v()]})});Jf.displayName="DiffViewer";const Y$=Jf,J$=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Zf=E.forwardRef(({text:e,onClick:t,disabled:r=!1,hidden:n=!1,className:o,size:i="medium",variant:a="default",icon:s,trailingIcon:l,hideHoverEffect:c=!1,onClose:u,stopPropagation:d=!1,onToggle:f,checked:g=!1,highlightText:h,truncateText:m=!1,showTick:p=!1,textWidth:b="100%",tooltip:y,suffixBadge:w,"aria-label":S,"data-testid":v,fullWidth:I=!0,error:N=!1,loading:O=!1},T)=>{const P=E.useCallback(V=>{try{if(O||r)return;u&&u(),d&&V.stopPropagation(),!f&&t&&t(V)}catch(_){console.error("OptionButton: Error in click handler:",_)}},[t,u,d,f,O,r]),M=E.useCallback(V=>{try{f&&!r&&!O&&f(V)}catch(_){console.error("OptionButton: Error in toggle handler:",_)}},[f,r,O]),x=E.useMemo(()=>{if(!h||!e)return e;try{if(typeof e!="string"&&typeof e!="number")return e;const V=J$(h.trim()),_=new RegExp(`(${V})`,"gi"),D=e.toString().split(_);return C.jsx("span",{className:"overflow-hidden text-ellipsis",children:D.map((B,L)=>L%2===1&&B.toLowerCase()===h.toLowerCase()?C.jsx("span",{className:"bg-yellow-200 dark:bg-yellow-800 text-yellow-900 dark:text-yellow-100 rounded-sm px-0.5",children:B},L):B)})}catch(V){return console.error("OptionButton: Error highlighting text:",V),e}},[e,h]),$=()=>{switch(i){case"small":return"py-1.5 px-3 text-sm gap-1.5";case"large":return"py-3 px-5 text-base gap-3";case"medium":default:return"py-2 px-4 text-sm gap-2"}},k=()=>{if(N)return"bg-red-50 dark:bg-red-950 text-red-700 dark:text-red-300 border-red-200 dark:border-red-800";switch(a){case"highlight":return"bg-blue-50 dark:bg-blue-950 text-blue-700 dark:text-blue-300";case"destructive":return"text-red-600 dark:text-red-400 hover:bg-red-50 dark:hover:bg-red-950";case"default":default:return"text-neutral-700 dark:text-neutral-300"}},F=()=>c||r||O?"":a==="destructive"?"hover:bg-red-50 dark:hover:bg-red-950":"hover:bg-neutral-100 dark:hover:bg-neutral-800",j=()=>J("flex items-center justify-start transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:focus:ring-offset-neutral-900 relative",$(),k(),I?"w-full":"w-auto",r&&"opacity-50 cursor-not-allowed",O&&"cursor-wait",!r&&!O&&"cursor-pointer",F(),o),z=()=>p?C.jsx("div",{className:"ml-auto flex items-center",children:C.jsx("svg",{className:"w-4 h-4 text-blue-600 dark:text-blue-400",fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",children:C.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}):null,W=()=>O?C.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-white/80 dark:bg-neutral-900/80 rounded",children:C.jsx("div",{className:"w-4 h-4 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"})}):null;return n?null:C.jsxs("button",{ref:T,type:"button",className:j(),onClick:P,disabled:r||O,"aria-label":S||e,"aria-pressed":f?g:void 0,"data-testid":v,title:y,children:[W(),s&&C.jsx("div",{className:"flex items-center justify-center flex-shrink-0",children:s}),C.jsxs("div",{className:"flex items-center justify-between min-w-0 flex-1",children:[C.jsx("div",{className:"min-w-0",style:{width:m?"150px":b},children:C.jsx(ge,{className:J("font-medium transition-colors",m&&"truncate"),variant:"medium",children:h?x:e})}),w&&C.jsx("div",{className:"ml-2 flex-shrink-0",children:C.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-neutral-100 dark:bg-neutral-700 text-neutral-700 dark:text-neutral-300 border border-neutral-200 dark:border-neutral-600",children:w})}),z()]}),l&&C.jsx("div",{className:"ml-2 flex items-center justify-center flex-shrink-0",children:l}),f&&C.jsx("div",{className:"ml-2 flex-shrink-0",children:C.jsx(bf,{checked:g,onChange:M,disabled:r||O,size:"small"})})]})});Zf.displayName="OptionButton";const Jy=E.forwardRef(({show:e=!1,onClose:t,actionItems:r=[],selectedItemsCount:n=0,deleteConfig:o,showActionBackground:i=!1,size:a="medium",position:s="bottom",theme:l="primary",width:c="100%",className:u,selectedText:d="selected",actionsText:f="Actions",autoHide:g=!0,maxVisibleItems:h=4,animationDuration:m=.2,"aria-label":p,"data-testid":b,error:y=!1,loading:w=!1,errorMessage:S,onOverflow:v},I)=>{const[N,O]=E.useState(!1),[T,P]=E.useState(!0),[M,x]=E.useState(!1),$=E.useRef(null),k=E.useRef(null),F=E.useCallback(()=>{try{if(!$.current||!k.current||!g)return;const Z=$.current.clientWidth,se=r.filter(Ce=>Ce.visible!==!1),Y=se.length*150+300>Z||se.length>h;Y!==!T&&(P(!Y),x(Y),v?.(Y))}catch(Z){console.error("FloatingBar: Error in overflow calculation:",Z)}},[r,g,h,T,v]);E.useEffect(()=>{if(!g)return;const Z=new ResizeObserver(F);return $.current&&Z.observe($.current),F(),()=>{Z.disconnect()}},[F,g]);const j=E.useCallback(Z=>{try{Z.preventDefault(),t()}catch(se){console.error("FloatingBar: Error in close handler:",se)}},[t]),z=E.useCallback(Z=>{try{if(!o?.onClick)return;o.confirmRequired&&o.confirmMessage?window.confirm(o.confirmMessage)&&o.onClick(Z):o.onClick(Z)}catch(se){console.error("FloatingBar: Error in delete handler:",se)}},[o]),W=()=>{switch(a){case"small":return{container:"px-2 py-1",height:"h-8"};case"large":return{container:"px-4 py-2",height:"h-12"};case"medium":default:return{container:"px-3 py-1.5",height:"h-10"}}},V=()=>{if(y)return{background:"bg-red-600 dark:bg-red-700",text:"text-white",border:"border-red-500",actionBg:"bg-red-500 dark:bg-red-600"};switch(l){case"dark":return{background:"bg-neutral-800 dark:bg-neutral-900",text:"text-white",border:"border-neutral-700",actionBg:"bg-neutral-700 dark:bg-neutral-800"};case"light":return{background:"bg-white dark:bg-neutral-100",text:"text-neutral-900 dark:text-neutral-800",border:"border-neutral-200",actionBg:"bg-neutral-100 dark:bg-neutral-200"};case"primary":default:return{background:"bg-blue-600 dark:bg-blue-700",text:"text-white",border:"border-blue-500",actionBg:"bg-blue-500 dark:bg-blue-600"}}},_=()=>{switch(s){case"top":return"top-4";case"bottom":default:return"bottom-4"}},D=E.useMemo(()=>r.filter(Z=>Z.visible!==!1),[r]),B=E.useMemo(()=>D.map((Z,se)=>({key:Z.id||se.toString(),label:C.jsx(Zf,{text:Z.label||"",icon:Z.dropdownIcon||Z.icon,onClick:Z.onClick,disabled:Z.disabled,tooltip:Z.tooltip,className:"text-sm font-medium","data-testid":Z["data-testid"]}),disabled:Z.disabled||!1})),[D]),L=()=>o?C.jsxs("button",{type:"button",onClick:z,disabled:o.disabled||w,className:J("flex items-center gap-1.5 py-1 px-2 rounded-md transition-colors","text-red-400 hover:text-red-300 hover:bg-red-500/10",o.disabled&&"opacity-50 cursor-not-allowed"),"data-testid":`${b}-delete-button`,children:[o.icon?o.icon:C.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})}),C.jsx(ge,{variant:"medium",className:"text-inherit",children:o.label||"Delete"})]}):null,G=()=>D.map(Z=>C.jsx("div",{children:Z.type==="dropdown"?C.jsx("div",{className:"relative",children:C.jsxs("button",{type:"button",onClick:Z.onClick,disabled:Z.disabled||w,className:J("flex items-center gap-1.5 py-1 px-2 rounded-md transition-all duration-200","text-white hover:text-blue-100 hover:bg-white/10",Z.hideLabel&&"px-1.5",Z.disabled&&"opacity-50 cursor-not-allowed",Z.className),title:Z.tooltip,"data-testid":Z["data-testid"],children:[Z.icon,!Z.hideLabel&&Z.label&&C.jsx(ge,{variant:"medium",className:"text-inherit",children:Z.label})]})}):C.jsxs("button",{type:"button",onClick:Z.onClick,disabled:Z.disabled||w,className:J("flex items-center gap-1.5 py-1 px-2 rounded-md transition-all duration-200","text-white hover:text-blue-100 hover:bg-white/10",Z.hideLabel&&"px-1.5",Z.disabled&&"opacity-50 cursor-not-allowed",Z.className),title:Z.tooltip,"data-testid":Z["data-testid"],children:[Z.icon,!Z.hideLabel&&Z.label&&C.jsx(ge,{variant:"medium",className:"text-inherit",children:Z.label})]})},Z.id)),Q=()=>C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsxs("div",{className:"relative",children:[C.jsxs("button",{type:"button",onClick:()=>O(!N),disabled:w,className:J("flex items-center gap-1.5 px-3 py-1 rounded-full transition-colors",V().actionBg,"text-white hover:opacity-90"),"data-testid":`${b}-actions-dropdown`,children:[C.jsx(ge,{variant:"medium",className:"text-white",children:f}),C.jsx("svg",{className:J("w-4 h-4 transition-transform",N&&"rotate-180"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),N&&C.jsx("div",{className:"absolute bottom-full mb-2 right-0 bg-white dark:bg-neutral-800 border border-neutral-200 dark:border-neutral-700 rounded-lg shadow-lg min-w-[200px] z-50",children:B.map(Z=>C.jsx("div",{className:"p-1",children:Z.label},Z.key))})]}),L()]}),q=W(),U=V(),K=_();return!e&&!y?null:C.jsx(Ze.AnimatePresence,{children:(e||y)&&C.jsx(Ze.motion.div,{ref:I,initial:{y:s==="bottom"?20:-20,opacity:0},animate:{y:0,opacity:1},exit:{y:s==="bottom"?20:-20,opacity:0},transition:{duration:m,ease:[.4,0,.2,1]},className:J("fixed left-1/2 transform -translate-x-1/2 z-50",K,u),style:{width:c},"aria-label":p||`Floating bar with ${n} selected items`,"data-testid":b,children:C.jsxs("div",{ref:$,className:J("flex items-center justify-between border rounded-lg shadow-lg",q.container,q.height,U.background,U.text,U.border),children:[C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx("button",{type:"button",onClick:j,disabled:w,className:"flex items-center justify-center w-6 h-6 rounded-full hover:bg-white/10 transition-colors","aria-label":"Close floating bar","data-testid":`${b}-close-button`,children:C.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),y&&S?C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("svg",{className:"w-4 h-4 text-red-200",fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),C.jsx(ge,{variant:"medium",className:"text-inherit",children:S})]}):C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-white/20 text-white",children:n}),C.jsx(ge,{variant:"medium",className:"text-inherit",children:d})]})]}),!y&&!w&&C.jsx("div",{ref:k,className:J("flex items-center",i&&J("rounded-full px-2",U.actionBg)),children:T?C.jsxs(Ze.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:m},className:"flex items-center gap-1",children:[G(),L()]}):C.jsx(Ze.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:m},children:Q()})}),w&&C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("div",{className:"w-4 h-4 border-2 border-white/20 border-t-white rounded-full animate-spin"}),C.jsx(ge,{variant:"medium",className:"text-inherit",children:"Loading..."})]})]})})})});Jy.displayName="FloatingBar",xe.Badge=Yb,xe.Banner=e1,xe.CURRENCIES=vf,xe.CURRENCY_SYMBOLS=Rb,xe.Checkbox=gh,xe.CodeEditor=F$,xe.ColorPicker=hh,xe.CreatableSelectField=jb,xe.CurrencyInputField=Lb,xe.DateRange=Db,xe.DebounceInputField=_b,xe.DiffViewer=Jf,xe.FileUpload=Ub,xe.FloatingBar=Jy,xe.InlineDiffHighlighter=Y$,xe.InputField=h0,xe.JsonGrid=Gy,xe.LabelValue=Kb,xe.Modal=Jb,xe.MultiFileUpload=Wb,xe.OptionButton=Zf,xe.PdfViewer=l1,xe.PercentageInputField=Vb,xe.Popper=u1,xe.ResizableSidebar=s1,xe.StatusColorMapping=Xb,xe.Tabs=Hy,xe.Tag=Cf,xe.TextField=r2,xe.Toast=gP,xe.Toggle=bf,xe.Typography=ge,xe.filterTopLevelPaths=v$,xe.formatBooleanValue=xf,xe.formatCurrency=wf,xe.formatDate=pa,xe.isISODateString=Qb,xe.monacoManager=By,xe.parseJson=zy,xe.randomHexString=b$,xe.systemMessages=vr,xe.toast=hP,xe.useOutsideClick=c1,xe.usePythonSyntax=_y,xe.useTheme=Vy,Object.defineProperty(xe,Symbol.toStringTag,{value:"Module"})});
|
|
360
|
+
`)&&(r=r.slice(0,-1))),super.equals(t,r,n)}}const U$=new W$;function X$(e,t,r){return U$.diff(e,t,r)}function Y$(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
361
|
+
`));const r=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(let o=0;o<n.length;o++){const i=n[o];o%2&&!t.newlineIsToken?r[r.length-1]+=i:r.push(i)}return r}const Jf=E.forwardRef(({oldText:e,newText:t,diffType:r="words",theme:n="default",showLineNumbers:o=!1,wordWrap:i=!0,className:a,segmentClassName:s,addedClassName:l,removedClassName:c,unchangedClassName:u,ignoreCase:d=!1,ignoreWhitespace:f=!1,maxWidth:g,"aria-label":h,onDiffCalculated:m},p)=>{const b=E.useMemo(()=>{let O=[];switch(r){case"lines":O=X$(e,t,{ignoreWhitespace:f});break;case"chars":O=R$(e,t,{ignoreCase:d});break;case"words":default:O=B$(e,t,{ignoreCase:d});break}return m?.(O),O},[e,t,r,d,f,m]),y=()=>{switch(n){case"minimal":return{added:"bg-green-100 dark:bg-green-900/30 text-green-800 dark:text-green-200",removed:"bg-red-100 dark:bg-red-900/30 text-red-800 dark:text-red-200 line-through",unchanged:"text-neutral-700 dark:text-neutral-300"};case"github":return{added:"bg-green-50 dark:bg-green-900/20 text-green-900 dark:text-green-100 border-l-4 border-green-500 pl-2",removed:"bg-red-50 dark:bg-red-900/20 text-red-900 dark:text-red-100 border-l-4 border-red-500 pl-2 line-through",unchanged:"text-neutral-800 dark:text-neutral-200 pl-2"};case"default":default:return{added:"bg-success-100 dark:bg-success-900/70 text-success-800 dark:text-success-200 font-semibold rounded-sm px-1",removed:"bg-error-100 dark:bg-error-900 text-error-800 dark:text-error-200 font-semibold line-through rounded-sm px-1",unchanged:"text-neutral-700 dark:text-neutral-300"}}},w=()=>J("diff-viewer font-mono text-sm leading-relaxed",i?"whitespace-pre-wrap":"whitespace-pre overflow-x-auto",n==="github"&&"border border-neutral-200 dark:border-neutral-700 rounded-lg",n==="minimal"&&"border-l-2 border-neutral-200 dark:border-neutral-600 pl-4"),S=()=>{if(!o||r!=="lines")return null;let O=1;return C.jsxs("div",{className:"flex",children:[C.jsx("div",{className:"select-none text-neutral-400 dark:text-neutral-600 text-right pr-4 border-r border-neutral-200 dark:border-neutral-700",children:b.map((T,P)=>{if(!T.added&&!T.removed){const M=T.value.split(`
|
|
362
|
+
`).length-1,x=Array.from({length:M},($,k)=>O+k);return O+=M,x.map(($,k)=>C.jsx("div",{className:"h-6",children:$},`${P}-${k}`))}return null})}),C.jsx("div",{className:"flex-1 pl-4",children:v()})]})},v=()=>{const O=y();return b.map((T,P)=>{let M="";return T.added?M=J(O.added,l,s):T.removed?M=J(O.removed,c,s):M=J(O.unchanged,u,s),C.jsx("span",{className:M,"data-diff-type":T.added?"added":T.removed?"removed":"unchanged",children:T.value},P)})},N=(()=>{const O=b.filter(M=>M.added).reduce((M,x)=>M+x.value.length,0),T=b.filter(M=>M.removed).reduce((M,x)=>M+x.value.length,0),P=b.filter(M=>!M.added&&!M.removed).reduce((M,x)=>M+x.value.length,0);return{added:O,removed:T,unchanged:P,total:O+T+P}})();return C.jsxs("div",{ref:p,className:J(w(),a),style:{maxWidth:g},"aria-label":h||`Text diff: ${N.added} additions, ${N.removed} deletions`,role:"region","aria-live":"polite",children:[C.jsxs("div",{className:"sr-only",children:["Diff statistics: ",N.added," characters added, ",N.removed," ","characters removed, ",N.unchanged," characters unchanged."]}),o&&r==="lines"?S():v()]})});Jf.displayName="DiffViewer";const J$=Jf,Z$=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Zf=E.forwardRef(({text:e,onClick:t,disabled:r=!1,hidden:n=!1,className:o,size:i="medium",variant:a="default",icon:s,trailingIcon:l,hideHoverEffect:c=!1,onClose:u,stopPropagation:d=!1,onToggle:f,checked:g=!1,highlightText:h,truncateText:m=!1,showTick:p=!1,textWidth:b="100%",tooltip:y,suffixBadge:w,"aria-label":S,"data-testid":v,fullWidth:I=!0,error:N=!1,loading:O=!1},T)=>{const P=E.useCallback(V=>{try{if(O||r)return;u&&u(),d&&V.stopPropagation(),!f&&t&&t(V)}catch(_){console.error("OptionButton: Error in click handler:",_)}},[t,u,d,f,O,r]),M=E.useCallback(V=>{try{f&&!r&&!O&&f(V)}catch(_){console.error("OptionButton: Error in toggle handler:",_)}},[f,r,O]),x=E.useMemo(()=>{if(!h||!e)return e;try{if(typeof e!="string"&&typeof e!="number")return e;const V=Z$(h.trim()),_=new RegExp(`(${V})`,"gi"),D=e.toString().split(_);return C.jsx("span",{className:"overflow-hidden text-ellipsis",children:D.map((B,L)=>L%2===1&&B.toLowerCase()===h.toLowerCase()?C.jsx("span",{className:"bg-yellow-200 dark:bg-yellow-800 text-yellow-900 dark:text-yellow-100 rounded-sm px-0.5",children:B},L):B)})}catch(V){return console.error("OptionButton: Error highlighting text:",V),e}},[e,h]),$=()=>{switch(i){case"small":return"py-1.5 px-3 text-sm gap-1.5";case"large":return"py-3 px-5 text-base gap-3";case"medium":default:return"py-2 px-4 text-sm gap-2"}},k=()=>{if(N)return"bg-red-50 dark:bg-red-950 text-red-700 dark:text-red-300 border-red-200 dark:border-red-800";switch(a){case"highlight":return"bg-blue-50 dark:bg-blue-950 text-blue-700 dark:text-blue-300";case"destructive":return"text-red-600 dark:text-red-400 hover:bg-red-50 dark:hover:bg-red-950";case"default":default:return"text-neutral-700 dark:text-neutral-300"}},F=()=>c||r||O?"":a==="destructive"?"hover:bg-red-50 dark:hover:bg-red-950":"hover:bg-neutral-100 dark:hover:bg-neutral-800",j=()=>J("flex items-center justify-start transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:focus:ring-offset-neutral-900 relative",$(),k(),I?"w-full":"w-auto",r&&"opacity-50 cursor-not-allowed",O&&"cursor-wait",!r&&!O&&"cursor-pointer",F(),o),G=()=>p?C.jsx("div",{className:"ml-auto flex items-center",children:C.jsx("svg",{className:"w-4 h-4 text-blue-600 dark:text-blue-400",fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",children:C.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}):null,W=()=>O?C.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-white/80 dark:bg-neutral-900/80 rounded",children:C.jsx("div",{className:"w-4 h-4 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"})}):null;return n?null:C.jsxs("button",{ref:T,type:"button",className:j(),onClick:P,disabled:r||O,"aria-label":S||e,"aria-pressed":f?g:void 0,"data-testid":v,title:y,children:[W(),s&&C.jsx("div",{className:"flex items-center justify-center flex-shrink-0",children:s}),C.jsxs("div",{className:"flex items-center justify-between min-w-0 flex-1",children:[C.jsx("div",{className:"min-w-0",style:{width:m?"150px":b},children:C.jsx(pe,{className:J("font-medium transition-colors",m&&"truncate"),variant:"medium",children:h?x:e})}),w&&C.jsx("div",{className:"ml-2 flex-shrink-0",children:C.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-neutral-100 dark:bg-neutral-700 text-neutral-700 dark:text-neutral-300 border border-neutral-200 dark:border-neutral-600",children:w})}),G()]}),l&&C.jsx("div",{className:"ml-2 flex items-center justify-center flex-shrink-0",children:l}),f&&C.jsx("div",{className:"ml-2 flex-shrink-0",children:C.jsx(yf,{checked:g,onChange:M,disabled:r||O,size:"small"})})]})});Zf.displayName="OptionButton";const Jy=E.forwardRef(({show:e=!1,onClose:t,actionItems:r=[],selectedItemsCount:n=0,deleteConfig:o,showActionBackground:i=!1,size:a="medium",position:s="bottom",theme:l="primary",width:c="100%",className:u,selectedText:d="selected",actionsText:f="Actions",autoHide:g=!0,maxVisibleItems:h=4,animationDuration:m=.2,"aria-label":p,"data-testid":b,error:y=!1,loading:w=!1,errorMessage:S,onOverflow:v},I)=>{const[N,O]=E.useState(!1),[T,P]=E.useState(!0),[M,x]=E.useState(!1),$=E.useRef(null),k=E.useRef(null),F=E.useCallback(()=>{try{if(!$.current||!k.current||!g)return;const Z=$.current.clientWidth,se=r.filter(Ce=>Ce.visible!==!1),Y=se.length*150+300>Z||se.length>h;Y!==!T&&(P(!Y),x(Y),v?.(Y))}catch(Z){console.error("FloatingBar: Error in overflow calculation:",Z)}},[r,g,h,T,v]);E.useEffect(()=>{if(!g)return;const Z=new ResizeObserver(F);return $.current&&Z.observe($.current),F(),()=>{Z.disconnect()}},[F,g]);const j=E.useCallback(Z=>{try{Z.preventDefault(),t()}catch(se){console.error("FloatingBar: Error in close handler:",se)}},[t]),G=E.useCallback(Z=>{try{if(!o?.onClick)return;o.confirmRequired&&o.confirmMessage?window.confirm(o.confirmMessage)&&o.onClick(Z):o.onClick(Z)}catch(se){console.error("FloatingBar: Error in delete handler:",se)}},[o]),W=()=>{switch(a){case"small":return{container:"px-2 py-1",height:"h-8"};case"large":return{container:"px-4 py-2",height:"h-12"};case"medium":default:return{container:"px-3 py-1.5",height:"h-10"}}},V=()=>{if(y)return{background:"bg-red-600 dark:bg-red-700",text:"text-white",border:"border-red-500",actionBg:"bg-red-500 dark:bg-red-600"};switch(l){case"dark":return{background:"bg-neutral-800 dark:bg-neutral-900",text:"text-white",border:"border-neutral-700",actionBg:"bg-neutral-700 dark:bg-neutral-800"};case"light":return{background:"bg-white dark:bg-neutral-100",text:"text-neutral-900 dark:text-neutral-800",border:"border-neutral-200",actionBg:"bg-neutral-100 dark:bg-neutral-200"};case"primary":default:return{background:"bg-blue-600 dark:bg-blue-700",text:"text-white",border:"border-blue-500",actionBg:"bg-blue-500 dark:bg-blue-600"}}},_=()=>{switch(s){case"top":return"top-4";case"bottom":default:return"bottom-4"}},D=E.useMemo(()=>r.filter(Z=>Z.visible!==!1),[r]),B=E.useMemo(()=>D.map((Z,se)=>({key:Z.id||se.toString(),label:C.jsx(Zf,{text:Z.label||"",icon:Z.dropdownIcon||Z.icon,onClick:Z.onClick,disabled:Z.disabled,tooltip:Z.tooltip,className:"text-sm font-medium","data-testid":Z["data-testid"]}),disabled:Z.disabled||!1})),[D]),L=()=>o?C.jsxs("button",{type:"button",onClick:G,disabled:o.disabled||w,className:J("flex items-center gap-1.5 py-1 px-2 rounded-md transition-colors","text-red-400 hover:text-red-300 hover:bg-red-500/10",o.disabled&&"opacity-50 cursor-not-allowed"),"data-testid":`${b}-delete-button`,children:[o.icon?o.icon:C.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})}),C.jsx(pe,{variant:"medium",className:"text-inherit",children:o.label||"Delete"})]}):null,z=()=>D.map(Z=>C.jsx("div",{children:Z.type==="dropdown"?C.jsx("div",{className:"relative",children:C.jsxs("button",{type:"button",onClick:Z.onClick,disabled:Z.disabled||w,className:J("flex items-center gap-1.5 py-1 px-2 rounded-md transition-all duration-200","text-white hover:text-blue-100 hover:bg-white/10",Z.hideLabel&&"px-1.5",Z.disabled&&"opacity-50 cursor-not-allowed",Z.className),title:Z.tooltip,"data-testid":Z["data-testid"],children:[Z.icon,!Z.hideLabel&&Z.label&&C.jsx(pe,{variant:"medium",className:"text-inherit",children:Z.label})]})}):C.jsxs("button",{type:"button",onClick:Z.onClick,disabled:Z.disabled||w,className:J("flex items-center gap-1.5 py-1 px-2 rounded-md transition-all duration-200","text-white hover:text-blue-100 hover:bg-white/10",Z.hideLabel&&"px-1.5",Z.disabled&&"opacity-50 cursor-not-allowed",Z.className),title:Z.tooltip,"data-testid":Z["data-testid"],children:[Z.icon,!Z.hideLabel&&Z.label&&C.jsx(pe,{variant:"medium",className:"text-inherit",children:Z.label})]})},Z.id)),Q=()=>C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsxs("div",{className:"relative",children:[C.jsxs("button",{type:"button",onClick:()=>O(!N),disabled:w,className:J("flex items-center gap-1.5 px-3 py-1 rounded-full transition-colors",V().actionBg,"text-white hover:opacity-90"),"data-testid":`${b}-actions-dropdown`,children:[C.jsx(pe,{variant:"medium",className:"text-white",children:f}),C.jsx("svg",{className:J("w-4 h-4 transition-transform",N&&"rotate-180"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),N&&C.jsx("div",{className:"absolute bottom-full mb-2 right-0 bg-white dark:bg-neutral-800 border border-neutral-200 dark:border-neutral-700 rounded-lg shadow-lg min-w-[200px] z-50",children:B.map(Z=>C.jsx("div",{className:"p-1",children:Z.label},Z.key))})]}),L()]}),q=W(),U=V(),K=_();return!e&&!y?null:C.jsx(Ze.AnimatePresence,{children:(e||y)&&C.jsx(Ze.motion.div,{ref:I,initial:{y:s==="bottom"?20:-20,opacity:0},animate:{y:0,opacity:1},exit:{y:s==="bottom"?20:-20,opacity:0},transition:{duration:m,ease:[.4,0,.2,1]},className:J("fixed left-1/2 transform -translate-x-1/2 z-50",K,u),style:{width:c},"aria-label":p||`Floating bar with ${n} selected items`,"data-testid":b,children:C.jsxs("div",{ref:$,className:J("flex items-center justify-between border rounded-lg shadow-lg",q.container,q.height,U.background,U.text,U.border),children:[C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx("button",{type:"button",onClick:j,disabled:w,className:"flex items-center justify-center w-6 h-6 rounded-full hover:bg-white/10 transition-colors","aria-label":"Close floating bar","data-testid":`${b}-close-button`,children:C.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),y&&S?C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("svg",{className:"w-4 h-4 text-red-200",fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),C.jsx(pe,{variant:"medium",className:"text-inherit",children:S})]}):C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-white/20 text-white",children:n}),C.jsx(pe,{variant:"medium",className:"text-inherit",children:d})]})]}),!y&&!w&&C.jsx("div",{ref:k,className:J("flex items-center",i&&J("rounded-full px-2",U.actionBg)),children:T?C.jsxs(Ze.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:m},className:"flex items-center gap-1",children:[z(),L()]}):C.jsx(Ze.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:m},children:Q()})}),w&&C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("div",{className:"w-4 h-4 border-2 border-white/20 border-t-white rounded-full animate-spin"}),C.jsx(pe,{variant:"medium",className:"text-inherit",children:"Loading..."})]})]})})})});Jy.displayName="FloatingBar",xe.Badge=Yb,xe.Banner=e1,xe.CURRENCIES=bf,xe.CURRENCY_SYMBOLS=Rb,xe.Checkbox=gh,xe.CodeEditor=$$,xe.ColorPicker=hh,xe.CreatableSelectField=jb,xe.CurrencyInputField=Lb,xe.DateRange=Db,xe.DebounceInputField=_b,xe.DiffViewer=Jf,xe.FileUpload=Ub,xe.FloatingBar=Jy,xe.InlineDiffHighlighter=J$,xe.InputField=h0,xe.JsonGrid=Gy,xe.LabelValue=Kb,xe.Modal=Jb,xe.MultiFileUpload=Wb,xe.OptionButton=Zf,xe.PdfViewer=l1,xe.PercentageInputField=Vb,xe.Popper=u1,xe.ResizableSidebar=s1,xe.StatusColorMapping=Xb,xe.Tabs=Hy,xe.Tag=pa,xe.TextField=r2,xe.Toast=hP,xe.Toggle=yf,xe.Typography=pe,xe.filterTopLevelPaths=b$,xe.formatBooleanValue=xf,xe.formatCurrency=wf,xe.formatDate=ga,xe.isISODateString=Qb,xe.monacoManager=By,xe.parseJson=zy,xe.randomHexString=y$,xe.systemMessages=vr,xe.toast=vP,xe.useOutsideClick=c1,xe.usePythonSyntax=_y,xe.useTheme=Vy,Object.defineProperty(xe,Symbol.toStringTag,{value:"Module"})});
|