@ansible/ansible-ui-framework 2.4.2610 → 2.4.2611
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +1052 -1035
- package/index.umd.cjs +23 -23
- package/package.json +1 -1
package/index.umd.cjs
CHANGED
@@ -14,15 +14,15 @@
|
|
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 uv;function R3(){return uv||(uv=1,process.env.NODE_ENV!=="production"&&function(){var e=y,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=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"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,p="@@iterator";function v(F){if(F===null||typeof F!="object")return null;var se=g&&F[g]||F[p];return typeof se=="function"?se:null}var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(F){{for(var se=arguments.length,ye=new Array(se>1?se-1:0),Te=1;Te<se;Te++)ye[Te-1]=arguments[Te];S("error",F,ye)}}function S(F,se,ye){{var Te=b.ReactDebugCurrentFrame,rt=Te.getStackAddendum();rt!==""&&(se+="%s",ye=ye.concat([rt]));var ut=ye.map(function(Ve){return String(Ve)});ut.unshift("Warning: "+se),Function.prototype.apply.call(console[F],console,ut)}}var w=!1,_=!1,E=!1,O=!1,T=!1,D;D=Symbol.for("react.module.reference");function j(F){return!!(typeof F=="string"||typeof F=="function"||F===r||F===o||T||F===i||F===c||F===u||O||F===h||w||_||E||typeof F=="object"&&F!==null&&(F.$$typeof===f||F.$$typeof===d||F.$$typeof===a||F.$$typeof===s||F.$$typeof===l||F.$$typeof===D||F.getModuleId!==void 0))}function A(F,se,ye){var Te=F.displayName;if(Te)return Te;var rt=se.displayName||se.name||"";return rt!==""?ye+"("+rt+")":ye}function M(F){return F.displayName||"Context"}function P(F){if(F==null)return null;if(typeof F.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof F=="function")return F.displayName||F.name||null;if(typeof F=="string")return F;switch(F){case r:return"Fragment";case n:return"Portal";case o:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof F=="object")switch(F.$$typeof){case s:var se=F;return M(se)+".Consumer";case a:var ye=F;return M(ye._context)+".Provider";case l:return A(F,F.render,"ForwardRef");case d:var Te=F.displayName||null;return Te!==null?Te:P(F.type)||"Memo";case f:{var rt=F,ut=rt._payload,Ve=rt._init;try{return P(Ve(ut))}catch{return null}}}return null}var $=Object.assign,L=0,
|
18
|
-
`+ue+F}}var
|
17
|
+
*/var uv;function R3(){return uv||(uv=1,process.env.NODE_ENV!=="production"&&function(){var e=y,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=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"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,p="@@iterator";function v(F){if(F===null||typeof F!="object")return null;var se=g&&F[g]||F[p];return typeof se=="function"?se:null}var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(F){{for(var se=arguments.length,ye=new Array(se>1?se-1:0),Te=1;Te<se;Te++)ye[Te-1]=arguments[Te];S("error",F,ye)}}function S(F,se,ye){{var Te=b.ReactDebugCurrentFrame,rt=Te.getStackAddendum();rt!==""&&(se+="%s",ye=ye.concat([rt]));var ut=ye.map(function(Ve){return String(Ve)});ut.unshift("Warning: "+se),Function.prototype.apply.call(console[F],console,ut)}}var w=!1,_=!1,E=!1,O=!1,T=!1,D;D=Symbol.for("react.module.reference");function j(F){return!!(typeof F=="string"||typeof F=="function"||F===r||F===o||T||F===i||F===c||F===u||O||F===h||w||_||E||typeof F=="object"&&F!==null&&(F.$$typeof===f||F.$$typeof===d||F.$$typeof===a||F.$$typeof===s||F.$$typeof===l||F.$$typeof===D||F.getModuleId!==void 0))}function A(F,se,ye){var Te=F.displayName;if(Te)return Te;var rt=se.displayName||se.name||"";return rt!==""?ye+"("+rt+")":ye}function M(F){return F.displayName||"Context"}function P(F){if(F==null)return null;if(typeof F.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof F=="function")return F.displayName||F.name||null;if(typeof F=="string")return F;switch(F){case r:return"Fragment";case n:return"Portal";case o:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof F=="object")switch(F.$$typeof){case s:var se=F;return M(se)+".Consumer";case a:var ye=F;return M(ye._context)+".Provider";case l:return A(F,F.render,"ForwardRef");case d:var Te=F.displayName||null;return Te!==null?Te:P(F.type)||"Memo";case f:{var rt=F,ut=rt._payload,Ve=rt._init;try{return P(Ve(ut))}catch{return null}}}return null}var $=Object.assign,L=0,H,q,U,z,N,R,J;function ee(){}ee.__reactDisabledLog=!0;function X(){{if(L===0){H=console.log,q=console.info,U=console.warn,z=console.error,N=console.group,R=console.groupCollapsed,J=console.groupEnd;var F={configurable:!0,enumerable:!0,value:ee,writable:!0};Object.defineProperties(console,{info:F,log:F,warn:F,error:F,group:F,groupCollapsed:F,groupEnd:F})}L++}}function Q(){{if(L--,L===0){var F={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:$({},F,{value:H}),info:$({},F,{value:q}),warn:$({},F,{value:U}),error:$({},F,{value:z}),group:$({},F,{value:N}),groupCollapsed:$({},F,{value:R}),groupEnd:$({},F,{value:J})})}L<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ie=b.ReactCurrentDispatcher,ue;function de(F,se,ye){{if(ue===void 0)try{throw Error()}catch(rt){var Te=rt.stack.trim().match(/\n( *(at )?)/);ue=Te&&Te[1]||""}return`
|
18
|
+
`+ue+F}}var K=!1,ne;{var pe=typeof WeakMap=="function"?WeakMap:Map;ne=new pe}function B(F,se){if(!F||K)return"";{var ye=ne.get(F);if(ye!==void 0)return ye}var Te;K=!0;var rt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ut;ut=ie.current,ie.current=null,X();try{if(se){var Ve=function(){throw Error()};if(Object.defineProperty(Ve.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ve,[])}catch(Wn){Te=Wn}Reflect.construct(F,[],Ve)}else{try{Ve.call()}catch(Wn){Te=Wn}F.call(Ve.prototype)}}else{try{throw Error()}catch(Wn){Te=Wn}F()}}catch(Wn){if(Wn&&Te&&typeof Wn.stack=="string"){for(var Be=Wn.stack.split(`
|
19
19
|
`),On=Te.stack.split(`
|
20
20
|
`),It=Be.length-1,Ht=On.length-1;It>=1&&Ht>=0&&Be[It]!==On[Ht];)Ht--;for(;It>=1&&Ht>=0;It--,Ht--)if(Be[It]!==On[Ht]){if(It!==1||Ht!==1)do if(It--,Ht--,Ht<0||Be[It]!==On[Ht]){var yr=`
|
21
|
-
`+Be[It].replace(" at new "," at ");return F.displayName&&yr.includes("<anonymous>")&&(yr=yr.replace("<anonymous>",F.displayName)),typeof F=="function"&&ne.set(F,yr),yr}while(It>=1&&Ht>=0);break}}}finally{
|
21
|
+
`+Be[It].replace(" at new "," at ");return F.displayName&&yr.includes("<anonymous>")&&(yr=yr.replace("<anonymous>",F.displayName)),typeof F=="function"&&ne.set(F,yr),yr}while(It>=1&&Ht>=0);break}}}finally{K=!1,ie.current=ut,Q(),Error.prepareStackTrace=rt}var Ws=F?F.displayName||F.name:"",va=Ws?de(Ws):"";return typeof F=="function"&&ne.set(F,va),va}function ke(F,se,ye){return B(F,!1)}function Ee(F){var se=F.prototype;return!!(se&&se.isReactComponent)}function He(F,se,ye){if(F==null)return"";if(typeof F=="function")return B(F,Ee(F));if(typeof F=="string")return de(F);switch(F){case c:return de("Suspense");case u:return de("SuspenseList")}if(typeof F=="object")switch(F.$$typeof){case l:return ke(F.render);case d:return He(F.type,se,ye);case f:{var Te=F,rt=Te._payload,ut=Te._init;try{return He(ut(rt),se,ye)}catch{}}}return""}var Ie=Object.prototype.hasOwnProperty,at={},I=b.ReactDebugCurrentFrame;function V(F){if(F){var se=F._owner,ye=He(F.type,F._source,se?se.type:null);I.setExtraStackFrame(ye)}else I.setExtraStackFrame(null)}function G(F,se,ye,Te,rt){{var ut=Function.call.bind(Ie);for(var Ve in F)if(ut(F,Ve)){var Be=void 0;try{if(typeof F[Ve]!="function"){var On=Error((Te||"React class")+": "+ye+" type `"+Ve+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof F[Ve]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw On.name="Invariant Violation",On}Be=F[Ve](se,Ve,Te,ye,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(It){Be=It}Be&&!(Be instanceof Error)&&(V(rt),x("%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).",Te||"React class",ye,Ve,typeof Be),V(null)),Be instanceof Error&&!(Be.message in at)&&(at[Be.message]=!0,V(rt),x("Failed %s type: %s",ye,Be.message),V(null))}}}var fe=Array.isArray;function he(F){return fe(F)}function oe(F){{var se=typeof Symbol=="function"&&Symbol.toStringTag,ye=se&&F[Symbol.toStringTag]||F.constructor.name||"Object";return ye}}function Y(F){try{return le(F),!1}catch{return!0}}function le(F){return""+F}function be(F){if(Y(F))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",oe(F)),le(F)}var xe=b.ReactCurrentOwner,Ne={key:!0,ref:!0,__self:!0,__source:!0},Re,nt,wt;wt={};function jt(F){if(Ie.call(F,"ref")){var se=Object.getOwnPropertyDescriptor(F,"ref").get;if(se&&se.isReactWarning)return!1}return F.ref!==void 0}function Ct(F){if(Ie.call(F,"key")){var se=Object.getOwnPropertyDescriptor(F,"key").get;if(se&&se.isReactWarning)return!1}return F.key!==void 0}function We(F,se){if(typeof F.ref=="string"&&xe.current&&se&&xe.current.stateNode!==se){var ye=P(xe.current.type);wt[ye]||(x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',P(xe.current.type),F.ref),wt[ye]=!0)}}function Pe(F,se){{var ye=function(){Re||(Re=!0,x("%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)",se))};ye.isReactWarning=!0,Object.defineProperty(F,"key",{get:ye,configurable:!0})}}function mt(F,se){{var ye=function(){nt||(nt=!0,x("%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)",se))};ye.isReactWarning=!0,Object.defineProperty(F,"ref",{get:ye,configurable:!0})}}var Rt=function(F,se,ye,Te,rt,ut,Ve){var Be={$$typeof:t,type:F,key:se,ref:ye,props:Ve,_owner:ut};return Be._store={},Object.defineProperty(Be._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Be,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Te}),Object.defineProperty(Be,"_source",{configurable:!1,enumerable:!1,writable:!1,value:rt}),Object.freeze&&(Object.freeze(Be.props),Object.freeze(Be)),Be};function Et(F,se,ye,Te,rt){{var ut,Ve={},Be=null,On=null;ye!==void 0&&(be(ye),Be=""+ye),Ct(se)&&(be(se.key),Be=""+se.key),jt(se)&&(On=se.ref,We(se,rt));for(ut in se)Ie.call(se,ut)&&!Ne.hasOwnProperty(ut)&&(Ve[ut]=se[ut]);if(F&&F.defaultProps){var It=F.defaultProps;for(ut in It)Ve[ut]===void 0&&(Ve[ut]=It[ut])}if(Be||On){var Ht=typeof F=="function"?F.displayName||F.name||"Unknown":F;Be&&Pe(Ve,Ht),On&&mt(Ve,Ht)}return Rt(F,Be,On,rt,Te,xe.current,Ve)}}var Nn=b.ReactCurrentOwner,Vt=b.ReactDebugCurrentFrame;function Bn(F){if(F){var se=F._owner,ye=He(F.type,F._source,se?se.type:null);Vt.setExtraStackFrame(ye)}else Vt.setExtraStackFrame(null)}var we;we=!1;function ot(F){return typeof F=="object"&&F!==null&&F.$$typeof===t}function ln(){{if(Nn.current){var F=P(Nn.current.type);if(F)return`
|
22
22
|
|
23
23
|
Check the render method of \``+F+"`."}return""}}function Ut(F){return""}var wo={};function Co(F){{var se=ln();if(!se){var ye=typeof F=="string"?F:F.displayName||F.name;ye&&(se=`
|
24
24
|
|
25
|
-
Check the top-level render call using <`+ye+">.")}return se}}function Ri(F,se){{if(!F._store||F._store.validated||F.key!=null)return;F._store.validated=!0;var ye=Co(se);if(wo[ye])return;wo[ye]=!0;var Te="";F&&F._owner&&F._owner!==Nn.current&&(Te=" It was passed a child from "+P(F._owner.type)+"."),Bn(F),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ye,Te),Bn(null)}}function Vi(F,se){{if(typeof F!="object")return;if(
|
25
|
+
Check the top-level render call using <`+ye+">.")}return se}}function Ri(F,se){{if(!F._store||F._store.validated||F.key!=null)return;F._store.validated=!0;var ye=Co(se);if(wo[ye])return;wo[ye]=!0;var Te="";F&&F._owner&&F._owner!==Nn.current&&(Te=" It was passed a child from "+P(F._owner.type)+"."),Bn(F),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ye,Te),Bn(null)}}function Vi(F,se){{if(typeof F!="object")return;if(he(F))for(var ye=0;ye<F.length;ye++){var Te=F[ye];ot(Te)&&Ri(Te,se)}else if(ot(F))F._store&&(F._store.validated=!0);else if(F){var rt=v(F);if(typeof rt=="function"&&rt!==F.entries)for(var ut=rt.call(F),Ve;!(Ve=ut.next()).done;)ot(Ve.value)&&Ri(Ve.value,se)}}}function ov(F){{var se=F.type;if(se==null||typeof se=="string")return;var ye;if(typeof se=="function")ye=se.propTypes;else if(typeof se=="object"&&(se.$$typeof===l||se.$$typeof===d))ye=se.propTypes;else return;if(ye){var Te=P(se);G(ye,F.props,"prop",Te,F)}else if(se.PropTypes!==void 0&&!we){we=!0;var rt=P(se);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",rt||"Unknown")}typeof se.getDefaultProps=="function"&&!se.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ph(F){{for(var se=Object.keys(F.props),ye=0;ye<se.length;ye++){var Te=se[ye];if(Te!=="children"&&Te!=="key"){Bn(F),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Te),Bn(null);break}}F.ref!==null&&(Bn(F),x("Invalid attribute `ref` supplied to `React.Fragment`."),Bn(null))}}var yh={};function Ke(F,se,ye,Te,rt,ut){{var Ve=j(F);if(!Ve){var Be="";(F===void 0||typeof F=="object"&&F!==null&&Object.keys(F).length===0)&&(Be+=" 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 On=Ut();On?Be+=On:Be+=ln();var It;F===null?It="null":he(F)?It="array":F!==void 0&&F.$$typeof===t?(It="<"+(P(F.type)||"Unknown")+" />",Be=" Did you accidentally export a JSX literal instead of a component?"):It=typeof F,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",It,Be)}var Ht=Et(F,se,ye,rt,ut);if(Ht==null)return Ht;if(Ve){var yr=se.children;if(yr!==void 0)if(Te)if(he(yr)){for(var Ws=0;Ws<yr.length;Ws++)Vi(yr[Ws],F);Object.freeze&&Object.freeze(yr)}else x("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 Vi(yr,F)}if(Ie.call(se,"key")){var va=P(F),Wn=Object.keys(se).filter(function(Bge){return Bge!=="key"}),av=Wn.length>0?"{key: someKey, "+Wn.join(": ..., ")+": ...}":"{key: someKey}";if(!yh[va+av]){var Nge=Wn.length>0?"{"+Wn.join(": ..., ")+": ...}":"{}";x(`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:
|
@@ -71,7 +71,7 @@ as for instance in your render method then you may be running into this limitati
|
|
71
71
|
|
72
72
|
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
73
73
|
Has styled-components' style tag been unmounted or altered by another script?
|
74
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function GA(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],i=1,o=e.length;i<o;i+=1)r.push(e[i]);return r.forEach(function(a){n=n.replace(/%[a-z]/,a)}),n}function Oa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(GA.apply(void 0,Oo([HA[e]],t,!1)).trim())}var qA=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw Oa(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var a=i;a<o;a++)this.groupSizes[a]=0}for(var s=this.indexOfGroup(t+1),l=(a=0,n.length);a<l;a++)this.tag.insertRule(s,n[a])&&(this.groupSizes[t]++,s++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n;this.groupSizes[t]=0;for(var o=r;o<i;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,a=i;a<o;a++)n+="".concat(this.tag.getRule(a)).concat(Ah);return n},e}(),YA=1<<30,Qc=new Map,eu=new Map,tu=1,nu=function(e){if(Qc.has(e))return Qc.get(e);for(;eu.has(tu);)tu++;var t=tu++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>YA))throw Oa(16,"".concat(t));return Qc.set(e,t),eu.set(t,e),t},KA=function(e,t){tu=t+1,Qc.set(e,t),eu.set(t,e)},ZA="style[".concat(To,"][").concat(Pv,'="').concat(Yc,'"]'),XA=new RegExp("^".concat(To,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),JA=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},QA=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Ah),i=[],o=0,a=r.length;o<a;o++){var s=r[o].trim();if(s){var l=s.match(XA);if(l){var c=0|parseInt(l[1],10),u=l[2];c!==0&&(KA(u,c),JA(e,u,l[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(s)}}},qv=function(e){for(var t=document.querySelectorAll(ZA),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(To)!==jv&&(QA(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function e7(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Yv=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(s){var l=Array.from(s.querySelectorAll("style[".concat(To,"]")));return l[l.length-1]}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(To,jv),r.setAttribute(Pv,Yc);var a=e7();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},t7=function(){function e(t){this.element=Yv(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,o=r.length;i<o;i++){var a=r[i];if(a.ownerNode===n)return a}throw Oa(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),n7=function(){function e(t){this.element=Yv(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),r7=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Kv=Kc,i7={isServer:!Kc,useCSSOMInjection:!jA},Zv=function(){function e(t,n,r){t===void 0&&(t=wa),n===void 0&&(n={});var i=this;this.options=kn(kn({},i7),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Kc&&Kv&&(Kv=!1,qv(this)),Fh(this,function(){return function(o){for(var a=o.getTag(),s=a.length,l="",c=function(d){var f=function(b){return eu.get(b)}(d);if(f===void 0)return"continue";var h=o.names.get(f),g=a.getGroup(d);if(h===void 0||!h.size||g.length===0)return"continue";var p="".concat(To,".g").concat(d,'[id="').concat(f,'"]'),v="";h!==void 0&&h.forEach(function(b){b.length>0&&(v+="".concat(b,","))}),l+="".concat(g).concat(p,'{content:"').concat(v,'"}').concat(Ah)},u=0;u<s;u++)c(u);return l}(i)})}return e.registerId=function(t){return nu(t)},e.prototype.rehydrate=function(){!this.server&&Kc&&qv(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(kn(kn({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,i=n.target;return n.isServer?new r7(i):r?new t7(i):new n7(i)}(this.options),new qA(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(nu(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(nu(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(nu(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),o7=/&/g,a7=/^\s*\/\/.*$/gm;function Xv(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Xv(n.children,t)),n})}function s7(e){var t,n,r,i=wa,o=i.options,a=o===void 0?wa:o,s=i.plugins,l=s===void 0?Xc:s,c=function(f,h,g){return g.startsWith(n)&&g.endsWith(n)&&g.replaceAll(n,"").length>0?".".concat(t):f},u=l.slice();u.push(function(f){f.type===Wc&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(o7,n).replace(r,c))}),a.prefix&&u.push(AA),u.push(OA);var d=function(f,h,g,p){h===void 0&&(h=""),g===void 0&&(g=""),p===void 0&&(p="&"),t=p,n=h,r=new RegExp("\\".concat(n,"\\b"),"g");var v=f.replace(a7,""),b=CA(g||h?"".concat(g," ").concat(h," { ").concat(v," }"):v);a.namespace&&(b=Xv(b,a.namespace));var x=[];return qc(b,kA(u.concat(TA(function(S){return x.push(S)})))),x};return d.hash=l.length?l.reduce(function(f,h){return h.name||Oa(15),Ao(f,h.name)},Lv).toString():"",d}var l7=new Zv,Nh=s7(),Jv=y.createContext({shouldForwardProp:void 0,styleSheet:l7,stylis:Nh});Jv.Consumer,y.createContext(void 0);function Qv(){return y.useContext(Jv)}var Bh=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=Nh);var a=r.name+o.hash;i.hasNameForId(r.id,a)||i.insertRules(r.id,a,o(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Fh(this,function(){throw Oa(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Nh),this.name+t.hash},e}(),c7=function(e){return e>="A"&&e<="Z"};function eb(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;c7(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var tb=function(e){return e==null||e===!1||e===""},nb=function(e){var t,n,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!tb(o)&&(Array.isArray(o)&&o.isCss||Ca(o)?r.push("".concat(eb(i),":"),o,";"):Ea(o)?r.push.apply(r,Oo(Oo(["".concat(i," {")],nb(o),!1),["}"],!1)):r.push("".concat(eb(i),": ").concat((t=i,(n=o)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in DA||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function jo(e,t,n,r){if(tb(e))return[];if($h(e))return[".".concat(e.styledComponentId)];if(Ca(e)){if(!Ca(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var i=e(t);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof Bh||Ea(i)||i===null||console.error("".concat(Bv(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),jo(i,t,n,r)}var o;return e instanceof Bh?n?(e.inject(n,r),[e.getName(r)]):[e]:Ea(e)?nb(e):Array.isArray(e)?Array.prototype.concat.apply(Xc,e.map(function(a){return jo(a,t,n,r)})):[e.toString()]}function u7(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ca(n)&&!$h(n))return!1}return!0}var d7=Fv(Yc),f7=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&u7(t),this.componentId=n,this.baseHash=Ao(d7,n),this.baseStyle=r,Zv.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))i=Do(i,this.staticRulesId);else{var o=Ih(jo(this.rules,t,n,r)),a=jh(Ao(this.baseHash,o)>>>0);if(!n.hasNameForId(this.componentId,a)){var s=r(o,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,s)}i=Do(i,a),this.staticRulesId=a}else{for(var l=Ao(this.baseHash,r.hash),c="",u=0;u<this.rules.length;u++){var d=this.rules[u];if(typeof d=="string")c+=d,process.env.NODE_ENV!=="production"&&(l=Ao(l,d));else if(d){var f=Ih(jo(d,t,n,r));l=Ao(l,f+u),c+=f}}if(c){var h=jh(l>>>0);n.hasNameForId(this.componentId,h)||n.insertRules(this.componentId,h,r(c,".".concat(h),void 0,this.componentId)),i=Do(i,h)}}return i},e}(),rb=y.createContext(void 0);rb.Consumer;var Wh={},ib=new Set;function h7(e,t,n){var r=$h(e),i=e,o=!Mh(e),a=t.attrs,s=a===void 0?Xc:a,l=t.componentId,c=l===void 0?function(w,_){var E=typeof w!="string"?"sc":$v(w);Wh[E]=(Wh[E]||0)+1;var O="".concat(E,"-").concat(Nv(Yc+E+Wh[E]));return _?"".concat(_,"-").concat(O):O}(t.displayName,t.parentComponentId):l,u=t.displayName,d=u===void 0?function(w){return Mh(w)?"styled.".concat(w):"Styled(".concat(Bv(w),")")}(e):u,f=t.displayName&&t.componentId?"".concat($v(t.displayName),"-").concat(t.componentId):t.componentId||c,h=r&&i.attrs?i.attrs.concat(s).filter(Boolean):s,g=t.shouldForwardProp;if(r&&i.shouldForwardProp){var p=i.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;g=function(w,_){return p(w,_)&&v(w,_)}}else g=p}var b=new f7(n,f,r?i.componentStyle:void 0);function x(w,_){return function(E,O,T){var D=E.attrs,j=E.componentStyle,A=E.defaultProps,M=E.foldedComponentIds,P=E.styledComponentId,$=E.target,L=y.useContext(rb),z=Qv(),G=E.shouldForwardProp||z.shouldForwardProp;process.env.NODE_ENV!=="production"&&y.useDebugValue(P);var U=MA(O,L,A)||wa,V=function(J,ie,ue){for(var he,Z=kn(kn({},ie),{className:void 0,theme:ue}),ne=0;ne<J.length;ne+=1){var pe=Ca(he=J[ne])?he(Z):he;for(var B in pe)Z[B]=B==="className"?Do(Z[B],pe[B]):B==="style"?kn(kn({},Z[B]),pe[B]):pe[B]}return ie.className&&(Z.className=Do(Z.className,ie.className)),Z}(D,O,U),N=V.as||$,H={};for(var Q in V)V[Q]===void 0||Q[0]==="$"||Q==="as"||Q==="theme"&&V.theme===U||(Q==="forwardedAs"?H.as=V.forwardedAs:G&&!G(Q,N)||(H[Q]=V[Q],G||process.env.NODE_ENV!=="development"||dA(Q)||ib.has(Q)||!Dh.has(N)||(ib.add(Q),console.warn('styled-components: it looks like an unknown prop "'.concat(Q,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var ee=function(J,ie){var ue=Qv(),he=J.generateAndInjectStyles(ie,ue.styleSheet,ue.stylis);return process.env.NODE_ENV!=="production"&&y.useDebugValue(he),he}(j,V);process.env.NODE_ENV!=="production"&&E.warnTooManyClasses&&E.warnTooManyClasses(ee);var X=Do(M,P);return ee&&(X+=" "+ee),V.className&&(X+=" "+V.className),H[Mh(N)&&!Dh.has(N)?"class":"className"]=X,H.ref=T,y.createElement(N,H)}(S,w,_)}x.displayName=d;var S=y.forwardRef(x);return S.attrs=h,S.componentStyle=b,S.displayName=d,S.shouldForwardProp=g,S.foldedComponentIds=r?Do(i.foldedComponentIds,i.styledComponentId):"",S.styledComponentId=f,S.target=r?i.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(w){this._foldedDefaultProps=r?function(_){for(var E=[],O=1;O<arguments.length;O++)E[O-1]=arguments[O];for(var T=0,D=E;T<D.length;T++)Lh(_,D[T],!0);return _}({},i.defaultProps,w):w}}),process.env.NODE_ENV!=="production"&&(PA(d,f),S.warnTooManyClasses=function(w,_){var E={},O=!1;return function(T){if(!O&&(E[T]=!0,Object.keys(E).length>=200)){var D=_?' with the id of "'.concat(_,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(w).concat(D,`.
|
74
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function GA(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],i=1,o=e.length;i<o;i+=1)r.push(e[i]);return r.forEach(function(a){n=n.replace(/%[a-z]/,a)}),n}function Oa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(GA.apply(void 0,Oo([HA[e]],t,!1)).trim())}var qA=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw Oa(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var a=i;a<o;a++)this.groupSizes[a]=0}for(var s=this.indexOfGroup(t+1),l=(a=0,n.length);a<l;a++)this.tag.insertRule(s,n[a])&&(this.groupSizes[t]++,s++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n;this.groupSizes[t]=0;for(var o=r;o<i;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,a=i;a<o;a++)n+="".concat(this.tag.getRule(a)).concat(Ah);return n},e}(),YA=1<<30,Qc=new Map,eu=new Map,tu=1,nu=function(e){if(Qc.has(e))return Qc.get(e);for(;eu.has(tu);)tu++;var t=tu++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>YA))throw Oa(16,"".concat(t));return Qc.set(e,t),eu.set(t,e),t},KA=function(e,t){tu=t+1,Qc.set(e,t),eu.set(t,e)},ZA="style[".concat(To,"][").concat(Pv,'="').concat(Yc,'"]'),XA=new RegExp("^".concat(To,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),JA=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},QA=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Ah),i=[],o=0,a=r.length;o<a;o++){var s=r[o].trim();if(s){var l=s.match(XA);if(l){var c=0|parseInt(l[1],10),u=l[2];c!==0&&(KA(u,c),JA(e,u,l[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(s)}}},qv=function(e){for(var t=document.querySelectorAll(ZA),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(To)!==jv&&(QA(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function e7(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Yv=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(s){var l=Array.from(s.querySelectorAll("style[".concat(To,"]")));return l[l.length-1]}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(To,jv),r.setAttribute(Pv,Yc);var a=e7();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},t7=function(){function e(t){this.element=Yv(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,o=r.length;i<o;i++){var a=r[i];if(a.ownerNode===n)return a}throw Oa(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),n7=function(){function e(t){this.element=Yv(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),r7=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Kv=Kc,i7={isServer:!Kc,useCSSOMInjection:!jA},Zv=function(){function e(t,n,r){t===void 0&&(t=wa),n===void 0&&(n={});var i=this;this.options=kn(kn({},i7),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Kc&&Kv&&(Kv=!1,qv(this)),Fh(this,function(){return function(o){for(var a=o.getTag(),s=a.length,l="",c=function(d){var f=function(b){return eu.get(b)}(d);if(f===void 0)return"continue";var h=o.names.get(f),g=a.getGroup(d);if(h===void 0||!h.size||g.length===0)return"continue";var p="".concat(To,".g").concat(d,'[id="').concat(f,'"]'),v="";h!==void 0&&h.forEach(function(b){b.length>0&&(v+="".concat(b,","))}),l+="".concat(g).concat(p,'{content:"').concat(v,'"}').concat(Ah)},u=0;u<s;u++)c(u);return l}(i)})}return e.registerId=function(t){return nu(t)},e.prototype.rehydrate=function(){!this.server&&Kc&&qv(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(kn(kn({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,i=n.target;return n.isServer?new r7(i):r?new t7(i):new n7(i)}(this.options),new qA(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(nu(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(nu(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(nu(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),o7=/&/g,a7=/^\s*\/\/.*$/gm;function Xv(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Xv(n.children,t)),n})}function s7(e){var t,n,r,i=wa,o=i.options,a=o===void 0?wa:o,s=i.plugins,l=s===void 0?Xc:s,c=function(f,h,g){return g.startsWith(n)&&g.endsWith(n)&&g.replaceAll(n,"").length>0?".".concat(t):f},u=l.slice();u.push(function(f){f.type===Wc&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(o7,n).replace(r,c))}),a.prefix&&u.push(AA),u.push(OA);var d=function(f,h,g,p){h===void 0&&(h=""),g===void 0&&(g=""),p===void 0&&(p="&"),t=p,n=h,r=new RegExp("\\".concat(n,"\\b"),"g");var v=f.replace(a7,""),b=CA(g||h?"".concat(g," ").concat(h," { ").concat(v," }"):v);a.namespace&&(b=Xv(b,a.namespace));var x=[];return qc(b,kA(u.concat(TA(function(S){return x.push(S)})))),x};return d.hash=l.length?l.reduce(function(f,h){return h.name||Oa(15),Ao(f,h.name)},Lv).toString():"",d}var l7=new Zv,Nh=s7(),Jv=y.createContext({shouldForwardProp:void 0,styleSheet:l7,stylis:Nh});Jv.Consumer,y.createContext(void 0);function Qv(){return y.useContext(Jv)}var Bh=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=Nh);var a=r.name+o.hash;i.hasNameForId(r.id,a)||i.insertRules(r.id,a,o(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Fh(this,function(){throw Oa(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Nh),this.name+t.hash},e}(),c7=function(e){return e>="A"&&e<="Z"};function eb(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;c7(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var tb=function(e){return e==null||e===!1||e===""},nb=function(e){var t,n,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!tb(o)&&(Array.isArray(o)&&o.isCss||Ca(o)?r.push("".concat(eb(i),":"),o,";"):Ea(o)?r.push.apply(r,Oo(Oo(["".concat(i," {")],nb(o),!1),["}"],!1)):r.push("".concat(eb(i),": ").concat((t=i,(n=o)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in DA||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function jo(e,t,n,r){if(tb(e))return[];if($h(e))return[".".concat(e.styledComponentId)];if(Ca(e)){if(!Ca(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var i=e(t);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof Bh||Ea(i)||i===null||console.error("".concat(Bv(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),jo(i,t,n,r)}var o;return e instanceof Bh?n?(e.inject(n,r),[e.getName(r)]):[e]:Ea(e)?nb(e):Array.isArray(e)?Array.prototype.concat.apply(Xc,e.map(function(a){return jo(a,t,n,r)})):[e.toString()]}function u7(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ca(n)&&!$h(n))return!1}return!0}var d7=Fv(Yc),f7=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&u7(t),this.componentId=n,this.baseHash=Ao(d7,n),this.baseStyle=r,Zv.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))i=Do(i,this.staticRulesId);else{var o=Ih(jo(this.rules,t,n,r)),a=jh(Ao(this.baseHash,o)>>>0);if(!n.hasNameForId(this.componentId,a)){var s=r(o,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,s)}i=Do(i,a),this.staticRulesId=a}else{for(var l=Ao(this.baseHash,r.hash),c="",u=0;u<this.rules.length;u++){var d=this.rules[u];if(typeof d=="string")c+=d,process.env.NODE_ENV!=="production"&&(l=Ao(l,d));else if(d){var f=Ih(jo(d,t,n,r));l=Ao(l,f+u),c+=f}}if(c){var h=jh(l>>>0);n.hasNameForId(this.componentId,h)||n.insertRules(this.componentId,h,r(c,".".concat(h),void 0,this.componentId)),i=Do(i,h)}}return i},e}(),rb=y.createContext(void 0);rb.Consumer;var Wh={},ib=new Set;function h7(e,t,n){var r=$h(e),i=e,o=!Mh(e),a=t.attrs,s=a===void 0?Xc:a,l=t.componentId,c=l===void 0?function(w,_){var E=typeof w!="string"?"sc":$v(w);Wh[E]=(Wh[E]||0)+1;var O="".concat(E,"-").concat(Nv(Yc+E+Wh[E]));return _?"".concat(_,"-").concat(O):O}(t.displayName,t.parentComponentId):l,u=t.displayName,d=u===void 0?function(w){return Mh(w)?"styled.".concat(w):"Styled(".concat(Bv(w),")")}(e):u,f=t.displayName&&t.componentId?"".concat($v(t.displayName),"-").concat(t.componentId):t.componentId||c,h=r&&i.attrs?i.attrs.concat(s).filter(Boolean):s,g=t.shouldForwardProp;if(r&&i.shouldForwardProp){var p=i.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;g=function(w,_){return p(w,_)&&v(w,_)}}else g=p}var b=new f7(n,f,r?i.componentStyle:void 0);function x(w,_){return function(E,O,T){var D=E.attrs,j=E.componentStyle,A=E.defaultProps,M=E.foldedComponentIds,P=E.styledComponentId,$=E.target,L=y.useContext(rb),H=Qv(),q=E.shouldForwardProp||H.shouldForwardProp;process.env.NODE_ENV!=="production"&&y.useDebugValue(P);var U=MA(O,L,A)||wa,z=function(Q,ie,ue){for(var de,K=kn(kn({},ie),{className:void 0,theme:ue}),ne=0;ne<Q.length;ne+=1){var pe=Ca(de=Q[ne])?de(K):de;for(var B in pe)K[B]=B==="className"?Do(K[B],pe[B]):B==="style"?kn(kn({},K[B]),pe[B]):pe[B]}return ie.className&&(K.className=Do(K.className,ie.className)),K}(D,O,U),N=z.as||$,R={};for(var J in z)z[J]===void 0||J[0]==="$"||J==="as"||J==="theme"&&z.theme===U||(J==="forwardedAs"?R.as=z.forwardedAs:q&&!q(J,N)||(R[J]=z[J],q||process.env.NODE_ENV!=="development"||dA(J)||ib.has(J)||!Dh.has(N)||(ib.add(J),console.warn('styled-components: it looks like an unknown prop "'.concat(J,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var ee=function(Q,ie){var ue=Qv(),de=Q.generateAndInjectStyles(ie,ue.styleSheet,ue.stylis);return process.env.NODE_ENV!=="production"&&y.useDebugValue(de),de}(j,z);process.env.NODE_ENV!=="production"&&E.warnTooManyClasses&&E.warnTooManyClasses(ee);var X=Do(M,P);return ee&&(X+=" "+ee),z.className&&(X+=" "+z.className),R[Mh(N)&&!Dh.has(N)?"class":"className"]=X,R.ref=T,y.createElement(N,R)}(S,w,_)}x.displayName=d;var S=y.forwardRef(x);return S.attrs=h,S.componentStyle=b,S.displayName=d,S.shouldForwardProp=g,S.foldedComponentIds=r?Do(i.foldedComponentIds,i.styledComponentId):"",S.styledComponentId=f,S.target=r?i.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(w){this._foldedDefaultProps=r?function(_){for(var E=[],O=1;O<arguments.length;O++)E[O-1]=arguments[O];for(var T=0,D=E;T<D.length;T++)Lh(_,D[T],!0);return _}({},i.defaultProps,w):w}}),process.env.NODE_ENV!=="production"&&(PA(d,f),S.warnTooManyClasses=function(w,_){var E={},O=!1;return function(T){if(!O&&(E[T]=!0,Object.keys(E).length>=200)){var D=_?' with the id of "'.concat(_,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(w).concat(D,`.
|
75
75
|
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
76
76
|
Example:
|
77
77
|
const Component = styled.div.attrs(props => ({
|
@@ -155,7 +155,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ru]+=1);const iu=De.button`
|
|
155
155
|
*
|
156
156
|
* This source code is licensed under the MIT license found in the
|
157
157
|
* LICENSE file in the root directory of this source tree.
|
158
|
-
*/var y1;function EP(){return y1||(y1=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=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,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function S(B){return typeof B=="string"||typeof B=="function"||B===r||B===c||B===o||B===i||B===d||B===f||typeof B=="object"&&B!==null&&(B.$$typeof===g||B.$$typeof===h||B.$$typeof===a||B.$$typeof===s||B.$$typeof===u||B.$$typeof===v||B.$$typeof===b||B.$$typeof===x||B.$$typeof===p)}function w(B){if(typeof B=="object"&&B!==null){var ke=B.$$typeof;switch(ke){case t:var Ee=B.type;switch(Ee){case l:case c:case r:case o:case i:case d:return Ee;default:var He=Ee&&Ee.$$typeof;switch(He){case s:case u:case g:case h:case a:return He;default:return ke}}case n:return ke}}}var _=l,E=c,O=s,T=a,D=t,j=u,A=r,M=g,P=h,$=n,L=o,z=i,G=d,U=!1;function V(B){return U||(U=!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.")),N(B)||w(B)===l}function N(B){return w(B)===c}function H(B){return w(B)===s}function Q(B){return w(B)===a}function ee(B){return typeof B=="object"&&B!==null&&B.$$typeof===t}function X(B){return w(B)===u}function J(B){return w(B)===r}function ie(B){return w(B)===g}function ue(B){return w(B)===h}function he(B){return w(B)===n}function Z(B){return w(B)===o}function ne(B){return w(B)===i}function pe(B){return w(B)===d}et.AsyncMode=_,et.ConcurrentMode=E,et.ContextConsumer=O,et.ContextProvider=T,et.Element=D,et.ForwardRef=j,et.Fragment=A,et.Lazy=M,et.Memo=P,et.Portal=$,et.Profiler=L,et.StrictMode=z,et.Suspense=G,et.isAsyncMode=V,et.isConcurrentMode=N,et.isContextConsumer=H,et.isContextProvider=Q,et.isElement=ee,et.isForwardRef=X,et.isFragment=J,et.isLazy=ie,et.isMemo=ue,et.isPortal=he,et.isProfiler=Z,et.isStrictMode=ne,et.isSuspense=pe,et.isValidElementType=S,et.typeOf=w}()),et}process.env.NODE_ENV==="production"?Am.exports=CP():Am.exports=EP();var Dm=Am.exports,jm=Dm,OP={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},kP={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},TP={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},v1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Pm={};Pm[jm.ForwardRef]=TP,Pm[jm.Memo]=v1;function b1(e){return jm.isMemo(e)?v1:Pm[e.$$typeof]||OP}var AP=Object.defineProperty,DP=Object.getOwnPropertyNames,x1=Object.getOwnPropertySymbols,jP=Object.getOwnPropertyDescriptor,PP=Object.getPrototypeOf,_1=Object.prototype;function S1(e,t,n){if(typeof t!="string"){if(_1){var r=PP(t);r&&r!==_1&&S1(e,r,n)}var i=DP(t);x1&&(i=i.concat(x1(t)));for(var o=b1(e),a=b1(t),s=0;s<i.length;++s){var l=i[s];if(!kP[l]&&!(n&&n[l])&&!(a&&a[l])&&!(o&&o[l])){var c=jP(t,l);try{AP(e,l,c)}catch{}}}}return e}var MP=S1;const rn=Fe(MP),w1={name:"--pf-v5-chart-legend--Margin",value:16,var:"var(--pf-v5-chart-legend--Margin, 16)"};var $P=Object.prototype;function IP(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||$P;return e===n}var Pu=IP;function LP(e,t){return function(n){return e(t(n))}}var C1=LP,FP=C1,NP=FP(Object.keys,Object),BP=NP,WP=Pu,zP=BP,RP=Object.prototype,VP=RP.hasOwnProperty;function UP(e){if(!WP(e))return zP(e);var t=[];for(var n in Object(e))VP.call(e,n)&&n!="constructor"&&t.push(n);return t}var E1=UP,HP=typeof zs=="object"&&zs&&zs.Object===Object&&zs,O1=HP,GP=O1,qP=typeof self=="object"&&self&&self.Object===Object&&self,YP=GP||qP||Function("return this")(),Er=YP,KP=Er,ZP=KP.Symbol,Ra=ZP,k1=Ra,T1=Object.prototype,XP=T1.hasOwnProperty,JP=T1.toString,il=k1?k1.toStringTag:void 0;function QP(e){var t=XP.call(e,il),n=e[il];try{e[il]=void 0;var r=!0}catch{}var i=JP.call(e);return r&&(t?e[il]=n:delete e[il]),i}var eM=QP,tM=Object.prototype,nM=tM.toString;function rM(e){return nM.call(e)}var iM=rM,A1=Ra,oM=eM,aM=iM,sM="[object Null]",lM="[object Undefined]",D1=A1?A1.toStringTag:void 0;function cM(e){return e==null?e===void 0?lM:sM:D1&&D1 in Object(e)?oM(e):aM(e)}var to=cM;function uM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Tn=uM;const ol=Fe(Tn);var dM=to,fM=Tn,hM="[object AsyncFunction]",mM="[object Function]",gM="[object GeneratorFunction]",pM="[object Proxy]";function yM(e){if(!fM(e))return!1;var t=dM(e);return t==mM||t==gM||t==hM||t==pM}var Mm=yM,vM=Er,bM=vM["__core-js_shared__"],xM=bM,$m=xM,j1=function(){var e=/[^.]+$/.exec($m&&$m.keys&&$m.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function _M(e){return!!j1&&j1 in e}var SM=_M,wM=Function.prototype,CM=wM.toString;function EM(e){if(e!=null){try{return CM.call(e)}catch{}try{return e+""}catch{}}return""}var P1=EM,OM=Mm,kM=SM,TM=Tn,AM=P1,DM=/[\\^$.*+?()[\]{}|]/g,jM=/^\[object .+?Constructor\]$/,PM=Function.prototype,MM=Object.prototype,$M=PM.toString,IM=MM.hasOwnProperty,LM=RegExp("^"+$M.call(IM).replace(DM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function FM(e){if(!TM(e)||kM(e))return!1;var t=OM(e)?LM:jM;return t.test(AM(e))}var NM=FM;function BM(e,t){return e==null?void 0:e[t]}var WM=BM,zM=NM,RM=WM;function VM(e,t){var n=RM(e,t);return zM(n)?n:void 0}var Wo=VM,UM=Wo,HM=Er,GM=UM(HM,"DataView"),qM=GM,YM=Wo,KM=Er,ZM=YM(KM,"Map"),Im=ZM,XM=Wo,JM=Er,QM=XM(JM,"Promise"),e$=QM,t$=Wo,n$=Er,r$=t$(n$,"Set"),M1=r$,i$=Wo,o$=Er,a$=i$(o$,"WeakMap"),s$=a$,Lm=qM,Fm=Im,Nm=e$,Bm=M1,Wm=s$,$1=to,Va=P1,I1="[object Map]",l$="[object Object]",L1="[object Promise]",F1="[object Set]",N1="[object WeakMap]",B1="[object DataView]",c$=Va(Lm),u$=Va(Fm),d$=Va(Nm),f$=Va(Bm),h$=Va(Wm),zo=$1;(Lm&&zo(new Lm(new ArrayBuffer(1)))!=B1||Fm&&zo(new Fm)!=I1||Nm&&zo(Nm.resolve())!=L1||Bm&&zo(new Bm)!=F1||Wm&&zo(new Wm)!=N1)&&(zo=function(e){var t=$1(e),n=t==l$?e.constructor:void 0,r=n?Va(n):"";if(r)switch(r){case c$:return B1;case u$:return I1;case d$:return L1;case f$:return F1;case h$:return N1}return t});var Ua=zo;function m$(e){return e!=null&&typeof e=="object"}var Or=m$,g$=to,p$=Or,y$="[object Arguments]";function v$(e){return p$(e)&&g$(e)==y$}var b$=v$,W1=b$,x$=Or,z1=Object.prototype,_$=z1.hasOwnProperty,S$=z1.propertyIsEnumerable,w$=W1(function(){return arguments}())?W1:function(e){return x$(e)&&_$.call(e,"callee")&&!S$.call(e,"callee")},al=w$,C$=Array.isArray,yn=C$,E$=9007199254740991;function O$(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=E$}var zm=O$,k$=Mm,T$=zm;function A$(e){return e!=null&&T$(e.length)&&!k$(e)}var Ro=A$,Mu={exports:{}};function D$(){return!1}var j$=D$;Mu.exports,function(e,t){var n=Er,r=j$,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c}(Mu,Mu.exports);var sl=Mu.exports,P$=to,M$=zm,$$=Or,I$="[object Arguments]",L$="[object Array]",F$="[object Boolean]",N$="[object Date]",B$="[object Error]",W$="[object Function]",z$="[object Map]",R$="[object Number]",V$="[object Object]",U$="[object RegExp]",H$="[object Set]",G$="[object String]",q$="[object WeakMap]",Y$="[object ArrayBuffer]",K$="[object DataView]",Z$="[object Float32Array]",X$="[object Float64Array]",J$="[object Int8Array]",Q$="[object Int16Array]",eI="[object Int32Array]",tI="[object Uint8Array]",nI="[object Uint8ClampedArray]",rI="[object Uint16Array]",iI="[object Uint32Array]",yt={};yt[Z$]=yt[X$]=yt[J$]=yt[Q$]=yt[eI]=yt[tI]=yt[nI]=yt[rI]=yt[iI]=!0,yt[I$]=yt[L$]=yt[Y$]=yt[F$]=yt[K$]=yt[N$]=yt[B$]=yt[W$]=yt[z$]=yt[R$]=yt[V$]=yt[U$]=yt[H$]=yt[G$]=yt[q$]=!1;function oI(e){return $$(e)&&M$(e.length)&&!!yt[P$(e)]}var aI=oI;function sI(e){return function(t){return e(t)}}var Ha=sI,$u={exports:{}};$u.exports,function(e,t){var n=O1,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}($u,$u.exports);var ll=$u.exports,lI=aI,cI=Ha,R1=ll,V1=R1&&R1.isTypedArray,uI=V1?cI(V1):lI,Iu=uI,dI=E1,fI=Ua,hI=al,mI=yn,gI=Ro,pI=sl,yI=Pu,vI=Iu,bI="[object Map]",xI="[object Set]",_I=Object.prototype,SI=_I.hasOwnProperty;function wI(e){if(e==null)return!0;if(gI(e)&&(mI(e)||typeof e=="string"||typeof e.splice=="function"||pI(e)||vI(e)||hI(e)))return!e.length;var t=fI(e);if(t==bI||t==xI)return!e.size;if(yI(e))return!dI(e).length;for(var n in e)if(SI.call(e,n))return!1;return!0}var CI=wI;const vt=Fe(CI);function EI(e){return e}var Ga=EI;const qa=Fe(Ga);function OI(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var kI=OI,TI=kI,U1=Math.max;function AI(e,t,n){return t=U1(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=U1(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),TI(e,this,s)}}var H1=AI;function DI(e){return function(){return e}}var jI=DI,PI=Wo,MI=function(){try{var e=PI(Object,"defineProperty");return e({},"",{}),e}catch{}}(),G1=MI,$I=jI,q1=G1,II=Ga,LI=q1?function(e,t){return q1(e,"toString",{configurable:!0,enumerable:!1,value:$I(t),writable:!0})}:II,FI=LI,NI=800,BI=16,WI=Date.now;function zI(e){var t=0,n=0;return function(){var r=WI(),i=BI-(r-n);if(n=r,i>0){if(++t>=NI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var RI=zI,VI=FI,UI=RI,HI=UI(VI),Y1=HI,GI=Ga,qI=H1,YI=Y1;function KI(e,t){return YI(qI(e,t,GI),e+"")}var Rm=KI;function ZI(e,t){return e===t||e!==e&&t!==t}var Vo=ZI,XI=9007199254740991,JI=/^(?:0|[1-9]\d*)$/;function QI(e,t){var n=typeof e;return t=t??XI,!!t&&(n=="number"||n!="symbol"&&JI.test(e))&&e>-1&&e%1==0&&e<t}var Lu=QI,eL=Vo,tL=Ro,nL=Lu,rL=Tn;function iL(e,t,n){if(!rL(n))return!1;var r=typeof t;return(r=="number"?tL(n)&&nL(t,n.length):r=="string"&&t in n)?eL(n[t],e):!1}var Vm=iL;function oL(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var aL=oL,sL=aL,lL=al,cL=yn,uL=sl,dL=Lu,fL=Iu,hL=Object.prototype,mL=hL.hasOwnProperty;function gL(e,t){var n=cL(e),r=!n&&lL(e),i=!n&&!r&&uL(e),o=!n&&!r&&!i&&fL(e),a=n||r||i||o,s=a?sL(e.length,String):[],l=s.length;for(var c in e)(t||mL.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||dL(c,l)))&&s.push(c);return s}var K1=gL;function pL(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var yL=pL,vL=Tn,bL=Pu,xL=yL,_L=Object.prototype,SL=_L.hasOwnProperty;function wL(e){if(!vL(e))return xL(e);var t=bL(e),n=[];for(var r in e)r=="constructor"&&(t||!SL.call(e,r))||n.push(r);return n}var CL=wL,EL=K1,OL=CL,kL=Ro;function TL(e){return kL(e)?EL(e,!0):OL(e)}var Ya=TL,AL=Rm,DL=Vo,jL=Vm,PL=Ya,Z1=Object.prototype,ML=Z1.hasOwnProperty,$L=AL(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&jL(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=PL(o),s=-1,l=a.length;++s<l;){var c=a[s],u=e[c];(u===void 0||DL(u,Z1[c])&&!ML.call(e,c))&&(e[c]=o[c])}return e}),IL=$L;const K=Fe(IL),LL=e=>+e;function FL(e){return e*e}function NL(e){return e*(2-e)}function X1(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function BL(e){return e*e*e}function WL(e){return--e*e*e+1}function J1(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Um=3,zL=function e(t){t=+t;function n(r){return Math.pow(r,t)}return n.exponent=e,n}(Um),RL=function e(t){t=+t;function n(r){return 1-Math.pow(1-r,t)}return n.exponent=e,n}(Um),Q1=function e(t){t=+t;function n(r){return((r*=2)<=1?Math.pow(r,t):2-Math.pow(2-r,t))/2}return n.exponent=e,n}(Um),ex=Math.PI,tx=ex/2;function VL(e){return+e==1?1:1-Math.cos(e*tx)}function UL(e){return Math.sin(e*tx)}function nx(e){return(1-Math.cos(ex*e))/2}function no(e){return(Math.pow(2,-10*e)-.0009765625)*1.0009775171065494}function HL(e){return no(1-+e)}function GL(e){return 1-no(e)}function rx(e){return((e*=2)<=1?no(1-e):2-no(e-1))/2}function qL(e){return 1-Math.sqrt(1-e*e)}function YL(e){return Math.sqrt(1- --e*e)}function ix(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var Hm=4/11,KL=6/11,ZL=8/11,XL=3/4,JL=9/11,QL=10/11,e4=15/16,t4=21/22,n4=63/64,Fu=1/Hm/Hm;function r4(e){return 1-cl(1-e)}function cl(e){return(e=+e)<Hm?Fu*e*e:e<ZL?Fu*(e-=KL)*e+XL:e<QL?Fu*(e-=JL)*e+e4:Fu*(e-=t4)*e+n4}function i4(e){return((e*=2)<=1?1-cl(1-e):cl(e-1)+1)/2}var Gm=1.70158,o4=function e(t){t=+t;function n(r){return(r=+r)*r*(t*(r-1)+r)}return n.overshoot=e,n}(Gm),a4=function e(t){t=+t;function n(r){return--r*r*((r+1)*t+r)+1}return n.overshoot=e,n}(Gm),ox=function e(t){t=+t;function n(r){return((r*=2)<1?r*r*((t+1)*r-t):(r-=2)*r*((t+1)*r+t)+2)/2}return n.overshoot=e,n}(Gm),Ka=2*Math.PI,qm=1,Ym=.3,s4=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Ka);function i(o){return t*no(- --o)*Math.sin((r-o)/n)}return i.amplitude=function(o){return e(o,n*Ka)},i.period=function(o){return e(t,o)},i}(qm,Ym),ax=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Ka);function i(o){return 1-t*no(o=+o)*Math.sin((o+r)/n)}return i.amplitude=function(o){return e(o,n*Ka)},i.period=function(o){return e(t,o)},i}(qm,Ym),l4=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Ka);function i(o){return((o=o*2-1)<0?t*no(-o)*Math.sin((r-o)/n):2-t*no(o)*Math.sin((r+o)/n))/2}return i.amplitude=function(o){return e(o,n*Ka)},i.period=function(o){return e(t,o)},i}(qm,Ym);const c4=Object.freeze(Object.defineProperty({__proto__:null,easeBack:ox,easeBackIn:o4,easeBackInOut:ox,easeBackOut:a4,easeBounce:cl,easeBounceIn:r4,easeBounceInOut:i4,easeBounceOut:cl,easeCircle:ix,easeCircleIn:qL,easeCircleInOut:ix,easeCircleOut:YL,easeCubic:J1,easeCubicIn:BL,easeCubicInOut:J1,easeCubicOut:WL,easeElastic:ax,easeElasticIn:s4,easeElasticInOut:l4,easeElasticOut:ax,easeExp:rx,easeExpIn:HL,easeExpInOut:rx,easeExpOut:GL,easeLinear:LL,easePoly:Q1,easePolyIn:zL,easePolyInOut:Q1,easePolyOut:RL,easeQuad:X1,easeQuadIn:FL,easeQuadInOut:X1,easeQuadOut:NL,easeSin:nx,easeSinIn:VL,easeSinInOut:nx,easeSinOut:UL},Symbol.toStringTag,{value:"Module"}));function u4(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Nu=u4,d4=to,f4=Or,h4="[object Symbol]";function m4(e){return typeof e=="symbol"||f4(e)&&d4(e)==h4}var ul=m4,g4=yn,p4=ul,y4=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,v4=/^\w*$/;function b4(e,t){if(g4(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||p4(e)?!0:v4.test(e)||!y4.test(e)||t!=null&&e in Object(t)}var Km=b4,x4=Wo,_4=x4(Object,"create"),Bu=_4,sx=Bu;function S4(){this.__data__=sx?sx(null):{},this.size=0}var w4=S4;function C4(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var E4=C4,O4=Bu,k4="__lodash_hash_undefined__",T4=Object.prototype,A4=T4.hasOwnProperty;function D4(e){var t=this.__data__;if(O4){var n=t[e];return n===k4?void 0:n}return A4.call(t,e)?t[e]:void 0}var j4=D4,P4=Bu,M4=Object.prototype,$4=M4.hasOwnProperty;function I4(e){var t=this.__data__;return P4?t[e]!==void 0:$4.call(t,e)}var L4=I4,F4=Bu,N4="__lodash_hash_undefined__";function B4(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=F4&&t===void 0?N4:t,this}var W4=B4,z4=w4,R4=E4,V4=j4,U4=L4,H4=W4;function Za(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Za.prototype.clear=z4,Za.prototype.delete=R4,Za.prototype.get=V4,Za.prototype.has=U4,Za.prototype.set=H4;var G4=Za;function q4(){this.__data__=[],this.size=0}var Y4=q4,K4=Vo;function Z4(e,t){for(var n=e.length;n--;)if(K4(e[n][0],t))return n;return-1}var Wu=Z4,X4=Wu,J4=Array.prototype,Q4=J4.splice;function eF(e){var t=this.__data__,n=X4(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Q4.call(t,n,1),--this.size,!0}var tF=eF,nF=Wu;function rF(e){var t=this.__data__,n=nF(t,e);return n<0?void 0:t[n][1]}var iF=rF,oF=Wu;function aF(e){return oF(this.__data__,e)>-1}var sF=aF,lF=Wu;function cF(e,t){var n=this.__data__,r=lF(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var uF=cF,dF=Y4,fF=tF,hF=iF,mF=sF,gF=uF;function Xa(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Xa.prototype.clear=dF,Xa.prototype.delete=fF,Xa.prototype.get=hF,Xa.prototype.has=mF,Xa.prototype.set=gF;var zu=Xa,lx=G4,pF=zu,yF=Im;function vF(){this.size=0,this.__data__={hash:new lx,map:new(yF||pF),string:new lx}}var bF=vF;function xF(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var _F=xF,SF=_F;function wF(e,t){var n=e.__data__;return SF(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Ru=wF,CF=Ru;function EF(e){var t=CF(this,e).delete(e);return this.size-=t?1:0,t}var OF=EF,kF=Ru;function TF(e){return kF(this,e).get(e)}var AF=TF,DF=Ru;function jF(e){return DF(this,e).has(e)}var PF=jF,MF=Ru;function $F(e,t){var n=MF(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var IF=$F,LF=bF,FF=OF,NF=AF,BF=PF,WF=IF;function Ja(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ja.prototype.clear=LF,Ja.prototype.delete=FF,Ja.prototype.get=NF,Ja.prototype.has=BF,Ja.prototype.set=WF;var Zm=Ja,cx=Zm,zF="Expected a function";function Xm(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(zF);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Xm.Cache||cx),n}Xm.Cache=cx;var ux=Xm;const dx=Fe(ux);var RF=ux,VF=500;function UF(e){var t=RF(e,function(r){return n.size===VF&&n.clear(),r}),n=t.cache;return t}var HF=UF,GF=HF,qF=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,YF=/\\(\\)?/g,KF=GF(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(qF,function(n,r,i,o){t.push(i?o.replace(YF,"$1"):r||n)}),t}),ZF=KF,fx=Ra,XF=Nu,JF=yn,QF=ul,e8=1/0,hx=fx?fx.prototype:void 0,mx=hx?hx.toString:void 0;function gx(e){if(typeof e=="string")return e;if(JF(e))return XF(e,gx)+"";if(QF(e))return mx?mx.call(e):"";var t=e+"";return t=="0"&&1/e==-e8?"-0":t}var t8=gx,n8=t8;function r8(e){return e==null?"":n8(e)}var px=r8,i8=yn,o8=Km,a8=ZF,s8=px;function l8(e,t){return i8(e)?e:o8(e,t)?[e]:a8(s8(e))}var Vu=l8,c8=ul,u8=1/0;function d8(e){if(typeof e=="string"||c8(e))return e;var t=e+"";return t=="0"&&1/e==-u8?"-0":t}var dl=d8,f8=Vu,h8=dl;function m8(e,t){t=f8(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[h8(t[n++])];return n&&n==r?e:void 0}var Uu=m8,g8=zu;function p8(){this.__data__=new g8,this.size=0}var y8=p8;function v8(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var b8=v8;function x8(e){return this.__data__.get(e)}var _8=x8;function S8(e){return this.__data__.has(e)}var w8=S8,C8=zu,E8=Im,O8=Zm,k8=200;function T8(e,t){var n=this.__data__;if(n instanceof C8){var r=n.__data__;if(!E8||r.length<k8-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new O8(r)}return n.set(e,t),this.size=n.size,this}var A8=T8,D8=zu,j8=y8,P8=b8,M8=_8,$8=w8,I8=A8;function Qa(e){var t=this.__data__=new D8(e);this.size=t.size}Qa.prototype.clear=j8,Qa.prototype.delete=P8,Qa.prototype.get=M8,Qa.prototype.has=$8,Qa.prototype.set=I8;var Hu=Qa,L8="__lodash_hash_undefined__";function F8(e){return this.__data__.set(e,L8),this}var N8=F8;function B8(e){return this.__data__.has(e)}var W8=B8,z8=Zm,R8=N8,V8=W8;function Gu(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new z8;++t<n;)this.add(e[t])}Gu.prototype.add=Gu.prototype.push=R8,Gu.prototype.has=V8;var yx=Gu;function U8(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var H8=U8;function G8(e,t){return e.has(t)}var vx=G8,q8=yx,Y8=H8,K8=vx,Z8=1,X8=2;function J8(e,t,n,r,i,o){var a=n&Z8,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,h=n&X8?new q8:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var g=e[d],p=t[d];if(r)var v=a?r(p,g,d,t,e,o):r(g,p,d,e,t,o);if(v!==void 0){if(v)continue;f=!1;break}if(h){if(!Y8(t,function(b,x){if(!K8(h,x)&&(g===b||i(g,b,n,r,o)))return h.push(x)})){f=!1;break}}else if(!(g===p||i(g,p,n,r,o))){f=!1;break}}return o.delete(e),o.delete(t),f}var bx=J8,Q8=Er,eN=Q8.Uint8Array,xx=eN;function tN(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var _x=tN;function nN(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Jm=nN,Sx=Ra,wx=xx,rN=Vo,iN=bx,oN=_x,aN=Jm,sN=1,lN=2,cN="[object Boolean]",uN="[object Date]",dN="[object Error]",fN="[object Map]",hN="[object Number]",mN="[object RegExp]",gN="[object Set]",pN="[object String]",yN="[object Symbol]",vN="[object ArrayBuffer]",bN="[object DataView]",Cx=Sx?Sx.prototype:void 0,Qm=Cx?Cx.valueOf:void 0;function xN(e,t,n,r,i,o,a){switch(n){case bN:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case vN:return!(e.byteLength!=t.byteLength||!o(new wx(e),new wx(t)));case cN:case uN:case hN:return rN(+e,+t);case dN:return e.name==t.name&&e.message==t.message;case mN:case pN:return e==t+"";case fN:var s=oN;case gN:var l=r&sN;if(s||(s=aN),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=lN,a.set(e,t);var u=iN(s(e),s(t),r,i,o,a);return a.delete(e),u;case yN:if(Qm)return Qm.call(e)==Qm.call(t)}return!1}var _N=xN;function SN(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var e0=SN,wN=e0,CN=yn;function EN(e,t,n){var r=t(e);return CN(e)?r:wN(r,n(e))}var Ex=EN;function ON(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var kN=ON;function TN(){return[]}var Ox=TN,AN=kN,DN=Ox,jN=Object.prototype,PN=jN.propertyIsEnumerable,kx=Object.getOwnPropertySymbols,MN=kx?function(e){return e==null?[]:(e=Object(e),AN(kx(e),function(t){return PN.call(e,t)}))}:DN,t0=MN,$N=K1,IN=E1,LN=Ro;function FN(e){return LN(e)?$N(e):IN(e)}var es=FN,NN=Ex,BN=t0,WN=es;function zN(e){return NN(e,WN,BN)}var Tx=zN,Ax=Tx,RN=1,VN=Object.prototype,UN=VN.hasOwnProperty;function HN(e,t,n,r,i,o){var a=n&RN,s=Ax(e),l=s.length,c=Ax(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var f=s[d];if(!(a?f in t:UN.call(t,f)))return!1}var h=o.get(e),g=o.get(t);if(h&&g)return h==t&&g==e;var p=!0;o.set(e,t),o.set(t,e);for(var v=a;++d<l;){f=s[d];var b=e[f],x=t[f];if(r)var S=a?r(x,b,f,t,e,o):r(b,x,f,e,t,o);if(!(S===void 0?b===x||i(b,x,n,r,o):S)){p=!1;break}v||(v=f=="constructor")}if(p&&!v){var w=e.constructor,_=t.constructor;w!=_&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof _=="function"&&_ instanceof _)&&(p=!1)}return o.delete(e),o.delete(t),p}var GN=HN,n0=Hu,qN=bx,YN=_N,KN=GN,Dx=Ua,jx=yn,Px=sl,ZN=Iu,XN=1,Mx="[object Arguments]",$x="[object Array]",qu="[object Object]",JN=Object.prototype,Ix=JN.hasOwnProperty;function QN(e,t,n,r,i,o){var a=jx(e),s=jx(t),l=a?$x:Dx(e),c=s?$x:Dx(t);l=l==Mx?qu:l,c=c==Mx?qu:c;var u=l==qu,d=c==qu,f=l==c;if(f&&Px(e)){if(!Px(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new n0),a||ZN(e)?qN(e,t,n,r,i,o):YN(e,t,l,n,r,i,o);if(!(n&XN)){var h=u&&Ix.call(e,"__wrapped__"),g=d&&Ix.call(t,"__wrapped__");if(h||g){var p=h?e.value():e,v=g?t.value():t;return o||(o=new n0),i(p,v,n,r,o)}}return f?(o||(o=new n0),KN(e,t,n,r,i,o)):!1}var e9=QN,t9=e9,Lx=Or;function Fx(e,t,n,r,i){return e===t?!0:e==null||t==null||!Lx(e)&&!Lx(t)?e!==e&&t!==t:t9(e,t,n,r,Fx,i)}var r0=Fx,n9=Hu,r9=r0,i9=1,o9=2;function a9(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new n9;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?r9(u,c,i9|o9,r,d):f))return!1}}return!0}var s9=a9,l9=Tn;function c9(e){return e===e&&!l9(e)}var Nx=c9,u9=Nx,d9=es;function f9(e){for(var t=d9(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,u9(i)]}return t}var h9=f9;function m9(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Bx=m9,g9=s9,p9=h9,y9=Bx;function v9(e){var t=p9(e);return t.length==1&&t[0][2]?y9(t[0][0],t[0][1]):function(n){return n===e||g9(n,e,t)}}var b9=v9,x9=Uu;function _9(e,t,n){var r=e==null?void 0:x9(e,t);return r===void 0?n:r}var S9=_9;function w9(e,t){return e!=null&&t in Object(e)}var C9=w9,E9=Vu,O9=al,k9=yn,T9=Lu,A9=zm,D9=dl;function j9(e,t,n){t=E9(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=D9(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&A9(i)&&T9(a,i)&&(k9(e)||O9(e)))}var P9=j9,M9=C9,$9=P9;function I9(e,t){return e!=null&&$9(e,t,M9)}var Wx=I9,L9=r0,F9=S9,N9=Wx,B9=Km,W9=Nx,z9=Bx,R9=dl,V9=1,U9=2;function H9(e,t){return B9(e)&&W9(t)?z9(R9(e),t):function(n){var r=F9(n,e);return r===void 0&&r===t?N9(n,e):L9(t,r,V9|U9)}}var G9=H9;function q9(e){return function(t){return t==null?void 0:t[e]}}var Y9=q9,K9=Uu;function Z9(e){return function(t){return K9(t,e)}}var X9=Z9,J9=Y9,Q9=X9,eB=Km,tB=dl;function nB(e){return eB(e)?J9(tB(e)):Q9(e)}var zx=nB;const Rx=Fe(zx);var rB=b9,iB=G9,oB=Ga,aB=yn,sB=zx;function lB(e){return typeof e=="function"?e:e==null?oB:typeof e=="object"?aB(e)?iB(e[0],e[1]):rB(e):sB(e)}var fl=lB;function cB(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var uB=cB,dB=uB,fB=dB(),Vx=fB,hB=Vx,mB=es;function gB(e,t){return e&&hB(e,t,mB)}var Ux=gB,pB=Ro;function yB(e,t){return function(n,r){if(n==null)return n;if(!pB(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var vB=yB,bB=Ux,xB=vB,_B=xB(bB),Hx=_B,SB=Hx,wB=Ro;function CB(e,t){var n=-1,r=wB(e)?Array(e.length):[];return SB(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var EB=CB;function OB(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var kB=OB,Gx=ul;function TB(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=Gx(e),a=t!==void 0,s=t===null,l=t===t,c=Gx(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}var AB=TB,DB=AB;function jB(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=DB(i[r],o[r]);if(l){if(r>=s)return l;var c=n[r];return l*(c=="desc"?-1:1)}}return e.index-t.index}var PB=jB,i0=Nu,MB=Uu,$B=fl,IB=EB,LB=kB,FB=Ha,NB=PB,BB=Ga,WB=yn;function zB(e,t,n){t.length?t=i0(t,function(o){return WB(o)?function(a){return MB(a,o.length===1?o[0]:o)}:o}):t=[BB];var r=-1;t=i0(t,FB($B));var i=IB(e,function(o,a,s){var l=i0(t,function(c){return c(o)});return{criteria:l,index:++r,value:o}});return LB(i,function(o,a){return NB(o,a,n)})}var RB=zB,VB=RB,qx=yn;function UB(e,t,n,r){return e==null?[]:(qx(t)||(t=t==null?[]:[t]),n=r?void 0:n,qx(n)||(n=n==null?[]:[n]),VB(e,t,n))}var HB=UB;const ts=Fe(HB);var GB=C1,qB=GB(Object.getPrototypeOf,Object),o0=qB,YB=to,KB=o0,ZB=Or,XB="[object Object]",JB=Function.prototype,QB=Object.prototype,Yx=JB.toString,eW=QB.hasOwnProperty,tW=Yx.call(Object);function nW(e){if(!ZB(e)||YB(e)!=XB)return!1;var t=KB(e);if(t===null)return!0;var n=eW.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Yx.call(n)==tW}var Kx=nW;const Mt=Fe(Kx);function a0(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Zx(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function hl(){}var ml=.7,Yu=1/ml,ns="\\s*([+-]?\\d+)\\s*",gl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",zr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rW=/^#([0-9a-f]{3,8})$/,iW=new RegExp(`^rgb\\(${ns},${ns},${ns}\\)$`),oW=new RegExp(`^rgb\\(${zr},${zr},${zr}\\)$`),aW=new RegExp(`^rgba\\(${ns},${ns},${ns},${gl}\\)$`),sW=new RegExp(`^rgba\\(${zr},${zr},${zr},${gl}\\)$`),lW=new RegExp(`^hsl\\(${gl},${zr},${zr}\\)$`),cW=new RegExp(`^hsla\\(${gl},${zr},${zr},${gl}\\)$`),Xx={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};a0(hl,pl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Jx,formatHex:Jx,formatHex8:uW,formatHsl:dW,formatRgb:Qx,toString:Qx});function Jx(){return this.rgb().formatHex()}function uW(){return this.rgb().formatHex8()}function dW(){return i2(this).formatHsl()}function Qx(){return this.rgb().formatRgb()}function pl(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=rW.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?e2(t):n===3?new An(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ku(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ku(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=iW.exec(e))?new An(t[1],t[2],t[3],1):(t=oW.exec(e))?new An(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=aW.exec(e))?Ku(t[1],t[2],t[3],t[4]):(t=sW.exec(e))?Ku(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=lW.exec(e))?r2(t[1],t[2]/100,t[3]/100,1):(t=cW.exec(e))?r2(t[1],t[2]/100,t[3]/100,t[4]):Xx.hasOwnProperty(e)?e2(Xx[e]):e==="transparent"?new An(NaN,NaN,NaN,0):null}function e2(e){return new An(e>>16&255,e>>8&255,e&255,1)}function Ku(e,t,n,r){return r<=0&&(e=t=n=NaN),new An(e,t,n,r)}function fW(e){return e instanceof hl||(e=pl(e)),e?(e=e.rgb(),new An(e.r,e.g,e.b,e.opacity)):new An}function s0(e,t,n,r){return arguments.length===1?fW(e):new An(e,t,n,r??1)}function An(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}a0(An,s0,Zx(hl,{brighter(e){return e=e==null?Yu:Math.pow(Yu,e),new An(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ml:Math.pow(ml,e),new An(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new An(Uo(this.r),Uo(this.g),Uo(this.b),Zu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:t2,formatHex:t2,formatHex8:hW,formatRgb:n2,toString:n2}));function t2(){return`#${Ho(this.r)}${Ho(this.g)}${Ho(this.b)}`}function hW(){return`#${Ho(this.r)}${Ho(this.g)}${Ho(this.b)}${Ho((isNaN(this.opacity)?1:this.opacity)*255)}`}function n2(){const e=Zu(this.opacity);return`${e===1?"rgb(":"rgba("}${Uo(this.r)}, ${Uo(this.g)}, ${Uo(this.b)}${e===1?")":`, ${e})`}`}function Zu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Uo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ho(e){return e=Uo(e),(e<16?"0":"")+e.toString(16)}function r2(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new kr(e,t,n,r)}function i2(e){if(e instanceof kr)return new kr(e.h,e.s,e.l,e.opacity);if(e instanceof hl||(e=pl(e)),!e)return new kr;if(e instanceof kr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new kr(a,s,l,e.opacity)}function mW(e,t,n,r){return arguments.length===1?i2(e):new kr(e,t,n,r??1)}function kr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}a0(kr,mW,Zx(hl,{brighter(e){return e=e==null?Yu:Math.pow(Yu,e),new kr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ml:Math.pow(ml,e),new kr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new An(l0(e>=240?e-240:e+120,i,r),l0(e,i,r),l0(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new kr(o2(this.h),Xu(this.s),Xu(this.l),Zu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Zu(this.opacity);return`${e===1?"hsl(":"hsla("}${o2(this.h)}, ${Xu(this.s)*100}%, ${Xu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function o2(e){return e=(e||0)%360,e<0?e+360:e}function Xu(e){return Math.max(0,Math.min(1,e||0))}function l0(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const c0=e=>()=>e;function gW(e,t){return function(n){return e+n*t}}function pW(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function yW(e){return(e=+e)==1?a2:function(t,n){return n-t?pW(t,n,e):c0(isNaN(t)?n:t)}}function a2(e,t){var n=t-e;return n?gW(e,n):c0(isNaN(e)?t:e)}const s2=function e(t){var n=yW(t);function r(i,o){var a=n((i=s0(i)).r,(o=s0(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),c=a2(i.opacity,o.opacity);return function(u){return i.r=a(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function vW(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function bW(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function xW(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=Rr(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function _W(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Ju(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function SW(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Rr(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var u0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,d0=new RegExp(u0.source,"g");function wW(e){return function(){return e}}function CW(e){return function(t){return e(t)+""}}function EW(e,t){var n=u0.lastIndex=d0.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=u0.exec(e))&&(i=d0.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Ju(r,i)})),n=d0.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?CW(l[0].x):wW(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function Rr(e,t){var n=typeof t,r;return t==null||n==="boolean"?c0(t):(n==="number"?Ju:n==="string"?(r=pl(t))?(t=r,s2):EW:t instanceof pl?s2:t instanceof Date?_W:bW(t)?vW:Array.isArray(t)?xW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?SW:Ju)(e,t)}function f0(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function OW(e,t){t===void 0&&(t=e,e=Rr);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[s](a-s)}}const Qu=function(e){if(e!==null)switch(typeof e){case"undefined":return!1;case"number":return!isNaN(e)&&e!==Number.POSITIVE_INFINITY&&e!==Number.NEGATIVE_INFINITY;case"string":return!0;case"boolean":return!1;case"object":return e instanceof Date||Array.isArray(e)||Mt(e);case"function":return!0}return!1},l2=function(e,t,n){return n===void 0&&(n=0),function(r){return r<n?e:t}},c2=function(e,t){return function(n){return n>=1?t:function(){const r=typeof e=="function"?e.apply(this,arguments):e,i=typeof t=="function"?t.apply(this,arguments):t;return Rr(r,i)(n)}}},u2=function(e,t){const n=(c,u)=>c===u||!Qu(c)||!Qu(u)?l2(c,u):typeof c=="function"||typeof u=="function"?c2(c,u):typeof c=="object"&&Mt(c)||typeof u=="object"&&Mt(u)?u2(c,u):Rr(c,u),r=c=>Array.isArray(c)?ts(c,"key"):c,i={},o={};let a=e,s=t,l;(a===null||typeof a!="object")&&(a={}),(s===null||typeof s!="object")&&(s={});for(l in s)l in a?i[l]=n(r(a[l]),r(s[l])):o[l]=s[l];return function(c){for(l in i)o[l]=i[l](c);return o}},kW=function(e,t){const n=r=>typeof r=="string"?r.replace(/,/g,""):r;return Rr(n(e),n(t))},TW=function(e,t){return e===t||!Qu(e)||!Qu(t)?l2(e,t):typeof e=="function"||typeof t=="function"?c2(e,t):Mt(e)||Mt(t)?u2(e,t):typeof e=="string"||typeof t=="string"?kW(e,t):Rr(e,t)};var rs=0,yl=0,vl=0,d2=1e3,ed,bl,td=0,Go=0,nd=0,xl=typeof performance=="object"&&performance.now?performance:Date,f2=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function rd(){return Go||(f2(AW),Go=xl.now()+nd)}function AW(){Go=0}function h0(){this._call=this._time=this._next=null}h0.prototype=h2.prototype={constructor:h0,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?rd():+n)+(t==null?0:+t),!this._next&&bl!==this&&(bl?bl._next=this:ed=this,bl=this),this._call=e,this._time=n,m0()},stop:function(){this._call&&(this._call=null,this._time=1/0,m0())}};function h2(e,t,n){var r=new h0;return r.restart(e,t,n),r}function DW(){rd(),++rs;for(var e=ed,t;e;)(t=Go-e._time)>=0&&e._call.call(void 0,t),e=e._next;--rs}function m2(){Go=(td=xl.now())+nd,rs=yl=0;try{DW()}finally{rs=0,PW(),Go=0}}function jW(){var e=xl.now(),t=e-td;t>d2&&(nd-=t,td=e)}function PW(){for(var e,t=ed,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:ed=n);bl=e,m0(r)}function m0(e){if(!rs){yl&&(yl=clearTimeout(yl));var t=e-Go;t>24?(e<1/0&&(yl=setTimeout(m2,e-xl.now()-nd)),vl&&(vl=clearInterval(vl))):(vl||(td=xl.now(),vl=setInterval(jW,d2)),rs=1,f2(m2))}}class g2{constructor(){ce(this,"loop",()=>{this.subscribers.forEach(t=>{t.callback(rd()-t.startTime,t.duration)})});this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}bypassAnimation(){this.shouldAnimate=!1}resumeAnimation(){this.shouldAnimate=!0}start(){this.timer||(this.timer=h2(this.loop))}stop(){this.timer&&(this.timer.stop(),this.timer=null)}subscribe(t,n){const r=this.subscribers.push({startTime:rd(),callback:t,duration:this.shouldAnimate?n:0});return this.activeSubscriptions++,this.start(),r}unsubscribe(t){t!==null&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),this.activeSubscriptions===0&&this.stop()}}const id=y.createContext({transitionTimer:new g2,animationTimer:new g2});id.displayName="TimerContext";const MW=e=>`ease${e.charAt(0).toUpperCase()+e.slice(1)}`,$W=1e3,IW=e=>{let{duration:t=$W,easing:n="quadInOut",delay:r=0,data:i,children:o,onEnd:a}=e;const[s,l]=y.useState({data:Array.isArray(i)?i[0]:i,animationInfo:{progress:0,animating:!1}}),c=y.useContext(id).animationTimer,u=y.useRef(Array.isArray(i)?i.slice(1):[]),d=y.useRef(null),f=y.useRef(void 0),h=c4[MW(n)];y.useEffect(()=>(u.current.length&&g(),()=>{f.current?c.unsubscribe(f.current):c.stop()}),[]),y.useEffect(()=>{d.current&&s.animationInfo&&s.animationInfo.progress<1?l({data:d.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}):(c.unsubscribe(f.current),u.current=Array.isArray(i)?i:[i],g())},[i]);const g=()=>{if(u.current.length){const v=u.current[0];d.current=TW(s.data,v),r?setTimeout(()=>{f.current=c.subscribe(p,t)},r):f.current=c.subscribe(p,t)}else a&&a()},p=v=>{if(!d.current)return;const b=t?v/t:1;if(b>=1){l({data:d.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),f.current&&c.unsubscribe(f.current),u.current.shift(),g();return}l({data:d.current(h(b)),animationInfo:{progress:b,animating:b<1}})};return o(s.data,s.animationInfo)};var LW=px,FW=0;function NW(e){var t=++FW;return LW(e)+t}var BW=NW;const _l=Fe(BW);function g0(){return g0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g0.apply(this,arguments)}const WW=y.forwardRef((e,t)=>y.createElement("svg",g0({ref:t},e)));var p2=G1;function zW(e,t,n){t=="__proto__"&&p2?p2(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var od=zW,RW=od,VW=Vo,UW=Object.prototype,HW=UW.hasOwnProperty;function GW(e,t,n){var r=e[t];(!(HW.call(e,t)&&VW(r,n))||n===void 0&&!(t in e))&&RW(e,t,n)}var p0=GW,qW=p0,YW=Vu,KW=Lu,y2=Tn,ZW=dl;function XW(e,t,n,r){if(!y2(e))return e;t=YW(t,e);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var l=ZW(t[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=a){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=y2(u)?u:KW(t[i+1])?[]:{})}qW(s,l,c),s=s[l]}return e}var JW=XW,QW=Uu,ez=JW,tz=Vu;function nz(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=QW(e,a);n(s,a)&&ez(o,tz(a,e),s)}return o}var v2=nz,rz=v2,iz=Wx;function oz(e,t){return rz(e,t,function(n,r){return iz(e,r)})}var az=oz,b2=Ra,sz=al,lz=yn,x2=b2?b2.isConcatSpreadable:void 0;function cz(e){return lz(e)||sz(e)||!!(x2&&e&&e[x2])}var uz=cz,dz=e0,fz=uz;function _2(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=fz),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?_2(s,t-1,n,r,i):dz(i,s):r||(i[i.length]=s)}return i}var hz=_2,mz=hz;function gz(e){var t=e==null?0:e.length;return t?mz(e,1):[]}var pz=gz,yz=pz,vz=H1,bz=Y1;function xz(e){return bz(vz(e,void 0,yz),e+"")}var _z=xz,Sz=az,wz=_z,Cz=wz(function(e,t){return e==null?{}:Sz(e,t)}),Ez=Cz;const Sl=Fe(Ez);function Oz(e,t){const n=t!=="x",r=xt(e);return n?[e.height-r.bottom,r.top]:[r.left,e.width-r.right]}function kz(e,t){if(t==="x"){const n=dt(e.startAngle||0),r=dt(e.endAngle||360);return[n,r]}return[e.innerRadius||0,Vr(e)]}function S2(e){return Object.entries(e).reduce((t,n)=>(t[n[1]]=n[0],t),{})}function wl(e,t){t===void 0&&(t=[]);const n={};for(const r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function y0(e){const t=h=>h!==void 0,{_x:n,_x1:r,_x0:i,_voronoiX:o,_y:a,_y1:s,_y0:l,_voronoiY:c}=e,u=t(r)?r:n,d=t(s)?s:a,f={x:t(o)?o:u,x0:t(i)?i:n,y:t(c)?c:d,y0:t(l)?l:a};return K({},f,e)}function is(e,t){const{scale:n,polar:r,horizontal:i}=e,o=y0(t),a=e.origin||{x:0,y:0},s=i?n.y(o.y):n.x(o.x),l=i?n.y(o.y0):n.x(o.x0),c=i?n.x(o.x):n.y(o.y),u=i?n.x(o.x0):n.y(o.y0);return{x:r?c*Math.cos(s)+a.x:s,x0:r?u*Math.cos(l)+a.x:l,y:r?-c*Math.sin(s)+a.y:c,y0:r?-u*Math.sin(l)+a.x:u}}function xt(e,t){t===void 0&&(t="padding");const n=e[t],r=typeof n=="number"?n:0,i=typeof n=="object"?n:{};return{top:i.top||r,bottom:i.bottom||r,left:i.left||r,right:i.right||r}}function ad(e){return(e&&e.type&&e.type.role)==="tooltip"}function sd(e,t){const{theme:n={},labelComponent:r}=e,i=n[t]&&n[t].style||{};if(!ad(r))return i;const o=n.tooltip&&n.tooltip.style||{},a=K({},o,i.labels);return K({},{labels:a},i)}function Cl(e,t){const n="100%",r="100%";if(!e)return K({parent:{height:r,width:n}},t);const{data:i,labels:o,parent:a}=e,s=t&&t.parent||{},l=t&&t.labels||{},c=t&&t.data||{};return{parent:K({},a,s,{width:n,height:r}),labels:K({},o,l),data:K({},i,c)}}function te(e,t){return Se(e)?e(t):e}function st(e,t){return t.disableInlineStyles?{}:!e||!Object.keys(e).some(n=>Se(e[n]))?e:Object.keys(e).reduce((n,r)=>(n[r]=te(e[r],t),n),{})}function dt(e){return typeof e=="number"?e*(Math.PI/180):e}function ui(e){return typeof e=="number"?e/(Math.PI/180):e}function Vr(e){const{left:t,right:n,top:r,bottom:i}=xt(e),{width:o,height:a}=e;return Math.min(o-t-n,a-r-i)/2}function El(e){const{width:t,height:n}=e,{top:r,bottom:i,left:o,right:a}=xt(e),s=Math.min(t-o-a,n-r-i)/2,l=t/2+o-a,c=n/2+r-i;return{x:l+s>t?s+o-a:l,y:c+s>n?s+r-i:c}}function Nt(e,t){return e.range&&e.range[t]?e.range[t]:e.range&&Array.isArray(e.range)?e.range:e.polar?kz(e,t):Oz(e,t)}function di(e){return e==null}function Se(e){return typeof e=="function"}function ld(e){return Se(e)?e:e==null?t=>t:Rx(e)}function Bt(e,t,n){const r=e.theme&&e.theme[n]?e.theme[n]:{},i=wl(r,["style"]),o=Az(e);return K(o===void 0?{}:{horizontal:o},e,i,t)}function Tz(e,t){return t?e==="x"?"y":"x":e}function os(e,t){if(e)return Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{})}function v0(e,t,n){const r=t?e:0;let i=t||e;i||(i=0);const o=i-r,a=Math.abs(o),s=o/a||1,l=n||1,c=Math.max(Math.ceil(a/l),0);return Array.from(Array(c),(u,d)=>r+d*s*l)}function ro(e,t,n,r,i){n===void 0&&(n={}),r===void 0&&(r=[]),i===void 0&&(i=(c,u)=>c.concat(u));const o=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],a=(c,u,d)=>c.reduce((f,h,g)=>{let p=f;const v=h.type&&h.type.role,b=h.props.name||`${v}-${u[g]}`;if(h.props&&h.props.children){const x=Object.assign({},h.props,Sl(n,o)),S=h.type&&h.type.role==="stack"&&Se(h.type.getChildren)?h.type.getChildren(x):y.Children.toArray(h.props.children).map(E=>{const O=Object.assign({},E.props,Sl(x,o));return y.cloneElement(E,O)}),w=S.map((E,O)=>`${b}-${O}`),_=a(S,w,h);p=i(p,_)}else{const x=t(h,b,d);x&&(p=i(p,x))}return p},r),s=e.filter(y.isValidElement),l=s.map((c,u)=>u);return a(s,l)}function Az(e){if(e.horizontal!==void 0||!e.children)return e.horizontal;const t=n=>n.reduce((r,i)=>{const o=i.props||{};return r||o.horizontal||!o.children?r||o.horizontal:t(y.Children.toArray(o.children))},!1);return t(y.Children.toArray(e.children))}const w2={startsWith:["data-","aria-"],exactMatch:[]},Dz=e=>{let t=!1;return w2.startsWith.forEach(n=>{new RegExp(`\\b(${n})(\\w|-)+`,"g").test(e)&&(t=!0)}),t},jz=e=>w2.exactMatch.includes(e),Pz=e=>!!(Dz(e)||jz(e));function cd(e,t){if(e==null)throw new Error(t)}const Tr=e=>{const t={...e};return Object.fromEntries(Object.entries(t).filter(n=>{let[r]=n;return Pz(r)}).map(n=>{let[r,i]=n;return[r,te(i,e)]}))},ud=(e,t)=>k.cloneElement(e,Tr(t));var Mz=typeof Element<"u",$z=typeof Map=="function",Iz=typeof Set=="function",Lz=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function dd(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!dd(e[r],t[r]))return!1;return!0}var o;if($z&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!dd(r.value[1],t.get(r.value[0])))return!1;return!0}if(Iz&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Lz&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(Mz&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!dd(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var Fz=function(t,n){try{return dd(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const Vn=Fe(Fz);function C2(e){return Array.isArray(e)&&e.length>0}function fd(e){return Array.isArray(e)&&e.some(t=>typeof t=="string")}function er(e){return Array.isArray(e)&&e.some(t=>t instanceof Date)}function Nz(e){return C2(e)&&e.every(t=>typeof t=="string")}function hd(e,t){return e&&t?e.filter(n=>!t.includes(n)):[]}function E2(e){return C2(e)&&e.every(Array.isArray)}function Bz(e){return e.filter(t=>t!==void 0)}function tr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=e.concat(n);return er(i)?new Date(Math.max(...i)):Math.max(...i)}function Dn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=e.concat(n);return er(i)?new Date(Math.min(...i)):Math.min(...i)}function O2(e,t){return(e.key||t).toString()}function k2(e){return e.reduce((t,n,r)=>{const i=O2(n,r);return t[i]=n,t},{})}function T2(e,t){let n=!1;const r=Object.keys(e).reduce((i,o)=>(o in t||(n=!0,i[o]=!0),i),{});return n&&r}function Wz(e,t){const n=e&&k2(e),r=t&&k2(t);return{entering:n&&T2(r,n),exiting:r&&T2(n,r)}}function b0(e){return e.type&&e.type.getData?e.type.getData(e.props):e.props&&e.props.data||!1}function A2(e,t){let n=!1,r=!1;const i=(s,l)=>{if(!l||s.type!==l.type)return{};const{entering:c,exiting:u}=Wz(b0(s),b0(l))||{};return n=n||!!u,r=r||!!c,{entering:c||!1,exiting:u||!1}},o=(s,l)=>s.map((c,u)=>c&&c.props&&c.props.children&&l[u]?o(y.Children.toArray(s[u].props.children),y.Children.toArray(l[u].props.children)):i(c,l[u])),a=o(y.Children.toArray(e),y.Children.toArray(t));return{nodesWillExit:n,nodesWillEnter:r,childrenTransitions:a,nodesShouldEnter:!1}}function zz(e,t){const n=e.onEnter&&e.onEnter.after?e.onEnter.after:qa;return{data:t.map((r,i)=>Object.assign({},r,n(r,i,t)))}}function Rz(e,t,n,r){const i=Object.assign({},e,{onEnd:r});if(i&&i.onLoad&&!i.onLoad.duration)return{animate:i,data:n};const o=i.onLoad&&i.onLoad.before?i.onLoad.before:qa,a=n.map((s,l)=>Object.assign({},s,o(s,l,n)));return{animate:i,data:a,clipWidth:0}}function Vz(e,t,n){const r=Object.assign({},e,{onEnd:n});let i=t;if(r&&r.onLoad&&!r.onLoad.duration)return{animate:e,data:t};const o=e.onLoad&&e.onLoad.after?e.onLoad.after:qa;return i=t.map((a,s)=>Object.assign({},a,o(a,s,t))),{animate:r,data:i}}function Uz(e,t,n,r,i){const o=e&&e.onExit,a=Object.assign({},e,o);let s=n;if(r){e.onEnd=i;const l=e.onExit&&e.onExit.before?e.onExit.before:qa;s=n.map((c,u)=>{const d=(c.key||u).toString();return r[d]?Object.assign({},c,l(c,u,n)):c})}return{animate:a,data:s}}function Hz(e,t,n,r,i){let o=e,a=n;if(r){o=Object.assign({},e,{onEnd:i});const s=e.onEnter&&e.onEnter.before?e.onEnter.before:qa;a=n.map((l,c)=>{const u=(l.key||c).toString();return r[u]?Object.assign({},l,s(l,c,n)):l})}return{animate:o,data:a}}function Gz(e,t,n,r){const i=e&&e.onEnter,o=Object.assign({},e,i);let a=t;if(n){o.onEnd=r;const s=o.onEnter&&o.onEnter.after?o.onEnter.after:qa;a=t.map((l,c)=>{const u=O2(l,c);return n[u]?Object.assign({},l,s(l,c,t)):l})}return{animate:o,data:a}}function D2(e,t,n){const r=t&&t.nodesWillExit,i=t&&t.nodesWillEnter,o=t&&t.nodesShouldEnter,a=t&&t.nodesShouldLoad,s=t&&t.nodesDoneLoad,l=t&&t.childrenTransitions||[],c={enter:e.animate&&e.animate.onEnter&&e.animate.onEnter.duration,exit:e.animate&&e.animate.onExit&&e.animate.onExit.duration,load:e.animate&&e.animate.onLoad&&e.animate.onLoad.duration,move:e.animate&&e.animate.duration},u=(g,p,v)=>a?Vz(v,p,()=>{n({nodesShouldLoad:!1,nodesDoneLoad:!0})}):Rz(v,g,p,()=>{n({nodesDoneLoad:!0})}),d=(g,p,v,b)=>Uz(b,p,v,g,()=>{n({nodesWillExit:!1})}),f=(g,p,v,b)=>o?Gz(b,v,g,()=>{n({nodesWillEnter:!1})}):Hz(b,p,v,g,()=>{n({nodesShouldEnter:!0})}),h=function(g,p){const v=g.props.animate;if(!g.type)return{};const b=g.props&&g.props.polar&&g.type.defaultPolarTransitions||g.type.defaultTransitions;if(b){const x=v[p]&&v[p].duration;return x!==void 0?x:b[p]&&b[p].duration}return{}};return function(p,v){const b=b0(p)||[],x=K({},e.animate,p.props.animate),S=p.props.polar&&p.type.defaultPolarTransitions||p.type.defaultTransitions;x.onExit=K({},x.onExit,S&&S.onExit),x.onEnter=K({},x.onEnter,S&&S.onEnter),x.onLoad=K({},x.onLoad,S&&S.onLoad);const w=l[v]||l[0];if(s){if(r){const _=w&&w.exiting,E=c.exit!==void 0?c.exit:h(p,"onExit");return d(_,p,b,Object.assign({},x,_?{duration:E}:{delay:E}))}else if(i){const _=w&&w.entering,E=c.enter!==void 0?c.enter:h(p,"onEnter"),O=c.move!==void 0?c.move:p.props.animate&&p.props.animate.duration;return f(_,p,b,Object.assign({},x,{duration:o&&_?E:O}))}else if(!t&&x&&x.onExit)return zz(x,b)}else{const E={duration:c.load!==void 0?c.load:h(p,"onLoad")};return u(p,b,Object.assign({},x,E))}return{animate:x,data:b}}}function x0(){return x0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x0.apply(this,arguments)}class _0 extends y.Component{constructor(t,n){super(t,n),this.state={nodesShouldLoad:!1,nodesDoneLoad:!1};const r=this.props.children,i=r.props.polar;this.continuous=!i&&r.type&&r.type.continuous===!0,this.timer=this.context.transitionTimer}componentDidMount(){this.setState({nodesShouldLoad:!0})}shouldComponentUpdate(t){return Vn(this.props,t)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,t),()=>this.timer.resumeAnimation())),!0}componentWillUnmount(){this.timer.stop()}getTransitionState(t,n){const{animate:r}=t;if(r){if(r.parentState)return{oldProps:r.parentState.nodesWillExit?t:null,nextProps:n}}else return{};const i=y.Children.toArray(t.children),o=y.Children.toArray(n.children),{nodesWillExit:a,nodesWillEnter:s,childrenTransitions:l,nodesShouldEnter:c}=A2(i,o);return{nodesWillExit:a,nodesWillEnter:s,childrenTransitions:l,nodesShouldEnter:c,oldProps:a?t:null,nextProps:n}}getDomainFromChildren(t,n){const r=l=>l.reduce((c,u)=>{if(u.type&&Se(u.type.getDomain)){const d=u.props&&u.type.getDomain(u.props,n);return d?c.concat(d):c}else if(u.props&&u.props.children)return c.concat(r(y.Children.toArray(u.props.children)));return c},[]),i=y.Children.toArray(t.children)[0],o=i.props||{},a=Array.isArray(o.domain)?o.domain:o.domain&&o.domain[n];if(!o.children&&a)return a;const s=r([i]);return s.length===0?[0,1]:[Dn(s),tr(s)]}pickProps(){return this.state?this.state.nodesWillExit?this.state.oldProps||this.props:this.props:this.props}pickDomainProps(t){var r;const n=(r=t.animate)==null?void 0:r.parentState;return n&&n.nodesWillExit?(this.continuous||n.continuous)&&(n.nextProps||this.state.nextProps)||t:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||t}getClipWidth(t,n){const r=()=>{const o=Nt(n.props,"x");return o?Math.abs(o[1]-o[0]):t.width},i=this.transitionProps?this.transitionProps.clipWidth:void 0;return i!==void 0?i:r()}render(){var d;const t=this.pickProps(),n=(d=this.props.animate)!=null&&d.getTransitions?this.props.animate.getTransitions:D2(t,this.state,f=>this.setState(f)),r=y.Children.toArray(t.children)[0],i=n(r);this.transitionProps=i;const o={x:this.getDomainFromChildren(this.pickDomainProps(t),"x"),y:this.getDomainFromChildren(t,"y")},a=this.getClipWidth(t,r),s=K({domain:o,clipWidth:a},i,r.props),c=(t.animationWhitelist||[]).concat(["clipWidth"]),u=c.length?Sl(s,c):s;return y.createElement(IW,x0({},s.animate,{data:u}),f=>{if(r.props.groupComponent){const h=this.continuous?y.cloneElement(r.props.groupComponent,{clipWidth:f.clipWidth||0}):r.props.groupComponent;return y.cloneElement(r,K({animate:null,animating:!0,groupComponent:h},f,s))}return y.cloneElement(r,K({animate:null,animating:!0},f,s))})}}ce(_0,"displayName","VictoryTransition"),ce(_0,"contextType",id);function qz(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var Yz=qz;function Kz(e){return e!==e}var Zz=Kz;function Xz(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var Jz=Xz,Qz=Yz,eR=Zz,tR=Jz;function nR(e,t,n){return t===t?tR(e,t,n):Qz(e,eR,n)}var rR=nR,iR=rR;function oR(e,t){var n=e==null?0:e.length;return!!n&&iR(e,t,0)>-1}var aR=oR;function sR(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var lR=sR;function cR(){}var uR=cR,S0=M1,dR=uR,fR=Jm,hR=1/0,mR=S0&&1/fR(new S0([,-0]))[1]==hR?function(e){return new S0(e)}:dR,gR=mR,pR=yx,yR=aR,vR=lR,bR=vx,xR=gR,_R=Jm,SR=200;function wR(e,t,n){var r=-1,i=yR,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=vR;else if(o>=SR){var c=t?null:xR(e);if(c)return _R(c);a=!1,i=bR,l=new pR}else l=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}var j2=wR,CR=j2;function ER(e){return e&&e.length?CR(e):[]}var OR=ER;const qo=Fe(OR);var kR="Expected a function";function TR(e){if(typeof e!="function")throw new TypeError(kR);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var AR=TR,DR=e0,jR=o0,PR=t0,MR=Ox,$R=Object.getOwnPropertySymbols,IR=$R?function(e){for(var t=[];e;)DR(t,PR(e)),e=jR(e);return t}:MR,P2=IR,LR=Ex,FR=P2,NR=Ya;function BR(e){return LR(e,NR,FR)}var M2=BR,WR=Nu,zR=fl,RR=v2,VR=M2;function UR(e,t){if(e==null)return{};var n=WR(VR(e),function(r){return[r]});return t=zR(t),RR(e,n,function(r,i){return t(r,i[0])})}var $2=UR;const md=Fe($2);var HR=fl,GR=AR,qR=$2;function YR(e,t){return qR(e,GR(HR(t)))}var KR=YR;const I2=Fe(KR),w0=/^onGlobal(.*)$/;function L2(e,t,n,r){const i=u=>{const f=(()=>{const h=u.reduce((g,p)=>p.target!==void 0?(Array.isArray(p.target)?p.target.includes(t):`${p.target}`==`${t}`)?g.concat(p):g:g.concat(p),[]);return n!==void 0&&t!=="parent"?h.filter(g=>{const p=g.eventKey,v=b=>b?`${b}`==`${n}`:!0;return Array.isArray(p)?p.some(b=>v(b)):v(p)}):h})();return Array.isArray(f)&&f.reduce((h,g)=>g?Object.assign(h,g.eventHandlers):h,{})},a=Array.isArray(this.componentEvents)?Array.isArray(e.events)?this.componentEvents.concat(...e.events):this.componentEvents:e.events,s=a&&Se(r)?r(i(a),t):void 0;if(!e.sharedEvents)return s;const l=e.sharedEvents.getEvents,c=e.sharedEvents.events&&l(i(e.sharedEvents.events),t);return Object.assign({},c,s)}function F2(e,t,n,r){if(vt(e))return{};const i=r||this.baseProps,o=(u,d)=>{const{childName:f,target:h,key:g}=u,p=d==="props"?i:this.state||{},v=f==null||!p[f]?p:p[f];return g==="parent"?v.parent:v[g]&&v[g][h]},a=(u,d)=>{const f=t==="parent"?u.childName:u.childName||n,h=u.target||t,g=x=>h==="parent"?"parent":u.eventKey==="all"?i[x]?Object.keys(i[x]).filter(S=>S!=="parent"):Object.keys(i).filter(S=>S!=="parent"):u.eventKey===void 0&&d==="parent"?i[x]?Object.keys(i[x]):Object.keys(i):u.eventKey!==void 0?u.eventKey:d,p=(x,S)=>{const w=this.state||{};if(!Se(u.mutation))return w;const _=o({childName:S,key:x,target:h},"props"),E=o({childName:S,key:x,target:h},"state"),O=u.mutation(Object.assign({},_,E),i),T=w[S]||{},D=M=>(M[x]&&M[x][h]&&delete M[x][h],M[x]&&!Object.keys(M[x]).length&&delete M[x],M),j=M=>h==="parent"?Object.assign(M,{[x]:Object.assign(M[x]||{},O)}):Object.assign(M,{[x]:Object.assign(M[x]||{},{[h]:O})}),A=M=>O?j(M):D(M);return S!=null?Object.assign(w,{[S]:A(T)}):A(w)},v=x=>{const S=g(x);return Array.isArray(S)?S.reduce((w,_)=>Object.assign(w,p(_,x)),{}):p(S,x)},b=f==="all"?Object.keys(i).filter(x=>x!=="parent"):f;return Array.isArray(b)?b.reduce((x,S)=>Object.assign(x,v(S)),{}):v(b)},s=(u,d)=>Array.isArray(u)?u.reduce((f,h)=>Object.assign({},f,a(h,d)),{}):a(u,d),l=u=>{const d=g=>Se(g.callback)&&g.callback,h=(Array.isArray(u)?u.map(g=>d(g)):[d(u)]).filter(g=>g!==!1);return h.length?()=>h.forEach(g=>g()):void 0},c=(u,d,f,h)=>{const g=e[h](u,d,f,this);if(!vt(g)){const p=l(g);this.setState(s(g,f),p)}};return Object.keys(e).reduce((u,d)=>(u[d]=c,u),{})}function N2(e,t,n){return e?Object.keys(e).reduce((r,i)=>{const o=a=>e[i](a,n,t,i);return r[i]=o,r},{}):{}}function B2(e,t,n){const r=this.state||{};return n?r[n]&&r[n][e]&&r[n][e][t]:e==="parent"?r[e]&&r[e][t]||r[e]:r[e]&&r[e][t]}function ZR(e,t,n,r){return t===void 0&&(t={}),n===void 0&&(n={}),r.reduce((i,o)=>{const a=n[o],s=W2(e,t[o],n[o],o);return i[o]=s||a,md(i,l=>!vt(l))},{})}function W2(e,t,n,r){return t===void 0&&(t={}),n===void 0&&(n={}),Object.keys(t).reduce((o,a)=>{const s=n[a]||{},l=t[a]||{};if(a==="parent"){const u=z2(e,l,s,{eventKey:a,target:"parent"});o[a]=u!==void 0?Object.assign({},s,u):s}else{const c=qo(Object.keys(l).concat(Object.keys(s)));o[a]=c.reduce((u,d)=>{const f={eventKey:a,target:d,childName:r},h=z2(e,l[d],s[d],f);return u[d]=h!==void 0?Object.assign({},s[d],h):s[d],md(u,g=>!vt(g))},{})}return md(o,c=>!vt(c))},{})}function z2(e,t,n,r){const i=(l,c)=>typeof l[c]=="string"?l[c]==="all"||l[c]===r[c]:Array.isArray(l[c])?l[c].map(d=>`${d}`).includes(r[c]):!1;let o=Array.isArray(e)?e:[e];r.childName&&(o=e.filter(l=>i(l,"childName")));const a=o.filter(l=>i(l,"target"));if(vt(a))return;const s=a.filter(l=>i(l,"eventKey"));if(!vt(s))return s.reduce((l,c)=>{const d=(c&&Se(c.mutation)?c.mutation:()=>{})(Object.assign({},t,n));return Object.assign({},l,d)},{})}function C0(e,t){const n=Array.isArray(t)&&t.reduce((r,i)=>{const o=e[i],a=o&&o.type&&o.type.defaultEvents,s=Se(a)?a(o.props):a;return Array.isArray(s)?r.concat(...s):r},[]);return n&&n.length?n:void 0}function gd(e){const t=e.match(w0);return t&&t[1]&&t[1].toLowerCase()}const R2=e=>md(e,(t,n)=>w0.test(n)),V2=e=>I2(e,(t,n)=>w0.test(n)),U2=e=>Object.assign(e,{nativeEvent:e}),XR=e=>!di(e._x)&&!di(e._y),JR=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];function Yo(e,t){t===void 0&&(t={});class n extends e{constructor(o){super(o);ce(this,"state",{});ce(this,"getEventState",B2.bind(this));ce(this,"getScopedEvents",F2.bind(this));ce(this,"getEvents",(o,a,s)=>L2.call(this,o,a,s,this.getScopedEvents));ce(this,"externalMutations",this.getExternalMutations(this.props));ce(this,"calculatedState",this.getStateChanges(this.props));ce(this,"globalEvents",{});ce(this,"prevGlobalEventKeys",[]);ce(this,"boundGlobalEvents",{});this.cacheValues(this.getCalculatedValues(o))}shouldComponentUpdate(o){const a=this.getExternalMutations(o),s=this.props.animating||this.props.animate,l=!Vn(a,this.externalMutations);if(s||l)return this.cacheValues(this.getCalculatedValues(o)),this.externalMutations=a,this.applyExternalMutations(o,a),!0;const c=this.getStateChanges(o);return Vn(this.calculatedState,c)?Vn(this.props,o)?!1:(this.cacheValues(this.getCalculatedValues(o)),!0):(this.cacheValues(this.getCalculatedValues(o)),!0)}componentDidMount(){const o=Object.keys(this.globalEvents);o.forEach(a=>this.addGlobalListener(a)),this.prevGlobalEventKeys=o}componentDidUpdate(o){const a=this.getStateChanges(o);this.calculatedState=a;const s=Object.keys(this.globalEvents);hd(this.prevGlobalEventKeys,s).forEach(u=>this.removeGlobalListener(u)),hd(s,this.prevGlobalEventKeys).forEach(u=>this.addGlobalListener(u)),this.prevGlobalEventKeys=s}componentWillUnmount(){this.prevGlobalEventKeys.forEach(o=>this.removeGlobalListener(o))}addGlobalListener(o){const a=s=>{const l=this.globalEvents[o];return l&&l(U2(s))};this.boundGlobalEvents[o]=a,window.addEventListener(gd(o),a)}removeGlobalListener(o){window.removeEventListener(gd(o),this.boundGlobalEvents[o])}getStateChanges(o){if(!this.hasEvents)return{};const a=(c,u)=>{const d=K({},this.getEventState(c,u),this.getSharedEventState(c,u));return vt(d)?void 0:d};return(t.components||JR).map(c=>{if(!(!o.standalone&&c.name==="parent"))return c.index!==void 0?a(c.index,c.name):this.dataKeys.map(u=>a(u,c.name)).filter(Boolean)}).filter(Boolean)}applyExternalMutations(o,a){if(!vt(a)){const s=o.externalEventMutations.reduce((c,u)=>Se(u.callback)?c.concat(u.callback):c,[]),l=s.length?()=>{s.forEach(c=>c())}:void 0;this.setState(a,l)}}getCalculatedValues(o){const{sharedEvents:a}=o,s=e.expectedComponents,l=C0(o,s),c=a&&Se(a.getEventState)?a.getEventState:()=>{},u=this.getBaseProps(o,c),d=Object.keys(u).filter(g=>g!=="parent"),f=o.events||o.sharedEvents||l,h=this.getAllEvents(o);return{componentEvents:l,getSharedEventState:c,baseProps:u,dataKeys:d,hasEvents:f,events:h}}getExternalMutations(o){const{sharedEvents:a,externalEventMutations:s}=o;return vt(s)||a?void 0:W2(s,this.baseProps,this.state)}cacheValues(o){Object.keys(o).forEach(a=>{this[a]=o[a]})}getBaseProps(o,a){const l=(a||this.getSharedEventState.bind(this))("parent","parent"),c=this.getEventState("parent","parent"),u=K({},c,l),d=u.parentControlledProps,f=d?Sl(u,d):{},h=K({},f,o);return typeof e.getBaseProps=="function"?e.getBaseProps(h):{}}getAllEvents(o){return Array.isArray(this.componentEvents)?Array.isArray(o.events)?this.componentEvents.concat(...o.events):this.componentEvents:o.events}getComponentProps(o,a,s){const l=this.props.name||e.role,c=this.dataKeys&&this.dataKeys[s]||s,u=`${l}-${a}-${c}`,d=this.baseProps[c]&&this.baseProps[c][a]||this.baseProps[c];if(!d&&!this.hasEvents)return;const f=o&&typeof o=="object"&&"props"in o?o.props:void 0;if(this.hasEvents){const h=this.getEvents(this.props,a,c),g=K({index:s,key:u},this.getEventState(c,a),this.getSharedEventState(c,a),f,d,{id:u}),p=K({},N2(h,c,g),g.events);return Object.assign({},g,{events:p})}return K({index:s,key:u},f,d,{id:u})}renderContainer(o,a){const l=o.type&&o.type.role==="container"?this.getComponentProps(o,"parent","parent"):{};return l.events&&(this.globalEvents=R2(l.events),l.events=V2(l.events)),y.cloneElement(o,l,a)}animateComponent(o,a){var c;const s=typeof o.animate=="object"&&((c=o.animate)==null?void 0:c.animationWhitelist)||a,l=this.constructor;return y.createElement(_0,{animate:o.animate,animationWhitelist:s},y.createElement(l,o))}renderContinuousData(o){const{dataComponent:a,labelComponent:s,groupComponent:l}=o,u=this.dataKeys.filter(h=>h!=="all").reduce((h,g)=>{let p=h;const v=this.getComponentProps(s,"labels",g);return v&&v.text!==void 0&&v.text!==null&&(p=p.concat(y.cloneElement(s,v))),p},[]),d=this.getComponentProps(a,"data","all"),f=[y.cloneElement(a,d),...u];return this.renderContainer(l,f)}renderData(o,a){a===void 0&&(a=XR);const{dataComponent:s,labelComponent:l,groupComponent:c}=o,u=this.dataKeys.reduce((h,g,p)=>{const v=this.getComponentProps(s,"data",p);return a(v.datum)&&h.push(y.cloneElement(s,v)),h},[]),d=this.dataKeys.map((h,g)=>{const p=this.getComponentProps(l,"labels",g);if(p.text!==void 0&&p.text!==null)return y.cloneElement(l,p)}).filter(Boolean),f=[...u,...d];return this.renderContainer(c,f)}}return n}function QR(e){return t=>{e.forEach(n=>{Se(n)?n(t):n!=null&&(n.current=t)})}}var eV=to,tV=Or,nV="[object Date]";function rV(e){return tV(e)&&eV(e)==nV}var iV=rV,oV=iV,aV=Ha,H2=ll,G2=H2&&H2.isDate,sV=G2?aV(G2):oV,lV=sV;const q2=Fe(lV);var cV=Vo;function uV(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!cV(s,l)){var l=s;o[i++]=a===0?0:a}}return o}var dV=uV,fV=dV;function hV(e){return e&&e.length?fV(e):[]}var mV=hV;const gV=Fe(mV);function pV(e){return e===void 0}var yV=pV;const vV=Fe(yV);var bV=r0;function xV(e,t){return bV(e,t)}var _V=xV;const SV=Fe(_V);function io(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function wV(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function E0(e){let t,n,r;e.length!==2?(t=io,n=(s,l)=>io(e(s),l),r=(s,l)=>e(s)-l):(t=e===io||e===wV?e:CV,n=e,r=e);function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function o(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){const d=i(s,l,c,u-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:a,right:o}}function CV(){return 0}function Y2(e){return e===null?NaN:+e}function*EV(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Ol=E0(io).right;E0(Y2).center;class K2 extends Map{constructor(t,n=TV){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(Z2(this,t))}has(t){return super.has(Z2(this,t))}set(t,n){return super.set(OV(this,t),n)}delete(t){return super.delete(kV(this,t))}}function Z2({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function OV({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function kV({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function TV(e){return e!==null&&typeof e=="object"?e.valueOf():e}function AV(e=io){if(e===io)return X2;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function X2(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const DV=Math.sqrt(50),jV=Math.sqrt(10),PV=Math.sqrt(2);function pd(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=DV?10:o>=jV?5:o>=PV?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?pd(e,t,n*2):[s,l,c]}function O0(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,a]=r?pd(t,e,n):pd(e,t,n);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let c=0;c<s;++c)l[c]=(o-c)/-a;else for(let c=0;c<s;++c)l[c]=(o-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(i+c)/-a;else for(let c=0;c<s;++c)l[c]=(i+c)*a;return l}function k0(e,t,n){return t=+t,e=+e,n=+n,pd(e,t,n)[2]}function T0(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?k0(t,e,n):k0(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function J2(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function Q2(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function e_(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?X2:AV(i);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,u=Math.log(l),d=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),h=Math.max(n,Math.floor(t-c*d/l+f)),g=Math.min(r,Math.floor(t+(l-c)*d/l+f));e_(e,t,h,g,i)}const o=e[t];let a=n,s=r;for(kl(e,n,t),i(e[r],o)>0&&kl(e,n,r);a<s;){for(kl(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[n],o)===0?kl(e,n,s):(++s,kl(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function kl(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function MV(e,t,n){if(e=Float64Array.from(EV(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Q2(e);if(t>=1)return J2(e);var r,i=(r-1)*t,o=Math.floor(i),a=J2(e_(e,o).subarray(0,o+1)),s=Q2(e.subarray(o+1));return a+(s-a)*(i-o)}}function $V(e,t,n=Y2){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),s=+n(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function IV(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function nr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function fi(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const A0=Symbol("implicit");function D0(){var e=new K2,t=[],n=[],r=A0;function i(o){let a=e.get(o);if(a===void 0){if(r!==A0)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new K2;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return D0(t,n).unknown(r)},nr.apply(i,arguments),i}function j0(){var e=D0().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var f=t().length,h=i<r,g=h?i:r,p=h?r:i;o=(p-g)/Math.max(1,f-l+c*2),s&&(o=Math.floor(o)),g+=(p-g-o*(f-l))*u,a=o*(1-l),s&&(g=Math.round(g),a=Math.round(a));var v=IV(f).map(function(b){return g+o*b});return n(h?v.reverse():v)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,i]=f,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(l=Math.min(1,c=+f),d()):l},e.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),d()):l},e.paddingOuter=function(f){return arguments.length?(c=+f,d()):c},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return j0(t(),[r,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},nr.apply(d(),arguments)}function t_(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return t_(t())},e}function LV(){return t_(j0.apply(null,arguments).paddingInner(1))}function FV(e){return function(){return e}}function yd(e){return+e}var n_=[0,1];function vn(e){return e}function P0(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:FV(isNaN(t)?NaN:.5)}function NV(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function BV(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=P0(i,r),o=n(a,o)):(r=P0(r,i),o=n(o,a)),function(s){return o(r(s))}}function WV(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=P0(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var l=Ol(e,s,1,r)-1;return o[l](i[l](s))}}function Tl(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function vd(){var e=n_,t=n_,n=Rr,r,i,o,a=vn,s,l,c;function u(){var f=Math.min(e.length,t.length);return a!==vn&&(a=NV(e[0],e[f-1])),s=f>2?WV:BV,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?o:(l||(l=s(e.map(r),t,n)))(r(a(f)))}return d.invert=function(f){return a(i((c||(c=s(t,e.map(r),Ju)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,yd),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=f0,u()},d.clamp=function(f){return arguments.length?(a=f?!0:vn,u()):a!==vn},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(o=f,d):o},function(f,h){return r=f,i=h,u()}}function M0(){return vd()(vn,vn)}function zV(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function bd(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function as(e){return e=bd(Math.abs(e)),e?e[1]:NaN}function RV(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function VV(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var UV=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Al(e){if(!(t=UV.exec(e)))throw new Error("invalid format: "+e);var t;return new $0({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Al.prototype=$0.prototype;function $0(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}$0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function HV(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var r_;function GV(e,t){var n=bd(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(r_=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+bd(e,Math.max(0,t+o-1))[0]}function i_(e,t){var n=bd(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const o_={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:zV,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>i_(e*100,t),r:i_,s:GV,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function a_(e){return e}var s_=Array.prototype.map,l_=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function qV(e){var t=e.grouping===void 0||e.thousands===void 0?a_:RV(s_.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?a_:VV(s_.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=Al(d);var f=d.fill,h=d.align,g=d.sign,p=d.symbol,v=d.zero,b=d.width,x=d.comma,S=d.precision,w=d.trim,_=d.type;_==="n"?(x=!0,_="g"):o_[_]||(S===void 0&&(S=12),w=!0,_="g"),(v||f==="0"&&h==="=")&&(v=!0,f="0",h="=");var E=p==="$"?n:p==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",O=p==="$"?r:/[%p]/.test(_)?a:"",T=o_[_],D=/[defgprs%]/.test(_);S=S===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function j(A){var M=E,P=O,$,L,z;if(_==="c")P=T(A)+P,A="";else{A=+A;var G=A<0||1/A<0;if(A=isNaN(A)?l:T(Math.abs(A),S),w&&(A=HV(A)),G&&+A==0&&g!=="+"&&(G=!1),M=(G?g==="("?g:s:g==="-"||g==="("?"":g)+M,P=(_==="s"?l_[8+r_/3]:"")+P+(G&&g==="("?")":""),D){for($=-1,L=A.length;++$<L;)if(z=A.charCodeAt($),48>z||z>57){P=(z===46?i+A.slice($+1):A.slice($))+P,A=A.slice(0,$);break}}}x&&!v&&(A=t(A,1/0));var U=M.length+A.length+P.length,V=U<b?new Array(b-U+1).join(f):"";switch(x&&v&&(A=t(V+A,V.length?b-P.length:1/0),V=""),h){case"<":A=M+A+P+V;break;case"=":A=M+V+A+P;break;case"^":A=V.slice(0,U=V.length>>1)+M+A+P+V.slice(U);break;default:A=V+M+A+P;break}return o(A)}return j.toString=function(){return d+""},j}function u(d,f){var h=c((d=Al(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(as(f)/3)))*3,p=Math.pow(10,-g),v=l_[8+g/3];return function(b){return h(p*b)+v}}return{format:c,formatPrefix:u}}var xd,I0,c_;YV({thousands:",",grouping:[3],currency:["$",""]});function YV(e){return xd=qV(e),I0=xd.format,c_=xd.formatPrefix,xd}function KV(e){return Math.max(0,-as(Math.abs(e)))}function ZV(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(as(t)/3)))*3-as(Math.abs(e)))}function XV(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,as(t)-as(e))+1}function u_(e,t,n,r){var i=T0(e,t,n),o;switch(r=Al(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=ZV(i,a))&&(r.precision=o),c_(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=XV(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=KV(i))&&(r.precision=o-(r.type==="%")*2);break}}return I0(r)}function oo(e){var t=e.domain;return e.ticks=function(n){var r=t();return O0(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return u_(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],l,c,u=10;for(s<a&&(c=a,a=s,s=c,c=i,i=o,o=c);u-- >0;){if(c=k0(a,s,n),c===l)return r[i]=a,r[o]=s,t(r);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function L0(){var e=M0();return e.copy=function(){return Tl(e,L0())},nr.apply(e,arguments),oo(e)}function d_(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,yd),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return d_(e).unknown(t)},e=arguments.length?Array.from(e,yd):[0,1],oo(n)}function f_(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function h_(e){return Math.log(e)}function m_(e){return Math.exp(e)}function JV(e){return-Math.log(-e)}function QV(e){return-Math.exp(-e)}function eU(e){return isFinite(e)?+("1e"+e):e<0?0:e}function tU(e){return e===10?eU:e===Math.E?Math.exp:t=>Math.pow(e,t)}function nU(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function g_(e){return(t,n)=>-e(-t,n)}function F0(e){const t=e(h_,m_),n=t.domain;let r=10,i,o;function a(){return i=nU(r),o=tU(r),n()[0]<0?(i=g_(i),o=g_(o),e(JV,QV)):e(h_,m_),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let f=i(c),h=i(u),g,p;const v=s==null?10:+s;let b=[];if(!(r%1)&&h-f<v){if(f=Math.floor(f),h=Math.ceil(h),c>0){for(;f<=h;++f)for(g=1;g<r;++g)if(p=f<0?g/o(-f):g*o(f),!(p<c)){if(p>u)break;b.push(p)}}else for(;f<=h;++f)for(g=r-1;g>=1;--g)if(p=f>0?g/o(-f):g*o(f),!(p<c)){if(p>u)break;b.push(p)}b.length*2<v&&(b=O0(c,u,v))}else b=O0(f,h,Math.min(h-f,v)).map(o);return d?b.reverse():b},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Al(l)).precision==null&&(l.trim=!0),l=I0(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return u=>{let d=u/o(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=()=>n(f_(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function p_(){const e=F0(vd()).domain([1,10]);return e.copy=()=>Tl(e,p_()).base(e.base()),nr.apply(e,arguments),e}function y_(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function v_(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function N0(e){var t=1,n=e(y_(t),v_(t));return n.constant=function(r){return arguments.length?e(y_(t=+r),v_(t)):t},oo(n)}function b_(){var e=N0(vd());return e.copy=function(){return Tl(e,b_()).constant(e.constant())},nr.apply(e,arguments)}function x_(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function rU(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function iU(e){return e<0?-e*e:e*e}function B0(e){var t=e(vn,vn),n=1;function r(){return n===1?e(vn,vn):n===.5?e(rU,iU):e(x_(n),x_(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},oo(t)}function W0(){var e=B0(vd());return e.copy=function(){return Tl(e,W0()).exponent(e.exponent())},nr.apply(e,arguments),e}function oU(){return W0.apply(null,arguments).exponent(.5)}function __(e){return Math.sign(e)*e*e}function aU(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function S_(){var e=M0(),t=[0,1],n=!1,r;function i(o){var a=aU(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(__(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,yd)).map(__)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return S_(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},nr.apply(i,arguments),oo(i)}function w_(){var e=[],t=[],n=[],r;function i(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a<s;)n[a-1]=$V(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:t[Ol(n,a)]}return o.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(io),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return w_().domain(e).range(t).unknown(r)},nr.apply(o,arguments)}function C_(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(l){return l!=null&&l<=l?i[Ol(r,l,0,n)]:o}function s(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,s()):i.slice()},a.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},a.unknown=function(l){return arguments.length&&(o=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return C_().domain([e,t]).range(i).unknown(o)},nr.apply(oo(a),arguments)}function E_(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[Ol(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return E_().domain(e).range(t).unknown(n)},nr.apply(i,arguments)}const z0=new Date,R0=new Date;function Gt(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;let c;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<a);return l},i.filter=o=>Gt(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(z0.setTime(+o),R0.setTime(+a),e(z0),e(R0),Math.floor(n(z0,R0))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const _d=Gt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);_d.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Gt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):_d),_d.range;const hi=1e3,rr=hi*60,mi=rr*60,gi=mi*24,V0=gi*7,O_=gi*30,U0=gi*365,Ko=Gt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*hi)},(e,t)=>(t-e)/hi,e=>e.getUTCSeconds());Ko.range;const H0=Gt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*hi)},(e,t)=>{e.setTime(+e+t*rr)},(e,t)=>(t-e)/rr,e=>e.getMinutes());H0.range;const G0=Gt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*rr)},(e,t)=>(t-e)/rr,e=>e.getUTCMinutes());G0.range;const q0=Gt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*hi-e.getMinutes()*rr)},(e,t)=>{e.setTime(+e+t*mi)},(e,t)=>(t-e)/mi,e=>e.getHours());q0.range;const Y0=Gt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*mi)},(e,t)=>(t-e)/mi,e=>e.getUTCHours());Y0.range;const Dl=Gt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*rr)/gi,e=>e.getDate()-1);Dl.range;const Sd=Gt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/gi,e=>e.getUTCDate()-1);Sd.range;const k_=Gt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/gi,e=>Math.floor(e/gi));k_.range;function Zo(e){return Gt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*rr)/V0)}const wd=Zo(0),Cd=Zo(1),sU=Zo(2),lU=Zo(3),ss=Zo(4),cU=Zo(5),uU=Zo(6);wd.range,Cd.range,sU.range,lU.range,ss.range,cU.range,uU.range;function Xo(e){return Gt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/V0)}const Ed=Xo(0),Od=Xo(1),dU=Xo(2),fU=Xo(3),ls=Xo(4),hU=Xo(5),mU=Xo(6);Ed.range,Od.range,dU.range,fU.range,ls.range,hU.range,mU.range;const K0=Gt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());K0.range;const Z0=Gt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Z0.range;const pi=Gt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());pi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Gt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),pi.range;const yi=Gt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());yi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Gt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),yi.range;function T_(e,t,n,r,i,o){const a=[[Ko,1,hi],[Ko,5,5*hi],[Ko,15,15*hi],[Ko,30,30*hi],[o,1,rr],[o,5,5*rr],[o,15,15*rr],[o,30,30*rr],[i,1,mi],[i,3,3*mi],[i,6,6*mi],[i,12,12*mi],[r,1,gi],[r,2,2*gi],[n,1,V0],[t,1,O_],[t,3,3*O_],[e,1,U0]];function s(c,u,d){const f=u<c;f&&([c,u]=[u,c]);const h=d&&typeof d.range=="function"?d:l(c,u,d),g=h?h.range(c,+u+1):[];return f?g.reverse():g}function l(c,u,d){const f=Math.abs(u-c)/d,h=E0(([,,v])=>v).right(a,f);if(h===a.length)return e.every(T0(c/U0,u/U0,d));if(h===0)return _d.every(Math.max(T0(c,u,d),1));const[g,p]=a[f/a[h-1][2]<a[h][2]/f?h-1:h];return g.every(p)}return[s,l]}const[gU,pU]=T_(yi,Z0,Ed,k_,Y0,G0),[yU,vU]=T_(pi,K0,wd,Dl,q0,H0);function X0(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function J0(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function jl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function bU(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Pl(i),u=Ml(i),d=Pl(o),f=Ml(o),h=Pl(a),g=Ml(a),p=Pl(s),v=Ml(s),b=Pl(l),x=Ml(l),S={a:G,A:U,b:V,B:N,c:null,d:$_,e:$_,f:RU,g:JU,G:eH,H:BU,I:WU,j:zU,L:I_,m:VU,M:UU,p:H,q:Q,Q:z_,s:R_,S:HU,u:GU,U:qU,V:YU,w:KU,W:ZU,x:null,X:null,y:XU,Y:QU,Z:tH,"%":W_},w={a:ee,A:X,b:J,B:ie,c:null,d:F_,e:F_,f:oH,g:gH,G:yH,H:nH,I:rH,j:iH,L:N_,m:aH,M:sH,p:ue,q:he,Q:z_,s:R_,S:lH,u:cH,U:uH,V:dH,w:fH,W:hH,x:null,X:null,y:mH,Y:pH,Z:vH,"%":W_},_={a:j,A,b:M,B:P,c:$,d:P_,e:P_,f:IU,g:j_,G:D_,H:M_,I:M_,j:jU,L:$U,m:DU,M:PU,p:D,q:AU,Q:FU,s:NU,S:MU,u:CU,U:EU,V:OU,w:wU,W:kU,x:L,X:z,y:j_,Y:D_,Z:TU,"%":LU};S.x=E(n,S),S.X=E(r,S),S.c=E(t,S),w.x=E(n,w),w.X=E(r,w),w.c=E(t,w);function E(Z,ne){return function(pe){var B=[],ke=-1,Ee=0,He=Z.length,Ie,at,I;for(pe instanceof Date||(pe=new Date(+pe));++ke<He;)Z.charCodeAt(ke)===37&&(B.push(Z.slice(Ee,ke)),(at=A_[Ie=Z.charAt(++ke)])!=null?Ie=Z.charAt(++ke):at=Ie==="e"?" ":"0",(I=ne[Ie])&&(Ie=I(pe,at)),B.push(Ie),Ee=ke+1);return B.push(Z.slice(Ee,ke)),B.join("")}}function O(Z,ne){return function(pe){var B=jl(1900,void 0,1),ke=T(B,Z,pe+="",0),Ee,He;if(ke!=pe.length)return null;if("Q"in B)return new Date(B.Q);if("s"in B)return new Date(B.s*1e3+("L"in B?B.L:0));if(ne&&!("Z"in B)&&(B.Z=0),"p"in B&&(B.H=B.H%12+B.p*12),B.m===void 0&&(B.m="q"in B?B.q:0),"V"in B){if(B.V<1||B.V>53)return null;"w"in B||(B.w=1),"Z"in B?(Ee=J0(jl(B.y,0,1)),He=Ee.getUTCDay(),Ee=He>4||He===0?Od.ceil(Ee):Od(Ee),Ee=Sd.offset(Ee,(B.V-1)*7),B.y=Ee.getUTCFullYear(),B.m=Ee.getUTCMonth(),B.d=Ee.getUTCDate()+(B.w+6)%7):(Ee=X0(jl(B.y,0,1)),He=Ee.getDay(),Ee=He>4||He===0?Cd.ceil(Ee):Cd(Ee),Ee=Dl.offset(Ee,(B.V-1)*7),B.y=Ee.getFullYear(),B.m=Ee.getMonth(),B.d=Ee.getDate()+(B.w+6)%7)}else("W"in B||"U"in B)&&("w"in B||(B.w="u"in B?B.u%7:"W"in B?1:0),He="Z"in B?J0(jl(B.y,0,1)).getUTCDay():X0(jl(B.y,0,1)).getDay(),B.m=0,B.d="W"in B?(B.w+6)%7+B.W*7-(He+5)%7:B.w+B.U*7-(He+6)%7);return"Z"in B?(B.H+=B.Z/100|0,B.M+=B.Z%100,J0(B)):X0(B)}}function T(Z,ne,pe,B){for(var ke=0,Ee=ne.length,He=pe.length,Ie,at;ke<Ee;){if(B>=He)return-1;if(Ie=ne.charCodeAt(ke++),Ie===37){if(Ie=ne.charAt(ke++),at=_[Ie in A_?ne.charAt(ke++):Ie],!at||(B=at(Z,pe,B))<0)return-1}else if(Ie!=pe.charCodeAt(B++))return-1}return B}function D(Z,ne,pe){var B=c.exec(ne.slice(pe));return B?(Z.p=u.get(B[0].toLowerCase()),pe+B[0].length):-1}function j(Z,ne,pe){var B=h.exec(ne.slice(pe));return B?(Z.w=g.get(B[0].toLowerCase()),pe+B[0].length):-1}function A(Z,ne,pe){var B=d.exec(ne.slice(pe));return B?(Z.w=f.get(B[0].toLowerCase()),pe+B[0].length):-1}function M(Z,ne,pe){var B=b.exec(ne.slice(pe));return B?(Z.m=x.get(B[0].toLowerCase()),pe+B[0].length):-1}function P(Z,ne,pe){var B=p.exec(ne.slice(pe));return B?(Z.m=v.get(B[0].toLowerCase()),pe+B[0].length):-1}function $(Z,ne,pe){return T(Z,t,ne,pe)}function L(Z,ne,pe){return T(Z,n,ne,pe)}function z(Z,ne,pe){return T(Z,r,ne,pe)}function G(Z){return a[Z.getDay()]}function U(Z){return o[Z.getDay()]}function V(Z){return l[Z.getMonth()]}function N(Z){return s[Z.getMonth()]}function H(Z){return i[+(Z.getHours()>=12)]}function Q(Z){return 1+~~(Z.getMonth()/3)}function ee(Z){return a[Z.getUTCDay()]}function X(Z){return o[Z.getUTCDay()]}function J(Z){return l[Z.getUTCMonth()]}function ie(Z){return s[Z.getUTCMonth()]}function ue(Z){return i[+(Z.getUTCHours()>=12)]}function he(Z){return 1+~~(Z.getUTCMonth()/3)}return{format:function(Z){var ne=E(Z+="",S);return ne.toString=function(){return Z},ne},parse:function(Z){var ne=O(Z+="",!1);return ne.toString=function(){return Z},ne},utcFormat:function(Z){var ne=E(Z+="",w);return ne.toString=function(){return Z},ne},utcParse:function(Z){var ne=O(Z+="",!0);return ne.toString=function(){return Z},ne}}}var A_={"-":"",_:" ",0:"0"},Jt=/^\s*\d+/,xU=/^%/,_U=/[\\^$*+?|[\]().{}]/g;function qe(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function SU(e){return e.replace(_U,"\\$&")}function Pl(e){return new RegExp("^(?:"+e.map(SU).join("|")+")","i")}function Ml(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function wU(e,t,n){var r=Jt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function CU(e,t,n){var r=Jt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function EU(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function OU(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function kU(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function D_(e,t,n){var r=Jt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function j_(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function TU(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function AU(e,t,n){var r=Jt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function DU(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function P_(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function jU(e,t,n){var r=Jt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function M_(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function PU(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function MU(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function $U(e,t,n){var r=Jt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function IU(e,t,n){var r=Jt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function LU(e,t,n){var r=xU.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function FU(e,t,n){var r=Jt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function NU(e,t,n){var r=Jt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function $_(e,t){return qe(e.getDate(),t,2)}function BU(e,t){return qe(e.getHours(),t,2)}function WU(e,t){return qe(e.getHours()%12||12,t,2)}function zU(e,t){return qe(1+Dl.count(pi(e),e),t,3)}function I_(e,t){return qe(e.getMilliseconds(),t,3)}function RU(e,t){return I_(e,t)+"000"}function VU(e,t){return qe(e.getMonth()+1,t,2)}function UU(e,t){return qe(e.getMinutes(),t,2)}function HU(e,t){return qe(e.getSeconds(),t,2)}function GU(e){var t=e.getDay();return t===0?7:t}function qU(e,t){return qe(wd.count(pi(e)-1,e),t,2)}function L_(e){var t=e.getDay();return t>=4||t===0?ss(e):ss.ceil(e)}function YU(e,t){return e=L_(e),qe(ss.count(pi(e),e)+(pi(e).getDay()===4),t,2)}function KU(e){return e.getDay()}function ZU(e,t){return qe(Cd.count(pi(e)-1,e),t,2)}function XU(e,t){return qe(e.getFullYear()%100,t,2)}function JU(e,t){return e=L_(e),qe(e.getFullYear()%100,t,2)}function QU(e,t){return qe(e.getFullYear()%1e4,t,4)}function eH(e,t){var n=e.getDay();return e=n>=4||n===0?ss(e):ss.ceil(e),qe(e.getFullYear()%1e4,t,4)}function tH(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+qe(t/60|0,"0",2)+qe(t%60,"0",2)}function F_(e,t){return qe(e.getUTCDate(),t,2)}function nH(e,t){return qe(e.getUTCHours(),t,2)}function rH(e,t){return qe(e.getUTCHours()%12||12,t,2)}function iH(e,t){return qe(1+Sd.count(yi(e),e),t,3)}function N_(e,t){return qe(e.getUTCMilliseconds(),t,3)}function oH(e,t){return N_(e,t)+"000"}function aH(e,t){return qe(e.getUTCMonth()+1,t,2)}function sH(e,t){return qe(e.getUTCMinutes(),t,2)}function lH(e,t){return qe(e.getUTCSeconds(),t,2)}function cH(e){var t=e.getUTCDay();return t===0?7:t}function uH(e,t){return qe(Ed.count(yi(e)-1,e),t,2)}function B_(e){var t=e.getUTCDay();return t>=4||t===0?ls(e):ls.ceil(e)}function dH(e,t){return e=B_(e),qe(ls.count(yi(e),e)+(yi(e).getUTCDay()===4),t,2)}function fH(e){return e.getUTCDay()}function hH(e,t){return qe(Od.count(yi(e)-1,e),t,2)}function mH(e,t){return qe(e.getUTCFullYear()%100,t,2)}function gH(e,t){return e=B_(e),qe(e.getUTCFullYear()%100,t,2)}function pH(e,t){return qe(e.getUTCFullYear()%1e4,t,4)}function yH(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ls(e):ls.ceil(e),qe(e.getUTCFullYear()%1e4,t,4)}function vH(){return"+0000"}function W_(){return"%"}function z_(e){return+e}function R_(e){return Math.floor(+e/1e3)}var cs,V_,U_;bH({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function bH(e){return cs=bU(e),V_=cs.format,cs.parse,U_=cs.utcFormat,cs.utcParse,cs}function xH(e){return new Date(e)}function _H(e){return e instanceof Date?+e:+new Date(+e)}function Q0(e,t,n,r,i,o,a,s,l,c){var u=M0(),d=u.invert,f=u.domain,h=c(".%L"),g=c(":%S"),p=c("%I:%M"),v=c("%I %p"),b=c("%a %d"),x=c("%b %d"),S=c("%B"),w=c("%Y");function _(E){return(l(E)<E?h:s(E)<E?g:a(E)<E?p:o(E)<E?v:r(E)<E?i(E)<E?b:x:n(E)<E?S:w)(E)}return u.invert=function(E){return new Date(d(E))},u.domain=function(E){return arguments.length?f(Array.from(E,_H)):f().map(xH)},u.ticks=function(E){var O=f();return e(O[0],O[O.length-1],E??10)},u.tickFormat=function(E,O){return O==null?_:c(O)},u.nice=function(E){var O=f();return(!E||typeof E.range!="function")&&(E=t(O[0],O[O.length-1],E??10)),E?f(f_(O,E)):u},u.copy=function(){return Tl(u,Q0(e,t,n,r,i,o,a,s,l,c))},u}function SH(){return nr.apply(Q0(yU,vU,pi,K0,wd,Dl,q0,H0,Ko,V_).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function wH(){return nr.apply(Q0(gU,pU,yi,Z0,Ed,Sd,Y0,G0,Ko,U_).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function kd(){var e=0,t=1,n,r,i,o,a=vn,s=!1,l;function c(d){return d==null||isNaN(d=+d)?l:a(i===0?.5:(d=(o(d)-n)*i,s?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(d){return arguments.length?(s=!!d,c):s},c.interpolator=function(d){return arguments.length?(a=d,c):a};function u(d){return function(f){var h,g;return arguments.length?([h,g]=f,a=d(h,g),c):[a(0),a(1)]}}return c.range=u(Rr),c.rangeRound=u(f0),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return o=d,n=d(e),r=d(t),i=n===r?0:1/(r-n),c}}function ao(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function H_(){var e=oo(kd()(vn));return e.copy=function(){return ao(e,H_())},fi.apply(e,arguments)}function G_(){var e=F0(kd()).domain([1,10]);return e.copy=function(){return ao(e,G_()).base(e.base())},fi.apply(e,arguments)}function q_(){var e=N0(kd());return e.copy=function(){return ao(e,q_()).constant(e.constant())},fi.apply(e,arguments)}function eg(){var e=B0(kd());return e.copy=function(){return ao(e,eg()).exponent(e.exponent())},fi.apply(e,arguments)}function CH(){return eg.apply(null,arguments).exponent(.5)}function Y_(){var e=[],t=vn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Ol(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(io),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>MV(e,o/r))},n.copy=function(){return Y_(t).domain(e)},fi.apply(n,arguments)}function Td(){var e=0,t=.5,n=1,r=1,i,o,a,s,l,c=vn,u,d=!1,f;function h(p){return isNaN(p=+p)?f:(p=.5+((p=+u(p))-o)*(r*p<r*o?s:l),c(d?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t,n]=p,i=u(e=+e),o=u(t=+t),a=u(n=+n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,h):[e,t,n]},h.clamp=function(p){return arguments.length?(d=!!p,h):d},h.interpolator=function(p){return arguments.length?(c=p,h):c};function g(p){return function(v){var b,x,S;return arguments.length?([b,x,S]=v,c=OW(p,[b,x,S]),h):[c(0),c(.5),c(1)]}}return h.range=g(Rr),h.rangeRound=g(f0),h.unknown=function(p){return arguments.length?(f=p,h):f},function(p){return u=p,i=p(e),o=p(t),a=p(n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,h}}function K_(){var e=oo(Td()(vn));return e.copy=function(){return ao(e,K_())},fi.apply(e,arguments)}function Z_(){var e=F0(Td()).domain([.1,1,10]);return e.copy=function(){return ao(e,Z_()).base(e.base())},fi.apply(e,arguments)}function X_(){var e=N0(Td());return e.copy=function(){return ao(e,X_()).constant(e.constant())},fi.apply(e,arguments)}function tg(){var e=B0(Td());return e.copy=function(){return ao(e,tg()).exponent(e.exponent())},fi.apply(e,arguments)}function EH(){return tg.apply(null,arguments).exponent(.5)}const OH=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:j0,scaleDiverging:K_,scaleDivergingLog:Z_,scaleDivergingPow:tg,scaleDivergingSqrt:EH,scaleDivergingSymlog:X_,scaleIdentity:d_,scaleImplicit:A0,scaleLinear:L0,scaleLog:p_,scaleOrdinal:D0,scalePoint:LV,scalePow:W0,scaleQuantile:w_,scaleQuantize:C_,scaleRadial:S_,scaleSequential:H_,scaleSequentialLog:G_,scaleSequentialPow:eg,scaleSequentialQuantile:Y_,scaleSequentialSqrt:CH,scaleSequentialSymlog:q_,scaleSqrt:oU,scaleSymlog:b_,scaleThreshold:E_,scaleTime:SH,scaleUtc:wH,tickFormat:u_},Symbol.toStringTag,{value:"Module"})),kH=["linear","time","log","sqrt"];function TH(e){return`scale${(n=>n&&n[0].toUpperCase()+n.slice(1))(e)}`}function J_(e){return typeof e=="function"?Se(e.copy)&&Se(e.domain)&&Se(e.range):typeof e=="string"?kH.includes(e):!1}function Q_(e,t){if(e.scale){if(e.scale.x||e.scale.y)return!!e.scale[t]}else return!1;return!0}function AH(e,t){if(!Q_(e,t))return;const n=e.scale[t]||e.scale;return typeof n=="string"?n:tS(n)}function DH(e,t){let n;if(e.domain&&e.domain[t]?n=e.domain[t]:e.domain&&Array.isArray(e.domain)&&(n=e.domain),!!n)return er(n)?"time":"linear"}function eS(e,t){if(!e.data)return"linear";const n=ld(e[t]),r=e.data.map(i=>{const o=Mt(n(i))?n(i)[t]:n(i);return o!==void 0?o:i[t]});return er(r)?"time":"linear"}function $l(e){if(J_(e)){const t=TH(e);return OH[t]()}return L0()}function ir(e,t){const n=Il(e,t);if(n)return typeof n=="string"?$l(n):n;const r=DH(e,t)||eS(e,t);return $l(r)}function Il(e,t){if(!Q_(e,t))return;const n=e.scale[t]||e.scale;if(J_(n))return Se(n)?n:$l(n)}function Ad(e,t){return AH(e,t)||eS(e,t)}const jH=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function tS(e){if(typeof e=="string")return e;const t=jH.filter(n=>e[n.method]!==void 0)[0];return t?t.name:void 0}const PH="@@__IMMUTABLE_ITERABLE__@@",MH="@@__IMMUTABLE_RECORD__@@",$H="@@__IMMUTABLE_LIST__@@";function Ll(e){return!!(e&&e[PH])}function IH(e){return!!(e&&e[MH])}function LH(e){return Ll(e)||IH(e)}function FH(e){return!!(e&&e[$H])}function nS(e,t){return Ll(e)?e.reduce((n,r,i)=>{let o=r;return t&&t[i]&&(o=nS(r)),n[i]=o,n},FH(e)?[]:{}):e}function ng(e){const t={errorX:!0,errorY:!0};return LH(e)?nS(e,t):e}function rS(e){return Ll(e)?e.size:e.length}function iS(e,t){const r=(Mt(e.domain)?e.domain[t]:e.domain)||ir(e,t).domain(),i=e.samples||1,o=Math.max(...r),a=Math.min(...r),s=(o-a)/i,l=v0(a,o,s);return l[l.length-1]===o?l:l.concat(o)}function oS(e,t,n){if(n===void 0&&(n="ascending"),!t)return e;let r=t;return(t==="x"||t==="y")&&(r=`_${t}`),ts(e,r,n==="ascending"?"asc":"desc")}function NH(e,t){const n=1/Number.MAX_SAFE_INTEGER,r={x:Ad(t,"x"),y:Ad(t,"y")};if(r.x!=="log"&&r.y!=="log")return e;const i=(a,s)=>r[s]==="log"?a[`_${s}`]!==0:!0,o=a=>{const s=i(a,"x")?a._x:n,l=i(a,"y")?a._y:n,c=i(a,"y0")?a._y0:n;return Object.assign({},a,{_x:s,_y:l,_y0:c})};return e.map(a=>i(a,"x")&&i(a,"y")&&i(a,"y0")?a:o(a))}function BH(e){return Se(e)?e:e==null?()=>{}:Rx(e)}function WH(e,t){const n=!!e.eventKey,r=BH(e.eventKey);return t.map((i,o)=>{if(i.eventKey!==void 0)return i;if(n){const a=r(i,o);return a!==void 0?Object.assign({eventKey:a},i):i}return i})}function zH(e,t,n){const r=g=>g!==void 0,i=Dn(t.x),o=tr(t.x),a=Dn(t.y),s=tr(t.y),l=g=>p=>r(p)&&p<g,c=g=>p=>r(p)&&p>g,u=l(i),d=l(a),f=c(o),h=c(s);return e.map(g=>{let{_x:p,_y:v,_y0:b,_y1:x}=g;(u(p)||f(p))&&(p=null);const S=r(b)?b:n,w=r(x)?x:v;return r(w)?(!r(S)&&(d(w)||h(w))&&(v=null),(d(S)&&d(w)||h(S)&&h(w))&&(v=b=x=null),d(S)&&!d(w)&&(b=a),h(S)&&!h(w)&&(b=s),Object.assign({},g,I2({_x:p,_y:v,_y0:b,_y1:x},vV))):g})}function rg(e,t){const n=aS(e,t),r=us(e,t),i=UH(e,t),o=qo([...n,...r,...i]);return o.length===0?null:o.reduce((a,s,l)=>(a[s]=l+1,a),{})}function RH(e,t,n){n===void 0&&(n=0);const r=rS(e);if(r>t){const i=Math.pow(2,Math.ceil(Math.log2(r/t)));return e.filter((o,a)=>(a+n)%i===0)}return e}function ig(e,t,n){if(!(Array.isArray(e)||Ll(e))||rS(e)<1)return[];const i=["x","y","y0"];n=Array.isArray(n)?n:i;const o=f=>ld(t[f]!==void 0?t[f]:f),a=n.reduce((f,h)=>(f[h]=o(h),f),{}),s=SV(n,i)&&t.x==="_x"&&t.y==="_y"&&t.y0==="_y0";let l;s===!1&&(l={x:n.indexOf("x")!==-1?rg(t,"x"):void 0,y:n.indexOf("y")!==-1?rg(t,"y"):void 0,y0:n.indexOf("y0")!==-1?rg(t,"y"):void 0});const c=s?e:e.reduce((f,h,g)=>{const p=ng(h),v={x:g,y:p},b=n.reduce((S,w)=>{const _=a[w](p),E=_!==void 0?_:v[w];return E!==void 0&&(typeof E=="string"&&l[w]?(S[`${w}Name`]=E,S[`_${w}`]=l[w][E]):S[`_${w}`]=E),S},{}),x=Object.assign({},b,p);return vt(x)||f.push(x),f},[]),u=oS(c,t.sortKey,t.sortOrder),d=NH(u,t);return WH(t,d)}function VH(e){const t=iS(e,"x"),n=iS(e,"y");return t.map((i,o)=>({x:i,y:n[o]}))}function og(e,t){return e.categories&&!Array.isArray(e.categories)?e.categories[t]:e.categories}function dn(e){return e.data?ig(e.data,e):ig(VH(e),e)}function aS(e,t){const{tickValues:n,tickFormat:r}=e;let i;return!n||!Array.isArray(n)&&!n[t]?i=r&&Array.isArray(r)?r:[]:i=n[t]||n,i.filter(o=>typeof o=="string")}function us(e,t){if(!e.categories)return[];const n=og(e,t),r=n&&n.filter(i=>typeof i=="string");return r?Bz(r):[]}function UH(e,t){if(!(Array.isArray(e.data)||Ll(e.data)))return[];const r=e[t]===void 0?t:e[t],i=ld(r),o=e.data.reduce((l,c)=>(l.push(ng(c)),l),[]);return oS(o,e.sortKey,e.sortOrder).reduce((l,c)=>{const u=ng(c);return l.push(i(u)),l},[]).filter(l=>typeof l=="string").reduce((l,c)=>(c!=null&&l.indexOf(c)===-1&&l.push(c),l),[])}function ds(e){const t=i=>i&&i.type?i.type.role:"";let n=t(e);if(n==="portal"){const i=y.Children.toArray(e.props.children);n=i.length?t(i[0]):""}return["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(n)}function HH(e,t,n){return Ad(t,n)!=="log"?e:(o=>{const a=o[0]<0||o[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER,s=o[0]===0?a:o[0],l=o[1]===0?a:o[1];return[s,l]})(e)}function GH(e,t){const n=r=>Array.isArray(r)?{left:r[0],right:r[1]}:{left:r,right:r};return Mt(e.domainPadding)?n(e.domainPadding[t]):n(e.domainPadding)}function qH(e,t){const n=`_${t}`;return e.flat().map(r=>r[n]&&r[n][1]!==void 0?r[n][1]:r[n])}function sS(e,t,n){n===void 0&&(n="min");const r=s=>n==="max"?Math.max(...s):Math.min(...s),i=n==="max"?-1/0:1/0;let o=!1;const a=e.flat().reduce((s,l)=>{const c=l[`_${t}0`]!==void 0?l[`_${t}0`]:l[`_${t}`],u=l[`_${t}1`]!==void 0?l[`_${t}1`]:l[`_${t}`],d=r([c,u]);return o=o||c instanceof Date||u instanceof Date,r([s,d])},i);return o?new Date(a):a}function YH(e,t,n){if(!t.domainPadding)return e;const r=ea(t,n),i=Qo(t,n),o=GH(t,n);if(!o.left&&!o.right)return e;const a=Dn(e),s=tr(e),l=Tz(n,t.horizontal),c=Nt(t,l),u=Math.abs(c[0]-c[1]),d=Math.max(u-o.left-o.right,1),f=Math.abs(s.valueOf()-a.valueOf())/d*u,h={left:f*o.left/u,right:f*o.right/u};let g={min:a.valueOf()-h.left,max:s.valueOf()+h.right};const p=Mt(t.singleQuadrantDomainPadding)?t.singleQuadrantDomainPadding[n]:t.singleQuadrantDomainPadding,v=a>=0&&g.min<=0||s<=0&&g.max>=0,b=(S,w)=>w==="min"&&a>=0&&S<=0||w==="max"&&s<=0&&S>=0?0:S;if(v&&p!==!1){const S={left:Math.abs(s-a)*o.left/u,right:Math.abs(s-a)*o.right/u},w={min:b(a.valueOf()-S.left,"min"),max:b(s.valueOf()+S.right,"max")},_={left:Math.abs(w.max-w.min)*o.left/u,right:Math.abs(w.max-w.min)*o.right/u};g={min:b(a.valueOf()-_.left,"min"),max:b(s.valueOf()+_.right,"max")}}const x={min:r!==void 0?r:g.min,max:i!==void 0?i:g.max};return a instanceof Date||s instanceof Date?vi(new Date(x.min),new Date(x.max)):vi(x.min,x.max)}function ag(e,t){const n=Se(e)?e:lg,r=Se(t)?t:sg;return(i,o)=>{const a=cg(i,o);if(a)return r(a,i,o);const s=og(i,o),l=s?KH(i,o,s):n(i,o);return l?r(l,i,o):void 0}}function sg(e,t,n){return HH(YH(e,t,n),t,n)}function Jo(e,t){return ag()(e,t)}function KH(e,t,n){const r=n||og(e,t),{polar:i,startAngle:o=0,endAngle:a=360}=e;if(!r)return;const s=ea(e,t),l=Qo(e,t),c=fd(r)?us(e,t):[],u=c.length===0?null:c.reduce((p,v,b)=>(p[v]=b+1,p),{}),d=u?r.map(p=>u[p]):r,f=s!==void 0?s:Dn(d),h=l!==void 0?l:tr(d),g=vi(f,h);return i&&t==="x"&&Math.abs(o-a)===360?dg(g,d):g}function lg(e,t,n){const r=n||dn(e),{polar:i,startAngle:o=0,endAngle:a=360}=e,s=ea(e,t),l=Qo(e,t);if(r.length<1)return s!==void 0&&l!==void 0?vi(s,l):void 0;const c=s!==void 0?s:sS(r,t,"min"),u=l!==void 0?l:sS(r,t,"max"),d=vi(c,u);return i&&t==="x"&&Math.abs(o-a)===360?dg(d,qH(r,t)):d}function vi(e,t){const n=r=>{const i=r===0?2*Math.pow(10,-10):Math.pow(10,-10),o=1,a=r instanceof Date?new Date(Number(r)-o):Number(r)-i,s=r instanceof Date?new Date(Number(r)+o):Number(r)+i;return r===0?[0,s]:[a,s]};return Number(e)===Number(t)?n(t):[e,t]}function cg(e,t){const n=ea(e,t),r=Qo(e,t);if(Mt(e.domain)&&e.domain[t])return e.domain[t];if(Array.isArray(e.domain))return e.domain;if(n!==void 0&&r!==void 0)return vi(n,r)}function ug(e,t){const n=cg(e,t);if(n)return n;const r=dn(e),i=r.reduce((l,c)=>c._y0<l?c._y0:l,1/0),o=l=>{if(t==="x")return l;const c=i!==1/0?i:0,u=Qo(e,t),d=ea(e,t),f=u!==void 0?u:tr(l,c),h=d!==void 0?d:Dn(l,c);return vi(h,f)};return ag(()=>lg(e,t,r),l=>sg(o(l),e,t))(e,t)}function Qo(e,t){return Mt(e.maxDomain)&&e.maxDomain[t]!==void 0?e.maxDomain[t]:typeof e.maxDomain=="number"||q2(e.maxDomain)?e.maxDomain:void 0}function ea(e,t){return Mt(e.minDomain)&&e.minDomain[t]!==void 0?e.minDomain[t]:typeof e.minDomain=="number"||q2(e.minDomain)?e.minDomain:void 0}function dg(e,t){const n=gV(t.sort((i,o)=>i-o)),r=n[1]-n[0];return[e[0],e[1]+r]}function lS(e){const t=i=>i&&i.type?i.type.role:"";let n=t(e);if(n==="portal"){const i=y.Children.toArray(e.props.children);n=i.length?t(i[0]):""}return["area","axis","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(n)}function ZH(e){return e}function or(e){const{dependentAxis:t}=e;return t?"y":"x"}function cS(e,t){const n=t||ZH,r=i=>i.reduce((o,a)=>a.type&&a.type.role==="axis"&&n(a)?o.concat(a):a.props&&a.props.children?o.concat(r(y.Children.toArray(a.props.children))):o,[]);return r(e)}function uS(e,t){return cS(e,r=>r.type.getAxis(r.props)===t)[0]}function dS(e,t){const n=i=>t==="dependent"?i.props.dependentAxis:!i.props.dependentAxis,r=i=>i.reduce((o,a)=>a.type&&a.type.role==="axis"&&n(a)||a.props&&a.props.children&&r(y.Children.toArray(a.props.children)).length>0?o.concat(a):o,[]);return r(e)}function fS(e){const t=n=>{const r=Math.min(...n),i=Math.max(...n);return i<0?i:Math.max(0,r)};return{x:er(e.x)?new Date(Math.min(...e.x)):t(e.x),y:er(e.y)?new Date(Math.min(...e.y)):t(e.y)}}function hS(e,t){const n=()=>e<=0&&Math.max(...t)<=0?"negative":"positive";return er(t)?"positive":n()}function Dd(e){const t=e.orientation||(e.dependentAxis?"left":"bottom");return{top:!1,bottom:!1,left:!0,right:!0}[t]}function jd(e){return e.tickValues!==void 0&&fd(e.tickValues)}function XH(e){const{tickValues:t}=e,n=or(e),r=e.stringMap&&e.stringMap[n],i=t&&!er(t)?c=>c:void 0;if(!r)return jd(e)?(c,u)=>t[u]:i;const o=r&&S2(r),l=["",...ts(Object.values(r),c=>c).map(c=>o[c]),""];return c=>l[c]}function JH(e){const t=or(e),n=e.stringMap&&e.stringMap[t],r=Array.isArray(e.categories)?e.categories:e.categories&&e.categories[t],i=r&&Nz(r)?r.map(a=>n[a]):void 0,o=n&&Object.values(n);return i&&i.length!==0?i:o}function fg(e){const{tickValues:t,tickFormat:n}=e;if((t==null?void 0:t.length)===0)return[];const r=or(e),i=e.stringMap&&e.stringMap[r],o=()=>{if(!(!n||!Array.isArray(n)))return fd(n)?n.map((c,u)=>u):n};let a=t;i&&(a=JH(e)),t&&fd(t)&&(a=i?t.map(c=>i[c]):v0(1,t.length+1));const s=a?qo(a):o(),l=c=>{const u=[],d=e.domain&&e.domain[r]||e.domain;if(c)return c.forEach((f,h)=>{Array.isArray(d)?f>=Dn(d)&&f<=tr(d)&&u.push({value:f,index:h}):u.push({value:f,index:h})}),u};return Array.isArray(s)&&s.length?l(s):void 0}function mS(e,t){const{tickFormat:n}=e,r=or(e),i=e.stringMap&&e.stringMap[r];if(n){if(n&&Array.isArray(n)){const o=fg(e),a=o==null?void 0:o.map(l=>l.index),s=n.filter((l,c)=>a==null?void 0:a.includes(c));return(l,c)=>s[c]}else if(n&&Se(n))return i?(a,s,l)=>{const c=S2(i),u=l.map(d=>c[d]);return e.tickFormat(c[a],s,u)}:n}else{const o=XH(e),a=t.tickFormat&&Se(t.tickFormat)?t.tickFormat():s=>s;return o||a}return o=>o}function gS(e,t){if(!t||!Array.isArray(e)||e.length<=t)return e;const n=Math.floor(e.length/t);return e.filter((r,i)=>i%n===0)}function pS(e,t,n){n===void 0&&(n=!1);const{tickCount:r}=e,i=fg(e);if((i==null?void 0:i.length)===0)return[""];const o=i?i.map(a=>a.value):void 0;if(o)return gS(o,r);if(t.ticks&&Se(t.ticks)){const a=r||5,s=t.ticks(a),l=Array.isArray(s)&&s.length?s:t.domain(),c=gS(l,r);if(n){const u=c.filter(d=>d!==0);return u.length?u:c}return c}return t.domain()}function QH(e,t){const{polar:n,startAngle:r=0,endAngle:i=360}=e,o=fg(e),a=o&&(o==null?void 0:o.length)!==0?o.map(b=>b.value):void 0;if(!Array.isArray(a))return;const s=ea(e,t),l=Qo(e,t),c=jd(e),u=a.map(b=>Number(b)),d=c?1:Dn(u),f=c?a.length:tr(u),p=vi(s!==void 0?s:d,l!==void 0?l:f),v=n&&t==="x"&&Math.abs(r-i)===360?dg(p,u):p;return Dd(e)&&!n&&v.reverse(),v}function fs(e,t){const n=or(e);if(!(t&&t!==n))return ag(QH)(e,n)}function yS(e,t){if(!e.axisValue)return;const n=t==="x"?"y":"x",r=ol(e.scale)&&Se(e.scale[n])?e.scale[n]:void 0;if(!r)return;const i=t==="x"?"y":"x",o=ol(e.stringMap)&&e.stringMap[i],a=o&&typeof e.axisValue=="string"?o[e.axisValue]:e.axisValue;return r(a)}function Pd(e,t){if(!ol(e.theme))return Bt(e,t,"axis");let n="axis";if(e.dependentAxis&&e.theme.dependentAxis?n="dependentAxis":!e.dependentAxis&&e.theme.independentAxis&&(n="independentAxis"),n==="axis")return Bt(e,t,"axis");const r=K({},e.theme[n],e.theme.axis),i=Object.assign({},e.theme,{axis:r});return Bt(Object.assign({},e,{theme:i}),t,"axis")}function vS(){return{onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}}}function bS(){return{onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:e=>({_y:e._y,_y1:e._y1,_y0:e._y0})},onExit:{duration:500,before:(e,t,n)=>{const r=i=>(t===0?n[t+1]:n[t-1])[i];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:(e,t,n)=>{const r=i=>(t===0?n[t+1]:n[t-1])[i];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:e=>({_x:e._x,_y:e._y,_y1:e._y1,_y0:e._y0})}}}function eG(){return{onLoad:{duration:2e3,before:()=>({opacity:0}),after:e=>e},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:e=>e}}}function xS(e){const t=y.useRef();return y.useEffect(()=>{t.current=e}),t.current}const tG={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0},_S=function(e){e===void 0&&(e=tG);const[t,n]=y.useState(e),r=y.useCallback(s=>{n(l=>({...l,...s}))},[n]),i=y.useCallback((s,l,c)=>{if(!(s!=null&&s.animate))return l.props.animate;const u=()=>{let g=t&&t.childrenTransitions;return g=E2(g)?g[c]:g,K({childrenTransitions:g},t)};let d=s.animate&&s.animate.getTransitions;const f=u(),h=s.animate&&s.animate.parentState||f;if(!d){const g=D2(s,f,p=>r(p));d=p=>g(p,c)}return K({getTransitions:d,parentState:h},s.animate,l.props.animate)},[t,r]),o=y.useCallback((s,l)=>{if(s!=null&&s.animate)if(s.animate.parentState){const u=s.animate.parentState.nodesWillExit?s:null,d=K({oldProps:u,nextProps:l},s.animate.parentState);r(d)}else{const c=y.Children.toArray(s.children),u=y.Children.toArray(l.children),d=b=>{const x=S=>S.type&&S.type.continuous;return Array.isArray(b)?b.some(x):x(b)},f=!s.polar&&c.some(b=>{var x;return d(b)||((x=b==null?void 0:b.props)==null?void 0:x.children)&&d(b.props.children)}),{nodesWillExit:h,nodesWillEnter:g,childrenTransitions:p,nodesShouldEnter:v}=A2(c,u);r({nodesWillExit:h,nodesWillEnter:g,nodesShouldEnter:v,childrenTransitions:E2(p)?p[0]:p,oldProps:h?s:void 0,nextProps:l,continuous:f})}},[r]),a=y.useCallback(s=>t&&t.nodesWillExit&&t.oldProps||s,[t]);return{state:t,setState:r,getAnimationProps:i,setAnimationState:o,getProps:a}};function nG(e,t){t===void 0&&(t={});const n=t._y>=0?1:-1,r=e.style&&e.style.labels||{};return t.verticalAnchor||r.verticalAnchor?t.verticalAnchor||r.verticalAnchor:e.horizontal?"middle":n>=0?"end":"start"}function rG(e,t){t===void 0&&(t={});const{style:n,horizontal:r}=e,i=t._y>=0?1:-1,o=n&&n.labels||{};return t.verticalAnchor||o.verticalAnchor?t.verticalAnchor||o.verticalAnchor:r?i>=0?"start":"end":"middle"}function iG(e,t){t===void 0&&(t={});const n=e.style&&e.style.labels||{};return t.angle===void 0?n.angle:t.angle}function oG(e,t){t===void 0&&(t={});const{horizontal:n,style:r}=e,i=r.labels||{},o=te(i.padding,e)||0,a=t._y<0?-1:1;return{x:n?a*o:0,y:n?0:-1*a*o}}function aG(e,t){if(e.polar)return{};const n=oG(e,t);return{dx:n.x,dy:n.y}}function sG(e,t){const{polar:n}=e,{x:r,y:i}=is(e,t);if(!n)return{x:r,y:i};const o=lG(e,t);return{x:r+o.x,y:i+o.y}}function lG(e,t){const{style:n}=e,r=Fl(e,t),i=n.labels||{},o=te(i.padding,e)||0,a=dt(r);return{x:o*Math.cos(a),y:-o*Math.sin(a)}}function hg(e){const{labelComponent:t,labelPlacement:n,polar:r}=e,i=r?"perpendicular":"vertical";return n||t.props&&t.props.labelPlacement||i}function cG(e){return e<45||e>315?"right":e>=45&&e<=135?"top":e>135&&e<225?"left":"bottom"}function Md(e,t,n){return t===void 0&&(t={}),t.label!==void 0?t.label:Array.isArray(e.labels)?e.labels[n]:e.labels}function mg(e,t){const n=hg(e);return n==="perpendicular"||n==="vertical"&&(t===90||t===270)?"middle":t<=90||t>270?"start":"end"}function SS(e,t){const n=hg(e),r=cG(t);return n==="parallel"||r==="left"||r==="right"?"middle":r==="top"?"end":"start"}function gg(e,t){const{labelPlacement:n,datum:r}=e;if(!n||n==="vertical")return 0;const i=t!==void 0?t%360:Fl(e,r),o=i>90&&i<180||i>270?1:-1;let a=0;return i===0||i===180?a=90:i>0&&i<180?a=90-i:i>180&&i<360&&(a=270-i),a+o*(n==="perpendicular"?0:90)}function Fl(e,t){const{x:n}=y0(t);return ui(e.scale.x(n))%360}function pg(e,t){const{scale:n,data:r,style:i,horizontal:o,polar:a,width:s,height:l,theme:c,labelComponent:u,disableInlineStyles:d}=e,f=r[t],h=Fl(e,f),g=a?mg(e,h):rG(e,f),p=a?SS(e,h):nG(e,f),v=iG(e,f),b=Md(e,f,t),x=hg(e),{x:S,y:w}=sG(e,f),{dx:_,dy:E}=aG(e,f),O={angle:v,data:r,datum:f,disableInlineStyles:d,horizontal:o,index:t,polar:a,scale:n,labelPlacement:x,text:b,textAnchor:g,verticalAnchor:p,x:S,y:w,dx:_,dy:E,width:s,height:l,style:i.labels};if(!ad(u))return O;const T=c&&c.tooltip||{};return K({},O,wl(T,["style"]))}function je(e){return function(){return e}}const wS=Math.abs,fn=Math.atan2,bi=Math.cos,uG=Math.max,hs=Math.min,jn=Math.sin,bt=Math.sqrt,hn=1e-12,so=Math.PI,$d=so/2,lo=2*so;function dG(e){return e>1?0:e<-1?so:Math.acos(e)}function CS(e){return e>=1?$d:e<=-1?-$d:Math.asin(e)}const yg=Math.PI,vg=2*yg,ta=1e-6,fG=vg-ta;function ES(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function hG(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return ES;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let mG=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?ES:hG(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=r-t,c=i-n,u=a-t,d=s-n,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>ta)if(!(Math.abs(d*l-c*u)>ta)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-a,g=i-s,p=l*l+c*c,v=h*h+g*g,b=Math.sqrt(p),x=Math.sqrt(f),S=o*Math.tan((yg-Math.acos((p+f-v)/(2*b*x)))/2),w=S/x,_=S/b;Math.abs(w-1)>ta&&this._append`L${t+w*u},${n+w*d}`,this._append`A${o},${o},0,0,${+(d*h>u*g)},${this._x1=t+_*l},${this._y1=n+_*c}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),c=t+s,u=n+l,d=1^a,f=a?i-o:o-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>ta||Math.abs(this._y1-u)>ta)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%vg+vg),f>fG?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:f>ta&&this._append`A${r},${r},0,${+(f>=yg)},${d},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function Nl(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new mG(t)}function gG(e){return e.innerRadius}function pG(e){return e.outerRadius}function yG(e){return e.startAngle}function vG(e){return e.endAngle}function bG(e){return e&&e.padAngle}function xG(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,d=s-o,f=d*l-u*c;if(!(f*f<hn))return f=(u*(t-o)-d*(e-i))/f,[e+f*l,t+f*c]}function Id(e,t,n,r,i,o,a){var s=e-n,l=t-r,c=(a?o:-o)/bt(s*s+l*l),u=c*l,d=-c*s,f=e+u,h=t+d,g=n+u,p=r+d,v=(f+g)/2,b=(h+p)/2,x=g-f,S=p-h,w=x*x+S*S,_=i-o,E=f*p-g*h,O=(S<0?-1:1)*bt(uG(0,_*_*w-E*E)),T=(E*S-x*O)/w,D=(-E*x-S*O)/w,j=(E*S+x*O)/w,A=(-E*x+S*O)/w,M=T-v,P=D-b,$=j-v,L=A-b;return M*M+P*P>$*$+L*L&&(T=j,D=A),{cx:T,cy:D,x01:-u,y01:-d,x11:T*(i/_-1),y11:D*(i/_-1)}}function bg(){var e=gG,t=pG,n=je(0),r=null,i=yG,o=vG,a=bG,s=null,l=Nl(c);function c(){var u,d,f=+e.apply(this,arguments),h=+t.apply(this,arguments),g=i.apply(this,arguments)-$d,p=o.apply(this,arguments)-$d,v=wS(p-g),b=p>g;if(s||(s=u=l()),h<f&&(d=h,h=f,f=d),!(h>hn))s.moveTo(0,0);else if(v>lo-hn)s.moveTo(h*bi(g),h*jn(g)),s.arc(0,0,h,g,p,!b),f>hn&&(s.moveTo(f*bi(p),f*jn(p)),s.arc(0,0,f,p,g,b));else{var x=g,S=p,w=g,_=p,E=v,O=v,T=a.apply(this,arguments)/2,D=T>hn&&(r?+r.apply(this,arguments):bt(f*f+h*h)),j=hs(wS(h-f)/2,+n.apply(this,arguments)),A=j,M=j,P,$;if(D>hn){var L=CS(D/f*jn(T)),z=CS(D/h*jn(T));(E-=L*2)>hn?(L*=b?1:-1,w+=L,_-=L):(E=0,w=_=(g+p)/2),(O-=z*2)>hn?(z*=b?1:-1,x+=z,S-=z):(O=0,x=S=(g+p)/2)}var G=h*bi(x),U=h*jn(x),V=f*bi(_),N=f*jn(_);if(j>hn){var H=h*bi(S),Q=h*jn(S),ee=f*bi(w),X=f*jn(w),J;if(v<so)if(J=xG(G,U,ee,X,H,Q,V,N)){var ie=G-J[0],ue=U-J[1],he=H-J[0],Z=Q-J[1],ne=1/jn(dG((ie*he+ue*Z)/(bt(ie*ie+ue*ue)*bt(he*he+Z*Z)))/2),pe=bt(J[0]*J[0]+J[1]*J[1]);A=hs(j,(f-pe)/(ne-1)),M=hs(j,(h-pe)/(ne+1))}else A=M=0}O>hn?M>hn?(P=Id(ee,X,G,U,h,M,b),$=Id(H,Q,V,N,h,M,b),s.moveTo(P.cx+P.x01,P.cy+P.y01),M<j?s.arc(P.cx,P.cy,M,fn(P.y01,P.x01),fn($.y01,$.x01),!b):(s.arc(P.cx,P.cy,M,fn(P.y01,P.x01),fn(P.y11,P.x11),!b),s.arc(0,0,h,fn(P.cy+P.y11,P.cx+P.x11),fn($.cy+$.y11,$.cx+$.x11),!b),s.arc($.cx,$.cy,M,fn($.y11,$.x11),fn($.y01,$.x01),!b))):(s.moveTo(G,U),s.arc(0,0,h,x,S,!b)):s.moveTo(G,U),!(f>hn)||!(E>hn)?s.lineTo(V,N):A>hn?(P=Id(V,N,H,Q,f,-A,b),$=Id(G,U,ee,X,f,-A,b),s.lineTo(P.cx+P.x01,P.cy+P.y01),A<j?s.arc(P.cx,P.cy,A,fn(P.y01,P.x01),fn($.y01,$.x01),!b):(s.arc(P.cx,P.cy,A,fn(P.y01,P.x01),fn(P.y11,P.x11),!b),s.arc(0,0,f,fn(P.cy+P.y11,P.cx+P.x11),fn($.cy+$.y11,$.cx+$.x11),b),s.arc($.cx,$.cy,A,fn($.y11,$.x11),fn($.y01,$.x01),!b))):s.arc(0,0,f,_,w,b)}if(s.closePath(),u)return s=null,u+""||null}return c.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-so/2;return[bi(d)*u,jn(d)*u]},c.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:je(+u),c):e},c.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:je(+u),c):t},c.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:je(+u),c):n},c.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:je(+u),c):r},c.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:je(+u),c):i},c.endAngle=function(u){return arguments.length?(o=typeof u=="function"?u:je(+u),c):o},c.padAngle=function(u){return arguments.length?(a=typeof u=="function"?u:je(+u),c):a},c.context=function(u){return arguments.length?(s=u??null,c):s},c}var _G=Array.prototype.slice;function Ld(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function OS(e){this._context=e}OS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Bl(e){return new OS(e)}function xg(e){return e[0]}function _g(e){return e[1]}function Fd(e,t){var n=je(!0),r=null,i=Bl,o=null,a=Nl(s);e=typeof e=="function"?e:e===void 0?xg:je(e),t=typeof t=="function"?t:t===void 0?_g:je(t);function s(l){var c,u=(l=Ld(l)).length,d,f=!1,h;for(r==null&&(o=i(h=a())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(d,c,l),+t(d,c,l));if(h)return o=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:je(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:je(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:je(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),s):r},s}function Nd(e,t,n){var r=null,i=je(!0),o=null,a=Bl,s=null,l=Nl(c);e=typeof e=="function"?e:e===void 0?xg:je(+e),t=typeof t=="function"?t:je(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?_g:je(+n);function c(d){var f,h,g,p=(d=Ld(d)).length,v,b=!1,x,S=new Array(p),w=new Array(p);for(o==null&&(s=a(x=l())),f=0;f<=p;++f){if(!(f<p&&i(v=d[f],f,d))===b)if(b=!b)h=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=f-1;g>=h;--g)s.point(S[g],w[g]);s.lineEnd(),s.areaEnd()}b&&(S[f]=+e(v,f,d),w[f]=+t(v,f,d),s.point(r?+r(v,f,d):S[f],n?+n(v,f,d):w[f]))}if(x)return s=null,x+""||null}function u(){return Fd().defined(i).curve(a).context(o)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:je(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:je(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:je(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:je(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:je(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:je(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:je(!!d),c):i},c.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),c):a},c.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),c):o},c}function SG(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function wG(e){return e}function kS(){var e=wG,t=SG,n=null,r=je(0),i=je(lo),o=je(0);function a(s){var l,c=(s=Ld(s)).length,u,d,f=0,h=new Array(c),g=new Array(c),p=+r.apply(this,arguments),v=Math.min(lo,Math.max(-lo,i.apply(this,arguments)-p)),b,x=Math.min(Math.abs(v)/c,o.apply(this,arguments)),S=x*(v<0?-1:1),w;for(l=0;l<c;++l)(w=g[h[l]=l]=+e(s[l],l,s))>0&&(f+=w);for(t!=null?h.sort(function(_,E){return t(g[_],g[E])}):n!=null&&h.sort(function(_,E){return n(s[_],s[E])}),l=0,d=f?(v-c*S)/f:0;l<c;++l,p=b)u=h[l],w=g[u],b=p+(w>0?w*d:0)+S,g[u]={data:s[u],index:l,value:w,startAngle:p,endAngle:b,padAngle:x};return g}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:je(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:je(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:je(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:je(+s),a):o},a}var TS=Sg(Bl);function AS(e){this._curve=e}AS.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function Sg(e){function t(n){return new AS(e(n))}return t._curve=e,t}function Wl(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(n){return arguments.length?t(Sg(n)):t()._curve},e}function wg(){return Wl(Fd().curve(TS))}function Cg(){var e=Nd().curve(TS),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return Wl(n())},delete e.lineX0,e.lineEndAngle=function(){return Wl(r())},delete e.lineX1,e.lineInnerRadius=function(){return Wl(i())},delete e.lineY0,e.lineOuterRadius=function(){return Wl(o())},delete e.lineY1,e.curve=function(a){return arguments.length?t(Sg(a)):t()._curve},e}function zl(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}class DS{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}class CG{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,this._point===0)this._point=1;else{const r=zl(this._x0,this._y0),i=zl(this._x0,this._y0=(this._y0+n)/2),o=zl(t,this._y0),a=zl(t,n);this._context.moveTo(...r),this._context.bezierCurveTo(...i,...o,...a)}this._x0=t,this._y0=n}}function jS(e){return new DS(e,!0)}function PS(e){return new DS(e,!1)}function EG(e){return new CG(e)}function OG(e){return e.source}function kG(e){return e.target}function Bd(e){let t=OG,n=kG,r=xg,i=_g,o=null,a=null,s=Nl(l);function l(){let c;const u=_G.call(arguments),d=t.apply(this,u),f=n.apply(this,u);if(o==null&&(a=e(c=s())),a.lineStart(),u[0]=d,a.point(+r.apply(this,u),+i.apply(this,u)),u[0]=f,a.point(+r.apply(this,u),+i.apply(this,u)),a.lineEnd(),c)return a=null,c+""||null}return l.source=function(c){return arguments.length?(t=c,l):t},l.target=function(c){return arguments.length?(n=c,l):n},l.x=function(c){return arguments.length?(r=typeof c=="function"?c:je(+c),l):r},l.y=function(c){return arguments.length?(i=typeof c=="function"?c:je(+c),l):i},l.context=function(c){return arguments.length?(c==null?o=a=null:a=e(o=c),l):o},l}function TG(){return Bd(jS)}function AG(){return Bd(PS)}function DG(){const e=Bd(EG);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const jG=bt(3),MS={draw(e,t){const n=bt(t+hs(t/28,.75))*.59436,r=n/2,i=r*jG;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-i,-r),e.lineTo(i,r),e.moveTo(-i,r),e.lineTo(i,-r)}},Wd={draw(e,t){const n=bt(t/so);e.moveTo(n,0),e.arc(0,0,n,0,lo)}},$S={draw(e,t){const n=bt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},IS=bt(1/3),PG=IS*2,LS={draw(e,t){const n=bt(t/PG),r=n*IS;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},FS={draw(e,t){const n=bt(t)*.62625;e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},NS={draw(e,t){const n=bt(t-hs(t/7,2))*.87559;e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},BS={draw(e,t){const n=bt(t),r=-n/2;e.rect(r,r,n,n)}},WS={draw(e,t){const n=bt(t)*.4431;e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},MG=.8908130915292852,zS=jn(so/10)/jn(7*so/10),$G=jn(lo/10)*zS,IG=-bi(lo/10)*zS,RS={draw(e,t){const n=bt(t*MG),r=$G*n,i=IG*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=lo*o/5,s=bi(a),l=jn(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},Eg=bt(3),VS={draw(e,t){const n=-bt(t/(Eg*3));e.moveTo(0,n*2),e.lineTo(-Eg*n,-n),e.lineTo(Eg*n,-n),e.closePath()}},LG=bt(3),US={draw(e,t){const n=bt(t)*.6824,r=n/2,i=n*LG/2;e.moveTo(0,-n),e.lineTo(i,r),e.lineTo(-i,r),e.closePath()}},ar=-.5,sr=bt(3)/2,Og=1/bt(12),FG=(Og/2+1)*3,HS={draw(e,t){const n=bt(t/FG),r=n/2,i=n*Og,o=r,a=n*Og+n,s=-o,l=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(ar*r-sr*i,sr*r+ar*i),e.lineTo(ar*o-sr*a,sr*o+ar*a),e.lineTo(ar*s-sr*l,sr*s+ar*l),e.lineTo(ar*r+sr*i,ar*i-sr*r),e.lineTo(ar*o+sr*a,ar*a-sr*o),e.lineTo(ar*s+sr*l,ar*l-sr*s),e.closePath()}},kg={draw(e,t){const n=bt(t-hs(t/6,1.7))*.6189;e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},GS=[Wd,$S,LS,BS,RS,VS,HS],NG=[Wd,NS,kg,US,MS,WS,FS];function BG(e,t){let n=null,r=Nl(i);e=typeof e=="function"?e:je(e||Wd),t=typeof t=="function"?t:je(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:je(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:je(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function co(){}function zd(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Rd(e){this._context=e}Rd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:zd(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:zd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function WG(e){return new Rd(e)}function qS(e){this._context=e}qS.prototype={areaStart:co,areaEnd:co,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:zd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zG(e){return new qS(e)}function YS(e){this._context=e}YS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:zd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function RG(e){return new YS(e)}function KS(e,t){this._basis=new Rd(e),this._beta=t}KS.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],o=e[n]-r,a=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*o),this._beta*t[s]+(1-this._beta)*(i+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const VG=function e(t){function n(r){return t===1?new Rd(r):new KS(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Vd(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Tg(e,t){this._context=e,this._k=(1-t)/6}Tg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Vd(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Vd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const UG=function e(t){function n(r){return new Tg(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Ag(e,t){this._context=e,this._k=(1-t)/6}Ag.prototype={areaStart:co,areaEnd:co,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Vd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const HG=function e(t){function n(r){return new Ag(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Dg(e,t){this._context=e,this._k=(1-t)/6}Dg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Vd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const GG=function e(t){function n(r){return new Dg(r,t)}return n.tension=function(r){return e(+r)},n}(0);function jg(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>hn){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>hn){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function ZS(e,t){this._context=e,this._alpha=t}ZS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:jg(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const qG=function e(t){function n(r){return t?new ZS(r,t):new Tg(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function XS(e,t){this._context=e,this._alpha=t}XS.prototype={areaStart:co,areaEnd:co,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:jg(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const YG=function e(t){function n(r){return t?new XS(r,t):new Ag(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function JS(e,t){this._context=e,this._alpha=t}JS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:jg(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const KG=function e(t){function n(r){return t?new JS(r,t):new Dg(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function QS(e){this._context=e}QS.prototype={areaStart:co,areaEnd:co,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function ZG(e){return new QS(e)}function ew(e){return e<0?-1:1}function tw(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(ew(o)+ew(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function nw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Pg(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Ud(e){this._context=e}Ud.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Pg(this,this._t0,nw(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Pg(this,nw(this,n=tw(this,e,t)),n);break;default:Pg(this,this._t0,n=tw(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function rw(e){this._context=new iw(e)}(rw.prototype=Object.create(Ud.prototype)).point=function(e,t){Ud.prototype.point.call(this,t,e)};function iw(e){this._context=e}iw.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function XG(e){return new Ud(e)}function JG(e){return new rw(e)}function ow(e){this._context=e}ow.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=aw(e),i=aw(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function aw(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function QG(e){return new ow(e)}function Hd(e,t){this._context=e,this._t=t}Hd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function eq(e){return new Hd(e,.5)}function tq(e){return new Hd(e,0)}function nq(e){return new Hd(e,1)}function ms(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function gs(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function rq(e,t){return e[t]}function iq(e){const t=[];return t.key=e,t}function oq(){var e=je([]),t=gs,n=ms,r=rq;function i(o){var a=Array.from(e.apply(this,arguments),iq),s,l=a.length,c=-1,u;for(const d of o)for(s=0,++c;s<l;++s)(a[s][c]=[0,+r(d,a[s].key,c,o)]).data=d;for(s=0,u=Ld(t(a));s<l;++s)a[u[s]].index=s;return n(a,u),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:je(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:je(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?gs:typeof o=="function"?o:je(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??ms,i):n},i}function aq(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}ms(e,t)}}function sq(e,t){if((l=e.length)>0)for(var n,r=0,i,o,a,s,l,c=e[t[0]].length;r<c;++r)for(a=s=0,n=0;n<l;++n)(o=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}function lq(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}ms(e,t)}}function cq(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,l=0,c=0;s<a;++s){for(var u=e[t[s]],d=u[r][1]||0,f=u[r-1][1]||0,h=(d-f)/2,g=0;g<s;++g){var p=e[t[g]],v=p[r][1]||0,b=p[r-1][1]||0;h+=v-b}l+=d,c+=h*d}i[r-1][1]+=i[r-1][0]=n,l&&(n-=c/l)}i[r-1][1]+=i[r-1][0]=n,ms(e,t)}}function sw(e){var t=e.map(uq);return gs(e).sort(function(n,r){return t[n]-t[r]})}function uq(e){for(var t=-1,n=0,r=e.length,i,o=-1/0;++t<r;)(i=+e[t][1])>o&&(o=i,n=t);return n}function lw(e){var t=e.map(cw);return gs(e).sort(function(n,r){return t[n]-t[r]})}function cw(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function dq(e){return lw(e).reverse()}function fq(e){var t=e.length,n,r,i=e.map(cw),o=sw(e),a=0,s=0,l=[],c=[];for(n=0;n<t;++n)r=o[n],a<s?(a+=i[r],l.push(r)):(s+=i[r],c.push(r));return c.reverse().concat(l)}function hq(e){return gs(e).reverse()}const mq=Object.freeze(Object.defineProperty({__proto__:null,arc:bg,area:Nd,areaRadial:Cg,curveBasis:WG,curveBasisClosed:zG,curveBasisOpen:RG,curveBumpX:jS,curveBumpY:PS,curveBundle:VG,curveCardinal:UG,curveCardinalClosed:HG,curveCardinalOpen:GG,curveCatmullRom:qG,curveCatmullRomClosed:YG,curveCatmullRomOpen:KG,curveLinear:Bl,curveLinearClosed:ZG,curveMonotoneX:XG,curveMonotoneY:JG,curveNatural:QG,curveStep:eq,curveStepAfter:nq,curveStepBefore:tq,line:Fd,lineRadial:wg,link:Bd,linkHorizontal:TG,linkRadial:DG,linkVertical:AG,pie:kS,pointRadial:zl,radialArea:Cg,radialLine:wg,stack:oq,stackOffsetDiverging:sq,stackOffsetExpand:aq,stackOffsetNone:ms,stackOffsetSilhouette:lq,stackOffsetWiggle:cq,stackOrderAppearance:sw,stackOrderAscending:lw,stackOrderDescending:dq,stackOrderInsideOut:fq,stackOrderNone:gs,stackOrderReverse:hq,symbol:BG,symbolAsterisk:MS,symbolCircle:Wd,symbolCross:$S,symbolDiamond:LS,symbolDiamond2:FS,symbolPlus:NS,symbolSquare:BS,symbolSquare2:WS,symbolStar:RS,symbolTimes:kg,symbolTriangle:VS,symbolTriangle2:US,symbolWye:HS,symbolX:kg,symbols:GS,symbolsFill:GS,symbolsStroke:NG},Symbol.toStringTag,{value:"Module"})),uw=e=>{const t=e._y1!==void 0?e._y1:e._y;return t!=null&&e._y0!==null},dw=e=>t=>e.x(t._x1!==void 0?t._x1:t._x),Mg=e=>t=>e.y(t._y1!==void 0?t._y1:t._y),gq=e=>t=>-1*e.x(t._x1!==void 0?t._x1:t._x)+Math.PI/2,fw=e=>`curve${(n=>n&&n[0].toUpperCase()+n.slice(1))(e)}`,pq=e=>`${fw(e)}Closed`,Gd=e=>{const{interpolation:t}=e;if(typeof t=="function")return t;if(typeof t=="string"){const{polar:n,openCurve:r=!n}=e,i=r?fw(t):pq(t);return mq[i]}return Bl},hw=e=>{const{polar:t,scale:n,horizontal:r}=e;return t?wg().defined(uw).curve(Gd(e)).angle(gq(n)).radius(Mg(n)):Fd().defined(uw).curve(Gd(e)).x(r?Mg(n):dw(n)).y(r?dw(n):Mg(n))};function $g(e){process.env.NODE_ENV!=="production"&&console&&console.warn&&console.warn(e)}function yq(e,t,n){return`M ${e}, ${t}
|
158
|
+
*/var y1;function EP(){return y1||(y1=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=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,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function S(B){return typeof B=="string"||typeof B=="function"||B===r||B===c||B===o||B===i||B===d||B===f||typeof B=="object"&&B!==null&&(B.$$typeof===g||B.$$typeof===h||B.$$typeof===a||B.$$typeof===s||B.$$typeof===u||B.$$typeof===v||B.$$typeof===b||B.$$typeof===x||B.$$typeof===p)}function w(B){if(typeof B=="object"&&B!==null){var ke=B.$$typeof;switch(ke){case t:var Ee=B.type;switch(Ee){case l:case c:case r:case o:case i:case d:return Ee;default:var He=Ee&&Ee.$$typeof;switch(He){case s:case u:case g:case h:case a:return He;default:return ke}}case n:return ke}}}var _=l,E=c,O=s,T=a,D=t,j=u,A=r,M=g,P=h,$=n,L=o,H=i,q=d,U=!1;function z(B){return U||(U=!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.")),N(B)||w(B)===l}function N(B){return w(B)===c}function R(B){return w(B)===s}function J(B){return w(B)===a}function ee(B){return typeof B=="object"&&B!==null&&B.$$typeof===t}function X(B){return w(B)===u}function Q(B){return w(B)===r}function ie(B){return w(B)===g}function ue(B){return w(B)===h}function de(B){return w(B)===n}function K(B){return w(B)===o}function ne(B){return w(B)===i}function pe(B){return w(B)===d}et.AsyncMode=_,et.ConcurrentMode=E,et.ContextConsumer=O,et.ContextProvider=T,et.Element=D,et.ForwardRef=j,et.Fragment=A,et.Lazy=M,et.Memo=P,et.Portal=$,et.Profiler=L,et.StrictMode=H,et.Suspense=q,et.isAsyncMode=z,et.isConcurrentMode=N,et.isContextConsumer=R,et.isContextProvider=J,et.isElement=ee,et.isForwardRef=X,et.isFragment=Q,et.isLazy=ie,et.isMemo=ue,et.isPortal=de,et.isProfiler=K,et.isStrictMode=ne,et.isSuspense=pe,et.isValidElementType=S,et.typeOf=w}()),et}process.env.NODE_ENV==="production"?Am.exports=CP():Am.exports=EP();var Dm=Am.exports,jm=Dm,OP={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},kP={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},TP={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},v1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Pm={};Pm[jm.ForwardRef]=TP,Pm[jm.Memo]=v1;function b1(e){return jm.isMemo(e)?v1:Pm[e.$$typeof]||OP}var AP=Object.defineProperty,DP=Object.getOwnPropertyNames,x1=Object.getOwnPropertySymbols,jP=Object.getOwnPropertyDescriptor,PP=Object.getPrototypeOf,_1=Object.prototype;function S1(e,t,n){if(typeof t!="string"){if(_1){var r=PP(t);r&&r!==_1&&S1(e,r,n)}var i=DP(t);x1&&(i=i.concat(x1(t)));for(var o=b1(e),a=b1(t),s=0;s<i.length;++s){var l=i[s];if(!kP[l]&&!(n&&n[l])&&!(a&&a[l])&&!(o&&o[l])){var c=jP(t,l);try{AP(e,l,c)}catch{}}}}return e}var MP=S1;const rn=Fe(MP),w1={name:"--pf-v5-chart-legend--Margin",value:16,var:"var(--pf-v5-chart-legend--Margin, 16)"};var $P=Object.prototype;function IP(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||$P;return e===n}var Pu=IP;function LP(e,t){return function(n){return e(t(n))}}var C1=LP,FP=C1,NP=FP(Object.keys,Object),BP=NP,WP=Pu,zP=BP,RP=Object.prototype,VP=RP.hasOwnProperty;function UP(e){if(!WP(e))return zP(e);var t=[];for(var n in Object(e))VP.call(e,n)&&n!="constructor"&&t.push(n);return t}var E1=UP,HP=typeof zs=="object"&&zs&&zs.Object===Object&&zs,O1=HP,GP=O1,qP=typeof self=="object"&&self&&self.Object===Object&&self,YP=GP||qP||Function("return this")(),Er=YP,KP=Er,ZP=KP.Symbol,Ra=ZP,k1=Ra,T1=Object.prototype,XP=T1.hasOwnProperty,JP=T1.toString,il=k1?k1.toStringTag:void 0;function QP(e){var t=XP.call(e,il),n=e[il];try{e[il]=void 0;var r=!0}catch{}var i=JP.call(e);return r&&(t?e[il]=n:delete e[il]),i}var eM=QP,tM=Object.prototype,nM=tM.toString;function rM(e){return nM.call(e)}var iM=rM,A1=Ra,oM=eM,aM=iM,sM="[object Null]",lM="[object Undefined]",D1=A1?A1.toStringTag:void 0;function cM(e){return e==null?e===void 0?lM:sM:D1&&D1 in Object(e)?oM(e):aM(e)}var to=cM;function uM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Tn=uM;const ol=Fe(Tn);var dM=to,fM=Tn,hM="[object AsyncFunction]",mM="[object Function]",gM="[object GeneratorFunction]",pM="[object Proxy]";function yM(e){if(!fM(e))return!1;var t=dM(e);return t==mM||t==gM||t==hM||t==pM}var Mm=yM,vM=Er,bM=vM["__core-js_shared__"],xM=bM,$m=xM,j1=function(){var e=/[^.]+$/.exec($m&&$m.keys&&$m.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function _M(e){return!!j1&&j1 in e}var SM=_M,wM=Function.prototype,CM=wM.toString;function EM(e){if(e!=null){try{return CM.call(e)}catch{}try{return e+""}catch{}}return""}var P1=EM,OM=Mm,kM=SM,TM=Tn,AM=P1,DM=/[\\^$.*+?()[\]{}|]/g,jM=/^\[object .+?Constructor\]$/,PM=Function.prototype,MM=Object.prototype,$M=PM.toString,IM=MM.hasOwnProperty,LM=RegExp("^"+$M.call(IM).replace(DM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function FM(e){if(!TM(e)||kM(e))return!1;var t=OM(e)?LM:jM;return t.test(AM(e))}var NM=FM;function BM(e,t){return e==null?void 0:e[t]}var WM=BM,zM=NM,RM=WM;function VM(e,t){var n=RM(e,t);return zM(n)?n:void 0}var Wo=VM,UM=Wo,HM=Er,GM=UM(HM,"DataView"),qM=GM,YM=Wo,KM=Er,ZM=YM(KM,"Map"),Im=ZM,XM=Wo,JM=Er,QM=XM(JM,"Promise"),e$=QM,t$=Wo,n$=Er,r$=t$(n$,"Set"),M1=r$,i$=Wo,o$=Er,a$=i$(o$,"WeakMap"),s$=a$,Lm=qM,Fm=Im,Nm=e$,Bm=M1,Wm=s$,$1=to,Va=P1,I1="[object Map]",l$="[object Object]",L1="[object Promise]",F1="[object Set]",N1="[object WeakMap]",B1="[object DataView]",c$=Va(Lm),u$=Va(Fm),d$=Va(Nm),f$=Va(Bm),h$=Va(Wm),zo=$1;(Lm&&zo(new Lm(new ArrayBuffer(1)))!=B1||Fm&&zo(new Fm)!=I1||Nm&&zo(Nm.resolve())!=L1||Bm&&zo(new Bm)!=F1||Wm&&zo(new Wm)!=N1)&&(zo=function(e){var t=$1(e),n=t==l$?e.constructor:void 0,r=n?Va(n):"";if(r)switch(r){case c$:return B1;case u$:return I1;case d$:return L1;case f$:return F1;case h$:return N1}return t});var Ua=zo;function m$(e){return e!=null&&typeof e=="object"}var Or=m$,g$=to,p$=Or,y$="[object Arguments]";function v$(e){return p$(e)&&g$(e)==y$}var b$=v$,W1=b$,x$=Or,z1=Object.prototype,_$=z1.hasOwnProperty,S$=z1.propertyIsEnumerable,w$=W1(function(){return arguments}())?W1:function(e){return x$(e)&&_$.call(e,"callee")&&!S$.call(e,"callee")},al=w$,C$=Array.isArray,yn=C$,E$=9007199254740991;function O$(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=E$}var zm=O$,k$=Mm,T$=zm;function A$(e){return e!=null&&T$(e.length)&&!k$(e)}var Ro=A$,Mu={exports:{}};function D$(){return!1}var j$=D$;Mu.exports,function(e,t){var n=Er,r=j$,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c}(Mu,Mu.exports);var sl=Mu.exports,P$=to,M$=zm,$$=Or,I$="[object Arguments]",L$="[object Array]",F$="[object Boolean]",N$="[object Date]",B$="[object Error]",W$="[object Function]",z$="[object Map]",R$="[object Number]",V$="[object Object]",U$="[object RegExp]",H$="[object Set]",G$="[object String]",q$="[object WeakMap]",Y$="[object ArrayBuffer]",K$="[object DataView]",Z$="[object Float32Array]",X$="[object Float64Array]",J$="[object Int8Array]",Q$="[object Int16Array]",eI="[object Int32Array]",tI="[object Uint8Array]",nI="[object Uint8ClampedArray]",rI="[object Uint16Array]",iI="[object Uint32Array]",yt={};yt[Z$]=yt[X$]=yt[J$]=yt[Q$]=yt[eI]=yt[tI]=yt[nI]=yt[rI]=yt[iI]=!0,yt[I$]=yt[L$]=yt[Y$]=yt[F$]=yt[K$]=yt[N$]=yt[B$]=yt[W$]=yt[z$]=yt[R$]=yt[V$]=yt[U$]=yt[H$]=yt[G$]=yt[q$]=!1;function oI(e){return $$(e)&&M$(e.length)&&!!yt[P$(e)]}var aI=oI;function sI(e){return function(t){return e(t)}}var Ha=sI,$u={exports:{}};$u.exports,function(e,t){var n=O1,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}($u,$u.exports);var ll=$u.exports,lI=aI,cI=Ha,R1=ll,V1=R1&&R1.isTypedArray,uI=V1?cI(V1):lI,Iu=uI,dI=E1,fI=Ua,hI=al,mI=yn,gI=Ro,pI=sl,yI=Pu,vI=Iu,bI="[object Map]",xI="[object Set]",_I=Object.prototype,SI=_I.hasOwnProperty;function wI(e){if(e==null)return!0;if(gI(e)&&(mI(e)||typeof e=="string"||typeof e.splice=="function"||pI(e)||vI(e)||hI(e)))return!e.length;var t=fI(e);if(t==bI||t==xI)return!e.size;if(yI(e))return!dI(e).length;for(var n in e)if(SI.call(e,n))return!1;return!0}var CI=wI;const vt=Fe(CI);function EI(e){return e}var Ga=EI;const qa=Fe(Ga);function OI(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var kI=OI,TI=kI,U1=Math.max;function AI(e,t,n){return t=U1(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=U1(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),TI(e,this,s)}}var H1=AI;function DI(e){return function(){return e}}var jI=DI,PI=Wo,MI=function(){try{var e=PI(Object,"defineProperty");return e({},"",{}),e}catch{}}(),G1=MI,$I=jI,q1=G1,II=Ga,LI=q1?function(e,t){return q1(e,"toString",{configurable:!0,enumerable:!1,value:$I(t),writable:!0})}:II,FI=LI,NI=800,BI=16,WI=Date.now;function zI(e){var t=0,n=0;return function(){var r=WI(),i=BI-(r-n);if(n=r,i>0){if(++t>=NI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var RI=zI,VI=FI,UI=RI,HI=UI(VI),Y1=HI,GI=Ga,qI=H1,YI=Y1;function KI(e,t){return YI(qI(e,t,GI),e+"")}var Rm=KI;function ZI(e,t){return e===t||e!==e&&t!==t}var Vo=ZI,XI=9007199254740991,JI=/^(?:0|[1-9]\d*)$/;function QI(e,t){var n=typeof e;return t=t??XI,!!t&&(n=="number"||n!="symbol"&&JI.test(e))&&e>-1&&e%1==0&&e<t}var Lu=QI,eL=Vo,tL=Ro,nL=Lu,rL=Tn;function iL(e,t,n){if(!rL(n))return!1;var r=typeof t;return(r=="number"?tL(n)&&nL(t,n.length):r=="string"&&t in n)?eL(n[t],e):!1}var Vm=iL;function oL(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var aL=oL,sL=aL,lL=al,cL=yn,uL=sl,dL=Lu,fL=Iu,hL=Object.prototype,mL=hL.hasOwnProperty;function gL(e,t){var n=cL(e),r=!n&&lL(e),i=!n&&!r&&uL(e),o=!n&&!r&&!i&&fL(e),a=n||r||i||o,s=a?sL(e.length,String):[],l=s.length;for(var c in e)(t||mL.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||dL(c,l)))&&s.push(c);return s}var K1=gL;function pL(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var yL=pL,vL=Tn,bL=Pu,xL=yL,_L=Object.prototype,SL=_L.hasOwnProperty;function wL(e){if(!vL(e))return xL(e);var t=bL(e),n=[];for(var r in e)r=="constructor"&&(t||!SL.call(e,r))||n.push(r);return n}var CL=wL,EL=K1,OL=CL,kL=Ro;function TL(e){return kL(e)?EL(e,!0):OL(e)}var Ya=TL,AL=Rm,DL=Vo,jL=Vm,PL=Ya,Z1=Object.prototype,ML=Z1.hasOwnProperty,$L=AL(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&jL(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=PL(o),s=-1,l=a.length;++s<l;){var c=a[s],u=e[c];(u===void 0||DL(u,Z1[c])&&!ML.call(e,c))&&(e[c]=o[c])}return e}),IL=$L;const Z=Fe(IL),LL=e=>+e;function FL(e){return e*e}function NL(e){return e*(2-e)}function X1(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function BL(e){return e*e*e}function WL(e){return--e*e*e+1}function J1(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Um=3,zL=function e(t){t=+t;function n(r){return Math.pow(r,t)}return n.exponent=e,n}(Um),RL=function e(t){t=+t;function n(r){return 1-Math.pow(1-r,t)}return n.exponent=e,n}(Um),Q1=function e(t){t=+t;function n(r){return((r*=2)<=1?Math.pow(r,t):2-Math.pow(2-r,t))/2}return n.exponent=e,n}(Um),ex=Math.PI,tx=ex/2;function VL(e){return+e==1?1:1-Math.cos(e*tx)}function UL(e){return Math.sin(e*tx)}function nx(e){return(1-Math.cos(ex*e))/2}function no(e){return(Math.pow(2,-10*e)-.0009765625)*1.0009775171065494}function HL(e){return no(1-+e)}function GL(e){return 1-no(e)}function rx(e){return((e*=2)<=1?no(1-e):2-no(e-1))/2}function qL(e){return 1-Math.sqrt(1-e*e)}function YL(e){return Math.sqrt(1- --e*e)}function ix(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var Hm=4/11,KL=6/11,ZL=8/11,XL=3/4,JL=9/11,QL=10/11,e4=15/16,t4=21/22,n4=63/64,Fu=1/Hm/Hm;function r4(e){return 1-cl(1-e)}function cl(e){return(e=+e)<Hm?Fu*e*e:e<ZL?Fu*(e-=KL)*e+XL:e<QL?Fu*(e-=JL)*e+e4:Fu*(e-=t4)*e+n4}function i4(e){return((e*=2)<=1?1-cl(1-e):cl(e-1)+1)/2}var Gm=1.70158,o4=function e(t){t=+t;function n(r){return(r=+r)*r*(t*(r-1)+r)}return n.overshoot=e,n}(Gm),a4=function e(t){t=+t;function n(r){return--r*r*((r+1)*t+r)+1}return n.overshoot=e,n}(Gm),ox=function e(t){t=+t;function n(r){return((r*=2)<1?r*r*((t+1)*r-t):(r-=2)*r*((t+1)*r+t)+2)/2}return n.overshoot=e,n}(Gm),Ka=2*Math.PI,qm=1,Ym=.3,s4=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Ka);function i(o){return t*no(- --o)*Math.sin((r-o)/n)}return i.amplitude=function(o){return e(o,n*Ka)},i.period=function(o){return e(t,o)},i}(qm,Ym),ax=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Ka);function i(o){return 1-t*no(o=+o)*Math.sin((o+r)/n)}return i.amplitude=function(o){return e(o,n*Ka)},i.period=function(o){return e(t,o)},i}(qm,Ym),l4=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Ka);function i(o){return((o=o*2-1)<0?t*no(-o)*Math.sin((r-o)/n):2-t*no(o)*Math.sin((r+o)/n))/2}return i.amplitude=function(o){return e(o,n*Ka)},i.period=function(o){return e(t,o)},i}(qm,Ym);const c4=Object.freeze(Object.defineProperty({__proto__:null,easeBack:ox,easeBackIn:o4,easeBackInOut:ox,easeBackOut:a4,easeBounce:cl,easeBounceIn:r4,easeBounceInOut:i4,easeBounceOut:cl,easeCircle:ix,easeCircleIn:qL,easeCircleInOut:ix,easeCircleOut:YL,easeCubic:J1,easeCubicIn:BL,easeCubicInOut:J1,easeCubicOut:WL,easeElastic:ax,easeElasticIn:s4,easeElasticInOut:l4,easeElasticOut:ax,easeExp:rx,easeExpIn:HL,easeExpInOut:rx,easeExpOut:GL,easeLinear:LL,easePoly:Q1,easePolyIn:zL,easePolyInOut:Q1,easePolyOut:RL,easeQuad:X1,easeQuadIn:FL,easeQuadInOut:X1,easeQuadOut:NL,easeSin:nx,easeSinIn:VL,easeSinInOut:nx,easeSinOut:UL},Symbol.toStringTag,{value:"Module"}));function u4(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Nu=u4,d4=to,f4=Or,h4="[object Symbol]";function m4(e){return typeof e=="symbol"||f4(e)&&d4(e)==h4}var ul=m4,g4=yn,p4=ul,y4=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,v4=/^\w*$/;function b4(e,t){if(g4(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||p4(e)?!0:v4.test(e)||!y4.test(e)||t!=null&&e in Object(t)}var Km=b4,x4=Wo,_4=x4(Object,"create"),Bu=_4,sx=Bu;function S4(){this.__data__=sx?sx(null):{},this.size=0}var w4=S4;function C4(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var E4=C4,O4=Bu,k4="__lodash_hash_undefined__",T4=Object.prototype,A4=T4.hasOwnProperty;function D4(e){var t=this.__data__;if(O4){var n=t[e];return n===k4?void 0:n}return A4.call(t,e)?t[e]:void 0}var j4=D4,P4=Bu,M4=Object.prototype,$4=M4.hasOwnProperty;function I4(e){var t=this.__data__;return P4?t[e]!==void 0:$4.call(t,e)}var L4=I4,F4=Bu,N4="__lodash_hash_undefined__";function B4(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=F4&&t===void 0?N4:t,this}var W4=B4,z4=w4,R4=E4,V4=j4,U4=L4,H4=W4;function Za(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Za.prototype.clear=z4,Za.prototype.delete=R4,Za.prototype.get=V4,Za.prototype.has=U4,Za.prototype.set=H4;var G4=Za;function q4(){this.__data__=[],this.size=0}var Y4=q4,K4=Vo;function Z4(e,t){for(var n=e.length;n--;)if(K4(e[n][0],t))return n;return-1}var Wu=Z4,X4=Wu,J4=Array.prototype,Q4=J4.splice;function eF(e){var t=this.__data__,n=X4(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Q4.call(t,n,1),--this.size,!0}var tF=eF,nF=Wu;function rF(e){var t=this.__data__,n=nF(t,e);return n<0?void 0:t[n][1]}var iF=rF,oF=Wu;function aF(e){return oF(this.__data__,e)>-1}var sF=aF,lF=Wu;function cF(e,t){var n=this.__data__,r=lF(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var uF=cF,dF=Y4,fF=tF,hF=iF,mF=sF,gF=uF;function Xa(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Xa.prototype.clear=dF,Xa.prototype.delete=fF,Xa.prototype.get=hF,Xa.prototype.has=mF,Xa.prototype.set=gF;var zu=Xa,lx=G4,pF=zu,yF=Im;function vF(){this.size=0,this.__data__={hash:new lx,map:new(yF||pF),string:new lx}}var bF=vF;function xF(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var _F=xF,SF=_F;function wF(e,t){var n=e.__data__;return SF(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Ru=wF,CF=Ru;function EF(e){var t=CF(this,e).delete(e);return this.size-=t?1:0,t}var OF=EF,kF=Ru;function TF(e){return kF(this,e).get(e)}var AF=TF,DF=Ru;function jF(e){return DF(this,e).has(e)}var PF=jF,MF=Ru;function $F(e,t){var n=MF(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var IF=$F,LF=bF,FF=OF,NF=AF,BF=PF,WF=IF;function Ja(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ja.prototype.clear=LF,Ja.prototype.delete=FF,Ja.prototype.get=NF,Ja.prototype.has=BF,Ja.prototype.set=WF;var Zm=Ja,cx=Zm,zF="Expected a function";function Xm(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(zF);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Xm.Cache||cx),n}Xm.Cache=cx;var ux=Xm;const dx=Fe(ux);var RF=ux,VF=500;function UF(e){var t=RF(e,function(r){return n.size===VF&&n.clear(),r}),n=t.cache;return t}var HF=UF,GF=HF,qF=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,YF=/\\(\\)?/g,KF=GF(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(qF,function(n,r,i,o){t.push(i?o.replace(YF,"$1"):r||n)}),t}),ZF=KF,fx=Ra,XF=Nu,JF=yn,QF=ul,e8=1/0,hx=fx?fx.prototype:void 0,mx=hx?hx.toString:void 0;function gx(e){if(typeof e=="string")return e;if(JF(e))return XF(e,gx)+"";if(QF(e))return mx?mx.call(e):"";var t=e+"";return t=="0"&&1/e==-e8?"-0":t}var t8=gx,n8=t8;function r8(e){return e==null?"":n8(e)}var px=r8,i8=yn,o8=Km,a8=ZF,s8=px;function l8(e,t){return i8(e)?e:o8(e,t)?[e]:a8(s8(e))}var Vu=l8,c8=ul,u8=1/0;function d8(e){if(typeof e=="string"||c8(e))return e;var t=e+"";return t=="0"&&1/e==-u8?"-0":t}var dl=d8,f8=Vu,h8=dl;function m8(e,t){t=f8(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[h8(t[n++])];return n&&n==r?e:void 0}var Uu=m8,g8=zu;function p8(){this.__data__=new g8,this.size=0}var y8=p8;function v8(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var b8=v8;function x8(e){return this.__data__.get(e)}var _8=x8;function S8(e){return this.__data__.has(e)}var w8=S8,C8=zu,E8=Im,O8=Zm,k8=200;function T8(e,t){var n=this.__data__;if(n instanceof C8){var r=n.__data__;if(!E8||r.length<k8-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new O8(r)}return n.set(e,t),this.size=n.size,this}var A8=T8,D8=zu,j8=y8,P8=b8,M8=_8,$8=w8,I8=A8;function Qa(e){var t=this.__data__=new D8(e);this.size=t.size}Qa.prototype.clear=j8,Qa.prototype.delete=P8,Qa.prototype.get=M8,Qa.prototype.has=$8,Qa.prototype.set=I8;var Hu=Qa,L8="__lodash_hash_undefined__";function F8(e){return this.__data__.set(e,L8),this}var N8=F8;function B8(e){return this.__data__.has(e)}var W8=B8,z8=Zm,R8=N8,V8=W8;function Gu(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new z8;++t<n;)this.add(e[t])}Gu.prototype.add=Gu.prototype.push=R8,Gu.prototype.has=V8;var yx=Gu;function U8(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var H8=U8;function G8(e,t){return e.has(t)}var vx=G8,q8=yx,Y8=H8,K8=vx,Z8=1,X8=2;function J8(e,t,n,r,i,o){var a=n&Z8,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,h=n&X8?new q8:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var g=e[d],p=t[d];if(r)var v=a?r(p,g,d,t,e,o):r(g,p,d,e,t,o);if(v!==void 0){if(v)continue;f=!1;break}if(h){if(!Y8(t,function(b,x){if(!K8(h,x)&&(g===b||i(g,b,n,r,o)))return h.push(x)})){f=!1;break}}else if(!(g===p||i(g,p,n,r,o))){f=!1;break}}return o.delete(e),o.delete(t),f}var bx=J8,Q8=Er,eN=Q8.Uint8Array,xx=eN;function tN(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var _x=tN;function nN(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Jm=nN,Sx=Ra,wx=xx,rN=Vo,iN=bx,oN=_x,aN=Jm,sN=1,lN=2,cN="[object Boolean]",uN="[object Date]",dN="[object Error]",fN="[object Map]",hN="[object Number]",mN="[object RegExp]",gN="[object Set]",pN="[object String]",yN="[object Symbol]",vN="[object ArrayBuffer]",bN="[object DataView]",Cx=Sx?Sx.prototype:void 0,Qm=Cx?Cx.valueOf:void 0;function xN(e,t,n,r,i,o,a){switch(n){case bN:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case vN:return!(e.byteLength!=t.byteLength||!o(new wx(e),new wx(t)));case cN:case uN:case hN:return rN(+e,+t);case dN:return e.name==t.name&&e.message==t.message;case mN:case pN:return e==t+"";case fN:var s=oN;case gN:var l=r&sN;if(s||(s=aN),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=lN,a.set(e,t);var u=iN(s(e),s(t),r,i,o,a);return a.delete(e),u;case yN:if(Qm)return Qm.call(e)==Qm.call(t)}return!1}var _N=xN;function SN(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var e0=SN,wN=e0,CN=yn;function EN(e,t,n){var r=t(e);return CN(e)?r:wN(r,n(e))}var Ex=EN;function ON(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var kN=ON;function TN(){return[]}var Ox=TN,AN=kN,DN=Ox,jN=Object.prototype,PN=jN.propertyIsEnumerable,kx=Object.getOwnPropertySymbols,MN=kx?function(e){return e==null?[]:(e=Object(e),AN(kx(e),function(t){return PN.call(e,t)}))}:DN,t0=MN,$N=K1,IN=E1,LN=Ro;function FN(e){return LN(e)?$N(e):IN(e)}var es=FN,NN=Ex,BN=t0,WN=es;function zN(e){return NN(e,WN,BN)}var Tx=zN,Ax=Tx,RN=1,VN=Object.prototype,UN=VN.hasOwnProperty;function HN(e,t,n,r,i,o){var a=n&RN,s=Ax(e),l=s.length,c=Ax(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var f=s[d];if(!(a?f in t:UN.call(t,f)))return!1}var h=o.get(e),g=o.get(t);if(h&&g)return h==t&&g==e;var p=!0;o.set(e,t),o.set(t,e);for(var v=a;++d<l;){f=s[d];var b=e[f],x=t[f];if(r)var S=a?r(x,b,f,t,e,o):r(b,x,f,e,t,o);if(!(S===void 0?b===x||i(b,x,n,r,o):S)){p=!1;break}v||(v=f=="constructor")}if(p&&!v){var w=e.constructor,_=t.constructor;w!=_&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof _=="function"&&_ instanceof _)&&(p=!1)}return o.delete(e),o.delete(t),p}var GN=HN,n0=Hu,qN=bx,YN=_N,KN=GN,Dx=Ua,jx=yn,Px=sl,ZN=Iu,XN=1,Mx="[object Arguments]",$x="[object Array]",qu="[object Object]",JN=Object.prototype,Ix=JN.hasOwnProperty;function QN(e,t,n,r,i,o){var a=jx(e),s=jx(t),l=a?$x:Dx(e),c=s?$x:Dx(t);l=l==Mx?qu:l,c=c==Mx?qu:c;var u=l==qu,d=c==qu,f=l==c;if(f&&Px(e)){if(!Px(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new n0),a||ZN(e)?qN(e,t,n,r,i,o):YN(e,t,l,n,r,i,o);if(!(n&XN)){var h=u&&Ix.call(e,"__wrapped__"),g=d&&Ix.call(t,"__wrapped__");if(h||g){var p=h?e.value():e,v=g?t.value():t;return o||(o=new n0),i(p,v,n,r,o)}}return f?(o||(o=new n0),KN(e,t,n,r,i,o)):!1}var e9=QN,t9=e9,Lx=Or;function Fx(e,t,n,r,i){return e===t?!0:e==null||t==null||!Lx(e)&&!Lx(t)?e!==e&&t!==t:t9(e,t,n,r,Fx,i)}var r0=Fx,n9=Hu,r9=r0,i9=1,o9=2;function a9(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new n9;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?r9(u,c,i9|o9,r,d):f))return!1}}return!0}var s9=a9,l9=Tn;function c9(e){return e===e&&!l9(e)}var Nx=c9,u9=Nx,d9=es;function f9(e){for(var t=d9(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,u9(i)]}return t}var h9=f9;function m9(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Bx=m9,g9=s9,p9=h9,y9=Bx;function v9(e){var t=p9(e);return t.length==1&&t[0][2]?y9(t[0][0],t[0][1]):function(n){return n===e||g9(n,e,t)}}var b9=v9,x9=Uu;function _9(e,t,n){var r=e==null?void 0:x9(e,t);return r===void 0?n:r}var S9=_9;function w9(e,t){return e!=null&&t in Object(e)}var C9=w9,E9=Vu,O9=al,k9=yn,T9=Lu,A9=zm,D9=dl;function j9(e,t,n){t=E9(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=D9(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&A9(i)&&T9(a,i)&&(k9(e)||O9(e)))}var P9=j9,M9=C9,$9=P9;function I9(e,t){return e!=null&&$9(e,t,M9)}var Wx=I9,L9=r0,F9=S9,N9=Wx,B9=Km,W9=Nx,z9=Bx,R9=dl,V9=1,U9=2;function H9(e,t){return B9(e)&&W9(t)?z9(R9(e),t):function(n){var r=F9(n,e);return r===void 0&&r===t?N9(n,e):L9(t,r,V9|U9)}}var G9=H9;function q9(e){return function(t){return t==null?void 0:t[e]}}var Y9=q9,K9=Uu;function Z9(e){return function(t){return K9(t,e)}}var X9=Z9,J9=Y9,Q9=X9,eB=Km,tB=dl;function nB(e){return eB(e)?J9(tB(e)):Q9(e)}var zx=nB;const Rx=Fe(zx);var rB=b9,iB=G9,oB=Ga,aB=yn,sB=zx;function lB(e){return typeof e=="function"?e:e==null?oB:typeof e=="object"?aB(e)?iB(e[0],e[1]):rB(e):sB(e)}var fl=lB;function cB(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var uB=cB,dB=uB,fB=dB(),Vx=fB,hB=Vx,mB=es;function gB(e,t){return e&&hB(e,t,mB)}var Ux=gB,pB=Ro;function yB(e,t){return function(n,r){if(n==null)return n;if(!pB(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var vB=yB,bB=Ux,xB=vB,_B=xB(bB),Hx=_B,SB=Hx,wB=Ro;function CB(e,t){var n=-1,r=wB(e)?Array(e.length):[];return SB(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var EB=CB;function OB(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var kB=OB,Gx=ul;function TB(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=Gx(e),a=t!==void 0,s=t===null,l=t===t,c=Gx(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}var AB=TB,DB=AB;function jB(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=DB(i[r],o[r]);if(l){if(r>=s)return l;var c=n[r];return l*(c=="desc"?-1:1)}}return e.index-t.index}var PB=jB,i0=Nu,MB=Uu,$B=fl,IB=EB,LB=kB,FB=Ha,NB=PB,BB=Ga,WB=yn;function zB(e,t,n){t.length?t=i0(t,function(o){return WB(o)?function(a){return MB(a,o.length===1?o[0]:o)}:o}):t=[BB];var r=-1;t=i0(t,FB($B));var i=IB(e,function(o,a,s){var l=i0(t,function(c){return c(o)});return{criteria:l,index:++r,value:o}});return LB(i,function(o,a){return NB(o,a,n)})}var RB=zB,VB=RB,qx=yn;function UB(e,t,n,r){return e==null?[]:(qx(t)||(t=t==null?[]:[t]),n=r?void 0:n,qx(n)||(n=n==null?[]:[n]),VB(e,t,n))}var HB=UB;const ts=Fe(HB);var GB=C1,qB=GB(Object.getPrototypeOf,Object),o0=qB,YB=to,KB=o0,ZB=Or,XB="[object Object]",JB=Function.prototype,QB=Object.prototype,Yx=JB.toString,eW=QB.hasOwnProperty,tW=Yx.call(Object);function nW(e){if(!ZB(e)||YB(e)!=XB)return!1;var t=KB(e);if(t===null)return!0;var n=eW.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Yx.call(n)==tW}var Kx=nW;const Mt=Fe(Kx);function a0(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Zx(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function hl(){}var ml=.7,Yu=1/ml,ns="\\s*([+-]?\\d+)\\s*",gl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",zr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rW=/^#([0-9a-f]{3,8})$/,iW=new RegExp(`^rgb\\(${ns},${ns},${ns}\\)$`),oW=new RegExp(`^rgb\\(${zr},${zr},${zr}\\)$`),aW=new RegExp(`^rgba\\(${ns},${ns},${ns},${gl}\\)$`),sW=new RegExp(`^rgba\\(${zr},${zr},${zr},${gl}\\)$`),lW=new RegExp(`^hsl\\(${gl},${zr},${zr}\\)$`),cW=new RegExp(`^hsla\\(${gl},${zr},${zr},${gl}\\)$`),Xx={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};a0(hl,pl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Jx,formatHex:Jx,formatHex8:uW,formatHsl:dW,formatRgb:Qx,toString:Qx});function Jx(){return this.rgb().formatHex()}function uW(){return this.rgb().formatHex8()}function dW(){return i2(this).formatHsl()}function Qx(){return this.rgb().formatRgb()}function pl(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=rW.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?e2(t):n===3?new An(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ku(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ku(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=iW.exec(e))?new An(t[1],t[2],t[3],1):(t=oW.exec(e))?new An(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=aW.exec(e))?Ku(t[1],t[2],t[3],t[4]):(t=sW.exec(e))?Ku(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=lW.exec(e))?r2(t[1],t[2]/100,t[3]/100,1):(t=cW.exec(e))?r2(t[1],t[2]/100,t[3]/100,t[4]):Xx.hasOwnProperty(e)?e2(Xx[e]):e==="transparent"?new An(NaN,NaN,NaN,0):null}function e2(e){return new An(e>>16&255,e>>8&255,e&255,1)}function Ku(e,t,n,r){return r<=0&&(e=t=n=NaN),new An(e,t,n,r)}function fW(e){return e instanceof hl||(e=pl(e)),e?(e=e.rgb(),new An(e.r,e.g,e.b,e.opacity)):new An}function s0(e,t,n,r){return arguments.length===1?fW(e):new An(e,t,n,r??1)}function An(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}a0(An,s0,Zx(hl,{brighter(e){return e=e==null?Yu:Math.pow(Yu,e),new An(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ml:Math.pow(ml,e),new An(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new An(Uo(this.r),Uo(this.g),Uo(this.b),Zu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:t2,formatHex:t2,formatHex8:hW,formatRgb:n2,toString:n2}));function t2(){return`#${Ho(this.r)}${Ho(this.g)}${Ho(this.b)}`}function hW(){return`#${Ho(this.r)}${Ho(this.g)}${Ho(this.b)}${Ho((isNaN(this.opacity)?1:this.opacity)*255)}`}function n2(){const e=Zu(this.opacity);return`${e===1?"rgb(":"rgba("}${Uo(this.r)}, ${Uo(this.g)}, ${Uo(this.b)}${e===1?")":`, ${e})`}`}function Zu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Uo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ho(e){return e=Uo(e),(e<16?"0":"")+e.toString(16)}function r2(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new kr(e,t,n,r)}function i2(e){if(e instanceof kr)return new kr(e.h,e.s,e.l,e.opacity);if(e instanceof hl||(e=pl(e)),!e)return new kr;if(e instanceof kr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new kr(a,s,l,e.opacity)}function mW(e,t,n,r){return arguments.length===1?i2(e):new kr(e,t,n,r??1)}function kr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}a0(kr,mW,Zx(hl,{brighter(e){return e=e==null?Yu:Math.pow(Yu,e),new kr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ml:Math.pow(ml,e),new kr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new An(l0(e>=240?e-240:e+120,i,r),l0(e,i,r),l0(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new kr(o2(this.h),Xu(this.s),Xu(this.l),Zu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Zu(this.opacity);return`${e===1?"hsl(":"hsla("}${o2(this.h)}, ${Xu(this.s)*100}%, ${Xu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function o2(e){return e=(e||0)%360,e<0?e+360:e}function Xu(e){return Math.max(0,Math.min(1,e||0))}function l0(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const c0=e=>()=>e;function gW(e,t){return function(n){return e+n*t}}function pW(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function yW(e){return(e=+e)==1?a2:function(t,n){return n-t?pW(t,n,e):c0(isNaN(t)?n:t)}}function a2(e,t){var n=t-e;return n?gW(e,n):c0(isNaN(e)?t:e)}const s2=function e(t){var n=yW(t);function r(i,o){var a=n((i=s0(i)).r,(o=s0(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),c=a2(i.opacity,o.opacity);return function(u){return i.r=a(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function vW(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function bW(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function xW(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=Rr(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function _W(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Ju(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function SW(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Rr(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var u0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,d0=new RegExp(u0.source,"g");function wW(e){return function(){return e}}function CW(e){return function(t){return e(t)+""}}function EW(e,t){var n=u0.lastIndex=d0.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=u0.exec(e))&&(i=d0.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Ju(r,i)})),n=d0.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?CW(l[0].x):wW(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function Rr(e,t){var n=typeof t,r;return t==null||n==="boolean"?c0(t):(n==="number"?Ju:n==="string"?(r=pl(t))?(t=r,s2):EW:t instanceof pl?s2:t instanceof Date?_W:bW(t)?vW:Array.isArray(t)?xW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?SW:Ju)(e,t)}function f0(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function OW(e,t){t===void 0&&(t=e,e=Rr);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[s](a-s)}}const Qu=function(e){if(e!==null)switch(typeof e){case"undefined":return!1;case"number":return!isNaN(e)&&e!==Number.POSITIVE_INFINITY&&e!==Number.NEGATIVE_INFINITY;case"string":return!0;case"boolean":return!1;case"object":return e instanceof Date||Array.isArray(e)||Mt(e);case"function":return!0}return!1},l2=function(e,t,n){return n===void 0&&(n=0),function(r){return r<n?e:t}},c2=function(e,t){return function(n){return n>=1?t:function(){const r=typeof e=="function"?e.apply(this,arguments):e,i=typeof t=="function"?t.apply(this,arguments):t;return Rr(r,i)(n)}}},u2=function(e,t){const n=(c,u)=>c===u||!Qu(c)||!Qu(u)?l2(c,u):typeof c=="function"||typeof u=="function"?c2(c,u):typeof c=="object"&&Mt(c)||typeof u=="object"&&Mt(u)?u2(c,u):Rr(c,u),r=c=>Array.isArray(c)?ts(c,"key"):c,i={},o={};let a=e,s=t,l;(a===null||typeof a!="object")&&(a={}),(s===null||typeof s!="object")&&(s={});for(l in s)l in a?i[l]=n(r(a[l]),r(s[l])):o[l]=s[l];return function(c){for(l in i)o[l]=i[l](c);return o}},kW=function(e,t){const n=r=>typeof r=="string"?r.replace(/,/g,""):r;return Rr(n(e),n(t))},TW=function(e,t){return e===t||!Qu(e)||!Qu(t)?l2(e,t):typeof e=="function"||typeof t=="function"?c2(e,t):Mt(e)||Mt(t)?u2(e,t):typeof e=="string"||typeof t=="string"?kW(e,t):Rr(e,t)};var rs=0,yl=0,vl=0,d2=1e3,ed,bl,td=0,Go=0,nd=0,xl=typeof performance=="object"&&performance.now?performance:Date,f2=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function rd(){return Go||(f2(AW),Go=xl.now()+nd)}function AW(){Go=0}function h0(){this._call=this._time=this._next=null}h0.prototype=h2.prototype={constructor:h0,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?rd():+n)+(t==null?0:+t),!this._next&&bl!==this&&(bl?bl._next=this:ed=this,bl=this),this._call=e,this._time=n,m0()},stop:function(){this._call&&(this._call=null,this._time=1/0,m0())}};function h2(e,t,n){var r=new h0;return r.restart(e,t,n),r}function DW(){rd(),++rs;for(var e=ed,t;e;)(t=Go-e._time)>=0&&e._call.call(void 0,t),e=e._next;--rs}function m2(){Go=(td=xl.now())+nd,rs=yl=0;try{DW()}finally{rs=0,PW(),Go=0}}function jW(){var e=xl.now(),t=e-td;t>d2&&(nd-=t,td=e)}function PW(){for(var e,t=ed,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:ed=n);bl=e,m0(r)}function m0(e){if(!rs){yl&&(yl=clearTimeout(yl));var t=e-Go;t>24?(e<1/0&&(yl=setTimeout(m2,e-xl.now()-nd)),vl&&(vl=clearInterval(vl))):(vl||(td=xl.now(),vl=setInterval(jW,d2)),rs=1,f2(m2))}}class g2{constructor(){ce(this,"loop",()=>{this.subscribers.forEach(t=>{t.callback(rd()-t.startTime,t.duration)})});this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}bypassAnimation(){this.shouldAnimate=!1}resumeAnimation(){this.shouldAnimate=!0}start(){this.timer||(this.timer=h2(this.loop))}stop(){this.timer&&(this.timer.stop(),this.timer=null)}subscribe(t,n){const r=this.subscribers.push({startTime:rd(),callback:t,duration:this.shouldAnimate?n:0});return this.activeSubscriptions++,this.start(),r}unsubscribe(t){t!==null&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),this.activeSubscriptions===0&&this.stop()}}const id=y.createContext({transitionTimer:new g2,animationTimer:new g2});id.displayName="TimerContext";const MW=e=>`ease${e.charAt(0).toUpperCase()+e.slice(1)}`,$W=1e3,IW=e=>{let{duration:t=$W,easing:n="quadInOut",delay:r=0,data:i,children:o,onEnd:a}=e;const[s,l]=y.useState({data:Array.isArray(i)?i[0]:i,animationInfo:{progress:0,animating:!1}}),c=y.useContext(id).animationTimer,u=y.useRef(Array.isArray(i)?i.slice(1):[]),d=y.useRef(null),f=y.useRef(void 0),h=c4[MW(n)];y.useEffect(()=>(u.current.length&&g(),()=>{f.current?c.unsubscribe(f.current):c.stop()}),[]),y.useEffect(()=>{d.current&&s.animationInfo&&s.animationInfo.progress<1?l({data:d.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}):(c.unsubscribe(f.current),u.current=Array.isArray(i)?i:[i],g())},[i]);const g=()=>{if(u.current.length){const v=u.current[0];d.current=TW(s.data,v),r?setTimeout(()=>{f.current=c.subscribe(p,t)},r):f.current=c.subscribe(p,t)}else a&&a()},p=v=>{if(!d.current)return;const b=t?v/t:1;if(b>=1){l({data:d.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),f.current&&c.unsubscribe(f.current),u.current.shift(),g();return}l({data:d.current(h(b)),animationInfo:{progress:b,animating:b<1}})};return o(s.data,s.animationInfo)};var LW=px,FW=0;function NW(e){var t=++FW;return LW(e)+t}var BW=NW;const _l=Fe(BW);function g0(){return g0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g0.apply(this,arguments)}const WW=y.forwardRef((e,t)=>y.createElement("svg",g0({ref:t},e)));var p2=G1;function zW(e,t,n){t=="__proto__"&&p2?p2(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var od=zW,RW=od,VW=Vo,UW=Object.prototype,HW=UW.hasOwnProperty;function GW(e,t,n){var r=e[t];(!(HW.call(e,t)&&VW(r,n))||n===void 0&&!(t in e))&&RW(e,t,n)}var p0=GW,qW=p0,YW=Vu,KW=Lu,y2=Tn,ZW=dl;function XW(e,t,n,r){if(!y2(e))return e;t=YW(t,e);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var l=ZW(t[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=a){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=y2(u)?u:KW(t[i+1])?[]:{})}qW(s,l,c),s=s[l]}return e}var JW=XW,QW=Uu,ez=JW,tz=Vu;function nz(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=QW(e,a);n(s,a)&&ez(o,tz(a,e),s)}return o}var v2=nz,rz=v2,iz=Wx;function oz(e,t){return rz(e,t,function(n,r){return iz(e,r)})}var az=oz,b2=Ra,sz=al,lz=yn,x2=b2?b2.isConcatSpreadable:void 0;function cz(e){return lz(e)||sz(e)||!!(x2&&e&&e[x2])}var uz=cz,dz=e0,fz=uz;function _2(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=fz),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?_2(s,t-1,n,r,i):dz(i,s):r||(i[i.length]=s)}return i}var hz=_2,mz=hz;function gz(e){var t=e==null?0:e.length;return t?mz(e,1):[]}var pz=gz,yz=pz,vz=H1,bz=Y1;function xz(e){return bz(vz(e,void 0,yz),e+"")}var _z=xz,Sz=az,wz=_z,Cz=wz(function(e,t){return e==null?{}:Sz(e,t)}),Ez=Cz;const Sl=Fe(Ez);function Oz(e,t){const n=t!=="x",r=xt(e);return n?[e.height-r.bottom,r.top]:[r.left,e.width-r.right]}function kz(e,t){if(t==="x"){const n=dt(e.startAngle||0),r=dt(e.endAngle||360);return[n,r]}return[e.innerRadius||0,Vr(e)]}function S2(e){return Object.entries(e).reduce((t,n)=>(t[n[1]]=n[0],t),{})}function wl(e,t){t===void 0&&(t=[]);const n={};for(const r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function y0(e){const t=h=>h!==void 0,{_x:n,_x1:r,_x0:i,_voronoiX:o,_y:a,_y1:s,_y0:l,_voronoiY:c}=e,u=t(r)?r:n,d=t(s)?s:a,f={x:t(o)?o:u,x0:t(i)?i:n,y:t(c)?c:d,y0:t(l)?l:a};return Z({},f,e)}function is(e,t){const{scale:n,polar:r,horizontal:i}=e,o=y0(t),a=e.origin||{x:0,y:0},s=i?n.y(o.y):n.x(o.x),l=i?n.y(o.y0):n.x(o.x0),c=i?n.x(o.x):n.y(o.y),u=i?n.x(o.x0):n.y(o.y0);return{x:r?c*Math.cos(s)+a.x:s,x0:r?u*Math.cos(l)+a.x:l,y:r?-c*Math.sin(s)+a.y:c,y0:r?-u*Math.sin(l)+a.x:u}}function xt(e,t){t===void 0&&(t="padding");const n=e[t],r=typeof n=="number"?n:0,i=typeof n=="object"?n:{};return{top:i.top||r,bottom:i.bottom||r,left:i.left||r,right:i.right||r}}function ad(e){return(e&&e.type&&e.type.role)==="tooltip"}function sd(e,t){const{theme:n={},labelComponent:r}=e,i=n[t]&&n[t].style||{};if(!ad(r))return i;const o=n.tooltip&&n.tooltip.style||{},a=Z({},o,i.labels);return Z({},{labels:a},i)}function Cl(e,t){const n="100%",r="100%";if(!e)return Z({parent:{height:r,width:n}},t);const{data:i,labels:o,parent:a}=e,s=t&&t.parent||{},l=t&&t.labels||{},c=t&&t.data||{};return{parent:Z({},a,s,{width:n,height:r}),labels:Z({},o,l),data:Z({},i,c)}}function te(e,t){return Se(e)?e(t):e}function st(e,t){return t.disableInlineStyles?{}:!e||!Object.keys(e).some(n=>Se(e[n]))?e:Object.keys(e).reduce((n,r)=>(n[r]=te(e[r],t),n),{})}function dt(e){return typeof e=="number"?e*(Math.PI/180):e}function ui(e){return typeof e=="number"?e/(Math.PI/180):e}function Vr(e){const{left:t,right:n,top:r,bottom:i}=xt(e),{width:o,height:a}=e;return Math.min(o-t-n,a-r-i)/2}function El(e){const{width:t,height:n}=e,{top:r,bottom:i,left:o,right:a}=xt(e),s=Math.min(t-o-a,n-r-i)/2,l=t/2+o-a,c=n/2+r-i;return{x:l+s>t?s+o-a:l,y:c+s>n?s+r-i:c}}function Nt(e,t){return e.range&&e.range[t]?e.range[t]:e.range&&Array.isArray(e.range)?e.range:e.polar?kz(e,t):Oz(e,t)}function di(e){return e==null}function Se(e){return typeof e=="function"}function ld(e){return Se(e)?e:e==null?t=>t:Rx(e)}function Bt(e,t,n){const r=e.theme&&e.theme[n]?e.theme[n]:{},i=wl(r,["style"]),o=Az(e);return Z(o===void 0?{}:{horizontal:o},e,i,t)}function Tz(e,t){return t?e==="x"?"y":"x":e}function os(e,t){if(e)return Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{})}function v0(e,t,n){const r=t?e:0;let i=t||e;i||(i=0);const o=i-r,a=Math.abs(o),s=o/a||1,l=n||1,c=Math.max(Math.ceil(a/l),0);return Array.from(Array(c),(u,d)=>r+d*s*l)}function ro(e,t,n,r,i){n===void 0&&(n={}),r===void 0&&(r=[]),i===void 0&&(i=(c,u)=>c.concat(u));const o=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],a=(c,u,d)=>c.reduce((f,h,g)=>{let p=f;const v=h.type&&h.type.role,b=h.props.name||`${v}-${u[g]}`;if(h.props&&h.props.children){const x=Object.assign({},h.props,Sl(n,o)),S=h.type&&h.type.role==="stack"&&Se(h.type.getChildren)?h.type.getChildren(x):y.Children.toArray(h.props.children).map(E=>{const O=Object.assign({},E.props,Sl(x,o));return y.cloneElement(E,O)}),w=S.map((E,O)=>`${b}-${O}`),_=a(S,w,h);p=i(p,_)}else{const x=t(h,b,d);x&&(p=i(p,x))}return p},r),s=e.filter(y.isValidElement),l=s.map((c,u)=>u);return a(s,l)}function Az(e){if(e.horizontal!==void 0||!e.children)return e.horizontal;const t=n=>n.reduce((r,i)=>{const o=i.props||{};return r||o.horizontal||!o.children?r||o.horizontal:t(y.Children.toArray(o.children))},!1);return t(y.Children.toArray(e.children))}const w2={startsWith:["data-","aria-"],exactMatch:[]},Dz=e=>{let t=!1;return w2.startsWith.forEach(n=>{new RegExp(`\\b(${n})(\\w|-)+`,"g").test(e)&&(t=!0)}),t},jz=e=>w2.exactMatch.includes(e),Pz=e=>!!(Dz(e)||jz(e));function cd(e,t){if(e==null)throw new Error(t)}const Tr=e=>{const t={...e};return Object.fromEntries(Object.entries(t).filter(n=>{let[r]=n;return Pz(r)}).map(n=>{let[r,i]=n;return[r,te(i,e)]}))},ud=(e,t)=>k.cloneElement(e,Tr(t));var Mz=typeof Element<"u",$z=typeof Map=="function",Iz=typeof Set=="function",Lz=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function dd(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!dd(e[r],t[r]))return!1;return!0}var o;if($z&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!dd(r.value[1],t.get(r.value[0])))return!1;return!0}if(Iz&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Lz&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(Mz&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!dd(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var Fz=function(t,n){try{return dd(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const Vn=Fe(Fz);function C2(e){return Array.isArray(e)&&e.length>0}function fd(e){return Array.isArray(e)&&e.some(t=>typeof t=="string")}function er(e){return Array.isArray(e)&&e.some(t=>t instanceof Date)}function Nz(e){return C2(e)&&e.every(t=>typeof t=="string")}function hd(e,t){return e&&t?e.filter(n=>!t.includes(n)):[]}function E2(e){return C2(e)&&e.every(Array.isArray)}function Bz(e){return e.filter(t=>t!==void 0)}function tr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=e.concat(n);return er(i)?new Date(Math.max(...i)):Math.max(...i)}function Dn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=e.concat(n);return er(i)?new Date(Math.min(...i)):Math.min(...i)}function O2(e,t){return(e.key||t).toString()}function k2(e){return e.reduce((t,n,r)=>{const i=O2(n,r);return t[i]=n,t},{})}function T2(e,t){let n=!1;const r=Object.keys(e).reduce((i,o)=>(o in t||(n=!0,i[o]=!0),i),{});return n&&r}function Wz(e,t){const n=e&&k2(e),r=t&&k2(t);return{entering:n&&T2(r,n),exiting:r&&T2(n,r)}}function b0(e){return e.type&&e.type.getData?e.type.getData(e.props):e.props&&e.props.data||!1}function A2(e,t){let n=!1,r=!1;const i=(s,l)=>{if(!l||s.type!==l.type)return{};const{entering:c,exiting:u}=Wz(b0(s),b0(l))||{};return n=n||!!u,r=r||!!c,{entering:c||!1,exiting:u||!1}},o=(s,l)=>s.map((c,u)=>c&&c.props&&c.props.children&&l[u]?o(y.Children.toArray(s[u].props.children),y.Children.toArray(l[u].props.children)):i(c,l[u])),a=o(y.Children.toArray(e),y.Children.toArray(t));return{nodesWillExit:n,nodesWillEnter:r,childrenTransitions:a,nodesShouldEnter:!1}}function zz(e,t){const n=e.onEnter&&e.onEnter.after?e.onEnter.after:qa;return{data:t.map((r,i)=>Object.assign({},r,n(r,i,t)))}}function Rz(e,t,n,r){const i=Object.assign({},e,{onEnd:r});if(i&&i.onLoad&&!i.onLoad.duration)return{animate:i,data:n};const o=i.onLoad&&i.onLoad.before?i.onLoad.before:qa,a=n.map((s,l)=>Object.assign({},s,o(s,l,n)));return{animate:i,data:a,clipWidth:0}}function Vz(e,t,n){const r=Object.assign({},e,{onEnd:n});let i=t;if(r&&r.onLoad&&!r.onLoad.duration)return{animate:e,data:t};const o=e.onLoad&&e.onLoad.after?e.onLoad.after:qa;return i=t.map((a,s)=>Object.assign({},a,o(a,s,t))),{animate:r,data:i}}function Uz(e,t,n,r,i){const o=e&&e.onExit,a=Object.assign({},e,o);let s=n;if(r){e.onEnd=i;const l=e.onExit&&e.onExit.before?e.onExit.before:qa;s=n.map((c,u)=>{const d=(c.key||u).toString();return r[d]?Object.assign({},c,l(c,u,n)):c})}return{animate:a,data:s}}function Hz(e,t,n,r,i){let o=e,a=n;if(r){o=Object.assign({},e,{onEnd:i});const s=e.onEnter&&e.onEnter.before?e.onEnter.before:qa;a=n.map((l,c)=>{const u=(l.key||c).toString();return r[u]?Object.assign({},l,s(l,c,n)):l})}return{animate:o,data:a}}function Gz(e,t,n,r){const i=e&&e.onEnter,o=Object.assign({},e,i);let a=t;if(n){o.onEnd=r;const s=o.onEnter&&o.onEnter.after?o.onEnter.after:qa;a=t.map((l,c)=>{const u=O2(l,c);return n[u]?Object.assign({},l,s(l,c,t)):l})}return{animate:o,data:a}}function D2(e,t,n){const r=t&&t.nodesWillExit,i=t&&t.nodesWillEnter,o=t&&t.nodesShouldEnter,a=t&&t.nodesShouldLoad,s=t&&t.nodesDoneLoad,l=t&&t.childrenTransitions||[],c={enter:e.animate&&e.animate.onEnter&&e.animate.onEnter.duration,exit:e.animate&&e.animate.onExit&&e.animate.onExit.duration,load:e.animate&&e.animate.onLoad&&e.animate.onLoad.duration,move:e.animate&&e.animate.duration},u=(g,p,v)=>a?Vz(v,p,()=>{n({nodesShouldLoad:!1,nodesDoneLoad:!0})}):Rz(v,g,p,()=>{n({nodesDoneLoad:!0})}),d=(g,p,v,b)=>Uz(b,p,v,g,()=>{n({nodesWillExit:!1})}),f=(g,p,v,b)=>o?Gz(b,v,g,()=>{n({nodesWillEnter:!1})}):Hz(b,p,v,g,()=>{n({nodesShouldEnter:!0})}),h=function(g,p){const v=g.props.animate;if(!g.type)return{};const b=g.props&&g.props.polar&&g.type.defaultPolarTransitions||g.type.defaultTransitions;if(b){const x=v[p]&&v[p].duration;return x!==void 0?x:b[p]&&b[p].duration}return{}};return function(p,v){const b=b0(p)||[],x=Z({},e.animate,p.props.animate),S=p.props.polar&&p.type.defaultPolarTransitions||p.type.defaultTransitions;x.onExit=Z({},x.onExit,S&&S.onExit),x.onEnter=Z({},x.onEnter,S&&S.onEnter),x.onLoad=Z({},x.onLoad,S&&S.onLoad);const w=l[v]||l[0];if(s){if(r){const _=w&&w.exiting,E=c.exit!==void 0?c.exit:h(p,"onExit");return d(_,p,b,Object.assign({},x,_?{duration:E}:{delay:E}))}else if(i){const _=w&&w.entering,E=c.enter!==void 0?c.enter:h(p,"onEnter"),O=c.move!==void 0?c.move:p.props.animate&&p.props.animate.duration;return f(_,p,b,Object.assign({},x,{duration:o&&_?E:O}))}else if(!t&&x&&x.onExit)return zz(x,b)}else{const E={duration:c.load!==void 0?c.load:h(p,"onLoad")};return u(p,b,Object.assign({},x,E))}return{animate:x,data:b}}}function x0(){return x0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x0.apply(this,arguments)}class _0 extends y.Component{constructor(t,n){super(t,n),this.state={nodesShouldLoad:!1,nodesDoneLoad:!1};const r=this.props.children,i=r.props.polar;this.continuous=!i&&r.type&&r.type.continuous===!0,this.timer=this.context.transitionTimer}componentDidMount(){this.setState({nodesShouldLoad:!0})}shouldComponentUpdate(t){return Vn(this.props,t)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,t),()=>this.timer.resumeAnimation())),!0}componentWillUnmount(){this.timer.stop()}getTransitionState(t,n){const{animate:r}=t;if(r){if(r.parentState)return{oldProps:r.parentState.nodesWillExit?t:null,nextProps:n}}else return{};const i=y.Children.toArray(t.children),o=y.Children.toArray(n.children),{nodesWillExit:a,nodesWillEnter:s,childrenTransitions:l,nodesShouldEnter:c}=A2(i,o);return{nodesWillExit:a,nodesWillEnter:s,childrenTransitions:l,nodesShouldEnter:c,oldProps:a?t:null,nextProps:n}}getDomainFromChildren(t,n){const r=l=>l.reduce((c,u)=>{if(u.type&&Se(u.type.getDomain)){const d=u.props&&u.type.getDomain(u.props,n);return d?c.concat(d):c}else if(u.props&&u.props.children)return c.concat(r(y.Children.toArray(u.props.children)));return c},[]),i=y.Children.toArray(t.children)[0],o=i.props||{},a=Array.isArray(o.domain)?o.domain:o.domain&&o.domain[n];if(!o.children&&a)return a;const s=r([i]);return s.length===0?[0,1]:[Dn(s),tr(s)]}pickProps(){return this.state?this.state.nodesWillExit?this.state.oldProps||this.props:this.props:this.props}pickDomainProps(t){var r;const n=(r=t.animate)==null?void 0:r.parentState;return n&&n.nodesWillExit?(this.continuous||n.continuous)&&(n.nextProps||this.state.nextProps)||t:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||t}getClipWidth(t,n){const r=()=>{const o=Nt(n.props,"x");return o?Math.abs(o[1]-o[0]):t.width},i=this.transitionProps?this.transitionProps.clipWidth:void 0;return i!==void 0?i:r()}render(){var d;const t=this.pickProps(),n=(d=this.props.animate)!=null&&d.getTransitions?this.props.animate.getTransitions:D2(t,this.state,f=>this.setState(f)),r=y.Children.toArray(t.children)[0],i=n(r);this.transitionProps=i;const o={x:this.getDomainFromChildren(this.pickDomainProps(t),"x"),y:this.getDomainFromChildren(t,"y")},a=this.getClipWidth(t,r),s=Z({domain:o,clipWidth:a},i,r.props),c=(t.animationWhitelist||[]).concat(["clipWidth"]),u=c.length?Sl(s,c):s;return y.createElement(IW,x0({},s.animate,{data:u}),f=>{if(r.props.groupComponent){const h=this.continuous?y.cloneElement(r.props.groupComponent,{clipWidth:f.clipWidth||0}):r.props.groupComponent;return y.cloneElement(r,Z({animate:null,animating:!0,groupComponent:h},f,s))}return y.cloneElement(r,Z({animate:null,animating:!0},f,s))})}}ce(_0,"displayName","VictoryTransition"),ce(_0,"contextType",id);function qz(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var Yz=qz;function Kz(e){return e!==e}var Zz=Kz;function Xz(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var Jz=Xz,Qz=Yz,eR=Zz,tR=Jz;function nR(e,t,n){return t===t?tR(e,t,n):Qz(e,eR,n)}var rR=nR,iR=rR;function oR(e,t){var n=e==null?0:e.length;return!!n&&iR(e,t,0)>-1}var aR=oR;function sR(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var lR=sR;function cR(){}var uR=cR,S0=M1,dR=uR,fR=Jm,hR=1/0,mR=S0&&1/fR(new S0([,-0]))[1]==hR?function(e){return new S0(e)}:dR,gR=mR,pR=yx,yR=aR,vR=lR,bR=vx,xR=gR,_R=Jm,SR=200;function wR(e,t,n){var r=-1,i=yR,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=vR;else if(o>=SR){var c=t?null:xR(e);if(c)return _R(c);a=!1,i=bR,l=new pR}else l=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}var j2=wR,CR=j2;function ER(e){return e&&e.length?CR(e):[]}var OR=ER;const qo=Fe(OR);var kR="Expected a function";function TR(e){if(typeof e!="function")throw new TypeError(kR);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var AR=TR,DR=e0,jR=o0,PR=t0,MR=Ox,$R=Object.getOwnPropertySymbols,IR=$R?function(e){for(var t=[];e;)DR(t,PR(e)),e=jR(e);return t}:MR,P2=IR,LR=Ex,FR=P2,NR=Ya;function BR(e){return LR(e,NR,FR)}var M2=BR,WR=Nu,zR=fl,RR=v2,VR=M2;function UR(e,t){if(e==null)return{};var n=WR(VR(e),function(r){return[r]});return t=zR(t),RR(e,n,function(r,i){return t(r,i[0])})}var $2=UR;const md=Fe($2);var HR=fl,GR=AR,qR=$2;function YR(e,t){return qR(e,GR(HR(t)))}var KR=YR;const I2=Fe(KR),w0=/^onGlobal(.*)$/;function L2(e,t,n,r){const i=u=>{const f=(()=>{const h=u.reduce((g,p)=>p.target!==void 0?(Array.isArray(p.target)?p.target.includes(t):`${p.target}`==`${t}`)?g.concat(p):g:g.concat(p),[]);return n!==void 0&&t!=="parent"?h.filter(g=>{const p=g.eventKey,v=b=>b?`${b}`==`${n}`:!0;return Array.isArray(p)?p.some(b=>v(b)):v(p)}):h})();return Array.isArray(f)&&f.reduce((h,g)=>g?Object.assign(h,g.eventHandlers):h,{})},a=Array.isArray(this.componentEvents)?Array.isArray(e.events)?this.componentEvents.concat(...e.events):this.componentEvents:e.events,s=a&&Se(r)?r(i(a),t):void 0;if(!e.sharedEvents)return s;const l=e.sharedEvents.getEvents,c=e.sharedEvents.events&&l(i(e.sharedEvents.events),t);return Object.assign({},c,s)}function F2(e,t,n,r){if(vt(e))return{};const i=r||this.baseProps,o=(u,d)=>{const{childName:f,target:h,key:g}=u,p=d==="props"?i:this.state||{},v=f==null||!p[f]?p:p[f];return g==="parent"?v.parent:v[g]&&v[g][h]},a=(u,d)=>{const f=t==="parent"?u.childName:u.childName||n,h=u.target||t,g=x=>h==="parent"?"parent":u.eventKey==="all"?i[x]?Object.keys(i[x]).filter(S=>S!=="parent"):Object.keys(i).filter(S=>S!=="parent"):u.eventKey===void 0&&d==="parent"?i[x]?Object.keys(i[x]):Object.keys(i):u.eventKey!==void 0?u.eventKey:d,p=(x,S)=>{const w=this.state||{};if(!Se(u.mutation))return w;const _=o({childName:S,key:x,target:h},"props"),E=o({childName:S,key:x,target:h},"state"),O=u.mutation(Object.assign({},_,E),i),T=w[S]||{},D=M=>(M[x]&&M[x][h]&&delete M[x][h],M[x]&&!Object.keys(M[x]).length&&delete M[x],M),j=M=>h==="parent"?Object.assign(M,{[x]:Object.assign(M[x]||{},O)}):Object.assign(M,{[x]:Object.assign(M[x]||{},{[h]:O})}),A=M=>O?j(M):D(M);return S!=null?Object.assign(w,{[S]:A(T)}):A(w)},v=x=>{const S=g(x);return Array.isArray(S)?S.reduce((w,_)=>Object.assign(w,p(_,x)),{}):p(S,x)},b=f==="all"?Object.keys(i).filter(x=>x!=="parent"):f;return Array.isArray(b)?b.reduce((x,S)=>Object.assign(x,v(S)),{}):v(b)},s=(u,d)=>Array.isArray(u)?u.reduce((f,h)=>Object.assign({},f,a(h,d)),{}):a(u,d),l=u=>{const d=g=>Se(g.callback)&&g.callback,h=(Array.isArray(u)?u.map(g=>d(g)):[d(u)]).filter(g=>g!==!1);return h.length?()=>h.forEach(g=>g()):void 0},c=(u,d,f,h)=>{const g=e[h](u,d,f,this);if(!vt(g)){const p=l(g);this.setState(s(g,f),p)}};return Object.keys(e).reduce((u,d)=>(u[d]=c,u),{})}function N2(e,t,n){return e?Object.keys(e).reduce((r,i)=>{const o=a=>e[i](a,n,t,i);return r[i]=o,r},{}):{}}function B2(e,t,n){const r=this.state||{};return n?r[n]&&r[n][e]&&r[n][e][t]:e==="parent"?r[e]&&r[e][t]||r[e]:r[e]&&r[e][t]}function ZR(e,t,n,r){return t===void 0&&(t={}),n===void 0&&(n={}),r.reduce((i,o)=>{const a=n[o],s=W2(e,t[o],n[o],o);return i[o]=s||a,md(i,l=>!vt(l))},{})}function W2(e,t,n,r){return t===void 0&&(t={}),n===void 0&&(n={}),Object.keys(t).reduce((o,a)=>{const s=n[a]||{},l=t[a]||{};if(a==="parent"){const u=z2(e,l,s,{eventKey:a,target:"parent"});o[a]=u!==void 0?Object.assign({},s,u):s}else{const c=qo(Object.keys(l).concat(Object.keys(s)));o[a]=c.reduce((u,d)=>{const f={eventKey:a,target:d,childName:r},h=z2(e,l[d],s[d],f);return u[d]=h!==void 0?Object.assign({},s[d],h):s[d],md(u,g=>!vt(g))},{})}return md(o,c=>!vt(c))},{})}function z2(e,t,n,r){const i=(l,c)=>typeof l[c]=="string"?l[c]==="all"||l[c]===r[c]:Array.isArray(l[c])?l[c].map(d=>`${d}`).includes(r[c]):!1;let o=Array.isArray(e)?e:[e];r.childName&&(o=e.filter(l=>i(l,"childName")));const a=o.filter(l=>i(l,"target"));if(vt(a))return;const s=a.filter(l=>i(l,"eventKey"));if(!vt(s))return s.reduce((l,c)=>{const d=(c&&Se(c.mutation)?c.mutation:()=>{})(Object.assign({},t,n));return Object.assign({},l,d)},{})}function C0(e,t){const n=Array.isArray(t)&&t.reduce((r,i)=>{const o=e[i],a=o&&o.type&&o.type.defaultEvents,s=Se(a)?a(o.props):a;return Array.isArray(s)?r.concat(...s):r},[]);return n&&n.length?n:void 0}function gd(e){const t=e.match(w0);return t&&t[1]&&t[1].toLowerCase()}const R2=e=>md(e,(t,n)=>w0.test(n)),V2=e=>I2(e,(t,n)=>w0.test(n)),U2=e=>Object.assign(e,{nativeEvent:e}),XR=e=>!di(e._x)&&!di(e._y),JR=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];function Yo(e,t){t===void 0&&(t={});class n extends e{constructor(o){super(o);ce(this,"state",{});ce(this,"getEventState",B2.bind(this));ce(this,"getScopedEvents",F2.bind(this));ce(this,"getEvents",(o,a,s)=>L2.call(this,o,a,s,this.getScopedEvents));ce(this,"externalMutations",this.getExternalMutations(this.props));ce(this,"calculatedState",this.getStateChanges(this.props));ce(this,"globalEvents",{});ce(this,"prevGlobalEventKeys",[]);ce(this,"boundGlobalEvents",{});this.cacheValues(this.getCalculatedValues(o))}shouldComponentUpdate(o){const a=this.getExternalMutations(o),s=this.props.animating||this.props.animate,l=!Vn(a,this.externalMutations);if(s||l)return this.cacheValues(this.getCalculatedValues(o)),this.externalMutations=a,this.applyExternalMutations(o,a),!0;const c=this.getStateChanges(o);return Vn(this.calculatedState,c)?Vn(this.props,o)?!1:(this.cacheValues(this.getCalculatedValues(o)),!0):(this.cacheValues(this.getCalculatedValues(o)),!0)}componentDidMount(){const o=Object.keys(this.globalEvents);o.forEach(a=>this.addGlobalListener(a)),this.prevGlobalEventKeys=o}componentDidUpdate(o){const a=this.getStateChanges(o);this.calculatedState=a;const s=Object.keys(this.globalEvents);hd(this.prevGlobalEventKeys,s).forEach(u=>this.removeGlobalListener(u)),hd(s,this.prevGlobalEventKeys).forEach(u=>this.addGlobalListener(u)),this.prevGlobalEventKeys=s}componentWillUnmount(){this.prevGlobalEventKeys.forEach(o=>this.removeGlobalListener(o))}addGlobalListener(o){const a=s=>{const l=this.globalEvents[o];return l&&l(U2(s))};this.boundGlobalEvents[o]=a,window.addEventListener(gd(o),a)}removeGlobalListener(o){window.removeEventListener(gd(o),this.boundGlobalEvents[o])}getStateChanges(o){if(!this.hasEvents)return{};const a=(c,u)=>{const d=Z({},this.getEventState(c,u),this.getSharedEventState(c,u));return vt(d)?void 0:d};return(t.components||JR).map(c=>{if(!(!o.standalone&&c.name==="parent"))return c.index!==void 0?a(c.index,c.name):this.dataKeys.map(u=>a(u,c.name)).filter(Boolean)}).filter(Boolean)}applyExternalMutations(o,a){if(!vt(a)){const s=o.externalEventMutations.reduce((c,u)=>Se(u.callback)?c.concat(u.callback):c,[]),l=s.length?()=>{s.forEach(c=>c())}:void 0;this.setState(a,l)}}getCalculatedValues(o){const{sharedEvents:a}=o,s=e.expectedComponents,l=C0(o,s),c=a&&Se(a.getEventState)?a.getEventState:()=>{},u=this.getBaseProps(o,c),d=Object.keys(u).filter(g=>g!=="parent"),f=o.events||o.sharedEvents||l,h=this.getAllEvents(o);return{componentEvents:l,getSharedEventState:c,baseProps:u,dataKeys:d,hasEvents:f,events:h}}getExternalMutations(o){const{sharedEvents:a,externalEventMutations:s}=o;return vt(s)||a?void 0:W2(s,this.baseProps,this.state)}cacheValues(o){Object.keys(o).forEach(a=>{this[a]=o[a]})}getBaseProps(o,a){const l=(a||this.getSharedEventState.bind(this))("parent","parent"),c=this.getEventState("parent","parent"),u=Z({},c,l),d=u.parentControlledProps,f=d?Sl(u,d):{},h=Z({},f,o);return typeof e.getBaseProps=="function"?e.getBaseProps(h):{}}getAllEvents(o){return Array.isArray(this.componentEvents)?Array.isArray(o.events)?this.componentEvents.concat(...o.events):this.componentEvents:o.events}getComponentProps(o,a,s){const l=this.props.name||e.role,c=this.dataKeys&&this.dataKeys[s]||s,u=`${l}-${a}-${c}`,d=this.baseProps[c]&&this.baseProps[c][a]||this.baseProps[c];if(!d&&!this.hasEvents)return;const f=o&&typeof o=="object"&&"props"in o?o.props:void 0;if(this.hasEvents){const h=this.getEvents(this.props,a,c),g=Z({index:s,key:u},this.getEventState(c,a),this.getSharedEventState(c,a),f,d,{id:u}),p=Z({},N2(h,c,g),g.events);return Object.assign({},g,{events:p})}return Z({index:s,key:u},f,d,{id:u})}renderContainer(o,a){const l=o.type&&o.type.role==="container"?this.getComponentProps(o,"parent","parent"):{};return l.events&&(this.globalEvents=R2(l.events),l.events=V2(l.events)),y.cloneElement(o,l,a)}animateComponent(o,a){var c;const s=typeof o.animate=="object"&&((c=o.animate)==null?void 0:c.animationWhitelist)||a,l=this.constructor;return y.createElement(_0,{animate:o.animate,animationWhitelist:s},y.createElement(l,o))}renderContinuousData(o){const{dataComponent:a,labelComponent:s,groupComponent:l}=o,u=this.dataKeys.filter(h=>h!=="all").reduce((h,g)=>{let p=h;const v=this.getComponentProps(s,"labels",g);return v&&v.text!==void 0&&v.text!==null&&(p=p.concat(y.cloneElement(s,v))),p},[]),d=this.getComponentProps(a,"data","all"),f=[y.cloneElement(a,d),...u];return this.renderContainer(l,f)}renderData(o,a){a===void 0&&(a=XR);const{dataComponent:s,labelComponent:l,groupComponent:c}=o,u=this.dataKeys.reduce((h,g,p)=>{const v=this.getComponentProps(s,"data",p);return a(v.datum)&&h.push(y.cloneElement(s,v)),h},[]),d=this.dataKeys.map((h,g)=>{const p=this.getComponentProps(l,"labels",g);if(p.text!==void 0&&p.text!==null)return y.cloneElement(l,p)}).filter(Boolean),f=[...u,...d];return this.renderContainer(c,f)}}return n}function QR(e){return t=>{e.forEach(n=>{Se(n)?n(t):n!=null&&(n.current=t)})}}var eV=to,tV=Or,nV="[object Date]";function rV(e){return tV(e)&&eV(e)==nV}var iV=rV,oV=iV,aV=Ha,H2=ll,G2=H2&&H2.isDate,sV=G2?aV(G2):oV,lV=sV;const q2=Fe(lV);var cV=Vo;function uV(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!cV(s,l)){var l=s;o[i++]=a===0?0:a}}return o}var dV=uV,fV=dV;function hV(e){return e&&e.length?fV(e):[]}var mV=hV;const gV=Fe(mV);function pV(e){return e===void 0}var yV=pV;const vV=Fe(yV);var bV=r0;function xV(e,t){return bV(e,t)}var _V=xV;const SV=Fe(_V);function io(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function wV(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function E0(e){let t,n,r;e.length!==2?(t=io,n=(s,l)=>io(e(s),l),r=(s,l)=>e(s)-l):(t=e===io||e===wV?e:CV,n=e,r=e);function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function o(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){const d=i(s,l,c,u-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:a,right:o}}function CV(){return 0}function Y2(e){return e===null?NaN:+e}function*EV(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Ol=E0(io).right;E0(Y2).center;class K2 extends Map{constructor(t,n=TV){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(Z2(this,t))}has(t){return super.has(Z2(this,t))}set(t,n){return super.set(OV(this,t),n)}delete(t){return super.delete(kV(this,t))}}function Z2({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function OV({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function kV({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function TV(e){return e!==null&&typeof e=="object"?e.valueOf():e}function AV(e=io){if(e===io)return X2;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function X2(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const DV=Math.sqrt(50),jV=Math.sqrt(10),PV=Math.sqrt(2);function pd(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=DV?10:o>=jV?5:o>=PV?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?pd(e,t,n*2):[s,l,c]}function O0(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,a]=r?pd(t,e,n):pd(e,t,n);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let c=0;c<s;++c)l[c]=(o-c)/-a;else for(let c=0;c<s;++c)l[c]=(o-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(i+c)/-a;else for(let c=0;c<s;++c)l[c]=(i+c)*a;return l}function k0(e,t,n){return t=+t,e=+e,n=+n,pd(e,t,n)[2]}function T0(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?k0(t,e,n):k0(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function J2(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function Q2(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function e_(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?X2:AV(i);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,u=Math.log(l),d=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),h=Math.max(n,Math.floor(t-c*d/l+f)),g=Math.min(r,Math.floor(t+(l-c)*d/l+f));e_(e,t,h,g,i)}const o=e[t];let a=n,s=r;for(kl(e,n,t),i(e[r],o)>0&&kl(e,n,r);a<s;){for(kl(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[n],o)===0?kl(e,n,s):(++s,kl(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function kl(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function MV(e,t,n){if(e=Float64Array.from(EV(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Q2(e);if(t>=1)return J2(e);var r,i=(r-1)*t,o=Math.floor(i),a=J2(e_(e,o).subarray(0,o+1)),s=Q2(e.subarray(o+1));return a+(s-a)*(i-o)}}function $V(e,t,n=Y2){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),s=+n(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function IV(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function nr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function fi(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const A0=Symbol("implicit");function D0(){var e=new K2,t=[],n=[],r=A0;function i(o){let a=e.get(o);if(a===void 0){if(r!==A0)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new K2;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return D0(t,n).unknown(r)},nr.apply(i,arguments),i}function j0(){var e=D0().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var f=t().length,h=i<r,g=h?i:r,p=h?r:i;o=(p-g)/Math.max(1,f-l+c*2),s&&(o=Math.floor(o)),g+=(p-g-o*(f-l))*u,a=o*(1-l),s&&(g=Math.round(g),a=Math.round(a));var v=IV(f).map(function(b){return g+o*b});return n(h?v.reverse():v)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,i]=f,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(l=Math.min(1,c=+f),d()):l},e.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),d()):l},e.paddingOuter=function(f){return arguments.length?(c=+f,d()):c},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return j0(t(),[r,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},nr.apply(d(),arguments)}function t_(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return t_(t())},e}function LV(){return t_(j0.apply(null,arguments).paddingInner(1))}function FV(e){return function(){return e}}function yd(e){return+e}var n_=[0,1];function vn(e){return e}function P0(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:FV(isNaN(t)?NaN:.5)}function NV(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function BV(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=P0(i,r),o=n(a,o)):(r=P0(r,i),o=n(o,a)),function(s){return o(r(s))}}function WV(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=P0(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var l=Ol(e,s,1,r)-1;return o[l](i[l](s))}}function Tl(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function vd(){var e=n_,t=n_,n=Rr,r,i,o,a=vn,s,l,c;function u(){var f=Math.min(e.length,t.length);return a!==vn&&(a=NV(e[0],e[f-1])),s=f>2?WV:BV,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?o:(l||(l=s(e.map(r),t,n)))(r(a(f)))}return d.invert=function(f){return a(i((c||(c=s(t,e.map(r),Ju)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,yd),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=f0,u()},d.clamp=function(f){return arguments.length?(a=f?!0:vn,u()):a!==vn},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(o=f,d):o},function(f,h){return r=f,i=h,u()}}function M0(){return vd()(vn,vn)}function zV(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function bd(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function as(e){return e=bd(Math.abs(e)),e?e[1]:NaN}function RV(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function VV(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var UV=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Al(e){if(!(t=UV.exec(e)))throw new Error("invalid format: "+e);var t;return new $0({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Al.prototype=$0.prototype;function $0(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}$0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function HV(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var r_;function GV(e,t){var n=bd(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(r_=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+bd(e,Math.max(0,t+o-1))[0]}function i_(e,t){var n=bd(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const o_={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:zV,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>i_(e*100,t),r:i_,s:GV,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function a_(e){return e}var s_=Array.prototype.map,l_=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function qV(e){var t=e.grouping===void 0||e.thousands===void 0?a_:RV(s_.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?a_:VV(s_.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=Al(d);var f=d.fill,h=d.align,g=d.sign,p=d.symbol,v=d.zero,b=d.width,x=d.comma,S=d.precision,w=d.trim,_=d.type;_==="n"?(x=!0,_="g"):o_[_]||(S===void 0&&(S=12),w=!0,_="g"),(v||f==="0"&&h==="=")&&(v=!0,f="0",h="=");var E=p==="$"?n:p==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",O=p==="$"?r:/[%p]/.test(_)?a:"",T=o_[_],D=/[defgprs%]/.test(_);S=S===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function j(A){var M=E,P=O,$,L,H;if(_==="c")P=T(A)+P,A="";else{A=+A;var q=A<0||1/A<0;if(A=isNaN(A)?l:T(Math.abs(A),S),w&&(A=HV(A)),q&&+A==0&&g!=="+"&&(q=!1),M=(q?g==="("?g:s:g==="-"||g==="("?"":g)+M,P=(_==="s"?l_[8+r_/3]:"")+P+(q&&g==="("?")":""),D){for($=-1,L=A.length;++$<L;)if(H=A.charCodeAt($),48>H||H>57){P=(H===46?i+A.slice($+1):A.slice($))+P,A=A.slice(0,$);break}}}x&&!v&&(A=t(A,1/0));var U=M.length+A.length+P.length,z=U<b?new Array(b-U+1).join(f):"";switch(x&&v&&(A=t(z+A,z.length?b-P.length:1/0),z=""),h){case"<":A=M+A+P+z;break;case"=":A=M+z+A+P;break;case"^":A=z.slice(0,U=z.length>>1)+M+A+P+z.slice(U);break;default:A=z+M+A+P;break}return o(A)}return j.toString=function(){return d+""},j}function u(d,f){var h=c((d=Al(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(as(f)/3)))*3,p=Math.pow(10,-g),v=l_[8+g/3];return function(b){return h(p*b)+v}}return{format:c,formatPrefix:u}}var xd,I0,c_;YV({thousands:",",grouping:[3],currency:["$",""]});function YV(e){return xd=qV(e),I0=xd.format,c_=xd.formatPrefix,xd}function KV(e){return Math.max(0,-as(Math.abs(e)))}function ZV(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(as(t)/3)))*3-as(Math.abs(e)))}function XV(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,as(t)-as(e))+1}function u_(e,t,n,r){var i=T0(e,t,n),o;switch(r=Al(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=ZV(i,a))&&(r.precision=o),c_(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=XV(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=KV(i))&&(r.precision=o-(r.type==="%")*2);break}}return I0(r)}function oo(e){var t=e.domain;return e.ticks=function(n){var r=t();return O0(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return u_(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],l,c,u=10;for(s<a&&(c=a,a=s,s=c,c=i,i=o,o=c);u-- >0;){if(c=k0(a,s,n),c===l)return r[i]=a,r[o]=s,t(r);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function L0(){var e=M0();return e.copy=function(){return Tl(e,L0())},nr.apply(e,arguments),oo(e)}function d_(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,yd),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return d_(e).unknown(t)},e=arguments.length?Array.from(e,yd):[0,1],oo(n)}function f_(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function h_(e){return Math.log(e)}function m_(e){return Math.exp(e)}function JV(e){return-Math.log(-e)}function QV(e){return-Math.exp(-e)}function eU(e){return isFinite(e)?+("1e"+e):e<0?0:e}function tU(e){return e===10?eU:e===Math.E?Math.exp:t=>Math.pow(e,t)}function nU(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function g_(e){return(t,n)=>-e(-t,n)}function F0(e){const t=e(h_,m_),n=t.domain;let r=10,i,o;function a(){return i=nU(r),o=tU(r),n()[0]<0?(i=g_(i),o=g_(o),e(JV,QV)):e(h_,m_),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let f=i(c),h=i(u),g,p;const v=s==null?10:+s;let b=[];if(!(r%1)&&h-f<v){if(f=Math.floor(f),h=Math.ceil(h),c>0){for(;f<=h;++f)for(g=1;g<r;++g)if(p=f<0?g/o(-f):g*o(f),!(p<c)){if(p>u)break;b.push(p)}}else for(;f<=h;++f)for(g=r-1;g>=1;--g)if(p=f>0?g/o(-f):g*o(f),!(p<c)){if(p>u)break;b.push(p)}b.length*2<v&&(b=O0(c,u,v))}else b=O0(f,h,Math.min(h-f,v)).map(o);return d?b.reverse():b},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Al(l)).precision==null&&(l.trim=!0),l=I0(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return u=>{let d=u/o(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=()=>n(f_(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function p_(){const e=F0(vd()).domain([1,10]);return e.copy=()=>Tl(e,p_()).base(e.base()),nr.apply(e,arguments),e}function y_(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function v_(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function N0(e){var t=1,n=e(y_(t),v_(t));return n.constant=function(r){return arguments.length?e(y_(t=+r),v_(t)):t},oo(n)}function b_(){var e=N0(vd());return e.copy=function(){return Tl(e,b_()).constant(e.constant())},nr.apply(e,arguments)}function x_(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function rU(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function iU(e){return e<0?-e*e:e*e}function B0(e){var t=e(vn,vn),n=1;function r(){return n===1?e(vn,vn):n===.5?e(rU,iU):e(x_(n),x_(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},oo(t)}function W0(){var e=B0(vd());return e.copy=function(){return Tl(e,W0()).exponent(e.exponent())},nr.apply(e,arguments),e}function oU(){return W0.apply(null,arguments).exponent(.5)}function __(e){return Math.sign(e)*e*e}function aU(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function S_(){var e=M0(),t=[0,1],n=!1,r;function i(o){var a=aU(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(__(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,yd)).map(__)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return S_(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},nr.apply(i,arguments),oo(i)}function w_(){var e=[],t=[],n=[],r;function i(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a<s;)n[a-1]=$V(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:t[Ol(n,a)]}return o.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(io),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return w_().domain(e).range(t).unknown(r)},nr.apply(o,arguments)}function C_(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(l){return l!=null&&l<=l?i[Ol(r,l,0,n)]:o}function s(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,s()):i.slice()},a.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},a.unknown=function(l){return arguments.length&&(o=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return C_().domain([e,t]).range(i).unknown(o)},nr.apply(oo(a),arguments)}function E_(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[Ol(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return E_().domain(e).range(t).unknown(n)},nr.apply(i,arguments)}const z0=new Date,R0=new Date;function Gt(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;let c;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<a);return l},i.filter=o=>Gt(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(z0.setTime(+o),R0.setTime(+a),e(z0),e(R0),Math.floor(n(z0,R0))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const _d=Gt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);_d.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Gt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):_d),_d.range;const hi=1e3,rr=hi*60,mi=rr*60,gi=mi*24,V0=gi*7,O_=gi*30,U0=gi*365,Ko=Gt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*hi)},(e,t)=>(t-e)/hi,e=>e.getUTCSeconds());Ko.range;const H0=Gt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*hi)},(e,t)=>{e.setTime(+e+t*rr)},(e,t)=>(t-e)/rr,e=>e.getMinutes());H0.range;const G0=Gt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*rr)},(e,t)=>(t-e)/rr,e=>e.getUTCMinutes());G0.range;const q0=Gt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*hi-e.getMinutes()*rr)},(e,t)=>{e.setTime(+e+t*mi)},(e,t)=>(t-e)/mi,e=>e.getHours());q0.range;const Y0=Gt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*mi)},(e,t)=>(t-e)/mi,e=>e.getUTCHours());Y0.range;const Dl=Gt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*rr)/gi,e=>e.getDate()-1);Dl.range;const Sd=Gt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/gi,e=>e.getUTCDate()-1);Sd.range;const k_=Gt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/gi,e=>Math.floor(e/gi));k_.range;function Zo(e){return Gt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*rr)/V0)}const wd=Zo(0),Cd=Zo(1),sU=Zo(2),lU=Zo(3),ss=Zo(4),cU=Zo(5),uU=Zo(6);wd.range,Cd.range,sU.range,lU.range,ss.range,cU.range,uU.range;function Xo(e){return Gt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/V0)}const Ed=Xo(0),Od=Xo(1),dU=Xo(2),fU=Xo(3),ls=Xo(4),hU=Xo(5),mU=Xo(6);Ed.range,Od.range,dU.range,fU.range,ls.range,hU.range,mU.range;const K0=Gt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());K0.range;const Z0=Gt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Z0.range;const pi=Gt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());pi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Gt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),pi.range;const yi=Gt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());yi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Gt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),yi.range;function T_(e,t,n,r,i,o){const a=[[Ko,1,hi],[Ko,5,5*hi],[Ko,15,15*hi],[Ko,30,30*hi],[o,1,rr],[o,5,5*rr],[o,15,15*rr],[o,30,30*rr],[i,1,mi],[i,3,3*mi],[i,6,6*mi],[i,12,12*mi],[r,1,gi],[r,2,2*gi],[n,1,V0],[t,1,O_],[t,3,3*O_],[e,1,U0]];function s(c,u,d){const f=u<c;f&&([c,u]=[u,c]);const h=d&&typeof d.range=="function"?d:l(c,u,d),g=h?h.range(c,+u+1):[];return f?g.reverse():g}function l(c,u,d){const f=Math.abs(u-c)/d,h=E0(([,,v])=>v).right(a,f);if(h===a.length)return e.every(T0(c/U0,u/U0,d));if(h===0)return _d.every(Math.max(T0(c,u,d),1));const[g,p]=a[f/a[h-1][2]<a[h][2]/f?h-1:h];return g.every(p)}return[s,l]}const[gU,pU]=T_(yi,Z0,Ed,k_,Y0,G0),[yU,vU]=T_(pi,K0,wd,Dl,q0,H0);function X0(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function J0(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function jl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function bU(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Pl(i),u=Ml(i),d=Pl(o),f=Ml(o),h=Pl(a),g=Ml(a),p=Pl(s),v=Ml(s),b=Pl(l),x=Ml(l),S={a:q,A:U,b:z,B:N,c:null,d:$_,e:$_,f:RU,g:JU,G:eH,H:BU,I:WU,j:zU,L:I_,m:VU,M:UU,p:R,q:J,Q:z_,s:R_,S:HU,u:GU,U:qU,V:YU,w:KU,W:ZU,x:null,X:null,y:XU,Y:QU,Z:tH,"%":W_},w={a:ee,A:X,b:Q,B:ie,c:null,d:F_,e:F_,f:oH,g:gH,G:yH,H:nH,I:rH,j:iH,L:N_,m:aH,M:sH,p:ue,q:de,Q:z_,s:R_,S:lH,u:cH,U:uH,V:dH,w:fH,W:hH,x:null,X:null,y:mH,Y:pH,Z:vH,"%":W_},_={a:j,A,b:M,B:P,c:$,d:P_,e:P_,f:IU,g:j_,G:D_,H:M_,I:M_,j:jU,L:$U,m:DU,M:PU,p:D,q:AU,Q:FU,s:NU,S:MU,u:CU,U:EU,V:OU,w:wU,W:kU,x:L,X:H,y:j_,Y:D_,Z:TU,"%":LU};S.x=E(n,S),S.X=E(r,S),S.c=E(t,S),w.x=E(n,w),w.X=E(r,w),w.c=E(t,w);function E(K,ne){return function(pe){var B=[],ke=-1,Ee=0,He=K.length,Ie,at,I;for(pe instanceof Date||(pe=new Date(+pe));++ke<He;)K.charCodeAt(ke)===37&&(B.push(K.slice(Ee,ke)),(at=A_[Ie=K.charAt(++ke)])!=null?Ie=K.charAt(++ke):at=Ie==="e"?" ":"0",(I=ne[Ie])&&(Ie=I(pe,at)),B.push(Ie),Ee=ke+1);return B.push(K.slice(Ee,ke)),B.join("")}}function O(K,ne){return function(pe){var B=jl(1900,void 0,1),ke=T(B,K,pe+="",0),Ee,He;if(ke!=pe.length)return null;if("Q"in B)return new Date(B.Q);if("s"in B)return new Date(B.s*1e3+("L"in B?B.L:0));if(ne&&!("Z"in B)&&(B.Z=0),"p"in B&&(B.H=B.H%12+B.p*12),B.m===void 0&&(B.m="q"in B?B.q:0),"V"in B){if(B.V<1||B.V>53)return null;"w"in B||(B.w=1),"Z"in B?(Ee=J0(jl(B.y,0,1)),He=Ee.getUTCDay(),Ee=He>4||He===0?Od.ceil(Ee):Od(Ee),Ee=Sd.offset(Ee,(B.V-1)*7),B.y=Ee.getUTCFullYear(),B.m=Ee.getUTCMonth(),B.d=Ee.getUTCDate()+(B.w+6)%7):(Ee=X0(jl(B.y,0,1)),He=Ee.getDay(),Ee=He>4||He===0?Cd.ceil(Ee):Cd(Ee),Ee=Dl.offset(Ee,(B.V-1)*7),B.y=Ee.getFullYear(),B.m=Ee.getMonth(),B.d=Ee.getDate()+(B.w+6)%7)}else("W"in B||"U"in B)&&("w"in B||(B.w="u"in B?B.u%7:"W"in B?1:0),He="Z"in B?J0(jl(B.y,0,1)).getUTCDay():X0(jl(B.y,0,1)).getDay(),B.m=0,B.d="W"in B?(B.w+6)%7+B.W*7-(He+5)%7:B.w+B.U*7-(He+6)%7);return"Z"in B?(B.H+=B.Z/100|0,B.M+=B.Z%100,J0(B)):X0(B)}}function T(K,ne,pe,B){for(var ke=0,Ee=ne.length,He=pe.length,Ie,at;ke<Ee;){if(B>=He)return-1;if(Ie=ne.charCodeAt(ke++),Ie===37){if(Ie=ne.charAt(ke++),at=_[Ie in A_?ne.charAt(ke++):Ie],!at||(B=at(K,pe,B))<0)return-1}else if(Ie!=pe.charCodeAt(B++))return-1}return B}function D(K,ne,pe){var B=c.exec(ne.slice(pe));return B?(K.p=u.get(B[0].toLowerCase()),pe+B[0].length):-1}function j(K,ne,pe){var B=h.exec(ne.slice(pe));return B?(K.w=g.get(B[0].toLowerCase()),pe+B[0].length):-1}function A(K,ne,pe){var B=d.exec(ne.slice(pe));return B?(K.w=f.get(B[0].toLowerCase()),pe+B[0].length):-1}function M(K,ne,pe){var B=b.exec(ne.slice(pe));return B?(K.m=x.get(B[0].toLowerCase()),pe+B[0].length):-1}function P(K,ne,pe){var B=p.exec(ne.slice(pe));return B?(K.m=v.get(B[0].toLowerCase()),pe+B[0].length):-1}function $(K,ne,pe){return T(K,t,ne,pe)}function L(K,ne,pe){return T(K,n,ne,pe)}function H(K,ne,pe){return T(K,r,ne,pe)}function q(K){return a[K.getDay()]}function U(K){return o[K.getDay()]}function z(K){return l[K.getMonth()]}function N(K){return s[K.getMonth()]}function R(K){return i[+(K.getHours()>=12)]}function J(K){return 1+~~(K.getMonth()/3)}function ee(K){return a[K.getUTCDay()]}function X(K){return o[K.getUTCDay()]}function Q(K){return l[K.getUTCMonth()]}function ie(K){return s[K.getUTCMonth()]}function ue(K){return i[+(K.getUTCHours()>=12)]}function de(K){return 1+~~(K.getUTCMonth()/3)}return{format:function(K){var ne=E(K+="",S);return ne.toString=function(){return K},ne},parse:function(K){var ne=O(K+="",!1);return ne.toString=function(){return K},ne},utcFormat:function(K){var ne=E(K+="",w);return ne.toString=function(){return K},ne},utcParse:function(K){var ne=O(K+="",!0);return ne.toString=function(){return K},ne}}}var A_={"-":"",_:" ",0:"0"},Jt=/^\s*\d+/,xU=/^%/,_U=/[\\^$*+?|[\]().{}]/g;function qe(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function SU(e){return e.replace(_U,"\\$&")}function Pl(e){return new RegExp("^(?:"+e.map(SU).join("|")+")","i")}function Ml(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function wU(e,t,n){var r=Jt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function CU(e,t,n){var r=Jt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function EU(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function OU(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function kU(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function D_(e,t,n){var r=Jt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function j_(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function TU(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function AU(e,t,n){var r=Jt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function DU(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function P_(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function jU(e,t,n){var r=Jt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function M_(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function PU(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function MU(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function $U(e,t,n){var r=Jt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function IU(e,t,n){var r=Jt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function LU(e,t,n){var r=xU.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function FU(e,t,n){var r=Jt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function NU(e,t,n){var r=Jt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function $_(e,t){return qe(e.getDate(),t,2)}function BU(e,t){return qe(e.getHours(),t,2)}function WU(e,t){return qe(e.getHours()%12||12,t,2)}function zU(e,t){return qe(1+Dl.count(pi(e),e),t,3)}function I_(e,t){return qe(e.getMilliseconds(),t,3)}function RU(e,t){return I_(e,t)+"000"}function VU(e,t){return qe(e.getMonth()+1,t,2)}function UU(e,t){return qe(e.getMinutes(),t,2)}function HU(e,t){return qe(e.getSeconds(),t,2)}function GU(e){var t=e.getDay();return t===0?7:t}function qU(e,t){return qe(wd.count(pi(e)-1,e),t,2)}function L_(e){var t=e.getDay();return t>=4||t===0?ss(e):ss.ceil(e)}function YU(e,t){return e=L_(e),qe(ss.count(pi(e),e)+(pi(e).getDay()===4),t,2)}function KU(e){return e.getDay()}function ZU(e,t){return qe(Cd.count(pi(e)-1,e),t,2)}function XU(e,t){return qe(e.getFullYear()%100,t,2)}function JU(e,t){return e=L_(e),qe(e.getFullYear()%100,t,2)}function QU(e,t){return qe(e.getFullYear()%1e4,t,4)}function eH(e,t){var n=e.getDay();return e=n>=4||n===0?ss(e):ss.ceil(e),qe(e.getFullYear()%1e4,t,4)}function tH(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+qe(t/60|0,"0",2)+qe(t%60,"0",2)}function F_(e,t){return qe(e.getUTCDate(),t,2)}function nH(e,t){return qe(e.getUTCHours(),t,2)}function rH(e,t){return qe(e.getUTCHours()%12||12,t,2)}function iH(e,t){return qe(1+Sd.count(yi(e),e),t,3)}function N_(e,t){return qe(e.getUTCMilliseconds(),t,3)}function oH(e,t){return N_(e,t)+"000"}function aH(e,t){return qe(e.getUTCMonth()+1,t,2)}function sH(e,t){return qe(e.getUTCMinutes(),t,2)}function lH(e,t){return qe(e.getUTCSeconds(),t,2)}function cH(e){var t=e.getUTCDay();return t===0?7:t}function uH(e,t){return qe(Ed.count(yi(e)-1,e),t,2)}function B_(e){var t=e.getUTCDay();return t>=4||t===0?ls(e):ls.ceil(e)}function dH(e,t){return e=B_(e),qe(ls.count(yi(e),e)+(yi(e).getUTCDay()===4),t,2)}function fH(e){return e.getUTCDay()}function hH(e,t){return qe(Od.count(yi(e)-1,e),t,2)}function mH(e,t){return qe(e.getUTCFullYear()%100,t,2)}function gH(e,t){return e=B_(e),qe(e.getUTCFullYear()%100,t,2)}function pH(e,t){return qe(e.getUTCFullYear()%1e4,t,4)}function yH(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ls(e):ls.ceil(e),qe(e.getUTCFullYear()%1e4,t,4)}function vH(){return"+0000"}function W_(){return"%"}function z_(e){return+e}function R_(e){return Math.floor(+e/1e3)}var cs,V_,U_;bH({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function bH(e){return cs=bU(e),V_=cs.format,cs.parse,U_=cs.utcFormat,cs.utcParse,cs}function xH(e){return new Date(e)}function _H(e){return e instanceof Date?+e:+new Date(+e)}function Q0(e,t,n,r,i,o,a,s,l,c){var u=M0(),d=u.invert,f=u.domain,h=c(".%L"),g=c(":%S"),p=c("%I:%M"),v=c("%I %p"),b=c("%a %d"),x=c("%b %d"),S=c("%B"),w=c("%Y");function _(E){return(l(E)<E?h:s(E)<E?g:a(E)<E?p:o(E)<E?v:r(E)<E?i(E)<E?b:x:n(E)<E?S:w)(E)}return u.invert=function(E){return new Date(d(E))},u.domain=function(E){return arguments.length?f(Array.from(E,_H)):f().map(xH)},u.ticks=function(E){var O=f();return e(O[0],O[O.length-1],E??10)},u.tickFormat=function(E,O){return O==null?_:c(O)},u.nice=function(E){var O=f();return(!E||typeof E.range!="function")&&(E=t(O[0],O[O.length-1],E??10)),E?f(f_(O,E)):u},u.copy=function(){return Tl(u,Q0(e,t,n,r,i,o,a,s,l,c))},u}function SH(){return nr.apply(Q0(yU,vU,pi,K0,wd,Dl,q0,H0,Ko,V_).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function wH(){return nr.apply(Q0(gU,pU,yi,Z0,Ed,Sd,Y0,G0,Ko,U_).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function kd(){var e=0,t=1,n,r,i,o,a=vn,s=!1,l;function c(d){return d==null||isNaN(d=+d)?l:a(i===0?.5:(d=(o(d)-n)*i,s?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(d){return arguments.length?(s=!!d,c):s},c.interpolator=function(d){return arguments.length?(a=d,c):a};function u(d){return function(f){var h,g;return arguments.length?([h,g]=f,a=d(h,g),c):[a(0),a(1)]}}return c.range=u(Rr),c.rangeRound=u(f0),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return o=d,n=d(e),r=d(t),i=n===r?0:1/(r-n),c}}function ao(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function H_(){var e=oo(kd()(vn));return e.copy=function(){return ao(e,H_())},fi.apply(e,arguments)}function G_(){var e=F0(kd()).domain([1,10]);return e.copy=function(){return ao(e,G_()).base(e.base())},fi.apply(e,arguments)}function q_(){var e=N0(kd());return e.copy=function(){return ao(e,q_()).constant(e.constant())},fi.apply(e,arguments)}function eg(){var e=B0(kd());return e.copy=function(){return ao(e,eg()).exponent(e.exponent())},fi.apply(e,arguments)}function CH(){return eg.apply(null,arguments).exponent(.5)}function Y_(){var e=[],t=vn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Ol(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(io),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>MV(e,o/r))},n.copy=function(){return Y_(t).domain(e)},fi.apply(n,arguments)}function Td(){var e=0,t=.5,n=1,r=1,i,o,a,s,l,c=vn,u,d=!1,f;function h(p){return isNaN(p=+p)?f:(p=.5+((p=+u(p))-o)*(r*p<r*o?s:l),c(d?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t,n]=p,i=u(e=+e),o=u(t=+t),a=u(n=+n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,h):[e,t,n]},h.clamp=function(p){return arguments.length?(d=!!p,h):d},h.interpolator=function(p){return arguments.length?(c=p,h):c};function g(p){return function(v){var b,x,S;return arguments.length?([b,x,S]=v,c=OW(p,[b,x,S]),h):[c(0),c(.5),c(1)]}}return h.range=g(Rr),h.rangeRound=g(f0),h.unknown=function(p){return arguments.length?(f=p,h):f},function(p){return u=p,i=p(e),o=p(t),a=p(n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,h}}function K_(){var e=oo(Td()(vn));return e.copy=function(){return ao(e,K_())},fi.apply(e,arguments)}function Z_(){var e=F0(Td()).domain([.1,1,10]);return e.copy=function(){return ao(e,Z_()).base(e.base())},fi.apply(e,arguments)}function X_(){var e=N0(Td());return e.copy=function(){return ao(e,X_()).constant(e.constant())},fi.apply(e,arguments)}function tg(){var e=B0(Td());return e.copy=function(){return ao(e,tg()).exponent(e.exponent())},fi.apply(e,arguments)}function EH(){return tg.apply(null,arguments).exponent(.5)}const OH=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:j0,scaleDiverging:K_,scaleDivergingLog:Z_,scaleDivergingPow:tg,scaleDivergingSqrt:EH,scaleDivergingSymlog:X_,scaleIdentity:d_,scaleImplicit:A0,scaleLinear:L0,scaleLog:p_,scaleOrdinal:D0,scalePoint:LV,scalePow:W0,scaleQuantile:w_,scaleQuantize:C_,scaleRadial:S_,scaleSequential:H_,scaleSequentialLog:G_,scaleSequentialPow:eg,scaleSequentialQuantile:Y_,scaleSequentialSqrt:CH,scaleSequentialSymlog:q_,scaleSqrt:oU,scaleSymlog:b_,scaleThreshold:E_,scaleTime:SH,scaleUtc:wH,tickFormat:u_},Symbol.toStringTag,{value:"Module"})),kH=["linear","time","log","sqrt"];function TH(e){return`scale${(n=>n&&n[0].toUpperCase()+n.slice(1))(e)}`}function J_(e){return typeof e=="function"?Se(e.copy)&&Se(e.domain)&&Se(e.range):typeof e=="string"?kH.includes(e):!1}function Q_(e,t){if(e.scale){if(e.scale.x||e.scale.y)return!!e.scale[t]}else return!1;return!0}function AH(e,t){if(!Q_(e,t))return;const n=e.scale[t]||e.scale;return typeof n=="string"?n:tS(n)}function DH(e,t){let n;if(e.domain&&e.domain[t]?n=e.domain[t]:e.domain&&Array.isArray(e.domain)&&(n=e.domain),!!n)return er(n)?"time":"linear"}function eS(e,t){if(!e.data)return"linear";const n=ld(e[t]),r=e.data.map(i=>{const o=Mt(n(i))?n(i)[t]:n(i);return o!==void 0?o:i[t]});return er(r)?"time":"linear"}function $l(e){if(J_(e)){const t=TH(e);return OH[t]()}return L0()}function ir(e,t){const n=Il(e,t);if(n)return typeof n=="string"?$l(n):n;const r=DH(e,t)||eS(e,t);return $l(r)}function Il(e,t){if(!Q_(e,t))return;const n=e.scale[t]||e.scale;if(J_(n))return Se(n)?n:$l(n)}function Ad(e,t){return AH(e,t)||eS(e,t)}const jH=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function tS(e){if(typeof e=="string")return e;const t=jH.filter(n=>e[n.method]!==void 0)[0];return t?t.name:void 0}const PH="@@__IMMUTABLE_ITERABLE__@@",MH="@@__IMMUTABLE_RECORD__@@",$H="@@__IMMUTABLE_LIST__@@";function Ll(e){return!!(e&&e[PH])}function IH(e){return!!(e&&e[MH])}function LH(e){return Ll(e)||IH(e)}function FH(e){return!!(e&&e[$H])}function nS(e,t){return Ll(e)?e.reduce((n,r,i)=>{let o=r;return t&&t[i]&&(o=nS(r)),n[i]=o,n},FH(e)?[]:{}):e}function ng(e){const t={errorX:!0,errorY:!0};return LH(e)?nS(e,t):e}function rS(e){return Ll(e)?e.size:e.length}function iS(e,t){const r=(Mt(e.domain)?e.domain[t]:e.domain)||ir(e,t).domain(),i=e.samples||1,o=Math.max(...r),a=Math.min(...r),s=(o-a)/i,l=v0(a,o,s);return l[l.length-1]===o?l:l.concat(o)}function oS(e,t,n){if(n===void 0&&(n="ascending"),!t)return e;let r=t;return(t==="x"||t==="y")&&(r=`_${t}`),ts(e,r,n==="ascending"?"asc":"desc")}function NH(e,t){const n=1/Number.MAX_SAFE_INTEGER,r={x:Ad(t,"x"),y:Ad(t,"y")};if(r.x!=="log"&&r.y!=="log")return e;const i=(a,s)=>r[s]==="log"?a[`_${s}`]!==0:!0,o=a=>{const s=i(a,"x")?a._x:n,l=i(a,"y")?a._y:n,c=i(a,"y0")?a._y0:n;return Object.assign({},a,{_x:s,_y:l,_y0:c})};return e.map(a=>i(a,"x")&&i(a,"y")&&i(a,"y0")?a:o(a))}function BH(e){return Se(e)?e:e==null?()=>{}:Rx(e)}function WH(e,t){const n=!!e.eventKey,r=BH(e.eventKey);return t.map((i,o)=>{if(i.eventKey!==void 0)return i;if(n){const a=r(i,o);return a!==void 0?Object.assign({eventKey:a},i):i}return i})}function zH(e,t,n){const r=g=>g!==void 0,i=Dn(t.x),o=tr(t.x),a=Dn(t.y),s=tr(t.y),l=g=>p=>r(p)&&p<g,c=g=>p=>r(p)&&p>g,u=l(i),d=l(a),f=c(o),h=c(s);return e.map(g=>{let{_x:p,_y:v,_y0:b,_y1:x}=g;(u(p)||f(p))&&(p=null);const S=r(b)?b:n,w=r(x)?x:v;return r(w)?(!r(S)&&(d(w)||h(w))&&(v=null),(d(S)&&d(w)||h(S)&&h(w))&&(v=b=x=null),d(S)&&!d(w)&&(b=a),h(S)&&!h(w)&&(b=s),Object.assign({},g,I2({_x:p,_y:v,_y0:b,_y1:x},vV))):g})}function rg(e,t){const n=aS(e,t),r=us(e,t),i=UH(e,t),o=qo([...n,...r,...i]);return o.length===0?null:o.reduce((a,s,l)=>(a[s]=l+1,a),{})}function RH(e,t,n){n===void 0&&(n=0);const r=rS(e);if(r>t){const i=Math.pow(2,Math.ceil(Math.log2(r/t)));return e.filter((o,a)=>(a+n)%i===0)}return e}function ig(e,t,n){if(!(Array.isArray(e)||Ll(e))||rS(e)<1)return[];const i=["x","y","y0"];n=Array.isArray(n)?n:i;const o=f=>ld(t[f]!==void 0?t[f]:f),a=n.reduce((f,h)=>(f[h]=o(h),f),{}),s=SV(n,i)&&t.x==="_x"&&t.y==="_y"&&t.y0==="_y0";let l;s===!1&&(l={x:n.indexOf("x")!==-1?rg(t,"x"):void 0,y:n.indexOf("y")!==-1?rg(t,"y"):void 0,y0:n.indexOf("y0")!==-1?rg(t,"y"):void 0});const c=s?e:e.reduce((f,h,g)=>{const p=ng(h),v={x:g,y:p},b=n.reduce((S,w)=>{const _=a[w](p),E=_!==void 0?_:v[w];return E!==void 0&&(typeof E=="string"&&l[w]?(S[`${w}Name`]=E,S[`_${w}`]=l[w][E]):S[`_${w}`]=E),S},{}),x=Object.assign({},b,p);return vt(x)||f.push(x),f},[]),u=oS(c,t.sortKey,t.sortOrder),d=NH(u,t);return WH(t,d)}function VH(e){const t=iS(e,"x"),n=iS(e,"y");return t.map((i,o)=>({x:i,y:n[o]}))}function og(e,t){return e.categories&&!Array.isArray(e.categories)?e.categories[t]:e.categories}function dn(e){return e.data?ig(e.data,e):ig(VH(e),e)}function aS(e,t){const{tickValues:n,tickFormat:r}=e;let i;return!n||!Array.isArray(n)&&!n[t]?i=r&&Array.isArray(r)?r:[]:i=n[t]||n,i.filter(o=>typeof o=="string")}function us(e,t){if(!e.categories)return[];const n=og(e,t),r=n&&n.filter(i=>typeof i=="string");return r?Bz(r):[]}function UH(e,t){if(!(Array.isArray(e.data)||Ll(e.data)))return[];const r=e[t]===void 0?t:e[t],i=ld(r),o=e.data.reduce((l,c)=>(l.push(ng(c)),l),[]);return oS(o,e.sortKey,e.sortOrder).reduce((l,c)=>{const u=ng(c);return l.push(i(u)),l},[]).filter(l=>typeof l=="string").reduce((l,c)=>(c!=null&&l.indexOf(c)===-1&&l.push(c),l),[])}function ds(e){const t=i=>i&&i.type?i.type.role:"";let n=t(e);if(n==="portal"){const i=y.Children.toArray(e.props.children);n=i.length?t(i[0]):""}return["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(n)}function HH(e,t,n){return Ad(t,n)!=="log"?e:(o=>{const a=o[0]<0||o[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER,s=o[0]===0?a:o[0],l=o[1]===0?a:o[1];return[s,l]})(e)}function GH(e,t){const n=r=>Array.isArray(r)?{left:r[0],right:r[1]}:{left:r,right:r};return Mt(e.domainPadding)?n(e.domainPadding[t]):n(e.domainPadding)}function qH(e,t){const n=`_${t}`;return e.flat().map(r=>r[n]&&r[n][1]!==void 0?r[n][1]:r[n])}function sS(e,t,n){n===void 0&&(n="min");const r=s=>n==="max"?Math.max(...s):Math.min(...s),i=n==="max"?-1/0:1/0;let o=!1;const a=e.flat().reduce((s,l)=>{const c=l[`_${t}0`]!==void 0?l[`_${t}0`]:l[`_${t}`],u=l[`_${t}1`]!==void 0?l[`_${t}1`]:l[`_${t}`],d=r([c,u]);return o=o||c instanceof Date||u instanceof Date,r([s,d])},i);return o?new Date(a):a}function YH(e,t,n){if(!t.domainPadding)return e;const r=ea(t,n),i=Qo(t,n),o=GH(t,n);if(!o.left&&!o.right)return e;const a=Dn(e),s=tr(e),l=Tz(n,t.horizontal),c=Nt(t,l),u=Math.abs(c[0]-c[1]),d=Math.max(u-o.left-o.right,1),f=Math.abs(s.valueOf()-a.valueOf())/d*u,h={left:f*o.left/u,right:f*o.right/u};let g={min:a.valueOf()-h.left,max:s.valueOf()+h.right};const p=Mt(t.singleQuadrantDomainPadding)?t.singleQuadrantDomainPadding[n]:t.singleQuadrantDomainPadding,v=a>=0&&g.min<=0||s<=0&&g.max>=0,b=(S,w)=>w==="min"&&a>=0&&S<=0||w==="max"&&s<=0&&S>=0?0:S;if(v&&p!==!1){const S={left:Math.abs(s-a)*o.left/u,right:Math.abs(s-a)*o.right/u},w={min:b(a.valueOf()-S.left,"min"),max:b(s.valueOf()+S.right,"max")},_={left:Math.abs(w.max-w.min)*o.left/u,right:Math.abs(w.max-w.min)*o.right/u};g={min:b(a.valueOf()-_.left,"min"),max:b(s.valueOf()+_.right,"max")}}const x={min:r!==void 0?r:g.min,max:i!==void 0?i:g.max};return a instanceof Date||s instanceof Date?vi(new Date(x.min),new Date(x.max)):vi(x.min,x.max)}function ag(e,t){const n=Se(e)?e:lg,r=Se(t)?t:sg;return(i,o)=>{const a=cg(i,o);if(a)return r(a,i,o);const s=og(i,o),l=s?KH(i,o,s):n(i,o);return l?r(l,i,o):void 0}}function sg(e,t,n){return HH(YH(e,t,n),t,n)}function Jo(e,t){return ag()(e,t)}function KH(e,t,n){const r=n||og(e,t),{polar:i,startAngle:o=0,endAngle:a=360}=e;if(!r)return;const s=ea(e,t),l=Qo(e,t),c=fd(r)?us(e,t):[],u=c.length===0?null:c.reduce((p,v,b)=>(p[v]=b+1,p),{}),d=u?r.map(p=>u[p]):r,f=s!==void 0?s:Dn(d),h=l!==void 0?l:tr(d),g=vi(f,h);return i&&t==="x"&&Math.abs(o-a)===360?dg(g,d):g}function lg(e,t,n){const r=n||dn(e),{polar:i,startAngle:o=0,endAngle:a=360}=e,s=ea(e,t),l=Qo(e,t);if(r.length<1)return s!==void 0&&l!==void 0?vi(s,l):void 0;const c=s!==void 0?s:sS(r,t,"min"),u=l!==void 0?l:sS(r,t,"max"),d=vi(c,u);return i&&t==="x"&&Math.abs(o-a)===360?dg(d,qH(r,t)):d}function vi(e,t){const n=r=>{const i=r===0?2*Math.pow(10,-10):Math.pow(10,-10),o=1,a=r instanceof Date?new Date(Number(r)-o):Number(r)-i,s=r instanceof Date?new Date(Number(r)+o):Number(r)+i;return r===0?[0,s]:[a,s]};return Number(e)===Number(t)?n(t):[e,t]}function cg(e,t){const n=ea(e,t),r=Qo(e,t);if(Mt(e.domain)&&e.domain[t])return e.domain[t];if(Array.isArray(e.domain))return e.domain;if(n!==void 0&&r!==void 0)return vi(n,r)}function ug(e,t){const n=cg(e,t);if(n)return n;const r=dn(e),i=r.reduce((l,c)=>c._y0<l?c._y0:l,1/0),o=l=>{if(t==="x")return l;const c=i!==1/0?i:0,u=Qo(e,t),d=ea(e,t),f=u!==void 0?u:tr(l,c),h=d!==void 0?d:Dn(l,c);return vi(h,f)};return ag(()=>lg(e,t,r),l=>sg(o(l),e,t))(e,t)}function Qo(e,t){return Mt(e.maxDomain)&&e.maxDomain[t]!==void 0?e.maxDomain[t]:typeof e.maxDomain=="number"||q2(e.maxDomain)?e.maxDomain:void 0}function ea(e,t){return Mt(e.minDomain)&&e.minDomain[t]!==void 0?e.minDomain[t]:typeof e.minDomain=="number"||q2(e.minDomain)?e.minDomain:void 0}function dg(e,t){const n=gV(t.sort((i,o)=>i-o)),r=n[1]-n[0];return[e[0],e[1]+r]}function lS(e){const t=i=>i&&i.type?i.type.role:"";let n=t(e);if(n==="portal"){const i=y.Children.toArray(e.props.children);n=i.length?t(i[0]):""}return["area","axis","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(n)}function ZH(e){return e}function or(e){const{dependentAxis:t}=e;return t?"y":"x"}function cS(e,t){const n=t||ZH,r=i=>i.reduce((o,a)=>a.type&&a.type.role==="axis"&&n(a)?o.concat(a):a.props&&a.props.children?o.concat(r(y.Children.toArray(a.props.children))):o,[]);return r(e)}function uS(e,t){return cS(e,r=>r.type.getAxis(r.props)===t)[0]}function dS(e,t){const n=i=>t==="dependent"?i.props.dependentAxis:!i.props.dependentAxis,r=i=>i.reduce((o,a)=>a.type&&a.type.role==="axis"&&n(a)||a.props&&a.props.children&&r(y.Children.toArray(a.props.children)).length>0?o.concat(a):o,[]);return r(e)}function fS(e){const t=n=>{const r=Math.min(...n),i=Math.max(...n);return i<0?i:Math.max(0,r)};return{x:er(e.x)?new Date(Math.min(...e.x)):t(e.x),y:er(e.y)?new Date(Math.min(...e.y)):t(e.y)}}function hS(e,t){const n=()=>e<=0&&Math.max(...t)<=0?"negative":"positive";return er(t)?"positive":n()}function Dd(e){const t=e.orientation||(e.dependentAxis?"left":"bottom");return{top:!1,bottom:!1,left:!0,right:!0}[t]}function jd(e){return e.tickValues!==void 0&&fd(e.tickValues)}function XH(e){const{tickValues:t}=e,n=or(e),r=e.stringMap&&e.stringMap[n],i=t&&!er(t)?c=>c:void 0;if(!r)return jd(e)?(c,u)=>t[u]:i;const o=r&&S2(r),l=["",...ts(Object.values(r),c=>c).map(c=>o[c]),""];return c=>l[c]}function JH(e){const t=or(e),n=e.stringMap&&e.stringMap[t],r=Array.isArray(e.categories)?e.categories:e.categories&&e.categories[t],i=r&&Nz(r)?r.map(a=>n[a]):void 0,o=n&&Object.values(n);return i&&i.length!==0?i:o}function fg(e){const{tickValues:t,tickFormat:n}=e;if((t==null?void 0:t.length)===0)return[];const r=or(e),i=e.stringMap&&e.stringMap[r],o=()=>{if(!(!n||!Array.isArray(n)))return fd(n)?n.map((c,u)=>u):n};let a=t;i&&(a=JH(e)),t&&fd(t)&&(a=i?t.map(c=>i[c]):v0(1,t.length+1));const s=a?qo(a):o(),l=c=>{const u=[],d=e.domain&&e.domain[r]||e.domain;if(c)return c.forEach((f,h)=>{Array.isArray(d)?f>=Dn(d)&&f<=tr(d)&&u.push({value:f,index:h}):u.push({value:f,index:h})}),u};return Array.isArray(s)&&s.length?l(s):void 0}function mS(e,t){const{tickFormat:n}=e,r=or(e),i=e.stringMap&&e.stringMap[r];if(n){if(n&&Array.isArray(n)){const o=fg(e),a=o==null?void 0:o.map(l=>l.index),s=n.filter((l,c)=>a==null?void 0:a.includes(c));return(l,c)=>s[c]}else if(n&&Se(n))return i?(a,s,l)=>{const c=S2(i),u=l.map(d=>c[d]);return e.tickFormat(c[a],s,u)}:n}else{const o=XH(e),a=t.tickFormat&&Se(t.tickFormat)?t.tickFormat():s=>s;return o||a}return o=>o}function gS(e,t){if(!t||!Array.isArray(e)||e.length<=t)return e;const n=Math.floor(e.length/t);return e.filter((r,i)=>i%n===0)}function pS(e,t,n){n===void 0&&(n=!1);const{tickCount:r}=e,i=fg(e);if((i==null?void 0:i.length)===0)return[""];const o=i?i.map(a=>a.value):void 0;if(o)return gS(o,r);if(t.ticks&&Se(t.ticks)){const a=r||5,s=t.ticks(a),l=Array.isArray(s)&&s.length?s:t.domain(),c=gS(l,r);if(n){const u=c.filter(d=>d!==0);return u.length?u:c}return c}return t.domain()}function QH(e,t){const{polar:n,startAngle:r=0,endAngle:i=360}=e,o=fg(e),a=o&&(o==null?void 0:o.length)!==0?o.map(b=>b.value):void 0;if(!Array.isArray(a))return;const s=ea(e,t),l=Qo(e,t),c=jd(e),u=a.map(b=>Number(b)),d=c?1:Dn(u),f=c?a.length:tr(u),p=vi(s!==void 0?s:d,l!==void 0?l:f),v=n&&t==="x"&&Math.abs(r-i)===360?dg(p,u):p;return Dd(e)&&!n&&v.reverse(),v}function fs(e,t){const n=or(e);if(!(t&&t!==n))return ag(QH)(e,n)}function yS(e,t){if(!e.axisValue)return;const n=t==="x"?"y":"x",r=ol(e.scale)&&Se(e.scale[n])?e.scale[n]:void 0;if(!r)return;const i=t==="x"?"y":"x",o=ol(e.stringMap)&&e.stringMap[i],a=o&&typeof e.axisValue=="string"?o[e.axisValue]:e.axisValue;return r(a)}function Pd(e,t){if(!ol(e.theme))return Bt(e,t,"axis");let n="axis";if(e.dependentAxis&&e.theme.dependentAxis?n="dependentAxis":!e.dependentAxis&&e.theme.independentAxis&&(n="independentAxis"),n==="axis")return Bt(e,t,"axis");const r=Z({},e.theme[n],e.theme.axis),i=Object.assign({},e.theme,{axis:r});return Bt(Object.assign({},e,{theme:i}),t,"axis")}function vS(){return{onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}}}function bS(){return{onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:e=>({_y:e._y,_y1:e._y1,_y0:e._y0})},onExit:{duration:500,before:(e,t,n)=>{const r=i=>(t===0?n[t+1]:n[t-1])[i];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:(e,t,n)=>{const r=i=>(t===0?n[t+1]:n[t-1])[i];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:e=>({_x:e._x,_y:e._y,_y1:e._y1,_y0:e._y0})}}}function eG(){return{onLoad:{duration:2e3,before:()=>({opacity:0}),after:e=>e},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:e=>e}}}function xS(e){const t=y.useRef();return y.useEffect(()=>{t.current=e}),t.current}const tG={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0},_S=function(e){e===void 0&&(e=tG);const[t,n]=y.useState(e),r=y.useCallback(s=>{n(l=>({...l,...s}))},[n]),i=y.useCallback((s,l,c)=>{if(!(s!=null&&s.animate))return l.props.animate;const u=()=>{let g=t&&t.childrenTransitions;return g=E2(g)?g[c]:g,Z({childrenTransitions:g},t)};let d=s.animate&&s.animate.getTransitions;const f=u(),h=s.animate&&s.animate.parentState||f;if(!d){const g=D2(s,f,p=>r(p));d=p=>g(p,c)}return Z({getTransitions:d,parentState:h},s.animate,l.props.animate)},[t,r]),o=y.useCallback((s,l)=>{if(s!=null&&s.animate)if(s.animate.parentState){const u=s.animate.parentState.nodesWillExit?s:null,d=Z({oldProps:u,nextProps:l},s.animate.parentState);r(d)}else{const c=y.Children.toArray(s.children),u=y.Children.toArray(l.children),d=b=>{const x=S=>S.type&&S.type.continuous;return Array.isArray(b)?b.some(x):x(b)},f=!s.polar&&c.some(b=>{var x;return d(b)||((x=b==null?void 0:b.props)==null?void 0:x.children)&&d(b.props.children)}),{nodesWillExit:h,nodesWillEnter:g,childrenTransitions:p,nodesShouldEnter:v}=A2(c,u);r({nodesWillExit:h,nodesWillEnter:g,nodesShouldEnter:v,childrenTransitions:E2(p)?p[0]:p,oldProps:h?s:void 0,nextProps:l,continuous:f})}},[r]),a=y.useCallback(s=>t&&t.nodesWillExit&&t.oldProps||s,[t]);return{state:t,setState:r,getAnimationProps:i,setAnimationState:o,getProps:a}};function nG(e,t){t===void 0&&(t={});const n=t._y>=0?1:-1,r=e.style&&e.style.labels||{};return t.verticalAnchor||r.verticalAnchor?t.verticalAnchor||r.verticalAnchor:e.horizontal?"middle":n>=0?"end":"start"}function rG(e,t){t===void 0&&(t={});const{style:n,horizontal:r}=e,i=t._y>=0?1:-1,o=n&&n.labels||{};return t.verticalAnchor||o.verticalAnchor?t.verticalAnchor||o.verticalAnchor:r?i>=0?"start":"end":"middle"}function iG(e,t){t===void 0&&(t={});const n=e.style&&e.style.labels||{};return t.angle===void 0?n.angle:t.angle}function oG(e,t){t===void 0&&(t={});const{horizontal:n,style:r}=e,i=r.labels||{},o=te(i.padding,e)||0,a=t._y<0?-1:1;return{x:n?a*o:0,y:n?0:-1*a*o}}function aG(e,t){if(e.polar)return{};const n=oG(e,t);return{dx:n.x,dy:n.y}}function sG(e,t){const{polar:n}=e,{x:r,y:i}=is(e,t);if(!n)return{x:r,y:i};const o=lG(e,t);return{x:r+o.x,y:i+o.y}}function lG(e,t){const{style:n}=e,r=Fl(e,t),i=n.labels||{},o=te(i.padding,e)||0,a=dt(r);return{x:o*Math.cos(a),y:-o*Math.sin(a)}}function hg(e){const{labelComponent:t,labelPlacement:n,polar:r}=e,i=r?"perpendicular":"vertical";return n||t.props&&t.props.labelPlacement||i}function cG(e){return e<45||e>315?"right":e>=45&&e<=135?"top":e>135&&e<225?"left":"bottom"}function Md(e,t,n){return t===void 0&&(t={}),t.label!==void 0?t.label:Array.isArray(e.labels)?e.labels[n]:e.labels}function mg(e,t){const n=hg(e);return n==="perpendicular"||n==="vertical"&&(t===90||t===270)?"middle":t<=90||t>270?"start":"end"}function SS(e,t){const n=hg(e),r=cG(t);return n==="parallel"||r==="left"||r==="right"?"middle":r==="top"?"end":"start"}function gg(e,t){const{labelPlacement:n,datum:r}=e;if(!n||n==="vertical")return 0;const i=t!==void 0?t%360:Fl(e,r),o=i>90&&i<180||i>270?1:-1;let a=0;return i===0||i===180?a=90:i>0&&i<180?a=90-i:i>180&&i<360&&(a=270-i),a+o*(n==="perpendicular"?0:90)}function Fl(e,t){const{x:n}=y0(t);return ui(e.scale.x(n))%360}function pg(e,t){const{scale:n,data:r,style:i,horizontal:o,polar:a,width:s,height:l,theme:c,labelComponent:u,disableInlineStyles:d}=e,f=r[t],h=Fl(e,f),g=a?mg(e,h):rG(e,f),p=a?SS(e,h):nG(e,f),v=iG(e,f),b=Md(e,f,t),x=hg(e),{x:S,y:w}=sG(e,f),{dx:_,dy:E}=aG(e,f),O={angle:v,data:r,datum:f,disableInlineStyles:d,horizontal:o,index:t,polar:a,scale:n,labelPlacement:x,text:b,textAnchor:g,verticalAnchor:p,x:S,y:w,dx:_,dy:E,width:s,height:l,style:i.labels};if(!ad(u))return O;const T=c&&c.tooltip||{};return Z({},O,wl(T,["style"]))}function je(e){return function(){return e}}const wS=Math.abs,fn=Math.atan2,bi=Math.cos,uG=Math.max,hs=Math.min,jn=Math.sin,bt=Math.sqrt,hn=1e-12,so=Math.PI,$d=so/2,lo=2*so;function dG(e){return e>1?0:e<-1?so:Math.acos(e)}function CS(e){return e>=1?$d:e<=-1?-$d:Math.asin(e)}const yg=Math.PI,vg=2*yg,ta=1e-6,fG=vg-ta;function ES(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function hG(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return ES;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let mG=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?ES:hG(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=r-t,c=i-n,u=a-t,d=s-n,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>ta)if(!(Math.abs(d*l-c*u)>ta)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-a,g=i-s,p=l*l+c*c,v=h*h+g*g,b=Math.sqrt(p),x=Math.sqrt(f),S=o*Math.tan((yg-Math.acos((p+f-v)/(2*b*x)))/2),w=S/x,_=S/b;Math.abs(w-1)>ta&&this._append`L${t+w*u},${n+w*d}`,this._append`A${o},${o},0,0,${+(d*h>u*g)},${this._x1=t+_*l},${this._y1=n+_*c}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),c=t+s,u=n+l,d=1^a,f=a?i-o:o-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>ta||Math.abs(this._y1-u)>ta)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%vg+vg),f>fG?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:f>ta&&this._append`A${r},${r},0,${+(f>=yg)},${d},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function Nl(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new mG(t)}function gG(e){return e.innerRadius}function pG(e){return e.outerRadius}function yG(e){return e.startAngle}function vG(e){return e.endAngle}function bG(e){return e&&e.padAngle}function xG(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,d=s-o,f=d*l-u*c;if(!(f*f<hn))return f=(u*(t-o)-d*(e-i))/f,[e+f*l,t+f*c]}function Id(e,t,n,r,i,o,a){var s=e-n,l=t-r,c=(a?o:-o)/bt(s*s+l*l),u=c*l,d=-c*s,f=e+u,h=t+d,g=n+u,p=r+d,v=(f+g)/2,b=(h+p)/2,x=g-f,S=p-h,w=x*x+S*S,_=i-o,E=f*p-g*h,O=(S<0?-1:1)*bt(uG(0,_*_*w-E*E)),T=(E*S-x*O)/w,D=(-E*x-S*O)/w,j=(E*S+x*O)/w,A=(-E*x+S*O)/w,M=T-v,P=D-b,$=j-v,L=A-b;return M*M+P*P>$*$+L*L&&(T=j,D=A),{cx:T,cy:D,x01:-u,y01:-d,x11:T*(i/_-1),y11:D*(i/_-1)}}function bg(){var e=gG,t=pG,n=je(0),r=null,i=yG,o=vG,a=bG,s=null,l=Nl(c);function c(){var u,d,f=+e.apply(this,arguments),h=+t.apply(this,arguments),g=i.apply(this,arguments)-$d,p=o.apply(this,arguments)-$d,v=wS(p-g),b=p>g;if(s||(s=u=l()),h<f&&(d=h,h=f,f=d),!(h>hn))s.moveTo(0,0);else if(v>lo-hn)s.moveTo(h*bi(g),h*jn(g)),s.arc(0,0,h,g,p,!b),f>hn&&(s.moveTo(f*bi(p),f*jn(p)),s.arc(0,0,f,p,g,b));else{var x=g,S=p,w=g,_=p,E=v,O=v,T=a.apply(this,arguments)/2,D=T>hn&&(r?+r.apply(this,arguments):bt(f*f+h*h)),j=hs(wS(h-f)/2,+n.apply(this,arguments)),A=j,M=j,P,$;if(D>hn){var L=CS(D/f*jn(T)),H=CS(D/h*jn(T));(E-=L*2)>hn?(L*=b?1:-1,w+=L,_-=L):(E=0,w=_=(g+p)/2),(O-=H*2)>hn?(H*=b?1:-1,x+=H,S-=H):(O=0,x=S=(g+p)/2)}var q=h*bi(x),U=h*jn(x),z=f*bi(_),N=f*jn(_);if(j>hn){var R=h*bi(S),J=h*jn(S),ee=f*bi(w),X=f*jn(w),Q;if(v<so)if(Q=xG(q,U,ee,X,R,J,z,N)){var ie=q-Q[0],ue=U-Q[1],de=R-Q[0],K=J-Q[1],ne=1/jn(dG((ie*de+ue*K)/(bt(ie*ie+ue*ue)*bt(de*de+K*K)))/2),pe=bt(Q[0]*Q[0]+Q[1]*Q[1]);A=hs(j,(f-pe)/(ne-1)),M=hs(j,(h-pe)/(ne+1))}else A=M=0}O>hn?M>hn?(P=Id(ee,X,q,U,h,M,b),$=Id(R,J,z,N,h,M,b),s.moveTo(P.cx+P.x01,P.cy+P.y01),M<j?s.arc(P.cx,P.cy,M,fn(P.y01,P.x01),fn($.y01,$.x01),!b):(s.arc(P.cx,P.cy,M,fn(P.y01,P.x01),fn(P.y11,P.x11),!b),s.arc(0,0,h,fn(P.cy+P.y11,P.cx+P.x11),fn($.cy+$.y11,$.cx+$.x11),!b),s.arc($.cx,$.cy,M,fn($.y11,$.x11),fn($.y01,$.x01),!b))):(s.moveTo(q,U),s.arc(0,0,h,x,S,!b)):s.moveTo(q,U),!(f>hn)||!(E>hn)?s.lineTo(z,N):A>hn?(P=Id(z,N,R,J,f,-A,b),$=Id(q,U,ee,X,f,-A,b),s.lineTo(P.cx+P.x01,P.cy+P.y01),A<j?s.arc(P.cx,P.cy,A,fn(P.y01,P.x01),fn($.y01,$.x01),!b):(s.arc(P.cx,P.cy,A,fn(P.y01,P.x01),fn(P.y11,P.x11),!b),s.arc(0,0,f,fn(P.cy+P.y11,P.cx+P.x11),fn($.cy+$.y11,$.cx+$.x11),b),s.arc($.cx,$.cy,A,fn($.y11,$.x11),fn($.y01,$.x01),!b))):s.arc(0,0,f,_,w,b)}if(s.closePath(),u)return s=null,u+""||null}return c.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-so/2;return[bi(d)*u,jn(d)*u]},c.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:je(+u),c):e},c.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:je(+u),c):t},c.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:je(+u),c):n},c.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:je(+u),c):r},c.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:je(+u),c):i},c.endAngle=function(u){return arguments.length?(o=typeof u=="function"?u:je(+u),c):o},c.padAngle=function(u){return arguments.length?(a=typeof u=="function"?u:je(+u),c):a},c.context=function(u){return arguments.length?(s=u??null,c):s},c}var _G=Array.prototype.slice;function Ld(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function OS(e){this._context=e}OS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Bl(e){return new OS(e)}function xg(e){return e[0]}function _g(e){return e[1]}function Fd(e,t){var n=je(!0),r=null,i=Bl,o=null,a=Nl(s);e=typeof e=="function"?e:e===void 0?xg:je(e),t=typeof t=="function"?t:t===void 0?_g:je(t);function s(l){var c,u=(l=Ld(l)).length,d,f=!1,h;for(r==null&&(o=i(h=a())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(d,c,l),+t(d,c,l));if(h)return o=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:je(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:je(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:je(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),s):r},s}function Nd(e,t,n){var r=null,i=je(!0),o=null,a=Bl,s=null,l=Nl(c);e=typeof e=="function"?e:e===void 0?xg:je(+e),t=typeof t=="function"?t:je(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?_g:je(+n);function c(d){var f,h,g,p=(d=Ld(d)).length,v,b=!1,x,S=new Array(p),w=new Array(p);for(o==null&&(s=a(x=l())),f=0;f<=p;++f){if(!(f<p&&i(v=d[f],f,d))===b)if(b=!b)h=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=f-1;g>=h;--g)s.point(S[g],w[g]);s.lineEnd(),s.areaEnd()}b&&(S[f]=+e(v,f,d),w[f]=+t(v,f,d),s.point(r?+r(v,f,d):S[f],n?+n(v,f,d):w[f]))}if(x)return s=null,x+""||null}function u(){return Fd().defined(i).curve(a).context(o)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:je(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:je(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:je(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:je(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:je(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:je(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:je(!!d),c):i},c.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),c):a},c.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),c):o},c}function SG(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function wG(e){return e}function kS(){var e=wG,t=SG,n=null,r=je(0),i=je(lo),o=je(0);function a(s){var l,c=(s=Ld(s)).length,u,d,f=0,h=new Array(c),g=new Array(c),p=+r.apply(this,arguments),v=Math.min(lo,Math.max(-lo,i.apply(this,arguments)-p)),b,x=Math.min(Math.abs(v)/c,o.apply(this,arguments)),S=x*(v<0?-1:1),w;for(l=0;l<c;++l)(w=g[h[l]=l]=+e(s[l],l,s))>0&&(f+=w);for(t!=null?h.sort(function(_,E){return t(g[_],g[E])}):n!=null&&h.sort(function(_,E){return n(s[_],s[E])}),l=0,d=f?(v-c*S)/f:0;l<c;++l,p=b)u=h[l],w=g[u],b=p+(w>0?w*d:0)+S,g[u]={data:s[u],index:l,value:w,startAngle:p,endAngle:b,padAngle:x};return g}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:je(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:je(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:je(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:je(+s),a):o},a}var TS=Sg(Bl);function AS(e){this._curve=e}AS.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function Sg(e){function t(n){return new AS(e(n))}return t._curve=e,t}function Wl(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(n){return arguments.length?t(Sg(n)):t()._curve},e}function wg(){return Wl(Fd().curve(TS))}function Cg(){var e=Nd().curve(TS),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return Wl(n())},delete e.lineX0,e.lineEndAngle=function(){return Wl(r())},delete e.lineX1,e.lineInnerRadius=function(){return Wl(i())},delete e.lineY0,e.lineOuterRadius=function(){return Wl(o())},delete e.lineY1,e.curve=function(a){return arguments.length?t(Sg(a)):t()._curve},e}function zl(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}class DS{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}class CG{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,this._point===0)this._point=1;else{const r=zl(this._x0,this._y0),i=zl(this._x0,this._y0=(this._y0+n)/2),o=zl(t,this._y0),a=zl(t,n);this._context.moveTo(...r),this._context.bezierCurveTo(...i,...o,...a)}this._x0=t,this._y0=n}}function jS(e){return new DS(e,!0)}function PS(e){return new DS(e,!1)}function EG(e){return new CG(e)}function OG(e){return e.source}function kG(e){return e.target}function Bd(e){let t=OG,n=kG,r=xg,i=_g,o=null,a=null,s=Nl(l);function l(){let c;const u=_G.call(arguments),d=t.apply(this,u),f=n.apply(this,u);if(o==null&&(a=e(c=s())),a.lineStart(),u[0]=d,a.point(+r.apply(this,u),+i.apply(this,u)),u[0]=f,a.point(+r.apply(this,u),+i.apply(this,u)),a.lineEnd(),c)return a=null,c+""||null}return l.source=function(c){return arguments.length?(t=c,l):t},l.target=function(c){return arguments.length?(n=c,l):n},l.x=function(c){return arguments.length?(r=typeof c=="function"?c:je(+c),l):r},l.y=function(c){return arguments.length?(i=typeof c=="function"?c:je(+c),l):i},l.context=function(c){return arguments.length?(c==null?o=a=null:a=e(o=c),l):o},l}function TG(){return Bd(jS)}function AG(){return Bd(PS)}function DG(){const e=Bd(EG);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const jG=bt(3),MS={draw(e,t){const n=bt(t+hs(t/28,.75))*.59436,r=n/2,i=r*jG;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-i,-r),e.lineTo(i,r),e.moveTo(-i,r),e.lineTo(i,-r)}},Wd={draw(e,t){const n=bt(t/so);e.moveTo(n,0),e.arc(0,0,n,0,lo)}},$S={draw(e,t){const n=bt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},IS=bt(1/3),PG=IS*2,LS={draw(e,t){const n=bt(t/PG),r=n*IS;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},FS={draw(e,t){const n=bt(t)*.62625;e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},NS={draw(e,t){const n=bt(t-hs(t/7,2))*.87559;e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},BS={draw(e,t){const n=bt(t),r=-n/2;e.rect(r,r,n,n)}},WS={draw(e,t){const n=bt(t)*.4431;e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},MG=.8908130915292852,zS=jn(so/10)/jn(7*so/10),$G=jn(lo/10)*zS,IG=-bi(lo/10)*zS,RS={draw(e,t){const n=bt(t*MG),r=$G*n,i=IG*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=lo*o/5,s=bi(a),l=jn(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},Eg=bt(3),VS={draw(e,t){const n=-bt(t/(Eg*3));e.moveTo(0,n*2),e.lineTo(-Eg*n,-n),e.lineTo(Eg*n,-n),e.closePath()}},LG=bt(3),US={draw(e,t){const n=bt(t)*.6824,r=n/2,i=n*LG/2;e.moveTo(0,-n),e.lineTo(i,r),e.lineTo(-i,r),e.closePath()}},ar=-.5,sr=bt(3)/2,Og=1/bt(12),FG=(Og/2+1)*3,HS={draw(e,t){const n=bt(t/FG),r=n/2,i=n*Og,o=r,a=n*Og+n,s=-o,l=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(ar*r-sr*i,sr*r+ar*i),e.lineTo(ar*o-sr*a,sr*o+ar*a),e.lineTo(ar*s-sr*l,sr*s+ar*l),e.lineTo(ar*r+sr*i,ar*i-sr*r),e.lineTo(ar*o+sr*a,ar*a-sr*o),e.lineTo(ar*s+sr*l,ar*l-sr*s),e.closePath()}},kg={draw(e,t){const n=bt(t-hs(t/6,1.7))*.6189;e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},GS=[Wd,$S,LS,BS,RS,VS,HS],NG=[Wd,NS,kg,US,MS,WS,FS];function BG(e,t){let n=null,r=Nl(i);e=typeof e=="function"?e:je(e||Wd),t=typeof t=="function"?t:je(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:je(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:je(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function co(){}function zd(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Rd(e){this._context=e}Rd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:zd(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:zd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function WG(e){return new Rd(e)}function qS(e){this._context=e}qS.prototype={areaStart:co,areaEnd:co,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:zd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zG(e){return new qS(e)}function YS(e){this._context=e}YS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:zd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function RG(e){return new YS(e)}function KS(e,t){this._basis=new Rd(e),this._beta=t}KS.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],o=e[n]-r,a=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*o),this._beta*t[s]+(1-this._beta)*(i+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const VG=function e(t){function n(r){return t===1?new Rd(r):new KS(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Vd(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Tg(e,t){this._context=e,this._k=(1-t)/6}Tg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Vd(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Vd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const UG=function e(t){function n(r){return new Tg(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Ag(e,t){this._context=e,this._k=(1-t)/6}Ag.prototype={areaStart:co,areaEnd:co,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Vd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const HG=function e(t){function n(r){return new Ag(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Dg(e,t){this._context=e,this._k=(1-t)/6}Dg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Vd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const GG=function e(t){function n(r){return new Dg(r,t)}return n.tension=function(r){return e(+r)},n}(0);function jg(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>hn){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>hn){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function ZS(e,t){this._context=e,this._alpha=t}ZS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:jg(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const qG=function e(t){function n(r){return t?new ZS(r,t):new Tg(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function XS(e,t){this._context=e,this._alpha=t}XS.prototype={areaStart:co,areaEnd:co,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:jg(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const YG=function e(t){function n(r){return t?new XS(r,t):new Ag(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function JS(e,t){this._context=e,this._alpha=t}JS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:jg(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const KG=function e(t){function n(r){return t?new JS(r,t):new Dg(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function QS(e){this._context=e}QS.prototype={areaStart:co,areaEnd:co,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function ZG(e){return new QS(e)}function ew(e){return e<0?-1:1}function tw(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(ew(o)+ew(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function nw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Pg(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Ud(e){this._context=e}Ud.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Pg(this,this._t0,nw(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Pg(this,nw(this,n=tw(this,e,t)),n);break;default:Pg(this,this._t0,n=tw(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function rw(e){this._context=new iw(e)}(rw.prototype=Object.create(Ud.prototype)).point=function(e,t){Ud.prototype.point.call(this,t,e)};function iw(e){this._context=e}iw.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function XG(e){return new Ud(e)}function JG(e){return new rw(e)}function ow(e){this._context=e}ow.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=aw(e),i=aw(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function aw(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function QG(e){return new ow(e)}function Hd(e,t){this._context=e,this._t=t}Hd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function eq(e){return new Hd(e,.5)}function tq(e){return new Hd(e,0)}function nq(e){return new Hd(e,1)}function ms(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function gs(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function rq(e,t){return e[t]}function iq(e){const t=[];return t.key=e,t}function oq(){var e=je([]),t=gs,n=ms,r=rq;function i(o){var a=Array.from(e.apply(this,arguments),iq),s,l=a.length,c=-1,u;for(const d of o)for(s=0,++c;s<l;++s)(a[s][c]=[0,+r(d,a[s].key,c,o)]).data=d;for(s=0,u=Ld(t(a));s<l;++s)a[u[s]].index=s;return n(a,u),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:je(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:je(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?gs:typeof o=="function"?o:je(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??ms,i):n},i}function aq(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}ms(e,t)}}function sq(e,t){if((l=e.length)>0)for(var n,r=0,i,o,a,s,l,c=e[t[0]].length;r<c;++r)for(a=s=0,n=0;n<l;++n)(o=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}function lq(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}ms(e,t)}}function cq(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,l=0,c=0;s<a;++s){for(var u=e[t[s]],d=u[r][1]||0,f=u[r-1][1]||0,h=(d-f)/2,g=0;g<s;++g){var p=e[t[g]],v=p[r][1]||0,b=p[r-1][1]||0;h+=v-b}l+=d,c+=h*d}i[r-1][1]+=i[r-1][0]=n,l&&(n-=c/l)}i[r-1][1]+=i[r-1][0]=n,ms(e,t)}}function sw(e){var t=e.map(uq);return gs(e).sort(function(n,r){return t[n]-t[r]})}function uq(e){for(var t=-1,n=0,r=e.length,i,o=-1/0;++t<r;)(i=+e[t][1])>o&&(o=i,n=t);return n}function lw(e){var t=e.map(cw);return gs(e).sort(function(n,r){return t[n]-t[r]})}function cw(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function dq(e){return lw(e).reverse()}function fq(e){var t=e.length,n,r,i=e.map(cw),o=sw(e),a=0,s=0,l=[],c=[];for(n=0;n<t;++n)r=o[n],a<s?(a+=i[r],l.push(r)):(s+=i[r],c.push(r));return c.reverse().concat(l)}function hq(e){return gs(e).reverse()}const mq=Object.freeze(Object.defineProperty({__proto__:null,arc:bg,area:Nd,areaRadial:Cg,curveBasis:WG,curveBasisClosed:zG,curveBasisOpen:RG,curveBumpX:jS,curveBumpY:PS,curveBundle:VG,curveCardinal:UG,curveCardinalClosed:HG,curveCardinalOpen:GG,curveCatmullRom:qG,curveCatmullRomClosed:YG,curveCatmullRomOpen:KG,curveLinear:Bl,curveLinearClosed:ZG,curveMonotoneX:XG,curveMonotoneY:JG,curveNatural:QG,curveStep:eq,curveStepAfter:nq,curveStepBefore:tq,line:Fd,lineRadial:wg,link:Bd,linkHorizontal:TG,linkRadial:DG,linkVertical:AG,pie:kS,pointRadial:zl,radialArea:Cg,radialLine:wg,stack:oq,stackOffsetDiverging:sq,stackOffsetExpand:aq,stackOffsetNone:ms,stackOffsetSilhouette:lq,stackOffsetWiggle:cq,stackOrderAppearance:sw,stackOrderAscending:lw,stackOrderDescending:dq,stackOrderInsideOut:fq,stackOrderNone:gs,stackOrderReverse:hq,symbol:BG,symbolAsterisk:MS,symbolCircle:Wd,symbolCross:$S,symbolDiamond:LS,symbolDiamond2:FS,symbolPlus:NS,symbolSquare:BS,symbolSquare2:WS,symbolStar:RS,symbolTimes:kg,symbolTriangle:VS,symbolTriangle2:US,symbolWye:HS,symbolX:kg,symbols:GS,symbolsFill:GS,symbolsStroke:NG},Symbol.toStringTag,{value:"Module"})),uw=e=>{const t=e._y1!==void 0?e._y1:e._y;return t!=null&&e._y0!==null},dw=e=>t=>e.x(t._x1!==void 0?t._x1:t._x),Mg=e=>t=>e.y(t._y1!==void 0?t._y1:t._y),gq=e=>t=>-1*e.x(t._x1!==void 0?t._x1:t._x)+Math.PI/2,fw=e=>`curve${(n=>n&&n[0].toUpperCase()+n.slice(1))(e)}`,pq=e=>`${fw(e)}Closed`,Gd=e=>{const{interpolation:t}=e;if(typeof t=="function")return t;if(typeof t=="string"){const{polar:n,openCurve:r=!n}=e,i=r?fw(t):pq(t);return mq[i]}return Bl},hw=e=>{const{polar:t,scale:n,horizontal:r}=e;return t?wg().defined(uw).curve(Gd(e)).angle(gq(n)).radius(Mg(n)):Fd().defined(uw).curve(Gd(e)).x(r?Mg(n):dw(n)).y(r?dw(n):Mg(n))};function $g(e){process.env.NODE_ENV!=="production"&&console&&console.warn&&console.warn(e)}function yq(e,t,n){return`M ${e}, ${t}
|
159
159
|
m ${-n}, 0
|
160
160
|
a ${n}, ${n} 0 1,0 ${n*2},0
|
161
161
|
a ${n}, ${n} 0 1,0 ${-n*2},0`}function vq(e,t,n){const r=.87*n,i=e-r,o=t+r,a=e+r-i;return`M ${i}, ${o}
|
@@ -204,8 +204,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[ru]+=1);const iu=De.button`
|
|
204
204
|
v-${i}
|
205
205
|
h-${s}
|
206
206
|
z`}function Eq(e,t,n){const r=1.35*n,i=Math.PI/5;return`M ${v0(10).map(a=>{const s=a%2===0?r:r/2;return`${s*Math.sin(i*(a+1))+e},
|
207
|
-
${s*Math.cos(i*(a+1))+t}`}).join("L")} z`}const Oq=Object.freeze(Object.defineProperty({__proto__:null,circle:yq,cross:wq,diamond:bq,minus:Cq,plus:Sq,square:vq,star:Eq,triangleDown:xq,triangleUp:_q},Symbol.toStringTag,{value:"Module"}));function mw(e,t,n){const{a:r,d:i,e:o,f:a}=t;return n==="y"?i*e+a:r*e+o}function kq(e){return e.getScreenCTM().inverse()}function gw(e){return!!(e&&e.identifier!==void 0)}function Tq(e){return e.changedTouches&&e.changedTouches.length>0}function xi(e){if(gw(e.nativeEvent))return;const t=n=>n.nodeName==="svg"?n:n.parentNode?t(n.parentNode):n;return t(e.target)}function Ur(e,t){if(gw(e.nativeEvent))return{x:e.nativeEvent.locationX,y:e.nativeEvent.locationY};const n=Tq(e)?e.changedTouches[0]:e,r=kq(t||xi(n));return{x:mw(n.clientX,r,"x"),y:mw(n.clientY,r,"y")}}function _i(e,t){const{horizontal:n}=e,r=e.scale,i=t||{x:r.x.domain(),y:r.y.domain()};return{x:n?[r.y(i.y[0]),r.y(i.y[1])]:[r.x(i.x[0]),r.x(i.x[1])],y:n?[r.x(i.x[0]),r.x(i.x[1])]:[r.y(i.y[0]),r.y(i.y[1])]}}function qd(e,t,n,r){const{polar:i,horizontal:o}=e;if(!i)return{x:o?t.x.invert(r):t.x.invert(n),y:o?t.y.invert(n):t.y.invert(r)};const a=e.origin||{x:0,y:0},s=n-a.x,l=r-a.y,c=Math.abs(s*Math.sqrt(1+Math.pow(-l/s,2))),u=(-Math.atan2(l,s)+Math.PI*2)%(Math.PI*2);return{x:t.x.invert(u),y:t.y.invert(c)}}function Yd(e){const{x1:t,x2:n,y1:r,y2:i,scale:o}=e,a=qd(e,o,t,r),s=qd(e,o,n,i),l=(c,u)=>[Dn([c,u]),tr([c,u])];return{x:l(a.x,s.x),y:l(a.y,s.y)}}const Aq={blue:"#4F7DA1",pink:"#E2A37F",teal:"#00796B",purple:"#DF948A",green:"#8BC34A",orange:"#F4511E",cyan:"#006064",red:"#DF5A49",yellow:"#FFF59D"},ps=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],bn="#252525",Ig="#969696",Dq=["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],jq=["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],Pq=["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],Mq=["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],$q=["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],Iq=["#354722","#466631","#649146","#8AB25C","#A9C97E"],Lq=["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"],Fq="'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",Nq="normal",Bq=14,Un={width:450,height:300,padding:50,colorScale:ps},qt={fontFamily:Fq,fontSize:Bq,letterSpacing:Nq,padding:10,fill:bn,stroke:"transparent"},Wq=Object.assign({textAnchor:"middle"},qt),zq={palette:{colors:Aq,grayscale:ps,qualitative:Dq,heatmap:jq,warm:Pq,cool:Mq,red:$q,green:Iq,blue:Lq},area:Object.assign({style:{data:{fill:bn},labels:qt}},Un),axis:Object.assign({style:{axis:{fill:"transparent",stroke:bn,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},Wq,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:qt}},Un),bar:Object.assign({style:{data:{fill:bn,padding:8,strokeWidth:0},labels:qt}},Un),boxplot:Object.assign({style:{max:{padding:8,stroke:bn,strokeWidth:1},maxLabels:Object.assign({},qt,{padding:3}),median:{padding:8,stroke:bn,strokeWidth:1},medianLabels:Object.assign({},qt,{padding:3}),min:{padding:8,stroke:bn,strokeWidth:1},minLabels:Object.assign({},qt,{padding:3}),q1:{padding:8,fill:Ig},q1Labels:Object.assign({},qt,{padding:3}),q3:{padding:8,fill:Ig},q3Labels:Object.assign({},qt,{padding:3})},boxWidth:20},Un),candlestick:Object.assign({style:{data:{stroke:bn,strokeWidth:1},labels:Object.assign({},qt,{padding:5})},candleColors:{positive:"#ffffff",negative:bn}},Un),chart:Un,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:bn,strokeWidth:2},labels:qt}},Un),group:Object.assign({colorScale:ps},Un),histogram:Object.assign({style:{data:{fill:Ig,stroke:bn,strokeWidth:2},labels:qt}},Un),legend:{colorScale:ps,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:qt,title:Object.assign({},qt,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:bn,strokeWidth:2},labels:qt}},Un),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},qt,{padding:20})},colorScale:ps,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:bn,stroke:"transparent",strokeWidth:0},labels:qt}},Un),stack:Object.assign({colorScale:ps},Un),tooltip:{style:Object.assign({},qt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:bn,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},qt,{padding:5,pointerEvents:"none"}),flyout:{stroke:bn,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Un)},pw="#FFF59D",yw="#F4511E",Rq="#DCE775",vw="#8BC34A",bw="#00796B",xw="#006064",Kd=[yw,pw,Rq,vw,bw,xw],Lg="#ECEFF1",Fg="#90A4AE",xn="#455A64",Rl="#212121",Vq={blue:"#4F7DA1",pink:"#E2A37F",teal:bw,purple:"#DF948A",green:vw,orange:yw,cyan:xw,red:"#DF5A49",yellow:pw},Uq=[Lg,Fg,xn,Rl],Hq=["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],Gq=["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],qq=["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],Yq=["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],Kq=["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],Zq=["#354722","#466631","#649146","#8AB25C","#A9C97E"],Xq=["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"],Jq="'Helvetica Neue', 'Helvetica', sans-serif",Qq="normal",eY=12,Si=8,Pn={width:350,height:350,padding:50},Yt={fontFamily:Jq,fontSize:eY,letterSpacing:Qq,padding:Si,fill:xn,stroke:"transparent",strokeWidth:0},tY=Object.assign({textAnchor:"middle"},Yt),nY="10, 5",Ng="round",Bg="round",rY={palette:{colors:Vq,grayscale:Uq,qualitative:Hq,heatmap:Gq,warm:qq,cool:Yq,red:Kq,green:Zq,blue:Xq},area:Object.assign({style:{data:{fill:Rl},labels:Yt}},Pn),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Fg,strokeWidth:2,strokeLinecap:Ng,strokeLinejoin:Bg},axisLabel:Object.assign({},tY,{padding:Si,stroke:"transparent"}),grid:{fill:"none",stroke:Lg,strokeDasharray:nY,strokeLinecap:Ng,strokeLinejoin:Bg,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Fg,strokeWidth:1,strokeLinecap:Ng,strokeLinejoin:Bg},tickLabels:Object.assign({},Yt,{fill:xn})}},Pn),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:xn,padding:Si,strokeWidth:0},labels:Yt}},Pn),boxplot:Object.assign({style:{max:{padding:Si,stroke:xn,strokeWidth:1},maxLabels:Object.assign({},Yt,{padding:3}),median:{padding:Si,stroke:xn,strokeWidth:1},medianLabels:Object.assign({},Yt,{padding:3}),min:{padding:Si,stroke:xn,strokeWidth:1},minLabels:Object.assign({},Yt,{padding:3}),q1:{padding:Si,fill:xn},q1Labels:Object.assign({},Yt,{padding:3}),q3:{padding:Si,fill:xn},q3Labels:Object.assign({},Yt,{padding:3})},boxWidth:20},Pn),candlestick:Object.assign({style:{data:{stroke:xn},labels:Object.assign({},Yt,{padding:5})},candleColors:{positive:"#ffffff",negative:xn}},Pn),chart:Pn,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:xn,strokeWidth:2},labels:Yt}},Pn),group:Object.assign({colorScale:Kd},Pn),histogram:Object.assign({style:{data:{fill:xn,stroke:Rl,strokeWidth:2},labels:Yt}},Pn),legend:{colorScale:Kd,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Yt,title:Object.assign({},Yt,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:xn,strokeWidth:2},labels:Yt}},Pn),pie:Object.assign({colorScale:Kd,style:{data:{padding:Si,stroke:Lg,strokeWidth:1},labels:Object.assign({},Yt,{padding:20})}},Pn),scatter:Object.assign({style:{data:{fill:xn,opacity:1,stroke:"transparent",strokeWidth:0},labels:Yt}},Pn),stack:Object.assign({colorScale:Kd},Pn),tooltip:{style:Object.assign({},Yt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Rl,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},Yt,{padding:5,pointerEvents:"none"}),flyout:{stroke:Rl,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Pn)},ft={white:"#FFFFFF",50:"#FAFAFA",100:"#F2F2F2",200:"#E8E8E8",300:"#E0E0E0",400:"#D1D1D1",500:"#757575",600:"#5C5C5C",700:"#424242",800:"#333333",900:"#292929",black:"#0F0F0F"},Zd={100:"#FFEAB6",300:"#FFD66E",500:"#FCB400",900:"#B87503"},Xd={100:"#FEE2D5",300:"#FFA981",500:"#FF6F2C",700:"#FF4E1B",900:"#D74D26"},Vl={100:"#FFDCE5",300:"#FF9EB7",500:"#F82B60",700:"#D31A3D",900:"#BA1E45"},_w={100:"#EDE3FE",300:"#CDB0FF",500:"#8B46FF",900:"#6B1CB0"},Ul={100:"#CFDFFF",300:"#9CC7FF",500:"#2D7FF9",700:"#0056B3",900:"#2750AE"},Wg={100:"#D0F0FD",300:"#77D1F3",500:"#18BFFF",900:"#0B76B7"},Sw={100:"#C2F5E9",300:"#72DDC3",500:"#20D9D2",900:"#06A09B"},ys={100:"#D1F7C4",300:"#93E088",500:"#20C933",700:"#1B9B2A",900:"#338A17"},ww={blue:Ul[500],cyan:Wg[500],green:ys[500],yellow:Zd[500],orange:Xd[500],red:Vl[500],purple:_w[500],teal:Sw[500]},uo=Object.values(ww),iY=[ft[100],ft[300],ft[500],ft[700],ft[900]],oY=[Zd[300],Zd[500],Xd[500],Xd[900],Vl[500]],aY=[_w[500],Ul[500],Wg[500],Sw[500],ys[500]],sY=[ys[900],ys[500],Zd[500],Xd[500],Vl[500]],lY=Object.values(Vl),cY=Object.values(ys),uY=Object.values(Ul),Hl=Ul[500],dY="'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif",fY="normal",hY=12,wi=8,Mn={width:450,height:300,padding:60,colorScale:uo},At={fontFamily:dY,fontSize:hY,fontWeight:300,letterSpacing:fY,padding:wi,fill:ft[900],stroke:"transparent"},mY=Object.assign({textAnchor:"middle"},At),Cw="10, 5",na="round",vs="round",ra=1,gY={palette:{colors:ww,grayscale:iY,qualitative:uo,heatmap:sY,warm:oY,cool:aY,red:lY,green:cY,blue:uY},area:Object.assign({style:{data:{fill:Hl,strokeWidth:2,fillOpacity:.5},labels:At}},Mn),axis:Object.assign({style:{axis:{fill:"transparent",stroke:ft[500],strokeWidth:1,strokeLinecap:na,strokeLinejoin:vs},axisLabel:Object.assign({},mY,{padding:35,stroke:"transparent"}),grid:{fill:"none",stroke:"none",painterEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:"transparent"},tickLabels:At}},Mn),polarAxis:Object.assign({style:{axis:{stroke:ft[500]},grid:{stroke:ft[400],strokeDasharray:Cw,strokeLinecap:na,strokeLinejoin:vs,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:ft[400],strokeWidth:1,strokeLinecap:na,strokeLinejoin:vs},tickLabels:At}}),polarDependentAxis:Object.assign({style:{axis:{stroke:ft[500]},grid:{stroke:ft[400],strokeDasharray:Cw,strokeLinecap:na,strokeLinejoin:vs,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:ft[300],strokeWidth:1,strokeLinecap:na,strokeLinejoin:vs},tickLabels:At}}),bar:Object.assign({style:{data:{fill:Hl,padding:wi,strokeWidth:1,fillOpacity:.5},labels:At},cornerRadius:{top:ra}},Mn),boxplot:Object.assign({style:{max:{padding:wi,stroke:ft[400],strokeWidth:2},maxLabels:Object.assign({},At,{padding:3}),median:{padding:wi,stroke:ft.white,strokeWidth:2},medianLabels:Object.assign({},At,{padding:3}),min:{padding:wi,stroke:ft[400],strokeWidth:2},minLabels:Object.assign({},At,{padding:3}),q1:{padding:wi,fill:uo[0],rx:ra,strokeWidth:2},q1Labels:Object.assign({},At,{padding:3}),q3:{padding:wi,fill:uo[1],rx:ra},q3Labels:Object.assign({},At,{padding:3})},boxWidth:20},Mn),candlestick:Object.assign({style:{data:{stroke:ft[300],strokeWidth:0,rx:ra},labels:Object.assign({},At,{padding:5})},candleColors:{positive:ys[500],negative:Vl[500]},wickStrokeWidth:2},Mn),chart:Mn,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:ft[700],strokeWidth:2,strokeLinecap:na},labels:At}},Mn),group:Object.assign({colorScale:uo},Mn),histogram:Object.assign({style:{data:{fill:Wg[500],fillOpacity:.5},labels:At},binSpacing:4,cornerRadius:{top:ra}},Mn),label:At,legend:{colorScale:uo,gutter:24,borderPadding:10,orientation:"horizontal",titleOrientation:"top",centerTitle:!0,style:{data:{type:"circle"},labels:{...At,fontSize:12},title:Object.assign({},At,{padding:wi,fontSize:16}),border:{stroke:ft[200],strokeWidth:2,padding:16}}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:Hl,strokeWidth:2,strokeLinecap:na,strokeLinejoin:vs},labels:At}},Mn),pie:Object.assign({style:{parent:{backgroundColor:ft.white},data:{padding:wi,stroke:ft.white,strokeWidth:1},labels:{...At,padding:20,fill:ft[600],fontSize:10}},colorScale:uo,cornerRadius:ra},Mn),scatter:Object.assign({style:{data:{fill:Hl,opacity:1,stroke:"transparent",strokeWidth:0},labels:{...At,padding:20}}},Mn),stack:Object.assign({colorScale:uo},Mn),tooltip:{style:Object.assign({},At,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:ft[300],strokeWidth:2,fill:ft.white,pointerEvents:"none"},flyoutPadding:{top:8,bottom:8,left:16,right:16},cornerRadius:ra,pointerLength:4},voronoi:Object.assign({style:{data:{fill:Ul[100],stroke:Hl,strokeWidth:2},labels:Object.assign({},At,{padding:5,pointerEvents:"none"}),flyout:{stroke:ft[900],strokeWidth:1,fill:ft[100],pointerEvents:"none"},padding:{left:2,bottom:2}}},Mn)},Ar={grayscale:zq,material:rY,clean:gY},zg=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(n.length>0)return n.reduce((o,a)=>[o,zg(a)].join(" "),zg(e)).trim();if(e==null||typeof e=="string")return e;const i=[];for(const o in e)if(e.hasOwnProperty(o)){const a=e[o];i.push(`${o}(${a})`)}return i.join(" ").trim()};function Rg(e,t){var f;t===void 0&&(t=Ar.material);const{palette:{grayscale:n=["#cccccc","#969696","#636363","#252525"],qualitative:r=[],heatmap:i=[],warm:o=[],cool:a=[],red:s=[],blue:l=[],green:c=[]}={}}=t,u={grayscale:n,qualitative:r,heatmap:i,warm:o,cool:a,red:s,blue:l,green:c};return e&&((f=u[e])!=null&&f.length)?u[e]:u.grayscale}const Ew={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Inter:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2890625,.4671875,.634375,.6421875,.9828125,.6453125,.3,.365625,.365625,.5015625,.6625,.2890625,.4609375,.2890625,.3609375,.63125,.4078125,.6109375,.61875,.646875,.59375,.6203125,.5671875,.61875,.6203125,.2890625,.303125,.6625,.6625,.6625,.5125,.9671875,.690625,.6546875,.73125,.721875,.6015625,.590625,.746875,.74375,.26875,.571875,.671875,.565625,.9046875,.7546875,.765625,.6390625,.765625,.64375,.6421875,.646875,.7453125,.690625,.9859375,.6828125,.6796875,.6296875,.365625,.3609375,.365625,.471875,.45625,.3234375,.5625,.6125,.571875,.6125,.584375,.3703125,.6140625,.5921875,.2421875,.2548828125,.55,.2421875,.8765625,.5921875,.6,.6125,.6125,.3765625,.528125,.328125,.5921875,.5625,.81875,.546875,.5625,.553125,.4265625,.3328125,.4265625,.6625],avg:.5624362664473683},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},Ow={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},kw={em:1,ex:.5},Tw={heightOverlapCoef:1.05,lineCapitalCoef:1.15},Aw={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},pY=e=>e*Math.PI/180,yY=e=>{const n=e.split(",").map(r=>r.replace(/'|"/g,"")).find(r=>Ew[r])||"Helvetica";return Ew[n]},Vg=e=>Array.isArray(e)?e:e.toString().split(/\r\n|\r|\n/g),Jd=(e,t,n)=>{const r=pY(n);return Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t)},Ug=(e,t)=>{var o;const n=(o=e.match(/[a-zA-Z%]+/))==null?void 0:o[0],r=Number(e.match(/[0-9.,]+/));let i;return n?Ow.hasOwnProperty(n)?i=r*Ow[n]:kw.hasOwnProperty(n)?i=(t?r*t:r*Aw.fontSize)*kw[n]:i=r:i=r||0,i},Hg=(e,t)=>{const n=Array.isArray(e)?e[t]:e,r=K({},n,Aw);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:typeof r.letterSpacing=="number"?r.letterSpacing:Ug(String(r.letterSpacing),r.fontSize),fontSize:typeof r.fontSize=="number"?r.fontSize:Ug(String(r.fontSize))})},vY=(e,t)=>{if(e===void 0||e===""||e===null)return 0;const n=Vg(e).map((r,i)=>{const o=r.toString().length,{fontSize:a,letterSpacing:s,fontFamily:l}=Hg(t,i),c=yY(l);return r.toString().split("").map(d=>d.charCodeAt(0)<c.widths.length?c.widths[d.charCodeAt(0)]:c.avg).reduce((d,f)=>f+d,0)*a+s*Math.max(o-1,0)});return Math.max(...n)},bY=(e,t)=>e===void 0||e===""||e===null?0:Vg(e).reduce((n,r,i)=>{const o=Hg(t,i),s=r.toString().match(/[(A-Z)(0-9)]/)?o.fontSize*Tw.lineCapitalCoef:o.fontSize;return n+o.lineHeight*s},0),xY=(e,t)=>{const n=Array.isArray(t)?t[0]&&t[0].angle:t&&t.angle,r=bY(e,t),i=vY(e,t),o=n?Jd(i,r,n):i,a=n?Jd(r,i,n):r;return{width:o,height:a*Tw.heightOverlapCoef}},Gg=dx(()=>{const e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("xlink","http://www.w3.org/1999/xlink"),e.setAttribute("width","300"),e.setAttribute("height","300"),e.setAttribute("viewBox","0 0 300 300"),e.setAttribute("aria-hidden","true");const t=document.createElementNS("http://www.w3.org/2000/svg","text");return e.appendChild(t),e.style.position="fixed",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e),t}),Dw=e=>e?`${e.angle}:${e.fontFamily}:${e.fontSize}:${e.letterSpacing}:${e.lineHeight}`:"null",_Y=dx((e,t)=>{var a,s;let n=Gg();n.isConnected||((s=(a=Gg.cache).clear)==null||s.call(a),n=Gg());const r=Vg(e);let i=0;for(const[l,c]of r.entries()){const u=document.createElementNS("http://www.w3.org/2000/svg","tspan"),d=Hg(t,l);u.style.fontFamily=d.fontFamily,u.style.fontSize=`${d.fontSize}px`,u.style.lineHeight=d.lineHeight,u.style.fontFamily=d.fontFamily,u.style.letterSpacing=d.letterSpacing,u.textContent=c,u.setAttribute("x","0"),u.setAttribute("y",`${i}`),n.appendChild(u),i+=d.lineHeight*u.getBoundingClientRect().height}const{width:o}=n.getBoundingClientRect();return n.innerHTML="",{width:t!=null&&t.angle?Jd(o,i,t==null?void 0:t.angle):o,height:t!=null&&t.angle?Jd(i,o,t==null?void 0:t.angle):i}},(e,t)=>{const n=Array.isArray(e)?e.join():e,r=Array.isArray(t)?t.map(Dw).join():Dw(t);return`${n}::${r}`}),SY={impl:function(e,t,n){return n===void 0&&(n=!1),!(typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u")||n?xY(e,t):_Y(e,t)}},ia=(e,t)=>SY.impl(e,t);var wY=fl,CY=j2;function EY(e,t){return e&&e.length?CY(e,wY(t)):[]}var OY=EY;const jw=Fe(OY);function kY(e,t,n,r){for(var i=-1,o=e==null?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}var TY=kY,AY=Hx;function DY(e,t,n,r){return AY(e,function(i,o,a){t(r,i,n(i),a)}),r}var jY=DY,PY=TY,MY=jY,$Y=fl,IY=yn;function LY(e,t){return function(n,r){var i=IY(n)?PY:MY,o=t?t():{};return i(n,e,$Y(r),o)}}var FY=LY,NY=od,BY=FY,WY=Object.prototype,zY=WY.hasOwnProperty,RY=BY(function(e,t,n){zY.call(e,n)?e[n].push(t):NY(e,n,[t])}),VY=RY;const Qd=Fe(VY);function UY(e){let{children:t,props:n,childComponents:r,parentProps:i}=e;const o=t.some(l=>l.type&&l.type.role==="histogram"),a=o&&t.length&&t.every(l=>l.type&&l.type.role==="histogram");if(o&&!a&&$g("VictoryHistogram only supports being stacked with other VictoryHistogram components. Check to make sure that you are only passing VictoryHistogram components to VictoryStack"),!a)return i;let s=n.bins||r[0].props.bins;if(!Array.isArray(s)){const l=t.reduce((u,d)=>{const f=ld(d.props.x||"x");return u.concat(d.props.data.map(h=>({x:f(h)})))},[]),c=t[0].type.getFormattedData;s=c({data:l,bins:s}).reduce((u,d,f)=>{let{x0:h,x1:g}=d;return f===0?u.concat([h,g]):u.concat(g)},[])}return{...i,bins:s}}function HY(e,t){const{polar:n,startAngle:r,endAngle:i,categories:o,minDomain:a,maxDomain:s}=e;let l={polar:n,startAngle:r,endAngle:i,categories:o,minDomain:a,maxDomain:s},c=0;const u=t?t.slice(0):y.Children.toArray(e.children);l=UY({children:u,props:e,childComponents:t,parentProps:l});const d=(v,b,x)=>{const S=Object.assign({},v.props,l);let w,_=v;if(ds(v))v.type&&Se(v.type.getData)?(_=x?y.cloneElement(v,x.props):v,w=_.type.getData(S)):w=dn(S);else return null;return c+=1,w.map((E,O)=>Object.assign({_stack:c,_group:O},E))},f=u.filter(v=>v.type&&v.type.role==="stack").length,g=ro(u,d,e,[],(v,b)=>v.concat(jw(b,"_group")));return Object.values(Qd(g,f?"_group":"_stack"))}function Pw(e,t,n){const{datasets:r,horizontal:i}=e,o=i?Nt(e,"y"):Nt(e,"x"),a=Math.abs(o[1]-o[0]),s=n!==void 0?n:Array.isArray(r[0])&&r[0].length||1,c=(t||r.length)*s;return Math.round(.5*a/c)}function GY(e,t,n){if(e.polar||t!=="x")return;const r=n.filter(u=>u.type&&u.type.role&&u.type.role==="group");if(r.length<1)return;const{offset:i,children:o}=r[0].props;if(!i)return;const a=Array.isArray(o)&&o[0];if(!a)return;let s=a.props.barWidth,l=a.props.data&&a.props.data.length||1;if(a&&a.type.role==="stack"){const u=a.props.children&&a.props.children[0];if(!u)return;s=u.props.barWidth,l=a.props.children.length}const c=s||Pw(e,o.length,l);return{x:c*o.length/2+(i-c*((o.length-1)/2))}}function ef(e,t,n){const r=n?n.slice(0):y.Children.toArray(e.children),i=e.data?dn(e):void 0,{polar:o,startAngle:a,endAngle:s,categories:l,minDomain:c,maxDomain:u,horizontal:d}=e,f={horizontal:d,polar:o,startAngle:a,endAngle:s,minDomain:c,maxDomain:u,categories:l},h=i?Object.assign(f,{data:i}):f,p=ro(r,x=>{const S=Object.assign({},x.props,h);if(lS(x)){if(x.type&&Se(x.type.getDomain))return x.props&&x.type.getDomain(S,t)}else return null;return Jo(S,t)},e),v=p.length===0?0:Dn(p),b=p.length===0?1:tr(p);return[v,b]}function qg(e,t,n){const r=n||y.Children.toArray(e.children),i=cg(e,t),o=GY(e,t,r);let a;if(i)a=i;else{const s=ea(e,t),l=Qo(e,t),c=(e.data||e.y)&&dn(e),u=c?lg(e,t,c):[],d=ef(e,t,r),f=s||Dn([...u,...d]),h=l||tr([...u,...d]);a=vi(f,h)}return sg(a,Object.assign({domainPadding:o},e),t)}function tf(e,t,n){if(e.data)return ir(e,t);const r=y.Children.toArray(e.children),o=qo(ro(r,a=>{const s=Object.assign({},a.props,{horizontal:e.horizontal});return Ad(s,t)},e));return o.length>1?$l("linear"):$l(o[0])}function Mw(e){const n=C0(e,["groupComponent","containerComponent","labelComponent"]);let r=e.events;return Array.isArray(n)&&(r=Array.isArray(e.events)?n.concat(...e.events):n),r||[]}function qY(e,t,n,r){const{style:i}=e;let{colorScale:o,color:a}=e;if(i&&i.data&&i.data.fill)return i.data.fill;if(o=t.props&&t.props.colorScale?t.props.colorScale:o,a=t.props&&t.props.color?t.props.color:a,!o&&!a)return;const s=Array.isArray(o)?o:Rg(o,r);return a||s[n%s.length]}function YY(e,t,n){const r=e&&e[n]&&e[n].style?e[n].style:{};return Cl(t,r)}function KY(e,t,n,r){const{style:i,role:o}=n,a=e.props.style||{};if(Array.isArray(a))return a;const s=e.type&&e.type.role,l=s==="stack"?void 0:qY(n,e,t,r),c=s==="line"?{fill:"none",stroke:l}:{fill:l},u=o==="stack"?{}:{width:Pw(n)},d=K({},a.data,Object.assign({},u,i.data,c)),f=K({},a.labels,i.labels);return{...a,parent:i.parent,data:d,labels:f}}function ZY(e,t){const n=r=>{if(!lS(r))return null;const i=r.props||{};return us(i,t)};return ro(e.slice(0),n)}function XY(e){const t=i=>{const o=i.props||{};let a;if(ds(i))i.type&&Se(i.type.getData)?a=i.type.getData(o):a=dn(o);else return null;return a.map(s=>({x:s.xName,y:s.yName}))},n={x:[],y:[]},r=(i,o)=>{const a=Array.isArray(o)?o.map(l=>l.x).filter(Boolean):o.x,s=Array.isArray(o)?o.map(l=>l.y).filter(Boolean):o.y;return{x:a!==void 0?i.x.concat(a):i.x,y:s!==void 0?i.y.concat(s):i.y}};return ro(e.slice(0),t,{},n,r)}function $w(e,t,n){const r=us(e,t),i=uS(n,t),o=i?aS(i.props,t):[],a=r.length?r:ZY(n,t);return qo([...a,...o].flat())}function Iw(e,t){const n=t||y.Children.toArray(e.children),r=$w(e,"x",n),i=$w(e,"y",n),o=XY(n);return{x:qo([...r,...o.x].flat()),y:qo([...i,...o.y].flat())}}function Lw(e,t,n){const r=e.categories&&us(e,"x"),i=e.categories&&us(e,"y"),a=!r||!i?n||Iw(e,t):{},s=r||a.x,l=i||a.y;return{x:s.length>0?s:void 0,y:l.length>0?l:void 0}}const Yg=y.createContext(void 0);Yg.displayName="PortalContext";const Fw=()=>y.useContext(Yg),JY=e=>{let{children:t}=e;const[n,r]=y.useState(new Map),i=y.useCallback((s,l)=>{r(c=>{const u=new Map(c);return u.set(s,l),u})},[r]),o=y.useCallback(s=>{r(l=>{const c=new Map(l);return c.delete(s),c})},[r]),a=y.useMemo(()=>({addChild:i,removeChild:o,children:n}),[i,o,n]);return y.createElement(Yg.Provider,{value:a},t)},QY=e=>{let{as:t,...n}=e;const r=Fw();if(!r)return null;const i=Array.from(r.children.values());return y.cloneElement(t,n,i)};function Kg(){return Kg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kg.apply(this,arguments)}const eK={className:"VictoryContainer",portalComponent:y.createElement(WW,null),portalZIndex:99,responsive:!0,role:"img"};function tK(e){const t={...eK,...e},{title:n,desc:r,width:i,height:o,responsive:a}=t,s=y.useRef(null),l=y.useRef(_l("victory-container-")),c=t.containerId??l.current,u=S=>`${c}-${S}`,d=Tr(t),f=a?{width:"100%",height:"100%"}:{width:i,height:o},h=a?`0 0 ${i} ${o}`:void 0,g=a?t.preserveAspectRatio:void 0,p=[n&&u("title"),t["aria-labelledby"]].filter(Boolean).join(" ")||void 0,v=[r&&u("desc"),t["aria-describedby"]].filter(Boolean).join(" ")||void 0,b=u("title"),x=u("desc");return{...t,titleId:b,descId:x,dimensions:f,viewBox:h,preserveAspectRatio:g,ariaLabelledBy:p,ariaDescribedBy:v,userProps:d,localContainerRef:s}}const Qt=e=>{const{role:t,title:n,desc:r,children:i,className:o,portalZIndex:a,portalComponent:s,width:l,height:c,style:u,tabIndex:d,responsive:f,events:h,ouiaId:g,ouiaSafe:p,ouiaType:v,dimensions:b,ariaDescribedBy:x,ariaLabelledBy:S,viewBox:w,preserveAspectRatio:_,userProps:E,titleId:O,descId:T,containerRef:D,localContainerRef:j}=tK(e);return y.useEffect(()=>{if(!(h!=null&&h.onWheel))return;const A=P=>P.preventDefault(),M=j==null?void 0:j.current;return M==null||M.addEventListener("wheel",A),()=>{M==null||M.removeEventListener("wheel",A)}},[]),y.createElement("div",{className:o,style:{...u,width:f?u==null?void 0:u.width:b.width,height:f?u==null?void 0:u.height:b.height,pointerEvents:(u==null?void 0:u.pointerEvents)??"none",touchAction:(u==null?void 0:u.touchAction)??"none",position:(u==null?void 0:u.position)??"relative"},"data-ouia-component-id":g,"data-ouia-component-type":v,"data-ouia-safe":p,ref:QR([j,D])},y.createElement(JY,null,y.createElement("svg",Kg({width:l,height:c,tabIndex:d,role:t,"aria-labelledby":S,"aria-describedby":x,viewBox:w,preserveAspectRatio:_,style:{...b,pointerEvents:"all"}},E,h),n?y.createElement("title",{id:O},n):null,r?y.createElement("desc",{id:T},r):null,i),y.createElement("div",{style:{...b,zIndex:a,position:"absolute",top:0,left:0}},y.createElement(QY,{as:s,width:l,height:c,viewBox:w,preserveAspectRatio:_,style:{...b,overflow:"visible"}}))))};Qt.role="container";const nK={groupComponent:y.createElement("g",null)},nf=e=>{const t={...nK,...e},[n]=y.useState(_l()),r=Fw();r||$g("`renderInPortal` is not supported outside of `VictoryContainer`. Component will be rendered in place");const i=Array.isArray(t.children)?t.children[0]:t.children,{groupComponent:o}=t,a=i&&i.props||{},s=a.groupComponent?{groupComponent:o,standalone:!1}:{},l=K(s,a,wl(t,["children","groupComponent"]),{key:a.key??n}),c=i&&y.cloneElement(i,l);return y.useEffect(()=>{r==null||r.addChild(n,c)},[t.children]),y.useEffect(()=>()=>r==null?void 0:r.removeChild(n),[]),r?null:c};nf.role="portal";function rf(){return rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rf.apply(this,arguments)}const oa=y.forwardRef((e,t)=>{var l;const{desc:n,id:r,tabIndex:i,origin:o,...a}=e,s={vectorEffect:"non-scaling-stroke",id:(l=te(r,e))==null?void 0:l.toString(),tabIndex:te(i,e),...a};return n?y.createElement("rect",rf({},s,{ref:t}),y.createElement("desc",null,n)):y.createElement("rect",rf({},s,{ref:t}))}),rK=e=>{var c;const{children:t,desc:n,id:r,origin:i,tabIndex:o,title:a,...s}=e,l={id:(c=te(r,e))==null?void 0:c.toString(),tabIndex:te(o,e),...s};return y.createElement("text",l,a&&y.createElement("title",null,a),n&&y.createElement("desc",null,n),t)},iK=e=>{var s;const{desc:t,id:n,tabIndex:r,origin:i,...o}=e,a={id:(s=te(n,e))==null?void 0:s.toString(),tabIndex:te(r,e),...o};return y.createElement("tspan",a)},aa={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},Nw=(e,t)=>e.datum?is(e,e.datum)[t]:0,Bw=e=>{const t=e&&e.fontSize;if(typeof t=="number")return t;if(t==null)return aa.fontSize;if(typeof t=="string"){const n=Number(t.replace("px",""));return isNaN(n)?($g("fontSize should be expressed as a number of pixels"),aa.fontSize):n}return aa.fontSize},_n=function(e,t){return t===void 0&&(t=0),Array.isArray(e)?e[t]||e[0]:e},Ww=e=>{const{backgroundStyle:t,backgroundPadding:n}=e;return Array.isArray(t)&&!vt(t)||Array.isArray(n)&&!vt(n)},oK=(e,t)=>{if(t.disableInlineStyles){const r=st(e,t);return{fontSize:Bw(r)}}const n=r=>{const i=st(r?K({},r,aa):aa,t);return Object.assign({},i,{fontSize:Bw(i)})};return Array.isArray(e)&&!vt(e)?e.map(r=>n(r)):n(e)},aK=(e,t)=>{if(e)return Array.isArray(e)&&!vt(e)?e.map(n=>st(n,t)):st(e,t)},sK=e=>{if(e.backgroundPadding&&Array.isArray(e.backgroundPadding))return e.backgroundPadding.map(n=>{const r=te(n,e);return xt({padding:r})});const t=te(e.backgroundPadding,e);return xt({padding:t})},lK=e=>{const t=te(e.lineHeight,e);return Array.isArray(t)&&vt(t)?[1]:t},cK=(e,t)=>{if(e==null)return;if(Array.isArray(e))return e.map(r=>te(r,t));const n=te(e,t);if(n!=null)return Array.isArray(n)?n:`${n}`.split(`
|
208
|
-
`)},uK=(e,t,n)=>{const r=e.dy?te(e.dy,e):0,i=e.inline?1:e.text.length,o=te(e.capHeight,e),a=t?te(t,e):"middle",s=[...Array(i).keys()].map(u=>_n(e.style,u).fontSize),l=[...Array(i).keys()].map(u=>_n(n,u));if(a==="start")return r+(o/2+l[0]/2)*s[0];if(e.inline)return a==="end"?r+(o/2-l[0]/2)*s[0]:r+o/2*s[0];if(i===1)return a==="end"?r+(o/2+(.5-i)*l[0])*s[0]:r+(o/2+(.5-i/2)*l[0])*s[0];const c=[...Array(i).keys()].reduce((u,d)=>u+(o/2+(.5-i)*l[d])*s[d]/i,0);return a==="end"?r+c:r+c/2+o/2*l[i-1]*s[i-1]},dK=(e,t,n)=>{const{polar:r}=e,i=_n(e.style),o=r?gg(e):0,a=i.angle===void 0?te(e.angle,e):i.angle,s=a===void 0?o:a,l=e.transform||i.transform,c=l&&te(l,e);return c||s?zg(c,s&&{rotate:[s,t,n]}):void 0},zw=(e,t)=>{const{direction:n,textAnchor:r,x:i,dx:o}=e;if(n==="rtl")return i-t;switch(r){case"middle":return Math.round(i-t/2);case"end":return Math.round(i-t);default:return i+(o||0)}},Rw=(e,t)=>{const{verticalAnchor:n,y:r,originalDy:i=0}=e,o=r+i;switch(n){case"start":return Math.floor(o);case"end":return Math.ceil(o-t);default:return Math.floor(o-t/2)}},fK=(e,t)=>{const{dx:n=0,transform:r,backgroundComponent:i,backgroundStyle:o,inline:a,backgroundPadding:s,capHeight:l}=e,c=t.map(p=>p.textSize),u=a?Math.max(...c.map(p=>p.height)):c.reduce((p,v,b)=>{const x=b?0:l/2;return p+v.height*(t[b].lineHeight-x)},0),d=a?c.reduce((p,v,b)=>{const x=b?n:0;return p+v.width+x},0):Math.max(...c.map(p=>p.width)),f=zw(e,d),h=Rw(e,u),g={key:"background",height:u+s.top+s.bottom,style:o,transform:r,width:d+s.left+s.right,x:a?f-s.left:f+n-s.left,y:h};return y.cloneElement(i,K({},i.props,g))},hK=(e,t,n)=>{const{textAnchor:r}=e,i=t.map(s=>s.widthWithPadding),a=-i.reduce((s,l)=>s+l,0)/2;switch(r){case"start":return i.reduce((s,l,c)=>c<n?s+l:s,0);case"end":return i.reduce((s,l,c)=>c>n?s-l:s,0);default:return i.reduce((s,l,c)=>{const u=c<n?l:0;return c===n?s+l/2:s+u},a)}},mK=(e,t)=>{const{dy:n,dx:r,transform:i,backgroundStyle:o,backgroundPadding:a,backgroundComponent:s,inline:l,y:c}=e,u=t.map((d,f)=>{const h=_n(t,f-1),g=d.textSize,p=d.fontSize*d.lineHeight,v=Math.ceil(p),b=_n(a,f),x=_n(a,f-1),S=l&&r||0,w=f&&!l?h.fontSize*h.lineHeight+x.top+x.bottom:n-p*.5-(d.fontSize-d.capHeight);return{textHeight:v,labelSize:g,heightWithPadding:v+b.top+b.bottom,widthWithPadding:g.width+b.left+b.right+S,y:c,fontSize:d.fontSize,dy:w}});return u.map((d,f)=>{const h=zw(e,d.labelSize.width),g=u.slice(0,f+1).reduce((w,_)=>w+_.dy,c),p=_n(a,f),v=d.heightWithPadding,b=l?hK(e,u,f)+h-p.left:h,x=l?Rw(e,v)-p.top:g,S={key:`tspan-background-${f}`,height:v,style:_n(o,f),width:d.widthWithPadding,transform:i,x:b-p.left,y:x};return y.cloneElement(s,K({},s.props,S))})},gK=(e,t)=>Ww(e)?mK(e,t):fK(e,t),pK=(e,t,n)=>{const r=_n(e,t),i=_n(e,t-1),o=i.fontSize*i.lineHeight,a=r.fontSize*r.lineHeight,s=i.fontSize-i.capHeight,l=r.fontSize-r.capHeight,c=o-i.fontSize/2+r.fontSize/2-o/2+a/2-l/2+s/2;return Ww(n)?c+r.backgroundPadding.top+i.backgroundPadding.bottom:c},yK=(e,t,n)=>{const{inline:r}=t,i=_n(e,n);return n&&!r?pK(e,n,t):r?n===0?i.backgroundPadding.top:void 0:i.backgroundPadding.top},vK=e=>{const t=cK(e.text,e),n=oK(e.style,Object.assign({},e,{text:t})),r=aK(e.backgroundStyle,Object.assign({},e,{text:t,style:n})),i=sK(Object.assign({},e,{text:t,style:n,backgroundStyle:r})),o=te(e.id,e);return Object.assign({},e,{backgroundStyle:r,backgroundPadding:i,style:n,text:t,id:o})},bK=e=>{const t=te(e.ariaLabel,e),n=_n(e.style),r=lK(e),i=e.direction?te(e.direction,e):"inherit",o=e.textAnchor?te(e.textAnchor,e):n.textAnchor||"start",a=e.verticalAnchor?te(e.verticalAnchor,e):n.verticalAnchor||"middle",s=e.dx?te(e.dx,e):0,l=uK(e,a,r),c=e.x!==void 0?e.x:Nw(e,"x"),u=e.y!==void 0?e.y:Nw(e,"y"),d=dK(e,c,u);return Object.assign({},e,{ariaLabel:t,lineHeight:r,direction:i,textAnchor:o,verticalAnchor:a,dx:s,dy:l,originalDy:te(e.dy,e),transform:d,x:c,y:u})},xK=(e,t)=>{const{ariaLabel:n,inline:r,className:i,title:o,events:a,direction:s,text:l,textAnchor:c,dx:u,dy:d,transform:f,x:h,y:g,desc:p,id:v,tabIndex:b,tspanComponent:x,textComponent:S}=e,w=Tr(e),_={"aria-label":n,key:"text",...a,direction:s,dx:u,x:h,y:g+d,transform:f,className:i,title:o,desc:te(p,e),tabIndex:te(b,e),id:v,...w},E=l.map((O,T)=>{const D=t[T].style,j={key:`${v}-key-${T}`,x:r?void 0:h,dx:r?u+t[T].backgroundPadding.left:u,dy:yK(t,e,T),textAnchor:D.textAnchor||c,style:D,children:O};return y.cloneElement(x,j)});return y.cloneElement(S,_,E)},_K={backgroundComponent:y.createElement(oa,null),groupComponent:y.createElement("g",null),direction:"inherit",textComponent:y.createElement(rK,null),tspanComponent:y.createElement(iK,null),capHeight:.71,lineHeight:1},en=e=>{const t=vK(K({},e,_K));if(t.text===null||t.text===void 0)return null;const n=bK(t),{text:r,style:i,capHeight:o,backgroundPadding:a,lineHeight:s}=n,l=r.map((u,d)=>{const f=_n(i,d),h=Ug(`${o}em`,f.fontSize),g=_n(s,d);return{style:f,fontSize:f.fontSize||aa.fontSize,capHeight:h,text:u,textSize:ia(u,f),lineHeight:g,backgroundPadding:_n(a,d)}}),c=xK(n,l);if(t.backgroundStyle){const d=[gK(n,l),c],f=y.cloneElement(t.groupComponent,{},d);return t.renderInPortal?y.createElement(nf,null,f):f}return t.renderInPortal?y.createElement(nf,null,c):c};en.displayName="VictoryLabel",en.role="label",en.defaultStyles=aa;const SK=e=>{var t;return y.createElement("defs",null,y.createElement("clipPath",{id:(t=e.clipId)==null?void 0:t.toString()},e.children))};function of(){return of=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},of.apply(this,arguments)}const Vw=y.forwardRef((e,t)=>{var l;const{desc:n,id:r,tabIndex:i,origin:o,...a}=e,s={vectorEffect:"non-scaling-stroke",id:(l=te(r,e))==null?void 0:l.toString(),tabIndex:te(i,e),...a};return n?y.createElement("circle",of({},s,{ref:t}),y.createElement("desc",null,n)):y.createElement("circle",of({},s,{ref:t}))});class bs extends y.Component{constructor(t){super(t),this.clipId=!ol(t)||t.clipId===void 0?_l("victory-clip-"):t.clipId}calculateAttributes(t){const{polar:n,origin:r,clipWidth:i=0,clipHeight:o=0,translateX:a=0,translateY:s=0}=t,l=xt({padding:t.clipPadding}),c=t.radius||Vr(t);return{x:(n?r.x:a)-l.left,y:(n?r.y:s)-l.top,width:Math.max((n?c:i)+l.left+l.right,0),height:Math.max((n?c:o)+l.top+l.bottom,0)}}renderClippedGroup(t,n){const r=Tr(t),{style:i,events:o,transform:a,children:s,className:l,groupComponent:c,tabIndex:u}=t,d=this.renderClipComponent(t,n),f=Object.assign({className:l,style:i,transform:a,key:`clipped-group-${n}`,clipPath:`url(#${n})`},o);return y.cloneElement(c,{...f,tabIndex:u,...r},[d,...y.Children.toArray(s)])}renderGroup(t){const{style:n,events:r,transform:i,children:o,className:a,groupComponent:s,tabIndex:l}=t;return y.cloneElement(s,Object.assign({className:a,style:n,transform:i,"aria-label":t["aria-label"],tabIndex:l},r),o)}renderClipComponent(t,n){const{polar:r,origin:i,clipWidth:o=0,clipHeight:a=0,translateX:s=0,translateY:l=0,circleComponent:c,rectComponent:u,clipPathComponent:d}=t,{top:f,bottom:h,left:g,right:p}=xt({padding:t.clipPadding});let v;if(r){const b=t.radius||Vr(t),x={r:Math.max(b+g+p,b+f+h,0),cx:i.x-g,cy:i.y-f};v=y.cloneElement(c,x)}else{const b={x:s-g,y:l-f,width:Math.max(o+g+p,0),height:Math.max(a+f+h,0)};v=y.cloneElement(u,b)}return y.cloneElement(d,Object.assign({key:`clip-path-${n}`},t,{clipId:n}),v)}getClipValue(t,n){const r={x:t.clipWidth,y:t.clipHeight};if(r[n]!==void 0)return r[n];const i=Nt(t,n);return i&&Math.abs(i[0]-i[1])||void 0}getTranslateValue(t,n){const r={x:t.translateX,y:t.translateY};if(r[n]!==void 0)return r[n];const i=Nt(t,n);return i?Math.min(...i):void 0}render(){const t=this.getClipValue(this.props,"y"),n=this.getClipValue(this.props,"x");if(n===void 0||t===void 0)return this.renderGroup(this.props);const r=this.getTranslateValue(this.props,"x"),i=this.getTranslateValue(this.props,"y"),o=K({},this.props,{clipHeight:t,clipWidth:n,translateX:r,translateY:i});return this.renderClippedGroup(o,this.clipId)}}ce(bs,"displayName","VictoryClipContainer"),ce(bs,"role","container"),ce(bs,"defaultProps",{circleComponent:y.createElement(Vw,null),rectComponent:y.createElement(oa,null),clipPathComponent:y.createElement(SK,null),groupComponent:y.createElement("g",null)});function af(){return af=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},af.apply(this,arguments)}const fo=y.forwardRef((e,t)=>{var l;const{desc:n,id:r,tabIndex:i,origin:o,...a}=e,s={id:(l=te(r,e))==null?void 0:l.toString(),tabIndex:te(i,e),...a};return n?y.createElement("path",af({},s,{ref:t}),y.createElement("desc",null,n)):y.createElement("path",af({},s,{ref:t}))}),wK=e=>{const{cx:t,cy:n,r,startAngle:i,endAngle:o,closedPath:a}=e,s=Math.abs(o-i)/2+i,l=t+r*Math.cos(dt(i)),c=n-r*Math.sin(dt(i)),u=t+r*Math.cos(dt(s)),d=n-r*Math.sin(dt(s)),f=t+r*Math.cos(dt(o)),h=n-r*Math.sin(dt(o)),g=s-i<=180?0:1,p=o-s<=180?0:1,v=a?` M ${t}, ${n} L ${l}, ${c}`:`M ${l}, ${c}`,b=`A ${r}, ${r}, 0, ${g}, 0, ${u}, ${d}`,x=`A ${r}, ${r}, 0, ${p}, 0, ${f}, ${h}`;return`${v} ${b} ${x} ${a?"Z":""}`},CK=e=>{const t=te(e.ariaLabel,e),n=te(e.desc,e),r=te(e.id,e),i=st(Object.assign({stroke:"black",fill:"none"},e.style),e),o=te(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,desc:n,id:r,style:i,tabIndex:o})},EK={pathComponent:y.createElement(fo,null),role:"presentation",shapeRendering:"auto"},Uw=e=>{const t=CK(K({},e,EK));return y.cloneElement(t.pathComponent,{...t.events,"aria-label":t.ariaLabel,d:wK(t),style:t.style,desc:t.desc,tabIndex:t.tabIndex,className:t.className,role:t.role,shapeRendering:t.shapeRendering,transform:t.transform,clipPath:t.clipPath})},OK=e=>{const t=te(e.id,e);return Object.assign({},e,{id:t})},kK={circleComponent:y.createElement(Vw,null),rectComponent:y.createElement(oa,null),role:"presentation",shapeRendering:"auto"},TK=e=>{const t=OK(K({},e,kK));return t.polar?y.cloneElement(t.circleComponent,{...t.events,style:t.style,role:t.role,shapeRendering:t.shapeRendering,cx:t.x,cy:t.y,r:t.height,className:t.className}):y.cloneElement(t.rectComponent,{...t.events,style:t.style,role:t.role,shapeRendering:t.shapeRendering,x:t.x,y:t.y,rx:t.rx,ry:t.ry,width:t.width,height:t.height,className:t.className})},AK=e=>{const t=te(e.ariaLabel,e),n=te(e.desc,e),r=te(e.id,e),i=st(Object.assign({fill:"none"},e.style),e),o=te(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,desc:n,id:r,style:i,tabIndex:o})},DK={rectComponent:y.createElement(oa,null),role:"presentation",shapeRendering:"auto"},jK=e=>{const t=AK(K({},e,DK));return y.cloneElement(t.rectComponent,{...t.events,"aria-label":t.ariaLabel,style:t.style,desc:t.desc,tabIndex:t.tabIndex,transform:t.transform,className:t.className,role:t.role,shapeRendering:t.shapeRendering,x:t.x,y:t.y,width:t.width,height:t.height,clipPath:t.clipPath})};function sf(){return sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sf.apply(this,arguments)}const PK=y.forwardRef((e,t)=>{var l;const{desc:n,id:r,tabIndex:i,origin:o,...a}=e,s={vectorEffect:"non-scaling-stroke",id:(l=te(r,e))==null?void 0:l.toString(),tabIndex:te(i,e),...a};return n?y.createElement("line",sf({},s,{ref:t}),y.createElement("desc",null,n)):y.createElement("line",sf({},s,{ref:t}))}),MK=e=>{const t=te(e.ariaLabel,e),n=te(e.desc,e),r=te(e.id,e),i=st(Object.assign({stroke:"black"},e.style),e),o=te(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,desc:n,id:r,style:i,tabIndex:o})},$K={lineComponent:y.createElement(PK,null),role:"presentation",shapeRendering:"auto"},Ci=e=>{const t=MK(K({},e,$K));return y.cloneElement(t.lineComponent,{...t.events,"aria-label":t.ariaLabel,style:t.style,desc:t.desc,tabIndex:t.tabIndex,className:t.className,role:t.role,shapeRendering:t.shapeRendering,x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,transform:t.transform,clipPath:t.clipPath})},IK=e=>{const{x:t,y:n,size:r,symbol:i}=e;if(e.getPath)return e.getPath(t,n,r);const o=Oq;return(typeof o[i]=="function"?o[i]:o.circle)(t,n,r)},LK=e=>{const t=te(e.ariaLabel,e),n=te(e.desc,e),r=te(e.id,e),i=te(e.size,e),o=st(e.style,e),a=te(e.symbol,e),s=te(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,desc:n,id:r,size:i,style:o,symbol:a,tabIndex:s})},FK={pathComponent:y.createElement(fo,null),role:"presentation",shapeRendering:"auto"},Hw=e=>{const t=LK(K({},e,FK)),n=Tr(t);return y.cloneElement(t.pathComponent,{...t.events,"aria-label":t.ariaLabel,d:IK(t),style:t.style,desc:t.desc,tabIndex:t.tabIndex,role:t.role,shapeRendering:t.shapeRendering,className:t.className,transform:t.transform,clipPath:t.clipPath,...n})};function NK(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}var BK=NK;const WK=Fe(BK);var Zg={exports:{}};(function(e,t){t=e.exports=n,t.getSerialize=r;function n(i,o,a,s){return JSON.stringify(i,r(o,s),a)}function r(i,o){var a=[],s=[];return o==null&&(o=function(l,c){return a[0]===c?"[Circular ~]":"[Circular ~."+s.slice(0,a.indexOf(c)).join(".")+"]"}),function(l,c){if(a.length>0){var u=a.indexOf(this);~u?a.splice(u+1):a.push(this),~u?s.splice(u,1/0,l):s.push(l),~a.indexOf(c)&&(c=o.call(this,l,c))}else a.push(c);return i==null?c:i.call(this,l,c)}}})(Zg,Zg.exports);var zK=Zg.exports;const RK=Fe(zK);class xs extends y.Component{constructor(t){super(t),this.getScopedEvents=F2.bind(this),this.getEventState=B2.bind(this),this.state=this.state||{},this.sharedEventsCache={},this.globalEvents={},this.prevGlobalEventKeys=[],this.boundGlobalEvents={},this.baseProps=this.getBaseProps(t)}shouldComponentUpdate(t){if(!Vn(this.props,t)){this.baseProps=this.getBaseProps(t);const n=this.getExternalMutations(t,this.baseProps);this.applyExternalMutations(t,n)}return!0}componentDidMount(){const t=Object.keys(this.globalEvents);t.forEach(n=>this.addGlobalListener(n)),this.prevGlobalEventKeys=t}componentDidUpdate(){const t=Object.keys(this.globalEvents);hd(this.prevGlobalEventKeys,t).forEach(i=>this.removeGlobalListener(i)),hd(t,this.prevGlobalEventKeys).forEach(i=>this.addGlobalListener(i)),this.prevGlobalEventKeys=t}componentWillUnmount(){this.prevGlobalEventKeys.forEach(t=>this.removeGlobalListener(t))}addGlobalListener(t){const n=r=>{const i=this.globalEvents[t];return i&&i(U2(r))};this.boundGlobalEvents[t]=n,window.addEventListener(gd(t),n)}removeGlobalListener(t){window.removeEventListener(gd(t),this.boundGlobalEvents[t])}getAllEvents(t){const r=C0(t,["container","groupComponent"]);return Array.isArray(r)?Array.isArray(t.events)?r.concat(...t.events):r:t.events}applyExternalMutations(t,n){if(!vt(n)){const r=t.externalEventMutations.reduce((o,a)=>Se(a.callback)?o.concat(a.callback):o,[]),i=r.length?()=>{r.forEach(o=>o())}:void 0;this.setState(n,i)}}getExternalMutations(t,n){return vt(t.externalEventMutations)?void 0:ZR(t.externalEventMutations,n,this.state,Object.keys(n))}cacheSharedEvents(t,n,r){this.sharedEventsCache[t]=[n,r]}getCachedSharedEvents(t,n){const[r,i]=this.sharedEventsCache[t]||[];if(r&&Vn(n,i))return r}getBaseProps(t){const{container:n}=t,r=y.Children.toArray(this.props.children),i=this.getBasePropsFromChildren(r),o=n?n.props:{};return Object.assign({},i,{parent:o})}getBasePropsFromChildren(t){const r=ro(t,(i,o)=>{if(i.type&&Se(i.type.getBaseProps)){const a=i.props&&i.type.getBaseProps(i.props);return a?[[o,a]]:null}return null});return WK(r)}getNewChildren(t,n){const{events:r,eventKey:i}=t,o=(l,c)=>l.reduce((u,d,f)=>{if(d.props.children){const h=y.Children.toArray(d.props.children),g=c.slice(f,f+h.length),p=y.cloneElement(d,d.props,o(h,g));return u.concat(p)}else if(c[f]!=="parent"&&d.type&&Se(d.type.getBaseProps)){const h=d.props.name||c[f],g=Array.isArray(r)&&r.filter(b=>b.target==="parent"?!1:Array.isArray(b.childName)?b.childName.indexOf(h)>-1:b.childName===h||b.childName==="all"),p=[h,n,g,RK(this.state[h])],v=this.getCachedSharedEvents(h,p)||{events:g,getEvents:(b,x)=>this.getScopedEvents(b,x,h,n),getEventState:(b,x)=>this.getEventState(b,x,h)};return this.cacheSharedEvents(h,v,p),u.concat(y.cloneElement(d,Object.assign({key:`events-${h}`,sharedEvents:v,eventKey:i,name:h},d.props)))}return u.concat(d)},[]),a=Object.keys(n),s=y.Children.toArray(t.children);return o(s,a)}getContainer(t,n,r){const i=this.getNewChildren(t,n),o=Array.isArray(r)?r.filter(p=>p.target==="parent"):[],a=o.length>0?{events:o,getEvents:(p,v)=>this.getScopedEvents(p,v,null,n),getEventState:this.getEventState}:null,s=t.container||t.groupComponent,l=s.type&&s.type.role,c=s.props||{},u=L2.bind(this),d=a&&u({sharedEvents:a},"parent"),f=K({},this.getEventState("parent","parent"),c,n.parent,{children:i}),h=K({},N2(d,"parent",f),c.events);this.globalEvents=R2(h);const g=V2(h);return l==="container"?y.cloneElement(s,Object.assign({},f,{events:g})):y.cloneElement(s,g,i)}render(){const t=this.getAllEvents(this.props);return t?this.getContainer(this.props,this.baseProps,t):y.cloneElement(this.props.container,{children:this.props.children})}}ce(xs,"displayName","VictorySharedEvents"),ce(xs,"role","shared-event-wrapper"),ce(xs,"contextType",id),ce(xs,"defaultProps",{groupComponent:y.createElement("g",null)});const Xg={top:-1,left:-1,right:1,bottom:1},lf=e=>e!=null,VK=(e,t)=>{const{orientation:n,horizontal:r}=e;return n?{top:"x",bottom:"x",left:"y",right:"y"}[n]:r?t==="x"?"y":"x":t},UK=e=>{const t=or(e),n=VK(e,t),r=ir(e,t),o=e.domain&&e.domain[t]||fs(e)||r.domain();return r.range(Nt(e,n)),r.domain(o),r},HK=e=>{const{theme:t,dependentAxis:n}=e,r=t&&t.axis&&t.axis.style,i=n?"dependentAxis":"independentAxis",o=t&&t[i]&&t[i].style;return r&&o?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce((l,c)=>(l[c]=K({},o[c],r[c]),l),{}):o||r},Gw=function(e,t){t===void 0&&(t={});const n=e.style||{},r={height:"100%",width:"100%"};return{parent:K(n.parent,t.parent,r),axis:K({},n.axis,t.axis),axisLabel:K({},n.axisLabel,t.axisLabel),grid:K({},n.grid,t.grid),ticks:K({},n.ticks,t.ticks),tickLabels:K({},n.tickLabels,t.tickLabels)}},GK=(e,t,n)=>{const{position:r,transform:i}=e;return{x1:i.x,y1:i.y,x2:i.x+r.x2,y2:i.y+r.y2,style:t,datum:n}},qK=(e,t,n,r,i)=>{const{position:o,transform:a}=e;return{style:t,x:a.x+o.x,y:a.y+o.y,verticalAnchor:n.verticalAnchor,textAnchor:n.textAnchor,angle:t.angle,text:i,datum:r}},YK=(e,t,n)=>{const{edge:r,transform:i}=e;return{x1:i.x,y1:i.y,x2:r.x+i.x,y2:r.y+i.y,style:t,datum:n}},KK=(e,t,n)=>{const{style:r,padding:i,isVertical:o}=t,{width:a,height:s}=e;return{style:r.axis,x1:o?n.x:i.left+n.x,x2:o?n.x:a-i.right+n.x,y1:o?i.top+n.y:n.y,y2:o?s-i.bottom+n.y:n.y}},ZK=(e,t)=>({tickStyle:st(e.ticks,t),labelStyle:st(e.tickLabels,t),gridStyle:st(e.grid,t)}),XK=(e,t,n)=>{const{style:r,orientation:i,padding:o,labelPadding:a,isVertical:s}=t,l=Xg[i],c=o.left+o.right,u=o.top+o.bottom,d=l<0?"end":"start",f=r.axisLabel,h=s?-90:0,g=s?n.x+l*a:(e.width-c)/2+o.left+n.x,p=s?(e.height-u)/2+o.top+n.y:l*a+n.y;return{x:g,y:p,verticalAnchor:f.verticalAnchor||d,textAnchor:f.textAnchor||"middle",angle:f.angle===void 0?h:f.angle,style:f,text:e.label}},JK=(e,t)=>{const r={top:"end",left:"end",right:"start",bottom:"start"}[e];return{textAnchor:t?r:"middle",verticalAnchor:t?"middle":r}},QK=(e,t)=>{const n=t.axisLabel||{};if(n.padding!==void 0&&n.padding!==null)return n.padding;const r=Dd(e),i=n.fontSize||14;return e.label?i*(r?2.3:1.6):0},qw=(e,t,n)=>{const r=t||"positive";return n?{positive:{x:"left",y:"bottom"},negative:{x:"right",y:"top"}}[r][e]:{positive:{x:"bottom",y:"left"},negative:{x:"top",y:"right"}}[r][e]},eZ=(e,t)=>{const{style:n,scale:r,orientation:i,padding:o,axis:a,ticks:s,stringTicks:l,isVertical:c,labelPadding:u}=t,{polar:d,horizontal:f}=e,h={scale:{[a]:r},polar:d,horizontal:f,ticks:s,stringTicks:l},g=i==="right"?o.right:o.left,p=i==="top"?o.top:o.bottom,v=e.offsetX!==null&&e.offsetX!==void 0?e.offsetX:g,b=e.offsetY!==null&&e.offsetY!==void 0?e.offsetY:p,x=n.axisLabel.fontSize||14,S=s.map((T,D)=>{const j=l?e.tickValues[T-1]:T;return st(n.ticks,Object.assign({},h,{tick:j,index:D})).size||0}),w=x+2*Math.max(...S)+u,_=1.2*x;return{x:v??(c?w:_),y:b??(c?_:w)}},ho=(e,t)=>e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():e===t,tZ=(e,t)=>{const{scale:n,origin:r,orientation:i,orientations:o,domain:a,padding:s}=t,{top:l,bottom:c,left:u,right:d}=s,f={x:i==="bottom"||i==="top"?i:o.x,y:i==="left"||i==="right"?i:o.y},h={x:f.y==="left"?u:d,y:f.x==="bottom"?c:l},g={x:f.y==="left"?0:e.width,y:f.x==="bottom"?e.height:0},p={x:ho(r.x,a.x[0])||ho(r.x,a.x[1])?0:n.x(r.x),y:ho(r.y,a.y[0])||ho(r.y,a.y[1])?0:n.y(r.y)},v=p.x?Math.abs(g.x-p.x):h.x,b=p.y?Math.abs(g.y-p.y):h.y,x=lf(e.offsetX)?e.offsetX:v,S=lf(e.offsetY)?e.offsetY:b;return{x,y:S}},nZ=(e,t)=>{const{scale:n,origin:r,orientation:i,orientations:o,domain:a,padding:s}=t,{top:l,bottom:c,left:u,right:d}=s,f={y:i==="bottom"||i==="top"?i:o.x,x:i==="left"||i==="right"?i:o.y},h={x:f.y==="bottom"?c:l,y:f.x==="left"?u:d},g={y:f.x==="left"?0:e.width,x:f.y==="bottom"?e.height:0},p={x:ho(r.x,a.x[0])||ho(r.x,a.x[1])?0:n.x(r.x),y:ho(r.y,a.y[0])||ho(r.y,a.y[1])?0:n.y(r.y)},v=p.x?Math.abs(g.x-p.x):h.x,b=p.y?Math.abs(g.y-p.y):h.y,x=lf(e.offsetX)?e.offsetX:b,S=lf(e.offsetY)?e.offsetY:v;return{x,y:S}},rZ=(e,t,n)=>{const{orientation:r,axis:i}=t,o=yS(e,i);return{top:{x:0,y:o!==void 0?o:n.y},bottom:{x:0,y:o!==void 0?o:e.height-n.y},left:{x:o!==void 0?o:n.x,y:0},right:{x:o!==void 0?o:e.width-n.x,y:0}}[r]},iZ=(e,t,n)=>{const{tickStyle:r,labelStyle:i}=e,o=r.size||0,a=r.padding||0,s=i.padding||0,l=o+a+s,c=Xg[t];return{x:n?c*l:0,x2:n?c*o:0,y:n?0:c*l,y2:n?0:c*o}},oZ=(e,t,n)=>({x:n?t.x:e+t.x,y:n?e+t.y:t.y}),aZ=(e,t)=>{const{orientation:n,padding:r,isVertical:i}=t,o=-Xg[n],a=i?o*(e.width-(r.left+r.right)):0,s=i?0:o*(e.height-(r.top+r.bottom));return{x:a,y:s}},sZ=(e,t)=>{const{padding:n,orientation:r,crossAxis:i}=e,o=r==="right"?n.right:n.left,a=r==="top"?n.top:n.bottom;return{x:i?t.x-o:0,y:i?t.y-a:0}},lZ=(e,t)=>{let n;return t.domain.x&&t.domain.y?n=e.horizontal?nZ(e,t):tZ(e,t):n=eZ(e,t),{globalTransform:rZ(e,t,n),gridOffset:sZ(t,n),gridEdge:aZ(e,t)}},cZ=e=>{if(e.orientation)return e.orientation;const t={dependent:e.horizontal?"bottom":"left",independent:e.horizontal?"left":"bottom"};return e.dependentAxis?t.dependent:t.independent},uZ=e=>{const t=HK(e),n=Gw(e,t),r=xt(e),i=QK(e,n),o=jd(e)?e.tickValues:void 0,a=or(e),s=fs(e),l=UK(e),c=a==="x"?s:void 0,u=a==="y"?s:void 0,d=a==="x"?l:void 0,f=a==="y"?l:void 0,h=!(e.crossAxis===!1||e.standalone===!0),g=pS(e,l,h),p=mS(e,l),v={x:Nt(e,"x"),y:Nt(e,"y")},b={x:e.domain&&e.domain.x?e.domain.x:c,y:e.domain&&e.domain.y?e.domain.y:u},x={x:e.domain&&e.domain.x?ir(e,"x").domain(e.domain.x).range(e.horizontal?v.y:v.x):d,y:e.domain&&e.domain.y?ir(e,"y").domain(e.domain.y).range(e.horizontal?v.x:v.y):f},S=b.x&&b.y?fS(b):void 0,w=S?{x:hS(S.x,b.x),y:hS(S.y,b.y)}:void 0,_=w?{x:qw("x",w.y,e.horizontal),y:qw("y",w.x,e.horizontal)}:void 0,E=_?e.orientation||_[a]:cZ(e),O=Dd(Object.assign({},e,{orientation:E}));return{anchors:JK(E,O),axis:a,crossAxis:h,domain:b,isVertical:O,labelPadding:i,orientation:E,orientations:_,origin:S,padding:r,scale:x,stringTicks:o,style:n,tickFormat:p,ticks:g}},dZ=(e,t)=>{const n=Pd(e,t),r=uZ(n),{axis:i,style:o,orientation:a,isVertical:s,scale:l,ticks:c,tickFormat:u,anchors:d,domain:f,stringTicks:h}=r,g=i==="x"?"y":"x",{width:p,height:v,standalone:b,theme:x,polar:S,padding:w,horizontal:_}=n,{globalTransform:E,gridOffset:O,gridEdge:T}=lZ(n,r),D={scale:{[i]:l[i]},polar:S,horizontal:_,ticks:c,stringTicks:h},j=KK(n,r,E),A=XK(n,r,E),M={parent:Object.assign({style:o.parent,ticks:c,standalone:b,theme:x,width:p,height:v,padding:w,domain:f},D)},P={dimension:g,range:{[g]:Nt(n,g)},scale:n.scale&&n.scale[g]?{[g]:n.scale[g]}:void 0};return c.reduce(($,L,z)=>{var Q,ee,X;const G=h?h[z]:L,U=u(L,z,c),V=ZK(o,Object.assign({},D,{tick:G,tickValue:L,index:z,text:U})),N={position:iZ(V,a,s),transform:oZ((Q=l[i])==null?void 0:Q.call(l,L),E,s)},H={edge:T,transform:{x:s?-O.x+E.x:((ee=l[i])==null?void 0:ee.call(l,L))+E.x,y:s?((X=l[i])==null?void 0:X.call(l,L))+E.y:O.y+E.y}};return $[z]={axis:Object.assign({dimension:i},D,j),axisLabel:Object.assign({},D,A),ticks:Object.assign({},D,GK(N,V.tickStyle,L)),tickLabels:Object.assign({},D,qK(N,V.labelStyle,d,L,U)),grid:Object.assign({},D,P,YK(H,V.gridStyle,L))},$},M)},Yw={width:450,height:300,padding:50},fZ={components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]};class Ei extends y.Component{static getStyles(t){return Gw(t)}static getBaseProps(t){return dZ(t,Yw)}renderLine(t){const{axisComponent:n}=t,r=this.getComponentProps(n,"axis",0);return y.cloneElement(n,r)}renderLabel(t){const{axisLabelComponent:n,label:r}=t;if(!r)return null;const i=this.getComponentProps(n,"axisLabel",0);return y.cloneElement(n,i)}renderGridAndTicks(t){const{tickComponent:n,tickLabelComponent:r,gridComponent:i,name:o}=t,a=s=>{const{style:l={},events:c={}}=s;return l.stroke!=="transparent"&&l.stroke!=="none"&&l.strokeWidth!==0||!vt(c)};return this.dataKeys.map((s,l)=>{const c=this.getComponentProps(n,"ticks",l),u=y.cloneElement(n,c),d=a(u.props)?u:void 0,f=this.getComponentProps(i,"grid",l),h=y.cloneElement(i,f),g=a(h.props)?h:void 0,p=this.getComponentProps(r,"tickLabels",l),b=[g,d,y.cloneElement(r,p)].filter(Boolean);return y.cloneElement(t.groupComponent,{key:`${o}-tick-group-${s}`},b)})}fixLabelOverlap(t,n){const r=Dd(n),i=r?n.height:n.width,o=h=>h.type&&h.type.role==="label",a=t.map(h=>h.props.children).reduce((h,g)=>h.concat(g),[]).filter(o).map(h=>h.props),s=h=>typeof h=="object"?Object.assign({},{top:0,right:0,bottom:0,left:0},h):{top:h,right:h,bottom:h,left:h},l=a.reduce((h,g)=>{const p=s(g.style.padding),v=ia(g.text,{angle:g.angle,fontSize:g.style.fontSize,letterSpacing:g.style.letterSpacing,fontFamily:g.style.fontFamily});return h+(r?v.height+p.top+p.bottom:v.width+p.right+p.left)},0),c=Math.floor(i*t.length/l),u=Math.ceil(t.length/c)||1,d=h=>h.props.children.filter(o).reduce((g,p)=>(r?p.props.y:p.props.x)||0,0);return t.sort((h,g)=>r?d(g)-d(h):d(h)-d(g)).filter((h,g)=>g%u===0)}shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t}=Gl,n=Pd(this.props,Yw),r=Tr(this.props);if(this.shouldAnimate())return this.animateComponent(n,t);const i=this.renderGridAndTicks(n),o=n.fixLabelOverlap?this.fixLabelOverlap(i,n):i,a=[this.renderLine(n),this.renderLabel(n),...o],s=y.cloneElement(n.containerComponent,r);return n.standalone?this.renderContainer(s,a):y.cloneElement(n.groupComponent,r,a)}}ce(Ei,"animationWhitelist",["style","domain","range","tickCount","tickValues","offsetX","offsetY","padding","width","height"]),ce(Ei,"displayName","VictoryAxis"),ce(Ei,"role","axis"),ce(Ei,"defaultTransitions",{onExit:{duration:500},onEnter:{duration:500}}),ce(Ei,"defaultProps",{axisComponent:y.createElement(Ci,null),axisLabelComponent:y.createElement(en,null),tickLabelComponent:y.createElement(en,null),tickComponent:y.createElement(Ci,null),gridComponent:y.createElement(Ci,null),standalone:!0,theme:Ar.grayscale,containerComponent:y.createElement(Qt,null),groupComponent:y.createElement("g",{role:"presentation"}),fixLabelOverlap:!1}),ce(Ei,"getDomain",fs),ce(Ei,"getAxis",or),ce(Ei,"expectedComponents",["axisComponent","axisLabelComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent"]);const Gl=Yo(Ei,fZ),$n=(e,t,n)=>n==="x"?e*Math.cos(t):-e*Math.sin(t),Kw=e=>{const t=e.dependentAxis?"radial":"angular",n=t==="angular"?"radial":"angular";return e.horizontal?n:t},hZ=(e,t)=>jw(e,r=>t(r)%(2*Math.PI)),Jg=(e,t)=>({tickStyle:st(e.ticks,t),labelStyle:st(e.tickLabels,t),gridStyle:st(e.grid,t)}),mZ=e=>{var l,c;const{theme:t={},dependentAxis:n}=e,r=t.polarAxis&&t.polarAxis.style||t.axis&&t.axis.style,i=n?"polarDependentAxis":"polarIndependentAxis",o=n?"dependentAxis":"independentAxis",a=((l=t==null?void 0:t[i])==null?void 0:l.style)||((c=t==null?void 0:t[o])==null?void 0:c.style);return r&&a?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce((d,f)=>(d[f]=K({},a==null?void 0:a[f],r==null?void 0:r[f]),d),{}):a||r},Zw=e=>{const{left:t,right:n,top:r,bottom:i}=xt(e),{width:o,height:a}=e;if(o===void 0||a===void 0)throw new Error("VictoryPolarAxis: width and height properties are required for standalone axes.");return Math.min(o-t-n,a-r-i)/2},Xw=(e,t)=>{if(e.range&&e.range[t])return e.range[t];if(e.range&&Array.isArray(e.range))return e.range;if(Kw(e)==="angular"){const i=dt(e.startAngle),o=dt(e.endAngle);return[i,o]}const r=Zw(e);return[e.innerRadius||0,r]},Jw=e=>{const t=or(e),n=ir(e,t),r=fs(e,t)||n.domain(),i=Xw(e,t);return n.range(i),n.domain(r),n},Qw=function(e,t){if(t===void 0&&(t={}),e.disableInlineStyles)return{};const n=e.style||{};return{parent:K({height:"auto",width:"100%"},n.parent,t.parent),axis:K({},n.axis,t.axis),axisLabel:K({},n.axisLabel,t.axisLabel),grid:K({},n.grid,t.grid),ticks:K({},n.ticks,t.ticks),tickLabels:K({},n.tickLabels,t.tickLabels)}},cf=e=>{const{axisAngle:t,startAngle:n,dependentAxis:r}=e,i=or(e),o=yS(e,i);return o===void 0||!r?t===void 0?n:t:ui(o)},gZ=(e,t,n,r)=>{const{axisType:i,radius:o,scale:a,style:s,stringTicks:l,ticks:c,tickFormat:u,origin:d}=t,f=u(n,r,c),h=l?l[r]:n,{tickStyle:g}=Jg(s,{tick:h,tickValue:n,index:r,ticks:c,stringTicks:l,radius:o,scale:a,axisType:i,text:f}),p=i==="radial"?cf(e):void 0,v=g.padding||g.size||0,b=dt(90-p),x=i==="angular"?a(n):dt(-1*p),S=i==="angular"?o:a(n);return i==="angular"?{index:r,datum:h,style:g,x1:$n(S,x,"x")+d.x,y1:$n(S,x,"y")+d.y,x2:$n(S+v,x,"x")+d.x,y2:$n(S+v,x,"y")+d.y}:{index:r,datum:h,style:g,x1:S*Math.cos(x)+Math.cos(b)*v+d.x,x2:S*Math.cos(x)-Math.cos(b)*v+d.x,y1:S*Math.sin(x)+Math.sin(b)*v+d.y,y2:S*Math.sin(x)-Math.sin(b)*v+d.y}},pZ=(e,t,n,r)=>{const{axisType:i,radius:o,tickFormat:a,style:s,scale:l,ticks:c,stringTicks:u,origin:d}=t,f=a(n,r,c),h=u?u[r]:n,{labelStyle:g}=Jg(s,{text:f,tick:h,tickValue:n,index:r,ticks:c,stringTicks:u,radius:o,scale:l,axisType:i}),{tickLabelComponent:p}=e,v=p!=null&&p.props.labelPlacement?p.props.labelPlacement:e.labelPlacement,b=g.padding||0,x=0,S=i==="radial"?cf(e):void 0,w=i==="angular"?ui(l(n)):S+x,_=g.angle===void 0?gg(Object.assign({},e,{labelPlacement:v}),w):g.angle,E=i==="angular"?o+b:l(n),O=g.textAnchor||mg(Object.assign({},e,{labelPlacement:v}),w);return{index:r,datum:h,style:g,angle:_,textAnchor:O,text:f,x:E*Math.cos(dt(w))+d.x,y:-E*Math.sin(dt(w))+d.y}},yZ=(e,t,n,r)=>{const{axisType:i,radius:o,style:a,scale:s,stringTicks:l,ticks:c,tickFormat:u,origin:d}=t,f=u(n,r,c),{startAngle:h,endAngle:g,innerRadius:p=0}=e,v=l?l[r]:n,{gridStyle:b}=Jg(a,{tick:v,tickValue:n,index:r,ticks:c,stringTicks:l,radius:o,scale:s,axisType:i,text:f}),x=s(n);return i==="angular"?{index:r,datum:v,style:b,x1:$n(o,x,"x")+d.x,y1:$n(o,x,"y")+d.y,x2:$n(p,x,"x")+d.x,y2:$n(p,x,"y")+d.y}:{style:b,index:r,datum:v,cx:d.x,cy:d.y,r:s(n),startAngle:h,endAngle:g}},vZ=(e,t)=>{const{axisType:n,radius:r,style:i,origin:o}=t,{axisLabelComponent:a}=e;if(n!=="radial")return{};const s=a!=null&&a.props.labelPlacement?a.props.labelPlacement:e.labelPlacement,l=i&&i.axisLabel||{},c=n==="radial"?cf(e):void 0,u=l.angle===void 0?gg(Object.assign({},e,{labelPlacement:s}),c):l.angle,d=r+(l.padding||0),f=l.textAnchor||mg(Object.assign({},e,{labelPlacement:s}),c),h=l.verticalAnchor||SS(Object.assign({},e,{labelPlacement:s}),c);return{style:l,angle:u,textAnchor:f,verticalAnchor:h,text:e.label,x:$n(d,dt(c),"x")+o.x,y:$n(d,dt(c),"y")+o.y}},bZ=(e,t)=>{const{style:n,axisType:r,radius:i,origin:o}=t,{startAngle:a,endAngle:s,innerRadius:l=0}=e,c=r==="radial"?dt(cf(e)):void 0;return r==="radial"?{style:n.axis,x1:$n(l,c,"x")+o.x,x2:$n(i,c,"x")+o.x,y1:$n(l,c,"y")+o.y,y2:$n(i,c,"y")+o.y}:{style:n.axis,cx:o.x,cy:o.y,r:i,startAngle:a,endAngle:s}},xZ=e=>{const t=Object.assign({polar:!0},e),n=mZ(t),r=Qw(t,n),i=xt(t),o=or(t),a=Kw(t),s=jd(t)?t.tickValues:void 0,l=fs(t,o),c=Xw(t,o),u=Jw(t),d=pS(t,u),f=a==="angular"?hZ(d,u):d,h=mS(t,u),g=Zw(t),p=El(t);return{axis:o,style:r,padding:i,stringTicks:s,axisType:a,scale:u,ticks:f,tickFormat:h,domain:l,range:c,radius:g,origin:p}},_Z=(e,t)=>{const n=Pd(e,t),r=xZ(n),{style:i,scale:o,ticks:a,domain:s}=r,{width:l,height:c,standalone:u,theme:d,name:f}=n,h=bZ(n,r),g=vZ(n,r),p={parent:{style:i.parent,ticks:a,scale:o,width:l,height:c,domain:s,standalone:u,theme:d,name:f}};return a.reduce((v,b,x)=>(v[x]={axis:h,axisLabel:g,ticks:gZ(n,r,b,x),tickLabels:pZ(n,r,b,x),grid:yZ(n,r,b,x)},v),p)},Qg={width:450,height:300,padding:50};class Oi extends y.Component{static getScale(t){return Jw(t)}static getStyles(t){return Qw(t,Qg.style)}static getBaseProps(t){return _Z(t,Qg)}renderAxisLine(t){const{dependentAxis:n}=t,r=n?t.axisComponent:t.circularAxisComponent,i=this.getComponentProps(r,"axis",0);return y.cloneElement(r,i)}renderLabel(t){const{axisLabelComponent:n,dependentAxis:r,label:i}=t;if(!i||!r)return null;const o=this.getComponentProps(n,"axisLabel",0);return y.cloneElement(n,o)}renderAxis(t){const{tickComponent:n,tickLabelComponent:r,name:i}=t,o=g=>{const{style:p={},events:v={}}=g;return p.stroke!=="transparent"&&p.stroke!=="none"&&p.strokeWidth!==0||!vt(v)},s=(t.dependentAxis?"radial":"angular")==="radial"?t.circularGridComponent:t.gridComponent,l=this.dataKeys.map((g,p)=>{const v=Object.assign({key:`${i}-tick-${g}`},this.getComponentProps(n,"ticks",p)),b=y.cloneElement(n,v);return o(b.props)?b:void 0}).filter(Boolean),c=this.dataKeys.map((g,p)=>{const v=Object.assign({key:`${i}-grid-${g}`},this.getComponentProps(s,"grid",p)),b=y.cloneElement(s,v);return o(b.props)?b:void 0}).filter(Boolean),u=this.dataKeys.map((g,p)=>{const v=Object.assign({key:`${i}-tick-${g}`},this.getComponentProps(r,"tickLabels",p));return y.cloneElement(r,v)}),d=this.renderAxisLine(t),f=this.renderLabel(t),h=[d,f,...l,...c,...u];return this.renderGroup(t,h)}renderGroup(t,n){const{groupComponent:r}=t;return y.cloneElement(r,{},n)}shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t}=ep,n=Pd(this.props,Qg);if(this.shouldAnimate())return this.animateComponent(n,t);const r=this.renderAxis(n);return n.standalone?this.renderContainer(n.containerComponent,r):r}}ce(Oi,"animationWhitelist",["style","domain","range","tickCount","tickValues","padding","width","height"]),ce(Oi,"displayName","VictoryAxis"),ce(Oi,"role","axis"),ce(Oi,"defaultTransitions",{onExit:{duration:500},onEnter:{duration:500}}),ce(Oi,"defaultProps",{axisComponent:y.createElement(Ci,null),axisLabelComponent:y.createElement(en,null),circularAxisComponent:y.createElement(Uw,null),circularGridComponent:y.createElement(Uw,null),containerComponent:y.createElement(Qt,null),endAngle:360,gridComponent:y.createElement(Ci,null),groupComponent:y.createElement("g",{role:"presentation"}),labelPlacement:"parallel",startAngle:0,standalone:!0,theme:Ar.grayscale,tickComponent:y.createElement(Ci,null),tickLabelComponent:y.createElement(en,null)}),ce(Oi,"getDomain",fs),ce(Oi,"getAxis",or),ce(Oi,"expectedComponents",["axisComponent","circularAxisComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent","circularGridComponent"]);const ep=Yo(Oi,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]}),SZ={width:450,height:300,padding:50};function wZ(e,t,n){const{domain:r,scale:i,stringMap:o,categories:a,horizontal:s}=n;return{stringMap:o,horizontal:s,categories:a,startAngle:t.startAngle,endAngle:t.endAngle,innerRadius:t.innerRadius,domain:r,scale:i}}function CZ(e,t){const n=e.backgroundComponent,r=e.polar?t.range.y[1]:t.range.y[0]-t.range.y[1],i=t.range.x[1]-t.range.x[0],o=e.horizontal?t.scale.y.range()[0]:t.scale.x.range()[0],a=e.horizontal?t.scale.x.range()[1]:t.scale.y.range()[1],s=e.polar?t.origin.x:o,l=e.polar?t.origin.y:a,c=e.name||"chart",u={height:r,polar:e.polar,scale:t.scale,style:e.style.background,x:s,y:l,key:`${c}-background`,width:i};return y.cloneElement(n,K({},n.props,u))}function EZ(e,t,n){const r=cS([e]);if(r.length>0)return wZ(r[0],t,n);const{categories:i,domain:o,range:a,scale:s,stringMap:l,horizontal:c}=n;return{categories:i,domain:o,range:a,scale:s,stringMap:l,horizontal:c}}function OZ(e){const t=e.style&&e.style.parent;return{parent:K({},t,{height:"100%",width:"100%",userSelect:"none"})}}function eC(e,t){const n=OZ(e),r=Bt(e,SZ,"chart"),{horizontal:i,polar:o}=r,a=Iw(r,t),s=Lw(r,t,a),l=TZ(r,t,a),c={x:nC(Object.assign({},r,{categories:s}),"x",t),y:nC(Object.assign({},r,{categories:s}),"y",t)},u={x:Nt(r,"x"),y:Nt(r,"y")},d={x:Il(r,"x")||tf(r,"x"),y:Il(r,"y")||tf(r,"y")},f={x:d.x.domain(c.x).range(i?u.y:u.x),y:d.y.domain(c.y).range(i?u.x:u.y)},h=o?El(r):fS(c),g=xt(r);return{categories:s,domain:c,range:u,horizontal:i,scale:f,stringMap:l,style:n,origin:h,padding:g}}function kZ(e,t,n){const r=t||tC(e),i=n||eC(e,r),o=i.style.parent,{height:a,polar:s,theme:l,width:c}=e,{origin:u,horizontal:d}=i,f=e.name||"chart";return r.filter(y.isValidElement).map((h,g)=>{const p=h.type&&h.type.role,v=Array.isArray(h.props.style)?h.props.style:K({},h.props.style,{parent:o}),b=EZ(h,e,i),x=h.props.name||`${f}-${p}-${g}`,S=K({horizontal:d,height:a,polar:s,theme:l,width:c,style:v,name:x,origin:s?u:void 0,padding:i.padding,key:`${x}-key-${g}`,standalone:!1},b);return y.cloneElement(h,S)})}const tC=(e,t)=>{let n=y.Children.toArray(e.children);if(n.length===0)n.push(t.independent,t.dependent);else{const r={dependent:dS(n,"dependent"),independent:dS(n,"independent")};r.dependent.length===0&&r.independent.length===0&&(n=e.prependDefaultAxes?[t.independent,t.dependent].concat(n):n.concat([t.independent,t.dependent]))}return n},nC=(e,t,n)=>{const r=n||y.Children.toArray(e.children),i=qg(e,t,r),o=uS(r,t);return o&&o.props&&o.props.invertAxis?i.concat().reverse():i},TZ=(e,t,n)=>{const r=!n.x||n.x.length===0?null:n.x.reduce((o,a,s)=>(o[a]=s+1,o),{}),i=!n.y||n.y.length===0?null:n.y.reduce((o,a,s)=>(o[a]=s+1,o),{});return{x:r,y:i}},AZ={width:450,height:300,padding:50},DZ={backgroundComponent:y.createElement(TK,null),containerComponent:y.createElement(Qt,null),defaultAxes:{independent:y.createElement(Gl,null),dependent:y.createElement(Gl,{dependentAxis:!0})},defaultPolarAxes:{independent:y.createElement(ep,null),dependent:y.createElement(ep,{dependentAxis:!0})},groupComponent:y.createElement("g",null),standalone:!0,theme:Ar.grayscale},jZ=e=>{const t=y.useMemo(()=>K({},e,DZ),[e]),n="chart",{getAnimationProps:r,setAnimationState:i,getProps:o}=_S(),a=o(t),s=Bt(a,AZ,n),{desc:l,eventKey:c,containerComponent:u,standalone:d,groupComponent:f,externalEventMutations:h,width:g,height:p,theme:v,polar:b,name:x,title:S}=s,w=a.polar?s.defaultPolarAxes:s.defaultAxes,_=y.useMemo(()=>tC(s,w),[s,w]),E=y.useMemo(()=>eC(s,_),[s,_]),{domain:O,scale:T,style:D,origin:j,horizontal:A}=E,M=y.useMemo(()=>{const U=kZ(a,_,E).map((V,N)=>{const H=Object.assign({animate:r(a,V,N)},V.props);return y.cloneElement(V,H)});if(a.style&&a.style.background){const V=CZ(a,E);U.unshift(V)}return U},[r,_,a,E]),P=y.useMemo(()=>d?{desc:l,domain:O,width:g,height:p,horizontal:A,name:x,origin:b?j:void 0,polar:b,theme:v,title:S,scale:T,standalone:d,style:D.parent}:{},[l,O,p,A,x,j,b,T,d,D,S,v,g]),$=y.useMemo(()=>{if(d){const G=K({},u.props,P,Tr(t));return y.cloneElement(u,G)}return f},[f,d,u,P,t]),L=y.useMemo(()=>Mw(a),[a]),z=xS(t);return y.useEffect(()=>()=>{t.animate&&i(z,t)},[i,z,t]),vt(L)?y.cloneElement($,$.props,M):y.createElement(xs,{container:$,eventKey:c,events:L,externalEventMutations:h},M)},uf=y.memo(jZ,Vn);uf.displayName="VictoryChart",uf.expectedComponents=["groupComponent","containerComponent"];function PZ(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var MZ=PZ,$Z=p0,IZ=od;function LZ(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?IZ(n,s,l):$Z(n,s,l)}return n}var ql=LZ,FZ=ql,NZ=es;function BZ(e,t){return e&&FZ(t,NZ(t),e)}var WZ=BZ,zZ=ql,RZ=Ya;function VZ(e,t){return e&&zZ(t,RZ(t),e)}var UZ=VZ,df={exports:{}};df.exports,function(e,t){var n=Er,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var d=c.length,f=s?s(d):new c.constructor(d);return c.copy(f),f}e.exports=l}(df,df.exports);var rC=df.exports;function HZ(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var iC=HZ,GZ=ql,qZ=t0;function YZ(e,t){return GZ(e,qZ(e),t)}var KZ=YZ,ZZ=ql,XZ=P2;function JZ(e,t){return ZZ(e,XZ(e),t)}var QZ=JZ,eX=Object.prototype,tX=eX.hasOwnProperty;function nX(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&tX.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var rX=nX,oC=xx;function iX(e){var t=new e.constructor(e.byteLength);return new oC(t).set(new oC(e)),t}var tp=iX,oX=tp;function aX(e,t){var n=t?oX(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var sX=aX,lX=/\w*$/;function cX(e){var t=new e.constructor(e.source,lX.exec(e));return t.lastIndex=e.lastIndex,t}var uX=cX,aC=Ra,sC=aC?aC.prototype:void 0,lC=sC?sC.valueOf:void 0;function dX(e){return lC?Object(lC.call(e)):{}}var fX=dX,hX=tp;function mX(e,t){var n=t?hX(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var cC=mX,gX=tp,pX=sX,yX=uX,vX=fX,bX=cC,xX="[object Boolean]",_X="[object Date]",SX="[object Map]",wX="[object Number]",CX="[object RegExp]",EX="[object Set]",OX="[object String]",kX="[object Symbol]",TX="[object ArrayBuffer]",AX="[object DataView]",DX="[object Float32Array]",jX="[object Float64Array]",PX="[object Int8Array]",MX="[object Int16Array]",$X="[object Int32Array]",IX="[object Uint8Array]",LX="[object Uint8ClampedArray]",FX="[object Uint16Array]",NX="[object Uint32Array]";function BX(e,t,n){var r=e.constructor;switch(t){case TX:return gX(e);case xX:case _X:return new r(+e);case AX:return pX(e,n);case DX:case jX:case PX:case MX:case $X:case IX:case LX:case FX:case NX:return bX(e,n);case SX:return new r;case wX:case OX:return new r(e);case CX:return yX(e);case EX:return new r;case kX:return vX(e)}}var WX=BX,zX=Tn,uC=Object.create,RX=function(){function e(){}return function(t){if(!zX(t))return{};if(uC)return uC(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),VX=RX,UX=VX,HX=o0,GX=Pu;function qX(e){return typeof e.constructor=="function"&&!GX(e)?UX(HX(e)):{}}var dC=qX,YX=Ua,KX=Or,ZX="[object Map]";function XX(e){return KX(e)&&YX(e)==ZX}var JX=XX,QX=JX,eJ=Ha,fC=ll,hC=fC&&fC.isMap,tJ=hC?eJ(hC):QX,nJ=tJ,rJ=Ua,iJ=Or,oJ="[object Set]";function aJ(e){return iJ(e)&&rJ(e)==oJ}var sJ=aJ,lJ=sJ,cJ=Ha,mC=ll,gC=mC&&mC.isSet,uJ=gC?cJ(gC):lJ,dJ=uJ,fJ=Hu,hJ=MZ,mJ=p0,gJ=WZ,pJ=UZ,yJ=rC,vJ=iC,bJ=KZ,xJ=QZ,_J=Tx,SJ=M2,wJ=Ua,CJ=rX,EJ=WX,OJ=dC,kJ=yn,TJ=sl,AJ=nJ,DJ=Tn,jJ=dJ,PJ=es,MJ=Ya,$J=1,IJ=2,LJ=4,pC="[object Arguments]",FJ="[object Array]",NJ="[object Boolean]",BJ="[object Date]",WJ="[object Error]",yC="[object Function]",zJ="[object GeneratorFunction]",RJ="[object Map]",VJ="[object Number]",vC="[object Object]",UJ="[object RegExp]",HJ="[object Set]",GJ="[object String]",qJ="[object Symbol]",YJ="[object WeakMap]",KJ="[object ArrayBuffer]",ZJ="[object DataView]",XJ="[object Float32Array]",JJ="[object Float64Array]",QJ="[object Int8Array]",eQ="[object Int16Array]",tQ="[object Int32Array]",nQ="[object Uint8Array]",rQ="[object Uint8ClampedArray]",iQ="[object Uint16Array]",oQ="[object Uint32Array]",ht={};ht[pC]=ht[FJ]=ht[KJ]=ht[ZJ]=ht[NJ]=ht[BJ]=ht[XJ]=ht[JJ]=ht[QJ]=ht[eQ]=ht[tQ]=ht[RJ]=ht[VJ]=ht[vC]=ht[UJ]=ht[HJ]=ht[GJ]=ht[qJ]=ht[nQ]=ht[rQ]=ht[iQ]=ht[oQ]=!0,ht[WJ]=ht[yC]=ht[YJ]=!1;function ff(e,t,n,r,i,o){var a,s=t&$J,l=t&IJ,c=t&LJ;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!DJ(e))return e;var u=kJ(e);if(u){if(a=CJ(e),!s)return vJ(e,a)}else{var d=wJ(e),f=d==yC||d==zJ;if(TJ(e))return yJ(e,s);if(d==vC||d==pC||f&&!i){if(a=l||f?{}:OJ(e),!s)return l?xJ(e,pJ(a,e)):bJ(e,gJ(a,e))}else{if(!ht[d])return i?e:{};a=EJ(e,d,s)}}o||(o=new fJ);var h=o.get(e);if(h)return h;o.set(e,a),jJ(e)?e.forEach(function(v){a.add(ff(v,t,n,v,e,o))}):AJ(e)&&e.forEach(function(v,b){a.set(b,ff(v,t,n,b,e,o))});var g=c?l?SJ:_J:l?MJ:PJ,p=u?void 0:g(e);return hJ(p||e,function(v,b){p&&(b=v,v=e[b]),mJ(a,b,ff(v,t,n,b,e,o))}),a}var aQ=ff,sQ=aQ,lQ=1,cQ=4;function uQ(e){return sQ(e,lQ|cQ)}var dQ=uQ;const bC=Fe(dQ);var fQ=od,hQ=Vo;function mQ(e,t,n){(n!==void 0&&!hQ(e[t],n)||n===void 0&&!(t in e))&&fQ(e,t,n)}var xC=mQ,gQ=Ro,pQ=Or;function yQ(e){return pQ(e)&&gQ(e)}var vQ=yQ;function bQ(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var _C=bQ,xQ=ql,_Q=Ya;function SQ(e){return xQ(e,_Q(e))}var wQ=SQ,SC=xC,CQ=rC,EQ=cC,OQ=iC,kQ=dC,wC=al,CC=yn,TQ=vQ,AQ=sl,DQ=Mm,jQ=Tn,PQ=Kx,MQ=Iu,EC=_C,$Q=wQ;function IQ(e,t,n,r,i,o,a){var s=EC(e,n),l=EC(t,n),c=a.get(l);if(c){SC(e,n,c);return}var u=o?o(s,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var f=CC(l),h=!f&&AQ(l),g=!f&&!h&&MQ(l);u=l,f||h||g?CC(s)?u=s:TQ(s)?u=OQ(s):h?(d=!1,u=CQ(l,!0)):g?(d=!1,u=EQ(l,!0)):u=[]:PQ(l)||wC(l)?(u=s,wC(s)?u=$Q(s):(!jQ(s)||DQ(s))&&(u=kQ(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),SC(e,n,u)}var LQ=IQ,FQ=Hu,NQ=xC,BQ=Vx,WQ=LQ,zQ=Tn,RQ=Ya,VQ=_C;function OC(e,t,n,r,i){e!==t&&BQ(t,function(o,a){if(i||(i=new FQ),zQ(o))WQ(e,t,a,n,OC,r,i);else{var s=r?r(VQ(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),NQ(e,a,s)}},RQ)}var UQ=OC,HQ=Rm,GQ=Vm;function qQ(e){return HQ(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&GQ(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}var YQ=qQ,KQ=UQ,ZQ=YQ,XQ=ZQ(function(e,t,n){KQ(e,t,n)}),JQ=XQ;const _s=Fe(JQ),_t={blue:"blue",cyan:"cyan",default:"blue",gold:"gold",gray:"gray",green:"green",multi:"multi",multiOrdered:"multi-ordered",multiUnordered:"multi-unordered",orange:"orange",purple:"purple",skeleton:"skeleton"},QQ={name:"--pf-v5-chart-axis--grid--stroke--Color",value:"#d2d2d2",var:"var(--pf-v5-chart-axis--grid--stroke--Color, #d2d2d2)"},kC={name:"--pf-v5-chart-axis--tick--stroke--Color",value:"#d2d2d2",var:"var(--pf-v5-chart-axis--tick--stroke--Color, #d2d2d2)"},TC={name:"--pf-v5-chart-global--FontFamily",value:'"RedHatText", helvetica, arial, sans-serif',var:'var(--pf-v5-chart-global--FontFamily, "RedHatText", helvetica, arial, sans-serif)'},AC={name:"--pf-v5-chart-global--letter-spacing",value:"normal",var:"var(--pf-v5-chart-global--letter-spacing, normal)"},np={name:"--pf-v5-chart-global--FontSize--sm",value:14,var:"var(--pf-v5-chart-global--FontSize--sm, 14)"},eee={name:"--pf-v5-chart-global--label--Padding",value:10,var:"var(--pf-v5-chart-global--label--Padding, 10)"},tee={name:"--pf-v5-chart-global--label--stroke",value:"transparent",var:"var(--pf-v5-chart-global--label--stroke, transparent)"},nee={name:"--pf-v5-chart-global--label--text-anchor",value:"middle",var:"var(--pf-v5-chart-global--label--text-anchor, middle)"},DC={name:"--pf-v5-chart-global--label--Fill",value:"#151515",var:"var(--pf-v5-chart-global--label--Fill, #151515)"},jC={name:"--pf-v5-chart-global--layout--Padding",value:50,var:"var(--pf-v5-chart-global--layout--Padding, 50)"},ree={name:"--pf-v5-chart-global--layout--Height",value:300,var:"var(--pf-v5-chart-global--layout--Height, 300)"},iee={name:"--pf-v5-chart-global--layout--Width",value:450,var:"var(--pf-v5-chart-global--layout--Width, 450)"},oee={name:"--pf-v5-chart-global--stroke-line-cap",value:"round",var:"var(--pf-v5-chart-global--stroke-line-cap, round)"},aee={name:"--pf-v5-chart-global--stroke-line-join",value:"round",var:"var(--pf-v5-chart-global--stroke-line-join, round)"},see={name:"--pf-v5-chart-area--data--Fill",value:"#151515",var:"var(--pf-v5-chart-area--data--Fill, #151515)"},lee={name:"--pf-v5-chart-area--Opacity",value:.3,var:"var(--pf-v5-chart-area--Opacity, 0.3)"},cee={name:"--pf-v5-chart-area--stroke--Width",value:2,var:"var(--pf-v5-chart-area--stroke--Width, 2)"},uee={name:"--pf-v5-chart-axis--axis--stroke--Width",value:1,var:"var(--pf-v5-chart-axis--axis--stroke--Width, 1)"},dee={name:"--pf-v5-chart-axis--axis--stroke--Color",value:"#d2d2d2",var:"var(--pf-v5-chart-axis--axis--stroke--Color, #d2d2d2)"},fee={name:"--pf-v5-chart-axis--axis--Fill",value:"transparent",var:"var(--pf-v5-chart-axis--axis--Fill, transparent)"},hee={name:"--pf-v5-chart-axis--axis-label--Padding",value:40,var:"var(--pf-v5-chart-axis--axis-label--Padding, 40)"},mee={name:"--pf-v5-chart-axis--axis-label--stroke--Color",value:"transparent",var:"var(--pf-v5-chart-axis--axis-label--stroke--Color, transparent)"},gee={name:"--pf-v5-chart-axis--grid--Fill",value:"none",var:"var(--pf-v5-chart-axis--grid--Fill, none)"},pee={name:"--pf-v5-chart-axis--grid--PointerEvents",value:"painted",var:"var(--pf-v5-chart-axis--grid--PointerEvents, painted)"},yee={name:"--pf-v5-chart-axis--tick--Fill",value:"transparent",var:"var(--pf-v5-chart-axis--tick--Fill, transparent)"},vee={name:"--pf-v5-chart-axis--tick--Size",value:5,var:"var(--pf-v5-chart-axis--tick--Size, 5)"},bee={name:"--pf-v5-chart-axis--tick--Width",value:1,var:"var(--pf-v5-chart-axis--tick--Width, 1)"},xee={name:"--pf-v5-chart-axis--tick-label--Fill",value:"#4f5255",var:"var(--pf-v5-chart-axis--tick-label--Fill, #4f5255)"},_ee={name:"--pf-v5-chart-bar--Width",value:10,var:"var(--pf-v5-chart-bar--Width, 10)"},See={name:"--pf-v5-chart-bar--data--stroke",value:"none",var:"var(--pf-v5-chart-bar--data--stroke, none)"},wee={name:"--pf-v5-chart-bar--data--Fill",value:"#151515",var:"var(--pf-v5-chart-bar--data--Fill, #151515)"},Cee={name:"--pf-v5-chart-bar--data--Padding",value:8,var:"var(--pf-v5-chart-bar--data--Padding, 8)"},Eee={name:"--pf-v5-chart-bar--data-stroke--Width",value:0,var:"var(--pf-v5-chart-bar--data-stroke--Width, 0)"},Oee={name:"--pf-v5-chart-boxplot--max--Padding",value:8,var:"var(--pf-v5-chart-boxplot--max--Padding, 8)"},kee={name:"--pf-v5-chart-boxplot--max--stroke--Color",value:"#151515",var:"var(--pf-v5-chart-boxplot--max--stroke--Color, #151515)"},Tee={name:"--pf-v5-chart-boxplot--max--stroke--Width",value:1,var:"var(--pf-v5-chart-boxplot--max--stroke--Width, 1)"},Aee={name:"--pf-v5-chart-boxplot--median--Padding",value:8,var:"var(--pf-v5-chart-boxplot--median--Padding, 8)"},Dee={name:"--pf-v5-chart-boxplot--median--stroke--Color",value:"#151515",var:"var(--pf-v5-chart-boxplot--median--stroke--Color, #151515)"},jee={name:"--pf-v5-chart-boxplot--median--stroke--Width",value:1,var:"var(--pf-v5-chart-boxplot--median--stroke--Width, 1)"},Pee={name:"--pf-v5-chart-boxplot--min--Padding",value:8,var:"var(--pf-v5-chart-boxplot--min--Padding, 8)"},Mee={name:"--pf-v5-chart-boxplot--min--stroke--Width",value:1,var:"var(--pf-v5-chart-boxplot--min--stroke--Width, 1)"},$ee={name:"--pf-v5-chart-boxplot--min--stroke--Color",value:"#151515",var:"var(--pf-v5-chart-boxplot--min--stroke--Color, #151515)"},Iee={name:"--pf-v5-chart-boxplot--lower-quartile--Padding",value:8,var:"var(--pf-v5-chart-boxplot--lower-quartile--Padding, 8)"},Lee={name:"--pf-v5-chart-boxplot--lower-quartile--Fill",value:"#8a8d90",var:"var(--pf-v5-chart-boxplot--lower-quartile--Fill, #8a8d90)"},Fee={name:"--pf-v5-chart-boxplot--upper-quartile--Padding",value:8,var:"var(--pf-v5-chart-boxplot--upper-quartile--Padding, 8)"},Nee={name:"--pf-v5-chart-boxplot--upper-quartile--Fill",value:"#8a8d90",var:"var(--pf-v5-chart-boxplot--upper-quartile--Fill, #8a8d90)"},Bee={name:"--pf-v5-chart-boxplot--box--Width",value:20,var:"var(--pf-v5-chart-boxplot--box--Width, 20)"},Wee={name:"--pf-v5-chart-candelstick--data--stroke--Width",value:1,var:"var(--pf-v5-chart-candelstick--data--stroke--Width, 1)"},zee={name:"--pf-v5-chart-candelstick--data--stroke--Color",value:"#151515",var:"var(--pf-v5-chart-candelstick--data--stroke--Color, #151515)"},Ree={name:"--pf-v5-chart-candelstick--candle--positive--Color",value:"#fff",var:"var(--pf-v5-chart-candelstick--candle--positive--Color, #fff)"},Vee={name:"--pf-v5-chart-candelstick--candle--negative--Color",value:"#151515",var:"var(--pf-v5-chart-candelstick--candle--negative--Color, #151515)"},Uee={name:"--pf-v5-chart-errorbar--BorderWidth",value:8,var:"var(--pf-v5-chart-errorbar--BorderWidth, 8)"},Hee={name:"--pf-v5-chart-errorbar--data--Fill",value:"transparent",var:"var(--pf-v5-chart-errorbar--data--Fill, transparent)"},Gee={name:"--pf-v5-chart-errorbar--data--Opacity",value:1,var:"var(--pf-v5-chart-errorbar--data--Opacity, 1)"},qee={name:"--pf-v5-chart-errorbar--data-stroke--Width",value:2,var:"var(--pf-v5-chart-errorbar--data-stroke--Width, 2)"},Yee={name:"--pf-v5-chart-errorbar--data-stroke--Color",value:"#151515",var:"var(--pf-v5-chart-errorbar--data-stroke--Color, #151515)"},Kee={name:"--pf-v5-chart-legend--gutter--Width",value:20,var:"var(--pf-v5-chart-legend--gutter--Width, 20)"},Zee={name:"--pf-v5-chart-legend--orientation",value:"horizontal",var:"var(--pf-v5-chart-legend--orientation, horizontal)"},Xee={name:"--pf-v5-chart-legend--title--orientation",value:"top",var:"var(--pf-v5-chart-legend--title--orientation, top)"},Jee={name:"--pf-v5-chart-legend--data--type",value:"square",var:"var(--pf-v5-chart-legend--data--type, square)"},Qee={name:"--pf-v5-chart-legend--title--Padding",value:2,var:"var(--pf-v5-chart-legend--title--Padding, 2)"},ete={name:"--pf-v5-chart-line--data--Fill",value:"transparent",var:"var(--pf-v5-chart-line--data--Fill, transparent)"},tte={name:"--pf-v5-chart-line--data--Opacity",value:1,var:"var(--pf-v5-chart-line--data--Opacity, 1)"},nte={name:"--pf-v5-chart-line--data--stroke--Width",value:2,var:"var(--pf-v5-chart-line--data--stroke--Width, 2)"},rte={name:"--pf-v5-chart-line--data--stroke--Color",value:"#151515",var:"var(--pf-v5-chart-line--data--stroke--Color, #151515)"},ite={name:"--pf-v5-chart-pie--Padding",value:20,var:"var(--pf-v5-chart-pie--Padding, 20)"},ote={name:"--pf-v5-chart-pie--data--Padding",value:8,var:"var(--pf-v5-chart-pie--data--Padding, 8)"},ate={name:"--pf-v5-chart-pie--data--stroke--Width",value:1,var:"var(--pf-v5-chart-pie--data--stroke--Width, 1)"},ste={name:"--pf-v5-chart-pie--data--stroke--Color",value:"transparent",var:"var(--pf-v5-chart-pie--data--stroke--Color, transparent)"},lte={name:"--pf-v5-chart-pie--labels--Padding",value:8,var:"var(--pf-v5-chart-pie--labels--Padding, 8)"},cte={name:"--pf-v5-chart-pie--Height",value:230,var:"var(--pf-v5-chart-pie--Height, 230)"},ute={name:"--pf-v5-chart-pie--Width",value:230,var:"var(--pf-v5-chart-pie--Width, 230)"},dte={name:"--pf-v5-chart-scatter--data--stroke--Color",value:"transparent",var:"var(--pf-v5-chart-scatter--data--stroke--Color, transparent)"},fte={name:"--pf-v5-chart-scatter--data--stroke--Width",value:0,var:"var(--pf-v5-chart-scatter--data--stroke--Width, 0)"},hte={name:"--pf-v5-chart-scatter--data--Opacity",value:1,var:"var(--pf-v5-chart-scatter--data--Opacity, 1)"},mte={name:"--pf-v5-chart-scatter--data--Fill",value:"#151515",var:"var(--pf-v5-chart-scatter--data--Fill, #151515)"},gte={name:"--pf-v5-chart-stack--data--stroke--Width",value:1,var:"var(--pf-v5-chart-stack--data--stroke--Width, 1)"},pte={name:"--pf-v5-chart-tooltip--corner-radius",value:0,var:"var(--pf-v5-chart-tooltip--corner-radius, 0)"},yte={name:"--pf-v5-chart-tooltip--pointer-length",value:10,var:"var(--pf-v5-chart-tooltip--pointer-length, 10)"},vte={name:"--pf-v5-chart-tooltip--Fill",value:"#f0f0f0",var:"var(--pf-v5-chart-tooltip--Fill, #f0f0f0)"},bte={name:"--pf-v5-chart-tooltip--flyoutStyle--corner-radius",value:0,var:"var(--pf-v5-chart-tooltip--flyoutStyle--corner-radius, 0)"},xte={name:"--pf-v5-chart-tooltip--flyoutStyle--stroke--Width",value:0,var:"var(--pf-v5-chart-tooltip--flyoutStyle--stroke--Width, 0)"},_te={name:"--pf-v5-chart-tooltip--flyoutStyle--PointerEvents",value:"none",var:"var(--pf-v5-chart-tooltip--flyoutStyle--PointerEvents, none)"},Ste={name:"--pf-v5-chart-tooltip--flyoutStyle--stroke--Color",value:"#151515",var:"var(--pf-v5-chart-tooltip--flyoutStyle--stroke--Color, #151515)"},wte={name:"--pf-v5-chart-tooltip--flyoutStyle--Fill",value:"#151515",var:"var(--pf-v5-chart-tooltip--flyoutStyle--Fill, #151515)"},Cte={name:"--pf-v5-chart-tooltip--pointer--Width",value:20,var:"var(--pf-v5-chart-tooltip--pointer--Width, 20)"},Ete={name:"--pf-v5-chart-tooltip--Padding",value:8,var:"var(--pf-v5-chart-tooltip--Padding, 8)"},Ote={name:"--pf-v5-chart-tooltip--PointerEvents",value:"none",var:"var(--pf-v5-chart-tooltip--PointerEvents, none)"},kte={name:"--pf-v5-chart-voronoi--data--Fill",value:"transparent",var:"var(--pf-v5-chart-voronoi--data--Fill, transparent)"},Tte={name:"--pf-v5-chart-voronoi--data--stroke--Color",value:"transparent",var:"var(--pf-v5-chart-voronoi--data--stroke--Color, transparent)"},Ate={name:"--pf-v5-chart-voronoi--data--stroke--Width",value:0,var:"var(--pf-v5-chart-voronoi--data--stroke--Width, 0)"},PC={name:"--pf-v5-chart-voronoi--labels--Fill",value:"#f0f0f0",var:"var(--pf-v5-chart-voronoi--labels--Fill, #f0f0f0)"},Dte={name:"--pf-v5-chart-voronoi--labels--Padding",value:8,var:"var(--pf-v5-chart-voronoi--labels--Padding, 8)"},jte={name:"--pf-v5-chart-voronoi--labels--PointerEvents",value:"none",var:"var(--pf-v5-chart-voronoi--labels--PointerEvents, none)"},Pte={name:"--pf-v5-chart-voronoi--flyout--stroke--Width",value:1,var:"var(--pf-v5-chart-voronoi--flyout--stroke--Width, 1)"},Mte={name:"--pf-v5-chart-voronoi--flyout--PointerEvents",value:"none",var:"var(--pf-v5-chart-voronoi--flyout--PointerEvents, none)"},$te={name:"--pf-v5-chart-voronoi--flyout--stroke--Color",value:"#151515",var:"var(--pf-v5-chart-voronoi--flyout--stroke--Color, #151515)"},Ite={name:"--pf-v5-chart-voronoi--flyout--stroke--Fill",value:"#151515",var:"var(--pf-v5-chart-voronoi--flyout--stroke--Fill, #151515)"},Lte={name:"--pf-v5-chart-donut--pie--Height",value:230,var:"var(--pf-v5-chart-donut--pie--Height, 230)"},Fte={name:"--pf-v5-chart-donut--pie--angle--Padding",value:1,var:"var(--pf-v5-chart-donut--pie--angle--Padding, 1)"},Nte={name:"--pf-v5-chart-donut--pie--Padding",value:20,var:"var(--pf-v5-chart-donut--pie--Padding, 20)"},Bte={name:"--pf-v5-chart-donut--pie--Width",value:230,var:"var(--pf-v5-chart-donut--pie--Width, 230)"},Wte={name:"--pf-v5-chart-donut--threshold--dynamic--pie--Height",value:202,var:"var(--pf-v5-chart-donut--threshold--dynamic--pie--Height, 202)"},zte={name:"--pf-v5-chart-donut--threshold--dynamic--pie--Padding",value:20,var:"var(--pf-v5-chart-donut--threshold--dynamic--pie--Padding, 20)"},Rte={name:"--pf-v5-chart-donut--threshold--dynamic--pie--Width",value:202,var:"var(--pf-v5-chart-donut--threshold--dynamic--pie--Width, 202)"},Vte={name:"--pf-v5-chart-donut--threshold--static--pie--Height",value:230,var:"var(--pf-v5-chart-donut--threshold--static--pie--Height, 230)"},Ute={name:"--pf-v5-chart-donut--threshold--static--pie--angle--Padding",value:1,var:"var(--pf-v5-chart-donut--threshold--static--pie--angle--Padding, 1)"},Hte={name:"--pf-v5-chart-donut--threshold--static--pie--Padding",value:20,var:"var(--pf-v5-chart-donut--threshold--static--pie--Padding, 20)"},Gte={name:"--pf-v5-chart-donut--threshold--static--pie--Width",value:230,var:"var(--pf-v5-chart-donut--threshold--static--pie--Width, 230)"},qte={name:"--pf-v5-chart-donut--utilization--dynamic--pie--Height",value:230,var:"var(--pf-v5-chart-donut--utilization--dynamic--pie--Height, 230)"},Yte={name:"--pf-v5-chart-donut--utilization--dynamic--pie--Padding",value:20,var:"var(--pf-v5-chart-donut--utilization--dynamic--pie--Padding, 20)"},Kte={name:"--pf-v5-chart-donut--utilization--dynamic--pie--angle--Padding",value:1,var:"var(--pf-v5-chart-donut--utilization--dynamic--pie--angle--Padding, 1)"},Zte={name:"--pf-v5-chart-donut--utilization--dynamic--pie--Width",value:230,var:"var(--pf-v5-chart-donut--utilization--dynamic--pie--Width, 230)"},Xte={name:"--pf-v5-chart-threshold--stroke-dash-array",value:"4,2",var:"var(--pf-v5-chart-threshold--stroke-dash-array, 4,2)"},Jte={name:"--pf-v5-chart-threshold--stroke--Width",value:1.5,var:"var(--pf-v5-chart-threshold--stroke--Width, 1.5)"},Hr={name:"--pf-v5-chart-bullet--Height",value:140,var:"var(--pf-v5-chart-bullet--Height, 140)"},Qte={name:"--pf-v5-chart-bullet--comparative-measure--error--stroke--Width",value:2,var:"var(--pf-v5-chart-bullet--comparative-measure--error--stroke--Width, 2)"},ene={name:"--pf-v5-chart-bullet--comparative-measure--stroke--Width",value:1,var:"var(--pf-v5-chart-bullet--comparative-measure--stroke--Width, 1)"},tne={name:"--pf-v5-chart-bullet--comparative-measure--warning--stroke--Width",value:2,var:"var(--pf-v5-chart-bullet--comparative-measure--warning--stroke--Width, 2)"},nne={name:"--pf-v5-chart-bullet--group-title--divider--stroke--Width",value:2,var:"var(--pf-v5-chart-bullet--group-title--divider--stroke--Width, 2)"},rne=TC.value.replace(/ /g,""),ine=AC.value,MC=np.value,Dr={fontFamily:rne,fontSize:MC,letterSpacing:ine,padding:eee.value,stroke:tee.var,fill:DC.var},sa=Object.assign(Object.assign({},Dr),{textAnchor:nee.value}),lr={padding:jC.value,height:ree.value,width:iee.value},rp=oee.value,ip=aee.value,one={area:Object.assign(Object.assign({},lr),{style:{data:{fill:see.var,fillOpacity:lee.value,strokeWidth:cee.value},labels:sa}}),axis:Object.assign(Object.assign({},lr),{style:{axis:{fill:fee.var,strokeWidth:uee.value,stroke:dee.var,strokeLinecap:rp,strokeLinejoin:ip},axisLabel:Object.assign(Object.assign({},sa),{padding:hee.value,stroke:mee.var}),grid:{fill:gee.var,stroke:"transparent",pointerEvents:pee.value,strokeLinecap:rp,strokeLinejoin:ip},ticks:{fill:yee.var,size:vee.value,stroke:kC.var,strokeLinecap:rp,strokeLinejoin:ip,strokeWidth:bee.value},tickLabels:Object.assign(Object.assign({},Dr),{fill:xee.var})}}),bar:Object.assign(Object.assign({},lr),{barWidth:_ee.value,style:{data:{fill:wee.var,padding:Cee.value,stroke:See.var,strokeWidth:Eee.value},labels:Dr}}),boxplot:Object.assign(Object.assign({},lr),{style:{max:{padding:Oee.value,stroke:kee.var,strokeWidth:Tee.value},maxLabels:Dr,median:{padding:Aee.value,stroke:Dee.var,strokeWidth:jee.value},medianLabels:Dr,min:{padding:Pee.value,stroke:$ee.var,strokeWidth:Mee.value},minLabels:Dr,q1:{fill:Lee.var,padding:Iee.value},q1Labels:Dr,q3:{fill:Nee.var,padding:Fee.value},q3Labels:Dr},boxWidth:Bee.value}),candlestick:Object.assign(Object.assign({},lr),{candleColors:{positive:Ree.var,negative:Vee.var},style:{data:{stroke:zee.var,strokeWidth:Wee.value},labels:sa}}),chart:Object.assign({},lr),errorbar:Object.assign(Object.assign({},lr),{borderWidth:Uee.value,style:{data:{fill:Hee.var,opacity:Gee.value,stroke:Yee.var,strokeWidth:qee.value},labels:sa}}),group:Object.assign({},lr),legend:{gutter:Kee.value,orientation:Zee.value,titleOrientation:Xee.value,style:{data:{type:Jee.value},labels:Dr,title:Object.assign(Object.assign({},Dr),{fontSize:MC,padding:Qee.value})}},line:Object.assign(Object.assign({},lr),{style:{data:{fill:ete.var,opacity:tte.value,stroke:rte.var,strokeWidth:nte.value},labels:sa}}),pie:{padding:ite.value,style:{data:{padding:ote.value,stroke:ste.var,strokeWidth:ate.value},labels:Object.assign(Object.assign({},Dr),{padding:lte.value})},height:cte.value,width:ute.value},scatter:Object.assign(Object.assign({},lr),{style:{data:{fill:mte.var,opacity:hte.value,stroke:dte.var,strokeWidth:fte.value},labels:sa}}),stack:Object.assign(Object.assign({},lr),{style:{data:{strokeWidth:gte.value}}}),tooltip:{cornerRadius:pte.value,flyoutPadding:Ete.value,flyoutStyle:{cornerRadius:bte.value,fill:wte.var,pointerEvents:_te.var,stroke:Ste.var,strokeWidth:xte.var},pointerLength:yte.value,pointerWidth:Cte.value,style:{fill:vte.var,pointerEvents:Ote.var}},voronoi:Object.assign(Object.assign({},lr),{style:{data:{fill:kte.var,stroke:Tte.var,strokeWidth:Ate.value},labels:Object.assign(Object.assign({},sa),{fill:PC.var,padding:Dte.value,pointerEvents:jte.value}),flyout:{fill:Ite.var,pointerEvents:Mte.var,stroke:$te.var,strokeWidth:Pte.var}}})},ane={axis:{},bullet:{chart:{height:Hr.value}},bulletComparativeErrorMeasure:{bar:{height:Hr.value,style:{data:{strokeWidth:Qte.value}}}},bulletComparativeMeasure:{bar:{height:Hr.value,style:{data:{strokeWidth:ene.value}}}},bulletComparativeWarningMeasure:{bar:{height:Hr.value,style:{data:{strokeWidth:tne.value}}}},bulletGroupTitle:{chart:{padding:{bottom:0,left:0,right:0,top:jC.value}},line:{style:{data:{strokeWidth:nne.value}}}},bulletPrimaryDotMeasure:{group:{height:Hr.value}},bulletPrimaryNegativeMeasure:{group:{height:Hr.value}},bulletPrimarySegmentedMeasure:{group:{height:Hr.value}},bulletQualitativeRange:{group:{height:Hr.value}},donut:{pie:{height:Lte.value,padding:Nte.value,padAngle:Fte.value,width:Bte.value}},donutThresholdDynamic:{pie:{height:Wte.value,padding:zte.value,width:Rte.value}},donutThresholdStatic:{pie:{height:Vte.value,padAngle:Ute.value,padding:Hte.value,width:Gte.value}},donutUtilization:{pie:{height:qte.value,padding:Yte.value,padAngle:Kte.value,width:Zte.value}},threshold:{line:{style:{data:{strokeDasharray:Xte.value,strokeWidth:Jte.value}}}}},sne={name:"--pf-v5-chart-bullet--comparative-measure--Fill--Color",value:"#4f5255",var:"var(--pf-v5-chart-bullet--comparative-measure--Fill--Color, #4f5255)"},lne={name:"--pf-v5-chart-bullet--comparative-measure--stroke--Color",value:"#4f5255",var:"var(--pf-v5-chart-bullet--comparative-measure--stroke--Color, #4f5255)"},cne={name:"--pf-v5-chart-bullet--comparative-measure--error--Fill--Color",value:"#c9190b",var:"var(--pf-v5-chart-bullet--comparative-measure--error--Fill--Color, #c9190b)"},une={name:"--pf-v5-chart-bullet--comparative-measure--error--stroke--Color",value:"#c9190b",var:"var(--pf-v5-chart-bullet--comparative-measure--error--stroke--Color, #c9190b)"},dne={name:"--pf-v5-chart-bullet--comparative-measure--warning--Fill--Color",value:"#ec7a08",var:"var(--pf-v5-chart-bullet--comparative-measure--warning--Fill--Color, #ec7a08)"},fne={name:"--pf-v5-chart-bullet--comparative-measure--warning--stroke--Color",value:"#ec7a08",var:"var(--pf-v5-chart-bullet--comparative-measure--warning--stroke--Color, #ec7a08)"},hne={name:"--pf-v5-chart-bullet--group-title--divider--Fill--Color",value:"#f0f0f0",var:"var(--pf-v5-chart-bullet--group-title--divider--Fill--Color, #f0f0f0)"},mne={name:"--pf-v5-chart-bullet--group-title--divider--stroke--Color",value:"#f0f0f0",var:"var(--pf-v5-chart-bullet--group-title--divider--stroke--Color, #f0f0f0)"},$C={name:"--pf-v5-chart-bullet--qualitative-range--ColorScale--100",value:"#f0f0f0",var:"var(--pf-v5-chart-bullet--qualitative-range--ColorScale--100, #f0f0f0)"},IC={name:"--pf-v5-chart-bullet--qualitative-range--ColorScale--200",value:"#d2d2d2",var:"var(--pf-v5-chart-bullet--qualitative-range--ColorScale--200, #d2d2d2)"},LC={name:"--pf-v5-chart-bullet--qualitative-range--ColorScale--300",value:"#b8bbbe",var:"var(--pf-v5-chart-bullet--qualitative-range--ColorScale--300, #b8bbbe)"},FC={name:"--pf-v5-chart-bullet--qualitative-range--ColorScale--400",value:"#8a8d90",var:"var(--pf-v5-chart-bullet--qualitative-range--ColorScale--400, #8a8d90)"},NC={name:"--pf-v5-chart-bullet--qualitative-range--ColorScale--500",value:"#6a6e73",var:"var(--pf-v5-chart-bullet--qualitative-range--ColorScale--500, #6a6e73)"},gne={name:"--pf-v5-chart-bullet--negative-measure--ColorScale--100",value:"#c9190b",var:"var(--pf-v5-chart-bullet--negative-measure--ColorScale--100, #c9190b)"},pne={name:"--pf-v5-chart-bullet--negative-measure--ColorScale--200",value:"#a30000",var:"var(--pf-v5-chart-bullet--negative-measure--ColorScale--200, #a30000)"},yne={name:"--pf-v5-chart-bullet--negative-measure--ColorScale--300",value:"#7d1007",var:"var(--pf-v5-chart-bullet--negative-measure--ColorScale--300, #7d1007)"},vne={name:"--pf-v5-chart-bullet--negative-measure--ColorScale--400",value:"#470000",var:"var(--pf-v5-chart-bullet--negative-measure--ColorScale--400, #470000)"},bne={name:"--pf-v5-chart-bullet--negative-measure--ColorScale--500",value:"#2c0000",var:"var(--pf-v5-chart-bullet--negative-measure--ColorScale--500, #2c0000)"},hf={name:"--pf-v5-chart-donut--threshold--first--Color",value:"#f0f0f0",var:"var(--pf-v5-chart-donut--threshold--first--Color, #f0f0f0)"},mf={name:"--pf-v5-chart-donut--threshold--second--Color",value:"#d2d2d2",var:"var(--pf-v5-chart-donut--threshold--second--Color, #d2d2d2)"},gf={name:"--pf-v5-chart-donut--threshold--third--Color",value:"#b8bbbe",var:"var(--pf-v5-chart-donut--threshold--third--Color, #b8bbbe)"},xne=one,_ne=ane,Sne={name:"--pf-v5-chart-theme--blue--ColorScale--100",value:"#06c",var:"var(--pf-v5-chart-theme--blue--ColorScale--100, #06c)"},wne={name:"--pf-v5-chart-theme--blue--ColorScale--200",value:"#8bc1f7",var:"var(--pf-v5-chart-theme--blue--ColorScale--200, #8bc1f7)"},Cne={name:"--pf-v5-chart-theme--blue--ColorScale--300",value:"#002f5d",var:"var(--pf-v5-chart-theme--blue--ColorScale--300, #002f5d)"},Ene={name:"--pf-v5-chart-theme--blue--ColorScale--400",value:"#519de9",var:"var(--pf-v5-chart-theme--blue--ColorScale--400, #519de9)"},One={name:"--pf-v5-chart-theme--blue--ColorScale--500",value:"#004b95",var:"var(--pf-v5-chart-theme--blue--ColorScale--500, #004b95)"},ki=e=>{const{COLOR_SCALE:t}=e;return{area:{colorScale:t,style:{data:{fill:t[0]}}},axis:{colorScale:t},bar:{colorScale:t,style:{data:{fill:t[0]}}},boxplot:{colorScale:t,style:{q1:{fill:t[0]},q3:{fill:t[0]}}},candlestick:{colorScale:t},chart:{colorScale:t},errorbar:{colorScale:t},group:{colorScale:t},legend:{colorScale:t},line:{colorScale:t,style:{data:{stroke:t[0]}}},pie:{colorScale:t},scatter:{colorScale:t},stack:{colorScale:t},voronoi:{colorScale:t}}},Ti=e=>{const{COLOR_SCALE:t}=e;return{axis:{axis:{style:{grid:{stroke:QQ.var},ticks:{stroke:kC.var}}}},bullet:{},bulletComparativeErrorMeasure:{bar:{style:{data:{fill:cne.var,stroke:une.var}}}},bulletComparativeMeasure:{bar:{height:Hr.value,style:{data:{fill:sne.var,stroke:lne.var}}}},bulletComparativeWarningMeasure:{bar:{height:Hr.value,style:{data:{fill:dne.var,stroke:fne.var}}}},bulletGroupTitle:{line:{style:{data:{fill:hne.var,stroke:mne.var}}}},bulletPrimaryDotMeasure:{},bulletPrimarySegmentedMeasure:{},bulletQualitativeRange:{group:{colorScale:[$C.var,IC.var,LC.var,FC.var,NC.var]}},bulletPrimaryNegativeMeasure:{group:{colorScale:[gne.var,pne.var,yne.var,vne.var,bne.var]}},donut:{},donutThresholdDynamic:{legend:{colorScale:[t[0],mf.var,gf.var]},pie:{colorScale:[t[0],hf.var,mf.var,gf.var]}},donutThresholdStatic:{pie:{colorScale:[hf.var,mf.var,gf.var]}},donutUtilization:{legend:{colorScale:[t[0],hf.var,mf.var,gf.var]},pie:{colorScale:[t[0],hf.var]}},label:{},threshold:{}}},BC=[Sne.var,wne.var,Cne.var,Ene.var,One.var],WC=ki({COLOR_SCALE:BC}),zC=Ti({COLOR_SCALE:BC}),kne={name:"--pf-v5-chart-theme--cyan--ColorScale--100",value:"#009596",var:"var(--pf-v5-chart-theme--cyan--ColorScale--100, #009596)"},Tne={name:"--pf-v5-chart-theme--cyan--ColorScale--200",value:"#a2d9d9",var:"var(--pf-v5-chart-theme--cyan--ColorScale--200, #a2d9d9)"},Ane={name:"--pf-v5-chart-theme--cyan--ColorScale--300",value:"#003737",var:"var(--pf-v5-chart-theme--cyan--ColorScale--300, #003737)"},Dne={name:"--pf-v5-chart-theme--cyan--ColorScale--400",value:"#73c5c5",var:"var(--pf-v5-chart-theme--cyan--ColorScale--400, #73c5c5)"},jne={name:"--pf-v5-chart-theme--cyan--ColorScale--500",value:"#005f60",var:"var(--pf-v5-chart-theme--cyan--ColorScale--500, #005f60)"},RC=[kne.var,Tne.var,Ane.var,Dne.var,jne.var],Pne=ki({COLOR_SCALE:RC}),Mne=Ti({COLOR_SCALE:RC}),$ne={name:"--pf-v5-chart-theme--gold--ColorScale--100",value:"#f4c145",var:"var(--pf-v5-chart-theme--gold--ColorScale--100, #f4c145)"},Ine={name:"--pf-v5-chart-theme--gold--ColorScale--200",value:"#f9e0a2",var:"var(--pf-v5-chart-theme--gold--ColorScale--200, #f9e0a2)"},Lne={name:"--pf-v5-chart-theme--gold--ColorScale--300",value:"#c58c00",var:"var(--pf-v5-chart-theme--gold--ColorScale--300, #c58c00)"},Fne={name:"--pf-v5-chart-theme--gold--ColorScale--400",value:"#f6d173",var:"var(--pf-v5-chart-theme--gold--ColorScale--400, #f6d173)"},Nne={name:"--pf-v5-chart-theme--gold--ColorScale--500",value:"#f0ab00",var:"var(--pf-v5-chart-theme--gold--ColorScale--500, #f0ab00)"},VC=[$ne.var,Ine.var,Lne.var,Fne.var,Nne.var],Bne=ki({COLOR_SCALE:VC}),Wne=Ti({COLOR_SCALE:VC}),zne={name:"--pf-v5-chart-theme--gray--ColorScale--100",value:"#b8bbbe",var:"var(--pf-v5-chart-theme--gray--ColorScale--100, #b8bbbe)"},Rne={name:"--pf-v5-chart-theme--gray--ColorScale--200",value:"#f0f0f0",var:"var(--pf-v5-chart-theme--gray--ColorScale--200, #f0f0f0)"},Vne={name:"--pf-v5-chart-theme--gray--ColorScale--300",value:"#6a6e73",var:"var(--pf-v5-chart-theme--gray--ColorScale--300, #6a6e73)"},Une={name:"--pf-v5-chart-theme--gray--ColorScale--400",value:"#d2d2d2",var:"var(--pf-v5-chart-theme--gray--ColorScale--400, #d2d2d2)"},Hne={name:"--pf-v5-chart-theme--gray--ColorScale--500",value:"#8a8d90",var:"var(--pf-v5-chart-theme--gray--ColorScale--500, #8a8d90)"},UC=[zne.var,Rne.var,Vne.var,Une.var,Hne.var],Gne=ki({COLOR_SCALE:UC}),qne=Ti({COLOR_SCALE:UC}),Yne={name:"--pf-v5-chart-theme--green--ColorScale--100",value:"#4cb140",var:"var(--pf-v5-chart-theme--green--ColorScale--100, #4cb140)"},Kne={name:"--pf-v5-chart-theme--green--ColorScale--200",value:"#bde2b9",var:"var(--pf-v5-chart-theme--green--ColorScale--200, #bde2b9)"},Zne={name:"--pf-v5-chart-theme--green--ColorScale--300",value:"#23511e",var:"var(--pf-v5-chart-theme--green--ColorScale--300, #23511e)"},Xne={name:"--pf-v5-chart-theme--green--ColorScale--400",value:"#7cc674",var:"var(--pf-v5-chart-theme--green--ColorScale--400, #7cc674)"},Jne={name:"--pf-v5-chart-theme--green--ColorScale--500",value:"#38812f",var:"var(--pf-v5-chart-theme--green--ColorScale--500, #38812f)"},HC=[Yne.var,Kne.var,Zne.var,Xne.var,Jne.var],Qne=ki({COLOR_SCALE:HC}),ere=Ti({COLOR_SCALE:HC}),jr={fill:"transparent",stroke:"transparent"},mo=Object.assign({},jr),tre=e=>{const{COLOR_SCALE:t}=e;return{area:{colorScale:t,style:{data:{fill:t[0]},labels:mo}},axis:{colorScale:t,style:{axis:{fill:"transparent",stroke:t[0]},axisLabel:Object.assign(Object.assign({},mo),{fill:t[0],stroke:"transparent"}),grid:{fill:"transparent",stroke:"transparent"},ticks:{fill:"transparent",stroke:t[0]},tickLabels:Object.assign(Object.assign({},jr),{fill:"transparent"})}},bar:{colorScale:t,style:{data:{fill:t[0],stroke:t[0]},labels:jr}},boxplot:{colorScale:t,style:{max:{stroke:t[0]},maxLabels:jr,median:{stroke:t[0]},medianLabels:jr,min:{stroke:t[0]},minLabels:jr,q1:{fill:t[0]},q1Labels:jr,q3:{fill:t[0]},q3Labels:jr}},candlestick:{colorScale:t,style:{data:{stroke:t[0]},labels:mo}},chart:{colorScale:t},errorbar:{colorScale:t,style:{data:{fill:"transparent",stroke:t[0]},labels:mo}},group:{colorScale:t},legend:{colorScale:t,style:{labels:jr,title:Object.assign({},jr)}},line:{colorScale:t,style:{data:{fill:"transparent",stroke:t[0]},labels:mo}},pie:{colorScale:t,style:{data:{stroke:"transparent"},labels:Object.assign({},jr)}},scatter:{colorScale:t,style:{data:{fill:t[0],stroke:"transparent"},labels:mo}},stack:{colorScale:t},tooltip:{flyoutStyle:{fill:"transparent",stroke:"transparent"},style:{fill:"transparent"}},voronoi:{colorScale:t,style:{data:{fill:t[0],stroke:t[0]},labels:Object.assign(Object.assign({},mo),{fill:"transparent"}),flyout:{fill:"transparent",stroke:"transparent"}}}}},nre=e=>{const{COLOR_SCALE:t}=e;return{axis:{axis:{style:{grid:{stroke:t[0]},ticks:{stroke:t[0]}}}},bullet:{},bulletComparativeErrorMeasure:{bar:{style:{data:{fill:t[0],stroke:t[0]}}}},bulletComparativeMeasure:{bar:{style:{data:{fill:t[0],stroke:t[0]}}}},bulletComparativeWarningMeasure:{bar:{style:{data:{fill:t[0],stroke:t[0]}}}},bulletGroupTitle:{line:{style:{data:{fill:t[0],stroke:t[0]}}}},bulletPrimaryDotMeasure:{},bulletPrimaryNegativeMeasure:{group:{colorScale:t}},bulletPrimarySegmentedMeasure:{},bulletQualitativeRange:{group:{colorScale:t}},donut:{},donutThresholdDynamic:{legend:{colorScale:t},pie:{colorScale:t}},donutThresholdStatic:{pie:{colorScale:t}},donutUtilization:{legend:{colorScale:t},pie:{colorScale:t}},label:{backgroundStyle:{fill:t[0]},style:mo},threshold:{}}},GC=[$C.var,IC.var,LC.var,FC.var,NC.var],rre=tre({COLOR_SCALE:GC}),ire=nre({COLOR_SCALE:GC}),ore={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--100",value:"#06c",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--100, #06c)"},are={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--200",value:"#4cb140",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--200, #4cb140)"},sre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--300",value:"#009596",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--300, #009596)"},lre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--400",value:"#f4c145",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--400, #f4c145)"},cre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--500",value:"#ec7a08",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--500, #ec7a08)"},ure={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--600",value:"#8bc1f7",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--600, #8bc1f7)"},dre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--700",value:"#23511e",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--700, #23511e)"},fre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--800",value:"#a2d9d9",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--800, #a2d9d9)"},hre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--900",value:"#f9e0a2",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--900, #f9e0a2)"},mre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1000",value:"#8f4700",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1000, #8f4700)"},gre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1100",value:"#002f5d",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1100, #002f5d)"},pre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1200",value:"#bde2b9",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1200, #bde2b9)"},yre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1300",value:"#003737",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1300, #003737)"},vre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1400",value:"#c58c00",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1400, #c58c00)"},bre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1500",value:"#f4b678",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1500, #f4b678)"},xre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1600",value:"#519de9",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1600, #519de9)"},_re={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1700",value:"#38812f",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1700, #38812f)"},Sre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1800",value:"#73c5c5",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1800, #73c5c5)"},wre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1900",value:"#f6d173",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1900, #f6d173)"},Cre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2000",value:"#c46100",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2000, #c46100)"},Ere={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2100",value:"#004b95",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2100, #004b95)"},Ore={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2200",value:"#7cc674",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2200, #7cc674)"},kre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2300",value:"#005f60",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2300, #005f60)"},Tre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2400",value:"#f0ab00",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2400, #f0ab00)"},Are={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2500",value:"#ef9234",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2500, #ef9234)"},qC=[ore.var,are.var,sre.var,lre.var,cre.var,ure.var,dre.var,fre.var,hre.var,mre.var,gre.var,pre.var,yre.var,vre.var,bre.var,xre.var,_re.var,Sre.var,wre.var,Cre.var,Ere.var,Ore.var,kre.var,Tre.var,Are.var],Dre=ki({COLOR_SCALE:qC}),jre=Ti({COLOR_SCALE:qC}),Pre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--100",value:"#06c",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--100, #06c)"},Mre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--200",value:"#f4c145",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--200, #f4c145)"},$re={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--300",value:"#4cb140",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--300, #4cb140)"},Ire={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--400",value:"#5752d1",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--400, #5752d1)"},Lre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--500",value:"#ec7a08",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--500, #ec7a08)"},Fre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--600",value:"#009596",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--600, #009596)"},Nre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--700",value:"#b8bbbe",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--700, #b8bbbe)"},Bre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--800",value:"#8bc1f7",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--800, #8bc1f7)"},Wre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--900",value:"#c58c00",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--900, #c58c00)"},zre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1000",value:"#bde2b9",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1000, #bde2b9)"},Rre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1100",value:"#2a265f",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1100, #2a265f)"},Vre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1200",value:"#f4b678",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1200, #f4b678)"},Ure={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1300",value:"#003737",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1300, #003737)"},Hre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1400",value:"#f0f0f0",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1400, #f0f0f0)"},Gre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1500",value:"#002f5d",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1500, #002f5d)"},qre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1600",value:"#f9e0a2",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1600, #f9e0a2)"},Yre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1700",value:"#23511e",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1700, #23511e)"},Kre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1800",value:"#b2b0ea",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1800, #b2b0ea)"},Zre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1900",value:"#8f4700",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1900, #8f4700)"},Xre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2000",value:"#a2d9d9",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2000, #a2d9d9)"},Jre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2100",value:"#6a6e73",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2100, #6a6e73)"},Qre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2200",value:"#519de9",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2200, #519de9)"},eie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2300",value:"#f0ab00",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2300, #f0ab00)"},tie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2400",value:"#7cc674",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2400, #7cc674)"},nie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2500",value:"#3c3d99",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2500, #3c3d99)"},rie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2600",value:"#ef9234",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2600, #ef9234)"},iie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2700",value:"#005f60",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2700, #005f60)"},oie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2800",value:"#d2d2d2",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2800, #d2d2d2)"},aie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2900",value:"#004b95",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2900, #004b95)"},sie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3000",value:"#f6d173",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3000, #f6d173)"},lie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3100",value:"#38812f",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3100, #38812f)"},cie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3200",value:"#8481dd",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3200, #8481dd)"},uie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3300",value:"#c46100",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3300, #c46100)"},die={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3400",value:"#73c5c5",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3400, #73c5c5)"},fie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3500",value:"#8a8d90",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3500, #8a8d90)"},YC=[Pre.var,Mre.var,$re.var,Ire.var,Lre.var,Fre.var,Nre.var,Bre.var,Wre.var,zre.var,Rre.var,Vre.var,Ure.var,Hre.var,Gre.var,qre.var,Yre.var,Kre.var,Zre.var,Xre.var,Jre.var,Qre.var,eie.var,tie.var,nie.var,rie.var,iie.var,oie.var,aie.var,sie.var,lie.var,cie.var,uie.var,die.var,fie.var],hie=ki({COLOR_SCALE:YC}),mie=Ti({COLOR_SCALE:YC}),gie={name:"--pf-v5-chart-theme--orange--ColorScale--100",value:"#ec7a08",var:"var(--pf-v5-chart-theme--orange--ColorScale--100, #ec7a08)"},pie={name:"--pf-v5-chart-theme--orange--ColorScale--200",value:"#f4b678",var:"var(--pf-v5-chart-theme--orange--ColorScale--200, #f4b678)"},yie={name:"--pf-v5-chart-theme--orange--ColorScale--300",value:"#8f4700",var:"var(--pf-v5-chart-theme--orange--ColorScale--300, #8f4700)"},vie={name:"--pf-v5-chart-theme--orange--ColorScale--400",value:"#ef9234",var:"var(--pf-v5-chart-theme--orange--ColorScale--400, #ef9234)"},bie={name:"--pf-v5-chart-theme--orange--ColorScale--500",value:"#c46100",var:"var(--pf-v5-chart-theme--orange--ColorScale--500, #c46100)"},KC=[gie.var,pie.var,yie.var,vie.var,bie.var],xie=ki({COLOR_SCALE:KC}),_ie=Ti({COLOR_SCALE:KC}),Sie={name:"--pf-v5-chart-theme--purple--ColorScale--100",value:"#5752d1",var:"var(--pf-v5-chart-theme--purple--ColorScale--100, #5752d1)"},wie={name:"--pf-v5-chart-theme--purple--ColorScale--200",value:"#b2b0ea",var:"var(--pf-v5-chart-theme--purple--ColorScale--200, #b2b0ea)"},Cie={name:"--pf-v5-chart-theme--purple--ColorScale--300",value:"#2a265f",var:"var(--pf-v5-chart-theme--purple--ColorScale--300, #2a265f)"},Eie={name:"--pf-v5-chart-theme--purple--ColorScale--400",value:"#8481dd",var:"var(--pf-v5-chart-theme--purple--ColorScale--400, #8481dd)"},Oie={name:"--pf-v5-chart-theme--purple--ColorScale--500",value:"#3c3d99",var:"var(--pf-v5-chart-theme--purple--ColorScale--500, #3c3d99)"},ZC=[Sie.var,wie.var,Cie.var,Eie.var,Oie.var],kie=ki({COLOR_SCALE:ZC}),Tie=Ti({COLOR_SCALE:ZC}),on=e=>{const t=bC(xne);return _s(t,Aie(e))},Ss=e=>{const t=bC(_ne);return _s(t,Die(e))},Aie=e=>{switch(e){case _t.blue:return WC;case _t.cyan:return Pne;case _t.gold:return Bne;case _t.gray:return Gne;case _t.green:return Qne;case _t.multi:case _t.multiOrdered:return Dre;case _t.multiUnordered:return hie;case _t.orange:return xie;case _t.purple:return kie;case _t.skeleton:return rre;default:return WC}},Die=e=>{switch(e){case _t.blue:return zC;case _t.cyan:return Mne;case _t.gold:return Wne;case _t.gray:return qne;case _t.green:return ere;case _t.multi:case _t.multiOrdered:return jre;case _t.multiUnordered:return mie;case _t.orange:return _ie;case _t.purple:return Tie;case _t.skeleton:return ire;default:return zC}},op=({className:e})=>{let t;return e&&(t=e.replace(/VictoryContainer/g,"").replace(/pf-v5-c-chart/g,"").replace(/pf-c-chart/g,"").replace(/\s+/g," ").trim()),t&&t.length?`pf-v5-c-chart ${t}`:"pf-v5-c-chart"},cr=e=>{var{className:t,themeColor:n,theme:r=on(n)}=e,i=Ae(e,["className","themeColor","theme"]);const o=op({className:t});return k.createElement(Qt,Object.assign({className:o,theme:r},i))};cr.displayName="ChartContainer",rn(cr,Qt);var jie=Math.ceil,Pie=Math.max;function Mie(e,t,n,r){for(var i=-1,o=Pie(jie((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a}var $ie=Mie,Iie=/\s/;function Lie(e){for(var t=e.length;t--&&Iie.test(e.charAt(t)););return t}var Fie=Lie,Nie=Fie,Bie=/^\s+/;function Wie(e){return e&&e.slice(0,Nie(e)+1).replace(Bie,"")}var zie=Wie,Rie=zie,XC=Tn,Vie=ul,JC=NaN,Uie=/^[-+]0x[0-9a-f]+$/i,Hie=/^0b[01]+$/i,Gie=/^0o[0-7]+$/i,qie=parseInt;function Yie(e){if(typeof e=="number")return e;if(Vie(e))return JC;if(XC(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=XC(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Rie(e);var n=Hie.test(e);return n||Gie.test(e)?qie(e.slice(2),n?2:8):Uie.test(e)?JC:+e}var ap=Yie,Kie=ap,QC=1/0,Zie=17976931348623157e292;function Xie(e){if(!e)return e===0?e:0;if(e=Kie(e),e===QC||e===-QC){var t=e<0?-1:1;return t*Zie}return e===e?e:0}var Jie=Xie,Qie=$ie,eoe=Vm,sp=Jie;function toe(e){return function(t,n,r){return r&&typeof r!="number"&&eoe(t,n,r)&&(n=r=void 0),t=sp(t),n===void 0?(n=t,t=0):n=sp(n),r=r===void 0?t<n?1:-1:sp(r),Qie(t,n,r,e)}}var noe=toe,roe=noe,ioe=roe(),ooe=ioe;const e6=Fe(ooe),aoe=e=>{const{colorScale:t,theme:n}=e;return typeof t=="string"?Rg(t,n):t||[]},t6=e=>{const{data:t,style:n}=e;return t.map((r,i)=>{const o=K({},r.labels,n.labels);return st(o,{datum:r,index:i,data:t})})},soe=function(e,t){t===void 0&&(t={});const n=e.style||{},r={height:"100%",width:"100%"};return{parent:K(n.parent,t.parent,r),data:K({},n.data,t.data),labels:K({},n.labels,t.labels),border:K({},n.border,t.border),title:K({},n.title,t.title)}},n6=e=>{const{orientation:t,theme:n}=e,r=n&&n.legend&&n.legend.style?n.legend.style:{},i=soe(e,r),o=aoe(e),a=t==="horizontal",s=xt({padding:e.borderPadding});return Object.assign({},e,{style:i,isHorizontal:a,colorScale:o,borderPadding:s})},loe=(e,t)=>{const{itemsPerRow:n,isHorizontal:r}=e;return n?r?t%n:Math.floor(t/n):r?t:0},coe=(e,t)=>{const{itemsPerRow:n,isHorizontal:r}=e;return n?r?Math.floor(t/n):t%n:r?0:t},r6=e=>{const{data:t}=e,n=e.style&&e.style.data||{},r=t6(e);return t.map((i,o)=>{const a=i.symbol||{},{fontSize:s}=r[o],l=a.size||n.size||s/2.5,c=e.symbolSpacer||Math.max(l,s);return{...i,size:l,symbolSpacer:c,fontSize:s,textSize:ia(i.name,r[o]),column:loe(e,o),row:coe(e,o)}})},i6=(e,t)=>{const n=e.gutter||{},r=typeof n=="object"?(n.left||0)+(n.right||0):n||0,i=Qd(t,"column");return Object.keys(i).reduce((a,s,l)=>{const c=i[s].map(u=>u.textSize.width+u.size+u.symbolSpacer+r);return a[l]=Math.max(...c),a},[])},o6=(e,t)=>{const n=e.rowGutter||{},r=typeof n=="object"?(n.top||0)+(n.bottom||0):n||0,i=Qd(t,"row");return Object.keys(i).reduce((o,a,s)=>{const c=i[a].map(u=>u.textSize.height+u.symbolSpacer+r);return o[s]=Math.max(...c),o},[])},a6=e=>{const t=e.style&&e.style.title||{},n=ia(e.title,t),r=t.padding||0;return{height:n.height+2*r||0,width:n.width+2*r||0}},uoe=(e,t,n)=>{const{column:r,row:i}=e;return{x:e6(r).reduce((o,a)=>o+n[a],0),y:e6(i).reduce((o,a)=>o+t[a],0)}},doe=(e,t)=>{const n={textAnchor:e==="right"?"end":"start",verticalAnchor:e==="bottom"?"end":"start"};if(t){const r=e==="top"||e==="bottom";return{textAnchor:r?"middle":n.textAnchor,verticalAnchor:r?n.verticalAnchor:"middle"}}return n},foe=e=>{const{titleOrientation:t,centerTitle:n,titleComponent:r}=e,i=e.style&&e.style.title||{},o=r.props&&r.props.style||{},a=doe(t,n);return Array.isArray(o)?o.map(s=>K({},s,i,a)):K({},o,i,a)},hoe=(e,t)=>{const{title:n,titleOrientation:r,centerTitle:i,borderPadding:o}=e,{height:a,width:s}=t,l=foe(e),c=Array.isArray(l)?l[0].padding:l.padding,u=r==="top"||r==="bottom",d=r==="bottom"?"bottom":"top",f=r==="right"?"right":"left",h={x:i?s/2:o[d]+(c||0),y:i?a/2:o[f]+(c||0)},g=()=>o[r]+(c||0),p=u?h.x:g(),v=u?g():h.y;return{x:r==="right"?e.x+s-p:e.x+p,y:r==="bottom"?e.y+a-v:e.y+v,style:l,text:n}},moe=(e,t,n)=>{const{x:r,y:i,borderPadding:o,style:a}=e,s=(t||0)+o.top+o.bottom,l=(n||0)+o.left+o.right;return{x:r,y:i,height:s,width:l,style:Object.assign({fill:"none"},a.border)}},s6=(e,t)=>{const n=Bt(e,t,"legend"),r=Object.assign({},n,n6(n)),{title:i,titleOrientation:o}=r,a=r6(r),s=i6(r,a),l=o6(r,a),c=i?a6(r):{height:0,width:0};return{height:o==="left"||o==="right"?Math.max(pf(l),c.height):pf(l)+c.height,width:o==="left"||o==="right"?pf(s)+c.width:Math.max(pf(s),c.width)}},goe=(e,t)=>{const n=Bt(e,t,"legend"),r=Object.assign({},n,n6(n)),{data:i,standalone:o,theme:a,padding:s,style:l,colorScale:c,gutter:u,rowGutter:d,borderPadding:f,title:h,titleOrientation:g,name:p,x:v=0,y:b=0}=r,x=r6(r),S=i6(r,x),w=o6(r,x),_=t6(r),E=h?a6(r):{height:0,width:0},O={x:g==="left"?E.width:0,y:g==="top"?E.height:0},T={x:u&&typeof u=="object"&&u.left||0,y:d&&typeof d=="object"&&d.top||0},{height:D,width:j}=s6(r,t),A=moe(r,D,j),M=hoe(r,A),P={parent:{data:i,standalone:o,theme:a,padding:s,name:p,height:r.height,width:r.width,style:l.parent},all:{border:A,title:M}};return x.reduce(($,L,z)=>{const G=c[z%c.length],U=K({},L.symbol,l.data,{fill:G}),V=di(L.eventKey)?z:L.eventKey,N=uoe(L,w,S),H=b+f.top+L.symbolSpacer,Q=v+f.left+L.symbolSpacer,ee={index:z,data:i,datum:L,symbol:U.type||U.symbol||"circle",size:L.size,style:U,y:H+N.y+O.y+T.y,x:Q+N.x+O.x+T.x},X={datum:L,data:i,text:L.name,style:_[z],y:ee.y,x:ee.x+L.symbolSpacer+L.size/2};return $[V]={data:ee,labels:X},$},P)};function pf(e){if(e&&e.length){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t}return 0}const lp={orientation:"vertical",titleOrientation:"top",width:450,height:300,x:0,y:0},poe=[{name:"Series 1"},{name:"Series 2"}];class Yl extends y.Component{static getBaseProps(t){return goe(t,lp)}static getDimensions(t){return s6(t,lp)}renderChildren(t){const{dataComponent:n,labelComponent:r,title:i}=t,o=[];if(t.borderComponent){const a=this.getComponentProps(t.borderComponent,"border","all"),s=y.cloneElement(t.borderComponent,a);o.push(s)}if(n){const a=this.dataKeys.map((s,l)=>{if(s==="all")return;const c=this.getComponentProps(n,"data",l);return y.cloneElement(n,c)}).filter(s=>s!==void 0);o.push(...a)}if(i&&t.titleComponent){const a=this.getComponentProps(i,"title","all"),s=y.cloneElement(t.titleComponent,a);o.push(s)}if(r){const a=this.dataKeys.map((s,l)=>{if(s==="all")return;const c=this.getComponentProps(r,"labels",l);if(c.text!==void 0&&c.text!==null)return y.cloneElement(r,c)}).filter(s=>s!==void 0);o.push(...a)}return o}render(){const{role:t}=this.constructor,n=Bt(this.props,lp,t),r=this.renderChildren(n);return n.standalone?this.renderContainer(n.containerComponent,r):y.cloneElement(n.groupComponent,{},r)}}ce(Yl,"displayName","VictoryLegend"),ce(Yl,"role","legend"),ce(Yl,"defaultProps",{borderComponent:y.createElement(jK,null),data:poe,containerComponent:y.createElement(Qt,null),dataComponent:y.createElement(Hw,null),groupComponent:y.createElement("g",null),labelComponent:y.createElement(en,null),standalone:!0,theme:Ar.grayscale,titleComponent:y.createElement(en,null)}),ce(Yl,"expectedComponents",["borderComponent","containerComponent","dataComponent","groupComponent","labelComponent","titleComponent"]);const Kl=Yo(Yl),yoe={name:"--pf-v5-chart-global--label--Margin",value:8,var:"var(--pf-v5-chart-global--label--Margin, 8)"},voe={name:"--pf-v5-chart-legend--position",value:"right",var:"var(--pf-v5-chart-legend--position, right)"},boe=TC.var,xoe=AC.var,_oe=np.value,Soe={label:{fontFamily:boe,fontSize:_oe,letterSpacing:xoe,margin:yoe.value,fill:DC.var},legend:{margin:w1.value,position:voe.value}},woe={name:"--pf-v5-chart-global--FontSize--2xl",value:24,var:"var(--pf-v5-chart-global--FontSize--2xl, 24)"},Coe={name:"--pf-v5-global--FontWeight--bold",value:"700",var:"var(--pf-v5-global--FontWeight--bold)"},Eoe={name:"--pf-v5-chart-donut--label--subtitle--Fill",value:"#b8bbbe",var:"var(--pf-v5-chart-donut--label--subtitle--Fill, #b8bbbe)"},Ooe={name:"--pf-v5-chart-donut--label--title--Fill",value:"#151515",var:"var(--pf-v5-chart-donut--label--title--Fill, #151515)"},koe={name:"--pf-v5-chart-donut--label--subtitle--position",value:"center",var:"var(--pf-v5-chart-donut--label--subtitle--position, center)"},Toe={label:{subTitle:{fill:Eoe.var,fontSize:np.value},subTitlePosition:koe.value,title:{fill:Ooe.var,fontSize:woe.value}}},Aoe={name:"--pf-v5-chart-donut--threshold--warning--Color",value:"#f0ab00",var:"var(--pf-v5-chart-donut--threshold--warning--Color, #f0ab00)"},Doe={name:"--pf-v5-chart-donut--threshold--danger--Color",value:"#c9190b",var:"var(--pf-v5-chart-donut--threshold--danger--Color, #c9190b)"},joe={thresholds:{colorScale:[Aoe.var,Doe.var]}},Poe={flyout:{padding:40},label:{fill:PC.var,fontWeight:Coe.value}},Moe={name:"--pf-v5-chart-scatter--active--size",value:5,var:"var(--pf-v5-chart-scatter--active--size, 5)"},$oe={name:"--pf-v5-chart-scatter--size",value:3,var:"var(--pf-v5-chart-scatter--size, 3)"},Ioe={activeSize:Moe.value,size:$oe.value},tn=Soe,Zl=Toe,l6=joe,ur=Poe,c6=Ioe,an=e=>{var{style:t,textAnchor:n}=e,r=Ae(e,["style","textAnchor"]);const i=a=>K(Object.assign(Object.assign({},a),{textAnchor:n}),{fill:tn.label.fill,fontFamily:tn.label.fontFamily,fontSize:tn.label.fontSize,letterSpacing:tn.label.letterSpacing}),o=Array.isArray(t)?t.map(i):i(t);return k.createElement(en,Object.assign({style:o,textAnchor:n},r))};an.displayName="ChartLabel",rn(an,en);const Hn={circle:(e,t,n)=>`M ${e}, ${t}
|
207
|
+
${s*Math.cos(i*(a+1))+t}`}).join("L")} z`}const Oq=Object.freeze(Object.defineProperty({__proto__:null,circle:yq,cross:wq,diamond:bq,minus:Cq,plus:Sq,square:vq,star:Eq,triangleDown:xq,triangleUp:_q},Symbol.toStringTag,{value:"Module"}));function mw(e,t,n){const{a:r,d:i,e:o,f:a}=t;return n==="y"?i*e+a:r*e+o}function kq(e){return e.getScreenCTM().inverse()}function gw(e){return!!(e&&e.identifier!==void 0)}function Tq(e){return e.changedTouches&&e.changedTouches.length>0}function xi(e){if(gw(e.nativeEvent))return;const t=n=>n.nodeName==="svg"?n:n.parentNode?t(n.parentNode):n;return t(e.target)}function Ur(e,t){if(gw(e.nativeEvent))return{x:e.nativeEvent.locationX,y:e.nativeEvent.locationY};const n=Tq(e)?e.changedTouches[0]:e,r=kq(t||xi(n));return{x:mw(n.clientX,r,"x"),y:mw(n.clientY,r,"y")}}function _i(e,t){const{horizontal:n}=e,r=e.scale,i=t||{x:r.x.domain(),y:r.y.domain()};return{x:n?[r.y(i.y[0]),r.y(i.y[1])]:[r.x(i.x[0]),r.x(i.x[1])],y:n?[r.x(i.x[0]),r.x(i.x[1])]:[r.y(i.y[0]),r.y(i.y[1])]}}function qd(e,t,n,r){const{polar:i,horizontal:o}=e;if(!i)return{x:o?t.x.invert(r):t.x.invert(n),y:o?t.y.invert(n):t.y.invert(r)};const a=e.origin||{x:0,y:0},s=n-a.x,l=r-a.y,c=Math.abs(s*Math.sqrt(1+Math.pow(-l/s,2))),u=(-Math.atan2(l,s)+Math.PI*2)%(Math.PI*2);return{x:t.x.invert(u),y:t.y.invert(c)}}function Yd(e){const{x1:t,x2:n,y1:r,y2:i,scale:o}=e,a=qd(e,o,t,r),s=qd(e,o,n,i),l=(c,u)=>[Dn([c,u]),tr([c,u])];return{x:l(a.x,s.x),y:l(a.y,s.y)}}const Aq={blue:"#4F7DA1",pink:"#E2A37F",teal:"#00796B",purple:"#DF948A",green:"#8BC34A",orange:"#F4511E",cyan:"#006064",red:"#DF5A49",yellow:"#FFF59D"},ps=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],bn="#252525",Ig="#969696",Dq=["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],jq=["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],Pq=["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],Mq=["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],$q=["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],Iq=["#354722","#466631","#649146","#8AB25C","#A9C97E"],Lq=["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"],Fq="'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",Nq="normal",Bq=14,Un={width:450,height:300,padding:50,colorScale:ps},qt={fontFamily:Fq,fontSize:Bq,letterSpacing:Nq,padding:10,fill:bn,stroke:"transparent"},Wq=Object.assign({textAnchor:"middle"},qt),zq={palette:{colors:Aq,grayscale:ps,qualitative:Dq,heatmap:jq,warm:Pq,cool:Mq,red:$q,green:Iq,blue:Lq},area:Object.assign({style:{data:{fill:bn},labels:qt}},Un),axis:Object.assign({style:{axis:{fill:"transparent",stroke:bn,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},Wq,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:qt}},Un),bar:Object.assign({style:{data:{fill:bn,padding:8,strokeWidth:0},labels:qt}},Un),boxplot:Object.assign({style:{max:{padding:8,stroke:bn,strokeWidth:1},maxLabels:Object.assign({},qt,{padding:3}),median:{padding:8,stroke:bn,strokeWidth:1},medianLabels:Object.assign({},qt,{padding:3}),min:{padding:8,stroke:bn,strokeWidth:1},minLabels:Object.assign({},qt,{padding:3}),q1:{padding:8,fill:Ig},q1Labels:Object.assign({},qt,{padding:3}),q3:{padding:8,fill:Ig},q3Labels:Object.assign({},qt,{padding:3})},boxWidth:20},Un),candlestick:Object.assign({style:{data:{stroke:bn,strokeWidth:1},labels:Object.assign({},qt,{padding:5})},candleColors:{positive:"#ffffff",negative:bn}},Un),chart:Un,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:bn,strokeWidth:2},labels:qt}},Un),group:Object.assign({colorScale:ps},Un),histogram:Object.assign({style:{data:{fill:Ig,stroke:bn,strokeWidth:2},labels:qt}},Un),legend:{colorScale:ps,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:qt,title:Object.assign({},qt,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:bn,strokeWidth:2},labels:qt}},Un),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},qt,{padding:20})},colorScale:ps,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:bn,stroke:"transparent",strokeWidth:0},labels:qt}},Un),stack:Object.assign({colorScale:ps},Un),tooltip:{style:Object.assign({},qt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:bn,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},qt,{padding:5,pointerEvents:"none"}),flyout:{stroke:bn,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Un)},pw="#FFF59D",yw="#F4511E",Rq="#DCE775",vw="#8BC34A",bw="#00796B",xw="#006064",Kd=[yw,pw,Rq,vw,bw,xw],Lg="#ECEFF1",Fg="#90A4AE",xn="#455A64",Rl="#212121",Vq={blue:"#4F7DA1",pink:"#E2A37F",teal:bw,purple:"#DF948A",green:vw,orange:yw,cyan:xw,red:"#DF5A49",yellow:pw},Uq=[Lg,Fg,xn,Rl],Hq=["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],Gq=["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],qq=["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],Yq=["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],Kq=["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],Zq=["#354722","#466631","#649146","#8AB25C","#A9C97E"],Xq=["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"],Jq="'Helvetica Neue', 'Helvetica', sans-serif",Qq="normal",eY=12,Si=8,Pn={width:350,height:350,padding:50},Yt={fontFamily:Jq,fontSize:eY,letterSpacing:Qq,padding:Si,fill:xn,stroke:"transparent",strokeWidth:0},tY=Object.assign({textAnchor:"middle"},Yt),nY="10, 5",Ng="round",Bg="round",rY={palette:{colors:Vq,grayscale:Uq,qualitative:Hq,heatmap:Gq,warm:qq,cool:Yq,red:Kq,green:Zq,blue:Xq},area:Object.assign({style:{data:{fill:Rl},labels:Yt}},Pn),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Fg,strokeWidth:2,strokeLinecap:Ng,strokeLinejoin:Bg},axisLabel:Object.assign({},tY,{padding:Si,stroke:"transparent"}),grid:{fill:"none",stroke:Lg,strokeDasharray:nY,strokeLinecap:Ng,strokeLinejoin:Bg,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Fg,strokeWidth:1,strokeLinecap:Ng,strokeLinejoin:Bg},tickLabels:Object.assign({},Yt,{fill:xn})}},Pn),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:xn,padding:Si,strokeWidth:0},labels:Yt}},Pn),boxplot:Object.assign({style:{max:{padding:Si,stroke:xn,strokeWidth:1},maxLabels:Object.assign({},Yt,{padding:3}),median:{padding:Si,stroke:xn,strokeWidth:1},medianLabels:Object.assign({},Yt,{padding:3}),min:{padding:Si,stroke:xn,strokeWidth:1},minLabels:Object.assign({},Yt,{padding:3}),q1:{padding:Si,fill:xn},q1Labels:Object.assign({},Yt,{padding:3}),q3:{padding:Si,fill:xn},q3Labels:Object.assign({},Yt,{padding:3})},boxWidth:20},Pn),candlestick:Object.assign({style:{data:{stroke:xn},labels:Object.assign({},Yt,{padding:5})},candleColors:{positive:"#ffffff",negative:xn}},Pn),chart:Pn,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:xn,strokeWidth:2},labels:Yt}},Pn),group:Object.assign({colorScale:Kd},Pn),histogram:Object.assign({style:{data:{fill:xn,stroke:Rl,strokeWidth:2},labels:Yt}},Pn),legend:{colorScale:Kd,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Yt,title:Object.assign({},Yt,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:xn,strokeWidth:2},labels:Yt}},Pn),pie:Object.assign({colorScale:Kd,style:{data:{padding:Si,stroke:Lg,strokeWidth:1},labels:Object.assign({},Yt,{padding:20})}},Pn),scatter:Object.assign({style:{data:{fill:xn,opacity:1,stroke:"transparent",strokeWidth:0},labels:Yt}},Pn),stack:Object.assign({colorScale:Kd},Pn),tooltip:{style:Object.assign({},Yt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Rl,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},Yt,{padding:5,pointerEvents:"none"}),flyout:{stroke:Rl,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Pn)},ft={white:"#FFFFFF",50:"#FAFAFA",100:"#F2F2F2",200:"#E8E8E8",300:"#E0E0E0",400:"#D1D1D1",500:"#757575",600:"#5C5C5C",700:"#424242",800:"#333333",900:"#292929",black:"#0F0F0F"},Zd={100:"#FFEAB6",300:"#FFD66E",500:"#FCB400",900:"#B87503"},Xd={100:"#FEE2D5",300:"#FFA981",500:"#FF6F2C",700:"#FF4E1B",900:"#D74D26"},Vl={100:"#FFDCE5",300:"#FF9EB7",500:"#F82B60",700:"#D31A3D",900:"#BA1E45"},_w={100:"#EDE3FE",300:"#CDB0FF",500:"#8B46FF",900:"#6B1CB0"},Ul={100:"#CFDFFF",300:"#9CC7FF",500:"#2D7FF9",700:"#0056B3",900:"#2750AE"},Wg={100:"#D0F0FD",300:"#77D1F3",500:"#18BFFF",900:"#0B76B7"},Sw={100:"#C2F5E9",300:"#72DDC3",500:"#20D9D2",900:"#06A09B"},ys={100:"#D1F7C4",300:"#93E088",500:"#20C933",700:"#1B9B2A",900:"#338A17"},ww={blue:Ul[500],cyan:Wg[500],green:ys[500],yellow:Zd[500],orange:Xd[500],red:Vl[500],purple:_w[500],teal:Sw[500]},uo=Object.values(ww),iY=[ft[100],ft[300],ft[500],ft[700],ft[900]],oY=[Zd[300],Zd[500],Xd[500],Xd[900],Vl[500]],aY=[_w[500],Ul[500],Wg[500],Sw[500],ys[500]],sY=[ys[900],ys[500],Zd[500],Xd[500],Vl[500]],lY=Object.values(Vl),cY=Object.values(ys),uY=Object.values(Ul),Hl=Ul[500],dY="'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif",fY="normal",hY=12,wi=8,Mn={width:450,height:300,padding:60,colorScale:uo},At={fontFamily:dY,fontSize:hY,fontWeight:300,letterSpacing:fY,padding:wi,fill:ft[900],stroke:"transparent"},mY=Object.assign({textAnchor:"middle"},At),Cw="10, 5",na="round",vs="round",ra=1,gY={palette:{colors:ww,grayscale:iY,qualitative:uo,heatmap:sY,warm:oY,cool:aY,red:lY,green:cY,blue:uY},area:Object.assign({style:{data:{fill:Hl,strokeWidth:2,fillOpacity:.5},labels:At}},Mn),axis:Object.assign({style:{axis:{fill:"transparent",stroke:ft[500],strokeWidth:1,strokeLinecap:na,strokeLinejoin:vs},axisLabel:Object.assign({},mY,{padding:35,stroke:"transparent"}),grid:{fill:"none",stroke:"none",painterEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:"transparent"},tickLabels:At}},Mn),polarAxis:Object.assign({style:{axis:{stroke:ft[500]},grid:{stroke:ft[400],strokeDasharray:Cw,strokeLinecap:na,strokeLinejoin:vs,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:ft[400],strokeWidth:1,strokeLinecap:na,strokeLinejoin:vs},tickLabels:At}}),polarDependentAxis:Object.assign({style:{axis:{stroke:ft[500]},grid:{stroke:ft[400],strokeDasharray:Cw,strokeLinecap:na,strokeLinejoin:vs,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:ft[300],strokeWidth:1,strokeLinecap:na,strokeLinejoin:vs},tickLabels:At}}),bar:Object.assign({style:{data:{fill:Hl,padding:wi,strokeWidth:1,fillOpacity:.5},labels:At},cornerRadius:{top:ra}},Mn),boxplot:Object.assign({style:{max:{padding:wi,stroke:ft[400],strokeWidth:2},maxLabels:Object.assign({},At,{padding:3}),median:{padding:wi,stroke:ft.white,strokeWidth:2},medianLabels:Object.assign({},At,{padding:3}),min:{padding:wi,stroke:ft[400],strokeWidth:2},minLabels:Object.assign({},At,{padding:3}),q1:{padding:wi,fill:uo[0],rx:ra,strokeWidth:2},q1Labels:Object.assign({},At,{padding:3}),q3:{padding:wi,fill:uo[1],rx:ra},q3Labels:Object.assign({},At,{padding:3})},boxWidth:20},Mn),candlestick:Object.assign({style:{data:{stroke:ft[300],strokeWidth:0,rx:ra},labels:Object.assign({},At,{padding:5})},candleColors:{positive:ys[500],negative:Vl[500]},wickStrokeWidth:2},Mn),chart:Mn,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:ft[700],strokeWidth:2,strokeLinecap:na},labels:At}},Mn),group:Object.assign({colorScale:uo},Mn),histogram:Object.assign({style:{data:{fill:Wg[500],fillOpacity:.5},labels:At},binSpacing:4,cornerRadius:{top:ra}},Mn),label:At,legend:{colorScale:uo,gutter:24,borderPadding:10,orientation:"horizontal",titleOrientation:"top",centerTitle:!0,style:{data:{type:"circle"},labels:{...At,fontSize:12},title:Object.assign({},At,{padding:wi,fontSize:16}),border:{stroke:ft[200],strokeWidth:2,padding:16}}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:Hl,strokeWidth:2,strokeLinecap:na,strokeLinejoin:vs},labels:At}},Mn),pie:Object.assign({style:{parent:{backgroundColor:ft.white},data:{padding:wi,stroke:ft.white,strokeWidth:1},labels:{...At,padding:20,fill:ft[600],fontSize:10}},colorScale:uo,cornerRadius:ra},Mn),scatter:Object.assign({style:{data:{fill:Hl,opacity:1,stroke:"transparent",strokeWidth:0},labels:{...At,padding:20}}},Mn),stack:Object.assign({colorScale:uo},Mn),tooltip:{style:Object.assign({},At,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:ft[300],strokeWidth:2,fill:ft.white,pointerEvents:"none"},flyoutPadding:{top:8,bottom:8,left:16,right:16},cornerRadius:ra,pointerLength:4},voronoi:Object.assign({style:{data:{fill:Ul[100],stroke:Hl,strokeWidth:2},labels:Object.assign({},At,{padding:5,pointerEvents:"none"}),flyout:{stroke:ft[900],strokeWidth:1,fill:ft[100],pointerEvents:"none"},padding:{left:2,bottom:2}}},Mn)},Ar={grayscale:zq,material:rY,clean:gY},zg=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(n.length>0)return n.reduce((o,a)=>[o,zg(a)].join(" "),zg(e)).trim();if(e==null||typeof e=="string")return e;const i=[];for(const o in e)if(e.hasOwnProperty(o)){const a=e[o];i.push(`${o}(${a})`)}return i.join(" ").trim()};function Rg(e,t){var f;t===void 0&&(t=Ar.material);const{palette:{grayscale:n=["#cccccc","#969696","#636363","#252525"],qualitative:r=[],heatmap:i=[],warm:o=[],cool:a=[],red:s=[],blue:l=[],green:c=[]}={}}=t,u={grayscale:n,qualitative:r,heatmap:i,warm:o,cool:a,red:s,blue:l,green:c};return e&&((f=u[e])!=null&&f.length)?u[e]:u.grayscale}const Ew={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Inter:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2890625,.4671875,.634375,.6421875,.9828125,.6453125,.3,.365625,.365625,.5015625,.6625,.2890625,.4609375,.2890625,.3609375,.63125,.4078125,.6109375,.61875,.646875,.59375,.6203125,.5671875,.61875,.6203125,.2890625,.303125,.6625,.6625,.6625,.5125,.9671875,.690625,.6546875,.73125,.721875,.6015625,.590625,.746875,.74375,.26875,.571875,.671875,.565625,.9046875,.7546875,.765625,.6390625,.765625,.64375,.6421875,.646875,.7453125,.690625,.9859375,.6828125,.6796875,.6296875,.365625,.3609375,.365625,.471875,.45625,.3234375,.5625,.6125,.571875,.6125,.584375,.3703125,.6140625,.5921875,.2421875,.2548828125,.55,.2421875,.8765625,.5921875,.6,.6125,.6125,.3765625,.528125,.328125,.5921875,.5625,.81875,.546875,.5625,.553125,.4265625,.3328125,.4265625,.6625],avg:.5624362664473683},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},Ow={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},kw={em:1,ex:.5},Tw={heightOverlapCoef:1.05,lineCapitalCoef:1.15},Aw={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},pY=e=>e*Math.PI/180,yY=e=>{const n=e.split(",").map(r=>r.replace(/'|"/g,"")).find(r=>Ew[r])||"Helvetica";return Ew[n]},Vg=e=>Array.isArray(e)?e:e.toString().split(/\r\n|\r|\n/g),Jd=(e,t,n)=>{const r=pY(n);return Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t)},Ug=(e,t)=>{var o;const n=(o=e.match(/[a-zA-Z%]+/))==null?void 0:o[0],r=Number(e.match(/[0-9.,]+/));let i;return n?Ow.hasOwnProperty(n)?i=r*Ow[n]:kw.hasOwnProperty(n)?i=(t?r*t:r*Aw.fontSize)*kw[n]:i=r:i=r||0,i},Hg=(e,t)=>{const n=Array.isArray(e)?e[t]:e,r=Z({},n,Aw);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:typeof r.letterSpacing=="number"?r.letterSpacing:Ug(String(r.letterSpacing),r.fontSize),fontSize:typeof r.fontSize=="number"?r.fontSize:Ug(String(r.fontSize))})},vY=(e,t)=>{if(e===void 0||e===""||e===null)return 0;const n=Vg(e).map((r,i)=>{const o=r.toString().length,{fontSize:a,letterSpacing:s,fontFamily:l}=Hg(t,i),c=yY(l);return r.toString().split("").map(d=>d.charCodeAt(0)<c.widths.length?c.widths[d.charCodeAt(0)]:c.avg).reduce((d,f)=>f+d,0)*a+s*Math.max(o-1,0)});return Math.max(...n)},bY=(e,t)=>e===void 0||e===""||e===null?0:Vg(e).reduce((n,r,i)=>{const o=Hg(t,i),s=r.toString().match(/[(A-Z)(0-9)]/)?o.fontSize*Tw.lineCapitalCoef:o.fontSize;return n+o.lineHeight*s},0),xY=(e,t)=>{const n=Array.isArray(t)?t[0]&&t[0].angle:t&&t.angle,r=bY(e,t),i=vY(e,t),o=n?Jd(i,r,n):i,a=n?Jd(r,i,n):r;return{width:o,height:a*Tw.heightOverlapCoef}},Gg=dx(()=>{const e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("xlink","http://www.w3.org/1999/xlink"),e.setAttribute("width","300"),e.setAttribute("height","300"),e.setAttribute("viewBox","0 0 300 300"),e.setAttribute("aria-hidden","true");const t=document.createElementNS("http://www.w3.org/2000/svg","text");return e.appendChild(t),e.style.position="fixed",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e),t}),Dw=e=>e?`${e.angle}:${e.fontFamily}:${e.fontSize}:${e.letterSpacing}:${e.lineHeight}`:"null",_Y=dx((e,t)=>{var a,s;let n=Gg();n.isConnected||((s=(a=Gg.cache).clear)==null||s.call(a),n=Gg());const r=Vg(e);let i=0;for(const[l,c]of r.entries()){const u=document.createElementNS("http://www.w3.org/2000/svg","tspan"),d=Hg(t,l);u.style.fontFamily=d.fontFamily,u.style.fontSize=`${d.fontSize}px`,u.style.lineHeight=d.lineHeight,u.style.fontFamily=d.fontFamily,u.style.letterSpacing=d.letterSpacing,u.textContent=c,u.setAttribute("x","0"),u.setAttribute("y",`${i}`),n.appendChild(u),i+=d.lineHeight*u.getBoundingClientRect().height}const{width:o}=n.getBoundingClientRect();return n.innerHTML="",{width:t!=null&&t.angle?Jd(o,i,t==null?void 0:t.angle):o,height:t!=null&&t.angle?Jd(i,o,t==null?void 0:t.angle):i}},(e,t)=>{const n=Array.isArray(e)?e.join():e,r=Array.isArray(t)?t.map(Dw).join():Dw(t);return`${n}::${r}`}),SY={impl:function(e,t,n){return n===void 0&&(n=!1),!(typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u")||n?xY(e,t):_Y(e,t)}},ia=(e,t)=>SY.impl(e,t);var wY=fl,CY=j2;function EY(e,t){return e&&e.length?CY(e,wY(t)):[]}var OY=EY;const jw=Fe(OY);function kY(e,t,n,r){for(var i=-1,o=e==null?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}var TY=kY,AY=Hx;function DY(e,t,n,r){return AY(e,function(i,o,a){t(r,i,n(i),a)}),r}var jY=DY,PY=TY,MY=jY,$Y=fl,IY=yn;function LY(e,t){return function(n,r){var i=IY(n)?PY:MY,o=t?t():{};return i(n,e,$Y(r),o)}}var FY=LY,NY=od,BY=FY,WY=Object.prototype,zY=WY.hasOwnProperty,RY=BY(function(e,t,n){zY.call(e,n)?e[n].push(t):NY(e,n,[t])}),VY=RY;const Qd=Fe(VY);function UY(e){let{children:t,props:n,childComponents:r,parentProps:i}=e;const o=t.some(l=>l.type&&l.type.role==="histogram"),a=o&&t.length&&t.every(l=>l.type&&l.type.role==="histogram");if(o&&!a&&$g("VictoryHistogram only supports being stacked with other VictoryHistogram components. Check to make sure that you are only passing VictoryHistogram components to VictoryStack"),!a)return i;let s=n.bins||r[0].props.bins;if(!Array.isArray(s)){const l=t.reduce((u,d)=>{const f=ld(d.props.x||"x");return u.concat(d.props.data.map(h=>({x:f(h)})))},[]),c=t[0].type.getFormattedData;s=c({data:l,bins:s}).reduce((u,d,f)=>{let{x0:h,x1:g}=d;return f===0?u.concat([h,g]):u.concat(g)},[])}return{...i,bins:s}}function HY(e,t){const{polar:n,startAngle:r,endAngle:i,categories:o,minDomain:a,maxDomain:s}=e;let l={polar:n,startAngle:r,endAngle:i,categories:o,minDomain:a,maxDomain:s},c=0;const u=t?t.slice(0):y.Children.toArray(e.children);l=UY({children:u,props:e,childComponents:t,parentProps:l});const d=(v,b,x)=>{const S=Object.assign({},v.props,l);let w,_=v;if(ds(v))v.type&&Se(v.type.getData)?(_=x?y.cloneElement(v,x.props):v,w=_.type.getData(S)):w=dn(S);else return null;return c+=1,w.map((E,O)=>Object.assign({_stack:c,_group:O},E))},f=u.filter(v=>v.type&&v.type.role==="stack").length,g=ro(u,d,e,[],(v,b)=>v.concat(jw(b,"_group")));return Object.values(Qd(g,f?"_group":"_stack"))}function Pw(e,t,n){const{datasets:r,horizontal:i}=e,o=i?Nt(e,"y"):Nt(e,"x"),a=Math.abs(o[1]-o[0]),s=n!==void 0?n:Array.isArray(r[0])&&r[0].length||1,c=(t||r.length)*s;return Math.round(.5*a/c)}function GY(e,t,n){if(e.polar||t!=="x")return;const r=n.filter(u=>u.type&&u.type.role&&u.type.role==="group");if(r.length<1)return;const{offset:i,children:o}=r[0].props;if(!i)return;const a=Array.isArray(o)&&o[0];if(!a)return;let s=a.props.barWidth,l=a.props.data&&a.props.data.length||1;if(a&&a.type.role==="stack"){const u=a.props.children&&a.props.children[0];if(!u)return;s=u.props.barWidth,l=a.props.children.length}const c=s||Pw(e,o.length,l);return{x:c*o.length/2+(i-c*((o.length-1)/2))}}function ef(e,t,n){const r=n?n.slice(0):y.Children.toArray(e.children),i=e.data?dn(e):void 0,{polar:o,startAngle:a,endAngle:s,categories:l,minDomain:c,maxDomain:u,horizontal:d}=e,f={horizontal:d,polar:o,startAngle:a,endAngle:s,minDomain:c,maxDomain:u,categories:l},h=i?Object.assign(f,{data:i}):f,p=ro(r,x=>{const S=Object.assign({},x.props,h);if(lS(x)){if(x.type&&Se(x.type.getDomain))return x.props&&x.type.getDomain(S,t)}else return null;return Jo(S,t)},e),v=p.length===0?0:Dn(p),b=p.length===0?1:tr(p);return[v,b]}function qg(e,t,n){const r=n||y.Children.toArray(e.children),i=cg(e,t),o=GY(e,t,r);let a;if(i)a=i;else{const s=ea(e,t),l=Qo(e,t),c=(e.data||e.y)&&dn(e),u=c?lg(e,t,c):[],d=ef(e,t,r),f=s||Dn([...u,...d]),h=l||tr([...u,...d]);a=vi(f,h)}return sg(a,Object.assign({domainPadding:o},e),t)}function tf(e,t,n){if(e.data)return ir(e,t);const r=y.Children.toArray(e.children),o=qo(ro(r,a=>{const s=Object.assign({},a.props,{horizontal:e.horizontal});return Ad(s,t)},e));return o.length>1?$l("linear"):$l(o[0])}function Mw(e){const n=C0(e,["groupComponent","containerComponent","labelComponent"]);let r=e.events;return Array.isArray(n)&&(r=Array.isArray(e.events)?n.concat(...e.events):n),r||[]}function qY(e,t,n,r){const{style:i}=e;let{colorScale:o,color:a}=e;if(i&&i.data&&i.data.fill)return i.data.fill;if(o=t.props&&t.props.colorScale?t.props.colorScale:o,a=t.props&&t.props.color?t.props.color:a,!o&&!a)return;const s=Array.isArray(o)?o:Rg(o,r);return a||s[n%s.length]}function YY(e,t,n){const r=e&&e[n]&&e[n].style?e[n].style:{};return Cl(t,r)}function KY(e,t,n,r){const{style:i,role:o}=n,a=e.props.style||{};if(Array.isArray(a))return a;const s=e.type&&e.type.role,l=s==="stack"?void 0:qY(n,e,t,r),c=s==="line"?{fill:"none",stroke:l}:{fill:l},u=o==="stack"?{}:{width:Pw(n)},d=Z({},a.data,Object.assign({},u,i.data,c)),f=Z({},a.labels,i.labels);return{...a,parent:i.parent,data:d,labels:f}}function ZY(e,t){const n=r=>{if(!lS(r))return null;const i=r.props||{};return us(i,t)};return ro(e.slice(0),n)}function XY(e){const t=i=>{const o=i.props||{};let a;if(ds(i))i.type&&Se(i.type.getData)?a=i.type.getData(o):a=dn(o);else return null;return a.map(s=>({x:s.xName,y:s.yName}))},n={x:[],y:[]},r=(i,o)=>{const a=Array.isArray(o)?o.map(l=>l.x).filter(Boolean):o.x,s=Array.isArray(o)?o.map(l=>l.y).filter(Boolean):o.y;return{x:a!==void 0?i.x.concat(a):i.x,y:s!==void 0?i.y.concat(s):i.y}};return ro(e.slice(0),t,{},n,r)}function $w(e,t,n){const r=us(e,t),i=uS(n,t),o=i?aS(i.props,t):[],a=r.length?r:ZY(n,t);return qo([...a,...o].flat())}function Iw(e,t){const n=t||y.Children.toArray(e.children),r=$w(e,"x",n),i=$w(e,"y",n),o=XY(n);return{x:qo([...r,...o.x].flat()),y:qo([...i,...o.y].flat())}}function Lw(e,t,n){const r=e.categories&&us(e,"x"),i=e.categories&&us(e,"y"),a=!r||!i?n||Iw(e,t):{},s=r||a.x,l=i||a.y;return{x:s.length>0?s:void 0,y:l.length>0?l:void 0}}const Yg=y.createContext(void 0);Yg.displayName="PortalContext";const Fw=()=>y.useContext(Yg),JY=e=>{let{children:t}=e;const[n,r]=y.useState(new Map),i=y.useCallback((s,l)=>{r(c=>{const u=new Map(c);return u.set(s,l),u})},[r]),o=y.useCallback(s=>{r(l=>{const c=new Map(l);return c.delete(s),c})},[r]),a=y.useMemo(()=>({addChild:i,removeChild:o,children:n}),[i,o,n]);return y.createElement(Yg.Provider,{value:a},t)},QY=e=>{let{as:t,...n}=e;const r=Fw();if(!r)return null;const i=Array.from(r.children.values());return y.cloneElement(t,n,i)};function Kg(){return Kg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kg.apply(this,arguments)}const eK={className:"VictoryContainer",portalComponent:y.createElement(WW,null),portalZIndex:99,responsive:!0,role:"img"};function tK(e){const t={...eK,...e},{title:n,desc:r,width:i,height:o,responsive:a}=t,s=y.useRef(null),l=y.useRef(_l("victory-container-")),c=t.containerId??l.current,u=S=>`${c}-${S}`,d=Tr(t),f=a?{width:"100%",height:"100%"}:{width:i,height:o},h=a?`0 0 ${i} ${o}`:void 0,g=a?t.preserveAspectRatio:void 0,p=[n&&u("title"),t["aria-labelledby"]].filter(Boolean).join(" ")||void 0,v=[r&&u("desc"),t["aria-describedby"]].filter(Boolean).join(" ")||void 0,b=u("title"),x=u("desc");return{...t,titleId:b,descId:x,dimensions:f,viewBox:h,preserveAspectRatio:g,ariaLabelledBy:p,ariaDescribedBy:v,userProps:d,localContainerRef:s}}const Qt=e=>{const{role:t,title:n,desc:r,children:i,className:o,portalZIndex:a,portalComponent:s,width:l,height:c,style:u,tabIndex:d,responsive:f,events:h,ouiaId:g,ouiaSafe:p,ouiaType:v,dimensions:b,ariaDescribedBy:x,ariaLabelledBy:S,viewBox:w,preserveAspectRatio:_,userProps:E,titleId:O,descId:T,containerRef:D,localContainerRef:j}=tK(e);return y.useEffect(()=>{if(!(h!=null&&h.onWheel))return;const A=P=>P.preventDefault(),M=j==null?void 0:j.current;return M==null||M.addEventListener("wheel",A),()=>{M==null||M.removeEventListener("wheel",A)}},[]),y.createElement("div",{className:o,style:{...u,width:f?u==null?void 0:u.width:b.width,height:f?u==null?void 0:u.height:b.height,pointerEvents:(u==null?void 0:u.pointerEvents)??"none",touchAction:(u==null?void 0:u.touchAction)??"none",position:(u==null?void 0:u.position)??"relative"},"data-ouia-component-id":g,"data-ouia-component-type":v,"data-ouia-safe":p,ref:QR([j,D])},y.createElement(JY,null,y.createElement("svg",Kg({width:l,height:c,tabIndex:d,role:t,"aria-labelledby":S,"aria-describedby":x,viewBox:w,preserveAspectRatio:_,style:{...b,pointerEvents:"all"}},E,h),n?y.createElement("title",{id:O},n):null,r?y.createElement("desc",{id:T},r):null,i),y.createElement("div",{style:{...b,zIndex:a,position:"absolute",top:0,left:0}},y.createElement(QY,{as:s,width:l,height:c,viewBox:w,preserveAspectRatio:_,style:{...b,overflow:"visible"}}))))};Qt.role="container";const nK={groupComponent:y.createElement("g",null)},nf=e=>{const t={...nK,...e},[n]=y.useState(_l()),r=Fw();r||$g("`renderInPortal` is not supported outside of `VictoryContainer`. Component will be rendered in place");const i=Array.isArray(t.children)?t.children[0]:t.children,{groupComponent:o}=t,a=i&&i.props||{},s=a.groupComponent?{groupComponent:o,standalone:!1}:{},l=Z(s,a,wl(t,["children","groupComponent"]),{key:a.key??n}),c=i&&y.cloneElement(i,l);return y.useEffect(()=>{r==null||r.addChild(n,c)},[t.children]),y.useEffect(()=>()=>r==null?void 0:r.removeChild(n),[]),r?null:c};nf.role="portal";function rf(){return rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rf.apply(this,arguments)}const oa=y.forwardRef((e,t)=>{var l;const{desc:n,id:r,tabIndex:i,origin:o,...a}=e,s={vectorEffect:"non-scaling-stroke",id:(l=te(r,e))==null?void 0:l.toString(),tabIndex:te(i,e),...a};return n?y.createElement("rect",rf({},s,{ref:t}),y.createElement("desc",null,n)):y.createElement("rect",rf({},s,{ref:t}))}),rK=e=>{var c;const{children:t,desc:n,id:r,origin:i,tabIndex:o,title:a,...s}=e,l={id:(c=te(r,e))==null?void 0:c.toString(),tabIndex:te(o,e),...s};return y.createElement("text",l,a&&y.createElement("title",null,a),n&&y.createElement("desc",null,n),t)},iK=e=>{var s;const{desc:t,id:n,tabIndex:r,origin:i,...o}=e,a={id:(s=te(n,e))==null?void 0:s.toString(),tabIndex:te(r,e),...o};return y.createElement("tspan",a)},aa={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},Nw=(e,t)=>e.datum?is(e,e.datum)[t]:0,Bw=e=>{const t=e&&e.fontSize;if(typeof t=="number")return t;if(t==null)return aa.fontSize;if(typeof t=="string"){const n=Number(t.replace("px",""));return isNaN(n)?($g("fontSize should be expressed as a number of pixels"),aa.fontSize):n}return aa.fontSize},_n=function(e,t){return t===void 0&&(t=0),Array.isArray(e)?e[t]||e[0]:e},Ww=e=>{const{backgroundStyle:t,backgroundPadding:n}=e;return Array.isArray(t)&&!vt(t)||Array.isArray(n)&&!vt(n)},oK=(e,t)=>{if(t.disableInlineStyles){const r=st(e,t);return{fontSize:Bw(r)}}const n=r=>{const i=st(r?Z({},r,aa):aa,t);return Object.assign({},i,{fontSize:Bw(i)})};return Array.isArray(e)&&!vt(e)?e.map(r=>n(r)):n(e)},aK=(e,t)=>{if(e)return Array.isArray(e)&&!vt(e)?e.map(n=>st(n,t)):st(e,t)},sK=e=>{if(e.backgroundPadding&&Array.isArray(e.backgroundPadding))return e.backgroundPadding.map(n=>{const r=te(n,e);return xt({padding:r})});const t=te(e.backgroundPadding,e);return xt({padding:t})},lK=e=>{const t=te(e.lineHeight,e);return Array.isArray(t)&&vt(t)?[1]:t},cK=(e,t)=>{if(e==null)return;if(Array.isArray(e))return e.map(r=>te(r,t));const n=te(e,t);if(n!=null)return Array.isArray(n)?n:`${n}`.split(`
|
208
|
+
`)},uK=(e,t,n)=>{const r=e.dy?te(e.dy,e):0,i=e.inline?1:e.text.length,o=te(e.capHeight,e),a=t?te(t,e):"middle",s=[...Array(i).keys()].map(u=>_n(e.style,u).fontSize),l=[...Array(i).keys()].map(u=>_n(n,u));if(a==="start")return r+(o/2+l[0]/2)*s[0];if(e.inline)return a==="end"?r+(o/2-l[0]/2)*s[0]:r+o/2*s[0];if(i===1)return a==="end"?r+(o/2+(.5-i)*l[0])*s[0]:r+(o/2+(.5-i/2)*l[0])*s[0];const c=[...Array(i).keys()].reduce((u,d)=>u+(o/2+(.5-i)*l[d])*s[d]/i,0);return a==="end"?r+c:r+c/2+o/2*l[i-1]*s[i-1]},dK=(e,t,n)=>{const{polar:r}=e,i=_n(e.style),o=r?gg(e):0,a=i.angle===void 0?te(e.angle,e):i.angle,s=a===void 0?o:a,l=e.transform||i.transform,c=l&&te(l,e);return c||s?zg(c,s&&{rotate:[s,t,n]}):void 0},zw=(e,t)=>{const{direction:n,textAnchor:r,x:i,dx:o}=e;if(n==="rtl")return i-t;switch(r){case"middle":return Math.round(i-t/2);case"end":return Math.round(i-t);default:return i+(o||0)}},Rw=(e,t)=>{const{verticalAnchor:n,y:r,originalDy:i=0}=e,o=r+i;switch(n){case"start":return Math.floor(o);case"end":return Math.ceil(o-t);default:return Math.floor(o-t/2)}},fK=(e,t)=>{const{dx:n=0,transform:r,backgroundComponent:i,backgroundStyle:o,inline:a,backgroundPadding:s,capHeight:l}=e,c=t.map(p=>p.textSize),u=a?Math.max(...c.map(p=>p.height)):c.reduce((p,v,b)=>{const x=b?0:l/2;return p+v.height*(t[b].lineHeight-x)},0),d=a?c.reduce((p,v,b)=>{const x=b?n:0;return p+v.width+x},0):Math.max(...c.map(p=>p.width)),f=zw(e,d),h=Rw(e,u),g={key:"background",height:u+s.top+s.bottom,style:o,transform:r,width:d+s.left+s.right,x:a?f-s.left:f+n-s.left,y:h};return y.cloneElement(i,Z({},i.props,g))},hK=(e,t,n)=>{const{textAnchor:r}=e,i=t.map(s=>s.widthWithPadding),a=-i.reduce((s,l)=>s+l,0)/2;switch(r){case"start":return i.reduce((s,l,c)=>c<n?s+l:s,0);case"end":return i.reduce((s,l,c)=>c>n?s-l:s,0);default:return i.reduce((s,l,c)=>{const u=c<n?l:0;return c===n?s+l/2:s+u},a)}},mK=(e,t)=>{const{dy:n,dx:r,transform:i,backgroundStyle:o,backgroundPadding:a,backgroundComponent:s,inline:l,y:c}=e,u=t.map((d,f)=>{const h=_n(t,f-1),g=d.textSize,p=d.fontSize*d.lineHeight,v=Math.ceil(p),b=_n(a,f),x=_n(a,f-1),S=l&&r||0,w=f&&!l?h.fontSize*h.lineHeight+x.top+x.bottom:n-p*.5-(d.fontSize-d.capHeight);return{textHeight:v,labelSize:g,heightWithPadding:v+b.top+b.bottom,widthWithPadding:g.width+b.left+b.right+S,y:c,fontSize:d.fontSize,dy:w}});return u.map((d,f)=>{const h=zw(e,d.labelSize.width),g=u.slice(0,f+1).reduce((w,_)=>w+_.dy,c),p=_n(a,f),v=d.heightWithPadding,b=l?hK(e,u,f)+h-p.left:h,x=l?Rw(e,v)-p.top:g,S={key:`tspan-background-${f}`,height:v,style:_n(o,f),width:d.widthWithPadding,transform:i,x:b-p.left,y:x};return y.cloneElement(s,Z({},s.props,S))})},gK=(e,t)=>Ww(e)?mK(e,t):fK(e,t),pK=(e,t,n)=>{const r=_n(e,t),i=_n(e,t-1),o=i.fontSize*i.lineHeight,a=r.fontSize*r.lineHeight,s=i.fontSize-i.capHeight,l=r.fontSize-r.capHeight,c=o-i.fontSize/2+r.fontSize/2-o/2+a/2-l/2+s/2;return Ww(n)?c+r.backgroundPadding.top+i.backgroundPadding.bottom:c},yK=(e,t,n)=>{const{inline:r}=t,i=_n(e,n);return n&&!r?pK(e,n,t):r?n===0?i.backgroundPadding.top:void 0:i.backgroundPadding.top},vK=e=>{const t=cK(e.text,e),n=oK(e.style,Object.assign({},e,{text:t})),r=aK(e.backgroundStyle,Object.assign({},e,{text:t,style:n})),i=sK(Object.assign({},e,{text:t,style:n,backgroundStyle:r})),o=te(e.id,e);return Object.assign({},e,{backgroundStyle:r,backgroundPadding:i,style:n,text:t,id:o})},bK=e=>{const t=te(e.ariaLabel,e),n=_n(e.style),r=lK(e),i=e.direction?te(e.direction,e):"inherit",o=e.textAnchor?te(e.textAnchor,e):n.textAnchor||"start",a=e.verticalAnchor?te(e.verticalAnchor,e):n.verticalAnchor||"middle",s=e.dx?te(e.dx,e):0,l=uK(e,a,r),c=e.x!==void 0?e.x:Nw(e,"x"),u=e.y!==void 0?e.y:Nw(e,"y"),d=dK(e,c,u);return Object.assign({},e,{ariaLabel:t,lineHeight:r,direction:i,textAnchor:o,verticalAnchor:a,dx:s,dy:l,originalDy:te(e.dy,e),transform:d,x:c,y:u})},xK=(e,t)=>{const{ariaLabel:n,inline:r,className:i,title:o,events:a,direction:s,text:l,textAnchor:c,dx:u,dy:d,transform:f,x:h,y:g,desc:p,id:v,tabIndex:b,tspanComponent:x,textComponent:S}=e,w=Tr(e),_={"aria-label":n,key:"text",...a,direction:s,dx:u,x:h,y:g+d,transform:f,className:i,title:o,desc:te(p,e),tabIndex:te(b,e),id:v,...w},E=l.map((O,T)=>{const D=t[T].style,j={key:`${v}-key-${T}`,x:r?void 0:h,dx:r?u+t[T].backgroundPadding.left:u,dy:yK(t,e,T),textAnchor:D.textAnchor||c,style:D,children:O};return y.cloneElement(x,j)});return y.cloneElement(S,_,E)},_K={backgroundComponent:y.createElement(oa,null),groupComponent:y.createElement("g",null),direction:"inherit",textComponent:y.createElement(rK,null),tspanComponent:y.createElement(iK,null),capHeight:.71,lineHeight:1},en=e=>{const t=vK(Z({},e,_K));if(t.text===null||t.text===void 0)return null;const n=bK(t),{text:r,style:i,capHeight:o,backgroundPadding:a,lineHeight:s}=n,l=r.map((u,d)=>{const f=_n(i,d),h=Ug(`${o}em`,f.fontSize),g=_n(s,d);return{style:f,fontSize:f.fontSize||aa.fontSize,capHeight:h,text:u,textSize:ia(u,f),lineHeight:g,backgroundPadding:_n(a,d)}}),c=xK(n,l);if(t.backgroundStyle){const d=[gK(n,l),c],f=y.cloneElement(t.groupComponent,{},d);return t.renderInPortal?y.createElement(nf,null,f):f}return t.renderInPortal?y.createElement(nf,null,c):c};en.displayName="VictoryLabel",en.role="label",en.defaultStyles=aa;const SK=e=>{var t;return y.createElement("defs",null,y.createElement("clipPath",{id:(t=e.clipId)==null?void 0:t.toString()},e.children))};function of(){return of=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},of.apply(this,arguments)}const Vw=y.forwardRef((e,t)=>{var l;const{desc:n,id:r,tabIndex:i,origin:o,...a}=e,s={vectorEffect:"non-scaling-stroke",id:(l=te(r,e))==null?void 0:l.toString(),tabIndex:te(i,e),...a};return n?y.createElement("circle",of({},s,{ref:t}),y.createElement("desc",null,n)):y.createElement("circle",of({},s,{ref:t}))});class bs extends y.Component{constructor(t){super(t),this.clipId=!ol(t)||t.clipId===void 0?_l("victory-clip-"):t.clipId}calculateAttributes(t){const{polar:n,origin:r,clipWidth:i=0,clipHeight:o=0,translateX:a=0,translateY:s=0}=t,l=xt({padding:t.clipPadding}),c=t.radius||Vr(t);return{x:(n?r.x:a)-l.left,y:(n?r.y:s)-l.top,width:Math.max((n?c:i)+l.left+l.right,0),height:Math.max((n?c:o)+l.top+l.bottom,0)}}renderClippedGroup(t,n){const r=Tr(t),{style:i,events:o,transform:a,children:s,className:l,groupComponent:c,tabIndex:u}=t,d=this.renderClipComponent(t,n),f=Object.assign({className:l,style:i,transform:a,key:`clipped-group-${n}`,clipPath:`url(#${n})`},o);return y.cloneElement(c,{...f,tabIndex:u,...r},[d,...y.Children.toArray(s)])}renderGroup(t){const{style:n,events:r,transform:i,children:o,className:a,groupComponent:s,tabIndex:l}=t;return y.cloneElement(s,Object.assign({className:a,style:n,transform:i,"aria-label":t["aria-label"],tabIndex:l},r),o)}renderClipComponent(t,n){const{polar:r,origin:i,clipWidth:o=0,clipHeight:a=0,translateX:s=0,translateY:l=0,circleComponent:c,rectComponent:u,clipPathComponent:d}=t,{top:f,bottom:h,left:g,right:p}=xt({padding:t.clipPadding});let v;if(r){const b=t.radius||Vr(t),x={r:Math.max(b+g+p,b+f+h,0),cx:i.x-g,cy:i.y-f};v=y.cloneElement(c,x)}else{const b={x:s-g,y:l-f,width:Math.max(o+g+p,0),height:Math.max(a+f+h,0)};v=y.cloneElement(u,b)}return y.cloneElement(d,Object.assign({key:`clip-path-${n}`},t,{clipId:n}),v)}getClipValue(t,n){const r={x:t.clipWidth,y:t.clipHeight};if(r[n]!==void 0)return r[n];const i=Nt(t,n);return i&&Math.abs(i[0]-i[1])||void 0}getTranslateValue(t,n){const r={x:t.translateX,y:t.translateY};if(r[n]!==void 0)return r[n];const i=Nt(t,n);return i?Math.min(...i):void 0}render(){const t=this.getClipValue(this.props,"y"),n=this.getClipValue(this.props,"x");if(n===void 0||t===void 0)return this.renderGroup(this.props);const r=this.getTranslateValue(this.props,"x"),i=this.getTranslateValue(this.props,"y"),o=Z({},this.props,{clipHeight:t,clipWidth:n,translateX:r,translateY:i});return this.renderClippedGroup(o,this.clipId)}}ce(bs,"displayName","VictoryClipContainer"),ce(bs,"role","container"),ce(bs,"defaultProps",{circleComponent:y.createElement(Vw,null),rectComponent:y.createElement(oa,null),clipPathComponent:y.createElement(SK,null),groupComponent:y.createElement("g",null)});function af(){return af=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},af.apply(this,arguments)}const fo=y.forwardRef((e,t)=>{var l;const{desc:n,id:r,tabIndex:i,origin:o,...a}=e,s={id:(l=te(r,e))==null?void 0:l.toString(),tabIndex:te(i,e),...a};return n?y.createElement("path",af({},s,{ref:t}),y.createElement("desc",null,n)):y.createElement("path",af({},s,{ref:t}))}),wK=e=>{const{cx:t,cy:n,r,startAngle:i,endAngle:o,closedPath:a}=e,s=Math.abs(o-i)/2+i,l=t+r*Math.cos(dt(i)),c=n-r*Math.sin(dt(i)),u=t+r*Math.cos(dt(s)),d=n-r*Math.sin(dt(s)),f=t+r*Math.cos(dt(o)),h=n-r*Math.sin(dt(o)),g=s-i<=180?0:1,p=o-s<=180?0:1,v=a?` M ${t}, ${n} L ${l}, ${c}`:`M ${l}, ${c}`,b=`A ${r}, ${r}, 0, ${g}, 0, ${u}, ${d}`,x=`A ${r}, ${r}, 0, ${p}, 0, ${f}, ${h}`;return`${v} ${b} ${x} ${a?"Z":""}`},CK=e=>{const t=te(e.ariaLabel,e),n=te(e.desc,e),r=te(e.id,e),i=st(Object.assign({stroke:"black",fill:"none"},e.style),e),o=te(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,desc:n,id:r,style:i,tabIndex:o})},EK={pathComponent:y.createElement(fo,null),role:"presentation",shapeRendering:"auto"},Uw=e=>{const t=CK(Z({},e,EK));return y.cloneElement(t.pathComponent,{...t.events,"aria-label":t.ariaLabel,d:wK(t),style:t.style,desc:t.desc,tabIndex:t.tabIndex,className:t.className,role:t.role,shapeRendering:t.shapeRendering,transform:t.transform,clipPath:t.clipPath})},OK=e=>{const t=te(e.id,e);return Object.assign({},e,{id:t})},kK={circleComponent:y.createElement(Vw,null),rectComponent:y.createElement(oa,null),role:"presentation",shapeRendering:"auto"},TK=e=>{const t=OK(Z({},e,kK));return t.polar?y.cloneElement(t.circleComponent,{...t.events,style:t.style,role:t.role,shapeRendering:t.shapeRendering,cx:t.x,cy:t.y,r:t.height,className:t.className}):y.cloneElement(t.rectComponent,{...t.events,style:t.style,role:t.role,shapeRendering:t.shapeRendering,x:t.x,y:t.y,rx:t.rx,ry:t.ry,width:t.width,height:t.height,className:t.className})},AK=e=>{const t=te(e.ariaLabel,e),n=te(e.desc,e),r=te(e.id,e),i=st(Object.assign({fill:"none"},e.style),e),o=te(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,desc:n,id:r,style:i,tabIndex:o})},DK={rectComponent:y.createElement(oa,null),role:"presentation",shapeRendering:"auto"},jK=e=>{const t=AK(Z({},e,DK));return y.cloneElement(t.rectComponent,{...t.events,"aria-label":t.ariaLabel,style:t.style,desc:t.desc,tabIndex:t.tabIndex,transform:t.transform,className:t.className,role:t.role,shapeRendering:t.shapeRendering,x:t.x,y:t.y,width:t.width,height:t.height,clipPath:t.clipPath})};function sf(){return sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sf.apply(this,arguments)}const PK=y.forwardRef((e,t)=>{var l;const{desc:n,id:r,tabIndex:i,origin:o,...a}=e,s={vectorEffect:"non-scaling-stroke",id:(l=te(r,e))==null?void 0:l.toString(),tabIndex:te(i,e),...a};return n?y.createElement("line",sf({},s,{ref:t}),y.createElement("desc",null,n)):y.createElement("line",sf({},s,{ref:t}))}),MK=e=>{const t=te(e.ariaLabel,e),n=te(e.desc,e),r=te(e.id,e),i=st(Object.assign({stroke:"black"},e.style),e),o=te(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,desc:n,id:r,style:i,tabIndex:o})},$K={lineComponent:y.createElement(PK,null),role:"presentation",shapeRendering:"auto"},Ci=e=>{const t=MK(Z({},e,$K));return y.cloneElement(t.lineComponent,{...t.events,"aria-label":t.ariaLabel,style:t.style,desc:t.desc,tabIndex:t.tabIndex,className:t.className,role:t.role,shapeRendering:t.shapeRendering,x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,transform:t.transform,clipPath:t.clipPath})},IK=e=>{const{x:t,y:n,size:r,symbol:i}=e;if(e.getPath)return e.getPath(t,n,r);const o=Oq;return(typeof o[i]=="function"?o[i]:o.circle)(t,n,r)},LK=e=>{const t=te(e.ariaLabel,e),n=te(e.desc,e),r=te(e.id,e),i=te(e.size,e),o=st(e.style,e),a=te(e.symbol,e),s=te(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,desc:n,id:r,size:i,style:o,symbol:a,tabIndex:s})},FK={pathComponent:y.createElement(fo,null),role:"presentation",shapeRendering:"auto"},Hw=e=>{const t=LK(Z({},e,FK)),n=Tr(t);return y.cloneElement(t.pathComponent,{...t.events,"aria-label":t.ariaLabel,d:IK(t),style:t.style,desc:t.desc,tabIndex:t.tabIndex,role:t.role,shapeRendering:t.shapeRendering,className:t.className,transform:t.transform,clipPath:t.clipPath,...n})};function NK(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}var BK=NK;const WK=Fe(BK);var Zg={exports:{}};(function(e,t){t=e.exports=n,t.getSerialize=r;function n(i,o,a,s){return JSON.stringify(i,r(o,s),a)}function r(i,o){var a=[],s=[];return o==null&&(o=function(l,c){return a[0]===c?"[Circular ~]":"[Circular ~."+s.slice(0,a.indexOf(c)).join(".")+"]"}),function(l,c){if(a.length>0){var u=a.indexOf(this);~u?a.splice(u+1):a.push(this),~u?s.splice(u,1/0,l):s.push(l),~a.indexOf(c)&&(c=o.call(this,l,c))}else a.push(c);return i==null?c:i.call(this,l,c)}}})(Zg,Zg.exports);var zK=Zg.exports;const RK=Fe(zK);class xs extends y.Component{constructor(t){super(t),this.getScopedEvents=F2.bind(this),this.getEventState=B2.bind(this),this.state=this.state||{},this.sharedEventsCache={},this.globalEvents={},this.prevGlobalEventKeys=[],this.boundGlobalEvents={},this.baseProps=this.getBaseProps(t)}shouldComponentUpdate(t){if(!Vn(this.props,t)){this.baseProps=this.getBaseProps(t);const n=this.getExternalMutations(t,this.baseProps);this.applyExternalMutations(t,n)}return!0}componentDidMount(){const t=Object.keys(this.globalEvents);t.forEach(n=>this.addGlobalListener(n)),this.prevGlobalEventKeys=t}componentDidUpdate(){const t=Object.keys(this.globalEvents);hd(this.prevGlobalEventKeys,t).forEach(i=>this.removeGlobalListener(i)),hd(t,this.prevGlobalEventKeys).forEach(i=>this.addGlobalListener(i)),this.prevGlobalEventKeys=t}componentWillUnmount(){this.prevGlobalEventKeys.forEach(t=>this.removeGlobalListener(t))}addGlobalListener(t){const n=r=>{const i=this.globalEvents[t];return i&&i(U2(r))};this.boundGlobalEvents[t]=n,window.addEventListener(gd(t),n)}removeGlobalListener(t){window.removeEventListener(gd(t),this.boundGlobalEvents[t])}getAllEvents(t){const r=C0(t,["container","groupComponent"]);return Array.isArray(r)?Array.isArray(t.events)?r.concat(...t.events):r:t.events}applyExternalMutations(t,n){if(!vt(n)){const r=t.externalEventMutations.reduce((o,a)=>Se(a.callback)?o.concat(a.callback):o,[]),i=r.length?()=>{r.forEach(o=>o())}:void 0;this.setState(n,i)}}getExternalMutations(t,n){return vt(t.externalEventMutations)?void 0:ZR(t.externalEventMutations,n,this.state,Object.keys(n))}cacheSharedEvents(t,n,r){this.sharedEventsCache[t]=[n,r]}getCachedSharedEvents(t,n){const[r,i]=this.sharedEventsCache[t]||[];if(r&&Vn(n,i))return r}getBaseProps(t){const{container:n}=t,r=y.Children.toArray(this.props.children),i=this.getBasePropsFromChildren(r),o=n?n.props:{};return Object.assign({},i,{parent:o})}getBasePropsFromChildren(t){const r=ro(t,(i,o)=>{if(i.type&&Se(i.type.getBaseProps)){const a=i.props&&i.type.getBaseProps(i.props);return a?[[o,a]]:null}return null});return WK(r)}getNewChildren(t,n){const{events:r,eventKey:i}=t,o=(l,c)=>l.reduce((u,d,f)=>{if(d.props.children){const h=y.Children.toArray(d.props.children),g=c.slice(f,f+h.length),p=y.cloneElement(d,d.props,o(h,g));return u.concat(p)}else if(c[f]!=="parent"&&d.type&&Se(d.type.getBaseProps)){const h=d.props.name||c[f],g=Array.isArray(r)&&r.filter(b=>b.target==="parent"?!1:Array.isArray(b.childName)?b.childName.indexOf(h)>-1:b.childName===h||b.childName==="all"),p=[h,n,g,RK(this.state[h])],v=this.getCachedSharedEvents(h,p)||{events:g,getEvents:(b,x)=>this.getScopedEvents(b,x,h,n),getEventState:(b,x)=>this.getEventState(b,x,h)};return this.cacheSharedEvents(h,v,p),u.concat(y.cloneElement(d,Object.assign({key:`events-${h}`,sharedEvents:v,eventKey:i,name:h},d.props)))}return u.concat(d)},[]),a=Object.keys(n),s=y.Children.toArray(t.children);return o(s,a)}getContainer(t,n,r){const i=this.getNewChildren(t,n),o=Array.isArray(r)?r.filter(p=>p.target==="parent"):[],a=o.length>0?{events:o,getEvents:(p,v)=>this.getScopedEvents(p,v,null,n),getEventState:this.getEventState}:null,s=t.container||t.groupComponent,l=s.type&&s.type.role,c=s.props||{},u=L2.bind(this),d=a&&u({sharedEvents:a},"parent"),f=Z({},this.getEventState("parent","parent"),c,n.parent,{children:i}),h=Z({},N2(d,"parent",f),c.events);this.globalEvents=R2(h);const g=V2(h);return l==="container"?y.cloneElement(s,Object.assign({},f,{events:g})):y.cloneElement(s,g,i)}render(){const t=this.getAllEvents(this.props);return t?this.getContainer(this.props,this.baseProps,t):y.cloneElement(this.props.container,{children:this.props.children})}}ce(xs,"displayName","VictorySharedEvents"),ce(xs,"role","shared-event-wrapper"),ce(xs,"contextType",id),ce(xs,"defaultProps",{groupComponent:y.createElement("g",null)});const Xg={top:-1,left:-1,right:1,bottom:1},lf=e=>e!=null,VK=(e,t)=>{const{orientation:n,horizontal:r}=e;return n?{top:"x",bottom:"x",left:"y",right:"y"}[n]:r?t==="x"?"y":"x":t},UK=e=>{const t=or(e),n=VK(e,t),r=ir(e,t),o=e.domain&&e.domain[t]||fs(e)||r.domain();return r.range(Nt(e,n)),r.domain(o),r},HK=e=>{const{theme:t,dependentAxis:n}=e,r=t&&t.axis&&t.axis.style,i=n?"dependentAxis":"independentAxis",o=t&&t[i]&&t[i].style;return r&&o?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce((l,c)=>(l[c]=Z({},o[c],r[c]),l),{}):o||r},Gw=function(e,t){t===void 0&&(t={});const n=e.style||{},r={height:"100%",width:"100%"};return{parent:Z(n.parent,t.parent,r),axis:Z({},n.axis,t.axis),axisLabel:Z({},n.axisLabel,t.axisLabel),grid:Z({},n.grid,t.grid),ticks:Z({},n.ticks,t.ticks),tickLabels:Z({},n.tickLabels,t.tickLabels)}},GK=(e,t,n)=>{const{position:r,transform:i}=e;return{x1:i.x,y1:i.y,x2:i.x+r.x2,y2:i.y+r.y2,style:t,datum:n}},qK=(e,t,n,r,i)=>{const{position:o,transform:a}=e;return{style:t,x:a.x+o.x,y:a.y+o.y,verticalAnchor:n.verticalAnchor,textAnchor:n.textAnchor,angle:t.angle,text:i,datum:r}},YK=(e,t,n)=>{const{edge:r,transform:i}=e;return{x1:i.x,y1:i.y,x2:r.x+i.x,y2:r.y+i.y,style:t,datum:n}},KK=(e,t,n)=>{const{style:r,padding:i,isVertical:o}=t,{width:a,height:s}=e;return{style:r.axis,x1:o?n.x:i.left+n.x,x2:o?n.x:a-i.right+n.x,y1:o?i.top+n.y:n.y,y2:o?s-i.bottom+n.y:n.y}},ZK=(e,t)=>({tickStyle:st(e.ticks,t),labelStyle:st(e.tickLabels,t),gridStyle:st(e.grid,t)}),XK=(e,t,n)=>{const{style:r,orientation:i,padding:o,labelPadding:a,isVertical:s}=t,l=Xg[i],c=o.left+o.right,u=o.top+o.bottom,d=l<0?"end":"start",f=r.axisLabel,h=s?-90:0,g=s?n.x+l*a:(e.width-c)/2+o.left+n.x,p=s?(e.height-u)/2+o.top+n.y:l*a+n.y;return{x:g,y:p,verticalAnchor:f.verticalAnchor||d,textAnchor:f.textAnchor||"middle",angle:f.angle===void 0?h:f.angle,style:f,text:e.label}},JK=(e,t)=>{const r={top:"end",left:"end",right:"start",bottom:"start"}[e];return{textAnchor:t?r:"middle",verticalAnchor:t?"middle":r}},QK=(e,t)=>{const n=t.axisLabel||{};if(n.padding!==void 0&&n.padding!==null)return n.padding;const r=Dd(e),i=n.fontSize||14;return e.label?i*(r?2.3:1.6):0},qw=(e,t,n)=>{const r=t||"positive";return n?{positive:{x:"left",y:"bottom"},negative:{x:"right",y:"top"}}[r][e]:{positive:{x:"bottom",y:"left"},negative:{x:"top",y:"right"}}[r][e]},eZ=(e,t)=>{const{style:n,scale:r,orientation:i,padding:o,axis:a,ticks:s,stringTicks:l,isVertical:c,labelPadding:u}=t,{polar:d,horizontal:f}=e,h={scale:{[a]:r},polar:d,horizontal:f,ticks:s,stringTicks:l},g=i==="right"?o.right:o.left,p=i==="top"?o.top:o.bottom,v=e.offsetX!==null&&e.offsetX!==void 0?e.offsetX:g,b=e.offsetY!==null&&e.offsetY!==void 0?e.offsetY:p,x=n.axisLabel.fontSize||14,S=s.map((T,D)=>{const j=l?e.tickValues[T-1]:T;return st(n.ticks,Object.assign({},h,{tick:j,index:D})).size||0}),w=x+2*Math.max(...S)+u,_=1.2*x;return{x:v??(c?w:_),y:b??(c?_:w)}},ho=(e,t)=>e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():e===t,tZ=(e,t)=>{const{scale:n,origin:r,orientation:i,orientations:o,domain:a,padding:s}=t,{top:l,bottom:c,left:u,right:d}=s,f={x:i==="bottom"||i==="top"?i:o.x,y:i==="left"||i==="right"?i:o.y},h={x:f.y==="left"?u:d,y:f.x==="bottom"?c:l},g={x:f.y==="left"?0:e.width,y:f.x==="bottom"?e.height:0},p={x:ho(r.x,a.x[0])||ho(r.x,a.x[1])?0:n.x(r.x),y:ho(r.y,a.y[0])||ho(r.y,a.y[1])?0:n.y(r.y)},v=p.x?Math.abs(g.x-p.x):h.x,b=p.y?Math.abs(g.y-p.y):h.y,x=lf(e.offsetX)?e.offsetX:v,S=lf(e.offsetY)?e.offsetY:b;return{x,y:S}},nZ=(e,t)=>{const{scale:n,origin:r,orientation:i,orientations:o,domain:a,padding:s}=t,{top:l,bottom:c,left:u,right:d}=s,f={y:i==="bottom"||i==="top"?i:o.x,x:i==="left"||i==="right"?i:o.y},h={x:f.y==="bottom"?c:l,y:f.x==="left"?u:d},g={y:f.x==="left"?0:e.width,x:f.y==="bottom"?e.height:0},p={x:ho(r.x,a.x[0])||ho(r.x,a.x[1])?0:n.x(r.x),y:ho(r.y,a.y[0])||ho(r.y,a.y[1])?0:n.y(r.y)},v=p.x?Math.abs(g.x-p.x):h.x,b=p.y?Math.abs(g.y-p.y):h.y,x=lf(e.offsetX)?e.offsetX:b,S=lf(e.offsetY)?e.offsetY:v;return{x,y:S}},rZ=(e,t,n)=>{const{orientation:r,axis:i}=t,o=yS(e,i);return{top:{x:0,y:o!==void 0?o:n.y},bottom:{x:0,y:o!==void 0?o:e.height-n.y},left:{x:o!==void 0?o:n.x,y:0},right:{x:o!==void 0?o:e.width-n.x,y:0}}[r]},iZ=(e,t,n)=>{const{tickStyle:r,labelStyle:i}=e,o=r.size||0,a=r.padding||0,s=i.padding||0,l=o+a+s,c=Xg[t];return{x:n?c*l:0,x2:n?c*o:0,y:n?0:c*l,y2:n?0:c*o}},oZ=(e,t,n)=>({x:n?t.x:e+t.x,y:n?e+t.y:t.y}),aZ=(e,t)=>{const{orientation:n,padding:r,isVertical:i}=t,o=-Xg[n],a=i?o*(e.width-(r.left+r.right)):0,s=i?0:o*(e.height-(r.top+r.bottom));return{x:a,y:s}},sZ=(e,t)=>{const{padding:n,orientation:r,crossAxis:i}=e,o=r==="right"?n.right:n.left,a=r==="top"?n.top:n.bottom;return{x:i?t.x-o:0,y:i?t.y-a:0}},lZ=(e,t)=>{let n;return t.domain.x&&t.domain.y?n=e.horizontal?nZ(e,t):tZ(e,t):n=eZ(e,t),{globalTransform:rZ(e,t,n),gridOffset:sZ(t,n),gridEdge:aZ(e,t)}},cZ=e=>{if(e.orientation)return e.orientation;const t={dependent:e.horizontal?"bottom":"left",independent:e.horizontal?"left":"bottom"};return e.dependentAxis?t.dependent:t.independent},uZ=e=>{const t=HK(e),n=Gw(e,t),r=xt(e),i=QK(e,n),o=jd(e)?e.tickValues:void 0,a=or(e),s=fs(e),l=UK(e),c=a==="x"?s:void 0,u=a==="y"?s:void 0,d=a==="x"?l:void 0,f=a==="y"?l:void 0,h=!(e.crossAxis===!1||e.standalone===!0),g=pS(e,l,h),p=mS(e,l),v={x:Nt(e,"x"),y:Nt(e,"y")},b={x:e.domain&&e.domain.x?e.domain.x:c,y:e.domain&&e.domain.y?e.domain.y:u},x={x:e.domain&&e.domain.x?ir(e,"x").domain(e.domain.x).range(e.horizontal?v.y:v.x):d,y:e.domain&&e.domain.y?ir(e,"y").domain(e.domain.y).range(e.horizontal?v.x:v.y):f},S=b.x&&b.y?fS(b):void 0,w=S?{x:hS(S.x,b.x),y:hS(S.y,b.y)}:void 0,_=w?{x:qw("x",w.y,e.horizontal),y:qw("y",w.x,e.horizontal)}:void 0,E=_?e.orientation||_[a]:cZ(e),O=Dd(Object.assign({},e,{orientation:E}));return{anchors:JK(E,O),axis:a,crossAxis:h,domain:b,isVertical:O,labelPadding:i,orientation:E,orientations:_,origin:S,padding:r,scale:x,stringTicks:o,style:n,tickFormat:p,ticks:g}},dZ=(e,t)=>{const n=Pd(e,t),r=uZ(n),{axis:i,style:o,orientation:a,isVertical:s,scale:l,ticks:c,tickFormat:u,anchors:d,domain:f,stringTicks:h}=r,g=i==="x"?"y":"x",{width:p,height:v,standalone:b,theme:x,polar:S,padding:w,horizontal:_}=n,{globalTransform:E,gridOffset:O,gridEdge:T}=lZ(n,r),D={scale:{[i]:l[i]},polar:S,horizontal:_,ticks:c,stringTicks:h},j=KK(n,r,E),A=XK(n,r,E),M={parent:Object.assign({style:o.parent,ticks:c,standalone:b,theme:x,width:p,height:v,padding:w,domain:f},D)},P={dimension:g,range:{[g]:Nt(n,g)},scale:n.scale&&n.scale[g]?{[g]:n.scale[g]}:void 0};return c.reduce(($,L,H)=>{var J,ee,X;const q=h?h[H]:L,U=u(L,H,c),z=ZK(o,Object.assign({},D,{tick:q,tickValue:L,index:H,text:U})),N={position:iZ(z,a,s),transform:oZ((J=l[i])==null?void 0:J.call(l,L),E,s)},R={edge:T,transform:{x:s?-O.x+E.x:((ee=l[i])==null?void 0:ee.call(l,L))+E.x,y:s?((X=l[i])==null?void 0:X.call(l,L))+E.y:O.y+E.y}};return $[H]={axis:Object.assign({dimension:i},D,j),axisLabel:Object.assign({},D,A),ticks:Object.assign({},D,GK(N,z.tickStyle,L)),tickLabels:Object.assign({},D,qK(N,z.labelStyle,d,L,U)),grid:Object.assign({},D,P,YK(R,z.gridStyle,L))},$},M)},Yw={width:450,height:300,padding:50},fZ={components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]};class Ei extends y.Component{static getStyles(t){return Gw(t)}static getBaseProps(t){return dZ(t,Yw)}renderLine(t){const{axisComponent:n}=t,r=this.getComponentProps(n,"axis",0);return y.cloneElement(n,r)}renderLabel(t){const{axisLabelComponent:n,label:r}=t;if(!r)return null;const i=this.getComponentProps(n,"axisLabel",0);return y.cloneElement(n,i)}renderGridAndTicks(t){const{tickComponent:n,tickLabelComponent:r,gridComponent:i,name:o}=t,a=s=>{const{style:l={},events:c={}}=s;return l.stroke!=="transparent"&&l.stroke!=="none"&&l.strokeWidth!==0||!vt(c)};return this.dataKeys.map((s,l)=>{const c=this.getComponentProps(n,"ticks",l),u=y.cloneElement(n,c),d=a(u.props)?u:void 0,f=this.getComponentProps(i,"grid",l),h=y.cloneElement(i,f),g=a(h.props)?h:void 0,p=this.getComponentProps(r,"tickLabels",l),b=[g,d,y.cloneElement(r,p)].filter(Boolean);return y.cloneElement(t.groupComponent,{key:`${o}-tick-group-${s}`},b)})}fixLabelOverlap(t,n){const r=Dd(n),i=r?n.height:n.width,o=h=>h.type&&h.type.role==="label",a=t.map(h=>h.props.children).reduce((h,g)=>h.concat(g),[]).filter(o).map(h=>h.props),s=h=>typeof h=="object"?Object.assign({},{top:0,right:0,bottom:0,left:0},h):{top:h,right:h,bottom:h,left:h},l=a.reduce((h,g)=>{const p=s(g.style.padding),v=ia(g.text,{angle:g.angle,fontSize:g.style.fontSize,letterSpacing:g.style.letterSpacing,fontFamily:g.style.fontFamily});return h+(r?v.height+p.top+p.bottom:v.width+p.right+p.left)},0),c=Math.floor(i*t.length/l),u=Math.ceil(t.length/c)||1,d=h=>h.props.children.filter(o).reduce((g,p)=>(r?p.props.y:p.props.x)||0,0);return t.sort((h,g)=>r?d(g)-d(h):d(h)-d(g)).filter((h,g)=>g%u===0)}shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t}=Gl,n=Pd(this.props,Yw),r=Tr(this.props);if(this.shouldAnimate())return this.animateComponent(n,t);const i=this.renderGridAndTicks(n),o=n.fixLabelOverlap?this.fixLabelOverlap(i,n):i,a=[this.renderLine(n),this.renderLabel(n),...o],s=y.cloneElement(n.containerComponent,r);return n.standalone?this.renderContainer(s,a):y.cloneElement(n.groupComponent,r,a)}}ce(Ei,"animationWhitelist",["style","domain","range","tickCount","tickValues","offsetX","offsetY","padding","width","height"]),ce(Ei,"displayName","VictoryAxis"),ce(Ei,"role","axis"),ce(Ei,"defaultTransitions",{onExit:{duration:500},onEnter:{duration:500}}),ce(Ei,"defaultProps",{axisComponent:y.createElement(Ci,null),axisLabelComponent:y.createElement(en,null),tickLabelComponent:y.createElement(en,null),tickComponent:y.createElement(Ci,null),gridComponent:y.createElement(Ci,null),standalone:!0,theme:Ar.grayscale,containerComponent:y.createElement(Qt,null),groupComponent:y.createElement("g",{role:"presentation"}),fixLabelOverlap:!1}),ce(Ei,"getDomain",fs),ce(Ei,"getAxis",or),ce(Ei,"expectedComponents",["axisComponent","axisLabelComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent"]);const Gl=Yo(Ei,fZ),$n=(e,t,n)=>n==="x"?e*Math.cos(t):-e*Math.sin(t),Kw=e=>{const t=e.dependentAxis?"radial":"angular",n=t==="angular"?"radial":"angular";return e.horizontal?n:t},hZ=(e,t)=>jw(e,r=>t(r)%(2*Math.PI)),Jg=(e,t)=>({tickStyle:st(e.ticks,t),labelStyle:st(e.tickLabels,t),gridStyle:st(e.grid,t)}),mZ=e=>{var l,c;const{theme:t={},dependentAxis:n}=e,r=t.polarAxis&&t.polarAxis.style||t.axis&&t.axis.style,i=n?"polarDependentAxis":"polarIndependentAxis",o=n?"dependentAxis":"independentAxis",a=((l=t==null?void 0:t[i])==null?void 0:l.style)||((c=t==null?void 0:t[o])==null?void 0:c.style);return r&&a?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce((d,f)=>(d[f]=Z({},a==null?void 0:a[f],r==null?void 0:r[f]),d),{}):a||r},Zw=e=>{const{left:t,right:n,top:r,bottom:i}=xt(e),{width:o,height:a}=e;if(o===void 0||a===void 0)throw new Error("VictoryPolarAxis: width and height properties are required for standalone axes.");return Math.min(o-t-n,a-r-i)/2},Xw=(e,t)=>{if(e.range&&e.range[t])return e.range[t];if(e.range&&Array.isArray(e.range))return e.range;if(Kw(e)==="angular"){const i=dt(e.startAngle),o=dt(e.endAngle);return[i,o]}const r=Zw(e);return[e.innerRadius||0,r]},Jw=e=>{const t=or(e),n=ir(e,t),r=fs(e,t)||n.domain(),i=Xw(e,t);return n.range(i),n.domain(r),n},Qw=function(e,t){if(t===void 0&&(t={}),e.disableInlineStyles)return{};const n=e.style||{};return{parent:Z({height:"auto",width:"100%"},n.parent,t.parent),axis:Z({},n.axis,t.axis),axisLabel:Z({},n.axisLabel,t.axisLabel),grid:Z({},n.grid,t.grid),ticks:Z({},n.ticks,t.ticks),tickLabels:Z({},n.tickLabels,t.tickLabels)}},cf=e=>{const{axisAngle:t,startAngle:n,dependentAxis:r}=e,i=or(e),o=yS(e,i);return o===void 0||!r?t===void 0?n:t:ui(o)},gZ=(e,t,n,r)=>{const{axisType:i,radius:o,scale:a,style:s,stringTicks:l,ticks:c,tickFormat:u,origin:d}=t,f=u(n,r,c),h=l?l[r]:n,{tickStyle:g}=Jg(s,{tick:h,tickValue:n,index:r,ticks:c,stringTicks:l,radius:o,scale:a,axisType:i,text:f}),p=i==="radial"?cf(e):void 0,v=g.padding||g.size||0,b=dt(90-p),x=i==="angular"?a(n):dt(-1*p),S=i==="angular"?o:a(n);return i==="angular"?{index:r,datum:h,style:g,x1:$n(S,x,"x")+d.x,y1:$n(S,x,"y")+d.y,x2:$n(S+v,x,"x")+d.x,y2:$n(S+v,x,"y")+d.y}:{index:r,datum:h,style:g,x1:S*Math.cos(x)+Math.cos(b)*v+d.x,x2:S*Math.cos(x)-Math.cos(b)*v+d.x,y1:S*Math.sin(x)+Math.sin(b)*v+d.y,y2:S*Math.sin(x)-Math.sin(b)*v+d.y}},pZ=(e,t,n,r)=>{const{axisType:i,radius:o,tickFormat:a,style:s,scale:l,ticks:c,stringTicks:u,origin:d}=t,f=a(n,r,c),h=u?u[r]:n,{labelStyle:g}=Jg(s,{text:f,tick:h,tickValue:n,index:r,ticks:c,stringTicks:u,radius:o,scale:l,axisType:i}),{tickLabelComponent:p}=e,v=p!=null&&p.props.labelPlacement?p.props.labelPlacement:e.labelPlacement,b=g.padding||0,x=0,S=i==="radial"?cf(e):void 0,w=i==="angular"?ui(l(n)):S+x,_=g.angle===void 0?gg(Object.assign({},e,{labelPlacement:v}),w):g.angle,E=i==="angular"?o+b:l(n),O=g.textAnchor||mg(Object.assign({},e,{labelPlacement:v}),w);return{index:r,datum:h,style:g,angle:_,textAnchor:O,text:f,x:E*Math.cos(dt(w))+d.x,y:-E*Math.sin(dt(w))+d.y}},yZ=(e,t,n,r)=>{const{axisType:i,radius:o,style:a,scale:s,stringTicks:l,ticks:c,tickFormat:u,origin:d}=t,f=u(n,r,c),{startAngle:h,endAngle:g,innerRadius:p=0}=e,v=l?l[r]:n,{gridStyle:b}=Jg(a,{tick:v,tickValue:n,index:r,ticks:c,stringTicks:l,radius:o,scale:s,axisType:i,text:f}),x=s(n);return i==="angular"?{index:r,datum:v,style:b,x1:$n(o,x,"x")+d.x,y1:$n(o,x,"y")+d.y,x2:$n(p,x,"x")+d.x,y2:$n(p,x,"y")+d.y}:{style:b,index:r,datum:v,cx:d.x,cy:d.y,r:s(n),startAngle:h,endAngle:g}},vZ=(e,t)=>{const{axisType:n,radius:r,style:i,origin:o}=t,{axisLabelComponent:a}=e;if(n!=="radial")return{};const s=a!=null&&a.props.labelPlacement?a.props.labelPlacement:e.labelPlacement,l=i&&i.axisLabel||{},c=n==="radial"?cf(e):void 0,u=l.angle===void 0?gg(Object.assign({},e,{labelPlacement:s}),c):l.angle,d=r+(l.padding||0),f=l.textAnchor||mg(Object.assign({},e,{labelPlacement:s}),c),h=l.verticalAnchor||SS(Object.assign({},e,{labelPlacement:s}),c);return{style:l,angle:u,textAnchor:f,verticalAnchor:h,text:e.label,x:$n(d,dt(c),"x")+o.x,y:$n(d,dt(c),"y")+o.y}},bZ=(e,t)=>{const{style:n,axisType:r,radius:i,origin:o}=t,{startAngle:a,endAngle:s,innerRadius:l=0}=e,c=r==="radial"?dt(cf(e)):void 0;return r==="radial"?{style:n.axis,x1:$n(l,c,"x")+o.x,x2:$n(i,c,"x")+o.x,y1:$n(l,c,"y")+o.y,y2:$n(i,c,"y")+o.y}:{style:n.axis,cx:o.x,cy:o.y,r:i,startAngle:a,endAngle:s}},xZ=e=>{const t=Object.assign({polar:!0},e),n=mZ(t),r=Qw(t,n),i=xt(t),o=or(t),a=Kw(t),s=jd(t)?t.tickValues:void 0,l=fs(t,o),c=Xw(t,o),u=Jw(t),d=pS(t,u),f=a==="angular"?hZ(d,u):d,h=mS(t,u),g=Zw(t),p=El(t);return{axis:o,style:r,padding:i,stringTicks:s,axisType:a,scale:u,ticks:f,tickFormat:h,domain:l,range:c,radius:g,origin:p}},_Z=(e,t)=>{const n=Pd(e,t),r=xZ(n),{style:i,scale:o,ticks:a,domain:s}=r,{width:l,height:c,standalone:u,theme:d,name:f}=n,h=bZ(n,r),g=vZ(n,r),p={parent:{style:i.parent,ticks:a,scale:o,width:l,height:c,domain:s,standalone:u,theme:d,name:f}};return a.reduce((v,b,x)=>(v[x]={axis:h,axisLabel:g,ticks:gZ(n,r,b,x),tickLabels:pZ(n,r,b,x),grid:yZ(n,r,b,x)},v),p)},Qg={width:450,height:300,padding:50};class Oi extends y.Component{static getScale(t){return Jw(t)}static getStyles(t){return Qw(t,Qg.style)}static getBaseProps(t){return _Z(t,Qg)}renderAxisLine(t){const{dependentAxis:n}=t,r=n?t.axisComponent:t.circularAxisComponent,i=this.getComponentProps(r,"axis",0);return y.cloneElement(r,i)}renderLabel(t){const{axisLabelComponent:n,dependentAxis:r,label:i}=t;if(!i||!r)return null;const o=this.getComponentProps(n,"axisLabel",0);return y.cloneElement(n,o)}renderAxis(t){const{tickComponent:n,tickLabelComponent:r,name:i}=t,o=g=>{const{style:p={},events:v={}}=g;return p.stroke!=="transparent"&&p.stroke!=="none"&&p.strokeWidth!==0||!vt(v)},s=(t.dependentAxis?"radial":"angular")==="radial"?t.circularGridComponent:t.gridComponent,l=this.dataKeys.map((g,p)=>{const v=Object.assign({key:`${i}-tick-${g}`},this.getComponentProps(n,"ticks",p)),b=y.cloneElement(n,v);return o(b.props)?b:void 0}).filter(Boolean),c=this.dataKeys.map((g,p)=>{const v=Object.assign({key:`${i}-grid-${g}`},this.getComponentProps(s,"grid",p)),b=y.cloneElement(s,v);return o(b.props)?b:void 0}).filter(Boolean),u=this.dataKeys.map((g,p)=>{const v=Object.assign({key:`${i}-tick-${g}`},this.getComponentProps(r,"tickLabels",p));return y.cloneElement(r,v)}),d=this.renderAxisLine(t),f=this.renderLabel(t),h=[d,f,...l,...c,...u];return this.renderGroup(t,h)}renderGroup(t,n){const{groupComponent:r}=t;return y.cloneElement(r,{},n)}shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t}=ep,n=Pd(this.props,Qg);if(this.shouldAnimate())return this.animateComponent(n,t);const r=this.renderAxis(n);return n.standalone?this.renderContainer(n.containerComponent,r):r}}ce(Oi,"animationWhitelist",["style","domain","range","tickCount","tickValues","padding","width","height"]),ce(Oi,"displayName","VictoryAxis"),ce(Oi,"role","axis"),ce(Oi,"defaultTransitions",{onExit:{duration:500},onEnter:{duration:500}}),ce(Oi,"defaultProps",{axisComponent:y.createElement(Ci,null),axisLabelComponent:y.createElement(en,null),circularAxisComponent:y.createElement(Uw,null),circularGridComponent:y.createElement(Uw,null),containerComponent:y.createElement(Qt,null),endAngle:360,gridComponent:y.createElement(Ci,null),groupComponent:y.createElement("g",{role:"presentation"}),labelPlacement:"parallel",startAngle:0,standalone:!0,theme:Ar.grayscale,tickComponent:y.createElement(Ci,null),tickLabelComponent:y.createElement(en,null)}),ce(Oi,"getDomain",fs),ce(Oi,"getAxis",or),ce(Oi,"expectedComponents",["axisComponent","circularAxisComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent","circularGridComponent"]);const ep=Yo(Oi,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]}),SZ={width:450,height:300,padding:50};function wZ(e,t,n){const{domain:r,scale:i,stringMap:o,categories:a,horizontal:s}=n;return{stringMap:o,horizontal:s,categories:a,startAngle:t.startAngle,endAngle:t.endAngle,innerRadius:t.innerRadius,domain:r,scale:i}}function CZ(e,t){const n=e.backgroundComponent,r=e.polar?t.range.y[1]:t.range.y[0]-t.range.y[1],i=t.range.x[1]-t.range.x[0],o=e.horizontal?t.scale.y.range()[0]:t.scale.x.range()[0],a=e.horizontal?t.scale.x.range()[1]:t.scale.y.range()[1],s=e.polar?t.origin.x:o,l=e.polar?t.origin.y:a,c=e.name||"chart",u={height:r,polar:e.polar,scale:t.scale,style:e.style.background,x:s,y:l,key:`${c}-background`,width:i};return y.cloneElement(n,Z({},n.props,u))}function EZ(e,t,n){const r=cS([e]);if(r.length>0)return wZ(r[0],t,n);const{categories:i,domain:o,range:a,scale:s,stringMap:l,horizontal:c}=n;return{categories:i,domain:o,range:a,scale:s,stringMap:l,horizontal:c}}function OZ(e){const t=e.style&&e.style.parent;return{parent:Z({},t,{height:"100%",width:"100%",userSelect:"none"})}}function eC(e,t){const n=OZ(e),r=Bt(e,SZ,"chart"),{horizontal:i,polar:o}=r,a=Iw(r,t),s=Lw(r,t,a),l=TZ(r,t,a),c={x:nC(Object.assign({},r,{categories:s}),"x",t),y:nC(Object.assign({},r,{categories:s}),"y",t)},u={x:Nt(r,"x"),y:Nt(r,"y")},d={x:Il(r,"x")||tf(r,"x"),y:Il(r,"y")||tf(r,"y")},f={x:d.x.domain(c.x).range(i?u.y:u.x),y:d.y.domain(c.y).range(i?u.x:u.y)},h=o?El(r):fS(c),g=xt(r);return{categories:s,domain:c,range:u,horizontal:i,scale:f,stringMap:l,style:n,origin:h,padding:g}}function kZ(e,t,n){const r=t||tC(e),i=n||eC(e,r),o=i.style.parent,{height:a,polar:s,theme:l,width:c}=e,{origin:u,horizontal:d}=i,f=e.name||"chart";return r.filter(y.isValidElement).map((h,g)=>{const p=h.type&&h.type.role,v=Array.isArray(h.props.style)?h.props.style:Z({},h.props.style,{parent:o}),b=EZ(h,e,i),x=h.props.name||`${f}-${p}-${g}`,S=Z({horizontal:d,height:a,polar:s,theme:l,width:c,style:v,name:x,origin:s?u:void 0,padding:i.padding,key:`${x}-key-${g}`,standalone:!1},b);return y.cloneElement(h,S)})}const tC=(e,t)=>{let n=y.Children.toArray(e.children);if(n.length===0)n.push(t.independent,t.dependent);else{const r={dependent:dS(n,"dependent"),independent:dS(n,"independent")};r.dependent.length===0&&r.independent.length===0&&(n=e.prependDefaultAxes?[t.independent,t.dependent].concat(n):n.concat([t.independent,t.dependent]))}return n},nC=(e,t,n)=>{const r=n||y.Children.toArray(e.children),i=qg(e,t,r),o=uS(r,t);return o&&o.props&&o.props.invertAxis?i.concat().reverse():i},TZ=(e,t,n)=>{const r=!n.x||n.x.length===0?null:n.x.reduce((o,a,s)=>(o[a]=s+1,o),{}),i=!n.y||n.y.length===0?null:n.y.reduce((o,a,s)=>(o[a]=s+1,o),{});return{x:r,y:i}},AZ={width:450,height:300,padding:50},DZ={backgroundComponent:y.createElement(TK,null),containerComponent:y.createElement(Qt,null),defaultAxes:{independent:y.createElement(Gl,null),dependent:y.createElement(Gl,{dependentAxis:!0})},defaultPolarAxes:{independent:y.createElement(ep,null),dependent:y.createElement(ep,{dependentAxis:!0})},groupComponent:y.createElement("g",null),standalone:!0,theme:Ar.grayscale},jZ=e=>{const t=y.useMemo(()=>Z({},e,DZ),[e]),n="chart",{getAnimationProps:r,setAnimationState:i,getProps:o}=_S(),a=o(t),s=Bt(a,AZ,n),{desc:l,eventKey:c,containerComponent:u,standalone:d,groupComponent:f,externalEventMutations:h,width:g,height:p,theme:v,polar:b,name:x,title:S}=s,w=a.polar?s.defaultPolarAxes:s.defaultAxes,_=y.useMemo(()=>tC(s,w),[s,w]),E=y.useMemo(()=>eC(s,_),[s,_]),{domain:O,scale:T,style:D,origin:j,horizontal:A}=E,M=y.useMemo(()=>{const U=kZ(a,_,E).map((z,N)=>{const R=Object.assign({animate:r(a,z,N)},z.props);return y.cloneElement(z,R)});if(a.style&&a.style.background){const z=CZ(a,E);U.unshift(z)}return U},[r,_,a,E]),P=y.useMemo(()=>d?{desc:l,domain:O,width:g,height:p,horizontal:A,name:x,origin:b?j:void 0,polar:b,theme:v,title:S,scale:T,standalone:d,style:D.parent}:{},[l,O,p,A,x,j,b,T,d,D,S,v,g]),$=y.useMemo(()=>{if(d){const q=Z({},u.props,P,Tr(t));return y.cloneElement(u,q)}return f},[f,d,u,P,t]),L=y.useMemo(()=>Mw(a),[a]),H=xS(t);return y.useEffect(()=>()=>{t.animate&&i(H,t)},[i,H,t]),vt(L)?y.cloneElement($,$.props,M):y.createElement(xs,{container:$,eventKey:c,events:L,externalEventMutations:h},M)},uf=y.memo(jZ,Vn);uf.displayName="VictoryChart",uf.expectedComponents=["groupComponent","containerComponent"];function PZ(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var MZ=PZ,$Z=p0,IZ=od;function LZ(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?IZ(n,s,l):$Z(n,s,l)}return n}var ql=LZ,FZ=ql,NZ=es;function BZ(e,t){return e&&FZ(t,NZ(t),e)}var WZ=BZ,zZ=ql,RZ=Ya;function VZ(e,t){return e&&zZ(t,RZ(t),e)}var UZ=VZ,df={exports:{}};df.exports,function(e,t){var n=Er,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var d=c.length,f=s?s(d):new c.constructor(d);return c.copy(f),f}e.exports=l}(df,df.exports);var rC=df.exports;function HZ(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var iC=HZ,GZ=ql,qZ=t0;function YZ(e,t){return GZ(e,qZ(e),t)}var KZ=YZ,ZZ=ql,XZ=P2;function JZ(e,t){return ZZ(e,XZ(e),t)}var QZ=JZ,eX=Object.prototype,tX=eX.hasOwnProperty;function nX(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&tX.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var rX=nX,oC=xx;function iX(e){var t=new e.constructor(e.byteLength);return new oC(t).set(new oC(e)),t}var tp=iX,oX=tp;function aX(e,t){var n=t?oX(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var sX=aX,lX=/\w*$/;function cX(e){var t=new e.constructor(e.source,lX.exec(e));return t.lastIndex=e.lastIndex,t}var uX=cX,aC=Ra,sC=aC?aC.prototype:void 0,lC=sC?sC.valueOf:void 0;function dX(e){return lC?Object(lC.call(e)):{}}var fX=dX,hX=tp;function mX(e,t){var n=t?hX(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var cC=mX,gX=tp,pX=sX,yX=uX,vX=fX,bX=cC,xX="[object Boolean]",_X="[object Date]",SX="[object Map]",wX="[object Number]",CX="[object RegExp]",EX="[object Set]",OX="[object String]",kX="[object Symbol]",TX="[object ArrayBuffer]",AX="[object DataView]",DX="[object Float32Array]",jX="[object Float64Array]",PX="[object Int8Array]",MX="[object Int16Array]",$X="[object Int32Array]",IX="[object Uint8Array]",LX="[object Uint8ClampedArray]",FX="[object Uint16Array]",NX="[object Uint32Array]";function BX(e,t,n){var r=e.constructor;switch(t){case TX:return gX(e);case xX:case _X:return new r(+e);case AX:return pX(e,n);case DX:case jX:case PX:case MX:case $X:case IX:case LX:case FX:case NX:return bX(e,n);case SX:return new r;case wX:case OX:return new r(e);case CX:return yX(e);case EX:return new r;case kX:return vX(e)}}var WX=BX,zX=Tn,uC=Object.create,RX=function(){function e(){}return function(t){if(!zX(t))return{};if(uC)return uC(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),VX=RX,UX=VX,HX=o0,GX=Pu;function qX(e){return typeof e.constructor=="function"&&!GX(e)?UX(HX(e)):{}}var dC=qX,YX=Ua,KX=Or,ZX="[object Map]";function XX(e){return KX(e)&&YX(e)==ZX}var JX=XX,QX=JX,eJ=Ha,fC=ll,hC=fC&&fC.isMap,tJ=hC?eJ(hC):QX,nJ=tJ,rJ=Ua,iJ=Or,oJ="[object Set]";function aJ(e){return iJ(e)&&rJ(e)==oJ}var sJ=aJ,lJ=sJ,cJ=Ha,mC=ll,gC=mC&&mC.isSet,uJ=gC?cJ(gC):lJ,dJ=uJ,fJ=Hu,hJ=MZ,mJ=p0,gJ=WZ,pJ=UZ,yJ=rC,vJ=iC,bJ=KZ,xJ=QZ,_J=Tx,SJ=M2,wJ=Ua,CJ=rX,EJ=WX,OJ=dC,kJ=yn,TJ=sl,AJ=nJ,DJ=Tn,jJ=dJ,PJ=es,MJ=Ya,$J=1,IJ=2,LJ=4,pC="[object Arguments]",FJ="[object Array]",NJ="[object Boolean]",BJ="[object Date]",WJ="[object Error]",yC="[object Function]",zJ="[object GeneratorFunction]",RJ="[object Map]",VJ="[object Number]",vC="[object Object]",UJ="[object RegExp]",HJ="[object Set]",GJ="[object String]",qJ="[object Symbol]",YJ="[object WeakMap]",KJ="[object ArrayBuffer]",ZJ="[object DataView]",XJ="[object Float32Array]",JJ="[object Float64Array]",QJ="[object Int8Array]",eQ="[object Int16Array]",tQ="[object Int32Array]",nQ="[object Uint8Array]",rQ="[object Uint8ClampedArray]",iQ="[object Uint16Array]",oQ="[object Uint32Array]",ht={};ht[pC]=ht[FJ]=ht[KJ]=ht[ZJ]=ht[NJ]=ht[BJ]=ht[XJ]=ht[JJ]=ht[QJ]=ht[eQ]=ht[tQ]=ht[RJ]=ht[VJ]=ht[vC]=ht[UJ]=ht[HJ]=ht[GJ]=ht[qJ]=ht[nQ]=ht[rQ]=ht[iQ]=ht[oQ]=!0,ht[WJ]=ht[yC]=ht[YJ]=!1;function ff(e,t,n,r,i,o){var a,s=t&$J,l=t&IJ,c=t&LJ;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!DJ(e))return e;var u=kJ(e);if(u){if(a=CJ(e),!s)return vJ(e,a)}else{var d=wJ(e),f=d==yC||d==zJ;if(TJ(e))return yJ(e,s);if(d==vC||d==pC||f&&!i){if(a=l||f?{}:OJ(e),!s)return l?xJ(e,pJ(a,e)):bJ(e,gJ(a,e))}else{if(!ht[d])return i?e:{};a=EJ(e,d,s)}}o||(o=new fJ);var h=o.get(e);if(h)return h;o.set(e,a),jJ(e)?e.forEach(function(v){a.add(ff(v,t,n,v,e,o))}):AJ(e)&&e.forEach(function(v,b){a.set(b,ff(v,t,n,b,e,o))});var g=c?l?SJ:_J:l?MJ:PJ,p=u?void 0:g(e);return hJ(p||e,function(v,b){p&&(b=v,v=e[b]),mJ(a,b,ff(v,t,n,b,e,o))}),a}var aQ=ff,sQ=aQ,lQ=1,cQ=4;function uQ(e){return sQ(e,lQ|cQ)}var dQ=uQ;const bC=Fe(dQ);var fQ=od,hQ=Vo;function mQ(e,t,n){(n!==void 0&&!hQ(e[t],n)||n===void 0&&!(t in e))&&fQ(e,t,n)}var xC=mQ,gQ=Ro,pQ=Or;function yQ(e){return pQ(e)&&gQ(e)}var vQ=yQ;function bQ(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var _C=bQ,xQ=ql,_Q=Ya;function SQ(e){return xQ(e,_Q(e))}var wQ=SQ,SC=xC,CQ=rC,EQ=cC,OQ=iC,kQ=dC,wC=al,CC=yn,TQ=vQ,AQ=sl,DQ=Mm,jQ=Tn,PQ=Kx,MQ=Iu,EC=_C,$Q=wQ;function IQ(e,t,n,r,i,o,a){var s=EC(e,n),l=EC(t,n),c=a.get(l);if(c){SC(e,n,c);return}var u=o?o(s,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var f=CC(l),h=!f&&AQ(l),g=!f&&!h&&MQ(l);u=l,f||h||g?CC(s)?u=s:TQ(s)?u=OQ(s):h?(d=!1,u=CQ(l,!0)):g?(d=!1,u=EQ(l,!0)):u=[]:PQ(l)||wC(l)?(u=s,wC(s)?u=$Q(s):(!jQ(s)||DQ(s))&&(u=kQ(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),SC(e,n,u)}var LQ=IQ,FQ=Hu,NQ=xC,BQ=Vx,WQ=LQ,zQ=Tn,RQ=Ya,VQ=_C;function OC(e,t,n,r,i){e!==t&&BQ(t,function(o,a){if(i||(i=new FQ),zQ(o))WQ(e,t,a,n,OC,r,i);else{var s=r?r(VQ(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),NQ(e,a,s)}},RQ)}var UQ=OC,HQ=Rm,GQ=Vm;function qQ(e){return HQ(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&GQ(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}var YQ=qQ,KQ=UQ,ZQ=YQ,XQ=ZQ(function(e,t,n){KQ(e,t,n)}),JQ=XQ;const _s=Fe(JQ),_t={blue:"blue",cyan:"cyan",default:"blue",gold:"gold",gray:"gray",green:"green",multi:"multi",multiOrdered:"multi-ordered",multiUnordered:"multi-unordered",orange:"orange",purple:"purple",skeleton:"skeleton"},QQ={name:"--pf-v5-chart-axis--grid--stroke--Color",value:"#d2d2d2",var:"var(--pf-v5-chart-axis--grid--stroke--Color, #d2d2d2)"},kC={name:"--pf-v5-chart-axis--tick--stroke--Color",value:"#d2d2d2",var:"var(--pf-v5-chart-axis--tick--stroke--Color, #d2d2d2)"},TC={name:"--pf-v5-chart-global--FontFamily",value:'"RedHatText", helvetica, arial, sans-serif',var:'var(--pf-v5-chart-global--FontFamily, "RedHatText", helvetica, arial, sans-serif)'},AC={name:"--pf-v5-chart-global--letter-spacing",value:"normal",var:"var(--pf-v5-chart-global--letter-spacing, normal)"},np={name:"--pf-v5-chart-global--FontSize--sm",value:14,var:"var(--pf-v5-chart-global--FontSize--sm, 14)"},eee={name:"--pf-v5-chart-global--label--Padding",value:10,var:"var(--pf-v5-chart-global--label--Padding, 10)"},tee={name:"--pf-v5-chart-global--label--stroke",value:"transparent",var:"var(--pf-v5-chart-global--label--stroke, transparent)"},nee={name:"--pf-v5-chart-global--label--text-anchor",value:"middle",var:"var(--pf-v5-chart-global--label--text-anchor, middle)"},DC={name:"--pf-v5-chart-global--label--Fill",value:"#151515",var:"var(--pf-v5-chart-global--label--Fill, #151515)"},jC={name:"--pf-v5-chart-global--layout--Padding",value:50,var:"var(--pf-v5-chart-global--layout--Padding, 50)"},ree={name:"--pf-v5-chart-global--layout--Height",value:300,var:"var(--pf-v5-chart-global--layout--Height, 300)"},iee={name:"--pf-v5-chart-global--layout--Width",value:450,var:"var(--pf-v5-chart-global--layout--Width, 450)"},oee={name:"--pf-v5-chart-global--stroke-line-cap",value:"round",var:"var(--pf-v5-chart-global--stroke-line-cap, round)"},aee={name:"--pf-v5-chart-global--stroke-line-join",value:"round",var:"var(--pf-v5-chart-global--stroke-line-join, round)"},see={name:"--pf-v5-chart-area--data--Fill",value:"#151515",var:"var(--pf-v5-chart-area--data--Fill, #151515)"},lee={name:"--pf-v5-chart-area--Opacity",value:.3,var:"var(--pf-v5-chart-area--Opacity, 0.3)"},cee={name:"--pf-v5-chart-area--stroke--Width",value:2,var:"var(--pf-v5-chart-area--stroke--Width, 2)"},uee={name:"--pf-v5-chart-axis--axis--stroke--Width",value:1,var:"var(--pf-v5-chart-axis--axis--stroke--Width, 1)"},dee={name:"--pf-v5-chart-axis--axis--stroke--Color",value:"#d2d2d2",var:"var(--pf-v5-chart-axis--axis--stroke--Color, #d2d2d2)"},fee={name:"--pf-v5-chart-axis--axis--Fill",value:"transparent",var:"var(--pf-v5-chart-axis--axis--Fill, transparent)"},hee={name:"--pf-v5-chart-axis--axis-label--Padding",value:40,var:"var(--pf-v5-chart-axis--axis-label--Padding, 40)"},mee={name:"--pf-v5-chart-axis--axis-label--stroke--Color",value:"transparent",var:"var(--pf-v5-chart-axis--axis-label--stroke--Color, transparent)"},gee={name:"--pf-v5-chart-axis--grid--Fill",value:"none",var:"var(--pf-v5-chart-axis--grid--Fill, none)"},pee={name:"--pf-v5-chart-axis--grid--PointerEvents",value:"painted",var:"var(--pf-v5-chart-axis--grid--PointerEvents, painted)"},yee={name:"--pf-v5-chart-axis--tick--Fill",value:"transparent",var:"var(--pf-v5-chart-axis--tick--Fill, transparent)"},vee={name:"--pf-v5-chart-axis--tick--Size",value:5,var:"var(--pf-v5-chart-axis--tick--Size, 5)"},bee={name:"--pf-v5-chart-axis--tick--Width",value:1,var:"var(--pf-v5-chart-axis--tick--Width, 1)"},xee={name:"--pf-v5-chart-axis--tick-label--Fill",value:"#4f5255",var:"var(--pf-v5-chart-axis--tick-label--Fill, #4f5255)"},_ee={name:"--pf-v5-chart-bar--Width",value:10,var:"var(--pf-v5-chart-bar--Width, 10)"},See={name:"--pf-v5-chart-bar--data--stroke",value:"none",var:"var(--pf-v5-chart-bar--data--stroke, none)"},wee={name:"--pf-v5-chart-bar--data--Fill",value:"#151515",var:"var(--pf-v5-chart-bar--data--Fill, #151515)"},Cee={name:"--pf-v5-chart-bar--data--Padding",value:8,var:"var(--pf-v5-chart-bar--data--Padding, 8)"},Eee={name:"--pf-v5-chart-bar--data-stroke--Width",value:0,var:"var(--pf-v5-chart-bar--data-stroke--Width, 0)"},Oee={name:"--pf-v5-chart-boxplot--max--Padding",value:8,var:"var(--pf-v5-chart-boxplot--max--Padding, 8)"},kee={name:"--pf-v5-chart-boxplot--max--stroke--Color",value:"#151515",var:"var(--pf-v5-chart-boxplot--max--stroke--Color, #151515)"},Tee={name:"--pf-v5-chart-boxplot--max--stroke--Width",value:1,var:"var(--pf-v5-chart-boxplot--max--stroke--Width, 1)"},Aee={name:"--pf-v5-chart-boxplot--median--Padding",value:8,var:"var(--pf-v5-chart-boxplot--median--Padding, 8)"},Dee={name:"--pf-v5-chart-boxplot--median--stroke--Color",value:"#151515",var:"var(--pf-v5-chart-boxplot--median--stroke--Color, #151515)"},jee={name:"--pf-v5-chart-boxplot--median--stroke--Width",value:1,var:"var(--pf-v5-chart-boxplot--median--stroke--Width, 1)"},Pee={name:"--pf-v5-chart-boxplot--min--Padding",value:8,var:"var(--pf-v5-chart-boxplot--min--Padding, 8)"},Mee={name:"--pf-v5-chart-boxplot--min--stroke--Width",value:1,var:"var(--pf-v5-chart-boxplot--min--stroke--Width, 1)"},$ee={name:"--pf-v5-chart-boxplot--min--stroke--Color",value:"#151515",var:"var(--pf-v5-chart-boxplot--min--stroke--Color, #151515)"},Iee={name:"--pf-v5-chart-boxplot--lower-quartile--Padding",value:8,var:"var(--pf-v5-chart-boxplot--lower-quartile--Padding, 8)"},Lee={name:"--pf-v5-chart-boxplot--lower-quartile--Fill",value:"#8a8d90",var:"var(--pf-v5-chart-boxplot--lower-quartile--Fill, #8a8d90)"},Fee={name:"--pf-v5-chart-boxplot--upper-quartile--Padding",value:8,var:"var(--pf-v5-chart-boxplot--upper-quartile--Padding, 8)"},Nee={name:"--pf-v5-chart-boxplot--upper-quartile--Fill",value:"#8a8d90",var:"var(--pf-v5-chart-boxplot--upper-quartile--Fill, #8a8d90)"},Bee={name:"--pf-v5-chart-boxplot--box--Width",value:20,var:"var(--pf-v5-chart-boxplot--box--Width, 20)"},Wee={name:"--pf-v5-chart-candelstick--data--stroke--Width",value:1,var:"var(--pf-v5-chart-candelstick--data--stroke--Width, 1)"},zee={name:"--pf-v5-chart-candelstick--data--stroke--Color",value:"#151515",var:"var(--pf-v5-chart-candelstick--data--stroke--Color, #151515)"},Ree={name:"--pf-v5-chart-candelstick--candle--positive--Color",value:"#fff",var:"var(--pf-v5-chart-candelstick--candle--positive--Color, #fff)"},Vee={name:"--pf-v5-chart-candelstick--candle--negative--Color",value:"#151515",var:"var(--pf-v5-chart-candelstick--candle--negative--Color, #151515)"},Uee={name:"--pf-v5-chart-errorbar--BorderWidth",value:8,var:"var(--pf-v5-chart-errorbar--BorderWidth, 8)"},Hee={name:"--pf-v5-chart-errorbar--data--Fill",value:"transparent",var:"var(--pf-v5-chart-errorbar--data--Fill, transparent)"},Gee={name:"--pf-v5-chart-errorbar--data--Opacity",value:1,var:"var(--pf-v5-chart-errorbar--data--Opacity, 1)"},qee={name:"--pf-v5-chart-errorbar--data-stroke--Width",value:2,var:"var(--pf-v5-chart-errorbar--data-stroke--Width, 2)"},Yee={name:"--pf-v5-chart-errorbar--data-stroke--Color",value:"#151515",var:"var(--pf-v5-chart-errorbar--data-stroke--Color, #151515)"},Kee={name:"--pf-v5-chart-legend--gutter--Width",value:20,var:"var(--pf-v5-chart-legend--gutter--Width, 20)"},Zee={name:"--pf-v5-chart-legend--orientation",value:"horizontal",var:"var(--pf-v5-chart-legend--orientation, horizontal)"},Xee={name:"--pf-v5-chart-legend--title--orientation",value:"top",var:"var(--pf-v5-chart-legend--title--orientation, top)"},Jee={name:"--pf-v5-chart-legend--data--type",value:"square",var:"var(--pf-v5-chart-legend--data--type, square)"},Qee={name:"--pf-v5-chart-legend--title--Padding",value:2,var:"var(--pf-v5-chart-legend--title--Padding, 2)"},ete={name:"--pf-v5-chart-line--data--Fill",value:"transparent",var:"var(--pf-v5-chart-line--data--Fill, transparent)"},tte={name:"--pf-v5-chart-line--data--Opacity",value:1,var:"var(--pf-v5-chart-line--data--Opacity, 1)"},nte={name:"--pf-v5-chart-line--data--stroke--Width",value:2,var:"var(--pf-v5-chart-line--data--stroke--Width, 2)"},rte={name:"--pf-v5-chart-line--data--stroke--Color",value:"#151515",var:"var(--pf-v5-chart-line--data--stroke--Color, #151515)"},ite={name:"--pf-v5-chart-pie--Padding",value:20,var:"var(--pf-v5-chart-pie--Padding, 20)"},ote={name:"--pf-v5-chart-pie--data--Padding",value:8,var:"var(--pf-v5-chart-pie--data--Padding, 8)"},ate={name:"--pf-v5-chart-pie--data--stroke--Width",value:1,var:"var(--pf-v5-chart-pie--data--stroke--Width, 1)"},ste={name:"--pf-v5-chart-pie--data--stroke--Color",value:"transparent",var:"var(--pf-v5-chart-pie--data--stroke--Color, transparent)"},lte={name:"--pf-v5-chart-pie--labels--Padding",value:8,var:"var(--pf-v5-chart-pie--labels--Padding, 8)"},cte={name:"--pf-v5-chart-pie--Height",value:230,var:"var(--pf-v5-chart-pie--Height, 230)"},ute={name:"--pf-v5-chart-pie--Width",value:230,var:"var(--pf-v5-chart-pie--Width, 230)"},dte={name:"--pf-v5-chart-scatter--data--stroke--Color",value:"transparent",var:"var(--pf-v5-chart-scatter--data--stroke--Color, transparent)"},fte={name:"--pf-v5-chart-scatter--data--stroke--Width",value:0,var:"var(--pf-v5-chart-scatter--data--stroke--Width, 0)"},hte={name:"--pf-v5-chart-scatter--data--Opacity",value:1,var:"var(--pf-v5-chart-scatter--data--Opacity, 1)"},mte={name:"--pf-v5-chart-scatter--data--Fill",value:"#151515",var:"var(--pf-v5-chart-scatter--data--Fill, #151515)"},gte={name:"--pf-v5-chart-stack--data--stroke--Width",value:1,var:"var(--pf-v5-chart-stack--data--stroke--Width, 1)"},pte={name:"--pf-v5-chart-tooltip--corner-radius",value:0,var:"var(--pf-v5-chart-tooltip--corner-radius, 0)"},yte={name:"--pf-v5-chart-tooltip--pointer-length",value:10,var:"var(--pf-v5-chart-tooltip--pointer-length, 10)"},vte={name:"--pf-v5-chart-tooltip--Fill",value:"#f0f0f0",var:"var(--pf-v5-chart-tooltip--Fill, #f0f0f0)"},bte={name:"--pf-v5-chart-tooltip--flyoutStyle--corner-radius",value:0,var:"var(--pf-v5-chart-tooltip--flyoutStyle--corner-radius, 0)"},xte={name:"--pf-v5-chart-tooltip--flyoutStyle--stroke--Width",value:0,var:"var(--pf-v5-chart-tooltip--flyoutStyle--stroke--Width, 0)"},_te={name:"--pf-v5-chart-tooltip--flyoutStyle--PointerEvents",value:"none",var:"var(--pf-v5-chart-tooltip--flyoutStyle--PointerEvents, none)"},Ste={name:"--pf-v5-chart-tooltip--flyoutStyle--stroke--Color",value:"#151515",var:"var(--pf-v5-chart-tooltip--flyoutStyle--stroke--Color, #151515)"},wte={name:"--pf-v5-chart-tooltip--flyoutStyle--Fill",value:"#151515",var:"var(--pf-v5-chart-tooltip--flyoutStyle--Fill, #151515)"},Cte={name:"--pf-v5-chart-tooltip--pointer--Width",value:20,var:"var(--pf-v5-chart-tooltip--pointer--Width, 20)"},Ete={name:"--pf-v5-chart-tooltip--Padding",value:8,var:"var(--pf-v5-chart-tooltip--Padding, 8)"},Ote={name:"--pf-v5-chart-tooltip--PointerEvents",value:"none",var:"var(--pf-v5-chart-tooltip--PointerEvents, none)"},kte={name:"--pf-v5-chart-voronoi--data--Fill",value:"transparent",var:"var(--pf-v5-chart-voronoi--data--Fill, transparent)"},Tte={name:"--pf-v5-chart-voronoi--data--stroke--Color",value:"transparent",var:"var(--pf-v5-chart-voronoi--data--stroke--Color, transparent)"},Ate={name:"--pf-v5-chart-voronoi--data--stroke--Width",value:0,var:"var(--pf-v5-chart-voronoi--data--stroke--Width, 0)"},PC={name:"--pf-v5-chart-voronoi--labels--Fill",value:"#f0f0f0",var:"var(--pf-v5-chart-voronoi--labels--Fill, #f0f0f0)"},Dte={name:"--pf-v5-chart-voronoi--labels--Padding",value:8,var:"var(--pf-v5-chart-voronoi--labels--Padding, 8)"},jte={name:"--pf-v5-chart-voronoi--labels--PointerEvents",value:"none",var:"var(--pf-v5-chart-voronoi--labels--PointerEvents, none)"},Pte={name:"--pf-v5-chart-voronoi--flyout--stroke--Width",value:1,var:"var(--pf-v5-chart-voronoi--flyout--stroke--Width, 1)"},Mte={name:"--pf-v5-chart-voronoi--flyout--PointerEvents",value:"none",var:"var(--pf-v5-chart-voronoi--flyout--PointerEvents, none)"},$te={name:"--pf-v5-chart-voronoi--flyout--stroke--Color",value:"#151515",var:"var(--pf-v5-chart-voronoi--flyout--stroke--Color, #151515)"},Ite={name:"--pf-v5-chart-voronoi--flyout--stroke--Fill",value:"#151515",var:"var(--pf-v5-chart-voronoi--flyout--stroke--Fill, #151515)"},Lte={name:"--pf-v5-chart-donut--pie--Height",value:230,var:"var(--pf-v5-chart-donut--pie--Height, 230)"},Fte={name:"--pf-v5-chart-donut--pie--angle--Padding",value:1,var:"var(--pf-v5-chart-donut--pie--angle--Padding, 1)"},Nte={name:"--pf-v5-chart-donut--pie--Padding",value:20,var:"var(--pf-v5-chart-donut--pie--Padding, 20)"},Bte={name:"--pf-v5-chart-donut--pie--Width",value:230,var:"var(--pf-v5-chart-donut--pie--Width, 230)"},Wte={name:"--pf-v5-chart-donut--threshold--dynamic--pie--Height",value:202,var:"var(--pf-v5-chart-donut--threshold--dynamic--pie--Height, 202)"},zte={name:"--pf-v5-chart-donut--threshold--dynamic--pie--Padding",value:20,var:"var(--pf-v5-chart-donut--threshold--dynamic--pie--Padding, 20)"},Rte={name:"--pf-v5-chart-donut--threshold--dynamic--pie--Width",value:202,var:"var(--pf-v5-chart-donut--threshold--dynamic--pie--Width, 202)"},Vte={name:"--pf-v5-chart-donut--threshold--static--pie--Height",value:230,var:"var(--pf-v5-chart-donut--threshold--static--pie--Height, 230)"},Ute={name:"--pf-v5-chart-donut--threshold--static--pie--angle--Padding",value:1,var:"var(--pf-v5-chart-donut--threshold--static--pie--angle--Padding, 1)"},Hte={name:"--pf-v5-chart-donut--threshold--static--pie--Padding",value:20,var:"var(--pf-v5-chart-donut--threshold--static--pie--Padding, 20)"},Gte={name:"--pf-v5-chart-donut--threshold--static--pie--Width",value:230,var:"var(--pf-v5-chart-donut--threshold--static--pie--Width, 230)"},qte={name:"--pf-v5-chart-donut--utilization--dynamic--pie--Height",value:230,var:"var(--pf-v5-chart-donut--utilization--dynamic--pie--Height, 230)"},Yte={name:"--pf-v5-chart-donut--utilization--dynamic--pie--Padding",value:20,var:"var(--pf-v5-chart-donut--utilization--dynamic--pie--Padding, 20)"},Kte={name:"--pf-v5-chart-donut--utilization--dynamic--pie--angle--Padding",value:1,var:"var(--pf-v5-chart-donut--utilization--dynamic--pie--angle--Padding, 1)"},Zte={name:"--pf-v5-chart-donut--utilization--dynamic--pie--Width",value:230,var:"var(--pf-v5-chart-donut--utilization--dynamic--pie--Width, 230)"},Xte={name:"--pf-v5-chart-threshold--stroke-dash-array",value:"4,2",var:"var(--pf-v5-chart-threshold--stroke-dash-array, 4,2)"},Jte={name:"--pf-v5-chart-threshold--stroke--Width",value:1.5,var:"var(--pf-v5-chart-threshold--stroke--Width, 1.5)"},Hr={name:"--pf-v5-chart-bullet--Height",value:140,var:"var(--pf-v5-chart-bullet--Height, 140)"},Qte={name:"--pf-v5-chart-bullet--comparative-measure--error--stroke--Width",value:2,var:"var(--pf-v5-chart-bullet--comparative-measure--error--stroke--Width, 2)"},ene={name:"--pf-v5-chart-bullet--comparative-measure--stroke--Width",value:1,var:"var(--pf-v5-chart-bullet--comparative-measure--stroke--Width, 1)"},tne={name:"--pf-v5-chart-bullet--comparative-measure--warning--stroke--Width",value:2,var:"var(--pf-v5-chart-bullet--comparative-measure--warning--stroke--Width, 2)"},nne={name:"--pf-v5-chart-bullet--group-title--divider--stroke--Width",value:2,var:"var(--pf-v5-chart-bullet--group-title--divider--stroke--Width, 2)"},rne=TC.value.replace(/ /g,""),ine=AC.value,MC=np.value,Dr={fontFamily:rne,fontSize:MC,letterSpacing:ine,padding:eee.value,stroke:tee.var,fill:DC.var},sa=Object.assign(Object.assign({},Dr),{textAnchor:nee.value}),lr={padding:jC.value,height:ree.value,width:iee.value},rp=oee.value,ip=aee.value,one={area:Object.assign(Object.assign({},lr),{style:{data:{fill:see.var,fillOpacity:lee.value,strokeWidth:cee.value},labels:sa}}),axis:Object.assign(Object.assign({},lr),{style:{axis:{fill:fee.var,strokeWidth:uee.value,stroke:dee.var,strokeLinecap:rp,strokeLinejoin:ip},axisLabel:Object.assign(Object.assign({},sa),{padding:hee.value,stroke:mee.var}),grid:{fill:gee.var,stroke:"transparent",pointerEvents:pee.value,strokeLinecap:rp,strokeLinejoin:ip},ticks:{fill:yee.var,size:vee.value,stroke:kC.var,strokeLinecap:rp,strokeLinejoin:ip,strokeWidth:bee.value},tickLabels:Object.assign(Object.assign({},Dr),{fill:xee.var})}}),bar:Object.assign(Object.assign({},lr),{barWidth:_ee.value,style:{data:{fill:wee.var,padding:Cee.value,stroke:See.var,strokeWidth:Eee.value},labels:Dr}}),boxplot:Object.assign(Object.assign({},lr),{style:{max:{padding:Oee.value,stroke:kee.var,strokeWidth:Tee.value},maxLabels:Dr,median:{padding:Aee.value,stroke:Dee.var,strokeWidth:jee.value},medianLabels:Dr,min:{padding:Pee.value,stroke:$ee.var,strokeWidth:Mee.value},minLabels:Dr,q1:{fill:Lee.var,padding:Iee.value},q1Labels:Dr,q3:{fill:Nee.var,padding:Fee.value},q3Labels:Dr},boxWidth:Bee.value}),candlestick:Object.assign(Object.assign({},lr),{candleColors:{positive:Ree.var,negative:Vee.var},style:{data:{stroke:zee.var,strokeWidth:Wee.value},labels:sa}}),chart:Object.assign({},lr),errorbar:Object.assign(Object.assign({},lr),{borderWidth:Uee.value,style:{data:{fill:Hee.var,opacity:Gee.value,stroke:Yee.var,strokeWidth:qee.value},labels:sa}}),group:Object.assign({},lr),legend:{gutter:Kee.value,orientation:Zee.value,titleOrientation:Xee.value,style:{data:{type:Jee.value},labels:Dr,title:Object.assign(Object.assign({},Dr),{fontSize:MC,padding:Qee.value})}},line:Object.assign(Object.assign({},lr),{style:{data:{fill:ete.var,opacity:tte.value,stroke:rte.var,strokeWidth:nte.value},labels:sa}}),pie:{padding:ite.value,style:{data:{padding:ote.value,stroke:ste.var,strokeWidth:ate.value},labels:Object.assign(Object.assign({},Dr),{padding:lte.value})},height:cte.value,width:ute.value},scatter:Object.assign(Object.assign({},lr),{style:{data:{fill:mte.var,opacity:hte.value,stroke:dte.var,strokeWidth:fte.value},labels:sa}}),stack:Object.assign(Object.assign({},lr),{style:{data:{strokeWidth:gte.value}}}),tooltip:{cornerRadius:pte.value,flyoutPadding:Ete.value,flyoutStyle:{cornerRadius:bte.value,fill:wte.var,pointerEvents:_te.var,stroke:Ste.var,strokeWidth:xte.var},pointerLength:yte.value,pointerWidth:Cte.value,style:{fill:vte.var,pointerEvents:Ote.var}},voronoi:Object.assign(Object.assign({},lr),{style:{data:{fill:kte.var,stroke:Tte.var,strokeWidth:Ate.value},labels:Object.assign(Object.assign({},sa),{fill:PC.var,padding:Dte.value,pointerEvents:jte.value}),flyout:{fill:Ite.var,pointerEvents:Mte.var,stroke:$te.var,strokeWidth:Pte.var}}})},ane={axis:{},bullet:{chart:{height:Hr.value}},bulletComparativeErrorMeasure:{bar:{height:Hr.value,style:{data:{strokeWidth:Qte.value}}}},bulletComparativeMeasure:{bar:{height:Hr.value,style:{data:{strokeWidth:ene.value}}}},bulletComparativeWarningMeasure:{bar:{height:Hr.value,style:{data:{strokeWidth:tne.value}}}},bulletGroupTitle:{chart:{padding:{bottom:0,left:0,right:0,top:jC.value}},line:{style:{data:{strokeWidth:nne.value}}}},bulletPrimaryDotMeasure:{group:{height:Hr.value}},bulletPrimaryNegativeMeasure:{group:{height:Hr.value}},bulletPrimarySegmentedMeasure:{group:{height:Hr.value}},bulletQualitativeRange:{group:{height:Hr.value}},donut:{pie:{height:Lte.value,padding:Nte.value,padAngle:Fte.value,width:Bte.value}},donutThresholdDynamic:{pie:{height:Wte.value,padding:zte.value,width:Rte.value}},donutThresholdStatic:{pie:{height:Vte.value,padAngle:Ute.value,padding:Hte.value,width:Gte.value}},donutUtilization:{pie:{height:qte.value,padding:Yte.value,padAngle:Kte.value,width:Zte.value}},threshold:{line:{style:{data:{strokeDasharray:Xte.value,strokeWidth:Jte.value}}}}},sne={name:"--pf-v5-chart-bullet--comparative-measure--Fill--Color",value:"#4f5255",var:"var(--pf-v5-chart-bullet--comparative-measure--Fill--Color, #4f5255)"},lne={name:"--pf-v5-chart-bullet--comparative-measure--stroke--Color",value:"#4f5255",var:"var(--pf-v5-chart-bullet--comparative-measure--stroke--Color, #4f5255)"},cne={name:"--pf-v5-chart-bullet--comparative-measure--error--Fill--Color",value:"#c9190b",var:"var(--pf-v5-chart-bullet--comparative-measure--error--Fill--Color, #c9190b)"},une={name:"--pf-v5-chart-bullet--comparative-measure--error--stroke--Color",value:"#c9190b",var:"var(--pf-v5-chart-bullet--comparative-measure--error--stroke--Color, #c9190b)"},dne={name:"--pf-v5-chart-bullet--comparative-measure--warning--Fill--Color",value:"#ec7a08",var:"var(--pf-v5-chart-bullet--comparative-measure--warning--Fill--Color, #ec7a08)"},fne={name:"--pf-v5-chart-bullet--comparative-measure--warning--stroke--Color",value:"#ec7a08",var:"var(--pf-v5-chart-bullet--comparative-measure--warning--stroke--Color, #ec7a08)"},hne={name:"--pf-v5-chart-bullet--group-title--divider--Fill--Color",value:"#f0f0f0",var:"var(--pf-v5-chart-bullet--group-title--divider--Fill--Color, #f0f0f0)"},mne={name:"--pf-v5-chart-bullet--group-title--divider--stroke--Color",value:"#f0f0f0",var:"var(--pf-v5-chart-bullet--group-title--divider--stroke--Color, #f0f0f0)"},$C={name:"--pf-v5-chart-bullet--qualitative-range--ColorScale--100",value:"#f0f0f0",var:"var(--pf-v5-chart-bullet--qualitative-range--ColorScale--100, #f0f0f0)"},IC={name:"--pf-v5-chart-bullet--qualitative-range--ColorScale--200",value:"#d2d2d2",var:"var(--pf-v5-chart-bullet--qualitative-range--ColorScale--200, #d2d2d2)"},LC={name:"--pf-v5-chart-bullet--qualitative-range--ColorScale--300",value:"#b8bbbe",var:"var(--pf-v5-chart-bullet--qualitative-range--ColorScale--300, #b8bbbe)"},FC={name:"--pf-v5-chart-bullet--qualitative-range--ColorScale--400",value:"#8a8d90",var:"var(--pf-v5-chart-bullet--qualitative-range--ColorScale--400, #8a8d90)"},NC={name:"--pf-v5-chart-bullet--qualitative-range--ColorScale--500",value:"#6a6e73",var:"var(--pf-v5-chart-bullet--qualitative-range--ColorScale--500, #6a6e73)"},gne={name:"--pf-v5-chart-bullet--negative-measure--ColorScale--100",value:"#c9190b",var:"var(--pf-v5-chart-bullet--negative-measure--ColorScale--100, #c9190b)"},pne={name:"--pf-v5-chart-bullet--negative-measure--ColorScale--200",value:"#a30000",var:"var(--pf-v5-chart-bullet--negative-measure--ColorScale--200, #a30000)"},yne={name:"--pf-v5-chart-bullet--negative-measure--ColorScale--300",value:"#7d1007",var:"var(--pf-v5-chart-bullet--negative-measure--ColorScale--300, #7d1007)"},vne={name:"--pf-v5-chart-bullet--negative-measure--ColorScale--400",value:"#470000",var:"var(--pf-v5-chart-bullet--negative-measure--ColorScale--400, #470000)"},bne={name:"--pf-v5-chart-bullet--negative-measure--ColorScale--500",value:"#2c0000",var:"var(--pf-v5-chart-bullet--negative-measure--ColorScale--500, #2c0000)"},hf={name:"--pf-v5-chart-donut--threshold--first--Color",value:"#f0f0f0",var:"var(--pf-v5-chart-donut--threshold--first--Color, #f0f0f0)"},mf={name:"--pf-v5-chart-donut--threshold--second--Color",value:"#d2d2d2",var:"var(--pf-v5-chart-donut--threshold--second--Color, #d2d2d2)"},gf={name:"--pf-v5-chart-donut--threshold--third--Color",value:"#b8bbbe",var:"var(--pf-v5-chart-donut--threshold--third--Color, #b8bbbe)"},xne=one,_ne=ane,Sne={name:"--pf-v5-chart-theme--blue--ColorScale--100",value:"#06c",var:"var(--pf-v5-chart-theme--blue--ColorScale--100, #06c)"},wne={name:"--pf-v5-chart-theme--blue--ColorScale--200",value:"#8bc1f7",var:"var(--pf-v5-chart-theme--blue--ColorScale--200, #8bc1f7)"},Cne={name:"--pf-v5-chart-theme--blue--ColorScale--300",value:"#002f5d",var:"var(--pf-v5-chart-theme--blue--ColorScale--300, #002f5d)"},Ene={name:"--pf-v5-chart-theme--blue--ColorScale--400",value:"#519de9",var:"var(--pf-v5-chart-theme--blue--ColorScale--400, #519de9)"},One={name:"--pf-v5-chart-theme--blue--ColorScale--500",value:"#004b95",var:"var(--pf-v5-chart-theme--blue--ColorScale--500, #004b95)"},ki=e=>{const{COLOR_SCALE:t}=e;return{area:{colorScale:t,style:{data:{fill:t[0]}}},axis:{colorScale:t},bar:{colorScale:t,style:{data:{fill:t[0]}}},boxplot:{colorScale:t,style:{q1:{fill:t[0]},q3:{fill:t[0]}}},candlestick:{colorScale:t},chart:{colorScale:t},errorbar:{colorScale:t},group:{colorScale:t},legend:{colorScale:t},line:{colorScale:t,style:{data:{stroke:t[0]}}},pie:{colorScale:t},scatter:{colorScale:t},stack:{colorScale:t},voronoi:{colorScale:t}}},Ti=e=>{const{COLOR_SCALE:t}=e;return{axis:{axis:{style:{grid:{stroke:QQ.var},ticks:{stroke:kC.var}}}},bullet:{},bulletComparativeErrorMeasure:{bar:{style:{data:{fill:cne.var,stroke:une.var}}}},bulletComparativeMeasure:{bar:{height:Hr.value,style:{data:{fill:sne.var,stroke:lne.var}}}},bulletComparativeWarningMeasure:{bar:{height:Hr.value,style:{data:{fill:dne.var,stroke:fne.var}}}},bulletGroupTitle:{line:{style:{data:{fill:hne.var,stroke:mne.var}}}},bulletPrimaryDotMeasure:{},bulletPrimarySegmentedMeasure:{},bulletQualitativeRange:{group:{colorScale:[$C.var,IC.var,LC.var,FC.var,NC.var]}},bulletPrimaryNegativeMeasure:{group:{colorScale:[gne.var,pne.var,yne.var,vne.var,bne.var]}},donut:{},donutThresholdDynamic:{legend:{colorScale:[t[0],mf.var,gf.var]},pie:{colorScale:[t[0],hf.var,mf.var,gf.var]}},donutThresholdStatic:{pie:{colorScale:[hf.var,mf.var,gf.var]}},donutUtilization:{legend:{colorScale:[t[0],hf.var,mf.var,gf.var]},pie:{colorScale:[t[0],hf.var]}},label:{},threshold:{}}},BC=[Sne.var,wne.var,Cne.var,Ene.var,One.var],WC=ki({COLOR_SCALE:BC}),zC=Ti({COLOR_SCALE:BC}),kne={name:"--pf-v5-chart-theme--cyan--ColorScale--100",value:"#009596",var:"var(--pf-v5-chart-theme--cyan--ColorScale--100, #009596)"},Tne={name:"--pf-v5-chart-theme--cyan--ColorScale--200",value:"#a2d9d9",var:"var(--pf-v5-chart-theme--cyan--ColorScale--200, #a2d9d9)"},Ane={name:"--pf-v5-chart-theme--cyan--ColorScale--300",value:"#003737",var:"var(--pf-v5-chart-theme--cyan--ColorScale--300, #003737)"},Dne={name:"--pf-v5-chart-theme--cyan--ColorScale--400",value:"#73c5c5",var:"var(--pf-v5-chart-theme--cyan--ColorScale--400, #73c5c5)"},jne={name:"--pf-v5-chart-theme--cyan--ColorScale--500",value:"#005f60",var:"var(--pf-v5-chart-theme--cyan--ColorScale--500, #005f60)"},RC=[kne.var,Tne.var,Ane.var,Dne.var,jne.var],Pne=ki({COLOR_SCALE:RC}),Mne=Ti({COLOR_SCALE:RC}),$ne={name:"--pf-v5-chart-theme--gold--ColorScale--100",value:"#f4c145",var:"var(--pf-v5-chart-theme--gold--ColorScale--100, #f4c145)"},Ine={name:"--pf-v5-chart-theme--gold--ColorScale--200",value:"#f9e0a2",var:"var(--pf-v5-chart-theme--gold--ColorScale--200, #f9e0a2)"},Lne={name:"--pf-v5-chart-theme--gold--ColorScale--300",value:"#c58c00",var:"var(--pf-v5-chart-theme--gold--ColorScale--300, #c58c00)"},Fne={name:"--pf-v5-chart-theme--gold--ColorScale--400",value:"#f6d173",var:"var(--pf-v5-chart-theme--gold--ColorScale--400, #f6d173)"},Nne={name:"--pf-v5-chart-theme--gold--ColorScale--500",value:"#f0ab00",var:"var(--pf-v5-chart-theme--gold--ColorScale--500, #f0ab00)"},VC=[$ne.var,Ine.var,Lne.var,Fne.var,Nne.var],Bne=ki({COLOR_SCALE:VC}),Wne=Ti({COLOR_SCALE:VC}),zne={name:"--pf-v5-chart-theme--gray--ColorScale--100",value:"#b8bbbe",var:"var(--pf-v5-chart-theme--gray--ColorScale--100, #b8bbbe)"},Rne={name:"--pf-v5-chart-theme--gray--ColorScale--200",value:"#f0f0f0",var:"var(--pf-v5-chart-theme--gray--ColorScale--200, #f0f0f0)"},Vne={name:"--pf-v5-chart-theme--gray--ColorScale--300",value:"#6a6e73",var:"var(--pf-v5-chart-theme--gray--ColorScale--300, #6a6e73)"},Une={name:"--pf-v5-chart-theme--gray--ColorScale--400",value:"#d2d2d2",var:"var(--pf-v5-chart-theme--gray--ColorScale--400, #d2d2d2)"},Hne={name:"--pf-v5-chart-theme--gray--ColorScale--500",value:"#8a8d90",var:"var(--pf-v5-chart-theme--gray--ColorScale--500, #8a8d90)"},UC=[zne.var,Rne.var,Vne.var,Une.var,Hne.var],Gne=ki({COLOR_SCALE:UC}),qne=Ti({COLOR_SCALE:UC}),Yne={name:"--pf-v5-chart-theme--green--ColorScale--100",value:"#4cb140",var:"var(--pf-v5-chart-theme--green--ColorScale--100, #4cb140)"},Kne={name:"--pf-v5-chart-theme--green--ColorScale--200",value:"#bde2b9",var:"var(--pf-v5-chart-theme--green--ColorScale--200, #bde2b9)"},Zne={name:"--pf-v5-chart-theme--green--ColorScale--300",value:"#23511e",var:"var(--pf-v5-chart-theme--green--ColorScale--300, #23511e)"},Xne={name:"--pf-v5-chart-theme--green--ColorScale--400",value:"#7cc674",var:"var(--pf-v5-chart-theme--green--ColorScale--400, #7cc674)"},Jne={name:"--pf-v5-chart-theme--green--ColorScale--500",value:"#38812f",var:"var(--pf-v5-chart-theme--green--ColorScale--500, #38812f)"},HC=[Yne.var,Kne.var,Zne.var,Xne.var,Jne.var],Qne=ki({COLOR_SCALE:HC}),ere=Ti({COLOR_SCALE:HC}),jr={fill:"transparent",stroke:"transparent"},mo=Object.assign({},jr),tre=e=>{const{COLOR_SCALE:t}=e;return{area:{colorScale:t,style:{data:{fill:t[0]},labels:mo}},axis:{colorScale:t,style:{axis:{fill:"transparent",stroke:t[0]},axisLabel:Object.assign(Object.assign({},mo),{fill:t[0],stroke:"transparent"}),grid:{fill:"transparent",stroke:"transparent"},ticks:{fill:"transparent",stroke:t[0]},tickLabels:Object.assign(Object.assign({},jr),{fill:"transparent"})}},bar:{colorScale:t,style:{data:{fill:t[0],stroke:t[0]},labels:jr}},boxplot:{colorScale:t,style:{max:{stroke:t[0]},maxLabels:jr,median:{stroke:t[0]},medianLabels:jr,min:{stroke:t[0]},minLabels:jr,q1:{fill:t[0]},q1Labels:jr,q3:{fill:t[0]},q3Labels:jr}},candlestick:{colorScale:t,style:{data:{stroke:t[0]},labels:mo}},chart:{colorScale:t},errorbar:{colorScale:t,style:{data:{fill:"transparent",stroke:t[0]},labels:mo}},group:{colorScale:t},legend:{colorScale:t,style:{labels:jr,title:Object.assign({},jr)}},line:{colorScale:t,style:{data:{fill:"transparent",stroke:t[0]},labels:mo}},pie:{colorScale:t,style:{data:{stroke:"transparent"},labels:Object.assign({},jr)}},scatter:{colorScale:t,style:{data:{fill:t[0],stroke:"transparent"},labels:mo}},stack:{colorScale:t},tooltip:{flyoutStyle:{fill:"transparent",stroke:"transparent"},style:{fill:"transparent"}},voronoi:{colorScale:t,style:{data:{fill:t[0],stroke:t[0]},labels:Object.assign(Object.assign({},mo),{fill:"transparent"}),flyout:{fill:"transparent",stroke:"transparent"}}}}},nre=e=>{const{COLOR_SCALE:t}=e;return{axis:{axis:{style:{grid:{stroke:t[0]},ticks:{stroke:t[0]}}}},bullet:{},bulletComparativeErrorMeasure:{bar:{style:{data:{fill:t[0],stroke:t[0]}}}},bulletComparativeMeasure:{bar:{style:{data:{fill:t[0],stroke:t[0]}}}},bulletComparativeWarningMeasure:{bar:{style:{data:{fill:t[0],stroke:t[0]}}}},bulletGroupTitle:{line:{style:{data:{fill:t[0],stroke:t[0]}}}},bulletPrimaryDotMeasure:{},bulletPrimaryNegativeMeasure:{group:{colorScale:t}},bulletPrimarySegmentedMeasure:{},bulletQualitativeRange:{group:{colorScale:t}},donut:{},donutThresholdDynamic:{legend:{colorScale:t},pie:{colorScale:t}},donutThresholdStatic:{pie:{colorScale:t}},donutUtilization:{legend:{colorScale:t},pie:{colorScale:t}},label:{backgroundStyle:{fill:t[0]},style:mo},threshold:{}}},GC=[$C.var,IC.var,LC.var,FC.var,NC.var],rre=tre({COLOR_SCALE:GC}),ire=nre({COLOR_SCALE:GC}),ore={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--100",value:"#06c",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--100, #06c)"},are={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--200",value:"#4cb140",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--200, #4cb140)"},sre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--300",value:"#009596",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--300, #009596)"},lre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--400",value:"#f4c145",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--400, #f4c145)"},cre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--500",value:"#ec7a08",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--500, #ec7a08)"},ure={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--600",value:"#8bc1f7",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--600, #8bc1f7)"},dre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--700",value:"#23511e",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--700, #23511e)"},fre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--800",value:"#a2d9d9",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--800, #a2d9d9)"},hre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--900",value:"#f9e0a2",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--900, #f9e0a2)"},mre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1000",value:"#8f4700",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1000, #8f4700)"},gre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1100",value:"#002f5d",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1100, #002f5d)"},pre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1200",value:"#bde2b9",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1200, #bde2b9)"},yre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1300",value:"#003737",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1300, #003737)"},vre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1400",value:"#c58c00",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1400, #c58c00)"},bre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1500",value:"#f4b678",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1500, #f4b678)"},xre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1600",value:"#519de9",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1600, #519de9)"},_re={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1700",value:"#38812f",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1700, #38812f)"},Sre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1800",value:"#73c5c5",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1800, #73c5c5)"},wre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1900",value:"#f6d173",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1900, #f6d173)"},Cre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2000",value:"#c46100",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2000, #c46100)"},Ere={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2100",value:"#004b95",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2100, #004b95)"},Ore={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2200",value:"#7cc674",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2200, #7cc674)"},kre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2300",value:"#005f60",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2300, #005f60)"},Tre={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2400",value:"#f0ab00",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2400, #f0ab00)"},Are={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2500",value:"#ef9234",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2500, #ef9234)"},qC=[ore.var,are.var,sre.var,lre.var,cre.var,ure.var,dre.var,fre.var,hre.var,mre.var,gre.var,pre.var,yre.var,vre.var,bre.var,xre.var,_re.var,Sre.var,wre.var,Cre.var,Ere.var,Ore.var,kre.var,Tre.var,Are.var],Dre=ki({COLOR_SCALE:qC}),jre=Ti({COLOR_SCALE:qC}),Pre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--100",value:"#06c",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--100, #06c)"},Mre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--200",value:"#f4c145",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--200, #f4c145)"},$re={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--300",value:"#4cb140",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--300, #4cb140)"},Ire={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--400",value:"#5752d1",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--400, #5752d1)"},Lre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--500",value:"#ec7a08",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--500, #ec7a08)"},Fre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--600",value:"#009596",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--600, #009596)"},Nre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--700",value:"#b8bbbe",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--700, #b8bbbe)"},Bre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--800",value:"#8bc1f7",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--800, #8bc1f7)"},Wre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--900",value:"#c58c00",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--900, #c58c00)"},zre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1000",value:"#bde2b9",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1000, #bde2b9)"},Rre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1100",value:"#2a265f",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1100, #2a265f)"},Vre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1200",value:"#f4b678",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1200, #f4b678)"},Ure={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1300",value:"#003737",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1300, #003737)"},Hre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1400",value:"#f0f0f0",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1400, #f0f0f0)"},Gre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1500",value:"#002f5d",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1500, #002f5d)"},qre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1600",value:"#f9e0a2",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1600, #f9e0a2)"},Yre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1700",value:"#23511e",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1700, #23511e)"},Kre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1800",value:"#b2b0ea",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1800, #b2b0ea)"},Zre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1900",value:"#8f4700",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1900, #8f4700)"},Xre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2000",value:"#a2d9d9",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2000, #a2d9d9)"},Jre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2100",value:"#6a6e73",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2100, #6a6e73)"},Qre={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2200",value:"#519de9",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2200, #519de9)"},eie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2300",value:"#f0ab00",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2300, #f0ab00)"},tie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2400",value:"#7cc674",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2400, #7cc674)"},nie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2500",value:"#3c3d99",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2500, #3c3d99)"},rie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2600",value:"#ef9234",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2600, #ef9234)"},iie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2700",value:"#005f60",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2700, #005f60)"},oie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2800",value:"#d2d2d2",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2800, #d2d2d2)"},aie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2900",value:"#004b95",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2900, #004b95)"},sie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3000",value:"#f6d173",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3000, #f6d173)"},lie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3100",value:"#38812f",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3100, #38812f)"},cie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3200",value:"#8481dd",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3200, #8481dd)"},uie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3300",value:"#c46100",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3300, #c46100)"},die={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3400",value:"#73c5c5",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3400, #73c5c5)"},fie={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3500",value:"#8a8d90",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3500, #8a8d90)"},YC=[Pre.var,Mre.var,$re.var,Ire.var,Lre.var,Fre.var,Nre.var,Bre.var,Wre.var,zre.var,Rre.var,Vre.var,Ure.var,Hre.var,Gre.var,qre.var,Yre.var,Kre.var,Zre.var,Xre.var,Jre.var,Qre.var,eie.var,tie.var,nie.var,rie.var,iie.var,oie.var,aie.var,sie.var,lie.var,cie.var,uie.var,die.var,fie.var],hie=ki({COLOR_SCALE:YC}),mie=Ti({COLOR_SCALE:YC}),gie={name:"--pf-v5-chart-theme--orange--ColorScale--100",value:"#ec7a08",var:"var(--pf-v5-chart-theme--orange--ColorScale--100, #ec7a08)"},pie={name:"--pf-v5-chart-theme--orange--ColorScale--200",value:"#f4b678",var:"var(--pf-v5-chart-theme--orange--ColorScale--200, #f4b678)"},yie={name:"--pf-v5-chart-theme--orange--ColorScale--300",value:"#8f4700",var:"var(--pf-v5-chart-theme--orange--ColorScale--300, #8f4700)"},vie={name:"--pf-v5-chart-theme--orange--ColorScale--400",value:"#ef9234",var:"var(--pf-v5-chart-theme--orange--ColorScale--400, #ef9234)"},bie={name:"--pf-v5-chart-theme--orange--ColorScale--500",value:"#c46100",var:"var(--pf-v5-chart-theme--orange--ColorScale--500, #c46100)"},KC=[gie.var,pie.var,yie.var,vie.var,bie.var],xie=ki({COLOR_SCALE:KC}),_ie=Ti({COLOR_SCALE:KC}),Sie={name:"--pf-v5-chart-theme--purple--ColorScale--100",value:"#5752d1",var:"var(--pf-v5-chart-theme--purple--ColorScale--100, #5752d1)"},wie={name:"--pf-v5-chart-theme--purple--ColorScale--200",value:"#b2b0ea",var:"var(--pf-v5-chart-theme--purple--ColorScale--200, #b2b0ea)"},Cie={name:"--pf-v5-chart-theme--purple--ColorScale--300",value:"#2a265f",var:"var(--pf-v5-chart-theme--purple--ColorScale--300, #2a265f)"},Eie={name:"--pf-v5-chart-theme--purple--ColorScale--400",value:"#8481dd",var:"var(--pf-v5-chart-theme--purple--ColorScale--400, #8481dd)"},Oie={name:"--pf-v5-chart-theme--purple--ColorScale--500",value:"#3c3d99",var:"var(--pf-v5-chart-theme--purple--ColorScale--500, #3c3d99)"},ZC=[Sie.var,wie.var,Cie.var,Eie.var,Oie.var],kie=ki({COLOR_SCALE:ZC}),Tie=Ti({COLOR_SCALE:ZC}),on=e=>{const t=bC(xne);return _s(t,Aie(e))},Ss=e=>{const t=bC(_ne);return _s(t,Die(e))},Aie=e=>{switch(e){case _t.blue:return WC;case _t.cyan:return Pne;case _t.gold:return Bne;case _t.gray:return Gne;case _t.green:return Qne;case _t.multi:case _t.multiOrdered:return Dre;case _t.multiUnordered:return hie;case _t.orange:return xie;case _t.purple:return kie;case _t.skeleton:return rre;default:return WC}},Die=e=>{switch(e){case _t.blue:return zC;case _t.cyan:return Mne;case _t.gold:return Wne;case _t.gray:return qne;case _t.green:return ere;case _t.multi:case _t.multiOrdered:return jre;case _t.multiUnordered:return mie;case _t.orange:return _ie;case _t.purple:return Tie;case _t.skeleton:return ire;default:return zC}},op=({className:e})=>{let t;return e&&(t=e.replace(/VictoryContainer/g,"").replace(/pf-v5-c-chart/g,"").replace(/pf-c-chart/g,"").replace(/\s+/g," ").trim()),t&&t.length?`pf-v5-c-chart ${t}`:"pf-v5-c-chart"},cr=e=>{var{className:t,themeColor:n,theme:r=on(n)}=e,i=Ae(e,["className","themeColor","theme"]);const o=op({className:t});return k.createElement(Qt,Object.assign({className:o,theme:r},i))};cr.displayName="ChartContainer",rn(cr,Qt);var jie=Math.ceil,Pie=Math.max;function Mie(e,t,n,r){for(var i=-1,o=Pie(jie((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a}var $ie=Mie,Iie=/\s/;function Lie(e){for(var t=e.length;t--&&Iie.test(e.charAt(t)););return t}var Fie=Lie,Nie=Fie,Bie=/^\s+/;function Wie(e){return e&&e.slice(0,Nie(e)+1).replace(Bie,"")}var zie=Wie,Rie=zie,XC=Tn,Vie=ul,JC=NaN,Uie=/^[-+]0x[0-9a-f]+$/i,Hie=/^0b[01]+$/i,Gie=/^0o[0-7]+$/i,qie=parseInt;function Yie(e){if(typeof e=="number")return e;if(Vie(e))return JC;if(XC(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=XC(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Rie(e);var n=Hie.test(e);return n||Gie.test(e)?qie(e.slice(2),n?2:8):Uie.test(e)?JC:+e}var ap=Yie,Kie=ap,QC=1/0,Zie=17976931348623157e292;function Xie(e){if(!e)return e===0?e:0;if(e=Kie(e),e===QC||e===-QC){var t=e<0?-1:1;return t*Zie}return e===e?e:0}var Jie=Xie,Qie=$ie,eoe=Vm,sp=Jie;function toe(e){return function(t,n,r){return r&&typeof r!="number"&&eoe(t,n,r)&&(n=r=void 0),t=sp(t),n===void 0?(n=t,t=0):n=sp(n),r=r===void 0?t<n?1:-1:sp(r),Qie(t,n,r,e)}}var noe=toe,roe=noe,ioe=roe(),ooe=ioe;const e6=Fe(ooe),aoe=e=>{const{colorScale:t,theme:n}=e;return typeof t=="string"?Rg(t,n):t||[]},t6=e=>{const{data:t,style:n}=e;return t.map((r,i)=>{const o=Z({},r.labels,n.labels);return st(o,{datum:r,index:i,data:t})})},soe=function(e,t){t===void 0&&(t={});const n=e.style||{},r={height:"100%",width:"100%"};return{parent:Z(n.parent,t.parent,r),data:Z({},n.data,t.data),labels:Z({},n.labels,t.labels),border:Z({},n.border,t.border),title:Z({},n.title,t.title)}},n6=e=>{const{orientation:t,theme:n}=e,r=n&&n.legend&&n.legend.style?n.legend.style:{},i=soe(e,r),o=aoe(e),a=t==="horizontal",s=xt({padding:e.borderPadding});return Object.assign({},e,{style:i,isHorizontal:a,colorScale:o,borderPadding:s})},loe=(e,t)=>{const{itemsPerRow:n,isHorizontal:r}=e;return n?r?t%n:Math.floor(t/n):r?t:0},coe=(e,t)=>{const{itemsPerRow:n,isHorizontal:r}=e;return n?r?Math.floor(t/n):t%n:r?0:t},r6=e=>{const{data:t}=e,n=e.style&&e.style.data||{},r=t6(e);return t.map((i,o)=>{const a=i.symbol||{},{fontSize:s}=r[o],l=a.size||n.size||s/2.5,c=e.symbolSpacer||Math.max(l,s);return{...i,size:l,symbolSpacer:c,fontSize:s,textSize:ia(i.name,r[o]),column:loe(e,o),row:coe(e,o)}})},i6=(e,t)=>{const n=e.gutter||{},r=typeof n=="object"?(n.left||0)+(n.right||0):n||0,i=Qd(t,"column");return Object.keys(i).reduce((a,s,l)=>{const c=i[s].map(u=>u.textSize.width+u.size+u.symbolSpacer+r);return a[l]=Math.max(...c),a},[])},o6=(e,t)=>{const n=e.rowGutter||{},r=typeof n=="object"?(n.top||0)+(n.bottom||0):n||0,i=Qd(t,"row");return Object.keys(i).reduce((o,a,s)=>{const c=i[a].map(u=>u.textSize.height+u.symbolSpacer+r);return o[s]=Math.max(...c),o},[])},a6=e=>{const t=e.style&&e.style.title||{},n=ia(e.title,t),r=t.padding||0;return{height:n.height+2*r||0,width:n.width+2*r||0}},uoe=(e,t,n)=>{const{column:r,row:i}=e;return{x:e6(r).reduce((o,a)=>o+n[a],0),y:e6(i).reduce((o,a)=>o+t[a],0)}},doe=(e,t)=>{const n={textAnchor:e==="right"?"end":"start",verticalAnchor:e==="bottom"?"end":"start"};if(t){const r=e==="top"||e==="bottom";return{textAnchor:r?"middle":n.textAnchor,verticalAnchor:r?n.verticalAnchor:"middle"}}return n},foe=e=>{const{titleOrientation:t,centerTitle:n,titleComponent:r}=e,i=e.style&&e.style.title||{},o=r.props&&r.props.style||{},a=doe(t,n);return Array.isArray(o)?o.map(s=>Z({},s,i,a)):Z({},o,i,a)},hoe=(e,t)=>{const{title:n,titleOrientation:r,centerTitle:i,borderPadding:o}=e,{height:a,width:s}=t,l=foe(e),c=Array.isArray(l)?l[0].padding:l.padding,u=r==="top"||r==="bottom",d=r==="bottom"?"bottom":"top",f=r==="right"?"right":"left",h={x:i?s/2:o[d]+(c||0),y:i?a/2:o[f]+(c||0)},g=()=>o[r]+(c||0),p=u?h.x:g(),v=u?g():h.y;return{x:r==="right"?e.x+s-p:e.x+p,y:r==="bottom"?e.y+a-v:e.y+v,style:l,text:n}},moe=(e,t,n)=>{const{x:r,y:i,borderPadding:o,style:a}=e,s=(t||0)+o.top+o.bottom,l=(n||0)+o.left+o.right;return{x:r,y:i,height:s,width:l,style:Object.assign({fill:"none"},a.border)}},s6=(e,t)=>{const n=Bt(e,t,"legend"),r=Object.assign({},n,n6(n)),{title:i,titleOrientation:o}=r,a=r6(r),s=i6(r,a),l=o6(r,a),c=i?a6(r):{height:0,width:0};return{height:o==="left"||o==="right"?Math.max(pf(l),c.height):pf(l)+c.height,width:o==="left"||o==="right"?pf(s)+c.width:Math.max(pf(s),c.width)}},goe=(e,t)=>{const n=Bt(e,t,"legend"),r=Object.assign({},n,n6(n)),{data:i,standalone:o,theme:a,padding:s,style:l,colorScale:c,gutter:u,rowGutter:d,borderPadding:f,title:h,titleOrientation:g,name:p,x:v=0,y:b=0}=r,x=r6(r),S=i6(r,x),w=o6(r,x),_=t6(r),E=h?a6(r):{height:0,width:0},O={x:g==="left"?E.width:0,y:g==="top"?E.height:0},T={x:u&&typeof u=="object"&&u.left||0,y:d&&typeof d=="object"&&d.top||0},{height:D,width:j}=s6(r,t),A=moe(r,D,j),M=hoe(r,A),P={parent:{data:i,standalone:o,theme:a,padding:s,name:p,height:r.height,width:r.width,style:l.parent},all:{border:A,title:M}};return x.reduce(($,L,H)=>{const q=c[H%c.length],U=Z({},L.symbol,l.data,{fill:q}),z=di(L.eventKey)?H:L.eventKey,N=uoe(L,w,S),R=b+f.top+L.symbolSpacer,J=v+f.left+L.symbolSpacer,ee={index:H,data:i,datum:L,symbol:U.type||U.symbol||"circle",size:L.size,style:U,y:R+N.y+O.y+T.y,x:J+N.x+O.x+T.x},X={datum:L,data:i,text:L.name,style:_[H],y:ee.y,x:ee.x+L.symbolSpacer+L.size/2};return $[z]={data:ee,labels:X},$},P)};function pf(e){if(e&&e.length){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t}return 0}const lp={orientation:"vertical",titleOrientation:"top",width:450,height:300,x:0,y:0},poe=[{name:"Series 1"},{name:"Series 2"}];class Yl extends y.Component{static getBaseProps(t){return goe(t,lp)}static getDimensions(t){return s6(t,lp)}renderChildren(t){const{dataComponent:n,labelComponent:r,title:i}=t,o=[];if(t.borderComponent){const a=this.getComponentProps(t.borderComponent,"border","all"),s=y.cloneElement(t.borderComponent,a);o.push(s)}if(n){const a=this.dataKeys.map((s,l)=>{if(s==="all")return;const c=this.getComponentProps(n,"data",l);return y.cloneElement(n,c)}).filter(s=>s!==void 0);o.push(...a)}if(i&&t.titleComponent){const a=this.getComponentProps(i,"title","all"),s=y.cloneElement(t.titleComponent,a);o.push(s)}if(r){const a=this.dataKeys.map((s,l)=>{if(s==="all")return;const c=this.getComponentProps(r,"labels",l);if(c.text!==void 0&&c.text!==null)return y.cloneElement(r,c)}).filter(s=>s!==void 0);o.push(...a)}return o}render(){const{role:t}=this.constructor,n=Bt(this.props,lp,t),r=this.renderChildren(n);return n.standalone?this.renderContainer(n.containerComponent,r):y.cloneElement(n.groupComponent,{},r)}}ce(Yl,"displayName","VictoryLegend"),ce(Yl,"role","legend"),ce(Yl,"defaultProps",{borderComponent:y.createElement(jK,null),data:poe,containerComponent:y.createElement(Qt,null),dataComponent:y.createElement(Hw,null),groupComponent:y.createElement("g",null),labelComponent:y.createElement(en,null),standalone:!0,theme:Ar.grayscale,titleComponent:y.createElement(en,null)}),ce(Yl,"expectedComponents",["borderComponent","containerComponent","dataComponent","groupComponent","labelComponent","titleComponent"]);const Kl=Yo(Yl),yoe={name:"--pf-v5-chart-global--label--Margin",value:8,var:"var(--pf-v5-chart-global--label--Margin, 8)"},voe={name:"--pf-v5-chart-legend--position",value:"right",var:"var(--pf-v5-chart-legend--position, right)"},boe=TC.var,xoe=AC.var,_oe=np.value,Soe={label:{fontFamily:boe,fontSize:_oe,letterSpacing:xoe,margin:yoe.value,fill:DC.var},legend:{margin:w1.value,position:voe.value}},woe={name:"--pf-v5-chart-global--FontSize--2xl",value:24,var:"var(--pf-v5-chart-global--FontSize--2xl, 24)"},Coe={name:"--pf-v5-global--FontWeight--bold",value:"700",var:"var(--pf-v5-global--FontWeight--bold)"},Eoe={name:"--pf-v5-chart-donut--label--subtitle--Fill",value:"#b8bbbe",var:"var(--pf-v5-chart-donut--label--subtitle--Fill, #b8bbbe)"},Ooe={name:"--pf-v5-chart-donut--label--title--Fill",value:"#151515",var:"var(--pf-v5-chart-donut--label--title--Fill, #151515)"},koe={name:"--pf-v5-chart-donut--label--subtitle--position",value:"center",var:"var(--pf-v5-chart-donut--label--subtitle--position, center)"},Toe={label:{subTitle:{fill:Eoe.var,fontSize:np.value},subTitlePosition:koe.value,title:{fill:Ooe.var,fontSize:woe.value}}},Aoe={name:"--pf-v5-chart-donut--threshold--warning--Color",value:"#f0ab00",var:"var(--pf-v5-chart-donut--threshold--warning--Color, #f0ab00)"},Doe={name:"--pf-v5-chart-donut--threshold--danger--Color",value:"#c9190b",var:"var(--pf-v5-chart-donut--threshold--danger--Color, #c9190b)"},joe={thresholds:{colorScale:[Aoe.var,Doe.var]}},Poe={flyout:{padding:40},label:{fill:PC.var,fontWeight:Coe.value}},Moe={name:"--pf-v5-chart-scatter--active--size",value:5,var:"var(--pf-v5-chart-scatter--active--size, 5)"},$oe={name:"--pf-v5-chart-scatter--size",value:3,var:"var(--pf-v5-chart-scatter--size, 3)"},Ioe={activeSize:Moe.value,size:$oe.value},tn=Soe,Zl=Toe,l6=joe,ur=Poe,c6=Ioe,an=e=>{var{style:t,textAnchor:n}=e,r=Ae(e,["style","textAnchor"]);const i=a=>Z(Object.assign(Object.assign({},a),{textAnchor:n}),{fill:tn.label.fill,fontFamily:tn.label.fontFamily,fontSize:tn.label.fontSize,letterSpacing:tn.label.letterSpacing}),o=Array.isArray(t)?t.map(i):i(t);return k.createElement(en,Object.assign({style:o,textAnchor:n},r))};an.displayName="ChartLabel",rn(an,en);const Hn={circle:(e,t,n)=>`M ${e}, ${t}
|
209
209
|
m ${-n}, 0
|
210
210
|
a ${n}, ${n} 0 1,0 ${n*2},0
|
211
211
|
a ${n}, ${n} 0 1,0 ${-n*2},0`,dash:(e,t,n)=>{const r=1.1*n,i=r-r*.3,o=e-r,a=t+i/2,s=(e+r-o)*.3,l=s/3;return`M ${o}, ${a}
|
@@ -270,7 +270,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ru]+=1);const iu=De.button`
|
|
270
270
|
z`},triangleUp:(e,t,n)=>{const r=n/2*Math.sqrt(3),i=e-n,o=e+n,a=t-r,s=t+n;return`M ${i}, ${s}
|
271
271
|
L ${o}, ${s}
|
272
272
|
L ${e}, ${a}
|
273
|
-
z`}},Loe=e=>{const{x:t,y:n}=e,r=te(e.size,e);if(e.getPath)return e.getPath(t,n,r);const i={circle:Hn.circle,square:Hn.square,diamond:Hn.diamond,eyeSlash:Hn.eyeSlash,triangleDown:Hn.triangleDown,triangleLeft:Hn.triangleLeft,triangleRight:Hn.triangleRight,triangleUp:Hn.triangleUp,plus:Hn.plus,minus:Hn.minus,star:Hn.star,dash:Hn.dash,threshold:Hn.threshold},a=te(e.symbol,e);return(typeof i[a]=="function"?i[a]:i.square)(t,n,r)},yf=e=>{var{active:t,className:n,clipPath:r,datum:i,desc:o,events:a,pathComponent:s=k.createElement(fo,null),role:l="presentation",shapeRendering:c="auto",tabIndex:u,transform:d}=e,f=Ae(e,["active","className","clipPath","datum","desc","events","pathComponent","role","shapeRendering","tabIndex","transform"]);const h=Object.assign({active:t,className:n,clipPath:r,datum:i,desc:o,events:a,role:l,shapeRendering:c,tabIndex:u,transform:d},f);return k.cloneElement(s,Object.assign(Object.assign({className:n,clipPath:r,d:Loe(h),desc:te(o,h)},a),{role:l,shapeRendering:c,style:st(f.style,h),tabIndex:te(u,h),transform:d}))};yf.displayName="ChartPoint";const ws=e=>{var{colorScale:t,containerComponent:n=k.createElement(cr,null),dataComponent:r=k.createElement(yf,null),labelComponent:i=k.createElement(an,null),name:o,patternScale:a,responsive:s=!0,style:l,themeColor:c,titleComponent:u=k.createElement(an,null),theme:d=on(c)}=e,f=Ae(e,["colorScale","containerComponent","dataComponent","labelComponent","name","patternScale","responsive","style","themeColor","titleComponent","theme"]);const h=Ss(c),g=()=>{if(!a)return l;const x=l?Object.assign({},l):{};return x.data=Object.assign({fill:({index:S})=>{const w=d&&d.legend&&d.legend.colorScale?d.legend.colorScale[S%d.legend.colorScale.length]:void 0,_=t?t[S%t.length]:w,E=a[S%a.length];return E||_}},x.data),x},p=k.cloneElement(n,Object.assign({responsive:s,theme:d},n.props)),v=()=>k.cloneElement(i,Object.assign(Object.assign(Object.assign({},o&&{id:x=>`${o}-${i.type.displayName}-${x.index}`}),i.props),(h==null?void 0:h.label)&&h.label)),b=()=>k.cloneElement(u,Object.assign(Object.assign(Object.assign({},o&&{id:()=>`${o}-${u.type.displayName}`}),u.props),(h==null?void 0:h.label)&&h.label));return k.createElement(Kl,Object.assign({colorScale:t,containerComponent:p,dataComponent:r,labelComponent:v(),name:o,style:g(),theme:d,titleComponent:b()},f))};ws.displayName="ChartLegend",rn(ws,Kl,{getBaseProps:!0}),ws.getBaseProps=e=>{const t=on(null);return Kl.getBaseProps(Object.assign({titleComponent:k.createElement(an,null)},e),{height:t.chart.height,orientation:t.legend.orientation,titleOrientation:t.legend.titleOrientation,x:0,y:0,width:t.chart.width})};const vf=({height:e,padding:t,width:n})=>{const{top:r,bottom:i,left:o,right:a}=xt({padding:t}),s=Vr({height:e,width:n,padding:t}),l=(n-s*2-o-a)/2,c=(e-s*2-r-i)/2;return{x:s+o+l,y:s+r+c}},u6=({dx:e=0,height:t,labelPosition:n,legendPosition:r,padding:i,width:o})=>{const a=vf({height:t,padding:i,width:o}),s=Vr({height:t,width:o,padding:i});switch(n){case"bottom":case"center":return a.x+e;case"right":switch(r){case"bottom":return a.x+tn.label.margin+e+s;case"right":return a.x+tn.label.margin+e;default:return e}default:return e}},d6=({dy:e=0,height:t,labelPosition:n,padding:r,width:i})=>{const o=vf({height:t,padding:r,width:i}),a=Vr({height:t,width:i,padding:r});switch(n){case"center":case"right":return o.y+e;case"bottom":return o.y+a+tn.label.margin*2+e;default:return e}},f6=({text:e,theme:t})=>{const n=t.legend.style.labels;return ia(e,Object.assign({},n))},h6=(e,t)=>{let n=0;return e.map(r=>{const i=f6({text:r.name,theme:t}).width;i>n&&(n=i)}),n},m6=({allowWrap:e=!0,chartType:t="chart",colorScale:n,dx:r=0,dy:i=0,height:o,legendComponent:a,padding:s,patternScale:l,position:c=tn.legend.position,theme:u,themeColor:d,width:f,orientation:h=u.legend.orientation})=>{const g=a.props?a.props:{},p=e?Noe({dx:r,height:o,legendData:g.data,legendOrientation:g.legendOrientation?g.legendOrientation:h,legendPosition:c,legendProps:g,padding:s,theme:u,width:f}):void 0,v=K({},a.props,{itemsPerRow:p}),b=Boe({chartType:t,dx:r,height:o,legendData:v.data,legendOrientation:v.legendOrientation?v.legendOrientation:h,legendPosition:c,legendProps:v,padding:s,theme:u,width:f}),x=Woe({chartType:t,dy:i,height:o,legendData:v.data,legendOrientation:v.legendOrientation?v.legendOrientation:h,legendProps:v,legendPosition:c,padding:s,theme:u,width:f}),S=K({},a.props,{colorScale:n,itemsPerRow:p,orientation:h,patternScale:l,standalone:!1,theme:u,themeColor:d,x:b>0?b:0,y:x>0?x:0});return k.cloneElement(a,S)},Gr=({legendData:e,legendOrientation:t,legendProps:n,theme:r})=>e||n.data?Kl.getDimensions(Object.assign({data:e,orientation:t,theme:r},n)):{},Foe=({dx:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:o,padding:a,theme:s,width:l})=>{const{left:c,right:u}=xt({padding:a}),d={height:t,width:l-c-u},f=Gr({legendData:r,legendOrientation:i,legendProps:o,theme:s});let h=0;switch(n){case"bottom-left":h=c+e;break;case"right":h=d.width+tn.legend.margin+c+e;break;default:h=e;break}return l-h>f.width},Noe=({dx:e,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:o,padding:a,theme:s,width:l})=>{let c=r?r.length:0;for(let u=c;u>0;u--)if(Foe({dx:e,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:Object.assign(Object.assign({},o),{itemsPerRow:u}),padding:a,theme:s,width:l})){c=u;break}return c},g6=({legendData:e,legendOrientation:t,legendProps:n,theme:r})=>{const i=Gr({legendData:e,legendOrientation:t,legendProps:n,theme:r}),o=Gr({legendData:e,legendOrientation:t,legendProps:Object.assign(Object.assign({},n),{itemsPerRow:void 0}),theme:r});return Math.abs(i.height-o.height)},Boe=e=>{var{chartType:t}=e,n=Ae(e,["chartType"]);return t==="pie"?Uoe(n):Roe(n)},Woe=e=>{var{chartType:t}=e,n=Ae(e,["chartType"]);switch(t){case"pie":return Hoe(n);case"bullet":return zoe(n);default:return Voe(n)}},zoe=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:o,padding:a,theme:s,width:l})=>{const{left:c,right:u}=xt({padding:a}),d={height:t,width:l-c-u};switch(n){case"bottom":case"bottom-left":return d.height+tn.legend.margin+e;case"right":{const f=Gr({legendData:r,legendOrientation:i,legendProps:o,theme:s}),h=g=>g&&g.length>0?17:0;return(d.height-f.height)/2+h(r)}default:return e}},Roe=({dx:e=0,height:t,legendData:n,legendOrientation:r,legendPosition:i,legendProps:o,padding:a,theme:s,width:l})=>{const{top:c,bottom:u,left:d,right:f}=xt({padding:a}),h={height:Math.abs(t-(u+c)),width:Math.abs(l-(d+f))},g=Gr({legendData:n,legendOrientation:r,legendProps:o,theme:s});switch(i){case"bottom":return l>g.width?Math.round((l-g.width)/2)+e:e;case"bottom-left":return d+e;case"right":return h.width+tn.legend.margin+d+e;default:return e}},Voe=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:o,padding:a,theme:s,width:l})=>{const{top:c,bottom:u,left:d,right:f}=xt({padding:a}),h={height:Math.abs(t-(u+c)),width:Math.abs(l-(d+f))};switch(n){case"bottom":case"bottom-left":return h.height+tn.legend.margin*2+c+e;case"right":{const g=Gr({legendData:r,legendOrientation:i,legendProps:o,theme:s}),p=h.height/2+c,v=b=>b&&b.length>0?2:0;return p-g.height/2+v(r)}default:return e}},Uoe=({dx:e=0,height:t,legendData:n,legendOrientation:r,legendPosition:i,legendProps:o,padding:a,theme:s,width:l})=>{const c=vf({height:t,padding:a,width:l}),u=Vr({height:t,width:l,padding:a}),d=Gr({legendData:n,legendOrientation:r,legendProps:o,theme:s});switch(i){case"bottom":return l>d.width?Math.round((l-d.width)/2)+e:e;case"right":return c.x+tn.label.margin+e+u;default:return e}},Hoe=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:o,padding:a,theme:s,width:l})=>{const c=vf({height:t,padding:a,width:l}),u=Vr({height:t,width:l,padding:a});switch(n){case"bottom":return c.y+tn.legend.margin+u+e;case"right":{const d=Gr({legendData:r,legendOrientation:i,legendProps:o,theme:s}),f=h=>h&&h.length>0?2:0;return c.y-d.height/2+f(r)}default:return e}},Gn=(e,t,n)=>typeof t=="number"?t:typeof t=="object"&&Object.keys(t).length>0?t[e]||0:Gn(e,n,0),Goe=[{d:"M 0 0 L 5 5 M 4.5 -0.5 L 5.5 0.5 M -0.5 4.5 L 0.5 5.5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 5 L 5 0 M -0.5 0.5 L 0.5 -0.5 M 4.5 5.5 L 5.5 4.5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 2 0 L 2 5 M 4 0 L 4 5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 2 L 5 2 M 0 4 L 5 4",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 1.5 L 2.5 1.5 L 2.5 0 M 2.5 5 L 2.5 3.5 L 5 3.5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 0 L 5 10 L 10 0",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 3 3 L 8 3 L 8 8 L 3 8 Z",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 5 5 m -4 0 a 4 4 0 1 1 8 0 a 4 4 0 1 1 -8 0",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 0 0 L 10 10 M 9 -1 L 11 1 M -1 9 L 1 11",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 0 10 L 10 0 M -1 1 L 1 -1 M 9 11 L 11 9",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 2 5 L 5 2 L 8 5 L 5 8 Z",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 3 0 L 3 10 M 8 0 L 8 10",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 10 3 L 5 3 L 5 0 M 5 10 L 5 7 L 0 7",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 0 3 L 10 3 M 0 8 L 10 8",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 3 L 5 3 L 5 0 M 5 10 L 5 7 L 10 7",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0}],qoe=()=>_l("pf-pattern"),p6=(e,t)=>`${e}:${t}`,cp=({colorScale:e,offset:t=0,patternId:n,patternUnshiftIndex:r=0})=>{const i=[...Goe];return r>0&&r<i.length&&i.unshift(i.splice(r,1)[0]),k.createElement(k.Fragment,{key:"defs"},k.createElement("defs",null,e.map((a,s)=>{const l=i[(s+t)%i.length],{d:c,fill:u,stroke:d=a,strokeWidth:f}=l,h=Ae(l,["d","fill","stroke","strokeWidth"]),g=p6(n,s);return k.createElement("pattern",Object.assign({id:g,key:g},h),k.createElement("path",{d:c,stroke:d,strokeWidth:f,fill:u}))})))},Yoe=(e,t)=>e.map((n,r)=>`url(#${p6(t,r)})`),Koe=(e,t)=>{const n=[];return(e||t).forEach(i=>n.push(i)),n},Zoe=({colorScale:e,patternId:t,patternScale:n})=>{if(n)return n;const r=Yoe(e,t);return r&&r.length>0?r:void 0},Xoe=(e,t)=>t?e.map((n,r)=>{const i=t[r%t.length];return Object.assign(Object.assign({},i&&{_fill:i}),n)}):e,up=({colorScale:e,hasPatterns:t,patternScale:n,themeColorScale:r})=>{const i=Koe(e,r);let o=n,a=!n&&t!==void 0;const s=k.useMemo(()=>a?qoe():void 0,[a]);if(a&&(o=Zoe({colorScale:i,patternId:s,patternScale:n})),Array.isArray(t))for(let l=0;l<o.length;l++)l<t.length&&t[l]||(o[l]=null);else t===!1&&(o=void 0,a=!1);return{defaultColorScale:i,defaultPatternScale:o,isPatternDefs:a,patternId:s}},Joe=({children:e,patternScale:t,themeColor:n})=>k.Children.toArray(e).map((r,i)=>{if(k.isValidElement(r)){const o=Ae(r.props,[]),a=o.style?Object.assign({},o.style):{};if(t){const l=t[i%t.length];a.data=Object.assign(Object.assign({},l&&{fill:l}),a.data)}return k.cloneElement(r,Object.assign(Object.assign(Object.assign(Object.assign({},t&&{patternScale:t}),n&&{themeColor:n}),o),{style:a}))}return r}),Qoe=e=>{const t=on(e),n=Ss(e);return _s(t,n.axis)},eae=(e,t)=>{const n=on(e);return t||(n.axis.padding=0,n.axis.style.axis.fill="transparent",n.axis.style.axis.stroke="transparent",n.axis.style.grid.fill="transparent",n.axis.style.grid.stroke="transparent",n.axis.style.ticks.fill="transparent",n.axis.style.ticks.stroke="transparent",n.axis.style.tickLabels.fill="transparent"),n},tae=e=>{const t=on(e),n=Ss(e);return _s(t,n.donut)},nae=e=>{const t=on(e),n=Ss(e);return _s(t,n.donutUtilization)},dp=e=>{var{ariaDesc:t,ariaTitle:n,children:r,colorScale:i,hasPatterns:o,legendAllowWrap:a,legendComponent:s=k.createElement(ws,null),legendData:l,legendPosition:c=tn.legend.position,legendDirection:u="ltr",name:d,padding:f,patternScale:h,showAxis:g=!0,themeColor:p,theme:v=eae(p,g),containerComponent:b=k.createElement(cr,null),legendOrientation:x=v.legend.orientation,height:S=v.chart.height,width:w=v.chart.width}=e,_=Ae(e,["ariaDesc","ariaTitle","children","colorScale","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","legendDirection","name","padding","patternScale","showAxis","themeColor","theme","containerComponent","legendOrientation","height","width"]);const E={bottom:Gn("bottom",f,v.chart.padding),left:Gn("left",f,v.chart.padding),right:Gn("right",f,v.chart.padding),top:Gn("top",f,v.chart.padding)},{defaultColorScale:O,defaultPatternScale:T,isPatternDefs:D,patternId:j}=up({colorScale:i,patternScale:h,hasPatterns:o,themeColorScale:v.chart.colorScale});let A;b.props.labelComponent&&b.props.labelComponent.type.displayName==="ChartLegendTooltip"&&(A=k.cloneElement(b.props.labelComponent,Object.assign(Object.assign({theme:v},T&&{patternScale:T}),b.props.labelComponent.props)));const M=k.cloneElement(b,Object.assign(Object.assign(Object.assign(Object.assign({desc:t,title:n,theme:v},b.props),{className:op({className:b.props.className})}),A&&{labelComponent:A}),p===_t.skeleton&&{labelComponent:k.createElement(an,null)}));let P=0;u==="rtl"&&(P=h6(l,v));const $=k.cloneElement(s,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({data:l},d&&{name:`${d}-${s.type.displayName}`}),{orientation:x,theme:v,themeColor:p}),u==="rtl"&&{dataComponent:s.props.dataComponent?k.cloneElement(s.props.dataComponent,{transform:`translate(${P})`}):k.createElement(yf,{transform:`translate(${P})`})}),u==="rtl"&&{labelComponent:s.props.labelComponent?k.cloneElement(s.props.labelComponent,{direction:"rtl",dx:P-30}):k.createElement(an,{direction:"rtl",dx:P-30})}),s.props)),L=()=>{if(!$.props.data)return null;let U=0,V=0,N=0,H=$.props.title?10:0;return k.Children.toArray(r).map(Q=>{Q.type.role==="axis"&&Q.props.label&&Q.props.fixAxisLabelHeight&&(N=f6({text:Q.props.label,theme:v}).height+10,H=0)}),c==="bottom"?V+=N+H:c==="bottom-left"&&(V+=N+H,U=-10),g||(V-=w1.value),m6(Object.assign({allowWrap:a===!0||typeof a=="function",chartType:"chart",colorScale:i,dx:U,dy:V,height:S,legendComponent:$,padding:E,position:c,theme:v,themeColor:p,width:w},T&&{patternScale:T}))},z=()=>k.Children.toArray(r).map((U,V)=>{if(k.isValidElement(U)){const N=Ae(U.props,[]);return k.cloneElement(U,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({colorScale:i},T&&{patternScale:T}),d&&typeof U.name!==void 0&&{name:`${d}-${U.type.displayName}-${V}`}),{theme:v,themeColor:p}),N),U.type.displayName==="ChartPie"&&{data:Xoe(N.data,T)}))}return U}),G=L();return y.useEffect(()=>{if(G!=null&&G.props&&typeof a=="function"){const U=g6({legendData:G.props.data,legendOrientation:G.props.orientation,legendProps:G.props,theme:v});a(U)}},[G,a,v,w]),k.createElement(uf,Object.assign({colorScale:i,containerComponent:M,height:S,name:d,padding:E,theme:v,width:w},_),z(),G,D&&cp({patternId:j,colorScale:O}))};dp.displayName="Chart",rn(dp,uf);const rae=(e,t)=>{let n=dn(e);n.length<2&&(n=[]);const r=i=>{const o=tS(t[i])==="log"?1/Number.MAX_SAFE_INTEGER:0,a=t[i].domain(),s=Dn(a),l=tr(a);let c=o;return s<0&&l<=0?c=l:s>=0&&l>0&&(c=s),er(a)?new Date(c):c};return n.map(i=>{const o=i._y1!==void 0?i._y1:i._y,a=i._y0!==void 0?i._y0:r("y"),s=i._x1!==void 0?i._x1:i._x,l=i._x0!==void 0?i._x0:r("x");return Object.assign({},i,{_y0:a,_y1:o,_x0:l,_x1:s})})},iae=e=>{const{polar:t}=e,n=sd(e,"area"),r=Cl(e.style,n),i={x:Nt(e,"x"),y:Nt(e,"y")},o={x:ug(e,"x"),y:ug(e,"y")},a={x:ir(e,"x").domain(o.x).range(e.horizontal?i.y:i.x),y:ir(e,"y").domain(o.y).range(e.horizontal?i.x:i.y)},s=t?e.origin||El(e):void 0,l=rae(e,a);return{style:r,data:l,scale:a,domain:o,origin:s}},oae=(e,t)=>{const n=Bt(e,t,"area"),r=Object.assign({},n,iae(n)),{data:i,domain:o,events:a,groupComponent:s,height:l,horizontal:c,interpolation:u,origin:d,padding:f,polar:h,scale:g,sharedEvents:p,standalone:v,style:b,theme:x,width:S,labels:w,name:_,disableInlineStyles:E}=r,O={parent:{style:b.parent,width:S,height:l,scale:g,data:i,domain:o,standalone:v,theme:x,polar:h,origin:d,padding:f,name:_,horizontal:c},all:{data:{horizontal:c,polar:h,origin:d,scale:g,data:i,interpolation:u,groupComponent:s,style:E?{}:b.data,disableInlineStyles:E}}};return i.reduce((T,D,j)=>{const A=Md(r,D,j);if(A!=null||w&&(a||p)){const M=di(D.eventKey)?j:D.eventKey;T[M]={labels:pg(r,j)}}return T},O)},fp=e=>{const t=e._y1!==void 0?e._y1:e._y;return t!=null&&e._y0!==null},y6=e=>t=>e.x(t._x1!==void 0?t._x1:t._x),hp=e=>t=>e.y(t._y1!==void 0?t._y1:t._y),mp=e=>t=>e.y(t._y0),aae=e=>t=>-1*e.x(t._x1!==void 0?t._x1:t._x)+Math.PI/2,sae=e=>{const{horizontal:t,scale:n}=e,r=Gd(e);return t?Nd().defined(fp).curve(r).x0(mp(n)).x1(hp(n)).y(y6(n)):Nd().defined(fp).curve(r).x(y6(n)).y1(hp(n)).y0(mp(n))},lae=e=>{const{polar:t,scale:n}=e,r=Gd(e);return t?Cg().defined(fp).curve(r).angle(aae(n)).outerRadius(hp(n)).innerRadius(mp(n)):sae(e)},cae=e=>{const t=te(e.ariaLabel,e),n=te(e.desc,e),r=te(e.id,e),i=st(Object.assign({fill:"black"},e.style),e),o=te(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,desc:n,id:r,style:i,tabIndex:o})},uae={groupComponent:y.createElement("g",null),pathComponent:y.createElement(fo,null),role:"presentation",shapeRendering:"auto"},dae=e=>{const t=cae(K({},e,uae)),{ariaLabel:n,role:r,shapeRendering:i,className:o,polar:a,origin:s,data:l,pathComponent:c,events:u,groupComponent:d,clipPath:f,id:h,style:g,desc:p,tabIndex:v}=t,b=Tr(t),x=a&&s?`translate(${s.x}, ${s.y})`:void 0,S=t.transform||x,w=g.stroke&&g.stroke!=="none"&&g.stroke!=="transparent",_=lae(t),E=w&&hw(t),O=g.stroke?"none":g.fill,T={"aria-label":n,className:o,role:r,shapeRendering:i,transform:S,...u,clipPath:f,tabIndex:v},D=y.cloneElement(c,Object.assign({key:`${h}-area`,style:Object.assign({},g,{stroke:O}),d:_(l),desc:p,tabIndex:v},T,b)),j=w?y.cloneElement(c,Object.assign({key:`${h}-area-stroke`,style:Object.assign({},g,{fill:"none"}),d:E(l)},T)):null;return w?y.cloneElement(d,b,[D,j]):D},v6={width:450,height:300,padding:50,interpolation:"linear"},fae={components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]},qn=class qn extends y.Component{static getBaseProps(t){return oae(t,v6)}shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=qn,r=Bt(this.props,v6,n);if(this.shouldAnimate())return this.animateComponent(r,t);const i=this.renderContinuousData(r),o=r.standalone?this.renderContainer(r.containerComponent,i):i;return ud(o,r)}};ce(qn,"animationWhitelist",["data","domain","height","padding","style","width"]),ce(qn,"defaultProps",{containerComponent:y.createElement(Qt,null),dataComponent:y.createElement(dae,null),groupComponent:y.createElement(bs,null),labelComponent:y.createElement(en,{renderInPortal:!0}),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Ar.grayscale}),ce(qn,"displayName","VictoryArea"),ce(qn,"role","area"),ce(qn,"continuous",!0),ce(qn,"defaultTransitions",vS()),ce(qn,"defaultPolarTransitions",bS()),ce(qn,"getDomain",ug),ce(qn,"getData",dn),ce(qn,"expectedComponents",["dataComponent","labelComponent","groupComponent","containerComponent"]);let gp=qn;const b6=Yo(gp,fae),pp=e=>{var{containerComponent:t=k.createElement(cr,null),themeColor:n,theme:r=on(n)}=e,i=Ae(e,["containerComponent","themeColor","theme"]);const o=k.cloneElement(t,Object.assign({theme:r},t.props));return k.createElement(b6,Object.assign({containerComponent:o,theme:r},i))};pp.displayName="ChartArea",rn(pp,b6);const bf=e=>{var{axisLabelComponent:t=k.createElement(an,null),containerComponent:n=k.createElement(cr,null),name:r,showGrid:i=!1,themeColor:o,tickLabelComponent:a=k.createElement(an,null),theme:s=on(o)}=e,l=Ae(e,["axisLabelComponent","containerComponent","name","showGrid","themeColor","tickLabelComponent","theme"]);const c=Ss(o),u=k.cloneElement(n,Object.assign({theme:s},n.props)),d=()=>k.cloneElement(t,Object.assign(Object.assign(Object.assign({},r&&{id:()=>`${r}-${t.type.displayName}`}),t.props),(c==null?void 0:c.label)&&c.label)),f=()=>k.cloneElement(a,Object.assign(Object.assign(Object.assign({},r&&{id:h=>`${r}-${a.type.displayName}-${h.index}`}),a.props),(c==null?void 0:c.label)&&c.label));return k.createElement(Gl,Object.assign({axisLabelComponent:d(),containerComponent:u,name:r,theme:i?Qoe(o):s,tickLabelComponent:f()},l))};bf.displayName="ChartAxis",rn(bf,Gl);const hae=e=>{const{pointerWidth:t,cornerRadius:n,orientation:r,width:i,height:o,center:a}=e,s=r==="bottom"?1:-1,l=e.x+(e.dx||0),c=e.y+(e.dy||0),u=a.x,d=a.y,f=d+s*(o/2),h=d-s*(o/2),g=u+i/2,p=u-i/2,v=s*(c-f)<0?0:e.pointerLength,x=`${n} ${n} ${r==="bottom"?"0 0 0":"0 0 1"}`;return`M ${u-t/2}, ${f}
|
273
|
+
z`}},Loe=e=>{const{x:t,y:n}=e,r=te(e.size,e);if(e.getPath)return e.getPath(t,n,r);const i={circle:Hn.circle,square:Hn.square,diamond:Hn.diamond,eyeSlash:Hn.eyeSlash,triangleDown:Hn.triangleDown,triangleLeft:Hn.triangleLeft,triangleRight:Hn.triangleRight,triangleUp:Hn.triangleUp,plus:Hn.plus,minus:Hn.minus,star:Hn.star,dash:Hn.dash,threshold:Hn.threshold},a=te(e.symbol,e);return(typeof i[a]=="function"?i[a]:i.square)(t,n,r)},yf=e=>{var{active:t,className:n,clipPath:r,datum:i,desc:o,events:a,pathComponent:s=k.createElement(fo,null),role:l="presentation",shapeRendering:c="auto",tabIndex:u,transform:d}=e,f=Ae(e,["active","className","clipPath","datum","desc","events","pathComponent","role","shapeRendering","tabIndex","transform"]);const h=Object.assign({active:t,className:n,clipPath:r,datum:i,desc:o,events:a,role:l,shapeRendering:c,tabIndex:u,transform:d},f);return k.cloneElement(s,Object.assign(Object.assign({className:n,clipPath:r,d:Loe(h),desc:te(o,h)},a),{role:l,shapeRendering:c,style:st(f.style,h),tabIndex:te(u,h),transform:d}))};yf.displayName="ChartPoint";const ws=e=>{var{colorScale:t,containerComponent:n=k.createElement(cr,null),dataComponent:r=k.createElement(yf,null),labelComponent:i=k.createElement(an,null),name:o,patternScale:a,responsive:s=!0,style:l,themeColor:c,titleComponent:u=k.createElement(an,null),theme:d=on(c)}=e,f=Ae(e,["colorScale","containerComponent","dataComponent","labelComponent","name","patternScale","responsive","style","themeColor","titleComponent","theme"]);const h=Ss(c),g=()=>{if(!a)return l;const x=l?Object.assign({},l):{};return x.data=Object.assign({fill:({index:S})=>{const w=d&&d.legend&&d.legend.colorScale?d.legend.colorScale[S%d.legend.colorScale.length]:void 0,_=t?t[S%t.length]:w,E=a[S%a.length];return E||_}},x.data),x},p=k.cloneElement(n,Object.assign({responsive:s,theme:d},n.props)),v=()=>k.cloneElement(i,Object.assign(Object.assign(Object.assign({},o&&{id:x=>`${o}-${i.type.displayName}-${x.index}`}),i.props),(h==null?void 0:h.label)&&h.label)),b=()=>k.cloneElement(u,Object.assign(Object.assign(Object.assign({},o&&{id:()=>`${o}-${u.type.displayName}`}),u.props),(h==null?void 0:h.label)&&h.label));return k.createElement(Kl,Object.assign({colorScale:t,containerComponent:p,dataComponent:r,labelComponent:v(),name:o,style:g(),theme:d,titleComponent:b()},f))};ws.displayName="ChartLegend",rn(ws,Kl,{getBaseProps:!0}),ws.getBaseProps=e=>{const t=on(null);return Kl.getBaseProps(Object.assign({titleComponent:k.createElement(an,null)},e),{height:t.chart.height,orientation:t.legend.orientation,titleOrientation:t.legend.titleOrientation,x:0,y:0,width:t.chart.width})};const vf=({height:e,padding:t,width:n})=>{const{top:r,bottom:i,left:o,right:a}=xt({padding:t}),s=Vr({height:e,width:n,padding:t}),l=(n-s*2-o-a)/2,c=(e-s*2-r-i)/2;return{x:s+o+l,y:s+r+c}},u6=({dx:e=0,height:t,labelPosition:n,legendPosition:r,padding:i,width:o})=>{const a=vf({height:t,padding:i,width:o}),s=Vr({height:t,width:o,padding:i});switch(n){case"bottom":case"center":return a.x+e;case"right":switch(r){case"bottom":return a.x+tn.label.margin+e+s;case"right":return a.x+tn.label.margin+e;default:return e}default:return e}},d6=({dy:e=0,height:t,labelPosition:n,padding:r,width:i})=>{const o=vf({height:t,padding:r,width:i}),a=Vr({height:t,width:i,padding:r});switch(n){case"center":case"right":return o.y+e;case"bottom":return o.y+a+tn.label.margin*2+e;default:return e}},f6=({text:e,theme:t})=>{const n=t.legend.style.labels;return ia(e,Object.assign({},n))},h6=(e,t)=>{let n=0;return e.map(r=>{const i=f6({text:r.name,theme:t}).width;i>n&&(n=i)}),n},m6=({allowWrap:e=!0,chartType:t="chart",colorScale:n,dx:r=0,dy:i=0,height:o,legendComponent:a,padding:s,patternScale:l,position:c=tn.legend.position,theme:u,themeColor:d,width:f,orientation:h=u.legend.orientation})=>{const g=a.props?a.props:{},p=e?Noe({dx:r,height:o,legendData:g.data,legendOrientation:g.legendOrientation?g.legendOrientation:h,legendPosition:c,legendProps:g,padding:s,theme:u,width:f}):void 0,v=Z({},a.props,{itemsPerRow:p}),b=Boe({chartType:t,dx:r,height:o,legendData:v.data,legendOrientation:v.legendOrientation?v.legendOrientation:h,legendPosition:c,legendProps:v,padding:s,theme:u,width:f}),x=Woe({chartType:t,dy:i,height:o,legendData:v.data,legendOrientation:v.legendOrientation?v.legendOrientation:h,legendProps:v,legendPosition:c,padding:s,theme:u,width:f}),S=Z({},a.props,{colorScale:n,itemsPerRow:p,orientation:h,patternScale:l,standalone:!1,theme:u,themeColor:d,x:b>0?b:0,y:x>0?x:0});return k.cloneElement(a,S)},Gr=({legendData:e,legendOrientation:t,legendProps:n,theme:r})=>e||n.data?Kl.getDimensions(Object.assign({data:e,orientation:t,theme:r},n)):{},Foe=({dx:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:o,padding:a,theme:s,width:l})=>{const{left:c,right:u}=xt({padding:a}),d={height:t,width:l-c-u},f=Gr({legendData:r,legendOrientation:i,legendProps:o,theme:s});let h=0;switch(n){case"bottom-left":h=c+e;break;case"right":h=d.width+tn.legend.margin+c+e;break;default:h=e;break}return l-h>f.width},Noe=({dx:e,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:o,padding:a,theme:s,width:l})=>{let c=r?r.length:0;for(let u=c;u>0;u--)if(Foe({dx:e,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:Object.assign(Object.assign({},o),{itemsPerRow:u}),padding:a,theme:s,width:l})){c=u;break}return c},g6=({legendData:e,legendOrientation:t,legendProps:n,theme:r})=>{const i=Gr({legendData:e,legendOrientation:t,legendProps:n,theme:r}),o=Gr({legendData:e,legendOrientation:t,legendProps:Object.assign(Object.assign({},n),{itemsPerRow:void 0}),theme:r});return Math.abs(i.height-o.height)},Boe=e=>{var{chartType:t}=e,n=Ae(e,["chartType"]);return t==="pie"?Uoe(n):Roe(n)},Woe=e=>{var{chartType:t}=e,n=Ae(e,["chartType"]);switch(t){case"pie":return Hoe(n);case"bullet":return zoe(n);default:return Voe(n)}},zoe=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:o,padding:a,theme:s,width:l})=>{const{left:c,right:u}=xt({padding:a}),d={height:t,width:l-c-u};switch(n){case"bottom":case"bottom-left":return d.height+tn.legend.margin+e;case"right":{const f=Gr({legendData:r,legendOrientation:i,legendProps:o,theme:s}),h=g=>g&&g.length>0?17:0;return(d.height-f.height)/2+h(r)}default:return e}},Roe=({dx:e=0,height:t,legendData:n,legendOrientation:r,legendPosition:i,legendProps:o,padding:a,theme:s,width:l})=>{const{top:c,bottom:u,left:d,right:f}=xt({padding:a}),h={height:Math.abs(t-(u+c)),width:Math.abs(l-(d+f))},g=Gr({legendData:n,legendOrientation:r,legendProps:o,theme:s});switch(i){case"bottom":return l>g.width?Math.round((l-g.width)/2)+e:e;case"bottom-left":return d+e;case"right":return h.width+tn.legend.margin+d+e;default:return e}},Voe=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:o,padding:a,theme:s,width:l})=>{const{top:c,bottom:u,left:d,right:f}=xt({padding:a}),h={height:Math.abs(t-(u+c)),width:Math.abs(l-(d+f))};switch(n){case"bottom":case"bottom-left":return h.height+tn.legend.margin*2+c+e;case"right":{const g=Gr({legendData:r,legendOrientation:i,legendProps:o,theme:s}),p=h.height/2+c,v=b=>b&&b.length>0?2:0;return p-g.height/2+v(r)}default:return e}},Uoe=({dx:e=0,height:t,legendData:n,legendOrientation:r,legendPosition:i,legendProps:o,padding:a,theme:s,width:l})=>{const c=vf({height:t,padding:a,width:l}),u=Vr({height:t,width:l,padding:a}),d=Gr({legendData:n,legendOrientation:r,legendProps:o,theme:s});switch(i){case"bottom":return l>d.width?Math.round((l-d.width)/2)+e:e;case"right":return c.x+tn.label.margin+e+u;default:return e}},Hoe=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:o,padding:a,theme:s,width:l})=>{const c=vf({height:t,padding:a,width:l}),u=Vr({height:t,width:l,padding:a});switch(n){case"bottom":return c.y+tn.legend.margin+u+e;case"right":{const d=Gr({legendData:r,legendOrientation:i,legendProps:o,theme:s}),f=h=>h&&h.length>0?2:0;return c.y-d.height/2+f(r)}default:return e}},Gn=(e,t,n)=>typeof t=="number"?t:typeof t=="object"&&Object.keys(t).length>0?t[e]||0:Gn(e,n,0),Goe=[{d:"M 0 0 L 5 5 M 4.5 -0.5 L 5.5 0.5 M -0.5 4.5 L 0.5 5.5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 5 L 5 0 M -0.5 0.5 L 0.5 -0.5 M 4.5 5.5 L 5.5 4.5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 2 0 L 2 5 M 4 0 L 4 5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 2 L 5 2 M 0 4 L 5 4",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 1.5 L 2.5 1.5 L 2.5 0 M 2.5 5 L 2.5 3.5 L 5 3.5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 0 L 5 10 L 10 0",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 3 3 L 8 3 L 8 8 L 3 8 Z",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 5 5 m -4 0 a 4 4 0 1 1 8 0 a 4 4 0 1 1 -8 0",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 0 0 L 10 10 M 9 -1 L 11 1 M -1 9 L 1 11",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 0 10 L 10 0 M -1 1 L 1 -1 M 9 11 L 11 9",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 2 5 L 5 2 L 8 5 L 5 8 Z",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 3 0 L 3 10 M 8 0 L 8 10",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 10 3 L 5 3 L 5 0 M 5 10 L 5 7 L 0 7",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 0 3 L 10 3 M 0 8 L 10 8",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 3 L 5 3 L 5 0 M 5 10 L 5 7 L 10 7",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0}],qoe=()=>_l("pf-pattern"),p6=(e,t)=>`${e}:${t}`,cp=({colorScale:e,offset:t=0,patternId:n,patternUnshiftIndex:r=0})=>{const i=[...Goe];return r>0&&r<i.length&&i.unshift(i.splice(r,1)[0]),k.createElement(k.Fragment,{key:"defs"},k.createElement("defs",null,e.map((a,s)=>{const l=i[(s+t)%i.length],{d:c,fill:u,stroke:d=a,strokeWidth:f}=l,h=Ae(l,["d","fill","stroke","strokeWidth"]),g=p6(n,s);return k.createElement("pattern",Object.assign({id:g,key:g},h),k.createElement("path",{d:c,stroke:d,strokeWidth:f,fill:u}))})))},Yoe=(e,t)=>e.map((n,r)=>`url(#${p6(t,r)})`),Koe=(e,t)=>{const n=[];return(e||t).forEach(i=>n.push(i)),n},Zoe=({colorScale:e,patternId:t,patternScale:n})=>{if(n)return n;const r=Yoe(e,t);return r&&r.length>0?r:void 0},Xoe=(e,t)=>t?e.map((n,r)=>{const i=t[r%t.length];return Object.assign(Object.assign({},i&&{_fill:i}),n)}):e,up=({colorScale:e,hasPatterns:t,patternScale:n,themeColorScale:r})=>{const i=Koe(e,r);let o=n,a=!n&&t!==void 0;const s=k.useMemo(()=>a?qoe():void 0,[a]);if(a&&(o=Zoe({colorScale:i,patternId:s,patternScale:n})),Array.isArray(t))for(let l=0;l<o.length;l++)l<t.length&&t[l]||(o[l]=null);else t===!1&&(o=void 0,a=!1);return{defaultColorScale:i,defaultPatternScale:o,isPatternDefs:a,patternId:s}},Joe=({children:e,patternScale:t,themeColor:n})=>k.Children.toArray(e).map((r,i)=>{if(k.isValidElement(r)){const o=Ae(r.props,[]),a=o.style?Object.assign({},o.style):{};if(t){const l=t[i%t.length];a.data=Object.assign(Object.assign({},l&&{fill:l}),a.data)}return k.cloneElement(r,Object.assign(Object.assign(Object.assign(Object.assign({},t&&{patternScale:t}),n&&{themeColor:n}),o),{style:a}))}return r}),Qoe=e=>{const t=on(e),n=Ss(e);return _s(t,n.axis)},eae=(e,t)=>{const n=on(e);return t||(n.axis.padding=0,n.axis.style.axis.fill="transparent",n.axis.style.axis.stroke="transparent",n.axis.style.grid.fill="transparent",n.axis.style.grid.stroke="transparent",n.axis.style.ticks.fill="transparent",n.axis.style.ticks.stroke="transparent",n.axis.style.tickLabels.fill="transparent"),n},tae=e=>{const t=on(e),n=Ss(e);return _s(t,n.donut)},nae=e=>{const t=on(e),n=Ss(e);return _s(t,n.donutUtilization)},dp=e=>{var{ariaDesc:t,ariaTitle:n,children:r,colorScale:i,hasPatterns:o,legendAllowWrap:a,legendComponent:s=k.createElement(ws,null),legendData:l,legendPosition:c=tn.legend.position,legendDirection:u="ltr",name:d,padding:f,patternScale:h,showAxis:g=!0,themeColor:p,theme:v=eae(p,g),containerComponent:b=k.createElement(cr,null),legendOrientation:x=v.legend.orientation,height:S=v.chart.height,width:w=v.chart.width}=e,_=Ae(e,["ariaDesc","ariaTitle","children","colorScale","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","legendDirection","name","padding","patternScale","showAxis","themeColor","theme","containerComponent","legendOrientation","height","width"]);const E={bottom:Gn("bottom",f,v.chart.padding),left:Gn("left",f,v.chart.padding),right:Gn("right",f,v.chart.padding),top:Gn("top",f,v.chart.padding)},{defaultColorScale:O,defaultPatternScale:T,isPatternDefs:D,patternId:j}=up({colorScale:i,patternScale:h,hasPatterns:o,themeColorScale:v.chart.colorScale});let A;b.props.labelComponent&&b.props.labelComponent.type.displayName==="ChartLegendTooltip"&&(A=k.cloneElement(b.props.labelComponent,Object.assign(Object.assign({theme:v},T&&{patternScale:T}),b.props.labelComponent.props)));const M=k.cloneElement(b,Object.assign(Object.assign(Object.assign(Object.assign({desc:t,title:n,theme:v},b.props),{className:op({className:b.props.className})}),A&&{labelComponent:A}),p===_t.skeleton&&{labelComponent:k.createElement(an,null)}));let P=0;u==="rtl"&&(P=h6(l,v));const $=k.cloneElement(s,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({data:l},d&&{name:`${d}-${s.type.displayName}`}),{orientation:x,theme:v,themeColor:p}),u==="rtl"&&{dataComponent:s.props.dataComponent?k.cloneElement(s.props.dataComponent,{transform:`translate(${P})`}):k.createElement(yf,{transform:`translate(${P})`})}),u==="rtl"&&{labelComponent:s.props.labelComponent?k.cloneElement(s.props.labelComponent,{direction:"rtl",dx:P-30}):k.createElement(an,{direction:"rtl",dx:P-30})}),s.props)),L=()=>{if(!$.props.data)return null;let U=0,z=0,N=0,R=$.props.title?10:0;return k.Children.toArray(r).map(J=>{J.type.role==="axis"&&J.props.label&&J.props.fixAxisLabelHeight&&(N=f6({text:J.props.label,theme:v}).height+10,R=0)}),c==="bottom"?z+=N+R:c==="bottom-left"&&(z+=N+R,U=-10),g||(z-=w1.value),m6(Object.assign({allowWrap:a===!0||typeof a=="function",chartType:"chart",colorScale:i,dx:U,dy:z,height:S,legendComponent:$,padding:E,position:c,theme:v,themeColor:p,width:w},T&&{patternScale:T}))},H=()=>k.Children.toArray(r).map((U,z)=>{if(k.isValidElement(U)){const N=Ae(U.props,[]);return k.cloneElement(U,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({colorScale:i},T&&{patternScale:T}),d&&typeof U.name!==void 0&&{name:`${d}-${U.type.displayName}-${z}`}),{theme:v,themeColor:p}),N),U.type.displayName==="ChartPie"&&{data:Xoe(N.data,T)}))}return U}),q=L();return y.useEffect(()=>{if(q!=null&&q.props&&typeof a=="function"){const U=g6({legendData:q.props.data,legendOrientation:q.props.orientation,legendProps:q.props,theme:v});a(U)}},[q,a,v,w]),k.createElement(uf,Object.assign({colorScale:i,containerComponent:M,height:S,name:d,padding:E,theme:v,width:w},_),H(),q,D&&cp({patternId:j,colorScale:O}))};dp.displayName="Chart",rn(dp,uf);const rae=(e,t)=>{let n=dn(e);n.length<2&&(n=[]);const r=i=>{const o=tS(t[i])==="log"?1/Number.MAX_SAFE_INTEGER:0,a=t[i].domain(),s=Dn(a),l=tr(a);let c=o;return s<0&&l<=0?c=l:s>=0&&l>0&&(c=s),er(a)?new Date(c):c};return n.map(i=>{const o=i._y1!==void 0?i._y1:i._y,a=i._y0!==void 0?i._y0:r("y"),s=i._x1!==void 0?i._x1:i._x,l=i._x0!==void 0?i._x0:r("x");return Object.assign({},i,{_y0:a,_y1:o,_x0:l,_x1:s})})},iae=e=>{const{polar:t}=e,n=sd(e,"area"),r=Cl(e.style,n),i={x:Nt(e,"x"),y:Nt(e,"y")},o={x:ug(e,"x"),y:ug(e,"y")},a={x:ir(e,"x").domain(o.x).range(e.horizontal?i.y:i.x),y:ir(e,"y").domain(o.y).range(e.horizontal?i.x:i.y)},s=t?e.origin||El(e):void 0,l=rae(e,a);return{style:r,data:l,scale:a,domain:o,origin:s}},oae=(e,t)=>{const n=Bt(e,t,"area"),r=Object.assign({},n,iae(n)),{data:i,domain:o,events:a,groupComponent:s,height:l,horizontal:c,interpolation:u,origin:d,padding:f,polar:h,scale:g,sharedEvents:p,standalone:v,style:b,theme:x,width:S,labels:w,name:_,disableInlineStyles:E}=r,O={parent:{style:b.parent,width:S,height:l,scale:g,data:i,domain:o,standalone:v,theme:x,polar:h,origin:d,padding:f,name:_,horizontal:c},all:{data:{horizontal:c,polar:h,origin:d,scale:g,data:i,interpolation:u,groupComponent:s,style:E?{}:b.data,disableInlineStyles:E}}};return i.reduce((T,D,j)=>{const A=Md(r,D,j);if(A!=null||w&&(a||p)){const M=di(D.eventKey)?j:D.eventKey;T[M]={labels:pg(r,j)}}return T},O)},fp=e=>{const t=e._y1!==void 0?e._y1:e._y;return t!=null&&e._y0!==null},y6=e=>t=>e.x(t._x1!==void 0?t._x1:t._x),hp=e=>t=>e.y(t._y1!==void 0?t._y1:t._y),mp=e=>t=>e.y(t._y0),aae=e=>t=>-1*e.x(t._x1!==void 0?t._x1:t._x)+Math.PI/2,sae=e=>{const{horizontal:t,scale:n}=e,r=Gd(e);return t?Nd().defined(fp).curve(r).x0(mp(n)).x1(hp(n)).y(y6(n)):Nd().defined(fp).curve(r).x(y6(n)).y1(hp(n)).y0(mp(n))},lae=e=>{const{polar:t,scale:n}=e,r=Gd(e);return t?Cg().defined(fp).curve(r).angle(aae(n)).outerRadius(hp(n)).innerRadius(mp(n)):sae(e)},cae=e=>{const t=te(e.ariaLabel,e),n=te(e.desc,e),r=te(e.id,e),i=st(Object.assign({fill:"black"},e.style),e),o=te(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,desc:n,id:r,style:i,tabIndex:o})},uae={groupComponent:y.createElement("g",null),pathComponent:y.createElement(fo,null),role:"presentation",shapeRendering:"auto"},dae=e=>{const t=cae(Z({},e,uae)),{ariaLabel:n,role:r,shapeRendering:i,className:o,polar:a,origin:s,data:l,pathComponent:c,events:u,groupComponent:d,clipPath:f,id:h,style:g,desc:p,tabIndex:v}=t,b=Tr(t),x=a&&s?`translate(${s.x}, ${s.y})`:void 0,S=t.transform||x,w=g.stroke&&g.stroke!=="none"&&g.stroke!=="transparent",_=lae(t),E=w&&hw(t),O=g.stroke?"none":g.fill,T={"aria-label":n,className:o,role:r,shapeRendering:i,transform:S,...u,clipPath:f,tabIndex:v},D=y.cloneElement(c,Object.assign({key:`${h}-area`,style:Object.assign({},g,{stroke:O}),d:_(l),desc:p,tabIndex:v},T,b)),j=w?y.cloneElement(c,Object.assign({key:`${h}-area-stroke`,style:Object.assign({},g,{fill:"none"}),d:E(l)},T)):null;return w?y.cloneElement(d,b,[D,j]):D},v6={width:450,height:300,padding:50,interpolation:"linear"},fae={components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]},qn=class qn extends y.Component{static getBaseProps(t){return oae(t,v6)}shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=qn,r=Bt(this.props,v6,n);if(this.shouldAnimate())return this.animateComponent(r,t);const i=this.renderContinuousData(r),o=r.standalone?this.renderContainer(r.containerComponent,i):i;return ud(o,r)}};ce(qn,"animationWhitelist",["data","domain","height","padding","style","width"]),ce(qn,"defaultProps",{containerComponent:y.createElement(Qt,null),dataComponent:y.createElement(dae,null),groupComponent:y.createElement(bs,null),labelComponent:y.createElement(en,{renderInPortal:!0}),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Ar.grayscale}),ce(qn,"displayName","VictoryArea"),ce(qn,"role","area"),ce(qn,"continuous",!0),ce(qn,"defaultTransitions",vS()),ce(qn,"defaultPolarTransitions",bS()),ce(qn,"getDomain",ug),ce(qn,"getData",dn),ce(qn,"expectedComponents",["dataComponent","labelComponent","groupComponent","containerComponent"]);let gp=qn;const b6=Yo(gp,fae),pp=e=>{var{containerComponent:t=k.createElement(cr,null),themeColor:n,theme:r=on(n)}=e,i=Ae(e,["containerComponent","themeColor","theme"]);const o=k.cloneElement(t,Object.assign({theme:r},t.props));return k.createElement(b6,Object.assign({containerComponent:o,theme:r},i))};pp.displayName="ChartArea",rn(pp,b6);const bf=e=>{var{axisLabelComponent:t=k.createElement(an,null),containerComponent:n=k.createElement(cr,null),name:r,showGrid:i=!1,themeColor:o,tickLabelComponent:a=k.createElement(an,null),theme:s=on(o)}=e,l=Ae(e,["axisLabelComponent","containerComponent","name","showGrid","themeColor","tickLabelComponent","theme"]);const c=Ss(o),u=k.cloneElement(n,Object.assign({theme:s},n.props)),d=()=>k.cloneElement(t,Object.assign(Object.assign(Object.assign({},r&&{id:()=>`${r}-${t.type.displayName}`}),t.props),(c==null?void 0:c.label)&&c.label)),f=()=>k.cloneElement(a,Object.assign(Object.assign(Object.assign({},r&&{id:h=>`${r}-${a.type.displayName}-${h.index}`}),a.props),(c==null?void 0:c.label)&&c.label));return k.createElement(Gl,Object.assign({axisLabelComponent:d(),containerComponent:u,name:r,theme:i?Qoe(o):s,tickLabelComponent:f()},l))};bf.displayName="ChartAxis",rn(bf,Gl);const hae=e=>{const{pointerWidth:t,cornerRadius:n,orientation:r,width:i,height:o,center:a}=e,s=r==="bottom"?1:-1,l=e.x+(e.dx||0),c=e.y+(e.dy||0),u=a.x,d=a.y,f=d+s*(o/2),h=d-s*(o/2),g=u+i/2,p=u-i/2,v=s*(c-f)<0?0:e.pointerLength,x=`${n} ${n} ${r==="bottom"?"0 0 0":"0 0 1"}`;return`M ${u-t/2}, ${f}
|
274
274
|
L ${v?l:u+t/2}, ${v?c:f}
|
275
275
|
L ${u+t/2}, ${f}
|
276
276
|
L ${g-n}, ${f}
|
@@ -292,7 +292,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ru]+=1);const iu=De.button`
|
|
292
292
|
A ${x} ${h-s*n}, ${p}
|
293
293
|
L ${f+s*n}, ${p}
|
294
294
|
A ${x} ${f}, ${p+n}
|
295
|
-
z`},gae=e=>{const t=e.orientation||"top";return t==="left"||t==="right"?mae(e):hae(e)},pae=e=>{const t=te(e.id,e),n=st(e.style,e);return{...e,id:t,style:n}},yae={pathComponent:y.createElement(fo,null),role:"presentation",shapeRendering:"auto"},vae=e=>{const t=pae(K({},e,yae)),n=Tr(t);cd(t.height,"Flyout props[height] is undefined"),cd(t.width,"Flyout props[width] is undefined"),cd(t.x,"Flyout props[x] is undefined"),cd(t.y,"Flyout props[y] is undefined");const r={center:t.center||{x:0,y:0},cornerRadius:t.cornerRadius||0,dx:t.dx,dy:t.dy,height:t.height,orientation:t.orientation||"top",pointerLength:t.pointerLength||0,pointerWidth:t.pointerWidth||0,width:t.width,x:t.x,y:t.y};return y.cloneElement(t.pathComponent,{...t.events,...n,style:t.style,d:gae(r),className:t.className,shapeRendering:t.shapeRendering,role:t.role,transform:t.transform,clipPath:t.clipPath})},bae={cornerRadius:5,pointerLength:10,pointerWidth:10};class go extends y.Component{static defaultEvents(t){const n=t.activateData?[{target:"labels",mutation:()=>({active:!0})},{target:"data",mutation:()=>({active:!0})}]:[{target:"labels",mutation:()=>({active:!0})}],r=t.activateData?[{target:"labels",mutation:()=>({active:void 0})},{target:"data",mutation:()=>({active:void 0})}]:[{target:"labels",mutation:()=>({active:void 0})}];return[{target:"data",eventHandlers:{onMouseOver:()=>n,onFocus:()=>n,onTouchStart:()=>n,onMouseOut:()=>r,onBlur:()=>r,onTouchEnd:()=>r}}]}constructor(t){super(t),this.id=t.id===void 0?_l("tooltip-"):t.id}getDefaultOrientation(t){const{datum:n,horizontal:r,polar:i}=t;if(!i){const o=r?"right":"top",a=r?"left":"bottom";return n&&n.y<0?a:o}return this.getPolarOrientation(t)}getPolarOrientation(t){const n=Fl(t,t.datum),r=t.labelPlacement||"vertical";return r==="vertical"?this.getVerticalOrientations(n):r==="parallel"?n<90||n>270?"right":"left":n>180?"bottom":"top"}getVerticalOrientations(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}getStyles(t){const n=t.theme||Ar.grayscale,r=n&&n.tooltip&&n.tooltip.style?n.tooltip.style:{},i=Array.isArray(t.style)?t.style.map(c=>K({},c,r)):K({},t.style,r),o=n&&n.tooltip&&n.tooltip.flyoutStyle?n.tooltip.flyoutStyle:{},a=t.flyoutStyle?K({},t.flyoutStyle,o):o,s=Array.isArray(i)?i.map(c=>st(c,t)):st(i,t),l=st(a,Object.assign({},t,{style:s}));return{style:s,flyoutStyle:l}}getEvaluatedProps(t){const{cornerRadius:n,centerOffset:r,dx:i,dy:o}=t,a=te(t.active,t);let s=te(t.text,Object.assign({},t,{active:a}));s==null&&(s=""),typeof s=="number"&&(s=s.toString());const{style:l,flyoutStyle:c}=this.getStyles(Object.assign({},t,{active:a,text:s})),u=te(t.orientation,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c}))||this.getDefaultOrientation(t),d=te(t.flyoutPadding,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u}))||this.getLabelPadding(l),f=xt({padding:d}),h=te(t.pointerWidth,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u})),g=te(t.pointerLength,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u})),p=ia(s,l),{flyoutHeight:v,flyoutWidth:b}=this.getDimensions(Object.assign({},t,{style:l,flyoutStyle:c,active:a,text:s,orientation:u,flyoutPadding:f,pointerWidth:h,pointerLength:g}),p),x=Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u,flyoutHeight:v,flyoutWidth:b,flyoutPadding:f,pointerWidth:h,pointerLength:g}),S=Mt(r)&&(r==null?void 0:r.x)!==void 0?te(r.x,x):0,w=Mt(r)&&(r==null?void 0:r.y)!==void 0?te(r.y,x):0;return{...x,centerOffset:{x:S,y:w},dx:i!==void 0?te(i,x):0,dy:o!==void 0?te(o,x):0,cornerRadius:te(n,x)}}getCalculatedValues(t){const{style:n,text:r,flyoutStyle:i,flyoutHeight:o,flyoutWidth:a}=t,s=ia(r,n),l={height:o,width:a},c=this.getFlyoutCenter(t,l),u=this.getTransform(t);return{style:n,flyoutStyle:i,labelSize:s,flyoutDimensions:l,flyoutCenter:c,transform:u}}getTransform(t){const{x:n,y:r,style:i}=t,a=(i||{}).angle||t.angle||this.getDefaultAngle(t);return a?`rotate(${a} ${n} ${r})`:void 0}getDefaultAngle(t){const{polar:n,labelPlacement:r,orientation:i,datum:o}=t;if(!n||!r||r==="vertical")return 0;const a=Fl(t,o),s=a>90&&a<180||a>270?1:-1,l=r==="perpendicular"?0:90;let c=0;return a===0||a===180?c=i==="top"&&a===180?270:90:a>0&&a<180?c=90-a:a>180&&a<360&&(c=270-a),c+s*l}constrainTooltip(t,n,r){const{x:i,y:o}=t,{width:a,height:s}=r,l={x:[0,n.width],y:[0,n.height]},c={x:[i-a/2,i+a/2],y:[o-s/2,o+s/2]},u={x:[c.x[0]<l.x[0]?l.x[0]-c.x[0]:0,c.x[1]>l.x[1]?c.x[1]-l.x[1]:0],y:[c.y[0]<l.y[0]?l.y[0]-c.y[0]:0,c.y[1]>l.y[1]?c.y[1]-l.y[1]:0]};return{x:Math.round(i+u.x[0]-u.x[1]),y:Math.round(o+u.y[0]-u.y[1])}}getFlyoutCenter(t,n){const{x:r,y:i,dx:o,dy:a,pointerLength:s,orientation:l,constrainToVisibleArea:c,centerOffset:u}=t,{height:d,width:f}=n,h=l==="left"?-1:1,g=l==="bottom"?-1:1,p={x:l==="left"||l==="right"?r+h*(s+f/2+h*o):r+o,y:l==="top"||l==="bottom"?i-g*(s+d/2-g*a):i+a},v={x:Mt(t.center)&&t.center.x!==void 0?t.center.x:p.x,y:Mt(t.center)&&t.center.y!==void 0?t.center.y:p.y},b={x:v.x+u.x,y:v.y+u.y};return c?this.constrainTooltip(b,t,n):b}getLabelPadding(t){if(!t)return 0;const n=Array.isArray(t)?t.map(r=>r.padding):[t.padding];return Math.max(...n,0)}getDimensions(t,n){const{orientation:r,pointerLength:i,pointerWidth:o,flyoutHeight:a,flyoutWidth:s,flyoutPadding:l}=t,c=te(t.cornerRadius,t),u=()=>{const f=n.height+l.top+l.bottom,h=r==="top"||r==="bottom"?2*c:2*c+o;return Math.max(h,f)},d=()=>{const f=n.width+l.left+l.right,h=r==="left"||r==="right"?2*c+i:2*c;return Math.max(h,f)};return{flyoutHeight:a?te(a,t):u(),flyoutWidth:s?te(s,t):d()}}getLabelProps(t,n){const{flyoutCenter:r,style:i,labelSize:o,dy:a=0,dx:s=0}=n,{text:l,datum:c,activePoints:u,labelComponent:d,index:f,flyoutPadding:h}=t,g=(Array.isArray(i)&&i.length?i[0].textAnchor:i.textAnchor)||"middle",p=()=>{if(!g||g==="middle")return r.x;const v=g==="end"?-1:1;return r.x-v*(o.width/2)};return K({},d.props,{key:`${this.id}-label-${f}`,text:l,datum:c,activePoints:u,textAnchor:g,dy:a,dx:s,style:i,x:p()+(h.left-h.right)/2,y:r.y+(h.top-h.bottom)/2,verticalAnchor:"middle",angle:i.angle})}getPointerOrientation(t,n,r){const i={bottom:n.y+r.height/2,top:n.y-r.height/2,left:n.x-r.width/2,right:n.x+r.width/2},o=[{side:"top",val:i.top>t.y?i.top-t.y:-1},{side:"bottom",val:i.bottom<t.y?t.y-i.bottom:-1},{side:"right",val:i.right<t.x?t.x-i.right:-1},{side:"left",val:i.left>t.x?i.left-t.x:-1}];return ts(o,"val","desc")[0].side}getFlyoutProps(t,n){const{flyoutDimensions:r,flyoutStyle:i,flyoutCenter:o}=n,{x:a,y:s,dx:l,dy:c,datum:u,activePoints:d,index:f,pointerLength:h,pointerWidth:g,cornerRadius:p,events:v,flyoutComponent:b}=t,x=te(t.pointerOrientation,t);return K({},b.props,{x:a,y:s,dx:l,dy:c,datum:u,activePoints:d,index:f,pointerLength:h,pointerWidth:g,cornerRadius:p,events:v,orientation:x||this.getPointerOrientation({x:a,y:s},o,r),key:`${this.id}-tooltip-${f}`,width:r.width,height:r.height,style:i,center:o})}renderTooltip(t){const n=te(t.active,t),{renderInPortal:r}=t;if(!n)return null;const i=this.getEvaluatedProps(t),{flyoutComponent:o,labelComponent:a,groupComponent:s}=i,l=this.getCalculatedValues(i),c=[y.cloneElement(o,this.getFlyoutProps(i,l)),y.cloneElement(a,this.getLabelProps(i,l))],u=y.cloneElement(s,{role:"presentation",transform:l.transform},c);return r?y.createElement(nf,null,u):u}render(){const t=Bt(this.props,bae,"tooltip");return this.renderTooltip(t)}}ce(go,"displayName","VictoryTooltip"),ce(go,"role","tooltip"),ce(go,"defaultProps",{active:!1,renderInPortal:!0,labelComponent:y.createElement(en,null),flyoutComponent:y.createElement(vae,null),groupComponent:y.createElement("g",null)});const Xl=e=>{var{constrainToVisibleArea:t=!1,labelComponent:n=k.createElement(an,null),labelTextAnchor:r,themeColor:i,theme:o=on(i)}=e,a=Ae(e,["constrainToVisibleArea","labelComponent","labelTextAnchor","themeColor","theme"]);const s=k.cloneElement(n,Object.assign({textAnchor:r,theme:o},n.props));return k.createElement(go,Object.assign({constrainToVisibleArea:t,labelComponent:s,theme:o},a))};Xl.displayName="ChartTooltip",rn(Xl,go);const xae=(e,t)=>t.bubbleProperty?"circle":e.symbol||t.symbol,_ae=(e,t)=>{const{data:n,z:r,maxBubbleSize:i,minBubbleSize:o}=t,a=n.map(b=>b[r]),s=Math.min(...a),l=Math.max(...a),u=i||(()=>{const b=Math.min(...Object.values(xt(t)));return Math.max(b,5)})(),d=o||u*.1;if(l===s)return Math.max(d,1);const f=Math.PI*Math.pow(u,2),h=Math.PI*Math.pow(d,2),g=(e[r]-s)/(l-s)*f,p=Math.max(g,h),v=Math.sqrt(p/Math.PI);return Math.max(v,1)},Sae=(e,t)=>{const{size:n,z:r}=t;return e.size?typeof e.size=="function"?e.size:Math.max(e.size,1):typeof t.size=="function"?n:e[r]?_ae(e,t):Math.max(n||0,1)},wae=e=>{const t=sd(e,"scatter"),n=Cl(e.style,t),r={x:Nt(e,"x"),y:Nt(e,"y")},i={x:Jo(e,"x"),y:Jo(e,"y")},o={x:ir(e,"x").domain(i.x).range(e.horizontal?r.y:r.x),y:ir(e,"y").domain(i.y).range(e.horizontal?r.x:r.y)},a=e.polar?e.origin||El(e):void 0,s=e.bubbleProperty||"z";let l=dn(e);return l=zH(l,i),{domain:i,data:l,scale:o,style:n,origin:a,z:s}},Cae=(e,t)=>{const n=Bt(e,t,"scatter"),r=Object.assign({},n,wae(n)),{data:i,domain:o,events:a,height:s,origin:l,padding:c,polar:u,scale:d,name:f,sharedEvents:h,standalone:g,style:p,theme:v,width:b,labels:x,horizontal:S,disableInlineStyles:w}=r,_={parent:{style:p.parent,scale:d,domain:o,data:i,height:s,width:b,standalone:g,theme:v,origin:l,polar:u,padding:c,name:f,horizontal:S}};return i.reduce((E,O,T)=>{const D=di(O.eventKey)?T:O.eventKey,{x:j,y:A}=is(r,O),M={x:j,y:A,datum:O,data:i,index:T,scale:d,polar:u,origin:l,horizontal:S,size:Sae(O,r),symbol:xae(O,r),style:w?{}:p.data,disableInlineStyles:w};E[D]={data:M};const P=Md(r,O,T);return(P!=null||x&&(a||h))&&(E[D].labels=pg(r,T)),E},_)},x6={width:450,height:300,padding:50,size:3,symbol:"circle"};class Ai extends y.Component{static getBaseProps(t){return Cae(t,x6)}shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=yp,r=Bt(this.props,x6,n);if(this.shouldAnimate())return this.animateComponent(r,t);const i=this.renderData(r),o=r.standalone?this.renderContainer(r.containerComponent,i):i;return ud(o,r)}}ce(Ai,"animationWhitelist",["data","domain","height","maxBubbleSize","padding","samples","size","style","width"]),ce(Ai,"displayName","VictoryScatter"),ce(Ai,"role","scatter"),ce(Ai,"defaultTransitions",eG()),ce(Ai,"defaultProps",{containerComponent:y.createElement(Qt,null),dataComponent:y.createElement(Hw,null),labelComponent:y.createElement(en,null),groupComponent:y.createElement("g",null),samples:50,sortOrder:"ascending",standalone:!0,theme:Ar.grayscale}),ce(Ai,"getDomain",Jo),ce(Ai,"getData",dn),ce(Ai,"expectedComponents",["dataComponent","labelComponent","groupComponent","containerComponent"]);const yp=Yo(Ai),xf=e=>{var{containerComponent:t=k.createElement(cr,null),themeColor:n,theme:r=on(n)}=e,i=Ae(e,["containerComponent","themeColor","theme"]);const o=k.cloneElement(t,Object.assign({theme:r},t.props));return typeof i.size>"u"&&typeof i.bubbleProperty>"u"&&(i.size=({active:a})=>a?c6.activeSize:c6.size),k.createElement(yp,Object.assign({containerComponent:o,theme:r},i))};xf.displayName="ChartScatter",rn(xf,yp);var Eae=Er,Oae=function(){return Eae.Date.now()},kae=Oae,Tae=Tn,vp=kae,_6=ap,Aae="Expected a function",Dae=Math.max,jae=Math.min;function Pae(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(Aae);t=_6(t)||0,Tae(n)&&(u=!!n.leading,d="maxWait"in n,o=d?Dae(_6(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f);function h(E){var O=r,T=i;return r=i=void 0,c=E,a=e.apply(T,O),a}function g(E){return c=E,s=setTimeout(b,t),u?h(E):a}function p(E){var O=E-l,T=E-c,D=t-O;return d?jae(D,o-T):D}function v(E){var O=E-l,T=E-c;return l===void 0||O>=t||O<0||d&&T>=o}function b(){var E=vp();if(v(E))return x(E);s=setTimeout(b,p(E))}function x(E){return s=void 0,f&&r?h(E):(r=i=void 0,a)}function S(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function w(){return s===void 0?a:x(vp())}function _(){var E=vp(),O=v(E);if(r=arguments,i=this,l=E,O){if(s===void 0)return g(l);if(d)return clearTimeout(s),s=setTimeout(b,t),h(l)}return s===void 0&&(s=setTimeout(b,t)),a}return _.cancel=S,_.flush=w,_}var Mae=Pae,$ae=Mae,Iae=Tn,Lae="Expected a function";function Fae(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(Lae);return Iae(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),$ae(e,t,{leading:r,maxWait:t,trailing:i})}var Nae=Fae;const Cs=Fe(Nae),Bae=16;class Wae{constructor(){ce(this,"handleMouseMove",(t,n)=>{const{onCursorChange:r,domain:i}=n,o=this.getDimension(n),a=n.parentSVG||xi(t),s=Ur(t,a);let l=qd(n,n.scale,s.x,s.y);if(this.withinBounds(l,{x1:i.x[0],x2:i.x[1],y1:i.y[0],y2:i.y[1]})||(l=null),Se(r))if(l){const u=o?l[o]:l;r(u,n)}else l!==n.cursorValue&&r(n.defaultCursorValue||null,n);return[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:l,parentSVG:a})}]});ce(this,"onMouseMove",Cs(this.handleMouseMove,Bae,{leading:!0,trailing:!1}));ce(this,"onMouseLeave",this.handleMouseMove);ce(this,"onTouchEnd",(t,n)=>{const{onCursorChange:r}=n;return Se(n.onCursorChange)&&r(null,n),[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:null})}]})}getDimension(t){const{horizontal:n,cursorDimension:r}=t;return!n||!r?r:r==="x"?"y":"x"}withinBounds(t,n){const{x1:r,x2:i,y1:o,y2:a}=os(n,Number),{x:s,y:l}=os(t,Number);return s>=Math.min(r,i)&&s<=Math.max(r,i)&&l>=Math.min(o,a)&&l<=Math.max(o,a)}}const _f=new Wae,S6={cursorLabelComponent:y.createElement(en,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:y.createElement(Ci,null)},w6=e=>{const t={...S6,...e},{children:n}=t,r=()=>{const{cursorValue:s,defaultCursorValue:l,domain:c,cursorDimension:u}=t;return s||(typeof l=="number"?{x:(c.x[0]+c.x[1])/2,y:(c.y[0]+c.y[1])/2,...u?{[u]:l}:{}}:l)},i=()=>{const{cursorLabelOffset:s}=t;return typeof s=="number"?{x:s,y:s}:s},o=()=>{if(t.padding===void 0){const s=Array.isArray(t.children)?t.children.find(l=>ol(l.props)&&l.props.padding!==void 0):t.children;return xt(s==null?void 0:s.props)}return xt(t)},a=()=>{const{scale:s,cursorLabelComponent:l,cursorLabel:c,cursorComponent:u,width:d,height:f,name:h,horizontal:g,theme:p}=t,v=_f.getDimension(t),b=r(),x=i();if(!b)return[];const S=[],w=o(),_=s&&"x"in s&&"y"in s&&typeof s.y=="function"&&typeof s.x=="function"?{x:g?s.y(b.y):s.x(b.x),y:g?s.x(b.x):s.y(b.y)}:{x:b.x,y:b.y};if(c){let O=K({active:!0},l.props,{x:_.x+x.x,y:_.y+x.y,datum:b,active:!0,key:`${h}-cursor-label`});if(ad(l)){const T=p&&p.tooltip||{};O=K({},O,T)}S.push(y.cloneElement(l,K({},O,{text:te(c,O)})))}const E=Object.assign({stroke:"black"},u.props.style);return(v==="x"||v===void 0)&&S.push(y.cloneElement(u,{key:`${h}-x-cursor`,x1:_.x,x2:_.x,y1:w.top,y2:(typeof f=="number"?f:0)-w.bottom,style:E})),(v==="y"||v===void 0)&&S.push(y.cloneElement(u,{key:`${h}-y-cursor`,x1:w.left,x2:(typeof d=="number"?d:0)-w.right,y1:_.y,y2:_.y,style:E})),S};return{props:t,children:[...y.Children.toArray(n),...a()]}},bp=e=>{const{props:t,children:n}=w6(e);return y.createElement(Qt,t,n)};bp.role="container",bp.defaultEvents=e=>{const t={...S6,...e},n=(r,i)=>(o,a,s,l)=>t.disable?{}:r(o,{...t,...a},s,l);return[{target:"parent",eventHandlers:{onMouseLeave:n(_f.onMouseLeave),onMouseMove:n(_f.onMouseMove),onTouchMove:n(_f.onMouseMove)}}]};const C6={name:"--pf-v5-chart-color-black-500",value:"#6a6e73",var:"var(--pf-v5-chart-color-black-500, #6a6e73)"},zae=({offsetCursorDimensionX:e=!1,offsetCursorDimensionY:t=!1,theme:n})=>{const r=n&&n.tooltip?te(n.tooltip.pointerLength,void 0):10;return{x:e?({center:a,flyoutWidth:s,width:l})=>{const c=s/2+r;return l>a.x+s+r?c:-c}:0,y:t?({center:a,flyoutHeight:s,width:l})=>{const c=s/2+r;return l>a.y+s+r?-c:c}:0}},Rae=({horizontal:e=!0,theme:t})=>{const n=t&&t.tooltip?te(t.tooltip.pointerLength,void 0):10;return e?({center:o,flyoutWidth:a,width:s})=>s>o.x+a+n?"left":"right":({center:o,flyoutHeight:a,height:s})=>s>o.y+a+n?"top":"bottom"},E6=e=>_s({borderPadding:0,gutter:0,orientation:"vertical",padding:0,rowGutter:0,style:{labels:{fill:ur.label.fill,lineHeight:.275,padding:0},title:{fill:ur.label.fill,padding:0}}},Object.assign({},e)),xp=({legendData:e,legendOrientation:t="vertical",legendProps:n,minSpacing:r=1,text:i="",theme:o})=>{const a=te(i,void 0),s=Array.isArray(a)?a:[a];let l=0,c=0;s.map((b,x)=>{typeof b!="number"&&b&&(b.length>c&&(c=b.length),e&&e[x]&&e[x].name!==void 0&&e[x].name.length>l&&(l=e[x].name.length))});const u=l+c+r,d="x",f=(b,x)=>{let S=" ";if(u===0)return S;const w=b?b.length:0,_=x?x.length:0,E=w+_;for(;S.length<u-E;)S+=d;return S},g=s.map((b,x)=>{if(typeof b=="number")return;const S=e&&e[x]&&e[x].name!==void 0,w=S?f(e[x].name,b):"";return{name:`${S?e[x].name:""}${w}${b}`}}).map(b=>({name:b.name.replace(/ /g,d)})),p=Gr({legendData:g,legendOrientation:t,legendProps:n,theme:o});return{height:Gr({legendData:s.map(b=>({name:b})),legendOrientation:t,legendProps:n,theme:o}).height,width:p.width>0?p.width:0}},_p=({activePoints:e,colorScale:t,legendData:n,patternScale:r,text:i,textAsLegendData:o=!1,theme:a})=>{const s=te(i,void 0),l=Array.isArray(s)?s:[s],c=[];if(n){let u=-1;for(let d=0;d<n.length;d++){const f=n[d];if(!(!(e&&e.find(g=>g.childName===f.childName))||f.symbol&&f.symbol.type==="eyeSlash"&&f.symbol.fill===C6.var)&&u++<l.length-1){const g=a&&a.legend&&a.legend.colorScale?a.legend.colorScale[d%a.legend.colorScale.length]:void 0,p=t?t[d%t.length]:g,v=r?r[d%r.length]:void 0;c.push({name:o?l[u]:f.name,symbol:Object.assign({fill:v||p},f.symbol)})}}}return c},O6=({activePoints:e,legendData:t,text:n})=>{const r=te(n,void 0),i=Array.isArray(r)?r:[r],o=[];if(t){let a=-1;for(const s of t)!(e&&e.find(c=>c.childName===s.childName))||s.symbol&&s.symbol.type==="eyeSlash"&&s.symbol.fill===C6.var||a++<i.length-1&&o.push(i[a])}return o},Vae=e=>{const{pointerWidth:t,cornerRadius:n,orientation:r,width:i,height:o,center:a}=e,s=r==="bottom"?1:-1,l=Mt(a)&&a.x,c=Mt(a)&&a.y,u=c+s*(o/2),d=c-s*(o/2),f=l+i/2,h=l-i/2,g=a.x+(e.dx||0),p=r==="bottom"?u+e.pointerLength+(e.dy||0):u-e.pointerLength+(e.dy||0),v=s*(p-u)<0?0:e.pointerLength,x=`${n} ${n} ${r==="bottom"?"0 0 0":"0 0 1"}`;return`M ${l-t/2}, ${u}
|
295
|
+
z`},gae=e=>{const t=e.orientation||"top";return t==="left"||t==="right"?mae(e):hae(e)},pae=e=>{const t=te(e.id,e),n=st(e.style,e);return{...e,id:t,style:n}},yae={pathComponent:y.createElement(fo,null),role:"presentation",shapeRendering:"auto"},vae=e=>{const t=pae(Z({},e,yae)),n=Tr(t);cd(t.height,"Flyout props[height] is undefined"),cd(t.width,"Flyout props[width] is undefined"),cd(t.x,"Flyout props[x] is undefined"),cd(t.y,"Flyout props[y] is undefined");const r={center:t.center||{x:0,y:0},cornerRadius:t.cornerRadius||0,dx:t.dx,dy:t.dy,height:t.height,orientation:t.orientation||"top",pointerLength:t.pointerLength||0,pointerWidth:t.pointerWidth||0,width:t.width,x:t.x,y:t.y};return y.cloneElement(t.pathComponent,{...t.events,...n,style:t.style,d:gae(r),className:t.className,shapeRendering:t.shapeRendering,role:t.role,transform:t.transform,clipPath:t.clipPath})},bae={cornerRadius:5,pointerLength:10,pointerWidth:10};class go extends y.Component{static defaultEvents(t){const n=t.activateData?[{target:"labels",mutation:()=>({active:!0})},{target:"data",mutation:()=>({active:!0})}]:[{target:"labels",mutation:()=>({active:!0})}],r=t.activateData?[{target:"labels",mutation:()=>({active:void 0})},{target:"data",mutation:()=>({active:void 0})}]:[{target:"labels",mutation:()=>({active:void 0})}];return[{target:"data",eventHandlers:{onMouseOver:()=>n,onFocus:()=>n,onTouchStart:()=>n,onMouseOut:()=>r,onBlur:()=>r,onTouchEnd:()=>r}}]}constructor(t){super(t),this.id=t.id===void 0?_l("tooltip-"):t.id}getDefaultOrientation(t){const{datum:n,horizontal:r,polar:i}=t;if(!i){const o=r?"right":"top",a=r?"left":"bottom";return n&&n.y<0?a:o}return this.getPolarOrientation(t)}getPolarOrientation(t){const n=Fl(t,t.datum),r=t.labelPlacement||"vertical";return r==="vertical"?this.getVerticalOrientations(n):r==="parallel"?n<90||n>270?"right":"left":n>180?"bottom":"top"}getVerticalOrientations(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}getStyles(t){const n=t.theme||Ar.grayscale,r=n&&n.tooltip&&n.tooltip.style?n.tooltip.style:{},i=Array.isArray(t.style)?t.style.map(c=>Z({},c,r)):Z({},t.style,r),o=n&&n.tooltip&&n.tooltip.flyoutStyle?n.tooltip.flyoutStyle:{},a=t.flyoutStyle?Z({},t.flyoutStyle,o):o,s=Array.isArray(i)?i.map(c=>st(c,t)):st(i,t),l=st(a,Object.assign({},t,{style:s}));return{style:s,flyoutStyle:l}}getEvaluatedProps(t){const{cornerRadius:n,centerOffset:r,dx:i,dy:o}=t,a=te(t.active,t);let s=te(t.text,Object.assign({},t,{active:a}));s==null&&(s=""),typeof s=="number"&&(s=s.toString());const{style:l,flyoutStyle:c}=this.getStyles(Object.assign({},t,{active:a,text:s})),u=te(t.orientation,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c}))||this.getDefaultOrientation(t),d=te(t.flyoutPadding,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u}))||this.getLabelPadding(l),f=xt({padding:d}),h=te(t.pointerWidth,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u})),g=te(t.pointerLength,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u})),p=ia(s,l),{flyoutHeight:v,flyoutWidth:b}=this.getDimensions(Object.assign({},t,{style:l,flyoutStyle:c,active:a,text:s,orientation:u,flyoutPadding:f,pointerWidth:h,pointerLength:g}),p),x=Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u,flyoutHeight:v,flyoutWidth:b,flyoutPadding:f,pointerWidth:h,pointerLength:g}),S=Mt(r)&&(r==null?void 0:r.x)!==void 0?te(r.x,x):0,w=Mt(r)&&(r==null?void 0:r.y)!==void 0?te(r.y,x):0;return{...x,centerOffset:{x:S,y:w},dx:i!==void 0?te(i,x):0,dy:o!==void 0?te(o,x):0,cornerRadius:te(n,x)}}getCalculatedValues(t){const{style:n,text:r,flyoutStyle:i,flyoutHeight:o,flyoutWidth:a}=t,s=ia(r,n),l={height:o,width:a},c=this.getFlyoutCenter(t,l),u=this.getTransform(t);return{style:n,flyoutStyle:i,labelSize:s,flyoutDimensions:l,flyoutCenter:c,transform:u}}getTransform(t){const{x:n,y:r,style:i}=t,a=(i||{}).angle||t.angle||this.getDefaultAngle(t);return a?`rotate(${a} ${n} ${r})`:void 0}getDefaultAngle(t){const{polar:n,labelPlacement:r,orientation:i,datum:o}=t;if(!n||!r||r==="vertical")return 0;const a=Fl(t,o),s=a>90&&a<180||a>270?1:-1,l=r==="perpendicular"?0:90;let c=0;return a===0||a===180?c=i==="top"&&a===180?270:90:a>0&&a<180?c=90-a:a>180&&a<360&&(c=270-a),c+s*l}constrainTooltip(t,n,r){const{x:i,y:o}=t,{width:a,height:s}=r,l={x:[0,n.width],y:[0,n.height]},c={x:[i-a/2,i+a/2],y:[o-s/2,o+s/2]},u={x:[c.x[0]<l.x[0]?l.x[0]-c.x[0]:0,c.x[1]>l.x[1]?c.x[1]-l.x[1]:0],y:[c.y[0]<l.y[0]?l.y[0]-c.y[0]:0,c.y[1]>l.y[1]?c.y[1]-l.y[1]:0]};return{x:Math.round(i+u.x[0]-u.x[1]),y:Math.round(o+u.y[0]-u.y[1])}}getFlyoutCenter(t,n){const{x:r,y:i,dx:o,dy:a,pointerLength:s,orientation:l,constrainToVisibleArea:c,centerOffset:u}=t,{height:d,width:f}=n,h=l==="left"?-1:1,g=l==="bottom"?-1:1,p={x:l==="left"||l==="right"?r+h*(s+f/2+h*o):r+o,y:l==="top"||l==="bottom"?i-g*(s+d/2-g*a):i+a},v={x:Mt(t.center)&&t.center.x!==void 0?t.center.x:p.x,y:Mt(t.center)&&t.center.y!==void 0?t.center.y:p.y},b={x:v.x+u.x,y:v.y+u.y};return c?this.constrainTooltip(b,t,n):b}getLabelPadding(t){if(!t)return 0;const n=Array.isArray(t)?t.map(r=>r.padding):[t.padding];return Math.max(...n,0)}getDimensions(t,n){const{orientation:r,pointerLength:i,pointerWidth:o,flyoutHeight:a,flyoutWidth:s,flyoutPadding:l}=t,c=te(t.cornerRadius,t),u=()=>{const f=n.height+l.top+l.bottom,h=r==="top"||r==="bottom"?2*c:2*c+o;return Math.max(h,f)},d=()=>{const f=n.width+l.left+l.right,h=r==="left"||r==="right"?2*c+i:2*c;return Math.max(h,f)};return{flyoutHeight:a?te(a,t):u(),flyoutWidth:s?te(s,t):d()}}getLabelProps(t,n){const{flyoutCenter:r,style:i,labelSize:o,dy:a=0,dx:s=0}=n,{text:l,datum:c,activePoints:u,labelComponent:d,index:f,flyoutPadding:h}=t,g=(Array.isArray(i)&&i.length?i[0].textAnchor:i.textAnchor)||"middle",p=()=>{if(!g||g==="middle")return r.x;const v=g==="end"?-1:1;return r.x-v*(o.width/2)};return Z({},d.props,{key:`${this.id}-label-${f}`,text:l,datum:c,activePoints:u,textAnchor:g,dy:a,dx:s,style:i,x:p()+(h.left-h.right)/2,y:r.y+(h.top-h.bottom)/2,verticalAnchor:"middle",angle:i.angle})}getPointerOrientation(t,n,r){const i={bottom:n.y+r.height/2,top:n.y-r.height/2,left:n.x-r.width/2,right:n.x+r.width/2},o=[{side:"top",val:i.top>t.y?i.top-t.y:-1},{side:"bottom",val:i.bottom<t.y?t.y-i.bottom:-1},{side:"right",val:i.right<t.x?t.x-i.right:-1},{side:"left",val:i.left>t.x?i.left-t.x:-1}];return ts(o,"val","desc")[0].side}getFlyoutProps(t,n){const{flyoutDimensions:r,flyoutStyle:i,flyoutCenter:o}=n,{x:a,y:s,dx:l,dy:c,datum:u,activePoints:d,index:f,pointerLength:h,pointerWidth:g,cornerRadius:p,events:v,flyoutComponent:b}=t,x=te(t.pointerOrientation,t);return Z({},b.props,{x:a,y:s,dx:l,dy:c,datum:u,activePoints:d,index:f,pointerLength:h,pointerWidth:g,cornerRadius:p,events:v,orientation:x||this.getPointerOrientation({x:a,y:s},o,r),key:`${this.id}-tooltip-${f}`,width:r.width,height:r.height,style:i,center:o})}renderTooltip(t){const n=te(t.active,t),{renderInPortal:r}=t;if(!n)return null;const i=this.getEvaluatedProps(t),{flyoutComponent:o,labelComponent:a,groupComponent:s}=i,l=this.getCalculatedValues(i),c=[y.cloneElement(o,this.getFlyoutProps(i,l)),y.cloneElement(a,this.getLabelProps(i,l))],u=y.cloneElement(s,{role:"presentation",transform:l.transform},c);return r?y.createElement(nf,null,u):u}render(){const t=Bt(this.props,bae,"tooltip");return this.renderTooltip(t)}}ce(go,"displayName","VictoryTooltip"),ce(go,"role","tooltip"),ce(go,"defaultProps",{active:!1,renderInPortal:!0,labelComponent:y.createElement(en,null),flyoutComponent:y.createElement(vae,null),groupComponent:y.createElement("g",null)});const Xl=e=>{var{constrainToVisibleArea:t=!1,labelComponent:n=k.createElement(an,null),labelTextAnchor:r,themeColor:i,theme:o=on(i)}=e,a=Ae(e,["constrainToVisibleArea","labelComponent","labelTextAnchor","themeColor","theme"]);const s=k.cloneElement(n,Object.assign({textAnchor:r,theme:o},n.props));return k.createElement(go,Object.assign({constrainToVisibleArea:t,labelComponent:s,theme:o},a))};Xl.displayName="ChartTooltip",rn(Xl,go);const xae=(e,t)=>t.bubbleProperty?"circle":e.symbol||t.symbol,_ae=(e,t)=>{const{data:n,z:r,maxBubbleSize:i,minBubbleSize:o}=t,a=n.map(b=>b[r]),s=Math.min(...a),l=Math.max(...a),u=i||(()=>{const b=Math.min(...Object.values(xt(t)));return Math.max(b,5)})(),d=o||u*.1;if(l===s)return Math.max(d,1);const f=Math.PI*Math.pow(u,2),h=Math.PI*Math.pow(d,2),g=(e[r]-s)/(l-s)*f,p=Math.max(g,h),v=Math.sqrt(p/Math.PI);return Math.max(v,1)},Sae=(e,t)=>{const{size:n,z:r}=t;return e.size?typeof e.size=="function"?e.size:Math.max(e.size,1):typeof t.size=="function"?n:e[r]?_ae(e,t):Math.max(n||0,1)},wae=e=>{const t=sd(e,"scatter"),n=Cl(e.style,t),r={x:Nt(e,"x"),y:Nt(e,"y")},i={x:Jo(e,"x"),y:Jo(e,"y")},o={x:ir(e,"x").domain(i.x).range(e.horizontal?r.y:r.x),y:ir(e,"y").domain(i.y).range(e.horizontal?r.x:r.y)},a=e.polar?e.origin||El(e):void 0,s=e.bubbleProperty||"z";let l=dn(e);return l=zH(l,i),{domain:i,data:l,scale:o,style:n,origin:a,z:s}},Cae=(e,t)=>{const n=Bt(e,t,"scatter"),r=Object.assign({},n,wae(n)),{data:i,domain:o,events:a,height:s,origin:l,padding:c,polar:u,scale:d,name:f,sharedEvents:h,standalone:g,style:p,theme:v,width:b,labels:x,horizontal:S,disableInlineStyles:w}=r,_={parent:{style:p.parent,scale:d,domain:o,data:i,height:s,width:b,standalone:g,theme:v,origin:l,polar:u,padding:c,name:f,horizontal:S}};return i.reduce((E,O,T)=>{const D=di(O.eventKey)?T:O.eventKey,{x:j,y:A}=is(r,O),M={x:j,y:A,datum:O,data:i,index:T,scale:d,polar:u,origin:l,horizontal:S,size:Sae(O,r),symbol:xae(O,r),style:w?{}:p.data,disableInlineStyles:w};E[D]={data:M};const P=Md(r,O,T);return(P!=null||x&&(a||h))&&(E[D].labels=pg(r,T)),E},_)},x6={width:450,height:300,padding:50,size:3,symbol:"circle"};class Ai extends y.Component{static getBaseProps(t){return Cae(t,x6)}shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=yp,r=Bt(this.props,x6,n);if(this.shouldAnimate())return this.animateComponent(r,t);const i=this.renderData(r),o=r.standalone?this.renderContainer(r.containerComponent,i):i;return ud(o,r)}}ce(Ai,"animationWhitelist",["data","domain","height","maxBubbleSize","padding","samples","size","style","width"]),ce(Ai,"displayName","VictoryScatter"),ce(Ai,"role","scatter"),ce(Ai,"defaultTransitions",eG()),ce(Ai,"defaultProps",{containerComponent:y.createElement(Qt,null),dataComponent:y.createElement(Hw,null),labelComponent:y.createElement(en,null),groupComponent:y.createElement("g",null),samples:50,sortOrder:"ascending",standalone:!0,theme:Ar.grayscale}),ce(Ai,"getDomain",Jo),ce(Ai,"getData",dn),ce(Ai,"expectedComponents",["dataComponent","labelComponent","groupComponent","containerComponent"]);const yp=Yo(Ai),xf=e=>{var{containerComponent:t=k.createElement(cr,null),themeColor:n,theme:r=on(n)}=e,i=Ae(e,["containerComponent","themeColor","theme"]);const o=k.cloneElement(t,Object.assign({theme:r},t.props));return typeof i.size>"u"&&typeof i.bubbleProperty>"u"&&(i.size=({active:a})=>a?c6.activeSize:c6.size),k.createElement(yp,Object.assign({containerComponent:o,theme:r},i))};xf.displayName="ChartScatter",rn(xf,yp);var Eae=Er,Oae=function(){return Eae.Date.now()},kae=Oae,Tae=Tn,vp=kae,_6=ap,Aae="Expected a function",Dae=Math.max,jae=Math.min;function Pae(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(Aae);t=_6(t)||0,Tae(n)&&(u=!!n.leading,d="maxWait"in n,o=d?Dae(_6(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f);function h(E){var O=r,T=i;return r=i=void 0,c=E,a=e.apply(T,O),a}function g(E){return c=E,s=setTimeout(b,t),u?h(E):a}function p(E){var O=E-l,T=E-c,D=t-O;return d?jae(D,o-T):D}function v(E){var O=E-l,T=E-c;return l===void 0||O>=t||O<0||d&&T>=o}function b(){var E=vp();if(v(E))return x(E);s=setTimeout(b,p(E))}function x(E){return s=void 0,f&&r?h(E):(r=i=void 0,a)}function S(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function w(){return s===void 0?a:x(vp())}function _(){var E=vp(),O=v(E);if(r=arguments,i=this,l=E,O){if(s===void 0)return g(l);if(d)return clearTimeout(s),s=setTimeout(b,t),h(l)}return s===void 0&&(s=setTimeout(b,t)),a}return _.cancel=S,_.flush=w,_}var Mae=Pae,$ae=Mae,Iae=Tn,Lae="Expected a function";function Fae(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(Lae);return Iae(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),$ae(e,t,{leading:r,maxWait:t,trailing:i})}var Nae=Fae;const Cs=Fe(Nae),Bae=16;class Wae{constructor(){ce(this,"handleMouseMove",(t,n)=>{const{onCursorChange:r,domain:i}=n,o=this.getDimension(n),a=n.parentSVG||xi(t),s=Ur(t,a);let l=qd(n,n.scale,s.x,s.y);if(this.withinBounds(l,{x1:i.x[0],x2:i.x[1],y1:i.y[0],y2:i.y[1]})||(l=null),Se(r))if(l){const u=o?l[o]:l;r(u,n)}else l!==n.cursorValue&&r(n.defaultCursorValue||null,n);return[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:l,parentSVG:a})}]});ce(this,"onMouseMove",Cs(this.handleMouseMove,Bae,{leading:!0,trailing:!1}));ce(this,"onMouseLeave",this.handleMouseMove);ce(this,"onTouchEnd",(t,n)=>{const{onCursorChange:r}=n;return Se(n.onCursorChange)&&r(null,n),[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:null})}]})}getDimension(t){const{horizontal:n,cursorDimension:r}=t;return!n||!r?r:r==="x"?"y":"x"}withinBounds(t,n){const{x1:r,x2:i,y1:o,y2:a}=os(n,Number),{x:s,y:l}=os(t,Number);return s>=Math.min(r,i)&&s<=Math.max(r,i)&&l>=Math.min(o,a)&&l<=Math.max(o,a)}}const _f=new Wae,S6={cursorLabelComponent:y.createElement(en,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:y.createElement(Ci,null)},w6=e=>{const t={...S6,...e},{children:n}=t,r=()=>{const{cursorValue:s,defaultCursorValue:l,domain:c,cursorDimension:u}=t;return s||(typeof l=="number"?{x:(c.x[0]+c.x[1])/2,y:(c.y[0]+c.y[1])/2,...u?{[u]:l}:{}}:l)},i=()=>{const{cursorLabelOffset:s}=t;return typeof s=="number"?{x:s,y:s}:s},o=()=>{if(t.padding===void 0){const s=Array.isArray(t.children)?t.children.find(l=>ol(l.props)&&l.props.padding!==void 0):t.children;return xt(s==null?void 0:s.props)}return xt(t)},a=()=>{const{scale:s,cursorLabelComponent:l,cursorLabel:c,cursorComponent:u,width:d,height:f,name:h,horizontal:g,theme:p}=t,v=_f.getDimension(t),b=r(),x=i();if(!b)return[];const S=[],w=o(),_=s&&"x"in s&&"y"in s&&typeof s.y=="function"&&typeof s.x=="function"?{x:g?s.y(b.y):s.x(b.x),y:g?s.x(b.x):s.y(b.y)}:{x:b.x,y:b.y};if(c){let O=Z({active:!0},l.props,{x:_.x+x.x,y:_.y+x.y,datum:b,active:!0,key:`${h}-cursor-label`});if(ad(l)){const T=p&&p.tooltip||{};O=Z({},O,T)}S.push(y.cloneElement(l,Z({},O,{text:te(c,O)})))}const E=Object.assign({stroke:"black"},u.props.style);return(v==="x"||v===void 0)&&S.push(y.cloneElement(u,{key:`${h}-x-cursor`,x1:_.x,x2:_.x,y1:w.top,y2:(typeof f=="number"?f:0)-w.bottom,style:E})),(v==="y"||v===void 0)&&S.push(y.cloneElement(u,{key:`${h}-y-cursor`,x1:w.left,x2:(typeof d=="number"?d:0)-w.right,y1:_.y,y2:_.y,style:E})),S};return{props:t,children:[...y.Children.toArray(n),...a()]}},bp=e=>{const{props:t,children:n}=w6(e);return y.createElement(Qt,t,n)};bp.role="container",bp.defaultEvents=e=>{const t={...S6,...e},n=(r,i)=>(o,a,s,l)=>t.disable?{}:r(o,{...t,...a},s,l);return[{target:"parent",eventHandlers:{onMouseLeave:n(_f.onMouseLeave),onMouseMove:n(_f.onMouseMove),onTouchMove:n(_f.onMouseMove)}}]};const C6={name:"--pf-v5-chart-color-black-500",value:"#6a6e73",var:"var(--pf-v5-chart-color-black-500, #6a6e73)"},zae=({offsetCursorDimensionX:e=!1,offsetCursorDimensionY:t=!1,theme:n})=>{const r=n&&n.tooltip?te(n.tooltip.pointerLength,void 0):10;return{x:e?({center:a,flyoutWidth:s,width:l})=>{const c=s/2+r;return l>a.x+s+r?c:-c}:0,y:t?({center:a,flyoutHeight:s,width:l})=>{const c=s/2+r;return l>a.y+s+r?-c:c}:0}},Rae=({horizontal:e=!0,theme:t})=>{const n=t&&t.tooltip?te(t.tooltip.pointerLength,void 0):10;return e?({center:o,flyoutWidth:a,width:s})=>s>o.x+a+n?"left":"right":({center:o,flyoutHeight:a,height:s})=>s>o.y+a+n?"top":"bottom"},E6=e=>_s({borderPadding:0,gutter:0,orientation:"vertical",padding:0,rowGutter:0,style:{labels:{fill:ur.label.fill,lineHeight:.275,padding:0},title:{fill:ur.label.fill,padding:0}}},Object.assign({},e)),xp=({legendData:e,legendOrientation:t="vertical",legendProps:n,minSpacing:r=1,text:i="",theme:o})=>{const a=te(i,void 0),s=Array.isArray(a)?a:[a];let l=0,c=0;s.map((b,x)=>{typeof b!="number"&&b&&(b.length>c&&(c=b.length),e&&e[x]&&e[x].name!==void 0&&e[x].name.length>l&&(l=e[x].name.length))});const u=l+c+r,d="x",f=(b,x)=>{let S=" ";if(u===0)return S;const w=b?b.length:0,_=x?x.length:0,E=w+_;for(;S.length<u-E;)S+=d;return S},g=s.map((b,x)=>{if(typeof b=="number")return;const S=e&&e[x]&&e[x].name!==void 0,w=S?f(e[x].name,b):"";return{name:`${S?e[x].name:""}${w}${b}`}}).map(b=>({name:b.name.replace(/ /g,d)})),p=Gr({legendData:g,legendOrientation:t,legendProps:n,theme:o});return{height:Gr({legendData:s.map(b=>({name:b})),legendOrientation:t,legendProps:n,theme:o}).height,width:p.width>0?p.width:0}},_p=({activePoints:e,colorScale:t,legendData:n,patternScale:r,text:i,textAsLegendData:o=!1,theme:a})=>{const s=te(i,void 0),l=Array.isArray(s)?s:[s],c=[];if(n){let u=-1;for(let d=0;d<n.length;d++){const f=n[d];if(!(!(e&&e.find(g=>g.childName===f.childName))||f.symbol&&f.symbol.type==="eyeSlash"&&f.symbol.fill===C6.var)&&u++<l.length-1){const g=a&&a.legend&&a.legend.colorScale?a.legend.colorScale[d%a.legend.colorScale.length]:void 0,p=t?t[d%t.length]:g,v=r?r[d%r.length]:void 0;c.push({name:o?l[u]:f.name,symbol:Object.assign({fill:v||p},f.symbol)})}}}return c},O6=({activePoints:e,legendData:t,text:n})=>{const r=te(n,void 0),i=Array.isArray(r)?r:[r],o=[];if(t){let a=-1;for(const s of t)!(e&&e.find(c=>c.childName===s.childName))||s.symbol&&s.symbol.type==="eyeSlash"&&s.symbol.fill===C6.var||a++<i.length-1&&o.push(i[a])}return o},Vae=e=>{const{pointerWidth:t,cornerRadius:n,orientation:r,width:i,height:o,center:a}=e,s=r==="bottom"?1:-1,l=Mt(a)&&a.x,c=Mt(a)&&a.y,u=c+s*(o/2),d=c-s*(o/2),f=l+i/2,h=l-i/2,g=a.x+(e.dx||0),p=r==="bottom"?u+e.pointerLength+(e.dy||0):u-e.pointerLength+(e.dy||0),v=s*(p-u)<0?0:e.pointerLength,x=`${n} ${n} ${r==="bottom"?"0 0 0":"0 0 1"}`;return`M ${l-t/2}, ${u}
|
296
296
|
L ${v?g:l+t/2}, ${v?p:u}
|
297
297
|
L ${l+t/2}, ${u}
|
298
298
|
L ${f-n}, ${u}
|
@@ -314,9 +314,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[ru]+=1);const iu=De.button`
|
|
314
314
|
A ${x} ${d-s*n}, ${h}
|
315
315
|
L ${u+s*n}, ${h}
|
316
316
|
A ${x} ${u}, ${h+n}
|
317
|
-
z`},Hae=e=>{const t=e.orientation||"top";return t==="left"||t==="right"?Uae(e):Vae(e)},Gae=e=>{const t=te(e.id,e),n=st(e.style,e);return Object.assign({},e,{id:t,style:n})},qae=e=>(e=Gae(Object.assign({pathComponent:k.createElement(fo,null),role:"presentation",shapeRendering:"auto"},e)),k.cloneElement(e.pathComponent,Object.assign(Object.assign({},e.events),{style:e.style,d:Hae(e),className:e.className,shapeRendering:e.shapeRendering,role:e.role,transform:e.transform,clipPath:e.clipPath}))),Sf=e=>{var{constrainToVisibleArea:t=!0,flyoutComponent:n=k.createElement(qae,null),labelTextAnchor:r="start",showPointer:i=!0,style:o,themeColor:a,theme:s=on(a),centerOffset:l=zae({offsetCursorDimensionX:!0,theme:s}),pointerOrientation:c=Rae({horizontal:!0,theme:s}),pointerLength:u=i&&s&&s.tooltip?s.tooltip.pointerLength:0,pointerWidth:d=s.tooltip.pointerWidth}=e,f=Ae(e,["constrainToVisibleArea","flyoutComponent","labelTextAnchor","showPointer","style","themeColor","theme","centerOffset","pointerOrientation","pointerLength","pointerWidth"]);const h=v=>Object.assign(Object.assign({},v),{textAnchor:r}),g=Array.isArray(o)?o.map(h):h(o),p=()=>{let v=te(u,void 0);return i&&v===0&&(v=s&&s.tooltip?te(s.tooltip.pointerLength,void 0):10),k.cloneElement(n,Object.assign({pointerLength:v,pointerWidth:d},n.props))};return k.createElement(Xl,Object.assign({centerOffset:l,constrainToVisibleArea:t,flyoutComponent:p(),labelTextAnchor:r,pointerOrientation:c,style:g,theme:s},f))};Sf.displayName="ChartCursorTooltip",rn(Sf,go);const Yae=e=>e==null||Se(e)?e:`${e}`,Kae=(e,t,n)=>e&&e.data&&e.data.fill?e.data.fill:t&&t[n%t.length],Zae=(e,t)=>typeof e.radius=="number"?e.radius:Math.min(e.width-t.left-t.right,e.height-t.top-t.bottom)/2,Xae=(e,t)=>{const{width:n,height:r}=e,i=Mt(e.origin)?e.origin:{};return{x:i.x!==void 0?i.x:(t.left-t.right+n)/2,y:i.y!==void 0?i.y:(t.top-t.bottom+r)/2}},Jae=(e,t)=>{const n=Se(e.padAngle)?0:e.padAngle;return kS().sort(null).startAngle(dt(e.startAngle)).endAngle(dt(e.endAngle)).padAngle(dt(n)).value(i=>i._y)(t)},Qae=e=>{var t;return Array.isArray(e.categories)?e.categories:((t=e==null?void 0:e.categories)==null?void 0:t.x)??[]},ese=(e,t)=>{const n=[];return Qae(e).forEach(r=>{const i=t.findIndex(o=>{let{x:a}=o;return a===r});if(i>=0){const o=t.splice(i,1)[0];n.push(o)}}),[...n,...t]},tse=e=>{const{colorScale:t,theme:n}=e,r=sd(e,"pie"),i=Cl(e.style,r),o=Array.isArray(t)?t:Rg(t,n),a=xt(e),s=Zae(e,a),l=Xae(e,a),c=ese(e,dn(e)),u=Jae(e,c);return Object.assign({},e,{style:i,colors:o,padding:a,defaultRadius:s,data:c,slices:u,origin:l})},nse=(e,t)=>{const{style:n,colors:r}=t,i=Kae(n,r,e);return Object.assign({fill:i},n.data)},rse=(e,t,n)=>{let r;return t.label?r=t.label:Array.isArray(e.labels)?r=e.labels[n]:r=Se(e.labels)?e.labels:t.xName||t._x,Yae(r)},ise=e=>bg().outerRadius(e).innerRadius(e),ose=(e,t,n)=>{const r=n&&n.padding||0;return t||e+r},ase=(e,t,n)=>{const r={startAngle:n==="startAngle"?t.startAngle:t.endAngle,endAngle:n==="endAngle"?t.endAngle:t.startAngle},i=Object.assign({},t,r);return e.centroid(i)},sse=(e,t)=>t==="perpendicular"?e>90&&e<270?"bottom":"top":t==="parallel"?e>=0&&e<=180?"right":"left":e<45||e>315?"top":e>=45&&e<135?"right":e>=135&&e<225?"bottom":"left",lse=e=>e==="top"||e==="bottom"?"middle":e==="right"?"start":"end",cse=e=>e==="left"||e==="right"?"middle":e==="bottom"?"start":"end",use=(e,t,n)=>{let r=0;return t.angle!==void 0?r=n.angle:t==="centroid"?r=ui((e.startAngle+e.endAngle)/2):r=ui(t==="startAngle"?e.startAngle:e.endAngle),(r<0?360-r:r)%360},dse=(e,t)=>t==="vertical"?0:t==="parallel"?e>180&&e<360?e+90:e-90:e>90&&e<270?e-180:e,fse=(e,t,n)=>{const{index:r,datum:i,data:o,slice:a,labelComponent:s,theme:l}=t,{style:c,defaultRadius:u,origin:d,width:f,height:h}=n,g=te(n.labelRadius,Object.assign({text:e},t)),p=te(n.labelPosition,Object.assign({text:e},t))||"centroid",v=te(n.labelPlacement,Object.assign({text:e},t))||"vertical",b=Object.assign({padding:0},c.labels),x=st(b,Object.assign({labelRadius:g,text:e},t)),S=ose(u,g,x),w=ise(S),_=ase(w,a,p),E=use(a,p,b),O=dse(E,v),T=sse(E,v),D=b.textAnchor||lse(T),j=b.verticalAnchor||cse(T),A={width:f,height:h,index:r,datum:i,data:o,slice:a,orientation:T,text:e,style:b,x:Math.round(_[0])+d.x,y:Math.round(_[1])+d.y,textAnchor:D,verticalAnchor:j,angle:O,calculatedLabelRadius:S};if(!ad(s))return A;const M=l&&l.tooltip||{};return K({},A,wl(M,["style"]))},hse=e=>Math.cos(e-dt(90)),mse=e=>Math.sin(e-dt(90)),k6=(e,t)=>e*hse(t),T6=(e,t)=>e*mse(t),A6=e=>e.reduce((t,n)=>t+n,0)/e.length,gse=(e,t,n)=>{const{innerRadius:r,radius:i,slice:{startAngle:o,endAngle:a},labelIndicatorInnerOffset:s,labelIndicatorOuterOffset:l,index:c}=e,{height:u,width:d}=t,{calculatedLabelRadius:f}=n,h=A6([r,i]),g=A6([a,o]),p=d/2,v=u/2,b=h+s,x=f-l,S=p+k6(b,g),w=v+T6(b,g),_=p+k6(x,g),E=v+T6(x,g);return K({},{x1:S,y1:w,x2:_,y2:E,index:c})},pse=(e,t)=>{const n=Bt(e,t,"pie"),r=tse(n),{slices:i,style:o,data:a,origin:s,defaultRadius:l,labels:c,events:u,sharedEvents:d,height:f,width:h,standalone:g,name:p,innerRadius:v,cornerRadius:b,padAngle:x,disableInlineStyles:S,labelIndicator:w}=r,_=n.radius||l,E={parent:{standalone:g,height:f,width:h,slices:i,name:p,style:o.parent}};return i.reduce((O,T,D)=>{const j=K({},a[D],{startAngle:ui(T.startAngle),endAngle:ui(T.endAngle),padAngle:ui(T.padAngle)}),A=di(j.eventKey)?D:j.eventKey,M={index:D,slice:T,datum:j,data:a,origin:s,innerRadius:v,radius:_,cornerRadius:b,padAngle:x,style:S?{}:nse(D,r),disableInlineStyles:S};O[A]={data:M};const P=rse(n,j,D);if(P!=null||c&&(u||d)){const $=te(P,M);if(O[A].labels=fse($,Object.assign({},n,M),r),w){const L=O[A].labels;L.calculatedLabelRadius>_&&(O[A].labelIndicators=gse(Object.assign({},n,M),r,L))}}return O},E)},yse=e=>{const{slice:t,radius:n,innerRadius:r,cornerRadius:i}=e;if(Se(e.pathFunction))return e.pathFunction(t);const o=dt(e.padAngle),a=dt(e.sliceStartAngle),s=dt(e.sliceEndAngle);return bg().cornerRadius(i).outerRadius(n).innerRadius(r||0)(K({startAngle:a,endAngle:s,padAngle:o},t))},vse=e=>{const t=st(e.style,e),n=te(e.radius,Object.assign({},e,{style:t})),r=te(e.innerRadius,Object.assign({},e,{style:t,radius:n})),i=te(e.ariaLabel,e),o=te(e.id,e),a=te(e.cornerRadius,e),s=te(e.padAngle,e),l=te(e.sliceStartAngle,e),c=te(e.sliceEndAngle,e),u=te(e.tabIndex,e);return Object.assign({},e,{ariaLabel:i,style:t,radius:n,innerRadius:r,id:o,cornerRadius:a,padAngle:s,sliceStartAngle:l,sliceEndAngle:c,tabIndex:u})},bse={pathComponent:y.createElement(fo,null),role:"presentation",shapeRendering:"auto"},xse=e=>{const t=vse(K({},e,bse)),n=t.origin?`translate(${t.origin.x}, ${t.origin.y})`:void 0;return y.cloneElement(t.pathComponent,{...t.events,"aria-label":t.ariaLabel,d:yse(t),style:t.style,transform:t.transform||n,className:t.className,role:t.role,shapeRendering:t.shapeRendering,clipPath:t.clipPath,tabIndex:t.tabIndex})},D6={endAngle:360,height:400,innerRadius:0,cornerRadius:0,padAngle:0,padding:30,width:400,startAngle:0,colorScale:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],labelPosition:"centroid",labelIndicatorInnerOffset:15,labelIndicatorOuterOffset:5},_se=e=>!di(e._x)&&!di(e._y);class po extends y.Component{static getBaseProps(t){return pse(t,D6)}shouldAnimate(){return!!this.props.animate}renderComponents(t,n){n===void 0&&(n=_se);const{dataComponent:r,labelComponent:i,groupComponent:o,labelIndicator:a,labelPosition:s}=t;if(!o)throw new Error("VictoryPie expects a groupComponent prop");const l=a&&s==="centroid",c=[];if(r){const u=this.dataKeys.reduce((d,f,h)=>{const g=this.getComponentProps(r,"data",h);return n(g.datum)&&d.push(y.cloneElement(r,g)),d},[]);c.push(...u)}if(i){const u=this.dataKeys.map((d,f)=>{const h=this.getComponentProps(i,"labels",f);if(h.text!==void 0&&h.text!==null)return y.cloneElement(i,h)}).filter(d=>d!==void 0);c.push(...u)}if(l&&a){let u=y.createElement(Ci,null);typeof a=="object"&&(u=a);const d=this.dataKeys.map((f,h)=>{const g=this.getComponentProps(u,"labelIndicators",h);return y.cloneElement(u,g)});c.push(...d)}return this.renderContainer(o,c)}render(){const{animationWhitelist:t,role:n}=Jl,r=Bt(this.props,D6,n);if(this.shouldAnimate())return this.animateComponent(r,t);const i=this.renderComponents(r),o=r.standalone?this.renderContainer(r.containerComponent,i):i;return ud(o,r)}}ce(po,"animationWhitelist",["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"]),ce(po,"displayName","VictoryPie"),ce(po,"role","pie"),ce(po,"defaultTransitions",{onExit:{duration:500,before:()=>({_y:0,label:" "})},onEnter:{duration:500,before:()=>({_y:0,label:" "}),after:t=>({y_:t._y,label:t.label})}}),ce(po,"defaultProps",{data:[{x:"A",y:1},{x:"B",y:2},{x:"C",y:3},{x:"D",y:1},{x:"E",y:2}],standalone:!0,dataComponent:y.createElement(xse,null),labelComponent:y.createElement(en,null),containerComponent:y.createElement(Qt,null),groupComponent:y.createElement("g",null),sortOrder:"ascending",theme:Ar.grayscale}),ce(po,"getData",dn),ce(po,"expectedComponents",["dataComponent","labelComponent","groupComponent","containerComponent","labelIndicatorComponent"]);const Jl=Yo(po),Sp=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,colorScale:i,constrainToVisibleArea:o=!1,containerComponent:a=k.createElement(cr,null),hasPatterns:s,legendAllowWrap:l=!1,legendComponent:c=k.createElement(ws,null),legendData:u,legendPosition:d=tn.legend.position,legendDirection:f="ltr",name:h,patternScale:g,patternUnshiftIndex:p,padding:v,radius:b,standalone:x=!0,style:S,themeColor:w,theme:_=on(w),labelComponent:E=t?k.createElement(Xl,{constrainToVisibleArea:o,theme:_}):void 0,legendOrientation:O=_.legend.orientation,height:T=_.pie.height,width:D=_.pie.width}=e,j=Ae(e,["allowTooltip","ariaDesc","ariaTitle","colorScale","constrainToVisibleArea","containerComponent","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","legendDirection","name","patternScale","patternUnshiftIndex","padding","radius","standalone","style","themeColor","theme","labelComponent","legendOrientation","height","width"]);const A={bottom:Gn("bottom",v,_.pie.padding),left:Gn("left",v,_.pie.padding),right:Gn("right",v,_.pie.padding),top:Gn("top",v,_.pie.padding)},{defaultColorScale:M,defaultPatternScale:P,isPatternDefs:$,patternId:L}=up({colorScale:i,hasPatterns:s,patternScale:g,themeColorScale:_.pie.colorScale}),G=b||(()=>{const J=Vr({height:T,width:D,padding:A});return J>-1?J:void 0})(),U=()=>{if(!P)return S;const J=S?Object.assign({},S):{};return J.data=Object.assign({fill:({slice:ie})=>{const ue=P[ie.index%P.length];return ue||M[ie.index%M.length]}},J.data),J},V=k.createElement(Jl,Object.assign({colorScale:i,height:T,key:"pf-chart-pie",labelComponent:E,name:h,padding:v,radius:G,standalone:!1,style:U(),theme:_,width:D},j));let N=0;f==="rtl"&&(N=h6(u,_));const H=k.cloneElement(c,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({colorScale:i,data:u},h&&{name:`${h}-${c.type.displayName}`}),{key:"pf-chart-pie-legend",orientation:O,theme:_,themeColor:w}),f==="rtl"&&{dataComponent:c.props.dataComponent?k.cloneElement(c.props.dataComponent,{transform:`translate(${N})`}):k.createElement(yf,{transform:`translate(${N})`})}),f==="rtl"&&{labelComponent:c.props.labelComponent?k.cloneElement(c.props.labelComponent,{direction:"rtl",dx:N-30}):k.createElement(an,{direction:"rtl",dx:N-30})}),c.props)),Q=()=>H.props.data?m6(Object.assign({allowWrap:l===!0||typeof l=="function",chartType:"pie",height:T,legendComponent:H,padding:A,position:d,theme:_,width:D},P&&{patternScale:P})):null,ee=x?k.cloneElement(a,Object.assign({desc:n,height:T,title:r,width:D,theme:_},a.props),[V,Q(),$&&cp({patternId:L,colorScale:M,patternUnshiftIndex:p})]):null,X=Q();return y.useEffect(()=>{if(X!=null&&X.props&&typeof l=="function"){const J=g6({legendData:X.props.data,legendOrientation:X.props.orientation,legendProps:X.props,theme:_});l(J)}},[X,l,_,D]),x?k.createElement(k.Fragment,null,ee):k.createElement(k.Fragment,null,V,X,$&&cp({patternId:L,colorScale:M,patternUnshiftIndex:p}))};Sp.displayName="ChartPie",rn(Sp,Jl);const wf=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,capHeight:i=1.1,containerComponent:o=k.createElement(cr,null),innerRadius:a,legendPosition:s=tn.legend.position,legendDirection:l="ltr",name:c,padAngle:u,padding:d,radius:f,standalone:h=!0,subTitle:g,subTitleComponent:p,subTitlePosition:v=Zl.label.subTitlePosition,themeColor:b,title:x,titleComponent:S=k.createElement(an,null),theme:w=tae(b),height:_=w.pie.height,width:E=w.pie.width}=e,O=Ae(e,["allowTooltip","ariaDesc","ariaTitle","capHeight","containerComponent","innerRadius","legendPosition","legendDirection","name","padAngle","padding","radius","standalone","subTitle","subTitleComponent","subTitlePosition","themeColor","title","titleComponent","theme","height","width"]);const T=Ss(b),D={bottom:Gn("bottom",d,w.pie.padding),left:Gn("left",d,w.pie.padding),right:Gn("right",d,w.pie.padding),top:Gn("top",d,w.pie.padding)},j=f?te(f,void 0):Vr({height:_,width:E,padding:D}),A=a?te(a,void 0):j-9,M=g&&v==="center",P=()=>!p&&M?z({styles:[Zl.label.title,Zl.label.subTitle],titles:[x,g]}):k.createElement(k.Fragment,{key:"pf-chart-donut-titles"},z({titles:x,dy:M?-8:0}),L({textComponent:p,dy:M?15:0})),$=({datum:V})=>V._y>0?w.pie.padAngle:0,L=({dy:V=0,textComponent:N=k.createElement(an,null)})=>{if(!g)return null;const H=N.props?N.props:{};return k.cloneElement(N,Object.assign(Object.assign(Object.assign(Object.assign({},c&&{id:`${c}-${N.type.displayName}-subTitle`}),{key:"pf-chart-donut-subtitle",style:Zl.label.subTitle,text:g,textAnchor:v==="right"?"start":"middle",verticalAnchor:"middle",x:u6({height:_,labelPosition:v,legendPosition:s,padding:D,width:E}),y:d6({dy:V,height:_,labelPosition:v,padding:D,width:E})}),H),(T==null?void 0:T.label)&&T.label))},z=({dy:V=0,styles:N=Zl.label.title,titles:H=x})=>{if(!H)return null;const Q=S?S.props:{};return k.cloneElement(S,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Array.isArray(H)&&{capHeight:i}),c&&{id:`${c}-${S.type.displayName}-title`}),{key:"pf-chart-donut-title",style:N,text:H,textAnchor:"middle",verticalAnchor:"middle",x:u6({height:_,labelPosition:"center",legendPosition:s,padding:D,width:E}),y:d6({dy:V,height:_,labelPosition:"center",padding:D,width:E})}),Q),(T==null?void 0:T.label)&&T.label))},G=k.createElement(Sp,Object.assign({allowTooltip:t,height:_,innerRadius:A>0?A:0,key:"pf-chart-donut-pie",legendPosition:s,legendDirection:l,name:c,padAngle:u!==void 0?u:$,padding:d,radius:j>0?j:0,standalone:!1,theme:w,themeColor:b,width:E},O)),U=k.cloneElement(o,Object.assign({desc:n,height:_,title:r,width:E,theme:w},o.props),[G,P()]);return h?k.createElement(k.Fragment,null,U):k.createElement(k.Fragment,null,G,P())};wf.displayName="ChartDonut",rn(wf,Jl);const wp=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,colorScale:i,containerComponent:o=k.createElement(cr,null),data:a,invert:s=!1,isStatic:l=!0,legendPosition:c=tn.legend.position,legendDirection:u="ltr",padding:d,standalone:f=!0,themeColor:h,thresholds:g,x:p,y:v,theme:b=nae(h),height:x=b.pie.height,width:S=b.pie.width}=e,w=Ae(e,["allowTooltip","ariaDesc","ariaTitle","colorScale","containerComponent","data","invert","isStatic","legendPosition","legendDirection","padding","standalone","themeColor","thresholds","x","y","theme","height","width"]);const _=()=>{const A=E(),M=[{x:A[0]._x,y:A[0]._y||0}];return l&&M.push({y:A[0]._x?Math.abs(100-A[0]._y):100}),M},E=()=>{const A=[Object.assign({},a)];return ig(A,Object.assign({x:p,y:v},w),["x","y"]).sort((M,P)=>M._y-P._y)},O=()=>{const A=[];if(g){const M=ts(g,"value",s?"desc":"asc"),P=l6.thresholds.colorScale.length;for(let $=0;$<M.length;$++)A.push({color:M[$].color?M[$].color:l6.thresholds.colorScale[$%P],value:M[$].value})}return A},T=()=>{const A=Object.assign({},b),M=E();if(M){const P=O(),$=L=>{A.pie.colorScale instanceof Array?A.pie.colorScale[0]=P[L].color:A.pie.colorScale=P[L].color,A.legend.colorScale instanceof Array?A.legend.colorScale[0]=P[L].color:A.legend.colorScale=P[L].color};for(let L=0;L<P.length;L++)s?M[0]._y<=P[L].value&&$(L):M[0]._y>=P[L].value&&$(L)}return A},D=k.createElement(wf,Object.assign({allowTooltip:t,colorScale:i,data:_(),height:x,key:"pf-chart-donut-utilization",legendPosition:c,legendDirection:u,padding:d,standalone:!1,theme:T(),themeColor:h,width:S},w)),j=k.cloneElement(o,Object.assign({desc:n,height:x,title:r,width:S,theme:b},o.props),[D]);return f?k.createElement(k.Fragment,null,j):k.createElement(k.Fragment,null,D)};wp.displayName="ChartDonutUtilization",rn(wp,Jl);const Cp=e=>{var{dx:t=0,index:n=0,legendData:r,legendLabelComponent:i=k.createElement(an,null),style:o,text:a,textAnchor:s="end",valueLabelComponent:l=k.createElement(an,null),x:c,y:u}=e,d=Ae(e,["dx","index","legendData","legendLabelComponent","style","text","textAnchor","valueLabelComponent","x","y"]);const f=b=>{const x=S=>K(Object.assign({},S),{fill:ur.label.fill});return Array.isArray(b)?b.map(x):x(b)},h=()=>{const b=r&&r.length?r[n].name:void 0;return k.cloneElement(i,{style:f({}),text:b,textAnchor:"start",x:c,y:u})},g=()=>{const b=c+te(t,void 0);return k.cloneElement(l,Object.assign({style:f(o),text:a,textAnchor:s,x:b,y:u},d))},p=h(),v=g();return k.createElement(k.Fragment,null,p,v)};Cp.displayName="ChartLegendTooltipLabel",rn(Cp,en);const Ep=e=>{var{activePoints:t,center:n,datum:r,dx:i=0,dy:o=0,flyoutHeight:a,flyoutWidth:s,height:l,labelComponent:c=k.createElement(Cp,null),legendComponent:u=k.createElement(ws,null),legendData:d,patternScale:f,text:h,themeColor:g,title:p,titleComponent:v=k.createElement(an,null),width:b,theme:x=on(g)}=e,S=Ae(e,["activePoints","center","datum","dx","dy","flyoutHeight","flyoutWidth","height","labelComponent","legendComponent","legendData","patternScale","text","themeColor","title","titleComponent","width","theme"]);const w=x&&x.tooltip?te(x.tooltip.pointerLength,void 0):10,_=E6(u.props),E=_p({activePoints:t,colorScale:_.colorScale,legendData:d,text:h,theme:x}),O=0,T=p?5:-10,D=10,j=0,A=()=>{if(!(n||s||b)){const V=S.x;return V||void 0}const U=te(s,void 0);return b>n.x+U+w?n.x+ur.flyout.padding/2:n.x<U+w?ur.flyout.padding/2-w:n.x-U},M=()=>{if(!(n||a||l)){const V=S.y;return V||void 0}const U=te(a,void 0);return n.y<U/2?ur.flyout.padding/2:n.y>l-U/2?l-U+ur.flyout.padding/2:n.y-U/2+ur.flyout.padding/2},P=xp({legendData:E,legendProps:_,text:O6({activePoints:t,legendData:d,text:h}),theme:x}),$=xp({legendData:[{name:""}],legendProps:_,minSpacing:0,theme:x}),L=()=>k.cloneElement(c,Object.assign({datum:r,dx:P.width-$.width,legendData:E},c.props)),z=()=>{const U=p instanceof Function?p(r):p;return k.cloneElement(v,Object.assign({style:{fill:ur.label.fill,fontWeight:ur.label.fontWeight},text:U,textAnchor:"start",x:A()+D+te(i,void 0),y:M()+j+te(o,void 0)},v.props))},G=()=>k.cloneElement(u,Object.assign({data:_p({activePoints:t,colorScale:_.colorScale,legendData:d,patternScale:f,text:h,textAsLegendData:!0,theme:x}),labelComponent:L(),patternScale:f,standalone:!1,theme:x,themeColor:g,x:A()+O+te(i,void 0),y:M()+T+te(o,void 0)},_));return k.createElement(k.Fragment,null,z(),G())};Ep.displayName="ChartLegendTooltipContent",rn(Ep,Kl,{getBaseProps:!0});const Op=e=>{var{activePoints:t,center:n={x:0,y:0},datum:r,flyoutHeight:i,flyoutWidth:o,height:a,isCursorTooltip:s=!0,labelComponent:l=k.createElement(Ep,null),legendData:c,patternScale:u,text:d,themeColor:f,title:h,width:g,theme:p=on(f)}=e,v=Ae(e,["activePoints","center","datum","flyoutHeight","flyoutWidth","height","isCursorTooltip","labelComponent","legendData","patternScale","text","themeColor","title","width","theme"]);const b=p&&p.tooltip?te(p.tooltip.pointerLength,void 0):10,x=()=>({legendData:_p({activePoints:t,legendData:c,text:d,theme:p}),legendProps:E6(l.props.legendComponent?l.props.legendComponent.props:void 0),text:O6({activePoints:t,legendData:c,text:d}),theme:p}),S=({height:O})=>{const T=O+ur.flyout.padding;return h?T:T-10},w=({width:O})=>O+ur.flyout.padding,_=O=>k.cloneElement(l,Object.assign({center:n,flyoutHeight:i||S(O),flyoutWidth:o||w(O),height:a,legendData:c,patternScale:u,title:h,width:g},l.props));return(()=>{const O=xp(x());if(O.height===0&&O.width===0)return null;const T=w(O),D=s?k.createElement(Sf,null):k.createElement(Xl,null);return k.cloneElement(D,Object.assign(Object.assign(Object.assign({activePoints:t,center:n,datum:r,flyoutHeight:i||S(O),flyoutWidth:o||w(O),height:a,labelComponent:_(O)},o===void 0&&{showPointer:g>T+n.x+b||n.x>T+b}),{text:d,theme:p,themeColor:f,width:g}),v))})()};Op.displayName="ChartLegendTooltip",rn(Op,go);const Sse=e=>{let t=dn(e);t.length<2&&(t=[]);const n={x:Nt(e,"x"),y:Nt(e,"y")},r={x:Jo(e,"x"),y:Jo(e,"y")},i={x:ir(e,"x").domain(r.x).range(e.horizontal?n.y:n.x),y:ir(e,"y").domain(r.y).range(e.horizontal?n.x:n.y)},o=e.polar?e.origin||El(e):void 0,a=sd(e,"line"),s=Cl(e.style,a);return{domain:r,data:t,scale:i,style:s,origin:o}},wse=(e,t)=>{const n=Bt(e,t,"line"),r=Object.assign({},n,Sse(n)),{data:i,domain:o,events:a,groupComponent:s,height:l,horizontal:c,interpolation:u,origin:d,padding:f,polar:h,scale:g,sharedEvents:p,standalone:v,style:b,theme:x,width:S,labels:w,name:_,disableInlineStyles:E}=r,O={parent:{style:b.parent,scale:g,data:i,height:l,width:S,name:_,domain:o,standalone:v,polar:h,origin:d,padding:f,horizontal:c},all:{data:{horizontal:c,polar:h,origin:d,scale:g,data:i,interpolation:u,groupComponent:s,style:E?{}:b.data,theme:x,disableInlineStyles:E}}};return i.reduce((T,D,j)=>{const A=Md(r,D,j);if(A!=null||w&&(a||p)){const M=di(D.eventKey)?j:D.eventKey;T[M]={labels:pg(r,j)}}return T},O)},Cse=e=>{const t=te(e.ariaLabel,e),n=te(e.id,e),r=st(Object.assign({fill:"none",stroke:"black",pointerEvents:"stroke"},e.style),e),i=te(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,id:n,style:r,tabIndex:i})},Ese={pathComponent:y.createElement(fo,null),role:"presentation",shapeRendering:"auto"},Ose=e=>{const t=Cse(K({},e,Ese)),n=Tr(t),{polar:r,origin:i}=t,o=hw(t),a=r&&i?`translate(${i.x}, ${i.y})`:void 0,s=o(t.data);return y.cloneElement(t.pathComponent,{...t.events,...n,"aria-label":t.ariaLabel,d:s,style:t.style,transform:t.transform||a,className:t.className,role:t.role,shapeRendering:t.shapeRendering,clipPath:t.clipPath,tabIndex:t.tabIndex})},j6={width:450,height:300,padding:50,interpolation:"linear"},kse={components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]},Yn=class Yn extends y.Component{constructor(t){super(t)}static getBaseProps(t){return wse(t,j6)}shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=Yn,r=Bt(this.props,j6,n);if(this.shouldAnimate())return this.animateComponent(r,t);const i=this.renderContinuousData(r),o=r.standalone?this.renderContainer(r.containerComponent,i):i;return ud(o,r)}};ce(Yn,"animationWhitelist",["data","domain","height","padding","samples","style","width"]),ce(Yn,"displayName","VictoryLine"),ce(Yn,"role","line"),ce(Yn,"defaultTransitions",vS()),ce(Yn,"defaultPolarTransitions",bS()),ce(Yn,"continuous",!0),ce(Yn,"defaultProps",{containerComponent:y.createElement(Qt,null),dataComponent:y.createElement(Ose,null),labelComponent:y.createElement(en,{renderInPortal:!0}),groupComponent:y.createElement(bs,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Ar.grayscale}),ce(Yn,"getDomain",Jo),ce(Yn,"getData",dn),ce(Yn,"expectedComponents",["dataComponent","labelComponent","groupComponent","containerComponent"]);let kp=Yn;const P6=Yo(kp,kse),Tp=e=>{var{containerComponent:t=k.createElement(cr,null),themeColor:n,theme:r=on(n)}=e,i=Ae(e,["containerComponent","themeColor","theme"]);const o=k.cloneElement(t,Object.assign({theme:r},t.props));return k.createElement(P6,Object.assign({containerComponent:o,theme:r},i))};Tp.displayName="ChartLine",rn(Tp,P6);const M6={width:450,height:300,padding:50};function Tse(e,t){const{fillInMissingData:n}=e,r=t.reduce((a,s)=>(s.forEach(l=>{a[l._x instanceof Date?l._x.getTime():l._x]=!0}),a),{}),i=Object.keys(r).map(a=>Number(a)),o=ts(i);return t.map(a=>{let s=0;const l=a[0]&&a[0]._x instanceof Date;return o.map((u,d)=>{let f=Number(u);const h=a[d-s];if(h){if((l?h._x.getTime():h._x)===f)return h;s++;const v=n?0:null;return f=l?new Date(f):f,{x:f,y:v,_x:f,_y:v}}const g=n?0:null;return f=l?new Date(f):f,{x:f,y:g,_x:f,_y:g}})})}function Ase(e,t,n){if(e.y0)return e.y0;const r=e._y,i=e._group,o=n[0].map(c=>c.y0),s=n.slice(0,t).reduce((c,u)=>c.concat(u.filter(d=>e._x instanceof Date?d._x.getTime()===e._x.getTime():d._x===e._x).map(d=>d._y||0)),[]),l=s.length&&s.reduce((c,u)=>r<0&&u<0||r>=0&&u>=0?Number(u)+c:c,o[i]||0);return s.some(c=>c instanceof Date)?new Date(l):l}function Dse(e,t,n){const r=e.xOffset||0;return t[n].map(i=>{const o=Ase(i,n,t)||0;return Object.assign({},i,{_y0:i._y instanceof Date?o?new Date(o):i._y:o,_y1:i._y===null?null:i._y instanceof Date?new Date(Number(i._y)+Number(o)):i._y+o,_x1:i._x===null?null:i._x instanceof Date?new Date(Number(i._x)+Number(r)):i._x+r})})}function jse(e,t){const n=HY(e,t),r=Tse(e,n);return r.map(o=>o.filter(a=>a._x!==null&&a._y!==null)).map((o,a)=>Dse(e,r,a))}function $6(e,t){const n=t||y.Children.toArray(e.children),r="stack",i=Bt(e,M6,r),o=YY(i.theme,i.style,r),a=i.categories||Lw(i,n),s=i.datasets||jse(i,n),l=n.map((p,v)=>y.cloneElement(p,{data:s[v]})),c={x:qg(Object.assign({},i,{categories:a}),"x",l),y:qg(Object.assign({},i,{categories:a}),"y",l)},u=i.range||{x:Nt(i,"x"),y:Nt(i,"y")},d={x:Il(i,"x")||tf(i,"x"),y:Il(i,"y")||tf(i,"y")},f={x:d.x.domain(c.x).range(i.horizontal?u.y:u.x),y:d.y.domain(c.y).range(i.horizontal?u.x:u.y)},{colorScale:h,horizontal:g}=i;return{datasets:s,categories:a,range:u,domain:c,horizontal:g,scale:f,style:o,colorScale:h,role:r}}const Pse=e=>{const{children:t}=e,n=y.Children.toArray(t).map(r=>{const i=r;return{...i,props:wl(i.props,["sharedEvents"])}});return e.children=n,e};function Mse(e){const t=Pse(e),[n,r]=y.useState(t);return y.useEffect(()=>{Vn(t,n)||r(t)},[n,r,t]),y.useMemo(()=>$6(n,n.children),[n])}function $se(e,t,n){if(e.labels)return t.length===n+1?e.labels:void 0}function Ise(e,t){const{categories:n,domain:r,range:i,scale:o,horizontal:a}=t;return{height:e.height,width:e.width,padding:xt(e),standalone:!1,theme:e.theme,categories:n,domain:r,range:i,scale:o,horizontal:a}}function Lse(e,t){const n=t.type&&t.type.role,r=t.props.colorScale||e.colorScale;if(!(n!=="group"&&n!=="stack"))return e.theme?r||e.theme.props.colorScale:r}function I6(e,t,n){const r=Bt(e,M6,"stack"),i=t||y.Children.toArray(r.children),o=n||$6(r,i),{datasets:a}=o,s=Ise(r,o),l=r.name||"stack",{theme:c}=r;return i.map((u,d)=>{const f=u.type&&u.type.role,h=a[d],g=KY(u,d,o,c),p=r.labels?$se(r,a,d):u.props.labels,v=u.props.name||`${l}-${f}-${d}`;return y.cloneElement(u,Object.assign({key:`${v}-key-${d}`,labels:p,name:v,domainPadding:u.props.domainPadding||r.domainPadding,theme:r.theme,labelComponent:r.labelComponent||u.props.labelComponent,style:g,colorScale:Lse(r,u),data:h,polar:r.polar},s))})}const Fse={width:450,height:300,padding:50},Nse={containerComponent:y.createElement(Qt,null),groupComponent:y.createElement("g",null),standalone:!0,theme:Ar.grayscale,fillInMissingData:!0},Bse=e=>{const{role:t}=Cf,n=y.useMemo(()=>K({},e,Nse),[e]),{setAnimationState:r,getAnimationProps:i,getProps:o}=_S(),a=o(n),s=Bt(a,Fse,t),{eventKey:l,containerComponent:c,standalone:u,groupComponent:d,externalEventMutations:f,width:h,height:g,theme:p,polar:v,horizontal:b,name:x}=s,S=y.Children.toArray(s.children),w=Mse(s),{domain:_,scale:E,style:O}=w,T=y.useMemo(()=>I6(a,S,w).map((z,G)=>{const U=Object.assign({animate:i(a,z,G)},z.props);return y.cloneElement(z,U)}).reverse(),[a,S,w,i]),D=y.useMemo(()=>u?{domain:_,scale:E,width:h,height:g,standalone:u,theme:p,style:O.parent,horizontal:b,polar:v,name:x}:{},[u,_,E,h,g,p,O,b,v,x]),j=y.useMemo(()=>Tr(n),[n]),A=y.useMemo(()=>{if(u){const $=K({},c.props,D,j);return y.cloneElement(c,$)}return y.cloneElement(d,j)},[d,u,c,D,j]),M=y.useMemo(()=>Mw(a),[a]),P=xS(n);return y.useEffect(()=>()=>{n.animate&&r(P,n)},[r,P,n]),vt(M)?y.cloneElement(A,A.props,T):y.createElement(xs,{container:A,eventKey:l,events:M,externalEventMutations:f},T)},Wse={role:"stack",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:I6},Cf=Object.assign(y.memo(Bse,Vn),Wse);Cf.displayName="VictoryStack";const Ef=e=>{var{ariaDesc:t,ariaTitle:n,children:r,colorScale:i,containerComponent:o=k.createElement(cr,null),hasPatterns:a,patternScale:s,themeColor:l,theme:c=on(l)}=e,u=Ae(e,["ariaDesc","ariaTitle","children","colorScale","containerComponent","hasPatterns","patternScale","themeColor","theme"]);const d=k.cloneElement(o,Object.assign(Object.assign({desc:t,title:n,theme:c},o.props),{className:op({className:o.props.className})})),{defaultPatternScale:f}=up({colorScale:i,hasPatterns:a,patternScale:s,themeColorScale:c.stack.colorScale});return k.createElement(Cf,Object.assign({colorScale:i,containerComponent:d,theme:c},u),Joe({children:r,patternScale:f}))};Ef.displayName="ChartStack",rn(Ef,Cf);var zse=to,Rse=Or,Vse="[object RegExp]";function Use(e){return Rse(e)&&zse(e)==Vse}var Hse=Use,Gse=Hse,qse=Ha,L6=ll,F6=L6&&L6.isRegExp,Yse=F6?qse(F6):Gse,Kse=Yse;const Zse=Fe(Kse);var N6={},B6={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(zs,function(){var n=Math.pow(2,-52),r=new Uint32Array(512),i=function(b){var x=b.length>>1;if(x>0&&typeof b[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=b;var S=Math.max(2*x-5,0);this._triangles=new Uint32Array(S*3),this._halfedges=new Int32Array(S*3),this._hashSize=Math.ceil(Math.sqrt(x)),this._hullPrev=new Uint32Array(x),this._hullNext=new Uint32Array(x),this._hullTri=new Uint32Array(x),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(x),this._dists=new Float64Array(x),this.update()};i.from=function(b,x,S){x===void 0&&(x=g),S===void 0&&(S=p);for(var w=b.length,_=new Float64Array(w*2),E=0;E<w;E++){var O=b[E];_[2*E]=x(O),_[2*E+1]=S(O)}return new i(_)},i.prototype.update=function(){for(var b=this,x=b.coords,S=b._hullPrev,w=b._hullNext,_=b._hullTri,E=b._hullHash,O=x.length>>1,T=1/0,D=1/0,j=-1/0,A=-1/0,M=0;M<O;M++){var P=x[2*M],$=x[2*M+1];P<T&&(T=P),$<D&&(D=$),P>j&&(j=P),$>A&&(A=$),this._ids[M]=M}for(var L=(T+j)/2,z=(D+A)/2,G=1/0,U,V,N,H=0;H<O;H++){var Q=a(L,z,x[2*H],x[2*H+1]);Q<G&&(U=H,G=Q)}var ee=x[2*U],X=x[2*U+1];G=1/0;for(var J=0;J<O;J++)if(J!==U){var ie=a(ee,X,x[2*J],x[2*J+1]);ie<G&&ie>0&&(V=J,G=ie)}for(var ue=x[2*V],he=x[2*V+1],Z=1/0,ne=0;ne<O;ne++)if(!(ne===U||ne===V)){var pe=u(ee,X,ue,he,x[2*ne],x[2*ne+1]);pe<Z&&(N=ne,Z=pe)}var B=x[2*N],ke=x[2*N+1];if(Z===1/0){for(var Ee=0;Ee<O;Ee++)this._dists[Ee]=x[2*Ee]-x[0]||x[2*Ee+1]-x[1];f(this._ids,this._dists,0,O-1);for(var He=new Uint32Array(O),Ie=0,at=0,I=-1/0;at<O;at++){var R=this._ids[at];this._dists[R]>I&&(He[Ie++]=R,I=this._dists[R])}this.hull=He.subarray(0,Ie),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(l(ee,X,ue,he,B,ke)){var q=V,de=ue,fe=he;V=N,ue=B,he=ke,N=q,B=de,ke=fe}var oe=d(ee,X,ue,he,B,ke);this._cx=oe.x,this._cy=oe.y;for(var Y=0;Y<O;Y++)this._dists[Y]=a(x[2*Y],x[2*Y+1],oe.x,oe.y);f(this._ids,this._dists,0,O-1),this._hullStart=U;var le=3;w[U]=S[N]=V,w[V]=S[U]=N,w[N]=S[V]=U,_[U]=0,_[V]=1,_[N]=2,E.fill(-1),E[this._hashKey(ee,X)]=U,E[this._hashKey(ue,he)]=V,E[this._hashKey(B,ke)]=N,this.trianglesLen=0,this._addTriangle(U,V,N,-1,-1,-1);for(var be=0,xe=void 0,Ne=void 0;be<this._ids.length;be++){var Re=this._ids[be],nt=x[2*Re],wt=x[2*Re+1];if(!(be>0&&Math.abs(nt-xe)<=n&&Math.abs(wt-Ne)<=n)&&(xe=nt,Ne=wt,!(Re===U||Re===V||Re===N))){for(var jt=0,Ct=0,We=this._hashKey(nt,wt);Ct<this._hashSize&&(jt=E[(We+Ct)%this._hashSize],!(jt!==-1&&jt!==w[jt]));Ct++);jt=S[jt];for(var Pe=jt,mt=void 0;mt=w[Pe],!l(nt,wt,x[2*Pe],x[2*Pe+1],x[2*mt],x[2*mt+1]);)if(Pe=mt,Pe===jt){Pe=-1;break}if(Pe!==-1){var Rt=this._addTriangle(Pe,Re,w[Pe],-1,-1,_[Pe]);_[Re]=this._legalize(Rt+2),_[Pe]=Rt,le++;for(var Et=w[Pe];mt=w[Et],l(nt,wt,x[2*Et],x[2*Et+1],x[2*mt],x[2*mt+1]);)Rt=this._addTriangle(Et,Re,mt,_[Re],-1,_[Et]),_[Re]=this._legalize(Rt+2),w[Et]=Et,le--,Et=mt;if(Pe===jt)for(;mt=S[Pe],l(nt,wt,x[2*mt],x[2*mt+1],x[2*Pe],x[2*Pe+1]);)Rt=this._addTriangle(mt,Re,Pe,-1,_[Pe],_[mt]),this._legalize(Rt+2),_[mt]=Rt,w[Pe]=Pe,le--,Pe=mt;this._hullStart=S[Re]=Pe,w[Pe]=S[Et]=Re,w[Re]=Et,E[this._hashKey(nt,wt)]=Re,E[this._hashKey(x[2*Pe],x[2*Pe+1])]=Pe}}}this.hull=new Uint32Array(le);for(var Nn=0,Vt=this._hullStart;Nn<le;Nn++)this.hull[Nn]=Vt,Vt=w[Vt];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)},i.prototype._hashKey=function(b,x){return Math.floor(o(b-this._cx,x-this._cy)*this._hashSize)%this._hashSize},i.prototype._legalize=function(b){for(var x=this,S=x._triangles,w=x._halfedges,_=x.coords,E=0,O=0;;){var T=w[b],D=b-b%3;if(O=D+(b+2)%3,T===-1){if(E===0)break;b=r[--E];continue}var j=T-T%3,A=D+(b+1)%3,M=j+(T+2)%3,P=S[O],$=S[b],L=S[A],z=S[M],G=c(_[2*P],_[2*P+1],_[2*$],_[2*$+1],_[2*L],_[2*L+1],_[2*z],_[2*z+1]);if(G){S[b]=z,S[T]=P;var U=w[M];if(U===-1){var V=this._hullStart;do{if(this._hullTri[V]===M){this._hullTri[V]=b;break}V=this._hullPrev[V]}while(V!==this._hullStart)}this._link(b,U),this._link(T,w[O]),this._link(O,M);var N=j+(T+1)%3;E<r.length&&(r[E++]=N)}else{if(E===0)break;b=r[--E]}}return O},i.prototype._link=function(b,x){this._halfedges[b]=x,x!==-1&&(this._halfedges[x]=b)},i.prototype._addTriangle=function(b,x,S,w,_,E){var O=this.trianglesLen;return this._triangles[O]=b,this._triangles[O+1]=x,this._triangles[O+2]=S,this._link(O,w),this._link(O+1,_),this._link(O+2,E),this.trianglesLen+=3,O};function o(v,b){var x=v/(Math.abs(v)+Math.abs(b));return(b>0?3-x:1+x)/4}function a(v,b,x,S){var w=v-x,_=b-S;return w*w+_*_}function s(v,b,x,S,w,_){var E=(S-b)*(w-v),O=(x-v)*(_-b);return Math.abs(E-O)>=33306690738754716e-32*Math.abs(E+O)?E-O:0}function l(v,b,x,S,w,_){var E=s(w,_,v,b,x,S)||s(v,b,x,S,w,_)||s(x,S,w,_,v,b);return E<0}function c(v,b,x,S,w,_,E,O){var T=v-E,D=b-O,j=x-E,A=S-O,M=w-E,P=_-O,$=T*T+D*D,L=j*j+A*A,z=M*M+P*P;return T*(A*z-L*P)-D*(j*z-L*M)+$*(j*P-A*M)<0}function u(v,b,x,S,w,_){var E=x-v,O=S-b,T=w-v,D=_-b,j=E*E+O*O,A=T*T+D*D,M=.5/(E*D-O*T),P=(D*j-O*A)*M,$=(E*A-T*j)*M;return P*P+$*$}function d(v,b,x,S,w,_){var E=x-v,O=S-b,T=w-v,D=_-b,j=E*E+O*O,A=T*T+D*D,M=.5/(E*D-O*T),P=v+(D*j-O*A)*M,$=b+(E*A-T*j)*M;return{x:P,y:$}}function f(v,b,x,S){if(S-x<=20)for(var w=x+1;w<=S;w++){for(var _=v[w],E=b[_],O=w-1;O>=x&&b[v[O]]>E;)v[O+1]=v[O--];v[O+1]=_}else{var T=x+S>>1,D=x+1,j=S;h(v,T,D),b[v[x]]>b[v[S]]&&h(v,x,S),b[v[D]]>b[v[S]]&&h(v,D,S),b[v[x]]>b[v[D]]&&h(v,x,D);for(var A=v[D],M=b[A];;){do D++;while(b[v[D]]<M);do j--;while(b[v[j]]>M);if(j<D)break;h(v,D,j)}v[x+1]=v[j],v[j]=A,S-D+1>=j-x?(f(v,b,D,S),f(v,b,x,j-1)):(f(v,b,x,j-1),f(v,b,D,S))}}function h(v,b,x){var S=v[b];v[b]=v[x],v[x]=S}function g(v){return v[0]}function p(v){return v[1]}return i})})(B6);var Xse=B6.exports;(function(e){e.__esModule=!0,e.default=void 0;var t=n(Xse);function n(c){return c&&c.__esModule?c:{default:c}}function r(c){return c[0]}function i(c){return c[1]}function o(c){for(var u=c.triangles,d=c.coords,f=0;f<u.length;f+=3){var h=2*u[f],g=2*u[f+1],p=2*u[f+2],v=(d[p]-d[h])*(d[g+1]-d[h+1])-(d[g]-d[h])*(d[p+1]-d[h+1]);if(v>1e-10)return!1}return!0}function a(c,u,d){return[c+Math.sin(c+u)*d,u+Math.cos(c-u)*d]}function s(c,u,d,f){for(var h=c.length,g=new Float64Array(h*2),p=0;p<h;++p){var v=c[p];g[p*2]=u.call(f,v,p,c),g[p*2+1]=d.call(f,v,p,c)}return g}var l=function(){function c(d){var f=new t.default(d);this.inedges=new Int32Array(d.length/2),this._hullIndex=new Int32Array(d.length/2),this.points=f.coords,this._init(f)}var u=c.prototype;return u._init=function(f){var h=f,g=this.points;if(h.hull&&h.hull.length>2&&o(h)){this.collinear=Int32Array.from({length:g.length/2},function(z,G){return G}).sort(function(z,G){return g[2*z]-g[2*G]||g[2*z+1]-g[2*G+1]});for(var p=this.collinear[0],v=this.collinear[this.collinear.length-1],b=[g[2*p],g[2*p+1],g[2*v],g[2*v+1]],x=1e-8*Math.sqrt(Math.pow(b[3]-b[1],2)+Math.pow(b[2]-b[0],2)),S=0,w=g.length/2;S<w;++S){var _=a(g[2*S],g[2*S+1],x);g[2*S]=_[0],g[2*S+1]=_[1]}f=new t.default(g)}for(var E=this.halfedges=f.halfedges,O=this.hull=f.hull,T=this.triangles=f.triangles,D=this.inedges.fill(-1),j=this._hullIndex.fill(-1),A=0,M=E.length;A<M;++A){var P=T[A%3===2?A-2:A+1];(E[A]===-1||D[P]===-1)&&(D[P]=A)}for(var $=0,L=O.length;$<L;++$)j[O[$]]=$;O.length<=2&&O.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=O[0],this.triangles[1]=O[1],this.triangles[2]=O[1],D[O[0]]=1,O.length===2&&(D[O[1]]=0))},u.neighbors=function(f){var h=[],g=this.inedges,p=this.hull,v=this._hullIndex,b=this.halfedges,x=this.triangles,S=g[f];if(S===-1)return h;var w=S,_=-1;do{if(_=x[w],h.push(_),w=w%3===2?w-2:w+1,x[w]!==f)break;if(w=b[w],w===-1){var E=p[(v[f]+1)%p.length];E!==_&&h.push(E);break}}while(w!==S);return h},u.find=function(f,h,g){if(g===void 0&&(g=0),f=+f,f!==f||(h=+h,h!==h))return-1;for(var p=g,v;(v=this._step(g,f,h))>=0&&v!==g&&v!==p;)g=v;return v},u._step=function(f,h,g){var p=this.inedges,v=this.points;if(p[f]===-1||!v.length)return(f+1)%(v.length>>1);for(var b=f,x=Math.pow(h-v[f*2],2)+Math.pow(g-v[f*2+1],2),_=this.neighbors(f),S=Array.isArray(_),w=0,_=S?_:_[Symbol.iterator]();;){var E;if(S){if(w>=_.length)break;E=_[w++]}else{if(w=_.next(),w.done)break;E=w.value}var O=E,T=Math.pow(h-v[O*2],2)+Math.pow(g-v[O*2+1],2);T<x&&(x=T,b=O)}return b},c}();e.default=l,l.from=function(c,u,d,f){return u===void 0&&(u=r),d===void 0&&(d=i),new l(s(c,u,d,f))}})(N6);const Jse=Fe(N6),Qse=32;class ele{constructor(){ce(this,"onMouseLeave",(t,n)=>{this.onMouseMove.cancel();const r=n.activePoints||[];this.onDeactivated(n,r);const i=r.length?r.map(o=>this.getInactiveMutations(n,o)):[];return this.getParentMutation([]).concat(...i)});ce(this,"handleMouseMove",(t,n)=>{const r=n.activePoints||[],i=n.parentSVG||xi(t),o=Ur(t,i);if(!this.withinBounds(n,o)){this.onDeactivated(n,r);const d=r.length?r.map(f=>this.getInactiveMutations(n,f)):[];return this.getParentMutation([],o,i).concat(...d)}const{points:a=[],index:s}=this.getVoronoiPoints(n,o),l=this.getParentMutation(a,o,i,s);if(r.length&&Vn(a,r))return l;this.onActivated(n,a),this.onDeactivated(n,r);const c=a.length?a.map(d=>this.getActiveMutations(n,d)):[],u=r.length?r.map(d=>this.getInactiveMutations(n,d)):[];return l.concat(...u,...c)});ce(this,"onMouseMove",Cs(this.handleMouseMove,Qse,{leading:!0,trailing:!1}))}withinBounds(t,n){const{width:r,height:i,polar:o,origin:a,scale:s}=t,l=xt(t,"voronoiPadding"),{x:c,y:u}=n;if(o){const d=Math.pow(c-a.x,2)+Math.pow(u-a.y,2),f=Math.max(...s.y.range());return d<Math.pow(f,2)}return c>=l.left&&c<=r-l.right&&u>=l.top&&u<=i-l.bottom}getDatasets(t){const n={x:Dn(t.domain.x),y:Dn(t.domain.y)},r=y.Children.toArray(t.children),i=(s,l,c)=>{const u=c&&c.type&&c.type.continuous,d=c?c.props&&c.props.style:t.style;return s.map((f,h)=>{const{x:g,y:p,y0:v,x0:b}=y0(f),x=(Number(g)+Number(b))/2,S=(Number(p)+Number(v))/2;return Object.assign({_voronoiX:t.voronoiDimension==="y"?n.x:x,_voronoiY:t.voronoiDimension==="x"?n.y:S,eventKey:h,childName:l,continuous:u,style:d},f)})};if(t.data)return i(t.data);const o=s=>{const l=dn(s);return Array.isArray(l)&&l.length>0?l:void 0};return ro(r,(s,l)=>{const u=(s.props||{}).name||l,d=t.voronoiBlacklist||[],f=d.filter(b=>!!b&&typeof b.valueOf()=="string"),g=d.filter(Zse).some(b=>b.test(u));if(!ds(s)||f.includes(u)||g)return null;const v=(s.type&&Se(s.type.getData)?s.type.getData:o)(s.props);return v?i(v,u,s):null},t)}findPoints(t,n){return t.filter(r=>n._voronoiX===r._voronoiX&&n._voronoiY===r._voronoiY)}withinRadius(t,n,r){if(!t)return!1;if(!r)return!0;const{x:i,y:o}=n;return Math.pow(i-t[0],2)+Math.pow(o-t[1],2)<Math.pow(r,2)}getVoronoiPoints(t,n){const r=this.getDatasets(t),i=r.map(c=>{const{x:u,y:d}=is(t,c);return[u,d]}),a=Jse.from(i).find(n.x,n.y);return{points:this.withinRadius(i[a],n,t.radius)?this.findPoints(r,r[a]):[],index:a}}getActiveMutations(t,n){const{childName:r,continuous:i}=n,{activateData:o,activateLabels:a,labels:s}=t;if(!o&&!a)return[];const l=o?["data"]:[],c=s&&!a?l:l.concat("labels");return vt(c)?[]:c.map(u=>{const d=i===!0&&u==="data"?"all":n.eventKey;return{childName:r,eventKey:d,target:u,mutation:()=>({active:!0})}})}getInactiveMutations(t,n){const{childName:r,continuous:i}=n,{activateData:o,activateLabels:a,labels:s}=t;if(!o&&!a)return[];const l=o?["data"]:[],c=s&&!a?l:l.concat("labels");return vt(c)?[]:c.map(u=>{const d=i&&u==="data"?"all":n.eventKey;return{childName:r,eventKey:d,target:u,mutation:()=>null}})}getParentMutation(t,n,r,i){return[{target:"parent",eventKey:"parent",mutation:()=>({activePoints:t,mousePosition:n,parentSVG:r,vIndex:i})}]}onActivated(t,n){Se(t.onActivated)&&t.onActivated(n,t)}onDeactivated(t,n){Se(t.onDeactivated)&&t.onDeactivated(n,t)}}const Of=new ele,W6={activateData:!0,activateLabels:!0,labelComponent:y.createElement(go,null),voronoiPadding:5},z6=e=>Sl(e,["_x","_x1","_x0","_y","_y1","_y0"]),R6=e=>{const t={...W6,...e},{children:n}=t,r=()=>{const{horizontal:c,voronoiDimension:u}=t;return!c||!u?u:u==="x"?"y":"x"},i=(c,u)=>{const{mousePosition:d,mouseFollowTooltips:f}=t,h=r(),g=z6(u[0]),p=is(t,g);let v=f?d:void 0;if(!h||u.length<2)return{...p,center:K({},c.center,v)};const b=h==="y"?d.x:p.x,x=h==="x"?d.y:p.y;return v=f?d:{x:b,y:x},{x:b,y:x,center:K({},c.center,v)}},o=(c,u)=>{const{labels:d,labelComponent:f,theme:h}=t,g=f.props||{},p=h&&h.voronoi&&h.voronoi.style?h.voronoi.style:{},v=u==="flyout"?g.flyoutStyle:g.style;return c.reduce((b,x,S)=>{const w=K({},g,{datum:x,active:!0}),_=Se(d)?d(w):void 0,E=_!==void 0?`${_}`.split(`
|
318
|
-
`):[],O=x.style&&x.style[u]||{},T=Array.isArray(v)?v[S]:v,D=st(
|
319
|
-
`))},[]),{childName:x,eventKey:S,style:w,continuous:_,...E}=c[0],O=t.name===x?x:`${t.name}-${x}`,T=K({key:`${O}-${S}-voronoi-tooltip`,id:`${O}-${S}-voronoi-tooltip`,active:!0,renderInPortal:!1,activePoints:c,datum:E,scale:d,theme:h},v,{text:b,width:g,height:p,style:o(c,"labels"),flyoutStyle:o(c,"flyout")[0]},a(c)),D=i(T,c);return K({},D,T)},l=()=>{const{labels:c,activePoints:u,labelComponent:d}=t;if(!c)return null;if(Array.isArray(u)&&u.length){const f=s(u),{text:h}=f;return(Array.isArray(h)?h.filter(Boolean).length:h)?y.cloneElement(d,f):null}return null};return{props:t,children:[...y.Children.toArray(n),l()]}},Ap=e=>{const{props:t,children:n}=R6(e);return y.createElement(Qt,t,n)};Ap.role="container",Ap.defaultEvents=e=>{const t={...W6,...e},n=(r,i)=>(o,a,s,l)=>t.disable?{}:r(o,{...t,...a},s,l);return[{target:"parent",eventHandlers:{onMouseLeave:n(Of.onMouseLeave),onTouchCancel:n(Of.onMouseLeave),onMouseMove:n(Of.onMouseMove),onTouchMove:n(Of.onMouseMove)}},{target:"data",eventHandlers:t.disable?{}:{onMouseOver:()=>null,onMouseOut:()=>null,onMouseMove:()=>null}}]};const tle={name:"--pf-v5-chart-container--cursor--line--Fill",value:"#151515",var:"var(--pf-v5-chart-container--cursor--line--Fill, #151515)"};var nle=Nu;function rle(e,t){return nle(t,function(n){return[n,e[n]]})}var ile=rle;function ole(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var ale=ole,sle=ile,lle=Ua,cle=_x,ule=ale,dle="[object Map]",fle="[object Set]";function hle(e){return function(t){var n=lle(t);return n==dle?cle(t):n==fle?ule(t):sle(t,e(t))}}var mle=hle,gle=mle,ple=es,yle=gle(ple),vle=yle;const ble=Fe(vle);var xle=Ga;function _le(e){return typeof e=="function"?e:xle}var Sle=_le,wle=Ux,Cle=Sle;function Ele(e,t){return e&&wle(e,Cle(t))}var Ole=Ele;const kle=Fe(Ole);var Tle="Expected a function";function Ale(e,t,n){if(typeof e!="function")throw new TypeError(Tle);return setTimeout(function(){e.apply(void 0,n)},t)}var Dle=Ale,jle=Dle,Ple=Rm,Mle=ap,$le=Ple(function(e,t,n){return jle(e,Mle(t)||0,n)}),Ile=$le;const Lle=Fe(Ile),dr={checkDomainEquality(e,t){const n=r=>{const i=e&&e[r],o=t&&t[r];return!i&&!o?!0:!i||!o?!1:Number(i[0])===Number(o[0])&&Number(i[1])===Number(o[1])};return n("x")&&n("y")},scale(e,t,n,r){const[i,o]=e,a=Math.abs(o-i),s=n.minimumZoom&&n.minimumZoom[r],l=this.getScaleFactor(t);if(s&&a<=s&&l<1)return e;const[c,u]=this.getDomain(n)[r],d=this.getScalePercent(t,n,r),f=l*i+d*(l*a),h=this.getMinimumDomain(f,n,r),[g,p]=this.getScaledDomain(e,l,d),v=[g>c&&g<u?g:c,p<u&&p>c?p:u],b=Math.abs(h[1]-h[0])>Math.abs(v[1]-v[0])?h:v;return er([c,u])?[new Date(b[0]),new Date(b[1])]:b},getScaledDomain(e,t,n){const[r,i]=e,o=Math.abs(i-r),a=o-o*t,s=Number(r)+a*Math.max(n,0),l=Number(i)-a*Math.max(1-n,0);return[Math.min(s,l),Math.max(s,l)]},getMinimumDomain(e,t,n){const{minimumZoom:r}=t,i=this.getDomain(t)[n],[o,a]=i,s=Math.abs(o-a)/1e3,l=r&&r[n]||s,c=e-l/2,u=e+l/2;return[c>o&&c<a?c:o,u<a&&u>o?u:Number(o)+l/2]},zoommingOut(e){return e.deltaY>0},getScaleFactor(e){const t=this.zoommingOut(e)?1:-1,n=Math.min(Math.abs(e.deltaY/300),.5);return Math.abs(1+t*n)},getScalePercent(e,t,n){const r=this.getDomain(t),[i,o]=r[n];return(this.getPosition(e,t,r)[n]-i)/Math.abs(o-i)},getPosition(e,t,n){const{x:r,y:i}=Ur(e),o={x:t.scale.x.domain(n.x),y:t.scale.y.domain(n.y)};return qd(t,o,r,i)},pan(e,t,n){const[r,i]=e.map(u=>Number(u)),[o,a]=t.map(u=>Number(u)),s=r+n,l=i+n;let c;if(s>o&&l<a)c=[s,l];else if(s<o){const u=i-r;c=[o,o+u]}else if(l>a){const u=i-r;c=[a-u,a]}else c=e;return er(e)||er(t)?c.map(u=>new Date(u)):c},getDomainScale(e,t,n){const r=Array.isArray(e)?e:e[n],[i,o]=r,a=t[n].range();return Math.abs(a[0]-a[1])/(o-i)},handleAnimation(e){const t=e.context.animationTimer,n=e.context.transitionTimer;return n.bypassAnimation(),t.bypassAnimation(),Lle(()=>{t.resumeAnimation(),n.resumeAnimation()},16)},getLastDomain(e,t){const{zoomDomain:n,cachedZoomDomain:r,currentDomain:i,domain:o}=e;return n&&!this.checkDomainEquality(n,r)?K({},n,o):K({},i||n||t,o)},getDomain(e){const{originalDomain:t,domain:n,children:r,zoomDimension:i}=e,o=y.Children.toArray(r);let a={};return o.length&&(a=i?{[i]:ef(e,i,o)}:{x:ef(e,"x",o),y:ef(e,"y",o)}),K({},a,t,n)},onMouseDown(e,t){if(e.preventDefault(),!t.allowPan)return;const n=t.parentSVG||xi(e),{x:r,y:i}=Ur(e,n);return[{target:"parent",mutation:()=>({startX:r,startY:i,panning:!0,parentSVG:n,parentControlledProps:["domain"]})}]},onMouseUp(e,t){if(t.allowPan)return[{target:"parent",mutation:()=>({panning:!1})}]},onMouseLeave(e,t){if(t.allowPan)return[{target:"parent",mutation:()=>({panning:!1})}]},onMouseMove(e,t,n,r){if(t.panning&&t.allowPan){const{scale:i,startX:o,startY:a,onZoomDomainChange:s,zoomDomain:l,zoomDimension:c,horizontal:u}=t,d=t.parentSVG||xi(e),{x:f,y:h}=Ur(e,d),g=this.getDomain(t),p=this.getLastDomain(t,g),v=u?h-a:o-f,b=u?o-f:h-a,x=v/this.getDomainScale(p,i,"x"),S=b/this.getDomainScale(p,i,"y"),w={x:c==="y"?g.x:this.pan(p.x,g.x,x),y:c==="x"?g.y:this.pan(p.y,g.y,S)},_=this.handleAnimation(r),E=!this.checkDomainEquality(g,p),O={parentControlledProps:["domain"],startX:f,startY:h,parentSVG:d,currentDomain:w,originalDomain:g,cachedZoomDomain:l,zoomActive:E};return Se(s)&&s(w,K({},O,t)),[{target:"parent",callback:_,mutation:()=>O}]}},onWheel(e,t,n,r){if(!t.allowZoom)return;const{onZoomDomainChange:i,zoomDimension:o,zoomDomain:a}=t,s=this.getDomain(t),l=this.getLastDomain(t,s),{x:c,y:u}=l,d={x:o==="y"?l.x:this.scale(c,e,t,"x"),y:o==="x"?l.y:this.scale(u,e,t,"y")},f=this.handleAnimation(r),h=!this.zoommingOut(e)||t.zoomActive&&!this.checkDomainEquality(s,l),g={currentDomain:d,originalDomain:s,cachedZoomDomain:a,parentControlledProps:["domain"],panning:!1,zoomActive:h};return Se(i)&&i(d,K({},g,t)),[{target:"parent",callback:f,mutation:()=>g}]}},qr={checkDomainEquality:dr.checkDomainEquality.bind(dr),onMouseDown:dr.onMouseDown.bind(dr),onMouseUp:dr.onMouseUp.bind(dr),onMouseLeave:dr.onMouseLeave.bind(dr),onMouseMove:Cs(dr.onMouseMove.bind(dr),16,{leading:!0,trailing:!1}),onWheel:Cs(dr.onWheel.bind(dr),16,{leading:!0,trailing:!1})},Fle=150,V6={clipContainerComponent:y.createElement(bs,null),allowPan:!0,allowZoom:!0,zoomActive:!1},U6=e=>{const t={...V6,...e},{children:n,currentDomain:r,zoomActive:i,allowZoom:o,downsample:a,scale:s,clipContainerComponent:l,polar:c,origin:u,horizontal:d}=t,f=(g,p)=>{const b=(O=>{const{data:T,x:D,y:j}=O,A=g.type&&typeof g.type.getData=="function"?g.type.getData:()=>{};return Array.isArray(T)&&!D&&!j?T:A(O)})(g.props);if(!a||!p||!b)return;const x=a===!0?Fle:a,S=t.zoomDimension||"x";let w=b.findIndex(O=>O[S]>=p[S][0]),_=b.findIndex(O=>O[S]>p[S][1]);w!==0&&(w-=1),_!==-1&&(_+=1);const E=b.slice(w,_);return RH(E,x,w)},h=y.Children.toArray(n).map(g=>{const p=g.type&&g.type.role,v=ds(g),b=K({},t.originalDomain,t.domain),x=K({},t.zoomDomain,t.domain),S=K({},t.cachedZoomDomain,t.domain);let w;qr.checkDomainEquality(x,S)?o&&!i?w=g.props.domain:w=K({},r,b):w=x;let _=t.polar?{x:b.x,y:[0,w.y[1]]}:w;_&&t.zoomDimension&&(_={...x,[t.zoomDimension]:_[t.zoomDimension]});const E=v&&p!=="stack"?{domain:_,data:f(g,_)}:{domain:_},O=y.cloneElement(g,K(E,g.props));if(ds(O)){const T=d?s.y.range():s.x.range(),D=d?s.x.range():s.y.range(),j=Math.abs(T[0]-T[1]),A=Math.abs(D[0]-D[1]),M=Math.max(...D),P=y.cloneElement(l,{clipWidth:j,clipHeight:A,translateX:Math.min(...T),translateY:Math.min(...D),polar:c,origin:c?u:void 0,radius:c?M:void 0,...l.props});return y.cloneElement(O,{groupComponent:P})}return O});return{props:t,children:h}},Dp=e=>{const{props:t,children:n}=U6(e);return y.createElement(Qt,t,n)};Dp.role="container",Dp.defaultEvents=e=>{const t={...V6,...e},n=(r,i)=>(o,a,s,l)=>i||t.disable?{}:r(o,{...t,...a},s,l);return[{target:"parent",eventHandlers:{onMouseDown:n(qr.onMouseDown),onTouchStart:n(qr.onMouseDown),onMouseUp:n(qr.onMouseUp),onTouchEnd:n(qr.onMouseUp),onMouseLeave:n(qr.onMouseLeave),onTouchCancel:n(qr.onMouseLeave),onMouseMove:n(qr.onMouseMove),onTouchMove:n(qr.onMouseMove),onWheel:n(qr.onWheel,!t.allowZoom)}}]};const Nle=16;class Ble{constructor(){ce(this,"onMouseDown",(t,n)=>{t.preventDefault();const{activateSelectedData:r,allowSelection:i,polar:o,selectedData:a}=n;if(!i)return{};const s=this.getDimension(n),l=n.parentSVG||xi(t),{x:c,y:u}=Ur(t,l),d=o||s!=="y"?c:_i(n).x[0],f=o||s!=="x"?u:_i(n).y[0],h=o||s!=="y"?c:_i(n).x[1],g=o||s!=="x"?u:_i(n).y[1],p={x1:d,y1:f,select:!0,x2:h,y2:g,parentSVG:l};a&&Se(n.onSelectionCleared)&&n.onSelectionCleared(K({},p,n));const v=[{target:"parent",mutation:()=>p}],b=a&&r?a.map(x=>({childName:x.childName,eventKey:x.eventKey,target:"data",mutation:()=>null})):[];return v.concat(...b)});ce(this,"handleMouseMove",(t,n)=>{const{allowSelection:r,select:i,polar:o}=n,a=this.getDimension(n);if(!r||!i)return null;const s=n.parentSVG||xi(t),{x:l,y:c}=Ur(t,s),u=o||a!=="y"?l:_i(n).x[1],d=o||a!=="x"?c:_i(n).y[1];return{target:"parent",mutation:()=>({x2:u,y2:d,parentSVG:s})}});ce(this,"onMouseMove",Cs(this.handleMouseMove,Nle,{leading:!0,trailing:!1}));ce(this,"onMouseUp",(t,n)=>{const{activateSelectedData:r,allowSelection:i,x2:o,y2:a}=n;if(!i)return null;if(!o||!a)return[{target:"parent",mutation:()=>({select:!1,x1:null,x2:null,y1:null,y2:null})}];const s=this.getDatasets(n),l=Yd(n),c=this.filterDatasets(n,s),u={selectedData:c,datasets:s,select:!1,x1:null,x2:null,y1:null,y2:null},d=c&&Se(n.onSelection)?n.onSelection(c,l,K({},u,n)):{},f=[{target:"parent",mutation:()=>u}],h=c&&r?c.map(g=>({childName:g.childName,eventKey:g.eventKey,target:"data",mutation:()=>Object.assign({active:!0},d)})):[];return f.concat(h)})}getDimension(t){const{horizontal:n,selectionDimension:r}=t;return!n||!r?r:r==="x"?"y":"x"}getDatasets(t){if(t.data)return[{data:t.data}];const n=i=>{const o=dn(i);return Array.isArray(o)&&o.length>0?o:void 0},r=(i,o,a)=>{const s=t.selectionBlacklist||[];let l;if(!ds(i)||s.includes(o))return null;if(i.type&&Se(i.type.getData)){l=a?y.cloneElement(i,a.props):i;const u=l.props&&l.type.getData(l.props);return u?{childName:o,data:u}:null}const c=n(l.props);return c?{childName:o,data:c}:null};return ro(y.Children.toArray(t.children),r,t)}filterDatasets(t,n){const r=n.reduce((i,o)=>{const a=this.getSelectedData(t,o.data);return a?i.concat({childName:o.childName,eventKey:a.eventKey,data:a.data}):i},[]);return r.length?r:null}getSelectedData(t,n){const{x1:r,y1:i,x2:o,y2:a}=t,s=d=>{const f=is(t,d);return f.x>=Math.min(r,o)&&f.x<=Math.max(r,o)&&f.y>=Math.min(i,a)&&f.y<=Math.max(i,a)},l=[],c=[];let u=0;for(let d=0,f=n.length;d<f;d++){const h=n[d];s(h)&&(c[u]=h,l[u]=h.eventKey===void 0?d:h.eventKey,u++)}return u>0?{eventKey:l,data:c}:null}}const Es=new Ble,H6={activateSelectedData:!0,allowSelection:!0,selectionComponent:y.createElement(oa,null),selectionStyle:{stroke:"transparent",fill:"black",fillOpacity:.1}},G6=e=>{const t={...H6,...e},{x1:n,x2:r,y1:i,y2:o,selectionStyle:a,selectionComponent:s,children:l,name:c}=t,u=Math.abs(r-n)||1,d=Math.abs(o-i)||1,f=Math.min(n,r),h=Math.min(i,o);return{props:t,children:[l,i&&o&&n&&r&&y.cloneElement(s,{key:`${c}-selection`,x:f,y:h,width:u,height:d,style:a})]}},jp=e=>{const{props:t,children:n}=G6(e);return y.createElement(Qt,t,n)};jp.role="container",jp.defaultEvents=e=>{const t={...H6,...e},n=(r,i)=>(o,a,s,l)=>t.disable?{}:r(o,{...t,...a},s,l);return[{target:"parent",eventHandlers:{onMouseDown:n(Es.onMouseDown),onTouchStart:n(Es.onMouseDown),onMouseMove:n(Es.onMouseMove),onTouchMove:n(Es.onMouseMove),onMouseUp:n(Es.onMouseUp),onTouchEnd:n(Es.onMouseUp)}}]};const la={getDimension(e){const{horizontal:t,brushDimension:n}=e;return!t||!n?n:n==="x"?"y":"x"},withinBounds(e,t,n){const{x1:r,x2:i,y1:o,y2:a}=os(t,Number),{x:s,y:l}=os(e,Number),c=n?n/2:0;return s+c>=Math.min(r,i)&&s-c<=Math.max(r,i)&&l+c>=Math.min(o,a)&&l-c<=Math.max(o,a)},getDomainBox(e,t,n){const r=this.getDimension(e),i=K({},t,e.domain),o=K({},n,i),a=_i(e,i),s=_i(e,o);return{x1:Math.min(...r!=="y"?s.x:a.x),x2:Math.max(...r!=="y"?s.x:a.x),y1:Math.min(...r!=="x"?s.y:a.y),y2:Math.max(...r!=="x"?s.y:a.y)}},getHandles(e,t){const n=this.getDimension(e),{x1:r,x2:i,y1:o,y2:a}=t,s=Math.min(r,i),l=Math.max(r,i),c=Math.min(o,a),u=Math.max(o,a),d=e.handleWidth/2;return{left:n!=="y"&&{x1:s-d,x2:s+d,y1:o,y2:a},right:n!=="y"&&{x1:l-d,x2:l+d,y1:o,y2:a},top:n!=="x"&&{x1:r,x2:i,y1:c-d,y2:c+d},bottom:n!=="x"&&{x1:r,x2:i,y1:u-d,y2:u+d}}},getActiveHandles(e,t,n){const r=this.getHandles(t,n),i=["top","bottom","left","right"].reduce((o,a)=>r[a]&&this.withinBounds(e,r[a])?o.concat(a):o,[]);return i.length&&i},getResizeMutation(e,t){const{x1:n,y1:r,x2:i,y2:o}=e,a={left:{x1:Math.max(n,i),x2:Math.min(n,i),y1:r,y2:o},right:{x1:Math.min(n,i),x2:Math.max(n,i),y1:r,y2:o},top:{y1:Math.max(r,o),y2:Math.min(r,o),x1:n,x2:i},bottom:{y1:Math.min(r,o),y2:Math.max(r,o),x1:n,x2:i}};return t.reduce((s,l)=>Object.assign(s,a[l]),{})},getMinimumDomain(){return{x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}},getDefaultBrushArea(e,t,n){const{domain:r,fullDomain:i,scale:o,horizontal:a,allowResize:s}=e,l=!s&&!e.defaultBrushArea?"move":e.defaultBrushArea;if(l==="none")return this.getMinimumDomain();if(l==="disable")return t;if(l==="move"){const c=this.getDomainBox(e,i,t),u=e.parentSVG||xi(n),d=this.panBox({...e,...c,brushDomain:t,startX:(c.x1+c.x2)/2,startY:(c.y1+c.y2)/2},Ur(n,u)),f=e.fullDomainBox||this.getDomainBox(e,i),h=this.constrainBox(d,f);return Yd({...h,scale:o,horizontal:a})}return r},getSelectionMutation(e,t,n){const{x:r,y:i}=e,{x1:o,x2:a,y1:s,y2:l}=t;return{x1:n!=="y"?r:o,y1:n!=="x"?i:s,x2:n!=="y"?r:a,y2:n!=="x"?i:l}},panBox(e,t){const{domain:n,startX:r,startY:i}=e,o=this.getDimension(e),a=K({},e.brushDomain,n),s=K({},e.fullDomain,n),{x1:l,x2:c,y1:u,y2:d}=e.x1?e:this.getDomainBox(e,s,a),{x:f,y:h}=t,g={x:r?r-f:0,y:i?i-h:0};return{x1:o!=="y"?Math.min(l,c)-g.x:Math.min(l,c),x2:o!=="y"?Math.max(l,c)-g.x:Math.max(l,c),y1:o!=="x"?Math.min(u,d)-g.y:Math.min(u,d),y2:o!=="x"?Math.max(u,d)-g.y:Math.max(u,d)}},constrainBox(e,t){const{x1:n,y1:r,x2:i,y2:o}=os(t,Number);return{x1:e.x2>i?i-Math.abs(e.x2-e.x1):Math.max(e.x1,n),y1:e.y2>o?o-Math.abs(e.y2-e.y1):Math.max(e.y1,r),x2:e.x1<n?n+Math.abs(e.x2-e.x1):Math.min(e.x2,i),y2:e.y1<r?r+Math.abs(e.y2-e.y1):Math.min(e.y2,o)}},constrainPoint(e,t){const{x1:n,y1:r,x2:i,y2:o}=os(t,Number);return{x:Math.min(Math.max(e.x,n),i),y:Math.min(Math.max(e.y,r),o)}},hasMoved(e){const{x1:t,x2:n,y1:r,y2:i,mouseMoveThreshold:o}=e,a=this.getDimension(e),s=Math.abs(t-n)>=o,l=Math.abs(r-i)>=o;switch(a){case"x":return s;case"y":return l;default:return s||l}},onMouseDown(e,t){e.preventDefault();const{handleWidth:n,cachedBrushDomain:r,domain:i,allowResize:o,allowDrag:a,allowDraw:s}=t,l=this.getDimension(t),c=!o&&!t.defaultBrushArea?"move":t.defaultBrushArea;if(!o&&!a)return{};const u=t.fullDomainBox||this.getDomainBox(t,i),d=t.parentSVG||xi(e),{x:f,y:h}=Ur(e,d);if(!this.withinBounds({x:f,y:h},u,n))return{};const g=K({},t.brushDomain,i),p=Vn(g,r)?t.currentDomain||g||i:g||i,v=this.getDomainBox(t,i,p),b=o&&this.getActiveHandles({x:f,y:h},t,v);return b?[{target:"parent",mutation:()=>({isSelecting:!0,domainBox:v,fullDomainBox:u,cachedBrushDomain:g,currentDomain:p,parentSVG:d,...this.getResizeMutation(v,b)})}]:this.withinBounds({x:f,y:h},v)&&!Vn(i,p)?[{target:"parent",mutation:()=>({isPanning:a,startX:f,startY:h,domainBox:v,fullDomainBox:u,currentDomain:p,cachedBrushDomain:g,parentSVG:d,...v})}]:s?[{target:"parent",mutation:()=>({isSelecting:o||c==="move",domainBox:v,fullDomainBox:u,parentSVG:d,cachedBrushDomain:g,cachedCurrentDomain:p,currentDomain:this.getMinimumDomain(),...this.getSelectionMutation({x:f,y:h},v,l)})}]:{}},onGlobalMouseMove(e,t){const{scale:n,isPanning:r,isSelecting:i,fullDomainBox:o,onBrushDomainChange:a,allowResize:s,allowDrag:l,horizontal:c,mouseMoveThreshold:u,parentSVG:d}=t,f=this.getDimension(t),{x:h,y:g}=Ur(e,d);if(!s&&!l||u>0&&!this.hasMoved({...t,x2:h,y2:g}))return{};if(l&&r){const{startX:p,startY:v}=t,b=this.panBox(t,{x:h,y:g}),x=this.constrainBox(b,o),S=Yd({...x,scale:n,horizontal:c}),w={currentDomain:S,parentSVG:d,startX:b.x2>=o.x2||b.x1<=o.x1?p:h,startY:b.y2>=o.y2||b.y1<=o.y1?v:g,...x};return Se(a)&&a(S,K({},w,t)),[{target:"parent",mutation:()=>w}]}else if(s&&i){const{x:p,y:v}=this.constrainPoint({x:f!=="y"?h:t.x2,y:f!=="x"?g:t.y2},o),b=Yd({x2:p,y2:v,x1:t.x1,y1:t.y1,scale:n,horizontal:c}),x={x2:p,y2:v,currentDomain:b,parentSVG:d};return Se(a)&&a(b,K({},x,t)),[{target:"parent",mutation:()=>x}]}return{}},onGlobalMouseUp(e,t){if(!t.isPanning&&!t.isSelecting)return{};const{x1:n,y1:r,x2:i,y2:o,isPanning:a,isSelecting:s,onBrushDomainChange:l,onBrushDomainChangeEnd:c,onBrushCleared:u,currentDomain:d,allowResize:f,allowDrag:h}=t,g=!f&&!t.defaultBrushArea?"move":t.defaultBrushArea,p=g!==void 0&&g!=="none",v={isPanning:!1,isSelecting:!1};if((f||p)&&(n===i||r===o)){const b=t.cachedCurrentDomain||d,x=this.getDefaultBrushArea(t,b,e);v.currentDomain=x,Se(l)&&l(x,K({},v,t)),Se(c)&&c(x,K({},v,t)),Se(u)&&u(x,K({},v,t))}else(h&&a||f&&s)&&Se(c)&&c(d,K({},v,t));return[{target:"parent",mutation:()=>v}]}},Di={...la,onMouseDown:la.onMouseDown.bind(la),onGlobalMouseUp:la.onGlobalMouseUp.bind(la),onGlobalMouseMove:Cs(la.onGlobalMouseMove.bind(la),16,{leading:!0,trailing:!1})},q6={allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:y.createElement(oa,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:y.createElement(oa,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0},Y6=e=>{const t={...q6,...e},{children:n}=t,r=s=>{const{x:l,y:c}=s,{brushStyle:u,brushComponent:d,name:f}=t,h=d.props&&d.props.style,g=!t.allowDrag&&!t.allowResize?"auto":"move";return l[0]!==l[1]&&c[0]!==c[1]?y.cloneElement(d,{key:`${f}-brush`,width:Math.abs(l[1]-l[0])||1,height:Math.abs(c[1]-c[0])||1,x:Math.min(l[0],l[1]),y:Math.min(c[0],c[1]),cursor:g,style:K({},h,u)}):null},i=()=>{const s={yProps:"ns-resize",xProps:"ew-resize"};return!t.allowResize&&t.allowDrag?(s.xProps="move",s.yProps="move"):!t.allowResize&&!t.allowDrag&&(s.xProps="auto",s.yProps="auto"),s},o=s=>{const{handleWidth:l,handleStyle:c,handleComponent:u,name:d}=t,f=Di.getDomainBox(t,s),{x1:h,x2:g,y1:p,y2:v}=f,{top:b,bottom:x,left:S,right:w}=Di.getHandles(t,f),_=Math.abs(g-h)||1,E=Math.abs(v-p)||1,O=u.props&&u.props.style||{},T=K({},O,c),D=i(),j={style:T,width:_,height:l,cursor:D.yProps},A={style:T,width:l,height:E,cursor:D.xProps},M={top:b&&Object.assign({x:b.x1,y:b.y1},j),bottom:x&&Object.assign({x:x.x1,y:x.y1},j),left:S&&Object.assign({y:S.y1,x:S.x1},A),right:w&&Object.assign({y:w.y1,x:w.x1},A)},P=["top","bottom","left","right"].reduce(($,L)=>M[L]?$.concat(y.cloneElement(u,Object.assign({key:`${d}-handle-${L}`},M[L]))):$,[]);return P.length?P:null},a=()=>{const{currentDomain:s,cachedBrushDomain:l}=t,c=K({},t.brushDomain,t.domain),u=Vn(c,l)?K({},s,c):c,d=_i(t,u),f=r(d);return f?[f,o(u)]:[]};return{props:t,children:[...y.Children.toArray(n),...a()]}},Pp=e=>{const{props:t,children:n}=Y6(e);return y.createElement(Qt,t,n)};Pp.role="container",Pp.defaultEvents=e=>{const t={...q6,...e},n=(r,i)=>(o,a,s,l)=>t.disable||i!=null&&i(a)?{}:r(o,{...t,...a},s,l);return[{target:"parent",eventHandlers:{onMouseDown:n(Di.onMouseDown),onTouchStart:n(Di.onMouseDown),onGlobalMouseMove:n(Di.onGlobalMouseMove,r=>!r.isPanning&&!r.isSelecting),onGlobalTouchMove:n(Di.onGlobalMouseMove,r=>!r.isPanning&&!r.isSelecting),onGlobalMouseUp:n(Di.onGlobalMouseUp),onGlobalTouchEnd:n(Di.onGlobalMouseUp),onGlobalTouchCancel:n(Di.onGlobalMouseUp)}}]};function K6(e){if(e){if(!Array.isArray(e))return[e]}else return[];return e}const Wle=e=>e.reduce((t,n)=>(kle(t,(r,i)=>{const o=n[i];o?n[i]=function(){const s=K6(o(...arguments)),l=K6(r(...arguments));return s.concat(l)}:n[i]=r}),n)),zle=e=>{const t=Qd(e,"target");return ble(t).map(r=>{let[i,o]=r;const a=o.filter(Boolean);return vt(a)?null:{target:i,eventHandlers:Wle(o.map(s=>s.eventHandlers))}}).filter(Boolean)},Z6={zoom:U6,selection:G6,brush:Y6,cursor:w6,voronoi:R6},Rle={zoom:Dp,selection:jp,brush:Pp,cursor:bp,voronoi:Ap};function Vle(e,t){return function(r,i){const o=e[r],a=e[i],s=Z6[r],l=Z6[i],c=u=>{const{children:d,props:f}=s(u),{children:h,props:g}=l({...f,children:d});return y.createElement(t,g,h)};return c.displayName=`Victory${r}${i}Container`,c.role="container",c.defaultEvents=u=>zle([...o.defaultEvents(u),...a.defaultEvents(u)]),c}}const Ule=Vle(Rle,Qt),Hle=(e,t)=>{const n=Ule(e,t),r=i=>{const o=Object.assign(Object.assign(Object.assign({},{cursorLabelComponent:k.createElement(an,{textAnchor:"start"}),cursorComponent:k.createElement(Ci,{style:{stroke:tle.var}})}),{labelComponent:k.createElement(Sf,null)}),i);return k.createElement(n,Object.assign({},o))};return r.defaultEvents=n.defaultEvents,r.displayName=n.displayName,r.role=n.role,r};function Gle(e){return e.horizontal?m.jsx(qle,{children:e.legend.map((t,n)=>t.count===0&&e.allowZero!==!0?m.jsx(y.Fragment,{},n):m.jsxs(Yle,{children:[m.jsx(X6,{id:`${e.id}-${t.label.toLowerCase().replace(/ /g,"-")}-count`,color:t.color}),e.showLegendCount===!1?null:m.jsx(J6,{count:t.count}),m.jsx(Q6,{label:t.label,link:t.link})]},n))}):m.jsx(Kle,{children:e.legend.map((t,n)=>t.count===0&&e.allowZero!==!0?m.jsx(y.Fragment,{},n):m.jsxs(y.Fragment,{children:[m.jsx(X6,{color:t.color}),e.showLegendCount===!1?null:m.jsx(J6,{id:`${e.id}-${t.label.toLowerCase().replace(/ /g,"-")}-count`,count:t.count}),m.jsx(Q6,{label:t.label,link:t.link})]},n))})}function X6(e){return m.jsx(Zle,{id:e.id,style:{backgroundColor:e.color}})}function J6(e){return m.jsx(Xle,{id:e.id,children:e.count})}function Q6(e){return m.jsx(Jle,{children:e.link?m.jsx(Ot.Link,{to:e.link,style:{textDecoration:"none"},children:e.label}):e.label})}const qle=De.div`
|
317
|
+
z`},Hae=e=>{const t=e.orientation||"top";return t==="left"||t==="right"?Uae(e):Vae(e)},Gae=e=>{const t=te(e.id,e),n=st(e.style,e);return Object.assign({},e,{id:t,style:n})},qae=e=>(e=Gae(Object.assign({pathComponent:k.createElement(fo,null),role:"presentation",shapeRendering:"auto"},e)),k.cloneElement(e.pathComponent,Object.assign(Object.assign({},e.events),{style:e.style,d:Hae(e),className:e.className,shapeRendering:e.shapeRendering,role:e.role,transform:e.transform,clipPath:e.clipPath}))),Sf=e=>{var{constrainToVisibleArea:t=!0,flyoutComponent:n=k.createElement(qae,null),labelTextAnchor:r="start",showPointer:i=!0,style:o,themeColor:a,theme:s=on(a),centerOffset:l=zae({offsetCursorDimensionX:!0,theme:s}),pointerOrientation:c=Rae({horizontal:!0,theme:s}),pointerLength:u=i&&s&&s.tooltip?s.tooltip.pointerLength:0,pointerWidth:d=s.tooltip.pointerWidth}=e,f=Ae(e,["constrainToVisibleArea","flyoutComponent","labelTextAnchor","showPointer","style","themeColor","theme","centerOffset","pointerOrientation","pointerLength","pointerWidth"]);const h=v=>Object.assign(Object.assign({},v),{textAnchor:r}),g=Array.isArray(o)?o.map(h):h(o),p=()=>{let v=te(u,void 0);return i&&v===0&&(v=s&&s.tooltip?te(s.tooltip.pointerLength,void 0):10),k.cloneElement(n,Object.assign({pointerLength:v,pointerWidth:d},n.props))};return k.createElement(Xl,Object.assign({centerOffset:l,constrainToVisibleArea:t,flyoutComponent:p(),labelTextAnchor:r,pointerOrientation:c,style:g,theme:s},f))};Sf.displayName="ChartCursorTooltip",rn(Sf,go);const Yae=e=>e==null||Se(e)?e:`${e}`,Kae=(e,t,n)=>e&&e.data&&e.data.fill?e.data.fill:t&&t[n%t.length],Zae=(e,t)=>typeof e.radius=="number"?e.radius:Math.min(e.width-t.left-t.right,e.height-t.top-t.bottom)/2,Xae=(e,t)=>{const{width:n,height:r}=e,i=Mt(e.origin)?e.origin:{};return{x:i.x!==void 0?i.x:(t.left-t.right+n)/2,y:i.y!==void 0?i.y:(t.top-t.bottom+r)/2}},Jae=(e,t)=>{const n=Se(e.padAngle)?0:e.padAngle;return kS().sort(null).startAngle(dt(e.startAngle)).endAngle(dt(e.endAngle)).padAngle(dt(n)).value(i=>i._y)(t)},Qae=e=>{var t;return Array.isArray(e.categories)?e.categories:((t=e==null?void 0:e.categories)==null?void 0:t.x)??[]},ese=(e,t)=>{const n=[];return Qae(e).forEach(r=>{const i=t.findIndex(o=>{let{x:a}=o;return a===r});if(i>=0){const o=t.splice(i,1)[0];n.push(o)}}),[...n,...t]},tse=e=>{const{colorScale:t,theme:n}=e,r=sd(e,"pie"),i=Cl(e.style,r),o=Array.isArray(t)?t:Rg(t,n),a=xt(e),s=Zae(e,a),l=Xae(e,a),c=ese(e,dn(e)),u=Jae(e,c);return Object.assign({},e,{style:i,colors:o,padding:a,defaultRadius:s,data:c,slices:u,origin:l})},nse=(e,t)=>{const{style:n,colors:r}=t,i=Kae(n,r,e);return Object.assign({fill:i},n.data)},rse=(e,t,n)=>{let r;return t.label?r=t.label:Array.isArray(e.labels)?r=e.labels[n]:r=Se(e.labels)?e.labels:t.xName||t._x,Yae(r)},ise=e=>bg().outerRadius(e).innerRadius(e),ose=(e,t,n)=>{const r=n&&n.padding||0;return t||e+r},ase=(e,t,n)=>{const r={startAngle:n==="startAngle"?t.startAngle:t.endAngle,endAngle:n==="endAngle"?t.endAngle:t.startAngle},i=Object.assign({},t,r);return e.centroid(i)},sse=(e,t)=>t==="perpendicular"?e>90&&e<270?"bottom":"top":t==="parallel"?e>=0&&e<=180?"right":"left":e<45||e>315?"top":e>=45&&e<135?"right":e>=135&&e<225?"bottom":"left",lse=e=>e==="top"||e==="bottom"?"middle":e==="right"?"start":"end",cse=e=>e==="left"||e==="right"?"middle":e==="bottom"?"start":"end",use=(e,t,n)=>{let r=0;return t.angle!==void 0?r=n.angle:t==="centroid"?r=ui((e.startAngle+e.endAngle)/2):r=ui(t==="startAngle"?e.startAngle:e.endAngle),(r<0?360-r:r)%360},dse=(e,t)=>t==="vertical"?0:t==="parallel"?e>180&&e<360?e+90:e-90:e>90&&e<270?e-180:e,fse=(e,t,n)=>{const{index:r,datum:i,data:o,slice:a,labelComponent:s,theme:l}=t,{style:c,defaultRadius:u,origin:d,width:f,height:h}=n,g=te(n.labelRadius,Object.assign({text:e},t)),p=te(n.labelPosition,Object.assign({text:e},t))||"centroid",v=te(n.labelPlacement,Object.assign({text:e},t))||"vertical",b=Object.assign({padding:0},c.labels),x=st(b,Object.assign({labelRadius:g,text:e},t)),S=ose(u,g,x),w=ise(S),_=ase(w,a,p),E=use(a,p,b),O=dse(E,v),T=sse(E,v),D=b.textAnchor||lse(T),j=b.verticalAnchor||cse(T),A={width:f,height:h,index:r,datum:i,data:o,slice:a,orientation:T,text:e,style:b,x:Math.round(_[0])+d.x,y:Math.round(_[1])+d.y,textAnchor:D,verticalAnchor:j,angle:O,calculatedLabelRadius:S};if(!ad(s))return A;const M=l&&l.tooltip||{};return Z({},A,wl(M,["style"]))},hse=e=>Math.cos(e-dt(90)),mse=e=>Math.sin(e-dt(90)),k6=(e,t)=>e*hse(t),T6=(e,t)=>e*mse(t),A6=e=>e.reduce((t,n)=>t+n,0)/e.length,gse=(e,t,n)=>{const{innerRadius:r,radius:i,slice:{startAngle:o,endAngle:a},labelIndicatorInnerOffset:s,labelIndicatorOuterOffset:l,index:c}=e,{height:u,width:d}=t,{calculatedLabelRadius:f}=n,h=A6([r,i]),g=A6([a,o]),p=d/2,v=u/2,b=h+s,x=f-l,S=p+k6(b,g),w=v+T6(b,g),_=p+k6(x,g),E=v+T6(x,g);return Z({},{x1:S,y1:w,x2:_,y2:E,index:c})},pse=(e,t)=>{const n=Bt(e,t,"pie"),r=tse(n),{slices:i,style:o,data:a,origin:s,defaultRadius:l,labels:c,events:u,sharedEvents:d,height:f,width:h,standalone:g,name:p,innerRadius:v,cornerRadius:b,padAngle:x,disableInlineStyles:S,labelIndicator:w}=r,_=n.radius||l,E={parent:{standalone:g,height:f,width:h,slices:i,name:p,style:o.parent}};return i.reduce((O,T,D)=>{const j=Z({},a[D],{startAngle:ui(T.startAngle),endAngle:ui(T.endAngle),padAngle:ui(T.padAngle)}),A=di(j.eventKey)?D:j.eventKey,M={index:D,slice:T,datum:j,data:a,origin:s,innerRadius:v,radius:_,cornerRadius:b,padAngle:x,style:S?{}:nse(D,r),disableInlineStyles:S};O[A]={data:M};const P=rse(n,j,D);if(P!=null||c&&(u||d)){const $=te(P,M);if(O[A].labels=fse($,Object.assign({},n,M),r),w){const L=O[A].labels;L.calculatedLabelRadius>_&&(O[A].labelIndicators=gse(Object.assign({},n,M),r,L))}}return O},E)},yse=e=>{const{slice:t,radius:n,innerRadius:r,cornerRadius:i}=e;if(Se(e.pathFunction))return e.pathFunction(t);const o=dt(e.padAngle),a=dt(e.sliceStartAngle),s=dt(e.sliceEndAngle);return bg().cornerRadius(i).outerRadius(n).innerRadius(r||0)(Z({startAngle:a,endAngle:s,padAngle:o},t))},vse=e=>{const t=st(e.style,e),n=te(e.radius,Object.assign({},e,{style:t})),r=te(e.innerRadius,Object.assign({},e,{style:t,radius:n})),i=te(e.ariaLabel,e),o=te(e.id,e),a=te(e.cornerRadius,e),s=te(e.padAngle,e),l=te(e.sliceStartAngle,e),c=te(e.sliceEndAngle,e),u=te(e.tabIndex,e);return Object.assign({},e,{ariaLabel:i,style:t,radius:n,innerRadius:r,id:o,cornerRadius:a,padAngle:s,sliceStartAngle:l,sliceEndAngle:c,tabIndex:u})},bse={pathComponent:y.createElement(fo,null),role:"presentation",shapeRendering:"auto"},xse=e=>{const t=vse(Z({},e,bse)),n=t.origin?`translate(${t.origin.x}, ${t.origin.y})`:void 0;return y.cloneElement(t.pathComponent,{...t.events,"aria-label":t.ariaLabel,d:yse(t),style:t.style,transform:t.transform||n,className:t.className,role:t.role,shapeRendering:t.shapeRendering,clipPath:t.clipPath,tabIndex:t.tabIndex})},D6={endAngle:360,height:400,innerRadius:0,cornerRadius:0,padAngle:0,padding:30,width:400,startAngle:0,colorScale:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],labelPosition:"centroid",labelIndicatorInnerOffset:15,labelIndicatorOuterOffset:5},_se=e=>!di(e._x)&&!di(e._y);class po extends y.Component{static getBaseProps(t){return pse(t,D6)}shouldAnimate(){return!!this.props.animate}renderComponents(t,n){n===void 0&&(n=_se);const{dataComponent:r,labelComponent:i,groupComponent:o,labelIndicator:a,labelPosition:s}=t;if(!o)throw new Error("VictoryPie expects a groupComponent prop");const l=a&&s==="centroid",c=[];if(r){const u=this.dataKeys.reduce((d,f,h)=>{const g=this.getComponentProps(r,"data",h);return n(g.datum)&&d.push(y.cloneElement(r,g)),d},[]);c.push(...u)}if(i){const u=this.dataKeys.map((d,f)=>{const h=this.getComponentProps(i,"labels",f);if(h.text!==void 0&&h.text!==null)return y.cloneElement(i,h)}).filter(d=>d!==void 0);c.push(...u)}if(l&&a){let u=y.createElement(Ci,null);typeof a=="object"&&(u=a);const d=this.dataKeys.map((f,h)=>{const g=this.getComponentProps(u,"labelIndicators",h);return y.cloneElement(u,g)});c.push(...d)}return this.renderContainer(o,c)}render(){const{animationWhitelist:t,role:n}=Jl,r=Bt(this.props,D6,n);if(this.shouldAnimate())return this.animateComponent(r,t);const i=this.renderComponents(r),o=r.standalone?this.renderContainer(r.containerComponent,i):i;return ud(o,r)}}ce(po,"animationWhitelist",["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"]),ce(po,"displayName","VictoryPie"),ce(po,"role","pie"),ce(po,"defaultTransitions",{onExit:{duration:500,before:()=>({_y:0,label:" "})},onEnter:{duration:500,before:()=>({_y:0,label:" "}),after:t=>({y_:t._y,label:t.label})}}),ce(po,"defaultProps",{data:[{x:"A",y:1},{x:"B",y:2},{x:"C",y:3},{x:"D",y:1},{x:"E",y:2}],standalone:!0,dataComponent:y.createElement(xse,null),labelComponent:y.createElement(en,null),containerComponent:y.createElement(Qt,null),groupComponent:y.createElement("g",null),sortOrder:"ascending",theme:Ar.grayscale}),ce(po,"getData",dn),ce(po,"expectedComponents",["dataComponent","labelComponent","groupComponent","containerComponent","labelIndicatorComponent"]);const Jl=Yo(po),Sp=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,colorScale:i,constrainToVisibleArea:o=!1,containerComponent:a=k.createElement(cr,null),hasPatterns:s,legendAllowWrap:l=!1,legendComponent:c=k.createElement(ws,null),legendData:u,legendPosition:d=tn.legend.position,legendDirection:f="ltr",name:h,patternScale:g,patternUnshiftIndex:p,padding:v,radius:b,standalone:x=!0,style:S,themeColor:w,theme:_=on(w),labelComponent:E=t?k.createElement(Xl,{constrainToVisibleArea:o,theme:_}):void 0,legendOrientation:O=_.legend.orientation,height:T=_.pie.height,width:D=_.pie.width}=e,j=Ae(e,["allowTooltip","ariaDesc","ariaTitle","colorScale","constrainToVisibleArea","containerComponent","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","legendDirection","name","patternScale","patternUnshiftIndex","padding","radius","standalone","style","themeColor","theme","labelComponent","legendOrientation","height","width"]);const A={bottom:Gn("bottom",v,_.pie.padding),left:Gn("left",v,_.pie.padding),right:Gn("right",v,_.pie.padding),top:Gn("top",v,_.pie.padding)},{defaultColorScale:M,defaultPatternScale:P,isPatternDefs:$,patternId:L}=up({colorScale:i,hasPatterns:s,patternScale:g,themeColorScale:_.pie.colorScale}),q=b||(()=>{const Q=Vr({height:T,width:D,padding:A});return Q>-1?Q:void 0})(),U=()=>{if(!P)return S;const Q=S?Object.assign({},S):{};return Q.data=Object.assign({fill:({slice:ie})=>{const ue=P[ie.index%P.length];return ue||M[ie.index%M.length]}},Q.data),Q},z=k.createElement(Jl,Object.assign({colorScale:i,height:T,key:"pf-chart-pie",labelComponent:E,name:h,padding:v,radius:q,standalone:!1,style:U(),theme:_,width:D},j));let N=0;f==="rtl"&&(N=h6(u,_));const R=k.cloneElement(c,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({colorScale:i,data:u},h&&{name:`${h}-${c.type.displayName}`}),{key:"pf-chart-pie-legend",orientation:O,theme:_,themeColor:w}),f==="rtl"&&{dataComponent:c.props.dataComponent?k.cloneElement(c.props.dataComponent,{transform:`translate(${N})`}):k.createElement(yf,{transform:`translate(${N})`})}),f==="rtl"&&{labelComponent:c.props.labelComponent?k.cloneElement(c.props.labelComponent,{direction:"rtl",dx:N-30}):k.createElement(an,{direction:"rtl",dx:N-30})}),c.props)),J=()=>R.props.data?m6(Object.assign({allowWrap:l===!0||typeof l=="function",chartType:"pie",height:T,legendComponent:R,padding:A,position:d,theme:_,width:D},P&&{patternScale:P})):null,ee=x?k.cloneElement(a,Object.assign({desc:n,height:T,title:r,width:D,theme:_},a.props),[z,J(),$&&cp({patternId:L,colorScale:M,patternUnshiftIndex:p})]):null,X=J();return y.useEffect(()=>{if(X!=null&&X.props&&typeof l=="function"){const Q=g6({legendData:X.props.data,legendOrientation:X.props.orientation,legendProps:X.props,theme:_});l(Q)}},[X,l,_,D]),x?k.createElement(k.Fragment,null,ee):k.createElement(k.Fragment,null,z,X,$&&cp({patternId:L,colorScale:M,patternUnshiftIndex:p}))};Sp.displayName="ChartPie",rn(Sp,Jl);const wf=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,capHeight:i=1.1,containerComponent:o=k.createElement(cr,null),innerRadius:a,legendPosition:s=tn.legend.position,legendDirection:l="ltr",name:c,padAngle:u,padding:d,radius:f,standalone:h=!0,subTitle:g,subTitleComponent:p,subTitlePosition:v=Zl.label.subTitlePosition,themeColor:b,title:x,titleComponent:S=k.createElement(an,null),theme:w=tae(b),height:_=w.pie.height,width:E=w.pie.width}=e,O=Ae(e,["allowTooltip","ariaDesc","ariaTitle","capHeight","containerComponent","innerRadius","legendPosition","legendDirection","name","padAngle","padding","radius","standalone","subTitle","subTitleComponent","subTitlePosition","themeColor","title","titleComponent","theme","height","width"]);const T=Ss(b),D={bottom:Gn("bottom",d,w.pie.padding),left:Gn("left",d,w.pie.padding),right:Gn("right",d,w.pie.padding),top:Gn("top",d,w.pie.padding)},j=f?te(f,void 0):Vr({height:_,width:E,padding:D}),A=a?te(a,void 0):j-9,M=g&&v==="center",P=()=>!p&&M?H({styles:[Zl.label.title,Zl.label.subTitle],titles:[x,g]}):k.createElement(k.Fragment,{key:"pf-chart-donut-titles"},H({titles:x,dy:M?-8:0}),L({textComponent:p,dy:M?15:0})),$=({datum:z})=>z._y>0?w.pie.padAngle:0,L=({dy:z=0,textComponent:N=k.createElement(an,null)})=>{if(!g)return null;const R=N.props?N.props:{};return k.cloneElement(N,Object.assign(Object.assign(Object.assign(Object.assign({},c&&{id:`${c}-${N.type.displayName}-subTitle`}),{key:"pf-chart-donut-subtitle",style:Zl.label.subTitle,text:g,textAnchor:v==="right"?"start":"middle",verticalAnchor:"middle",x:u6({height:_,labelPosition:v,legendPosition:s,padding:D,width:E}),y:d6({dy:z,height:_,labelPosition:v,padding:D,width:E})}),R),(T==null?void 0:T.label)&&T.label))},H=({dy:z=0,styles:N=Zl.label.title,titles:R=x})=>{if(!R)return null;const J=S?S.props:{};return k.cloneElement(S,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Array.isArray(R)&&{capHeight:i}),c&&{id:`${c}-${S.type.displayName}-title`}),{key:"pf-chart-donut-title",style:N,text:R,textAnchor:"middle",verticalAnchor:"middle",x:u6({height:_,labelPosition:"center",legendPosition:s,padding:D,width:E}),y:d6({dy:z,height:_,labelPosition:"center",padding:D,width:E})}),J),(T==null?void 0:T.label)&&T.label))},q=k.createElement(Sp,Object.assign({allowTooltip:t,height:_,innerRadius:A>0?A:0,key:"pf-chart-donut-pie",legendPosition:s,legendDirection:l,name:c,padAngle:u!==void 0?u:$,padding:d,radius:j>0?j:0,standalone:!1,theme:w,themeColor:b,width:E},O)),U=k.cloneElement(o,Object.assign({desc:n,height:_,title:r,width:E,theme:w},o.props),[q,P()]);return h?k.createElement(k.Fragment,null,U):k.createElement(k.Fragment,null,q,P())};wf.displayName="ChartDonut",rn(wf,Jl);const wp=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,colorScale:i,containerComponent:o=k.createElement(cr,null),data:a,invert:s=!1,isStatic:l=!0,legendPosition:c=tn.legend.position,legendDirection:u="ltr",padding:d,standalone:f=!0,themeColor:h,thresholds:g,x:p,y:v,theme:b=nae(h),height:x=b.pie.height,width:S=b.pie.width}=e,w=Ae(e,["allowTooltip","ariaDesc","ariaTitle","colorScale","containerComponent","data","invert","isStatic","legendPosition","legendDirection","padding","standalone","themeColor","thresholds","x","y","theme","height","width"]);const _=()=>{const A=E(),M=[{x:A[0]._x,y:A[0]._y||0}];return l&&M.push({y:A[0]._x?Math.abs(100-A[0]._y):100}),M},E=()=>{const A=[Object.assign({},a)];return ig(A,Object.assign({x:p,y:v},w),["x","y"]).sort((M,P)=>M._y-P._y)},O=()=>{const A=[];if(g){const M=ts(g,"value",s?"desc":"asc"),P=l6.thresholds.colorScale.length;for(let $=0;$<M.length;$++)A.push({color:M[$].color?M[$].color:l6.thresholds.colorScale[$%P],value:M[$].value})}return A},T=()=>{const A=Object.assign({},b),M=E();if(M){const P=O(),$=L=>{A.pie.colorScale instanceof Array?A.pie.colorScale[0]=P[L].color:A.pie.colorScale=P[L].color,A.legend.colorScale instanceof Array?A.legend.colorScale[0]=P[L].color:A.legend.colorScale=P[L].color};for(let L=0;L<P.length;L++)s?M[0]._y<=P[L].value&&$(L):M[0]._y>=P[L].value&&$(L)}return A},D=k.createElement(wf,Object.assign({allowTooltip:t,colorScale:i,data:_(),height:x,key:"pf-chart-donut-utilization",legendPosition:c,legendDirection:u,padding:d,standalone:!1,theme:T(),themeColor:h,width:S},w)),j=k.cloneElement(o,Object.assign({desc:n,height:x,title:r,width:S,theme:b},o.props),[D]);return f?k.createElement(k.Fragment,null,j):k.createElement(k.Fragment,null,D)};wp.displayName="ChartDonutUtilization",rn(wp,Jl);const Cp=e=>{var{dx:t=0,index:n=0,legendData:r,legendLabelComponent:i=k.createElement(an,null),style:o,text:a,textAnchor:s="end",valueLabelComponent:l=k.createElement(an,null),x:c,y:u}=e,d=Ae(e,["dx","index","legendData","legendLabelComponent","style","text","textAnchor","valueLabelComponent","x","y"]);const f=b=>{const x=S=>Z(Object.assign({},S),{fill:ur.label.fill});return Array.isArray(b)?b.map(x):x(b)},h=()=>{const b=r&&r.length?r[n].name:void 0;return k.cloneElement(i,{style:f({}),text:b,textAnchor:"start",x:c,y:u})},g=()=>{const b=c+te(t,void 0);return k.cloneElement(l,Object.assign({style:f(o),text:a,textAnchor:s,x:b,y:u},d))},p=h(),v=g();return k.createElement(k.Fragment,null,p,v)};Cp.displayName="ChartLegendTooltipLabel",rn(Cp,en);const Ep=e=>{var{activePoints:t,center:n,datum:r,dx:i=0,dy:o=0,flyoutHeight:a,flyoutWidth:s,height:l,labelComponent:c=k.createElement(Cp,null),legendComponent:u=k.createElement(ws,null),legendData:d,patternScale:f,text:h,themeColor:g,title:p,titleComponent:v=k.createElement(an,null),width:b,theme:x=on(g)}=e,S=Ae(e,["activePoints","center","datum","dx","dy","flyoutHeight","flyoutWidth","height","labelComponent","legendComponent","legendData","patternScale","text","themeColor","title","titleComponent","width","theme"]);const w=x&&x.tooltip?te(x.tooltip.pointerLength,void 0):10,_=E6(u.props),E=_p({activePoints:t,colorScale:_.colorScale,legendData:d,text:h,theme:x}),O=0,T=p?5:-10,D=10,j=0,A=()=>{if(!(n||s||b)){const z=S.x;return z||void 0}const U=te(s,void 0);return b>n.x+U+w?n.x+ur.flyout.padding/2:n.x<U+w?ur.flyout.padding/2-w:n.x-U},M=()=>{if(!(n||a||l)){const z=S.y;return z||void 0}const U=te(a,void 0);return n.y<U/2?ur.flyout.padding/2:n.y>l-U/2?l-U+ur.flyout.padding/2:n.y-U/2+ur.flyout.padding/2},P=xp({legendData:E,legendProps:_,text:O6({activePoints:t,legendData:d,text:h}),theme:x}),$=xp({legendData:[{name:""}],legendProps:_,minSpacing:0,theme:x}),L=()=>k.cloneElement(c,Object.assign({datum:r,dx:P.width-$.width,legendData:E},c.props)),H=()=>{const U=p instanceof Function?p(r):p;return k.cloneElement(v,Object.assign({style:{fill:ur.label.fill,fontWeight:ur.label.fontWeight},text:U,textAnchor:"start",x:A()+D+te(i,void 0),y:M()+j+te(o,void 0)},v.props))},q=()=>k.cloneElement(u,Object.assign({data:_p({activePoints:t,colorScale:_.colorScale,legendData:d,patternScale:f,text:h,textAsLegendData:!0,theme:x}),labelComponent:L(),patternScale:f,standalone:!1,theme:x,themeColor:g,x:A()+O+te(i,void 0),y:M()+T+te(o,void 0)},_));return k.createElement(k.Fragment,null,H(),q())};Ep.displayName="ChartLegendTooltipContent",rn(Ep,Kl,{getBaseProps:!0});const Op=e=>{var{activePoints:t,center:n={x:0,y:0},datum:r,flyoutHeight:i,flyoutWidth:o,height:a,isCursorTooltip:s=!0,labelComponent:l=k.createElement(Ep,null),legendData:c,patternScale:u,text:d,themeColor:f,title:h,width:g,theme:p=on(f)}=e,v=Ae(e,["activePoints","center","datum","flyoutHeight","flyoutWidth","height","isCursorTooltip","labelComponent","legendData","patternScale","text","themeColor","title","width","theme"]);const b=p&&p.tooltip?te(p.tooltip.pointerLength,void 0):10,x=()=>({legendData:_p({activePoints:t,legendData:c,text:d,theme:p}),legendProps:E6(l.props.legendComponent?l.props.legendComponent.props:void 0),text:O6({activePoints:t,legendData:c,text:d}),theme:p}),S=({height:O})=>{const T=O+ur.flyout.padding;return h?T:T-10},w=({width:O})=>O+ur.flyout.padding,_=O=>k.cloneElement(l,Object.assign({center:n,flyoutHeight:i||S(O),flyoutWidth:o||w(O),height:a,legendData:c,patternScale:u,title:h,width:g},l.props));return(()=>{const O=xp(x());if(O.height===0&&O.width===0)return null;const T=w(O),D=s?k.createElement(Sf,null):k.createElement(Xl,null);return k.cloneElement(D,Object.assign(Object.assign(Object.assign({activePoints:t,center:n,datum:r,flyoutHeight:i||S(O),flyoutWidth:o||w(O),height:a,labelComponent:_(O)},o===void 0&&{showPointer:g>T+n.x+b||n.x>T+b}),{text:d,theme:p,themeColor:f,width:g}),v))})()};Op.displayName="ChartLegendTooltip",rn(Op,go);const Sse=e=>{let t=dn(e);t.length<2&&(t=[]);const n={x:Nt(e,"x"),y:Nt(e,"y")},r={x:Jo(e,"x"),y:Jo(e,"y")},i={x:ir(e,"x").domain(r.x).range(e.horizontal?n.y:n.x),y:ir(e,"y").domain(r.y).range(e.horizontal?n.x:n.y)},o=e.polar?e.origin||El(e):void 0,a=sd(e,"line"),s=Cl(e.style,a);return{domain:r,data:t,scale:i,style:s,origin:o}},wse=(e,t)=>{const n=Bt(e,t,"line"),r=Object.assign({},n,Sse(n)),{data:i,domain:o,events:a,groupComponent:s,height:l,horizontal:c,interpolation:u,origin:d,padding:f,polar:h,scale:g,sharedEvents:p,standalone:v,style:b,theme:x,width:S,labels:w,name:_,disableInlineStyles:E}=r,O={parent:{style:b.parent,scale:g,data:i,height:l,width:S,name:_,domain:o,standalone:v,polar:h,origin:d,padding:f,horizontal:c},all:{data:{horizontal:c,polar:h,origin:d,scale:g,data:i,interpolation:u,groupComponent:s,style:E?{}:b.data,theme:x,disableInlineStyles:E}}};return i.reduce((T,D,j)=>{const A=Md(r,D,j);if(A!=null||w&&(a||p)){const M=di(D.eventKey)?j:D.eventKey;T[M]={labels:pg(r,j)}}return T},O)},Cse=e=>{const t=te(e.ariaLabel,e),n=te(e.id,e),r=st(Object.assign({fill:"none",stroke:"black",pointerEvents:"stroke"},e.style),e),i=te(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,id:n,style:r,tabIndex:i})},Ese={pathComponent:y.createElement(fo,null),role:"presentation",shapeRendering:"auto"},Ose=e=>{const t=Cse(Z({},e,Ese)),n=Tr(t),{polar:r,origin:i}=t,o=hw(t),a=r&&i?`translate(${i.x}, ${i.y})`:void 0,s=o(t.data);return y.cloneElement(t.pathComponent,{...t.events,...n,"aria-label":t.ariaLabel,d:s,style:t.style,transform:t.transform||a,className:t.className,role:t.role,shapeRendering:t.shapeRendering,clipPath:t.clipPath,tabIndex:t.tabIndex})},j6={width:450,height:300,padding:50,interpolation:"linear"},kse={components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]},Yn=class Yn extends y.Component{constructor(t){super(t)}static getBaseProps(t){return wse(t,j6)}shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=Yn,r=Bt(this.props,j6,n);if(this.shouldAnimate())return this.animateComponent(r,t);const i=this.renderContinuousData(r),o=r.standalone?this.renderContainer(r.containerComponent,i):i;return ud(o,r)}};ce(Yn,"animationWhitelist",["data","domain","height","padding","samples","style","width"]),ce(Yn,"displayName","VictoryLine"),ce(Yn,"role","line"),ce(Yn,"defaultTransitions",vS()),ce(Yn,"defaultPolarTransitions",bS()),ce(Yn,"continuous",!0),ce(Yn,"defaultProps",{containerComponent:y.createElement(Qt,null),dataComponent:y.createElement(Ose,null),labelComponent:y.createElement(en,{renderInPortal:!0}),groupComponent:y.createElement(bs,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Ar.grayscale}),ce(Yn,"getDomain",Jo),ce(Yn,"getData",dn),ce(Yn,"expectedComponents",["dataComponent","labelComponent","groupComponent","containerComponent"]);let kp=Yn;const P6=Yo(kp,kse),Tp=e=>{var{containerComponent:t=k.createElement(cr,null),themeColor:n,theme:r=on(n)}=e,i=Ae(e,["containerComponent","themeColor","theme"]);const o=k.cloneElement(t,Object.assign({theme:r},t.props));return k.createElement(P6,Object.assign({containerComponent:o,theme:r},i))};Tp.displayName="ChartLine",rn(Tp,P6);const M6={width:450,height:300,padding:50};function Tse(e,t){const{fillInMissingData:n}=e,r=t.reduce((a,s)=>(s.forEach(l=>{a[l._x instanceof Date?l._x.getTime():l._x]=!0}),a),{}),i=Object.keys(r).map(a=>Number(a)),o=ts(i);return t.map(a=>{let s=0;const l=a[0]&&a[0]._x instanceof Date;return o.map((u,d)=>{let f=Number(u);const h=a[d-s];if(h){if((l?h._x.getTime():h._x)===f)return h;s++;const v=n?0:null;return f=l?new Date(f):f,{x:f,y:v,_x:f,_y:v}}const g=n?0:null;return f=l?new Date(f):f,{x:f,y:g,_x:f,_y:g}})})}function Ase(e,t,n){if(e.y0)return e.y0;const r=e._y,i=e._group,o=n[0].map(c=>c.y0),s=n.slice(0,t).reduce((c,u)=>c.concat(u.filter(d=>e._x instanceof Date?d._x.getTime()===e._x.getTime():d._x===e._x).map(d=>d._y||0)),[]),l=s.length&&s.reduce((c,u)=>r<0&&u<0||r>=0&&u>=0?Number(u)+c:c,o[i]||0);return s.some(c=>c instanceof Date)?new Date(l):l}function Dse(e,t,n){const r=e.xOffset||0;return t[n].map(i=>{const o=Ase(i,n,t)||0;return Object.assign({},i,{_y0:i._y instanceof Date?o?new Date(o):i._y:o,_y1:i._y===null?null:i._y instanceof Date?new Date(Number(i._y)+Number(o)):i._y+o,_x1:i._x===null?null:i._x instanceof Date?new Date(Number(i._x)+Number(r)):i._x+r})})}function jse(e,t){const n=HY(e,t),r=Tse(e,n);return r.map(o=>o.filter(a=>a._x!==null&&a._y!==null)).map((o,a)=>Dse(e,r,a))}function $6(e,t){const n=t||y.Children.toArray(e.children),r="stack",i=Bt(e,M6,r),o=YY(i.theme,i.style,r),a=i.categories||Lw(i,n),s=i.datasets||jse(i,n),l=n.map((p,v)=>y.cloneElement(p,{data:s[v]})),c={x:qg(Object.assign({},i,{categories:a}),"x",l),y:qg(Object.assign({},i,{categories:a}),"y",l)},u=i.range||{x:Nt(i,"x"),y:Nt(i,"y")},d={x:Il(i,"x")||tf(i,"x"),y:Il(i,"y")||tf(i,"y")},f={x:d.x.domain(c.x).range(i.horizontal?u.y:u.x),y:d.y.domain(c.y).range(i.horizontal?u.x:u.y)},{colorScale:h,horizontal:g}=i;return{datasets:s,categories:a,range:u,domain:c,horizontal:g,scale:f,style:o,colorScale:h,role:r}}const Pse=e=>{const{children:t}=e,n=y.Children.toArray(t).map(r=>{const i=r;return{...i,props:wl(i.props,["sharedEvents"])}});return e.children=n,e};function Mse(e){const t=Pse(e),[n,r]=y.useState(t);return y.useEffect(()=>{Vn(t,n)||r(t)},[n,r,t]),y.useMemo(()=>$6(n,n.children),[n])}function $se(e,t,n){if(e.labels)return t.length===n+1?e.labels:void 0}function Ise(e,t){const{categories:n,domain:r,range:i,scale:o,horizontal:a}=t;return{height:e.height,width:e.width,padding:xt(e),standalone:!1,theme:e.theme,categories:n,domain:r,range:i,scale:o,horizontal:a}}function Lse(e,t){const n=t.type&&t.type.role,r=t.props.colorScale||e.colorScale;if(!(n!=="group"&&n!=="stack"))return e.theme?r||e.theme.props.colorScale:r}function I6(e,t,n){const r=Bt(e,M6,"stack"),i=t||y.Children.toArray(r.children),o=n||$6(r,i),{datasets:a}=o,s=Ise(r,o),l=r.name||"stack",{theme:c}=r;return i.map((u,d)=>{const f=u.type&&u.type.role,h=a[d],g=KY(u,d,o,c),p=r.labels?$se(r,a,d):u.props.labels,v=u.props.name||`${l}-${f}-${d}`;return y.cloneElement(u,Object.assign({key:`${v}-key-${d}`,labels:p,name:v,domainPadding:u.props.domainPadding||r.domainPadding,theme:r.theme,labelComponent:r.labelComponent||u.props.labelComponent,style:g,colorScale:Lse(r,u),data:h,polar:r.polar},s))})}const Fse={width:450,height:300,padding:50},Nse={containerComponent:y.createElement(Qt,null),groupComponent:y.createElement("g",null),standalone:!0,theme:Ar.grayscale,fillInMissingData:!0},Bse=e=>{const{role:t}=Cf,n=y.useMemo(()=>Z({},e,Nse),[e]),{setAnimationState:r,getAnimationProps:i,getProps:o}=_S(),a=o(n),s=Bt(a,Fse,t),{eventKey:l,containerComponent:c,standalone:u,groupComponent:d,externalEventMutations:f,width:h,height:g,theme:p,polar:v,horizontal:b,name:x}=s,S=y.Children.toArray(s.children),w=Mse(s),{domain:_,scale:E,style:O}=w,T=y.useMemo(()=>I6(a,S,w).map((H,q)=>{const U=Object.assign({animate:i(a,H,q)},H.props);return y.cloneElement(H,U)}).reverse(),[a,S,w,i]),D=y.useMemo(()=>u?{domain:_,scale:E,width:h,height:g,standalone:u,theme:p,style:O.parent,horizontal:b,polar:v,name:x}:{},[u,_,E,h,g,p,O,b,v,x]),j=y.useMemo(()=>Tr(n),[n]),A=y.useMemo(()=>{if(u){const $=Z({},c.props,D,j);return y.cloneElement(c,$)}return y.cloneElement(d,j)},[d,u,c,D,j]),M=y.useMemo(()=>Mw(a),[a]),P=xS(n);return y.useEffect(()=>()=>{n.animate&&r(P,n)},[r,P,n]),vt(M)?y.cloneElement(A,A.props,T):y.createElement(xs,{container:A,eventKey:l,events:M,externalEventMutations:f},T)},Wse={role:"stack",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:I6},Cf=Object.assign(y.memo(Bse,Vn),Wse);Cf.displayName="VictoryStack";const Ef=e=>{var{ariaDesc:t,ariaTitle:n,children:r,colorScale:i,containerComponent:o=k.createElement(cr,null),hasPatterns:a,patternScale:s,themeColor:l,theme:c=on(l)}=e,u=Ae(e,["ariaDesc","ariaTitle","children","colorScale","containerComponent","hasPatterns","patternScale","themeColor","theme"]);const d=k.cloneElement(o,Object.assign(Object.assign({desc:t,title:n,theme:c},o.props),{className:op({className:o.props.className})})),{defaultPatternScale:f}=up({colorScale:i,hasPatterns:a,patternScale:s,themeColorScale:c.stack.colorScale});return k.createElement(Cf,Object.assign({colorScale:i,containerComponent:d,theme:c},u),Joe({children:r,patternScale:f}))};Ef.displayName="ChartStack",rn(Ef,Cf);var zse=to,Rse=Or,Vse="[object RegExp]";function Use(e){return Rse(e)&&zse(e)==Vse}var Hse=Use,Gse=Hse,qse=Ha,L6=ll,F6=L6&&L6.isRegExp,Yse=F6?qse(F6):Gse,Kse=Yse;const Zse=Fe(Kse);var N6={},B6={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(zs,function(){var n=Math.pow(2,-52),r=new Uint32Array(512),i=function(b){var x=b.length>>1;if(x>0&&typeof b[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=b;var S=Math.max(2*x-5,0);this._triangles=new Uint32Array(S*3),this._halfedges=new Int32Array(S*3),this._hashSize=Math.ceil(Math.sqrt(x)),this._hullPrev=new Uint32Array(x),this._hullNext=new Uint32Array(x),this._hullTri=new Uint32Array(x),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(x),this._dists=new Float64Array(x),this.update()};i.from=function(b,x,S){x===void 0&&(x=g),S===void 0&&(S=p);for(var w=b.length,_=new Float64Array(w*2),E=0;E<w;E++){var O=b[E];_[2*E]=x(O),_[2*E+1]=S(O)}return new i(_)},i.prototype.update=function(){for(var b=this,x=b.coords,S=b._hullPrev,w=b._hullNext,_=b._hullTri,E=b._hullHash,O=x.length>>1,T=1/0,D=1/0,j=-1/0,A=-1/0,M=0;M<O;M++){var P=x[2*M],$=x[2*M+1];P<T&&(T=P),$<D&&(D=$),P>j&&(j=P),$>A&&(A=$),this._ids[M]=M}for(var L=(T+j)/2,H=(D+A)/2,q=1/0,U,z,N,R=0;R<O;R++){var J=a(L,H,x[2*R],x[2*R+1]);J<q&&(U=R,q=J)}var ee=x[2*U],X=x[2*U+1];q=1/0;for(var Q=0;Q<O;Q++)if(Q!==U){var ie=a(ee,X,x[2*Q],x[2*Q+1]);ie<q&&ie>0&&(z=Q,q=ie)}for(var ue=x[2*z],de=x[2*z+1],K=1/0,ne=0;ne<O;ne++)if(!(ne===U||ne===z)){var pe=u(ee,X,ue,de,x[2*ne],x[2*ne+1]);pe<K&&(N=ne,K=pe)}var B=x[2*N],ke=x[2*N+1];if(K===1/0){for(var Ee=0;Ee<O;Ee++)this._dists[Ee]=x[2*Ee]-x[0]||x[2*Ee+1]-x[1];f(this._ids,this._dists,0,O-1);for(var He=new Uint32Array(O),Ie=0,at=0,I=-1/0;at<O;at++){var V=this._ids[at];this._dists[V]>I&&(He[Ie++]=V,I=this._dists[V])}this.hull=He.subarray(0,Ie),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(l(ee,X,ue,de,B,ke)){var G=z,fe=ue,he=de;z=N,ue=B,de=ke,N=G,B=fe,ke=he}var oe=d(ee,X,ue,de,B,ke);this._cx=oe.x,this._cy=oe.y;for(var Y=0;Y<O;Y++)this._dists[Y]=a(x[2*Y],x[2*Y+1],oe.x,oe.y);f(this._ids,this._dists,0,O-1),this._hullStart=U;var le=3;w[U]=S[N]=z,w[z]=S[U]=N,w[N]=S[z]=U,_[U]=0,_[z]=1,_[N]=2,E.fill(-1),E[this._hashKey(ee,X)]=U,E[this._hashKey(ue,de)]=z,E[this._hashKey(B,ke)]=N,this.trianglesLen=0,this._addTriangle(U,z,N,-1,-1,-1);for(var be=0,xe=void 0,Ne=void 0;be<this._ids.length;be++){var Re=this._ids[be],nt=x[2*Re],wt=x[2*Re+1];if(!(be>0&&Math.abs(nt-xe)<=n&&Math.abs(wt-Ne)<=n)&&(xe=nt,Ne=wt,!(Re===U||Re===z||Re===N))){for(var jt=0,Ct=0,We=this._hashKey(nt,wt);Ct<this._hashSize&&(jt=E[(We+Ct)%this._hashSize],!(jt!==-1&&jt!==w[jt]));Ct++);jt=S[jt];for(var Pe=jt,mt=void 0;mt=w[Pe],!l(nt,wt,x[2*Pe],x[2*Pe+1],x[2*mt],x[2*mt+1]);)if(Pe=mt,Pe===jt){Pe=-1;break}if(Pe!==-1){var Rt=this._addTriangle(Pe,Re,w[Pe],-1,-1,_[Pe]);_[Re]=this._legalize(Rt+2),_[Pe]=Rt,le++;for(var Et=w[Pe];mt=w[Et],l(nt,wt,x[2*Et],x[2*Et+1],x[2*mt],x[2*mt+1]);)Rt=this._addTriangle(Et,Re,mt,_[Re],-1,_[Et]),_[Re]=this._legalize(Rt+2),w[Et]=Et,le--,Et=mt;if(Pe===jt)for(;mt=S[Pe],l(nt,wt,x[2*mt],x[2*mt+1],x[2*Pe],x[2*Pe+1]);)Rt=this._addTriangle(mt,Re,Pe,-1,_[Pe],_[mt]),this._legalize(Rt+2),_[mt]=Rt,w[Pe]=Pe,le--,Pe=mt;this._hullStart=S[Re]=Pe,w[Pe]=S[Et]=Re,w[Re]=Et,E[this._hashKey(nt,wt)]=Re,E[this._hashKey(x[2*Pe],x[2*Pe+1])]=Pe}}}this.hull=new Uint32Array(le);for(var Nn=0,Vt=this._hullStart;Nn<le;Nn++)this.hull[Nn]=Vt,Vt=w[Vt];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)},i.prototype._hashKey=function(b,x){return Math.floor(o(b-this._cx,x-this._cy)*this._hashSize)%this._hashSize},i.prototype._legalize=function(b){for(var x=this,S=x._triangles,w=x._halfedges,_=x.coords,E=0,O=0;;){var T=w[b],D=b-b%3;if(O=D+(b+2)%3,T===-1){if(E===0)break;b=r[--E];continue}var j=T-T%3,A=D+(b+1)%3,M=j+(T+2)%3,P=S[O],$=S[b],L=S[A],H=S[M],q=c(_[2*P],_[2*P+1],_[2*$],_[2*$+1],_[2*L],_[2*L+1],_[2*H],_[2*H+1]);if(q){S[b]=H,S[T]=P;var U=w[M];if(U===-1){var z=this._hullStart;do{if(this._hullTri[z]===M){this._hullTri[z]=b;break}z=this._hullPrev[z]}while(z!==this._hullStart)}this._link(b,U),this._link(T,w[O]),this._link(O,M);var N=j+(T+1)%3;E<r.length&&(r[E++]=N)}else{if(E===0)break;b=r[--E]}}return O},i.prototype._link=function(b,x){this._halfedges[b]=x,x!==-1&&(this._halfedges[x]=b)},i.prototype._addTriangle=function(b,x,S,w,_,E){var O=this.trianglesLen;return this._triangles[O]=b,this._triangles[O+1]=x,this._triangles[O+2]=S,this._link(O,w),this._link(O+1,_),this._link(O+2,E),this.trianglesLen+=3,O};function o(v,b){var x=v/(Math.abs(v)+Math.abs(b));return(b>0?3-x:1+x)/4}function a(v,b,x,S){var w=v-x,_=b-S;return w*w+_*_}function s(v,b,x,S,w,_){var E=(S-b)*(w-v),O=(x-v)*(_-b);return Math.abs(E-O)>=33306690738754716e-32*Math.abs(E+O)?E-O:0}function l(v,b,x,S,w,_){var E=s(w,_,v,b,x,S)||s(v,b,x,S,w,_)||s(x,S,w,_,v,b);return E<0}function c(v,b,x,S,w,_,E,O){var T=v-E,D=b-O,j=x-E,A=S-O,M=w-E,P=_-O,$=T*T+D*D,L=j*j+A*A,H=M*M+P*P;return T*(A*H-L*P)-D*(j*H-L*M)+$*(j*P-A*M)<0}function u(v,b,x,S,w,_){var E=x-v,O=S-b,T=w-v,D=_-b,j=E*E+O*O,A=T*T+D*D,M=.5/(E*D-O*T),P=(D*j-O*A)*M,$=(E*A-T*j)*M;return P*P+$*$}function d(v,b,x,S,w,_){var E=x-v,O=S-b,T=w-v,D=_-b,j=E*E+O*O,A=T*T+D*D,M=.5/(E*D-O*T),P=v+(D*j-O*A)*M,$=b+(E*A-T*j)*M;return{x:P,y:$}}function f(v,b,x,S){if(S-x<=20)for(var w=x+1;w<=S;w++){for(var _=v[w],E=b[_],O=w-1;O>=x&&b[v[O]]>E;)v[O+1]=v[O--];v[O+1]=_}else{var T=x+S>>1,D=x+1,j=S;h(v,T,D),b[v[x]]>b[v[S]]&&h(v,x,S),b[v[D]]>b[v[S]]&&h(v,D,S),b[v[x]]>b[v[D]]&&h(v,x,D);for(var A=v[D],M=b[A];;){do D++;while(b[v[D]]<M);do j--;while(b[v[j]]>M);if(j<D)break;h(v,D,j)}v[x+1]=v[j],v[j]=A,S-D+1>=j-x?(f(v,b,D,S),f(v,b,x,j-1)):(f(v,b,x,j-1),f(v,b,D,S))}}function h(v,b,x){var S=v[b];v[b]=v[x],v[x]=S}function g(v){return v[0]}function p(v){return v[1]}return i})})(B6);var Xse=B6.exports;(function(e){e.__esModule=!0,e.default=void 0;var t=n(Xse);function n(c){return c&&c.__esModule?c:{default:c}}function r(c){return c[0]}function i(c){return c[1]}function o(c){for(var u=c.triangles,d=c.coords,f=0;f<u.length;f+=3){var h=2*u[f],g=2*u[f+1],p=2*u[f+2],v=(d[p]-d[h])*(d[g+1]-d[h+1])-(d[g]-d[h])*(d[p+1]-d[h+1]);if(v>1e-10)return!1}return!0}function a(c,u,d){return[c+Math.sin(c+u)*d,u+Math.cos(c-u)*d]}function s(c,u,d,f){for(var h=c.length,g=new Float64Array(h*2),p=0;p<h;++p){var v=c[p];g[p*2]=u.call(f,v,p,c),g[p*2+1]=d.call(f,v,p,c)}return g}var l=function(){function c(d){var f=new t.default(d);this.inedges=new Int32Array(d.length/2),this._hullIndex=new Int32Array(d.length/2),this.points=f.coords,this._init(f)}var u=c.prototype;return u._init=function(f){var h=f,g=this.points;if(h.hull&&h.hull.length>2&&o(h)){this.collinear=Int32Array.from({length:g.length/2},function(H,q){return q}).sort(function(H,q){return g[2*H]-g[2*q]||g[2*H+1]-g[2*q+1]});for(var p=this.collinear[0],v=this.collinear[this.collinear.length-1],b=[g[2*p],g[2*p+1],g[2*v],g[2*v+1]],x=1e-8*Math.sqrt(Math.pow(b[3]-b[1],2)+Math.pow(b[2]-b[0],2)),S=0,w=g.length/2;S<w;++S){var _=a(g[2*S],g[2*S+1],x);g[2*S]=_[0],g[2*S+1]=_[1]}f=new t.default(g)}for(var E=this.halfedges=f.halfedges,O=this.hull=f.hull,T=this.triangles=f.triangles,D=this.inedges.fill(-1),j=this._hullIndex.fill(-1),A=0,M=E.length;A<M;++A){var P=T[A%3===2?A-2:A+1];(E[A]===-1||D[P]===-1)&&(D[P]=A)}for(var $=0,L=O.length;$<L;++$)j[O[$]]=$;O.length<=2&&O.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=O[0],this.triangles[1]=O[1],this.triangles[2]=O[1],D[O[0]]=1,O.length===2&&(D[O[1]]=0))},u.neighbors=function(f){var h=[],g=this.inedges,p=this.hull,v=this._hullIndex,b=this.halfedges,x=this.triangles,S=g[f];if(S===-1)return h;var w=S,_=-1;do{if(_=x[w],h.push(_),w=w%3===2?w-2:w+1,x[w]!==f)break;if(w=b[w],w===-1){var E=p[(v[f]+1)%p.length];E!==_&&h.push(E);break}}while(w!==S);return h},u.find=function(f,h,g){if(g===void 0&&(g=0),f=+f,f!==f||(h=+h,h!==h))return-1;for(var p=g,v;(v=this._step(g,f,h))>=0&&v!==g&&v!==p;)g=v;return v},u._step=function(f,h,g){var p=this.inedges,v=this.points;if(p[f]===-1||!v.length)return(f+1)%(v.length>>1);for(var b=f,x=Math.pow(h-v[f*2],2)+Math.pow(g-v[f*2+1],2),_=this.neighbors(f),S=Array.isArray(_),w=0,_=S?_:_[Symbol.iterator]();;){var E;if(S){if(w>=_.length)break;E=_[w++]}else{if(w=_.next(),w.done)break;E=w.value}var O=E,T=Math.pow(h-v[O*2],2)+Math.pow(g-v[O*2+1],2);T<x&&(x=T,b=O)}return b},c}();e.default=l,l.from=function(c,u,d,f){return u===void 0&&(u=r),d===void 0&&(d=i),new l(s(c,u,d,f))}})(N6);const Jse=Fe(N6),Qse=32;class ele{constructor(){ce(this,"onMouseLeave",(t,n)=>{this.onMouseMove.cancel();const r=n.activePoints||[];this.onDeactivated(n,r);const i=r.length?r.map(o=>this.getInactiveMutations(n,o)):[];return this.getParentMutation([]).concat(...i)});ce(this,"handleMouseMove",(t,n)=>{const r=n.activePoints||[],i=n.parentSVG||xi(t),o=Ur(t,i);if(!this.withinBounds(n,o)){this.onDeactivated(n,r);const d=r.length?r.map(f=>this.getInactiveMutations(n,f)):[];return this.getParentMutation([],o,i).concat(...d)}const{points:a=[],index:s}=this.getVoronoiPoints(n,o),l=this.getParentMutation(a,o,i,s);if(r.length&&Vn(a,r))return l;this.onActivated(n,a),this.onDeactivated(n,r);const c=a.length?a.map(d=>this.getActiveMutations(n,d)):[],u=r.length?r.map(d=>this.getInactiveMutations(n,d)):[];return l.concat(...u,...c)});ce(this,"onMouseMove",Cs(this.handleMouseMove,Qse,{leading:!0,trailing:!1}))}withinBounds(t,n){const{width:r,height:i,polar:o,origin:a,scale:s}=t,l=xt(t,"voronoiPadding"),{x:c,y:u}=n;if(o){const d=Math.pow(c-a.x,2)+Math.pow(u-a.y,2),f=Math.max(...s.y.range());return d<Math.pow(f,2)}return c>=l.left&&c<=r-l.right&&u>=l.top&&u<=i-l.bottom}getDatasets(t){const n={x:Dn(t.domain.x),y:Dn(t.domain.y)},r=y.Children.toArray(t.children),i=(s,l,c)=>{const u=c&&c.type&&c.type.continuous,d=c?c.props&&c.props.style:t.style;return s.map((f,h)=>{const{x:g,y:p,y0:v,x0:b}=y0(f),x=(Number(g)+Number(b))/2,S=(Number(p)+Number(v))/2;return Object.assign({_voronoiX:t.voronoiDimension==="y"?n.x:x,_voronoiY:t.voronoiDimension==="x"?n.y:S,eventKey:h,childName:l,continuous:u,style:d},f)})};if(t.data)return i(t.data);const o=s=>{const l=dn(s);return Array.isArray(l)&&l.length>0?l:void 0};return ro(r,(s,l)=>{const u=(s.props||{}).name||l,d=t.voronoiBlacklist||[],f=d.filter(b=>!!b&&typeof b.valueOf()=="string"),g=d.filter(Zse).some(b=>b.test(u));if(!ds(s)||f.includes(u)||g)return null;const v=(s.type&&Se(s.type.getData)?s.type.getData:o)(s.props);return v?i(v,u,s):null},t)}findPoints(t,n){return t.filter(r=>n._voronoiX===r._voronoiX&&n._voronoiY===r._voronoiY)}withinRadius(t,n,r){if(!t)return!1;if(!r)return!0;const{x:i,y:o}=n;return Math.pow(i-t[0],2)+Math.pow(o-t[1],2)<Math.pow(r,2)}getVoronoiPoints(t,n){const r=this.getDatasets(t),i=r.map(c=>{const{x:u,y:d}=is(t,c);return[u,d]}),a=Jse.from(i).find(n.x,n.y);return{points:this.withinRadius(i[a],n,t.radius)?this.findPoints(r,r[a]):[],index:a}}getActiveMutations(t,n){const{childName:r,continuous:i}=n,{activateData:o,activateLabels:a,labels:s}=t;if(!o&&!a)return[];const l=o?["data"]:[],c=s&&!a?l:l.concat("labels");return vt(c)?[]:c.map(u=>{const d=i===!0&&u==="data"?"all":n.eventKey;return{childName:r,eventKey:d,target:u,mutation:()=>({active:!0})}})}getInactiveMutations(t,n){const{childName:r,continuous:i}=n,{activateData:o,activateLabels:a,labels:s}=t;if(!o&&!a)return[];const l=o?["data"]:[],c=s&&!a?l:l.concat("labels");return vt(c)?[]:c.map(u=>{const d=i&&u==="data"?"all":n.eventKey;return{childName:r,eventKey:d,target:u,mutation:()=>null}})}getParentMutation(t,n,r,i){return[{target:"parent",eventKey:"parent",mutation:()=>({activePoints:t,mousePosition:n,parentSVG:r,vIndex:i})}]}onActivated(t,n){Se(t.onActivated)&&t.onActivated(n,t)}onDeactivated(t,n){Se(t.onDeactivated)&&t.onDeactivated(n,t)}}const Of=new ele,W6={activateData:!0,activateLabels:!0,labelComponent:y.createElement(go,null),voronoiPadding:5},z6=e=>Sl(e,["_x","_x1","_x0","_y","_y1","_y0"]),R6=e=>{const t={...W6,...e},{children:n}=t,r=()=>{const{horizontal:c,voronoiDimension:u}=t;return!c||!u?u:u==="x"?"y":"x"},i=(c,u)=>{const{mousePosition:d,mouseFollowTooltips:f}=t,h=r(),g=z6(u[0]),p=is(t,g);let v=f?d:void 0;if(!h||u.length<2)return{...p,center:Z({},c.center,v)};const b=h==="y"?d.x:p.x,x=h==="x"?d.y:p.y;return v=f?d:{x:b,y:x},{x:b,y:x,center:Z({},c.center,v)}},o=(c,u)=>{const{labels:d,labelComponent:f,theme:h}=t,g=f.props||{},p=h&&h.voronoi&&h.voronoi.style?h.voronoi.style:{},v=u==="flyout"?g.flyoutStyle:g.style;return c.reduce((b,x,S)=>{const w=Z({},g,{datum:x,active:!0}),_=Se(d)?d(w):void 0,E=_!==void 0?`${_}`.split(`
|
318
|
+
`):[],O=x.style&&x.style[u]||{},T=Array.isArray(v)?v[S]:v,D=st(Z({},T,O,p[u]),w),j=E.length?E.map(()=>D):[D];return b.concat(j)},[])},a=c=>{const{voronoiDimension:u,horizontal:d,mouseFollowTooltips:f}=t,h=z6(c[0]),g=u&&c.length>1,p=h._y1!==void 0?h._y1:h._y,v=p<0?"left":"right",b=p<0?"bottom":"top";return{orientation:f?void 0:d?v:b,pointerLength:g?0:void 0,constrainToVisibleArea:g||f?!0:void 0}},s=c=>{const{labels:u,scale:d,labelComponent:f,theme:h,width:g,height:p}=t,v=f.props||{},b=c.reduce((j,A)=>{const M=Z({},v,{datum:A,active:!0}),P=Se(u)?u(M):null;return P==null?j:j.concat(`${P}`.split(`
|
319
|
+
`))},[]),{childName:x,eventKey:S,style:w,continuous:_,...E}=c[0],O=t.name===x?x:`${t.name}-${x}`,T=Z({key:`${O}-${S}-voronoi-tooltip`,id:`${O}-${S}-voronoi-tooltip`,active:!0,renderInPortal:!1,activePoints:c,datum:E,scale:d,theme:h},v,{text:b,width:g,height:p,style:o(c,"labels"),flyoutStyle:o(c,"flyout")[0]},a(c)),D=i(T,c);return Z({},D,T)},l=()=>{const{labels:c,activePoints:u,labelComponent:d}=t;if(!c)return null;if(Array.isArray(u)&&u.length){const f=s(u),{text:h}=f;return(Array.isArray(h)?h.filter(Boolean).length:h)?y.cloneElement(d,f):null}return null};return{props:t,children:[...y.Children.toArray(n),l()]}},Ap=e=>{const{props:t,children:n}=R6(e);return y.createElement(Qt,t,n)};Ap.role="container",Ap.defaultEvents=e=>{const t={...W6,...e},n=(r,i)=>(o,a,s,l)=>t.disable?{}:r(o,{...t,...a},s,l);return[{target:"parent",eventHandlers:{onMouseLeave:n(Of.onMouseLeave),onTouchCancel:n(Of.onMouseLeave),onMouseMove:n(Of.onMouseMove),onTouchMove:n(Of.onMouseMove)}},{target:"data",eventHandlers:t.disable?{}:{onMouseOver:()=>null,onMouseOut:()=>null,onMouseMove:()=>null}}]};const tle={name:"--pf-v5-chart-container--cursor--line--Fill",value:"#151515",var:"var(--pf-v5-chart-container--cursor--line--Fill, #151515)"};var nle=Nu;function rle(e,t){return nle(t,function(n){return[n,e[n]]})}var ile=rle;function ole(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var ale=ole,sle=ile,lle=Ua,cle=_x,ule=ale,dle="[object Map]",fle="[object Set]";function hle(e){return function(t){var n=lle(t);return n==dle?cle(t):n==fle?ule(t):sle(t,e(t))}}var mle=hle,gle=mle,ple=es,yle=gle(ple),vle=yle;const ble=Fe(vle);var xle=Ga;function _le(e){return typeof e=="function"?e:xle}var Sle=_le,wle=Ux,Cle=Sle;function Ele(e,t){return e&&wle(e,Cle(t))}var Ole=Ele;const kle=Fe(Ole);var Tle="Expected a function";function Ale(e,t,n){if(typeof e!="function")throw new TypeError(Tle);return setTimeout(function(){e.apply(void 0,n)},t)}var Dle=Ale,jle=Dle,Ple=Rm,Mle=ap,$le=Ple(function(e,t,n){return jle(e,Mle(t)||0,n)}),Ile=$le;const Lle=Fe(Ile),dr={checkDomainEquality(e,t){const n=r=>{const i=e&&e[r],o=t&&t[r];return!i&&!o?!0:!i||!o?!1:Number(i[0])===Number(o[0])&&Number(i[1])===Number(o[1])};return n("x")&&n("y")},scale(e,t,n,r){const[i,o]=e,a=Math.abs(o-i),s=n.minimumZoom&&n.minimumZoom[r],l=this.getScaleFactor(t);if(s&&a<=s&&l<1)return e;const[c,u]=this.getDomain(n)[r],d=this.getScalePercent(t,n,r),f=l*i+d*(l*a),h=this.getMinimumDomain(f,n,r),[g,p]=this.getScaledDomain(e,l,d),v=[g>c&&g<u?g:c,p<u&&p>c?p:u],b=Math.abs(h[1]-h[0])>Math.abs(v[1]-v[0])?h:v;return er([c,u])?[new Date(b[0]),new Date(b[1])]:b},getScaledDomain(e,t,n){const[r,i]=e,o=Math.abs(i-r),a=o-o*t,s=Number(r)+a*Math.max(n,0),l=Number(i)-a*Math.max(1-n,0);return[Math.min(s,l),Math.max(s,l)]},getMinimumDomain(e,t,n){const{minimumZoom:r}=t,i=this.getDomain(t)[n],[o,a]=i,s=Math.abs(o-a)/1e3,l=r&&r[n]||s,c=e-l/2,u=e+l/2;return[c>o&&c<a?c:o,u<a&&u>o?u:Number(o)+l/2]},zoommingOut(e){return e.deltaY>0},getScaleFactor(e){const t=this.zoommingOut(e)?1:-1,n=Math.min(Math.abs(e.deltaY/300),.5);return Math.abs(1+t*n)},getScalePercent(e,t,n){const r=this.getDomain(t),[i,o]=r[n];return(this.getPosition(e,t,r)[n]-i)/Math.abs(o-i)},getPosition(e,t,n){const{x:r,y:i}=Ur(e),o={x:t.scale.x.domain(n.x),y:t.scale.y.domain(n.y)};return qd(t,o,r,i)},pan(e,t,n){const[r,i]=e.map(u=>Number(u)),[o,a]=t.map(u=>Number(u)),s=r+n,l=i+n;let c;if(s>o&&l<a)c=[s,l];else if(s<o){const u=i-r;c=[o,o+u]}else if(l>a){const u=i-r;c=[a-u,a]}else c=e;return er(e)||er(t)?c.map(u=>new Date(u)):c},getDomainScale(e,t,n){const r=Array.isArray(e)?e:e[n],[i,o]=r,a=t[n].range();return Math.abs(a[0]-a[1])/(o-i)},handleAnimation(e){const t=e.context.animationTimer,n=e.context.transitionTimer;return n.bypassAnimation(),t.bypassAnimation(),Lle(()=>{t.resumeAnimation(),n.resumeAnimation()},16)},getLastDomain(e,t){const{zoomDomain:n,cachedZoomDomain:r,currentDomain:i,domain:o}=e;return n&&!this.checkDomainEquality(n,r)?Z({},n,o):Z({},i||n||t,o)},getDomain(e){const{originalDomain:t,domain:n,children:r,zoomDimension:i}=e,o=y.Children.toArray(r);let a={};return o.length&&(a=i?{[i]:ef(e,i,o)}:{x:ef(e,"x",o),y:ef(e,"y",o)}),Z({},a,t,n)},onMouseDown(e,t){if(e.preventDefault(),!t.allowPan)return;const n=t.parentSVG||xi(e),{x:r,y:i}=Ur(e,n);return[{target:"parent",mutation:()=>({startX:r,startY:i,panning:!0,parentSVG:n,parentControlledProps:["domain"]})}]},onMouseUp(e,t){if(t.allowPan)return[{target:"parent",mutation:()=>({panning:!1})}]},onMouseLeave(e,t){if(t.allowPan)return[{target:"parent",mutation:()=>({panning:!1})}]},onMouseMove(e,t,n,r){if(t.panning&&t.allowPan){const{scale:i,startX:o,startY:a,onZoomDomainChange:s,zoomDomain:l,zoomDimension:c,horizontal:u}=t,d=t.parentSVG||xi(e),{x:f,y:h}=Ur(e,d),g=this.getDomain(t),p=this.getLastDomain(t,g),v=u?h-a:o-f,b=u?o-f:h-a,x=v/this.getDomainScale(p,i,"x"),S=b/this.getDomainScale(p,i,"y"),w={x:c==="y"?g.x:this.pan(p.x,g.x,x),y:c==="x"?g.y:this.pan(p.y,g.y,S)},_=this.handleAnimation(r),E=!this.checkDomainEquality(g,p),O={parentControlledProps:["domain"],startX:f,startY:h,parentSVG:d,currentDomain:w,originalDomain:g,cachedZoomDomain:l,zoomActive:E};return Se(s)&&s(w,Z({},O,t)),[{target:"parent",callback:_,mutation:()=>O}]}},onWheel(e,t,n,r){if(!t.allowZoom)return;const{onZoomDomainChange:i,zoomDimension:o,zoomDomain:a}=t,s=this.getDomain(t),l=this.getLastDomain(t,s),{x:c,y:u}=l,d={x:o==="y"?l.x:this.scale(c,e,t,"x"),y:o==="x"?l.y:this.scale(u,e,t,"y")},f=this.handleAnimation(r),h=!this.zoommingOut(e)||t.zoomActive&&!this.checkDomainEquality(s,l),g={currentDomain:d,originalDomain:s,cachedZoomDomain:a,parentControlledProps:["domain"],panning:!1,zoomActive:h};return Se(i)&&i(d,Z({},g,t)),[{target:"parent",callback:f,mutation:()=>g}]}},qr={checkDomainEquality:dr.checkDomainEquality.bind(dr),onMouseDown:dr.onMouseDown.bind(dr),onMouseUp:dr.onMouseUp.bind(dr),onMouseLeave:dr.onMouseLeave.bind(dr),onMouseMove:Cs(dr.onMouseMove.bind(dr),16,{leading:!0,trailing:!1}),onWheel:Cs(dr.onWheel.bind(dr),16,{leading:!0,trailing:!1})},Fle=150,V6={clipContainerComponent:y.createElement(bs,null),allowPan:!0,allowZoom:!0,zoomActive:!1},U6=e=>{const t={...V6,...e},{children:n,currentDomain:r,zoomActive:i,allowZoom:o,downsample:a,scale:s,clipContainerComponent:l,polar:c,origin:u,horizontal:d}=t,f=(g,p)=>{const b=(O=>{const{data:T,x:D,y:j}=O,A=g.type&&typeof g.type.getData=="function"?g.type.getData:()=>{};return Array.isArray(T)&&!D&&!j?T:A(O)})(g.props);if(!a||!p||!b)return;const x=a===!0?Fle:a,S=t.zoomDimension||"x";let w=b.findIndex(O=>O[S]>=p[S][0]),_=b.findIndex(O=>O[S]>p[S][1]);w!==0&&(w-=1),_!==-1&&(_+=1);const E=b.slice(w,_);return RH(E,x,w)},h=y.Children.toArray(n).map(g=>{const p=g.type&&g.type.role,v=ds(g),b=Z({},t.originalDomain,t.domain),x=Z({},t.zoomDomain,t.domain),S=Z({},t.cachedZoomDomain,t.domain);let w;qr.checkDomainEquality(x,S)?o&&!i?w=g.props.domain:w=Z({},r,b):w=x;let _=t.polar?{x:b.x,y:[0,w.y[1]]}:w;_&&t.zoomDimension&&(_={...x,[t.zoomDimension]:_[t.zoomDimension]});const E=v&&p!=="stack"?{domain:_,data:f(g,_)}:{domain:_},O=y.cloneElement(g,Z(E,g.props));if(ds(O)){const T=d?s.y.range():s.x.range(),D=d?s.x.range():s.y.range(),j=Math.abs(T[0]-T[1]),A=Math.abs(D[0]-D[1]),M=Math.max(...D),P=y.cloneElement(l,{clipWidth:j,clipHeight:A,translateX:Math.min(...T),translateY:Math.min(...D),polar:c,origin:c?u:void 0,radius:c?M:void 0,...l.props});return y.cloneElement(O,{groupComponent:P})}return O});return{props:t,children:h}},Dp=e=>{const{props:t,children:n}=U6(e);return y.createElement(Qt,t,n)};Dp.role="container",Dp.defaultEvents=e=>{const t={...V6,...e},n=(r,i)=>(o,a,s,l)=>i||t.disable?{}:r(o,{...t,...a},s,l);return[{target:"parent",eventHandlers:{onMouseDown:n(qr.onMouseDown),onTouchStart:n(qr.onMouseDown),onMouseUp:n(qr.onMouseUp),onTouchEnd:n(qr.onMouseUp),onMouseLeave:n(qr.onMouseLeave),onTouchCancel:n(qr.onMouseLeave),onMouseMove:n(qr.onMouseMove),onTouchMove:n(qr.onMouseMove),onWheel:n(qr.onWheel,!t.allowZoom)}}]};const Nle=16;class Ble{constructor(){ce(this,"onMouseDown",(t,n)=>{t.preventDefault();const{activateSelectedData:r,allowSelection:i,polar:o,selectedData:a}=n;if(!i)return{};const s=this.getDimension(n),l=n.parentSVG||xi(t),{x:c,y:u}=Ur(t,l),d=o||s!=="y"?c:_i(n).x[0],f=o||s!=="x"?u:_i(n).y[0],h=o||s!=="y"?c:_i(n).x[1],g=o||s!=="x"?u:_i(n).y[1],p={x1:d,y1:f,select:!0,x2:h,y2:g,parentSVG:l};a&&Se(n.onSelectionCleared)&&n.onSelectionCleared(Z({},p,n));const v=[{target:"parent",mutation:()=>p}],b=a&&r?a.map(x=>({childName:x.childName,eventKey:x.eventKey,target:"data",mutation:()=>null})):[];return v.concat(...b)});ce(this,"handleMouseMove",(t,n)=>{const{allowSelection:r,select:i,polar:o}=n,a=this.getDimension(n);if(!r||!i)return null;const s=n.parentSVG||xi(t),{x:l,y:c}=Ur(t,s),u=o||a!=="y"?l:_i(n).x[1],d=o||a!=="x"?c:_i(n).y[1];return{target:"parent",mutation:()=>({x2:u,y2:d,parentSVG:s})}});ce(this,"onMouseMove",Cs(this.handleMouseMove,Nle,{leading:!0,trailing:!1}));ce(this,"onMouseUp",(t,n)=>{const{activateSelectedData:r,allowSelection:i,x2:o,y2:a}=n;if(!i)return null;if(!o||!a)return[{target:"parent",mutation:()=>({select:!1,x1:null,x2:null,y1:null,y2:null})}];const s=this.getDatasets(n),l=Yd(n),c=this.filterDatasets(n,s),u={selectedData:c,datasets:s,select:!1,x1:null,x2:null,y1:null,y2:null},d=c&&Se(n.onSelection)?n.onSelection(c,l,Z({},u,n)):{},f=[{target:"parent",mutation:()=>u}],h=c&&r?c.map(g=>({childName:g.childName,eventKey:g.eventKey,target:"data",mutation:()=>Object.assign({active:!0},d)})):[];return f.concat(h)})}getDimension(t){const{horizontal:n,selectionDimension:r}=t;return!n||!r?r:r==="x"?"y":"x"}getDatasets(t){if(t.data)return[{data:t.data}];const n=i=>{const o=dn(i);return Array.isArray(o)&&o.length>0?o:void 0},r=(i,o,a)=>{const s=t.selectionBlacklist||[];let l;if(!ds(i)||s.includes(o))return null;if(i.type&&Se(i.type.getData)){l=a?y.cloneElement(i,a.props):i;const u=l.props&&l.type.getData(l.props);return u?{childName:o,data:u}:null}const c=n(l.props);return c?{childName:o,data:c}:null};return ro(y.Children.toArray(t.children),r,t)}filterDatasets(t,n){const r=n.reduce((i,o)=>{const a=this.getSelectedData(t,o.data);return a?i.concat({childName:o.childName,eventKey:a.eventKey,data:a.data}):i},[]);return r.length?r:null}getSelectedData(t,n){const{x1:r,y1:i,x2:o,y2:a}=t,s=d=>{const f=is(t,d);return f.x>=Math.min(r,o)&&f.x<=Math.max(r,o)&&f.y>=Math.min(i,a)&&f.y<=Math.max(i,a)},l=[],c=[];let u=0;for(let d=0,f=n.length;d<f;d++){const h=n[d];s(h)&&(c[u]=h,l[u]=h.eventKey===void 0?d:h.eventKey,u++)}return u>0?{eventKey:l,data:c}:null}}const Es=new Ble,H6={activateSelectedData:!0,allowSelection:!0,selectionComponent:y.createElement(oa,null),selectionStyle:{stroke:"transparent",fill:"black",fillOpacity:.1}},G6=e=>{const t={...H6,...e},{x1:n,x2:r,y1:i,y2:o,selectionStyle:a,selectionComponent:s,children:l,name:c}=t,u=Math.abs(r-n)||1,d=Math.abs(o-i)||1,f=Math.min(n,r),h=Math.min(i,o);return{props:t,children:[l,i&&o&&n&&r&&y.cloneElement(s,{key:`${c}-selection`,x:f,y:h,width:u,height:d,style:a})]}},jp=e=>{const{props:t,children:n}=G6(e);return y.createElement(Qt,t,n)};jp.role="container",jp.defaultEvents=e=>{const t={...H6,...e},n=(r,i)=>(o,a,s,l)=>t.disable?{}:r(o,{...t,...a},s,l);return[{target:"parent",eventHandlers:{onMouseDown:n(Es.onMouseDown),onTouchStart:n(Es.onMouseDown),onMouseMove:n(Es.onMouseMove),onTouchMove:n(Es.onMouseMove),onMouseUp:n(Es.onMouseUp),onTouchEnd:n(Es.onMouseUp)}}]};const la={getDimension(e){const{horizontal:t,brushDimension:n}=e;return!t||!n?n:n==="x"?"y":"x"},withinBounds(e,t,n){const{x1:r,x2:i,y1:o,y2:a}=os(t,Number),{x:s,y:l}=os(e,Number),c=n?n/2:0;return s+c>=Math.min(r,i)&&s-c<=Math.max(r,i)&&l+c>=Math.min(o,a)&&l-c<=Math.max(o,a)},getDomainBox(e,t,n){const r=this.getDimension(e),i=Z({},t,e.domain),o=Z({},n,i),a=_i(e,i),s=_i(e,o);return{x1:Math.min(...r!=="y"?s.x:a.x),x2:Math.max(...r!=="y"?s.x:a.x),y1:Math.min(...r!=="x"?s.y:a.y),y2:Math.max(...r!=="x"?s.y:a.y)}},getHandles(e,t){const n=this.getDimension(e),{x1:r,x2:i,y1:o,y2:a}=t,s=Math.min(r,i),l=Math.max(r,i),c=Math.min(o,a),u=Math.max(o,a),d=e.handleWidth/2;return{left:n!=="y"&&{x1:s-d,x2:s+d,y1:o,y2:a},right:n!=="y"&&{x1:l-d,x2:l+d,y1:o,y2:a},top:n!=="x"&&{x1:r,x2:i,y1:c-d,y2:c+d},bottom:n!=="x"&&{x1:r,x2:i,y1:u-d,y2:u+d}}},getActiveHandles(e,t,n){const r=this.getHandles(t,n),i=["top","bottom","left","right"].reduce((o,a)=>r[a]&&this.withinBounds(e,r[a])?o.concat(a):o,[]);return i.length&&i},getResizeMutation(e,t){const{x1:n,y1:r,x2:i,y2:o}=e,a={left:{x1:Math.max(n,i),x2:Math.min(n,i),y1:r,y2:o},right:{x1:Math.min(n,i),x2:Math.max(n,i),y1:r,y2:o},top:{y1:Math.max(r,o),y2:Math.min(r,o),x1:n,x2:i},bottom:{y1:Math.min(r,o),y2:Math.max(r,o),x1:n,x2:i}};return t.reduce((s,l)=>Object.assign(s,a[l]),{})},getMinimumDomain(){return{x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}},getDefaultBrushArea(e,t,n){const{domain:r,fullDomain:i,scale:o,horizontal:a,allowResize:s}=e,l=!s&&!e.defaultBrushArea?"move":e.defaultBrushArea;if(l==="none")return this.getMinimumDomain();if(l==="disable")return t;if(l==="move"){const c=this.getDomainBox(e,i,t),u=e.parentSVG||xi(n),d=this.panBox({...e,...c,brushDomain:t,startX:(c.x1+c.x2)/2,startY:(c.y1+c.y2)/2},Ur(n,u)),f=e.fullDomainBox||this.getDomainBox(e,i),h=this.constrainBox(d,f);return Yd({...h,scale:o,horizontal:a})}return r},getSelectionMutation(e,t,n){const{x:r,y:i}=e,{x1:o,x2:a,y1:s,y2:l}=t;return{x1:n!=="y"?r:o,y1:n!=="x"?i:s,x2:n!=="y"?r:a,y2:n!=="x"?i:l}},panBox(e,t){const{domain:n,startX:r,startY:i}=e,o=this.getDimension(e),a=Z({},e.brushDomain,n),s=Z({},e.fullDomain,n),{x1:l,x2:c,y1:u,y2:d}=e.x1?e:this.getDomainBox(e,s,a),{x:f,y:h}=t,g={x:r?r-f:0,y:i?i-h:0};return{x1:o!=="y"?Math.min(l,c)-g.x:Math.min(l,c),x2:o!=="y"?Math.max(l,c)-g.x:Math.max(l,c),y1:o!=="x"?Math.min(u,d)-g.y:Math.min(u,d),y2:o!=="x"?Math.max(u,d)-g.y:Math.max(u,d)}},constrainBox(e,t){const{x1:n,y1:r,x2:i,y2:o}=os(t,Number);return{x1:e.x2>i?i-Math.abs(e.x2-e.x1):Math.max(e.x1,n),y1:e.y2>o?o-Math.abs(e.y2-e.y1):Math.max(e.y1,r),x2:e.x1<n?n+Math.abs(e.x2-e.x1):Math.min(e.x2,i),y2:e.y1<r?r+Math.abs(e.y2-e.y1):Math.min(e.y2,o)}},constrainPoint(e,t){const{x1:n,y1:r,x2:i,y2:o}=os(t,Number);return{x:Math.min(Math.max(e.x,n),i),y:Math.min(Math.max(e.y,r),o)}},hasMoved(e){const{x1:t,x2:n,y1:r,y2:i,mouseMoveThreshold:o}=e,a=this.getDimension(e),s=Math.abs(t-n)>=o,l=Math.abs(r-i)>=o;switch(a){case"x":return s;case"y":return l;default:return s||l}},onMouseDown(e,t){e.preventDefault();const{handleWidth:n,cachedBrushDomain:r,domain:i,allowResize:o,allowDrag:a,allowDraw:s}=t,l=this.getDimension(t),c=!o&&!t.defaultBrushArea?"move":t.defaultBrushArea;if(!o&&!a)return{};const u=t.fullDomainBox||this.getDomainBox(t,i),d=t.parentSVG||xi(e),{x:f,y:h}=Ur(e,d);if(!this.withinBounds({x:f,y:h},u,n))return{};const g=Z({},t.brushDomain,i),p=Vn(g,r)?t.currentDomain||g||i:g||i,v=this.getDomainBox(t,i,p),b=o&&this.getActiveHandles({x:f,y:h},t,v);return b?[{target:"parent",mutation:()=>({isSelecting:!0,domainBox:v,fullDomainBox:u,cachedBrushDomain:g,currentDomain:p,parentSVG:d,...this.getResizeMutation(v,b)})}]:this.withinBounds({x:f,y:h},v)&&!Vn(i,p)?[{target:"parent",mutation:()=>({isPanning:a,startX:f,startY:h,domainBox:v,fullDomainBox:u,currentDomain:p,cachedBrushDomain:g,parentSVG:d,...v})}]:s?[{target:"parent",mutation:()=>({isSelecting:o||c==="move",domainBox:v,fullDomainBox:u,parentSVG:d,cachedBrushDomain:g,cachedCurrentDomain:p,currentDomain:this.getMinimumDomain(),...this.getSelectionMutation({x:f,y:h},v,l)})}]:{}},onGlobalMouseMove(e,t){const{scale:n,isPanning:r,isSelecting:i,fullDomainBox:o,onBrushDomainChange:a,allowResize:s,allowDrag:l,horizontal:c,mouseMoveThreshold:u,parentSVG:d}=t,f=this.getDimension(t),{x:h,y:g}=Ur(e,d);if(!s&&!l||u>0&&!this.hasMoved({...t,x2:h,y2:g}))return{};if(l&&r){const{startX:p,startY:v}=t,b=this.panBox(t,{x:h,y:g}),x=this.constrainBox(b,o),S=Yd({...x,scale:n,horizontal:c}),w={currentDomain:S,parentSVG:d,startX:b.x2>=o.x2||b.x1<=o.x1?p:h,startY:b.y2>=o.y2||b.y1<=o.y1?v:g,...x};return Se(a)&&a(S,Z({},w,t)),[{target:"parent",mutation:()=>w}]}else if(s&&i){const{x:p,y:v}=this.constrainPoint({x:f!=="y"?h:t.x2,y:f!=="x"?g:t.y2},o),b=Yd({x2:p,y2:v,x1:t.x1,y1:t.y1,scale:n,horizontal:c}),x={x2:p,y2:v,currentDomain:b,parentSVG:d};return Se(a)&&a(b,Z({},x,t)),[{target:"parent",mutation:()=>x}]}return{}},onGlobalMouseUp(e,t){if(!t.isPanning&&!t.isSelecting)return{};const{x1:n,y1:r,x2:i,y2:o,isPanning:a,isSelecting:s,onBrushDomainChange:l,onBrushDomainChangeEnd:c,onBrushCleared:u,currentDomain:d,allowResize:f,allowDrag:h}=t,g=!f&&!t.defaultBrushArea?"move":t.defaultBrushArea,p=g!==void 0&&g!=="none",v={isPanning:!1,isSelecting:!1};if((f||p)&&(n===i||r===o)){const b=t.cachedCurrentDomain||d,x=this.getDefaultBrushArea(t,b,e);v.currentDomain=x,Se(l)&&l(x,Z({},v,t)),Se(c)&&c(x,Z({},v,t)),Se(u)&&u(x,Z({},v,t))}else(h&&a||f&&s)&&Se(c)&&c(d,Z({},v,t));return[{target:"parent",mutation:()=>v}]}},Di={...la,onMouseDown:la.onMouseDown.bind(la),onGlobalMouseUp:la.onGlobalMouseUp.bind(la),onGlobalMouseMove:Cs(la.onGlobalMouseMove.bind(la),16,{leading:!0,trailing:!1})},q6={allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:y.createElement(oa,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:y.createElement(oa,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0},Y6=e=>{const t={...q6,...e},{children:n}=t,r=s=>{const{x:l,y:c}=s,{brushStyle:u,brushComponent:d,name:f}=t,h=d.props&&d.props.style,g=!t.allowDrag&&!t.allowResize?"auto":"move";return l[0]!==l[1]&&c[0]!==c[1]?y.cloneElement(d,{key:`${f}-brush`,width:Math.abs(l[1]-l[0])||1,height:Math.abs(c[1]-c[0])||1,x:Math.min(l[0],l[1]),y:Math.min(c[0],c[1]),cursor:g,style:Z({},h,u)}):null},i=()=>{const s={yProps:"ns-resize",xProps:"ew-resize"};return!t.allowResize&&t.allowDrag?(s.xProps="move",s.yProps="move"):!t.allowResize&&!t.allowDrag&&(s.xProps="auto",s.yProps="auto"),s},o=s=>{const{handleWidth:l,handleStyle:c,handleComponent:u,name:d}=t,f=Di.getDomainBox(t,s),{x1:h,x2:g,y1:p,y2:v}=f,{top:b,bottom:x,left:S,right:w}=Di.getHandles(t,f),_=Math.abs(g-h)||1,E=Math.abs(v-p)||1,O=u.props&&u.props.style||{},T=Z({},O,c),D=i(),j={style:T,width:_,height:l,cursor:D.yProps},A={style:T,width:l,height:E,cursor:D.xProps},M={top:b&&Object.assign({x:b.x1,y:b.y1},j),bottom:x&&Object.assign({x:x.x1,y:x.y1},j),left:S&&Object.assign({y:S.y1,x:S.x1},A),right:w&&Object.assign({y:w.y1,x:w.x1},A)},P=["top","bottom","left","right"].reduce(($,L)=>M[L]?$.concat(y.cloneElement(u,Object.assign({key:`${d}-handle-${L}`},M[L]))):$,[]);return P.length?P:null},a=()=>{const{currentDomain:s,cachedBrushDomain:l}=t,c=Z({},t.brushDomain,t.domain),u=Vn(c,l)?Z({},s,c):c,d=_i(t,u),f=r(d);return f?[f,o(u)]:[]};return{props:t,children:[...y.Children.toArray(n),...a()]}},Pp=e=>{const{props:t,children:n}=Y6(e);return y.createElement(Qt,t,n)};Pp.role="container",Pp.defaultEvents=e=>{const t={...q6,...e},n=(r,i)=>(o,a,s,l)=>t.disable||i!=null&&i(a)?{}:r(o,{...t,...a},s,l);return[{target:"parent",eventHandlers:{onMouseDown:n(Di.onMouseDown),onTouchStart:n(Di.onMouseDown),onGlobalMouseMove:n(Di.onGlobalMouseMove,r=>!r.isPanning&&!r.isSelecting),onGlobalTouchMove:n(Di.onGlobalMouseMove,r=>!r.isPanning&&!r.isSelecting),onGlobalMouseUp:n(Di.onGlobalMouseUp),onGlobalTouchEnd:n(Di.onGlobalMouseUp),onGlobalTouchCancel:n(Di.onGlobalMouseUp)}}]};function K6(e){if(e){if(!Array.isArray(e))return[e]}else return[];return e}const Wle=e=>e.reduce((t,n)=>(kle(t,(r,i)=>{const o=n[i];o?n[i]=function(){const s=K6(o(...arguments)),l=K6(r(...arguments));return s.concat(l)}:n[i]=r}),n)),zle=e=>{const t=Qd(e,"target");return ble(t).map(r=>{let[i,o]=r;const a=o.filter(Boolean);return vt(a)?null:{target:i,eventHandlers:Wle(o.map(s=>s.eventHandlers))}}).filter(Boolean)},Z6={zoom:U6,selection:G6,brush:Y6,cursor:w6,voronoi:R6},Rle={zoom:Dp,selection:jp,brush:Pp,cursor:bp,voronoi:Ap};function Vle(e,t){return function(r,i){const o=e[r],a=e[i],s=Z6[r],l=Z6[i],c=u=>{const{children:d,props:f}=s(u),{children:h,props:g}=l({...f,children:d});return y.createElement(t,g,h)};return c.displayName=`Victory${r}${i}Container`,c.role="container",c.defaultEvents=u=>zle([...o.defaultEvents(u),...a.defaultEvents(u)]),c}}const Ule=Vle(Rle,Qt),Hle=(e,t)=>{const n=Ule(e,t),r=i=>{const o=Object.assign(Object.assign(Object.assign({},{cursorLabelComponent:k.createElement(an,{textAnchor:"start"}),cursorComponent:k.createElement(Ci,{style:{stroke:tle.var}})}),{labelComponent:k.createElement(Sf,null)}),i);return k.createElement(n,Object.assign({},o))};return r.defaultEvents=n.defaultEvents,r.displayName=n.displayName,r.role=n.role,r};function Gle(e){return e.horizontal?m.jsx(qle,{children:e.legend.map((t,n)=>t.count===0&&e.allowZero!==!0?m.jsx(y.Fragment,{},n):m.jsxs(Yle,{children:[m.jsx(X6,{id:`${e.id}-${t.label.toLowerCase().replace(/ /g,"-")}-count`,color:t.color}),e.showLegendCount===!1?null:m.jsx(J6,{count:t.count}),m.jsx(Q6,{label:t.label,link:t.link})]},n))}):m.jsx(Kle,{children:e.legend.map((t,n)=>t.count===0&&e.allowZero!==!0?m.jsx(y.Fragment,{},n):m.jsxs(y.Fragment,{children:[m.jsx(X6,{color:t.color}),e.showLegendCount===!1?null:m.jsx(J6,{id:`${e.id}-${t.label.toLowerCase().replace(/ /g,"-")}-count`,count:t.count}),m.jsx(Q6,{label:t.label,link:t.link})]},n))})}function X6(e){return m.jsx(Zle,{id:e.id,style:{backgroundColor:e.color}})}function J6(e){return m.jsx(Xle,{id:e.id,children:e.count})}function Q6(e){return m.jsx(Jle,{children:e.link?m.jsx(Ot.Link,{to:e.link,style:{textDecoration:"none"},children:e.label}):e.label})}const qle=De.div`
|
320
320
|
display: flex;
|
321
321
|
flex-wrap: wrap;
|
322
322
|
flex-direction: row;
|
@@ -362,12 +362,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[ru]+=1);const iu=De.button`
|
|
362
362
|
background-color: transparent;
|
363
363
|
`;var tt=(e=>(e.Table="table",e.List="list",e.Cards="cards",e))(tt||{}),yo=(e=>(e.description="description",e.expanded="expanded",e.hidden="hidden",e))(yo||{}),nE=(e=>(e.name="name",e.subtitle="subtitle",e.description="description",e.hidden="hidden",e.primary="primary",e.secondary="secondary",e))(nE||{}),rE=(e=>(e.name="name",e.subtitle="subtitle",e.description="description",e.hidden="hidden",e))(rE||{}),iE=(e=>(e.hidden="hidden",e))(iE||{}),oE=(e=>(e.hidden="hidden",e))(oE||{}),kf=(e=>(e.last="last",e))(kf||{});function nn(e){var r;const{item:t,column:n}=e;if(!n)return m.jsx(m.Fragment,{});switch(n.type){case"text":return m.jsx(d1,{text:n.value(t),to:(r=n.to)==null?void 0:r.call(n,t)});case"description":return m.jsx("div",{style:{minWidth:200,whiteSpace:"normal"},children:n.value(t)});case"datetime":return m.jsx(c1,{value:n.value(t)});case"count":return m.jsx(m.Fragment,{children:n.value(t)??"-"});case"labels":return m.jsx(u1,{labels:n.value(t)??[]});default:return m.jsx(m.Fragment,{children:n.cell(t)})}}function Mp(e){return y.useMemo(()=>e.filter(t=>!(t.table==="hidden"||t.table==="description"||t.table==="expanded")),[e])}function aE(e){return y.useMemo(()=>e.filter(t=>t.list!=="hidden"),[e])}function sE(e){return y.useMemo(()=>e.filter(t=>t.card!=="hidden"),[e])}function Tf(e){return y.useMemo(()=>e.filter(t=>t.modal!=="hidden"),[e])}function dce(e){return e=y.useMemo(()=>e.filter(t=>t.dashboard!=="hidden"),[e]),e=uE(e),e=dE(e),e}function fce(e,t){const n=Mp(e),r=aE(e),i=sE(e);switch(t){case tt.Table:return n;case tt.List:return r;case tt.Cards:return i}}function lE(e){return y.useMemo(()=>e.filter(t=>t.table==="hidden"?!1:t.table==="description"),[e])}function cE(e){return y.useMemo(()=>e.filter(t=>t.table==="hidden"?!1:t.table==="expanded"),[e])}function uE(e){return y.useMemo(()=>e.map(t=>({...t,sort:void 0})),[e])}function dE(e){return y.useMemo(()=>e.map(t=>({...t,table:t.table==="expanded"?void 0:t.table})),[e])}function fE(e){const{item:t,columns:n,children:r}=e,i=y.useMemo(()=>n.filter(s=>{if(!t)return!1;if("value"in s&&s.value){const l=s.value(t);if(l==null||typeof l=="string"&&l.trim().length===0)return!1}return!0}),[n,t]),o=y.useMemo(()=>i.filter(s=>s.priority!==kf.last),[i]),a=y.useMemo(()=>i.filter(s=>s.priority===kf.last),[i]);return!t||!i.length?null:m.jsxs(m.Fragment,{children:[o.map(s=>m.jsx(Os,{helpText:s.helpText,label:s.header,children:m.jsx(nn,{column:s,item:t})},s.id??s.header)),r||null,a.map(s=>m.jsx(Os,{label:s.header,children:m.jsx(nn,{column:s,item:t})},s.id??s.header))]})}class hce{constructor(t){ce(this,"value");ce(this,"next");this.value=t}}class mce{constructor(){vh(this,pr);vh(this,pa);vh(this,ya);this.clear()}enqueue(t){const n=new hce(t);ai(this,pr)?(ai(this,pa).next=n,Ui(this,pa,n)):(Ui(this,pr,n),Ui(this,pa,n)),sv(this,ya)._++}dequeue(){const t=ai(this,pr);if(t)return Ui(this,pr,ai(this,pr).next),sv(this,ya)._--,t.value}peek(){if(ai(this,pr))return ai(this,pr).value}clear(){Ui(this,pr,void 0),Ui(this,pa,void 0),Ui(this,ya,0)}get size(){return ai(this,ya)}*[Symbol.iterator](){let t=ai(this,pr);for(;t;)yield t.value,t=t.next}}pr=new WeakMap,pa=new WeakMap,ya=new WeakMap;function gce(e){hE(e);const t=new mce;let n=0;const r=()=>{n<e&&t.size>0&&(t.dequeue()(),n++)},i=()=>{n--,r()},o=async(l,c,u)=>{const d=(async()=>l(...u))();c(d);try{await d}catch{}i()},a=(l,c,u)=>{new Promise(d=>{t.enqueue(d)}).then(o.bind(void 0,l,c,u)),(async()=>(await Promise.resolve(),n<e&&r()))()},s=(l,...c)=>new Promise(u=>{a(l,u,c)});return Object.defineProperties(s,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value(){t.clear()}},concurrency:{get:()=>e,set(l){hE(l),e=l,queueMicrotask(()=>{for(;n<e&&t.size>0;)r()})}}}),s}function hE(e){if(!((Number.isInteger(e)||e===Number.POSITIVE_INFINITY)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const Ql=e=>{const t=["json"],n=["non_field_errors"],r=[],i=[];switch(typeof e){case"string":r.push({message:e});break;case"object":if(e===null)break;if(Array.isArray(e)){for(const o of e)typeof o=="string"&&r.push({message:o});break}for(const o of t)if(o in e&&typeof e[o]=="object"&&e[o]!==null)for(const a in e[o]){const s=e[o][a];if(n.includes(a)){if(typeof s=="string")r.push({message:s});else if(Array.isArray(s))for(const l of s)typeof l=="string"&&r.push({message:l})}else if(typeof s=="string")a==="detail"?r.push({message:s}):i.push({name:a,message:s});else if(Array.isArray(s))for(const l of s)typeof l=="string"&&i.push({name:a,message:l})}else e instanceof Error&&r.push({message:e.message});break}return{genericErrors:r,fieldErrors:i}};function Af(e,t){const[n,r]=y.useState(()=>e);y.useEffect(()=>r(e),[e]);const i=y.useCallback(o=>{t?t(o):r(o)},[t]);return[n,i]}function mE(e){const{t}=Me(),{id:n,icon:r,placeholder:i,values:o,onSelect:a,options:s,variant:l,disableClearSelection:c,maxChipSize:u,queryLabel:d,compareOptionValues:f}=e,[h,g]=Af(e.open??!1,e.setOpen),[p,v]=Af(e.searchValue??"",e.setSearchValue),b=y.useRef(null),x=y.useMemo(()=>{const D=[];for(const j of o??[]){const A=s.find(M=>f?f(M.value,j):M.value===j);A?D.push(A):d&&j!==void 0&&D.push({label:d(j),value:j})}return D},[s,d,o,f]),S=D=>m.jsx(C.Tooltip,{content:e.isDisabled,trigger:e.isDisabled?void 0:"manual",children:m.jsx(C.MenuToggle,{id:n,ref:D,onClick:()=>g(!h),isExpanded:h,onKeyDown:j=>{switch(j.key){case"Tab":case"Enter":case"Shift":break;default:g(!0),setTimeout(()=>{E.current&&(E.current.focus(),E.current.value=j.key)},1);break}},"data-cy":n,icon:r,isDisabled:!!e.isDisabled,isFullWidth:!0,style:{paddingTop:2,paddingBottom:4,minHeight:36},children:x.length>0?m.jsx(m.Fragment,{children:l==="count"?m.jsx(C.Chip,{isReadOnly:c,onClick:()=>a(()=>[]),style:{marginTop:-4,marginBottom:-4},children:x.length}):m.jsxs(m.Fragment,{children:[m.jsx(C.ChipGroup,{numChips:99,children:x.map(j=>m.jsx(C.Chip,{isReadOnly:e.disableClearChips,textMaxWidth:u,style:{marginTop:-2,marginBottom:-2},onClick:()=>a(A=>A==null?void 0:A.filter(M=>M!==j.value)),children:j.label},j.label))}),!c&&m.jsx(ve.TimesIcon,{role:"button","aria-hidden":!0,onClick:()=>a(()=>[]),style:{verticalAlign:"middle",marginLeft:8}})]})}):m.jsx("span",{style:{opacity:.7},children:i})})}),w=y.useMemo(()=>x.map(D=>D.label),[x]),_=y.useCallback((D,j)=>{a(A=>{const M=s.find(P=>P.key!==void 0?P.key===j:P.label===j);return M&&((A==null?void 0:A.find(P=>f?f(P,M.value):P===M.value))!==void 0?A=A.filter(P=>f?!f(P,M.value):P!==M.value):(A=A?[...A]:[],A.push(M.value))),A})},[a,s,f]),E=y.useRef(null);y.useEffect(()=>{h||v("")},[h,v]);const O=y.useMemo(()=>{const D=s.filter(j=>p===""?!0:j.label.toLowerCase().includes(p.toLowerCase()));return e.disableSortOptions||D.sort((j,A)=>j.label.toLowerCase().localeCompare(A.label.toLowerCase())),D},[s,e.disableSortOptions,p]),T=y.useMemo(()=>{if(s.some(j=>!!j.group)){const j={};for(const A of O){const M=A.group??"";j[M]||(j[M]=[]),j[M].push(A)}return j}},[s,O]);return m.jsxs(C.Select,{id:`${n}-select`,selected:w,onSelect:_,isOpen:h,onOpenChange:g,toggle:S,popperProps:{appendTo:()=>document.body,preventOverflow:!0,enableFlip:!0},innerRef:b,children:[m.jsx(C.MenuSearch,{children:m.jsx(C.MenuSearchInput,{"data-cy":"search-input",children:m.jsx(C.SearchInput,{id:`${n}-search`,ref:E,value:p,onChange:(D,j)=>v(j),onClear:D=>{D.stopPropagation(),v("")},resultsCount:O.length!==s.length?`${O.length} / ${s.length}`:void 0,onKeyDown:D=>{var j;switch(D.key){case"ArrowDown":case"Tab":{D.preventDefault(),D.stopPropagation();const A=(j=b==null?void 0:b.current)==null?void 0:j.querySelector("li button:not(:disabled),li input:not(:disabled)");A&&A.focus();break}}}})})}),m.jsx(C.Divider,{}),O.length===0?m.jsx(m.Fragment,{children:e.isLoading?m.jsx(C.Bullseye,{style:{padding:16},children:m.jsx(C.Spinner,{size:"lg"})}):m.jsx(C.SelectOption,{isDisabled:!0,children:t("No results found")},"no result")}):m.jsx(pce,{children:T?m.jsx(m.Fragment,{children:Object.keys(T).map(D=>m.jsx(C.SelectGroup,{label:D,children:m.jsx(gE,{searchRef:E,options:O,selectedOptions:x})},D))}):m.jsx(gE,{searchRef:E,options:O,selectedOptions:x})}),e.footer&&m.jsx(C.MenuFooter,{children:e.footer})]})}function gE(e){return m.jsx(C.SelectList,{onKeyDown:t=>{var n;switch(t.key){case"Tab":t.preventDefault(),t.stopPropagation(),(n=e.searchRef.current)==null||n.focus();break}},children:e.options.map(t=>{const n=Br(t);return m.jsx(C.SelectOption,{id:n,icon:t.icon,value:t.key!==void 0?t.key:t.label,description:t.description?m.jsx("div",{style:{maxWidth:300},children:t.description}):void 0,hasCheckbox:!0,isSelected:e.selectedOptions.includes(t),"data-cy":n,children:t.label},t.key!==void 0?t.key:t.label)})})}const pce=De(Zn)`
|
364
364
|
max-height: 40vh;
|
365
|
-
`;function yce(e){const{t}=Me(),[n,r]=y.useState(!1),[i,o]=y.useState(!1),[a,s]=y.useState(),[l,c]=y.useState(0),[u,d]=y.useState(),[f,h]=y.useState(!1),g=y.useRef(),[p,v]=y.useState(""),b=y.useCallback(C.debounce(T=>v(T),200),[]),x=y.useRef(e.queryOptions).current,S=y.useRef(null),w=y.useCallback(()=>{S.current&&S.current.abort();const T=new AbortController;return S.current=T,r(()=>(o(!1),s(void 0),d(D=>{if(D)return D}),x({next:g.current,signal:T.signal,search:p}).then(D=>{T.signal.aborted||(g.current=D.next,D.remaining||o(!0),d(j=>{if(T.signal.aborted)return j;let A=[...j??[],...D.options];const M=new Set;return A=A.filter(P=>M.has(P.value)?!1:(M.add(P.value),!0)),A.sort((P,$)=>{const L=P.label.toLowerCase(),
|
365
|
+
`;function yce(e){const{t}=Me(),[n,r]=y.useState(!1),[i,o]=y.useState(!1),[a,s]=y.useState(),[l,c]=y.useState(0),[u,d]=y.useState(),[f,h]=y.useState(!1),g=y.useRef(),[p,v]=y.useState(""),b=y.useCallback(C.debounce(T=>v(T),200),[]),x=y.useRef(e.queryOptions).current,S=y.useRef(null),w=y.useCallback(()=>{S.current&&S.current.abort();const T=new AbortController;return S.current=T,r(()=>(o(!1),s(void 0),d(D=>{if(D)return D}),x({next:g.current,signal:T.signal,search:p}).then(D=>{T.signal.aborted||(g.current=D.next,D.remaining||o(!0),d(j=>{if(T.signal.aborted)return j;let A=[...j??[],...D.options];const M=new Set;return A=A.filter(P=>M.has(P.value)?!1:(M.add(P.value),!0)),A.sort((P,$)=>{const L=P.label.toLowerCase(),H=$.label.toLowerCase();return L<H?-1:L>H?1:0}),c(D.remaining+A.length),A}))}).catch(D=>{T.signal.aborted||s(D instanceof Error?D:new Error(t("Unknown error")))}).finally(()=>{T.signal.aborted||r(!1)}),!0)),()=>T.abort()},[x,p,t]),_=y.useCallback(T=>{T.preventDefault(),T.stopPropagation(),w()},[w]),E=y.useCallback(T=>{T.preventDefault(),T.stopPropagation(),c(0),d([]),g.current=void 0,w()},[w]);y.useEffect(()=>{f&&(c(0),d([]),g.current=void 0,w())},[f,w]);const O=m.jsxs(C.Stack,{hasGutter:!0,children:[m.jsxs(C.Flex,{children:[m.jsx(C.FlexItem,{grow:{default:"grow"},children:m.jsxs(C.ActionList,{children:[e.onBrowse&&m.jsx(C.ActionListItem,{children:m.jsx(C.Button,{id:"browse",onClick:T=>{var D;T.preventDefault(),T.stopPropagation(),h(!1),(D=e.onBrowse)==null||D.call(e)},children:t("Browse")})}),!i&&m.jsx(C.ActionListItem,{children:m.jsx(C.Button,{id:"load-more",isLoading:n,onClick:_,isDisabled:n,children:t(n?"Loading...":"Load more")})})]})}),!i&&l!==0&&m.jsx(C.FlexItem,{children:t("Loaded {{count}} of {{total}}",{count:(u==null?void 0:u.length)??0,total:l})})]}),e.footer]});return a?m.jsx(vce,{id:e.id,variant:"secondary",isDanger:!0,icon:m.jsx(ve.SyncAltIcon,{}),iconPosition:"right",onClick:E,children:typeof e.queryErrorText=="function"?e.queryErrorText(a):e.queryErrorText??t("Error loading options")}):m.jsx(mE,{id:e.id,icon:e.icon,placeholder:e.placeholder,options:u??[],values:e.values,onSelect:e.onSelect,variant:e.variant,footer:O,open:f,setOpen:h,searchValue:p,setSearchValue:b,isLoading:n,disableClearSelection:e.disableClearSelection,disableClearChips:e.disableClearChips,queryLabel:e.queryLabel,compareOptionValues:e.compareOptionValues})}const vce=De(C.Button)`
|
366
366
|
width: 100%;
|
367
367
|
text-align: left;
|
368
368
|
`;var $p={exports:{}};function pE(e,t=100,n={}){if(typeof e!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw new RangeError("`wait` must not be negative.");const{immediate:r}=typeof n=="boolean"?{immediate:n}:n;let i,o,a,s,l;function c(){const f=i,h=o;return i=void 0,o=void 0,l=e.apply(f,h),l}function u(){const f=Date.now()-s;f<t&&f>=0?a=setTimeout(u,t-f):(a=void 0,r||(l=c()))}const d=function(...f){if(i&&this!==i&&Object.getPrototypeOf(this)===Object.getPrototypeOf(i))throw new Error("Debounced method called with different contexts of the same prototype.");i=this,o=f,s=Date.now();const h=r&&!a;return a||(a=setTimeout(u,t)),h&&(l=c()),l};return d.clear=()=>{a&&(clearTimeout(a),a=void 0)},d.flush=()=>{a&&d.trigger()},d.trigger=()=>{l=c(),d.clear()},d}$p.exports.debounce=pE,$p.exports=pE;var bce=$p.exports;const Ip=Fe(bce);function ji(e){const{t}=Me(),{id:n,icon:r,value:i,onSelect:o,options:a,placeholder:s,queryLabel:l}=e,[c,u]=Af(e.open??!1,e.setOpen);y.useEffect(()=>{c&&setTimeout(()=>{var _;return(_=x.current)==null?void 0:_.focus()},1)},[c]);const[d,f]=Af(e.searchValue??"",e.setSearchValue),h=y.useRef(null),g=y.useMemo(()=>a.find(_=>i===_.value),[a,i]),p=y.useMemo(()=>{let _=g==null?void 0:g.label;return!_&&i!==void 0&&i!==""&&i!==null&&(_=l==null?void 0:l(i)),_},[l,g==null?void 0:g.label,i]),v=_=>m.jsx(C.Tooltip,{content:e.isDisabled,trigger:e.isDisabled?void 0:"manual",children:m.jsxs(C.Flex,{flexWrap:{default:"nowrap"},children:[m.jsx(C.MenuToggle,{id:n,"data-cy":n,ref:_,icon:r??(g==null?void 0:g.icon),onClick:()=>u(!c),isExpanded:c,isDisabled:!!e.isDisabled,style:{pointerEvents:e.isDisabled?"unset":void 0,cursor:e.isDisabled?"not-allowed":void 0},onKeyDown:E=>{switch(E.key){case"Tab":case"Shift":break;default:E.preventDefault(),E.key.length===1&&f(E.key),u(!0),setTimeout(()=>{x.current&&E.key.length===1&&(x.current.value=E.key+x.current.value)},1);break}},isFullWidth:!0,children:p||m.jsx("span",{style:{opacity:.7},children:s})}),!e.isRequired&&p&&m.jsx(C.Button,{variant:"control","data-cy":"reset",onClick:()=>{var E;u(!1),o(null),_!==null&&"current"in _&&((E=_.current)==null||E.focus())},children:m.jsx(C.Icon,{size:"md",style:{opacity:.7},children:m.jsx(ve.TimesIcon,{"aria-hidden":!0,style:{padding:0,margin:0}})})})]})}),b=y.useCallback((_,E)=>{const O=a.find(T=>T.key!==void 0?T.key===E:T.label===E);O&&(o(O.value),u(!1))},[o,a,u]),x=y.useRef(null);y.useEffect(()=>{c||f("")},[c,f]),y.useEffect(()=>{!e.disableAutoSelect&&e.isRequired&&!g&&a.length===1&&o(a[0].value)},[o,a,e.disableAutoSelect,e.isRequired,g]);const S=y.useMemo(()=>{let _=a;return e.setSearchValue||(_=_.filter(E=>d===""?!0:E.label.toLowerCase().includes(d.toLowerCase()))),e.disableSortOptions||(_=_.sort((E,O)=>{const T=E.label.toLowerCase(),D=O.label.toLowerCase();return T<D?-1:T>D?1:0})),_},[a,e.disableSortOptions,e.setSearchValue,d]),w=y.useMemo(()=>{if(a.some(E=>!!E.group)){const E={};for(const O of S){const T=O.group??"";E[T]||(E[T]=[]),E[T].push(O)}return E}},[a,S]);return m.jsx(vE.Provider,{value:{open:c,setOpen:u},children:m.jsxs(C.Select,{id:`${n}-select`,selected:g,onSelect:b,isOpen:c,onOpenChange:u,toggle:e.toggle??v,popperProps:{appendTo:()=>document.body,preventOverflow:!0,enableFlip:!0},shouldFocusToggleOnSelect:!0,innerRef:h,children:[m.jsx(C.MenuSearch,{children:m.jsx(C.MenuSearchInput,{"data-cy":"search-input",children:m.jsx(C.SearchInput,{id:`${n}-search`,ref:x,value:d,onChange:(_,E)=>f(E),onClear:_=>{_.stopPropagation(),f("")},resultsCount:S.length!==a.length?`${S.length} / ${a.length}`:void 0,onKeyDown:_=>{var E;switch(_.key){case"ArrowDown":case"Tab":{_.preventDefault(),_.stopPropagation();const O=(E=h==null?void 0:h.current)==null?void 0:E.querySelector("li button:not(:disabled),li input:not(:disabled)");O&&O.focus();break}}}})})}),m.jsx(C.Divider,{}),S.length===0?m.jsx(m.Fragment,{children:e.isLoading?m.jsx(C.Bullseye,{style:{padding:16},children:m.jsx(C.Spinner,{size:"lg"})}):m.jsx(C.SelectOption,{isDisabled:!0,children:t("No results found")},"no result")}):m.jsx(xce,{children:w?m.jsx(m.Fragment,{children:Object.keys(w).map(_=>m.jsx(C.SelectGroup,{label:_,children:m.jsx(yE,{searchRef:x,options:w[_]})},_))}):m.jsx(yE,{searchRef:x,options:S})}),e.footer&&m.jsx(C.MenuFooter,{children:e.footer})]})})}function yE(e){return m.jsx(C.SelectList,{onKeyDown:t=>{var n;switch(t.key){case"Tab":t.preventDefault(),t.stopPropagation(),(n=e.searchRef.current)==null||n.focus();break}},children:e.options.map(t=>{const n=Br(t);return m.jsx(C.SelectOption,{id:n,icon:t.icon,value:t.key!==void 0?t.key:t.label,description:t.description,"data-cy":n,children:t.label},t.key!==void 0?t.key:t.label)})})}const xce=De(Zn)`
|
369
369
|
max-height: 40vh;
|
370
|
-
`,vE=y.createContext({open:!1,setOpen:()=>{}});function bE(e){const{t}=Me(),{queryOptions:n,writeInOption:r}=e,[i,o]=y.useState(!1),[a,s]=y.useState(!1),[l,c]=y.useState(),[u,d]=y.useState(0),[f,h]=y.useState(),[g,p]=y.useState(!1),v=y.useRef(),[b,x]=y.useState(""),S=y.useCallback(Ip(j=>x(j),200),[]),w=y.useRef(e.onSelect).current,_=y.useRef(null),E=y.useCallback(()=>{_.current&&_.current.abort();const j=new AbortController;return _.current=j,o(()=>(s(!1),c(void 0),h(A=>{if(A)return A}),n({next:v.current,signal:j.signal,search:b}).then(A=>{j.signal.aborted||(v.current=A.next,A.remaining||s(!0),h(M=>{let P=[...M??[],...A.options];const $=new Set;return P=P.filter(L=>$.has(L.value)?!1:($.add(L.value),!0)),P.sort((L,
|
370
|
+
`,vE=y.createContext({open:!1,setOpen:()=>{}});function bE(e){const{t}=Me(),{queryOptions:n,writeInOption:r}=e,[i,o]=y.useState(!1),[a,s]=y.useState(!1),[l,c]=y.useState(),[u,d]=y.useState(0),[f,h]=y.useState(),[g,p]=y.useState(!1),v=y.useRef(),[b,x]=y.useState(""),S=y.useCallback(Ip(j=>x(j),200),[]),w=y.useRef(e.onSelect).current,_=y.useRef(null),E=y.useCallback(()=>{_.current&&_.current.abort();const j=new AbortController;return _.current=j,o(()=>(s(!1),c(void 0),h(A=>{if(A)return A}),n({next:v.current,signal:j.signal,search:b}).then(A=>{j.signal.aborted||(v.current=A.next,A.remaining||s(!0),h(M=>{let P=[...M??[],...A.options];const $=new Set;return P=P.filter(L=>$.has(L.value)?!1:($.add(L.value),!0)),P.sort((L,H)=>{const q=L.label.toLowerCase(),U=H.label.toLowerCase();return q<U?-1:q>U?1:0}),!b&&A.remaining===0&&P.length===1&&w(P[0].value),d(A.remaining+P.length),r&&A.remaining+P.length===0&&P.push(r(b)),P}))}).catch(A=>{j.signal.aborted||c(A instanceof Error?A:new Error(t("Unknown error")))}).finally(()=>{j.signal.aborted||o(!1)}),!0)),()=>j.abort()},[w,n,b,t,r]),O=y.useCallback(j=>{j.preventDefault(),j.stopPropagation(),E()},[E]),T=y.useCallback(j=>{j.preventDefault(),j.stopPropagation(),d(0),h([]),p(!0),v.current=void 0,E()},[E]);y.useEffect(()=>{g&&(d(0),h([]),v.current=void 0,E())},[g,E]),y.useEffect(()=>{l&&p(!1)},[l]);const D=m.jsxs(C.Stack,{hasGutter:!0,children:[m.jsxs(C.Flex,{children:[m.jsx(C.FlexItem,{grow:{default:"grow"},children:m.jsxs(C.ActionList,{children:[!a&&m.jsx(C.ActionListItem,{children:m.jsx(C.Button,{id:"load-more",isLoading:i,onClick:O,isDisabled:i,children:t(i?"Loading...":"Load more")})}),e.onBrowse&&m.jsx(C.ActionListItem,{children:m.jsx(C.Button,{id:"browse",onClick:j=>{var A;j.preventDefault(),j.stopPropagation(),p(!1),(A=e.onBrowse)==null||A.call(e)},variant:"secondary",children:t("Browse")})})]})}),!a&&u!==0&&m.jsx(C.FlexItem,{children:t("Loaded {{count}} of {{total}}",{count:(f==null?void 0:f.length)??0,total:u})})]}),e.footer]});return m.jsx(ji,{id:e.id,icon:e.icon,placeholder:e.placeholder,options:f??[],value:e.value,onSelect:e.onSelect,isDisabled:e.isDisabled,footer:D,open:g,setOpen:p,searchValue:b,setSearchValue:S,isLoading:i,queryLabel:e.queryLabel,disableAutoSelect:!0,isRequired:e.isRequired,toggle:l?j=>m.jsx(_ce,{ref:j,id:e.id,variant:"secondary",isDanger:!0,icon:m.jsx(ve.SyncAltIcon,{}),onClick:T,children:typeof e.queryErrorText=="function"?e.queryErrorText(l):e.queryErrorText??t("Error loading options")}):void 0})}const _ce=De(C.Button)`
|
371
371
|
width: 100%;
|
372
372
|
text-align: left;
|
373
373
|
`;var xE=(e=>(e.LastHour="lastHour",e.Last24Hours="last24hours",e.LastWeek="last7days",e.LastMonth="last30days",e))(xE||{});function _E(e){const{filterValues:t,setFilterValues:n,placeholder:r,isRequired:i,defaultValue:o}=e,a=t&&t.length>0?t[0]:void 0,s=e.options.find(h=>h.value===a);i&&!s&&n(()=>[o??e.options[0].value]);function l(h){if(h===null)return;e.options.find(p=>p.value===h)&&n(()=>[h])}const[c,u]=y.useState(()=>{if(t&&t.length>1)return t[1]}),[d,f]=y.useState(()=>{if(t&&t.length>2)return t[2]});return y.useEffect(()=>{if(s&&s.isCustom){const h=[s.value];c&&(h.push(c),d&&h.push(d)),n(()=>h)}},[s,c,d,n]),m.jsxs(C.ToolbarItem,{children:[m.jsx(ji,{value:(s==null?void 0:s.value)??"",onSelect:l,options:e.options,placeholder:r,disableSortOptions:!0}),s&&s.isCustom&&m.jsx(SE,{to:d,setTo:f,from:c,setFrom:u})]})}function SE(e){const{to:t,setTo:n,from:r,setFrom:i}=e,{t:o}=Me(),a=(u,d)=>{i(d)},s=(u,d)=>{n(d)},l=r?new Date(r):void 0,c=u=>l?C.isValidDate(l)&&u>=l?"":o('The "to" date must be after the "from" date'):"";return m.jsxs(m.Fragment,{children:[m.jsx(C.DatePicker,{value:r,onChange:a,"aria-label":"Start date",placeholder:"YYYY-MM-DD","data-cy":"toolbar-date-picker"}),m.jsx("div",{style:{alignSelf:"baseline",padding:6},children:o("to")}),m.jsx(C.DatePicker,{value:t,onChange:s,isDisabled:!l||!C.isValidDate(l),rangeStart:l,validators:[c],"aria-label":"End date",placeholder:o("now"),invalidFormatText:o("Invalid date format")}),t!==void 0&&m.jsx(C.Button,{variant:"control",style:{alignSelf:"flex-start"},onClick:()=>n(void 0),children:m.jsx(ve.TimesCircleIcon,{})})]})}function wE(e){const{t}=Me(),[n,r]=y.useState("");let i=e.placeholder;if(!i)switch(e.comparison){case"contains":i=t("contains");break;case"startsWith":i=t("starts with");break;case"endsWith":i=t("ends with");break;case"equals":i=t("equals");break;case"iregex":i=t("iregex");break}return m.jsxs(C.InputGroup,{children:[m.jsx(C.InputGroupItem,{children:m.jsxs(C.TextInputGroup,{"data-cy":"text-input",style:{minWidth:220},children:[m.jsx(C.TextInputGroupMain,{id:e.id,value:n,onChange:(o,a)=>{r(typeof o=="string"?o:a)},onKeyUp:o=>{n&&o.key==="Enter"&&(e.addFilter(n),r(""))},placeholder:i}),n!==""&&m.jsx(C.TextInputGroupUtilities,{children:m.jsx(C.Button,{variant:"plain","aria-label":"clear filter",onClick:()=>r(""),style:{opacity:n?void 0:0},tabIndex:-1,children:m.jsx(ve.TimesIcon,{})})})]})}),m.jsx(C.InputGroupItem,{children:m.jsx(C.Button,{variant:n?"primary":"control","data-cy":"apply-filter","aria-label":"apply filter",onClick:()=>{e.addFilter(n),r("")},tabIndex:-1,isDisabled:!n,children:m.jsx(ve.ArrowRightIcon,{})})})]})}function Lp(e){const{t}=Me(),[n,r]=y.useState(e.value??"");let i=e.placeholder??"";if(!i)switch(e.comparison){case"contains":i=t("contains");break;case"startsWith":i=t("starts with");break;case"endsWith":i=t("ends with");break;case"equals":i=t("equals");break;case"iregex":i=t("iregex");break}const o=y.useCallback(Ip(a=>e.setValue(a),200),[]);return y.useEffect(()=>{e.hasKey||r("")},[e.hasKey]),m.jsx(C.InputGroup,{children:m.jsx(C.InputGroupItem,{children:m.jsxs(C.TextInputGroup,{"data-cy":"text-input",style:{minWidth:220},children:[m.jsx(C.TextInputGroupMain,{id:e.id,value:n,onChange:(a,s)=>{typeof a=="string"?(r(a),o(a)):(r(s),o(s))},placeholder:i}),n!==""&&m.jsx(C.TextInputGroupUtilities,{children:m.jsx(C.Button,{variant:"plain","aria-label":"clear filter",onClick:()=>{r(""),e.setValue("")},style:{opacity:n?void 0:0},tabIndex:-1,children:m.jsx(ve.TimesIcon,{})})})]})})})}function Fp(e){const[t,n]=y.useState(!1),r=a=>{n(!t)},{activeGroup:i,setActiveGroup:o}=y.useContext(CE);return y.useEffect(()=>{t&&o(e.id)},[t,o,e.id]),y.useEffect(()=>{i!==e.id&&n(!1)},[i,e.id]),m.jsx(C.ToolbarToggleGroup,{...e,isExpanded:t,onToggle:r})}const CE=y.createContext({activeGroup:"",setActiveGroup:()=>{}});var EE=(e=>(e[e.SingleText=0]="SingleText",e[e.MultiText=1]="MultiText",e[e.SingleSelect=2]="SingleSelect",e[e.MultiSelect=3]="MultiSelect",e[e.DateRange=4]="DateRange",e[e.AsyncSingleSelect=5]="AsyncSingleSelect",e[e.AsyncMultiSelect=6]="AsyncMultiSelect",e))(EE||{});function OE(e){var l;const{toolbarFilters:t,filterState:n,setFilterState:r}=e,[i,o]=y.useState(()=>t&&(t==null?void 0:t.length)>0?t[0].key:""),a=t==null?void 0:t.find(c=>c.key===i);if(!a)return m.jsx(m.Fragment,{});if(!t)return m.jsx(m.Fragment,{});if(t.length===0)return m.jsx(m.Fragment,{});let s=t.length===1;return t.length>=1&&t[0].type===2&&t[0].isPinned&&(n[t[0].key]===void 0||((l=n[t[0].key])==null?void 0:l.length)===0)&&(s=!1),m.jsx(m.Fragment,{children:t.length===1?m.jsxs(C.ToolbarItem,{children:[s&&m.jsx("div",{style:{marginTop:6,marginRight:6,whiteSpace:"nowrap"},children:t[0].label}),m.jsx(TE,{id:"filter-input",filter:a,filterState:n,setFilterState:r,"data-cy":a,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation})]}):m.jsxs(C.ToolbarItem,{children:[m.jsx(ji,{id:"filter",value:i,onSelect:o,icon:m.jsx(ve.FilterIcon,{}),options:t.map(c=>({label:c.label,value:c.key})),placeholder:"","data-cy":a,disableSortOptions:!0,isRequired:!0}),m.jsx(TE,{id:"filter-input",filter:a,filterState:n,setFilterState:r,"data-cy":a,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation})]})})}function kE(e){const{toolbarFilters:t,setFilterState:n,filterState:r}=e,[i]=Pt(),o=!cn("md");if(!t)return m.jsx(m.Fragment,{});if(t.length===0)return m.jsx(m.Fragment,{});const a=t.filter(l=>!l.isPinned),s=t.filter(l=>!!l.isPinned);return m.jsx(Fp,{toggleIcon:m.jsx(ve.FilterIcon,{}),breakpoint:"md",id:"filters",children:m.jsxs(C.ToolbarGroup,{variant:"button-group",style:{flexWrap:"wrap",gap:8},children:[o&&m.jsx(C.ToolbarItem,{variant:"label",children:i.filter}),m.jsx(OE,{toolbarFilters:a,setFilterState:n,filterState:r,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation}),s==null?void 0:s.map(l=>m.jsx(OE,{toolbarFilters:[l],setFilterState:n,filterState:r,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation},l.key)),t==null?void 0:t.map(l=>{const c=(r==null?void 0:r[l.key])||[];return l.isPinned&&l.type===2||l.isPinned&&l.type===4?null:m.jsx(C.ToolbarFilter,{categoryName:l.label,chips:[...c.map(u=>{var d,f;switch(l.type){case 2:case 3:case 4:return((f=(d=l.options)==null?void 0:d.find(h=>h.value===u))==null?void 0:f.label)??u;case 5:case 6:return{key:u,node:l.queryLabel(u)};default:return u}})],deleteChip:(u,d)=>{n==null||n(f=>{var p;const h={...f};switch(d=typeof d=="string"?d:d.key,l.type){case 2:case 3:case 4:d=((p=l.options.find(v=>v.label===d))==null?void 0:p.value)??d;break}let g=f[l.key];return g&&(g=g.filter(v=>v!==d),g.length===0?delete h[l.key]:h[l.key]=g),h})},deleteChipGroup:()=>{n==null||n(u=>{const d={...u};return delete d[l.key],d})},showToolbarItem:!1,children:m.jsx(m.Fragment,{})},l.label)})]})})}function TE(e){const{filter:t,filterState:n,setFilterState:r}=e,i=n==null?void 0:n[t.key],o=y.useCallback(l=>{r(c=>{const u={...c},d=u[t.key]??[];return u[t.key]=l(d),u})},[t.key,r]),a=y.useCallback(l=>{r(c=>{const u={...c},d=u[t.key]??[];return u[t.key]=[...d,l],u})},[t.key,r]);let s=!1;if(n)for(const l in n){if(l===t.key)continue;const c=n[l];if(c&&(c==null?void 0:c.length)>=2){s=!0;break}}switch(t.type){case 0:return m.jsx(Lp,{id:e.id??t.key,placeholder:t.placeholder,comparison:t.comparison,setValue:l=>o(()=>l?[l]:[]),value:i&&(i==null?void 0:i.length)>0?i[0]:"",hasKey:!!(n!=null&&n[t.key])},t.key);case 1:return s&&e.limitFiltersToOneOrOperation?m.jsx(Lp,{id:e.id??t.key,placeholder:t.placeholder,comparison:t.comparison,setValue:l=>o(()=>l?[l]:[]),value:i&&(i==null?void 0:i.length)>0?i[0]:"",hasKey:!!(n!=null&&n[t.key])},t.key):m.jsx(wE,{id:e.id??t.key,addFilter:a,placeholder:t.placeholder,comparison:t.comparison},t.key);case 2:return m.jsx(ji,{id:e.id??t.key,placeholder:t.placeholder,value:i&&(i==null?void 0:i.length)>0?i[0]:"",onSelect:l=>o(()=>[l]),options:t.options,isRequired:t.isRequired||!t.isPinned,disableSortOptions:t.disableSortOptions},t.key);case 5:return m.jsx(bE,{id:e.id??t.key,value:i&&(i==null?void 0:i.length)>0?i[0]:"",onSelect:l=>o(()=>[l]),placeholder:t.placeholder||"",queryOptions:t.queryOptions,queryErrorText:t.queryErrorText,queryPlaceholder:t.queryPlaceholder,isRequired:t.isRequired,footer:t.openBrowse?m.jsx(vE.Consumer,{children:l=>m.jsx(C.Button,{variant:"link",onClick:()=>{var c;l.setOpen(!1),(c=t.openBrowse)==null||c.call(t,u=>o(()=>[u]),i&&i.length>0?i[0]:void 0)},children:"Browse"})}):void 0,queryLabel:t.queryLabel,disableSortOptions:t.disableSortOptions},t.key);case 6:return s&&e.limitFiltersToOneOrOperation?m.jsx(bE,{id:e.id??t.key,value:i&&(i==null?void 0:i.length)>0?i[0]:"",onSelect:l=>o(()=>[l]),placeholder:t.placeholder||"",queryOptions:t.queryOptions,queryErrorText:t.queryErrorText,queryPlaceholder:t.queryPlaceholder,isRequired:t.isRequired,footer:t.openBrowse?m.jsx(C.Button,{variant:"link",onClick:()=>{var l;(l=t.openBrowse)==null||l.call(t,c=>o(()=>[c.length?c[0]:""]),i&&i.length>0?i:void 0)},children:"Browse"}):void 0,queryLabel:t.queryLabel,disableSortOptions:t.disableSortOptions},t.key):m.jsx(yce,{id:e.id??t.key,values:i,onSelect:o,placeholder:t.placeholder||"",queryOptions:t.queryOptions,queryErrorText:t.queryErrorText,queryPlaceholder:t.queryPlaceholder,footer:t.openBrowse?m.jsx(C.Button,{variant:"link",onClick:()=>{var l;(l=t.openBrowse)==null||l.call(t,c=>o(()=>c),i)},children:"Browse"}):void 0,variant:"count",disableClearSelection:!0,queryLabel:t.queryLabel,disableSortOptions:t.disableSortOptions},t.key);case 3:return s&&e.limitFiltersToOneOrOperation?m.jsx(ji,{id:e.id??t.key,placeholder:t.placeholder,value:i&&(i==null?void 0:i.length)>0?i[0]:"",onSelect:l=>o(()=>[l]),options:t.options,disableSortOptions:t.disableSortOptions},t.key):m.jsx(mE,{id:e.id??t.key,placeholder:t.placeholder,values:i,onSelect:o,options:t.options,variant:"count",disableClearSelection:!0,disableSortOptions:t.disableSortOptions},t.key);case 4:return m.jsx(_E,{id:e.id??t.key,label:t.label,placeholder:t.placeholder??"",filterValues:i,setFilterValues:o,options:t.options,isRequired:t.isRequired,defaultValue:t.defaultValue},t.key)}}function Sce(e){const{sort:t,setSort:n,sortDirection:r,setSortDirection:i,sortOptions:o}=e,a=o==null?void 0:o.find(u=>u.value===t),s=a?a.type:void 0,[l]=Pt(),c=y.useMemo(()=>{switch(s){case"text":switch(r){case"asc":return m.jsx(ve.SortAlphaUpIcon,{});case"desc":return m.jsx(ve.SortAlphaDownAltIcon,{})}break;case"number":switch(r){case"asc":return m.jsx(ve.SortNumericUpIcon,{});case"desc":return m.jsx(ve.SortNumericDownAltIcon,{})}break;default:switch(r){case"asc":return m.jsx(ve.SortAmountUpIcon,{});case"desc":return m.jsx(ve.SortAmountDownIcon,{})}break}return m.jsx(m.Fragment,{})},[r,s]);return!o||o.length<=0?m.jsx(m.Fragment,{}):m.jsx(Fp,{breakpoint:"2xl",toggleIcon:c,id:"sort",children:m.jsxs(C.ToolbarGroup,{variant:"filter-group",style:{flexWrap:"wrap",gap:8},children:[m.jsx(C.ToolbarItem,{variant:"label",children:l.sort}),m.jsx(C.ToolbarItem,{children:m.jsxs(C.Split,{children:[m.jsx(wce,{sortOptions:o,sort:t,setSort:n,setSortDirection:i}),m.jsx(C.Button,{variant:"control",icon:c,onClick:()=>{r==="asc"?i==null||i("desc"):i==null||i("asc")}})]})})]})})}function wce(e){const{sortOptions:t,sort:n,setSort:r,setSortDirection:i}=e,o=y.useCallback(a=>{if(a){const s=t.find(l=>l.value===a);s&&n!==a&&s.defaultDirection&&(i==null||i(s.defaultDirection)),r==null||r(a)}},[t,r,i,n]);return m.jsx(ji,{id:"toolbar-sort-select-expand",placeholder:"",value:n,onSelect:o,options:t.map(a=>({label:a.label,value:a.value})),isRequired:!0})}function Cce(e){return y.useMemo(()=>{const n=[];for(const r of e)if(r.sort){if(r.defaultSort){n.push({label:r.header,value:r.sort,type:"text",defaultDirection:r.defaultSortDirection});continue}switch(r.type){case"count":n.push({label:r.header,value:r.sort,type:"number",defaultDirection:r.defaultSortDirection});break;case"text":n.push({label:r.header,value:r.sort,type:"text",defaultDirection:r.defaultSortDirection});break;default:n.push({label:r.header,value:r.sort,defaultDirection:r.defaultSortDirection});break}}return n},[e])}function Ece(e){const{viewType:t,setViewType:n,openColumnModal:r}=e,[i]=Pt();let o=0;e.disableTableView||o++,e.disableCardView||o++,e.disableListView||o++;let a=m.jsx(ve.TableIcon,{});return t===tt.Cards&&(a=m.jsx(ve.ThLargeIcon,{})),t===tt.List&&(a=m.jsx(ve.ListIcon,{})),m.jsx(Fp,{breakpoint:"md",toggleIcon:a,id:"view",children:m.jsx(C.ToolbarGroup,{variant:"button-group",style:{justifyContent:"end",marginRight:0},children:m.jsx(C.ToolbarItem,{children:m.jsxs(C.Split,{hasGutter:!0,children:[r&&m.jsx(C.Tooltip,{content:i.manageColumns,children:m.jsx(C.Button,{variant:"plain",icon:m.jsx(ve.ColumnsIcon,{}),onClick:r})}),o>1&&m.jsx(C.ToggleGroup,{"data-cy":"table-view-toggle","aria-label":"table view toggle",children:[!e.disableTableView&&tt.Table,!e.disableListView&&tt.List,!e.disableCardView&&tt.Cards].filter(s=>s).map(s=>{switch(s){case tt.Cards:return m.jsx(C.ToggleGroupItem,{icon:m.jsx(ve.ThLargeIcon,{}),isSelected:t===tt.Cards,onClick:()=>n==null?void 0:n(tt.Cards),"aria-label":"card view","data-cy":"card-view"},"card-view");case tt.List:return m.jsx(C.ToggleGroupItem,{icon:m.jsx(ve.ListIcon,{}),isSelected:t===tt.List,onClick:()=>n==null?void 0:n(tt.List),"aria-label":"list view","data-cy":"list-view"},"list-view");case tt.Table:return m.jsx(C.ToggleGroupItem,{icon:m.jsx(ve.TableIcon,{}),isSelected:t===tt.Table,onClick:()=>n==null?void 0:n(tt.Table),"aria-label":"table view","data-cy":"table-view"},"table-view")}})})]})})})})}const Oce=De.div`
|
@@ -380,7 +380,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ru]+=1);const iu=De.button`
|
|
380
380
|
row-gap: 16px;
|
381
381
|
justify-content: end;
|
382
382
|
}
|
383
|
-
`;function DE(e){const{itemCount:t,page:n,perPage:r,setPage:i,setPerPage:o,toolbarFilters:a,selectedItems:s,filterState:l,setFilterState:c,openColumnModal:u,sort:d,setSort:f,sortDirection:h,setSortDirection:g,sortOptions:p,clearAllFilters:v,perPageOptions:b}=e,x=y.useCallback(()=>{v?v():c&&c({})},[c,v]),S=cn("md"),w=cn("xxl"),{viewType:_,setViewType:E}=e;let{toolbarActions:O}=e;O=O??[];const[T,D]=y.useState(""),j=y.useCallback((z,G)=>i?i(G):null,[i]),A=y.useCallback((z,G)=>o?o(G):null,[o]),M=a!==void 0,P=O!==void 0&&O.length>0,$=e.showSelect===!0||s!==void 0&&O&&O.find(z=>"selection"in z&&z.selection===Ge.Multiple);return $||M||P?t===void 0?m.jsx(C.Toolbar,{className:"page-table-toolbar border-bottom",style:{paddingBottom:S?void 0:8,paddingTop:S?void 0:8},children:m.jsx(AE,{children:m.jsx(C.ToolbarItem,{style:{width:"100%"},children:m.jsx(C.Skeleton,{height:"36px"})})})}):m.jsx(CE.Provider,{value:{activeGroup:T,setActiveGroup:D},children:m.jsx(C.Toolbar,{ouiaId:"page-toolbar","data-cy":"page-toolbar",clearAllFilters:x,className:"page-table-toolbar border-bottom",style:{paddingBottom:S?void 0:8,paddingTop:S?void 0:8},inset:{default:"insetMd",sm:"insetMd",md:"insetMd",lg:"insetMd",xl:"insetLg","2xl":"insetLg"},children:m.jsxs(AE,{style:{paddingRight:w?12:4},children:[$&&m.jsx(C.ToolbarGroup,{children:m.jsx(C.ToolbarItem,{variant:"bulk-select",children:m.jsx(xv,{...e})})}),l&&c&&m.jsx(kE,{toolbarFilters:a,filterState:l,setFilterState:c,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation}),e.toolbarContent,m.jsx(C.ToolbarGroup,{variant:"button-group",children:m.jsx(Wr,{dropDownAriaLabel:"toolbar actions",actions:O,selectedItems:s,wrapper:C.ToolbarItem})}),m.jsxs(Oce,{children:[m.jsx(Sce,{sort:d,setSort:f,sortDirection:h,setSortDirection:g,sortOptions:p}),_&&E&&m.jsx(Ece,{disableTableView:e.disableTableView,disableListView:e.disableListView,disableCardView:e.disableCardView,viewType:_,setViewType:E,openColumnModal:u}),!e.disablePagination&&!e.autoHidePagination&&w&&m.jsx(C.ToolbarItem,{visibility:{default:"hidden","2xl":"visible"},style:{marginLeft:24,alignSelf:"center"},children:m.jsx(C.Pagination,{variant:C.PaginationVariant.top,isCompact:!0,itemCount:t,perPage:r,page:n,onSetPage:j,onPerPageSelect:A,perPageOptions:b,style:{marginTop:-8,marginBottom:-8}})})]})]})})}):m.jsx(y.Fragment,{})}function kce(e){const{t}=Me(),n=t("Something went wrong"),r=t("Please refresh the page by using the button below."),i=t("Refresh"),{titleProp:o,message:a}=e;return m.jsxs(C.EmptyState,{isFullHeight:!0,children:[m.jsx(C.EmptyStateHeader,{titleText:m.jsx(m.Fragment,{children:o||n}),icon:m.jsx(C.EmptyStateIcon,{icon:ve.ExclamationCircleIcon,color:"var(--pf-v5-global--danger-color--100)"}),headingLevel:"h2"}),m.jsx(C.EmptyStateBody,{children:a}),m.jsxs(C.EmptyStateFooter,{children:[m.jsx(C.EmptyStateBody,{children:r}),m.jsx(C.Button,{variant:"primary",onClick:()=>window.location.reload(),children:i})]})]})}function Tce(e){const{title:t,description:n,icon:r,button:i,footNote:o,image:a,variant:s,style:l}=e;return m.jsxs(C.EmptyState,{variant:s||C.EmptyStateVariant.full,style:l,isFullHeight:!0,children:[r&&m.jsx(C.EmptyStateIcon,{icon:r}),m.jsx(C.EmptyStateHeader,{titleText:m.jsx(m.Fragment,{children:t}),headingLevel:"h4","data-cy":"empty-state-title"}),m.jsx(C.EmptyStateBody,{"data-cy":e.description,children:n}),m.jsxs(C.EmptyStateFooter,{children:[i&&m.jsx(C.EmptyStateActions,{children:i}),a&&m.jsxs(m.Fragment,{children:[" ",m.jsx("br",{})," ",m.jsx(C.EmptyStateBody,{children:a})]}),o&&m.jsx(C.EmptyStateBody,{children:o})]})]})}function Ace(e){const{button:t,description:n,title:r,variant:i,icon:o}=e;return m.jsx(Tce,{icon:o??(t?ve.PlusCircleIcon:ve.CubesIcon),title:r,description:n,button:t,variant:i})}const jE=y.createContext({dialogs:[],clearDialogs:()=>{},pushDialog:e=>{},popDialog:()=>{}});function PE(e){const[t,n]=y.useState([]),r=y.useCallback(()=>n(s=>s.length?[]:s),[n]),i=y.useCallback(s=>n(l=>[...l,s]),[n]),o=y.useCallback(()=>n(s=>s.slice(0,-1)),[n]),a=y.useMemo(()=>({dialogs:t,clearDialogs:r,pushDialog:i,popDialog:o}),[r,t,o,i]);return m.jsxs(jE.Provider,{value:a,children:[t.length>0&&t[t.length-1],e.children]})}function ME(){return y.useContext(jE)}function Pi(){const{dialogs:e,clearDialogs:t,pushDialog:n}=ME(),r=y.useMemo(()=>e.length>0?e[e.length-1]:void 0,[e]),i=y.useCallback(o=>{t(),o!==void 0&&n(o)},[t,n]);return y.useMemo(()=>[r,i],[r,i])}function Dce(e,t,n){const{selectedItems:r,selectItem:i,unselectItem:o,isSelected:a,selectItems:s,unselectAll:l,allSelected:c}=Np(e,t),{sorted:u,sort:d,setSort:f}=Bp(e),{filtered:h,setFilterFn:g}=Wp(u,t),{searched:p,search:v,setSearch:b,setSearchFn:x}=jce(h,t,n==null?void 0:n.search),{paged:S,page:w,setPage:_,perPage:E,setPerPage:O}=ec(p),T=y.useCallback(()=>s(S),[S,s]),D=y.useCallback(()=>s(p),[p,s]);return y.useMemo(()=>({allSelected:c,filtered:h,isSelected:a,page:w,paged:S,perPage:E,search:v,searched:p,selectAll:D,selectItem:i,selectPage:T,selectedItems:r,setFilterFn:g,setPage:_,setPerPage:O,setSearch:b,setSearchFn:x,setSort:f,sort:d,sorted:u,unselectAll:l,unselectItem:o}),[c,h,a,w,S,E,v,p,D,i,T,r,g,_,O,b,x,f,d,u,l,o])}function Np(e,t,n){const[r,i]=y.useState(()=>n?n.reduce((p,v)=>(p[`item-${t(v)}`]=v,p),{}):{});y.useEffect(()=>{i(p=>{let v=!1;return e.forEach(b=>{const x=`item-${t(b)}`;p[x]&&p[x]!==b&&(v=!0,p[x]=b)}),v?{...p}:p})},[e,t]);const o=y.useCallback(p=>{i(v=>{const b=`item-${t(p)}`;return v[b]!==p&&(v={...v},v[b]=p),v})},[t]),a=y.useCallback(p=>{i(v=>{const b=`item-${t(p)}`;return v[b]&&(v={...v},delete v[b]),v})},[t]),s=y.useCallback(p=>{const v=`item-${t(p)}`;return r[v]!==void 0},[t,r]),l=y.useCallback(p=>{i(v=>{v={...v};for(const b of p){const x=`item-${t(b)}`;v[x]=b}return v})},[t]),c=y.useRef(e);y.useEffect(()=>{c.current=e},[e]);const u=y.useCallback(()=>l(c.current),[l]),d=y.useCallback(p=>{for(const v of p)a(v)},[a]),f=y.useCallback(()=>{i(p=>Object.keys(p).length>0?{}:p)},[]),h=y.useMemo(()=>Object.values(r),[r]),g=y.useMemo(()=>h.length===e.length,[e.length,h.length]);return y.useMemo(()=>({selectedItems:h,selectItem:o,unselectItem:a,isSelected:s,selectItems:l,selectAll:u,unselectAll:f,allSelected:g,keyFn:t,unselectItems:d}),[g,s,t,u,o,l,h,f,a,d])}function $E(e,t){const[n,r]=y.useState({});y.useEffect(()=>{r(h=>{let g=!1;const p=e?e.reduce((x,S)=>{const w=t(S);return x[w]=S,h[w]&&h[w]!==S&&(g=!0,h[w]=S),x},{}):{},v={};for(const x in h)p[x]||(v[x]=!0);const b=Object.keys(v);if(b.length){g=!0;for(const x of b)delete h[x]}return g?{...h}:h})},[e,t]);const i=y.useCallback(h=>{r(g=>{const p=t(h);return g[p]!==h&&(g={...g},g[p]=h),g})},[t]),o=y.useCallback(h=>{r(g=>{const p=t(h);return g[p]&&(g={...g},delete g[p]),g})},[t]),a=y.useCallback(h=>{for(const g of h)o(g)},[o]),s=y.useCallback(h=>{const g=t(h);return n[g]!==void 0},[t,n]),l=y.useCallback(h=>{r(g=>{g={...g};for(const p of h){const v=t(p);g[v]=p}return g})},[t]),c=y.useCallback(()=>{l(e??[])},[e,l]),u=y.useCallback(()=>{r(h=>Object.keys(h).length>0?{}:h)},[]),d=y.useMemo(()=>Object.values(n),[n]),f=y.useMemo(()=>d.length===(e==null?void 0:e.length),[e,d.length]);return y.useMemo(()=>({selectedItems:d,selectItem:i,unselectItem:o,isSelected:s,selectItems:l,selectAll:c,unselectAll:u,allSelected:f,keyFn:t,unselectItems:a}),[f,s,t,c,i,l,d,u,o,a])}function Bp(e){const[t,n]=y.useState(),{direction:r,sortFn:i}=t??{},o=y.useMemo(()=>e?i?r==="asc"?[...e.sort(i)]:[...e.sort(i).reverse()]:e:[],[r,e,i]);return y.useMemo(()=>({sorted:o,sort:t,setSort:n}),[t,o])}function Wp(e,t){const n=y.useRef({map:{}}),[r,i]=y.useState(),o=y.useCallback(c=>i(()=>c),[]),[a,s]=y.useState([]);y.useEffect(()=>{n.current.map={}},[r]);const l=y.useCallback(c=>{const u=t(c);let d=n.current.map[u];return d?d.item!==c&&(d.item=c,d.passes=r?r(c):!0):(d={item:c,passes:r?r(c):!0},n.current.map[u]=d),d.passes},[r,t]);return y.useEffect(()=>{s(r?e.filter(l):e)},[e,r,l]),y.useMemo(function(){return{filtered:a,setFilterFn:o}},[a,o])}function jce(e,t,n){const r=y.useRef({map:{}}),[i,o]=y.useState(),a=y.useCallback(h=>o(()=>h),[]),[s,l]=y.useState([]),[c,u]=y.useState(n??""),d=y.useCallback(Ip(h=>u(h),200),[]);y.useEffect(()=>{r.current.map={}},[c,i]);const f=y.useCallback(h=>{const g=t(h);let p=r.current.map[g];return p?p.item!==h&&(p.item=h,p.score=i?i(h,c):0):(p={item:h,score:i?i(h,c):0},r.current.map[g]=p),p},[t,i,c]);return y.useEffect(()=>{l(i&&c?e.map(f).filter(h=>h.score<.5).sort((h,g)=>h.score-g.score).map(h=>h.item):e)},[c,e,i,f]),y.useMemo(function(){return{searched:s,search:c,setSearch:d,setSearchFn:a}},[s,c,d,a])}function ec(e){const[t,n]=y.useState([]),[r,i]=y.useState(1),[o,a]=y.useState(10);return y.useEffect(()=>{n(s=>{const l=e.slice((r-1)*o,r*o);if(s.length!==l.length)return l;let c=0;for(const u of l)if(s[c++]!==u)return l;return s})},[r,o,e]),y.useEffect(()=>{r>Math.ceil(e.length/o)&&i(1)},[r,o,e.length]),y.useMemo(()=>({paged:t,page:r,setPage:i,perPage:o,setPerPage:a}),[r,t,o])}const zp={button:"pf-v5-c-button",check:"pf-v5-c-check",checkInput:"pf-v5-c-check__input",dirRtl:"pf-v5-m-dir-rtl",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",fixed:"pf-m-fixed",stickyHeader:"pf-m-sticky-header",nestedColumnHeader:"pf-m-nested-column-header",borderRow:"pf-m-border-row",striped:"pf-m-striped",expandable:"pf-m-expandable",stripedEven:"pf-m-striped-even",ghostRow:"pf-m-ghost-row",center:"pf-m-center",help:"pf-m-help",favorite:"pf-m-favorite",borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",expanded:"pf-m-expanded",truncate:"pf-m-truncate",wrap:"pf-m-wrap",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",breakWord:"pf-m-break-word",noBorderRows:"pf-m-no-border-rows",clickable:"pf-m-clickable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",standalone:"pf-m-standalone",favorited:"pf-m-favorited",noPadding:"pf-m-no-padding",compact:"pf-m-compact",width_10:"pf-m-width-10",width_15:"pf-m-width-15",width_20:"pf-m-width-20",width_25:"pf-m-width-25",width_30:"pf-m-width-30",width_35:"pf-m-width-35",width_40:"pf-m-width-40",width_45:"pf-m-width-45",width_50:"pf-m-width-50",width_60:"pf-m-width-60",width_70:"pf-m-width-70",width_80:"pf-m-width-80",width_90:"pf-m-width-90",width_100:"pf-m-width-100"},table:"pf-v5-c-table",tableAction:"pf-v5-c-table__action",tableButton:"pf-v5-c-table__button",tableButtonContent:"pf-v5-c-table__button-content",tableCaption:"pf-v5-c-table__caption",tableCheck:"pf-v5-c-table__check",tableColumnHelp:"pf-v5-c-table__column-help",tableColumnHelpAction:"pf-v5-c-table__column-help-action",tableCompoundExpansionToggle:"pf-v5-c-table__compound-expansion-toggle",tableControlRow:"pf-v5-c-table__control-row",tableDraggable:"pf-v5-c-table__draggable",tableExpandableRow:"pf-v5-c-table__expandable-row",tableExpandableRowContent:"pf-v5-c-table__expandable-row-content",tableFavorite:"pf-v5-c-table__favorite",tableIcon:"pf-v5-c-table__icon",tableIconInline:"pf-v5-c-table__icon-inline",tableInlineEditAction:"pf-v5-c-table__inline-edit-action",tableSort:"pf-v5-c-table__sort",tableSortIndicator:"pf-v5-c-table__sort-indicator",tableSubhead:"pf-v5-c-table__subhead",tableTbody:"pf-v5-c-table__tbody",tableTd:"pf-v5-c-table__td",tableText:"pf-v5-c-table__text",tableTh:"pf-v5-c-table__th",tableThead:"pf-v5-c-table__thead",tableToggle:"pf-v5-c-table__toggle",tableToggleIcon:"pf-v5-c-table__toggle-icon",tableTr:"pf-v5-c-table__tr",themeDark:"pf-v5-theme-dark"};function Pce(e){const{t}=Me(),{columns:n,keyFn:r,items:i,setItems:o,isSelected:a,selectItem:s,unselectItem:l,allSelected:c,selectAll:u,unselectAll:d,hideColumnHeaders:f,isSelectableWithCheckbox:h}=e,[g,p]=y.useState(null),[v,b]=y.useState(null),[x,S]=y.useState(!1),w=y.useRef(null),_=$=>{if(w.current){const L=w.current.getBoundingClientRect();return $.clientX>L.x&&$.clientX<L.x+L.width&&$.clientY>L.y&&$.clientY<L.y+L.height}return!1},E=$=>{_($)||O()},O=()=>{w.current&&Array.from(w.current.children).forEach($=>{$.classList.remove(zp.modifiers.ghostRow),$.setAttribute("aria-pressed","false")}),b(null),p(null),S(!1)},T=$=>{$.preventDefault();const L=$.target.closest("tr");if(!L||!(w.current&&w.current.contains(L))||L.id===v)return null;{const z=L.id,G=Array.from(w.current.children).findIndex(U=>U.id===z);if(G!==g&&v){const U=D([...i],v,G);o(U)}}return null},D=($,L,z)=>{const G=$.findIndex(V=>r(V)===L);if(G===z)return $;const U=$.splice(G,1);return $.splice(z,0,U[0]),$},j=$=>{_($)||p(null)},A=$=>{const L=$.target;L.classList.remove(zp.modifiers.ghostRow),L.setAttribute("aria-pressed","false"),b(null),p(null),S(!1)},M=$=>{if(w.current){$.dataTransfer.effectAllowed="move";const L=$.currentTarget.id,z=Array.from(w.current.children).findIndex(G=>G.id===$.currentTarget.id);$.currentTarget.setAttribute("aria-pressed","true"),b(L),p(z)}},P=y.useCallback($=>{const L=i.findIndex(G=>r(G)===r($)),z=[...i];z[L]=$,o(z)},[i,o,r]);return m.jsxs(Le.Table,{"aria-label":t("Table with draggable rows"),className:x?zp.modifiers.dragOver:"",variant:"compact",gridBreakPoint:"",children:[!f&&m.jsx(Le.Thead,{children:m.jsxs(Le.Tr,{children:[m.jsx(Le.Th,{}),h&&m.jsx(Le.Th,{select:{onSelect:($,L)=>{L?u():d()},isSelected:c}}),n.map(($,L)=>m.jsx(Le.Th,{children:$.header},L))]})}),m.jsx(Le.Tbody,{ref:w,onDragOver:T,onDragLeave:j,children:i.map(($,L)=>{const z=r($);return m.jsxs(Le.Tr,{id:z.toString(),draggable:!0,onDrop:E,onDragEnd:A,onDragStart:M,children:[m.jsx(Le.Td,{draggableRow:{id:`draggable-row-${z.toString()}`}}),h&&m.jsx(Le.Td,{select:{rowIndex:L,variant:"checkbox",onSelect:(G,U)=>{U?s($):l($)},isSelected:a($)}}),n.map(G=>m.jsx(Le.Td,{children:G.cell($,P)},G.header))]},z)})})]})}function Mce(e){const[t,n]=Pi(),[r]=y.useState(()=>e.keyFn),[i]=y.useState(()=>e.saveFn),[o]=y.useState(()=>e.loadFn),[a,s]=y.useState(()=>{try{const f=localStorage.getItem(e.id);if(typeof f=="string"){const h=JSON.parse(f);if(Array.isArray(h)&&h.every(g=>typeof g=="object")&&h.every(g=>"key"in g&&"enabled"in g))return h}}catch{}}),l=y.useMemo(()=>a?e.items.map(f=>{if(o){const h=a.find(g=>g.key===r(f));h&&h.state&&o(f,h.state)}return f}).sort((f,h)=>{const g=a.findIndex(v=>v.key===r(f)),p=a.findIndex(v=>v.key===r(h));return g===-1&&p===-1?0:g===-1?1:p===-1?-1:g-p}):e.items,[a,r,o,e.items]),c=y.useMemo(()=>a?l.filter(f=>{const h=a.find(g=>g.key===r(f));return h?h.enabled:!0}):l,[l,a,r]),u=y.useCallback((f,h)=>{const g=f.map(p=>({key:r(p),enabled:h.includes(p),state:i?i(p):void 0}));s(g),localStorage.setItem(e.id,JSON.stringify(g)),e.onSubmit&&e.onSubmit(f)},[r,e,i]);return{openManageItems:()=>n(m.jsx($ce,{...e,keyFn:r,items:l,defaultSelectedItems:c,onApplyChanges:u})),managedItems:c}}function $ce(e){const{t}=Me(),{title:n,description:r,columns:i,onApplyChanges:o}=e,[a]=y.useState(()=>e.keyFn),[s,l]=Pi(),c=()=>l(void 0),[u,d]=y.useState(()=>e.items),{selectedItems:f,isSelected:h,selectItem:g,unselectItem:p,allSelected:v,selectAll:b,unselectAll:x}=Np(u,a,e.defaultSelectedItems),S=()=>{o(u,f),l(void 0)};return m.jsxs(C.Modal,{title:n,"aria-label":n,ouiaId:n,description:m.jsx("div",{style:{marginBottom:16},children:r}),variant:e.variant??C.ModalVariant.medium,isOpen:!0,onClose:c,actions:[m.jsx(C.Button,{variant:"primary",onClick:S,children:t`Apply`},"apply"),m.jsx(C.Button,{variant:"link",onClick:c,children:t`Cancel`},"cancel")],hasNoBodyWrapper:!0,children:[m.jsx(C.Divider,{}),m.jsx(C.ModalBoxBody,{style:{padding:0},children:m.jsx(Pce,{keyFn:a,items:u,setItems:d,columns:i,isSelected:h,selectItem:g,unselectItem:p,allSelected:v,selectAll:b,unselectAll:x,hideColumnHeaders:e.hideColumnHeaders,isSelectableWithCheckbox:e.hideSelection!==!0})}),m.jsx(C.Divider,{})]})}function Ice(e,t,n,r,i){const{t:o}=Me(),a=y.useMemo(()=>{const d=[{header:o("Name"),cell:f=>f.header}];return n||d.push({header:o("Table"),cell:(f,h)=>m.jsx(ji,{value:f.table??"",onSelect:g=>{switch(g){case"":h({...f,table:void 0});break;case yo.description:case yo.expanded:case yo.hidden:h({...f,table:g});break}},placeholder:o("Column"),options:[{value:"",label:o("Column"),description:o("Show the column in the table.")},{value:yo.description,label:o("Description"),description:o("Show the column when the item is expanded as a full width description.")},{value:yo.expanded,label:o("Expanded"),description:o("Show the column when the item is expanded as a detail.")},{value:yo.hidden,label:o("Hidden"),description:o("Hide the column.")}],isRequired:!0})}),r||d.push({header:o("List"),cell:(f,h)=>m.jsx(ji,{value:f.list??"",onSelect:g=>{switch(g){case"":h({...f,list:void 0});break;case"name":case"subtitle":case"description":case"primary":case"secondary":case"hidden":h({...f,list:g});break}},options:[{value:"name",label:o("Name"),description:o("Show the column as the name of the list item.")},{value:"subtitle",label:o("Subtitle"),description:o("Show the column as the subtitle under the name on the list.")},{value:"description",label:o("Description"),description:o("Show the column as the list item description.")},{value:"primary",label:o("Left side"),description:o("Show the column on the left side of the list.")},{value:"secondary",label:o("Right side"),description:o("Show the column on the right side of the list.")},{value:"hidden",label:o("Hidden"),description:o("Hide the column on the list.")}],placeholder:o("Left side"),isRequired:!0})}),i||d.push({header:o("Card"),cell:(f,h)=>m.jsx(ji,{value:f.card??"",onSelect:g=>{switch(g){case"":h({...f,card:void 0});break;case"name":case"subtitle":case"description":case"hidden":h({...f,card:g});break}},placeholder:o("Detail"),options:[{value:"name",label:o("Name"),description:o("Show the column as the name on the card.")},{value:"subtitle",label:o("Subtitle"),description:o("Show the column as the subtitle under the name on the card.")},{value:"description",label:o("Description"),description:o("Show the column as the card description.")},{value:"",label:o("Detail"),description:o("Show the column one of the details on the card.")},{value:"hidden",label:o("Hidden"),description:o("Hide the column on the card.")}],isRequired:!0})}),d},[i,r,n,o]),s=y.useCallback((d,f)=>{typeof f=="object"&&f!==null&&("table"in f&&typeof f.table=="string"?d.table=f.table:d.table=void 0,"list"in f&&typeof f.list=="string"?d.list=f.list:d.list=void 0,"card"in f&&typeof f.card=="string"?d.card=f.card:d.card=void 0)},[]),l=y.useCallback(d=>{const{table:f,list:h,card:g}=d;return{table:f,list:h,card:g}},[]),{openManageItems:c,managedItems:u}=Mce({id:e,title:o("Manage Columns"),description:o("Manage the order, placement, and format of columns."),items:t,keyFn:d=>d.id??d.header,columns:a,loadFn:s,saveFn:l,hideSelection:!0});return{openColumnManagement:c,managedColumns:u}}function Lce(){return m.jsx(Le.Table,{gridBreakPoint:"",className:"page-table",children:m.jsx(Le.Tbody,{children:new Array(10).fill(0).map((e,t)=>m.jsx(Le.Tr,{children:m.jsx(Le.Td,{children:m.jsx(C.Skeleton,{height:"27px"})})},t))})})}function Fce(e){const{setPage:t,setPerPage:n}=e,r=y.useCallback((a,s)=>t(s),[t]),i=y.useCallback((a,s)=>n(s),[n]),o=!cn("md");return m.jsx(C.Pagination,{"data-cy":"pagination",variant:C.PaginationVariant.bottom,itemCount:e.itemCount,page:e.page,perPage:e.perPage,onSetPage:r,onPerPageSelect:i,perPageOptions:e.perPageOptions,style:{...e.style,boxShadow:"none",zIndex:400,paddingTop:o?4:6,paddingBottom:o?4:6},className:"border-top bg-lighten"})}function Nce(e){const t=e.size??350,n=y.useRef(null),[r,i]=y.useState("1fr"),o=y.useCallback(s=>{let l=Math.min(e.maxColumns??12,Math.max(Math.floor(s/t),1));l<1&&(l=1),i(()=>new Array(l).fill("1fr").join(" "))},[e.maxColumns,t]);return ka(n,s=>o(s.contentRect.width)),y.useLayoutEffect(()=>{var s;o(((s=n.current)==null?void 0:s.clientWidth)??0)},[o]),m.jsx("div",{ref:n,style:{display:"grid",gridAutoRows:"1fr",gridTemplateColumns:r,gap:16},children:e.children})}const IE=De.small`
|
383
|
+
`;function DE(e){const{itemCount:t,page:n,perPage:r,setPage:i,setPerPage:o,toolbarFilters:a,selectedItems:s,filterState:l,setFilterState:c,openColumnModal:u,sort:d,setSort:f,sortDirection:h,setSortDirection:g,sortOptions:p,clearAllFilters:v,perPageOptions:b}=e,x=y.useCallback(()=>{v?v():c&&c({})},[c,v]),S=cn("md"),w=cn("xxl"),{viewType:_,setViewType:E}=e;let{toolbarActions:O}=e;O=O??[];const[T,D]=y.useState(""),j=y.useCallback((H,q)=>i?i(q):null,[i]),A=y.useCallback((H,q)=>o?o(q):null,[o]),M=a!==void 0,P=O!==void 0&&O.length>0,$=e.showSelect===!0||s!==void 0&&O&&O.find(H=>"selection"in H&&H.selection===Ge.Multiple);return $||M||P?t===void 0?m.jsx(C.Toolbar,{className:"page-table-toolbar border-bottom",style:{paddingBottom:S?void 0:8,paddingTop:S?void 0:8},children:m.jsx(AE,{children:m.jsx(C.ToolbarItem,{style:{width:"100%"},children:m.jsx(C.Skeleton,{height:"36px"})})})}):m.jsx(CE.Provider,{value:{activeGroup:T,setActiveGroup:D},children:m.jsx(C.Toolbar,{ouiaId:"page-toolbar","data-cy":"page-toolbar",clearAllFilters:x,className:"page-table-toolbar border-bottom",style:{paddingBottom:S?void 0:8,paddingTop:S?void 0:8},inset:{default:"insetMd",sm:"insetMd",md:"insetMd",lg:"insetMd",xl:"insetLg","2xl":"insetLg"},children:m.jsxs(AE,{style:{paddingRight:w?12:4},children:[$&&m.jsx(C.ToolbarGroup,{children:m.jsx(C.ToolbarItem,{variant:"bulk-select",children:m.jsx(xv,{...e})})}),l&&c&&m.jsx(kE,{toolbarFilters:a,filterState:l,setFilterState:c,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation}),e.toolbarContent,m.jsx(C.ToolbarGroup,{variant:"button-group",children:m.jsx(Wr,{dropDownAriaLabel:"toolbar actions",actions:O,selectedItems:s,wrapper:C.ToolbarItem})}),m.jsxs(Oce,{children:[m.jsx(Sce,{sort:d,setSort:f,sortDirection:h,setSortDirection:g,sortOptions:p}),_&&E&&m.jsx(Ece,{disableTableView:e.disableTableView,disableListView:e.disableListView,disableCardView:e.disableCardView,viewType:_,setViewType:E,openColumnModal:u}),!e.disablePagination&&!e.autoHidePagination&&w&&m.jsx(C.ToolbarItem,{visibility:{default:"hidden","2xl":"visible"},style:{marginLeft:24,alignSelf:"center"},children:m.jsx(C.Pagination,{variant:C.PaginationVariant.top,isCompact:!0,itemCount:t,perPage:r,page:n,onSetPage:j,onPerPageSelect:A,perPageOptions:b,style:{marginTop:-8,marginBottom:-8}})})]})]})})}):m.jsx(y.Fragment,{})}function kce(e){const{t}=Me(),n=t("Something went wrong"),r=t("Please refresh the page by using the button below."),i=t("Refresh"),{titleProp:o,message:a}=e;return m.jsxs(C.EmptyState,{isFullHeight:!0,children:[m.jsx(C.EmptyStateHeader,{titleText:m.jsx(m.Fragment,{children:o||n}),icon:m.jsx(C.EmptyStateIcon,{icon:ve.ExclamationCircleIcon,color:"var(--pf-v5-global--danger-color--100)"}),headingLevel:"h2"}),m.jsx(C.EmptyStateBody,{children:a}),m.jsxs(C.EmptyStateFooter,{children:[m.jsx(C.EmptyStateBody,{children:r}),m.jsx(C.Button,{variant:"primary",onClick:()=>window.location.reload(),children:i})]})]})}function Tce(e){const{title:t,description:n,icon:r,button:i,footNote:o,image:a,variant:s,style:l}=e;return m.jsxs(C.EmptyState,{variant:s||C.EmptyStateVariant.full,style:l,isFullHeight:!0,children:[r&&m.jsx(C.EmptyStateIcon,{icon:r}),m.jsx(C.EmptyStateHeader,{titleText:m.jsx(m.Fragment,{children:t}),headingLevel:"h4","data-cy":"empty-state-title"}),m.jsx(C.EmptyStateBody,{"data-cy":e.description,children:n}),m.jsxs(C.EmptyStateFooter,{children:[i&&m.jsx(C.EmptyStateActions,{children:i}),a&&m.jsxs(m.Fragment,{children:[" ",m.jsx("br",{})," ",m.jsx(C.EmptyStateBody,{children:a})]}),o&&m.jsx(C.EmptyStateBody,{children:o})]})]})}function Ace(e){const{button:t,description:n,title:r,variant:i,icon:o}=e;return m.jsx(Tce,{icon:o??(t?ve.PlusCircleIcon:ve.CubesIcon),title:r,description:n,button:t,variant:i})}const jE=y.createContext({dialogs:[],clearDialogs:()=>{},pushDialog:e=>{},popDialog:()=>{}});function PE(e){const[t,n]=y.useState([]),r=y.useCallback(()=>n(s=>s.length?[]:s),[n]),i=y.useCallback(s=>n(l=>[...l,s]),[n]),o=y.useCallback(()=>n(s=>s.slice(0,-1)),[n]),a=y.useMemo(()=>({dialogs:t,clearDialogs:r,pushDialog:i,popDialog:o}),[r,t,o,i]);return m.jsxs(jE.Provider,{value:a,children:[t.length>0&&t[t.length-1],e.children]})}function ME(){return y.useContext(jE)}function Pi(){const{dialogs:e,clearDialogs:t,pushDialog:n}=ME(),r=y.useMemo(()=>e.length>0?e[e.length-1]:void 0,[e]),i=y.useCallback(o=>{t(),o!==void 0&&n(o)},[t,n]);return y.useMemo(()=>[r,i],[r,i])}function Dce(e,t,n){const{selectedItems:r,selectItem:i,unselectItem:o,isSelected:a,selectItems:s,unselectAll:l,allSelected:c}=Np(e,t),{sorted:u,sort:d,setSort:f}=Bp(e),{filtered:h,setFilterFn:g}=Wp(u,t),{searched:p,search:v,setSearch:b,setSearchFn:x}=jce(h,t,n==null?void 0:n.search),{paged:S,page:w,setPage:_,perPage:E,setPerPage:O}=ec(p),T=y.useCallback(()=>s(S),[S,s]),D=y.useCallback(()=>s(p),[p,s]);return y.useMemo(()=>({allSelected:c,filtered:h,isSelected:a,page:w,paged:S,perPage:E,search:v,searched:p,selectAll:D,selectItem:i,selectPage:T,selectedItems:r,setFilterFn:g,setPage:_,setPerPage:O,setSearch:b,setSearchFn:x,setSort:f,sort:d,sorted:u,unselectAll:l,unselectItem:o}),[c,h,a,w,S,E,v,p,D,i,T,r,g,_,O,b,x,f,d,u,l,o])}function Np(e,t,n){const[r,i]=y.useState(()=>n?n.reduce((p,v)=>(p[`item-${t(v)}`]=v,p),{}):{});y.useEffect(()=>{i(p=>{let v=!1;return e.forEach(b=>{const x=`item-${t(b)}`;p[x]&&p[x]!==b&&(v=!0,p[x]=b)}),v?{...p}:p})},[e,t]);const o=y.useCallback(p=>{i(v=>{const b=`item-${t(p)}`;return v[b]!==p&&(v={...v},v[b]=p),v})},[t]),a=y.useCallback(p=>{i(v=>{const b=`item-${t(p)}`;return v[b]&&(v={...v},delete v[b]),v})},[t]),s=y.useCallback(p=>{const v=`item-${t(p)}`;return r[v]!==void 0},[t,r]),l=y.useCallback(p=>{i(v=>{v={...v};for(const b of p){const x=`item-${t(b)}`;v[x]=b}return v})},[t]),c=y.useRef(e);y.useEffect(()=>{c.current=e},[e]);const u=y.useCallback(()=>l(c.current),[l]),d=y.useCallback(p=>{for(const v of p)a(v)},[a]),f=y.useCallback(()=>{i(p=>Object.keys(p).length>0?{}:p)},[]),h=y.useMemo(()=>Object.values(r),[r]),g=y.useMemo(()=>h.length===e.length,[e.length,h.length]);return y.useMemo(()=>({selectedItems:h,selectItem:o,unselectItem:a,isSelected:s,selectItems:l,selectAll:u,unselectAll:f,allSelected:g,keyFn:t,unselectItems:d}),[g,s,t,u,o,l,h,f,a,d])}function $E(e,t){const[n,r]=y.useState({});y.useEffect(()=>{r(h=>{let g=!1;const p=e?e.reduce((x,S)=>{const w=t(S);return x[w]=S,h[w]&&h[w]!==S&&(g=!0,h[w]=S),x},{}):{},v={};for(const x in h)p[x]||(v[x]=!0);const b=Object.keys(v);if(b.length){g=!0;for(const x of b)delete h[x]}return g?{...h}:h})},[e,t]);const i=y.useCallback(h=>{r(g=>{const p=t(h);return g[p]!==h&&(g={...g},g[p]=h),g})},[t]),o=y.useCallback(h=>{r(g=>{const p=t(h);return g[p]&&(g={...g},delete g[p]),g})},[t]),a=y.useCallback(h=>{for(const g of h)o(g)},[o]),s=y.useCallback(h=>{const g=t(h);return n[g]!==void 0},[t,n]),l=y.useCallback(h=>{r(g=>{g={...g};for(const p of h){const v=t(p);g[v]=p}return g})},[t]),c=y.useCallback(()=>{l(e??[])},[e,l]),u=y.useCallback(()=>{r(h=>Object.keys(h).length>0?{}:h)},[]),d=y.useMemo(()=>Object.values(n),[n]),f=y.useMemo(()=>d.length===(e==null?void 0:e.length),[e,d.length]);return y.useMemo(()=>({selectedItems:d,selectItem:i,unselectItem:o,isSelected:s,selectItems:l,selectAll:c,unselectAll:u,allSelected:f,keyFn:t,unselectItems:a}),[f,s,t,c,i,l,d,u,o,a])}function Bp(e){const[t,n]=y.useState(),{direction:r,sortFn:i}=t??{},o=y.useMemo(()=>e?i?r==="asc"?[...e.sort(i)]:[...e.sort(i).reverse()]:e:[],[r,e,i]);return y.useMemo(()=>({sorted:o,sort:t,setSort:n}),[t,o])}function Wp(e,t){const n=y.useRef({map:{}}),[r,i]=y.useState(),o=y.useCallback(c=>i(()=>c),[]),[a,s]=y.useState([]);y.useEffect(()=>{n.current.map={}},[r]);const l=y.useCallback(c=>{const u=t(c);let d=n.current.map[u];return d?d.item!==c&&(d.item=c,d.passes=r?r(c):!0):(d={item:c,passes:r?r(c):!0},n.current.map[u]=d),d.passes},[r,t]);return y.useEffect(()=>{s(r?e.filter(l):e)},[e,r,l]),y.useMemo(function(){return{filtered:a,setFilterFn:o}},[a,o])}function jce(e,t,n){const r=y.useRef({map:{}}),[i,o]=y.useState(),a=y.useCallback(h=>o(()=>h),[]),[s,l]=y.useState([]),[c,u]=y.useState(n??""),d=y.useCallback(Ip(h=>u(h),200),[]);y.useEffect(()=>{r.current.map={}},[c,i]);const f=y.useCallback(h=>{const g=t(h);let p=r.current.map[g];return p?p.item!==h&&(p.item=h,p.score=i?i(h,c):0):(p={item:h,score:i?i(h,c):0},r.current.map[g]=p),p},[t,i,c]);return y.useEffect(()=>{l(i&&c?e.map(f).filter(h=>h.score<.5).sort((h,g)=>h.score-g.score).map(h=>h.item):e)},[c,e,i,f]),y.useMemo(function(){return{searched:s,search:c,setSearch:d,setSearchFn:a}},[s,c,d,a])}function ec(e){const[t,n]=y.useState([]),[r,i]=y.useState(1),[o,a]=y.useState(10);return y.useEffect(()=>{n(s=>{const l=e.slice((r-1)*o,r*o);if(s.length!==l.length)return l;let c=0;for(const u of l)if(s[c++]!==u)return l;return s})},[r,o,e]),y.useEffect(()=>{r>Math.ceil(e.length/o)&&i(1)},[r,o,e.length]),y.useMemo(()=>({paged:t,page:r,setPage:i,perPage:o,setPerPage:a}),[r,t,o])}const zp={button:"pf-v5-c-button",check:"pf-v5-c-check",checkInput:"pf-v5-c-check__input",dirRtl:"pf-v5-m-dir-rtl",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",fixed:"pf-m-fixed",stickyHeader:"pf-m-sticky-header",nestedColumnHeader:"pf-m-nested-column-header",borderRow:"pf-m-border-row",striped:"pf-m-striped",expandable:"pf-m-expandable",stripedEven:"pf-m-striped-even",ghostRow:"pf-m-ghost-row",center:"pf-m-center",help:"pf-m-help",favorite:"pf-m-favorite",borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",expanded:"pf-m-expanded",truncate:"pf-m-truncate",wrap:"pf-m-wrap",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",breakWord:"pf-m-break-word",noBorderRows:"pf-m-no-border-rows",clickable:"pf-m-clickable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",standalone:"pf-m-standalone",favorited:"pf-m-favorited",noPadding:"pf-m-no-padding",compact:"pf-m-compact",width_10:"pf-m-width-10",width_15:"pf-m-width-15",width_20:"pf-m-width-20",width_25:"pf-m-width-25",width_30:"pf-m-width-30",width_35:"pf-m-width-35",width_40:"pf-m-width-40",width_45:"pf-m-width-45",width_50:"pf-m-width-50",width_60:"pf-m-width-60",width_70:"pf-m-width-70",width_80:"pf-m-width-80",width_90:"pf-m-width-90",width_100:"pf-m-width-100"},table:"pf-v5-c-table",tableAction:"pf-v5-c-table__action",tableButton:"pf-v5-c-table__button",tableButtonContent:"pf-v5-c-table__button-content",tableCaption:"pf-v5-c-table__caption",tableCheck:"pf-v5-c-table__check",tableColumnHelp:"pf-v5-c-table__column-help",tableColumnHelpAction:"pf-v5-c-table__column-help-action",tableCompoundExpansionToggle:"pf-v5-c-table__compound-expansion-toggle",tableControlRow:"pf-v5-c-table__control-row",tableDraggable:"pf-v5-c-table__draggable",tableExpandableRow:"pf-v5-c-table__expandable-row",tableExpandableRowContent:"pf-v5-c-table__expandable-row-content",tableFavorite:"pf-v5-c-table__favorite",tableIcon:"pf-v5-c-table__icon",tableIconInline:"pf-v5-c-table__icon-inline",tableInlineEditAction:"pf-v5-c-table__inline-edit-action",tableSort:"pf-v5-c-table__sort",tableSortIndicator:"pf-v5-c-table__sort-indicator",tableSubhead:"pf-v5-c-table__subhead",tableTbody:"pf-v5-c-table__tbody",tableTd:"pf-v5-c-table__td",tableText:"pf-v5-c-table__text",tableTh:"pf-v5-c-table__th",tableThead:"pf-v5-c-table__thead",tableToggle:"pf-v5-c-table__toggle",tableToggleIcon:"pf-v5-c-table__toggle-icon",tableTr:"pf-v5-c-table__tr",themeDark:"pf-v5-theme-dark"};function Pce(e){const{t}=Me(),{columns:n,keyFn:r,items:i,setItems:o,isSelected:a,selectItem:s,unselectItem:l,allSelected:c,selectAll:u,unselectAll:d,hideColumnHeaders:f,isSelectableWithCheckbox:h}=e,[g,p]=y.useState(null),[v,b]=y.useState(null),[x,S]=y.useState(!1),w=y.useRef(null),_=$=>{if(w.current){const L=w.current.getBoundingClientRect();return $.clientX>L.x&&$.clientX<L.x+L.width&&$.clientY>L.y&&$.clientY<L.y+L.height}return!1},E=$=>{_($)||O()},O=()=>{w.current&&Array.from(w.current.children).forEach($=>{$.classList.remove(zp.modifiers.ghostRow),$.setAttribute("aria-pressed","false")}),b(null),p(null),S(!1)},T=$=>{$.preventDefault();const L=$.target.closest("tr");if(!L||!(w.current&&w.current.contains(L))||L.id===v)return null;{const H=L.id,q=Array.from(w.current.children).findIndex(U=>U.id===H);if(q!==g&&v){const U=D([...i],v,q);o(U)}}return null},D=($,L,H)=>{const q=$.findIndex(z=>r(z)===L);if(q===H)return $;const U=$.splice(q,1);return $.splice(H,0,U[0]),$},j=$=>{_($)||p(null)},A=$=>{const L=$.target;L.classList.remove(zp.modifiers.ghostRow),L.setAttribute("aria-pressed","false"),b(null),p(null),S(!1)},M=$=>{if(w.current){$.dataTransfer.effectAllowed="move";const L=$.currentTarget.id,H=Array.from(w.current.children).findIndex(q=>q.id===$.currentTarget.id);$.currentTarget.setAttribute("aria-pressed","true"),b(L),p(H)}},P=y.useCallback($=>{const L=i.findIndex(q=>r(q)===r($)),H=[...i];H[L]=$,o(H)},[i,o,r]);return m.jsxs(Le.Table,{"aria-label":t("Table with draggable rows"),className:x?zp.modifiers.dragOver:"",variant:"compact",gridBreakPoint:"",children:[!f&&m.jsx(Le.Thead,{children:m.jsxs(Le.Tr,{children:[m.jsx(Le.Th,{}),h&&m.jsx(Le.Th,{select:{onSelect:($,L)=>{L?u():d()},isSelected:c}}),n.map(($,L)=>m.jsx(Le.Th,{children:$.header},L))]})}),m.jsx(Le.Tbody,{ref:w,onDragOver:T,onDragLeave:j,children:i.map(($,L)=>{const H=r($);return m.jsxs(Le.Tr,{id:H.toString(),draggable:!0,onDrop:E,onDragEnd:A,onDragStart:M,children:[m.jsx(Le.Td,{draggableRow:{id:`draggable-row-${H.toString()}`}}),h&&m.jsx(Le.Td,{select:{rowIndex:L,variant:"checkbox",onSelect:(q,U)=>{U?s($):l($)},isSelected:a($)}}),n.map(q=>m.jsx(Le.Td,{children:q.cell($,P)},q.header))]},H)})})]})}function Mce(e){const[t,n]=Pi(),[r]=y.useState(()=>e.keyFn),[i]=y.useState(()=>e.saveFn),[o]=y.useState(()=>e.loadFn),[a,s]=y.useState(()=>{try{const f=localStorage.getItem(e.id);if(typeof f=="string"){const h=JSON.parse(f);if(Array.isArray(h)&&h.every(g=>typeof g=="object")&&h.every(g=>"key"in g&&"enabled"in g))return h}}catch{}}),l=y.useMemo(()=>a?e.items.map(f=>{if(o){const h=a.find(g=>g.key===r(f));h&&h.state&&o(f,h.state)}return f}).sort((f,h)=>{const g=a.findIndex(v=>v.key===r(f)),p=a.findIndex(v=>v.key===r(h));return g===-1&&p===-1?0:g===-1?1:p===-1?-1:g-p}):e.items,[a,r,o,e.items]),c=y.useMemo(()=>a?l.filter(f=>{const h=a.find(g=>g.key===r(f));return h?h.enabled:!0}):l,[l,a,r]),u=y.useCallback((f,h)=>{const g=f.map(p=>({key:r(p),enabled:h.includes(p),state:i?i(p):void 0}));s(g),localStorage.setItem(e.id,JSON.stringify(g)),e.onSubmit&&e.onSubmit(f)},[r,e,i]);return{openManageItems:()=>n(m.jsx($ce,{...e,keyFn:r,items:l,defaultSelectedItems:c,onApplyChanges:u})),managedItems:c}}function $ce(e){const{t}=Me(),{title:n,description:r,columns:i,onApplyChanges:o}=e,[a]=y.useState(()=>e.keyFn),[s,l]=Pi(),c=()=>l(void 0),[u,d]=y.useState(()=>e.items),{selectedItems:f,isSelected:h,selectItem:g,unselectItem:p,allSelected:v,selectAll:b,unselectAll:x}=Np(u,a,e.defaultSelectedItems),S=()=>{o(u,f),l(void 0)};return m.jsxs(C.Modal,{title:n,"aria-label":n,ouiaId:n,description:m.jsx("div",{style:{marginBottom:16},children:r}),variant:e.variant??C.ModalVariant.medium,isOpen:!0,onClose:c,actions:[m.jsx(C.Button,{variant:"primary",onClick:S,children:t`Apply`},"apply"),m.jsx(C.Button,{variant:"link",onClick:c,children:t`Cancel`},"cancel")],hasNoBodyWrapper:!0,children:[m.jsx(C.Divider,{}),m.jsx(C.ModalBoxBody,{style:{padding:0},children:m.jsx(Pce,{keyFn:a,items:u,setItems:d,columns:i,isSelected:h,selectItem:g,unselectItem:p,allSelected:v,selectAll:b,unselectAll:x,hideColumnHeaders:e.hideColumnHeaders,isSelectableWithCheckbox:e.hideSelection!==!0})}),m.jsx(C.Divider,{})]})}function Ice(e,t,n,r,i){const{t:o}=Me(),a=y.useMemo(()=>{const d=[{header:o("Name"),cell:f=>f.header}];return n||d.push({header:o("Table"),cell:(f,h)=>m.jsx(ji,{value:f.table??"",onSelect:g=>{switch(g){case"":h({...f,table:void 0});break;case yo.description:case yo.expanded:case yo.hidden:h({...f,table:g});break}},placeholder:o("Column"),options:[{value:"",label:o("Column"),description:o("Show the column in the table.")},{value:yo.description,label:o("Description"),description:o("Show the column when the item is expanded as a full width description.")},{value:yo.expanded,label:o("Expanded"),description:o("Show the column when the item is expanded as a detail.")},{value:yo.hidden,label:o("Hidden"),description:o("Hide the column.")}],isRequired:!0})}),r||d.push({header:o("List"),cell:(f,h)=>m.jsx(ji,{value:f.list??"",onSelect:g=>{switch(g){case"":h({...f,list:void 0});break;case"name":case"subtitle":case"description":case"primary":case"secondary":case"hidden":h({...f,list:g});break}},options:[{value:"name",label:o("Name"),description:o("Show the column as the name of the list item.")},{value:"subtitle",label:o("Subtitle"),description:o("Show the column as the subtitle under the name on the list.")},{value:"description",label:o("Description"),description:o("Show the column as the list item description.")},{value:"primary",label:o("Left side"),description:o("Show the column on the left side of the list.")},{value:"secondary",label:o("Right side"),description:o("Show the column on the right side of the list.")},{value:"hidden",label:o("Hidden"),description:o("Hide the column on the list.")}],placeholder:o("Left side"),isRequired:!0})}),i||d.push({header:o("Card"),cell:(f,h)=>m.jsx(ji,{value:f.card??"",onSelect:g=>{switch(g){case"":h({...f,card:void 0});break;case"name":case"subtitle":case"description":case"hidden":h({...f,card:g});break}},placeholder:o("Detail"),options:[{value:"name",label:o("Name"),description:o("Show the column as the name on the card.")},{value:"subtitle",label:o("Subtitle"),description:o("Show the column as the subtitle under the name on the card.")},{value:"description",label:o("Description"),description:o("Show the column as the card description.")},{value:"",label:o("Detail"),description:o("Show the column one of the details on the card.")},{value:"hidden",label:o("Hidden"),description:o("Hide the column on the card.")}],isRequired:!0})}),d},[i,r,n,o]),s=y.useCallback((d,f)=>{typeof f=="object"&&f!==null&&("table"in f&&typeof f.table=="string"?d.table=f.table:d.table=void 0,"list"in f&&typeof f.list=="string"?d.list=f.list:d.list=void 0,"card"in f&&typeof f.card=="string"?d.card=f.card:d.card=void 0)},[]),l=y.useCallback(d=>{const{table:f,list:h,card:g}=d;return{table:f,list:h,card:g}},[]),{openManageItems:c,managedItems:u}=Mce({id:e,title:o("Manage Columns"),description:o("Manage the order, placement, and format of columns."),items:t,keyFn:d=>d.id??d.header,columns:a,loadFn:s,saveFn:l,hideSelection:!0});return{openColumnManagement:c,managedColumns:u}}function Lce(){return m.jsx(Le.Table,{gridBreakPoint:"",className:"page-table",children:m.jsx(Le.Tbody,{children:new Array(10).fill(0).map((e,t)=>m.jsx(Le.Tr,{children:m.jsx(Le.Td,{children:m.jsx(C.Skeleton,{height:"27px"})})},t))})})}function Fce(e){const{setPage:t,setPerPage:n}=e,r=y.useCallback((a,s)=>t(s),[t]),i=y.useCallback((a,s)=>n(s),[n]),o=!cn("md");return m.jsx(C.Pagination,{"data-cy":"pagination",variant:C.PaginationVariant.bottom,itemCount:e.itemCount,page:e.page,perPage:e.perPage,onSetPage:r,onPerPageSelect:i,perPageOptions:e.perPageOptions,style:{...e.style,boxShadow:"none",zIndex:400,paddingTop:o?4:6,paddingBottom:o?4:6},className:"border-top bg-lighten"})}function Nce(e){const t=e.size??350,n=y.useRef(null),[r,i]=y.useState("1fr"),o=y.useCallback(s=>{let l=Math.min(e.maxColumns??12,Math.max(Math.floor(s/t),1));l<1&&(l=1),i(()=>new Array(l).fill("1fr").join(" "))},[e.maxColumns,t]);return ka(n,s=>o(s.contentRect.width)),y.useLayoutEffect(()=>{var s;o(((s=n.current)==null?void 0:s.clientWidth)??0)},[o]),m.jsx("div",{ref:n,style:{display:"grid",gridAutoRows:"1fr",gridTemplateColumns:r,gap:16},children:e.children})}const IE=De.small`
|
384
384
|
opacity: 0.7;
|
385
385
|
`,Bce=De.div`
|
386
386
|
display: flex;
|
@@ -415,7 +415,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ru]+=1);const iu=De.button`
|
|
415
415
|
align-items: baseline;
|
416
416
|
`;function NE(e){const{item:t,itemToCardFn:n,isSelected:r,selectItem:i,unselectItem:o,itemActions:a,showSelect:s,defaultCardSubtitle:l}=e,c=y.useMemo(()=>n(t),[t,n]),u=!!(r!=null&&r(t)),d=y.useCallback(()=>{r!=null&&r(t)?o==null||o(t):i==null||i(t)},[r,t,i,o]);return m.jsxs(C.Card,{id:`card-${c.id}`,ouiaId:c.id,isFlat:!0,isLarge:!0,isRounded:!0,isSelectable:s,isSelected:u,isClickable:s,style:{transition:"box-shadow 0.25s",cursor:"default",maxWidth:"100%"},children:[m.jsx(C.CardHeader,{selectableActions:s?{selectableActionId:`card-${c.id}-checkbox`,onChange:d}:void 0,style:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},children:m.jsxs(Bce,{children:[m.jsxs(zce,{children:[c.iconAboveTitle?null:c.icon&&m.jsx(rl,{size:"xl",children:c.icon}),m.jsxs(Rce,{children:[c.iconAboveTitle?m.jsx(Wce,{children:c.icon&&m.jsx(rl,{size:"xl",children:c.icon})}):null,m.jsx(C.CardTitle,{children:m.jsx(C.Truncate,{content:c.title})}),c.subtitle?m.jsx(C.Text,{component:"small",style:{opacity:.7},children:c.subtitle}):l&&m.jsx(C.Text,{component:"small",style:{opacity:.7},children:l})]})]}),c.badge&&c.badgeTooltip&&m.jsx(C.FlexItem,{children:m.jsx("div",{onClick:f=>f.stopPropagation(),children:m.jsx(C.Popover,{headerContent:c.badgeTooltipTitle,bodyContent:c.badgeTooltip,children:m.jsx(C.Label,{color:c.badgeColor,children:c.badge})})})}),c.badge&&!c.badgeTooltip&&m.jsx(C.FlexItem,{children:m.jsx(C.Label,{color:c.badgeColor,children:c.badge})})]})}),m.jsx("div",{style:{maxHeight:250,overflow:"hidden",display:"flex",paddingBottom:16,flexGrow:1},children:m.jsx(Zn,{children:c.cardBody})}),(c.labels||a&&a.length)&&m.jsx(C.CardFooter,{children:m.jsxs(Vce,{children:[m.jsx(Uce,{children:c.labels&&m.jsx(C.LabelGroup,{numLabels:999,children:c.labels.map(f=>m.jsx(C.Label,{color:f.color,icon:f.icon,variant:f.variant,children:m.jsx(C.Truncate,{content:f.label,style:{minWidth:0}})},f.label))})}),a&&a.length&&m.jsx("div",{style:{marginRight:-16,alignSelf:"end",justifySelf:"flex-end",flexGrow:1},children:m.jsx(Wr,{actions:a,position:"right",selectedItem:t,iconOnly:!0})})]})}),c.alertTitle&&m.jsx(C.Alert,{title:c.alertTitle,isInline:!0,variant:c.alertVariant,children:c.alertContent})]},c.id??c.title)}function BE(e,t){const n=y.useMemo(()=>{let c,u,d;const f=[];let h;const g=[];for(const p of e)if(p.card!=="hidden")switch(p.type){case"description":d||(d=p);break;case"labels":h||(h=p);break;case"count":f.push(p);break;default:switch(p.card){case"name":c=p;break;case"subtitle":u=p;break;case"description":d=p;break;default:g.push(p);break}break}return{nameColumn:c,subtitleColumn:u,descriptionColumn:d,countColumns:f,cardColumns:g,labelColumn:h}},[e]),{nameColumn:r,subtitleColumn:i,descriptionColumn:o,countColumns:a,cardColumns:s,labelColumn:l}=n;return y.useMemo(()=>c=>{var h,g;let u=!!o;o!=null&&o.value&&!o.value(c)&&(u=!1);const d=s.filter(p=>!p.value||p.value(c)),f={id:t(c),icon:(h=r==null?void 0:r.icon)==null?void 0:h.call(r,c),title:m.jsx(nn,{column:r,item:c}),subtitle:i&&(!i.value||i.value(c))&&m.jsx(nn,{column:i,item:c}),cardBody:m.jsxs(C.DescriptionList,{isCompact:!0,style:{paddingLeft:32,paddingRight:32},children:[u&&o&&m.jsx(Os,{children:o.type==="description"?m.jsx("div",{children:o.value(c)}):m.jsx(nn,{column:o,item:c})},o.id??o.header),d.map(p=>m.jsx(Os,{label:p.header,children:m.jsx(nn,{column:p,item:c})},p.id??p.header)),a.length>0&&m.jsx(Os,{children:m.jsx(LE,{children:a.map((p,v)=>m.jsxs(FE,{children:[m.jsx(nn,{column:p,item:c}),m.jsx(IE,{children:p.header})]},v))})},"count-columns")]}),labels:l&&((g=l.value(c))==null?void 0:g.map(p=>({label:p})))};return!u&&d.length===0&&a.length===0&&(f.cardBody=m.jsx("div",{style:{flexGrow:1}})),f},[s,a,o,l,r,i,t])}function Rp(e){const{keyFn:t,pageItems:n,tableColumns:r,isSelected:i,selectItem:o,unselectItem:a,rowActions:s,showSelect:l,defaultSubtitle:c}=e,u=BE(r,t),d=y.useMemo(()=>m.jsx(Nce,{size:400,children:n==null?void 0:n.map(f=>m.jsx(NE,{item:f,itemToCardFn:u,isSelected:i,selectItem:o,unselectItem:a,itemActions:s,showSelect:l,defaultCardSubtitle:c},t(f)))}),[n,t,u,i,o,a,s,l,c]);return m.jsx(C.PageSection,{style:{flexGrow:1},children:d})}function WE(e){const{keyFn:t,pageItems:n,tableColumns:r,isSelected:i,selectItem:o,unselectItem:a,rowActions:s,defaultSubtitle:l,showSelect:c}=e,u=Hce(r,t,i,o,a,s,l,c);return m.jsx(C.DataList,{"aria-label":"TODO",style:{marginTop:-1,maxWidth:"100%",overflow:"hidden"},children:n==null?void 0:n.map(u)})}function Hce(e,t,n,r,i,o,a,s){const l=y.useMemo(()=>{let b,x,S;const w=[];let _;const E=[],O=[];for(const T of e)if(T.list!=="hidden")switch(T.type){case"description":S||(S=T);break;case"labels":_||(_=T);break;case"count":w.push(T);break;default:switch(T.list){case"name":b=T;break;case"subtitle":x=T;break;case"description":S=T;break;case"secondary":O.push(T);break;default:E.push(T);break}break}return{nameColumn:b,subtitleColumn:x,descriptionColumn:S,countColumns:w,primaryColumns:E,secondaryColumns:O,labelColumn:_}},[e]),c=y.useCallback(b=>{n!=null&&n(b)?i==null||i(b):r==null||r(b)},[n,r,i]),{nameColumn:u,subtitleColumn:d,descriptionColumn:f,countColumns:h,primaryColumns:g,secondaryColumns:p,labelColumn:v}=l;return y.useCallback(b=>{const x=t(b),S=n==null?void 0:n(b);return m.jsx(C.DataListItem,{"aria-labelledby":`data-list-${x}`,isExpanded:S,children:m.jsxs(C.DataListItemRow,{children:[s&&m.jsx(C.DataListCheck,{"aria-labelledby":`data-list-check-${x}`,name:`data-list-check-${x}`,isChecked:n==null?void 0:n(b),onClick:()=>c(b),"data-cy":"data-list-check"}),m.jsx(C.DataListItemCells,{dataListCells:[m.jsx(C.DataListCell,{width:5,children:m.jsx(C.Flex,{children:m.jsxs(C.Stack,{hasGutter:!0,children:[m.jsxs(C.Flex,{alignItems:{default:"alignItemsCenter"},children:[(u==null?void 0:u.icon)&&m.jsx(rl,{size:"xl",children:u==null?void 0:u.icon(b)}),m.jsxs(C.Stack,{children:[m.jsx(C.Title,{headingLevel:"h2",style:{marginTop:-4,fontWeight:"bold"},"data-cy":"data-list-name",children:m.jsx("span",{id:`data-list-${x}`,children:m.jsx(nn,{column:u,item:b})})}),d?m.jsx(C.Text,{component:"small",style:{opacity:.7},children:m.jsx(nn,{column:d,item:b})}):a&&m.jsx(C.Text,{component:"small",style:{opacity:.7},children:a})]})]}),(f||g.length>0||h.length>0||v)&&m.jsxs(C.DescriptionList,{isCompact:!0,children:[f&&(!f.value||f.value(b))&&m.jsx(C.DescriptionListGroup,{children:m.jsx(C.DescriptionListDescription,{children:m.jsx(nn,{column:f,item:b})})},f.header),g.map(w=>w.value&&!w.value(b)?m.jsx(m.Fragment,{}):m.jsxs(C.DescriptionListGroup,{children:[m.jsx(C.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:w.header}),m.jsx(C.DescriptionListDescription,{children:m.jsx(nn,{column:w,item:b})})]},w.header)),h.length>0&&m.jsx(C.DescriptionListGroup,{children:m.jsx(C.DescriptionListDescription,{children:m.jsx("div",{style:{display:"flex",gap:16,marginTop:8,flexWrap:"wrap"},children:h.map((w,_)=>m.jsxs("div",{style:{display:"flex",gap:6,alignItems:"baseline"},children:[m.jsx(nn,{column:w,item:b}),m.jsx("small",{style:{opacity:.7},children:w.header})]},_))})})},"counts"),v&&m.jsxs(m.Fragment,{children:[m.jsx("div",{style:{flexGrow:1}}),m.jsx(C.DescriptionListGroup,{children:m.jsx(C.DescriptionListDescription,{children:m.jsx(nn,{column:v,item:b})})},v.header)]})]})]})})},"primary"),p.length>0?m.jsx(C.DataListCell,{children:m.jsx(C.DescriptionList,{isCompact:!0,children:p.map(w=>w.value&&!w.value(b)?m.jsx(m.Fragment,{}):m.jsxs(C.DescriptionListGroup,{children:[m.jsx(C.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:w.header}),m.jsx(C.DescriptionListDescription,{children:m.jsx(nn,{column:w,item:b})})]},w.header))})},"secondary"):null]}),o&&m.jsx(C.DataListAction,{"aria-labelledby":"check-action-item1 check-action-action1",id:"check-action-action1","aria-label":"Actions",isPlainButtonAction:!0,style:{whiteSpace:"nowrap"},"data-cy":"data-list-action",children:m.jsx(Wr,{actions:o,position:"right",selectedItem:b,iconOnly:!0,collapse:"always"})})]})},x)},[t,n,s,u,d,a,g,f,h,v,p,o,c])}const Gce=De.div`
|
417
417
|
flex: 1;
|
418
|
-
`;function tc(e){const{id:t,toolbarActions:n,filterState:r,error:i,itemCount:o}=e,{t:a}=Me(),s=e.showSelect||(n==null?void 0:n.find(b=>"selection"in b&&b.selection===Ge.Multiple))!==void 0,l=!e.disableTableView,c=!e.disableListView,[u,d]=y.useState(()=>{switch(e.id?localStorage.getItem(e.id+"-view"):void 0){case"table":return tt.Table;case"list":return tt.List;case"cards":return tt.Cards}return e.defaultTableView??(l?tt.Table:c?tt.List:tt.Cards)}),f=y.useCallback(b=>{d(b),e.id&&localStorage.setItem(e.id+"-view",b)},[e.id]),{openColumnManagement:h,managedColumns:g}=Ice((t??"")+"-columns",e.tableColumns,u!==tt.Table,u!==tt.List,u!==tt.Cards),p=Cce(e.tableColumns);if(i)return m.jsx(kce,{titleProp:e.errorStateTitle,message:i.message});if(o===0&&Object.keys(r??{}).length===0)return e.emptyState?e.emptyState:m.jsx(Ace,{title:e.emptyStateTitle??a`No data`,description:e.emptyStateDescription,icon:e.emptyStateNoDataIcon,button:e.emptyStateButtonClick&&m.jsx(C.Button,{"data-cy":e.emptyStateButtonText?Zce(e.emptyStateButtonText):"create-resource",variant:"primary",onClick:e.emptyStateButtonClick,icon:e.emptyStateButtonIcon?e.emptyStateButtonIcon:null,children:e.emptyStateButtonText})||e.emptyStateActions&&m.jsx(C.Flex,{justifyContent:{default:"justifyContentCenter"},children:m.jsx(Wr,{actions:e.emptyStateActions})})});let v=e.topContent;return v&&(v=m.jsx(C.PageSection,{variant:"light",padding:{default:"noPadding"},style:{borderBottom:"thin solid var(--pf-v5-global--BorderColor--100)"},children:e.topContent})),m.jsxs(m.Fragment,{children:[m.jsx(DE,{...e,openColumnModal:e.id?h:void 0,showSelect:s,viewType:u,setViewType:f,sortOptions:p,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation}),u===tt.Table&&m.jsx(m.Fragment,{children:e.scrollTopContent?m.jsxs(Zn,{children:[v,!e.hideTable&&m.jsx(zE,{...e,tableColumns:g})]}):m.jsxs(m.Fragment,{children:[v,!e.hideTable&&m.jsx(zE,{...e,tableColumns:g})]})}),u===tt.List&&m.jsx(m.Fragment,{children:e.scrollTopContent?m.jsxs(Zn,{children:[v,m.jsx(C.PageSection,{padding:{default:"noPadding"},children:!e.hideTable&&m.jsx(WE,{...e,showSelect:s,tableColumns:g})})]}):m.jsxs(m.Fragment,{children:[v,m.jsx(Zn,{children:m.jsx(C.PageSection,{padding:{default:"noPadding"},children:!e.hideTable&&m.jsx(WE,{...e,showSelect:s,tableColumns:g})})})]})}),u===tt.Cards&&m.jsx(m.Fragment,{children:e.scrollTopContent?m.jsxs(Zn,{children:[v,!e.hideTable&&m.jsx(Rp,{...e,showSelect:s,tableColumns:g})]}):m.jsxs(m.Fragment,{children:[v,m.jsx(Zn,{children:!e.hideTable&&m.jsx(Rp,{...e,showSelect:s,tableColumns:g})})]})}),!e.disablePagination&&(!e.autoHidePagination||(e.itemCount??0)>e.perPage)&&m.jsx(Fce,{...e,topBorder:!e.autoHidePagination})]})}function zE(e){const{pageItems:t,selectItem:n,unselectItem:r,isSelected:i,isSelectMultiple:o,keyFn:a,rowActions:s,toolbarActions:l,itemCount:c,clearAllFilters:u,onSelect:d,unselectAll:f,maxSelections:h}=e,g=Mp(e.tableColumns),p=lE(e.tableColumns),v=cE(e.tableColumns),b=y.useMemo(()=>{const A=[];if(p.length)for(const P of p)"value"in P?A.push($=>{var z;const L=(z=P.value)==null?void 0:z.call(P,$);if(L)return m.jsx("div",{children:L},P.id??P.header)}):A.push($=>P.cell($));return v.length&&A.push(P=>v.some(L=>{var z;return((z=L.value)==null?void 0:z.call(L,P))!==void 0})?m.jsx(tE,{disablePadding:!0,numberOfColumns:"multiple",labelOrientation:"vertical",isCompact:!0,disableScroll:!0,children:m.jsx(fE,{item:P,columns:v},a(P))}):null),e.expandedRow&&A.push(e.expandedRow),A.length===0?void 0:P=>A.map(L=>L(P)).filter(L=>L!=null).length===0?null:m.jsx(C.Stack,{hasGutter:!0,children:A.map(L=>L(P))})},[p,v,a,e.expandedRow]),[x]=Pt(),S=e.showSelect||(l==null?void 0:l.find(A=>"selection"in A&&A.selection===Ge.Multiple))!==void 0,w=y.useRef(null),[_,E]=y.useState({left:0,right:0,top:0,bottom:0}),O=y.useCallback(A=>{A&&E({top:A.scrollTop,bottom:A.scrollHeight-A.clientHeight-A.scrollTop,left:A.scrollLeft,right:A.scrollWidth-A.clientWidth-A.scrollLeft})},[]),T=y.useCallback(A=>O(A.currentTarget),[O]);ka(w,()=>O(w.current)),y.useEffect(()=>O(w.current),[O]);const D=Bo();let j;return e.itemCount===void 0||t===void 0?j=m.jsx(Lce,{}):j=m.jsxs(m.Fragment,{children:[m.jsxs(Le.Table,{"aria-label":"Simple table",ouiaId:"simple-table",variant:e.compact||D.tableLayout==="compact"?"compact":void 0,borders:!e.borderless,gridBreakPoint:"",isStickyHeader:!0,className:"page-table",children:[m.jsx(qce,{...e,showSelect:S,scrollLeft:_.left>0,scrollRight:_.right>1,tableColumns:g,onSelect:d,expandedRow:b}),m.jsx(Le.Tbody,{children:t.map((A,M)=>m.jsx(Yce,{columns:g,item:A,isItemSelected:i==null?void 0:i(A),isSelectMultiple:o,selectItem:n,unselectItem:r,rowActions:s,rowIndex:M,showSelect:S,scrollLeft:_.left>0,scrollRight:_.right>1,unselectAll:f,onSelect:d,expandedRow:b,isLastRow:M===t.length-1,disableLastRowBorder:e.disableLastRowBorder,maxSelections:h,selectedItems:e.selectedItems,defaultExpandedRows:e.defaultExpandedRows},a?a(A):M))})]}),c===0&&m.jsxs(C.EmptyState,{isFullHeight:!0,children:[m.jsx(C.EmptyStateHeader,{titleText:m.jsx(m.Fragment,{children:x.noResultsFound}),icon:m.jsx(C.EmptyStateIcon,{icon:e.emptyStateIcon??ve.SearchIcon}),headingLevel:"h2"}),m.jsx(C.EmptyStateBody,{children:x.noResultsMatchCriteria}),m.jsx(C.EmptyStateFooter,{children:u&&m.jsx(C.EmptyStateActions,{children:m.jsx(C.Button,{variant:"primary",onClick:u,children:x.clearAllFilters})})})]})]}),e.scrollTopContent||(j=m.jsx(Gce,{className:"pf-v5-c-scroll-inner-wrapper",ref:w,onScroll:T,style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--100)"},children:j})),j}function qce(e){const{tableColumns:t,rowActions:n,sort:r,setSort:i,sortDirection:o,setSortDirection:a,showSelect:s,onSelect:l,expandedRow:c}=e,u=y.useCallback((d,f)=>{if(f.sort)return{onSort:(h,g,p)=>{f.sort&&(i==null||i(f.sort),a==null||a(p))},sortBy:{index:f.sort===r?d:void 0,direction:f.sort===r?o:void 0,defaultDirection:f.defaultSortDirection},columnIndex:d}},[i,a,r,o]);return m.jsx(Le.Thead,{children:m.jsxs(Le.Tr,{className:"bg-lighten",children:[c&&m.jsx(Le.Th,{style:{padding:0},"aria-label":"Expand",className:"bg-lighten"}),(s||l)&&m.jsx(Le.Th,{"aria-label":"Select",isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"selections-column-header",className:e.scrollLeft?"bg-lighten-2":"bg-lighten",children:" "}),t.map((d,f)=>m.jsx(Le.Th,{"aria-label":d.header,sort:u(f,d),modifier:"nowrap",style:{minWidth:d.minWidth===0?"1%":d.minWidth!==void 0?d.minWidth:void 0,maxWidth:d.maxWidth!==void 0?d.maxWidth:void 0,width:d.fullWidth?"100%":void 0},"data-cy":Br(d.header+"-column-header"),className:"bg-lighten",children:d.header},d.header)),n!==void 0&&m.jsx(Le.Td,{"aria-label":"Actions",isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:0,zIndex:302},className:e.scrollRight?"pf-m-border-left bg-lighten-2":"bg-lighten","data-cy":"action-column-header",children:" "})]})})}function Yce(e){const{columns:t,unselectAll:n,selectItem:r,unselectItem:i,isItemSelected:o,isSelectMultiple:a,item:s,rowActions:l,rowIndex:c,showSelect:u,onSelect:d,expandedRow:f,disableLastRowBorder:h,maxSelections:g,selectedItems:p}=e,v=f==null?void 0:f(s),[b,x]=y.useState(!!e.defaultExpandedRows&&!!v),S=Bo(),w=y.useCallback(_=>(p==null?void 0:p.length)===g?!(p!=null&&p.includes(_)):!1,[g,p]);return m.jsxs(m.Fragment,{children:[m.jsxs(Le.Tr,{style:{boxShadow:"unset",borderBottom:b||e.isLastRow&&h?"unset":void 0,cursor:d?"pointer":"default"},"data-cy":"id"in s&&(typeof s.id=="string"||typeof s.id=="number")?`row-id-${s.id.toString()}`:`row-${c}`,className:o?"selected":void 0,onClick:()=>{d&&(a||n==null||n(),a&&o?i==null||i(s):r==null||r(s),d(s))},children:[f&&m.jsx(Le.Td,{expand:v?{rowIndex:c,isExpanded:b,onToggle:()=>x(_=>!_)}:void 0,style:{paddingLeft:v?8:4},"data-cy":"expand-column-cell"}),u&&m.jsx(Le.Td,{select:o!==void 0?{rowIndex:c,onSelect:(_,E)=>{E?r==null||r(s):i==null||i(s)},isSelected:o,isDisabled:g&&p?w(s):!1}:void 0,isStickyColumn:e.scrollLeft,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"checkbox-column-cell",className:e.scrollLeft?"bg-lighten":void 0}),d&&m.jsx(Le.Td,{select:{rowIndex:c,isSelected:o??!1,variant:a?"checkbox":"radio",isDisabled:g&&p?w(s):!1,props:{"aria-label":"Select row"}},isStickyColumn:e.scrollLeft,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"checkbox-column-cell",className:e.scrollLeft?"bg-lighten":void 0}),m.jsx(Kce,{columns:t,item:s,rowActions:l,scrollLeft:e.scrollLeft,scrollRight:e.scrollRight})]}),f&&b&&v&&m.jsxs(Le.Tr,{isExpanded:b,style:{boxShadow:"unset"},className:o?"selected":void 0,children:[m.jsx(Le.Td,{}),u&&m.jsx(Le.Th,{"aria-label":"Select",isStickyColumn:e.scrollLeft,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,className:e.scrollLeft?"bg-lighten":void 0}),d&&m.jsx(Le.Td,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft}),m.jsx(Le.Td,{colSpan:t.length,style:{paddingBottom:S.tableLayout==="compact"?12:24,paddingTop:0},children:m.jsx(Le.CollapseColumn,{children:v})}),l!==void 0&&l.length>0&&m.jsx(Le.Td,{isActionCell:!0,isStickyColumn:e.scrollRight,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:0},className:e.scrollRight?"pf-m-border-left bg-lighten":void 0,children:" "})]})]})}function Kce(e){const{columns:t,item:n,rowActions:r}=e,[i,o]=y.useState(!1);return m.jsxs(y.Fragment,{children:[t.map(a=>m.jsx(Le.Td,{dataLabel:a.header,modifier:"nowrap",style:{width:a.minWidth===0?"0%":void 0},"data-cy":Br(a.header+"-column-cell"),children:m.jsx(nn,{item:n,column:a})},a.header)),r!==void 0&&r.length>0&&m.jsx(Le.Td,{isActionCell:!0,isStickyColumn:e.scrollRight,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:8,zIndex:i?400:void 0},"data-cy":"actions-column-cell",className:e.scrollRight?"pf-m-border-left bg-lighten":void 0,children:m.jsx(Wr,{actions:r,selectedItem:n,position:"right",iconOnly:!0,onOpen:o})})]})}function Zce(e){return e.toLowerCase().split(" ").join("-")}function Xce(){const e=y.useRef(new AbortController);return y.useEffect(()=>{const t=e.current;return()=>t.abort()},[]),e.current}function RE(e){const{title:t,items:n,keyFn:r,actionColumns:i,actionFn:o,onComplete:a,onClose:s,processingText:l,isDanger:c,errorAdapter:u=Ql,description:d,statusParser:f}=e,{t:h}=Me(),[g]=Pt(),[p,v]=y.useState(!0),[b,x]=y.useState(!1),[S,w]=y.useState(0),[_,E]=y.useState(""),[O,T]=y.useState(),D=Xce(),[j,A]=Pi(),M=y.useCallback(()=>{x(!0),D.abort(),v(!1),T(z=>{const G={...z};for(const U of n){const V=r(U);G[V]===void 0&&(G[V]=h("Cancelled"))}return G})},[D,n,r,h]),P=y.useCallback(()=>{A(void 0),s==null||s(b?"canceled":_?"failures":"success",n.filter(z=>(O==null?void 0:O[r(z)])===null||(O==null?void 0:O[r(z)]).message),n.filter(z=>(O==null?void 0:O[r(z)])!==null&&typeof(O==null?void 0:O[r(z)])=="string"),n.filter(z=>(O==null?void 0:O[r(z)])===void 0))},[_,b,n,r,s,A,O]);y.useEffect(()=>{async function z(){const G=gce(5);let U=0;const V=[];await Promise.all(n.map(N=>G(async()=>{if(D.signal.aborted)return;const H=r(N);try{const Q=await o(N,D.signal);if(!D.signal.aborted){let ee;f&&(ee=f(Q)),T(X=>({...X??{},[H]:ee!==void 0?ee:null}))}V.push(N)}catch(Q){const{genericErrors:ee,fieldErrors:X}=u(Q),J=[...ee,...X.filter(ie=>ie.message)];if(!D.signal.aborted){if(Q instanceof Error){const ie=typeof J[0].message=="string"&&J.length===1?J[0].message:h("Unknown error");T(ue=>({...ue??{},[H]:ie}))}else T(ie=>({...ie??{},[H]:h("Unknown error")}));E(g.errorText)}}finally{D.signal.aborted||w(++U)}}))),D.signal.aborted||v(!1),a==null||a(V)}z()},[D,o,n,r,a,g.errorText,h,u,f]);const $=ec(n),L=Tf(i);return m.jsxs(C.Modal,{titleIconVariant:c?"warning":void 0,title:t,ouiaId:t,"aria-label":t,description:d,variant:C.ModalVariant.medium,isOpen:!0,onClose:()=>{M(),P()},actions:p?[m.jsx(C.Button,{variant:"link",onClick:M,children:g.cancelText},"cancel")]:[m.jsx(C.Button,{variant:"secondary",onClick:P,children:g.closeText},"close")],hasNoBodyWrapper:!0,children:[m.jsx(C.ModalBoxBody,{style:{paddingBottom:0,paddingLeft:0,paddingRight:0},children:m.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:560,overflow:"hidden",borderTop:"thin solid var(--pf-v5-global--BorderColor--100)"},children:m.jsx(tc,{pageItems:[...$.paged],itemCount:n.length,tableColumns:[...L,{header:h("Status"),cell:z=>{const G=r(z),U=O==null?void 0:O[G];return U===void 0?m.jsxs("span",{style:{color:Uh},children:[m.jsx(ve.PendingIcon,{})," ",g.pendingText]}):U===null?m.jsxs("span",{style:{color:Rh},children:[m.jsx(ve.CheckCircleIcon,{})," ",g.successText]}):U.message&&U.url?m.jsx("a",{href:U.url,children:U.message}):m.jsxs("span",{style:{color:Vh},children:[m.jsx(ve.ExclamationCircleIcon,{})," ",O==null?void 0:O[G]]})}}],keyFn:r,compact:!0,errorStateTitle:"",emptyStateTitle:h("No items"),autoHidePagination:!0,disableBodyPadding:!0,...$},"status")})}),m.jsx(C.ModalBoxBody,{style:{paddingTop:0},children:m.jsx(C.Progress,{"data-cy":"progress",value:S/n.length*100,title:D.signal.aborted?g.canceledText:_?g.errorText:p?l??g.processingText:g.successText,size:C.ProgressSize.lg,variant:_||b?C.ProgressVariant.danger:S===n.length?C.ProgressVariant.success:void 0})})]})}function VE(e=Ql,t){const[n,r]=Pi(),[i,o]=y.useState();return y.useEffect(()=>{if(i){const a=(s,l,c,u)=>{var d;o(void 0),(d=i.onClose)==null||d.call(i,s,l,c,u)};r(m.jsx(RE,{...i,errorAdapter:i.errorAdapter??e,statusParser:i.statusParser??t,onClose:a}))}else r(void 0)},[i,r,e,t]),o}function UE(e,t){if(e===void 0&&t===void 0)return 0;if(e===void 0)return 1;if(t===void 0)return-1;if(typeof e=="string"){if(typeof t=="string")return nc(e,t);if(typeof t=="number")return nc(e,t.toString())}else if(typeof e=="number"){if(typeof t=="number")return HE(e,t);if(typeof t=="string")return nc(e.toString(),t)}return 0}function nc(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}function HE(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}const Jce=De.div`
|
418
|
+
`;function tc(e){const{id:t,toolbarActions:n,filterState:r,error:i,itemCount:o}=e,{t:a}=Me(),s=e.showSelect||(n==null?void 0:n.find(b=>"selection"in b&&b.selection===Ge.Multiple))!==void 0,l=!e.disableTableView,c=!e.disableListView,[u,d]=y.useState(()=>{switch(e.id?localStorage.getItem(e.id+"-view"):void 0){case"table":return tt.Table;case"list":return tt.List;case"cards":return tt.Cards}return e.defaultTableView??(l?tt.Table:c?tt.List:tt.Cards)}),f=y.useCallback(b=>{d(b),e.id&&localStorage.setItem(e.id+"-view",b)},[e.id]),{openColumnManagement:h,managedColumns:g}=Ice((t??"")+"-columns",e.tableColumns,u!==tt.Table,u!==tt.List,u!==tt.Cards),p=Cce(e.tableColumns);if(i)return m.jsx(kce,{titleProp:e.errorStateTitle,message:i.message});if(o===0&&Object.keys(r??{}).length===0)return e.emptyState?e.emptyState:m.jsx(Ace,{title:e.emptyStateTitle??a`No data`,description:e.emptyStateDescription,icon:e.emptyStateNoDataIcon,button:e.emptyStateButtonClick&&m.jsx(C.Button,{"data-cy":e.emptyStateButtonText?Zce(e.emptyStateButtonText):"create-resource",variant:"primary",onClick:e.emptyStateButtonClick,icon:e.emptyStateButtonIcon?e.emptyStateButtonIcon:null,children:e.emptyStateButtonText})||e.emptyStateActions&&m.jsx(C.Flex,{justifyContent:{default:"justifyContentCenter"},children:m.jsx(Wr,{actions:e.emptyStateActions})})});let v=e.topContent;return v&&(v=m.jsx(C.PageSection,{variant:"light",padding:{default:"noPadding"},style:{borderBottom:"thin solid var(--pf-v5-global--BorderColor--100)"},children:e.topContent})),m.jsxs(m.Fragment,{children:[m.jsx(DE,{...e,openColumnModal:e.id?h:void 0,showSelect:s,viewType:u,setViewType:f,sortOptions:p,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation}),u===tt.Table&&m.jsx(m.Fragment,{children:e.scrollTopContent?m.jsxs(Zn,{children:[v,!e.hideTable&&m.jsx(zE,{...e,tableColumns:g})]}):m.jsxs(m.Fragment,{children:[v,!e.hideTable&&m.jsx(zE,{...e,tableColumns:g})]})}),u===tt.List&&m.jsx(m.Fragment,{children:e.scrollTopContent?m.jsxs(Zn,{children:[v,m.jsx(C.PageSection,{padding:{default:"noPadding"},children:!e.hideTable&&m.jsx(WE,{...e,showSelect:s,tableColumns:g})})]}):m.jsxs(m.Fragment,{children:[v,m.jsx(Zn,{children:m.jsx(C.PageSection,{padding:{default:"noPadding"},children:!e.hideTable&&m.jsx(WE,{...e,showSelect:s,tableColumns:g})})})]})}),u===tt.Cards&&m.jsx(m.Fragment,{children:e.scrollTopContent?m.jsxs(Zn,{children:[v,!e.hideTable&&m.jsx(Rp,{...e,showSelect:s,tableColumns:g})]}):m.jsxs(m.Fragment,{children:[v,m.jsx(Zn,{children:!e.hideTable&&m.jsx(Rp,{...e,showSelect:s,tableColumns:g})})]})}),!e.disablePagination&&(!e.autoHidePagination||(e.itemCount??0)>e.perPage)&&m.jsx(Fce,{...e,topBorder:!e.autoHidePagination})]})}function zE(e){const{pageItems:t,selectItem:n,unselectItem:r,isSelected:i,isSelectMultiple:o,keyFn:a,rowActions:s,toolbarActions:l,itemCount:c,clearAllFilters:u,onSelect:d,unselectAll:f,maxSelections:h}=e,g=Mp(e.tableColumns),p=lE(e.tableColumns),v=cE(e.tableColumns),b=y.useMemo(()=>{const A=[];if(p.length)for(const P of p)"value"in P?A.push($=>{var H;const L=(H=P.value)==null?void 0:H.call(P,$);if(L)return m.jsx("div",{children:L},P.id??P.header)}):A.push($=>P.cell($));return v.length&&A.push(P=>v.some(L=>{var H;return((H=L.value)==null?void 0:H.call(L,P))!==void 0})?m.jsx(tE,{disablePadding:!0,numberOfColumns:"multiple",labelOrientation:"vertical",isCompact:!0,disableScroll:!0,children:m.jsx(fE,{item:P,columns:v},a(P))}):null),e.expandedRow&&A.push(e.expandedRow),A.length===0?void 0:P=>A.map(L=>L(P)).filter(L=>L!=null).length===0?null:m.jsx(C.Stack,{hasGutter:!0,children:A.map(L=>L(P))})},[p,v,a,e.expandedRow]),[x]=Pt(),S=e.showSelect||(l==null?void 0:l.find(A=>"selection"in A&&A.selection===Ge.Multiple))!==void 0,w=y.useRef(null),[_,E]=y.useState({left:0,right:0,top:0,bottom:0}),O=y.useCallback(A=>{A&&E({top:A.scrollTop,bottom:A.scrollHeight-A.clientHeight-A.scrollTop,left:A.scrollLeft,right:A.scrollWidth-A.clientWidth-A.scrollLeft})},[]),T=y.useCallback(A=>O(A.currentTarget),[O]);ka(w,()=>O(w.current)),y.useEffect(()=>O(w.current),[O]);const D=Bo();let j;return e.itemCount===void 0||t===void 0?j=m.jsx(Lce,{}):j=m.jsxs(m.Fragment,{children:[m.jsxs(Le.Table,{"aria-label":"Simple table",ouiaId:"simple-table",variant:e.compact||D.tableLayout==="compact"?"compact":void 0,borders:!e.borderless,gridBreakPoint:"",isStickyHeader:!0,className:"page-table",children:[m.jsx(qce,{...e,showSelect:S,scrollLeft:_.left>0,scrollRight:_.right>1,tableColumns:g,onSelect:d,expandedRow:b}),m.jsx(Le.Tbody,{children:t.map((A,M)=>m.jsx(Yce,{columns:g,item:A,isItemSelected:i==null?void 0:i(A),isSelectMultiple:o,selectItem:n,unselectItem:r,rowActions:s,rowIndex:M,showSelect:S,scrollLeft:_.left>0,scrollRight:_.right>1,unselectAll:f,onSelect:d,expandedRow:b,isLastRow:M===t.length-1,disableLastRowBorder:e.disableLastRowBorder,maxSelections:h,selectedItems:e.selectedItems,defaultExpandedRows:e.defaultExpandedRows},a?a(A):M))})]}),c===0&&m.jsxs(C.EmptyState,{isFullHeight:!0,children:[m.jsx(C.EmptyStateHeader,{titleText:m.jsx(m.Fragment,{children:x.noResultsFound}),icon:m.jsx(C.EmptyStateIcon,{icon:e.emptyStateIcon??ve.SearchIcon}),headingLevel:"h2"}),m.jsx(C.EmptyStateBody,{children:x.noResultsMatchCriteria}),m.jsx(C.EmptyStateFooter,{children:u&&m.jsx(C.EmptyStateActions,{children:m.jsx(C.Button,{variant:"primary",onClick:u,children:x.clearAllFilters})})})]})]}),e.scrollTopContent||(j=m.jsx(Gce,{className:"pf-v5-c-scroll-inner-wrapper",ref:w,onScroll:T,style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--100)"},children:j})),j}function qce(e){const{tableColumns:t,rowActions:n,sort:r,setSort:i,sortDirection:o,setSortDirection:a,showSelect:s,onSelect:l,expandedRow:c}=e,u=y.useCallback((d,f)=>{if(f.sort)return{onSort:(h,g,p)=>{f.sort&&(i==null||i(f.sort),a==null||a(p))},sortBy:{index:f.sort===r?d:void 0,direction:f.sort===r?o:void 0,defaultDirection:f.defaultSortDirection},columnIndex:d}},[i,a,r,o]);return m.jsx(Le.Thead,{children:m.jsxs(Le.Tr,{className:"bg-lighten",children:[c&&m.jsx(Le.Th,{style:{padding:0},"aria-label":"Expand",className:"bg-lighten"}),(s||l)&&m.jsx(Le.Th,{"aria-label":"Select",isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"selections-column-header",className:e.scrollLeft?"bg-lighten-2":"bg-lighten",children:" "}),t.map((d,f)=>m.jsx(Le.Th,{"aria-label":d.header,sort:u(f,d),modifier:"nowrap",style:{minWidth:d.minWidth===0?"1%":d.minWidth!==void 0?d.minWidth:void 0,maxWidth:d.maxWidth!==void 0?d.maxWidth:void 0,width:d.fullWidth?"100%":void 0},"data-cy":Br(d.header+"-column-header"),className:"bg-lighten",children:d.header},d.header)),n!==void 0&&m.jsx(Le.Td,{"aria-label":"Actions",isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:0,zIndex:302},className:e.scrollRight?"pf-m-border-left bg-lighten-2":"bg-lighten","data-cy":"action-column-header",children:" "})]})})}function Yce(e){const{columns:t,unselectAll:n,selectItem:r,unselectItem:i,isItemSelected:o,isSelectMultiple:a,item:s,rowActions:l,rowIndex:c,showSelect:u,onSelect:d,expandedRow:f,disableLastRowBorder:h,maxSelections:g,selectedItems:p}=e,v=f==null?void 0:f(s),[b,x]=y.useState(!!e.defaultExpandedRows&&!!v),S=Bo(),w=y.useCallback(_=>(p==null?void 0:p.length)===g?!(p!=null&&p.includes(_)):!1,[g,p]);return m.jsxs(m.Fragment,{children:[m.jsxs(Le.Tr,{style:{boxShadow:"unset",borderBottom:b||e.isLastRow&&h?"unset":void 0,cursor:d?"pointer":"default"},"data-cy":"id"in s&&(typeof s.id=="string"||typeof s.id=="number")?`row-id-${s.id.toString()}`:`row-${c}`,className:o?"selected":void 0,onClick:()=>{d&&(a||n==null||n(),a&&o?i==null||i(s):r==null||r(s),d(s))},children:[f&&m.jsx(Le.Td,{expand:v?{rowIndex:c,isExpanded:b,onToggle:()=>x(_=>!_)}:void 0,style:{paddingLeft:v?8:4},"data-cy":"expand-column-cell"}),u&&m.jsx(Le.Td,{select:o!==void 0?{rowIndex:c,onSelect:(_,E)=>{E?r==null||r(s):i==null||i(s)},isSelected:o,isDisabled:g&&p?w(s):!1}:void 0,isStickyColumn:e.scrollLeft,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"checkbox-column-cell",className:e.scrollLeft?"bg-lighten":void 0}),d&&m.jsx(Le.Td,{select:{rowIndex:c,isSelected:o??!1,variant:a?"checkbox":"radio",isDisabled:g&&p?w(s):!1,props:{"aria-label":"Select row"}},isStickyColumn:e.scrollLeft,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"checkbox-column-cell",className:e.scrollLeft?"bg-lighten":void 0}),m.jsx(Kce,{columns:t,item:s,rowActions:l,scrollLeft:e.scrollLeft,scrollRight:e.scrollRight})]}),f&&b&&v&&m.jsxs(Le.Tr,{isExpanded:b,style:{boxShadow:"unset"},className:o?"selected":void 0,children:[m.jsx(Le.Td,{}),u&&m.jsx(Le.Th,{"aria-label":"Select",isStickyColumn:e.scrollLeft,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,className:e.scrollLeft?"bg-lighten":void 0}),d&&m.jsx(Le.Td,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft}),m.jsx(Le.Td,{colSpan:t.length,style:{paddingBottom:S.tableLayout==="compact"?12:24,paddingTop:0},children:m.jsx(Le.CollapseColumn,{children:v})}),l!==void 0&&l.length>0&&m.jsx(Le.Td,{isActionCell:!0,isStickyColumn:e.scrollRight,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:0},className:e.scrollRight?"pf-m-border-left bg-lighten":void 0,children:" "})]})]})}function Kce(e){const{columns:t,item:n,rowActions:r}=e,[i,o]=y.useState(!1);return m.jsxs(y.Fragment,{children:[t.map(a=>m.jsx(Le.Td,{dataLabel:a.header,modifier:"nowrap",style:{width:a.minWidth===0?"0%":void 0},"data-cy":Br(a.header+"-column-cell"),children:m.jsx(nn,{item:n,column:a})},a.header)),r!==void 0&&r.length>0&&m.jsx(Le.Td,{isActionCell:!0,isStickyColumn:e.scrollRight,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:8,zIndex:i?400:void 0},"data-cy":"actions-column-cell",className:e.scrollRight?"pf-m-border-left bg-lighten":void 0,children:m.jsx(Wr,{actions:r,selectedItem:n,position:"right",iconOnly:!0,onOpen:o})})]})}function Zce(e){return e.toLowerCase().split(" ").join("-")}function Xce(){const e=y.useRef(new AbortController);return y.useEffect(()=>{const t=e.current;return()=>t.abort()},[]),e.current}function RE(e){const{title:t,items:n,keyFn:r,actionColumns:i,actionFn:o,onComplete:a,onClose:s,processingText:l,isDanger:c,errorAdapter:u=Ql,description:d,statusParser:f}=e,{t:h}=Me(),[g]=Pt(),[p,v]=y.useState(!0),[b,x]=y.useState(!1),[S,w]=y.useState(0),[_,E]=y.useState(""),[O,T]=y.useState(),D=Xce(),[j,A]=Pi(),M=y.useCallback(()=>{x(!0),D.abort(),v(!1),T(U=>{const z={...U};for(const N of n){const R=r(N);z[R]===void 0&&(z[R]=h("Cancelled"))}return z})},[D,n,r,h]),P=y.useCallback(()=>{A(void 0),s==null||s(b?"canceled":_?"failures":"success",n.filter(U=>(O==null?void 0:O[r(U)])===null||(O==null?void 0:O[r(U)]).message),n.filter(U=>(O==null?void 0:O[r(U)])!==null&&typeof(O==null?void 0:O[r(U)])=="string"),n.filter(U=>(O==null?void 0:O[r(U)])===void 0))},[_,b,n,r,s,A,O]),$=y.useMemo(()=>D.signal.aborted?g.canceledText:_?g.errorText:p?l??g.processingText:g.successText,[D.signal.aborted,_,p,l,g.canceledText,g.errorText,g.processingText,g.successText]),L=y.useMemo(()=>{if(_||b)return C.ProgressVariant.danger;if(S===n.length)return C.ProgressVariant.success},[_,b,n.length,S]);y.useEffect(()=>{function U(R,J){if(D.signal.aborted)return;let ee;f&&(ee=f(J)),T(X=>({...X??{},[R]:ee!==void 0?ee:null}))}function z(R,J,ee){if(!D.signal.aborted){if(ee instanceof Error){const X=typeof J[0].message=="string"&&J.length===1?J[0].message:h("Unknown error");T(Q=>({...Q??{},[R]:X}))}else T(X=>({...X??{},[R]:h("Unknown error")}));E(g.errorText)}}async function N(){const R=gce(5);let J=0;const ee=[];await Promise.all(n.map(X=>R(async()=>{if(D.signal.aborted)return;const Q=r(X);try{const ie=await o(X,D.signal);U(Q,ie),ee.push(X)}catch(ie){const{genericErrors:ue,fieldErrors:de}=u(ie),K=[...ue,...de.filter(ne=>ne.message)];z(Q,K,ie)}finally{D.signal.aborted||w(++J)}}))),D.signal.aborted||v(!1),a==null||a(ee)}N()},[D,o,n,r,a,g.errorText,h,u,f]);const H=ec(n),q=Tf(i);return m.jsxs(C.Modal,{titleIconVariant:c?"warning":void 0,title:t,ouiaId:t,"aria-label":t,description:d,variant:C.ModalVariant.medium,isOpen:!0,onClose:()=>{M(),P()},actions:p?[m.jsx(C.Button,{variant:"link",onClick:M,children:g.cancelText},"cancel")]:[m.jsx(C.Button,{variant:"secondary",onClick:P,children:g.closeText},"close")],hasNoBodyWrapper:!0,children:[m.jsx(C.ModalBoxBody,{style:{paddingBottom:0,paddingLeft:0,paddingRight:0},children:m.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:560,overflow:"hidden",borderTop:"thin solid var(--pf-v5-global--BorderColor--100)"},children:m.jsx(tc,{pageItems:[...H.paged],itemCount:n.length,tableColumns:[...q,{header:h("Status"),cell:U=>{const z=r(U),N=O==null?void 0:O[z];return N===void 0?m.jsxs("span",{style:{color:Uh},children:[m.jsx(ve.PendingIcon,{})," ",g.pendingText]}):N===null?m.jsxs("span",{style:{color:Rh},children:[m.jsx(ve.CheckCircleIcon,{})," ",g.successText]}):N.message&&N.url?m.jsx("a",{href:N.url,children:N.message}):m.jsxs("span",{style:{color:Vh},children:[m.jsx(ve.ExclamationCircleIcon,{})," ",O==null?void 0:O[z]]})}}],keyFn:r,compact:!0,errorStateTitle:"",emptyStateTitle:h("No items"),autoHidePagination:!0,disableBodyPadding:!0,...H},"status")})}),m.jsx(C.ModalBoxBody,{style:{paddingTop:0},children:m.jsx(C.Progress,{"data-cy":"progress",value:S/n.length*100,title:$,size:C.ProgressSize.lg,variant:L})})]})}function VE(e=Ql,t){const[n,r]=Pi(),[i,o]=y.useState();return y.useEffect(()=>{if(i){const a=(s,l,c,u)=>{var d;o(void 0),(d=i.onClose)==null||d.call(i,s,l,c,u)};r(m.jsx(RE,{...i,errorAdapter:i.errorAdapter??e,statusParser:i.statusParser??t,onClose:a}))}else r(void 0)},[i,r,e,t]),o}function UE(e,t){if(e===void 0&&t===void 0)return 0;if(e===void 0)return 1;if(t===void 0)return-1;if(typeof e=="string"){if(typeof t=="string")return nc(e,t);if(typeof t=="number")return nc(e,t.toString())}else if(typeof e=="number"){if(typeof t=="number")return HE(e,t);if(typeof t=="string")return nc(e.toString(),t)}return 0}function nc(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}function HE(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}const Jce=De.div`
|
419
419
|
display: flex;
|
420
420
|
flex-direction: column;
|
421
421
|
max-height: 560px;
|
@@ -426,13 +426,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[ru]+=1);const iu=De.button`
|
|
426
426
|
height: 64px;
|
427
427
|
display: flex;
|
428
428
|
align-items: center;
|
429
|
-
`;function eue(e){const{title:t,items:n,keyFn:r,prompt:i,alertPrompts:o,confirmationColumns:a,isItemNonActionable:s,onConfirm:l,onClose:c,confirmText:u,actionButtonText:d,isDanger:f}=e,[h,g]=Pi(),[p]=Pt(),v=y.useCallback(()=>{g(void 0),c==null||c()},[c,g]),b=y.useMemo(()=>s&&n.some(s)?n.sort((D,j)=>nc(s(D),s(j))):n,[n,s]),x=ec(b),[S,w]=y.useState(!u),_=y.useMemo(()=>s&&n.some(s)?[{header:"",cell:D=>s(D)?m.jsx(C.Tooltip,{content:s(D),trigger:s(D)?void 0:"manual",children:m.jsx(C.Icon,{status:"warning",children:m.jsx(ve.ExclamationTriangleIcon,{})})}):null},...a]:a,[a,s,n]),E=y.useMemo(()=>s?n.filter(D=>!s(D)):n,[s,n]),O=Tf(_),{t:T}=Me();return m.jsx(C.Modal,{titleIconVariant:f?"warning":void 0,title:t,"aria-label":t,ouiaId:t,description:i,variant:C.ModalVariant.medium,isOpen:!0,onClose:v,actions:[m.jsx(C.Button,{id:"submit",ouiaId:"submit",variant:f?"danger":"primary",onClick:()=>{v(),l()},isAriaDisabled:!S,children:d},"submit"),m.jsx(C.Button,{id:"cancel",variant:"link",onClick:c,children:p.cancelText},"cancel")],hasNoBodyWrapper:!0,children:n.length>0&&m.jsxs(C.ModalBoxBody,{style:{paddingLeft:0,paddingRight:0},children:[m.jsxs(Jce,{children:[o&&o.length>0&&o.map((D,j)=>m.jsx(C.Alert,{"data-cy":"alert-toaster",isInline:!0,title:D,variant:"warning"},j)),m.jsx(tc,{pageItems:x.paged,itemCount:n.length,tableColumns:O,keyFn:r,compact:!0,errorStateTitle:T("Error"),emptyStateTitle:T("No items"),autoHidePagination:!0,disableBodyPadding:!0,...x},"items")]}),u&&E.length>0&&m.jsx(Qce,{children:m.jsx(C.Checkbox,{id:"confirm",ouiaId:"confirm",label:u,isChecked:S,onChange:(D,j)=>w(j)})})]})})}function tue(){const[e,t]=Pi(),[n,r]=y.useState();return y.useEffect(()=>{if(n){const i=()=>{var o;r(void 0),(o=n.onClose)==null||o.call(n)};t(m.jsx(eue,{...n,onClose:i}))}else t(void 0)},[n,t]),r}function nue(e=Ql,t){const n=tue(),r=VE();return y.useCallback(i=>{const o={...i,errorAdapter:e,statusParser:t};return i.isItemNonActionable&&i.isItemNonActionable!==void 0&&(o.items=i.items.filter(a=>i.isItemNonActionable!==void 0&&!i.isItemNonActionable(a))),n({...i,onConfirm:()=>r(o)})},[r,n,e,t])}function rue(e){const{view:t,tableColumns:n,toolbarFilters:r,maxSelections:i,labelForSelectedItems:o,isCompact:a}=e,[s]=Pt();return t.itemCount===void 0&&t.error===void 0?m.jsx(C.Skeleton,{height:"80px"}):m.jsxs(m.Fragment,{children:[m.jsxs(C.Split,{hasGutter:!0,children:[m.jsx(C.SplitItem,{style:{fontWeight:"bold",whiteSpace:"nowrap"},children:o??s.selectedText}),t.selectedItems.length>0?m.jsx(C.LabelGroup,{children:t.selectedItems.map((l,c)=>n&&n.length>0?m.jsx(C.Label,{onClose:()=>t.unselectItem(l),children:m.jsx(nn,{item:l,column:n.find(u=>u.card==="name"||u.list==="name")??n[0]})},c):m.jsx(m.Fragment,{}))}):m.jsx(C.SplitItem,{style:{fontStyle:"italic"},children:s.noneSelectedText})]}),m.jsx(tc,{tableColumns:n,toolbarFilters:r,...t,emptyStateTitle:e.emptyStateTitle??s.noItemsFound,errorStateTitle:e.errorStateTitle??s.errorText,showSelect:!0,disableCardView:!0,disableListView:!0,compact:a,disableBodyPadding:!0,maxSelections:i})]})}function iue(e){const{title:t,description:n,view:r,tableColumns:i,toolbarFilters:o,emptyStateTitle:a,errorStateTitle:s,confirmText:l,cancelText:c,onSelect:u,maxSelections:d,allowZeroSelections:f}=e,[h,g]=Pi();let p=y.useCallback(()=>g(void 0),[g]);e.onClose&&(p=e.onClose);const[v]=Pt(),b=Tf(i);return m.jsx(C.Modal,{title:t,"aria-label":t,ouiaId:t,description:n,isOpen:!0,onClose:p,variant:C.ModalVariant.medium,tabIndex:0,actions:[m.jsx(C.Button,{variant:"primary",id:"submit",onClick:()=>{p(),u(r.selectedItems)},isAriaDisabled:r.selectedItems.length===0&&!f,children:l??v.confirmText},"submit"),m.jsx(C.Button,{id:"cancel",variant:"link",onClick:p,children:c??v.cancelText},"cancel")],hasNoBodyWrapper:!0,children:m.jsx(C.ModalBoxBody,{style:{overflow:"hidden"},children:m.jsx(rue,{view:r,tableColumns:b,toolbarFilters:o,emptyStateTitle:a,errorStateTitle:s,maxSelections:d,isCompact:!0})})})}function oue(e){const{view:t,tableColumns:n,toolbarFilters:r,confirm:i,cancel:o,selected:a,isMultiple:s}=e,[l,c]=y.useState(""),[u,d]=y.useState(),f=y.useCallback((p,v)=>{c(v??""),d(()=>p)},[]),[h,g]=Pi();return y.useEffect(()=>{u!==void 0?g(m.jsx(GE,{title:l,open:!0,isMultiple:s,setOpen:()=>d(void 0),onSelect:u,view:t,tableColumns:n,toolbarFilters:r,confirm:i,cancel:o,selected:a,keyFn:t.keyFn})):(g(void 0),t.unselectAll())},[o,i,u,a,g,n,l,r,t,s]),f}function GE(e){const{title:t,open:n,isMultiple:r=!1,setOpen:i,onSelect:o,view:a,tableColumns:s,toolbarFilters:l,confirm:c,cancel:u,selected:d}=e,f=()=>i(!1),{t:h}=Me();return m.jsxs(C.Modal,{title:t,"aria-label":t,ouiaId:`${t}-dialog`,isOpen:n,onClose:f,variant:C.ModalVariant.medium,tabIndex:0,actions:[m.jsx(C.Button,{variant:"primary",onClick:()=>{!r&&a.selectedItems.length>0?o(a.selectedItems[0]):r&&o(a.selectedItems),f()},isAriaDisabled:a.selectedItems.length===0,children:c},"confirm"),m.jsx(C.Button,{variant:"link",onClick:f,children:u},"cancel")],hasNoBodyWrapper:!0,children:[m.jsx(C.ModalBoxBody,{style:{overflow:"hidden"},children:m.jsxs(C.Split,{hasGutter:!0,children:[m.jsx(C.SplitItem,{style:{fontWeight:"bold"},children:d}),a.selectedItems.length>0?m.jsx(C.ChipGroup,{children:a.selectedItems.map((g,p)=>s&&s.length>0?m.jsx(C.Chip,{onClick:()=>a.unselectItem(g),children:m.jsx(nn,{item:g,column:s.find(v=>v.card==="name"||v.list==="name")??s[0]})},p):m.jsx(m.Fragment,{}))}):m.jsx(C.SplitItem,{style:{fontStyle:"italic"},children:h`None - Please make a selection below.`})]})}),m.jsx(Sh,{open:a.itemCount===void 0,children:m.jsx(C.Skeleton,{height:"80px"})}),m.jsx(Sh,{open:a.itemCount!==void 0,children:m.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:500,overflow:"hidden"},children:m.jsx(tc,{tableColumns:s,toolbarFilters:l,emptyStateTitle:h("No items found"),errorStateTitle:h("Error loading items"),...a,isSelectMultiple:r,onSelect:()=>null,disableCardView:!0,disableListView:!0,compact:!0,disableBodyPadding:!0})})})]})}function qE(){const{t:e}=Me(),t=Ot.useNavigate();return m.jsxs(C.EmptyState,{isFullHeight:!0,children:[m.jsx(C.EmptyStateHeader,{titleText:m.jsx(m.Fragment,{children:e("Page not found")}),icon:m.jsx(C.EmptyStateIcon,{icon:ve.ExclamationCircleIcon}),headingLevel:"h2"}),m.jsx(C.EmptyStateBody,{children:e("We could not find that page.")}),m.jsx(C.EmptyStateFooter,{children:m.jsx(C.EmptyStateActions,{children:m.jsxs(C.Stack,{hasGutter:!0,children:[m.jsx(C.Button,{onClick:()=>t(-1),children:e("Return to previous page")}),m.jsx(C.Button,{component:n=>m.jsx(Ot.Link,{to:"/",...n}),children:e("Return to dashboard")})]})})})]})}function aue(){const{t:e}=Me(),t=Ot.useNavigate();return m.jsxs(C.EmptyState,{isFullHeight:!0,children:[m.jsx(C.EmptyStateHeader,{titleText:m.jsx(m.Fragment,{children:e("Under Development")}),icon:m.jsx(C.EmptyStateIcon,{icon:ve.WrenchIcon}),headingLevel:"h2"}),m.jsx(C.EmptyStateFooter,{children:m.jsx(C.EmptyStateActions,{children:m.jsxs(C.Stack,{hasGutter:!0,children:[m.jsx(C.Button,{onClick:()=>t(-1),children:e("Return to previous page")}),m.jsx(C.Button,{component:n=>m.jsx(Ot.Link,{to:"/",...n}),children:e("Return to dashboard")})]})})})]})}var rc=e=>e.type==="checkbox",ks=e=>e instanceof Date,Sn=e=>e==null;const YE=e=>typeof e=="object";var Wt=e=>!Sn(e)&&!Array.isArray(e)&&YE(e)&&!ks(e),KE=e=>Wt(e)&&e.target?rc(e.target)?e.target.checked:e.target.value:e,sue=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,ZE=(e,t)=>e.has(sue(t)),lue=e=>{const t=e.constructor&&e.constructor.prototype;return Wt(t)&&t.hasOwnProperty("isPrototypeOf")},Vp=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function In(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Vp&&(e instanceof Blob||e instanceof FileList))&&(n||Wt(e)))if(t=n?[]:{},!n&&!lue(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=In(e[r]));else return e;return t}var Df=e=>Array.isArray(e)?e.filter(Boolean):[],Dt=e=>e===void 0,me=(e,t,n)=>{if(!t||!Wt(e))return n;const r=Df(t.split(/[,[\].]+?/)).reduce((i,o)=>Sn(i)?i:i[o],e);return Dt(r)||r===e?Dt(e[t])?n:e[t]:r},fr=e=>typeof e=="boolean",Up=e=>/^\w*$/.test(e),XE=e=>Df(e.replace(/["|']|\]/g,"").split(/\.|\[/)),lt=(e,t,n)=>{let r=-1;const i=Up(t)?[t]:XE(t),o=i.length,a=o-1;for(;++r<o;){const s=i[r];let l=n;if(r!==a){const c=e[s];l=Wt(c)||Array.isArray(c)?c:isNaN(+i[r+1])?{}:[]}if(s==="__proto__")return;e[s]=l,e=e[s]}return e};const jf={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Pr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Mi={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},JE=y.createContext(null),Yr=()=>y.useContext(JE),QE=e=>{const{children:t,...n}=e;return y.createElement(JE.Provider,{value:n},t)};var eO=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const a=o;return t._proxyFormState[a]!==Pr.all&&(t._proxyFormState[a]=!r||Pr.all),n&&(n[a]=!0),e[a]}});return i},Ln=e=>Wt(e)&&!Object.keys(e).length,tO=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return Ln(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!r||Pr.all))},ic=e=>Array.isArray(e)?e:[e],nO=(e,t,n)=>!e||!t||e===t||ic(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Hp(e){const t=y.useRef(e);t.current=e,y.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function Gp(e){const t=Yr(),{control:n=t.control,disabled:r,name:i,exact:o}=e||{},[a,s]=y.useState(n._formState),l=y.useRef(!0),c=y.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=y.useRef(i);return u.current=i,Hp({disabled:r,next:d=>l.current&&nO(u.current,d.name,o)&&tO(d,c.current,n._updateFormState)&&s({...n._formState,...d}),subject:n._subjects.state}),y.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),eO(a,n,c.current,!1)}var Kr=e=>typeof e=="string",rO=(e,t,n,r,i)=>Kr(e)?(r&&t.watch.add(e),me(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),me(n,o))):(r&&(t.watchAll=!0),n);function iO(e){const t=Yr(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e||{},s=y.useRef(r);s.current=r,Hp({disabled:o,subject:n._subjects.values,next:u=>{nO(s.current,u.name,a)&&c(In(rO(s.current,n._names,u.values||n._formValues,!1,i)))}});const[l,c]=y.useState(n._getWatch(r,i));return y.useEffect(()=>n._removeUnmounted()),l}function cue(e){const t=Yr(),{name:n,disabled:r,control:i=t.control,shouldUnregister:o}=e,a=ZE(i._names.array,n),s=iO({control:i,name:n,defaultValue:me(i._formValues,n,me(i._defaultValues,n,e.defaultValue)),exact:!0}),l=Gp({control:i,name:n,exact:!0}),c=y.useRef(i.register(n,{...e.rules,value:s,...fr(e.disabled)?{disabled:e.disabled}:{}}));return y.useEffect(()=>{const u=i._options.shouldUnregister||o,d=(f,h)=>{const g=me(i._fields,f);g&&g._f&&(g._f.mount=h)};if(d(n,!0),u){const f=In(me(i._options.defaultValues,n));lt(i._defaultValues,n,f),Dt(me(i._formValues,n))&<(i._formValues,n,f)}return()=>{(a?u&&!i._state.action:u)?i.unregister(n):d(n,!1)}},[n,i,a,o]),y.useEffect(()=>{me(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:me(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:s,...fr(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:y.useCallback(u=>c.current.onChange({target:{value:KE(u),name:n},type:jf.CHANGE}),[n]),onBlur:y.useCallback(()=>c.current.onBlur({target:{value:me(i._formValues,n),name:n},type:jf.BLUR}),[n,i]),ref:y.useCallback(u=>{const d=me(i._fields,n);d&&u&&(d._f.ref={focus:()=>u.focus(),select:()=>u.select(),setCustomValidity:f=>u.setCustomValidity(f),reportValidity:()=>u.reportValidity()})},[i._fields,n])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!me(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!me(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!me(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!me(l.validatingFields,n)},error:{enumerable:!0,get:()=>me(l.errors,n)}})}}const Ts=e=>e.render(cue(e));var uue=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},oO=e=>({isOnSubmit:!e||e===Pr.onSubmit,isOnBlur:e===Pr.onBlur,isOnChange:e===Pr.onChange,isOnAll:e===Pr.all,isOnTouch:e===Pr.onTouched}),aO=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const oc=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=me(e,i);if(o){const{_f:a,...s}=o;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!r)return!0;if(a.ref&&t(a.ref,a.name)&&!r)return!0;if(oc(s,t))break}else if(Wt(s)&&oc(s,t))break}}};var due=(e,t,n)=>{const r=ic(me(e,n));return lt(r,"root",t[n]),lt(e,n,r),e},qp=e=>e.type==="file",$i=e=>typeof e=="function",Pf=e=>{if(!Vp)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Mf=e=>Kr(e),Yp=e=>e.type==="radio",$f=e=>e instanceof RegExp;const sO={value:!1,isValid:!1},lO={value:!0,isValid:!0};var cO=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Dt(e[0].attributes.value)?Dt(e[0].value)||e[0].value===""?lO:{value:e[0].value,isValid:!0}:lO:sO}return sO};const uO={isValid:!1,value:null};var dO=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,uO):uO;function fO(e,t,n="validate"){if(Mf(e)||Array.isArray(e)&&e.every(Mf)||fr(e)&&!e)return{type:n,message:Mf(e)?e:"",ref:t}}var As=e=>Wt(e)&&!$f(e)?e:{value:e,message:""},hO=async(e,t,n,r,i)=>{const{ref:o,refs:a,required:s,maxLength:l,minLength:c,min:u,max:d,pattern:f,validate:h,name:g,valueAsNumber:p,mount:v,disabled:b}=e._f,x=me(t,g);if(!v||b)return{};const S=a?a[0]:o,w=M=>{r&&S.reportValidity&&(S.setCustomValidity(fr(M)?"":M||""),S.reportValidity())},_={},E=Yp(o),O=rc(o),T=E||O,D=(p||qp(o))&&Dt(o.value)&&Dt(x)||Pf(o)&&o.value===""||x===""||Array.isArray(x)&&!x.length,j=uue.bind(null,g,n,_),A=(M,P,$,L=Mi.maxLength,z=Mi.minLength)=>{const G=M?P:$;_[g]={type:M?L:z,message:G,ref:o,...j(M?L:z,G)}};if(i?!Array.isArray(x)||!x.length:s&&(!T&&(D||Sn(x))||fr(x)&&!x||O&&!cO(a).isValid||E&&!dO(a).isValid)){const{value:M,message:P}=Mf(s)?{value:!!s,message:s}:As(s);if(M&&(_[g]={type:Mi.required,message:P,ref:S,...j(Mi.required,P)},!n))return w(P),_}if(!D&&(!Sn(u)||!Sn(d))){let M,P;const $=As(d),L=As(u);if(!Sn(x)&&!isNaN(x)){const z=o.valueAsNumber||x&&+x;Sn($.value)||(M=z>$.value),Sn(L.value)||(P=z<L.value)}else{const z=o.valueAsDate||new Date(x),G=N=>new Date(new Date().toDateString()+" "+N),U=o.type=="time",V=o.type=="week";Kr($.value)&&x&&(M=U?G(x)>G($.value):V?x>$.value:z>new Date($.value)),Kr(L.value)&&x&&(P=U?G(x)<G(L.value):V?x<L.value:z<new Date(L.value))}if((M||P)&&(A(!!M,$.message,L.message,Mi.max,Mi.min),!n))return w(_[g].message),_}if((l||c)&&!D&&(Kr(x)||i&&Array.isArray(x))){const M=As(l),P=As(c),$=!Sn(M.value)&&x.length>+M.value,L=!Sn(P.value)&&x.length<+P.value;if(($||L)&&(A($,M.message,P.message),!n))return w(_[g].message),_}if(f&&!D&&Kr(x)){const{value:M,message:P}=As(f);if($f(M)&&!x.match(M)&&(_[g]={type:Mi.pattern,message:P,ref:o,...j(Mi.pattern,P)},!n))return w(P),_}if(h){if($i(h)){const M=await h(x,t),P=fO(M,S);if(P&&(_[g]={...P,...j(Mi.validate,P.message)},!n))return w(P.message),_}else if(Wt(h)){let M={};for(const P in h){if(!Ln(M)&&!n)break;const $=fO(await h[P](x,t),S,P);$&&(M={...$,...j(P,$.message)},w($.message),n&&(_[g]=M))}if(!Ln(M)&&(_[g]={ref:S,...M},!n))return _}}return w(!0),_};function fue(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Dt(e)?r++:e[t[r++]];return e}function hue(e){for(const t in e)if(e.hasOwnProperty(t)&&!Dt(e[t]))return!1;return!0}function Kt(e,t){const n=Array.isArray(t)?t:Up(t)?[t]:XE(t),r=n.length===1?e:fue(e,n),i=n.length-1,o=n[i];return r&&delete r[o],i!==0&&(Wt(r)&&Ln(r)||Array.isArray(r)&&hue(r))&&Kt(e,n.slice(0,-1)),e}var Kp=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},If=e=>Sn(e)||!YE(e);function vo(e,t){if(If(e)||If(t))return e===t;if(ks(e)&&ks(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const a=t[i];if(ks(o)&&ks(a)||Wt(o)&&Wt(a)||Array.isArray(o)&&Array.isArray(a)?!vo(o,a):o!==a)return!1}}return!0}var mO=e=>e.type==="select-multiple",mue=e=>Yp(e)||rc(e),Zp=e=>Pf(e)&&e.isConnected,gO=e=>{for(const t in e)if($i(e[t]))return!0;return!1};function Lf(e,t={}){const n=Array.isArray(e);if(Wt(e)||n)for(const r in e)Array.isArray(e[r])||Wt(e[r])&&!gO(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Lf(e[r],t[r])):Sn(e[r])||(t[r]=!0);return t}function pO(e,t,n){const r=Array.isArray(e);if(Wt(e)||r)for(const i in e)Array.isArray(e[i])||Wt(e[i])&&!gO(e[i])?Dt(t)||If(n[i])?n[i]=Array.isArray(e[i])?Lf(e[i],[]):{...Lf(e[i])}:pO(e[i],Sn(t)?{}:t[i],n[i]):n[i]=!vo(e[i],t[i]);return n}var Ff=(e,t)=>pO(e,t,Lf(t)),yO=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Dt(e)?e:t?e===""?NaN:e&&+e:n&&Kr(e)?new Date(e):r?r(e):e;function Xp(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return qp(t)?t.files:Yp(t)?dO(e.refs).value:mO(t)?[...t.selectedOptions].map(({value:n})=>n):rc(t)?cO(e.refs).value:yO(Dt(t.value)?e.ref.value:t.value,e)}var gue=(e,t,n,r)=>{const i={};for(const o of e){const a=me(t,o);a&<(i,o,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},ac=e=>Dt(e)?e:$f(e)?e.source:Wt(e)?$f(e.value)?e.value.source:e.value:e;const vO="AsyncFunction";var pue=e=>(!e||!e.validate)&&!!($i(e.validate)&&e.validate.constructor.name===vO||Wt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===vO)),yue=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function bO(e,t,n){const r=me(e,n);if(r||Up(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),a=me(t,o),s=me(e,o);if(a&&!Array.isArray(a)&&n!==o)return{name:n};if(s&&s.type)return{name:o,error:s};i.pop()}return{name:n}}var vue=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,bue=(e,t)=>!Df(me(e,t)).length&&Kt(e,t);const xue={mode:Pr.onSubmit,reValidateMode:Pr.onChange,shouldFocusError:!0};function _ue(e={}){let t={...xue,...e},n={submitCount:0,isDirty:!1,isLoading:$i(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=Wt(t.defaultValues)||Wt(t.values)?In(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:In(i),a={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:Kp(),array:Kp(),state:Kp()},f=oO(t.mode),h=oO(t.reValidateMode),g=t.criteriaMode===Pr.all,p=I=>R=>{clearTimeout(c),c=setTimeout(I,R)},v=async I=>{if(u.isValid||I){const R=t.resolver?Ln((await T()).errors):await j(r,!0);R!==n.isValid&&d.state.next({isValid:R})}},b=(I,R)=>{(u.isValidating||u.validatingFields)&&((I||Array.from(s.mount)).forEach(q=>{q&&(R?lt(n.validatingFields,q,R):Kt(n.validatingFields,q))}),d.state.next({validatingFields:n.validatingFields,isValidating:!Ln(n.validatingFields)}))},x=(I,R=[],q,de,fe=!0,oe=!0)=>{if(de&&q){if(a.action=!0,oe&&Array.isArray(me(r,I))){const Y=q(me(r,I),de.argA,de.argB);fe&<(r,I,Y)}if(oe&&Array.isArray(me(n.errors,I))){const Y=q(me(n.errors,I),de.argA,de.argB);fe&<(n.errors,I,Y),bue(n.errors,I)}if(u.touchedFields&&oe&&Array.isArray(me(n.touchedFields,I))){const Y=q(me(n.touchedFields,I),de.argA,de.argB);fe&<(n.touchedFields,I,Y)}u.dirtyFields&&(n.dirtyFields=Ff(i,o)),d.state.next({name:I,isDirty:M(I,R),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else lt(o,I,R)},S=(I,R)=>{lt(n.errors,I,R),d.state.next({errors:n.errors})},w=I=>{n.errors=I,d.state.next({errors:n.errors,isValid:!1})},_=(I,R,q,de)=>{const fe=me(r,I);if(fe){const oe=me(o,I,Dt(q)?me(i,I):q);Dt(oe)||de&&de.defaultChecked||R?lt(o,I,R?oe:Xp(fe._f)):L(I,oe),a.mount&&v()}},E=(I,R,q,de,fe)=>{let oe=!1,Y=!1;const le={name:I},be=!!(me(r,I)&&me(r,I)._f&&me(r,I)._f.disabled);if(!q||de){u.isDirty&&(Y=n.isDirty,n.isDirty=le.isDirty=M(),oe=Y!==le.isDirty);const xe=be||vo(me(i,I),R);Y=!!(!be&&me(n.dirtyFields,I)),xe||be?Kt(n.dirtyFields,I):lt(n.dirtyFields,I,!0),le.dirtyFields=n.dirtyFields,oe=oe||u.dirtyFields&&Y!==!xe}if(q){const xe=me(n.touchedFields,I);xe||(lt(n.touchedFields,I,q),le.touchedFields=n.touchedFields,oe=oe||u.touchedFields&&xe!==q)}return oe&&fe&&d.state.next(le),oe?le:{}},O=(I,R,q,de)=>{const fe=me(n.errors,I),oe=u.isValid&&fr(R)&&n.isValid!==R;if(e.delayError&&q?(l=p(()=>S(I,q)),l(e.delayError)):(clearTimeout(c),l=null,q?lt(n.errors,I,q):Kt(n.errors,I)),(q?!vo(fe,q):fe)||!Ln(de)||oe){const Y={...de,...oe&&fr(R)?{isValid:R}:{},errors:n.errors,name:I};n={...n,...Y},d.state.next(Y)}},T=async I=>{b(I,!0);const R=await t.resolver(o,t.context,gue(I||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return b(I),R},D=async I=>{const{errors:R}=await T(I);if(I)for(const q of I){const de=me(R,q);de?lt(n.errors,q,de):Kt(n.errors,q)}else n.errors=R;return R},j=async(I,R,q={valid:!0})=>{for(const de in I){const fe=I[de];if(fe){const{_f:oe,...Y}=fe;if(oe){const le=s.array.has(oe.name),be=fe._f&&pue(fe._f);be&&u.validatingFields&&b([de],!0);const xe=await hO(fe,o,g,t.shouldUseNativeValidation&&!R,le);if(be&&u.validatingFields&&b([de]),xe[oe.name]&&(q.valid=!1,R))break;!R&&(me(xe,oe.name)?le?due(n.errors,xe,oe.name):lt(n.errors,oe.name,xe[oe.name]):Kt(n.errors,oe.name))}!Ln(Y)&&await j(Y,R,q)}}return q.valid},A=()=>{for(const I of s.unMount){const R=me(r,I);R&&(R._f.refs?R._f.refs.every(q=>!Zp(q)):!Zp(R._f.ref))&&ie(I)}s.unMount=new Set},M=(I,R)=>(I&&R&<(o,I,R),!vo(H(),i)),P=(I,R,q)=>rO(I,s,{...a.mount?o:Dt(R)?i:Kr(I)?{[I]:R}:R},q,R),$=I=>Df(me(a.mount?o:i,I,e.shouldUnregister?me(i,I,[]):[])),L=(I,R,q={})=>{const de=me(r,I);let fe=R;if(de){const oe=de._f;oe&&(!oe.disabled&<(o,I,yO(R,oe)),fe=Pf(oe.ref)&&Sn(R)?"":R,mO(oe.ref)?[...oe.ref.options].forEach(Y=>Y.selected=fe.includes(Y.value)):oe.refs?rc(oe.ref)?oe.refs.length>1?oe.refs.forEach(Y=>(!Y.defaultChecked||!Y.disabled)&&(Y.checked=Array.isArray(fe)?!!fe.find(le=>le===Y.value):fe===Y.value)):oe.refs[0]&&(oe.refs[0].checked=!!fe):oe.refs.forEach(Y=>Y.checked=Y.value===fe):qp(oe.ref)?oe.ref.value="":(oe.ref.value=fe,oe.ref.type||d.values.next({name:I,values:{...o}})))}(q.shouldDirty||q.shouldTouch)&&E(I,fe,q.shouldTouch,q.shouldDirty,!0),q.shouldValidate&&N(I)},z=(I,R,q)=>{for(const de in R){const fe=R[de],oe=`${I}.${de}`,Y=me(r,oe);(s.array.has(I)||!If(fe)||Y&&!Y._f)&&!ks(fe)?z(oe,fe,q):L(oe,fe,q)}},G=(I,R,q={})=>{const de=me(r,I),fe=s.array.has(I),oe=In(R);lt(o,I,oe),fe?(d.array.next({name:I,values:{...o}}),(u.isDirty||u.dirtyFields)&&q.shouldDirty&&d.state.next({name:I,dirtyFields:Ff(i,o),isDirty:M(I,oe)})):de&&!de._f&&!Sn(oe)?z(I,oe,q):L(I,oe,q),aO(I,s)&&d.state.next({...n}),d.values.next({name:a.mount?I:void 0,values:{...o}})},U=async I=>{a.mount=!0;const R=I.target;let q=R.name,de=!0;const fe=me(r,q),oe=()=>R.type?Xp(fe._f):KE(I),Y=le=>{de=Number.isNaN(le)||vo(le,me(o,q,le))};if(fe){let le,be;const xe=oe(),Ne=I.type===jf.BLUR||I.type===jf.FOCUS_OUT,Re=!yue(fe._f)&&!t.resolver&&!me(n.errors,q)&&!fe._f.deps||vue(Ne,me(n.touchedFields,q),n.isSubmitted,h,f),nt=aO(q,s,Ne);lt(o,q,xe),Ne?(fe._f.onBlur&&fe._f.onBlur(I),l&&l(0)):fe._f.onChange&&fe._f.onChange(I);const wt=E(q,xe,Ne,!1),jt=!Ln(wt)||nt;if(!Ne&&d.values.next({name:q,type:I.type,values:{...o}}),Re)return u.isValid&&(e.mode==="onBlur"?Ne&&v():v()),jt&&d.state.next({name:q,...nt?{}:wt});if(!Ne&&nt&&d.state.next({...n}),t.resolver){const{errors:Ct}=await T([q]);if(Y(xe),de){const We=bO(n.errors,r,q),Pe=bO(Ct,r,We.name||q);le=Pe.error,q=Pe.name,be=Ln(Ct)}}else b([q],!0),le=(await hO(fe,o,g,t.shouldUseNativeValidation))[q],b([q]),Y(xe),de&&(le?be=!1:u.isValid&&(be=await j(r,!0)));de&&(fe._f.deps&&N(fe._f.deps),O(q,be,le,wt))}},V=(I,R)=>{if(me(n.errors,R)&&I.focus)return I.focus(),1},N=async(I,R={})=>{let q,de;const fe=ic(I);if(t.resolver){const oe=await D(Dt(I)?I:fe);q=Ln(oe),de=I?!fe.some(Y=>me(oe,Y)):q}else I?(de=(await Promise.all(fe.map(async oe=>{const Y=me(r,oe);return await j(Y&&Y._f?{[oe]:Y}:Y)}))).every(Boolean),!(!de&&!n.isValid)&&v()):de=q=await j(r);return d.state.next({...!Kr(I)||u.isValid&&q!==n.isValid?{}:{name:I},...t.resolver||!I?{isValid:q}:{},errors:n.errors}),R.shouldFocus&&!de&&oc(r,V,I?fe:s.mount),de},H=I=>{const R={...a.mount?o:i};return Dt(I)?R:Kr(I)?me(R,I):I.map(q=>me(R,q))},Q=(I,R)=>({invalid:!!me((R||n).errors,I),isDirty:!!me((R||n).dirtyFields,I),error:me((R||n).errors,I),isValidating:!!me(n.validatingFields,I),isTouched:!!me((R||n).touchedFields,I)}),ee=I=>{I&&ic(I).forEach(R=>Kt(n.errors,R)),d.state.next({errors:I?n.errors:{}})},X=(I,R,q)=>{const de=(me(r,I,{_f:{}})._f||{}).ref,fe=me(n.errors,I)||{},{ref:oe,message:Y,type:le,...be}=fe;lt(n.errors,I,{...be,...R,ref:de}),d.state.next({name:I,errors:n.errors,isValid:!1}),q&&q.shouldFocus&&de&&de.focus&&de.focus()},J=(I,R)=>$i(I)?d.values.subscribe({next:q=>I(P(void 0,R),q)}):P(I,R,!0),ie=(I,R={})=>{for(const q of I?ic(I):s.mount)s.mount.delete(q),s.array.delete(q),R.keepValue||(Kt(r,q),Kt(o,q)),!R.keepError&&Kt(n.errors,q),!R.keepDirty&&Kt(n.dirtyFields,q),!R.keepTouched&&Kt(n.touchedFields,q),!R.keepIsValidating&&Kt(n.validatingFields,q),!t.shouldUnregister&&!R.keepDefaultValue&&Kt(i,q);d.values.next({values:{...o}}),d.state.next({...n,...R.keepDirty?{isDirty:M()}:{}}),!R.keepIsValid&&v()},ue=({disabled:I,name:R,field:q,fields:de,value:fe})=>{if(fr(I)&&a.mount||I){const oe=I?void 0:Dt(fe)?Xp(q?q._f:me(de,R)._f):fe;lt(o,R,oe),E(R,oe,!1,!1,!0)}},he=(I,R={})=>{let q=me(r,I);const de=fr(R.disabled)||fr(e.disabled);return lt(r,I,{...q||{},_f:{...q&&q._f?q._f:{ref:{name:I}},name:I,mount:!0,...R}}),s.mount.add(I),q?ue({field:q,disabled:fr(R.disabled)?R.disabled:e.disabled,name:I,value:R.value}):_(I,!0,R.value),{...de?{disabled:R.disabled||e.disabled}:{},...t.progressive?{required:!!R.required,min:ac(R.min),max:ac(R.max),minLength:ac(R.minLength),maxLength:ac(R.maxLength),pattern:ac(R.pattern)}:{},name:I,onChange:U,onBlur:U,ref:fe=>{if(fe){he(I,R),q=me(r,I);const oe=Dt(fe.value)&&fe.querySelectorAll&&fe.querySelectorAll("input,select,textarea")[0]||fe,Y=mue(oe),le=q._f.refs||[];if(Y?le.find(be=>be===oe):oe===q._f.ref)return;lt(r,I,{_f:{...q._f,...Y?{refs:[...le.filter(Zp),oe,...Array.isArray(me(i,I))?[{}]:[]],ref:{type:oe.type,name:I}}:{ref:oe}}}),_(I,!1,void 0,oe)}else q=me(r,I,{}),q._f&&(q._f.mount=!1),(t.shouldUnregister||R.shouldUnregister)&&!(ZE(s.array,I)&&a.action)&&s.unMount.add(I)}}},Z=()=>t.shouldFocusError&&oc(r,V,s.mount),ne=I=>{fr(I)&&(d.state.next({disabled:I}),oc(r,(R,q)=>{const de=me(r,q);de&&(R.disabled=de._f.disabled||I,Array.isArray(de._f.refs)&&de._f.refs.forEach(fe=>{fe.disabled=de._f.disabled||I}))},0,!1))},pe=(I,R)=>async q=>{let de;q&&(q.preventDefault&&q.preventDefault(),q.persist&&q.persist());let fe=In(o);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:oe,values:Y}=await T();n.errors=oe,fe=Y}else await j(r);if(Kt(n.errors,"root"),Ln(n.errors)){d.state.next({errors:{}});try{await I(fe,q)}catch(oe){de=oe}}else R&&await R({...n.errors},q),Z(),setTimeout(Z);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ln(n.errors)&&!de,submitCount:n.submitCount+1,errors:n.errors}),de)throw de},B=(I,R={})=>{me(r,I)&&(Dt(R.defaultValue)?G(I,In(me(i,I))):(G(I,R.defaultValue),lt(i,I,In(R.defaultValue))),R.keepTouched||Kt(n.touchedFields,I),R.keepDirty||(Kt(n.dirtyFields,I),n.isDirty=R.defaultValue?M(I,In(me(i,I))):M()),R.keepError||(Kt(n.errors,I),u.isValid&&v()),d.state.next({...n}))},ke=(I,R={})=>{const q=I?In(I):i,de=In(q),fe=Ln(I),oe=fe?i:de;if(R.keepDefaultValues||(i=q),!R.keepValues){if(R.keepDirtyValues)for(const Y of s.mount)me(n.dirtyFields,Y)?lt(oe,Y,me(o,Y)):G(Y,me(oe,Y));else{if(Vp&&Dt(I))for(const Y of s.mount){const le=me(r,Y);if(le&&le._f){const be=Array.isArray(le._f.refs)?le._f.refs[0]:le._f.ref;if(Pf(be)){const xe=be.closest("form");if(xe){xe.reset();break}}}}r={}}o=e.shouldUnregister?R.keepDefaultValues?In(i):{}:In(oe),d.array.next({values:{...oe}}),d.values.next({values:{...oe}})}s={mount:R.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!u.isValid||!!R.keepIsValid||!!R.keepDirtyValues,a.watch=!!e.shouldUnregister,d.state.next({submitCount:R.keepSubmitCount?n.submitCount:0,isDirty:fe?!1:R.keepDirty?n.isDirty:!!(R.keepDefaultValues&&!vo(I,i)),isSubmitted:R.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:fe?{}:R.keepDirtyValues?R.keepDefaultValues&&o?Ff(i,o):n.dirtyFields:R.keepDefaultValues&&I?Ff(i,I):R.keepDirty?n.dirtyFields:{},touchedFields:R.keepTouched?n.touchedFields:{},errors:R.keepErrors?n.errors:{},isSubmitSuccessful:R.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Ee=(I,R)=>ke($i(I)?I(o):I,R);return{control:{register:he,unregister:ie,getFieldState:Q,handleSubmit:pe,setError:X,_executeSchema:T,_getWatch:P,_getDirty:M,_updateValid:v,_removeUnmounted:A,_updateFieldArray:x,_updateDisabledField:ue,_getFieldArray:$,_reset:ke,_resetDefaultValues:()=>$i(t.defaultValues)&&t.defaultValues().then(I=>{Ee(I,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:I=>{n={...n,...I}},_disableForm:ne,_subjects:d,_proxyFormState:u,_setErrors:w,get _fields(){return r},get _formValues(){return o},get _state(){return a},set _state(I){a=I},get _defaultValues(){return i},get _names(){return s},set _names(I){s=I},get _formState(){return n},set _formState(I){n=I},get _options(){return t},set _options(I){t={...t,...I}}},trigger:N,register:he,handleSubmit:pe,watch:J,setValue:G,getValues:H,reset:Ee,resetField:B,clearErrors:ee,unregister:ie,setError:X,setFocus:(I,R={})=>{const q=me(r,I),de=q&&q._f;if(de){const fe=de.refs?de.refs[0]:de.ref;fe.focus&&(fe.focus(),R.shouldSelect&&fe.select())}},getFieldState:Q}}function xO(e={}){const t=y.useRef(),n=y.useRef(),[r,i]=y.useState({isDirty:!1,isValidating:!1,isLoading:$i(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:$i(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={..._ue(e),formState:r});const o=t.current.control;return o._options=e,Hp({subject:o._subjects.state,next:a=>{tO(a,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),y.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),y.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==r.isDirty&&o._subjects.state.next({isDirty:a})}},[o,r.isDirty]),y.useEffect(()=>{e.values&&!vo(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[e.values,o]),y.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),y.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),y.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=eO(r,o),t.current}const Sue=({error:e})=>typeof e=="string"?null:Array.isArray(e)&&e.length>1?m.jsx("ul",{children:e.map((t,n)=>m.jsx("li",{children:t},n))}):y.isValidElement(e)?m.jsx(m.Fragment,{children:e}):null;function _O({error:e,isMd:t,onCancel:n}){const{t:r}=Me();if(!e)return null;const i="24px",o=Array.isArray(e)&&e.length>1,a=t&&n?{paddingLeft:i}:void 0,l=typeof e=="string"?e:Array.isArray(e)&&e.length>0?e.length>1?r("Errors"):String(e[0]):r("Error");return m.jsx(C.Alert,{variant:"danger",title:l,isInline:!0,style:a,isExpandable:o,children:m.jsx(Sue,{error:e})})}function Jp(e){const{isSubmitting:t,errors:n}=Gp(),{clearErrors:r}=xO(),i=n&&Object.keys(n).length>0;return m.jsx(C.Button,{onClick:()=>{i&&r()},"data-cy":"Submit",type:"submit",isDisabled:t,isLoading:t,isDanger:i,variant:i?"secondary":void 0,style:e.style,children:e.children})}function SO(e){const[t,n]=y.useState(!1),r=()=>{n(!0),e.onCancel()};return m.jsx(C.Button,{"data-cy":"Cancel",type:"button",variant:"link",onClick:r,isLoading:t,children:e.children})}const wue=De(C.PageSection)`
|
429
|
+
`;function eue(e){const{title:t,items:n,keyFn:r,prompt:i,alertPrompts:o,confirmationColumns:a,isItemNonActionable:s,onConfirm:l,onClose:c,confirmText:u,actionButtonText:d,isDanger:f}=e,[h,g]=Pi(),[p]=Pt(),v=y.useCallback(()=>{g(void 0),c==null||c()},[c,g]),b=y.useMemo(()=>s&&n.some(s)?n.sort((D,j)=>nc(s(D),s(j))):n,[n,s]),x=ec(b),[S,w]=y.useState(!u),_=y.useMemo(()=>s&&n.some(s)?[{header:"",cell:D=>s(D)?m.jsx(C.Tooltip,{content:s(D),trigger:s(D)?void 0:"manual",children:m.jsx(C.Icon,{status:"warning",children:m.jsx(ve.ExclamationTriangleIcon,{})})}):null},...a]:a,[a,s,n]),E=y.useMemo(()=>s?n.filter(D=>!s(D)):n,[s,n]),O=Tf(_),{t:T}=Me();return m.jsx(C.Modal,{titleIconVariant:f?"warning":void 0,title:t,"aria-label":t,ouiaId:t,description:i,variant:C.ModalVariant.medium,isOpen:!0,onClose:v,actions:[m.jsx(C.Button,{id:"submit",ouiaId:"submit",variant:f?"danger":"primary",onClick:()=>{v(),l()},isAriaDisabled:!S,children:d},"submit"),m.jsx(C.Button,{id:"cancel",variant:"link",onClick:c,children:p.cancelText},"cancel")],hasNoBodyWrapper:!0,children:n.length>0&&m.jsxs(C.ModalBoxBody,{style:{paddingLeft:0,paddingRight:0},children:[m.jsxs(Jce,{children:[o&&o.length>0&&o.map((D,j)=>m.jsx(C.Alert,{"data-cy":"alert-toaster",isInline:!0,title:D,variant:"warning"},j)),m.jsx(tc,{pageItems:x.paged,itemCount:n.length,tableColumns:O,keyFn:r,compact:!0,errorStateTitle:T("Error"),emptyStateTitle:T("No items"),autoHidePagination:!0,disableBodyPadding:!0,...x},"items")]}),u&&E.length>0&&m.jsx(Qce,{children:m.jsx(C.Checkbox,{id:"confirm",ouiaId:"confirm",label:u,isChecked:S,onChange:(D,j)=>w(j)})})]})})}function tue(){const[e,t]=Pi(),[n,r]=y.useState();return y.useEffect(()=>{if(n){const i=()=>{var o;r(void 0),(o=n.onClose)==null||o.call(n)};t(m.jsx(eue,{...n,onClose:i}))}else t(void 0)},[n,t]),r}function nue(e=Ql,t){const n=tue(),r=VE();return y.useCallback(i=>{const o={...i,errorAdapter:e,statusParser:t};return i.isItemNonActionable&&i.isItemNonActionable!==void 0&&(o.items=i.items.filter(a=>i.isItemNonActionable!==void 0&&!i.isItemNonActionable(a))),n({...i,onConfirm:()=>r(o)})},[r,n,e,t])}function rue(e){const{view:t,tableColumns:n,toolbarFilters:r,maxSelections:i,labelForSelectedItems:o,isCompact:a}=e,[s]=Pt();return t.itemCount===void 0&&t.error===void 0?m.jsx(C.Skeleton,{height:"80px"}):m.jsxs(m.Fragment,{children:[m.jsxs(C.Split,{hasGutter:!0,children:[m.jsx(C.SplitItem,{style:{fontWeight:"bold",whiteSpace:"nowrap"},children:o??s.selectedText}),t.selectedItems.length>0?m.jsx(C.LabelGroup,{children:t.selectedItems.map((l,c)=>n&&n.length>0?m.jsx(C.Label,{onClose:()=>t.unselectItem(l),children:m.jsx(nn,{item:l,column:n.find(u=>u.card==="name"||u.list==="name")??n[0]})},c):m.jsx(m.Fragment,{}))}):m.jsx(C.SplitItem,{style:{fontStyle:"italic"},children:s.noneSelectedText})]}),m.jsx(tc,{tableColumns:n,toolbarFilters:r,...t,emptyStateTitle:e.emptyStateTitle??s.noItemsFound,errorStateTitle:e.errorStateTitle??s.errorText,showSelect:!0,disableCardView:!0,disableListView:!0,compact:a,disableBodyPadding:!0,maxSelections:i})]})}function iue(e){const{title:t,description:n,view:r,tableColumns:i,toolbarFilters:o,emptyStateTitle:a,errorStateTitle:s,confirmText:l,cancelText:c,onSelect:u,maxSelections:d,allowZeroSelections:f}=e,[h,g]=Pi();let p=y.useCallback(()=>g(void 0),[g]);e.onClose&&(p=e.onClose);const[v]=Pt(),b=Tf(i);return m.jsx(C.Modal,{title:t,"aria-label":t,ouiaId:t,description:n,isOpen:!0,onClose:p,variant:C.ModalVariant.medium,tabIndex:0,actions:[m.jsx(C.Button,{variant:"primary",id:"submit",onClick:()=>{p(),u(r.selectedItems)},isAriaDisabled:r.selectedItems.length===0&&!f,children:l??v.confirmText},"submit"),m.jsx(C.Button,{id:"cancel",variant:"link",onClick:p,children:c??v.cancelText},"cancel")],hasNoBodyWrapper:!0,children:m.jsx(C.ModalBoxBody,{style:{overflow:"hidden"},children:m.jsx(rue,{view:r,tableColumns:b,toolbarFilters:o,emptyStateTitle:a,errorStateTitle:s,maxSelections:d,isCompact:!0})})})}function oue(e){const{view:t,tableColumns:n,toolbarFilters:r,confirm:i,cancel:o,selected:a,isMultiple:s}=e,[l,c]=y.useState(""),[u,d]=y.useState(),f=y.useCallback((p,v)=>{c(v??""),d(()=>p)},[]),[h,g]=Pi();return y.useEffect(()=>{u!==void 0?g(m.jsx(GE,{title:l,open:!0,isMultiple:s,setOpen:()=>d(void 0),onSelect:u,view:t,tableColumns:n,toolbarFilters:r,confirm:i,cancel:o,selected:a,keyFn:t.keyFn})):(g(void 0),t.unselectAll())},[o,i,u,a,g,n,l,r,t,s]),f}function GE(e){const{title:t,open:n,isMultiple:r=!1,setOpen:i,onSelect:o,view:a,tableColumns:s,toolbarFilters:l,confirm:c,cancel:u,selected:d}=e,f=()=>i(!1),{t:h}=Me();return m.jsxs(C.Modal,{title:t,"aria-label":t,ouiaId:`${t}-dialog`,isOpen:n,onClose:f,variant:C.ModalVariant.medium,tabIndex:0,actions:[m.jsx(C.Button,{variant:"primary",onClick:()=>{!r&&a.selectedItems.length>0?o(a.selectedItems[0]):r&&o(a.selectedItems),f()},isAriaDisabled:a.selectedItems.length===0,children:c},"confirm"),m.jsx(C.Button,{variant:"link",onClick:f,children:u},"cancel")],hasNoBodyWrapper:!0,children:[m.jsx(C.ModalBoxBody,{style:{overflow:"hidden"},children:m.jsxs(C.Split,{hasGutter:!0,children:[m.jsx(C.SplitItem,{style:{fontWeight:"bold"},children:d}),a.selectedItems.length>0?m.jsx(C.ChipGroup,{children:a.selectedItems.map((g,p)=>s&&s.length>0?m.jsx(C.Chip,{onClick:()=>a.unselectItem(g),children:m.jsx(nn,{item:g,column:s.find(v=>v.card==="name"||v.list==="name")??s[0]})},p):m.jsx(m.Fragment,{}))}):m.jsx(C.SplitItem,{style:{fontStyle:"italic"},children:h`None - Please make a selection below.`})]})}),m.jsx(Sh,{open:a.itemCount===void 0,children:m.jsx(C.Skeleton,{height:"80px"})}),m.jsx(Sh,{open:a.itemCount!==void 0,children:m.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:500,overflow:"hidden"},children:m.jsx(tc,{tableColumns:s,toolbarFilters:l,emptyStateTitle:h("No items found"),errorStateTitle:h("Error loading items"),...a,isSelectMultiple:r,onSelect:()=>null,disableCardView:!0,disableListView:!0,compact:!0,disableBodyPadding:!0})})})]})}function qE(){const{t:e}=Me(),t=Ot.useNavigate();return m.jsxs(C.EmptyState,{isFullHeight:!0,children:[m.jsx(C.EmptyStateHeader,{titleText:m.jsx(m.Fragment,{children:e("Page not found")}),icon:m.jsx(C.EmptyStateIcon,{icon:ve.ExclamationCircleIcon}),headingLevel:"h2"}),m.jsx(C.EmptyStateBody,{children:e("We could not find that page.")}),m.jsx(C.EmptyStateFooter,{children:m.jsx(C.EmptyStateActions,{children:m.jsxs(C.Stack,{hasGutter:!0,children:[m.jsx(C.Button,{onClick:()=>t(-1),children:e("Return to previous page")}),m.jsx(C.Button,{component:n=>m.jsx(Ot.Link,{to:"/",...n}),children:e("Return to dashboard")})]})})})]})}function aue(){const{t:e}=Me(),t=Ot.useNavigate();return m.jsxs(C.EmptyState,{isFullHeight:!0,children:[m.jsx(C.EmptyStateHeader,{titleText:m.jsx(m.Fragment,{children:e("Under Development")}),icon:m.jsx(C.EmptyStateIcon,{icon:ve.WrenchIcon}),headingLevel:"h2"}),m.jsx(C.EmptyStateFooter,{children:m.jsx(C.EmptyStateActions,{children:m.jsxs(C.Stack,{hasGutter:!0,children:[m.jsx(C.Button,{onClick:()=>t(-1),children:e("Return to previous page")}),m.jsx(C.Button,{component:n=>m.jsx(Ot.Link,{to:"/",...n}),children:e("Return to dashboard")})]})})})]})}var rc=e=>e.type==="checkbox",ks=e=>e instanceof Date,Sn=e=>e==null;const YE=e=>typeof e=="object";var Wt=e=>!Sn(e)&&!Array.isArray(e)&&YE(e)&&!ks(e),KE=e=>Wt(e)&&e.target?rc(e.target)?e.target.checked:e.target.value:e,sue=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,ZE=(e,t)=>e.has(sue(t)),lue=e=>{const t=e.constructor&&e.constructor.prototype;return Wt(t)&&t.hasOwnProperty("isPrototypeOf")},Vp=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function In(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Vp&&(e instanceof Blob||e instanceof FileList))&&(n||Wt(e)))if(t=n?[]:{},!n&&!lue(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=In(e[r]));else return e;return t}var Df=e=>Array.isArray(e)?e.filter(Boolean):[],Dt=e=>e===void 0,me=(e,t,n)=>{if(!t||!Wt(e))return n;const r=Df(t.split(/[,[\].]+?/)).reduce((i,o)=>Sn(i)?i:i[o],e);return Dt(r)||r===e?Dt(e[t])?n:e[t]:r},fr=e=>typeof e=="boolean",Up=e=>/^\w*$/.test(e),XE=e=>Df(e.replace(/["|']|\]/g,"").split(/\.|\[/)),lt=(e,t,n)=>{let r=-1;const i=Up(t)?[t]:XE(t),o=i.length,a=o-1;for(;++r<o;){const s=i[r];let l=n;if(r!==a){const c=e[s];l=Wt(c)||Array.isArray(c)?c:isNaN(+i[r+1])?{}:[]}if(s==="__proto__")return;e[s]=l,e=e[s]}return e};const jf={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Pr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Mi={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},JE=y.createContext(null),Yr=()=>y.useContext(JE),QE=e=>{const{children:t,...n}=e;return y.createElement(JE.Provider,{value:n},t)};var eO=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const a=o;return t._proxyFormState[a]!==Pr.all&&(t._proxyFormState[a]=!r||Pr.all),n&&(n[a]=!0),e[a]}});return i},Ln=e=>Wt(e)&&!Object.keys(e).length,tO=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return Ln(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!r||Pr.all))},ic=e=>Array.isArray(e)?e:[e],nO=(e,t,n)=>!e||!t||e===t||ic(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Hp(e){const t=y.useRef(e);t.current=e,y.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function Gp(e){const t=Yr(),{control:n=t.control,disabled:r,name:i,exact:o}=e||{},[a,s]=y.useState(n._formState),l=y.useRef(!0),c=y.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=y.useRef(i);return u.current=i,Hp({disabled:r,next:d=>l.current&&nO(u.current,d.name,o)&&tO(d,c.current,n._updateFormState)&&s({...n._formState,...d}),subject:n._subjects.state}),y.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),eO(a,n,c.current,!1)}var Kr=e=>typeof e=="string",rO=(e,t,n,r,i)=>Kr(e)?(r&&t.watch.add(e),me(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),me(n,o))):(r&&(t.watchAll=!0),n);function iO(e){const t=Yr(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e||{},s=y.useRef(r);s.current=r,Hp({disabled:o,subject:n._subjects.values,next:u=>{nO(s.current,u.name,a)&&c(In(rO(s.current,n._names,u.values||n._formValues,!1,i)))}});const[l,c]=y.useState(n._getWatch(r,i));return y.useEffect(()=>n._removeUnmounted()),l}function cue(e){const t=Yr(),{name:n,disabled:r,control:i=t.control,shouldUnregister:o}=e,a=ZE(i._names.array,n),s=iO({control:i,name:n,defaultValue:me(i._formValues,n,me(i._defaultValues,n,e.defaultValue)),exact:!0}),l=Gp({control:i,name:n,exact:!0}),c=y.useRef(i.register(n,{...e.rules,value:s,...fr(e.disabled)?{disabled:e.disabled}:{}}));return y.useEffect(()=>{const u=i._options.shouldUnregister||o,d=(f,h)=>{const g=me(i._fields,f);g&&g._f&&(g._f.mount=h)};if(d(n,!0),u){const f=In(me(i._options.defaultValues,n));lt(i._defaultValues,n,f),Dt(me(i._formValues,n))&<(i._formValues,n,f)}return()=>{(a?u&&!i._state.action:u)?i.unregister(n):d(n,!1)}},[n,i,a,o]),y.useEffect(()=>{me(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:me(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:s,...fr(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:y.useCallback(u=>c.current.onChange({target:{value:KE(u),name:n},type:jf.CHANGE}),[n]),onBlur:y.useCallback(()=>c.current.onBlur({target:{value:me(i._formValues,n),name:n},type:jf.BLUR}),[n,i]),ref:y.useCallback(u=>{const d=me(i._fields,n);d&&u&&(d._f.ref={focus:()=>u.focus(),select:()=>u.select(),setCustomValidity:f=>u.setCustomValidity(f),reportValidity:()=>u.reportValidity()})},[i._fields,n])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!me(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!me(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!me(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!me(l.validatingFields,n)},error:{enumerable:!0,get:()=>me(l.errors,n)}})}}const Ts=e=>e.render(cue(e));var uue=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},oO=e=>({isOnSubmit:!e||e===Pr.onSubmit,isOnBlur:e===Pr.onBlur,isOnChange:e===Pr.onChange,isOnAll:e===Pr.all,isOnTouch:e===Pr.onTouched}),aO=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const oc=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=me(e,i);if(o){const{_f:a,...s}=o;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!r)return!0;if(a.ref&&t(a.ref,a.name)&&!r)return!0;if(oc(s,t))break}else if(Wt(s)&&oc(s,t))break}}};var due=(e,t,n)=>{const r=ic(me(e,n));return lt(r,"root",t[n]),lt(e,n,r),e},qp=e=>e.type==="file",$i=e=>typeof e=="function",Pf=e=>{if(!Vp)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Mf=e=>Kr(e),Yp=e=>e.type==="radio",$f=e=>e instanceof RegExp;const sO={value:!1,isValid:!1},lO={value:!0,isValid:!0};var cO=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Dt(e[0].attributes.value)?Dt(e[0].value)||e[0].value===""?lO:{value:e[0].value,isValid:!0}:lO:sO}return sO};const uO={isValid:!1,value:null};var dO=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,uO):uO;function fO(e,t,n="validate"){if(Mf(e)||Array.isArray(e)&&e.every(Mf)||fr(e)&&!e)return{type:n,message:Mf(e)?e:"",ref:t}}var As=e=>Wt(e)&&!$f(e)?e:{value:e,message:""},hO=async(e,t,n,r,i)=>{const{ref:o,refs:a,required:s,maxLength:l,minLength:c,min:u,max:d,pattern:f,validate:h,name:g,valueAsNumber:p,mount:v,disabled:b}=e._f,x=me(t,g);if(!v||b)return{};const S=a?a[0]:o,w=M=>{r&&S.reportValidity&&(S.setCustomValidity(fr(M)?"":M||""),S.reportValidity())},_={},E=Yp(o),O=rc(o),T=E||O,D=(p||qp(o))&&Dt(o.value)&&Dt(x)||Pf(o)&&o.value===""||x===""||Array.isArray(x)&&!x.length,j=uue.bind(null,g,n,_),A=(M,P,$,L=Mi.maxLength,H=Mi.minLength)=>{const q=M?P:$;_[g]={type:M?L:H,message:q,ref:o,...j(M?L:H,q)}};if(i?!Array.isArray(x)||!x.length:s&&(!T&&(D||Sn(x))||fr(x)&&!x||O&&!cO(a).isValid||E&&!dO(a).isValid)){const{value:M,message:P}=Mf(s)?{value:!!s,message:s}:As(s);if(M&&(_[g]={type:Mi.required,message:P,ref:S,...j(Mi.required,P)},!n))return w(P),_}if(!D&&(!Sn(u)||!Sn(d))){let M,P;const $=As(d),L=As(u);if(!Sn(x)&&!isNaN(x)){const H=o.valueAsNumber||x&&+x;Sn($.value)||(M=H>$.value),Sn(L.value)||(P=H<L.value)}else{const H=o.valueAsDate||new Date(x),q=N=>new Date(new Date().toDateString()+" "+N),U=o.type=="time",z=o.type=="week";Kr($.value)&&x&&(M=U?q(x)>q($.value):z?x>$.value:H>new Date($.value)),Kr(L.value)&&x&&(P=U?q(x)<q(L.value):z?x<L.value:H<new Date(L.value))}if((M||P)&&(A(!!M,$.message,L.message,Mi.max,Mi.min),!n))return w(_[g].message),_}if((l||c)&&!D&&(Kr(x)||i&&Array.isArray(x))){const M=As(l),P=As(c),$=!Sn(M.value)&&x.length>+M.value,L=!Sn(P.value)&&x.length<+P.value;if(($||L)&&(A($,M.message,P.message),!n))return w(_[g].message),_}if(f&&!D&&Kr(x)){const{value:M,message:P}=As(f);if($f(M)&&!x.match(M)&&(_[g]={type:Mi.pattern,message:P,ref:o,...j(Mi.pattern,P)},!n))return w(P),_}if(h){if($i(h)){const M=await h(x,t),P=fO(M,S);if(P&&(_[g]={...P,...j(Mi.validate,P.message)},!n))return w(P.message),_}else if(Wt(h)){let M={};for(const P in h){if(!Ln(M)&&!n)break;const $=fO(await h[P](x,t),S,P);$&&(M={...$,...j(P,$.message)},w($.message),n&&(_[g]=M))}if(!Ln(M)&&(_[g]={ref:S,...M},!n))return _}}return w(!0),_};function fue(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Dt(e)?r++:e[t[r++]];return e}function hue(e){for(const t in e)if(e.hasOwnProperty(t)&&!Dt(e[t]))return!1;return!0}function Kt(e,t){const n=Array.isArray(t)?t:Up(t)?[t]:XE(t),r=n.length===1?e:fue(e,n),i=n.length-1,o=n[i];return r&&delete r[o],i!==0&&(Wt(r)&&Ln(r)||Array.isArray(r)&&hue(r))&&Kt(e,n.slice(0,-1)),e}var Kp=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},If=e=>Sn(e)||!YE(e);function vo(e,t){if(If(e)||If(t))return e===t;if(ks(e)&&ks(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const a=t[i];if(ks(o)&&ks(a)||Wt(o)&&Wt(a)||Array.isArray(o)&&Array.isArray(a)?!vo(o,a):o!==a)return!1}}return!0}var mO=e=>e.type==="select-multiple",mue=e=>Yp(e)||rc(e),Zp=e=>Pf(e)&&e.isConnected,gO=e=>{for(const t in e)if($i(e[t]))return!0;return!1};function Lf(e,t={}){const n=Array.isArray(e);if(Wt(e)||n)for(const r in e)Array.isArray(e[r])||Wt(e[r])&&!gO(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Lf(e[r],t[r])):Sn(e[r])||(t[r]=!0);return t}function pO(e,t,n){const r=Array.isArray(e);if(Wt(e)||r)for(const i in e)Array.isArray(e[i])||Wt(e[i])&&!gO(e[i])?Dt(t)||If(n[i])?n[i]=Array.isArray(e[i])?Lf(e[i],[]):{...Lf(e[i])}:pO(e[i],Sn(t)?{}:t[i],n[i]):n[i]=!vo(e[i],t[i]);return n}var Ff=(e,t)=>pO(e,t,Lf(t)),yO=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Dt(e)?e:t?e===""?NaN:e&&+e:n&&Kr(e)?new Date(e):r?r(e):e;function Xp(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return qp(t)?t.files:Yp(t)?dO(e.refs).value:mO(t)?[...t.selectedOptions].map(({value:n})=>n):rc(t)?cO(e.refs).value:yO(Dt(t.value)?e.ref.value:t.value,e)}var gue=(e,t,n,r)=>{const i={};for(const o of e){const a=me(t,o);a&<(i,o,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},ac=e=>Dt(e)?e:$f(e)?e.source:Wt(e)?$f(e.value)?e.value.source:e.value:e;const vO="AsyncFunction";var pue=e=>(!e||!e.validate)&&!!($i(e.validate)&&e.validate.constructor.name===vO||Wt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===vO)),yue=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function bO(e,t,n){const r=me(e,n);if(r||Up(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),a=me(t,o),s=me(e,o);if(a&&!Array.isArray(a)&&n!==o)return{name:n};if(s&&s.type)return{name:o,error:s};i.pop()}return{name:n}}var vue=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,bue=(e,t)=>!Df(me(e,t)).length&&Kt(e,t);const xue={mode:Pr.onSubmit,reValidateMode:Pr.onChange,shouldFocusError:!0};function _ue(e={}){let t={...xue,...e},n={submitCount:0,isDirty:!1,isLoading:$i(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=Wt(t.defaultValues)||Wt(t.values)?In(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:In(i),a={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:Kp(),array:Kp(),state:Kp()},f=oO(t.mode),h=oO(t.reValidateMode),g=t.criteriaMode===Pr.all,p=I=>V=>{clearTimeout(c),c=setTimeout(I,V)},v=async I=>{if(u.isValid||I){const V=t.resolver?Ln((await T()).errors):await j(r,!0);V!==n.isValid&&d.state.next({isValid:V})}},b=(I,V)=>{(u.isValidating||u.validatingFields)&&((I||Array.from(s.mount)).forEach(G=>{G&&(V?lt(n.validatingFields,G,V):Kt(n.validatingFields,G))}),d.state.next({validatingFields:n.validatingFields,isValidating:!Ln(n.validatingFields)}))},x=(I,V=[],G,fe,he=!0,oe=!0)=>{if(fe&&G){if(a.action=!0,oe&&Array.isArray(me(r,I))){const Y=G(me(r,I),fe.argA,fe.argB);he&<(r,I,Y)}if(oe&&Array.isArray(me(n.errors,I))){const Y=G(me(n.errors,I),fe.argA,fe.argB);he&<(n.errors,I,Y),bue(n.errors,I)}if(u.touchedFields&&oe&&Array.isArray(me(n.touchedFields,I))){const Y=G(me(n.touchedFields,I),fe.argA,fe.argB);he&<(n.touchedFields,I,Y)}u.dirtyFields&&(n.dirtyFields=Ff(i,o)),d.state.next({name:I,isDirty:M(I,V),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else lt(o,I,V)},S=(I,V)=>{lt(n.errors,I,V),d.state.next({errors:n.errors})},w=I=>{n.errors=I,d.state.next({errors:n.errors,isValid:!1})},_=(I,V,G,fe)=>{const he=me(r,I);if(he){const oe=me(o,I,Dt(G)?me(i,I):G);Dt(oe)||fe&&fe.defaultChecked||V?lt(o,I,V?oe:Xp(he._f)):L(I,oe),a.mount&&v()}},E=(I,V,G,fe,he)=>{let oe=!1,Y=!1;const le={name:I},be=!!(me(r,I)&&me(r,I)._f&&me(r,I)._f.disabled);if(!G||fe){u.isDirty&&(Y=n.isDirty,n.isDirty=le.isDirty=M(),oe=Y!==le.isDirty);const xe=be||vo(me(i,I),V);Y=!!(!be&&me(n.dirtyFields,I)),xe||be?Kt(n.dirtyFields,I):lt(n.dirtyFields,I,!0),le.dirtyFields=n.dirtyFields,oe=oe||u.dirtyFields&&Y!==!xe}if(G){const xe=me(n.touchedFields,I);xe||(lt(n.touchedFields,I,G),le.touchedFields=n.touchedFields,oe=oe||u.touchedFields&&xe!==G)}return oe&&he&&d.state.next(le),oe?le:{}},O=(I,V,G,fe)=>{const he=me(n.errors,I),oe=u.isValid&&fr(V)&&n.isValid!==V;if(e.delayError&&G?(l=p(()=>S(I,G)),l(e.delayError)):(clearTimeout(c),l=null,G?lt(n.errors,I,G):Kt(n.errors,I)),(G?!vo(he,G):he)||!Ln(fe)||oe){const Y={...fe,...oe&&fr(V)?{isValid:V}:{},errors:n.errors,name:I};n={...n,...Y},d.state.next(Y)}},T=async I=>{b(I,!0);const V=await t.resolver(o,t.context,gue(I||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return b(I),V},D=async I=>{const{errors:V}=await T(I);if(I)for(const G of I){const fe=me(V,G);fe?lt(n.errors,G,fe):Kt(n.errors,G)}else n.errors=V;return V},j=async(I,V,G={valid:!0})=>{for(const fe in I){const he=I[fe];if(he){const{_f:oe,...Y}=he;if(oe){const le=s.array.has(oe.name),be=he._f&&pue(he._f);be&&u.validatingFields&&b([fe],!0);const xe=await hO(he,o,g,t.shouldUseNativeValidation&&!V,le);if(be&&u.validatingFields&&b([fe]),xe[oe.name]&&(G.valid=!1,V))break;!V&&(me(xe,oe.name)?le?due(n.errors,xe,oe.name):lt(n.errors,oe.name,xe[oe.name]):Kt(n.errors,oe.name))}!Ln(Y)&&await j(Y,V,G)}}return G.valid},A=()=>{for(const I of s.unMount){const V=me(r,I);V&&(V._f.refs?V._f.refs.every(G=>!Zp(G)):!Zp(V._f.ref))&&ie(I)}s.unMount=new Set},M=(I,V)=>(I&&V&<(o,I,V),!vo(R(),i)),P=(I,V,G)=>rO(I,s,{...a.mount?o:Dt(V)?i:Kr(I)?{[I]:V}:V},G,V),$=I=>Df(me(a.mount?o:i,I,e.shouldUnregister?me(i,I,[]):[])),L=(I,V,G={})=>{const fe=me(r,I);let he=V;if(fe){const oe=fe._f;oe&&(!oe.disabled&<(o,I,yO(V,oe)),he=Pf(oe.ref)&&Sn(V)?"":V,mO(oe.ref)?[...oe.ref.options].forEach(Y=>Y.selected=he.includes(Y.value)):oe.refs?rc(oe.ref)?oe.refs.length>1?oe.refs.forEach(Y=>(!Y.defaultChecked||!Y.disabled)&&(Y.checked=Array.isArray(he)?!!he.find(le=>le===Y.value):he===Y.value)):oe.refs[0]&&(oe.refs[0].checked=!!he):oe.refs.forEach(Y=>Y.checked=Y.value===he):qp(oe.ref)?oe.ref.value="":(oe.ref.value=he,oe.ref.type||d.values.next({name:I,values:{...o}})))}(G.shouldDirty||G.shouldTouch)&&E(I,he,G.shouldTouch,G.shouldDirty,!0),G.shouldValidate&&N(I)},H=(I,V,G)=>{for(const fe in V){const he=V[fe],oe=`${I}.${fe}`,Y=me(r,oe);(s.array.has(I)||!If(he)||Y&&!Y._f)&&!ks(he)?H(oe,he,G):L(oe,he,G)}},q=(I,V,G={})=>{const fe=me(r,I),he=s.array.has(I),oe=In(V);lt(o,I,oe),he?(d.array.next({name:I,values:{...o}}),(u.isDirty||u.dirtyFields)&&G.shouldDirty&&d.state.next({name:I,dirtyFields:Ff(i,o),isDirty:M(I,oe)})):fe&&!fe._f&&!Sn(oe)?H(I,oe,G):L(I,oe,G),aO(I,s)&&d.state.next({...n}),d.values.next({name:a.mount?I:void 0,values:{...o}})},U=async I=>{a.mount=!0;const V=I.target;let G=V.name,fe=!0;const he=me(r,G),oe=()=>V.type?Xp(he._f):KE(I),Y=le=>{fe=Number.isNaN(le)||vo(le,me(o,G,le))};if(he){let le,be;const xe=oe(),Ne=I.type===jf.BLUR||I.type===jf.FOCUS_OUT,Re=!yue(he._f)&&!t.resolver&&!me(n.errors,G)&&!he._f.deps||vue(Ne,me(n.touchedFields,G),n.isSubmitted,h,f),nt=aO(G,s,Ne);lt(o,G,xe),Ne?(he._f.onBlur&&he._f.onBlur(I),l&&l(0)):he._f.onChange&&he._f.onChange(I);const wt=E(G,xe,Ne,!1),jt=!Ln(wt)||nt;if(!Ne&&d.values.next({name:G,type:I.type,values:{...o}}),Re)return u.isValid&&(e.mode==="onBlur"?Ne&&v():v()),jt&&d.state.next({name:G,...nt?{}:wt});if(!Ne&&nt&&d.state.next({...n}),t.resolver){const{errors:Ct}=await T([G]);if(Y(xe),fe){const We=bO(n.errors,r,G),Pe=bO(Ct,r,We.name||G);le=Pe.error,G=Pe.name,be=Ln(Ct)}}else b([G],!0),le=(await hO(he,o,g,t.shouldUseNativeValidation))[G],b([G]),Y(xe),fe&&(le?be=!1:u.isValid&&(be=await j(r,!0)));fe&&(he._f.deps&&N(he._f.deps),O(G,be,le,wt))}},z=(I,V)=>{if(me(n.errors,V)&&I.focus)return I.focus(),1},N=async(I,V={})=>{let G,fe;const he=ic(I);if(t.resolver){const oe=await D(Dt(I)?I:he);G=Ln(oe),fe=I?!he.some(Y=>me(oe,Y)):G}else I?(fe=(await Promise.all(he.map(async oe=>{const Y=me(r,oe);return await j(Y&&Y._f?{[oe]:Y}:Y)}))).every(Boolean),!(!fe&&!n.isValid)&&v()):fe=G=await j(r);return d.state.next({...!Kr(I)||u.isValid&&G!==n.isValid?{}:{name:I},...t.resolver||!I?{isValid:G}:{},errors:n.errors}),V.shouldFocus&&!fe&&oc(r,z,I?he:s.mount),fe},R=I=>{const V={...a.mount?o:i};return Dt(I)?V:Kr(I)?me(V,I):I.map(G=>me(V,G))},J=(I,V)=>({invalid:!!me((V||n).errors,I),isDirty:!!me((V||n).dirtyFields,I),error:me((V||n).errors,I),isValidating:!!me(n.validatingFields,I),isTouched:!!me((V||n).touchedFields,I)}),ee=I=>{I&&ic(I).forEach(V=>Kt(n.errors,V)),d.state.next({errors:I?n.errors:{}})},X=(I,V,G)=>{const fe=(me(r,I,{_f:{}})._f||{}).ref,he=me(n.errors,I)||{},{ref:oe,message:Y,type:le,...be}=he;lt(n.errors,I,{...be,...V,ref:fe}),d.state.next({name:I,errors:n.errors,isValid:!1}),G&&G.shouldFocus&&fe&&fe.focus&&fe.focus()},Q=(I,V)=>$i(I)?d.values.subscribe({next:G=>I(P(void 0,V),G)}):P(I,V,!0),ie=(I,V={})=>{for(const G of I?ic(I):s.mount)s.mount.delete(G),s.array.delete(G),V.keepValue||(Kt(r,G),Kt(o,G)),!V.keepError&&Kt(n.errors,G),!V.keepDirty&&Kt(n.dirtyFields,G),!V.keepTouched&&Kt(n.touchedFields,G),!V.keepIsValidating&&Kt(n.validatingFields,G),!t.shouldUnregister&&!V.keepDefaultValue&&Kt(i,G);d.values.next({values:{...o}}),d.state.next({...n,...V.keepDirty?{isDirty:M()}:{}}),!V.keepIsValid&&v()},ue=({disabled:I,name:V,field:G,fields:fe,value:he})=>{if(fr(I)&&a.mount||I){const oe=I?void 0:Dt(he)?Xp(G?G._f:me(fe,V)._f):he;lt(o,V,oe),E(V,oe,!1,!1,!0)}},de=(I,V={})=>{let G=me(r,I);const fe=fr(V.disabled)||fr(e.disabled);return lt(r,I,{...G||{},_f:{...G&&G._f?G._f:{ref:{name:I}},name:I,mount:!0,...V}}),s.mount.add(I),G?ue({field:G,disabled:fr(V.disabled)?V.disabled:e.disabled,name:I,value:V.value}):_(I,!0,V.value),{...fe?{disabled:V.disabled||e.disabled}:{},...t.progressive?{required:!!V.required,min:ac(V.min),max:ac(V.max),minLength:ac(V.minLength),maxLength:ac(V.maxLength),pattern:ac(V.pattern)}:{},name:I,onChange:U,onBlur:U,ref:he=>{if(he){de(I,V),G=me(r,I);const oe=Dt(he.value)&&he.querySelectorAll&&he.querySelectorAll("input,select,textarea")[0]||he,Y=mue(oe),le=G._f.refs||[];if(Y?le.find(be=>be===oe):oe===G._f.ref)return;lt(r,I,{_f:{...G._f,...Y?{refs:[...le.filter(Zp),oe,...Array.isArray(me(i,I))?[{}]:[]],ref:{type:oe.type,name:I}}:{ref:oe}}}),_(I,!1,void 0,oe)}else G=me(r,I,{}),G._f&&(G._f.mount=!1),(t.shouldUnregister||V.shouldUnregister)&&!(ZE(s.array,I)&&a.action)&&s.unMount.add(I)}}},K=()=>t.shouldFocusError&&oc(r,z,s.mount),ne=I=>{fr(I)&&(d.state.next({disabled:I}),oc(r,(V,G)=>{const fe=me(r,G);fe&&(V.disabled=fe._f.disabled||I,Array.isArray(fe._f.refs)&&fe._f.refs.forEach(he=>{he.disabled=fe._f.disabled||I}))},0,!1))},pe=(I,V)=>async G=>{let fe;G&&(G.preventDefault&&G.preventDefault(),G.persist&&G.persist());let he=In(o);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:oe,values:Y}=await T();n.errors=oe,he=Y}else await j(r);if(Kt(n.errors,"root"),Ln(n.errors)){d.state.next({errors:{}});try{await I(he,G)}catch(oe){fe=oe}}else V&&await V({...n.errors},G),K(),setTimeout(K);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ln(n.errors)&&!fe,submitCount:n.submitCount+1,errors:n.errors}),fe)throw fe},B=(I,V={})=>{me(r,I)&&(Dt(V.defaultValue)?q(I,In(me(i,I))):(q(I,V.defaultValue),lt(i,I,In(V.defaultValue))),V.keepTouched||Kt(n.touchedFields,I),V.keepDirty||(Kt(n.dirtyFields,I),n.isDirty=V.defaultValue?M(I,In(me(i,I))):M()),V.keepError||(Kt(n.errors,I),u.isValid&&v()),d.state.next({...n}))},ke=(I,V={})=>{const G=I?In(I):i,fe=In(G),he=Ln(I),oe=he?i:fe;if(V.keepDefaultValues||(i=G),!V.keepValues){if(V.keepDirtyValues)for(const Y of s.mount)me(n.dirtyFields,Y)?lt(oe,Y,me(o,Y)):q(Y,me(oe,Y));else{if(Vp&&Dt(I))for(const Y of s.mount){const le=me(r,Y);if(le&&le._f){const be=Array.isArray(le._f.refs)?le._f.refs[0]:le._f.ref;if(Pf(be)){const xe=be.closest("form");if(xe){xe.reset();break}}}}r={}}o=e.shouldUnregister?V.keepDefaultValues?In(i):{}:In(oe),d.array.next({values:{...oe}}),d.values.next({values:{...oe}})}s={mount:V.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!u.isValid||!!V.keepIsValid||!!V.keepDirtyValues,a.watch=!!e.shouldUnregister,d.state.next({submitCount:V.keepSubmitCount?n.submitCount:0,isDirty:he?!1:V.keepDirty?n.isDirty:!!(V.keepDefaultValues&&!vo(I,i)),isSubmitted:V.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:he?{}:V.keepDirtyValues?V.keepDefaultValues&&o?Ff(i,o):n.dirtyFields:V.keepDefaultValues&&I?Ff(i,I):V.keepDirty?n.dirtyFields:{},touchedFields:V.keepTouched?n.touchedFields:{},errors:V.keepErrors?n.errors:{},isSubmitSuccessful:V.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Ee=(I,V)=>ke($i(I)?I(o):I,V);return{control:{register:de,unregister:ie,getFieldState:J,handleSubmit:pe,setError:X,_executeSchema:T,_getWatch:P,_getDirty:M,_updateValid:v,_removeUnmounted:A,_updateFieldArray:x,_updateDisabledField:ue,_getFieldArray:$,_reset:ke,_resetDefaultValues:()=>$i(t.defaultValues)&&t.defaultValues().then(I=>{Ee(I,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:I=>{n={...n,...I}},_disableForm:ne,_subjects:d,_proxyFormState:u,_setErrors:w,get _fields(){return r},get _formValues(){return o},get _state(){return a},set _state(I){a=I},get _defaultValues(){return i},get _names(){return s},set _names(I){s=I},get _formState(){return n},set _formState(I){n=I},get _options(){return t},set _options(I){t={...t,...I}}},trigger:N,register:de,handleSubmit:pe,watch:Q,setValue:q,getValues:R,reset:Ee,resetField:B,clearErrors:ee,unregister:ie,setError:X,setFocus:(I,V={})=>{const G=me(r,I),fe=G&&G._f;if(fe){const he=fe.refs?fe.refs[0]:fe.ref;he.focus&&(he.focus(),V.shouldSelect&&he.select())}},getFieldState:J}}function xO(e={}){const t=y.useRef(),n=y.useRef(),[r,i]=y.useState({isDirty:!1,isValidating:!1,isLoading:$i(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:$i(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={..._ue(e),formState:r});const o=t.current.control;return o._options=e,Hp({subject:o._subjects.state,next:a=>{tO(a,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),y.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),y.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==r.isDirty&&o._subjects.state.next({isDirty:a})}},[o,r.isDirty]),y.useEffect(()=>{e.values&&!vo(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[e.values,o]),y.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),y.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),y.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=eO(r,o),t.current}const Sue=({error:e})=>typeof e=="string"?null:Array.isArray(e)&&e.length>1?m.jsx("ul",{children:e.map((t,n)=>m.jsx("li",{children:t},n))}):y.isValidElement(e)?m.jsx(m.Fragment,{children:e}):null;function _O({error:e,isMd:t,onCancel:n}){const{t:r}=Me();if(!e)return null;const i="24px",o=Array.isArray(e)&&e.length>1,a=t&&n?{paddingLeft:i}:void 0,l=typeof e=="string"?e:Array.isArray(e)&&e.length>0?e.length>1?r("Errors"):String(e[0]):r("Error");return m.jsx(C.Alert,{variant:"danger",title:l,isInline:!0,style:a,isExpandable:o,children:m.jsx(Sue,{error:e})})}function Jp(e){const{isSubmitting:t,errors:n}=Gp(),{clearErrors:r}=xO(),i=n&&Object.keys(n).length>0;return m.jsx(C.Button,{onClick:()=>{i&&r()},"data-cy":"Submit",type:"submit",isDisabled:t,isLoading:t,isDanger:i,variant:i?"secondary":void 0,style:e.style,children:e.children})}function SO(e){const[t,n]=y.useState(!1),r=()=>{n(!0),e.onCancel()};return m.jsx(C.Button,{"data-cy":"Cancel",type:"button",variant:"link",onClick:r,isLoading:t,children:e.children})}const wue=De(C.PageSection)`
|
430
430
|
margin-block-end: var(--pf-v5-global--spacer--xl);
|
431
431
|
`,Cue=De(C.ActionGroup)`
|
432
432
|
&& {
|
433
433
|
margin-block-start: unset;
|
434
434
|
}
|
435
|
-
`;function Qp(e,t,n=!1){const r=xO({defaultValues:e??{}}),{handleSubmit:i,setError:o}=r,[a,s]=y.useState(null);return{form:r,handleSubmit:i,error:a,setError:s,handleSubmitError:c=>{const{genericErrors:u,fieldErrors:d}=t(c);if(u.length>0){const f=u.map(h=>h.message);s(f),n&&o("root",{message:f.join(" ")})}else s(null);d.length>0&&d.forEach(f=>{o(f.name,{message:typeof f.message=="string"?f.message:void 0})})},setFieldError:o}}function wO(e){const{errorAdapter:t=Ql,isWizard:n=!1}=e,{form:r,handleSubmit:i,error:o,setError:a,handleSubmitError:s,setFieldError:l}=Qp(e.defaultValue,t,n),[c]=y.useContext(No),[u]=Pt(),d=cn("md"),f=e.isVertical?!1:c.formLayout==="horizontal",h=e.singleColumn?!1:c.formColumns==="multiple";let g=e.children;return e.disableGrid!==!0&&(g=m.jsx(CO,{isVertical:e.isVertical,singleColumn:e.singleColumn,children:e.children})),m.jsx(QE,{...r,children:m.jsxs(C.Form,{onKeyDown:p=>{p.key==="Enter"&&e.disableSubmitOnEnter&&p.preventDefault()},onSubmit:i(async p=>{a(null);try{await e.onSubmit(p,v=>a(v),l)}catch(v){s(v)}}),isHorizontal:f,autoComplete:e.autoComplete,style:{display:"flex",flexDirection:"column",flexGrow:1,height:"100%",maxHeight:"100%",overflow:"hidden",gap:0},children:[o&&m.jsx(_O,{error:o,isMd:d,onCancel:e.onCancel}),m.jsx(Zn,{children:m.jsx(wue,{variant:"light",isFilled:!0,isWidthLimited:!0,padding:{default:e.disablePadding?"noPadding":"padding"},style:{maxWidth:h?void 0:880},children:g})}),e.footer?e.footer:m.jsx(C.PageSection,{variant:"light",isFilled:!1,className:"bg-lighten border-top",children:m.jsxs(Cue,{children:[m.jsx(Jp,{children:e.submitText}),e.additionalActions,e.onCancel&&m.jsx(SO,{onCancel:e.onCancel,children:e.cancelText??u.cancelText})]})})]})})}function CO(e){const[t]=y.useContext(No),n=e.isVertical?!1:t.formLayout==="horizontal",r=e.singleColumn?!1:t.formColumns==="multiple",i=12,o=r?n?12:6:12,a=r?6:12,s=r?6:12,l=r?4:12;return m.jsx(C.Grid,{hasGutter:!0,span:12,sm:i,md:o,lg:a,xl:s,xl2:l,className:e.className,children:e.children})}function Eue(e){const{errorAdapter:t=Ql}=e,{form:n,handleSubmit:r,error:i,setError:o,handleSubmitError:a,setFieldError:s}=Qp(e.defaultValue,t),[l]=y.useContext(No),c=cn("md"),u=e.isVertical?!1:l.formLayout==="horizontal";return m.jsx(QE,{...n,children:m.jsxs(C.Form,{onSubmit:r(async d=>{o(null);try{await e.onSubmit(d,f=>o(f),s)}catch(f){a(f)}}),isHorizontal:u,autoComplete:e.autoComplete,children:[i&&m.jsx(_O,{error:i,isMd:c,onCancel:e.onCancel}),e.children]})})}const Oue={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Nf{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Oue,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Nf(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Nf(this.logger,t)}}var Zr=new Nf;class Bf{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(a=>{let[s,l]=a;for(let c=0;c<l;c++)s(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[s,l]=a;for(let c=0;c<l;c++)s.apply(s,[t,...r])})}}const sc=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},EO=e=>e==null?"":""+e,kue=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},Tue=/###/g,OO=e=>e&&e.indexOf("###")>-1?e.replace(Tue,"."):e,kO=e=>!e||typeof e=="string",lc=(e,t,n)=>{const r=typeof t!="string"?t:t.split(".");let i=0;for(;i<r.length-1;){if(kO(e))return{};const o=OO(r[i]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++i}return kO(e)?{}:{obj:e,k:OO(r[i])}},TO=(e,t,n)=>{const{obj:r,k:i}=lc(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let o=t[t.length-1],a=t.slice(0,t.length-1),s=lc(e,a,Object);for(;s.obj===void 0&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=lc(e,a,Object),s&&s.obj&&typeof s.obj[`${s.k}.${o}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},Aue=(e,t,n,r)=>{const{obj:i,k:o}=lc(e,t,Object);i[o]=i[o]||[],i[o].push(n)},Wf=(e,t)=>{const{obj:n,k:r}=lc(e,t);if(n)return n[r]},Due=(e,t,n)=>{const r=Wf(e,n);return r!==void 0?r:Wf(t,n)},AO=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):AO(e[r],t[r],n):e[r]=t[r]);return e},Ds=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var jue={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Pue=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>jue[t]):e;class Mue{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const $ue=[" ",",","?","!",";"],Iue=new Mue(20),Lue=(e,t,n)=>{t=t||"",n=n||"";const r=$ue.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const i=Iue.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let o=!i.test(e);if(!o){const a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o},ey=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let o=0;o<r.length;){if(!i||typeof i!="object")return;let a,s="";for(let l=o;l<r.length;++l)if(l!==o&&(s+=n),s+=r[l],a=i[s],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&l<r.length-1)continue;o+=l-o+1;break}i=a}return i},zf=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class DO extends Bf{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):typeof r=="string"&&o?s.push(...r.split(o)):s.push(r)));const l=Wf(this.data,s);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),l||!a||typeof r!="string"?l:ey(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(s=t.split("."),i=n,n=s[1]),this.addNamespaces(n),TO(this.data,s,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(typeof r[o]=="string"||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),i=r,r=n,n=s[1]),this.addNamespaces(n);let l=Wf(this.data,s)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?AO(l,r,o):l={...l,...r},TO(this.data,s,l),a.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var jO={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,i))}),t}};const PO={};class Rf extends Bf{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),kue(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Zr.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const a=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Lue(t,r,i);if(a&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:o};const c=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(c[0])>-1)&&(o=c.shift()),t=c.join(i)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(t[t.length-1],n),l=s[s.length-1],c=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const w=n.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${w}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${w}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:a}const d=this.resolve(t,n);let f=d&&d.res;const h=d&&d.usedKey||a,g=d&&d.exactUsedKey||a,p=Object.prototype.toString.apply(f),v=["[object Number]","[object Function]","[object RegExp]"],b=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject;if(x&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&v.indexOf(p)<0&&!(typeof b=="string"&&Array.isArray(f))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,f,{...n,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(d.res=w,d.usedParams=this.getUsedParamsDetails(n),d):w}if(o){const w=Array.isArray(f),_=w?[]:{},E=w?g:h;for(const O in f)if(Object.prototype.hasOwnProperty.call(f,O)){const T=`${E}${o}${O}`;_[O]=this.translate(T,{...n,joinArrays:!1,ns:s}),_[O]===T&&(_[O]=f[O])}f=_}}else if(x&&typeof b=="string"&&Array.isArray(f))f=f.join(b),f&&(f=this.extendTranslation(f,t,n,r));else{let w=!1,_=!1;const E=n.count!==void 0&&typeof n.count!="string",O=Rf.hasDefaultValue(n),T=E?this.pluralResolver.getSuffix(c,n.count,n):"",D=n.ordinal&&E?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",j=E&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),A=j&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${T}`]||n[`defaultValue${D}`]||n.defaultValue;!this.isValidLookup(f)&&O&&(w=!0,f=A),this.isValidLookup(f)||(_=!0,f=a);const P=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&_?void 0:f,$=O&&A!==f&&this.options.updateMissing;if(_||w||$){if(this.logger.log($?"updateKey":"missingKey",c,l,a,$?A:f),o){const U=this.resolve(a,{...n,keySeparator:!1});U&&U.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let L=[];const z=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&z&&z[0])for(let U=0;U<z.length;U++)L.push(z[U]);else this.options.saveMissingTo==="all"?L=this.languageUtils.toResolveHierarchy(n.lng||this.language):L.push(n.lng||this.language);const G=(U,V,N)=>{const H=O&&N!==f?N:P;this.options.missingKeyHandler?this.options.missingKeyHandler(U,l,V,H,$,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(U,l,V,H,$,n),this.emit("missingKey",U,l,V,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?L.forEach(U=>{const V=this.pluralResolver.getSuffixes(U,n);j&&n[`defaultValue${this.options.pluralSeparator}zero`]&&V.indexOf(`${this.options.pluralSeparator}zero`)<0&&V.push(`${this.options.pluralSeparator}zero`),V.forEach(N=>{G([U],a+N,n[`defaultValue${N}`]||A)})}):G(L,a,A))}f=this.extendTranslation(f,t,n,d,r),_&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${a}`),(_||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,w?f:void 0):f=this.options.parseMissingKeyHandler(f))}return i?(d.res=f,d.usedParams=this.getUsedParamsDetails(n),d):f}extendTranslation(t,n,r,i,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const f=t.match(this.interpolator.nestingRegexp);u=f&&f.length}let d=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,r.lng||this.language||i.usedLng,r),c){const f=t.match(this.interpolator.nestingRegexp),h=f&&f.length;u<h&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var f=arguments.length,h=new Array(f),g=0;g<f;g++)h[g]=arguments[g];return o&&o[0]===h[0]&&!r.context?(a.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${n[0]}`),null):a.translate(...h,n)},r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,l=typeof s=="string"?[s]:s;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=jO.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,o,a,s;return typeof t=="string"&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),u=c.key;i=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=n.count!==void 0&&typeof n.count!="string",h=f&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),g=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",p=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(v=>{this.isValidLookup(r)||(s=v,!PO[`${p[0]}-${v}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(PO[`${p[0]}-${v}`]=!0,this.logger.warn(`key "${i}" for languages "${p.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(b=>{if(this.isValidLookup(r))return;a=b;const x=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(x,u,b,v,n);else{let w;f&&(w=this.pluralResolver.getSuffix(b,n.count,n));const _=`${this.options.pluralSeparator}zero`,E=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(x.push(u+w),n.ordinal&&w.indexOf(E)===0&&x.push(u+w.replace(E,this.options.pluralSeparator)),h&&x.push(u+_)),g){const O=`${u}${this.options.contextSeparator}${n.context}`;x.push(O),f&&(x.push(O+w),n.ordinal&&w.indexOf(E)===0&&x.push(O+w.replace(E,this.options.pluralSeparator)),h&&x.push(O+_))}}let S;for(;S=x.pop();)this.isValidLookup(r)||(o=S,r=this.getResource(b,v,S,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const ty=e=>e.charAt(0).toUpperCase()+e.slice(1);class MO{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Zr.create("languageUtils")}getScriptPartFromCode(t){if(t=zf(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=zf(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=ty(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=ty(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=ty(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],o=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),r.forEach(a=>{i.indexOf(a)<0&&o(this.formatLanguageCode(a))}),i}}let Fue=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Nue={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const Bue=["v1","v2","v3"],Wue=["v4"],$O={zero:0,one:1,two:2,few:3,many:4,other:5},zue=()=>{const e={};return Fue.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Nue[t.fc]}})}),e};class Rue{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Zr.create("pluralResolver"),(!this.options.compatibilityJSON||Wue.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=zue(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const r=zf(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];const a=new Intl.PluralRules(r,{type:i});return this.pluralRulesCache[o]=a,a}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,o)=>$O[i]-$O[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!Bue.includes(this.options.compatibilityJSON)}}const IO=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=Due(e,t,n);return!o&&i&&typeof n=="string"&&(o=ey(e,n,r),o===void 0&&(o=ey(t,n,r))),o},ny=e=>e.replace(/\$/g,"$$$$");class Vue{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Zr.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:o,prefixEscaped:a,suffix:s,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:h,nestingSuffix:g,nestingSuffixEscaped:p,nestingOptionsSeparator:v,maxReplaces:b,alwaysFormat:x}=t.interpolation;this.escape=n!==void 0?n:Pue,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?Ds(o):a||"{{",this.suffix=s?Ds(s):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=f?Ds(f):h||Ds("$t("),this.nestingSuffix=g?Ds(g):p||Ds(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=b||1e3,this.alwaysFormat=x!==void 0?x:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let o,a,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=h=>{if(h.indexOf(this.formatSeparator)<0){const b=IO(n,l,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(b,void 0,r,{...i,...n,interpolationkey:h}):b}const g=h.split(this.formatSeparator),p=g.shift().trim(),v=g.join(this.formatSeparator).trim();return this.format(IO(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure),v,r,{...i,...n,interpolationkey:p})};this.resetRegExp();const u=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>ny(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?ny(this.escape(h)):ny(h)}].forEach(h=>{for(s=0;o=h.regex.exec(t);){const g=o[1].trim();if(a=c(g),a===void 0)if(typeof u=="function"){const v=u(t,o,i);a=typeof v=="string"?v:""}else if(i&&Object.prototype.hasOwnProperty.call(i,g))a="";else if(d){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${t}`),a="";else typeof a!="string"&&!this.useRawValueToEscape&&(a=EO(a));const p=h.safeValue(a);if(t=t.replace(o[0],p),d?(h.regex.lastIndex+=a.length,h.regex.lastIndex-=o[0].length):h.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,a;const s=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const d=l.split(new RegExp(`${u}[ ]*{`));let f=`{${d[1]}`;l=d[0],f=this.interpolate(f,a);const h=f.match(/'/g),g=f.match(/"/g);(h&&h.length%2===0&&!g||g.length%2!==0)&&(f=f.replace(/'/g,'"'));try{a=JSON.parse(f),c&&(a={...c,...a})}catch(p){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,p),`${l}${u}${f}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];a={...r},a=a.replace&&typeof a.replace!="string"?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const u=i[1].split(this.formatSeparator).map(d=>d.trim());i[1]=u.shift(),l=u,c=!0}if(o=n(s.call(this,i[1].trim(),a),a),o&&i[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=EO(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),c&&(o=l.reduce((u,d)=>this.format(u,d,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}const Uue=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(a=>{if(a){const[s,...l]=a.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=s.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},js=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=r+JSON.stringify(o);let s=t[a];return s||(s=e(zf(r),i),t[a]=s),s(n)}};class Hue{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Zr.create("formatter"),this.options=t,this.formats={number:js((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return o=>i.format(o)}),currency:js((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>i.format(o)}),datetime:js((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return o=>i.format(o)}),relativetime:js((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return o=>i.format(o,r.range||"day")}),list:js((n,r)=>{const i=new Intl.ListFormat(n,{...r});return o=>i.format(o)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=js(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(s=>s.indexOf(")")>-1)){const s=o.findIndex(l=>l.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,s)].join(this.formatSeparator)}return o.reduce((s,l)=>{const{formatName:c,formatOptions:u}=Uue(l);if(this.formats[c]){let d=s;try{const f=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},h=f.locale||f.lng||i.locale||i.lng||r;d=this.formats[c](s,h,{...u,...i,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${c}`);return s},t)}}const Gue=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class que extends Bf{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Zr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const o={},a={},s={},l={};return t.forEach(c=>{let u=!0;n.forEach(d=>{const f=`${c}|${d}`;!r.reload&&this.store.hasResourceBundle(c,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?a[f]===void 0&&(a[f]=!0):(this.state[f]=1,u=!1,a[f]===void 0&&(a[f]=!0),o[f]===void 0&&(o[f]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(s[c]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const i=t.split("|"),o=i[0],a=i[1];n&&this.emit("failedLoading",o,a,n),!n&&r&&this.store.addResourceBundle(o,a,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const s={};this.queue.forEach(l=>{Aue(l.loaded,[o],a),Gue(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{s[c]||(s[c]={});const u=l.loaded[c];u.length&&u.forEach(d=>{s[c][d]===void 0&&(s[c][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:a});return}this.readingCalls++;const s=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&u&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,o*2,a)},o);return}a(c,u)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(t,n);c&&typeof c.then=="function"?c.then(u=>s(null,u)).catch(s):s(null,c)}catch(c){s(c)}return}return l(t,n,s)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(a=>{this.loadOne(a)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,a),!a&&s&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,s),this.loaded(t,a,s)})}saveMissing(t,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...a,isUpdate:o},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(t,n,r,i,l):u=c(t,n,r,i),u&&typeof u.then=="function"?u.then(d=>s(null,d)).catch(s):s(null,u)}catch(u){s(u)}else c(t,n,r,i,s,l)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const LO=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),FO=e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Vf=()=>{},Yue=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class cc extends Bf{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=FO(t),this.services={},this.logger=Zr,this.modules={external:[]},Yue(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=LO();this.options={...i,...this.options,...FO(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Zr.init(o(this.modules.logger),this.options):Zr.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=Hue);const d=new MO(this.options);this.store=new DO(this.options.resources,this.options);const f=this.services;f.logger=Zr,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new Rue(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(f.formatter=o(u),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Vue(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new que(o(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(h){for(var g=arguments.length,p=new Array(g>1?g-1:0),v=1;v<g;v++)p[v-1]=arguments[v];t.emit(h,...p)}),this.modules.languageDetector&&(f.languageDetector=o(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=o(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Rf(this.services,this.options),this.translator.on("*",function(h){for(var g=arguments.length,p=new Array(g>1?g-1:0),v=1;v<g;v++)p[v-1]=arguments[v];t.emit(h,...p)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Vf),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return t.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return t.store[u](...arguments),t}});const l=sc(),c=()=>{const u=(d,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(f),r(d,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Vf;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],a=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(c=>{c!=="cimode"&&o.indexOf(c)<0&&o.push(c)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>a(l)),this.options.preload&&this.options.preload.forEach(s=>a(s)),this.services.backendConnector.load(o,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const i=sc();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Vf),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&jO.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=sc();this.emit("languageChanging",t);const o=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},a=(l,c)=>{c?(o(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},s=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const c=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||o(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{a(u,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),i}getFixedT(t,n,r){var i=this;const o=function(a,s){let l;if(typeof s!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),d=2;d<c;d++)u[d-2]=arguments[d];l=i.options.overloadTranslationOptionHandler([a,s].concat(u))}else l={...s};l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||o.keyPrefix);const f=i.options.keySeparator||".";let h;return l.keyPrefix&&Array.isArray(a)?h=a.map(g=>`${l.keyPrefix}${f}${g}`):h=l.keyPrefix?`${l.keyPrefix}${f}${a}`:a,i.t(h,l)};return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(s,l)=>{const c=this.services.backendConnector.state[`${s}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const s=n.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))}loadNamespaces(t,n){const r=sc();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=sc();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],o=t.filter(a=>i.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return o.length?(this.options.preload=i.concat(o),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new MO(LO());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new cc(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Vf;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new cc(i);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(s=>{o[s]=this[s]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new DO(this.store.data,i),o.services.resourceStore=o.store),o.translator=new Rf(o.services,i),o.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];o.emit(s,...c)}),o.init(i,n),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const wn=cc.createInstance();wn.createInstance=cc.createInstance,wn.createInstance,wn.dir,wn.init,wn.loadResources,wn.reloadResources,wn.use,wn.changeLanguage,wn.getFixedT;const uc=wn.t;wn.exists,wn.setDefaultNamespace,wn.hasLoadedNamespace,wn.loadNamespaces,wn.loadLanguages;function Xr(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function dc(e,t){return typeof e=="string"&&t===!0?{value:!0,message:uc("{{label}} is required.",{label:Kue(Xr(e.toLocaleLowerCase()))})}:void 0}function Kue(e){const t=["Red Hat"];for(const n of t)e=e.replace(Xr(n.toLocaleLowerCase()),n);return e}function Zue(e){const{name:t,readOnly:n,validate:r}=e,{control:i,setValue:o,formState:{isSubmitting:a}}=Yr(),{t:s}=Me(),l=dc(e.label,e.isRequired);return m.jsx(Ts,{name:t,control:i,defaultValue:e.defaultValue,shouldUnregister:!0,render:({field:{onChange:c,value:u},fieldState:{error:d}})=>{const f=d==null?void 0:d.message;return m.jsx(m.Fragment,{children:m.jsx(C.Checkbox,{name:t,id:e.id??t.split(".").join("-"),"data-cy":e.id??t.split(".").join("-"),"aria-label":e.label,className:e.className,label:m.jsxs("div",{style:{display:"inline-flex"},children:[m.jsxs("div",{children:[e.label,e.labelHelp&&m.jsx(ou,{title:e.labelHelpTitle,help:e.labelHelp})]}),m.jsx("div",{style:{marginTop:-6,marginBottom:-6},children:m.jsx(Wr,{actions:[{label:s("Reset to default"),type:it.Button,selection:Ge.None,onClick:()=>{o(t,e.defaultValue)},isHidden:()=>!e.enableReset||u===e.defaultValue}],position:"right"})})]}),isChecked:!!u,onChange:c,readOnly:n||a,isDisabled:e.isDisabled,isRequired:e.isRequired,description:f?m.jsx("span",{style:{color:Po(Gs.Danger)},children:f}):e.description})})},rules:{required:l,validate:r}})}var Xue=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(o=Object.keys(t),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n};const NO=Fe(Xue);/*!
|
435
|
+
`;function Qp(e,t,n=!1){const r=xO({defaultValues:e??{}}),{handleSubmit:i,setError:o}=r,[a,s]=y.useState(null);return{form:r,handleSubmit:i,error:a,setError:s,handleSubmitError:c=>{const{genericErrors:u,fieldErrors:d}=t(c);if(u.length>0){const f=u.map(h=>h.message);s(f),n&&o("root",{message:f.join(" ")})}else s(null);d.length>0&&d.forEach(f=>{o(f.name,{message:typeof f.message=="string"?f.message:void 0})})},setFieldError:o}}function wO(e){const{errorAdapter:t=Ql,isWizard:n=!1}=e,{form:r,handleSubmit:i,error:o,setError:a,handleSubmitError:s,setFieldError:l}=Qp(e.defaultValue,t,n),[c]=y.useContext(No),[u]=Pt(),d=cn("md"),f=e.isVertical?!1:c.formLayout==="horizontal",h=e.singleColumn?!1:c.formColumns==="multiple";let g=e.children;return e.disableGrid!==!0&&(g=m.jsx(CO,{isVertical:e.isVertical,singleColumn:e.singleColumn,children:e.children})),m.jsx(QE,{...r,children:m.jsxs(C.Form,{onKeyDown:p=>{p.key==="Enter"&&e.disableSubmitOnEnter&&p.preventDefault()},onSubmit:i(async p=>{a(null);try{await e.onSubmit(p,v=>a(v),l)}catch(v){s(v)}}),isHorizontal:f,autoComplete:e.autoComplete,style:{display:"flex",flexDirection:"column",flexGrow:1,height:"100%",maxHeight:"100%",overflow:"hidden",gap:0},children:[o&&m.jsx(_O,{error:o,isMd:d,onCancel:e.onCancel}),m.jsx(Zn,{children:m.jsx(wue,{variant:"light",isFilled:!0,isWidthLimited:!0,padding:{default:e.disablePadding?"noPadding":"padding"},style:{maxWidth:h?void 0:880},children:g})}),e.footer?e.footer:m.jsx(C.PageSection,{variant:"light",isFilled:!1,className:"bg-lighten border-top",children:m.jsxs(Cue,{children:[m.jsx(Jp,{children:e.submitText}),e.additionalActions,e.onCancel&&m.jsx(SO,{onCancel:e.onCancel,children:e.cancelText??u.cancelText})]})})]})})}function CO(e){const[t]=y.useContext(No),n=e.isVertical?!1:t.formLayout==="horizontal",r=e.singleColumn?!1:t.formColumns==="multiple",i=12,o=r?n?12:6:12,a=r?6:12,s=r?6:12,l=r?4:12;return m.jsx(C.Grid,{hasGutter:!0,span:12,sm:i,md:o,lg:a,xl:s,xl2:l,className:e.className,children:e.children})}function Eue(e){const{errorAdapter:t=Ql}=e,{form:n,handleSubmit:r,error:i,setError:o,handleSubmitError:a,setFieldError:s}=Qp(e.defaultValue,t),[l]=y.useContext(No),c=cn("md"),u=e.isVertical?!1:l.formLayout==="horizontal";return m.jsx(QE,{...n,children:m.jsxs(C.Form,{onSubmit:r(async d=>{o(null);try{await e.onSubmit(d,f=>o(f),s)}catch(f){a(f)}}),isHorizontal:u,autoComplete:e.autoComplete,children:[i&&m.jsx(_O,{error:i,isMd:c,onCancel:e.onCancel}),e.children]})})}const Oue={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Nf{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Oue,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Nf(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Nf(this.logger,t)}}var Zr=new Nf;class Bf{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(a=>{let[s,l]=a;for(let c=0;c<l;c++)s(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[s,l]=a;for(let c=0;c<l;c++)s.apply(s,[t,...r])})}}const sc=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},EO=e=>e==null?"":""+e,kue=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},Tue=/###/g,OO=e=>e&&e.indexOf("###")>-1?e.replace(Tue,"."):e,kO=e=>!e||typeof e=="string",lc=(e,t,n)=>{const r=typeof t!="string"?t:t.split(".");let i=0;for(;i<r.length-1;){if(kO(e))return{};const o=OO(r[i]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++i}return kO(e)?{}:{obj:e,k:OO(r[i])}},TO=(e,t,n)=>{const{obj:r,k:i}=lc(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let o=t[t.length-1],a=t.slice(0,t.length-1),s=lc(e,a,Object);for(;s.obj===void 0&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=lc(e,a,Object),s&&s.obj&&typeof s.obj[`${s.k}.${o}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},Aue=(e,t,n,r)=>{const{obj:i,k:o}=lc(e,t,Object);i[o]=i[o]||[],i[o].push(n)},Wf=(e,t)=>{const{obj:n,k:r}=lc(e,t);if(n)return n[r]},Due=(e,t,n)=>{const r=Wf(e,n);return r!==void 0?r:Wf(t,n)},AO=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):AO(e[r],t[r],n):e[r]=t[r]);return e},Ds=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var jue={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Pue=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>jue[t]):e;class Mue{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const $ue=[" ",",","?","!",";"],Iue=new Mue(20),Lue=(e,t,n)=>{t=t||"",n=n||"";const r=$ue.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const i=Iue.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let o=!i.test(e);if(!o){const a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o},ey=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let o=0;o<r.length;){if(!i||typeof i!="object")return;let a,s="";for(let l=o;l<r.length;++l)if(l!==o&&(s+=n),s+=r[l],a=i[s],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&l<r.length-1)continue;o+=l-o+1;break}i=a}return i},zf=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class DO extends Bf{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):typeof r=="string"&&o?s.push(...r.split(o)):s.push(r)));const l=Wf(this.data,s);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),l||!a||typeof r!="string"?l:ey(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(s=t.split("."),i=n,n=s[1]),this.addNamespaces(n),TO(this.data,s,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(typeof r[o]=="string"||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),i=r,r=n,n=s[1]),this.addNamespaces(n);let l=Wf(this.data,s)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?AO(l,r,o):l={...l,...r},TO(this.data,s,l),a.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var jO={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,i))}),t}};const PO={};class Rf extends Bf{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),kue(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Zr.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const a=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Lue(t,r,i);if(a&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:o};const c=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(c[0])>-1)&&(o=c.shift()),t=c.join(i)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(t[t.length-1],n),l=s[s.length-1],c=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const w=n.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${w}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${w}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:a}const d=this.resolve(t,n);let f=d&&d.res;const h=d&&d.usedKey||a,g=d&&d.exactUsedKey||a,p=Object.prototype.toString.apply(f),v=["[object Number]","[object Function]","[object RegExp]"],b=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject;if(x&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&v.indexOf(p)<0&&!(typeof b=="string"&&Array.isArray(f))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,f,{...n,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(d.res=w,d.usedParams=this.getUsedParamsDetails(n),d):w}if(o){const w=Array.isArray(f),_=w?[]:{},E=w?g:h;for(const O in f)if(Object.prototype.hasOwnProperty.call(f,O)){const T=`${E}${o}${O}`;_[O]=this.translate(T,{...n,joinArrays:!1,ns:s}),_[O]===T&&(_[O]=f[O])}f=_}}else if(x&&typeof b=="string"&&Array.isArray(f))f=f.join(b),f&&(f=this.extendTranslation(f,t,n,r));else{let w=!1,_=!1;const E=n.count!==void 0&&typeof n.count!="string",O=Rf.hasDefaultValue(n),T=E?this.pluralResolver.getSuffix(c,n.count,n):"",D=n.ordinal&&E?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",j=E&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),A=j&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${T}`]||n[`defaultValue${D}`]||n.defaultValue;!this.isValidLookup(f)&&O&&(w=!0,f=A),this.isValidLookup(f)||(_=!0,f=a);const P=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&_?void 0:f,$=O&&A!==f&&this.options.updateMissing;if(_||w||$){if(this.logger.log($?"updateKey":"missingKey",c,l,a,$?A:f),o){const U=this.resolve(a,{...n,keySeparator:!1});U&&U.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let L=[];const H=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&H&&H[0])for(let U=0;U<H.length;U++)L.push(H[U]);else this.options.saveMissingTo==="all"?L=this.languageUtils.toResolveHierarchy(n.lng||this.language):L.push(n.lng||this.language);const q=(U,z,N)=>{const R=O&&N!==f?N:P;this.options.missingKeyHandler?this.options.missingKeyHandler(U,l,z,R,$,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(U,l,z,R,$,n),this.emit("missingKey",U,l,z,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?L.forEach(U=>{const z=this.pluralResolver.getSuffixes(U,n);j&&n[`defaultValue${this.options.pluralSeparator}zero`]&&z.indexOf(`${this.options.pluralSeparator}zero`)<0&&z.push(`${this.options.pluralSeparator}zero`),z.forEach(N=>{q([U],a+N,n[`defaultValue${N}`]||A)})}):q(L,a,A))}f=this.extendTranslation(f,t,n,d,r),_&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${a}`),(_||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,w?f:void 0):f=this.options.parseMissingKeyHandler(f))}return i?(d.res=f,d.usedParams=this.getUsedParamsDetails(n),d):f}extendTranslation(t,n,r,i,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const f=t.match(this.interpolator.nestingRegexp);u=f&&f.length}let d=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,r.lng||this.language||i.usedLng,r),c){const f=t.match(this.interpolator.nestingRegexp),h=f&&f.length;u<h&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var f=arguments.length,h=new Array(f),g=0;g<f;g++)h[g]=arguments[g];return o&&o[0]===h[0]&&!r.context?(a.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${n[0]}`),null):a.translate(...h,n)},r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,l=typeof s=="string"?[s]:s;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=jO.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,o,a,s;return typeof t=="string"&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),u=c.key;i=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=n.count!==void 0&&typeof n.count!="string",h=f&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),g=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",p=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(v=>{this.isValidLookup(r)||(s=v,!PO[`${p[0]}-${v}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(PO[`${p[0]}-${v}`]=!0,this.logger.warn(`key "${i}" for languages "${p.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(b=>{if(this.isValidLookup(r))return;a=b;const x=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(x,u,b,v,n);else{let w;f&&(w=this.pluralResolver.getSuffix(b,n.count,n));const _=`${this.options.pluralSeparator}zero`,E=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(x.push(u+w),n.ordinal&&w.indexOf(E)===0&&x.push(u+w.replace(E,this.options.pluralSeparator)),h&&x.push(u+_)),g){const O=`${u}${this.options.contextSeparator}${n.context}`;x.push(O),f&&(x.push(O+w),n.ordinal&&w.indexOf(E)===0&&x.push(O+w.replace(E,this.options.pluralSeparator)),h&&x.push(O+_))}}let S;for(;S=x.pop();)this.isValidLookup(r)||(o=S,r=this.getResource(b,v,S,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const ty=e=>e.charAt(0).toUpperCase()+e.slice(1);class MO{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Zr.create("languageUtils")}getScriptPartFromCode(t){if(t=zf(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=zf(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=ty(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=ty(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=ty(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],o=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),r.forEach(a=>{i.indexOf(a)<0&&o(this.formatLanguageCode(a))}),i}}let Fue=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Nue={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const Bue=["v1","v2","v3"],Wue=["v4"],$O={zero:0,one:1,two:2,few:3,many:4,other:5},zue=()=>{const e={};return Fue.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Nue[t.fc]}})}),e};class Rue{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Zr.create("pluralResolver"),(!this.options.compatibilityJSON||Wue.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=zue(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const r=zf(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];const a=new Intl.PluralRules(r,{type:i});return this.pluralRulesCache[o]=a,a}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,o)=>$O[i]-$O[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!Bue.includes(this.options.compatibilityJSON)}}const IO=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=Due(e,t,n);return!o&&i&&typeof n=="string"&&(o=ey(e,n,r),o===void 0&&(o=ey(t,n,r))),o},ny=e=>e.replace(/\$/g,"$$$$");class Vue{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Zr.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:o,prefixEscaped:a,suffix:s,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:h,nestingSuffix:g,nestingSuffixEscaped:p,nestingOptionsSeparator:v,maxReplaces:b,alwaysFormat:x}=t.interpolation;this.escape=n!==void 0?n:Pue,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?Ds(o):a||"{{",this.suffix=s?Ds(s):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=f?Ds(f):h||Ds("$t("),this.nestingSuffix=g?Ds(g):p||Ds(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=b||1e3,this.alwaysFormat=x!==void 0?x:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let o,a,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=h=>{if(h.indexOf(this.formatSeparator)<0){const b=IO(n,l,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(b,void 0,r,{...i,...n,interpolationkey:h}):b}const g=h.split(this.formatSeparator),p=g.shift().trim(),v=g.join(this.formatSeparator).trim();return this.format(IO(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure),v,r,{...i,...n,interpolationkey:p})};this.resetRegExp();const u=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>ny(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?ny(this.escape(h)):ny(h)}].forEach(h=>{for(s=0;o=h.regex.exec(t);){const g=o[1].trim();if(a=c(g),a===void 0)if(typeof u=="function"){const v=u(t,o,i);a=typeof v=="string"?v:""}else if(i&&Object.prototype.hasOwnProperty.call(i,g))a="";else if(d){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${t}`),a="";else typeof a!="string"&&!this.useRawValueToEscape&&(a=EO(a));const p=h.safeValue(a);if(t=t.replace(o[0],p),d?(h.regex.lastIndex+=a.length,h.regex.lastIndex-=o[0].length):h.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,a;const s=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const d=l.split(new RegExp(`${u}[ ]*{`));let f=`{${d[1]}`;l=d[0],f=this.interpolate(f,a);const h=f.match(/'/g),g=f.match(/"/g);(h&&h.length%2===0&&!g||g.length%2!==0)&&(f=f.replace(/'/g,'"'));try{a=JSON.parse(f),c&&(a={...c,...a})}catch(p){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,p),`${l}${u}${f}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];a={...r},a=a.replace&&typeof a.replace!="string"?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const u=i[1].split(this.formatSeparator).map(d=>d.trim());i[1]=u.shift(),l=u,c=!0}if(o=n(s.call(this,i[1].trim(),a),a),o&&i[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=EO(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),c&&(o=l.reduce((u,d)=>this.format(u,d,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}const Uue=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(a=>{if(a){const[s,...l]=a.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=s.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},js=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=r+JSON.stringify(o);let s=t[a];return s||(s=e(zf(r),i),t[a]=s),s(n)}};class Hue{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Zr.create("formatter"),this.options=t,this.formats={number:js((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return o=>i.format(o)}),currency:js((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>i.format(o)}),datetime:js((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return o=>i.format(o)}),relativetime:js((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return o=>i.format(o,r.range||"day")}),list:js((n,r)=>{const i=new Intl.ListFormat(n,{...r});return o=>i.format(o)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=js(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(s=>s.indexOf(")")>-1)){const s=o.findIndex(l=>l.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,s)].join(this.formatSeparator)}return o.reduce((s,l)=>{const{formatName:c,formatOptions:u}=Uue(l);if(this.formats[c]){let d=s;try{const f=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},h=f.locale||f.lng||i.locale||i.lng||r;d=this.formats[c](s,h,{...u,...i,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${c}`);return s},t)}}const Gue=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class que extends Bf{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Zr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const o={},a={},s={},l={};return t.forEach(c=>{let u=!0;n.forEach(d=>{const f=`${c}|${d}`;!r.reload&&this.store.hasResourceBundle(c,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?a[f]===void 0&&(a[f]=!0):(this.state[f]=1,u=!1,a[f]===void 0&&(a[f]=!0),o[f]===void 0&&(o[f]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(s[c]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const i=t.split("|"),o=i[0],a=i[1];n&&this.emit("failedLoading",o,a,n),!n&&r&&this.store.addResourceBundle(o,a,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const s={};this.queue.forEach(l=>{Aue(l.loaded,[o],a),Gue(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{s[c]||(s[c]={});const u=l.loaded[c];u.length&&u.forEach(d=>{s[c][d]===void 0&&(s[c][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:a});return}this.readingCalls++;const s=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&u&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,o*2,a)},o);return}a(c,u)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(t,n);c&&typeof c.then=="function"?c.then(u=>s(null,u)).catch(s):s(null,c)}catch(c){s(c)}return}return l(t,n,s)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(a=>{this.loadOne(a)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,a),!a&&s&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,s),this.loaded(t,a,s)})}saveMissing(t,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...a,isUpdate:o},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(t,n,r,i,l):u=c(t,n,r,i),u&&typeof u.then=="function"?u.then(d=>s(null,d)).catch(s):s(null,u)}catch(u){s(u)}else c(t,n,r,i,s,l)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const LO=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),FO=e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Vf=()=>{},Yue=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class cc extends Bf{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=FO(t),this.services={},this.logger=Zr,this.modules={external:[]},Yue(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=LO();this.options={...i,...this.options,...FO(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Zr.init(o(this.modules.logger),this.options):Zr.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=Hue);const d=new MO(this.options);this.store=new DO(this.options.resources,this.options);const f=this.services;f.logger=Zr,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new Rue(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(f.formatter=o(u),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Vue(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new que(o(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(h){for(var g=arguments.length,p=new Array(g>1?g-1:0),v=1;v<g;v++)p[v-1]=arguments[v];t.emit(h,...p)}),this.modules.languageDetector&&(f.languageDetector=o(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=o(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Rf(this.services,this.options),this.translator.on("*",function(h){for(var g=arguments.length,p=new Array(g>1?g-1:0),v=1;v<g;v++)p[v-1]=arguments[v];t.emit(h,...p)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Vf),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return t.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return t.store[u](...arguments),t}});const l=sc(),c=()=>{const u=(d,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(f),r(d,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Vf;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],a=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(c=>{c!=="cimode"&&o.indexOf(c)<0&&o.push(c)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>a(l)),this.options.preload&&this.options.preload.forEach(s=>a(s)),this.services.backendConnector.load(o,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const i=sc();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Vf),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&jO.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=sc();this.emit("languageChanging",t);const o=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},a=(l,c)=>{c?(o(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},s=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const c=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||o(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{a(u,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),i}getFixedT(t,n,r){var i=this;const o=function(a,s){let l;if(typeof s!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),d=2;d<c;d++)u[d-2]=arguments[d];l=i.options.overloadTranslationOptionHandler([a,s].concat(u))}else l={...s};l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||o.keyPrefix);const f=i.options.keySeparator||".";let h;return l.keyPrefix&&Array.isArray(a)?h=a.map(g=>`${l.keyPrefix}${f}${g}`):h=l.keyPrefix?`${l.keyPrefix}${f}${a}`:a,i.t(h,l)};return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(s,l)=>{const c=this.services.backendConnector.state[`${s}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const s=n.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))}loadNamespaces(t,n){const r=sc();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=sc();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],o=t.filter(a=>i.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return o.length?(this.options.preload=i.concat(o),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new MO(LO());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new cc(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Vf;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new cc(i);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(s=>{o[s]=this[s]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new DO(this.store.data,i),o.services.resourceStore=o.store),o.translator=new Rf(o.services,i),o.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];o.emit(s,...c)}),o.init(i,n),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const wn=cc.createInstance();wn.createInstance=cc.createInstance,wn.createInstance,wn.dir,wn.init,wn.loadResources,wn.reloadResources,wn.use,wn.changeLanguage,wn.getFixedT;const uc=wn.t;wn.exists,wn.setDefaultNamespace,wn.hasLoadedNamespace,wn.loadNamespaces,wn.loadLanguages;function Xr(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function dc(e,t){return typeof e=="string"&&t===!0?{value:!0,message:uc("{{label}} is required.",{label:Kue(Xr(e.toLocaleLowerCase()))})}:void 0}function Kue(e){const t=["Red Hat"];for(const n of t)e=e.replace(Xr(n.toLocaleLowerCase()),n);return e}function Zue(e){const{name:t,readOnly:n,validate:r}=e,{control:i,setValue:o,formState:{isSubmitting:a}}=Yr(),{t:s}=Me(),l=dc(e.label,e.isRequired);return m.jsx(Ts,{name:t,control:i,defaultValue:e.defaultValue,shouldUnregister:!0,render:({field:{onChange:c,value:u},fieldState:{error:d}})=>{const f=d==null?void 0:d.message;return m.jsx(m.Fragment,{children:m.jsx(C.Checkbox,{name:t,id:e.id??t.split(".").join("-"),"data-cy":e.id??t.split(".").join("-"),"aria-label":e.label,className:e.className,label:m.jsxs("div",{style:{display:"inline-flex"},children:[m.jsxs("div",{children:[e.label,e.labelHelp&&m.jsx(ou,{title:e.labelHelpTitle,help:e.labelHelp})]}),m.jsx("div",{style:{marginTop:-6,marginBottom:-6},children:m.jsx(Wr,{actions:[{label:s("Reset to default"),type:it.Button,selection:Ge.None,onClick:()=>{o(t,e.defaultValue)},isHidden:()=>!e.enableReset||u===e.defaultValue}],position:"right"})})]}),isChecked:!!u,onChange:c,readOnly:n||a,isDisabled:e.isDisabled,isRequired:e.isRequired,description:f?m.jsx("span",{style:{color:Po(Gs.Danger)},children:f}):e.description})})},rules:{required:l,validate:r}})}var Xue=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(o=Object.keys(t),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n};const NO=Fe(Xue);/*!
|
436
436
|
* isobject <https://github.com/jonschlinkert/isobject>
|
437
437
|
*
|
438
438
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
@@ -485,13 +485,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[ru]+=1);const iu=De.button`
|
|
485
485
|
object-assign
|
486
486
|
(c) Sindre Sorhus
|
487
487
|
@license MIT
|
488
|
-
*/var xy,Kk;function She(){if(Kk)return xy;Kk=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[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 xy=i()?Object.assign:function(o,a){for(var s,l=r(o),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++)n.call(s,c[f])&&(l[c[f]]=s[c[f]])}}return l},xy}var _y,Zk;function Sy(){if(Zk)return _y;Zk=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return _y=e,_y}var wy,Xk;function Jk(){return Xk||(Xk=1,wy=Function.call.bind(Object.prototype.hasOwnProperty)),wy}var Cy,Qk;function whe(){if(Qk)return Cy;Qk=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Sy(),n={},r=Jk();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,l,c){if(process.env.NODE_ENV!=="production"){for(var u in o)if(r(o,u)){var d;try{if(typeof o[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 o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=o[u](a,u,l,s,null,t)}catch(g){d=g}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 n)){n[d.message]=!0;var h=c?c():"";e("Failed "+s+" type: "+d.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Cy=i,Cy}var Ey,eT;function Che(){if(eT)return Ey;eT=1;var e=Dm,t=She(),n=Sy(),r=Jk(),i=whe(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return Ey=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(N){var
|
489
|
-
Valid keys: `+JSON.stringify(Object.keys(N),null," "));var B=pe(ue,ne,X,
|
488
|
+
*/var xy,Kk;function She(){if(Kk)return xy;Kk=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[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 xy=i()?Object.assign:function(o,a){for(var s,l=r(o),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++)n.call(s,c[f])&&(l[c[f]]=s[c[f]])}}return l},xy}var _y,Zk;function Sy(){if(Zk)return _y;Zk=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return _y=e,_y}var wy,Xk;function Jk(){return Xk||(Xk=1,wy=Function.call.bind(Object.prototype.hasOwnProperty)),wy}var Cy,Qk;function whe(){if(Qk)return Cy;Qk=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Sy(),n={},r=Jk();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,l,c){if(process.env.NODE_ENV!=="production"){for(var u in o)if(r(o,u)){var d;try{if(typeof o[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 o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=o[u](a,u,l,s,null,t)}catch(g){d=g}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 n)){n[d.message]=!0;var h=c?c():"";e("Failed "+s+" type: "+d.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Cy=i,Cy}var Ey,eT;function Che(){if(eT)return Ey;eT=1;var e=Dm,t=She(),n=Sy(),r=Jk(),i=whe(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return Ey=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(N){var R=N&&(c&&N[c]||N[u]);if(typeof R=="function")return R}var f="<<anonymous>>",h={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:x(),arrayOf:S,element:w(),elementType:_(),instanceOf:E,node:j(),objectOf:T,oneOf:O,oneOfType:D,shape:M,exact:P};function g(N,R){return N===R?N!==0||1/N===1/R:N!==N&&R!==R}function p(N,R){this.message=N,this.data=R&&typeof R=="object"?R:{},this.stack=""}p.prototype=Error.prototype;function v(N){if(process.env.NODE_ENV!=="production")var R={},J=0;function ee(Q,ie,ue,de,K,ne,pe){if(de=de||f,ne=ne||ue,pe!==n){if(l){var B=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw B.name="Invariant Violation",B}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ke=de+":"+ue;!R[ke]&&J<3&&(o("You are manually calling a React.PropTypes validation function for the `"+ne+"` prop on `"+de+"`. 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."),R[ke]=!0,J++)}}return ie[ue]==null?Q?ie[ue]===null?new p("The "+K+" `"+ne+"` is marked as required "+("in `"+de+"`, but its value is `null`.")):new p("The "+K+" `"+ne+"` is marked as required in "+("`"+de+"`, but its value is `undefined`.")):null:N(ie,ue,de,K,ne)}var X=ee.bind(null,!1);return X.isRequired=ee.bind(null,!0),X}function b(N){function R(J,ee,X,Q,ie,ue){var de=J[ee],K=H(de);if(K!==N){var ne=q(de);return new p("Invalid "+Q+" `"+ie+"` of type "+("`"+ne+"` supplied to `"+X+"`, expected ")+("`"+N+"`."),{expectedType:N})}return null}return v(R)}function x(){return v(a)}function S(N){function R(J,ee,X,Q,ie){if(typeof N!="function")return new p("Property `"+ie+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var ue=J[ee];if(!Array.isArray(ue)){var de=H(ue);return new p("Invalid "+Q+" `"+ie+"` of type "+("`"+de+"` supplied to `"+X+"`, expected an array."))}for(var K=0;K<ue.length;K++){var ne=N(ue,K,X,Q,ie+"["+K+"]",n);if(ne instanceof Error)return ne}return null}return v(R)}function w(){function N(R,J,ee,X,Q){var ie=R[J];if(!s(ie)){var ue=H(ie);return new p("Invalid "+X+" `"+Q+"` of type "+("`"+ue+"` supplied to `"+ee+"`, expected a single ReactElement."))}return null}return v(N)}function _(){function N(R,J,ee,X,Q){var ie=R[J];if(!e.isValidElementType(ie)){var ue=H(ie);return new p("Invalid "+X+" `"+Q+"` of type "+("`"+ue+"` supplied to `"+ee+"`, expected a single ReactElement type."))}return null}return v(N)}function E(N){function R(J,ee,X,Q,ie){if(!(J[ee]instanceof N)){var ue=N.name||f,de=z(J[ee]);return new p("Invalid "+Q+" `"+ie+"` of type "+("`"+de+"` supplied to `"+X+"`, expected ")+("instance of `"+ue+"`."))}return null}return v(R)}function O(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function R(J,ee,X,Q,ie){for(var ue=J[ee],de=0;de<N.length;de++)if(g(ue,N[de]))return null;var K=JSON.stringify(N,function(pe,B){var ke=q(B);return ke==="symbol"?String(B):B});return new p("Invalid "+Q+" `"+ie+"` of value `"+String(ue)+"` "+("supplied to `"+X+"`, expected one of "+K+"."))}return v(R)}function T(N){function R(J,ee,X,Q,ie){if(typeof N!="function")return new p("Property `"+ie+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var ue=J[ee],de=H(ue);if(de!=="object")return new p("Invalid "+Q+" `"+ie+"` of type "+("`"+de+"` supplied to `"+X+"`, expected an object."));for(var K in ue)if(r(ue,K)){var ne=N(ue,K,X,Q,ie+"."+K,n);if(ne instanceof Error)return ne}return null}return v(R)}function D(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var R=0;R<N.length;R++){var J=N[R];if(typeof J!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(J)+" at index "+R+"."),a}function ee(X,Q,ie,ue,de){for(var K=[],ne=0;ne<N.length;ne++){var pe=N[ne],B=pe(X,Q,ie,ue,de,n);if(B==null)return null;B.data&&r(B.data,"expectedType")&&K.push(B.data.expectedType)}var ke=K.length>0?", expected one of type ["+K.join(", ")+"]":"";return new p("Invalid "+ue+" `"+de+"` supplied to "+("`"+ie+"`"+ke+"."))}return v(ee)}function j(){function N(R,J,ee,X,Q){return $(R[J])?null:new p("Invalid "+X+" `"+Q+"` supplied to "+("`"+ee+"`, expected a ReactNode."))}return v(N)}function A(N,R,J,ee,X){return new p((N||"React class")+": "+R+" type `"+J+"."+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function M(N){function R(J,ee,X,Q,ie){var ue=J[ee],de=H(ue);if(de!=="object")return new p("Invalid "+Q+" `"+ie+"` of type `"+de+"` "+("supplied to `"+X+"`, expected `object`."));for(var K in N){var ne=N[K];if(typeof ne!="function")return A(X,Q,ie,K,q(ne));var pe=ne(ue,K,X,Q,ie+"."+K,n);if(pe)return pe}return null}return v(R)}function P(N){function R(J,ee,X,Q,ie){var ue=J[ee],de=H(ue);if(de!=="object")return new p("Invalid "+Q+" `"+ie+"` of type `"+de+"` "+("supplied to `"+X+"`, expected `object`."));var K=t({},J[ee],N);for(var ne in K){var pe=N[ne];if(r(N,ne)&&typeof pe!="function")return A(X,Q,ie,ne,q(pe));if(!pe)return new p("Invalid "+Q+" `"+ie+"` key `"+ne+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(J[ee],null," ")+`
|
489
|
+
Valid keys: `+JSON.stringify(Object.keys(N),null," "));var B=pe(ue,ne,X,Q,ie+"."+ne,n);if(B)return B}return null}return v(R)}function $(N){switch(typeof N){case"number":case"string":case"undefined":return!0;case"boolean":return!N;case"object":if(Array.isArray(N))return N.every($);if(N===null||s(N))return!0;var R=d(N);if(R){var J=R.call(N),ee;if(R!==N.entries){for(;!(ee=J.next()).done;)if(!$(ee.value))return!1}else for(;!(ee=J.next()).done;){var X=ee.value;if(X&&!$(X[1]))return!1}}else return!1;return!0;default:return!1}}function L(N,R){return N==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function H(N){var R=typeof N;return Array.isArray(N)?"array":N instanceof RegExp?"object":L(R,N)?"symbol":R}function q(N){if(typeof N>"u"||N===null)return""+N;var R=H(N);if(R==="object"){if(N instanceof Date)return"date";if(N instanceof RegExp)return"regexp"}return R}function U(N){var R=q(N);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function z(N){return!N.constructor||!N.constructor.name?f:N.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Ey}var Oy,tT;function Ehe(){if(tT)return Oy;tT=1;var e=Sy();function t(){}function n(){}return n.resetWarningCache=t,Oy=function(){function r(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}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Oy}if(process.env.NODE_ENV!=="production"){var Ohe=Dm,khe=!0;by.exports=Che()(Ohe.isElement,khe)}else by.exports=Ehe()();var The=by.exports;const ct=Fe(The);var Ahe=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function yc(e,t){var n=Dhe(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function Dhe(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=Ahe.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var jhe=[".DS_Store","Thumbs.db"];function Phe(e){return Wa(this,void 0,void 0,function(){return za(this,function(t){return Zf(e)&&Mhe(e.dataTransfer)?[2,Fhe(e.dataTransfer,e.type)]:$he(e)?[2,Ihe(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,Lhe(e)]:[2,[]]})})}function Mhe(e){return Zf(e)}function $he(e){return Zf(e)&&Zf(e.target)}function Zf(e){return typeof e=="object"&&e!==null}function Ihe(e){return ky(e.target.files).map(function(t){return yc(t)})}function Lhe(e){return Wa(this,void 0,void 0,function(){var t;return za(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return yc(r)})]}})})}function Fhe(e,t){return Wa(this,void 0,void 0,function(){var n,r;return za(this,function(i){switch(i.label){case 0:return e.items?(n=ky(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(Nhe))]):[3,2];case 1:return r=i.sent(),[2,nT(rT(r))];case 2:return[2,nT(ky(e.files).map(function(o){return yc(o)}))]}})})}function nT(e){return e.filter(function(t){return jhe.indexOf(t.name)===-1})}function ky(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function Nhe(e){if(typeof e.webkitGetAsEntry!="function")return iT(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?oT(t):iT(e)}function rT(e){return e.reduce(function(t,n){return g1(g1([],m1(t),!1),m1(Array.isArray(n)?rT(n):[n]),!1)},[])}function iT(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=yc(t);return Promise.resolve(n)}function Bhe(e){return Wa(this,void 0,void 0,function(){return za(this,function(t){return[2,e.isDirectory?oT(e):Whe(e)]})})}function oT(e){var t=e.createReader();return new Promise(function(n,r){var i=[];function o(){var a=this;t.readEntries(function(s){return Wa(a,void 0,void 0,function(){var l,c,u;return za(this,function(d){switch(d.label){case 0:if(s.length)return[3,5];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return l=d.sent(),n(l),[3,4];case 3:return c=d.sent(),r(c),[3,4];case 4:return[3,6];case 5:u=Promise.all(s.map(Bhe)),i.push(u),o(),d.label=6;case 6:return[2]}})})},function(s){r(s)})}o()})}function Whe(e){return Wa(this,void 0,void 0,function(){return za(this,function(t){return[2,new Promise(function(n,r){e.file(function(i){var o=yc(i,e.fullPath);n(o)},function(i){r(i)})})]})})}var Ty=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some(function(a){var s=a.trim().toLowerCase();return s.charAt(0)==="."?r.toLowerCase().endsWith(s):s.endsWith("/*")?o===s.replace(/\/.*$/,""):i===s})}return!0};function aT(e){return Vhe(e)||Rhe(e)||uT(e)||zhe()}function zhe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
490
490
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rhe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vhe(e){if(Array.isArray(e))return Ay(e)}function sT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sT(Object(n),!0).forEach(function(r){cT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vc(e,t){return Ghe(e)||Hhe(e,t)||uT(e,t)||Uhe()}function Uhe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
491
491
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uT(e,t){if(e){if(typeof e=="string")return Ay(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ay(e,t)}}function Ay(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hhe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function Ghe(e){if(Array.isArray(e))return e}var qhe=typeof Ty=="function"?Ty:Ty.default,Yhe="file-invalid-type",Khe="file-too-large",Zhe="file-too-small",Xhe="too-many-files",Jhe=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:Yhe,message:"File type must be ".concat(n)}},dT=function(t){return{code:Khe,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},fT=function(t){return{code:Zhe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Qhe={code:Xhe,message:"Too many files"};function hT(e,t){var n=e.type==="application/x-moz-file"||qhe(e,t);return[n,n?null:Jhe(t)]}function mT(e,t,n){if(ua(e.size))if(ua(t)&&ua(n)){if(e.size>n)return[!1,dT(n)];if(e.size<t)return[!1,fT(t)]}else{if(ua(t)&&e.size<t)return[!1,fT(t)];if(ua(n)&&e.size>n)return[!1,dT(n)]}return[!0,null]}function ua(e){return e!=null}function eme(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(l){var c=hT(l,n),u=vc(c,1),d=u[0],f=mT(l,r,i),h=vc(f,1),g=h[0],p=s?s(l):null;return d&&g&&!p})}function Xf(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Jf(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function gT(e){e.preventDefault()}function tme(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function nme(e){return e.indexOf("Edge/")!==-1}function rme(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return tme(e)||nme(e)}function Qr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return t.some(function(s){return!Xf(r)&&s&&s.apply(void 0,[r].concat(o)),Xf(r)})}}function ime(){return"showOpenFilePicker"in window}function ome(e){if(ua(e)){var t=Object.entries(e).filter(function(n){var r=vc(n,2),i=r[0],o=r[1],a=!0;return pT(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(o)||!o.every(yT))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=vc(r,2),o=i[0],a=i[1];return lT(lT({},n),{},cT({},o,a))},{});return[{description:"Files",accept:t}]}return e}function ame(e){if(ua(e))return Object.entries(e).reduce(function(t,n){var r=vc(n,2),i=r[0],o=r[1];return[].concat(aT(t),[i],aT(o))},[]).filter(function(t){return pT(t)||yT(t)}).join(",")}function sme(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function lme(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function pT(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function yT(e){return/^.*\.[\w]+$/.test(e)}var cme=["children"],ume=["open"],dme=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],fme=["refKey","onChange","onClick"];function hme(e){return pme(e)||gme(e)||vT(e)||mme()}function mme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
492
492
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gme(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pme(e){if(Array.isArray(e))return jy(e)}function Dy(e,t){return bme(e)||vme(e,t)||vT(e,t)||yme()}function yme(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
493
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vT(e,t){if(e){if(typeof e=="string")return jy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jy(e,t)}}function jy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vme(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function bme(e){if(Array.isArray(e))return e}function bT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bT(Object(n),!0).forEach(function(r){Py(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Py(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qf(e,t){if(e==null)return{};var n=xme(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xme(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var My=y.forwardRef(function(e,t){var n=e.children,r=Qf(e,cme),i=_T(r),o=i.open,a=Qf(i,ume);return y.useImperativeHandle(t,function(){return{open:o}},[o]),y.createElement(y.Fragment,null,n(St(St({},a),{},{open:o})))});My.displayName="Dropzone";var xT={disabled:!1,getFilesFromEvent:Phe,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};My.defaultProps=xT,My.propTypes={children:ct.func,accept:ct.objectOf(ct.arrayOf(ct.string)),multiple:ct.bool,preventDropOnDocument:ct.bool,noClick:ct.bool,noKeyboard:ct.bool,noDrag:ct.bool,noDragEventsBubbling:ct.bool,minSize:ct.number,maxSize:ct.number,maxFiles:ct.number,disabled:ct.bool,getFilesFromEvent:ct.func,onFileDialogCancel:ct.func,onFileDialogOpen:ct.func,useFsAccessApi:ct.bool,autoFocus:ct.bool,onDragEnter:ct.func,onDragLeave:ct.func,onDragOver:ct.func,onDrop:ct.func,onDropAccepted:ct.func,onDropRejected:ct.func,onError:ct.func,validator:ct.func};var $y={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function _T(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=St(St({},xT),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,u=t.onDragLeave,d=t.onDragOver,f=t.onDrop,h=t.onDropAccepted,g=t.onDropRejected,p=t.onFileDialogCancel,v=t.onFileDialogOpen,b=t.useFsAccessApi,x=t.autoFocus,S=t.preventDropOnDocument,w=t.noClick,_=t.noKeyboard,E=t.noDrag,O=t.noDragEventsBubbling,T=t.onError,D=t.validator,j=y.useMemo(function(){return ame(n)},[n]),A=y.useMemo(function(){return ome(n)},[n]),M=y.useMemo(function(){return typeof v=="function"?v:ST},[v]),P=y.useMemo(function(){return typeof p=="function"?p:ST},[p]),$=y.useRef(null),L=y.useRef(null),z=y.useReducer(_me,$y),G=Dy(z,2),U=G[0],V=G[1],N=U.isFocused,H=U.isFileDialogActive,Q=y.useRef(typeof window<"u"&&window.isSecureContext&&b&&ime()),ee=function(){!Q.current&&H&&setTimeout(function(){if(L.current){var le=L.current.files;le.length||(V({type:"closeDialog"}),P())}},300)};y.useEffect(function(){return window.addEventListener("focus",ee,!1),function(){window.removeEventListener("focus",ee,!1)}},[L,H,P,Q]);var X=y.useRef([]),J=function(le){$.current&&$.current.contains(le.target)||(le.preventDefault(),X.current=[])};y.useEffect(function(){return S&&(document.addEventListener("dragover",gT,!1),document.addEventListener("drop",J,!1)),function(){S&&(document.removeEventListener("dragover",gT),document.removeEventListener("drop",J))}},[$,S]),y.useEffect(function(){return!r&&x&&$.current&&$.current.focus(),function(){}},[$,x,r]);var ie=y.useCallback(function(Y){T?T(Y):console.error(Y)},[T]),ue=y.useCallback(function(Y){Y.preventDefault(),Y.persist(),q(Y),X.current=[].concat(hme(X.current),[Y.target]),Jf(Y)&&Promise.resolve(i(Y)).then(function(le){if(!(Xf(Y)&&!O)){var be=le.length,xe=be>0&&eme({files:le,accept:j,minSize:a,maxSize:o,multiple:s,maxFiles:l,validator:D}),Ne=be>0&&!xe;V({isDragAccept:xe,isDragReject:Ne,isDragActive:!0,type:"setDraggedFiles"}),c&&c(Y)}}).catch(function(le){return ie(le)})},[i,c,ie,O,j,a,o,s,l,D]),he=y.useCallback(function(Y){Y.preventDefault(),Y.persist(),q(Y);var le=Jf(Y);if(le&&Y.dataTransfer)try{Y.dataTransfer.dropEffect="copy"}catch{}return le&&d&&d(Y),!1},[d,O]),Z=y.useCallback(function(Y){Y.preventDefault(),Y.persist(),q(Y);var le=X.current.filter(function(xe){return $.current&&$.current.contains(xe)}),be=le.indexOf(Y.target);be!==-1&&le.splice(be,1),X.current=le,!(le.length>0)&&(V({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Jf(Y)&&u&&u(Y))},[$,u,O]),ne=y.useCallback(function(Y,le){var be=[],xe=[];Y.forEach(function(Ne){var Re=hT(Ne,j),nt=Dy(Re,2),wt=nt[0],jt=nt[1],Ct=mT(Ne,a,o),We=Dy(Ct,2),Pe=We[0],mt=We[1],Rt=D?D(Ne):null;if(wt&&Pe&&!Rt)be.push(Ne);else{var Et=[jt,mt];Rt&&(Et=Et.concat(Rt)),xe.push({file:Ne,errors:Et.filter(function(Nn){return Nn})})}}),(!s&&be.length>1||s&&l>=1&&be.length>l)&&(be.forEach(function(Ne){xe.push({file:Ne,errors:[Qhe]})}),be.splice(0)),V({acceptedFiles:be,fileRejections:xe,type:"setFiles"}),f&&f(be,xe,le),xe.length>0&&g&&g(xe,le),be.length>0&&h&&h(be,le)},[V,s,j,a,o,l,f,h,g,D]),pe=y.useCallback(function(Y){Y.preventDefault(),Y.persist(),q(Y),X.current=[],Jf(Y)&&Promise.resolve(i(Y)).then(function(le){Xf(Y)&&!O||ne(le,Y)}).catch(function(le){return ie(le)}),V({type:"reset"})},[i,ne,ie,O]),B=y.useCallback(function(){if(Q.current){V({type:"openDialog"}),M();var Y={multiple:s,types:A};window.showOpenFilePicker(Y).then(function(le){return i(le)}).then(function(le){ne(le,null),V({type:"closeDialog"})}).catch(function(le){sme(le)?(P(le),V({type:"closeDialog"})):lme(le)?(Q.current=!1,L.current?(L.current.value=null,L.current.click()):ie(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ie(le)});return}L.current&&(V({type:"openDialog"}),M(),L.current.value=null,L.current.click())},[V,M,P,b,ne,ie,A,s]),ke=y.useCallback(function(Y){!$.current||!$.current.isEqualNode(Y.target)||(Y.key===" "||Y.key==="Enter"||Y.keyCode===32||Y.keyCode===13)&&(Y.preventDefault(),B())},[$,B]),Ee=y.useCallback(function(){V({type:"focus"})},[]),He=y.useCallback(function(){V({type:"blur"})},[]),Ie=y.useCallback(function(){w||(rme()?setTimeout(B,0):B())},[w,B]),at=function(le){return r?null:le},I=function(le){return _?null:at(le)},R=function(le){return E?null:at(le)},q=function(le){O&&le.stopPropagation()},de=y.useMemo(function(){return function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le=Y.refKey,be=le===void 0?"ref":le,xe=Y.role,Ne=Y.onKeyDown,Re=Y.onFocus,nt=Y.onBlur,wt=Y.onClick,jt=Y.onDragEnter,Ct=Y.onDragOver,We=Y.onDragLeave,Pe=Y.onDrop,mt=Qf(Y,dme);return St(St(Py({onKeyDown:I(Qr(Ne,ke)),onFocus:I(Qr(Re,Ee)),onBlur:I(Qr(nt,He)),onClick:at(Qr(wt,Ie)),onDragEnter:R(Qr(jt,ue)),onDragOver:R(Qr(Ct,he)),onDragLeave:R(Qr(We,Z)),onDrop:R(Qr(Pe,pe)),role:typeof xe=="string"&&xe!==""?xe:"presentation"},be,$),!r&&!_?{tabIndex:0}:{}),mt)}},[$,ke,Ee,He,Ie,ue,he,Z,pe,_,E,r]),fe=y.useCallback(function(Y){Y.stopPropagation()},[]),oe=y.useMemo(function(){return function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le=Y.refKey,be=le===void 0?"ref":le,xe=Y.onChange,Ne=Y.onClick,Re=Qf(Y,fme),nt=Py({accept:j,multiple:s,type:"file",style:{display:"none"},onChange:at(Qr(xe,pe)),onClick:at(Qr(Ne,fe)),tabIndex:-1},be,L);return St(St({},nt),Re)}},[L,n,s,pe,r]);return St(St({},U),{},{isFocused:N&&!r,getRootProps:de,getInputProps:oe,rootRef:$,inputRef:L,open:at(B)})}function _me(e,t){switch(t.type){case"focus":return St(St({},e),{},{isFocused:!0});case"blur":return St(St({},e),{},{isFocused:!1});case"openDialog":return St(St({},$y),{},{isFileDialogActive:!0});case"closeDialog":return St(St({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return St(St({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return St(St({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return St({},$y);default:return e}}function ST(){}function Sme(e){const{t}=Me(),n=su(),{onDrop:r}=e,i=y.useCallback(s=>{if(!s||s.length===0)return;const l=s[0],c=new FileReader;c.onload=()=>{const u=c.result;if(typeof u=="string"){const d={variant:"success",title:t("File uploaded"),timeout:!0};n.addAlert(d),r(u)}},c.onerror=()=>{const u={variant:"danger",title:t("Failed to upload file"),children:t("Unable to upload")};n.addAlert(u)},c.readAsText(l)},[t,n,r]),{getRootProps:o,getInputProps:a}=_T({onDrop:i,noClick:!0,accept:e.accept??{"application/json":[".json"],"text/yaml":[".yaml",".yml"]}});return m.jsxs("div",{id:"code-editor-dropzone",...o({disabled:!0}),style:{width:"100%",height:"100%"},children:[m.jsx("input",{id:"code-editor-dropzone-input",...a(),ref:e.inputRef}),e.children]})}function wme(e){return m.jsx(C.Icon,{size:e.size??"md",children:m.jsx(ve.AngleDownIcon,{"data-cy":"expandable",style:{transform:e.isExpanded?"rotate(0deg)":e.direction==="left"?"rotate(90deg)":"rotate(-90deg)",transition:"transform 0.2s",alignSelf:"center"},onClick:()=>e.setExpanded(!e.isExpanded),"aria-label":e.isExpanded?uc("Collapse"):uc("Expand")})})}function Cme(e,t,n="txt"){const r=new Blob(t.split("/n"),{type:"text/plain"}),i=document.createElement("a");i.href=URL.createObjectURL(r),i.download=e+"."+n,document.body.appendChild(i),i.click(),document.body.removeChild(i)}function bc(e){const{children:t,helperText:n,helperTextInvalid:r,isRequired:i,labelHelp:o,labelHelpTitle:a,label:s}=e;return m.jsxs(C.FormGroup,{id:`${e.fieldId}-form-group`,fieldId:e.fieldId,label:m.jsxs(m.Fragment,{children:[e.icon,s]}),labelIcon:o?m.jsx(ou,{title:a,help:o}):void 0,labelInfo:e.additionalControls,isRequired:i,"data-cy":`${e.fieldId}-form-group`,children:[t,(n||r)&&m.jsx(C.FormHelperText,{children:m.jsx(C.HelperText,{children:m.jsx(C.HelperTextItem,{variant:r?"error":void 0,children:r||n})})})]})}function Eme(e){const{t}=Me(),{name:n,format:r,disableCopy:i,disableUpload:o,disableDownload:a,disableExpand:s,validate:l,isArray:c}=e,u=li(e),{formState:{isSubmitting:d,isValidating:f},setError:h,getValues:g,clearErrors:p,control:v}=Yr(),x=Bo().dataEditorFormat??"yaml",[S,w]=y.useState(x),[_,E]=y.useState(!e.defaultCollapsed),[O,T]=y.useState(()=>{const ee=g(n);return typeof ee=="string"?ee:ei(ee,x)}),D=su(),{writeToClipboard:j}=_b(),A=y.useCallback(()=>j(ei(Li(g(n),c),S)),[g,c,S,n,j]),M=y.useCallback(ee=>{T(ei(Li(ee,c),S))},[c,S]),P=y.useRef(null),$=y.useCallback(()=>{var ee;return(ee=P.current)==null?void 0:ee.click()},[]),L=y.useCallback(()=>{const ee=n||"data",X=S==="json"?"json":"yaml";Cme(ee,ei(Li(g(n),c),S),X),D.addAlert({variant:"success",title:t("File downloaded"),timeout:!0})},[D,g,c,S,n,t]);y.useLayoutEffect(()=>{const ee=ei(Li(g(n),c),S);T(ee)},[g,c,S,n]);const[z,G]=y.useState(!1),U=iO({name:n});y.useEffect(()=>{z||T(ei(Li(U,c),S))},[z,U,c,S]);const{setValue:V,formState:{defaultValues:N}}=Yr(),H=dc(e.label,e.isRequired),Q=Ps(N,e.name);return m.jsx(Ts,{name:n,control:v,shouldUnregister:!0,render:({field:{value:ee,name:X,onChange:J},fieldState:{error:ie}})=>{var he;function ue(Z){try{const ne=Li(Z,c);switch(r){case"object":J(ne);return;default:J(ei(ne,r));break}p(X)}catch(ne){ne instanceof Error&&h(X,{message:ne.message})}}return m.jsxs(bc,{fieldId:u,icon:!s&&m.jsx(wme,{isExpanded:_,setExpanded:E}),label:e.label,labelHelpTitle:e.labelHelpTitle??e.label,labelHelp:e.labelHelp,additionalControls:m.jsx(CT,{handleCopy:!i&&A,handleUpload:!o&&$,handleDownload:!a&&L,language:S,setLanguage:w,children:e.additionalControls}),helperText:e.helperText,helperTextInvalid:!(l&&f)&&((he=ie==null?void 0:ie.message)==null?void 0:he.split(`
|
494
|
-
`)),isRequired:e.isRequired,children:[_&&m.jsxs("div",{style:{display:"flex"},children:[m.jsx(Sme,{onDrop:M,isDisabled:d||e.isReadOnly,inputRef:P,children:m.jsx(bhe,{"data-cy":u,id:u,name:X,language:S,value:O,onChange:ue,setError:Z=>{Z?h(X,{message:Z}):p(X)},isReadOnly:e.isReadOnly||d,className:e.isReadOnly?"pf-v5-c-form-control pf-m-disabled":"pf-v5-c-form-control",onFocus:()=>G(!0),onBlur:()=>G(!1)})}),m.jsx(Wr,{actions:[{label:t("Undo changes"),type:it.Button,selection:Ge.None,onClick:()=>{V(e.name,Q),T(""),setTimeout(()=>{T(ei(Li(Q,c),S))},0)},isHidden:()=>!e.enableUndo||NO(ee,Q)},{label:t("Reset to default"),type:it.Button,selection:Ge.None,onClick:()=>{V(e.name,e.defaultValue),T(""),setTimeout(()=>{T(ei(Li(e.defaultValue,c),S))},0)},isHidden:()=>!e.enableReset||NO(ee,e.defaultValue)}],position:"right"})]}),!_&&m.jsx("div",{className:"pf-v5-c-form-control"})]})},rules:{required:H,validate:e.validate}})}function wT(e){const{t}=Me(),{handleCopy:n,handleDownload:r,handleUpload:i}=e;return!n&&!r&&!i?m.jsx(m.Fragment,{}):m.jsxs(C.Flex,{spaceItems:{default:"spaceItemsMd"},children:[n&&m.jsx(C.FlexItem,{children:m.jsx(iu,{id:"copy-button","data-cy":"copy-button","aria-label":t("Copy to clipboard"),type:"button",onClick:n,children:m.jsx(C.Icon,{size:"md",children:m.jsx(ve.CopyIcon,{})})})}),i&&m.jsx(C.FlexItem,{children:m.jsx(iu,{id:"upload-button","data-cy":"upload-button","aria-label":t("Upload from file"),type:"button",onClick:i,children:m.jsx(C.Icon,{size:"md",children:m.jsx(ve.UploadIcon,{})})})}),r&&m.jsx(C.FlexItem,{children:m.jsx(iu,{id:"download-button","data-cy":"download-button","aria-label":t("Download file"),type:"button",onClick:r,children:m.jsx(C.Icon,{size:"md",children:m.jsx(ve.DownloadIcon,{})})})})]})}function CT(e){const{t}=Me(),{handleCopy:n,handleDownload:r,handleUpload:i,language:o,setLanguage:a}=e;return m.jsxs(C.Flex,{spaceItems:{default:"spaceItemsLg"},children:[m.jsx(C.FlexItem,{children:e.children}),m.jsx(wT,{handleCopy:n,handleDownload:r,handleUpload:i}),m.jsx(C.FlexItem,{align:{default:"alignRight"},children:m.jsxs(C.ToggleGroup,{isCompact:!0,children:[m.jsx(C.ToggleGroupItem,{id:"toggle-yaml","data-cy":"toggle-yaml","aria-label":t("Toggle to YAML"),isSelected:o==="yaml",text:"YAML",type:"button",onChange:()=>a("yaml")}),m.jsx(C.ToggleGroupItem,{id:"toggle-json","data-cy":"toggle-json","aria-label":t("Toggle to JSON"),isSelected:o==="json",text:"JSON",type:"button",onChange:()=>a("json")})]})})]})}function Li(e,t){if(e==null)return t?[]:{};if(typeof e=="string")try{e=JSON.parse(e)}catch{try{e=Uk.load(e)}catch(n){return n instanceof Error||n instanceof vy?new Error(n.message):{}}}return t?Array.isArray(e)?e:[]:Array.isArray(e)?{}:e}function ei(e,t){if(e==null)return"";if(e instanceof Error)return e.message;switch(t){case"json":return JSON.stringify(e,null,2);case"yaml":try{const n=Uk.dump(e).trimEnd();switch(n){case"null":case"{}":case"[]":return"";default:return n}}catch(n){return n instanceof Error||n instanceof vy?n.message:""}default:return""}}function re(...e){const t=[],n={}.hasOwnProperty;return e.filter(Boolean).forEach(r=>{const i=typeof r;if(i==="string"||i==="number")t.push(r);else if(Array.isArray(r)&&r.length){const o=re(...r);o&&t.push(o)}else if(i==="object")for(const o in r)n.call(r,o)&&r[o]&&t.push(o)}),t.join(" ")}let Ome=0;function _o({name:e,xOffset:t=0,yOffset:n=0,width:r,height:i,svgPath:o}){var a;return a=class extends k.Component{constructor(){super(...arguments),this.id=`icon-title-${Ome++}`}render(){const l=this.props,{title:c,className:u}=l,d=Ae(l,["title","className"]),f=u?`pf-v5-svg ${u}`:"pf-v5-svg",h=!!c,g=[t,n,r,i].join(" ");return k.createElement("svg",Object.assign({className:f,viewBox:g,fill:"currentColor","aria-labelledby":h?this.id:null,"aria-hidden":h?null:!0,role:"img",width:"1em",height:"1em"},d),h&&k.createElement("title",{id:this.id},c),k.createElement("path",{d:o}))}},a.displayName=e,a}const da={badge:"pf-v5-c-badge",check:"pf-v5-c-check",divider:"pf-v5-c-divider",dropdown:"pf-v5-c-dropdown",dropdownGroup:"pf-v5-c-dropdown__group",dropdownGroupTitle:"pf-v5-c-dropdown__group-title",dropdownMenu:"pf-v5-c-dropdown__menu",dropdownMenuItem:"pf-v5-c-dropdown__menu-item",dropdownMenuItemDescription:"pf-v5-c-dropdown__menu-item-description",dropdownMenuItemIcon:"pf-v5-c-dropdown__menu-item-icon",dropdownMenuItemMain:"pf-v5-c-dropdown__menu-item-main",dropdownToggle:"pf-v5-c-dropdown__toggle",dropdownToggleButton:"pf-v5-c-dropdown__toggle-button",dropdownToggleCheck:"pf-v5-c-dropdown__toggle-check",dropdownToggleIcon:"pf-v5-c-dropdown__toggle-icon",dropdownToggleImage:"pf-v5-c-dropdown__toggle-image",dropdownToggleProgress:"pf-v5-c-dropdown__toggle-progress",dropdownToggleText:"pf-v5-c-dropdown__toggle-text",menu:"pf-v5-c-menu",modifiers:{fullHeight:"pf-m-full-height",expanded:"pf-m-expanded",action:"pf-m-action",disabled:"pf-m-disabled",plain:"pf-m-plain",text:"pf-m-text",splitButton:"pf-m-split-button",primary:"pf-m-primary",inProgress:"pf-m-in-progress",active:"pf-m-active",secondary:"pf-m-secondary",top:"pf-m-top",static:"pf-m-static",alignRight:"pf-m-align-right",alignLeft:"pf-m-align-left",alignRightOnSm:"pf-m-align-right-on-sm",alignLeftOnSm:"pf-m-align-left-on-sm",alignRightOnMd:"pf-m-align-right-on-md",alignLeftOnMd:"pf-m-align-left-on-md",alignRightOnLg:"pf-m-align-right-on-lg",alignLeftOnLg:"pf-m-align-left-on-lg",alignRightOnXl:"pf-m-align-right-on-xl",alignLeftOnXl:"pf-m-align-left-on-xl",alignRightOn_2xl:"pf-m-align-right-on-2xl",alignLeftOn_2xl:"pf-m-align-left-on-2xl",ariaDisabled:"pf-m-aria-disabled",icon:"pf-m-icon",description:"pf-m-description"},spinner:"pf-v5-c-spinner",themeDark:"pf-v5-theme-dark"};var ET;(function(e){e.right="right",e.left="left"})(ET||(ET={}));var OT;(function(e){e.up="up",e.down="down"})(OT||(OT={}));const kme=k.createContext({onSelect:e=>{},id:"",toggleIndicatorClass:"",toggleIconClass:"",toggleTextClass:"",menuClass:"",itemClass:"",toggleClass:"",baseClass:"",baseComponent:"div",sectionClass:"",sectionTitleClass:"",sectionComponent:"section",disabledClass:"",plainTextClass:"",menuComponent:"ul"}),Tme=k.createContext({keyHandler:null,sendRef:null}),xc={UP:"up",DOWN:"down",RIGHT:"right",LEFT:"left"};var En;(function(e){e.success="success",e.error="error",e.warning="warning",e.default="default"})(En||(En={}));const Ye={Tab:"Tab",Space:" ",Escape:"Escape",Enter:"Enter",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight"};function kT(e="pf"){const t=new Date().getTime()+Math.random().toString(36).slice(2);return`${e}-${t}`}function Ame(e,t){return e.replace(/\${(.*?)}/g,(n,r)=>t[r]||"")}function TT(e,t,n,r,i,o=!1){if(!Array.isArray(i))return;const a=r.filter(c=>c)[0].constructor===Array;let s=e,l=t;n==="up"?e===0?s=i.length-1:s=e-1:n==="down"?e===i.length-1?s=0:s=e+1:n==="left"?t===0?l=r[e].length-1:l=t-1:n==="right"&&(t===r[e].length-1?l=0:l=t+1),r[s]===null||r[s]===void 0||a&&(r[s][l]===null||r[s][l]===void 0)?TT(s,l,n,r,i,o):o?(r[s].focus&&r[s].focus(),lv.findDOMNode(r[s]).focus()):n!=="tab"&&(a?r[s][l].focus():r[s].focus())}function _c(e,t){const n=e.current.querySelectorAll(t);return Array.prototype.filter.call(n,function(i){return i.tabIndex>="0"})}function AT(e,t,n){let r;return t==="up"?e===0?r=n.length-1:r=e-1:e===n.length-1?r=0:r=e+1,n[r]===void 0||n[r][0]===null?AT(r,t,n):r}const DT=(e,t,n="",r,i)=>e?Object.entries(e||{}).map(([o,a])=>`${n}${a}${o!=="default"?`-on-${o}`:""}`).map(jme).map(o=>o.replace(/-?(\dxl)/gi,(a,s)=>`_${s}`)).map(o=>t.modifiers[o]).filter(Boolean).join(" "):"",Dme=e=>e.toUpperCase().replace("-","").replace("_",""),jme=e=>e.replace(/([-_][a-z])/gi,Dme),jT=!!(typeof window<"u"&&window.document&&window.document.createElement),PT=(e,t)=>{const n=getComputedStyle(t),r=()=>{let a="";const s={"50%":"ultra-condensed","62.5%":"extra-condensed","75%":"condensed","87.5%":"semi-condensed","100%":"normal","112.5%":"semi-expanded","125%":"expanded","150%":"extra-expanded","200%":"ultra-expanded"};let l;return n.fontStretch in s?l=s[n.fontStretch]:l="normal",a=n.fontStyle+" "+n.fontVariant+" "+n.fontWeight+" "+l+" "+n.fontSize+"/"+n.lineHeight+" "+n.fontFamily,a},o=document.createElement("canvas").getContext("2d");return o.font=n.font||r(),o.measureText(e).width},Pme=e=>{const t=getComputedStyle(e);let n=e.clientWidth,r=e.clientHeight;return r-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),{height:r,width:n}},Mme=(e,t)=>{const n=Pme(e).width;let r=t;if(PT(t,e)>n){for(;PT(`...${r}`,e)>n;)r=r.substring(1);e.value?e.value=`...${r}`:e.innerText=`...${r}`}else e.value?e.value=t:e.innerText=t},$me=e=>e.reduce((t,n)=>Object.assign(Object.assign({},t),{[n]:r=>{r.preventDefault()}}),{}),eh=e=>{e.forEach(t=>{t.current&&clearTimeout(t.current)})},Ime=(e,t="ltr")=>{if(!e)return t;const n=getComputedStyle(e).getPropertyValue("direction");return["ltr","rtl"].includes(n)?n:t};let Lme=0;function Fme(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():kT()}class Sc extends k.Component{constructor(){super(...arguments),this.uniqueElement=this.props.isRandom?Fme():Lme++,this.id=`${this.props.prefix}${this.uniqueElement}`}render(){return this.props.children(this.id)}}Sc.displayName="GenerateId",Sc.defaultProps={prefix:"pf-random-id-",isRandom:!1};let Nme=0;const MT="OUIA-Generated-",Iy={};function wc(e,t,n=!0){return{"data-ouia-component-type":`PF5/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}const $T=(e,t,n=!0,r)=>({"data-ouia-component-type":`PF5/${e}`,"data-ouia-safe":n,"data-ouia-component-id":Bme(e,t,r)}),Bme=(e,t,n)=>{const r=y.useMemo(()=>th(e,n),[e,n]);return t??r};function th(e,t){try{let n;return typeof window<"u"?n=`${window.location.href}-${e}-${t||""}`:n=`${e}-${t||""}`,Iy[n]||(Iy[n]=0),`${MT}${e}-${t?`${t}-`:""}${++Iy[n]}`}catch{return`${MT}${e}-${t?`${t}-`:""}${++Nme}`}}function Cc(e){const t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function ti(e){if(e.toString()!=="[object Window]"){const t=e.ownerDocument;return t?t.defaultView:window}return e}function Ly(e){const t=ti(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ec(e){const t=ti(e).Element;return e instanceof t||e instanceof Element}function ni(e){const t=ti(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Wme(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function zme(e){return e===ti(e)||!ni(e)?Ly(e):Wme(e)}function Mr(e){return e?(e.nodeName||"").toLowerCase():null}function Fi(e){return(Ec(e)?e.ownerDocument:e.document).documentElement}function Fy(e){return Cc(Fi(e)).left+Ly(e).scrollLeft}function Ni(e){return ti(e).getComputedStyle(e)}function Ny(e){const{overflow:t,overflowX:n,overflowY:r}=Ni(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function Rme(e,t,n=!1){const r=Fi(t),i=Cc(e),o=ni(t);let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!n)&&((Mr(t)!=="body"||Ny(r))&&(a=zme(t)),ni(t)?(s=Cc(t),s.x+=t.clientLeft,s.y+=t.clientTop):r&&(s.x=Fy(r))),{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function By(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function nh(e){return Mr(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||Fi(e)}function IT(e){return["html","body","#document"].indexOf(Mr(e))>=0?e.ownerDocument.body:ni(e)&&Ny(e)?e:IT(nh(e))}function Oc(e,t=[]){const n=IT(e),r=Mr(n)==="body",i=ti(n),o=r?[i].concat(i.visualViewport||[],Ny(n)?n:[]):n,a=t.concat(o);return r?a:a.concat(Oc(nh(o)))}function Vme(e){return["table","td","th"].indexOf(Mr(e))>=0}function LT(e){if(!ni(e)||Ni(e).position==="fixed")return null;const t=e.offsetParent;if(t){const n=Fi(t);if(Mr(t)==="body"&&Ni(t).position==="static"&&Ni(n).position!=="static")return n}return t}function Ume(e){let t=nh(e);for(;ni(t)&&["html","body"].indexOf(Mr(t))<0;){const n=Ni(t);if(n.transform!=="none"||n.perspective!=="none"||n.willChange&&n.willChange!=="auto")return t;t=t.parentNode}return null}function kc(e){const t=ti(e);let n=LT(e);for(;n&&Vme(n)&&Ni(n).position==="static";)n=LT(n);return n&&Mr(n)==="body"&&Ni(n).position==="static"?t:n||Ume(e)||t}const hr="top",$r="bottom",Ir="right",mr="left",Wy="auto",Tc=[hr,$r,Ir,mr],Ns="start",zy="end",Hme="clippingParents",FT="viewport",Ac="popper",Gme="reference",NT=Tc.reduce((e,t)=>e.concat([`${t}-${Ns}`,`${t}-${zy}`]),[]),BT=[...Tc,Wy].reduce((e,t)=>e.concat([t,`${t}-${Ns}`,`${t}-${zy}`]),[]),qme=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Yme(e){const t=new Map,n=new Set,r=[];e.forEach(o=>{t.set(o.name,o)});function i(o){n.add(o.name),[...o.requires||[],...o.requiresIfExists||[]].forEach(s=>{if(!n.has(s)){const l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(o=>{n.has(o.name)||i(o)}),r}function Kme(e){const t=Yme(e);return qme.reduce((n,r)=>n.concat(t.filter(i=>i.phase===r)),[])}function Zme(e){let t;return()=>(t||(t=new Promise(n=>{Promise.resolve().then(()=>{t=void 0,n(e())})})),t)}function ri(e){return e.split("-")[0]}function Xme(e){const t=e.reduce((n,r)=>{const i=n[r.name];return n[r.name]=i?Object.assign(Object.assign(Object.assign({},i),r),{options:Object.assign(Object.assign({},i.options),r.options),data:Object.assign(Object.assign({},i.data),r.data)}):r,n},{});return Object.keys(t).map(n=>t[n])}function Jme(e){const t=ti(e),n=Fi(e),r=t.visualViewport;let i=n.clientWidth,o=n.clientHeight,a=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:a+Fy(e),y:s}}function Qme(e){const t=Fi(e),n=Ly(e),r=e.ownerDocument.body,i=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-n.scrollLeft+Fy(e);const s=-n.scrollTop;return Ni(r||t).direction==="rtl"&&(a+=Math.max(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:o,x:a,y:s}}function WT(e,t){const n=!!(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){let r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ry(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function e0e(e){const t=Cc(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function zT(e,t){return t===FT?Ry(Jme(e)):ni(t)?e0e(t):Ry(Qme(Fi(e)))}function t0e(e){const t=Oc(nh(e)),r=["absolute","fixed"].indexOf(Ni(e).position)>=0&&ni(e)?kc(e):e;return Ec(r)?t.filter(i=>Ec(i)&&WT(i,r)&&Mr(i)!=="body"):[]}function n0e(e,t,n){const i=[...t==="clippingParents"?t0e(e):[].concat(t),n],o=i[0],a=i.reduce((s,l)=>{const c=zT(e,l);return s.top=Math.max(c.top,s.top),s.right=Math.min(c.right,s.right),s.bottom=Math.min(c.bottom,s.bottom),s.left=Math.max(c.left,s.left),s},zT(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Dc(e){return e.split("-")[1]}function Vy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function RT({reference:e,element:t,placement:n}){const r=n?ri(n):null,i=n?Dc(n):null,o=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2;let s;switch(r){case hr:s={x:o,y:e.y-t.height};break;case $r:s={x:o,y:e.y+e.height};break;case Ir:s={x:e.x+e.width,y:a};break;case mr:s={x:e.x-t.width,y:a};break;default:s={x:e.x,y:e.y}}const l=r?Vy(r):null;if(l!=null){const c=l==="y"?"height":"width";switch(i){case Ns:s[l]=Math.floor(s[l])-Math.floor(e[c]/2-t[c]/2);break;case zy:s[l]=Math.floor(s[l])+Math.ceil(e[c]/2-t[c]/2);break}}return s}function VT(){return{top:0,right:0,bottom:0,left:0}}function UT(e){return Object.assign(Object.assign({},VT()),e)}function HT(e,t){return t.reduce((n,r)=>(n[r]=e,n),{})}function jc(e,t={}){const{placement:n=e.placement,boundary:r=Hme,rootBoundary:i=FT,elementContext:o=Ac,altBoundary:a=!1,padding:s=0}=t,l=UT(typeof s!="number"?s:HT(s,Tc)),c=o===Ac?Gme:Ac,u=e.elements.reference,d=e.rects.popper,f=e.elements[a?c:o],h=n0e(Ec(f)?f:f.contextElement||Fi(e.elements.popper),r,i),g=Cc(u),p=RT({reference:g,element:d,strategy:"absolute",placement:n}),v=Ry(Object.assign(Object.assign({},d),p)),b=o===Ac?v:g,x={top:h.top-b.top+l.top,bottom:b.bottom-h.bottom+l.bottom,left:h.left-b.left+l.left,right:b.right-h.right+l.right},S=e.modifiersData.offset;if(o===Ac&&S){const w=S[n];Object.keys(x).forEach(_=>{const E=[Ir,$r].indexOf(_)>=0?1:-1,O=[hr,$r].indexOf(_)>=0?"y":"x";x[_]+=w[O]*E})}return x}const GT={placement:"bottom",modifiers:[],strategy:"absolute"};function qT(...e){return!e.some(t=>!(t&&typeof t.getBoundingClientRect=="function"))}function r0e(e={}){const{defaultModifiers:t=[],defaultOptions:n=GT}=e;return function(i,o,a=n){let s={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},GT),n),modifiersData:{},elements:{reference:i,popper:o},attributes:{},styles:{}},l=[],c=!1;const u={state:s,setOptions(h){f(),s.options=Object.assign(Object.assign(Object.assign({},n),s.options),h),s.scrollParents={reference:Ec(i)?Oc(i):i.contextElement?Oc(i.contextElement):[],popper:Oc(o)};const g=Kme(Xme([...t,...s.options.modifiers]));return s.orderedModifiers=g.filter(p=>p.enabled),d(),u.update()},forceUpdate(){if(c)return;const{reference:h,popper:g}=s.elements;if(qT(h,g)){s.rects={reference:Rme(h,kc(g),s.options.strategy==="fixed"),popper:By(g)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(p=>s.modifiersData[p.name]=Object.assign({},p.data));for(let p=0;p<s.orderedModifiers.length;p++){if(s.reset===!0){s.reset=!1,p=-1;continue}const{fn:v,options:b={},name:x}=s.orderedModifiers[p];typeof v=="function"&&(s=v({state:s,options:b,name:x,instance:u})||s)}}},update:Zme(()=>new Promise(h=>{u.forceUpdate(),h(s)})),destroy(){f(),c=!0}};if(!qT(i,o))return u;u.setOptions(a).then(h=>{!c&&a.onFirstUpdate&&a.onFirstUpdate(h)});function d(){s.orderedModifiers.forEach(({name:h,options:g={},effect:p})=>{if(typeof p=="function"){const v=p({state:s,name:h,instance:u,options:g}),b=()=>{};l.push(v||b)}})}function f(){l.forEach(h=>h()),l=[]}return u}}const rh={passive:!0};function i0e({state:e,instance:t,options:n}){const{scroll:r=!0,resize:i=!0}=n,o=ti(e.elements.popper),a=[...e.scrollParents.reference,...e.scrollParents.popper];return r&&a.forEach(s=>{s.addEventListener("scroll",t.update,rh)}),i&&o.addEventListener("resize",t.update,rh),()=>{r&&a.forEach(s=>{s.removeEventListener("scroll",t.update,rh)}),i&&o.removeEventListener("resize",t.update,rh)}}const o0e={name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:i0e,data:{}};function a0e({state:e,name:t}){e.modifiersData[t]=RT({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const s0e={name:"popperOffsets",enabled:!0,phase:"read",fn:a0e,data:{}},l0e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function c0e({x:e,y:t}){const r=window.devicePixelRatio||1;return{x:Math.round(e*r)/r||0,y:Math.round(t*r)/r||0}}function YT({popper:e,popperRect:t,placement:n,offsets:r,position:i,gpuAcceleration:o,adaptive:a}){let{x:s,y:l}=c0e(r);const c=r.hasOwnProperty("x"),u=r.hasOwnProperty("y");let d=mr,f=hr;const h=window;if(a){let p=kc(e);p===ti(e)&&(p=Fi(e)),n===hr&&(f=$r,l-=p.clientHeight-t.height,l*=o?1:-1),n===mr&&(d=Ir,s-=p.clientWidth-t.width,s*=o?1:-1)}const g=Object.assign({position:i},a&&l0e);return o?Object.assign(Object.assign({},g),{[f]:u?"0":"",[d]:c?"0":"",transform:(h.devicePixelRatio||1)<2?`translate(${s}px, ${l}px)`:`translate3d(${s}px, ${l}px, 0)`}):Object.assign(Object.assign({},g),{[f]:u?`${l}px`:"",[d]:c?`${s}px`:"",transform:""})}function u0e({state:e,options:t}){const{gpuAcceleration:n=!0,adaptive:r=!0}=t,i={placement:ri(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),YT(Object.assign(Object.assign({},i),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),YT(Object.assign(Object.assign({},i),{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-placement":e.placement})}const d0e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:u0e,data:{}};function f0e({state:e}){Object.keys(e.elements).forEach(t=>{const n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];!ni(i)||!Mr(i)||(Object.assign(i.style,n),Object.keys(r).forEach(o=>{const a=r[o];a===!1?i.removeAttribute(o):i.setAttribute(o,a===!0?"":a)}))})}function h0e({state:e}){const t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),()=>{Object.keys(e.elements).forEach(n=>{const r=e.elements[n],i=e.attributes[n]||{},a=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce((s,l)=>(s[l]="",s),{});!ni(r)||!Mr(r)||(Object.assign(r.style,a),Object.keys(i).forEach(s=>{r.removeAttribute(s)}))})}}const m0e={name:"applyStyles",enabled:!0,phase:"write",fn:f0e,effect:h0e,requires:["computeStyles"]};function g0e(e,t,n){const r=ri(e),i=[mr,hr].indexOf(r)>=0?-1:1;let[o,a]=typeof n=="function"?n(Object.assign(Object.assign({},t),{placement:e})):n;return o=o||0,a=(a||0)*i,[mr,Ir].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function p0e({state:e,options:t,name:n}){const{offset:r=[0,0]}=t,i=BT.reduce((s,l)=>(s[l]=g0e(l,e.rects,r),s),{}),{x:o,y:a}=i[e.placement];e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=o,e.modifiersData.popperOffsets.y+=a),e.modifiersData[n]=i}const y0e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:p0e},v0e={left:"right",right:"left",bottom:"top",top:"bottom"};function ih(e){return e.replace(/left|right|bottom|top/g,t=>v0e[t])}const b0e={start:"end",end:"start"};function KT(e){return e.replace(/start|end/g,t=>b0e[t])}function x0e(e,t={}){const{placement:n,boundary:r,rootBoundary:i,padding:o,flipVariations:a,allowedAutoPlacements:s=BT}=t,l=Dc(n),c=l?a?NT:NT.filter(f=>Dc(f)===l):Tc;let u=c.filter(f=>s.indexOf(f)>=0);u.length===0&&(u=c);const d=u.reduce((f,h)=>(f[h]=jc(e,{placement:h,boundary:r,rootBoundary:i,padding:o})[ri(h)],f),{});return Object.keys(d).sort((f,h)=>d[f]-d[h])}function _0e(e){if(ri(e)===Wy)return[];const t=ih(e);return[KT(e),t,KT(t)]}function S0e({state:e,options:t,name:n}){if(e.modifiersData[n]._skip)return;const{mainAxis:r=!0,altAxis:i=!0,fallbackPlacements:o,padding:a,boundary:s,rootBoundary:l,altBoundary:c,flipVariations:u=!0,allowedAutoPlacements:d}=t,f=e.options.placement,g=ri(f)===f,p=o||(g||!u?[ih(f)]:_0e(f)),v=[f,...p].reduce((E,O)=>E.concat(ri(O)===Wy?x0e(e,{placement:O,boundary:s,rootBoundary:l,padding:a,flipVariations:u,allowedAutoPlacements:d}):O),[]),b=e.rects.reference,x=e.rects.popper,S=new Map;let w=!0,_=v[0];for(let E=0;E<v.length;E++){const O=v[E],T=ri(O),D=Dc(O)===Ns,j=[hr,$r].indexOf(T)>=0,A=j?"width":"height",M=jc(e,{placement:O,boundary:s,rootBoundary:l,altBoundary:c,padding:a});let P=j?D?Ir:mr:D?$r:hr;b[A]>x[A]&&(P=ih(P));const $=ih(P),L=[];if(r&&L.push(M[T]<=0),i&&L.push(M[P]<=0,M[$]<=0),L.every(z=>z)){_=O,w=!1;break}S.set(O,L)}if(w){const E=u?3:1;for(let O=E;O>0;O--){const T=v.find(D=>{const j=S.get(D);if(j)return j.slice(0,O).every(A=>A)});if(T){_=T;break}}}e.placement!==_&&(e.modifiersData[n]._skip=!0,e.placement=_,e.reset=!0)}const w0e={name:"flip",enabled:!0,phase:"main",fn:S0e,requiresIfExists:["offset"],data:{_skip:!1}};function C0e(e){return e==="x"?"y":"x"}function oh(e,t,n){return Math.max(e,Math.min(t,n))}function E0e({state:e,options:t,name:n}){const{mainAxis:r=!0,altAxis:i=!1,boundary:o,rootBoundary:a,altBoundary:s,padding:l,tether:c=!0,tetherOffset:u=0}=t,d=jc(e,{boundary:o,rootBoundary:a,padding:l,altBoundary:s}),f=ri(e.placement),h=Dc(e.placement),g=!h,p=Vy(f),v=C0e(p),b=e.modifiersData.popperOffsets,x=e.rects.reference,S=e.rects.popper,w=typeof u=="function"?u(Object.assign(Object.assign({},e.rects),{placement:e.placement})):u,_={x:0,y:0};if(b){if(r){const E=p==="y"?hr:mr,O=p==="y"?$r:Ir,T=p==="y"?"height":"width",D=b[p],j=b[p]+d[E],A=b[p]-d[O],M=c?-S[T]/2:0,P=h===Ns?x[T]:S[T],$=h===Ns?-S[T]:-x[T],L=e.elements.arrow,z=c&&L?By(L):{width:0,height:0},G=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:VT(),U=G[E],V=G[O],N=oh(0,x[T],z[T]),H=g?x[T]/2-M-N-U-w:P-N-U-w,Q=g?-x[T]/2+M+N+V+w:$+N+V+w,ee=e.elements.arrow&&kc(e.elements.arrow),X=ee?p==="y"?ee.clientTop||0:ee.clientLeft||0:0,J=e.modifiersData.offset?e.modifiersData.offset[e.placement][p]:0,ie=b[p]+H-J-X,ue=b[p]+Q-J,he=oh(c?Math.min(j,ie):j,D,c?Math.max(A,ue):A);b[p]=he,_[p]=he-D}if(i){const E=p==="x"?hr:mr,O=p==="x"?$r:Ir,T=b[v],D=T+d[E],j=T-d[O],A=oh(D,T,j);b[v]=A,_[v]=A-T}e.modifiersData[n]=_}}const O0e={name:"preventOverflow",enabled:!0,phase:"main",fn:E0e,requiresIfExists:["offset"]};function k0e({state:e,name:t}){const n=e.elements.arrow,r=e.modifiersData.popperOffsets,i=ri(e.placement),o=Vy(i),s=[mr,Ir].indexOf(i)>=0?"height":"width";if(!n||!r)return;const l=e.modifiersData[`${t}#persistent`].padding,c=By(n),u=o==="y"?hr:mr,d=o==="y"?$r:Ir,f=e.rects.reference[s]+e.rects.reference[o]-r[o]-e.rects.popper[s],h=r[o]-e.rects.reference[o],g=kc(n),p=g?o==="y"?g.clientHeight||0:g.clientWidth||0:0,v=f/2-h/2,b=l[u],x=p-c[s]-l[d],S=p/2-c[s]/2+v,w=oh(b,S,x),_=o;e.modifiersData[t]={[_]:w,centerOffset:w-S}}function T0e({state:e,options:t,name:n}){let{element:r="[data-popper-arrow]",padding:i=0}=t;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||WT(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[`${n}#persistent`]={padding:UT(typeof i!="number"?i:HT(i,Tc))}))}const A0e={name:"arrow",enabled:!0,phase:"main",fn:k0e,effect:T0e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ZT(e,t,n={x:0,y:0}){return{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function XT(e){return[hr,Ir,$r,mr].some(t=>e[t]>=0)}function D0e({state:e,name:t}){const n=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,o=jc(e,{elementContext:"reference"}),a=jc(e,{altBoundary:!0}),s=ZT(o,n),l=ZT(a,r,i),c=XT(s),u=XT(l);e.modifiersData[t]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:u},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-reference-hidden":c,"data-popper-escaped":u})}const j0e=r0e({defaultModifiers:[o0e,s0e,d0e,m0e,y0e,w0e,O0e,A0e,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:D0e}]}),JT=jT?k.useLayoutEffect:k.useEffect,P0e=(e,t)=>JSON.stringify(e)===JSON.stringify(t),QT=e=>e.reduce((t,[n,r])=>(t[n]=r,t),{}),M0e=[],$0e=(e,t,n={})=>{const r=k.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||M0e},[o,a]=k.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"}},attributes:{}}),s=k.useMemo(()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const d=Object.keys(u.elements);a({styles:QT(d.map(f=>[f,u.styles[f]||{}])),attributes:QT(d.map(f=>[f,u.attributes[f]]))})},requires:["computeStyles"]}),[]),l=k.useMemo(()=>{const u={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[...i.modifiers,s,{name:"applyStyles",enabled:!1}]};return P0e(r.current,u)?r.current||u:(r.current=u,u)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,s]),c=k.useRef();return JT(()=>{c&&c.current&&c.current.setOptions(l)},[l]),JT(()=>{if(e==null||t==null)return;const d=(n.createPopper||j0e)(e,t,l);return c.current=d,()=>{d.destroy(),c.current=null}},[e,t,n.createPopper]),{state:c.current?c.current.state:null,styles:o.styles,attributes:o.attributes,update:c.current?c.current.update:null,forceUpdate:c.current?c.current.forceUpdate:null}},I0e={left:"right",right:"left",bottom:"top",top:"bottom","top-start":"bottom-end","top-end":"bottom-start","bottom-start":"top-end","bottom-end":"top-start","left-start":"right-end","left-end":"right-start","right-start":"left-end","right-end":"left-start"},L0e=e=>e.replace(/left|right|bottom|top|top-start|top-end|bottom-start|bottom-end|right-start|right-end|left-start|left-end/g,t=>I0e[t]),F0e=e=>`opacity ${e}ms cubic-bezier(.54, 1.5, .38, 1.11)`,Uy=({trigger:e,popper:t,direction:n="down",position:r="start",placement:i,width:o,minWidth:a="trigger",maxWidth:s,appendTo:l="inline",zIndex:c=9999,isVisible:u=!0,positionModifiers:d,distance:f=0,onMouseEnter:h,onMouseLeave:g,onFocus:p,onBlur:v,onDocumentClick:b,onTriggerClick:x,onTriggerEnter:S,onPopperClick:w,onPopperMouseEnter:_,onPopperMouseLeave:E,onDocumentKeyDown:O,enableFlip:T=!0,flipBehavior:D="flip",triggerRef:j,popperRef:A,animationDuration:M=0,entryDelay:P=0,exitDelay:$=0,onHidden:L=()=>{},onHide:z=()=>{},onMount:G=()=>{},onShow:U=()=>{},onShown:V=()=>{},preventOverflow:N=!1})=>{var H;const[Q,ee]=k.useState(null),[X,J]=k.useState(null),[ie,ue]=k.useState(null),[he,Z]=k.useState(null),[ne,pe]=k.useState(!1),[B,ke]=k.useState(0),[Ee,He]=k.useState(u),Ie=k.useRef(null),at=k.useRef(null),I=k.useRef(null),R=k.useRef(),q=X||Q,de=u||Ee,fe=(H=(j==null?void 0:j.current)||Q)===null||H===void 0?void 0:H.parentElement,oe=Ime(fe),Y=k.useMemo(()=>{const we={left:"left",right:"right",center:"center"};return{ltr:Object.assign({start:"left",end:"right"},we),rtl:Object.assign({start:"right",end:"left"},we)}[oe][r]},[r,oe]),le=k.useCallback(we=>b(we,q,ie),[de,Q,X,ie,b]);k.useEffect(()=>{pe(!0),G()},[]),k.useEffect(()=>()=>{eh([Ie,I,at])},[]),k.useEffect(()=>{j&&(j.current?J(j.current):typeof j=="function"&&J(j()))},[j,e]),k.useEffect(()=>{A&&(A.current?ue(A.current):typeof A=="function"&&ue(A()))},[de,A]),k.useEffect(()=>{const we=new MutationObserver(()=>{We&&We()});return ie&&we.observe(ie,{attributes:!0,childList:!0,subtree:!0}),()=>{we.disconnect()}},[ie]);const be=(we,ot,ln,Ut=!1)=>{we&&ot&&ot.addEventListener(ln,we,{capture:Ut})},xe=(we,ot,ln,Ut=!1)=>{we&&ot&&ot.removeEventListener(ln,we,{capture:Ut})};k.useEffect(()=>(be(h,q,"mouseenter"),be(g,q,"mouseleave"),be(p,q,"focus"),be(v,q,"blur"),be(x,q,"click"),be(S,q,"keydown"),be(w,ie,"click"),be(_,ie,"mouseenter"),be(E,ie,"mouseleave"),b&&be(le,document,"click",!0),be(O,document,"keydown",!0),()=>{xe(h,q,"mouseenter"),xe(g,q,"mouseleave"),xe(p,q,"focus"),xe(v,q,"blur"),xe(x,q,"click"),xe(S,q,"keydown"),xe(w,ie,"click"),xe(_,ie,"mouseenter"),xe(E,ie,"mouseleave"),b&&xe(le,document,"click",!0),xe(O,document,"keydown",!0)}),[Q,ie,h,g,p,v,x,S,w,_,E,b,O,X]);const Ne=()=>{if(i)return i;let we=n==="up"?"top":"bottom";return Y!=="center"&&(we=`${we}-${Y==="right"?"end":"start"}`),we},Re=k.useMemo(Ne,[n,Y,i]),nt=k.useMemo(()=>L0e(Ne()),[n,Y,i]),wt=k.useMemo(()=>({name:"widthMods",enabled:o!==void 0||a!==void 0||s!==void 0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:we})=>{const ot=we.rects.reference.width;o&&(we.styles.popper.width=o==="trigger"?`${ot}px`:o),a&&(we.styles.popper.minWidth=a==="trigger"?`${ot}px`:a),s&&(we.styles.popper.maxWidth=s==="trigger"?`${ot}px`:s)},effect:({state:we})=>{const ot=we.elements.reference.offsetWidth;return o&&(we.elements.popper.style.width=o==="trigger"?`${ot}px`:o),a&&(we.elements.popper.style.minWidth=a==="trigger"?`${ot}px`:a),s&&(we.elements.popper.style.maxWidth=s==="trigger"?`${ot}px`:s),()=>{}}}),[o,a,s]),{styles:jt,attributes:Ct,update:We,forceUpdate:Pe}=$0e(q,ie,{placement:Re,modifiers:[{name:"offset",options:{offset:[0,f]}},{name:"preventOverflow",enabled:N},{name:"hide",enabled:!0},{name:"flip",enabled:Re.startsWith("auto")||T,options:{fallbackPlacements:D==="flip"?[nt]:D}},wt]});k.useEffect(()=>{var we,ot,ln,Ut,wo,Co,Ri;const Vi=((Ut=(ln=(ot=(we=t==null?void 0:t.props)===null||we===void 0?void 0:we.children)===null||ot===void 0?void 0:ot[1])===null||ln===void 0?void 0:ln.props)===null||Ut===void 0?void 0:Ut.children)||((Ri=(Co=(wo=t==null?void 0:t.props)===null||wo===void 0?void 0:wo.children)===null||Co===void 0?void 0:Co.props)===null||Ri===void 0?void 0:Ri.children);Z(Vi),Vi&&he&&Vi!==he&&Pe&&Pe()},[t]),k.useEffect(()=>{R.current<$&&(eh([Ie,I]),I.current=setTimeout(()=>{Ie.current=setTimeout(()=>{He(!1)},M)},$)),R.current=$},[$]);const mt=()=>{U(),eh([Ie,I]),at.current=setTimeout(()=>{He(!0),ke(1),V()},P)},Rt=()=>{z(),eh([at]),I.current=setTimeout(()=>{ke(0),Ie.current=setTimeout(()=>{He(!1),L()},M)},$)};k.useEffect(()=>{u?mt():Rt()},[u]);const Et=()=>{if(Ct&&Ct.popper&&Ct.popper["data-popper-placement"]){const we=Ct.popper["data-popper-placement"];return d[we]}return d.top},Nn=Object.assign({className:re(t.props&&t.props.className,d&&Et()),style:Object.assign(Object.assign(Object.assign({},t.props&&t.props.style||{}),jt.popper),{zIndex:c,opacity:B,transition:F0e(M)})},Ct.popper),Vt=()=>{const we=k.cloneElement(t,Nn);return A?we:k.createElement("div",{style:{display:"contents"},ref:ot=>ue(ot==null?void 0:ot.firstElementChild)},we)},Bn=()=>{if(l==="inline")return Vt();{const we=typeof l=="function"?l():l;return lv.createPortal(Vt(),we)}};return k.createElement(k.Fragment,null,!j&&e&&k.isValidElement(e)&&k.createElement("div",{style:{display:"contents"},ref:we=>ee(we==null?void 0:we.firstElementChild)},e),j&&e&&k.isValidElement(e)&&e,ne&&de&&Bn())};Uy.displayName="Popper";const N0e=(e,t,n)=>{let r;if(jT){const{ResizeObserver:i}=window;if(e&&i){const o=new i(a=>{window.requestAnimationFrame(()=>{Array.isArray(a)&&a.length>0})});o.observe(e),r=()=>o.unobserve(e)}else window.addEventListener("resize",t),r=()=>window.removeEventListener("resize",t)}return()=>{r&&r()}},gn={modifiers:{top:"pf-m-top",topLeft:"pf-m-top-left",topRight:"pf-m-top-right",bottom:"pf-m-bottom",bottomLeft:"pf-m-bottom-left",bottomRight:"pf-m-bottom-right",left:"pf-m-left",leftTop:"pf-m-left-top",leftBottom:"pf-m-left-bottom",right:"pf-m-right",rightTop:"pf-m-right-top",rightBottom:"pf-m-right-bottom",textAlignLeft:"pf-m-text-align-left"},themeDark:"pf-v5-theme-dark",tooltip:"pf-v5-c-tooltip",tooltipArrow:"pf-v5-c-tooltip__arrow",tooltipContent:"pf-v5-c-tooltip__content"},e3=e=>{var{className:t,children:n,isLeftAligned:r}=e,i=Ae(e,["className","children","isLeftAligned"]);return k.createElement("div",Object.assign({className:re(gn.tooltipContent,r&&gn.modifiers.textAlignLeft,t)},i),n)};e3.displayName="TooltipContent";const t3=e=>{var{className:t}=e,n=Ae(e,["className"]);return k.createElement("div",Object.assign({className:re(gn.tooltipArrow,t)},n))};t3.displayName="TooltipArrow";const n3={name:"--pf-v5-c-tooltip--MaxWidth",value:"18.75rem",var:"var(--pf-v5-c-tooltip--MaxWidth)"};var r3;(function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right",e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end"})(r3||(r3={}));let B0e=1;const ah=e=>{var{content:t,position:n="top",trigger:r="mouseenter focus",isVisible:i=!1,isContentLeftAligned:o=!1,enableFlip:a=!0,className:s="",entryDelay:l=300,exitDelay:c=300,appendTo:u=()=>document.body,zIndex:d=9999,minWidth:f,maxWidth:h=n3.value,distance:g=15,aria:p="describedby",flipBehavior:v=["top","right","bottom","left","top","right","bottom"],id:b=`pf-tooltip-${B0e++}`,children:x,animationDuration:S=300,triggerRef:w,"aria-live":_=w?"polite":"off",onTooltipHidden:E=()=>{}}=e,O=Ae(e,["content","position","trigger","isVisible","isContentLeftAligned","enableFlip","className","entryDelay","exitDelay","appendTo","zIndex","minWidth","maxWidth","distance","aria","flipBehavior","id","children","animationDuration","triggerRef","aria-live","onTooltipHidden"]);const T=r.includes("mouseenter"),D=r.includes("focus"),j=r.includes("click"),A=r==="manual",[M,P]=k.useState(!1),$=k.createRef(),L=X=>{A||X.key===Ye.Escape&&M&&U()},z=X=>{X.key===Ye.Enter&&(M?U():G())};k.useEffect(()=>{i?G():U()},[i]);const G=()=>{P(!0)},U=()=>{P(!1)},V={top:gn.modifiers.top,bottom:gn.modifiers.bottom,left:gn.modifiers.left,right:gn.modifiers.right,"top-start":gn.modifiers.topLeft,"top-end":gn.modifiers.topRight,"bottom-start":gn.modifiers.bottomLeft,"bottom-end":gn.modifiers.bottomRight,"left-start":gn.modifiers.leftTop,"left-end":gn.modifiers.leftBottom,"right-start":gn.modifiers.rightTop,"right-end":gn.modifiers.rightBottom},N=h!==n3.value,H=k.createElement("div",Object.assign({"aria-live":_,className:re(gn.tooltip,s),role:"tooltip",id:b,style:{maxWidth:N?h:null},ref:$},O),k.createElement(t3,null),k.createElement(e3,{isLeftAligned:o},t)),Q=(X,J)=>{M?U():X.target===J&&G()},ee=()=>p==="describedby"&&x&&x.props&&!x.props["aria-describedby"]?k.cloneElement(x,{"aria-describedby":b}):p==="labelledby"&&x.props&&!x.props["aria-labelledby"]?k.cloneElement(x,{"aria-labelledby":b}):x;return k.createElement(Uy,{trigger:p!=="none"&&M?ee():x,triggerRef:w,popper:H,popperRef:$,minWidth:f!==void 0?f:"revert",appendTo:u,isVisible:M,positionModifiers:V,distance:g,placement:n,onMouseEnter:T&&G,onMouseLeave:T&&U,onPopperMouseEnter:T&&G,onPopperMouseLeave:T&&U,onFocus:D&&G,onBlur:D&&U,onDocumentClick:j&&Q,onDocumentKeyDown:A?null:L,onTriggerEnter:A?null:z,enableFlip:a,zIndex:d,flipBehavior:v,animationDuration:S,entryDelay:l,exitDelay:c,onHidden:E})};ah.displayName="Tooltip";class Hy extends k.Component{constructor(){super(...arguments),this.ref=k.createRef(),this.additionalRef=k.createRef(),this.getInnerNode=t=>t&&t.childNodes&&t.childNodes.length?t.childNodes[0]:t,this.onKeyDown=t=>{var n,r,i,o,a,s,l,c,u,d;const f=t.target===this.ref.current?0:1;this.props.customChild||t.preventDefault(),t.key==="ArrowUp"?((r=(n=this.props.context)===null||n===void 0?void 0:n.keyHandler)===null||r===void 0||r.call(n,this.props.index,f,xc.UP),t.stopPropagation()):t.key==="ArrowDown"?((o=(i=this.props.context)===null||i===void 0?void 0:i.keyHandler)===null||o===void 0||o.call(i,this.props.index,f,xc.DOWN),t.stopPropagation()):t.key==="ArrowRight"?((s=(a=this.props.context)===null||a===void 0?void 0:a.keyHandler)===null||s===void 0||s.call(a,this.props.index,f,xc.RIGHT),t.stopPropagation()):t.key==="ArrowLeft"?((c=(l=this.props.context)===null||l===void 0?void 0:l.keyHandler)===null||c===void 0||c.call(l,this.props.index,f,xc.LEFT),t.stopPropagation()):(t.key==="Enter"||t.key===" ")&&(t.target.click(),this.props.enterTriggersArrowDown&&((d=(u=this.props.context)===null||u===void 0?void 0:u.keyHandler)===null||d===void 0||d.call(u,this.props.index,f,xc.DOWN)))},this.componentRef=t=>{this.ref.current=t;const{component:n}=this.props,r=n.ref;r&&(typeof r=="function"?r(t):r.current=t)}}componentDidMount(){var t;const{context:n,index:r,isDisabled:i,role:o,customChild:a,autoFocus:s}=this.props,l=a?this.getInnerNode(this.ref.current):this.ref.current;(t=n==null?void 0:n.sendRef)===null||t===void 0||t.call(n,r,[l,a?l:this.additionalRef.current],i,o==="separator"),s&&setTimeout(()=>l.focus())}componentDidUpdate(){var t;const{context:n,index:r,isDisabled:i,role:o,customChild:a}=this.props,s=a?this.getInnerNode(this.ref.current):this.ref.current;(t=n==null?void 0:n.sendRef)===null||t===void 0||t.call(n,r,[s,a?s:this.additionalRef.current],i,o==="separator")}extendAdditionalChildRef(){const{additionalChild:t}=this.props;return k.cloneElement(t,{ref:this.additionalRef})}render(){const t=this.props,{className:n,children:r,context:i,onClick:o,component:a,role:s,isDisabled:l,isAriaDisabled:c,isPlainText:u,index:d,href:f,tooltip:h,tooltipProps:g,id:p,componentID:v,listItemClassName:b,additionalChild:x,customChild:S,enterTriggersArrowDown:w,icon:_,autoFocus:E,styleChildren:O,description:T,inoperableEvents:D}=t,j=Ae(t,["className","children","context","onClick","component","role","isDisabled","isAriaDisabled","isPlainText","index","href","tooltip","tooltipProps","id","componentID","listItemClassName","additionalChild","customChild","enterTriggersArrowDown","icon","autoFocus","styleChildren","description","inoperableEvents"]);let A=re(_&&da.modifiers.icon,c&&da.modifiers.ariaDisabled,n);a==="a"?j["aria-disabled"]=l||c:a==="button"&&(j["aria-disabled"]=l||c,j.type=j.type||"button");const M=L=>h?k.createElement(ah,Object.assign({content:h},g),L):L,P=L=>k.cloneElement(L,Object.assign(Object.assign({},O&&{className:re(L.props.className,A)}),this.props.role!=="separator"&&{role:s,ref:this.componentRef})),$=L=>{const z=L,G=T?k.createElement(k.Fragment,null,k.createElement("div",{className:da.dropdownMenuItemMain},_&&k.createElement("span",{className:re(da.dropdownMenuItemIcon)},_),r),k.createElement("div",{className:da.dropdownMenuItemDescription},T)):k.createElement(k.Fragment,null,_&&k.createElement("span",{className:re(da.dropdownMenuItemIcon)},_),r);return k.createElement(z,Object.assign({},j,l||c?$me(D):null,{href:f,ref:this.ref,className:A,id:v,role:s}),G)};return k.createElement(kme.Consumer,null,({onSelect:L,itemClass:z,disabledClass:G,plainTextClass:U})=>(this.props.role!=="separator"&&(A=re(A,l&&G,u&&U,z,T&&da.modifiers.description)),S?k.cloneElement(S,{ref:this.ref,onKeyDown:this.onKeyDown}):k.createElement("li",Object.assign({},b&&{className:b},{role:"none",onKeyDown:this.onKeyDown,onClick:V=>{!l&&!c&&(o==null||o(V),L==null||L(V))},id:p}),M(k.isValidElement(a)?P(a):$(a)),x&&this.extendAdditionalChildRef())))}}Hy.displayName="InternalDropdownItem",Hy.defaultProps={className:"",component:"a",role:"none",isDisabled:!1,isPlainText:!1,tooltipProps:{},onClick:e=>{},index:-1,context:{keyHandler:()=>{},sendRef:()=>{}},enterTriggersArrowDown:!1,icon:null,styleChildren:!0,description:null,inoperableEvents:["onClick","onKeyPress"]};const Gy={divider:"pf-v5-c-divider",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",vertical:"pf-m-vertical",insetNone:"pf-m-inset-none",insetXs:"pf-m-inset-xs",insetSm:"pf-m-inset-sm",insetMd:"pf-m-inset-md",insetLg:"pf-m-inset-lg",insetXl:"pf-m-inset-xl",inset_2xl:"pf-m-inset-2xl",inset_3xl:"pf-m-inset-3xl",horizontalOnSm:"pf-m-horizontal-on-sm",verticalOnSm:"pf-m-vertical-on-sm",insetNoneOnSm:"pf-m-inset-none-on-sm",insetXsOnSm:"pf-m-inset-xs-on-sm",insetSmOnSm:"pf-m-inset-sm-on-sm",insetMdOnSm:"pf-m-inset-md-on-sm",insetLgOnSm:"pf-m-inset-lg-on-sm",insetXlOnSm:"pf-m-inset-xl-on-sm",inset_2xlOnSm:"pf-m-inset-2xl-on-sm",inset_3xlOnSm:"pf-m-inset-3xl-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",verticalOnMd:"pf-m-vertical-on-md",insetNoneOnMd:"pf-m-inset-none-on-md",insetXsOnMd:"pf-m-inset-xs-on-md",insetSmOnMd:"pf-m-inset-sm-on-md",insetMdOnMd:"pf-m-inset-md-on-md",insetLgOnMd:"pf-m-inset-lg-on-md",insetXlOnMd:"pf-m-inset-xl-on-md",inset_2xlOnMd:"pf-m-inset-2xl-on-md",inset_3xlOnMd:"pf-m-inset-3xl-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",verticalOnLg:"pf-m-vertical-on-lg",insetNoneOnLg:"pf-m-inset-none-on-lg",insetXsOnLg:"pf-m-inset-xs-on-lg",insetSmOnLg:"pf-m-inset-sm-on-lg",insetMdOnLg:"pf-m-inset-md-on-lg",insetLgOnLg:"pf-m-inset-lg-on-lg",insetXlOnLg:"pf-m-inset-xl-on-lg",inset_2xlOnLg:"pf-m-inset-2xl-on-lg",inset_3xlOnLg:"pf-m-inset-3xl-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",verticalOnXl:"pf-m-vertical-on-xl",insetNoneOnXl:"pf-m-inset-none-on-xl",insetXsOnXl:"pf-m-inset-xs-on-xl",insetSmOnXl:"pf-m-inset-sm-on-xl",insetMdOnXl:"pf-m-inset-md-on-xl",insetLgOnXl:"pf-m-inset-lg-on-xl",insetXlOnXl:"pf-m-inset-xl-on-xl",inset_2xlOnXl:"pf-m-inset-2xl-on-xl",inset_3xlOnXl:"pf-m-inset-3xl-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",verticalOn_2xl:"pf-m-vertical-on-2xl",insetNoneOn_2xl:"pf-m-inset-none-on-2xl",insetXsOn_2xl:"pf-m-inset-xs-on-2xl",insetSmOn_2xl:"pf-m-inset-sm-on-2xl",insetMdOn_2xl:"pf-m-inset-md-on-2xl",insetLgOn_2xl:"pf-m-inset-lg-on-2xl",insetXlOn_2xl:"pf-m-inset-xl-on-2xl",inset_2xlOn_2xl:"pf-m-inset-2xl-on-2xl",inset_3xlOn_2xl:"pf-m-inset-3xl-on-2xl"}};var sh;(function(e){e.hr="hr",e.li="li",e.div="div"})(sh||(sh={}));const gr=e=>{var{className:t,component:n=sh.hr,inset:r,orientation:i}=e,o=Ae(e,["className","component","inset","orientation"]);const a=n;return k.createElement(a,Object.assign({className:re(Gy.divider,DT(r,Gy),DT(i,Gy),t)},n!=="hr"&&{role:"separator"},o))};gr.displayName="Divider";const qy=e=>{var{className:t="",ref:n,ouiaId:r,ouiaSafe:i}=e,o=Ae(e,["className","ref","ouiaId","ouiaSafe"]);const a=$T(qy.displayName,r,i);return k.createElement(Tme.Consumer,null,s=>k.createElement(Hy,Object.assign({},o,{context:s,component:k.createElement(gr,{component:sh.div}),className:t,role:"separator"},a)))};qy.displayName="DropdownSeparator";const i3=_o({name:"CaretDownIcon",height:512,width:320,svgPath:"M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z",yOffset:0,xOffset:0}),Pc={badge:"pf-v5-c-badge",modifiers:{read:"pf-m-read",unread:"pf-m-unread"},themeDark:"pf-v5-theme-dark"},o3=e=>{var{isRead:t=!1,className:n="",children:r="",screenReaderText:i}=e,o=Ae(e,["isRead","className","children","screenReaderText"]);return k.createElement("span",Object.assign({},o,{className:re(Pc.badge,t?Pc.modifiers.read:Pc.modifiers.unread,n)}),r,i&&k.createElement("span",{className:"pf-v5-screen-reader"},i))};o3.displayName="Badge";const lh={modifiers:{inline:"pf-m-inline",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl"},spinner:"pf-v5-c-spinner",spinnerPath:"pf-v5-c-spinner__path"},W0e={name:"--pf-v5-c-spinner--diameter",value:"3.375rem",var:"var(--pf-v5-c-spinner--diameter)"};var Yy;(function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"})(Yy||(Yy={}));const Ky=e=>{var{className:t="",size:n="xl","aria-valuetext":r="Loading...",diameter:i,isInline:o=!1,"aria-label":a,"aria-labelledBy":s}=e,l=Ae(e,["className","size","aria-valuetext","diameter","isInline","aria-label","aria-labelledBy"]);return k.createElement("svg",Object.assign({className:re(lh.spinner,o?lh.modifiers.inline:lh.modifiers[n],t),role:"progressbar","aria-valuetext":r,viewBox:"0 0 100 100"},i&&{style:{[W0e.name]:i}},a&&{"aria-label":a},s&&{"aria-labelledBy":s},!a&&!s&&{"aria-label":"Contents"},l),k.createElement("circle",{className:lh.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"}))};Ky.displayName="Spinner";const a3=e=>{var t=Ae(e,["children"]);return k.createElement(qy,Object.assign({},t))};a3.displayName="ApplicationLauncherSeparator";const z0e=_o({name:"StarIcon",height:512,width:576,svgPath:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z",yOffset:0,xOffset:0}),R0e=(e,t,n,r)=>{if(t){const i=[];return e.forEach(o=>{if(n.length>0)return o.props.children&&o.props.children.filter(a=>n.includes(a.props.id)).map(a=>i.push(k.cloneElement(a,{isFavorite:!0,id:`favorite-${a.props.id}`})))}),i}return e.filter(i=>n.includes(i.props.id)).map(i=>k.cloneElement(i,{isFavorite:!0,enterTriggersArrowDown:r}))},V0e=(e,t,n)=>t?e.map(r=>k.cloneElement(r,{children:k.Children.map(r.props.children,i=>i.type===a3||i.type===gr?i:k.cloneElement(i,{isFavorite:n.some(o=>o===i.props.id||`favorite-${o}`===i.props.id)}))})):e.map(r=>k.cloneElement(r,{isFavorite:n.some(i=>i===r.props.id)})),$t={badge:"pf-v5-c-badge",button:"pf-v5-c-button",buttonCount:"pf-v5-c-button__count",buttonIcon:"pf-v5-c-button__icon",buttonProgress:"pf-v5-c-button__progress",modifiers:{active:"pf-m-active",block:"pf-m-block",small:"pf-m-small",primary:"pf-m-primary",displayLg:"pf-m-display-lg",secondary:"pf-m-secondary",tertiary:"pf-m-tertiary",link:"pf-m-link",unread:"pf-m-unread",inline:"pf-m-inline",danger:"pf-m-danger",warning:"pf-m-warning",control:"pf-m-control",expanded:"pf-m-expanded",plain:"pf-m-plain",noPadding:"pf-m-no-padding",disabled:"pf-m-disabled",ariaDisabled:"pf-m-aria-disabled",progress:"pf-m-progress",inProgress:"pf-m-in-progress",start:"pf-m-start",end:"pf-m-end"},spinner:"pf-v5-c-spinner",themeDark:"pf-v5-theme-dark"};var ii;(function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.danger="danger",e.warning="warning",e.link="link",e.plain="plain",e.control="control"})(ii||(ii={}));var Zy;(function(e){e.button="button",e.submit="submit",e.reset="reset"})(Zy||(Zy={}));var Mc;(function(e){e.default="default",e.sm="sm",e.lg="lg"})(Mc||(Mc={}));const U0e=e=>{var{children:t=null,className:n="",component:r="button",isActive:i=!1,isBlock:o=!1,isDisabled:a=!1,isAriaDisabled:s=!1,isLoading:l=null,isDanger:c=!1,spinnerAriaValueText:u,spinnerAriaLabelledBy:d,spinnerAriaLabel:f,size:h=Mc.default,inoperableEvents:g=["onClick","onKeyPress"],isInline:p=!1,type:v=Zy.button,variant:b=ii.primary,iconPosition:x="start","aria-label":S=null,icon:w=null,ouiaId:_,ouiaSafe:E=!0,tabIndex:O=null,innerRef:T,countOptions:D}=e,j=Ae(e,["children","className","component","isActive","isBlock","isDisabled","isAriaDisabled","isLoading","isDanger","spinnerAriaValueText","spinnerAriaLabelledBy","spinnerAriaLabel","size","inoperableEvents","isInline","type","variant","iconPosition","aria-label","icon","ouiaId","ouiaSafe","tabIndex","innerRef","countOptions"]);const A=$T(ch.displayName,_,E,b),M=r,P=M==="button",$=p&&M==="span",L=g.reduce((G,U)=>Object.assign(Object.assign({},G),{[U]:V=>{V.preventDefault()}}),{}),z=()=>{if(a)return P?null:-1;if(s)return null;if($)return 0};return k.createElement(M,Object.assign({},j,s?L:null,{"aria-disabled":a||s,"aria-label":S,className:re($t.button,$t.modifiers[b],o&&$t.modifiers.block,a&&$t.modifiers.disabled,s&&$t.modifiers.ariaDisabled,i&&$t.modifiers.active,p&&b===ii.link&&$t.modifiers.inline,c&&(b===ii.secondary||b===ii.link)&&$t.modifiers.danger,l!==null&&b!==ii.plain&&$t.modifiers.progress,l&&$t.modifiers.inProgress,h===Mc.sm&&$t.modifiers.small,h===Mc.lg&&$t.modifiers.displayLg,n),disabled:P?a:null,tabIndex:O!==null?O:z(),type:P||$?v:null,role:$?"button":null,ref:T},A),l&&k.createElement("span",{className:re($t.buttonProgress)},k.createElement(Ky,{size:Yy.md,isInline:p,"aria-valuetext":u,"aria-label":f,"aria-labelledby":d})),b===ii.plain&&t===null&&w?w:null,b!==ii.plain&&w&&(x==="start"||x==="left")&&k.createElement("span",{className:re($t.buttonIcon,$t.modifiers.start)},w),t,b!==ii.plain&&w&&(x==="end"||x==="right")&&k.createElement("span",{className:re($t.buttonIcon,$t.modifiers.end)},w),D&&k.createElement("span",{className:re($t.buttonCount,D.className)},k.createElement(o3,{isRead:D.isRead},D.count)))},ch=k.forwardRef((e,t)=>k.createElement(U0e,Object.assign({innerRef:t},e)));ch.displayName="Button";const H0e=_o({name:"TimesIcon",height:512,width:352,svgPath:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",yOffset:0,xOffset:0}),G0e={dirRtl:"pf-v5-m-dir-rtl",form:"pf-v5-c-form",formActions:"pf-v5-c-form__actions",formFieldGroup:"pf-v5-c-form__field-group",formFieldGroupBody:"pf-v5-c-form__field-group-body",formFieldGroupHeader:"pf-v5-c-form__field-group-header",formFieldGroupHeaderActions:"pf-v5-c-form__field-group-header-actions",formFieldGroupHeaderDescription:"pf-v5-c-form__field-group-header-description",formFieldGroupHeaderMain:"pf-v5-c-form__field-group-header-main",formFieldGroupHeaderTitle:"pf-v5-c-form__field-group-header-title",formFieldGroupHeaderTitleText:"pf-v5-c-form__field-group-header-title-text",formFieldGroupToggle:"pf-v5-c-form__field-group-toggle",formFieldGroupToggleButton:"pf-v5-c-form__field-group-toggle-button",formFieldGroupToggleIcon:"pf-v5-c-form__field-group-toggle-icon",formFieldset:"pf-v5-c-form__fieldset",formGroup:"pf-v5-c-form__group",formGroupControl:"pf-v5-c-form__group-control",formGroupLabel:"pf-v5-c-form__group-label",formGroupLabelHelp:"pf-v5-c-form__group-label-help",formGroupLabelInfo:"pf-v5-c-form__group-label-info",formGroupLabelMain:"pf-v5-c-form__group-label-main",formHelperText:"pf-v5-c-form__helper-text",formHelperTextIcon:"pf-v5-c-form__helper-text-icon",formLabel:"pf-v5-c-form__label",formLabelRequired:"pf-v5-c-form__label-required",formLabelText:"pf-v5-c-form__label-text",formSection:"pf-v5-c-form__section",formSectionTitle:"pf-v5-c-form__section-title",modifiers:{horizontal:"pf-m-horizontal",alignRight:"pf-m-align-right",noPaddingTop:"pf-m-no-padding-top",info:"pf-m-info",horizontalOnXs:"pf-m-horizontal-on-xs",horizontalOnSm:"pf-m-horizontal-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",limitWidth:"pf-m-limit-width",action:"pf-m-action",disabled:"pf-m-disabled",inline:"pf-m-inline",stack:"pf-m-stack",error:"pf-m-error",success:"pf-m-success",warning:"pf-m-warning",inactive:"pf-m-inactive",hidden:"pf-m-hidden",expanded:"pf-m-expanded"},themeDark:"pf-v5-theme-dark"},Lr={formControl:"pf-v5-c-form-control",formControlIcon:"pf-v5-c-form-control__icon",formControlToggleIcon:"pf-v5-c-form-control__toggle-icon",formControlUtilities:"pf-v5-c-form-control__utilities",modifiers:{readonly:"pf-m-readonly",success:"pf-m-success",warning:"pf-m-warning",error:"pf-m-error",plain:"pf-m-plain",expanded:"pf-m-expanded",disabled:"pf-m-disabled",icon:"pf-m-icon",placeholder:"pf-m-placeholder",resizeVertical:"pf-m-resize-vertical",resizeHorizontal:"pf-m-resize-horizontal",resizeBoth:"pf-m-resize-both",status:"pf-m-status"},themeDark:"pf-v5-theme-dark"},s3=_o({name:"CheckCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z",yOffset:0,xOffset:0}),l3=_o({name:"ExclamationCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0}),c3=_o({name:"ExclamationTriangleIcon",height:512,width:576,svgPath:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0}),q0e={success:s3,error:l3,warning:c3},u3=e=>{var{status:t,customIcon:n,className:r}=e,i=Ae(e,["status","customIcon","className"]);const o=t&&q0e[t];return k.createElement("span",Object.assign({className:re(Lr.formControlIcon,t&&Lr.modifiers.status,r)},i),n||k.createElement(o,null))};var Xy;(function(e){e.text="text",e.date="date",e.datetimeLocal="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url"})(Xy||(Xy={}));var d3;(function(e){e.default="default",e.plain="plain"})(d3||(d3={}));class $c extends k.Component{constructor(t){super(t),this.inputRef=k.createRef(),this.observer=()=>{},this.handleChange=n=>{this.props.onChange&&this.props.onChange(n,n.currentTarget.value)},this.handleResize=()=>{const n=this.props.innerRef||this.inputRef;n&&n.current&&Mme(n.current,String(this.props.value))},this.restoreText=()=>{const n=this.props.innerRef||this.inputRef;n.current.value=String(this.props.value),n.current.scrollLeft=n.current.scrollWidth},this.onFocus=n=>{const{isLeftTruncated:r,isStartTruncated:i,onFocus:o}=this.props;(r||i)&&this.restoreText(),o&&o(n)},this.onBlur=n=>{const{isLeftTruncated:r,isStartTruncated:i,onBlur:o}=this.props;(r||i)&&this.handleResize(),o&&o(n)},this.sanitizeInputValue=n=>typeof n=="string"?n.replace(/\n/g," "):n,!t.id&&!t["aria-label"]&&!t["aria-labelledby"]&&console.error("Text input:","Text input requires either an id or aria-label to be specified"),this.state={ouiaStateId:th($c.displayName)}}componentDidMount(){if(this.props.isLeftTruncated||this.props.isStartTruncated){const t=this.props.innerRef||this.inputRef;this.observer=N0e(t.current,this.handleResize),this.handleResize()}}componentWillUnmount(){(this.props.isLeftTruncated||this.props.isStartTruncated)&&this.observer()}render(){const t=this.props,{innerRef:n,className:r,type:i,value:o,placeholder:a,validated:s,onChange:l,onFocus:c,onBlur:u,isLeftTruncated:d,isStartTruncated:f,isExpanded:h,expandedProps:g,readOnly:p,readOnlyVariant:v,isRequired:b,isDisabled:x,customIcon:S,ouiaId:w,ouiaSafe:_}=t,E=Ae(t,["innerRef","className","type","value","placeholder","validated","onChange","onFocus","onBlur","isLeftTruncated","isStartTruncated","isExpanded","expandedProps","readOnly","readOnlyVariant","isRequired","isDisabled","customIcon","ouiaId","ouiaSafe"]),O=["success","error","warning"].includes(s),T=g?{"aria-expanded":g==null?void 0:g.isExpanded,"aria-controls":g==null?void 0:g.ariaControls,role:"combobox"}:{};return k.createElement("span",{className:re(Lr.formControl,v&&Lr.modifiers.readonly,v==="plain"&&Lr.modifiers.plain,x&&Lr.modifiers.disabled,(h||(g==null?void 0:g.isExpanded))&&Lr.modifiers.expanded,S&&Lr.modifiers.icon,O&&Lr.modifiers[s],r)},k.createElement("input",Object.assign({},E,{onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.handleChange,type:i,value:this.sanitizeInputValue(o),"aria-invalid":E["aria-invalid"]?E["aria-invalid"]:s===En.error},T,{required:b,disabled:x,readOnly:!!v||p,ref:n||this.inputRef,placeholder:a},wc(uh.displayName,w!==void 0?w:this.state.ouiaStateId,_))),(S||O)&&k.createElement("span",{className:re(Lr.formControlUtilities)},S&&k.createElement(u3,{customIcon:S}),O&&k.createElement(u3,{status:s})))}}$c.displayName="TextInputBase",$c.defaultProps={"aria-label":null,isRequired:!1,validated:"default",isDisabled:!1,isExpanded:!1,type:Xy.text,isLeftTruncated:!1,isStartTruncated:!1,onChange:()=>{},ouiaSafe:!0};const uh=k.forwardRef((e,t)=>k.createElement($c,Object.assign({},e,{innerRef:t})));uh.displayName="TextInput";const f3=_o({name:"CheckIcon",height:512,width:512,svgPath:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",yOffset:0,xOffset:0}),ae={check:"pf-v5-c-check",checkLabel:"pf-v5-c-check__label",chipGroup:"pf-v5-c-chip-group",divider:"pf-v5-c-divider",formControl:"pf-v5-c-form-control",modifiers:{invalid:"pf-m-invalid",success:"pf-m-success",warning:"pf-m-warning",disabled:"pf-m-disabled",active:"pf-m-active",expanded:"pf-m-expanded",plain:"pf-m-plain",typeahead:"pf-m-typeahead",placeholder:"pf-m-placeholder",top:"pf-m-top",alignRight:"pf-m-align-right",static:"pf-m-static",favorite:"pf-m-favorite",favoriteAction:"pf-m-favorite-action",focus:"pf-m-focus",link:"pf-m-link",action:"pf-m-action",selected:"pf-m-selected",description:"pf-m-description",load:"pf-m-load",loading:"pf-m-loading"},select:"pf-v5-c-select",selectListItem:"pf-v5-c-select__list-item",selectMenu:"pf-v5-c-select__menu",selectMenuFieldset:"pf-v5-c-select__menu-fieldset",selectMenuFooter:"pf-v5-c-select__menu-footer",selectMenuGroup:"pf-v5-c-select__menu-group",selectMenuGroupTitle:"pf-v5-c-select__menu-group-title",selectMenuItem:"pf-v5-c-select__menu-item",selectMenuItemActionIcon:"pf-v5-c-select__menu-item-action-icon",selectMenuItemCount:"pf-v5-c-select__menu-item-count",selectMenuItemDescription:"pf-v5-c-select__menu-item-description",selectMenuItemIcon:"pf-v5-c-select__menu-item-icon",selectMenuItemMain:"pf-v5-c-select__menu-item-main",selectMenuItemMatch:"pf-v5-c-select__menu-item--match",selectMenuItemRow:"pf-v5-c-select__menu-item-row",selectMenuItemText:"pf-v5-c-select__menu-item-text",selectMenuSearch:"pf-v5-c-select__menu-search",selectMenuWrapper:"pf-v5-c-select__menu-wrapper",selectToggle:"pf-v5-c-select__toggle",selectToggleArrow:"pf-v5-c-select__toggle-arrow",selectToggleBadge:"pf-v5-c-select__toggle-badge",selectToggleButton:"pf-v5-c-select__toggle-button",selectToggleClear:"pf-v5-c-select__toggle-clear",selectToggleIcon:"pf-v5-c-select__toggle-icon",selectToggleStatusIcon:"pf-v5-c-select__toggle-status-icon",selectToggleText:"pf-v5-c-select__toggle-text",selectToggleTypeahead:"pf-v5-c-select__toggle-typeahead",selectToggleWrapper:"pf-v5-c-select__toggle-wrapper",themeDark:"pf-v5-theme-dark"},h3=_o({name:"TimesCircleIcon",height:512,width:512,svgPath:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z",yOffset:0,xOffset:0}),dh={check:"pf-v5-c-check",checkBody:"pf-v5-c-check__body",checkDescription:"pf-v5-c-check__description",checkInput:"pf-v5-c-check__input",checkLabel:"pf-v5-c-check__label",checkLabelRequired:"pf-v5-c-check__label-required",modifiers:{standalone:"pf-m-standalone",disabled:"pf-m-disabled"}},Jy=k.createContext(null);Jy.Provider;const Qy=Jy.Consumer;var ze;(function(e){e.single="single",e.checkbox="checkbox",e.typeahead="typeahead",e.typeaheadMulti="typeaheadmulti"})(ze||(ze={}));var Ic;(function(e){e.right="right",e.left="left"})(Ic||(Ic={}));var Lc;(function(e){e.up="up",e.down="down"})(Lc||(Lc={}));const Fc="input, button, select, textarea, a[href]";class oi extends k.Component{constructor(){super(...arguments),this.ref=k.createRef(),this.liRef=k.createRef(),this.favoriteRef=k.createRef(),this.onKeyDown=(t,n,r,i)=>{const{index:o,keyHandler:a,isLastOptionBeforeFooter:s}=this.props;let l=!1;s!==void 0&&(l=s(o)),t.key===Ye.Tab&&(i&&!l?(t.shiftKey?a(o,n,"up"):a(o,n,"down"),t.stopPropagation()):t.shiftKey?a(o,n,"up"):a(o,n,"tab")),t.preventDefault(),t.key===Ye.ArrowUp?a(o,n,"up"):t.key===Ye.ArrowDown?a(o,n,"down"):t.key===Ye.ArrowLeft?a(o,n,"left"):t.key===Ye.ArrowRight?a(o,n,"right"):t.key===Ye.Enter&&(r!==void 0?r():this.ref.current.click())}}componentDidMount(){this.props.sendRef(this.props.isDisabled?null:this.ref.current,this.props.isDisabled?null:this.favoriteRef.current,this.props.isDisabled?null:this.liRef.current,this.props.index)}componentDidUpdate(){this.props.sendRef(this.props.isDisabled?null:this.ref.current,this.props.isDisabled?null:this.favoriteRef.current,this.props.isDisabled?null:this.liRef.current,this.props.index)}render(){const t=this.props,{children:n,className:r,id:i,description:o,itemCount:a,value:s,onClick:l,isDisabled:c,isPlaceholder:u,isNoResultsOption:d,isSelected:f,isChecked:h,isFocused:g,sendRef:p,keyHandler:v,index:b,component:x,inputId:S,isFavorite:w,ariaIsFavoriteLabel:_="starred",ariaIsNotFavoriteLabel:E="not starred",isLoad:O,isLoading:T,setViewMoreNextIndex:D,isLastOptionBeforeFooter:j,isGrouped:A=!1}=t,M=Ae(t,["children","className","id","description","itemCount","value","onClick","isDisabled","isPlaceholder","isNoResultsOption","isSelected","isChecked","isFocused","sendRef","keyHandler","index","component","inputId","isFavorite","ariaIsFavoriteLabel","ariaIsNotFavoriteLabel","isLoad","isLoading","setViewMoreNextIndex","isLastOptionBeforeFooter","isGrouped"]),P=x;!i&&w!==null&&console.error("Please provide an id to use the favorites feature.");const $=i||kT("select-option"),L=V=>k.createElement("button",{className:re(ae.selectMenuItem,ae.modifiers.action,ae.modifiers.favoriteAction),"aria-label":w?_:E,onClick:()=>{V($.replace("favorite-",""),w)},onKeyDown:N=>{this.onKeyDown(N,1,()=>V($.replace("favorite-",""),w))},ref:this.favoriteRef},k.createElement("span",{className:re(ae.selectMenuItemActionIcon)},k.createElement(z0e,null))),z=a?k.createElement("span",{className:re(ae.selectMenuItemRow)},k.createElement("span",{className:re(ae.selectMenuItemText)},n||s&&s.toString&&s.toString()),k.createElement("span",{className:re(ae.selectMenuItemCount)},a)):n||s.toString(),G=V=>{D(),l(V)},U=(V,N,H,Q,ee,X)=>{if(H!==ze.checkbox&&T&&A)return k.createElement("div",{role:"presentation",className:re(ae.selectListItem,T&&ae.modifiers.loading,r)},n);if(H!==ze.checkbox&&O&&A)return k.createElement("div",null,k.createElement("button",Object.assign({},M,{role:"presentation",className:re(ae.selectMenuItem,ae.modifiers.load,r),onClick:J=>{G(J),J.stopPropagation()},ref:this.ref,type:"button"}),n||s.toString()));if(H!==ze.checkbox)return k.createElement("li",{id:$,role:"presentation",className:re(T&&ae.selectListItem,!T&&ae.selectMenuWrapper,w&&ae.modifiers.favorite,g&&ae.modifiers.focus,T&&ae.modifiers.loading),ref:this.liRef},T&&n,O&&!A&&k.createElement("button",Object.assign({},M,{className:re(ae.selectMenuItem,ae.modifiers.load,r),onClick:J=>{G(J),J.stopPropagation()},ref:this.ref,onKeyDown:J=>{this.onKeyDown(J,0)},type:"button"}),z),!T&&!O&&k.createElement(k.Fragment,null,k.createElement(P,Object.assign({},M,{className:re(ae.selectMenuItem,O&&ae.modifiers.load,f&&ae.modifiers.selected,c&&ae.modifiers.disabled,o&&ae.modifiers.description,w!==null&&ae.modifiers.link,r),onClick:J=>{c||(l(J),V(J,s,u),X&&N())},role:"option","aria-selected":f||null,ref:this.ref,onKeyDown:J=>{this.onKeyDown(J,0)},type:"button"}),o&&k.createElement(k.Fragment,null,k.createElement("span",{className:re(ae.selectMenuItemMain)},z,f&&k.createElement("span",{className:re(ae.selectMenuItemIcon)},k.createElement(f3,{"aria-hidden":!0}))),k.createElement("span",{className:re(ae.selectMenuItemDescription)},o)),!o&&k.createElement(k.Fragment,null,z,f&&k.createElement("span",{className:re(ae.selectMenuItemIcon)},k.createElement(f3,{"aria-hidden":!0})))),w!==null&&i&&L(ee)));if(H===ze.checkbox&&O)return k.createElement("button",{className:re(ae.selectMenuItem,ae.modifiers.load,g&&ae.modifiers.focus,r),onKeyDown:J=>{this.onKeyDown(J,0,void 0,!0)},onClick:J=>{G(J),J.stopPropagation()},ref:this.ref},n||s&&s.toString&&s.toString());if(H===ze.checkbox&&T)return k.createElement("div",{className:re(ae.selectListItem,T&&ae.modifiers.loading,r)},n);if(H===ze.checkbox&&!d&&!T&&!O)return k.createElement("label",Object.assign({},M,{className:re(dh.check,ae.selectMenuItem,c&&ae.modifiers.disabled,o&&ae.modifiers.description,r),onKeyDown:J=>{this.onKeyDown(J,0,void 0,!0)}}),k.createElement("input",{id:S||`${Q}-${s.toString()}`,className:re(dh.checkInput),type:"checkbox",onChange:J=>{c||(l(J),V(J,s))},ref:this.ref,checked:h||!1,disabled:c}),k.createElement("span",{className:re(dh.checkLabel,c&&ae.modifiers.disabled)},z),o&&k.createElement("div",{className:re(dh.checkDescription)},o));if(H===ze.checkbox&&d&&!T&&!O)return k.createElement("div",null,k.createElement(P,Object.assign({},M,{className:re(ae.selectMenuItem,f&&ae.modifiers.selected,c&&ae.modifiers.disabled,r),role:"option","aria-selected":f||null,ref:this.ref,onKeyDown:J=>{this.onKeyDown(J,0,void 0,!0)},type:"button"}),z))};return k.createElement(Qy,null,({onSelect:V,onClose:N,variant:H,inputIdPrefix:Q,onFavorite:ee,shouldResetOnSelect:X})=>k.createElement(k.Fragment,null,U(V,N,H,Q,ee,X)))}}oi.displayName="SelectOption",oi.defaultProps={className:"",value:"",index:0,isDisabled:!1,isPlaceholder:!1,isSelected:!1,isChecked:!1,isNoResultsOption:!1,component:"button",onClick:()=>{},sendRef:()=>{},keyHandler:()=>{},inputId:"",isFavorite:null,isLoad:!1,isLoading:!1,setViewMoreNextIndex:()=>{},isLastOptionBeforeFooter:()=>!1};const fa=e=>{var{children:t=[],className:n="",label:r="",titleId:i=""}=e,o=Ae(e,["children","className","label","titleId"]);return k.createElement(Qy,null,({variant:a})=>k.createElement("div",Object.assign({},o,{className:re(ae.selectMenuGroup,n)}),k.createElement("div",{className:re(ae.selectMenuGroupTitle),id:i,"aria-hidden":!0},r),a===ze.checkbox?t:k.createElement("ul",{role:"listbox"},t)))};fa.displayName="SelectGroup";class ev extends k.Component{extendChildren(t){const{children:n,hasInlineFilter:r,isGrouped:i}=this.props,o=n;let a=r?1:0;return i?k.Children.map(o,s=>s.type===fa?k.cloneElement(s,{titleId:s.props.label&&s.props.label.replace(/\W/g,"-"),children:k.Children.map(s.props.children,l=>this.cloneOption(l,a++,t))}):this.cloneOption(s,a++,t)):k.Children.map(o,s=>this.cloneOption(s,a++,t))}cloneOption(t,n,r){const{selected:i,sendRef:o,keyHandler:a}=this.props,s=this.checkForValue(t.props.value,i);return t.type===gr?t:k.cloneElement(t,{inputId:`${r}-${n}`,isSelected:s,sendRef:o,keyHandler:a,index:n})}checkForValue(t,n){if(!n||!t)return!1;const r=typeof t!="string"&&t.toString&&t.compareTo;return Array.isArray(n)?r?n.some(i=>i.compareTo(t)):n.includes(t):r?n.compareTo(t):n===t}extendCheckboxChildren(t){const{isGrouped:n,checked:r,sendRef:i,keyHandler:o,hasInlineFilter:a,isLastOptionBeforeFooter:s}=this.props;let l=a?1:0;return n?k.Children.map(t,c=>c.type===gr?c:c.type===oi?k.cloneElement(c,{isChecked:this.checkForValue(c.props.value,r),sendRef:i,keyHandler:o,index:l++,isLastOptionBeforeFooter:s}):k.cloneElement(c,{titleId:c.props.label&&c.props.label.replace(/\W/g,"-"),children:c.props.children?k.createElement("fieldset",{"aria-labelledby":c.props.label&&c.props.label.replace(/\W/g,"-"),className:re(ae.selectMenuFieldset)},k.Children.map(c.props.children,u=>u.type===gr?u:k.cloneElement(u,{isChecked:this.checkForValue(u.props.value,r),sendRef:i,keyHandler:o,index:l++,isLastOptionBeforeFooter:s}))):null})):k.Children.map(t,c=>c.type===gr?c:k.cloneElement(c,{isChecked:this.checkForValue(c.props.value,r),sendRef:i,keyHandler:o,index:l++,isLastOptionBeforeFooter:s}))}renderSelectMenu({variant:t,inputIdPrefix:n}){const r=this.props,{children:i,isCustomContent:o,className:a,isExpanded:s,openedOnEnter:l,selected:c,checked:u,isGrouped:d,position:f,sendRef:h,keyHandler:g,maxHeight:p,noResultsFoundText:v,createText:b,"aria-label":x,"aria-labelledby":S,hasInlineFilter:w,innerRef:_,footer:E,footerRef:O,isLastOptionBeforeFooter:T}=r,D=Ae(r,["children","isCustomContent","className","isExpanded","openedOnEnter","selected","checked","isGrouped","position","sendRef","keyHandler","maxHeight","noResultsFoundText","createText","aria-label","aria-labelledby","hasInlineFilter","innerRef","footer","footerRef","isLastOptionBeforeFooter"]);let j="div";const A=Object.assign({ref:_,className:re(E?`${ae.selectMenu}-list`:ae.selectMenu,f===Ic.right&&ae.modifiers.alignRight,a)},p&&{style:{maxHeight:p,overflow:"auto"}}),M=()=>t===ze.checkbox?this.extendCheckboxChildren(i):this.extendChildren(n);return o?A.children=i:w?k.Children.count(i)===0?A.children=k.createElement("fieldset",{className:re(ae.selectMenuFieldset)}):A.children=k.createElement("fieldset",{"aria-label":x,"aria-labelledby":!x&&S||null,className:re(G0e.formFieldset)},i.shift(),M()):(A.children=M(),d||(j="ul",A.role="listbox",A["aria-label"]=x,A["aria-labelledby"]=!x&&S||null)),k.createElement(k.Fragment,null,k.createElement(j,Object.assign({},A,D)),E&&k.createElement("div",{className:re(ae.selectMenuFooter),ref:O},E))}render(){return k.createElement(Qy,null,t=>this.renderSelectMenu(t))}}ev.displayName="SelectMenu",ev.defaultProps={className:"",isExpanded:!1,isGrouped:!1,openedOnEnter:!1,selected:"",maxHeight:"",position:Ic.left,sendRef:()=>{},keyHandler:()=>{},isCustomContent:!1,hasInlineFilter:!1,isLastOptionBeforeFooter:()=>{}};const Y0e=k.forwardRef((e,t)=>k.createElement(ev,Object.assign({innerRef:t},e),e.children));class tv extends k.Component{constructor(t){super(t),this.onDocClick=i=>{const{parentRef:o,menuRef:a,footerRef:s,isOpen:l,onToggle:c,onClose:u}=this.props,d=o&&o.current&&o.current.contains(i.target),f=a&&a.current&&a.current.contains&&a.current.contains(i.target),h=s&&s.current&&s.current.contains&&s.current.contains(i.target);l&&!(d||f||h)&&(c(i,!1),u())},this.handleGlobalKeys=i=>{const{parentRef:o,menuRef:a,hasFooter:s,footerRef:l,isOpen:c,variant:u,onToggle:d,onClose:f,moveFocusToLastMenuItem:h}=this.props,g=o&&o.current&&o.current.contains(i.target),p=a&&a.current&&a.current.contains&&a.current.contains(i.target);if(c&&i.key===Ye.Tab&&(u===ze.typeahead||u===ze.typeaheadMulti)){this.props.handleTypeaheadKeys("tab",i.shiftKey),i.preventDefault();return}if(c&&i.key===Ye.Tab&&s){const v=_c(l,Fc);if(v.length<=0){d(i,!1),f(),this.toggle.current.focus();return}else{const b=v.findIndex(x=>x===document.activeElement);if(b===-1)if(i.shiftKey)u!=="checkbox"&&(d(i,!1),f(),this.toggle.current.focus());else{v[0].focus();return}if(i.shiftKey){b===0&&(h(),i.preventDefault());return}b+1<v.length?v[b+1].focus():(d(i,!1),f(),this.toggle.current.focus()),i.preventDefault();return}}c&&(i.key===Ye.Escape||i.key===Ye.Tab)&&(g||p)&&(d(i,!1),f(),this.toggle.current.focus())},this.onKeyDown=i=>{const{isOpen:o,onToggle:a,variant:s,onClose:l,onEnter:c,handleTypeaheadKeys:u}=this.props;(s===ze.typeahead||s===ze.typeaheadMulti)&&(i.key===Ye.ArrowDown||i.key===Ye.ArrowUp?(u(i.key===Ye.ArrowDown&&"down"||i.key===Ye.ArrowUp&&"up"),i.preventDefault()):i.key===Ye.Enter&&(o?u("enter"):a(i,!o))),!(s===ze.typeahead||s===ze.typeaheadMulti||i.key===Ye.Tab&&!o||i.key!==Ye.Enter&&i.key!==Ye.Space)&&(i.preventDefault(),(i.key===Ye.Tab||i.key===Ye.Enter||i.key===Ye.Space)&&o?(a(i,!o),l(),this.toggle.current.focus()):(i.key===Ye.Enter||i.key===Ye.Space)&&!o&&(a(i,!o),c()))};const{variant:n}=t,r=n===ze.typeahead||n===ze.typeaheadMulti;this.props.innerRef?this.toggle=this.props.innerRef:this.toggle=k.createRef()}componentDidMount(){document.addEventListener("click",this.onDocClick,{capture:!0}),document.addEventListener("touchstart",this.onDocClick),document.addEventListener("keydown",this.handleGlobalKeys)}componentWillUnmount(){document.removeEventListener("click",this.onDocClick,{capture:!0}),document.removeEventListener("touchstart",this.onDocClick),document.removeEventListener("keydown",this.handleGlobalKeys)}render(){const t=this.props,{className:n,children:r,isOpen:i,isActive:o,isPlain:a,isDisabled:s,hasPlaceholderStyle:l,variant:c,onToggle:u,onEnter:d,onClose:f,onBlur:h,onClickTypeaheadToggleButton:g,handleTypeaheadKeys:p,moveFocusToLastMenuItem:v,parentRef:b,menuRef:x,id:S,type:w,hasClearButton:_,"aria-labelledby":E,"aria-label":O,hasFooter:T,footerRef:D,toggleIndicator:j,innerRef:A}=t,M=Ae(t,["className","children","isOpen","isActive","isPlain","isDisabled","hasPlaceholderStyle","variant","onToggle","onEnter","onClose","onBlur","onClickTypeaheadToggleButton","handleTypeaheadKeys","moveFocusToLastMenuItem","parentRef","menuRef","id","type","hasClearButton","aria-labelledby","aria-label","hasFooter","footerRef","toggleIndicator","innerRef"]),P=c===ze.typeahead||c===ze.typeaheadMulti||_,$={id:S,"aria-labelledby":E,"aria-expanded":i,"aria-haspopup":c!==ze.checkbox&&"listbox"||null};return k.createElement(k.Fragment,null,!P&&k.createElement("button",Object.assign({},M,$,{ref:this.toggle,type:w,className:re(ae.selectToggle,l&&ae.modifiers.placeholder,s&&ae.modifiers.disabled,a&&ae.modifiers.plain,o&&ae.modifiers.active,n),"aria-label":O,onBlur:h,onClick:L=>{u(L,!i),i&&f()},onKeyDown:this.onKeyDown,disabled:s}),r,k.createElement("span",{className:re(ae.selectToggleArrow)},j??k.createElement(i3,null))),P&&k.createElement("div",Object.assign({},M,{ref:this.toggle,className:re(ae.selectToggle,l&&ae.modifiers.placeholder,s&&ae.modifiers.disabled,a&&ae.modifiers.plain,P&&ae.modifiers.typeahead,n),onBlur:h,onClick:L=>{s||(u(L,!i),i&&f())},onKeyDown:this.onKeyDown}),r,k.createElement("button",Object.assign({},$,{type:w,className:re($t.button,ae.selectToggleButton,ae.modifiers.plain),"aria-label":O,onClick:L=>{u(L,!i),i&&f(),g()}},(c===ze.typeahead||c===ze.typeaheadMulti)&&{tabIndex:-1},{disabled:s}),j??k.createElement(i3,{className:re(ae.selectToggleArrow)}))))}}tv.displayName="SelectToggle",tv.defaultProps={className:"",isOpen:!1,isActive:!1,isPlain:!1,isDisabled:!1,hasPlaceholderStyle:!1,hasClearButton:!1,hasFooter:!1,variant:"single","aria-labelledby":"","aria-label":"",type:"button",onToggle:()=>{},onEnter:()=>{},onClose:()=>{},onClickTypeaheadToggleButton:()=>{}};const K0e=k.forwardRef((e,t)=>k.createElement(tv,Object.assign({innerRef:t},e))),So={badge:"pf-v5-c-badge",button:"pf-v5-c-button",chip:"pf-v5-c-chip",chipActions:"pf-v5-c-chip__actions",chipContent:"pf-v5-c-chip__content",chipIcon:"pf-v5-c-chip__icon",chipText:"pf-v5-c-chip__text",modifiers:{overflow:"pf-m-overflow",draggable:"pf-m-draggable"},themeDark:"pf-v5-theme-dark"},Z0e={name:"--pf-v5-c-chip__text--MaxWidth",value:"16ch",var:"var(--pf-v5-c-chip__text--MaxWidth)"};class ha extends k.Component{constructor(t){super(t),this.span=k.createRef(),this.setChipStyle=()=>({[Z0e.name]:this.props.textMaxWidth}),this.renderOverflowChip=()=>{const n=this.props,{badge:r,children:i,className:o,onClick:a,ouiaId:s,textMaxWidth:l,style:c,component:u,tooltipPosition:d,isOverflowChip:f,closeBtnAriaLabel:h,isReadOnly:g}=n,p=Ae(n,["badge","children","className","onClick","ouiaId","textMaxWidth","style","component","tooltipPosition","isOverflowChip","closeBtnAriaLabel","isReadOnly"]),v=u;return k.createElement(v,Object.assign({onClick:a},l&&Object.assign({style:this.setChipStyle()},c),{className:re(So.chip,So.modifiers.overflow,o)},u==="button"?{type:"button"}:{},wc("OverflowChip",s!==void 0?s:this.state.ouiaStateId),p),k.createElement("span",{className:re(So.chipContent)},k.createElement("span",{className:re(So.chipText)},i),r&&r))},this.renderChip=n=>{const{children:r,tooltipPosition:i}=this.props;return this.state.isTooltipVisible?k.createElement(ah,{position:i,content:r},this.renderInnerChip(n)):this.renderInnerChip(n)},this.state={isTooltipVisible:!1,ouiaStateId:th(ha.displayName)}}componentDidMount(){this.setState({isTooltipVisible:!!(this.span.current&&this.span.current.offsetWidth<this.span.current.scrollWidth)})}componentDidUpdate(t,n){const r=!!(this.span.current&&this.span.current.offsetWidth<this.span.current.scrollWidth);n.isTooltipVisible!==r&&this.setState({isTooltipVisible:r})}renderInnerChip(t){const n=this.props,{badge:r,children:i,className:o,onClick:a,closeBtnAriaLabel:s,isReadOnly:l,isOverflowChip:c,tooltipPosition:u,id:d,component:f,ouiaId:h,textMaxWidth:g}=n,p=Ae(n,["badge","children","className","onClick","closeBtnAriaLabel","isReadOnly","isOverflowChip","tooltipPosition","id","component","ouiaId","textMaxWidth"]),v=f;return k.createElement(v,Object.assign({},g&&{style:this.setChipStyle()},{className:re(So.chip,o)},this.state.isTooltipVisible&&{tabIndex:0},wc(ha.displayName,h!==void 0?h:this.state.ouiaStateId),p),k.createElement("span",{className:re(So.chipContent)},k.createElement("span",{ref:this.span,className:re(So.chipText),id:t},i),r&&r),!l&&k.createElement("span",{className:re(So.chipActions)},k.createElement(ch,{onClick:a,variant:"plain","aria-label":s,id:`remove_${t}`,"aria-labelledby":`remove_${t} ${t}`,ouiaId:h||s},k.createElement(H0e,{"aria-hidden":"true"}))))}render(){const{isOverflowChip:t}=this.props;return k.createElement(Sc,null,n=>t?this.renderOverflowChip():this.renderChip(this.props.id||n))}}ha.displayName="Chip",ha.defaultProps={closeBtnAriaLabel:"close",className:"",isOverflowChip:!1,isReadOnly:!1,tooltipPosition:"top",onClick:e=>{},component:"div"};const Bi={chipGroup:"pf-v5-c-chip-group",chipGroupClose:"pf-v5-c-chip-group__close",chipGroupLabel:"pf-v5-c-chip-group__label",chipGroupList:"pf-v5-c-chip-group__list",chipGroupListItem:"pf-v5-c-chip-group__list-item",chipGroupMain:"pf-v5-c-chip-group__main",modifiers:{category:"pf-m-category"}};class Nc extends k.Component{constructor(t){super(t),this.headingRef=k.createRef(),this.toggleCollapse=()=>{this.setState(n=>({isOpen:!n.isOpen,isTooltipVisible:!!(this.headingRef.current&&this.headingRef.current.offsetWidth<this.headingRef.current.scrollWidth)}))},this.state={isOpen:this.props.defaultIsOpen,isTooltipVisible:!1}}componentDidMount(){this.setState({isTooltipVisible:!!(this.headingRef.current&&this.headingRef.current.offsetWidth<this.headingRef.current.scrollWidth)})}renderLabel(t){const{categoryName:n,tooltipPosition:r}=this.props,{isTooltipVisible:i}=this.state;return i?k.createElement(ah,{position:r,content:n},k.createElement("span",{tabIndex:0,ref:this.headingRef,className:re(Bi.chipGroupLabel)},k.createElement("span",{id:t},n))):k.createElement("span",{ref:this.headingRef,className:re(Bi.chipGroupLabel),id:t},n)}render(){const t=this.props,{categoryName:n,children:r,className:i,isClosable:o,closeBtnAriaLabel:a,"aria-label":s,onClick:l,onOverflowChipClick:c,numChips:u,expandedText:d,collapsedText:f,ouiaId:h,defaultIsOpen:g,tooltipPosition:p}=t,v=Ae(t,["categoryName","children","className","isClosable","closeBtnAriaLabel","aria-label","onClick","onOverflowChipClick","numChips","expandedText","collapsedText","ouiaId","defaultIsOpen","tooltipPosition"]),{isOpen:b}=this.state,x=k.Children.count(r),S=Ame(f,{remaining:k.Children.count(r)-u}),w=_=>{const E=b?k.Children.toArray(r):k.Children.toArray(r).slice(0,u);return k.createElement("div",Object.assign({className:re(Bi.chipGroup,i,n&&Bi.modifiers.category),role:"group"},n&&{"aria-labelledby":_},!n&&{"aria-label":s},wc(Nc.displayName,h)),k.createElement("div",{className:re(Bi.chipGroupMain)},n&&this.renderLabel(_),k.createElement("ul",Object.assign({className:re(Bi.chipGroupList)},n&&{"aria-labelledby":_},!n&&{"aria-label":s},{role:"list"},v),E.map((O,T)=>k.createElement("li",{className:re(Bi.chipGroupListItem),key:T},O)),x>u&&k.createElement("li",{className:re(Bi.chipGroupListItem)},k.createElement(ha,{isOverflowChip:!0,onClick:O=>{this.toggleCollapse(),c(O)},component:"button"},b?d:S)))),o&&k.createElement("div",{className:re(Bi.chipGroupClose)},k.createElement(ch,{variant:"plain","aria-label":a,onClick:l,id:`remove_group_${_}`,"aria-labelledby":`remove_group_${_} ${_}`,ouiaId:h||a},k.createElement(h3,{"aria-hidden":"true"}))))};return x===0?null:k.createElement(Sc,null,_=>w(this.props.id||_))}}Nc.displayName="ChipGroup",Nc.defaultProps={expandedText:"Show Less",collapsedText:"${remaining} more",categoryName:"",defaultIsOpen:!1,numChips:3,isClosable:!1,onClick:e=>{},onOverflowChipClick:e=>{},closeBtnAriaLabel:"Close chip group",tooltipPosition:"top","aria-label":"Chip group category"};let X0e=0;class ma extends k.Component{constructor(){super(...arguments),this.parentRef=k.createRef(),this.menuComponentRef=k.createRef(),this.filterRef=k.createRef(),this.clearRef=k.createRef(),this.inputRef=k.createRef(),this.refCollection=[[]],this.optionContainerRefCollection=[],this.footerRef=k.createRef(),this.state={focusFirstOption:!1,typeaheadInputValue:null,typeaheadFilteredChildren:k.Children.toArray(this.props.children),favoritesGroup:[],typeaheadCurrIndex:-1,typeaheadStoredIndex:-1,creatableValue:"",tabbedIntoFavoritesMenu:!1,ouiaStateId:th(ma.displayName,this.props.variant),viewMoreNextIndex:-1},this.getTypeaheadActiveChild=t=>this.refCollection[t]?this.refCollection[t][0]:null,this.componentDidUpdate=(t,n)=>{if(this.props.hasInlineFilter&&(this.refCollection[0][0]=this.filterRef.current),!n.focusFirstOption&&this.state.focusFirstOption&&!this.props.customContent){const o=this.refCollection.find(a=>a!==null&&a[0]);o&&o[0]&&o[0].focus()}else this.state.viewMoreNextIndex!==-1&&this.refCollection.length>this.state.viewMoreNextIndex&&this.props.loadingVariant!=="spinner"&&this.refCollection[this.state.viewMoreNextIndex][0]&&this.props.variant!=="typeahead"&&this.props.variant!=="typeaheadmulti"&&(this.refCollection[this.state.viewMoreNextIndex][0].focus(),this.setState({viewMoreNextIndex:-1}));const r=(o,a)=>Array.from(o).some((s,l)=>{const c=s.props,u=a[l],{props:d}=u;return c&&d?c.value!==d.value||c.label!==d.label||c.isDisabled!==d.isDisabled||c.isPlaceholder!==d.isPlaceholder:s!==u});if((t.children.length!==this.props.children.length||r(t.children,this.props.children)||this.props.isGrouped&&Array.from(t.children).some((o,a)=>o.type===fa&&o.props.children&&this.props.children[a].props.children&&(o.props.children.length!==this.props.children[a].props.children.length||r(o.props.children,this.props.children[a].props.children))))&&this.updateTypeAheadFilteredChildren(n.typeaheadInputValue||"",null),this.props.onFavorite&&(this.props.favorites.length!==t.favorites.length||this.state.typeaheadFilteredChildren!==n.typeaheadFilteredChildren)){const o=this.props.variant==="typeahead"||this.props.variant==="typeaheadmulti"?this.state.typeaheadFilteredChildren:this.props.children,a=R0e(o,this.props.isGrouped,this.props.favorites),s=a.length?[k.createElement(fa,{key:"favorites",label:this.props.favoritesLabel},a),k.createElement(gr,{key:"favorites-group-divider"})]:[];this.setState({favoritesGroup:s})}},this.onEnter=()=>{this.setState({focusFirstOption:!0})},this.onToggle=(t,n)=>{const{isInputValuePersisted:r,onSelect:i,onToggle:o,hasInlineFilter:a}=this.props;!n&&r&&i&&i(void 0,this.inputRef.current?this.inputRef.current.value:""),n&&a&&this.setState({focusFirstOption:!0}),o(t,n)},this.onClose=()=>{const{isInputFilterPersisted:t}=this.props;this.setState(Object.assign(Object.assign({focusFirstOption:!1,typeaheadInputValue:null},!t&&{typeaheadFilteredChildren:k.Children.toArray(this.props.children)}),{typeaheadCurrIndex:-1,tabbedIntoFavoritesMenu:!1,viewMoreNextIndex:-1}))},this.onChange=t=>{t.target.value.toString()!==""&&!this.props.isOpen&&this.onToggle(t,!0),this.props.onTypeaheadInputChanged&&this.props.onTypeaheadInputChanged(t.target.value.toString()),this.setState({typeaheadCurrIndex:-1,typeaheadInputValue:t.target.value,creatableValue:t.target.value}),this.updateTypeAheadFilteredChildren(t.target.value.toString(),t),this.refCollection=[[]]},this.updateTypeAheadFilteredChildren=(t,n)=>{let r;const{onFilter:i,isCreatable:o,isCreateOptionOnTop:a,onCreateOption:s,createText:l,noResultsFoundText:c,children:u,isGrouped:d,isCreateSelectOptionObject:f,loadingVariant:h}=this.props;if(i)r=i(n,n?n.target.value:t)||u;else{let g;try{g=new RegExp(t.toString(),"i")}catch{g=new RegExp(t.toString().replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const p=k.Children.toArray(u);if(d){const v=b=>b.props.value&&b.props.value.toString&&this.getDisplay(b.props.value.toString(),"text").search(g)===0;r=t.toString()!==""?k.Children.map(u,b=>{if(k.isValidElement(b)&&b.type===fa){const x=k.Children.toArray(b.props.children).filter(v);if(x.length>0)return k.cloneElement(b,{titleId:b.props.label&&b.props.label.replace(/\W/g,"-"),children:x})}else return k.Children.toArray(b).filter(v)}):p}else r=t.toString()!==""?p.filter(v=>{const b=v.props.value;if(!b)return!0;const x=typeof b!="string"&&b.toString&&b.compareTo;return h!=="spinner"&&(h==null?void 0:h.text)===b||h==="spinner"&&b==="loading"?!0:x?b.compareTo(t):this.getDisplay(v.props.value.toString(),"text").search(g)===0}):p}if(r||(r=[]),r.length===0&&!o&&r.push(k.createElement(oi,{isDisabled:!0,key:"no-results",value:c,isNoResultsOption:!0})),o&&t!==""){const g=t;if(!r.find(p=>p.props.value&&p.props.value.toString().toLowerCase()===g.toString().toLowerCase())){const p=f?{toString:()=>g,compareTo:b=>this.toString().toLowerCase().includes(b.toString().toLowerCase())}:g,v=k.createElement(oi,{key:`create ${g}`,value:p,onClick:()=>s&&s(g)},l,' "',g,'"');a?r.unshift(v):r.push(v)}}this.setState({typeaheadFilteredChildren:r})},this.onClick=t=>{this.props.isOpen||this.onToggle(t,!0)},this.clearSelection=t=>{this.setState({typeaheadInputValue:null,typeaheadFilteredChildren:k.Children.toArray(this.props.children),typeaheadCurrIndex:-1})},this.sendRef=(t,n,r,i)=>{this.refCollection[i]=[t,n],this.optionContainerRefCollection[i]=r},this.handleMenuKeys=(t,n,r)=>{TT(t,n,r,this.refCollection,this.refCollection),(this.props.variant===ze.typeahead||this.props.variant===ze.typeaheadMulti)&&r!=="tab"&&this.handleTypeaheadKeys(r)},this.moveFocus=(t,n=!0)=>{const{isCreatable:r,createText:i}=this.props,o=!!(this.refCollection[t][0]&&this.refCollection[t][0].classList.contains("pf-m-description")),a=!!(this.refCollection[t][0]&&this.refCollection[t][0].classList.contains("pf-m-load")),s=o?this.refCollection[t][0].firstElementChild:this.refCollection[t][0];let l="";r&&s.textContent.includes(i)?l=this.state.creatableValue:s&&!a&&(l=s.textContent),this.setState(c=>({typeaheadCurrIndex:n?t:c.typeaheadCurrIndex,typeaheadStoredIndex:t,typeaheadInputValue:l}))},this.switchFocusToFavoriteMenu=()=>{const{typeaheadCurrIndex:t,typeaheadStoredIndex:n}=this.state;let r=0;t!==-1?r=t:n!==-1&&(r=n),this.refCollection[r]!==null&&this.refCollection[r][0]!==null?this.refCollection[r][0].focus():this.clearRef.current.focus(),this.setState({tabbedIntoFavoritesMenu:!0,typeaheadCurrIndex:-1})},this.moveFocusToLastMenuItem=()=>{const t=this.refCollection.length;t>0&&this.refCollection[t-1]!==null&&this.refCollection[t-1][0]!==null&&this.refCollection[t-1][0].focus()},this.handleTypeaheadKeys=(t,n=!1)=>{const{isOpen:r,onFavorite:i,isCreatable:o}=this.props,{typeaheadCurrIndex:a,tabbedIntoFavoritesMenu:s}=this.state,l=this.getTypeaheadActiveChild(a);if(r)if(t==="enter"){if((a!==-1||o&&this.refCollection.length===1)&&(l||this.refCollection[0]&&this.refCollection[0][0])){if(l){if(!l.classList.contains("pf-m-load")){const u=l.childElementCount>1?l.firstChild.textContent:l.textContent;this.setState({typeaheadInputValue:u})}}else this.refCollection[0]&&this.refCollection[0][0]&&this.setState({typeaheadInputValue:this.refCollection[0][0].textContent});l?l.click():this.refCollection[0][0].click()}}else if(t==="tab")if(i)if(this.inputRef.current===document.activeElement)if(this.props.footer&&n){const c=_c(this.footerRef,Fc);c.length>0&&c[c.length-1]&&c[c.length-1].focus()}else this.switchFocusToFavoriteMenu();else if(this.props.footer){let c=!1;const u=_c(this.footerRef,Fc);if(u.length>0){const d=u.findIndex(f=>f===document.activeElement);d===-1?n?this.inputRef.current.focus():u[0].focus():n?d===0?(this.switchFocusToFavoriteMenu(),c=!0):u[d-1].focus():u[d+1]?u[d+1].focus():this.inputRef.current.focus()}else this.inputRef.current.focus(),c=!1;this.setState({tabbedIntoFavoritesMenu:c})}else this.inputRef.current.focus(),this.setState({tabbedIntoFavoritesMenu:!1});else if(!this.props.footer)this.onToggle(null,!1),this.onClose();else{const c=_c(this.footerRef,Fc),u=c.findIndex(d=>d===document.activeElement);this.inputRef.current===document.activeElement?n?(this.onToggle(null,!1),this.onClose()):c[0]?c[0].focus():(this.onToggle(null,!1),this.onClose()):n?u===0?this.inputRef.current.focus():c[u-1].focus():c[u+1]?c[u+1].focus():(this.onToggle(null,!1),this.inputRef.current.focus(),this.onClose())}else if(s){const c=this.refCollection.findIndex(u=>u!==void 0&&(u[0]===document.activeElement||u[1]===document.activeElement));this.moveFocus(c)}else{if(this.refCollection[0][0]===null)return;let c;if(a===-1&&t==="down"?c=0:a===-1&&t==="up"?c=this.refCollection.length-1:t!=="left"&&t!=="right"?c=AT(a,t,this.refCollection):c=a,this.refCollection[c]===null)return;this.moveFocus(c)}},this.onClickTypeaheadToggleButton=()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.focus()},this.getDisplay=(t,n="node")=>{if(!t)return;const r=this.props.isGrouped?k.Children.toArray(this.props.children).reduce((i,o)=>[...i,...k.Children.toArray(o.props.children)],[]).find(i=>i.props.value.toString()===t.toString()):k.Children.toArray(this.props.children).find(i=>i.props.value&&i.props.value.toString()===t.toString());return r?r&&r.props.children?n==="node"?r.props.children:this.findText(r):r.props.value.toString():t.toString()},this.findText=t=>{if(typeof t=="string")return t;if(k.isValidElement(t)){const n=[];return k.Children.toArray(t.props.children).forEach(r=>n.push(this.findText(r))),n.join("")}else return""},this.generateSelectedBadge=()=>{const{customBadgeText:t,selections:n}=this.props;return t!==null?t:Array.isArray(n)&&n.length>0?n.length:null},this.setVieMoreNextIndex=()=>{this.setState({viewMoreNextIndex:this.refCollection.length-1})},this.isLastOptionBeforeFooter=t=>!!(this.props.footer&&t===this.refCollection.length-1)}extendTypeaheadChildren(t,n){const{isGrouped:r,onFavorite:i,createText:o}=this.props,a=n?n.concat(this.state.typeaheadFilteredChildren):this.state.typeaheadFilteredChildren,s=this.optionContainerRefCollection[t];let l=this.getTypeaheadActiveChild(t);return l&&l.classList.contains("pf-m-description")&&(l=l.firstElementChild),this.refCollection=[[]],this.optionContainerRefCollection=[],r?k.Children.map(a,c=>c.type===gr?c:c.type===fa&&i?k.cloneElement(c,{titleId:c.props.label&&c.props.label.replace(/\W/g,"-"),children:k.Children.map(c.props.children,u=>u.type===gr?u:k.cloneElement(u,{isFocused:s&&(s.id===u.props.id||this.props.isCreatable&&l.textContent===`${o} "${c.props.value}"`)}))}):c.type===fa?k.cloneElement(c,{titleId:c.props.label&&c.props.label.replace(/\W/g,"-"),children:k.Children.map(c.props.children,u=>u.type===gr?u:k.cloneElement(u,{isFocused:l&&(l.textContent===u.props.value.toString()||this.props.isCreatable&&l.textContent===`${o} "${u.props.value}"`)}))}):k.cloneElement(c,{isFocused:l&&(l.textContent===c.props.value.toString()||this.props.isCreatable&&l.textContent===`${o} "${c.props.value}"`)})):a.map((c,u)=>c.type.displayName==="Divider"?c:k.cloneElement(c,{isFocused:l?l.textContent===c.props.value.toString()||this.props.isCreatable&&l.textContent===`${o} "${c.props.value}"`:u===t}))}render(){const t=this.props,{children:n,chipGroupProps:r,chipGroupComponent:i,className:o,customContent:a,variant:s,direction:l,onSelect:c,onClear:u,onBlur:d,toggleId:f,toggleRef:h,isOpen:g,isGrouped:p,isPlain:v,isDisabled:b,hasPlaceholderStyle:x,validated:S,selections:w,typeAheadAriaLabel:_,typeAheadAriaDescribedby:E,clearSelectionsAriaLabel:O,toggleAriaLabel:T,removeSelectionAriaLabel:D,"aria-label":j,"aria-labelledby":A,"aria-describedby":M,"aria-invalid":P,placeholderText:$,width:L,maxHeight:z,toggleIcon:G,toggleIndicator:U,ouiaId:V,ouiaSafe:N,hasInlineFilter:H,isCheckboxSelectionBadgeHidden:Q,inlineFilterPlaceholderText:ee,onFilter:X,onTypeaheadInputChanged:J,onCreateOption:ie,isCreatable:ue,onToggle:he,createText:Z,noResultsFoundText:ne,customBadgeText:pe,inputIdPrefix:B,inputAutoComplete:ke,isInputValuePersisted:Ee,isInputFilterPersisted:He,menuAppendTo:Ie,favorites:at,onFavorite:I,favoritesLabel:R,footer:q,loadingVariant:de,isCreateSelectOptionObject:fe,isCreateOptionOnTop:oe,shouldResetOnSelect:Y,isFlipEnabled:le,zIndex:be}=t,xe=Ae(t,["children","chipGroupProps","chipGroupComponent","className","customContent","variant","direction","onSelect","onClear","onBlur","toggleId","toggleRef","isOpen","isGrouped","isPlain","isDisabled","hasPlaceholderStyle","validated","selections","typeAheadAriaLabel","typeAheadAriaDescribedby","clearSelectionsAriaLabel","toggleAriaLabel","removeSelectionAriaLabel","aria-label","aria-labelledby","aria-describedby","aria-invalid","placeholderText","width","maxHeight","toggleIcon","toggleIndicator","ouiaId","ouiaSafe","hasInlineFilter","isCheckboxSelectionBadgeHidden","inlineFilterPlaceholderText","onFilter","onTypeaheadInputChanged","onCreateOption","isCreatable","onToggle","createText","noResultsFoundText","customBadgeText","inputIdPrefix","inputAutoComplete","isInputValuePersisted","isInputFilterPersisted","menuAppendTo","favorites","onFavorite","favoritesLabel","footer","loadingVariant","isCreateSelectOptionObject","isCreateOptionOnTop","shouldResetOnSelect","isFlipEnabled","zIndex"]),{focusFirstOption:Ne,typeaheadCurrIndex:Re,typeaheadInputValue:nt,typeaheadFilteredChildren:wt,favoritesGroup:jt}=this.state,Ct=f||`pf-select-toggle-id-${X0e++}`,We=Array.isArray(w)?w:[w],Pe=k.Children.toArray(n).find(Ke=>Ke.props.value===We[0]),mt=Pe&&Pe.props.isPlaceholder,Rt=!!(We[0]&&We[0]!==""),Et=this.getTypeaheadActiveChild(Re);let Nn=null,Vt=[];if(I){let Ke=n;s==="typeahead"||s==="typeaheadmulti"?Ke=this.extendTypeaheadChildren(Re,jt):I&&(Ke=jt.concat(n)),Vt=V0e(Ke,p,at)}else Vt=n;if(!a&&!Rt&&!$){const Ke=k.Children.toArray(n).filter(gt=>gt.props.isPlaceholder===!0);Nn=Ke[0]&&this.getDisplay(Ke[0].props.value,"node")||n[0]&&this.getDisplay(n[0].props.value,"node")}g&&Vt.find(Ke=>(Ke==null?void 0:Ke.key)==="loading")===void 0&&(de==="spinner"?Vt.push(k.createElement(oi,{isLoading:!0,key:"loading",value:"loading"},k.createElement(Ky,{size:"lg"}))):de!=null&&de.text&&Vt.push(k.createElement(oi,{isLoad:!0,key:"loading",value:de.text,setViewMoreNextIndex:this.setVieMoreNextIndex,onClick:de==null?void 0:de.onClick})));const Bn=u!==ma.defaultProps.onClear,we=k.createElement("button",{className:re($t.button,$t.modifiers.plain,ae.selectToggleClear),onClick:Ke=>{this.clearSelection(Ke),u(Ke),Ke.stopPropagation()},"aria-label":O,type:"button",disabled:b,ref:this.clearRef,onKeyDown:Ke=>{Ke.key===Ye.Enter&&this.clearRef.current.click()}},k.createElement(h3,{"aria-hidden":!0}));let ot=null;s===ze.typeaheadMulti&&(ot=i||k.createElement(Nc,Object.assign({},r),We&&We.map(Ke=>k.createElement(ha,{key:Ke,onClick:gt=>c(gt,Ke),closeBtnAriaLabel:D},this.getDisplay(Ke,"node"))))),H&&(Vt=[k.createElement(k.Fragment,null,k.createElement("div",{key:"inline-filter",className:re(ae.selectMenuSearch)},k.createElement("div",{key:"inline-filter",className:re(Lr.formControl)},k.createElement("input",{key:"inline-filter-input",type:"search",onChange:this.onChange,placeholder:ee,onKeyDown:gt=>{if(gt.key===Ye.ArrowUp)this.handleMenuKeys(0,0,"up"),gt.preventDefault();else if(gt.key===Ye.ArrowDown)this.handleMenuKeys(0,0,"down"),gt.preventDefault();else if(gt.key===Ye.ArrowLeft)this.handleMenuKeys(0,0,"left"),gt.preventDefault();else if(gt.key===Ye.ArrowRight)this.handleMenuKeys(0,0,"right"),gt.preventDefault();else if(gt.key===Ye.Tab&&s!==ze.checkbox&&this.props.footer)if(gt.shiftKey)this.onToggle(gt,!1);else{const Bs=_c(this.footerRef,Fc);Bs.length>0?(Bs[0].focus(),gt.stopPropagation(),gt.preventDefault()):this.onToggle(gt,!1)}else gt.key===Ye.Tab&&s===ze.checkbox&&(gt.shiftKey?this.handleMenuKeys(0,0,"up"):this.handleMenuKeys(0,0,"down"),gt.stopPropagation(),gt.preventDefault())},ref:this.filterRef,autoComplete:ke}))),k.createElement(gr,{key:"inline-filter-divider"})),...wt].map((gt,Bs)=>k.cloneElement(gt,{key:Bs})));let ln,Ut;if(a)ln={selected:We,openedOnEnter:Ne,isCustomContent:!0},Ut=a;else switch(s){case"single":ln={selected:We[0],hasInlineFilter:H,openedOnEnter:Ne},Ut=Vt;break;case"checkbox":ln={checked:We,isGrouped:p,hasInlineFilter:H,openedOnEnter:Ne},Ut=Vt;break;case"typeahead":ln={selected:We[0],openedOnEnter:Ne},Ut=I?Vt:this.extendTypeaheadChildren(Re),Ut.length===0&&Ut.push(k.createElement(oi,{isDisabled:!0,key:0,value:ne,isNoResultsOption:!0}));break;case"typeaheadmulti":ln={selected:We,openedOnEnter:Ne},Ut=I?Vt:this.extendTypeaheadChildren(Re),Ut.length===0&&Ut.push(k.createElement(oi,{isDisabled:!0,key:0,value:ne,isNoResultsOption:!0}));break}const wo=le&&Ie!=="inline",Co=k.createElement(Y0e,Object.assign({className:re(wo&&ae.modifiers.static)},xe,{isGrouped:p,selected:We},ln,{openedOnEnter:Ne,"aria-label":j,"aria-labelledby":A,sendRef:this.sendRef,keyHandler:this.handleMenuKeys,maxHeight:z,ref:this.menuComponentRef,footer:q,footerRef:this.footerRef,isLastOptionBeforeFooter:this.isLastOptionBeforeFooter}),Ut),Ri=q?k.createElement("div",{className:re(ae.selectMenu)}," ",Co," "):Co,Vi=k.createRef(),ov=k.createElement("div",Object.assign({className:re(ae.select,g&&ae.modifiers.expanded,S===En.success&&ae.modifiers.success,S===En.warning&&ae.modifiers.warning,S===En.error&&ae.modifiers.invalid,l===Lc.up&&ae.modifiers.top,o),ref:Vi},L&&{style:{width:L}},S!==En.default&&{"aria-invalid":P}),g&&Ri),ph=k.createElement("div",Object.assign({className:re(ae.select,g&&ae.modifiers.expanded,S===En.success&&ae.modifiers.success,S===En.warning&&ae.modifiers.warning,S===En.error&&ae.modifiers.invalid,l===Lc.up&&ae.modifiers.top,o),ref:this.parentRef},wc(ma.displayName,V!==void 0?V:this.state.ouiaStateId,N),L&&{style:{width:L}},S!==En.default&&{"aria-invalid":P}),k.createElement(K0e,Object.assign({id:Ct,parentRef:this.parentRef,menuRef:this.menuComponentRef,ref:h},q&&{footerRef:this.footerRef},{isOpen:g,isPlain:v,hasPlaceholderStyle:x&&(!We.length||We[0]===null||mt),onToggle:this.onToggle,onEnter:this.onEnter,onClose:this.onClose,onBlur:d,variant:s,toggleIndicator:U,"aria-labelledby":`${A||""} ${Ct}`,"aria-label":T},M&&{"aria-describedby":M},{handleTypeaheadKeys:this.handleTypeaheadKeys,moveFocusToLastMenuItem:this.moveFocusToLastMenuItem,isDisabled:b,hasClearButton:Bn,hasFooter:q!==void 0,onClickTypeaheadToggleButton:this.onClickTypeaheadToggleButton}),a&&k.createElement("div",{className:re(ae.selectToggleWrapper)},G&&k.createElement("span",{className:re(ae.selectToggleIcon)},G),k.createElement("span",{className:re(ae.selectToggleText)},$)),s===ze.single&&!a&&k.createElement(k.Fragment,null,k.createElement("div",{className:re(ae.selectToggleWrapper)},G&&k.createElement("span",{className:re(ae.selectToggleIcon)},G),k.createElement("span",{className:re(ae.selectToggleText)},this.getDisplay(We[0],"node")||$||Nn)),Bn&&Rt&&we),s===ze.checkbox&&!a&&k.createElement(k.Fragment,null,k.createElement("div",{className:re(ae.selectToggleWrapper)},G&&k.createElement("span",{className:re(ae.selectToggleIcon)},G),k.createElement("span",{className:re(ae.selectToggleText)},$),!Q&&Rt&&k.createElement("div",{className:re(ae.selectToggleBadge)},k.createElement("span",{className:re(Pc.badge,Pc.modifiers.read)},this.generateSelectedBadge()))),Bn&&Rt&&we),s===ze.typeahead&&!a&&k.createElement(k.Fragment,null,k.createElement("div",{className:re(ae.selectToggleWrapper)},G&&k.createElement("span",{className:re(ae.selectToggleIcon)},G),k.createElement(uh,Object.assign({className:re(ae.selectToggleTypeahead),"aria-activedescendant":Et&&Et.id,id:`${Ct}-select-typeahead`,"aria-label":_},E&&{"aria-describedby":E},{placeholder:$,value:nt!==null?nt:this.getDisplay(We[0],"text")||"",onChange:Ke=>this.onChange(Ke),onClick:this.onClick,autoComplete:ke,isDisabled:b,ref:this.inputRef}))),Bn&&(We[0]||nt)&&we),s===ze.typeaheadMulti&&!a&&k.createElement(k.Fragment,null,k.createElement("div",{className:re(ae.selectToggleWrapper)},G&&k.createElement("span",{className:re(ae.selectToggleIcon)},G),We&&Array.isArray(We)&&We.length>0&&ot,k.createElement(uh,Object.assign({className:re(ae.selectToggleTypeahead),"aria-activedescendant":Et&&Et.id,id:`${Ct}-select-multi-typeahead-typeahead`,"aria-label":_,"aria-invalid":S===En.error},E&&{"aria-describedby":E},{placeholder:$,value:nt!==null?nt:"",onChange:Ke=>this.onChange(Ke),onClick:this.onClick,autoComplete:ke,isDisabled:b,ref:this.inputRef}))),Bn&&(We&&We.length>0||nt)&&we),S===En.success&&k.createElement("span",{className:re(ae.selectToggleStatusIcon)},k.createElement(s3,{"aria-hidden":"true"})),S===En.error&&k.createElement("span",{className:re(ae.selectToggleStatusIcon)},k.createElement(l3,{"aria-hidden":"true"})),S===En.warning&&k.createElement("span",{className:re(ae.selectToggleStatusIcon)},k.createElement(c3,{"aria-hidden":"true"}))),g&&Ie==="inline"&&Ri),yh=()=>this.parentRef&&this.parentRef.current?this.parentRef.current.parentElement:null;return k.createElement(Sc,null,Ke=>k.createElement(Jy.Provider,{value:{onSelect:c,onFavorite:I,onClose:this.onClose,variant:s,inputIdPrefix:B||Ke,shouldResetOnSelect:Y}},Ie==="inline"?ph:k.createElement(Uy,{width:"auto",trigger:ph,triggerRef:this.parentRef,popper:ov,popperRef:Vi,direction:l,appendTo:Ie==="parent"?yh():Ie,isVisible:g,zIndex:be})))}}ma.displayName="Select",ma.defaultProps={children:[],className:"",position:Ic.left,direction:Lc.down,toggleId:null,isOpen:!1,isGrouped:!1,isPlain:!1,isDisabled:!1,hasPlaceholderStyle:!1,isCreatable:!1,isCreateOptionOnTop:!1,validated:"default","aria-label":"","aria-labelledby":"","aria-describedby":"","aria-invalid":!1,typeAheadAriaLabel:"",typeAheadAriaDescribedby:"",clearSelectionsAriaLabel:"Clear all",toggleAriaLabel:"Options menu",removeSelectionAriaLabel:"Remove",selections:[],createText:"Create",placeholderText:"",noResultsFoundText:"No results found",variant:ze.single,width:"",onClear:()=>{},onCreateOption:()=>{},toggleIcon:null,toggleIndicator:null,onFilter:null,onTypeaheadInputChanged:null,customContent:null,hasInlineFilter:!1,inlineFilterPlaceholderText:null,customBadgeText:null,inputIdPrefix:"",inputAutoComplete:"off",menuAppendTo:"inline",favorites:[],favoritesLabel:"Favorites",ouiaSafe:!0,chipGroupComponent:null,isInputValuePersisted:!1,isInputFilterPersisted:!1,isCreateSelectOptionObject:!1,shouldResetOnSelect:!0,isFlipEnabled:!0,zIndex:9999};const Wi={button:"pf-v5-c-button",dirRtl:"pf-v5-m-dir-rtl",drawer:"pf-v5-c-drawer",modalBox:"pf-v5-c-modal-box",modifiers:{finished:"pf-m-finished",expanded:"pf-m-expanded",current:"pf-m-current",expandable:"pf-m-expandable",disabled:"pf-m-disabled",noPadding:"pf-m-no-padding"},pageMainWizard:"pf-v5-c-page__main-wizard",themeDark:"pf-v5-theme-dark",wizard:"pf-v5-c-wizard",wizardClose:"pf-v5-c-wizard__close",wizardDescription:"pf-v5-c-wizard__description",wizardFooter:"pf-v5-c-wizard__footer",wizardFooterCancel:"pf-v5-c-wizard__footer-cancel",wizardHeader:"pf-v5-c-wizard__header",wizardInnerWrap:"pf-v5-c-wizard__inner-wrap",wizardMain:"pf-v5-c-wizard__main",wizardMainBody:"pf-v5-c-wizard__main-body",wizardNav:"pf-v5-c-wizard__nav",wizardNavItem:"pf-v5-c-wizard__nav-item",wizardNavLink:"pf-v5-c-wizard__nav-link",wizardNavLinkText:"pf-v5-c-wizard__nav-link-text",wizardNavLinkToggle:"pf-v5-c-wizard__nav-link-toggle",wizardNavLinkToggleIcon:"pf-v5-c-wizard__nav-link-toggle-icon",wizardNavList:"pf-v5-c-wizard__nav-list",wizardOuterWrap:"pf-v5-c-wizard__outer-wrap",wizardTitle:"pf-v5-c-wizard__title",wizardTitleText:"pf-v5-c-wizard__title-text",wizardToggle:"pf-v5-c-wizard__toggle",wizardToggleIcon:"pf-v5-c-wizard__toggle-icon",wizardToggleList:"pf-v5-c-wizard__toggle-list",wizardToggleListItem:"pf-v5-c-wizard__toggle-list-item",wizardToggleNum:"pf-v5-c-wizard__toggle-num",wizardToggleSeparator:"pf-v5-c-wizard__toggle-separator"};function J0e(e){const{name:t,label:n,labelHelpTitle:r,labelHelp:i,additionalControls:o,placeholderText:a,options:s,footer:l,helperText:c,isDisabled:u,isReadOnly:d,isRequired:f,validate:h,fieldNameToResetOnFieldChange:g}=e,p=li(e),{t:v}=Me(),{control:b,setValue:x,getValues:S,formState:{isSubmitting:w,isValidating:_,defaultValues:E},resetField:O}=Yr(),[T,D]=y.useState(!1),j=y.useCallback(()=>D(!T),[T]),[A]=Pt(),M=dc(e.label,e.isRequired),P=Ps(E,e.name);return y.useEffect(()=>{S(e.name)||s.length===1&&f&&x(e.name,s[0].value)},[S,f,s,e.name,x]),m.jsx(Ts,{name:t,control:b,defaultValue:e.defaultValue,shouldUnregister:!0,render:({field:{onChange:$,value:L},fieldState:{error:z}})=>{const G=(N,H)=>{var ee;const Q=(ee=s.find(X=>X.label===H.toString()))==null?void 0:ee.value;$(Q),g&&O(g),e.onChange&&e.onChange(Q),D(!1)},U=z!=null&&z.message?h&&_?A.validating:z==null?void 0:z.message:void 0,V=s.find(N=>N.value===L);return m.jsx(bc,{fieldId:p,label:n,labelHelpTitle:r??n,labelHelp:i,additionalControls:o,helperText:c,helperTextInvalid:U,isRequired:f,children:m.jsxs("div",{style:{display:"flex"},children:[m.jsx(ma,{id:p,itemID:p,placeholderText:a,variant:"single","aria-describedby":`${p}-form-group`,selections:V==null?void 0:V.label,onSelect:G,isOpen:T,onToggle:j,onClear:f?void 0:()=>{$(null),D(!1)},maxHeight:280,validated:U?"error":void 0,isDisabled:u||d||w,hasPlaceholderStyle:!0,footer:l,ouiaId:"menu-select","data-cy":p,children:s.map(N=>{const H=Br(N);return m.jsx(oi,{id:H,value:N.label,label:N.label,description:N.description,"data-cy":H,children:N.label},N.label)})}),m.jsx(Wr,{actions:[{label:v("Undo changes"),type:it.Button,selection:Ge.None,onClick:()=>{x(e.name,P)},isHidden:()=>!e.enableUndo||L===P},{label:v("Reset to default"),type:it.Button,selection:Ge.None,onClick:()=>{x(e.name,e.defaultValue)},isHidden:()=>!e.enableReset||L===e.defaultValue}],variant:C.ButtonVariant.control,position:"right"})]})})},rules:{required:M,validate:h}})}function Q0e(e){const{name:t,helperText:n,validate:r,additionalControls:i,label:o,labelHelp:a,labelHelpTitle:s,labelOn:l,labelOff:c}=e,{control:u,formState:{isSubmitting:d,isValidating:f}}=Yr(),h=li(e);return m.jsx(Ts,{name:t,control:u,shouldUnregister:!0,render:({field:{onChange:g,value:p},fieldState:{error:v}})=>{const b=r&&f||v==null?void 0:v.message;return m.jsx(bc,{fieldId:h,"data-cy":h+"-form-group",label:o,labelHelpTitle:s??o,labelHelp:a,helperText:n,helperTextInvalid:b,additionalControls:i,children:m.jsx(C.Switch,{"data-cy":h+"-toggle","aria-label":o,isChecked:p,onChange:x=>g(x),isDisabled:d,label:l,labelOff:c})})}})}function ege(e){const{type:t,name:n,label:r,labelHelpTitle:i,labelHelp:o,additionalControls:a,placeholder:s,button:l,helperText:c,isDisabled:u,isReadOnly:d,isRequired:f,validate:h,minLength:g,maxLength:p,min:v,max:b,pattern:x,selectTitle:S,selectOpen:w,selectValue:_,autoFocus:E,autoComplete:O,disableAutoResize:T}=e,D=li(e),{control:j,setValue:A,formState:{isSubmitting:M,isValidating:P}}=Yr(),[$,L]=y.useState(!1),[z]=Pt(),G=dc(e.label,e.isRequired);return m.jsx(Ts,{name:n,control:j,shouldUnregister:!0,render:({field:{onChange:U,value:V,name:N},fieldState:{error:H}})=>{const Q=H!=null&&H.message?h&&P?z.validating:H==null?void 0:H.message:void 0;function ee(X){U(X.trimStart())}return m.jsx(bc,{fieldId:D,label:r,labelHelpTitle:i??r,labelHelp:o,additionalControls:a,helperText:c,helperTextInvalid:Q,isRequired:f,children:m.jsxs(C.InputGroup,{children:[m.jsx(C.InputGroupItem,{isFill:!0,children:m.jsx(C.TextArea,{id:D,placeholder:s,onChange:(X,J)=>ee(J),value:V??"","aria-describedby":D?`${D}-form-group`:void 0,validated:Q?"error":void 0,type:t==="password"?$?"text":"password":t,readOnlyVariant:d?"default":void 0,isDisabled:u,autoFocus:E,autoComplete:O||"off","data-cy":D,autoResize:T===void 0?!0:!T,rows:1,resizeOrientation:"vertical"})}),t==="password"&&m.jsx(C.Button,{variant:"control",onClick:()=>L(!$),isDisabled:u||d,children:$?m.jsx(ve.EyeIcon,{}):m.jsx(ve.EyeSlashIcon,{})}),S&&m.jsx(C.Button,{ouiaId:`lookup-${N}-button`,variant:"control",onClick:()=>w==null?void 0:w(X=>{if(_){const J=_(X);A(N,J,{shouldValidate:!0})}},S),"aria-label":"Options menu",isDisabled:u||M,children:m.jsx(ve.SearchIcon,{})}),l&&l]})})},rules:{required:G,validate:h,minLength:typeof r=="string"&&typeof g=="number"?{value:g,message:`${Xr(r.toLocaleLowerCase())} must be at least ${g} characters.`}:g,maxLength:typeof r=="string"&&typeof p=="number"?{value:p,message:`${Xr(r.toLocaleLowerCase())} cannot be greater than ${p} characters.`}:p,min:typeof r=="string"&&(typeof v=="number"||typeof v=="string")?{value:v,message:`${Xr(r.toLocaleLowerCase())} must be less than ${v}.`}:g,max:typeof r=="string"&&(typeof b=="number"||typeof b=="string")?{value:b,message:`${Xr(r.toLocaleLowerCase())} cannot be greater than ${b}.`}:g,pattern:x}})}function tge(e){const{type:t,name:n,label:r,labelHelpTitle:i,labelHelp:o,additionalControls:a,placeholder:s,button:l,helperText:c,isDisabled:u,isReadOnly:d,isRequired:f,validate:h,minLength:g,maxLength:p,min:v,max:b,pattern:x,selectTitle:S,selectOpen:w,selectValue:_,autoFocus:E,autoComplete:O}=e,T=li(e),{t:D}=Me(),{control:j,setValue:A,formState:{isSubmitting:M,isValidating:P,defaultValues:$}}=Yr(),[L,z]=y.useState(!1),[G]=Pt(),U=dc(e.label,e.isRequired),V=Ps($,e.name);return m.jsx(Ts,{name:n,control:j,shouldUnregister:!0,defaultValue:e.defaultValue,render:({field:{onChange:N,value:H,name:Q},fieldState:{error:ee}})=>{const X=ee!=null&&ee.message?h&&P?G.validating:ee==null?void 0:ee.message:void 0;let J=H;switch(t){case"datetime-local":if(H){const ue=new Date(H);J=new Date(ue.getTime()-ue.getTimezoneOffset()*6e4).toISOString().slice(0,16)}break}function ie(ue){switch(e.type){case"datetime-local":{N(new Date(ue).toISOString());break}case"number":{let he=Number(ue);if(ue===""||isNaN(he)){A(Q,null),N(null);return}b!==void 0&&he>Number(b)&&(he=Number(b)),v!==void 0&&he<Number(v)&&(he=Number(v)),A(Q,he),N(he);break}default:N(ue.trimStart())}}return m.jsx(bc,{fieldId:T,label:r,labelHelpTitle:i??r,labelHelp:o,additionalControls:a,helperText:c,helperTextInvalid:X,isRequired:f,children:m.jsxs(C.InputGroup,{children:[m.jsx(C.InputGroupItem,{isFill:!0,children:m.jsx(C.TextInput,{id:T,placeholder:s,onChange:(ue,he)=>ie(he),value:J??"","aria-describedby":T?`${T}-form-group`:void 0,validated:X?"error":void 0,type:t==="password"?L?"text":"password":t,readOnlyVariant:d?"default":void 0,isDisabled:u,autoFocus:E,autoComplete:O||"off","data-cy":T})}),t==="password"&&m.jsx(C.Button,{variant:"control",onClick:()=>z(!L),isDisabled:u||d,children:L?m.jsx(ve.EyeIcon,{}):m.jsx(ve.EyeSlashIcon,{})}),S&&m.jsx(C.Button,{ouiaId:`lookup-${Q}-button`,variant:"control",onClick:()=>w==null?void 0:w(ue=>{if(_){const he=_(ue);A(Q,he,{shouldValidate:!0})}},S),"aria-label":"Options menu",isDisabled:u||M,children:m.jsx(ve.SearchIcon,{"data-cy":"lookup-button"})}),l,m.jsx(Wr,{actions:[{label:D("Undo changes"),type:it.Button,selection:Ge.None,onClick:()=>{A(e.name,V)},isHidden:()=>!e.enableUndo||H===V},{label:D("Reset to default"),type:it.Button,selection:Ge.None,onClick:()=>{A(e.name,e.defaultValue)},isHidden:()=>!e.enableReset||H===e.defaultValue}],variant:C.ButtonVariant.control,position:"right"})]})})},rules:{required:U,validate:h,minLength:typeof r=="string"&&typeof g=="number"?{value:g,message:`${Xr(r.toLocaleLowerCase())} must be at least ${g} characters.`}:g,maxLength:typeof r=="string"&&typeof p=="number"?{value:p,message:`${Xr(r.toLocaleLowerCase())} cannot be greater than ${p} characters.`}:p,min:typeof r=="string"&&(typeof v=="number"||typeof v=="string")?{value:v,message:`${Xr(r.toLocaleLowerCase())} must be greater or equal to ${v}.`}:g,max:typeof r=="string"&&(typeof b=="number"||typeof b=="string")?{value:b,message:`${Xr(r.toLocaleLowerCase())} cannot be greater than ${b}.`}:b,pattern:x}})}const nv=y.createContext({isOpen:!1,setState:()=>({})});function fh(){return y.useContext(nv)}function m3(e){const t=cn("xl"),[n,r]=y.useState(()=>t),i=y.useCallback(o=>{o.isOpen!==void 0&&r(o.isOpen)},[]);return y.useEffect(()=>i({isOpen:t}),[t,i]),m.jsx(nv.Provider,{value:{isOpen:n,setState:i},children:e.children})}function g3(){const e=Ot.useNavigate(),t=cn("xl"),n=fh();return y.useCallback(i=>{e(i),t||n.setState({isOpen:!n.isOpen})},[e,t,n])}const rv=y.createContext([{},()=>{}]);function nge(){return y.useContext(rv)[0]}function rge(){return y.useContext(rv)}function ige(e){const[t,n]=y.useState({}),r=y.useCallback(o=>{n(p3("",o))},[]),i=y.useMemo(()=>[t,r],[t,r]);return m.jsx(rv.Provider,{value:i,children:e.children})}function p3(e,t){const n={};return t.forEach(r=>{const i=(e+"/"+r.path).replace("//","/");"id"in r&&typeof r.id=="string"&&(n[r.id]=i),"children"in r&&Object.assign(n,p3(i,r.children))}),n}const y3=y.createContext({notificationsDrawerOpen:!1,setNotificationsDrawerOpen:()=>{throw new Error("PageNotificationsContext not implemented")},notificationGroups:{},setNotificationGroups:()=>{throw new Error("PageNotificationsContext not implemented")}});function hh(){return y.useContext(y3)}function oge(e){const[t,n]=y.useState(!1),[r,i]=y.useState({});return m.jsx(y3.Provider,{value:{notificationGroups:r,setNotificationGroups:i,notificationsDrawerOpen:t,setNotificationsDrawerOpen:n},children:e.children})}function age(e){const{t}=Me(),{notificationsDrawerOpen:n,setNotificationsDrawerOpen:r}=hh(),i=y.useRef(null);function o(){var s;r(!1),(s=i.current)==null||s.focus()}const{notificationGroups:a}=hh();return m.jsx(C.Drawer,{isExpanded:n,onExpand:()=>r(!0),children:m.jsx(C.DrawerContent,{panelContent:m.jsx(C.DrawerPanelContent,{children:m.jsxs(C.NotificationDrawer,{"data-cy":"notifications-drawer",children:[m.jsx(C.NotificationDrawerHeader,{title:t("Notifications"),children:m.jsx(C.DrawerCloseButton,{onClick:o})}),m.jsx(C.NotificationDrawerBody,{children:m.jsx(C.NotificationDrawerGroupList,{children:Object.values(a).map((s,l)=>m.jsx(lge,{group:s},l))})})]})}),children:m.jsx(sge,{children:e.children})})})}const sge=De(C.DrawerContentBody)`
|
493
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vT(e,t){if(e){if(typeof e=="string")return jy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jy(e,t)}}function jy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vme(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function bme(e){if(Array.isArray(e))return e}function bT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bT(Object(n),!0).forEach(function(r){Py(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Py(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qf(e,t){if(e==null)return{};var n=xme(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xme(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var My=y.forwardRef(function(e,t){var n=e.children,r=Qf(e,cme),i=_T(r),o=i.open,a=Qf(i,ume);return y.useImperativeHandle(t,function(){return{open:o}},[o]),y.createElement(y.Fragment,null,n(St(St({},a),{},{open:o})))});My.displayName="Dropzone";var xT={disabled:!1,getFilesFromEvent:Phe,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};My.defaultProps=xT,My.propTypes={children:ct.func,accept:ct.objectOf(ct.arrayOf(ct.string)),multiple:ct.bool,preventDropOnDocument:ct.bool,noClick:ct.bool,noKeyboard:ct.bool,noDrag:ct.bool,noDragEventsBubbling:ct.bool,minSize:ct.number,maxSize:ct.number,maxFiles:ct.number,disabled:ct.bool,getFilesFromEvent:ct.func,onFileDialogCancel:ct.func,onFileDialogOpen:ct.func,useFsAccessApi:ct.bool,autoFocus:ct.bool,onDragEnter:ct.func,onDragLeave:ct.func,onDragOver:ct.func,onDrop:ct.func,onDropAccepted:ct.func,onDropRejected:ct.func,onError:ct.func,validator:ct.func};var $y={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function _T(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=St(St({},xT),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,u=t.onDragLeave,d=t.onDragOver,f=t.onDrop,h=t.onDropAccepted,g=t.onDropRejected,p=t.onFileDialogCancel,v=t.onFileDialogOpen,b=t.useFsAccessApi,x=t.autoFocus,S=t.preventDropOnDocument,w=t.noClick,_=t.noKeyboard,E=t.noDrag,O=t.noDragEventsBubbling,T=t.onError,D=t.validator,j=y.useMemo(function(){return ame(n)},[n]),A=y.useMemo(function(){return ome(n)},[n]),M=y.useMemo(function(){return typeof v=="function"?v:ST},[v]),P=y.useMemo(function(){return typeof p=="function"?p:ST},[p]),$=y.useRef(null),L=y.useRef(null),H=y.useReducer(_me,$y),q=Dy(H,2),U=q[0],z=q[1],N=U.isFocused,R=U.isFileDialogActive,J=y.useRef(typeof window<"u"&&window.isSecureContext&&b&&ime()),ee=function(){!J.current&&R&&setTimeout(function(){if(L.current){var le=L.current.files;le.length||(z({type:"closeDialog"}),P())}},300)};y.useEffect(function(){return window.addEventListener("focus",ee,!1),function(){window.removeEventListener("focus",ee,!1)}},[L,R,P,J]);var X=y.useRef([]),Q=function(le){$.current&&$.current.contains(le.target)||(le.preventDefault(),X.current=[])};y.useEffect(function(){return S&&(document.addEventListener("dragover",gT,!1),document.addEventListener("drop",Q,!1)),function(){S&&(document.removeEventListener("dragover",gT),document.removeEventListener("drop",Q))}},[$,S]),y.useEffect(function(){return!r&&x&&$.current&&$.current.focus(),function(){}},[$,x,r]);var ie=y.useCallback(function(Y){T?T(Y):console.error(Y)},[T]),ue=y.useCallback(function(Y){Y.preventDefault(),Y.persist(),G(Y),X.current=[].concat(hme(X.current),[Y.target]),Jf(Y)&&Promise.resolve(i(Y)).then(function(le){if(!(Xf(Y)&&!O)){var be=le.length,xe=be>0&&eme({files:le,accept:j,minSize:a,maxSize:o,multiple:s,maxFiles:l,validator:D}),Ne=be>0&&!xe;z({isDragAccept:xe,isDragReject:Ne,isDragActive:!0,type:"setDraggedFiles"}),c&&c(Y)}}).catch(function(le){return ie(le)})},[i,c,ie,O,j,a,o,s,l,D]),de=y.useCallback(function(Y){Y.preventDefault(),Y.persist(),G(Y);var le=Jf(Y);if(le&&Y.dataTransfer)try{Y.dataTransfer.dropEffect="copy"}catch{}return le&&d&&d(Y),!1},[d,O]),K=y.useCallback(function(Y){Y.preventDefault(),Y.persist(),G(Y);var le=X.current.filter(function(xe){return $.current&&$.current.contains(xe)}),be=le.indexOf(Y.target);be!==-1&&le.splice(be,1),X.current=le,!(le.length>0)&&(z({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Jf(Y)&&u&&u(Y))},[$,u,O]),ne=y.useCallback(function(Y,le){var be=[],xe=[];Y.forEach(function(Ne){var Re=hT(Ne,j),nt=Dy(Re,2),wt=nt[0],jt=nt[1],Ct=mT(Ne,a,o),We=Dy(Ct,2),Pe=We[0],mt=We[1],Rt=D?D(Ne):null;if(wt&&Pe&&!Rt)be.push(Ne);else{var Et=[jt,mt];Rt&&(Et=Et.concat(Rt)),xe.push({file:Ne,errors:Et.filter(function(Nn){return Nn})})}}),(!s&&be.length>1||s&&l>=1&&be.length>l)&&(be.forEach(function(Ne){xe.push({file:Ne,errors:[Qhe]})}),be.splice(0)),z({acceptedFiles:be,fileRejections:xe,type:"setFiles"}),f&&f(be,xe,le),xe.length>0&&g&&g(xe,le),be.length>0&&h&&h(be,le)},[z,s,j,a,o,l,f,h,g,D]),pe=y.useCallback(function(Y){Y.preventDefault(),Y.persist(),G(Y),X.current=[],Jf(Y)&&Promise.resolve(i(Y)).then(function(le){Xf(Y)&&!O||ne(le,Y)}).catch(function(le){return ie(le)}),z({type:"reset"})},[i,ne,ie,O]),B=y.useCallback(function(){if(J.current){z({type:"openDialog"}),M();var Y={multiple:s,types:A};window.showOpenFilePicker(Y).then(function(le){return i(le)}).then(function(le){ne(le,null),z({type:"closeDialog"})}).catch(function(le){sme(le)?(P(le),z({type:"closeDialog"})):lme(le)?(J.current=!1,L.current?(L.current.value=null,L.current.click()):ie(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ie(le)});return}L.current&&(z({type:"openDialog"}),M(),L.current.value=null,L.current.click())},[z,M,P,b,ne,ie,A,s]),ke=y.useCallback(function(Y){!$.current||!$.current.isEqualNode(Y.target)||(Y.key===" "||Y.key==="Enter"||Y.keyCode===32||Y.keyCode===13)&&(Y.preventDefault(),B())},[$,B]),Ee=y.useCallback(function(){z({type:"focus"})},[]),He=y.useCallback(function(){z({type:"blur"})},[]),Ie=y.useCallback(function(){w||(rme()?setTimeout(B,0):B())},[w,B]),at=function(le){return r?null:le},I=function(le){return _?null:at(le)},V=function(le){return E?null:at(le)},G=function(le){O&&le.stopPropagation()},fe=y.useMemo(function(){return function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le=Y.refKey,be=le===void 0?"ref":le,xe=Y.role,Ne=Y.onKeyDown,Re=Y.onFocus,nt=Y.onBlur,wt=Y.onClick,jt=Y.onDragEnter,Ct=Y.onDragOver,We=Y.onDragLeave,Pe=Y.onDrop,mt=Qf(Y,dme);return St(St(Py({onKeyDown:I(Qr(Ne,ke)),onFocus:I(Qr(Re,Ee)),onBlur:I(Qr(nt,He)),onClick:at(Qr(wt,Ie)),onDragEnter:V(Qr(jt,ue)),onDragOver:V(Qr(Ct,de)),onDragLeave:V(Qr(We,K)),onDrop:V(Qr(Pe,pe)),role:typeof xe=="string"&&xe!==""?xe:"presentation"},be,$),!r&&!_?{tabIndex:0}:{}),mt)}},[$,ke,Ee,He,Ie,ue,de,K,pe,_,E,r]),he=y.useCallback(function(Y){Y.stopPropagation()},[]),oe=y.useMemo(function(){return function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le=Y.refKey,be=le===void 0?"ref":le,xe=Y.onChange,Ne=Y.onClick,Re=Qf(Y,fme),nt=Py({accept:j,multiple:s,type:"file",style:{display:"none"},onChange:at(Qr(xe,pe)),onClick:at(Qr(Ne,he)),tabIndex:-1},be,L);return St(St({},nt),Re)}},[L,n,s,pe,r]);return St(St({},U),{},{isFocused:N&&!r,getRootProps:fe,getInputProps:oe,rootRef:$,inputRef:L,open:at(B)})}function _me(e,t){switch(t.type){case"focus":return St(St({},e),{},{isFocused:!0});case"blur":return St(St({},e),{},{isFocused:!1});case"openDialog":return St(St({},$y),{},{isFileDialogActive:!0});case"closeDialog":return St(St({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return St(St({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return St(St({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return St({},$y);default:return e}}function ST(){}function Sme(e){const{t}=Me(),n=su(),{onDrop:r}=e,i=y.useCallback(s=>{if(!s||s.length===0)return;const l=s[0],c=new FileReader;c.onload=()=>{const u=c.result;if(typeof u=="string"){const d={variant:"success",title:t("File uploaded"),timeout:!0};n.addAlert(d),r(u)}},c.onerror=()=>{const u={variant:"danger",title:t("Failed to upload file"),children:t("Unable to upload")};n.addAlert(u)},c.readAsText(l)},[t,n,r]),{getRootProps:o,getInputProps:a}=_T({onDrop:i,noClick:!0,accept:e.accept??{"application/json":[".json"],"text/yaml":[".yaml",".yml"]}});return m.jsxs("div",{id:"code-editor-dropzone",...o({disabled:!0}),style:{width:"100%",height:"100%"},children:[m.jsx("input",{id:"code-editor-dropzone-input",...a(),ref:e.inputRef}),e.children]})}function wme(e){return m.jsx(C.Icon,{size:e.size??"md",children:m.jsx(ve.AngleDownIcon,{"data-cy":"expandable",style:{transform:e.isExpanded?"rotate(0deg)":e.direction==="left"?"rotate(90deg)":"rotate(-90deg)",transition:"transform 0.2s",alignSelf:"center"},onClick:()=>e.setExpanded(!e.isExpanded),"aria-label":e.isExpanded?uc("Collapse"):uc("Expand")})})}function Cme(e,t,n="txt"){const r=new Blob(t.split("/n"),{type:"text/plain"}),i=document.createElement("a");i.href=URL.createObjectURL(r),i.download=e+"."+n,document.body.appendChild(i),i.click(),document.body.removeChild(i)}function bc(e){const{children:t,helperText:n,helperTextInvalid:r,isRequired:i,labelHelp:o,labelHelpTitle:a,label:s}=e;return m.jsxs(C.FormGroup,{id:`${e.fieldId}-form-group`,fieldId:e.fieldId,label:m.jsxs(m.Fragment,{children:[e.icon,s]}),labelIcon:o?m.jsx(ou,{title:a,help:o}):void 0,labelInfo:e.additionalControls,isRequired:i,"data-cy":`${e.fieldId}-form-group`,children:[t,(n||r)&&m.jsx(C.FormHelperText,{children:m.jsx(C.HelperText,{children:m.jsx(C.HelperTextItem,{variant:r?"error":void 0,children:r||n})})})]})}function Eme(e){const{t}=Me(),{name:n,format:r,disableCopy:i,disableUpload:o,disableDownload:a,disableExpand:s,validate:l,isArray:c}=e,u=li(e),{formState:{isSubmitting:d,isValidating:f},setError:h,getValues:g,clearErrors:p,control:v}=Yr(),x=Bo().dataEditorFormat??"yaml",[S,w]=y.useState(x),[_,E]=y.useState(!e.defaultCollapsed),[O,T]=y.useState(()=>{const ee=g(n);return typeof ee=="string"?ee:ei(ee,x)}),D=su(),{writeToClipboard:j}=_b(),A=y.useCallback(()=>j(ei(Li(g(n),c),S)),[g,c,S,n,j]),M=y.useCallback(ee=>{T(ei(Li(ee,c),S))},[c,S]),P=y.useRef(null),$=y.useCallback(()=>{var ee;return(ee=P.current)==null?void 0:ee.click()},[]),L=y.useCallback(()=>{const ee=n||"data",X=S==="json"?"json":"yaml";Cme(ee,ei(Li(g(n),c),S),X),D.addAlert({variant:"success",title:t("File downloaded"),timeout:!0})},[D,g,c,S,n,t]);y.useLayoutEffect(()=>{const ee=ei(Li(g(n),c),S);T(ee)},[g,c,S,n]);const[H,q]=y.useState(!1),U=iO({name:n});y.useEffect(()=>{H||T(ei(Li(U,c),S))},[H,U,c,S]);const{setValue:z,formState:{defaultValues:N}}=Yr(),R=dc(e.label,e.isRequired),J=Ps(N,e.name);return m.jsx(Ts,{name:n,control:v,shouldUnregister:!0,render:({field:{value:ee,name:X,onChange:Q},fieldState:{error:ie}})=>{var de;function ue(K){try{const ne=Li(K,c);switch(r){case"object":Q(ne);return;default:Q(ei(ne,r));break}p(X)}catch(ne){ne instanceof Error&&h(X,{message:ne.message})}}return m.jsxs(bc,{fieldId:u,icon:!s&&m.jsx(wme,{isExpanded:_,setExpanded:E}),label:e.label,labelHelpTitle:e.labelHelpTitle??e.label,labelHelp:e.labelHelp,additionalControls:m.jsx(CT,{handleCopy:!i&&A,handleUpload:!o&&$,handleDownload:!a&&L,language:S,setLanguage:w,children:e.additionalControls}),helperText:e.helperText,helperTextInvalid:!(l&&f)&&((de=ie==null?void 0:ie.message)==null?void 0:de.split(`
|
494
|
+
`)),isRequired:e.isRequired,children:[_&&m.jsxs("div",{style:{display:"flex"},children:[m.jsx(Sme,{onDrop:M,isDisabled:d||e.isReadOnly,inputRef:P,children:m.jsx(bhe,{"data-cy":u,id:u,name:X,language:S,value:O,onChange:ue,setError:K=>{K?h(X,{message:K}):p(X)},isReadOnly:e.isReadOnly||d,className:e.isReadOnly?"pf-v5-c-form-control pf-m-disabled":"pf-v5-c-form-control",onFocus:()=>q(!0),onBlur:()=>q(!1)})}),m.jsx(Wr,{actions:[{label:t("Undo changes"),type:it.Button,selection:Ge.None,onClick:()=>{z(e.name,J),T(""),setTimeout(()=>{T(ei(Li(J,c),S))},0)},isHidden:()=>!e.enableUndo||NO(ee,J)},{label:t("Reset to default"),type:it.Button,selection:Ge.None,onClick:()=>{z(e.name,e.defaultValue),T(""),setTimeout(()=>{T(ei(Li(e.defaultValue,c),S))},0)},isHidden:()=>!e.enableReset||NO(ee,e.defaultValue)}],position:"right"})]}),!_&&m.jsx("div",{className:"pf-v5-c-form-control"})]})},rules:{required:R,validate:e.validate}})}function wT(e){const{t}=Me(),{handleCopy:n,handleDownload:r,handleUpload:i}=e;return!n&&!r&&!i?m.jsx(m.Fragment,{}):m.jsxs(C.Flex,{spaceItems:{default:"spaceItemsMd"},children:[n&&m.jsx(C.FlexItem,{children:m.jsx(iu,{id:"copy-button","data-cy":"copy-button","aria-label":t("Copy to clipboard"),type:"button",onClick:n,children:m.jsx(C.Icon,{size:"md",children:m.jsx(ve.CopyIcon,{})})})}),i&&m.jsx(C.FlexItem,{children:m.jsx(iu,{id:"upload-button","data-cy":"upload-button","aria-label":t("Upload from file"),type:"button",onClick:i,children:m.jsx(C.Icon,{size:"md",children:m.jsx(ve.UploadIcon,{})})})}),r&&m.jsx(C.FlexItem,{children:m.jsx(iu,{id:"download-button","data-cy":"download-button","aria-label":t("Download file"),type:"button",onClick:r,children:m.jsx(C.Icon,{size:"md",children:m.jsx(ve.DownloadIcon,{})})})})]})}function CT(e){const{t}=Me(),{handleCopy:n,handleDownload:r,handleUpload:i,language:o,setLanguage:a}=e;return m.jsxs(C.Flex,{spaceItems:{default:"spaceItemsLg"},children:[m.jsx(C.FlexItem,{children:e.children}),m.jsx(wT,{handleCopy:n,handleDownload:r,handleUpload:i}),m.jsx(C.FlexItem,{align:{default:"alignRight"},children:m.jsxs(C.ToggleGroup,{isCompact:!0,children:[m.jsx(C.ToggleGroupItem,{id:"toggle-yaml","data-cy":"toggle-yaml","aria-label":t("Toggle to YAML"),isSelected:o==="yaml",text:"YAML",type:"button",onChange:()=>a("yaml")}),m.jsx(C.ToggleGroupItem,{id:"toggle-json","data-cy":"toggle-json","aria-label":t("Toggle to JSON"),isSelected:o==="json",text:"JSON",type:"button",onChange:()=>a("json")})]})})]})}function Li(e,t){if(e==null)return t?[]:{};if(typeof e=="string")try{e=JSON.parse(e)}catch{try{e=Uk.load(e)}catch(n){return n instanceof Error||n instanceof vy?new Error(n.message):{}}}return t?Array.isArray(e)?e:[]:Array.isArray(e)?{}:e}function ei(e,t){if(e==null)return"";if(e instanceof Error)return e.message;switch(t){case"json":return JSON.stringify(e,null,2);case"yaml":try{const n=Uk.dump(e).trimEnd();switch(n){case"null":case"{}":case"[]":return"";default:return n}}catch(n){return n instanceof Error||n instanceof vy?n.message:""}default:return""}}function re(...e){const t=[],n={}.hasOwnProperty;return e.filter(Boolean).forEach(r=>{const i=typeof r;if(i==="string"||i==="number")t.push(r);else if(Array.isArray(r)&&r.length){const o=re(...r);o&&t.push(o)}else if(i==="object")for(const o in r)n.call(r,o)&&r[o]&&t.push(o)}),t.join(" ")}let Ome=0;function _o({name:e,xOffset:t=0,yOffset:n=0,width:r,height:i,svgPath:o}){var a;return a=class extends k.Component{constructor(){super(...arguments),this.id=`icon-title-${Ome++}`}render(){const l=this.props,{title:c,className:u}=l,d=Ae(l,["title","className"]),f=u?`pf-v5-svg ${u}`:"pf-v5-svg",h=!!c,g=[t,n,r,i].join(" ");return k.createElement("svg",Object.assign({className:f,viewBox:g,fill:"currentColor","aria-labelledby":h?this.id:null,"aria-hidden":h?null:!0,role:"img",width:"1em",height:"1em"},d),h&&k.createElement("title",{id:this.id},c),k.createElement("path",{d:o}))}},a.displayName=e,a}const da={badge:"pf-v5-c-badge",check:"pf-v5-c-check",divider:"pf-v5-c-divider",dropdown:"pf-v5-c-dropdown",dropdownGroup:"pf-v5-c-dropdown__group",dropdownGroupTitle:"pf-v5-c-dropdown__group-title",dropdownMenu:"pf-v5-c-dropdown__menu",dropdownMenuItem:"pf-v5-c-dropdown__menu-item",dropdownMenuItemDescription:"pf-v5-c-dropdown__menu-item-description",dropdownMenuItemIcon:"pf-v5-c-dropdown__menu-item-icon",dropdownMenuItemMain:"pf-v5-c-dropdown__menu-item-main",dropdownToggle:"pf-v5-c-dropdown__toggle",dropdownToggleButton:"pf-v5-c-dropdown__toggle-button",dropdownToggleCheck:"pf-v5-c-dropdown__toggle-check",dropdownToggleIcon:"pf-v5-c-dropdown__toggle-icon",dropdownToggleImage:"pf-v5-c-dropdown__toggle-image",dropdownToggleProgress:"pf-v5-c-dropdown__toggle-progress",dropdownToggleText:"pf-v5-c-dropdown__toggle-text",menu:"pf-v5-c-menu",modifiers:{fullHeight:"pf-m-full-height",expanded:"pf-m-expanded",action:"pf-m-action",disabled:"pf-m-disabled",plain:"pf-m-plain",text:"pf-m-text",splitButton:"pf-m-split-button",primary:"pf-m-primary",inProgress:"pf-m-in-progress",active:"pf-m-active",secondary:"pf-m-secondary",top:"pf-m-top",static:"pf-m-static",alignRight:"pf-m-align-right",alignLeft:"pf-m-align-left",alignRightOnSm:"pf-m-align-right-on-sm",alignLeftOnSm:"pf-m-align-left-on-sm",alignRightOnMd:"pf-m-align-right-on-md",alignLeftOnMd:"pf-m-align-left-on-md",alignRightOnLg:"pf-m-align-right-on-lg",alignLeftOnLg:"pf-m-align-left-on-lg",alignRightOnXl:"pf-m-align-right-on-xl",alignLeftOnXl:"pf-m-align-left-on-xl",alignRightOn_2xl:"pf-m-align-right-on-2xl",alignLeftOn_2xl:"pf-m-align-left-on-2xl",ariaDisabled:"pf-m-aria-disabled",icon:"pf-m-icon",description:"pf-m-description"},spinner:"pf-v5-c-spinner",themeDark:"pf-v5-theme-dark"};var ET;(function(e){e.right="right",e.left="left"})(ET||(ET={}));var OT;(function(e){e.up="up",e.down="down"})(OT||(OT={}));const kme=k.createContext({onSelect:e=>{},id:"",toggleIndicatorClass:"",toggleIconClass:"",toggleTextClass:"",menuClass:"",itemClass:"",toggleClass:"",baseClass:"",baseComponent:"div",sectionClass:"",sectionTitleClass:"",sectionComponent:"section",disabledClass:"",plainTextClass:"",menuComponent:"ul"}),Tme=k.createContext({keyHandler:null,sendRef:null}),xc={UP:"up",DOWN:"down",RIGHT:"right",LEFT:"left"};var En;(function(e){e.success="success",e.error="error",e.warning="warning",e.default="default"})(En||(En={}));const Ye={Tab:"Tab",Space:" ",Escape:"Escape",Enter:"Enter",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight"};function kT(e="pf"){const t=new Date().getTime()+Math.random().toString(36).slice(2);return`${e}-${t}`}function Ame(e,t){return e.replace(/\${(.*?)}/g,(n,r)=>t[r]||"")}function TT(e,t,n,r,i,o=!1){if(!Array.isArray(i))return;const a=r.filter(c=>c)[0].constructor===Array;let s=e,l=t;n==="up"?e===0?s=i.length-1:s=e-1:n==="down"?e===i.length-1?s=0:s=e+1:n==="left"?t===0?l=r[e].length-1:l=t-1:n==="right"&&(t===r[e].length-1?l=0:l=t+1),r[s]===null||r[s]===void 0||a&&(r[s][l]===null||r[s][l]===void 0)?TT(s,l,n,r,i,o):o?(r[s].focus&&r[s].focus(),lv.findDOMNode(r[s]).focus()):n!=="tab"&&(a?r[s][l].focus():r[s].focus())}function _c(e,t){const n=e.current.querySelectorAll(t);return Array.prototype.filter.call(n,function(i){return i.tabIndex>="0"})}function AT(e,t,n){let r;return t==="up"?e===0?r=n.length-1:r=e-1:e===n.length-1?r=0:r=e+1,n[r]===void 0||n[r][0]===null?AT(r,t,n):r}const DT=(e,t,n="",r,i)=>e?Object.entries(e||{}).map(([o,a])=>`${n}${a}${o!=="default"?`-on-${o}`:""}`).map(jme).map(o=>o.replace(/-?(\dxl)/gi,(a,s)=>`_${s}`)).map(o=>t.modifiers[o]).filter(Boolean).join(" "):"",Dme=e=>e.toUpperCase().replace("-","").replace("_",""),jme=e=>e.replace(/([-_][a-z])/gi,Dme),jT=!!(typeof window<"u"&&window.document&&window.document.createElement),PT=(e,t)=>{const n=getComputedStyle(t),r=()=>{let a="";const s={"50%":"ultra-condensed","62.5%":"extra-condensed","75%":"condensed","87.5%":"semi-condensed","100%":"normal","112.5%":"semi-expanded","125%":"expanded","150%":"extra-expanded","200%":"ultra-expanded"};let l;return n.fontStretch in s?l=s[n.fontStretch]:l="normal",a=n.fontStyle+" "+n.fontVariant+" "+n.fontWeight+" "+l+" "+n.fontSize+"/"+n.lineHeight+" "+n.fontFamily,a},o=document.createElement("canvas").getContext("2d");return o.font=n.font||r(),o.measureText(e).width},Pme=e=>{const t=getComputedStyle(e);let n=e.clientWidth,r=e.clientHeight;return r-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),{height:r,width:n}},Mme=(e,t)=>{const n=Pme(e).width;let r=t;if(PT(t,e)>n){for(;PT(`...${r}`,e)>n;)r=r.substring(1);e.value?e.value=`...${r}`:e.innerText=`...${r}`}else e.value?e.value=t:e.innerText=t},$me=e=>e.reduce((t,n)=>Object.assign(Object.assign({},t),{[n]:r=>{r.preventDefault()}}),{}),eh=e=>{e.forEach(t=>{t.current&&clearTimeout(t.current)})},Ime=(e,t="ltr")=>{if(!e)return t;const n=getComputedStyle(e).getPropertyValue("direction");return["ltr","rtl"].includes(n)?n:t};let Lme=0;function Fme(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():kT()}class Sc extends k.Component{constructor(){super(...arguments),this.uniqueElement=this.props.isRandom?Fme():Lme++,this.id=`${this.props.prefix}${this.uniqueElement}`}render(){return this.props.children(this.id)}}Sc.displayName="GenerateId",Sc.defaultProps={prefix:"pf-random-id-",isRandom:!1};let Nme=0;const MT="OUIA-Generated-",Iy={};function wc(e,t,n=!0){return{"data-ouia-component-type":`PF5/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}const $T=(e,t,n=!0,r)=>({"data-ouia-component-type":`PF5/${e}`,"data-ouia-safe":n,"data-ouia-component-id":Bme(e,t,r)}),Bme=(e,t,n)=>{const r=y.useMemo(()=>th(e,n),[e,n]);return t??r};function th(e,t){try{let n;return typeof window<"u"?n=`${window.location.href}-${e}-${t||""}`:n=`${e}-${t||""}`,Iy[n]||(Iy[n]=0),`${MT}${e}-${t?`${t}-`:""}${++Iy[n]}`}catch{return`${MT}${e}-${t?`${t}-`:""}${++Nme}`}}function Cc(e){const t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function ti(e){if(e.toString()!=="[object Window]"){const t=e.ownerDocument;return t?t.defaultView:window}return e}function Ly(e){const t=ti(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ec(e){const t=ti(e).Element;return e instanceof t||e instanceof Element}function ni(e){const t=ti(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Wme(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function zme(e){return e===ti(e)||!ni(e)?Ly(e):Wme(e)}function Mr(e){return e?(e.nodeName||"").toLowerCase():null}function Fi(e){return(Ec(e)?e.ownerDocument:e.document).documentElement}function Fy(e){return Cc(Fi(e)).left+Ly(e).scrollLeft}function Ni(e){return ti(e).getComputedStyle(e)}function Ny(e){const{overflow:t,overflowX:n,overflowY:r}=Ni(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function Rme(e,t,n=!1){const r=Fi(t),i=Cc(e),o=ni(t);let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!n)&&((Mr(t)!=="body"||Ny(r))&&(a=zme(t)),ni(t)?(s=Cc(t),s.x+=t.clientLeft,s.y+=t.clientTop):r&&(s.x=Fy(r))),{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function By(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function nh(e){return Mr(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||Fi(e)}function IT(e){return["html","body","#document"].indexOf(Mr(e))>=0?e.ownerDocument.body:ni(e)&&Ny(e)?e:IT(nh(e))}function Oc(e,t=[]){const n=IT(e),r=Mr(n)==="body",i=ti(n),o=r?[i].concat(i.visualViewport||[],Ny(n)?n:[]):n,a=t.concat(o);return r?a:a.concat(Oc(nh(o)))}function Vme(e){return["table","td","th"].indexOf(Mr(e))>=0}function LT(e){if(!ni(e)||Ni(e).position==="fixed")return null;const t=e.offsetParent;if(t){const n=Fi(t);if(Mr(t)==="body"&&Ni(t).position==="static"&&Ni(n).position!=="static")return n}return t}function Ume(e){let t=nh(e);for(;ni(t)&&["html","body"].indexOf(Mr(t))<0;){const n=Ni(t);if(n.transform!=="none"||n.perspective!=="none"||n.willChange&&n.willChange!=="auto")return t;t=t.parentNode}return null}function kc(e){const t=ti(e);let n=LT(e);for(;n&&Vme(n)&&Ni(n).position==="static";)n=LT(n);return n&&Mr(n)==="body"&&Ni(n).position==="static"?t:n||Ume(e)||t}const hr="top",$r="bottom",Ir="right",mr="left",Wy="auto",Tc=[hr,$r,Ir,mr],Ns="start",zy="end",Hme="clippingParents",FT="viewport",Ac="popper",Gme="reference",NT=Tc.reduce((e,t)=>e.concat([`${t}-${Ns}`,`${t}-${zy}`]),[]),BT=[...Tc,Wy].reduce((e,t)=>e.concat([t,`${t}-${Ns}`,`${t}-${zy}`]),[]),qme=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Yme(e){const t=new Map,n=new Set,r=[];e.forEach(o=>{t.set(o.name,o)});function i(o){n.add(o.name),[...o.requires||[],...o.requiresIfExists||[]].forEach(s=>{if(!n.has(s)){const l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(o=>{n.has(o.name)||i(o)}),r}function Kme(e){const t=Yme(e);return qme.reduce((n,r)=>n.concat(t.filter(i=>i.phase===r)),[])}function Zme(e){let t;return()=>(t||(t=new Promise(n=>{Promise.resolve().then(()=>{t=void 0,n(e())})})),t)}function ri(e){return e.split("-")[0]}function Xme(e){const t=e.reduce((n,r)=>{const i=n[r.name];return n[r.name]=i?Object.assign(Object.assign(Object.assign({},i),r),{options:Object.assign(Object.assign({},i.options),r.options),data:Object.assign(Object.assign({},i.data),r.data)}):r,n},{});return Object.keys(t).map(n=>t[n])}function Jme(e){const t=ti(e),n=Fi(e),r=t.visualViewport;let i=n.clientWidth,o=n.clientHeight,a=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:a+Fy(e),y:s}}function Qme(e){const t=Fi(e),n=Ly(e),r=e.ownerDocument.body,i=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-n.scrollLeft+Fy(e);const s=-n.scrollTop;return Ni(r||t).direction==="rtl"&&(a+=Math.max(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:o,x:a,y:s}}function WT(e,t){const n=!!(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){let r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ry(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function e0e(e){const t=Cc(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function zT(e,t){return t===FT?Ry(Jme(e)):ni(t)?e0e(t):Ry(Qme(Fi(e)))}function t0e(e){const t=Oc(nh(e)),r=["absolute","fixed"].indexOf(Ni(e).position)>=0&&ni(e)?kc(e):e;return Ec(r)?t.filter(i=>Ec(i)&&WT(i,r)&&Mr(i)!=="body"):[]}function n0e(e,t,n){const i=[...t==="clippingParents"?t0e(e):[].concat(t),n],o=i[0],a=i.reduce((s,l)=>{const c=zT(e,l);return s.top=Math.max(c.top,s.top),s.right=Math.min(c.right,s.right),s.bottom=Math.min(c.bottom,s.bottom),s.left=Math.max(c.left,s.left),s},zT(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Dc(e){return e.split("-")[1]}function Vy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function RT({reference:e,element:t,placement:n}){const r=n?ri(n):null,i=n?Dc(n):null,o=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2;let s;switch(r){case hr:s={x:o,y:e.y-t.height};break;case $r:s={x:o,y:e.y+e.height};break;case Ir:s={x:e.x+e.width,y:a};break;case mr:s={x:e.x-t.width,y:a};break;default:s={x:e.x,y:e.y}}const l=r?Vy(r):null;if(l!=null){const c=l==="y"?"height":"width";switch(i){case Ns:s[l]=Math.floor(s[l])-Math.floor(e[c]/2-t[c]/2);break;case zy:s[l]=Math.floor(s[l])+Math.ceil(e[c]/2-t[c]/2);break}}return s}function VT(){return{top:0,right:0,bottom:0,left:0}}function UT(e){return Object.assign(Object.assign({},VT()),e)}function HT(e,t){return t.reduce((n,r)=>(n[r]=e,n),{})}function jc(e,t={}){const{placement:n=e.placement,boundary:r=Hme,rootBoundary:i=FT,elementContext:o=Ac,altBoundary:a=!1,padding:s=0}=t,l=UT(typeof s!="number"?s:HT(s,Tc)),c=o===Ac?Gme:Ac,u=e.elements.reference,d=e.rects.popper,f=e.elements[a?c:o],h=n0e(Ec(f)?f:f.contextElement||Fi(e.elements.popper),r,i),g=Cc(u),p=RT({reference:g,element:d,strategy:"absolute",placement:n}),v=Ry(Object.assign(Object.assign({},d),p)),b=o===Ac?v:g,x={top:h.top-b.top+l.top,bottom:b.bottom-h.bottom+l.bottom,left:h.left-b.left+l.left,right:b.right-h.right+l.right},S=e.modifiersData.offset;if(o===Ac&&S){const w=S[n];Object.keys(x).forEach(_=>{const E=[Ir,$r].indexOf(_)>=0?1:-1,O=[hr,$r].indexOf(_)>=0?"y":"x";x[_]+=w[O]*E})}return x}const GT={placement:"bottom",modifiers:[],strategy:"absolute"};function qT(...e){return!e.some(t=>!(t&&typeof t.getBoundingClientRect=="function"))}function r0e(e={}){const{defaultModifiers:t=[],defaultOptions:n=GT}=e;return function(i,o,a=n){let s={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},GT),n),modifiersData:{},elements:{reference:i,popper:o},attributes:{},styles:{}},l=[],c=!1;const u={state:s,setOptions(h){f(),s.options=Object.assign(Object.assign(Object.assign({},n),s.options),h),s.scrollParents={reference:Ec(i)?Oc(i):i.contextElement?Oc(i.contextElement):[],popper:Oc(o)};const g=Kme(Xme([...t,...s.options.modifiers]));return s.orderedModifiers=g.filter(p=>p.enabled),d(),u.update()},forceUpdate(){if(c)return;const{reference:h,popper:g}=s.elements;if(qT(h,g)){s.rects={reference:Rme(h,kc(g),s.options.strategy==="fixed"),popper:By(g)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(p=>s.modifiersData[p.name]=Object.assign({},p.data));for(let p=0;p<s.orderedModifiers.length;p++){if(s.reset===!0){s.reset=!1,p=-1;continue}const{fn:v,options:b={},name:x}=s.orderedModifiers[p];typeof v=="function"&&(s=v({state:s,options:b,name:x,instance:u})||s)}}},update:Zme(()=>new Promise(h=>{u.forceUpdate(),h(s)})),destroy(){f(),c=!0}};if(!qT(i,o))return u;u.setOptions(a).then(h=>{!c&&a.onFirstUpdate&&a.onFirstUpdate(h)});function d(){s.orderedModifiers.forEach(({name:h,options:g={},effect:p})=>{if(typeof p=="function"){const v=p({state:s,name:h,instance:u,options:g}),b=()=>{};l.push(v||b)}})}function f(){l.forEach(h=>h()),l=[]}return u}}const rh={passive:!0};function i0e({state:e,instance:t,options:n}){const{scroll:r=!0,resize:i=!0}=n,o=ti(e.elements.popper),a=[...e.scrollParents.reference,...e.scrollParents.popper];return r&&a.forEach(s=>{s.addEventListener("scroll",t.update,rh)}),i&&o.addEventListener("resize",t.update,rh),()=>{r&&a.forEach(s=>{s.removeEventListener("scroll",t.update,rh)}),i&&o.removeEventListener("resize",t.update,rh)}}const o0e={name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:i0e,data:{}};function a0e({state:e,name:t}){e.modifiersData[t]=RT({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const s0e={name:"popperOffsets",enabled:!0,phase:"read",fn:a0e,data:{}},l0e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function c0e({x:e,y:t}){const r=window.devicePixelRatio||1;return{x:Math.round(e*r)/r||0,y:Math.round(t*r)/r||0}}function YT({popper:e,popperRect:t,placement:n,offsets:r,position:i,gpuAcceleration:o,adaptive:a}){let{x:s,y:l}=c0e(r);const c=r.hasOwnProperty("x"),u=r.hasOwnProperty("y");let d=mr,f=hr;const h=window;if(a){let p=kc(e);p===ti(e)&&(p=Fi(e)),n===hr&&(f=$r,l-=p.clientHeight-t.height,l*=o?1:-1),n===mr&&(d=Ir,s-=p.clientWidth-t.width,s*=o?1:-1)}const g=Object.assign({position:i},a&&l0e);return o?Object.assign(Object.assign({},g),{[f]:u?"0":"",[d]:c?"0":"",transform:(h.devicePixelRatio||1)<2?`translate(${s}px, ${l}px)`:`translate3d(${s}px, ${l}px, 0)`}):Object.assign(Object.assign({},g),{[f]:u?`${l}px`:"",[d]:c?`${s}px`:"",transform:""})}function u0e({state:e,options:t}){const{gpuAcceleration:n=!0,adaptive:r=!0}=t,i={placement:ri(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),YT(Object.assign(Object.assign({},i),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),YT(Object.assign(Object.assign({},i),{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-placement":e.placement})}const d0e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:u0e,data:{}};function f0e({state:e}){Object.keys(e.elements).forEach(t=>{const n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];!ni(i)||!Mr(i)||(Object.assign(i.style,n),Object.keys(r).forEach(o=>{const a=r[o];a===!1?i.removeAttribute(o):i.setAttribute(o,a===!0?"":a)}))})}function h0e({state:e}){const t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),()=>{Object.keys(e.elements).forEach(n=>{const r=e.elements[n],i=e.attributes[n]||{},a=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce((s,l)=>(s[l]="",s),{});!ni(r)||!Mr(r)||(Object.assign(r.style,a),Object.keys(i).forEach(s=>{r.removeAttribute(s)}))})}}const m0e={name:"applyStyles",enabled:!0,phase:"write",fn:f0e,effect:h0e,requires:["computeStyles"]};function g0e(e,t,n){const r=ri(e),i=[mr,hr].indexOf(r)>=0?-1:1;let[o,a]=typeof n=="function"?n(Object.assign(Object.assign({},t),{placement:e})):n;return o=o||0,a=(a||0)*i,[mr,Ir].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function p0e({state:e,options:t,name:n}){const{offset:r=[0,0]}=t,i=BT.reduce((s,l)=>(s[l]=g0e(l,e.rects,r),s),{}),{x:o,y:a}=i[e.placement];e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=o,e.modifiersData.popperOffsets.y+=a),e.modifiersData[n]=i}const y0e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:p0e},v0e={left:"right",right:"left",bottom:"top",top:"bottom"};function ih(e){return e.replace(/left|right|bottom|top/g,t=>v0e[t])}const b0e={start:"end",end:"start"};function KT(e){return e.replace(/start|end/g,t=>b0e[t])}function x0e(e,t={}){const{placement:n,boundary:r,rootBoundary:i,padding:o,flipVariations:a,allowedAutoPlacements:s=BT}=t,l=Dc(n),c=l?a?NT:NT.filter(f=>Dc(f)===l):Tc;let u=c.filter(f=>s.indexOf(f)>=0);u.length===0&&(u=c);const d=u.reduce((f,h)=>(f[h]=jc(e,{placement:h,boundary:r,rootBoundary:i,padding:o})[ri(h)],f),{});return Object.keys(d).sort((f,h)=>d[f]-d[h])}function _0e(e){if(ri(e)===Wy)return[];const t=ih(e);return[KT(e),t,KT(t)]}function S0e({state:e,options:t,name:n}){if(e.modifiersData[n]._skip)return;const{mainAxis:r=!0,altAxis:i=!0,fallbackPlacements:o,padding:a,boundary:s,rootBoundary:l,altBoundary:c,flipVariations:u=!0,allowedAutoPlacements:d}=t,f=e.options.placement,g=ri(f)===f,p=o||(g||!u?[ih(f)]:_0e(f)),v=[f,...p].reduce((E,O)=>E.concat(ri(O)===Wy?x0e(e,{placement:O,boundary:s,rootBoundary:l,padding:a,flipVariations:u,allowedAutoPlacements:d}):O),[]),b=e.rects.reference,x=e.rects.popper,S=new Map;let w=!0,_=v[0];for(let E=0;E<v.length;E++){const O=v[E],T=ri(O),D=Dc(O)===Ns,j=[hr,$r].indexOf(T)>=0,A=j?"width":"height",M=jc(e,{placement:O,boundary:s,rootBoundary:l,altBoundary:c,padding:a});let P=j?D?Ir:mr:D?$r:hr;b[A]>x[A]&&(P=ih(P));const $=ih(P),L=[];if(r&&L.push(M[T]<=0),i&&L.push(M[P]<=0,M[$]<=0),L.every(H=>H)){_=O,w=!1;break}S.set(O,L)}if(w){const E=u?3:1;for(let O=E;O>0;O--){const T=v.find(D=>{const j=S.get(D);if(j)return j.slice(0,O).every(A=>A)});if(T){_=T;break}}}e.placement!==_&&(e.modifiersData[n]._skip=!0,e.placement=_,e.reset=!0)}const w0e={name:"flip",enabled:!0,phase:"main",fn:S0e,requiresIfExists:["offset"],data:{_skip:!1}};function C0e(e){return e==="x"?"y":"x"}function oh(e,t,n){return Math.max(e,Math.min(t,n))}function E0e({state:e,options:t,name:n}){const{mainAxis:r=!0,altAxis:i=!1,boundary:o,rootBoundary:a,altBoundary:s,padding:l,tether:c=!0,tetherOffset:u=0}=t,d=jc(e,{boundary:o,rootBoundary:a,padding:l,altBoundary:s}),f=ri(e.placement),h=Dc(e.placement),g=!h,p=Vy(f),v=C0e(p),b=e.modifiersData.popperOffsets,x=e.rects.reference,S=e.rects.popper,w=typeof u=="function"?u(Object.assign(Object.assign({},e.rects),{placement:e.placement})):u,_={x:0,y:0};if(b){if(r){const E=p==="y"?hr:mr,O=p==="y"?$r:Ir,T=p==="y"?"height":"width",D=b[p],j=b[p]+d[E],A=b[p]-d[O],M=c?-S[T]/2:0,P=h===Ns?x[T]:S[T],$=h===Ns?-S[T]:-x[T],L=e.elements.arrow,H=c&&L?By(L):{width:0,height:0},q=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:VT(),U=q[E],z=q[O],N=oh(0,x[T],H[T]),R=g?x[T]/2-M-N-U-w:P-N-U-w,J=g?-x[T]/2+M+N+z+w:$+N+z+w,ee=e.elements.arrow&&kc(e.elements.arrow),X=ee?p==="y"?ee.clientTop||0:ee.clientLeft||0:0,Q=e.modifiersData.offset?e.modifiersData.offset[e.placement][p]:0,ie=b[p]+R-Q-X,ue=b[p]+J-Q,de=oh(c?Math.min(j,ie):j,D,c?Math.max(A,ue):A);b[p]=de,_[p]=de-D}if(i){const E=p==="x"?hr:mr,O=p==="x"?$r:Ir,T=b[v],D=T+d[E],j=T-d[O],A=oh(D,T,j);b[v]=A,_[v]=A-T}e.modifiersData[n]=_}}const O0e={name:"preventOverflow",enabled:!0,phase:"main",fn:E0e,requiresIfExists:["offset"]};function k0e({state:e,name:t}){const n=e.elements.arrow,r=e.modifiersData.popperOffsets,i=ri(e.placement),o=Vy(i),s=[mr,Ir].indexOf(i)>=0?"height":"width";if(!n||!r)return;const l=e.modifiersData[`${t}#persistent`].padding,c=By(n),u=o==="y"?hr:mr,d=o==="y"?$r:Ir,f=e.rects.reference[s]+e.rects.reference[o]-r[o]-e.rects.popper[s],h=r[o]-e.rects.reference[o],g=kc(n),p=g?o==="y"?g.clientHeight||0:g.clientWidth||0:0,v=f/2-h/2,b=l[u],x=p-c[s]-l[d],S=p/2-c[s]/2+v,w=oh(b,S,x),_=o;e.modifiersData[t]={[_]:w,centerOffset:w-S}}function T0e({state:e,options:t,name:n}){let{element:r="[data-popper-arrow]",padding:i=0}=t;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||WT(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[`${n}#persistent`]={padding:UT(typeof i!="number"?i:HT(i,Tc))}))}const A0e={name:"arrow",enabled:!0,phase:"main",fn:k0e,effect:T0e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ZT(e,t,n={x:0,y:0}){return{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function XT(e){return[hr,Ir,$r,mr].some(t=>e[t]>=0)}function D0e({state:e,name:t}){const n=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,o=jc(e,{elementContext:"reference"}),a=jc(e,{altBoundary:!0}),s=ZT(o,n),l=ZT(a,r,i),c=XT(s),u=XT(l);e.modifiersData[t]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:u},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-reference-hidden":c,"data-popper-escaped":u})}const j0e=r0e({defaultModifiers:[o0e,s0e,d0e,m0e,y0e,w0e,O0e,A0e,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:D0e}]}),JT=jT?k.useLayoutEffect:k.useEffect,P0e=(e,t)=>JSON.stringify(e)===JSON.stringify(t),QT=e=>e.reduce((t,[n,r])=>(t[n]=r,t),{}),M0e=[],$0e=(e,t,n={})=>{const r=k.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||M0e},[o,a]=k.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"}},attributes:{}}),s=k.useMemo(()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const d=Object.keys(u.elements);a({styles:QT(d.map(f=>[f,u.styles[f]||{}])),attributes:QT(d.map(f=>[f,u.attributes[f]]))})},requires:["computeStyles"]}),[]),l=k.useMemo(()=>{const u={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[...i.modifiers,s,{name:"applyStyles",enabled:!1}]};return P0e(r.current,u)?r.current||u:(r.current=u,u)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,s]),c=k.useRef();return JT(()=>{c&&c.current&&c.current.setOptions(l)},[l]),JT(()=>{if(e==null||t==null)return;const d=(n.createPopper||j0e)(e,t,l);return c.current=d,()=>{d.destroy(),c.current=null}},[e,t,n.createPopper]),{state:c.current?c.current.state:null,styles:o.styles,attributes:o.attributes,update:c.current?c.current.update:null,forceUpdate:c.current?c.current.forceUpdate:null}},I0e={left:"right",right:"left",bottom:"top",top:"bottom","top-start":"bottom-end","top-end":"bottom-start","bottom-start":"top-end","bottom-end":"top-start","left-start":"right-end","left-end":"right-start","right-start":"left-end","right-end":"left-start"},L0e=e=>e.replace(/left|right|bottom|top|top-start|top-end|bottom-start|bottom-end|right-start|right-end|left-start|left-end/g,t=>I0e[t]),F0e=e=>`opacity ${e}ms cubic-bezier(.54, 1.5, .38, 1.11)`,Uy=({trigger:e,popper:t,direction:n="down",position:r="start",placement:i,width:o,minWidth:a="trigger",maxWidth:s,appendTo:l="inline",zIndex:c=9999,isVisible:u=!0,positionModifiers:d,distance:f=0,onMouseEnter:h,onMouseLeave:g,onFocus:p,onBlur:v,onDocumentClick:b,onTriggerClick:x,onTriggerEnter:S,onPopperClick:w,onPopperMouseEnter:_,onPopperMouseLeave:E,onDocumentKeyDown:O,enableFlip:T=!0,flipBehavior:D="flip",triggerRef:j,popperRef:A,animationDuration:M=0,entryDelay:P=0,exitDelay:$=0,onHidden:L=()=>{},onHide:H=()=>{},onMount:q=()=>{},onShow:U=()=>{},onShown:z=()=>{},preventOverflow:N=!1})=>{var R;const[J,ee]=k.useState(null),[X,Q]=k.useState(null),[ie,ue]=k.useState(null),[de,K]=k.useState(null),[ne,pe]=k.useState(!1),[B,ke]=k.useState(0),[Ee,He]=k.useState(u),Ie=k.useRef(null),at=k.useRef(null),I=k.useRef(null),V=k.useRef(),G=X||J,fe=u||Ee,he=(R=(j==null?void 0:j.current)||J)===null||R===void 0?void 0:R.parentElement,oe=Ime(he),Y=k.useMemo(()=>{const we={left:"left",right:"right",center:"center"};return{ltr:Object.assign({start:"left",end:"right"},we),rtl:Object.assign({start:"right",end:"left"},we)}[oe][r]},[r,oe]),le=k.useCallback(we=>b(we,G,ie),[fe,J,X,ie,b]);k.useEffect(()=>{pe(!0),q()},[]),k.useEffect(()=>()=>{eh([Ie,I,at])},[]),k.useEffect(()=>{j&&(j.current?Q(j.current):typeof j=="function"&&Q(j()))},[j,e]),k.useEffect(()=>{A&&(A.current?ue(A.current):typeof A=="function"&&ue(A()))},[fe,A]),k.useEffect(()=>{const we=new MutationObserver(()=>{We&&We()});return ie&&we.observe(ie,{attributes:!0,childList:!0,subtree:!0}),()=>{we.disconnect()}},[ie]);const be=(we,ot,ln,Ut=!1)=>{we&&ot&&ot.addEventListener(ln,we,{capture:Ut})},xe=(we,ot,ln,Ut=!1)=>{we&&ot&&ot.removeEventListener(ln,we,{capture:Ut})};k.useEffect(()=>(be(h,G,"mouseenter"),be(g,G,"mouseleave"),be(p,G,"focus"),be(v,G,"blur"),be(x,G,"click"),be(S,G,"keydown"),be(w,ie,"click"),be(_,ie,"mouseenter"),be(E,ie,"mouseleave"),b&&be(le,document,"click",!0),be(O,document,"keydown",!0),()=>{xe(h,G,"mouseenter"),xe(g,G,"mouseleave"),xe(p,G,"focus"),xe(v,G,"blur"),xe(x,G,"click"),xe(S,G,"keydown"),xe(w,ie,"click"),xe(_,ie,"mouseenter"),xe(E,ie,"mouseleave"),b&&xe(le,document,"click",!0),xe(O,document,"keydown",!0)}),[J,ie,h,g,p,v,x,S,w,_,E,b,O,X]);const Ne=()=>{if(i)return i;let we=n==="up"?"top":"bottom";return Y!=="center"&&(we=`${we}-${Y==="right"?"end":"start"}`),we},Re=k.useMemo(Ne,[n,Y,i]),nt=k.useMemo(()=>L0e(Ne()),[n,Y,i]),wt=k.useMemo(()=>({name:"widthMods",enabled:o!==void 0||a!==void 0||s!==void 0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:we})=>{const ot=we.rects.reference.width;o&&(we.styles.popper.width=o==="trigger"?`${ot}px`:o),a&&(we.styles.popper.minWidth=a==="trigger"?`${ot}px`:a),s&&(we.styles.popper.maxWidth=s==="trigger"?`${ot}px`:s)},effect:({state:we})=>{const ot=we.elements.reference.offsetWidth;return o&&(we.elements.popper.style.width=o==="trigger"?`${ot}px`:o),a&&(we.elements.popper.style.minWidth=a==="trigger"?`${ot}px`:a),s&&(we.elements.popper.style.maxWidth=s==="trigger"?`${ot}px`:s),()=>{}}}),[o,a,s]),{styles:jt,attributes:Ct,update:We,forceUpdate:Pe}=$0e(G,ie,{placement:Re,modifiers:[{name:"offset",options:{offset:[0,f]}},{name:"preventOverflow",enabled:N},{name:"hide",enabled:!0},{name:"flip",enabled:Re.startsWith("auto")||T,options:{fallbackPlacements:D==="flip"?[nt]:D}},wt]});k.useEffect(()=>{var we,ot,ln,Ut,wo,Co,Ri;const Vi=((Ut=(ln=(ot=(we=t==null?void 0:t.props)===null||we===void 0?void 0:we.children)===null||ot===void 0?void 0:ot[1])===null||ln===void 0?void 0:ln.props)===null||Ut===void 0?void 0:Ut.children)||((Ri=(Co=(wo=t==null?void 0:t.props)===null||wo===void 0?void 0:wo.children)===null||Co===void 0?void 0:Co.props)===null||Ri===void 0?void 0:Ri.children);K(Vi),Vi&&de&&Vi!==de&&Pe&&Pe()},[t]),k.useEffect(()=>{V.current<$&&(eh([Ie,I]),I.current=setTimeout(()=>{Ie.current=setTimeout(()=>{He(!1)},M)},$)),V.current=$},[$]);const mt=()=>{U(),eh([Ie,I]),at.current=setTimeout(()=>{He(!0),ke(1),z()},P)},Rt=()=>{H(),eh([at]),I.current=setTimeout(()=>{ke(0),Ie.current=setTimeout(()=>{He(!1),L()},M)},$)};k.useEffect(()=>{u?mt():Rt()},[u]);const Et=()=>{if(Ct&&Ct.popper&&Ct.popper["data-popper-placement"]){const we=Ct.popper["data-popper-placement"];return d[we]}return d.top},Nn=Object.assign({className:re(t.props&&t.props.className,d&&Et()),style:Object.assign(Object.assign(Object.assign({},t.props&&t.props.style||{}),jt.popper),{zIndex:c,opacity:B,transition:F0e(M)})},Ct.popper),Vt=()=>{const we=k.cloneElement(t,Nn);return A?we:k.createElement("div",{style:{display:"contents"},ref:ot=>ue(ot==null?void 0:ot.firstElementChild)},we)},Bn=()=>{if(l==="inline")return Vt();{const we=typeof l=="function"?l():l;return lv.createPortal(Vt(),we)}};return k.createElement(k.Fragment,null,!j&&e&&k.isValidElement(e)&&k.createElement("div",{style:{display:"contents"},ref:we=>ee(we==null?void 0:we.firstElementChild)},e),j&&e&&k.isValidElement(e)&&e,ne&&fe&&Bn())};Uy.displayName="Popper";const N0e=(e,t,n)=>{let r;if(jT){const{ResizeObserver:i}=window;if(e&&i){const o=new i(a=>{window.requestAnimationFrame(()=>{Array.isArray(a)&&a.length>0})});o.observe(e),r=()=>o.unobserve(e)}else window.addEventListener("resize",t),r=()=>window.removeEventListener("resize",t)}return()=>{r&&r()}},gn={modifiers:{top:"pf-m-top",topLeft:"pf-m-top-left",topRight:"pf-m-top-right",bottom:"pf-m-bottom",bottomLeft:"pf-m-bottom-left",bottomRight:"pf-m-bottom-right",left:"pf-m-left",leftTop:"pf-m-left-top",leftBottom:"pf-m-left-bottom",right:"pf-m-right",rightTop:"pf-m-right-top",rightBottom:"pf-m-right-bottom",textAlignLeft:"pf-m-text-align-left"},themeDark:"pf-v5-theme-dark",tooltip:"pf-v5-c-tooltip",tooltipArrow:"pf-v5-c-tooltip__arrow",tooltipContent:"pf-v5-c-tooltip__content"},e3=e=>{var{className:t,children:n,isLeftAligned:r}=e,i=Ae(e,["className","children","isLeftAligned"]);return k.createElement("div",Object.assign({className:re(gn.tooltipContent,r&&gn.modifiers.textAlignLeft,t)},i),n)};e3.displayName="TooltipContent";const t3=e=>{var{className:t}=e,n=Ae(e,["className"]);return k.createElement("div",Object.assign({className:re(gn.tooltipArrow,t)},n))};t3.displayName="TooltipArrow";const n3={name:"--pf-v5-c-tooltip--MaxWidth",value:"18.75rem",var:"var(--pf-v5-c-tooltip--MaxWidth)"};var r3;(function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right",e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end"})(r3||(r3={}));let B0e=1;const ah=e=>{var{content:t,position:n="top",trigger:r="mouseenter focus",isVisible:i=!1,isContentLeftAligned:o=!1,enableFlip:a=!0,className:s="",entryDelay:l=300,exitDelay:c=300,appendTo:u=()=>document.body,zIndex:d=9999,minWidth:f,maxWidth:h=n3.value,distance:g=15,aria:p="describedby",flipBehavior:v=["top","right","bottom","left","top","right","bottom"],id:b=`pf-tooltip-${B0e++}`,children:x,animationDuration:S=300,triggerRef:w,"aria-live":_=w?"polite":"off",onTooltipHidden:E=()=>{}}=e,O=Ae(e,["content","position","trigger","isVisible","isContentLeftAligned","enableFlip","className","entryDelay","exitDelay","appendTo","zIndex","minWidth","maxWidth","distance","aria","flipBehavior","id","children","animationDuration","triggerRef","aria-live","onTooltipHidden"]);const T=r.includes("mouseenter"),D=r.includes("focus"),j=r.includes("click"),A=r==="manual",[M,P]=k.useState(!1),$=k.createRef(),L=X=>{A||X.key===Ye.Escape&&M&&U()},H=X=>{X.key===Ye.Enter&&(M?U():q())};k.useEffect(()=>{i?q():U()},[i]);const q=()=>{P(!0)},U=()=>{P(!1)},z={top:gn.modifiers.top,bottom:gn.modifiers.bottom,left:gn.modifiers.left,right:gn.modifiers.right,"top-start":gn.modifiers.topLeft,"top-end":gn.modifiers.topRight,"bottom-start":gn.modifiers.bottomLeft,"bottom-end":gn.modifiers.bottomRight,"left-start":gn.modifiers.leftTop,"left-end":gn.modifiers.leftBottom,"right-start":gn.modifiers.rightTop,"right-end":gn.modifiers.rightBottom},N=h!==n3.value,R=k.createElement("div",Object.assign({"aria-live":_,className:re(gn.tooltip,s),role:"tooltip",id:b,style:{maxWidth:N?h:null},ref:$},O),k.createElement(t3,null),k.createElement(e3,{isLeftAligned:o},t)),J=(X,Q)=>{M?U():X.target===Q&&q()},ee=()=>p==="describedby"&&x&&x.props&&!x.props["aria-describedby"]?k.cloneElement(x,{"aria-describedby":b}):p==="labelledby"&&x.props&&!x.props["aria-labelledby"]?k.cloneElement(x,{"aria-labelledby":b}):x;return k.createElement(Uy,{trigger:p!=="none"&&M?ee():x,triggerRef:w,popper:R,popperRef:$,minWidth:f!==void 0?f:"revert",appendTo:u,isVisible:M,positionModifiers:z,distance:g,placement:n,onMouseEnter:T&&q,onMouseLeave:T&&U,onPopperMouseEnter:T&&q,onPopperMouseLeave:T&&U,onFocus:D&&q,onBlur:D&&U,onDocumentClick:j&&J,onDocumentKeyDown:A?null:L,onTriggerEnter:A?null:H,enableFlip:a,zIndex:d,flipBehavior:v,animationDuration:S,entryDelay:l,exitDelay:c,onHidden:E})};ah.displayName="Tooltip";class Hy extends k.Component{constructor(){super(...arguments),this.ref=k.createRef(),this.additionalRef=k.createRef(),this.getInnerNode=t=>t&&t.childNodes&&t.childNodes.length?t.childNodes[0]:t,this.onKeyDown=t=>{var n,r,i,o,a,s,l,c,u,d;const f=t.target===this.ref.current?0:1;this.props.customChild||t.preventDefault(),t.key==="ArrowUp"?((r=(n=this.props.context)===null||n===void 0?void 0:n.keyHandler)===null||r===void 0||r.call(n,this.props.index,f,xc.UP),t.stopPropagation()):t.key==="ArrowDown"?((o=(i=this.props.context)===null||i===void 0?void 0:i.keyHandler)===null||o===void 0||o.call(i,this.props.index,f,xc.DOWN),t.stopPropagation()):t.key==="ArrowRight"?((s=(a=this.props.context)===null||a===void 0?void 0:a.keyHandler)===null||s===void 0||s.call(a,this.props.index,f,xc.RIGHT),t.stopPropagation()):t.key==="ArrowLeft"?((c=(l=this.props.context)===null||l===void 0?void 0:l.keyHandler)===null||c===void 0||c.call(l,this.props.index,f,xc.LEFT),t.stopPropagation()):(t.key==="Enter"||t.key===" ")&&(t.target.click(),this.props.enterTriggersArrowDown&&((d=(u=this.props.context)===null||u===void 0?void 0:u.keyHandler)===null||d===void 0||d.call(u,this.props.index,f,xc.DOWN)))},this.componentRef=t=>{this.ref.current=t;const{component:n}=this.props,r=n.ref;r&&(typeof r=="function"?r(t):r.current=t)}}componentDidMount(){var t;const{context:n,index:r,isDisabled:i,role:o,customChild:a,autoFocus:s}=this.props,l=a?this.getInnerNode(this.ref.current):this.ref.current;(t=n==null?void 0:n.sendRef)===null||t===void 0||t.call(n,r,[l,a?l:this.additionalRef.current],i,o==="separator"),s&&setTimeout(()=>l.focus())}componentDidUpdate(){var t;const{context:n,index:r,isDisabled:i,role:o,customChild:a}=this.props,s=a?this.getInnerNode(this.ref.current):this.ref.current;(t=n==null?void 0:n.sendRef)===null||t===void 0||t.call(n,r,[s,a?s:this.additionalRef.current],i,o==="separator")}extendAdditionalChildRef(){const{additionalChild:t}=this.props;return k.cloneElement(t,{ref:this.additionalRef})}render(){const t=this.props,{className:n,children:r,context:i,onClick:o,component:a,role:s,isDisabled:l,isAriaDisabled:c,isPlainText:u,index:d,href:f,tooltip:h,tooltipProps:g,id:p,componentID:v,listItemClassName:b,additionalChild:x,customChild:S,enterTriggersArrowDown:w,icon:_,autoFocus:E,styleChildren:O,description:T,inoperableEvents:D}=t,j=Ae(t,["className","children","context","onClick","component","role","isDisabled","isAriaDisabled","isPlainText","index","href","tooltip","tooltipProps","id","componentID","listItemClassName","additionalChild","customChild","enterTriggersArrowDown","icon","autoFocus","styleChildren","description","inoperableEvents"]);let A=re(_&&da.modifiers.icon,c&&da.modifiers.ariaDisabled,n);a==="a"?j["aria-disabled"]=l||c:a==="button"&&(j["aria-disabled"]=l||c,j.type=j.type||"button");const M=L=>h?k.createElement(ah,Object.assign({content:h},g),L):L,P=L=>k.cloneElement(L,Object.assign(Object.assign({},O&&{className:re(L.props.className,A)}),this.props.role!=="separator"&&{role:s,ref:this.componentRef})),$=L=>{const H=L,q=T?k.createElement(k.Fragment,null,k.createElement("div",{className:da.dropdownMenuItemMain},_&&k.createElement("span",{className:re(da.dropdownMenuItemIcon)},_),r),k.createElement("div",{className:da.dropdownMenuItemDescription},T)):k.createElement(k.Fragment,null,_&&k.createElement("span",{className:re(da.dropdownMenuItemIcon)},_),r);return k.createElement(H,Object.assign({},j,l||c?$me(D):null,{href:f,ref:this.ref,className:A,id:v,role:s}),q)};return k.createElement(kme.Consumer,null,({onSelect:L,itemClass:H,disabledClass:q,plainTextClass:U})=>(this.props.role!=="separator"&&(A=re(A,l&&q,u&&U,H,T&&da.modifiers.description)),S?k.cloneElement(S,{ref:this.ref,onKeyDown:this.onKeyDown}):k.createElement("li",Object.assign({},b&&{className:b},{role:"none",onKeyDown:this.onKeyDown,onClick:z=>{!l&&!c&&(o==null||o(z),L==null||L(z))},id:p}),M(k.isValidElement(a)?P(a):$(a)),x&&this.extendAdditionalChildRef())))}}Hy.displayName="InternalDropdownItem",Hy.defaultProps={className:"",component:"a",role:"none",isDisabled:!1,isPlainText:!1,tooltipProps:{},onClick:e=>{},index:-1,context:{keyHandler:()=>{},sendRef:()=>{}},enterTriggersArrowDown:!1,icon:null,styleChildren:!0,description:null,inoperableEvents:["onClick","onKeyPress"]};const Gy={divider:"pf-v5-c-divider",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",vertical:"pf-m-vertical",insetNone:"pf-m-inset-none",insetXs:"pf-m-inset-xs",insetSm:"pf-m-inset-sm",insetMd:"pf-m-inset-md",insetLg:"pf-m-inset-lg",insetXl:"pf-m-inset-xl",inset_2xl:"pf-m-inset-2xl",inset_3xl:"pf-m-inset-3xl",horizontalOnSm:"pf-m-horizontal-on-sm",verticalOnSm:"pf-m-vertical-on-sm",insetNoneOnSm:"pf-m-inset-none-on-sm",insetXsOnSm:"pf-m-inset-xs-on-sm",insetSmOnSm:"pf-m-inset-sm-on-sm",insetMdOnSm:"pf-m-inset-md-on-sm",insetLgOnSm:"pf-m-inset-lg-on-sm",insetXlOnSm:"pf-m-inset-xl-on-sm",inset_2xlOnSm:"pf-m-inset-2xl-on-sm",inset_3xlOnSm:"pf-m-inset-3xl-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",verticalOnMd:"pf-m-vertical-on-md",insetNoneOnMd:"pf-m-inset-none-on-md",insetXsOnMd:"pf-m-inset-xs-on-md",insetSmOnMd:"pf-m-inset-sm-on-md",insetMdOnMd:"pf-m-inset-md-on-md",insetLgOnMd:"pf-m-inset-lg-on-md",insetXlOnMd:"pf-m-inset-xl-on-md",inset_2xlOnMd:"pf-m-inset-2xl-on-md",inset_3xlOnMd:"pf-m-inset-3xl-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",verticalOnLg:"pf-m-vertical-on-lg",insetNoneOnLg:"pf-m-inset-none-on-lg",insetXsOnLg:"pf-m-inset-xs-on-lg",insetSmOnLg:"pf-m-inset-sm-on-lg",insetMdOnLg:"pf-m-inset-md-on-lg",insetLgOnLg:"pf-m-inset-lg-on-lg",insetXlOnLg:"pf-m-inset-xl-on-lg",inset_2xlOnLg:"pf-m-inset-2xl-on-lg",inset_3xlOnLg:"pf-m-inset-3xl-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",verticalOnXl:"pf-m-vertical-on-xl",insetNoneOnXl:"pf-m-inset-none-on-xl",insetXsOnXl:"pf-m-inset-xs-on-xl",insetSmOnXl:"pf-m-inset-sm-on-xl",insetMdOnXl:"pf-m-inset-md-on-xl",insetLgOnXl:"pf-m-inset-lg-on-xl",insetXlOnXl:"pf-m-inset-xl-on-xl",inset_2xlOnXl:"pf-m-inset-2xl-on-xl",inset_3xlOnXl:"pf-m-inset-3xl-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",verticalOn_2xl:"pf-m-vertical-on-2xl",insetNoneOn_2xl:"pf-m-inset-none-on-2xl",insetXsOn_2xl:"pf-m-inset-xs-on-2xl",insetSmOn_2xl:"pf-m-inset-sm-on-2xl",insetMdOn_2xl:"pf-m-inset-md-on-2xl",insetLgOn_2xl:"pf-m-inset-lg-on-2xl",insetXlOn_2xl:"pf-m-inset-xl-on-2xl",inset_2xlOn_2xl:"pf-m-inset-2xl-on-2xl",inset_3xlOn_2xl:"pf-m-inset-3xl-on-2xl"}};var sh;(function(e){e.hr="hr",e.li="li",e.div="div"})(sh||(sh={}));const gr=e=>{var{className:t,component:n=sh.hr,inset:r,orientation:i}=e,o=Ae(e,["className","component","inset","orientation"]);const a=n;return k.createElement(a,Object.assign({className:re(Gy.divider,DT(r,Gy),DT(i,Gy),t)},n!=="hr"&&{role:"separator"},o))};gr.displayName="Divider";const qy=e=>{var{className:t="",ref:n,ouiaId:r,ouiaSafe:i}=e,o=Ae(e,["className","ref","ouiaId","ouiaSafe"]);const a=$T(qy.displayName,r,i);return k.createElement(Tme.Consumer,null,s=>k.createElement(Hy,Object.assign({},o,{context:s,component:k.createElement(gr,{component:sh.div}),className:t,role:"separator"},a)))};qy.displayName="DropdownSeparator";const i3=_o({name:"CaretDownIcon",height:512,width:320,svgPath:"M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z",yOffset:0,xOffset:0}),Pc={badge:"pf-v5-c-badge",modifiers:{read:"pf-m-read",unread:"pf-m-unread"},themeDark:"pf-v5-theme-dark"},o3=e=>{var{isRead:t=!1,className:n="",children:r="",screenReaderText:i}=e,o=Ae(e,["isRead","className","children","screenReaderText"]);return k.createElement("span",Object.assign({},o,{className:re(Pc.badge,t?Pc.modifiers.read:Pc.modifiers.unread,n)}),r,i&&k.createElement("span",{className:"pf-v5-screen-reader"},i))};o3.displayName="Badge";const lh={modifiers:{inline:"pf-m-inline",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl"},spinner:"pf-v5-c-spinner",spinnerPath:"pf-v5-c-spinner__path"},W0e={name:"--pf-v5-c-spinner--diameter",value:"3.375rem",var:"var(--pf-v5-c-spinner--diameter)"};var Yy;(function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"})(Yy||(Yy={}));const Ky=e=>{var{className:t="",size:n="xl","aria-valuetext":r="Loading...",diameter:i,isInline:o=!1,"aria-label":a,"aria-labelledBy":s}=e,l=Ae(e,["className","size","aria-valuetext","diameter","isInline","aria-label","aria-labelledBy"]);return k.createElement("svg",Object.assign({className:re(lh.spinner,o?lh.modifiers.inline:lh.modifiers[n],t),role:"progressbar","aria-valuetext":r,viewBox:"0 0 100 100"},i&&{style:{[W0e.name]:i}},a&&{"aria-label":a},s&&{"aria-labelledBy":s},!a&&!s&&{"aria-label":"Contents"},l),k.createElement("circle",{className:lh.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"}))};Ky.displayName="Spinner";const a3=e=>{var t=Ae(e,["children"]);return k.createElement(qy,Object.assign({},t))};a3.displayName="ApplicationLauncherSeparator";const z0e=_o({name:"StarIcon",height:512,width:576,svgPath:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z",yOffset:0,xOffset:0}),R0e=(e,t,n,r)=>{if(t){const i=[];return e.forEach(o=>{if(n.length>0)return o.props.children&&o.props.children.filter(a=>n.includes(a.props.id)).map(a=>i.push(k.cloneElement(a,{isFavorite:!0,id:`favorite-${a.props.id}`})))}),i}return e.filter(i=>n.includes(i.props.id)).map(i=>k.cloneElement(i,{isFavorite:!0,enterTriggersArrowDown:r}))},V0e=(e,t,n)=>t?e.map(r=>k.cloneElement(r,{children:k.Children.map(r.props.children,i=>i.type===a3||i.type===gr?i:k.cloneElement(i,{isFavorite:n.some(o=>o===i.props.id||`favorite-${o}`===i.props.id)}))})):e.map(r=>k.cloneElement(r,{isFavorite:n.some(i=>i===r.props.id)})),$t={badge:"pf-v5-c-badge",button:"pf-v5-c-button",buttonCount:"pf-v5-c-button__count",buttonIcon:"pf-v5-c-button__icon",buttonProgress:"pf-v5-c-button__progress",modifiers:{active:"pf-m-active",block:"pf-m-block",small:"pf-m-small",primary:"pf-m-primary",displayLg:"pf-m-display-lg",secondary:"pf-m-secondary",tertiary:"pf-m-tertiary",link:"pf-m-link",unread:"pf-m-unread",inline:"pf-m-inline",danger:"pf-m-danger",warning:"pf-m-warning",control:"pf-m-control",expanded:"pf-m-expanded",plain:"pf-m-plain",noPadding:"pf-m-no-padding",disabled:"pf-m-disabled",ariaDisabled:"pf-m-aria-disabled",progress:"pf-m-progress",inProgress:"pf-m-in-progress",start:"pf-m-start",end:"pf-m-end"},spinner:"pf-v5-c-spinner",themeDark:"pf-v5-theme-dark"};var ii;(function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.danger="danger",e.warning="warning",e.link="link",e.plain="plain",e.control="control"})(ii||(ii={}));var Zy;(function(e){e.button="button",e.submit="submit",e.reset="reset"})(Zy||(Zy={}));var Mc;(function(e){e.default="default",e.sm="sm",e.lg="lg"})(Mc||(Mc={}));const U0e=e=>{var{children:t=null,className:n="",component:r="button",isActive:i=!1,isBlock:o=!1,isDisabled:a=!1,isAriaDisabled:s=!1,isLoading:l=null,isDanger:c=!1,spinnerAriaValueText:u,spinnerAriaLabelledBy:d,spinnerAriaLabel:f,size:h=Mc.default,inoperableEvents:g=["onClick","onKeyPress"],isInline:p=!1,type:v=Zy.button,variant:b=ii.primary,iconPosition:x="start","aria-label":S=null,icon:w=null,ouiaId:_,ouiaSafe:E=!0,tabIndex:O=null,innerRef:T,countOptions:D}=e,j=Ae(e,["children","className","component","isActive","isBlock","isDisabled","isAriaDisabled","isLoading","isDanger","spinnerAriaValueText","spinnerAriaLabelledBy","spinnerAriaLabel","size","inoperableEvents","isInline","type","variant","iconPosition","aria-label","icon","ouiaId","ouiaSafe","tabIndex","innerRef","countOptions"]);const A=$T(ch.displayName,_,E,b),M=r,P=M==="button",$=p&&M==="span",L=g.reduce((q,U)=>Object.assign(Object.assign({},q),{[U]:z=>{z.preventDefault()}}),{}),H=()=>{if(a)return P?null:-1;if(s)return null;if($)return 0};return k.createElement(M,Object.assign({},j,s?L:null,{"aria-disabled":a||s,"aria-label":S,className:re($t.button,$t.modifiers[b],o&&$t.modifiers.block,a&&$t.modifiers.disabled,s&&$t.modifiers.ariaDisabled,i&&$t.modifiers.active,p&&b===ii.link&&$t.modifiers.inline,c&&(b===ii.secondary||b===ii.link)&&$t.modifiers.danger,l!==null&&b!==ii.plain&&$t.modifiers.progress,l&&$t.modifiers.inProgress,h===Mc.sm&&$t.modifiers.small,h===Mc.lg&&$t.modifiers.displayLg,n),disabled:P?a:null,tabIndex:O!==null?O:H(),type:P||$?v:null,role:$?"button":null,ref:T},A),l&&k.createElement("span",{className:re($t.buttonProgress)},k.createElement(Ky,{size:Yy.md,isInline:p,"aria-valuetext":u,"aria-label":f,"aria-labelledby":d})),b===ii.plain&&t===null&&w?w:null,b!==ii.plain&&w&&(x==="start"||x==="left")&&k.createElement("span",{className:re($t.buttonIcon,$t.modifiers.start)},w),t,b!==ii.plain&&w&&(x==="end"||x==="right")&&k.createElement("span",{className:re($t.buttonIcon,$t.modifiers.end)},w),D&&k.createElement("span",{className:re($t.buttonCount,D.className)},k.createElement(o3,{isRead:D.isRead},D.count)))},ch=k.forwardRef((e,t)=>k.createElement(U0e,Object.assign({innerRef:t},e)));ch.displayName="Button";const H0e=_o({name:"TimesIcon",height:512,width:352,svgPath:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",yOffset:0,xOffset:0}),G0e={dirRtl:"pf-v5-m-dir-rtl",form:"pf-v5-c-form",formActions:"pf-v5-c-form__actions",formFieldGroup:"pf-v5-c-form__field-group",formFieldGroupBody:"pf-v5-c-form__field-group-body",formFieldGroupHeader:"pf-v5-c-form__field-group-header",formFieldGroupHeaderActions:"pf-v5-c-form__field-group-header-actions",formFieldGroupHeaderDescription:"pf-v5-c-form__field-group-header-description",formFieldGroupHeaderMain:"pf-v5-c-form__field-group-header-main",formFieldGroupHeaderTitle:"pf-v5-c-form__field-group-header-title",formFieldGroupHeaderTitleText:"pf-v5-c-form__field-group-header-title-text",formFieldGroupToggle:"pf-v5-c-form__field-group-toggle",formFieldGroupToggleButton:"pf-v5-c-form__field-group-toggle-button",formFieldGroupToggleIcon:"pf-v5-c-form__field-group-toggle-icon",formFieldset:"pf-v5-c-form__fieldset",formGroup:"pf-v5-c-form__group",formGroupControl:"pf-v5-c-form__group-control",formGroupLabel:"pf-v5-c-form__group-label",formGroupLabelHelp:"pf-v5-c-form__group-label-help",formGroupLabelInfo:"pf-v5-c-form__group-label-info",formGroupLabelMain:"pf-v5-c-form__group-label-main",formHelperText:"pf-v5-c-form__helper-text",formHelperTextIcon:"pf-v5-c-form__helper-text-icon",formLabel:"pf-v5-c-form__label",formLabelRequired:"pf-v5-c-form__label-required",formLabelText:"pf-v5-c-form__label-text",formSection:"pf-v5-c-form__section",formSectionTitle:"pf-v5-c-form__section-title",modifiers:{horizontal:"pf-m-horizontal",alignRight:"pf-m-align-right",noPaddingTop:"pf-m-no-padding-top",info:"pf-m-info",horizontalOnXs:"pf-m-horizontal-on-xs",horizontalOnSm:"pf-m-horizontal-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",limitWidth:"pf-m-limit-width",action:"pf-m-action",disabled:"pf-m-disabled",inline:"pf-m-inline",stack:"pf-m-stack",error:"pf-m-error",success:"pf-m-success",warning:"pf-m-warning",inactive:"pf-m-inactive",hidden:"pf-m-hidden",expanded:"pf-m-expanded"},themeDark:"pf-v5-theme-dark"},Lr={formControl:"pf-v5-c-form-control",formControlIcon:"pf-v5-c-form-control__icon",formControlToggleIcon:"pf-v5-c-form-control__toggle-icon",formControlUtilities:"pf-v5-c-form-control__utilities",modifiers:{readonly:"pf-m-readonly",success:"pf-m-success",warning:"pf-m-warning",error:"pf-m-error",plain:"pf-m-plain",expanded:"pf-m-expanded",disabled:"pf-m-disabled",icon:"pf-m-icon",placeholder:"pf-m-placeholder",resizeVertical:"pf-m-resize-vertical",resizeHorizontal:"pf-m-resize-horizontal",resizeBoth:"pf-m-resize-both",status:"pf-m-status"},themeDark:"pf-v5-theme-dark"},s3=_o({name:"CheckCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z",yOffset:0,xOffset:0}),l3=_o({name:"ExclamationCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0}),c3=_o({name:"ExclamationTriangleIcon",height:512,width:576,svgPath:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0}),q0e={success:s3,error:l3,warning:c3},u3=e=>{var{status:t,customIcon:n,className:r}=e,i=Ae(e,["status","customIcon","className"]);const o=t&&q0e[t];return k.createElement("span",Object.assign({className:re(Lr.formControlIcon,t&&Lr.modifiers.status,r)},i),n||k.createElement(o,null))};var Xy;(function(e){e.text="text",e.date="date",e.datetimeLocal="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url"})(Xy||(Xy={}));var d3;(function(e){e.default="default",e.plain="plain"})(d3||(d3={}));class $c extends k.Component{constructor(t){super(t),this.inputRef=k.createRef(),this.observer=()=>{},this.handleChange=n=>{this.props.onChange&&this.props.onChange(n,n.currentTarget.value)},this.handleResize=()=>{const n=this.props.innerRef||this.inputRef;n&&n.current&&Mme(n.current,String(this.props.value))},this.restoreText=()=>{const n=this.props.innerRef||this.inputRef;n.current.value=String(this.props.value),n.current.scrollLeft=n.current.scrollWidth},this.onFocus=n=>{const{isLeftTruncated:r,isStartTruncated:i,onFocus:o}=this.props;(r||i)&&this.restoreText(),o&&o(n)},this.onBlur=n=>{const{isLeftTruncated:r,isStartTruncated:i,onBlur:o}=this.props;(r||i)&&this.handleResize(),o&&o(n)},this.sanitizeInputValue=n=>typeof n=="string"?n.replace(/\n/g," "):n,!t.id&&!t["aria-label"]&&!t["aria-labelledby"]&&console.error("Text input:","Text input requires either an id or aria-label to be specified"),this.state={ouiaStateId:th($c.displayName)}}componentDidMount(){if(this.props.isLeftTruncated||this.props.isStartTruncated){const t=this.props.innerRef||this.inputRef;this.observer=N0e(t.current,this.handleResize),this.handleResize()}}componentWillUnmount(){(this.props.isLeftTruncated||this.props.isStartTruncated)&&this.observer()}render(){const t=this.props,{innerRef:n,className:r,type:i,value:o,placeholder:a,validated:s,onChange:l,onFocus:c,onBlur:u,isLeftTruncated:d,isStartTruncated:f,isExpanded:h,expandedProps:g,readOnly:p,readOnlyVariant:v,isRequired:b,isDisabled:x,customIcon:S,ouiaId:w,ouiaSafe:_}=t,E=Ae(t,["innerRef","className","type","value","placeholder","validated","onChange","onFocus","onBlur","isLeftTruncated","isStartTruncated","isExpanded","expandedProps","readOnly","readOnlyVariant","isRequired","isDisabled","customIcon","ouiaId","ouiaSafe"]),O=["success","error","warning"].includes(s),T=g?{"aria-expanded":g==null?void 0:g.isExpanded,"aria-controls":g==null?void 0:g.ariaControls,role:"combobox"}:{};return k.createElement("span",{className:re(Lr.formControl,v&&Lr.modifiers.readonly,v==="plain"&&Lr.modifiers.plain,x&&Lr.modifiers.disabled,(h||(g==null?void 0:g.isExpanded))&&Lr.modifiers.expanded,S&&Lr.modifiers.icon,O&&Lr.modifiers[s],r)},k.createElement("input",Object.assign({},E,{onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.handleChange,type:i,value:this.sanitizeInputValue(o),"aria-invalid":E["aria-invalid"]?E["aria-invalid"]:s===En.error},T,{required:b,disabled:x,readOnly:!!v||p,ref:n||this.inputRef,placeholder:a},wc(uh.displayName,w!==void 0?w:this.state.ouiaStateId,_))),(S||O)&&k.createElement("span",{className:re(Lr.formControlUtilities)},S&&k.createElement(u3,{customIcon:S}),O&&k.createElement(u3,{status:s})))}}$c.displayName="TextInputBase",$c.defaultProps={"aria-label":null,isRequired:!1,validated:"default",isDisabled:!1,isExpanded:!1,type:Xy.text,isLeftTruncated:!1,isStartTruncated:!1,onChange:()=>{},ouiaSafe:!0};const uh=k.forwardRef((e,t)=>k.createElement($c,Object.assign({},e,{innerRef:t})));uh.displayName="TextInput";const f3=_o({name:"CheckIcon",height:512,width:512,svgPath:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",yOffset:0,xOffset:0}),ae={check:"pf-v5-c-check",checkLabel:"pf-v5-c-check__label",chipGroup:"pf-v5-c-chip-group",divider:"pf-v5-c-divider",formControl:"pf-v5-c-form-control",modifiers:{invalid:"pf-m-invalid",success:"pf-m-success",warning:"pf-m-warning",disabled:"pf-m-disabled",active:"pf-m-active",expanded:"pf-m-expanded",plain:"pf-m-plain",typeahead:"pf-m-typeahead",placeholder:"pf-m-placeholder",top:"pf-m-top",alignRight:"pf-m-align-right",static:"pf-m-static",favorite:"pf-m-favorite",favoriteAction:"pf-m-favorite-action",focus:"pf-m-focus",link:"pf-m-link",action:"pf-m-action",selected:"pf-m-selected",description:"pf-m-description",load:"pf-m-load",loading:"pf-m-loading"},select:"pf-v5-c-select",selectListItem:"pf-v5-c-select__list-item",selectMenu:"pf-v5-c-select__menu",selectMenuFieldset:"pf-v5-c-select__menu-fieldset",selectMenuFooter:"pf-v5-c-select__menu-footer",selectMenuGroup:"pf-v5-c-select__menu-group",selectMenuGroupTitle:"pf-v5-c-select__menu-group-title",selectMenuItem:"pf-v5-c-select__menu-item",selectMenuItemActionIcon:"pf-v5-c-select__menu-item-action-icon",selectMenuItemCount:"pf-v5-c-select__menu-item-count",selectMenuItemDescription:"pf-v5-c-select__menu-item-description",selectMenuItemIcon:"pf-v5-c-select__menu-item-icon",selectMenuItemMain:"pf-v5-c-select__menu-item-main",selectMenuItemMatch:"pf-v5-c-select__menu-item--match",selectMenuItemRow:"pf-v5-c-select__menu-item-row",selectMenuItemText:"pf-v5-c-select__menu-item-text",selectMenuSearch:"pf-v5-c-select__menu-search",selectMenuWrapper:"pf-v5-c-select__menu-wrapper",selectToggle:"pf-v5-c-select__toggle",selectToggleArrow:"pf-v5-c-select__toggle-arrow",selectToggleBadge:"pf-v5-c-select__toggle-badge",selectToggleButton:"pf-v5-c-select__toggle-button",selectToggleClear:"pf-v5-c-select__toggle-clear",selectToggleIcon:"pf-v5-c-select__toggle-icon",selectToggleStatusIcon:"pf-v5-c-select__toggle-status-icon",selectToggleText:"pf-v5-c-select__toggle-text",selectToggleTypeahead:"pf-v5-c-select__toggle-typeahead",selectToggleWrapper:"pf-v5-c-select__toggle-wrapper",themeDark:"pf-v5-theme-dark"},h3=_o({name:"TimesCircleIcon",height:512,width:512,svgPath:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z",yOffset:0,xOffset:0}),dh={check:"pf-v5-c-check",checkBody:"pf-v5-c-check__body",checkDescription:"pf-v5-c-check__description",checkInput:"pf-v5-c-check__input",checkLabel:"pf-v5-c-check__label",checkLabelRequired:"pf-v5-c-check__label-required",modifiers:{standalone:"pf-m-standalone",disabled:"pf-m-disabled"}},Jy=k.createContext(null);Jy.Provider;const Qy=Jy.Consumer;var ze;(function(e){e.single="single",e.checkbox="checkbox",e.typeahead="typeahead",e.typeaheadMulti="typeaheadmulti"})(ze||(ze={}));var Ic;(function(e){e.right="right",e.left="left"})(Ic||(Ic={}));var Lc;(function(e){e.up="up",e.down="down"})(Lc||(Lc={}));const Fc="input, button, select, textarea, a[href]";class oi extends k.Component{constructor(){super(...arguments),this.ref=k.createRef(),this.liRef=k.createRef(),this.favoriteRef=k.createRef(),this.onKeyDown=(t,n,r,i)=>{const{index:o,keyHandler:a,isLastOptionBeforeFooter:s}=this.props;let l=!1;s!==void 0&&(l=s(o)),t.key===Ye.Tab&&(i&&!l?(t.shiftKey?a(o,n,"up"):a(o,n,"down"),t.stopPropagation()):t.shiftKey?a(o,n,"up"):a(o,n,"tab")),t.preventDefault(),t.key===Ye.ArrowUp?a(o,n,"up"):t.key===Ye.ArrowDown?a(o,n,"down"):t.key===Ye.ArrowLeft?a(o,n,"left"):t.key===Ye.ArrowRight?a(o,n,"right"):t.key===Ye.Enter&&(r!==void 0?r():this.ref.current.click())}}componentDidMount(){this.props.sendRef(this.props.isDisabled?null:this.ref.current,this.props.isDisabled?null:this.favoriteRef.current,this.props.isDisabled?null:this.liRef.current,this.props.index)}componentDidUpdate(){this.props.sendRef(this.props.isDisabled?null:this.ref.current,this.props.isDisabled?null:this.favoriteRef.current,this.props.isDisabled?null:this.liRef.current,this.props.index)}render(){const t=this.props,{children:n,className:r,id:i,description:o,itemCount:a,value:s,onClick:l,isDisabled:c,isPlaceholder:u,isNoResultsOption:d,isSelected:f,isChecked:h,isFocused:g,sendRef:p,keyHandler:v,index:b,component:x,inputId:S,isFavorite:w,ariaIsFavoriteLabel:_="starred",ariaIsNotFavoriteLabel:E="not starred",isLoad:O,isLoading:T,setViewMoreNextIndex:D,isLastOptionBeforeFooter:j,isGrouped:A=!1}=t,M=Ae(t,["children","className","id","description","itemCount","value","onClick","isDisabled","isPlaceholder","isNoResultsOption","isSelected","isChecked","isFocused","sendRef","keyHandler","index","component","inputId","isFavorite","ariaIsFavoriteLabel","ariaIsNotFavoriteLabel","isLoad","isLoading","setViewMoreNextIndex","isLastOptionBeforeFooter","isGrouped"]),P=x;!i&&w!==null&&console.error("Please provide an id to use the favorites feature.");const $=i||kT("select-option"),L=z=>k.createElement("button",{className:re(ae.selectMenuItem,ae.modifiers.action,ae.modifiers.favoriteAction),"aria-label":w?_:E,onClick:()=>{z($.replace("favorite-",""),w)},onKeyDown:N=>{this.onKeyDown(N,1,()=>z($.replace("favorite-",""),w))},ref:this.favoriteRef},k.createElement("span",{className:re(ae.selectMenuItemActionIcon)},k.createElement(z0e,null))),H=a?k.createElement("span",{className:re(ae.selectMenuItemRow)},k.createElement("span",{className:re(ae.selectMenuItemText)},n||s&&s.toString&&s.toString()),k.createElement("span",{className:re(ae.selectMenuItemCount)},a)):n||s.toString(),q=z=>{D(),l(z)},U=(z,N,R,J,ee,X)=>{if(R!==ze.checkbox&&T&&A)return k.createElement("div",{role:"presentation",className:re(ae.selectListItem,T&&ae.modifiers.loading,r)},n);if(R!==ze.checkbox&&O&&A)return k.createElement("div",null,k.createElement("button",Object.assign({},M,{role:"presentation",className:re(ae.selectMenuItem,ae.modifiers.load,r),onClick:Q=>{q(Q),Q.stopPropagation()},ref:this.ref,type:"button"}),n||s.toString()));if(R!==ze.checkbox)return k.createElement("li",{id:$,role:"presentation",className:re(T&&ae.selectListItem,!T&&ae.selectMenuWrapper,w&&ae.modifiers.favorite,g&&ae.modifiers.focus,T&&ae.modifiers.loading),ref:this.liRef},T&&n,O&&!A&&k.createElement("button",Object.assign({},M,{className:re(ae.selectMenuItem,ae.modifiers.load,r),onClick:Q=>{q(Q),Q.stopPropagation()},ref:this.ref,onKeyDown:Q=>{this.onKeyDown(Q,0)},type:"button"}),H),!T&&!O&&k.createElement(k.Fragment,null,k.createElement(P,Object.assign({},M,{className:re(ae.selectMenuItem,O&&ae.modifiers.load,f&&ae.modifiers.selected,c&&ae.modifiers.disabled,o&&ae.modifiers.description,w!==null&&ae.modifiers.link,r),onClick:Q=>{c||(l(Q),z(Q,s,u),X&&N())},role:"option","aria-selected":f||null,ref:this.ref,onKeyDown:Q=>{this.onKeyDown(Q,0)},type:"button"}),o&&k.createElement(k.Fragment,null,k.createElement("span",{className:re(ae.selectMenuItemMain)},H,f&&k.createElement("span",{className:re(ae.selectMenuItemIcon)},k.createElement(f3,{"aria-hidden":!0}))),k.createElement("span",{className:re(ae.selectMenuItemDescription)},o)),!o&&k.createElement(k.Fragment,null,H,f&&k.createElement("span",{className:re(ae.selectMenuItemIcon)},k.createElement(f3,{"aria-hidden":!0})))),w!==null&&i&&L(ee)));if(R===ze.checkbox&&O)return k.createElement("button",{className:re(ae.selectMenuItem,ae.modifiers.load,g&&ae.modifiers.focus,r),onKeyDown:Q=>{this.onKeyDown(Q,0,void 0,!0)},onClick:Q=>{q(Q),Q.stopPropagation()},ref:this.ref},n||s&&s.toString&&s.toString());if(R===ze.checkbox&&T)return k.createElement("div",{className:re(ae.selectListItem,T&&ae.modifiers.loading,r)},n);if(R===ze.checkbox&&!d&&!T&&!O)return k.createElement("label",Object.assign({},M,{className:re(dh.check,ae.selectMenuItem,c&&ae.modifiers.disabled,o&&ae.modifiers.description,r),onKeyDown:Q=>{this.onKeyDown(Q,0,void 0,!0)}}),k.createElement("input",{id:S||`${J}-${s.toString()}`,className:re(dh.checkInput),type:"checkbox",onChange:Q=>{c||(l(Q),z(Q,s))},ref:this.ref,checked:h||!1,disabled:c}),k.createElement("span",{className:re(dh.checkLabel,c&&ae.modifiers.disabled)},H),o&&k.createElement("div",{className:re(dh.checkDescription)},o));if(R===ze.checkbox&&d&&!T&&!O)return k.createElement("div",null,k.createElement(P,Object.assign({},M,{className:re(ae.selectMenuItem,f&&ae.modifiers.selected,c&&ae.modifiers.disabled,r),role:"option","aria-selected":f||null,ref:this.ref,onKeyDown:Q=>{this.onKeyDown(Q,0,void 0,!0)},type:"button"}),H))};return k.createElement(Qy,null,({onSelect:z,onClose:N,variant:R,inputIdPrefix:J,onFavorite:ee,shouldResetOnSelect:X})=>k.createElement(k.Fragment,null,U(z,N,R,J,ee,X)))}}oi.displayName="SelectOption",oi.defaultProps={className:"",value:"",index:0,isDisabled:!1,isPlaceholder:!1,isSelected:!1,isChecked:!1,isNoResultsOption:!1,component:"button",onClick:()=>{},sendRef:()=>{},keyHandler:()=>{},inputId:"",isFavorite:null,isLoad:!1,isLoading:!1,setViewMoreNextIndex:()=>{},isLastOptionBeforeFooter:()=>!1};const fa=e=>{var{children:t=[],className:n="",label:r="",titleId:i=""}=e,o=Ae(e,["children","className","label","titleId"]);return k.createElement(Qy,null,({variant:a})=>k.createElement("div",Object.assign({},o,{className:re(ae.selectMenuGroup,n)}),k.createElement("div",{className:re(ae.selectMenuGroupTitle),id:i,"aria-hidden":!0},r),a===ze.checkbox?t:k.createElement("ul",{role:"listbox"},t)))};fa.displayName="SelectGroup";class ev extends k.Component{extendChildren(t){const{children:n,hasInlineFilter:r,isGrouped:i}=this.props,o=n;let a=r?1:0;return i?k.Children.map(o,s=>s.type===fa?k.cloneElement(s,{titleId:s.props.label&&s.props.label.replace(/\W/g,"-"),children:k.Children.map(s.props.children,l=>this.cloneOption(l,a++,t))}):this.cloneOption(s,a++,t)):k.Children.map(o,s=>this.cloneOption(s,a++,t))}cloneOption(t,n,r){const{selected:i,sendRef:o,keyHandler:a}=this.props,s=this.checkForValue(t.props.value,i);return t.type===gr?t:k.cloneElement(t,{inputId:`${r}-${n}`,isSelected:s,sendRef:o,keyHandler:a,index:n})}checkForValue(t,n){if(!n||!t)return!1;const r=typeof t!="string"&&t.toString&&t.compareTo;return Array.isArray(n)?r?n.some(i=>i.compareTo(t)):n.includes(t):r?n.compareTo(t):n===t}extendCheckboxChildren(t){const{isGrouped:n,checked:r,sendRef:i,keyHandler:o,hasInlineFilter:a,isLastOptionBeforeFooter:s}=this.props;let l=a?1:0;return n?k.Children.map(t,c=>c.type===gr?c:c.type===oi?k.cloneElement(c,{isChecked:this.checkForValue(c.props.value,r),sendRef:i,keyHandler:o,index:l++,isLastOptionBeforeFooter:s}):k.cloneElement(c,{titleId:c.props.label&&c.props.label.replace(/\W/g,"-"),children:c.props.children?k.createElement("fieldset",{"aria-labelledby":c.props.label&&c.props.label.replace(/\W/g,"-"),className:re(ae.selectMenuFieldset)},k.Children.map(c.props.children,u=>u.type===gr?u:k.cloneElement(u,{isChecked:this.checkForValue(u.props.value,r),sendRef:i,keyHandler:o,index:l++,isLastOptionBeforeFooter:s}))):null})):k.Children.map(t,c=>c.type===gr?c:k.cloneElement(c,{isChecked:this.checkForValue(c.props.value,r),sendRef:i,keyHandler:o,index:l++,isLastOptionBeforeFooter:s}))}renderSelectMenu({variant:t,inputIdPrefix:n}){const r=this.props,{children:i,isCustomContent:o,className:a,isExpanded:s,openedOnEnter:l,selected:c,checked:u,isGrouped:d,position:f,sendRef:h,keyHandler:g,maxHeight:p,noResultsFoundText:v,createText:b,"aria-label":x,"aria-labelledby":S,hasInlineFilter:w,innerRef:_,footer:E,footerRef:O,isLastOptionBeforeFooter:T}=r,D=Ae(r,["children","isCustomContent","className","isExpanded","openedOnEnter","selected","checked","isGrouped","position","sendRef","keyHandler","maxHeight","noResultsFoundText","createText","aria-label","aria-labelledby","hasInlineFilter","innerRef","footer","footerRef","isLastOptionBeforeFooter"]);let j="div";const A=Object.assign({ref:_,className:re(E?`${ae.selectMenu}-list`:ae.selectMenu,f===Ic.right&&ae.modifiers.alignRight,a)},p&&{style:{maxHeight:p,overflow:"auto"}}),M=()=>t===ze.checkbox?this.extendCheckboxChildren(i):this.extendChildren(n);return o?A.children=i:w?k.Children.count(i)===0?A.children=k.createElement("fieldset",{className:re(ae.selectMenuFieldset)}):A.children=k.createElement("fieldset",{"aria-label":x,"aria-labelledby":!x&&S||null,className:re(G0e.formFieldset)},i.shift(),M()):(A.children=M(),d||(j="ul",A.role="listbox",A["aria-label"]=x,A["aria-labelledby"]=!x&&S||null)),k.createElement(k.Fragment,null,k.createElement(j,Object.assign({},A,D)),E&&k.createElement("div",{className:re(ae.selectMenuFooter),ref:O},E))}render(){return k.createElement(Qy,null,t=>this.renderSelectMenu(t))}}ev.displayName="SelectMenu",ev.defaultProps={className:"",isExpanded:!1,isGrouped:!1,openedOnEnter:!1,selected:"",maxHeight:"",position:Ic.left,sendRef:()=>{},keyHandler:()=>{},isCustomContent:!1,hasInlineFilter:!1,isLastOptionBeforeFooter:()=>{}};const Y0e=k.forwardRef((e,t)=>k.createElement(ev,Object.assign({innerRef:t},e),e.children));class tv extends k.Component{constructor(t){super(t),this.onDocClick=i=>{const{parentRef:o,menuRef:a,footerRef:s,isOpen:l,onToggle:c,onClose:u}=this.props,d=o&&o.current&&o.current.contains(i.target),f=a&&a.current&&a.current.contains&&a.current.contains(i.target),h=s&&s.current&&s.current.contains&&s.current.contains(i.target);l&&!(d||f||h)&&(c(i,!1),u())},this.handleGlobalKeys=i=>{const{parentRef:o,menuRef:a,hasFooter:s,footerRef:l,isOpen:c,variant:u,onToggle:d,onClose:f,moveFocusToLastMenuItem:h}=this.props,g=o&&o.current&&o.current.contains(i.target),p=a&&a.current&&a.current.contains&&a.current.contains(i.target);if(c&&i.key===Ye.Tab&&(u===ze.typeahead||u===ze.typeaheadMulti)){this.props.handleTypeaheadKeys("tab",i.shiftKey),i.preventDefault();return}if(c&&i.key===Ye.Tab&&s){const v=_c(l,Fc);if(v.length<=0){d(i,!1),f(),this.toggle.current.focus();return}else{const b=v.findIndex(x=>x===document.activeElement);if(b===-1)if(i.shiftKey)u!=="checkbox"&&(d(i,!1),f(),this.toggle.current.focus());else{v[0].focus();return}if(i.shiftKey){b===0&&(h(),i.preventDefault());return}b+1<v.length?v[b+1].focus():(d(i,!1),f(),this.toggle.current.focus()),i.preventDefault();return}}c&&(i.key===Ye.Escape||i.key===Ye.Tab)&&(g||p)&&(d(i,!1),f(),this.toggle.current.focus())},this.onKeyDown=i=>{const{isOpen:o,onToggle:a,variant:s,onClose:l,onEnter:c,handleTypeaheadKeys:u}=this.props;(s===ze.typeahead||s===ze.typeaheadMulti)&&(i.key===Ye.ArrowDown||i.key===Ye.ArrowUp?(u(i.key===Ye.ArrowDown&&"down"||i.key===Ye.ArrowUp&&"up"),i.preventDefault()):i.key===Ye.Enter&&(o?u("enter"):a(i,!o))),!(s===ze.typeahead||s===ze.typeaheadMulti||i.key===Ye.Tab&&!o||i.key!==Ye.Enter&&i.key!==Ye.Space)&&(i.preventDefault(),(i.key===Ye.Tab||i.key===Ye.Enter||i.key===Ye.Space)&&o?(a(i,!o),l(),this.toggle.current.focus()):(i.key===Ye.Enter||i.key===Ye.Space)&&!o&&(a(i,!o),c()))};const{variant:n}=t,r=n===ze.typeahead||n===ze.typeaheadMulti;this.props.innerRef?this.toggle=this.props.innerRef:this.toggle=k.createRef()}componentDidMount(){document.addEventListener("click",this.onDocClick,{capture:!0}),document.addEventListener("touchstart",this.onDocClick),document.addEventListener("keydown",this.handleGlobalKeys)}componentWillUnmount(){document.removeEventListener("click",this.onDocClick,{capture:!0}),document.removeEventListener("touchstart",this.onDocClick),document.removeEventListener("keydown",this.handleGlobalKeys)}render(){const t=this.props,{className:n,children:r,isOpen:i,isActive:o,isPlain:a,isDisabled:s,hasPlaceholderStyle:l,variant:c,onToggle:u,onEnter:d,onClose:f,onBlur:h,onClickTypeaheadToggleButton:g,handleTypeaheadKeys:p,moveFocusToLastMenuItem:v,parentRef:b,menuRef:x,id:S,type:w,hasClearButton:_,"aria-labelledby":E,"aria-label":O,hasFooter:T,footerRef:D,toggleIndicator:j,innerRef:A}=t,M=Ae(t,["className","children","isOpen","isActive","isPlain","isDisabled","hasPlaceholderStyle","variant","onToggle","onEnter","onClose","onBlur","onClickTypeaheadToggleButton","handleTypeaheadKeys","moveFocusToLastMenuItem","parentRef","menuRef","id","type","hasClearButton","aria-labelledby","aria-label","hasFooter","footerRef","toggleIndicator","innerRef"]),P=c===ze.typeahead||c===ze.typeaheadMulti||_,$={id:S,"aria-labelledby":E,"aria-expanded":i,"aria-haspopup":c!==ze.checkbox&&"listbox"||null};return k.createElement(k.Fragment,null,!P&&k.createElement("button",Object.assign({},M,$,{ref:this.toggle,type:w,className:re(ae.selectToggle,l&&ae.modifiers.placeholder,s&&ae.modifiers.disabled,a&&ae.modifiers.plain,o&&ae.modifiers.active,n),"aria-label":O,onBlur:h,onClick:L=>{u(L,!i),i&&f()},onKeyDown:this.onKeyDown,disabled:s}),r,k.createElement("span",{className:re(ae.selectToggleArrow)},j??k.createElement(i3,null))),P&&k.createElement("div",Object.assign({},M,{ref:this.toggle,className:re(ae.selectToggle,l&&ae.modifiers.placeholder,s&&ae.modifiers.disabled,a&&ae.modifiers.plain,P&&ae.modifiers.typeahead,n),onBlur:h,onClick:L=>{s||(u(L,!i),i&&f())},onKeyDown:this.onKeyDown}),r,k.createElement("button",Object.assign({},$,{type:w,className:re($t.button,ae.selectToggleButton,ae.modifiers.plain),"aria-label":O,onClick:L=>{u(L,!i),i&&f(),g()}},(c===ze.typeahead||c===ze.typeaheadMulti)&&{tabIndex:-1},{disabled:s}),j??k.createElement(i3,{className:re(ae.selectToggleArrow)}))))}}tv.displayName="SelectToggle",tv.defaultProps={className:"",isOpen:!1,isActive:!1,isPlain:!1,isDisabled:!1,hasPlaceholderStyle:!1,hasClearButton:!1,hasFooter:!1,variant:"single","aria-labelledby":"","aria-label":"",type:"button",onToggle:()=>{},onEnter:()=>{},onClose:()=>{},onClickTypeaheadToggleButton:()=>{}};const K0e=k.forwardRef((e,t)=>k.createElement(tv,Object.assign({innerRef:t},e))),So={badge:"pf-v5-c-badge",button:"pf-v5-c-button",chip:"pf-v5-c-chip",chipActions:"pf-v5-c-chip__actions",chipContent:"pf-v5-c-chip__content",chipIcon:"pf-v5-c-chip__icon",chipText:"pf-v5-c-chip__text",modifiers:{overflow:"pf-m-overflow",draggable:"pf-m-draggable"},themeDark:"pf-v5-theme-dark"},Z0e={name:"--pf-v5-c-chip__text--MaxWidth",value:"16ch",var:"var(--pf-v5-c-chip__text--MaxWidth)"};class ha extends k.Component{constructor(t){super(t),this.span=k.createRef(),this.setChipStyle=()=>({[Z0e.name]:this.props.textMaxWidth}),this.renderOverflowChip=()=>{const n=this.props,{badge:r,children:i,className:o,onClick:a,ouiaId:s,textMaxWidth:l,style:c,component:u,tooltipPosition:d,isOverflowChip:f,closeBtnAriaLabel:h,isReadOnly:g}=n,p=Ae(n,["badge","children","className","onClick","ouiaId","textMaxWidth","style","component","tooltipPosition","isOverflowChip","closeBtnAriaLabel","isReadOnly"]),v=u;return k.createElement(v,Object.assign({onClick:a},l&&Object.assign({style:this.setChipStyle()},c),{className:re(So.chip,So.modifiers.overflow,o)},u==="button"?{type:"button"}:{},wc("OverflowChip",s!==void 0?s:this.state.ouiaStateId),p),k.createElement("span",{className:re(So.chipContent)},k.createElement("span",{className:re(So.chipText)},i),r&&r))},this.renderChip=n=>{const{children:r,tooltipPosition:i}=this.props;return this.state.isTooltipVisible?k.createElement(ah,{position:i,content:r},this.renderInnerChip(n)):this.renderInnerChip(n)},this.state={isTooltipVisible:!1,ouiaStateId:th(ha.displayName)}}componentDidMount(){this.setState({isTooltipVisible:!!(this.span.current&&this.span.current.offsetWidth<this.span.current.scrollWidth)})}componentDidUpdate(t,n){const r=!!(this.span.current&&this.span.current.offsetWidth<this.span.current.scrollWidth);n.isTooltipVisible!==r&&this.setState({isTooltipVisible:r})}renderInnerChip(t){const n=this.props,{badge:r,children:i,className:o,onClick:a,closeBtnAriaLabel:s,isReadOnly:l,isOverflowChip:c,tooltipPosition:u,id:d,component:f,ouiaId:h,textMaxWidth:g}=n,p=Ae(n,["badge","children","className","onClick","closeBtnAriaLabel","isReadOnly","isOverflowChip","tooltipPosition","id","component","ouiaId","textMaxWidth"]),v=f;return k.createElement(v,Object.assign({},g&&{style:this.setChipStyle()},{className:re(So.chip,o)},this.state.isTooltipVisible&&{tabIndex:0},wc(ha.displayName,h!==void 0?h:this.state.ouiaStateId),p),k.createElement("span",{className:re(So.chipContent)},k.createElement("span",{ref:this.span,className:re(So.chipText),id:t},i),r&&r),!l&&k.createElement("span",{className:re(So.chipActions)},k.createElement(ch,{onClick:a,variant:"plain","aria-label":s,id:`remove_${t}`,"aria-labelledby":`remove_${t} ${t}`,ouiaId:h||s},k.createElement(H0e,{"aria-hidden":"true"}))))}render(){const{isOverflowChip:t}=this.props;return k.createElement(Sc,null,n=>t?this.renderOverflowChip():this.renderChip(this.props.id||n))}}ha.displayName="Chip",ha.defaultProps={closeBtnAriaLabel:"close",className:"",isOverflowChip:!1,isReadOnly:!1,tooltipPosition:"top",onClick:e=>{},component:"div"};const Bi={chipGroup:"pf-v5-c-chip-group",chipGroupClose:"pf-v5-c-chip-group__close",chipGroupLabel:"pf-v5-c-chip-group__label",chipGroupList:"pf-v5-c-chip-group__list",chipGroupListItem:"pf-v5-c-chip-group__list-item",chipGroupMain:"pf-v5-c-chip-group__main",modifiers:{category:"pf-m-category"}};class Nc extends k.Component{constructor(t){super(t),this.headingRef=k.createRef(),this.toggleCollapse=()=>{this.setState(n=>({isOpen:!n.isOpen,isTooltipVisible:!!(this.headingRef.current&&this.headingRef.current.offsetWidth<this.headingRef.current.scrollWidth)}))},this.state={isOpen:this.props.defaultIsOpen,isTooltipVisible:!1}}componentDidMount(){this.setState({isTooltipVisible:!!(this.headingRef.current&&this.headingRef.current.offsetWidth<this.headingRef.current.scrollWidth)})}renderLabel(t){const{categoryName:n,tooltipPosition:r}=this.props,{isTooltipVisible:i}=this.state;return i?k.createElement(ah,{position:r,content:n},k.createElement("span",{tabIndex:0,ref:this.headingRef,className:re(Bi.chipGroupLabel)},k.createElement("span",{id:t},n))):k.createElement("span",{ref:this.headingRef,className:re(Bi.chipGroupLabel),id:t},n)}render(){const t=this.props,{categoryName:n,children:r,className:i,isClosable:o,closeBtnAriaLabel:a,"aria-label":s,onClick:l,onOverflowChipClick:c,numChips:u,expandedText:d,collapsedText:f,ouiaId:h,defaultIsOpen:g,tooltipPosition:p}=t,v=Ae(t,["categoryName","children","className","isClosable","closeBtnAriaLabel","aria-label","onClick","onOverflowChipClick","numChips","expandedText","collapsedText","ouiaId","defaultIsOpen","tooltipPosition"]),{isOpen:b}=this.state,x=k.Children.count(r),S=Ame(f,{remaining:k.Children.count(r)-u}),w=_=>{const E=b?k.Children.toArray(r):k.Children.toArray(r).slice(0,u);return k.createElement("div",Object.assign({className:re(Bi.chipGroup,i,n&&Bi.modifiers.category),role:"group"},n&&{"aria-labelledby":_},!n&&{"aria-label":s},wc(Nc.displayName,h)),k.createElement("div",{className:re(Bi.chipGroupMain)},n&&this.renderLabel(_),k.createElement("ul",Object.assign({className:re(Bi.chipGroupList)},n&&{"aria-labelledby":_},!n&&{"aria-label":s},{role:"list"},v),E.map((O,T)=>k.createElement("li",{className:re(Bi.chipGroupListItem),key:T},O)),x>u&&k.createElement("li",{className:re(Bi.chipGroupListItem)},k.createElement(ha,{isOverflowChip:!0,onClick:O=>{this.toggleCollapse(),c(O)},component:"button"},b?d:S)))),o&&k.createElement("div",{className:re(Bi.chipGroupClose)},k.createElement(ch,{variant:"plain","aria-label":a,onClick:l,id:`remove_group_${_}`,"aria-labelledby":`remove_group_${_} ${_}`,ouiaId:h||a},k.createElement(h3,{"aria-hidden":"true"}))))};return x===0?null:k.createElement(Sc,null,_=>w(this.props.id||_))}}Nc.displayName="ChipGroup",Nc.defaultProps={expandedText:"Show Less",collapsedText:"${remaining} more",categoryName:"",defaultIsOpen:!1,numChips:3,isClosable:!1,onClick:e=>{},onOverflowChipClick:e=>{},closeBtnAriaLabel:"Close chip group",tooltipPosition:"top","aria-label":"Chip group category"};let X0e=0;class ma extends k.Component{constructor(){super(...arguments),this.parentRef=k.createRef(),this.menuComponentRef=k.createRef(),this.filterRef=k.createRef(),this.clearRef=k.createRef(),this.inputRef=k.createRef(),this.refCollection=[[]],this.optionContainerRefCollection=[],this.footerRef=k.createRef(),this.state={focusFirstOption:!1,typeaheadInputValue:null,typeaheadFilteredChildren:k.Children.toArray(this.props.children),favoritesGroup:[],typeaheadCurrIndex:-1,typeaheadStoredIndex:-1,creatableValue:"",tabbedIntoFavoritesMenu:!1,ouiaStateId:th(ma.displayName,this.props.variant),viewMoreNextIndex:-1},this.getTypeaheadActiveChild=t=>this.refCollection[t]?this.refCollection[t][0]:null,this.componentDidUpdate=(t,n)=>{if(this.props.hasInlineFilter&&(this.refCollection[0][0]=this.filterRef.current),!n.focusFirstOption&&this.state.focusFirstOption&&!this.props.customContent){const o=this.refCollection.find(a=>a!==null&&a[0]);o&&o[0]&&o[0].focus()}else this.state.viewMoreNextIndex!==-1&&this.refCollection.length>this.state.viewMoreNextIndex&&this.props.loadingVariant!=="spinner"&&this.refCollection[this.state.viewMoreNextIndex][0]&&this.props.variant!=="typeahead"&&this.props.variant!=="typeaheadmulti"&&(this.refCollection[this.state.viewMoreNextIndex][0].focus(),this.setState({viewMoreNextIndex:-1}));const r=(o,a)=>Array.from(o).some((s,l)=>{const c=s.props,u=a[l],{props:d}=u;return c&&d?c.value!==d.value||c.label!==d.label||c.isDisabled!==d.isDisabled||c.isPlaceholder!==d.isPlaceholder:s!==u});if((t.children.length!==this.props.children.length||r(t.children,this.props.children)||this.props.isGrouped&&Array.from(t.children).some((o,a)=>o.type===fa&&o.props.children&&this.props.children[a].props.children&&(o.props.children.length!==this.props.children[a].props.children.length||r(o.props.children,this.props.children[a].props.children))))&&this.updateTypeAheadFilteredChildren(n.typeaheadInputValue||"",null),this.props.onFavorite&&(this.props.favorites.length!==t.favorites.length||this.state.typeaheadFilteredChildren!==n.typeaheadFilteredChildren)){const o=this.props.variant==="typeahead"||this.props.variant==="typeaheadmulti"?this.state.typeaheadFilteredChildren:this.props.children,a=R0e(o,this.props.isGrouped,this.props.favorites),s=a.length?[k.createElement(fa,{key:"favorites",label:this.props.favoritesLabel},a),k.createElement(gr,{key:"favorites-group-divider"})]:[];this.setState({favoritesGroup:s})}},this.onEnter=()=>{this.setState({focusFirstOption:!0})},this.onToggle=(t,n)=>{const{isInputValuePersisted:r,onSelect:i,onToggle:o,hasInlineFilter:a}=this.props;!n&&r&&i&&i(void 0,this.inputRef.current?this.inputRef.current.value:""),n&&a&&this.setState({focusFirstOption:!0}),o(t,n)},this.onClose=()=>{const{isInputFilterPersisted:t}=this.props;this.setState(Object.assign(Object.assign({focusFirstOption:!1,typeaheadInputValue:null},!t&&{typeaheadFilteredChildren:k.Children.toArray(this.props.children)}),{typeaheadCurrIndex:-1,tabbedIntoFavoritesMenu:!1,viewMoreNextIndex:-1}))},this.onChange=t=>{t.target.value.toString()!==""&&!this.props.isOpen&&this.onToggle(t,!0),this.props.onTypeaheadInputChanged&&this.props.onTypeaheadInputChanged(t.target.value.toString()),this.setState({typeaheadCurrIndex:-1,typeaheadInputValue:t.target.value,creatableValue:t.target.value}),this.updateTypeAheadFilteredChildren(t.target.value.toString(),t),this.refCollection=[[]]},this.updateTypeAheadFilteredChildren=(t,n)=>{let r;const{onFilter:i,isCreatable:o,isCreateOptionOnTop:a,onCreateOption:s,createText:l,noResultsFoundText:c,children:u,isGrouped:d,isCreateSelectOptionObject:f,loadingVariant:h}=this.props;if(i)r=i(n,n?n.target.value:t)||u;else{let g;try{g=new RegExp(t.toString(),"i")}catch{g=new RegExp(t.toString().replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const p=k.Children.toArray(u);if(d){const v=b=>b.props.value&&b.props.value.toString&&this.getDisplay(b.props.value.toString(),"text").search(g)===0;r=t.toString()!==""?k.Children.map(u,b=>{if(k.isValidElement(b)&&b.type===fa){const x=k.Children.toArray(b.props.children).filter(v);if(x.length>0)return k.cloneElement(b,{titleId:b.props.label&&b.props.label.replace(/\W/g,"-"),children:x})}else return k.Children.toArray(b).filter(v)}):p}else r=t.toString()!==""?p.filter(v=>{const b=v.props.value;if(!b)return!0;const x=typeof b!="string"&&b.toString&&b.compareTo;return h!=="spinner"&&(h==null?void 0:h.text)===b||h==="spinner"&&b==="loading"?!0:x?b.compareTo(t):this.getDisplay(v.props.value.toString(),"text").search(g)===0}):p}if(r||(r=[]),r.length===0&&!o&&r.push(k.createElement(oi,{isDisabled:!0,key:"no-results",value:c,isNoResultsOption:!0})),o&&t!==""){const g=t;if(!r.find(p=>p.props.value&&p.props.value.toString().toLowerCase()===g.toString().toLowerCase())){const p=f?{toString:()=>g,compareTo:b=>this.toString().toLowerCase().includes(b.toString().toLowerCase())}:g,v=k.createElement(oi,{key:`create ${g}`,value:p,onClick:()=>s&&s(g)},l,' "',g,'"');a?r.unshift(v):r.push(v)}}this.setState({typeaheadFilteredChildren:r})},this.onClick=t=>{this.props.isOpen||this.onToggle(t,!0)},this.clearSelection=t=>{this.setState({typeaheadInputValue:null,typeaheadFilteredChildren:k.Children.toArray(this.props.children),typeaheadCurrIndex:-1})},this.sendRef=(t,n,r,i)=>{this.refCollection[i]=[t,n],this.optionContainerRefCollection[i]=r},this.handleMenuKeys=(t,n,r)=>{TT(t,n,r,this.refCollection,this.refCollection),(this.props.variant===ze.typeahead||this.props.variant===ze.typeaheadMulti)&&r!=="tab"&&this.handleTypeaheadKeys(r)},this.moveFocus=(t,n=!0)=>{const{isCreatable:r,createText:i}=this.props,o=!!(this.refCollection[t][0]&&this.refCollection[t][0].classList.contains("pf-m-description")),a=!!(this.refCollection[t][0]&&this.refCollection[t][0].classList.contains("pf-m-load")),s=o?this.refCollection[t][0].firstElementChild:this.refCollection[t][0];let l="";r&&s.textContent.includes(i)?l=this.state.creatableValue:s&&!a&&(l=s.textContent),this.setState(c=>({typeaheadCurrIndex:n?t:c.typeaheadCurrIndex,typeaheadStoredIndex:t,typeaheadInputValue:l}))},this.switchFocusToFavoriteMenu=()=>{const{typeaheadCurrIndex:t,typeaheadStoredIndex:n}=this.state;let r=0;t!==-1?r=t:n!==-1&&(r=n),this.refCollection[r]!==null&&this.refCollection[r][0]!==null?this.refCollection[r][0].focus():this.clearRef.current.focus(),this.setState({tabbedIntoFavoritesMenu:!0,typeaheadCurrIndex:-1})},this.moveFocusToLastMenuItem=()=>{const t=this.refCollection.length;t>0&&this.refCollection[t-1]!==null&&this.refCollection[t-1][0]!==null&&this.refCollection[t-1][0].focus()},this.handleTypeaheadKeys=(t,n=!1)=>{const{isOpen:r,onFavorite:i,isCreatable:o}=this.props,{typeaheadCurrIndex:a,tabbedIntoFavoritesMenu:s}=this.state,l=this.getTypeaheadActiveChild(a);if(r)if(t==="enter"){if((a!==-1||o&&this.refCollection.length===1)&&(l||this.refCollection[0]&&this.refCollection[0][0])){if(l){if(!l.classList.contains("pf-m-load")){const u=l.childElementCount>1?l.firstChild.textContent:l.textContent;this.setState({typeaheadInputValue:u})}}else this.refCollection[0]&&this.refCollection[0][0]&&this.setState({typeaheadInputValue:this.refCollection[0][0].textContent});l?l.click():this.refCollection[0][0].click()}}else if(t==="tab")if(i)if(this.inputRef.current===document.activeElement)if(this.props.footer&&n){const c=_c(this.footerRef,Fc);c.length>0&&c[c.length-1]&&c[c.length-1].focus()}else this.switchFocusToFavoriteMenu();else if(this.props.footer){let c=!1;const u=_c(this.footerRef,Fc);if(u.length>0){const d=u.findIndex(f=>f===document.activeElement);d===-1?n?this.inputRef.current.focus():u[0].focus():n?d===0?(this.switchFocusToFavoriteMenu(),c=!0):u[d-1].focus():u[d+1]?u[d+1].focus():this.inputRef.current.focus()}else this.inputRef.current.focus(),c=!1;this.setState({tabbedIntoFavoritesMenu:c})}else this.inputRef.current.focus(),this.setState({tabbedIntoFavoritesMenu:!1});else if(!this.props.footer)this.onToggle(null,!1),this.onClose();else{const c=_c(this.footerRef,Fc),u=c.findIndex(d=>d===document.activeElement);this.inputRef.current===document.activeElement?n?(this.onToggle(null,!1),this.onClose()):c[0]?c[0].focus():(this.onToggle(null,!1),this.onClose()):n?u===0?this.inputRef.current.focus():c[u-1].focus():c[u+1]?c[u+1].focus():(this.onToggle(null,!1),this.inputRef.current.focus(),this.onClose())}else if(s){const c=this.refCollection.findIndex(u=>u!==void 0&&(u[0]===document.activeElement||u[1]===document.activeElement));this.moveFocus(c)}else{if(this.refCollection[0][0]===null)return;let c;if(a===-1&&t==="down"?c=0:a===-1&&t==="up"?c=this.refCollection.length-1:t!=="left"&&t!=="right"?c=AT(a,t,this.refCollection):c=a,this.refCollection[c]===null)return;this.moveFocus(c)}},this.onClickTypeaheadToggleButton=()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.focus()},this.getDisplay=(t,n="node")=>{if(!t)return;const r=this.props.isGrouped?k.Children.toArray(this.props.children).reduce((i,o)=>[...i,...k.Children.toArray(o.props.children)],[]).find(i=>i.props.value.toString()===t.toString()):k.Children.toArray(this.props.children).find(i=>i.props.value&&i.props.value.toString()===t.toString());return r?r&&r.props.children?n==="node"?r.props.children:this.findText(r):r.props.value.toString():t.toString()},this.findText=t=>{if(typeof t=="string")return t;if(k.isValidElement(t)){const n=[];return k.Children.toArray(t.props.children).forEach(r=>n.push(this.findText(r))),n.join("")}else return""},this.generateSelectedBadge=()=>{const{customBadgeText:t,selections:n}=this.props;return t!==null?t:Array.isArray(n)&&n.length>0?n.length:null},this.setVieMoreNextIndex=()=>{this.setState({viewMoreNextIndex:this.refCollection.length-1})},this.isLastOptionBeforeFooter=t=>!!(this.props.footer&&t===this.refCollection.length-1)}extendTypeaheadChildren(t,n){const{isGrouped:r,onFavorite:i,createText:o}=this.props,a=n?n.concat(this.state.typeaheadFilteredChildren):this.state.typeaheadFilteredChildren,s=this.optionContainerRefCollection[t];let l=this.getTypeaheadActiveChild(t);return l&&l.classList.contains("pf-m-description")&&(l=l.firstElementChild),this.refCollection=[[]],this.optionContainerRefCollection=[],r?k.Children.map(a,c=>c.type===gr?c:c.type===fa&&i?k.cloneElement(c,{titleId:c.props.label&&c.props.label.replace(/\W/g,"-"),children:k.Children.map(c.props.children,u=>u.type===gr?u:k.cloneElement(u,{isFocused:s&&(s.id===u.props.id||this.props.isCreatable&&l.textContent===`${o} "${c.props.value}"`)}))}):c.type===fa?k.cloneElement(c,{titleId:c.props.label&&c.props.label.replace(/\W/g,"-"),children:k.Children.map(c.props.children,u=>u.type===gr?u:k.cloneElement(u,{isFocused:l&&(l.textContent===u.props.value.toString()||this.props.isCreatable&&l.textContent===`${o} "${u.props.value}"`)}))}):k.cloneElement(c,{isFocused:l&&(l.textContent===c.props.value.toString()||this.props.isCreatable&&l.textContent===`${o} "${c.props.value}"`)})):a.map((c,u)=>c.type.displayName==="Divider"?c:k.cloneElement(c,{isFocused:l?l.textContent===c.props.value.toString()||this.props.isCreatable&&l.textContent===`${o} "${c.props.value}"`:u===t}))}render(){const t=this.props,{children:n,chipGroupProps:r,chipGroupComponent:i,className:o,customContent:a,variant:s,direction:l,onSelect:c,onClear:u,onBlur:d,toggleId:f,toggleRef:h,isOpen:g,isGrouped:p,isPlain:v,isDisabled:b,hasPlaceholderStyle:x,validated:S,selections:w,typeAheadAriaLabel:_,typeAheadAriaDescribedby:E,clearSelectionsAriaLabel:O,toggleAriaLabel:T,removeSelectionAriaLabel:D,"aria-label":j,"aria-labelledby":A,"aria-describedby":M,"aria-invalid":P,placeholderText:$,width:L,maxHeight:H,toggleIcon:q,toggleIndicator:U,ouiaId:z,ouiaSafe:N,hasInlineFilter:R,isCheckboxSelectionBadgeHidden:J,inlineFilterPlaceholderText:ee,onFilter:X,onTypeaheadInputChanged:Q,onCreateOption:ie,isCreatable:ue,onToggle:de,createText:K,noResultsFoundText:ne,customBadgeText:pe,inputIdPrefix:B,inputAutoComplete:ke,isInputValuePersisted:Ee,isInputFilterPersisted:He,menuAppendTo:Ie,favorites:at,onFavorite:I,favoritesLabel:V,footer:G,loadingVariant:fe,isCreateSelectOptionObject:he,isCreateOptionOnTop:oe,shouldResetOnSelect:Y,isFlipEnabled:le,zIndex:be}=t,xe=Ae(t,["children","chipGroupProps","chipGroupComponent","className","customContent","variant","direction","onSelect","onClear","onBlur","toggleId","toggleRef","isOpen","isGrouped","isPlain","isDisabled","hasPlaceholderStyle","validated","selections","typeAheadAriaLabel","typeAheadAriaDescribedby","clearSelectionsAriaLabel","toggleAriaLabel","removeSelectionAriaLabel","aria-label","aria-labelledby","aria-describedby","aria-invalid","placeholderText","width","maxHeight","toggleIcon","toggleIndicator","ouiaId","ouiaSafe","hasInlineFilter","isCheckboxSelectionBadgeHidden","inlineFilterPlaceholderText","onFilter","onTypeaheadInputChanged","onCreateOption","isCreatable","onToggle","createText","noResultsFoundText","customBadgeText","inputIdPrefix","inputAutoComplete","isInputValuePersisted","isInputFilterPersisted","menuAppendTo","favorites","onFavorite","favoritesLabel","footer","loadingVariant","isCreateSelectOptionObject","isCreateOptionOnTop","shouldResetOnSelect","isFlipEnabled","zIndex"]),{focusFirstOption:Ne,typeaheadCurrIndex:Re,typeaheadInputValue:nt,typeaheadFilteredChildren:wt,favoritesGroup:jt}=this.state,Ct=f||`pf-select-toggle-id-${X0e++}`,We=Array.isArray(w)?w:[w],Pe=k.Children.toArray(n).find(Ke=>Ke.props.value===We[0]),mt=Pe&&Pe.props.isPlaceholder,Rt=!!(We[0]&&We[0]!==""),Et=this.getTypeaheadActiveChild(Re);let Nn=null,Vt=[];if(I){let Ke=n;s==="typeahead"||s==="typeaheadmulti"?Ke=this.extendTypeaheadChildren(Re,jt):I&&(Ke=jt.concat(n)),Vt=V0e(Ke,p,at)}else Vt=n;if(!a&&!Rt&&!$){const Ke=k.Children.toArray(n).filter(gt=>gt.props.isPlaceholder===!0);Nn=Ke[0]&&this.getDisplay(Ke[0].props.value,"node")||n[0]&&this.getDisplay(n[0].props.value,"node")}g&&Vt.find(Ke=>(Ke==null?void 0:Ke.key)==="loading")===void 0&&(fe==="spinner"?Vt.push(k.createElement(oi,{isLoading:!0,key:"loading",value:"loading"},k.createElement(Ky,{size:"lg"}))):fe!=null&&fe.text&&Vt.push(k.createElement(oi,{isLoad:!0,key:"loading",value:fe.text,setViewMoreNextIndex:this.setVieMoreNextIndex,onClick:fe==null?void 0:fe.onClick})));const Bn=u!==ma.defaultProps.onClear,we=k.createElement("button",{className:re($t.button,$t.modifiers.plain,ae.selectToggleClear),onClick:Ke=>{this.clearSelection(Ke),u(Ke),Ke.stopPropagation()},"aria-label":O,type:"button",disabled:b,ref:this.clearRef,onKeyDown:Ke=>{Ke.key===Ye.Enter&&this.clearRef.current.click()}},k.createElement(h3,{"aria-hidden":!0}));let ot=null;s===ze.typeaheadMulti&&(ot=i||k.createElement(Nc,Object.assign({},r),We&&We.map(Ke=>k.createElement(ha,{key:Ke,onClick:gt=>c(gt,Ke),closeBtnAriaLabel:D},this.getDisplay(Ke,"node"))))),R&&(Vt=[k.createElement(k.Fragment,null,k.createElement("div",{key:"inline-filter",className:re(ae.selectMenuSearch)},k.createElement("div",{key:"inline-filter",className:re(Lr.formControl)},k.createElement("input",{key:"inline-filter-input",type:"search",onChange:this.onChange,placeholder:ee,onKeyDown:gt=>{if(gt.key===Ye.ArrowUp)this.handleMenuKeys(0,0,"up"),gt.preventDefault();else if(gt.key===Ye.ArrowDown)this.handleMenuKeys(0,0,"down"),gt.preventDefault();else if(gt.key===Ye.ArrowLeft)this.handleMenuKeys(0,0,"left"),gt.preventDefault();else if(gt.key===Ye.ArrowRight)this.handleMenuKeys(0,0,"right"),gt.preventDefault();else if(gt.key===Ye.Tab&&s!==ze.checkbox&&this.props.footer)if(gt.shiftKey)this.onToggle(gt,!1);else{const Bs=_c(this.footerRef,Fc);Bs.length>0?(Bs[0].focus(),gt.stopPropagation(),gt.preventDefault()):this.onToggle(gt,!1)}else gt.key===Ye.Tab&&s===ze.checkbox&&(gt.shiftKey?this.handleMenuKeys(0,0,"up"):this.handleMenuKeys(0,0,"down"),gt.stopPropagation(),gt.preventDefault())},ref:this.filterRef,autoComplete:ke}))),k.createElement(gr,{key:"inline-filter-divider"})),...wt].map((gt,Bs)=>k.cloneElement(gt,{key:Bs})));let ln,Ut;if(a)ln={selected:We,openedOnEnter:Ne,isCustomContent:!0},Ut=a;else switch(s){case"single":ln={selected:We[0],hasInlineFilter:R,openedOnEnter:Ne},Ut=Vt;break;case"checkbox":ln={checked:We,isGrouped:p,hasInlineFilter:R,openedOnEnter:Ne},Ut=Vt;break;case"typeahead":ln={selected:We[0],openedOnEnter:Ne},Ut=I?Vt:this.extendTypeaheadChildren(Re),Ut.length===0&&Ut.push(k.createElement(oi,{isDisabled:!0,key:0,value:ne,isNoResultsOption:!0}));break;case"typeaheadmulti":ln={selected:We,openedOnEnter:Ne},Ut=I?Vt:this.extendTypeaheadChildren(Re),Ut.length===0&&Ut.push(k.createElement(oi,{isDisabled:!0,key:0,value:ne,isNoResultsOption:!0}));break}const wo=le&&Ie!=="inline",Co=k.createElement(Y0e,Object.assign({className:re(wo&&ae.modifiers.static)},xe,{isGrouped:p,selected:We},ln,{openedOnEnter:Ne,"aria-label":j,"aria-labelledby":A,sendRef:this.sendRef,keyHandler:this.handleMenuKeys,maxHeight:H,ref:this.menuComponentRef,footer:G,footerRef:this.footerRef,isLastOptionBeforeFooter:this.isLastOptionBeforeFooter}),Ut),Ri=G?k.createElement("div",{className:re(ae.selectMenu)}," ",Co," "):Co,Vi=k.createRef(),ov=k.createElement("div",Object.assign({className:re(ae.select,g&&ae.modifiers.expanded,S===En.success&&ae.modifiers.success,S===En.warning&&ae.modifiers.warning,S===En.error&&ae.modifiers.invalid,l===Lc.up&&ae.modifiers.top,o),ref:Vi},L&&{style:{width:L}},S!==En.default&&{"aria-invalid":P}),g&&Ri),ph=k.createElement("div",Object.assign({className:re(ae.select,g&&ae.modifiers.expanded,S===En.success&&ae.modifiers.success,S===En.warning&&ae.modifiers.warning,S===En.error&&ae.modifiers.invalid,l===Lc.up&&ae.modifiers.top,o),ref:this.parentRef},wc(ma.displayName,z!==void 0?z:this.state.ouiaStateId,N),L&&{style:{width:L}},S!==En.default&&{"aria-invalid":P}),k.createElement(K0e,Object.assign({id:Ct,parentRef:this.parentRef,menuRef:this.menuComponentRef,ref:h},G&&{footerRef:this.footerRef},{isOpen:g,isPlain:v,hasPlaceholderStyle:x&&(!We.length||We[0]===null||mt),onToggle:this.onToggle,onEnter:this.onEnter,onClose:this.onClose,onBlur:d,variant:s,toggleIndicator:U,"aria-labelledby":`${A||""} ${Ct}`,"aria-label":T},M&&{"aria-describedby":M},{handleTypeaheadKeys:this.handleTypeaheadKeys,moveFocusToLastMenuItem:this.moveFocusToLastMenuItem,isDisabled:b,hasClearButton:Bn,hasFooter:G!==void 0,onClickTypeaheadToggleButton:this.onClickTypeaheadToggleButton}),a&&k.createElement("div",{className:re(ae.selectToggleWrapper)},q&&k.createElement("span",{className:re(ae.selectToggleIcon)},q),k.createElement("span",{className:re(ae.selectToggleText)},$)),s===ze.single&&!a&&k.createElement(k.Fragment,null,k.createElement("div",{className:re(ae.selectToggleWrapper)},q&&k.createElement("span",{className:re(ae.selectToggleIcon)},q),k.createElement("span",{className:re(ae.selectToggleText)},this.getDisplay(We[0],"node")||$||Nn)),Bn&&Rt&&we),s===ze.checkbox&&!a&&k.createElement(k.Fragment,null,k.createElement("div",{className:re(ae.selectToggleWrapper)},q&&k.createElement("span",{className:re(ae.selectToggleIcon)},q),k.createElement("span",{className:re(ae.selectToggleText)},$),!J&&Rt&&k.createElement("div",{className:re(ae.selectToggleBadge)},k.createElement("span",{className:re(Pc.badge,Pc.modifiers.read)},this.generateSelectedBadge()))),Bn&&Rt&&we),s===ze.typeahead&&!a&&k.createElement(k.Fragment,null,k.createElement("div",{className:re(ae.selectToggleWrapper)},q&&k.createElement("span",{className:re(ae.selectToggleIcon)},q),k.createElement(uh,Object.assign({className:re(ae.selectToggleTypeahead),"aria-activedescendant":Et&&Et.id,id:`${Ct}-select-typeahead`,"aria-label":_},E&&{"aria-describedby":E},{placeholder:$,value:nt!==null?nt:this.getDisplay(We[0],"text")||"",onChange:Ke=>this.onChange(Ke),onClick:this.onClick,autoComplete:ke,isDisabled:b,ref:this.inputRef}))),Bn&&(We[0]||nt)&&we),s===ze.typeaheadMulti&&!a&&k.createElement(k.Fragment,null,k.createElement("div",{className:re(ae.selectToggleWrapper)},q&&k.createElement("span",{className:re(ae.selectToggleIcon)},q),We&&Array.isArray(We)&&We.length>0&&ot,k.createElement(uh,Object.assign({className:re(ae.selectToggleTypeahead),"aria-activedescendant":Et&&Et.id,id:`${Ct}-select-multi-typeahead-typeahead`,"aria-label":_,"aria-invalid":S===En.error},E&&{"aria-describedby":E},{placeholder:$,value:nt!==null?nt:"",onChange:Ke=>this.onChange(Ke),onClick:this.onClick,autoComplete:ke,isDisabled:b,ref:this.inputRef}))),Bn&&(We&&We.length>0||nt)&&we),S===En.success&&k.createElement("span",{className:re(ae.selectToggleStatusIcon)},k.createElement(s3,{"aria-hidden":"true"})),S===En.error&&k.createElement("span",{className:re(ae.selectToggleStatusIcon)},k.createElement(l3,{"aria-hidden":"true"})),S===En.warning&&k.createElement("span",{className:re(ae.selectToggleStatusIcon)},k.createElement(c3,{"aria-hidden":"true"}))),g&&Ie==="inline"&&Ri),yh=()=>this.parentRef&&this.parentRef.current?this.parentRef.current.parentElement:null;return k.createElement(Sc,null,Ke=>k.createElement(Jy.Provider,{value:{onSelect:c,onFavorite:I,onClose:this.onClose,variant:s,inputIdPrefix:B||Ke,shouldResetOnSelect:Y}},Ie==="inline"?ph:k.createElement(Uy,{width:"auto",trigger:ph,triggerRef:this.parentRef,popper:ov,popperRef:Vi,direction:l,appendTo:Ie==="parent"?yh():Ie,isVisible:g,zIndex:be})))}}ma.displayName="Select",ma.defaultProps={children:[],className:"",position:Ic.left,direction:Lc.down,toggleId:null,isOpen:!1,isGrouped:!1,isPlain:!1,isDisabled:!1,hasPlaceholderStyle:!1,isCreatable:!1,isCreateOptionOnTop:!1,validated:"default","aria-label":"","aria-labelledby":"","aria-describedby":"","aria-invalid":!1,typeAheadAriaLabel:"",typeAheadAriaDescribedby:"",clearSelectionsAriaLabel:"Clear all",toggleAriaLabel:"Options menu",removeSelectionAriaLabel:"Remove",selections:[],createText:"Create",placeholderText:"",noResultsFoundText:"No results found",variant:ze.single,width:"",onClear:()=>{},onCreateOption:()=>{},toggleIcon:null,toggleIndicator:null,onFilter:null,onTypeaheadInputChanged:null,customContent:null,hasInlineFilter:!1,inlineFilterPlaceholderText:null,customBadgeText:null,inputIdPrefix:"",inputAutoComplete:"off",menuAppendTo:"inline",favorites:[],favoritesLabel:"Favorites",ouiaSafe:!0,chipGroupComponent:null,isInputValuePersisted:!1,isInputFilterPersisted:!1,isCreateSelectOptionObject:!1,shouldResetOnSelect:!0,isFlipEnabled:!0,zIndex:9999};const Wi={button:"pf-v5-c-button",dirRtl:"pf-v5-m-dir-rtl",drawer:"pf-v5-c-drawer",modalBox:"pf-v5-c-modal-box",modifiers:{finished:"pf-m-finished",expanded:"pf-m-expanded",current:"pf-m-current",expandable:"pf-m-expandable",disabled:"pf-m-disabled",noPadding:"pf-m-no-padding"},pageMainWizard:"pf-v5-c-page__main-wizard",themeDark:"pf-v5-theme-dark",wizard:"pf-v5-c-wizard",wizardClose:"pf-v5-c-wizard__close",wizardDescription:"pf-v5-c-wizard__description",wizardFooter:"pf-v5-c-wizard__footer",wizardFooterCancel:"pf-v5-c-wizard__footer-cancel",wizardHeader:"pf-v5-c-wizard__header",wizardInnerWrap:"pf-v5-c-wizard__inner-wrap",wizardMain:"pf-v5-c-wizard__main",wizardMainBody:"pf-v5-c-wizard__main-body",wizardNav:"pf-v5-c-wizard__nav",wizardNavItem:"pf-v5-c-wizard__nav-item",wizardNavLink:"pf-v5-c-wizard__nav-link",wizardNavLinkText:"pf-v5-c-wizard__nav-link-text",wizardNavLinkToggle:"pf-v5-c-wizard__nav-link-toggle",wizardNavLinkToggleIcon:"pf-v5-c-wizard__nav-link-toggle-icon",wizardNavList:"pf-v5-c-wizard__nav-list",wizardOuterWrap:"pf-v5-c-wizard__outer-wrap",wizardTitle:"pf-v5-c-wizard__title",wizardTitleText:"pf-v5-c-wizard__title-text",wizardToggle:"pf-v5-c-wizard__toggle",wizardToggleIcon:"pf-v5-c-wizard__toggle-icon",wizardToggleList:"pf-v5-c-wizard__toggle-list",wizardToggleListItem:"pf-v5-c-wizard__toggle-list-item",wizardToggleNum:"pf-v5-c-wizard__toggle-num",wizardToggleSeparator:"pf-v5-c-wizard__toggle-separator"};function J0e(e){const{name:t,label:n,labelHelpTitle:r,labelHelp:i,additionalControls:o,placeholderText:a,options:s,footer:l,helperText:c,isDisabled:u,isReadOnly:d,isRequired:f,validate:h,fieldNameToResetOnFieldChange:g}=e,p=li(e),{t:v}=Me(),{control:b,setValue:x,getValues:S,formState:{isSubmitting:w,isValidating:_,defaultValues:E},resetField:O}=Yr(),[T,D]=y.useState(!1),j=y.useCallback(()=>D(!T),[T]),[A]=Pt(),M=dc(e.label,e.isRequired),P=Ps(E,e.name);return y.useEffect(()=>{S(e.name)||s.length===1&&f&&x(e.name,s[0].value)},[S,f,s,e.name,x]),m.jsx(Ts,{name:t,control:b,defaultValue:e.defaultValue,shouldUnregister:!0,render:({field:{onChange:$,value:L},fieldState:{error:H}})=>{const q=(N,R)=>{var ee;const J=(ee=s.find(X=>X.label===R.toString()))==null?void 0:ee.value;$(J),g&&O(g),e.onChange&&e.onChange(J),D(!1)},U=H!=null&&H.message?h&&_?A.validating:H==null?void 0:H.message:void 0,z=s.find(N=>N.value===L);return m.jsx(bc,{fieldId:p,label:n,labelHelpTitle:r??n,labelHelp:i,additionalControls:o,helperText:c,helperTextInvalid:U,isRequired:f,children:m.jsxs("div",{style:{display:"flex"},children:[m.jsx(ma,{id:p,itemID:p,placeholderText:a,variant:"single","aria-describedby":`${p}-form-group`,selections:z==null?void 0:z.label,onSelect:q,isOpen:T,onToggle:j,onClear:f?void 0:()=>{$(null),D(!1)},maxHeight:280,validated:U?"error":void 0,isDisabled:u||d||w,hasPlaceholderStyle:!0,footer:l,ouiaId:"menu-select","data-cy":p,children:s.map(N=>{const R=Br(N);return m.jsx(oi,{id:R,value:N.label,label:N.label,description:N.description,"data-cy":R,children:N.label},N.label)})}),m.jsx(Wr,{actions:[{label:v("Undo changes"),type:it.Button,selection:Ge.None,onClick:()=>{x(e.name,P)},isHidden:()=>!e.enableUndo||L===P},{label:v("Reset to default"),type:it.Button,selection:Ge.None,onClick:()=>{x(e.name,e.defaultValue)},isHidden:()=>!e.enableReset||L===e.defaultValue}],variant:C.ButtonVariant.control,position:"right"})]})})},rules:{required:M,validate:h}})}function Q0e(e){const{name:t,helperText:n,validate:r,additionalControls:i,label:o,labelHelp:a,labelHelpTitle:s,labelOn:l,labelOff:c}=e,{control:u,formState:{isSubmitting:d,isValidating:f}}=Yr(),h=li(e);return m.jsx(Ts,{name:t,control:u,shouldUnregister:!0,render:({field:{onChange:g,value:p},fieldState:{error:v}})=>{const b=r&&f||v==null?void 0:v.message;return m.jsx(bc,{fieldId:h,"data-cy":h+"-form-group",label:o,labelHelpTitle:s??o,labelHelp:a,helperText:n,helperTextInvalid:b,additionalControls:i,children:m.jsx(C.Switch,{"data-cy":h+"-toggle","aria-label":o,isChecked:p,onChange:x=>g(x),isDisabled:d,label:l,labelOff:c})})}})}function ege(e){const{type:t,name:n,label:r,labelHelpTitle:i,labelHelp:o,additionalControls:a,placeholder:s,button:l,helperText:c,isDisabled:u,isReadOnly:d,isRequired:f,validate:h,minLength:g,maxLength:p,min:v,max:b,pattern:x,selectTitle:S,selectOpen:w,selectValue:_,autoFocus:E,autoComplete:O,disableAutoResize:T}=e,D=li(e),{control:j,setValue:A,formState:{isSubmitting:M,isValidating:P}}=Yr(),[$,L]=y.useState(!1),[H]=Pt(),q=dc(e.label,e.isRequired);return m.jsx(Ts,{name:n,control:j,shouldUnregister:!0,render:({field:{onChange:U,value:z,name:N},fieldState:{error:R}})=>{const J=R!=null&&R.message?h&&P?H.validating:R==null?void 0:R.message:void 0;function ee(X){U(X.trimStart())}return m.jsx(bc,{fieldId:D,label:r,labelHelpTitle:i??r,labelHelp:o,additionalControls:a,helperText:c,helperTextInvalid:J,isRequired:f,children:m.jsxs(C.InputGroup,{children:[m.jsx(C.InputGroupItem,{isFill:!0,children:m.jsx(C.TextArea,{id:D,placeholder:s,onChange:(X,Q)=>ee(Q),value:z??"","aria-describedby":D?`${D}-form-group`:void 0,validated:J?"error":void 0,type:t==="password"?$?"text":"password":t,readOnlyVariant:d?"default":void 0,isDisabled:u,autoFocus:E,autoComplete:O||"off","data-cy":D,autoResize:T===void 0?!0:!T,rows:1,resizeOrientation:"vertical"})}),t==="password"&&m.jsx(C.Button,{variant:"control",onClick:()=>L(!$),isDisabled:u||d,children:$?m.jsx(ve.EyeIcon,{}):m.jsx(ve.EyeSlashIcon,{})}),S&&m.jsx(C.Button,{ouiaId:`lookup-${N}-button`,variant:"control",onClick:()=>w==null?void 0:w(X=>{if(_){const Q=_(X);A(N,Q,{shouldValidate:!0})}},S),"aria-label":"Options menu",isDisabled:u||M,children:m.jsx(ve.SearchIcon,{})}),l&&l]})})},rules:{required:q,validate:h,minLength:typeof r=="string"&&typeof g=="number"?{value:g,message:`${Xr(r.toLocaleLowerCase())} must be at least ${g} characters.`}:g,maxLength:typeof r=="string"&&typeof p=="number"?{value:p,message:`${Xr(r.toLocaleLowerCase())} cannot be greater than ${p} characters.`}:p,min:typeof r=="string"&&(typeof v=="number"||typeof v=="string")?{value:v,message:`${Xr(r.toLocaleLowerCase())} must be less than ${v}.`}:g,max:typeof r=="string"&&(typeof b=="number"||typeof b=="string")?{value:b,message:`${Xr(r.toLocaleLowerCase())} cannot be greater than ${b}.`}:g,pattern:x}})}function tge(e){const{type:t,name:n,label:r,labelHelpTitle:i,labelHelp:o,additionalControls:a,placeholder:s,button:l,helperText:c,isDisabled:u,isReadOnly:d,isRequired:f,validate:h,minLength:g,maxLength:p,min:v,max:b,pattern:x,selectTitle:S,selectOpen:w,selectValue:_,autoFocus:E,autoComplete:O}=e,T=li(e),{t:D}=Me(),{control:j,setValue:A,formState:{isSubmitting:M,isValidating:P,defaultValues:$}}=Yr(),[L,H]=y.useState(!1),[q]=Pt(),U=dc(e.label,e.isRequired),z=Ps($,e.name);return m.jsx(Ts,{name:n,control:j,shouldUnregister:!0,defaultValue:e.defaultValue,render:({field:{onChange:N,value:R,name:J},fieldState:{error:ee}})=>{const X=ee!=null&&ee.message?h&&P?q.validating:ee==null?void 0:ee.message:void 0;let Q=R;switch(t){case"datetime-local":if(R){const ue=new Date(R);Q=new Date(ue.getTime()-ue.getTimezoneOffset()*6e4).toISOString().slice(0,16)}break}function ie(ue){switch(e.type){case"datetime-local":{N(new Date(ue).toISOString());break}case"number":{let de=Number(ue);if(ue===""||isNaN(de)){A(J,null),N(null);return}b!==void 0&&de>Number(b)&&(de=Number(b)),v!==void 0&&de<Number(v)&&(de=Number(v)),A(J,de),N(de);break}default:N(ue.trimStart())}}return m.jsx(bc,{fieldId:T,label:r,labelHelpTitle:i??r,labelHelp:o,additionalControls:a,helperText:c,helperTextInvalid:X,isRequired:f,children:m.jsxs(C.InputGroup,{children:[m.jsx(C.InputGroupItem,{isFill:!0,children:m.jsx(C.TextInput,{id:T,placeholder:s,onChange:(ue,de)=>ie(de),value:Q??"","aria-describedby":T?`${T}-form-group`:void 0,validated:X?"error":void 0,type:t==="password"?L?"text":"password":t,readOnlyVariant:d?"default":void 0,isDisabled:u,autoFocus:E,autoComplete:O||"off","data-cy":T})}),t==="password"&&m.jsx(C.Button,{variant:"control",onClick:()=>H(!L),isDisabled:u||d,children:L?m.jsx(ve.EyeIcon,{}):m.jsx(ve.EyeSlashIcon,{})}),S&&m.jsx(C.Button,{ouiaId:`lookup-${J}-button`,variant:"control",onClick:()=>w==null?void 0:w(ue=>{if(_){const de=_(ue);A(J,de,{shouldValidate:!0})}},S),"aria-label":"Options menu",isDisabled:u||M,children:m.jsx(ve.SearchIcon,{"data-cy":"lookup-button"})}),l,m.jsx(Wr,{actions:[{label:D("Undo changes"),type:it.Button,selection:Ge.None,onClick:()=>{A(e.name,z)},isHidden:()=>!e.enableUndo||R===z},{label:D("Reset to default"),type:it.Button,selection:Ge.None,onClick:()=>{A(e.name,e.defaultValue)},isHidden:()=>!e.enableReset||R===e.defaultValue}],variant:C.ButtonVariant.control,position:"right"})]})})},rules:{required:U,validate:h,minLength:typeof r=="string"&&typeof g=="number"?{value:g,message:`${Xr(r.toLocaleLowerCase())} must be at least ${g} characters.`}:g,maxLength:typeof r=="string"&&typeof p=="number"?{value:p,message:`${Xr(r.toLocaleLowerCase())} cannot be greater than ${p} characters.`}:p,min:typeof r=="string"&&(typeof v=="number"||typeof v=="string")?{value:v,message:`${Xr(r.toLocaleLowerCase())} must be greater or equal to ${v}.`}:g,max:typeof r=="string"&&(typeof b=="number"||typeof b=="string")?{value:b,message:`${Xr(r.toLocaleLowerCase())} cannot be greater than ${b}.`}:b,pattern:x}})}const nv=y.createContext({isOpen:!1,setState:()=>({})});function fh(){return y.useContext(nv)}function m3(e){const t=cn("xl"),[n,r]=y.useState(()=>t),i=y.useCallback(o=>{o.isOpen!==void 0&&r(o.isOpen)},[]);return y.useEffect(()=>i({isOpen:t}),[t,i]),m.jsx(nv.Provider,{value:{isOpen:n,setState:i},children:e.children})}function g3(){const e=Ot.useNavigate(),t=cn("xl"),n=fh();return y.useCallback(i=>{e(i),t||n.setState({isOpen:!n.isOpen})},[e,t,n])}const rv=y.createContext([{},()=>{}]);function nge(){return y.useContext(rv)[0]}function rge(){return y.useContext(rv)}function ige(e){const[t,n]=y.useState({}),r=y.useCallback(o=>{n(p3("",o))},[]),i=y.useMemo(()=>[t,r],[t,r]);return m.jsx(rv.Provider,{value:i,children:e.children})}function p3(e,t){const n={};return t.forEach(r=>{const i=(e+"/"+r.path).replace("//","/");"id"in r&&typeof r.id=="string"&&(n[r.id]=i),"children"in r&&Object.assign(n,p3(i,r.children))}),n}const y3=y.createContext({notificationsDrawerOpen:!1,setNotificationsDrawerOpen:()=>{throw new Error("PageNotificationsContext not implemented")},notificationGroups:{},setNotificationGroups:()=>{throw new Error("PageNotificationsContext not implemented")}});function hh(){return y.useContext(y3)}function oge(e){const[t,n]=y.useState(!1),[r,i]=y.useState({});return m.jsx(y3.Provider,{value:{notificationGroups:r,setNotificationGroups:i,notificationsDrawerOpen:t,setNotificationsDrawerOpen:n},children:e.children})}function age(e){const{t}=Me(),{notificationsDrawerOpen:n,setNotificationsDrawerOpen:r}=hh(),i=y.useRef(null);function o(){var s;r(!1),(s=i.current)==null||s.focus()}const{notificationGroups:a}=hh();return m.jsx(C.Drawer,{isExpanded:n,onExpand:()=>r(!0),children:m.jsx(C.DrawerContent,{panelContent:m.jsx(C.DrawerPanelContent,{children:m.jsxs(C.NotificationDrawer,{"data-cy":"notifications-drawer",children:[m.jsx(C.NotificationDrawerHeader,{title:t("Notifications"),children:m.jsx(C.DrawerCloseButton,{onClick:o})}),m.jsx(C.NotificationDrawerBody,{children:m.jsx(C.NotificationDrawerGroupList,{children:Object.values(a).map((s,l)=>m.jsx(lge,{group:s},l))})})]})}),children:m.jsx(sge,{children:e.children})})})}const sge=De(C.DrawerContentBody)`
|
495
495
|
max-height: 100%;
|
496
496
|
`;function lge(e){const{t}=Me(),[n,r]=y.useState(!0);return m.jsx(C.NotificationDrawerGroup,{title:e.group.title,isExpanded:n,count:e.group.notifications.length,onExpand:(i,o)=>r(o),children:m.jsxs(C.NotificationDrawerList,{isHidden:!n,children:[e.group.notifications.map((i,o)=>m.jsx(cge,{notification:i},o)),e.group.notifications.length===0&&m.jsxs(C.EmptyState,{variant:C.EmptyStateVariant.full,children:[m.jsx(C.EmptyStateHeader,{headingLevel:"h2",titleText:t("No notifications")}),m.jsx(C.EmptyStateBody,{children:t("There are currently no notifications.")})]})]})})}function cge(e){const t=e.notification.variant==="info"?void 0:e.notification.variant,n=Ot.useNavigate(),{setNotificationsDrawerOpen:r}=hh(),i=e.notification.timestamp?new Date(e.notification.timestamp):void 0,o=i?`${i.toLocaleDateString()} ${i.toLocaleTimeString()}`:void 0;return m.jsxs(C.NotificationDrawerListItem,{variant:e.notification.variant,onClick:()=>{n(e.notification.to),r(!1)},children:[m.jsx(C.NotificationDrawerListItemHeader,{title:e.notification.title,variant:t}),m.jsx(C.NotificationDrawerListItemBody,{timestamp:o,children:e.notification.description})]})}function uge(e){return m.jsx(vv,{children:m.jsx(l1,{defaultRefreshInterval:e.defaultRefreshInterval,children:m.jsx(ige,{children:m.jsx(PE,{children:m.jsx(bb,{children:m.jsx(m3,{children:m.jsx(oge,{children:m.jsx(y7,{children:e.children})})})})})})})})}function v3(e){const[t]=Pt();return m.jsx(xb,{message:t.errorText,children:m.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%"},children:e.children})})}function dge(e){const t=cn("sm");return m.jsxs(C.Masthead,{display:{default:"inline"},style:{borderBottom:"1px solid #fff4",paddingRight:0},children:[m.jsx(b3,{}),t&&m.jsx(C.MastheadMain,{children:m.jsx(C.MastheadBrand,{component:n=>m.jsx(Ot.Link,{...n,to:"/"}),children:e.brand})}),m.jsx(C.MastheadContent,{style:{marginLeft:0,minHeight:0},children:m.jsx(C.Toolbar,{id:"toolbar","data-cy":"toolbar",inset:{default:"insetNone"},style:{padding:0},children:m.jsx(C.ToolbarContent,{children:e.children})})})]})}function b3(){const e=fh();return m.jsx(C.MastheadToggle,{onClick:()=>e.setState({isOpen:!e.isOpen}),children:m.jsx(C.PageToggleButton,{"data-cy":"nav-toggle",variant:"plain","aria-label":"Global navigation",children:m.jsx(ve.BarsIcon,{})})})}function fge(){const{setNotificationsDrawerOpen:e,notificationGroups:t}=hh(),n=Object.values(t).reduce((r,i)=>r+i.notifications.length,0);return m.jsx(C.NotificationBadge,{"data-cy":"notification-badge",variant:n===0?"read":"unread",count:n,onClick:()=>e(r=>!r)})}function hge(){const[e,t]=y.useContext(No);return e.activeTheme==="dark"?m.jsx(C.Button,{"data-cy":"settings-icon",variant:"plain",onClick:()=>t({...e,theme:"light"}),children:m.jsx(ve.MoonIcon,{})}):m.jsx(C.Button,{"data-cy":"theme-icon",variant:"plain",onClick:()=>t({...e,theme:"dark"}),children:m.jsx(ve.SunIcon,{})})}function x3(e){const{navigation:t}=e,n=fh();return m.jsx(C.PageSidebar,{isSidebarOpen:n.isOpen,className:"bg-lighten",children:m.jsxs(C.PageSidebarBody,{children:[e.contextSwitcher&&m.jsxs(m.Fragment,{children:[m.jsx(C.PageSection,{style:{background:"transparent",paddingTop:16},children:m.jsx(C.Stack,{hasGutter:!0,children:e.contextSwitcher})}),m.jsx(C.Divider,{})]}),m.jsx(C.Nav,{"data-cy":"page-navigation",className:"side-nav",children:m.jsx(C.NavList,{children:m.jsx(mh,{baseRoute:e.basename??"",items:t})})})]})})}function mh(e){return m.jsx(m.Fragment,{children:e.items.filter(t=>"hidden"in t?t.hidden!==!0:!0).map((t,n)=>m.jsx(mge,{item:t,baseRoute:e.baseRoute},t.id??t.label??n))})}function mge(e){var u,d;const{item:t}=e,[n,r]=y.useState(()=>localStorage.getItem("default-nav-expanded")==="true"||localStorage.getItem((t.id??t.label)+"-expanded")==="true"),i=f=>{r(f),localStorage.setItem((t.id??t.label)+"-expanded",f?"true":"false")};let o;if("id"in e.item)o=e.item.id;else if("children"in e.item){const f=e.item.children.find(h=>h.path==="");f&&"id"in f&&(o=f.id)}o||(o=(u=e.item.label)==null?void 0:u.split(" ").join("-").toLowerCase());const a=g3();let s=e.baseRoute+"/"+t.path;if(s=s.replace("//","/"),t.path==="/"&&"children"in t)return m.jsx(mh,{items:t.children,baseRoute:""});const l="children"in t&&((d=t.children)==null?void 0:d.find(f=>f.label)),c={fontSize:"small",opacity:.5,textAlign:"left"};if(!l&&"label"in t){let f=(process.env.ROUTE_PREFIX??"")+s;f=f.replace("//","/");const h=t.href?!1:location.pathname.startsWith(f);return m.jsxs(C.NavItem,{id:o,href:t.href||s,isActive:h,className:h?"bg-lighten":void 0,onClick:()=>t.href?window.open(t.href,"_blank"):a(s),target:t.href?"_blank":"","data-cy":o,style:{display:"flex",alignItems:"stretch",flexDirection:"column"},children:[m.jsxs(C.Flex,{children:[m.jsx(C.FlexItem,{grow:{default:"grow"},children:t.label}),"badge"in t&&t.badge&&m.jsx(C.FlexItem,{children:m.jsx(C.Label,{isCompact:!0,variant:"outline",color:t.badgeColor,children:t.badge})}),"href"in t&&t.href&&m.jsx("span",{className:"pf-v5-c-nav__toggle",children:m.jsx("span",{className:"pf-v5-c-nav__toggle-icon",children:m.jsx(ve.ExternalLinkAltIcon,{})})})]}),t.subtitle&&m.jsx("div",{style:c,children:t.subtitle})]})}return!l||t.label===void 0?null:t.label?m.jsx(C.NavExpandable,{buttonProps:{id:o},title:m.jsxs("div",{children:[m.jsx("div",{style:{textAlign:"left"},children:t.label}),t.subtitle&&m.jsx("div",{style:c,children:t.subtitle})]}),isExpanded:n,onExpand:(f,h)=>i(h),children:m.jsx(mh,{items:t.children,baseRoute:s})}):m.jsx(mh,{items:t.children,baseRoute:s})}function gge(e){const{navigation:t,masthead:n}=e,r=y.useMemo(()=>[{path:e.basename??"/",element:m.jsx(C.Page,{header:n,sidebar:m.jsx(x3,{navigation:t,basename:e.basename,contextSwitcher:e.contextSwitcher}),children:m.jsx(age,{children:m.jsxs("div",{style:{maxHeight:"100%",overflow:"hidden",height:"100%",display:"flex",flexDirection:"column"},children:[e.banner,m.jsx("div",{style:{flexGrow:1,overflow:"hidden"},children:m.jsx(Ot.Outlet,{})})]})})}),children:t.filter(({href:a})=>!a)},{path:"*",element:m.jsx(qE,{})}],[n,t,e.banner,e.basename,e.contextSwitcher]),[i,o]=rge();return y.useEffect(()=>o(r),[r,o]),m.jsx(Ot.Routes,{children:r.map(_3)})}function _3(e){var t;return m.jsx(Ot.Route,{path:e.path,element:e.element,children:(t=e.children)==null?void 0:t.map(_3)},e.path)}function pge(e){return e.replace(/^\//,"")}function S3(e,t){for(const n of e){if("id"in n&&n.id===t)return n;if("children"in n){const r=S3(n.children,t);if(r)return r}}}function w3(e,t){for(let n=0;n<e.length;n++){const r=e[n];if("id"in r&&r.id===t)return e.splice(n,1),r;if("children"in r){const i=w3(r.children,t);if(i)return i}}}function C3(e,t,n){for(const r of e)if("id"in r&&r.id===t){const i=r;"children"in r||(i.children=[]),i.children.push(n);return}else"children"in r&&C3(r.children,t,n)}function E3(e,t,n){for(let r=0;r<e.length;r++){const i=e[r];if("id"in i&&i.id===t){e.splice(r+1,0,n);return}else"children"in i&&E3(i.children,t,n)}}function O3(e,t,n){for(let r=0;r<e.length;r++){const i=e[r];if("id"in i&&i.id===t){e.splice(r,0,n);return}else"children"in i&&O3(i.children,t,n)}}function k3(){const e=nge();return y.useCallback((t,n)=>{let r=e[t]??"";const i=n==null?void 0:n.params,o=n==null?void 0:n.query;return r&&(i&&(r=Object.keys(i).reduce((a,s)=>{let l=i[s];if(l===void 0)return a;l=encodeURIComponent(l.toString());const c=":"+s,u=new RegExp(c+"(?!.*"+c+")","g");return a.replace(u,l)},r)),o&&(r=`${r}?${Object.keys(o).map(a=>{let s=o[a];return s===void 0?"":(s=encodeURIComponent(s.toString()),`${a}=${s}`)}).join("&").replace("/&&/g","&")}`)),r},[e])}function yge(){const e=Ot.useNavigate(),t=k3();return y.useCallback((n,r)=>{const i=t(n,r);i&&e(i)},[e,t])}function vge(e){const{loading:t}=e,[n,r]=y.useState((e==null?void 0:e.initialTabIndex)??0),i=y.useCallback((l,c)=>r(c),[r]),o=y.Children.toArray(e.children),a=o.map((l,c)=>{if(y.isValidElement(l)&&l.type===iv){const u=l.props.label;return m.jsx(C.Tab,{title:u||m.jsx(C.Skeleton,{width:"60px"}),eventKey:c},u??c)}return l}),s=o[n];return t?m.jsx(C.Tabs,{style:{flexShrink:0,backgroundColor:"var(--pf-v5-c-tabs__link--BackgroundColor)"},children:m.jsx(iv,{children:m.jsx(C.PageSection,{variant:"light",children:m.jsx(C.Skeleton,{})})})}):m.jsxs(m.Fragment,{children:[m.jsx(C.Tabs,{activeKey:n,onSelect:i,inset:{default:"insetSm"},isBox:!0,style:{flexShrink:0,backgroundColor:"var(--pf-v5-c-tabs__link--BackgroundColor)"},children:a}),s]})}function iv(e){return m.jsx(m.Fragment,{children:e.children})}function bge(e,t,n,r){return(i,o)=>{e(a=>{r?r(a):i(a.map(s=>t(s)))},o?o.map(a=>n(a)):[])}}function xge(e,t,n,r){return(i,o)=>{e(a=>{r?r(a):i(t(a))},o?n(o):void 0)}}function _ge(){const[e,t]=y.useState(!0);return y.useEffect(()=>()=>{t(!1)},[]),e}function Sge(){const e=y.useRef({isMounted:!0});return y.useEffect(()=>()=>{e.current.isMounted=!1},[]),e}function T3(){const e=_ge(),[t,n]=y.useState(e?window.location:void 0),r=y.useCallback(()=>{n(window.location)},[]);y.useEffect(()=>{if(e)return t||r(),window.addEventListener("popstate",r),()=>{window.removeEventListener("popstate",r)}},[e,t,r]);const i=y.useCallback(a=>{window.history.replaceState(null,"",a),r()},[r]),o=y.useCallback(a=>{window.history.replaceState(null,"",a),r()},[r]);return{location:t,push:i,update:o}}function A3(){var i,o;const e=T3(),t=((i=e.location)==null?void 0:i.pathname)||"/",n=y.useMemo(()=>{var s;let a=(s=e.location)==null?void 0:s.search;return a&&a.includes("?specPath=")?a=a.substring(0,a.indexOf("?specPath=")):a&&a.includes("&specPath=")&&(a=a.substring(0,a.indexOf("&specPath="))),new URLSearchParams(a??"/")},[(o=e.location)==null?void 0:o.search]),r=y.useCallback(a=>{const s=a.toString();s?e.update("?"+s):e.update(t)},[e,t]);return[n,r]}const D3=y.createContext({});function ga(){return y.useContext(D3)}function wge(e,t){return!e.hidden||!e.hidden(t)?e:null}function zi(e){return(e==null?void 0:e.substeps)!==void 0}function Cge(e){const{steps:t,onSubmit:n}=e,[r,i]=y.useState(!1),[o,a]=y.useState(null),[s,l]=y.useState({}),[c,u]=y.useState(e.stepDefaults??{}),[d,f]=y.useState({}),[h,g]=y.useState(),[p,v]=y.useState(!1),[b,x]=A3(),S=y.useMemo(()=>Ege(t),[t]);y.useEffect(()=>{if(process.env.NODE_ENV==="development")for(const O in e.stepDefaults)t.find(T=>T.id===O)||console.warn(`PageWizardProvider: defaultValue key '${O}' not found in steps.`)},[e.stepDefaults,t]),y.useEffect(()=>{const O=gh(t,s);o||!O.length||(O[0].substeps?a(O[0].substeps[0]):a(O[0]))},[o,t,s]);const w=y.useCallback(async(O={})=>{var M;const T=j3(t,{...s,...O});if(o===null)return Promise.resolve();if(!zi(o)&&o.validate&&await o.validate(O,s),(o==null?void 0:o.id)===((M=T[T.length-1])==null?void 0:M.id)){v(!0);try{await n(s)}catch(P){g(P instanceof Error?P:new Error(uc("An error occurred.")))}finally{v(!1)}return}const j=T.findIndex(P=>P.id===(o==null?void 0:o.id)),A=zi(T[j+1])?T[j+2]:T[j+1];return x(new URLSearchParams("")),l(P=>({...P,...O})),u(P=>({...P,[o==null?void 0:o.id]:O})),a(A),Promise.resolve()},[o,t,n,x,s,g]),_=y.useCallback(()=>{const O=gh(S,s),T=O.findIndex(j=>j.id===(o==null?void 0:o.id)),D=zi(O[T-1])?O[T-2]:O[T-1];x(new URLSearchParams("")),a(D)},[o==null?void 0:o.id,S,x,s]),E=y.useMemo(()=>({wizardData:s,setWizardData:l,stepData:c,setStepData:u,steps:e.steps,visibleSteps:gh(t,s),visibleStepsFlattened:j3(t,s),activeStep:o,setActiveStep:a,stepError:d,setStepError:f,submitError:h,setSubmitError:g,isToggleExpanded:r,setToggleExpanded:i,onNext:w,onBack:_,isSubmitting:p}),[s,l,c,u,e.steps,t,o,a,d,f,h,g,r,i,w,_,p]);return m.jsx(D3.Provider,{value:E,children:e.children})}function Ege(e){return e.reduce((t,n)=>(t.push(n),zi(n)&&t.push(...n.substeps),t),[])}function gh(e,t){return e.filter(n=>wge(n,t))}function j3(e,t){return gh(e,t).reduce((r,i)=>(r.push(i),zi(i)&&r.push(...i.substeps),r),[])}function P3(e){const{t}=Me(),{activeStep:n,visibleStepsFlattened:r,setSubmitError:i}=ga(),o=(n==null?void 0:n.id)===r[r.length-1].id,a=t(o?"Finish":"Next"),s=zi(r[0])?(n==null?void 0:n.id)===r[1].id:(n==null?void 0:n.id)===r[0].id,l=s?"pf-v5-c-button pf-m-disabled":"pf-v5-c-button pf-m-secondary";return m.jsxs("footer",{className:"pf-v5-c-wizard__footer border-top bg-lighten","data-cy":"wizard-footer",children:[n!==null&&"inputs"in n?m.jsx(Jp,{style:{minWidth:10},children:a}):m.jsx("button",{"data-cy":"wizard-next",className:"pf-v5-c-button pf-m-primary",type:"submit",onClick:()=>{var c;i(void 0),(c=e.onNext)==null||c.call(e)},children:a}),m.jsx("button",{type:"button","data-cy":"wizard-back",className:l,disabled:s,onClick:()=>{var c;i(void 0),(c=e.onBack)==null||c.call(e)},children:t("Back")}),m.jsx("div",{"data-cy":"wizard-cancel",className:"pf-v5-c-wizard__footer-cancel",children:m.jsx("button",{className:"pf-v5-c-button pf-m-link",type:"button",onClick:e.onCancel,children:t("Cancel")})})]})}function Oge({onCancel:e,disableGrid:t,errorAdapter:n,isVertical:r,singleColumn:i}){const o=Ot.useNavigate(),{activeStep:a,stepData:s,onNext:l,onBack:c,submitError:u,isSubmitting:d}=ga(),f=y.useCallback(()=>{e?e():o(-1)},[o,e]);return d?m.jsx(C.Bullseye,{children:m.jsx(C.Spinner,{})}):m.jsxs(v3,{children:[m.jsx(Tge,{error:u}),a!==null&&("inputs"in a?m.jsxs(wO,{onSubmit:l,footer:m.jsx(P3,{onBack:c,onCancel:f}),defaultValue:s[a.id],errorAdapter:n,disableGrid:t,isVertical:r,singleColumn:i,isWizard:!0,children:[m.jsx(kge,{}),a.inputs]},a.id):m.jsxs("div",{"data-cy":`wizard-section-${a.id}`,style:{display:"flex",flexDirection:"column",flexGrow:1,overflow:"hidden"},children:[m.jsx(C.PageSection,{"aria-label":uc("Wizard step content"),hasOverflowScroll:!0,isFilled:!0,variant:"light",children:a==null?void 0:a.element}),m.jsx(P3,{onNext:()=>void l({}),onBack:c,onCancel:f})]}))]})}function kge(){const{activeStep:e,setStepError:t}=ga(),{errors:n}=Gp(),r=JSON.stringify(n);return y.useEffect(()=>{Object.keys(n).length===0?t({}):e&&t({[e.id]:n})},[n,e,t,r]),null}function Tge(e){const{t}=Me(),n=e.error;if(!e.error)return null;if(!(e.error instanceof Error))return typeof e.error=="string"?m.jsx(C.Alert,{variant:"danger",title:e.error}):m.jsx(C.Alert,{variant:"danger",title:t("An error occurred.")});if("message"in e.error&&!n.json)return m.jsx(C.Alert,{variant:"danger",title:e.error.message});if(n.json)return m.jsx(C.Alert,{variant:"danger",title:n.message,isInline:!0,children:Object.values(n.json).map((r,i)=>m.jsx("div",{children:r},i))})}const Age=De.div`
|
497
497
|
background-color: var(--pf-v5-global--BackgroundColor--light-100);
|