171 lines
1.3 MiB
JavaScript
171 lines
1.3 MiB
JavaScript
|
|
var pL=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Pme=pL((xi,_i)=>{function mL(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function Cr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hx={exports:{}},Mf={};/**
|
||
|
|
* @license React
|
||
|
|
* react-jsx-runtime.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var y4;function gL(){if(y4)return Mf;y4=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,a){var s=null;if(a!==void 0&&(s=""+a),i.key!==void 0&&(s=""+i.key),"key"in i){a={};for(var d in i)d!=="key"&&(a[d]=i[d])}else a=i;return i=a.ref,{$$typeof:e,type:r,key:s,ref:i!==void 0?i:null,props:a}}return Mf.Fragment=t,Mf.jsx=n,Mf.jsxs=n,Mf}var x4;function vL(){return x4||(x4=1,Hx.exports=gL()),Hx.exports}var u=vL(),Ux={exports:{}},Af={},qx={exports:{}},Gx={};/**
|
||
|
|
* @license React
|
||
|
|
* scheduler.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var _4;function yL(){return _4||(_4=1,function(e){function t(W,ie){var pe=W.length;W.push(ie);e:for(;0<pe;){var je=pe-1>>>1,H=W[je];if(0<i(H,ie))W[je]=ie,W[pe]=H,pe=je;else break e}}function n(W){return W.length===0?null:W[0]}function r(W){if(W.length===0)return null;var ie=W[0],pe=W.pop();if(pe!==ie){W[0]=pe;e:for(var je=0,H=W.length,Q=H>>>1;je<Q;){var ue=2*(je+1)-1,Y=W[ue],ye=ue+1,se=W[ye];if(0>i(Y,pe))ye<H&&0>i(se,Y)?(W[je]=se,W[ye]=pe,je=ye):(W[je]=Y,W[ue]=pe,je=ue);else if(ye<H&&0>i(se,pe))W[je]=se,W[ye]=pe,je=ye;else break e}}return ie}function i(W,ie){var pe=W.sortIndex-ie.sortIndex;return pe!==0?pe:W.id-ie.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,d=s.now();e.unstable_now=function(){return s.now()-d}}var f=[],p=[],m=1,y=null,_=3,b=!1,j=!1,E=!1,C=!1,T=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function D(W){for(var ie=n(p);ie!==null;){if(ie.callback===null)r(p);else if(ie.startTime<=W)r(p),ie.sortIndex=ie.expirationTime,t(f,ie);else break;ie=n(p)}}function N(W){if(E=!1,D(W),!j)if(n(f)!==null)j=!0,R||(R=!0,U());else{var ie=n(p);ie!==null&&we(N,ie.startTime-W)}}var R=!1,z=-1,q=5,X=-1;function J(){return C?!0:!(e.unstable_now()-X<q)}function V(){if(C=!1,R){var W=e.unstable_now();X=W;var ie=!0;try{e:{j=!1,E&&(E=!1,k(z),z=-1),b=!0;var pe=_;try{t:{for(D(W),y=n(f);y!==null&&!(y.expirationTime>W&&J());){var je=y.callback;if(typeof je=="function"){y.callback=null,_=y.priorityLevel;var H=je(y.expirationTime<=W);if(W=e.unstable_now(),typeof H=="function"){y.callback=H,D(W),ie=!0;break t}y===n(f)&&r(f),D(W)}else r(f);y=n(f)}if(y!==null)ie=!0;else{var Q=n(p);Q!==null&&we(N,Q.startTime-W),ie=!1}}break e}finally{y=null,_=pe,b=!1}ie=void 0}}finally{ie?U():R=!1}}}var U;if(typeof A=="function")U=function(){A(V)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,Se=ne.port2;ne.port1.onmessage=V,U=function(){Se.postMessage(null)}}else U=function(){T(V,0)};function we(W,ie){z=T(function(){W(e.unstable_now())},ie)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(W){W.callback=null},e.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<W?Math.floor(1e3/W):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_next=function(W){switch(_){case 1:case 2:case 3:var ie=3;break;default:ie=_}var pe=_;_=ie;try{return W()}finally{_=pe}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(W,ie){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var pe=_;_=W;try{return ie()}finally{_=pe}},e.unstable_scheduleCallback=function(W,ie,pe){var je=e.unstable_now();switch(typeof pe=="object"&&pe!==null?(pe=pe.delay,pe=typeof pe=="number"&&0<pe?je+pe:je):pe=je,W){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=pe+H,W={id:m++,callback:ie,priorityLevel:W,startTime:pe,expirationTime:H,sortIndex:-1},pe>je?(W.sortIndex=pe,t(p,W),n(f)===null&&W===n(p)&&(E?(k(z),z=-1):E=!0,we(N,pe-je))):(W.sortIndex=H,t(f,W),j||b||(j=!0,R||(R=!0,U()))),W},e.unstable_shouldYield=J,e.unstable_wrapCallback=function(W){var ie=_;return function(){var pe=_;_=ie;try{return W.apply(this,arguments)}finally{_=pe}}}}(Gx)),Gx}var b4;function xL(){return b4||(b4=1,qx.exports=yL()),qx.exports}var Zx={exports:{}},vt={};/**
|
||
|
|
* @license React
|
||
|
|
* react.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var w4;function _L(){if(w4)return vt;w4=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function _(H){return H===null||typeof H!="object"?null:(H=y&&H[y]||H["@@iterator"],typeof H=="function"?H:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,E={};function C(H,Q,ue){this.props=H,this.context=Q,this.refs=E,this.updater=ue||b}C.prototype.isReactComponent={},C.prototype.setState=function(H,Q){if(typeof H!="object"&&typeof H!="function"&&H!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,H,Q,"setState")},C.prototype.forceUpdate=function(H){this.updater.enqueueForceUpdate(this,H,"forceUpdate")};function T(){}T.prototype=C.prototype;function k(H,Q,ue){this.props=H,this.context=Q,this.refs=E,this.updater=ue||b}var A=k.prototype=new T;A.constructor=k,j(A,C.prototype),A.isPureReactComponent=!0;var D=Array.isArray,N={H:null,A:null,T:null,S:null,V:null},R=Object.prototype.hasOwnProperty;function z(H,Q,ue,Y,ye,se){return ue=se.ref,{$$typeof:e,type:H,key:Q,ref:ue!==void 0?ue:null,props:se}}function q(H,Q){return z(H.type,Q,void 0,void 0,void 0,H.props)}function X(H){return typeof H=="object"&&H!==null&&H.$$typeof===e}function J(H){var Q={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(ue){return Q[ue]})}var V=/\/+/g;function U(H,Q){return typeof H=="object"&&H!==null&&H.key!=null?J(""+H.key):Q.toString(36)}function ne(){}function Se(H){switch(H.status){case"fulfilled":return H.value;case"rejected":throw H.reason;default:switch(typeof H.status=="string"?H.then(ne,ne):(H.status="pending",H.then(function(Q){H.status==="pending"&&(H.status="fulfilled",H.value=Q)},function(Q){H.status==="pending"&&(H.status="rejected",H.reason=Q)})),H.status){case"fulfilled":return H.value;case"rejected":throw H.reason}}throw H}function we(H,Q,ue,Y,ye){var se=typeof H;(se==="undefined"||se==="boolean")&&(H=null);var ve=!1;if(H===null)ve=!0;else switch(se){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(H.$$typeof){case e:case t:ve=!0;break;case m:return ve=H._init,we(ve(H._payload),Q,ue,Y,ye)}}if(ve)return ye=ye(H),ve=Y===""?"."+U(H,0):Y,D(ye)?(ue="",ve!=null&&(ue=ve.replace(V,"$&/")+"/"),we(ye,Q,ue,"",function(ge){return ge})):ye!=null&&(X(ye)&&(ye=q(ye,ue+(ye.key==null||H&&H.key===ye.key?"":(""+ye.key).replace(V,"$&/")+"/")+ve)),Q.push(ye)),1;ve=0;var Fe=Y===""?".":Y+":";if(D(H))for(var Le=0;Le<H.length;Le++)Y=H[Le],se=Fe+U(Y,Le),ve+=we(Y,Q,ue,se,ye);else if(Le=_(H),typeof Le=="function")for(H=Le.call(H),Le=0;!(Y=H.next()).done;)Y=Y.value,se=Fe+U(Y,Le++),ve+=we(Y,Q,ue,se,ye);else if(se==="object"){if(typeof H.then=="function")return we(Se(H),Q,ue,Y,ye);throw Q=String(H),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(H).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return ve}function W(H,Q,ue){if(H==null)return H;var Y=[],ye=0;return we(H,Y,"","",function(se){return Q.call(ue,se,ye++)}),Y}function ie(H){if(H._status===-1){var Q=H._result;Q=Q(),Q.then(function(ue){(H._status===0||H._status===-1)&&(H._status=1,H._result=ue)},function(ue){(H._status===0||H._status===-1)&&(H._status=2,H._result=ue)}),H._status===-1&&(H._status=0,H._result=Q)}if(H._status===1)return H._result.default;throw H._result}var pe=typeof reportError=="function"?reportError:function(H){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof H=="object"&&H!==null&&typeof H.message=="string"?String(H.message):String(H),error:H
|
||
|
|
* @license React
|
||
|
|
* react-dom.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var C4;function bL(){if(C4)return _r;C4=1;var e=ud();function t(f){var p="https://react.dev/errors/"+f;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)p+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function a(f,p,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:y==null?null:""+y,children:f,containerInfo:p,implementation:m}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,p){if(f==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return _r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,_r.createPortal=function(f,p){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return a(f,p,null,m)},_r.flushSync=function(f){var p=s.T,m=r.p;try{if(s.T=null,r.p=2,f)return f()}finally{s.T=p,r.p=m,r.d.f()}},_r.preconnect=function(f,p){typeof f=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(f,p))},_r.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},_r.preinit=function(f,p){if(typeof f=="string"&&p&&typeof p.as=="string"){var m=p.as,y=d(m,p.crossOrigin),_=typeof p.integrity=="string"?p.integrity:void 0,b=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;m==="style"?r.d.S(f,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:_,fetchPriority:b}):m==="script"&&r.d.X(f,{crossOrigin:y,integrity:_,fetchPriority:b,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},_r.preinitModule=function(f,p){if(typeof f=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var m=d(p.as,p.crossOrigin);r.d.M(f,{crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(f)},_r.preload=function(f,p){if(typeof f=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var m=p.as,y=d(m,p.crossOrigin);r.d.L(f,m,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},_r.preloadModule=function(f,p){if(typeof f=="string")if(p){var m=d(p.as,p.crossOrigin);r.d.m(f,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(f)},_r.requestFormReset=function(f){r.d.r(f)},_r.unstable_batchedUpdates=function(f,p){return f(p)},_r.useFormState=function(f,p,m){return s.H.useFormState(f,p,m)},_r.useFormStatus=function(){return s.H.useHostTransitionStatus()},_r.version="19.1.1",_r}var j4;function A6(){if(j4)return Wx.exports;j4=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Wx.exports=bL(),Wx.exports}/**
|
||
|
|
* @license React
|
||
|
|
* react-dom-client.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var E4;function wL(){if(E4)return Af;E4=1;var e=xL(),t=ud(),n=A6();function r(o){var l="https://react.dev/errors/"+o;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)l+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+o+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function a(o){var l=o,h=o;if(o.alternate)for(;l.return;)l=l.return;else{o=l;do l=o,(l.flags&4098)!==0&&(h=l.return),o=l.return;while(o)}return l.tag===3?h:null}function s(o){if(o.tag===13){var l=o.memoizedState;if(l===null&&(o=o.alternate,o!==null&&(l=o.memoizedState)),l!==null)return l.dehydrated}return null}function d(o){if(a(o)!==o)throw Error(r(188))}function f(o){var l=o.alternate;if(!l){if(l=a(o),l===null)throw Error(r(188));return l!==o?null:o}for(var h=o,v=l;;){var S=h.return;if(S===null)break;var O=S.alternate;if(O===null){if(v=S.return,v!==null){h=v;continue}break}if(S.child===O.child){for(O=S.child;O;){if(O===h)return d(S),o;if(O===v)return d(S),l;O=O.sibling}throw Error(r(188))}if(h.return!==v.return)h=S,v=O;else{for(var I=!1,$=S.child;$;){if($===h){I=!0,h=S,v=O;break}if($===v){I=!0,v=S,h=O;break}$=$.sibling}if(!I){for($=O.child;$;){if($===h){I=!0,h=O,v=S;break}if($===v){I=!0,v=O,h=S;break}$=$.sibling}if(!I)throw Error(r(189))}}if(h.alternate!==v)throw Error(r(190))}if(h.tag!==3)throw Error(r(188));return h.stateNode.current===h?o:l}function p(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o;for(o=o.child;o!==null;){if(l=p(o),l!==null)return l;o=o.sibling}return null}var m=Object.assign,y=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),k=Symbol.for("react.consumer"),A=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),X=Symbol.for("react.activity"),J=Symbol.for("react.memo_cache_sentinel"),V=Symbol.iterator;function U(o){return o===null||typeof o!="object"?null:(o=V&&o[V]||o["@@iterator"],typeof o=="function"?o:null)}var ne=Symbol.for("react.client.reference");function Se(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===ne?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case j:return"Fragment";case C:return"Profiler";case E:return"StrictMode";case N:return"Suspense";case R:return"SuspenseList";case X:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case b:return"Portal";case A:return(o.displayName||"Context")+".Provider";case k:return(o._context.displayName||"Context")+".Consumer";case D:var l=o.render;return o=o.displayName,o||(o=l.displayName||l.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case z:return l=o.displayName||null,l!==null?l:Se(o.type)||"Memo";case q:l=o._payload,o=o._init;try{return Se(o(l))}catch{}}return null}var we=Array.isArray,W=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pe={pending:!1,data:null,method:null,action:null},je=[],H=-1;function Q(o){return{current:o}}function ue(o){0>H||(o.current=je[H],je[H]=null,H--)}function Y(o,l){H++,je[H]=o.current,o.current=l}var ye=Q(null),se=Q(null),ve=Q(null),Fe=Q(null);function Le(o,l){switch(Y(ve,l),Y(se,o),Y(ye,null),l.nodeType){case 9:case 11:o=(o=l.documentElement)&&(o=o.namespaceURI)?G3(o):0;break;default:if(o=l.tagName,l=l.namespaceURI)l=G3(l),o=Z3(l,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}ue(ye),Y(ye,o)}function ge(){ue(ye),ue(se),ue(ve)}function ke(o){o.memoizedState!==null&&Y(Fe,o);var l=ye.current,h=Z3(l,o.type);l!==h&&(Y(se,o),Y(ye,h))}function _e(o){se.current===o&&(ue(ye),ue(se)),Fe.current===o&&(ue(Fe),Cf._currentValue=pe)}var de=Object.prototype
|
||
|
|
at`)?" (<anonymous>)":-1<h.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
|
|
`+wl+o+ls}var Hc=!1;function ao(o,l){if(!o||Hc)return"";Hc=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var v={DetermineComponentFrameRoot:function(){try{if(l){var Ee=function(){throw Error()};if(Object.defineProperty(Ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ee,[])}catch(he){var fe=he}Reflect.construct(o,[],Ee)}else{try{Ee.call()}catch(he){fe=he}o.call(Ee.prototype)}}else{try{throw Error()}catch(he){fe=he}(Ee=o())&&typeof Ee.catch=="function"&&Ee.catch(function(){})}}catch(he){if(he&&fe&&typeof he.stack=="string")return[he.stack,fe.stack]}return[null,null]}};v.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var S=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,"name");S&&S.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var O=v.DetermineComponentFrameRoot(),I=O[0],$=O[1];if(I&&$){var Z=I.split(`
|
||
|
|
`),le=$.split(`
|
||
|
|
`);for(S=v=0;v<Z.length&&!Z[v].includes("DetermineComponentFrameRoot");)v++;for(;S<le.length&&!le[S].includes("DetermineComponentFrameRoot");)S++;if(v===Z.length||S===le.length)for(v=Z.length-1,S=le.length-1;1<=v&&0<=S&&Z[v]!==le[S];)S--;for(;1<=v&&0<=S;v--,S--)if(Z[v]!==le[S]){if(v!==1||S!==1)do if(v--,S--,0>S||Z[v]!==le[S]){var be=`
|
||
|
|
`+Z[v].replace(" at new "," at ");return o.displayName&&be.includes("<anonymous>")&&(be=be.replace("<anonymous>",o.displayName)),be}while(1<=v&&0<=S);break}}}finally{Hc=!1,Error.prepareStackTrace=h}return(h=o?o.displayName||o.name:"")?io(h):""}function Et(o){switch(o.tag){case 26:case 27:case 5:return io(o.type);case 16:return io("Lazy");case 13:return io("Suspense");case 19:return io("SuspenseList");case 0:case 15:return ao(o.type,!1);case 11:return ao(o.type.render,!1);case 1:return ao(o.type,!0);case 31:return io("Activity");default:return""}}function Xt(o){try{var l="";do l+=Et(o),o=o.return;while(o);return l}catch(h){return`
|
||
|
|
Error generating stack: `+h.message+`
|
||
|
|
`+h.stack}}function ar(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function oo(o){var l=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function cs(o){var l=oo(o)?"checked":"value",h=Object.getOwnPropertyDescriptor(o.constructor.prototype,l),v=""+o[l];if(!o.hasOwnProperty(l)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var S=h.get,O=h.set;return Object.defineProperty(o,l,{configurable:!0,get:function(){return S.call(this)},set:function(I){v=""+I,O.call(this,I)}}),Object.defineProperty(o,l,{enumerable:h.enumerable}),{getValue:function(){return v},setValue:function(I){v=""+I},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function us(o){o._valueTracker||(o._valueTracker=cs(o))}function mt(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var h=l.getValue(),v="";return o&&(v=oo(o)?o.checked?"true":"false":o.value),o=v,o!==h?(l.setValue(o),!0):!1}function Qt(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var kd=/[\n"\\]/g;function or(o){return o.replace(kd,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function vr(o,l,h,v,S,O,I,$){o.name="",I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"?o.type=I:o.removeAttribute("type"),l!=null?I==="number"?(l===0&&o.value===""||o.value!=l)&&(o.value=""+ar(l)):o.value!==""+ar(l)&&(o.value=""+ar(l)):I!=="submit"&&I!=="reset"||o.removeAttribute("value"),l!=null?ds(o,I,ar(l)):h!=null?ds(o,I,ar(h)):v!=null&&o.removeAttribute("value"),S==null&&O!=null&&(o.defaultChecked=!!O),S!=null&&(o.checked=S&&typeof S!="function"&&typeof S!="symbol"),$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"?o.name=""+ar($):o.removeAttribute("name")}function mp(o,l,h,v,S,O,I,$){if(O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(o.type=O),l!=null||h!=null){if(!(O!=="submit"&&O!=="reset"||l!=null))return;h=h!=null?""+ar(h):"",l=l!=null?""+ar(l):h,$||l===o.value||(o.value=l),o.defaultValue=l}v=v??S,v=typeof v!="function"&&typeof v!="symbol"&&!!v,o.checked=$?o.checked:!!v,o.defaultChecked=!!v,I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(o.name=I)}function ds(o,l,h){l==="number"&&Qt(o.ownerDocument)===o||o.defaultValue===""+h||(o.defaultValue=""+h)}function Br(o,l,h,v){if(o=o.options,l){l={};for(var S=0;S<h.length;S++)l["$"+h[S]]=!0;for(h=0;h<o.length;h++)S=l.hasOwnProperty("$"+o[h].value),o[h].selected!==S&&(o[h].selected=S),S&&v&&(o[h].defaultSelected=!0)}else{for(h=""+ar(h),l=null,S=0;S<o.length;S++){if(o[S].value===h){o[S].selected=!0,v&&(o[S].defaultSelected=!0);return}l!==null||o[S].disabled||(l=o[S])}l!==null&&(l.selected=!0)}}function hn(o,l,h){if(l!=null&&(l=""+ar(l),l!==o.value&&(o.value=l),h==null)){o.defaultValue!==l&&(o.defaultValue=l);return}o.defaultValue=h!=null?""+ar(h):""}function Ca(o,l,h,v){if(l==null){if(v!=null){if(h!=null)throw Error(r(92));if(we(v)){if(1<v.length)throw Error(r(93));v=v[0]}h=v}h==null&&(h=""),l=h}h=ar(l),o.defaultValue=h,v=o.textContent,v===h&&v!==""&&v!==null&&(o.value=v)}function Ai(o,l){if(l){var h=o.firstChild;if(h&&h===o.lastChild&&h.nodeType===3){h.nodeValue=l;return}}o.textContent=l}var Sl=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGr
|
||
|
|
`).replace(II,"")}function q3(o,l){return l=U3(l),U3(o)===l}function vm(){}function Ht(o,l,h,v,S,O){switch(h){case"children":typeof v=="string"?l==="body"||l==="textarea"&&v===""||Ai(o,v):(typeof v=="number"||typeof v=="bigint")&&l!=="body"&&Ai(o,""+v);break;case"className":Vc(o,"class",v);break;case"tabIndex":Vc(o,"tabindex",v);break;case"dir":case"role":case"viewBox":case"width":case"height":Vc(o,h,v);break;case"style":fs(o,v,O);break;case"data":if(l!=="object"){Vc(o,"data",v);break}case"src":case"href":if(v===""&&(l!=="a"||h!=="href")){o.removeAttribute(h);break}if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean"){o.removeAttribute(h);break}v=hs(""+v),o.setAttribute(h,v);break;case"action":case"formAction":if(typeof v=="function"){o.setAttribute(h,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof O=="function"&&(h==="formAction"?(l!=="input"&&Ht(o,l,"name",S.name,S,null),Ht(o,l,"formEncType",S.formEncType,S,null),Ht(o,l,"formMethod",S.formMethod,S,null),Ht(o,l,"formTarget",S.formTarget,S,null)):(Ht(o,l,"encType",S.encType,S,null),Ht(o,l,"method",S.method,S,null),Ht(o,l,"target",S.target,S,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){o.removeAttribute(h);break}v=hs(""+v),o.setAttribute(h,v);break;case"onClick":v!=null&&(o.onclick=vm);break;case"onScroll":v!=null&&St("scroll",o);break;case"onScrollEnd":v!=null&&St("scrollend",o);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(r(61));if(h=v.__html,h!=null){if(S.children!=null)throw Error(r(60));o.innerHTML=h}}break;case"multiple":o.multiple=v&&typeof v!="function"&&typeof v!="symbol";break;case"muted":o.muted=v&&typeof v!="function"&&typeof v!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(v==null||typeof v=="function"||typeof v=="boolean"||typeof v=="symbol"){o.removeAttribute("xlink:href");break}h=hs(""+v),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",h);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":v!=null&&typeof v!="function"&&typeof v!="symbol"?o.setAttribute(h,""+v):o.removeAttribute(h);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":v&&typeof v!="function"&&typeof v!="symbol"?o.setAttribute(h,""):o.removeAttribute(h);break;case"capture":case"download":v===!0?o.setAttribute(h,""):v!==!1&&v!=null&&typeof v!="function"&&typeof v!="symbol"?o.setAttribute(h,v):o.removeAttribute(h);break;case"cols":case"rows":case"size":case"span":v!=null&&typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v?o.setAttribute(h,v):o.removeAttribute(h);break;case"rowSpan":case"start":v==null||typeof v=="function"||typeof v=="symbol"||isNaN(v)?o.removeAttribute(h):o.setAttribute(h,v);break;case"popover":St("beforetoggle",o),St("toggle",o),$c(o,"popover",v);break;case"xlinkActuate":ia(o,"http://www.w3.org/1999/xlink","xlink:actuate",v);break;case"xlinkArcrole":ia(o,"http://www.w3.org/1999/xlink","xlink:arcrole",v);break;case"xlinkRole":ia(o,"http://www.w3.org/1999/xlink","xlink:role",v);break;case"xlinkShow":ia(o,"http://www.w3.org/1999/xlink","xlink:show",v);break;case"xlinkTitle":ia(o,"http://www.w3.org/1999/xlink","xlink:title",v);break;case"xlinkType":ia(o,"http://www.w3.org/1999/xlink","xlink:type",v);break;case"xmlBase":ia(o,"http://www.w3.org/XML/1998/nam
|
||
|
|
linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4)),
|
||
|
|
linear-gradient(rgb(${f.r}, ${f.g}, ${f.b}), rgb(${f.r}, ${f.g}, ${f.b}))
|
||
|
|
`}},p)):e==="IDOPT"?(t||[]).map(({id:d,color:f},p)=>u.jsx("button",{className:`color ${f===n?"active":""}`,onClick:()=>r(f),style:{backgroundImage:N$(f)}},p)):null})),D$=({vehicle:e,setActiveVehicle:t,rgbColourPicker:n})=>{const{event:r,config:i,locale:a}=Ae(),[s,d]=x.useState(!1),[f,p]=x.useState(!1),[m,y]=x.useState(1),[_,b]=x.useState({r:0,g:0,b:0}),[j,E]=x.useState(0),[C,T]=x.useState(0),[k,A]=x.useState(0),[D,N]=x.useState(0),[R,z]=x.useState(0),[q,X]=x.useState(!1),J=x.useMemo(()=>r.colourSelectionType==="IDOPT"?m:_,[m,_]);x.useEffect(()=>{(async()=>{if(i.HideVehicleStats)return;const ne=await Me("get-model-stats",{vehicle:e.spawn_code});E(ne?.brake),T(ne?.handling),A(ne?.topSpeed),N(ne?.power),z(ne?.torque)})()},[e.spawn_code]);const V=async()=>{X(!0),await Me("start-test-drive",{dealershipId:r.dealershipId,vehicle:e.spawn_code,color:J}),X(!1)},U=ne=>{const Se=ne*(1+i.FinanceInterest);return(Se-Se*i.FinanceDownPayment)/i.FinancePayments};return u.jsxs(u.Fragment,{children:[u.jsxs(ee.Dialog,{size:"sm",className:"modal vehicle-info-modal",scrollable:!0,children:[u.jsxs(ee.Header,{className:"flex justify-between gap-3",children:[u.jsxs("div",{className:"flex-1 truncate",children:[u.jsx("div",{className:"text-gray-500 font-medium text-sm truncate",children:e.brand}),u.jsx("div",{className:"text-lg font-semibold truncate",children:e.model})]}),r.shopType==="owned"&&u.jsx("div",{children:e.stock>0?u.jsxs("div",{className:"flex gap-1 items-center text-xs text-gray-500 font-bold",children:[u.jsx("div",{children:e.stock}),u.jsx("div",{className:"w-3 h-3 bg-green-500 rounded-full"})]}):u.jsx("div",{className:"w-3 h-3 bg-red-500 rounded-full"})})]}),u.jsxs(ee.Body,{children:[!i.HideVehicleStats&&u.jsxs("div",{className:"vehicle-stats",children:[u.jsxs("div",{className:"vehicle-stat",children:[u.jsx("div",{className:"text-gray-500 text-sm mb-2",children:a.handling}),u.jsx(Bu,{variant:"light",now:C/10*100,label:u.jsx("div",{className:"!text-black text-[11px] font-bold",children:C?.toFixed(1)})})]}),u.jsxs("div",{className:"vehicle-stat",children:[u.jsx("div",{className:"text-gray-500 text-sm mb-2",children:a.topSpeed}),u.jsx(Bu,{variant:"light",now:k/150*100,label:u.jsx("div",{className:"!text-black text-[11px] font-bold",children:`${k}${i.SpeedUnit||"mph"}`})})]}),u.jsxs("div",{className:"vehicle-stat",children:[u.jsx("div",{className:"text-gray-500 text-sm mb-2",children:a.power}),u.jsx(Bu,{variant:"light",now:D/500*100,label:u.jsx("div",{className:"!text-black text-[11px] font-bold",children:`${D}HP`})})]}),u.jsxs("div",{className:"vehicle-stat",children:[u.jsx("div",{className:"text-gray-500 text-sm mb-2",children:a.torque}),u.jsx(Bu,{variant:"light",now:R/500*100,label:u.jsx("div",{className:"!text-black text-[11px] font-bold",children:`${R}Nm`})})]}),u.jsxs("div",{className:"vehicle-stat",children:[u.jsx("div",{className:"text-gray-500 text-sm mb-2",children:a.brake}),u.jsx(Bu,{now:j/1*100,variant:"light",label:u.jsx("div",{className:"!text-black text-[11px] font-bold",children:j?.toFixed(1)})})]})]}),u.jsxs("div",{className:"flex flex-col items-center gap-2 mb-3",children:[u.jsx("div",{className:"text-2xl font-bold",children:tt(e.price,i.Currency,i.NumberAndDateFormat)}),r.financeEnabled&&e.price>0&&u.jsxs("div",{className:"text-sm text-center font-medium text-gray-500 flex-col gap-1 items-center",children:[u.jsx("div",{children:a.financingAvailable}),u.jsxs("div",{className:"flex gap-1 items-center",children:[u.jsxs("div",{children:[i.FinancePayments," ",a.paymentsOf," ",tt(U(e.price),i.Currency,i.NumberAndDateFormat)]}),u.jsx(ce,{variant:"link",className:"text-decoration-none text-inherit p-0",size:"sm",onClick:()=>p(!0),children:u.jsx("i",{className:"bi-question-circle-fill"})})]})]})]}),u.jsx(_$,{show:f,onHide:()=>p(!1),vehiclePrice:e.price,calcFinancePayment:()=>U(e.price)}),u.jsx(k$,{colourSelectionType:r.colourSelectionType,colourOptions:r.colourOptions,colourId:m,setColourId:y,rgbColour:_,setRgbColour:b,defaultColor:r.defaultColor})]}),(r.enablePurchase||r.enableTestDrive)&&u.jsxs(ee.Footer,{cla
|
||
|
|
url(https://cfx-nui-jg-advancedgarages/vehicle_images/${e.spawn_code}.png),
|
||
|
|
url(https://cfx-nui-jg-dealerships/vehicle_images/${e.spawn_code}.png),
|
||
|
|
url(https://docs.fivem.net/vehicles/${e.spawn_code}.webp)
|
||
|
|
`,[e]);return u.jsx("button",{ref:r,className:`block w-full hover:bg-white/5 border-t border-t-[var(--bs-border-color)] ${n?"!bg-white/5 !text-white":""}`,onClick:()=>t(e),children:u.jsxs("div",{className:`${n?"border-l-[5px]":""} p-3 transition-all ${i.shopType==="owned"&&!e.stock?"opacity-50":""}`,children:[u.jsxs("div",{className:"flex items-start justify-between mb-2 w-full gap-2",children:[u.jsxs("div",{className:"flex flex-col items-start text-start truncate",children:[u.jsx("div",{className:`text-[12px] font-medium truncate w-full ${n?"text-gray-400":"text-gray-500"}`,children:e.brand}),u.jsx("div",{className:"text-md font-semibold truncate w-full",children:e.model})]}),i.shopType==="owned"&&u.jsx("div",{children:e.stock>0?u.jsxs("div",{className:`flex gap-1 items-center text-[10px] ${n?"text-gray-400":"text-gray-500"} font-bold`,children:[u.jsx("div",{children:e.stock}),u.jsx("div",{className:"w-[10px] h-[10px] bg-green-500 rounded-full"})]}):u.jsx("div",{className:"w-[10px] h-[10px] bg-red-500 rounded-full"})})]}),u.jsxs("div",{className:"flex items-end justify-between",children:[u.jsx("p",{className:"font-semibold text-lg",children:tt(e.price,a.Currency,a.NumberAndDateFormat)}),u.jsx("div",{children:a.ShowVehicleImages&&u.jsx("div",{className:"vehicle-image flex-shrink-0",style:{backgroundImage:s}})})]})]})})});function R5(e){return Pe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12 2c5.523 0 10 4.477 10 10a10 10 0 0 1 -19.995 .324l-.005 -.324l.004 -.28c.148 -5.393 4.566 -9.72 9.996 -9.72zm0 9h-1l-.117 .007a1 1 0 0 0 0 1.986l.117 .007v3l.007 .117a1 1 0 0 0 .876 .876l.117 .007h1l.117 -.007a1 1 0 0 0 .876 -.876l.007 -.117l-.007 -.117a1 1 0 0 0 -.764 -.857l-.112 -.02l-.117 -.006v-3l-.007 -.117a1 1 0 0 0 -.876 -.876l-.117 -.007zm.01 -3l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z"},child:[]}]})(e)}function Kv(e){return Pe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"},child:[]},{tag:"path",attr:{d:"M18.364 5.636l-12.728 12.728"},child:[]}]})(e)}function L$(e){return Pe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M7 17m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"},child:[]},{tag:"path",attr:{d:"M15.584 15.588a2 2 0 0 0 2.828 2.83"},child:[]},{tag:"path",attr:{d:"M5 17h-2v-6l2 -5h1m4 0h4l4 5h1a2 2 0 0 1 2 2v4m-6 0h-6m-6 -6h8m4 0h3m-6 -3v-2"},child:[]},{tag:"path",attr:{d:"M3 3l18 18"},child:[]}]})(e)}function z$(e){return Pe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 6l-6 6l6 6"},child:[]}]})(e)}function B$(e){return Pe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 4v.01"},child:[]},{tag:"path",attr:{d:"M20 20v.01"},child:[]},{tag:"path",attr:{d:"M20 16v.01"},child:[]},{tag:"path",attr:{d:"M20 12v.01"},child:[]},{tag:"path",attr:{d:"M20 8v.01"},child:[]},{tag:"path",attr:{d:"M8 4m0 1a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1z"},child:[]},{tag:"path",attr:{d:"M4 4v.01"},child:[]},{tag:"path",attr:{d:"M4 20v.01"},child:[]},{tag:"path",attr:{d:"M4 16v.01"},child:[]},{tag:"path",attr:{d:"M4 12v.01"},child:[]},{tag:"path",attr:{d:"M4 8v.01"},child:[]}]})(e)}function I5(e){return Pe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74"},child:[]},{tag:"path",attr:{d:"M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6"},child:[]},{tag:"path"
|
||
|
|
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
||
|
|
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
||
|
|
*/var mU=Xf.exports,IE;function gU(){return IE||(IE=1,function(e,t){(function(n,r){r(t)})(mU,function(n){var r="1.9.4";function i(c){var g,w,M,P;for(w=1,M=arguments.length;w<M;w++){P=arguments[w];for(g in P)c[g]=P[g]}return c}var a=Object.create||function(){function c(){}return function(g){return c.prototype=g,new c}}();function s(c,g){var w=Array.prototype.slice;if(c.bind)return c.bind.apply(c,w.call(arguments,1));var M=w.call(arguments,2);return function(){return c.apply(g,M.length?M.concat(w.call(arguments)):arguments)}}var d=0;function f(c){return"_leaflet_id"in c||(c._leaflet_id=++d),c._leaflet_id}function p(c,g,w){var M,P,B,G;return G=function(){M=!1,P&&(B.apply(w,P),P=!1)},B=function(){M?P=arguments:(c.apply(w,arguments),setTimeout(G,g),M=!0)},B}function m(c,g,w){var M=g[1],P=g[0],B=M-P;return c===M&&w?c:((c-P)%B+B)%B+P}function y(){return!1}function _(c,g){if(g===!1)return c;var w=Math.pow(10,g===void 0?6:g);return Math.round(c*w)/w}function b(c){return c.trim?c.trim():c.replace(/^\s+|\s+$/g,"")}function j(c){return b(c).split(/\s+/)}function E(c,g){Object.prototype.hasOwnProperty.call(c,"options")||(c.options=c.options?a(c.options):{});for(var w in g)c.options[w]=g[w];return c.options}function C(c,g,w){var M=[];for(var P in c)M.push(encodeURIComponent(w?P.toUpperCase():P)+"="+encodeURIComponent(c[P]));return(!g||g.indexOf("?")===-1?"?":"&")+M.join("&")}var T=/\{ *([\w_ -]+) *\}/g;function k(c,g){return c.replace(T,function(w,M){var P=g[M];if(P===void 0)throw new Error("No value provided for variable "+w);return typeof P=="function"&&(P=P(g)),P})}var A=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"};function D(c,g){for(var w=0;w<c.length;w++)if(c[w]===g)return w;return-1}var N="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function R(c){return window["webkit"+c]||window["moz"+c]||window["ms"+c]}var z=0;function q(c){var g=+new Date,w=Math.max(0,16-(g-z));return z=g+w,window.setTimeout(c,w)}var X=window.requestAnimationFrame||R("RequestAnimationFrame")||q,J=window.cancelAnimationFrame||R("CancelAnimationFrame")||R("CancelRequestAnimationFrame")||function(c){window.clearTimeout(c)};function V(c,g,w){if(w&&X===q)c.call(g);else return X.call(window,s(c,g))}function U(c){c&&J.call(window,c)}var ne={__proto__:null,extend:i,create:a,bind:s,get lastId(){return d},stamp:f,throttle:p,wrapNum:m,falseFn:y,formatNum:_,trim:b,splitWords:j,setOptions:E,getParamString:C,template:k,isArray:A,indexOf:D,emptyImageUrl:N,requestFn:X,cancelFn:J,requestAnimFrame:V,cancelAnimFrame:U};function Se(){}Se.extend=function(c){var g=function(){E(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},w=g.__super__=this.prototype,M=a(w);M.constructor=g,g.prototype=M;for(var P in this)Object.prototype.hasOwnProperty.call(this,P)&&P!=="prototype"&&P!=="__super__"&&(g[P]=this[P]);return c.statics&&i(g,c.statics),c.includes&&(we(c.includes),i.apply(null,[M].concat(c.includes))),i(M,c),delete M.statics,delete M.includes,M.options&&(M.options=w.options?a(w.options):{},i(M.options,c.options)),M._initHooks=[],M.callInitHooks=function(){if(!this._initHooksCalled){w.callInitHooks&&w.callInitHooks.call(this),this._initHooksCalled=!0;for(var B=0,G=M._initHooks.length;B<G;B++)M._initHooks[B].call(this)}},g},Se.include=function(c){var g=this.prototype.options;return i(this.prototype,c),c.options&&(this.prototype.options=g,this.mergeOptions(c.options)),this},Se.mergeOptions=function(c){return i(this.prototype.options,c),this},Se.addInitHook=function(c){var g=Array.prototype.slice.call(arguments,1),w=typeof c=="function"?c:function(){this[c].apply(this,g)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(w),this};function we(c){if(!(typeof L>"u"||!L||!L.Mixin)){c=A(c)?c:[c];for(var g=0;g<c.length;g++)c[g]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var W={on:function(c,g,w){if(typeof c=="object")for(v
|
||
|
|
* react-is.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var uO;function TW(){if(uO)return Rt;uO=1;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,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,j=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function A(N){if(typeof N=="object"&&N!==null){var R=N.$$typeof;switch(R){case t:switch(N=N.type,N){case f:case p:case r:case a:case i:case y:return N;default:switch(N=N&&N.$$typeof,N){case d:case m:case j:case b:case s:return N;default:return R}}case n:return R}}}function D(N){return A(N)===p}return Rt.AsyncMode=f,Rt.ConcurrentMode=p,Rt.ContextConsumer=d,Rt.ContextProvider=s,Rt.Element=t,Rt.ForwardRef=m,Rt.Fragment=r,Rt.Lazy=j,Rt.Memo=b,Rt.Portal=n,Rt.Profiler=a,Rt.StrictMode=i,Rt.Suspense=y,Rt.isAsyncMode=function(N){return D(N)||A(N)===f},Rt.isConcurrentMode=D,Rt.isContextConsumer=function(N){return A(N)===d},Rt.isContextProvider=function(N){return A(N)===s},Rt.isElement=function(N){return typeof N=="object"&&N!==null&&N.$$typeof===t},Rt.isForwardRef=function(N){return A(N)===m},Rt.isFragment=function(N){return A(N)===r},Rt.isLazy=function(N){return A(N)===j},Rt.isMemo=function(N){return A(N)===b},Rt.isPortal=function(N){return A(N)===n},Rt.isProfiler=function(N){return A(N)===a},Rt.isStrictMode=function(N){return A(N)===i},Rt.isSuspense=function(N){return A(N)===y},Rt.isValidElementType=function(N){return typeof N=="string"||typeof N=="function"||N===r||N===p||N===a||N===i||N===y||N===_||typeof N=="object"&&N!==null&&(N.$$typeof===j||N.$$typeof===b||N.$$typeof===s||N.$$typeof===d||N.$$typeof===m||N.$$typeof===C||N.$$typeof===T||N.$$typeof===k||N.$$typeof===E)},Rt.typeOf=A,Rt}var dO;function mD(){return dO||(dO=1,g1.exports=TW()),g1.exports}var v1,fO;function MW(){if(fO)return v1;fO=1;var e=mD(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=r,a[e.Memo]=i;function s(j){return e.isMemo(j)?i:a[j.$$typeof]||t}var d=Object.defineProperty,f=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,_=Object.prototype;function b(j,E,C){if(typeof E!="string"){if(_){var T=y(E);T&&T!==_&&b(j,T,C)}var k=f(E);p&&(k=k.concat(p(E)));for(var A=s(j),D=s(E),N=0;N<k.length;++N){var R=k[N];if(!n[R]&&!(C&&C[R])&&!(D&&D[R])&&!(A&&A[R])){var z=m(E,R);try{d(j,R,z)}catch{}}}}return j}return v1=b,v1}MW();function dr(){return dr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dr.apply(this,arguments)}function gD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Hi=function(t){return typeof t=="function"},o0=function(t){return t!==null&&typeof t=="object"},AW=function(t){return String(Math.floor(Number(t)))===t},y1=function(t){return Object.prototype.toString.call(t)==="[object String]"},NW=function(t){return x.Children.count(t)===0},x1=function(t){return o0(t)&&Hi(t.then)};function Ui(e,t,n,r){r===void 0&&(r=0);for(var i=pD(t);e&&r<i.length;)e=e[i[r++]];return e===void 0?n:e}function uc(e,t,n){for(var r=sO(e),i=r,a=0,s=pD(t);a<s
|
||
|
|
|
||
|
|
attempted value: ${s}
|
||
|
|
`+(d!==s?`result of cast: ${d}`:""))}return a}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,a)=>a.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault()),r}_validate(t,n={},r,i){let{path:a,originalValue:s=t,strict:d=this.spec.strict}=n,f=t;d||(f=this._cast(f,Object.assign({assert:!1},n)));let p=[];for(let m of Object.values(this.internalTests))m&&p.push(m);this.runTests({path:a,value:f,originalValue:s,options:n,tests:p},r,m=>{if(m.length)return i(m,f);this.runTests({path:a,value:f,originalValue:s,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:a,value:s,originalValue:d,path:f,options:p}=t,m=E=>{i||(i=!0,n(E,s))},y=E=>{i||(i=!0,r(E,s))},_=a.length,b=[];if(!_)return y([]);let j={value:s,originalValue:d,path:f,options:p,schema:this};for(let E=0;E<a.length;E++){const C=a[E];C(j,m,function(k){k&&(b=b.concat(k)),--_<=0&&y(b)})}}asNestedTest({key:t,index:n,parent:r,parentPath:i,originalParent:a,options:s}){const d=t??n;if(d==null)throw TypeError("Must include `key` or `index` for nested validations");const f=typeof d=="number";let p=r[d];const m=Object.assign({},s,{strict:!0,parent:r,value:p,originalValue:a[d],key:void 0,[f?"index":"key"]:d,path:f||d.includes(".")?`${i||""}[${p?d:`"${d}"`}]`:(i?`${i}.`:"")+t});return(y,_,b)=>this.resolve(m)._validate(p,m,_,b)}validate(t,n){let r=this.resolve(Object.assign({},n,{value:t}));return new Promise((i,a)=>r._validate(t,n,(s,d)=>{qr.isError(s)&&(s.value=d),a(s)},(s,d)=>{s.length?a(new qr(s,d)):i(d)}))}validateSync(t,n){let r=this.resolve(Object.assign({},n,{value:t})),i;return r._validate(t,Object.assign({},n,{sync:!0}),(a,s)=>{throw qr.isError(a)&&(a.value=s),a},(a,s)=>{if(a.length)throw new qr(a,t);i=s}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(qr.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(qr.isError(r))return!1;throw r}}_getDefault(){let t=this.spec.default;return t==null?t:typeof t=="function"?t.call(this):$u(t)}getDefault(t){return this.resolve(t||{})._getDefault()}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=ku({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=ku({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Mo.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Mo.notNull){return this.nullability(!1,t)}required(t=Mo.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Mo.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=ku(n),a=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(s=>!(s.OPTIONS.name===n.name&&(a||s.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=yD(t).map(a=>new Rc(a));return i.forEach(a=>{a.isSibling&&r.deps.push(a.key)}),r.conditions.push(typeof n=="function"?new Gg(i,n):Gg.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=ku({message:t,name:"typeError",test(r){return!Wi(r)&&!this.schema._typeCheck(r)?this.createError({params:{type:this.schema.type}}):!0}}),n}oneOf(t,n=Mo.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blackl
|
||
|
|
* table-core
|
||
|
|
*
|
||
|
|
* Copyright (c) TanStack
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
|
*
|
||
|
|
* @license MIT
|
||
|
|
*/function ol(e,t){return typeof e=="function"?e(t):e}function Ci(e,t){return n=>{t.setState(r=>({...r,[e]:ol(n,r[e])}))}}function c0(e){return e instanceof Function}function _Y(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function bY(e,t){const n=[],r=i=>{i.forEach(a=>{n.push(a);const s=t(a);s!=null&&s.length&&r(s)})};return r(e),n}function ct(e,t,n){let r=[],i;return a=>{let s;n.key&&n.debug&&(s=Date.now());const d=e(a);if(!(d.length!==r.length||d.some((m,y)=>r[y]!==m)))return i;r=d;let p;if(n.key&&n.debug&&(p=Date.now()),i=t(...d),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){const m=Math.round((Date.now()-s)*100)/100,y=Math.round((Date.now()-p)*100)/100,_=y/16,b=(j,E)=>{for(j=String(j);j.length<E;)j=" "+j;return j};console.info(`%c⏱ ${b(y,5)} /${b(m,5)} ms`,`
|
||
|
|
font-size: .6rem;
|
||
|
|
font-weight: bold;
|
||
|
|
color: hsl(${Math.max(0,Math.min(120-120*_,120))}deg 100% 31%);`,n?.key)}return i}}function ut(e,t,n,r){return{debug:()=>{var i;return(i=e?.debugAll)!=null?i:e[t]},key:!1,onChange:r}}function wY(e,t,n,r){const i=()=>{var s;return(s=a.getValue())!=null?s:e.options.renderFallbackValue},a={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:i,getContext:ct(()=>[e,n,t,a],(s,d,f,p)=>({table:s,column:d,row:f,cell:p,getValue:p.getValue,renderValue:p.renderValue}),ut(e.options,"debugCells"))};return e._features.forEach(s=>{s.createCell==null||s.createCell(a,n,t,e)},{}),a}function SY(e,t,n,r){var i,a;const d={...e._getDefaultColumnDef(),...t},f=d.accessorKey;let p=(i=(a=d.id)!=null?a:f?typeof String.prototype.replaceAll=="function"?f.replaceAll(".","_"):f.replace(/\./g,"_"):void 0)!=null?i:typeof d.header=="string"?d.header:void 0,m;if(d.accessorFn?m=d.accessorFn:f&&(f.includes(".")?m=_=>{let b=_;for(const E of f.split(".")){var j;b=(j=b)==null?void 0:j[E]}return b}:m=_=>_[d.accessorKey]),!p)throw new Error;let y={id:`${String(p)}`,accessorFn:m,parent:r,depth:n,columnDef:d,columns:[],getFlatColumns:ct(()=>[!0],()=>{var _;return[y,...(_=y.columns)==null?void 0:_.flatMap(b=>b.getFlatColumns())]},ut(e.options,"debugColumns")),getLeafColumns:ct(()=>[e._getOrderColumnsFn()],_=>{var b;if((b=y.columns)!=null&&b.length){let j=y.columns.flatMap(E=>E.getLeafColumns());return _(j)}return[y]},ut(e.options,"debugColumns"))};for(const _ of e._features)_.createColumn==null||_.createColumn(y,e);return y}const br="debugHeaders";function _O(e,t,n){var r;let a={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],d=f=>{f.subHeaders&&f.subHeaders.length&&f.subHeaders.map(d),s.push(f)};return d(a),s},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(s=>{s.createHeader==null||s.createHeader(a,e)}),a}const CY={createTable:e=>{e.getHeaderGroups=ct(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var a,s;const d=(a=r?.map(y=>n.find(_=>_.id===y)).filter(Boolean))!=null?a:[],f=(s=i?.map(y=>n.find(_=>_.id===y)).filter(Boolean))!=null?s:[],p=n.filter(y=>!(r!=null&&r.includes(y.id))&&!(i!=null&&i.includes(y.id)));return qm(t,[...d,...p,...f],e)},ut(e.options,br)),e.getCenterHeaderGroups=ct(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(a=>!(r!=null&&r.includes(a.id))&&!(i!=null&&i.includes(a.id))),qm(t,n,e,"center")),ut(e.options,br)),e.getLeftHeaderGroups=ct(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;const a=(i=r?.map(s=>n.find(d=>d.id===s)).filter(Boolean))!=null?i:[];return qm(t,a,e,"left")},ut(e.options,br)),e.getRightHeaderGroups=ct(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;const a=(i=r?.map(s=>n.find(d=>d.id===s)).filter(Boolean))!=null?i:[];return qm(t,a,e,"right")},ut(e.options,br)),e.getFooterGroups=ct(()=>[e.getHeaderGroups()],t=>[...t].reverse(),ut(e.options,br)),e.getLeftFooterGroups=ct(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),ut(e.options,br)),e.getCenterFooterGroups=ct(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),ut(e.options,br)),e.getRightFooterGroups=ct(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),ut(e.options,br)),e.getFlatHeaders=ct(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),ut(e.options,br)),e.getLeftFlatHeaders=ct(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),ut(e.options,br)),e.getCenterFlatHeaders=ct(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),ut(e.options,br)),e.getRightFlatHeaders=ct(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),ut(e.options,br)),e.getCenterLeafHeaders=ct(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),ut(
|
||
|
|
* react-table
|
||
|
|
*
|
||
|
|
* Copyright (c) TanStack
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
|
*
|
||
|
|
* @license MIT
|
||
|
|
*/function wO(e,t){return e?cK(e)?x.createElement(e,t):e:null}function cK(e){return uK(e)||typeof e=="function"||dK(e)}function uK(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function dK(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function fK(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=x.useState(()=>({current:aK(t)})),[r,i]=x.useState(()=>n.current.initialState);return n.current.setOptions(a=>({...a,...e,state:{...r,...e.state},onStateChange:s=>{i(s),e.onStateChange==null||e.onStateChange(s)}})),n.current}const hK=350,pK=(e,t)=>{if(!t)return!0;const n=t.toLowerCase().split(/\s+/).filter(Boolean);if(n.length===0)return!0;const r=s=>s==null?[]:typeof s=="string"?[s.toLowerCase()]:typeof s=="number"?[s.toString()]:Array.isArray(s)?s.flatMap(r):typeof s=="object"?Object.values(s).flatMap(r):[],a=Object.values(e).flatMap(r).join(" ");return n.every(s=>a.includes(s))},mK=(e,t,n=3)=>{if(t<=1)return[1];const r=[1];let i=Math.max(2,e-n),a=Math.min(t-1,e+n);i>2&&r.push("...");for(let s=i;s<=a;s++)r.push(s);return a<t-1&&r.push("..."),r.push(t),r},Qo=({columns:e,data:t,totalRows:n,showSearch:r=!0,loading:i=!1,searchLoading:a=!1,pageSize:s=10,serverPagination:d,serverSearch:f=!1,hasActiveFilters:p=!1,fetchData:m,onClickRow:y,actions:_,inputGroupActions:b,emptyState:j})=>{const{locale:E}=Ae(),[C,T]=x.useState({pageIndex:0,pageSize:s}),[k,A]=x.useState(""),[D,N]=x.useState(""),R=x.useRef(null),z=x.useRef(!0),q=x.useRef(""),X=x.useMemo(()=>f||!t||!k?t:t.filter(ue=>pK(ue,k)),[t,k,f]),J=f?t:X,V=f?n:X?.length??0,U=fK({data:J??[],columns:e,getCoreRowModel:oK(),getPaginationRowModel:lK(),rowCount:V,state:{pagination:C},onPaginationChange:T,manualPagination:d});x.useEffect(()=>{if(f)return R.current&&clearTimeout(R.current),R.current=setTimeout(()=>{N(k)},hK),()=>{R.current&&clearTimeout(R.current)}},[k,f]),x.useEffect(()=>{if(!(!f||!m)){if(z.current){z.current=!1;return}q.current!==D&&(q.current=D,T(ue=>({...ue,pageIndex:0})))}},[D,f,m]),x.useEffect(()=>{m&&d&&m(C,f?D:void 0)},[C,D]);const ne=U.getState().pagination.pageIndex+1,Se=U.getPageCount(),we=mK(ne,Se),W=j?.icon,ie=j?.title,pe=j?.description||"No data",je=f&&a,H=i&&!f,Q=u.jsxs(F.Group,{className:`p-3 mb-[-12px] flex gap-3 search-and-filter flex-shrink-0 ${r?"":"justify-end"}`,children:[r&&u.jsxs(jt,{children:[u.jsx(jt.Text,{children:u.jsx("i",{className:"bi-search"})}),u.jsx(F.Control,{type:"search",placeholder:E.search,value:k,onChange:ue=>{A(ue.target.value)}}),b]}),u.jsx("div",{className:"flex-shrink-0",children:_})]});if(H)return u.jsx("div",{className:"w-full h-full flex items-center justify-center",children:u.jsx(td,{})});if(i||je)return u.jsxs("div",{className:"w-full h-full flex flex-col",children:[(r||_)&&Q,u.jsx("div",{className:"flex-1 flex items-center justify-center",children:u.jsx(td,{})})]});if(!J||J.length===0){const ue=f?D:k;return ue||p?u.jsxs("div",{className:"w-full h-full flex flex-col",children:[(r||_)&&Q,u.jsx("div",{className:"flex-1 flex text-center justify-center items-center",children:u.jsxs("div",{className:"w-full max-w-[1000px] flex flex-col items-center gap-3",children:[u.jsx("div",{className:"text-[60px]",children:u.jsx(I5,{})}),u.jsx("div",{className:"text-2xl font-bold w-[50%]",children:E.noResultsFound}),u.jsx("div",{className:"w-[50%] text-gray-400 mb-3",children:ue?`${E.noItemsMatchSearch} "${ue}"`:E.noItemsMatchFilters})]})})]}):u.jsx("div",{className:"flex text-center h-full w-full justify-center items-center",children:u.jsxs("div",{className:"w-full max-w-[1000px] flex flex-col items-center gap-3",children:[W&&u.jsx("div",{className:"text-[60px]",children:u.jsx(W,{})}),ie&&u.jsx("div",{className:"text-2xl leading-none font-bold w-[50%]",children:ie}),u.jsx("div",{className:"w-[50%] text-gray-400 my-3",children:pe}),_&&u.jsx("div",{className:"flex gap-3 flex-shrink-0",children:_})]})})}return u.jsxs("div",{className:"w-full h-full flex flex-col",c
|
||
|
|
To pick up a draggable item, press the space bar.
|
||
|
|
While dragging, use the arrow keys to move the item.
|
||
|
|
Press space again to drop the item in its new position, or press escape to cancel.
|
||
|
|
`},qK={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function GK(e){let{announcements:t=qK,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=UK}=e;const{announce:a,announcement:s}=$K(),d=Xh("DndLiveRegion"),[f,p]=x.useState(!1);if(x.useEffect(()=>{p(!0)},[]),VK(x.useMemo(()=>({onDragStart(y){let{active:_}=y;a(t.onDragStart({active:_}))},onDragMove(y){let{active:_,over:b}=y;t.onDragMove&&a(t.onDragMove({active:_,over:b}))},onDragOver(y){let{active:_,over:b}=y;a(t.onDragOver({active:_,over:b}))},onDragEnd(y){let{active:_,over:b}=y;a(t.onDragEnd({active:_,over:b}))},onDragCancel(y){let{active:_,over:b}=y;a(t.onDragCancel({active:_,over:b}))}}),[a,t])),!f)return null;const m=Ke.createElement(Ke.Fragment,null,Ke.createElement(BK,{id:r,value:i.draggable}),Ke.createElement(FK,{id:d,announcement:s}));return n?za.createPortal(m,n):m}var zn;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(zn||(zn={}));function Yg(){}function Kg(e,t){return x.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function HD(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return x.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const ba=Object.freeze({x:0,y:0});function UD(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function qD(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function ZK(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function OO(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function GD(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function TO(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const ZD=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=TO(t,t.left,t.top),a=[];for(const s of r){const{id:d}=s,f=n.get(d);if(f){const p=UD(TO(f),i);a.push({id:d,data:{droppableContainer:s,value:p}})}}return a.sort(qD)},WK=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=OO(t),a=[];for(const s of r){const{id:d}=s,f=n.get(d);if(f){const p=OO(f),m=i.reduce((_,b,j)=>_+UD(p[j],b),0),y=Number((m/4).toFixed(4));a.push({id:d,data:{droppableContainer:s,value:y}})}}return a.sort(qD)};function YK(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),s=i-r,d=a-n;if(r<i&&n<a){const f=t.width*t.height,p=e.width*e.height,m=s*d,y=m/(f+p-m);return Number(y.toFixed(4))}return 0}const KK=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const a of r){const{id:s}=a,d=n.get(s);if(d){const f=YK(d,t);f>0&&i.push({id:s,data:{droppableContainer:a,value:f}})}}return i.sort(ZK)};function XK(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function WD(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:ba}function QK(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return i.reduce((s,d)=>({...s,top:s.top+e*d.y,bottom:s.bottom+e*d.y,left:s.left+e*d.x,right:s.right+e*d.x}),{...n})}}const JK=QK(1);function eX(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function tX(e,t,n){const r=eX(t);if(!r)ret
|
||
|
|
flex items-center justify-center w-[20px] h-[20px] rounded-full font-black text-xs
|
||
|
|
transition-all duration-300
|
||
|
|
${s||d==="valid"?"bg-white text-black shadow-lg shadow-blue-500/30":"bg-white/10 text-white/30"}
|
||
|
|
`,children:u.jsx(i.icon,{size:15})}),u.jsx("span",{className:`font-semibold animate-fade-in ${s||d==="valid"?"text-white":"text-white/30"}`,children:i.title})]},a+1)})}),_Q=({show:e,onHide:t,addedCategories:n,removedCategories:r,onConfirm:i,isNewLocation:a=!1})=>{const{config:s}=Ae(),[d,f]=x.useState(!0),[p,m]=x.useState(!1),y=C=>s.Categories?.[C]||C,_=()=>{i({addedCategories:d?n:[],removedCategories:p?r:[],removeStock:p})},b=()=>{i(null)},j=n.length>0,E=r.length>0;return u.jsxs(ee,{show:e,onHide:t,style:{zIndex:1e4},centered:!0,children:[u.jsx(ee.Header,{closeButton:!0,children:u.jsx(ee.Title,{as:"strong",children:"Vehicle Stock"})}),u.jsxs(ee.Body,{children:[u.jsx("p",{className:"text-muted mb-3",children:a?"Would you like to automatically add vehicles to this dealership's stock based on the selected categories?":"You've changed the categories for this dealership. Would you like to automatically update the vehicle stock?"}),j&&u.jsxs("div",{className:"mb-3",children:[u.jsx(F.Check,{type:"switch",id:"sync-added",checked:d,onChange:C=>f(C.target.checked),label:u.jsxs("span",{children:[u.jsx("strong",{children:"Add vehicles"})," from"," ",a?"selected":"new"," categories"]})}),u.jsx("div",{className:"ms-4 mt-1",children:u.jsxs("small",{className:"text-muted",children:[a?"Categories: ":"Categories added: ",n.map(y).join(", ")]})})]}),E&&u.jsxs("div",{className:"mb-3",children:[u.jsx(F.Check,{type:"switch",id:"sync-removed",checked:p,onChange:C=>m(C.target.checked),label:u.jsxs("span",{children:[u.jsx("strong",{children:"Remove vehicles"})," from removed categories"]})}),u.jsx("div",{className:"ms-4 mt-1",children:u.jsxs("small",{className:"text-muted",children:["Categories removed:"," ",r.map(y).join(", ")]})})]})]}),u.jsxs(ee.Footer,{className:"flex justify-between",children:[u.jsx(ce,{variant:"outline-secondary",onClick:b,children:"Skip"}),u.jsx(ce,{variant:"primary",onClick:_,disabled:!d&&!p,children:"Sync Stock"})]})]})};function bQ(e){return Pe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 32C167.67 32 96 96.51 96 176c0 128 160 304 160 304s160-176 160-304c0-79.49-71.67-144-160-144zm0 224a64 64 0 1 1 64-64 64.07 64.07 0 0 1-64 64z"},child:[]}]})(e)}function wQ(e){return Pe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M413.967 276.8c1.06-6.235 1.06-13.518 1.06-20.8s-1.06-13.518-1.06-20.8l44.667-34.318c4.26-3.118 5.319-8.317 2.13-13.518L418.215 115.6c-2.129-4.164-8.507-6.235-12.767-4.164l-53.186 20.801c-10.638-8.318-23.394-15.601-36.16-20.801l-7.448-55.117c-1.06-4.154-5.319-8.318-10.638-8.318h-85.098c-5.318 0-9.577 4.164-10.637 8.318l-8.508 55.117c-12.767 5.2-24.464 12.482-36.171 20.801l-53.186-20.801c-5.319-2.071-10.638 0-12.767 4.164L49.1 187.365c-2.119 4.153-1.061 10.399 2.129 13.518L96.97 235.2c0 7.282-1.06 13.518-1.06 20.8s1.06 13.518 1.06 20.8l-44.668 34.318c-4.26 3.118-5.318 8.317-2.13 13.518L92.721 396.4c2.13 4.164 8.508 6.235 12.767 4.164l53.187-20.801c10.637 8.318 23.394 15.601 36.16 20.801l8.508 55.117c1.069 5.2 5.318 8.318 10.637 8.318h85.098c5.319 0 9.578-4.164 10.638-8.318l8.518-55.117c12.757-5.2 24.464-12.482 36.16-20.801l53.187 20.801c5.318 2.071 10.637 0 12.767-4.164l42.549-71.765c2.129-4.153 1.06-10.399-2.13-13.518l-46.8-34.317zm-158.499 52c-41.489 0-74.46-32.235-74.46-72.8s32.971-72.8 74.46-72.8 74.461 32.235 74.461 72.8-32.972 72.8-74.461 72.8z"},child:[]}]})(e)}const I1=[zF,bQ,wQ],SQ=sn().shape({x:Mt().required(),y:Mt().required(),z:Mt().required()}),Qm=sn().shape({x:Mt().required(),y:Mt().required(),z:Mt().required(),w:Mt().required()}).nullable().default(null),CQ=(e,t)=>{const n={name:_n().max(100).required(e.required),type:Sg().oneOf(["selfService","owned"]).required(e.required),jobName:_n().when("type",{is:"owned",then:p=>t.UseFrameworkJobs?p.required(e.required):p,otherwise:p=>p}),jobNameIsValid:kr().when(["type","jobName"],{is:(p,m)=>p==="owned"&&m&&m.trim()!=="",then:p=>p.oneOf([!0],"Job must be validated before continuing"),otherwise:p=>p}),jobRankPermissions:sn(),jobRankMapping:sn(),categories:Ra().of(_n()).min(1,e.required)},r={dealershipZone:Ra()
|
||
|
|
* Signature Pad v2.3.2
|
||
|
|
* https://github.com/szimek/signature_pad
|
||
|
|
*
|
||
|
|
* Copyright 2017 Szymon Nowak
|
||
|
|
* Released under the MIT license
|
||
|
|
*
|
||
|
|
* The main idea and some parts of the code (e.g. drawing variable width Bézier curve) are taken from:
|
||
|
|
* http://corner.squareup.com/2012/07/smoother-signatures.html
|
||
|
|
*
|
||
|
|
* Implementation of interpolation using cubic Bézier curves is taken from:
|
||
|
|
* http://benknowscode.wordpress.com/2012/09/14/path-interpolation-using-cubic-bezier-and-control-point-estimation-in-javascript
|
||
|
|
*
|
||
|
|
* Algorithm for approximated length of a Bézier curve is taken from:
|
||
|
|
* http://www.lemoda.net/maths/bezier-length/index.html
|
||
|
|
*
|
||
|
|
*/function wc(e,t,n){this.x=e,this.y=t,this.time=n||new Date().getTime()}wc.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1};wc.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))};wc.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time};function sS(e,t,n,r){this.startPoint=e,this.control1=t,this.control2=n,this.endPoint=r}sS.prototype.length=function(){for(var e=10,t=0,n=void 0,r=void 0,i=0;i<=e;i+=1){var a=i/e,s=this._point(a,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),d=this._point(a,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(i>0){var f=s-n,p=d-r;t+=Math.sqrt(f*f+p*p)}n=s,r=d}return t};sS.prototype._point=function(e,t,n,r,i){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*r*(1-e)*e*e+i*e*e*e};function tJ(e,t,n){var r,i,a,s=null,d=0;n||(n={});var f=function(){d=n.leading===!1?0:Date.now(),s=null,a=e.apply(r,i),s||(r=i=null)};return function(){var p=Date.now();!d&&n.leading===!1&&(d=p);var m=t-(p-d);return r=this,i=arguments,m<=0||m>t?(s&&(clearTimeout(s),s=null),d=p,a=e.apply(r,i),s||(r=i=null)):!s&&n.trailing!==!1&&(s=setTimeout(f,m)),a}}function Kt(e,t){var n=this,r=t||{};this.velocityFilterWeight=r.velocityFilterWeight||.7,this.minWidth=r.minWidth||.5,this.maxWidth=r.maxWidth||2.5,this.throttle="throttle"in r?r.throttle:16,this.minDistance="minDistance"in r?r.minDistance:5,this.throttle?this._strokeMoveUpdate=tJ(Kt.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=Kt.prototype._strokeUpdate,this.dotSize=r.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=r.penColor||"black",this.backgroundColor=r.backgroundColor||"rgba(0,0,0,0)",this.onBegin=r.onBegin,this.onEnd=r.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(i){i.which===1&&(n._mouseButtonDown=!0,n._strokeBegin(i))},this._handleMouseMove=function(i){n._mouseButtonDown&&n._strokeMoveUpdate(i)},this._handleMouseUp=function(i){i.which===1&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(i))},this._handleTouchStart=function(i){if(i.targetTouches.length===1){var a=i.changedTouches[0];n._strokeBegin(a)}},this._handleTouchMove=function(i){i.preventDefault();var a=i.targetTouches[0];n._strokeMoveUpdate(a)},this._handleTouchEnd=function(i){var a=i.target===n._canvas;a&&(i.preventDefault(),n._strokeEnd(i))},this.on()}Kt.prototype.clear=function(){var e=this._ctx,t=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0};Kt.prototype.fromDataURL=function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new Image,i=n.ratio||window.devicePixelRatio||1,a=n.width||this._canvas.width/i,s=n.height||this._canvas.height/i;this._reset(),r.src=e,r.onload=function(){t._ctx.drawImage(r,0,0,a,s)},this._isEmpty=!1};Kt.prototype.toDataURL=function(e){var t;switch(e){case"image/svg+xml":return this._toSVG();default:for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(t=this._canvas).toDataURL.apply(t,[e].concat(r))}};Kt.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()};Kt.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)};Kt.prototype.isEmpty=function(){return this._isEmpty};Kt.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),typeof this.onBegin=="function"&&this.onBegin(e)};Kt.prototype._strokeUpdate=function(e){var t=e.clientX,n=e.clientY,r=this._createPoint(t,n),i=this._data[this._data.length-1],a=i&&i[i.length-1],s=a&&r.distanceT
|
||
|
|
* @license React
|
||
|
|
* use-sync-external-store-shim.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var MT;function _ee(){if(MT)return S_;MT=1;var e=ud();function t(y,_){return y===_&&(y!==0||1/y===1/_)||y!==y&&_!==_}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function d(y,_){var b=_(),j=r({inst:{value:b,getSnapshot:_}}),E=j[0].inst,C=j[1];return a(function(){E.value=b,E.getSnapshot=_,f(E)&&C({inst:E})},[y,b,_]),i(function(){return f(E)&&C({inst:E}),y(function(){f(E)&&C({inst:E})})},[y]),s(b),b}function f(y){var _=y.getSnapshot;y=y.value;try{var b=_();return!n(y,b)}catch{return!0}}function p(y,_){return _()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:d;return S_.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,S_}var AT;function bee(){return AT||(AT=1,w_.exports=_ee()),w_.exports}/**
|
||
|
|
* @license React
|
||
|
|
* use-sync-external-store-shim/with-selector.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var NT;function wee(){if(NT)return b_;NT=1;var e=ud(),t=bee();function n(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,a=e.useRef,s=e.useEffect,d=e.useMemo,f=e.useDebugValue;return b_.useSyncExternalStoreWithSelector=function(p,m,y,_,b){var j=a(null);if(j.current===null){var E={hasValue:!1,value:null};j.current=E}else E=j.current;j=d(function(){function T(R){if(!k){if(k=!0,A=R,R=_(R),b!==void 0&&E.hasValue){var z=E.value;if(b(z,R))return D=z}return D=R}if(z=D,r(A,R))return z;var q=_(R);return b!==void 0&&b(z,q)?(A=R,z):(A=R,D=q)}var k=!1,A,D,N=y===void 0?null:y;return[function(){return T(m())},N===null?void 0:function(){return T(N())}]},[m,y,_,b]);var C=i(p,j[0],j[1]);return s(function(){E.hasValue=!0,E.value=C},[C]),f(C),C},b_}var kT;function See(){return kT||(kT=1,__.exports=wee()),__.exports}var Cee=See(),gS=x.createContext(null),jee=e=>e,tr=()=>{var e=x.useContext(gS);return e?e.store.dispatch:jee},Tg=()=>{},Eee=()=>Tg,Oee=(e,t)=>e===t;function rt(e){var t=x.useContext(gS);return Cee.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:Eee,t?t.store.getState:Tg,t?t.store.getState:Tg,t?e:Tg,Oee)}function Tee(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Mee(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Aee(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var DT=e=>Array.isArray(e)?e:[e];function Nee(e){const t=Array.isArray(e[0])?e[0]:e;return Aee(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function kee(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var Dee=class{constructor(e){this.value=e}deref(){return this.value}},Pee=typeof WeakRef<"u"?WeakRef:Dee,Ree=0,PT=1;function ng(){return{s:Ree,v:void 0,o:null,p:null}}function Q8(e,t={}){let n=ng();const{resultEqualityCheck:r}=t;let i,a=0;function s(){let d=n;const{length:f}=arguments;for(let y=0,_=f;y<_;y++){const b=arguments[y];if(typeof b=="function"||typeof b=="object"&&b!==null){let j=d.o;j===null&&(d.o=j=new WeakMap);const E=j.get(b);E===void 0?(d=ng(),j.set(b,d)):d=E}else{let j=d.p;j===null&&(d.p=j=new Map);const E=j.get(b);E===void 0?(d=ng(),j.set(b,d)):d=E}}const p=d;let m;if(d.s===PT)m=d.v;else if(m=e.apply(null,arguments),a++,r){const y=i?.deref?.()??i;y!=null&&r(y,m)&&(m=y,a!==0&&a--),i=typeof m=="object"&&m!==null||typeof m=="function"?new Pee(m):m}return p.s=PT,p.v=m,m}return s.clearCache=()=>{n=ng(),s.resetResultsCount()},s.resultsCount=()=>a,s.resetResultsCount=()=>{a=0},s}function Iee(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let a=0,s=0,d,f={},p=i.pop();typeof p=="object"&&(f=p,p=i.pop()),Tee(p,`createSelector expects an output function after the inputs, but received: [${typeof p}]`);const m={...n,...f},{memoize:y,memoizeOptions:_=[],argsMemoize:b=Q8,argsMemoizeOptions:j=[]}=m,E=DT(_),C=DT(j),T=Nee(i),k=y(function(){return a++,p.apply(null,arguments)},...E),A=b(function(){s++;const N=kee(T,arguments);return d=k.apply(null,N),d},...C);return Object.assign(A,{resultFunc:p,memoizedResultFunc:k,dependencies:T,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>d,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:y,argsMemoize:b})};return Object.assign(r,{withTypes:()=>r}),r}var xe=Iee(Q8),Lee=Object.assign((e,t=xe)=>{Mee(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(a=>e[a]);return t(r,(...a)=>a.reduce((s,d,f)=>(s[n[f]]=d,s),{}))},{withTypes:()=>Lee}),C_={},j_={},E_={},RT;function zee(){return RT||(RT=1,function(e){Object.defineProperty(e,Symbol.toStringTa
|
||
|
|
please check the style of container, or the props width(%s) and height(%s),
|
||
|
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
||
|
|
height and width.`,R,z,i,a,s,d,n),x.createElement("div",{id:y?"".concat(y):void 0,className:Ne("recharts-responsive-container",_),style:pM(pM({},j),{},{width:i,height:a,minWidth:s,minHeight:d,maxHeight:f}),ref:E},x.createElement("div",{style:Tne({width:i,height:a})},x.createElement(PP,{width:R,height:z},p)))}),Rne=x.forwardRef((e,t)=>{var n=wS();if(hl(n.width)&&hl(n.height))return e.children;var{width:r,height:i}=Mne({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:s}=kP(void 0,void 0,{width:r,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return at(a)&&at(s)?x.createElement(PP,{width:a,height:s},e.children):x.createElement(Pne,mw({},e,{width:r,height:i,ref:t}))});function RP(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var D0=()=>{var e,t=Ei(),n=rt(gne),r=rt(k0),i=(e=rt(N0))===null||e===void 0?void 0:e.padding;return!t||!r||!i?n:{width:r.width-i.left-i.right,height:r.height-i.top-i.bottom,x:i.left,y:i.top}},Ine={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Lne=()=>{var e;return(e=rt(mr))!==null&&e!==void 0?e:Ine},zne=()=>rt(es),Bne=()=>rt(ts),nn=e=>e.layout.layoutType,P0=()=>rt(nn),Fne=()=>{var e=P0();return e!==void 0},R0=e=>{var t=tr(),n=Ei(),{width:r,height:i}=e,a=wS(),s=r,d=i;return a&&(s=a.width>0?a.width:r,d=a.height>0?a.height:i),x.useEffect(()=>{!n&&hl(s)&&hl(d)&&t($te({width:s,height:d}))},[t,n,s,d]),null},$ne={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},IP=Qr({name:"legend",initialState:$ne,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:Bn()},removeLegendPayload:{reducer(e,t){var n=Lo(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)},prepare:Bn()}}}),{setLegendSize:Bme,setLegendSettings:Fme,addLegendPayload:Vne,removeLegendPayload:Hne}=IP.actions,Une=IP.reducer;function gw(){return gw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gw.apply(null,arguments)}function mM(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 B_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mM(Object(n),!0).forEach(function(r){qne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qne(e,t,n){return(t=Gne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gne(e){var t=Zne(e,"string");return typeof t=="symbol"?t:t+""}function Zne(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wne(e){return Array.isArray(e)&&Za(e[0])&&Za(e[1])?e.join(" ~ "):e}var Yne=e=>{var{separator:t=" : ",contentStyle:n={},itemStyle:r={},labelStyle:i={},payload:a,formatter:s,itemSorter:d,wrapperClassName:f,labelClassName:p,label:m,labelFormatter:y,accessibilityLayer:_=!1}=e,b=()=>{if(a&&a.length){var N={padding:0,margin:0},R=(d?S0(a,d):a).map((z,q)=>{if(z.type==="none")return null;var X=z.formatter||s||Wne,{value:J,name:V}=z,U=J,ne=V;if(X){var Se=X(J,V,z,q,a);if(Array.isArray(Se))[U,ne]=Se;else if(Se!=null)U=Se;else return null}var we=B_({display:"block",paddingTop:4,paddingBottom
|
||
|
|
`).concat(e+n,",").concat(t+s*m[1])),p+="L ".concat(e+n,",").concat(t+r-s*m[2]),m[2]>0&&(p+="A ".concat(m[2],",").concat(m[2],",0,0,").concat(f,`,
|
||
|
|
`).concat(e+n-d*m[2],",").concat(t+r)),p+="L ".concat(e+d*m[3],",").concat(t+r),m[3]>0&&(p+="A ".concat(m[3],",").concat(m[3],",0,0,").concat(f,`,
|
||
|
|
`).concat(e,",").concat(t+r-s*m[3])),p+="Z"}else if(a>0&&i===+i&&i>0){var b=Math.min(a,i);p="M ".concat(e,",").concat(t+s*b,`
|
||
|
|
A `).concat(b,",").concat(b,",0,0,").concat(f,",").concat(e+d*b,",").concat(t,`
|
||
|
|
L `).concat(e+n-d*b,",").concat(t,`
|
||
|
|
A `).concat(b,",").concat(b,",0,0,").concat(f,",").concat(e+n,",").concat(t+s*b,`
|
||
|
|
L `).concat(e+n,",").concat(t+r-s*b,`
|
||
|
|
A `).concat(b,",").concat(b,",0,0,").concat(f,",").concat(e+n-d*b,",").concat(t+r,`
|
||
|
|
L `).concat(e+d*b,",").concat(t+r,`
|
||
|
|
A `).concat(b,",").concat(b,",0,0,").concat(f,",").concat(e,",").concat(t+r-s*b," Z")}else p="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return p},DM={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Wre=e=>{var t=ta(e,DM),n=x.useRef(null),[r,i]=x.useState(-1);x.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var ie=n.current.getTotalLength();ie&&i(ie)}catch{}},[]);var{x:a,y:s,width:d,height:f,radius:p,className:m}=t,{animationEasing:y,animationDuration:_,animationBegin:b,isAnimationActive:j,isUpdateAnimationActive:E}=t,C=x.useRef(d),T=x.useRef(f),k=x.useRef(a),A=x.useRef(s),D=x.useMemo(()=>({x:a,y:s,width:d,height:f,radius:p}),[a,s,d,f,p]),N=VP(D,"rectangle-");if(a!==+a||s!==+s||d!==+d||f!==+f||d===0||f===0)return null;var R=Ne("recharts-rectangle",m);if(!E){var z=Qi(t),{radius:q}=z,X=NM(z,Vre);return x.createElement("path",mv({},X,{radius:typeof p=="number"?p:void 0,className:R,d:kM(a,s,d,f,p)}))}var J=C.current,V=T.current,U=k.current,ne=A.current,Se="0px ".concat(r===-1?1:r,"px"),we="".concat(r,"px 0px"),W=Sre(["strokeDasharray"],_,typeof y=="string"?y:DM.animationEasing);return x.createElement($P,{animationId:N,key:N,canBegin:r>0,duration:_,easing:y,isActive:E,begin:b},ie=>{var pe=Ia(J,d,ie),je=Ia(V,f,ie),H=Ia(U,a,ie),Q=Ia(ne,s,ie);n.current&&(C.current=pe,T.current=je,k.current=H,A.current=Q);var ue;j?ie>0?ue={transition:W,strokeDasharray:we}:ue={strokeDasharray:Se}:ue={strokeDasharray:we};var Y=Qi(t),{radius:ye}=Y,se=NM(Y,Hre);return x.createElement("path",mv({},se,{radius:typeof p=="number"?p:void 0,className:R,d:kM(H,Q,pe,je,p),ref:n,style:AM(AM({},ue),t.style)}))})};function PM(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 RM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PM(Object(n),!0).forEach(function(r){Yre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yre(e,t,n){return(t=Kre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kre(e){var t=Xre(e,"string");return typeof t=="symbol"?t:t+""}function Xre(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gv=Math.PI/180,Qre=e=>e*180/Math.PI,hr=(e,t,n,r)=>({x:e+Math.cos(-gv*r)*n,y:t+Math.sin(-gv*r)*n}),Jre=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},eie=(e,t)=>{var{x:n,y:r}=e,{x:i,y:a}=t;return Math.sqrt((n-i)**2+(r-a)**2)},tie=(e,t)=>{var{x:n,y:r}=e,{cx:i,cy:a}=t,s=eie({x:n,y:r},{x:i,y:a});if(s<=0)return{radius:s,angle:0};var d=(n-i)/s,f=Math.acos(d);return r>a&&(f=2*Math.PI-f),{radius:s,angle:Qre(f),angleInRadian:f}},nie=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),i=Math.floor(n/360),a=Math.min(r,i);return{startAngle:t-a*360,endAngle:n-a*360}},rie=(e,t)=>{var{startAngle:n,endAngle:r}=t,i=Math.floor(n/360),a=Math.floor(r/360),s=Math.min(i,a);return e+s*360},iie=(e,t)=>{var{chartX:n,chartY:r}=e,{radius:i,angle:a}=tie({x:n,y:r},t),{innerRadius:s,outerRadius:d}=t;if(i<s||i>d||i===0)return null;var{startAngle:f,endAngle:p}=nie(t),m=a,y;if(f<=p){for(;m>p;)m-=360;for(;m<f;)m+=360;y=m>=f&&m<=p}else{for(;m>f;)m-=360;for(;m<p;)m+=360;y=m>=p&&m<=f}return y?RM(RM({},t),{},{radius:i,angle:rie(m,t)}):null};function HP(e){var{cx:t,cy:n,radius:r,startAngle:i,endAngle:a}=e,s=hr(t,n,r,i),d=hr(t,n,r,a);return{points:[s,d],cx:t,cy:n,radiu
|
||
|
|
A `).concat(i,",").concat(i,`,0,
|
||
|
|
`).concat(+(Math.abs(d)>180),",").concat(+(a>f),`,
|
||
|
|
`).concat(m.x,",").concat(m.y,`
|
||
|
|
`);if(r>0){var _=hr(t,n,r,a),b=hr(t,n,r,f);y+="L ".concat(b.x,",").concat(b.y,`
|
||
|
|
A `).concat(r,",").concat(r,`,0,
|
||
|
|
`).concat(+(Math.abs(d)>180),",").concat(+(a<=f),`,
|
||
|
|
`).concat(_.x,",").concat(_.y," Z")}else y+="L ".concat(t,",").concat(n," Z");return y},oie=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:a,forceCornerRadius:s,cornerIsExternal:d,startAngle:f,endAngle:p}=e,m=ya(p-f),{circleTangency:y,lineTangency:_,theta:b}=cg({cx:t,cy:n,radius:i,angle:f,sign:m,cornerRadius:a,cornerIsExternal:d}),{circleTangency:j,lineTangency:E,theta:C}=cg({cx:t,cy:n,radius:i,angle:p,sign:-m,cornerRadius:a,cornerIsExternal:d}),T=d?Math.abs(f-p):Math.abs(f-p)-b-C;if(T<0)return s?"M ".concat(_.x,",").concat(_.y,`
|
||
|
|
a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0
|
||
|
|
a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0
|
||
|
|
`):UP({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:f,endAngle:p});var k="M ".concat(_.x,",").concat(_.y,`
|
||
|
|
A`).concat(a,",").concat(a,",0,0,").concat(+(m<0),",").concat(y.x,",").concat(y.y,`
|
||
|
|
A`).concat(i,",").concat(i,",0,").concat(+(T>180),",").concat(+(m<0),",").concat(j.x,",").concat(j.y,`
|
||
|
|
A`).concat(a,",").concat(a,",0,0,").concat(+(m<0),",").concat(E.x,",").concat(E.y,`
|
||
|
|
`);if(r>0){var{circleTangency:A,lineTangency:D,theta:N}=cg({cx:t,cy:n,radius:r,angle:f,sign:m,isExternal:!0,cornerRadius:a,cornerIsExternal:d}),{circleTangency:R,lineTangency:z,theta:q}=cg({cx:t,cy:n,radius:r,angle:p,sign:-m,isExternal:!0,cornerRadius:a,cornerIsExternal:d}),X=d?Math.abs(f-p):Math.abs(f-p)-N-q;if(X<0&&a===0)return"".concat(k,"L").concat(t,",").concat(n,"Z");k+="L".concat(z.x,",").concat(z.y,`
|
||
|
|
A`).concat(a,",").concat(a,",0,0,").concat(+(m<0),",").concat(R.x,",").concat(R.y,`
|
||
|
|
A`).concat(r,",").concat(r,",0,").concat(+(X>180),",").concat(+(m>0),",").concat(A.x,",").concat(A.y,`
|
||
|
|
A`).concat(a,",").concat(a,",0,0,").concat(+(m<0),",").concat(D.x,",").concat(D.y,"Z")}else k+="L".concat(t,",").concat(n,"Z");return k},sie={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},lie=e=>{var t=ta(e,sie),{cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:s,forceCornerRadius:d,cornerIsExternal:f,startAngle:p,endAngle:m,className:y}=t;if(a<i||p===m)return null;var _=Ne("recharts-sector",y),b=a-i,j=fl(s,b,0,!0),E;return j>0&&Math.abs(p-m)<360?E=oie({cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:Math.min(j,b/2),forceCornerRadius:d,cornerIsExternal:f,startAngle:p,endAngle:m}):E=UP({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:p,endAngle:m}),x.createElement("path",bw({},Qi(t),{className:_,d:E}))};function cie(e,t,n){if(e==="horizontal")return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e==="vertical")return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(V8(t)){if(e==="centric"){var{cx:r,cy:i,innerRadius:a,outerRadius:s,angle:d}=t,f=hr(r,i,a,d),p=hr(r,i,s,d);return[{x:f.x,y:f.y},{x:p.x,y:p.y}]}return HP(t)}}var $_={},V_={},H_={},IM;function uie(){return IM||(IM=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=J8();function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n}(H_)),H_}var LM;function die(){return LM||(LM=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=uie();function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n}(V_)),V_}var zM;function fie(){return zM||(zM=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=eP(),n=die();function r(i,a,s){s&&typeof s!="number"&&t.isIterateeCall(i,a,s)&&(a=s=void 0),i=n.toFinite(i),a===void 0?(a=i,i=0):a=n.toFinite(a),s=s===void 0?i<a?1:-1:n.toFinite(s);const d=Math.max(Math.ceil((a-i)/(s||1)),0),f=new Array(d);for(let p=0;p<d;p++)f[p]=i,i+=s;return f}e.range=r}($_)),$_}var U_,BM;function hie(){return BM||(BM=1,U_=fie().range),U_}var pie=hie();const qP=Cr(pie);function sl(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function mie(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function SS(e){let t,n,r;e.length!==2?(t=sl,n=(d,f)=>sl(e(d),f),r=(d,f)=>e(d)-f):(t=e===sl||e===mie?e:gie,n=e,r=e);function i(d,f,p=0,m=d.length){if(p<m){if(t(f,f)!==0)return m;do{const y=p+m>>>1;n(d[y],f)<0?p=y+1:m=y}while(p<m)}return p}function a(d,f,p=0,m=d.length){if(p<m){if(t(f,f)!==0)return m;do{const y=p+m>>>1;n(d[y],f)<=0?p=y+1:m=y}while(p<m)}return p}function s(d,f,p=0,m=d.length){const y=i(d,f,p,m-1);return y>p&&r(d[y-1],f)>-r(d[y],f)?y-1:y}return{left:i,center:s,right:a}}function gie(){return 0}function GP(e){return e===null?NaN:+e}function*vie(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const yie=SS(sl),tp=yie.right;SS(GP).center;class FM extends Map{constructor(t,n=bie){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($M(this,t))}has(t){return super.has($M(this,t))}set(t,n){return super.set(xie(this,t),n)}delete(t){return super.delete(_ie(this,t))}}function $M({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function xie({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function _ie({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function bie(e){return e!==null&&typeof e=="object"?e.valueOf():e}function wie(e=sl){if(e===sl)return ZP;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 ZP(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Sie=Math.sqrt(50),Cie=Math.sqrt(10),jie=Math.sqrt(2);function vv(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),s=a>=Sie?10:a>=Cie?5:a>=jie?2:1;let d,f,p;return i<0?(p=Math.pow(10,-i)/s,d=Math.round(e*p),f=Math.round(t*p),d/p<e&&++d,f/p>t&&--f,p=-p):(p=Math.
|
||
|
|
A`).concat(j,",").concat(j,",0,1,").concat(k?0:1,`,
|
||
|
|
`).concat(D.x,",").concat(D.y),R=pr(e.id)?wh("recharts-radial-line-"):e.id;return x.createElement("text",Do({},r,{dominantBaseline:"central",className:Ne("recharts-radial-bar-label",s)}),x.createElement("defs",null,x.createElement("path",{id:R,d:N})),x.createElement("textPath",{xlinkHref:"#".concat(R)},n))},tde=(e,t,n)=>{var{cx:r,cy:i,innerRadius:a,outerRadius:s,startAngle:d,endAngle:f}=e,p=(d+f)/2;if(n==="outside"){var{x:m,y}=hr(r,i,s+t,p);return{x:m,y,textAnchor:m>=r?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"end"};var _=(a+s)/2,{x:b,y:j}=hr(r,i,_,p);return{x:b,y:j,textAnchor:"middle",verticalAnchor:"middle"}},zw=e=>"cx"in e&&at(e.cx),nde=(e,t)=>{var{parentViewBox:n,offset:r,position:i}=e,a;n!=null&&!zw(n)&&(a=n);var{x:s,y:d,upperWidth:f,lowerWidth:p,height:m}=t,y=s,_=s+(f-p)/2,b=(y+_)/2,j=(f+p)/2,E=y+f/2,C=m>=0?1:-1,T=C*r,k=C>0?"end":"start",A=C>0?"start":"end",D=f>=0?1:-1,N=D*r,R=D>0?"end":"start",z=D>0?"start":"end";if(i==="top"){var q={x:y+f/2,y:d-T,textAnchor:"middle",verticalAnchor:k};return jn(jn({},q),a?{height:Math.max(d-a.y,0),width:f}:{})}if(i==="bottom"){var X={x:_+p/2,y:d+m+T,textAnchor:"middle",verticalAnchor:A};return jn(jn({},X),a?{height:Math.max(a.y+a.height-(d+m),0),width:p}:{})}if(i==="left"){var J={x:b-N,y:d+m/2,textAnchor:R,verticalAnchor:"middle"};return jn(jn({},J),a?{width:Math.max(J.x-a.x,0),height:m}:{})}if(i==="right"){var V={x:b+j+N,y:d+m/2,textAnchor:z,verticalAnchor:"middle"};return jn(jn({},V),a?{width:Math.max(a.x+a.width-V.x,0),height:m}:{})}var U=a?{width:j,height:m}:{};return i==="insideLeft"?jn({x:b+N,y:d+m/2,textAnchor:z,verticalAnchor:"middle"},U):i==="insideRight"?jn({x:b+j-N,y:d+m/2,textAnchor:R,verticalAnchor:"middle"},U):i==="insideTop"?jn({x:y+f/2,y:d+T,textAnchor:"middle",verticalAnchor:A},U):i==="insideBottom"?jn({x:_+p/2,y:d+m-T,textAnchor:"middle",verticalAnchor:k},U):i==="insideTopLeft"?jn({x:y+N,y:d+T,textAnchor:z,verticalAnchor:A},U):i==="insideTopRight"?jn({x:y+f-N,y:d+T,textAnchor:R,verticalAnchor:A},U):i==="insideBottomLeft"?jn({x:_+N,y:d+m-T,textAnchor:z,verticalAnchor:k},U):i==="insideBottomRight"?jn({x:_+p-N,y:d+m-T,textAnchor:R,verticalAnchor:k},U):i&&typeof i=="object"&&(at(i.x)||Uo(i.x))&&(at(i.y)||Uo(i.y))?jn({x:s+fl(i.x,j),y:d+fl(i.y,m),textAnchor:"end",verticalAnchor:"end"},U):jn({x:E,y:d+m/2,textAnchor:"middle",verticalAnchor:"middle"},U)},rde={offset:5,zIndex:Zr.label};function nl(e){var t=ta(e,rde),{viewBox:n,position:r,value:i,children:a,content:s,className:d="",textBreakAll:f,labelRef:p}=t,m=Xue(),y=v9(),_=r==="center"?y:m??y,b,j,E;if(n==null?b=_:zw(n)?b=n:b=RP(n),!b||pr(i)&&pr(a)&&!x.isValidElement(s)&&typeof s!="function")return null;var C=jn(jn({},t),{},{viewBox:b});if(x.isValidElement(s)){var{labelRef:T}=C,k=Uue(C,Hue);return x.cloneElement(s,k)}if(typeof s=="function"){if(j=x.createElement(s,C),x.isValidElement(j))return j}else j=Que(t);var A=Qi(t);if(zw(b)){if(r==="insideStart"||r==="insideEnd"||r==="end")return ede(t,r,j,A,b);E=tde(b,t.offset,t.position)}else E=nde(t,b);return x.createElement(xl,{zIndex:t.zIndex},x.createElement(bC,Do({ref:p,className:Ne("recharts-label",d)},A,E,{textAnchor:zue(A.textAnchor)?A.textAnchor:E.textAnchor,breakAll:f}),j))}nl.displayName="Label";var ide=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?x.createElement(nl,Do({key:"label-implicit"},r)):Za(e)?x.createElement(nl,Do({key:"label-implicit",value:e},r)):x.isValidElement(e)?e.type===nl?x.cloneElement(e,jn({key:"label-implicit"},r)):x.createElement(nl,Do({key:"label-implicit",content:e},r)):wC(e)?x.createElement(nl,Do({key:"label-implicit",content:e},r)):e&&typeof e=="object"?x.createElement(nl,Do({},e,{key:"label-implicit"},r)):null};function ade(e){var{label:t,labelRef:n}=e,r=v9();return ide(t,r,n)||null}var tb={},nb={},n6;function ode(){return n6||(n6=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value
|
||
|
|
* @license React
|
||
|
|
* use-sync-external-store-with-selector.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var v6;function zhe(){if(v6)return cb;v6=1;var e=ud();function t(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,d=e.useDebugValue;return cb.useSyncExternalStoreWithSelector=function(f,p,m,y,_){var b=i(null);if(b.current===null){var j={hasValue:!1,value:null};b.current=j}else j=b.current;b=s(function(){function C(N){if(!T){if(T=!0,k=N,N=y(N),_!==void 0&&j.hasValue){var R=j.value;if(_(R,N))return A=R}return A=N}if(R=A,n(k,N))return R;var z=y(N);return _!==void 0&&_(R,z)?(k=N,R):(k=N,A=z)}var T=!1,k,A,D=m===void 0?null:m;return[function(){return C(p())},D===null?void 0:function(){return C(D())}]},[p,m,y,_]);var E=r(f,b[0],b[1]);return a(function(){j.hasValue=!0,j.value=E},[E]),d(E),E},cb}var y6;function Bhe(){return y6||(y6=1,lb.exports=zhe()),lb.exports}Bhe();function Fhe(e){e()}function $he(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Fhe(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var x6={notify(){},get:()=>[]};function Vhe(e,t){let n,r=x6,i=0,a=!1;function s(E){m();const C=r.subscribe(E);let T=!1;return()=>{T||(T=!0,C(),y())}}function d(){r.notify()}function f(){j.onStateChange&&j.onStateChange()}function p(){return a}function m(){i++,n||(n=e.subscribe(f),r=$he())}function y(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=x6)}function _(){a||(a=!0,m())}function b(){a&&(a=!1,y())}const j={addNestedSub:s,notifyNestedSubs:d,handleChangeWrapper:f,isSubscribed:p,trySubscribe:_,tryUnsubscribe:b,getListeners:()=>r};return j}var Hhe=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Uhe=Hhe(),qhe=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Ghe=qhe(),Zhe=()=>Uhe||Ghe?x.useLayoutEffect:x.useEffect,Whe=Zhe(),Yhe=Symbol.for("react-redux-context"),Khe=typeof globalThis<"u"?globalThis:{};function Xhe(){if(!x.createContext)return{};const e=Khe[Yhe]??=new Map;let t=e.get(x.createContext);return t||(t=x.createContext(null),e.set(x.createContext,t)),t}var Qhe=Xhe();function Jhe(e){const{children:t,context:n,serverState:r,store:i}=e,a=x.useMemo(()=>{const f=Vhe(i);return{store:i,subscription:f,getServerState:r?()=>r:void 0}},[i,r]),s=x.useMemo(()=>i.getState(),[i]);Whe(()=>{const{subscription:f}=a;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),s!==i.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[a,s]);const d=n||Qhe;return x.createElement(d.Provider,{value:a},t)}var epe=Jhe,tpe=(e,t)=>t,EC=xe([tpe,nn,GR,Vn,Z7,as,pce,mr],bce),OC=e=>{var t=e.currentTarget.getBoundingClientRect(),n=t.width/e.currentTarget.offsetWidth,r=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/n),chartY:Math.round((e.clientY-t.top)/r)}},$9=Ji("mouseClick"),V9=Jh();V9.startListening({actionCreator:$9,effect:(e,t)=>{var n=e.payload,r=EC(t.getState(),OC(n));r?.activeIndex!=null&&t.dispatch(gle({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var Hw=Ji("mouseMove"),H9=Jh();H9.startListening({actionCreator:Hw,effect:(e,t)=>{var n=e.payload,r=t.getState(),i=fC(r,r.tooltip.settings.shared),a=EC(r,OC(n));i==="axis"&&(a?.activeIndex!=null?t.dispatch(z7({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(L7()))}});var _6={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0},U9=Qr({name:"rootProps",initialState:_6,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:_6.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSi
|