@iblai/iblai-js 1.20.19 → 1.20.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22803,7 +22803,7 @@ function visit(tree, testOrVisitor, visitorOrReverse, maybeReverse) {
|
|
|
22803
22803
|
|
|
22804
22804
|
if (
|
|
22805
22805
|
typeof testOrVisitor === 'function' &&
|
|
22806
|
-
|
|
22806
|
+
typeof visitorOrReverse !== 'function'
|
|
22807
22807
|
) {
|
|
22808
22808
|
test = undefined;
|
|
22809
22809
|
visitor = testOrVisitor;
|
|
@@ -45465,7 +45465,7 @@ var getProperty = function getProperty(obj, name) {
|
|
|
45465
45465
|
return obj[name];
|
|
45466
45466
|
};
|
|
45467
45467
|
|
|
45468
|
-
var extend$
|
|
45468
|
+
var extend$3 = function extend() {
|
|
45469
45469
|
var options, name, src, copy, copyIsArray, clone;
|
|
45470
45470
|
var target = arguments[0];
|
|
45471
45471
|
var i = 1;
|
|
@@ -45519,7 +45519,7 @@ var extend$2 = function extend() {
|
|
|
45519
45519
|
return target;
|
|
45520
45520
|
};
|
|
45521
45521
|
|
|
45522
|
-
var extend$
|
|
45522
|
+
var extend$2 = /*@__PURE__*/getDefaultExportFromCjs(extend$3);
|
|
45523
45523
|
|
|
45524
45524
|
function isPlainObject$3(value) {
|
|
45525
45525
|
if (typeof value !== 'object' || value === null) {
|
|
@@ -45949,7 +45949,7 @@ class Processor extends CallableInstance {
|
|
|
45949
45949
|
destination.use(...attacher);
|
|
45950
45950
|
}
|
|
45951
45951
|
|
|
45952
|
-
destination.data(extend$
|
|
45952
|
+
destination.data(extend$2(true, {}, this.namespace));
|
|
45953
45953
|
|
|
45954
45954
|
return destination
|
|
45955
45955
|
}
|
|
@@ -46547,7 +46547,7 @@ class Processor extends CallableInstance {
|
|
|
46547
46547
|
addList(result.plugins);
|
|
46548
46548
|
|
|
46549
46549
|
if (result.settings) {
|
|
46550
|
-
namespace.settings = extend$
|
|
46550
|
+
namespace.settings = extend$2(true, namespace.settings, result.settings);
|
|
46551
46551
|
}
|
|
46552
46552
|
}
|
|
46553
46553
|
|
|
@@ -46593,7 +46593,7 @@ class Processor extends CallableInstance {
|
|
|
46593
46593
|
let [primary, ...rest] = parameters;
|
|
46594
46594
|
const currentPrimary = attachers[entryIndex][1];
|
|
46595
46595
|
if (isPlainObject$3(currentPrimary) && isPlainObject$3(primary)) {
|
|
46596
|
-
primary = extend$
|
|
46596
|
+
primary = extend$2(true, currentPrimary, primary);
|
|
46597
46597
|
}
|
|
46598
46598
|
|
|
46599
46599
|
attachers[entryIndex] = [plugin, primary, ...rest];
|
|
@@ -53527,7 +53527,7 @@ var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"];
|
|
|
53527
53527
|
var SELECTION_KEYS$1 = [" ", "Enter"];
|
|
53528
53528
|
var SELECT_NAME = "Select";
|
|
53529
53529
|
var [Collection$4, useCollection$4, createCollectionScope$4] = createCollection$2(SELECT_NAME);
|
|
53530
|
-
var [createSelectContext
|
|
53530
|
+
var [createSelectContext] = createContextScope$1(SELECT_NAME, [
|
|
53531
53531
|
createCollectionScope$4,
|
|
53532
53532
|
createPopperScope$1
|
|
53533
53533
|
]);
|
|
@@ -57689,7 +57689,7 @@ VisuallyHidden$1.displayName = NAME$5;
|
|
|
57689
57689
|
|
|
57690
57690
|
var PROVIDER_NAME$1 = "ToastProvider";
|
|
57691
57691
|
var [Collection$3, useCollection$3, createCollectionScope$3] = createCollection$1("Toast");
|
|
57692
|
-
var [createToastContext
|
|
57692
|
+
var [createToastContext] = createContextScope$1("Toast", [createCollectionScope$3]);
|
|
57693
57693
|
var [ToastProviderProvider, useToastProviderContext] = createToastContext(PROVIDER_NAME$1);
|
|
57694
57694
|
var ToastProvider$1 = (props) => {
|
|
57695
57695
|
const {
|
|
@@ -58564,7 +58564,7 @@ function subscribe() {
|
|
|
58564
58564
|
}
|
|
58565
58565
|
|
|
58566
58566
|
var AVATAR_NAME = "Avatar";
|
|
58567
|
-
var [createAvatarContext
|
|
58567
|
+
var [createAvatarContext] = createContextScope$1(AVATAR_NAME);
|
|
58568
58568
|
var [AvatarProvider, useAvatarContext] = createAvatarContext(AVATAR_NAME);
|
|
58569
58569
|
var Avatar$1 = React.forwardRef(
|
|
58570
58570
|
(props, forwardedRef) => {
|
|
@@ -58685,7 +58685,7 @@ const AvatarFallback = React.forwardRef(({ className, ...props }, ref) => (jsx(F
|
|
|
58685
58685
|
AvatarFallback.displayName = Fallback.displayName;
|
|
58686
58686
|
|
|
58687
58687
|
var SWITCH_NAME = "Switch";
|
|
58688
|
-
var [createSwitchContext
|
|
58688
|
+
var [createSwitchContext] = createContextScope$1(SWITCH_NAME);
|
|
58689
58689
|
var [SwitchProvider, useSwitchContext] = createSwitchContext(SWITCH_NAME);
|
|
58690
58690
|
var Switch$1 = React.forwardRef(
|
|
58691
58691
|
(props, forwardedRef) => {
|
|
@@ -60584,7 +60584,7 @@ var clawSandboxSandboxConfig$3 = {
|
|
|
60584
60584
|
colVersion: "VERSION",
|
|
60585
60585
|
colLastCheck: "LAST CHECK",
|
|
60586
60586
|
noInstancesMatchSearch: "No instances match your search.",
|
|
60587
|
-
noInstancesAvailable: "No instances available.
|
|
60587
|
+
noInstancesAvailable: "No instances available. Add one to get started.",
|
|
60588
60588
|
connectingInstance: "Connecting instance",
|
|
60589
60589
|
actions: "Actions",
|
|
60590
60590
|
connecting: "Connecting",
|
|
@@ -65821,7 +65821,7 @@ var clawSandboxSandboxConfig$2 = {
|
|
|
65821
65821
|
colVersion: "VERSION",
|
|
65822
65822
|
colLastCheck: "DERNIÈRE VÉRIFICATION",
|
|
65823
65823
|
noInstancesMatchSearch: "Aucune instance ne correspond à votre recherche.",
|
|
65824
|
-
noInstancesAvailable: "Aucune instance disponible.
|
|
65824
|
+
noInstancesAvailable: "Aucune instance disponible. Ajoutez-en une pour commencer.",
|
|
65825
65825
|
connectingInstance: "Connexion de l'instance",
|
|
65826
65826
|
actions: "Actions",
|
|
65827
65827
|
connecting: "Connexion en cours",
|
|
@@ -71058,7 +71058,7 @@ var clawSandboxSandboxConfig$1 = {
|
|
|
71058
71058
|
colVersion: "VERSIÓN",
|
|
71059
71059
|
colLastCheck: "ÚLTIMA VERIFICACIÓN",
|
|
71060
71060
|
noInstancesMatchSearch: "Ninguna instancia coincide con su búsqueda.",
|
|
71061
|
-
noInstancesAvailable: "No hay instancias disponibles.
|
|
71061
|
+
noInstancesAvailable: "No hay instancias disponibles. Agregue una para comenzar.",
|
|
71062
71062
|
connectingInstance: "Conectando instancia",
|
|
71063
71063
|
actions: "Acciones",
|
|
71064
71064
|
connecting: "Conectando",
|
|
@@ -76295,7 +76295,7 @@ var clawSandboxSandboxConfig = {
|
|
|
76295
76295
|
colVersion: "版本",
|
|
76296
76296
|
colLastCheck: "最近检查",
|
|
76297
76297
|
noInstancesMatchSearch: "没有与您的搜索匹配的实例。",
|
|
76298
|
-
noInstancesAvailable: "
|
|
76298
|
+
noInstancesAvailable: "暂无可用实例,请添加一个开始使用。",
|
|
76299
76299
|
connectingInstance: "正在连接实例",
|
|
76300
76300
|
actions: "操作",
|
|
76301
76301
|
connecting: "连接中",
|
|
@@ -84552,7 +84552,7 @@ function _possibleConstructorReturn$j(self, call) { if (!self) { throw new Refer
|
|
|
84552
84552
|
|
|
84553
84553
|
function _inherits$j(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
84554
84554
|
|
|
84555
|
-
var Gravatar = function (_React$Component) {
|
|
84555
|
+
var Gravatar$1 = function (_React$Component) {
|
|
84556
84556
|
_inherits$j(Gravatar, _React$Component);
|
|
84557
84557
|
|
|
84558
84558
|
function Gravatar() {
|
|
@@ -84646,8 +84646,8 @@ var Gravatar = function (_React$Component) {
|
|
|
84646
84646
|
return Gravatar;
|
|
84647
84647
|
}(_react2.default.Component);
|
|
84648
84648
|
|
|
84649
|
-
Gravatar.displayName = 'Gravatar';
|
|
84650
|
-
Gravatar.propTypes = {
|
|
84649
|
+
Gravatar$1.displayName = 'Gravatar';
|
|
84650
|
+
Gravatar$1.propTypes = {
|
|
84651
84651
|
email: _propTypes2.default.string,
|
|
84652
84652
|
md5: _propTypes2.default.string,
|
|
84653
84653
|
size: _propTypes2.default.number,
|
|
@@ -84657,7 +84657,7 @@ Gravatar.propTypes = {
|
|
|
84657
84657
|
protocol: _propTypes2.default.string,
|
|
84658
84658
|
style: _propTypes2.default.object
|
|
84659
84659
|
};
|
|
84660
|
-
Gravatar.defaultProps = {
|
|
84660
|
+
Gravatar$1.defaultProps = {
|
|
84661
84661
|
size: 50,
|
|
84662
84662
|
rating: 'g',
|
|
84663
84663
|
default: 'retro',
|
|
@@ -84665,9 +84665,9 @@ Gravatar.defaultProps = {
|
|
|
84665
84665
|
};
|
|
84666
84666
|
|
|
84667
84667
|
|
|
84668
|
-
var dist = Gravatar;
|
|
84668
|
+
var dist = Gravatar$1;
|
|
84669
84669
|
|
|
84670
|
-
var Gravatar
|
|
84670
|
+
var Gravatar = /*@__PURE__*/getDefaultExportFromCjs(dist);
|
|
84671
84671
|
|
|
84672
84672
|
var DISMISSABLE_LAYER_NAME = "DismissableLayer";
|
|
84673
84673
|
var CONTEXT_UPDATE = "dismissableLayer.update";
|
|
@@ -85321,7 +85321,7 @@ var VisuallyHidden = React.forwardRef(
|
|
|
85321
85321
|
VisuallyHidden.displayName = NAME$3;
|
|
85322
85322
|
var Root$8 = VisuallyHidden;
|
|
85323
85323
|
|
|
85324
|
-
var [createTooltipContext
|
|
85324
|
+
var [createTooltipContext] = createContextScope$1("Tooltip", [
|
|
85325
85325
|
createPopperScope
|
|
85326
85326
|
]);
|
|
85327
85327
|
var usePopperScope$2 = createPopperScope();
|
|
@@ -86014,7 +86014,7 @@ var Primitive$1 = NODES$1.reduce((primitive, node) => {
|
|
|
86014
86014
|
|
|
86015
86015
|
var PROGRESS_NAME = "Progress";
|
|
86016
86016
|
var DEFAULT_MAX = 100;
|
|
86017
|
-
var [createProgressContext
|
|
86017
|
+
var [createProgressContext] = createContextScope(PROGRESS_NAME);
|
|
86018
86018
|
var [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME);
|
|
86019
86019
|
var Progress$1 = React.forwardRef(
|
|
86020
86020
|
(props, forwardedRef) => {
|
|
@@ -86114,7 +86114,7 @@ function createSlottable(ownerName) {
|
|
|
86114
86114
|
}
|
|
86115
86115
|
|
|
86116
86116
|
var ROOT_NAME = "AlertDialog";
|
|
86117
|
-
var [createAlertDialogContext
|
|
86117
|
+
var [createAlertDialogContext] = createContextScope$1(ROOT_NAME, [
|
|
86118
86118
|
createDialogScope
|
|
86119
86119
|
]);
|
|
86120
86120
|
var useDialogScope = createDialogScope();
|
|
@@ -87026,7 +87026,7 @@ Label$2.displayName = Root$6.displayName;
|
|
|
87026
87026
|
|
|
87027
87027
|
var dayjs_min = {exports: {}};
|
|
87028
87028
|
|
|
87029
|
-
(function (module, exports) {
|
|
87029
|
+
(function (module, exports$1) {
|
|
87030
87030
|
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,true),this.parse(t),this.$x=this.$x||t.x||{},this[p]=true;}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return b},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,false)},m.$set=function(t,e){var n,o=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case "YY":return String(e.$y).slice(-2);case "YYYY":return b.s(e.$y,4,"0");case "M":return a+1;case "MM":return b.s(a+1,2,"0");case "MMM":return h(n.monthsShort,a,c,3);case "MMMM":return h(c,a);case "D":return e.$D;case "DD":return b.s(e.$D,2,"0");case "d":return String(e.$W);case "dd":return h(n.weekdaysMin,e.$W,o,2);case "ddd":return h(n.weekdaysShort,e.$W,o,3);case "dddd":return o[e.$W];case "H":return String(s);case "HH":return b.s(s,2,"0");case "h":return d(1);case "hh":return d(2);case "a":return $(s,u,true);case "A":return $(s,u,false);case "m":return String(u);case "mm":return b.s(u,2,"0");case "s":return String(e.$s);case "ss":return b.s(e.$s,2,"0");case "SSS":return b.s(e.$ms,3,"0");case "Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g;}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,true);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=true),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));
|
|
87031
87031
|
} (dayjs_min));
|
|
87032
87032
|
|
|
@@ -87670,10 +87670,10 @@ function ExperienceTab({ org, username }) {
|
|
|
87670
87670
|
/******/ /* webpack/runtime/define property getters */
|
|
87671
87671
|
/******/ (() => {
|
|
87672
87672
|
/******/ // define getter functions for harmony exports
|
|
87673
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
|
87673
|
+
/******/ __webpack_require__.d = (exports$1, definition) => {
|
|
87674
87674
|
/******/ for(var key in definition) {
|
|
87675
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
87676
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
87675
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports$1, key)) {
|
|
87676
|
+
/******/ Object.defineProperty(exports$1, key, { enumerable: true, get: definition[key] });
|
|
87677
87677
|
/******/ }
|
|
87678
87678
|
/******/ }
|
|
87679
87679
|
/******/ };
|
|
@@ -107789,94 +107789,58 @@ class DrawLayer {
|
|
|
107789
107789
|
}
|
|
107790
107790
|
}
|
|
107791
107791
|
|
|
107792
|
-
|
|
107793
|
-
|
|
107794
|
-
|
|
107795
|
-
|
|
107796
|
-
|
|
107792
|
+
__webpack_exports__.AbortException;
|
|
107793
|
+
__webpack_exports__.AnnotationEditorLayer;
|
|
107794
|
+
__webpack_exports__.AnnotationEditorParamsType;
|
|
107795
|
+
__webpack_exports__.AnnotationEditorType;
|
|
107796
|
+
__webpack_exports__.AnnotationEditorUIManager;
|
|
107797
107797
|
var __webpack_exports__AnnotationLayer = __webpack_exports__.AnnotationLayer;
|
|
107798
107798
|
var __webpack_exports__AnnotationMode = __webpack_exports__.AnnotationMode;
|
|
107799
|
-
|
|
107800
|
-
|
|
107801
|
-
|
|
107802
|
-
|
|
107799
|
+
__webpack_exports__.ColorPicker;
|
|
107800
|
+
__webpack_exports__.DOMSVGFactory;
|
|
107801
|
+
__webpack_exports__.DrawLayer;
|
|
107802
|
+
__webpack_exports__.FeatureTest;
|
|
107803
107803
|
var __webpack_exports__GlobalWorkerOptions = __webpack_exports__.GlobalWorkerOptions;
|
|
107804
|
-
|
|
107805
|
-
|
|
107806
|
-
|
|
107807
|
-
|
|
107808
|
-
|
|
107804
|
+
__webpack_exports__.ImageKind;
|
|
107805
|
+
__webpack_exports__.InvalidPDFException;
|
|
107806
|
+
__webpack_exports__.MissingPDFException;
|
|
107807
|
+
__webpack_exports__.OPS;
|
|
107808
|
+
__webpack_exports__.OutputScale;
|
|
107809
107809
|
var __webpack_exports__PDFDataRangeTransport = __webpack_exports__.PDFDataRangeTransport;
|
|
107810
|
-
|
|
107811
|
-
|
|
107812
|
-
|
|
107813
|
-
|
|
107814
|
-
|
|
107815
|
-
|
|
107810
|
+
__webpack_exports__.PDFDateString;
|
|
107811
|
+
__webpack_exports__.PDFWorker;
|
|
107812
|
+
__webpack_exports__.PasswordResponses;
|
|
107813
|
+
__webpack_exports__.PermissionFlag;
|
|
107814
|
+
__webpack_exports__.PixelsPerInch;
|
|
107815
|
+
__webpack_exports__.RenderingCancelledException;
|
|
107816
107816
|
var __webpack_exports__TextLayer = __webpack_exports__.TextLayer;
|
|
107817
|
-
|
|
107818
|
-
|
|
107819
|
-
|
|
107820
|
-
|
|
107821
|
-
|
|
107822
|
-
|
|
107823
|
-
|
|
107817
|
+
__webpack_exports__.UnexpectedResponseException;
|
|
107818
|
+
__webpack_exports__.Util;
|
|
107819
|
+
__webpack_exports__.VerbosityLevel;
|
|
107820
|
+
__webpack_exports__.XfaLayer;
|
|
107821
|
+
__webpack_exports__.build;
|
|
107822
|
+
__webpack_exports__.createValidAbsoluteUrl;
|
|
107823
|
+
__webpack_exports__.fetchData;
|
|
107824
107824
|
var __webpack_exports__getDocument = __webpack_exports__.getDocument;
|
|
107825
|
-
|
|
107826
|
-
|
|
107827
|
-
|
|
107828
|
-
|
|
107829
|
-
|
|
107830
|
-
|
|
107831
|
-
|
|
107832
|
-
|
|
107833
|
-
|
|
107825
|
+
__webpack_exports__.getFilenameFromUrl;
|
|
107826
|
+
__webpack_exports__.getPdfFilenameFromUrl;
|
|
107827
|
+
__webpack_exports__.getXfaPageViewport;
|
|
107828
|
+
__webpack_exports__.isDataScheme;
|
|
107829
|
+
__webpack_exports__.isPdfFile;
|
|
107830
|
+
__webpack_exports__.noContextMenu;
|
|
107831
|
+
__webpack_exports__.normalizeUnicode;
|
|
107832
|
+
__webpack_exports__.setLayerDimensions;
|
|
107833
|
+
__webpack_exports__.shadow;
|
|
107834
107834
|
var __webpack_exports__version = __webpack_exports__.version;
|
|
107835
107835
|
|
|
107836
107836
|
var pdfjs = /*#__PURE__*/Object.freeze({
|
|
107837
107837
|
__proto__: null,
|
|
107838
|
-
AbortException: __webpack_exports__AbortException,
|
|
107839
|
-
AnnotationEditorLayer: __webpack_exports__AnnotationEditorLayer,
|
|
107840
|
-
AnnotationEditorParamsType: __webpack_exports__AnnotationEditorParamsType,
|
|
107841
|
-
AnnotationEditorType: __webpack_exports__AnnotationEditorType,
|
|
107842
|
-
AnnotationEditorUIManager: __webpack_exports__AnnotationEditorUIManager,
|
|
107843
107838
|
AnnotationLayer: __webpack_exports__AnnotationLayer,
|
|
107844
107839
|
AnnotationMode: __webpack_exports__AnnotationMode,
|
|
107845
|
-
ColorPicker: __webpack_exports__ColorPicker,
|
|
107846
|
-
DOMSVGFactory: __webpack_exports__DOMSVGFactory,
|
|
107847
|
-
DrawLayer: __webpack_exports__DrawLayer,
|
|
107848
|
-
FeatureTest: __webpack_exports__FeatureTest,
|
|
107849
107840
|
GlobalWorkerOptions: __webpack_exports__GlobalWorkerOptions,
|
|
107850
|
-
ImageKind: __webpack_exports__ImageKind,
|
|
107851
|
-
InvalidPDFException: __webpack_exports__InvalidPDFException,
|
|
107852
|
-
MissingPDFException: __webpack_exports__MissingPDFException,
|
|
107853
|
-
OPS: __webpack_exports__OPS,
|
|
107854
|
-
OutputScale: __webpack_exports__OutputScale,
|
|
107855
107841
|
PDFDataRangeTransport: __webpack_exports__PDFDataRangeTransport,
|
|
107856
|
-
PDFDateString: __webpack_exports__PDFDateString,
|
|
107857
|
-
PDFWorker: __webpack_exports__PDFWorker,
|
|
107858
|
-
PasswordResponses: __webpack_exports__PasswordResponses,
|
|
107859
|
-
PermissionFlag: __webpack_exports__PermissionFlag,
|
|
107860
|
-
PixelsPerInch: __webpack_exports__PixelsPerInch,
|
|
107861
|
-
RenderingCancelledException: __webpack_exports__RenderingCancelledException,
|
|
107862
107842
|
TextLayer: __webpack_exports__TextLayer,
|
|
107863
|
-
UnexpectedResponseException: __webpack_exports__UnexpectedResponseException,
|
|
107864
|
-
Util: __webpack_exports__Util,
|
|
107865
|
-
VerbosityLevel: __webpack_exports__VerbosityLevel,
|
|
107866
|
-
XfaLayer: __webpack_exports__XfaLayer,
|
|
107867
|
-
build: __webpack_exports__build,
|
|
107868
|
-
createValidAbsoluteUrl: __webpack_exports__createValidAbsoluteUrl,
|
|
107869
|
-
fetchData: __webpack_exports__fetchData,
|
|
107870
107843
|
getDocument: __webpack_exports__getDocument,
|
|
107871
|
-
getFilenameFromUrl: __webpack_exports__getFilenameFromUrl,
|
|
107872
|
-
getPdfFilenameFromUrl: __webpack_exports__getPdfFilenameFromUrl,
|
|
107873
|
-
getXfaPageViewport: __webpack_exports__getXfaPageViewport,
|
|
107874
|
-
isDataScheme: __webpack_exports__isDataScheme,
|
|
107875
|
-
isPdfFile: __webpack_exports__isPdfFile,
|
|
107876
|
-
noContextMenu: __webpack_exports__noContextMenu,
|
|
107877
|
-
normalizeUnicode: __webpack_exports__normalizeUnicode,
|
|
107878
|
-
setLayerDimensions: __webpack_exports__setLayerDimensions,
|
|
107879
|
-
shadow: __webpack_exports__shadow,
|
|
107880
107844
|
version: __webpack_exports__version
|
|
107881
107845
|
});
|
|
107882
107846
|
|
|
@@ -108042,7 +108006,7 @@ function invariant(condition, message) {
|
|
|
108042
108006
|
|
|
108043
108007
|
var __DEV__ = process.env.NODE_ENV !== 'production';
|
|
108044
108008
|
|
|
108045
|
-
var warning = function() {};
|
|
108009
|
+
var warning$1 = function() {};
|
|
108046
108010
|
|
|
108047
108011
|
if (__DEV__) {
|
|
108048
108012
|
var printWarning = function printWarning(format, args) {
|
|
@@ -108067,7 +108031,7 @@ if (__DEV__) {
|
|
|
108067
108031
|
} catch (x) {}
|
|
108068
108032
|
};
|
|
108069
108033
|
|
|
108070
|
-
warning = function(condition, format, args) {
|
|
108034
|
+
warning$1 = function(condition, format, args) {
|
|
108071
108035
|
var len = arguments.length;
|
|
108072
108036
|
args = new Array(len > 2 ? len - 2 : 0);
|
|
108073
108037
|
for (var key = 2; key < len; key++) {
|
|
@@ -108085,9 +108049,9 @@ if (__DEV__) {
|
|
|
108085
108049
|
};
|
|
108086
108050
|
}
|
|
108087
108051
|
|
|
108088
|
-
var warning_1 = warning;
|
|
108052
|
+
var warning_1 = warning$1;
|
|
108089
108053
|
|
|
108090
|
-
var warning
|
|
108054
|
+
var warning = /*@__PURE__*/getDefaultExportFromCjs(warning_1);
|
|
108091
108055
|
|
|
108092
108056
|
var has = Object.prototype.hasOwnProperty;
|
|
108093
108057
|
|
|
@@ -108402,10 +108366,10 @@ function getDevicePixelRatio() {
|
|
|
108402
108366
|
}
|
|
108403
108367
|
const allowFileAccessFromFilesTip = 'On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.';
|
|
108404
108368
|
function displayCORSWarning() {
|
|
108405
|
-
warning
|
|
108369
|
+
warning(!isLocalFileSystem, `Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ${allowFileAccessFromFilesTip}`);
|
|
108406
108370
|
}
|
|
108407
108371
|
function displayWorkerWarning() {
|
|
108408
|
-
warning
|
|
108372
|
+
warning(!isLocalFileSystem, `Loading PDF.js worker may not work on protocols other than HTTP/HTTPS. ${allowFileAccessFromFilesTip}`);
|
|
108409
108373
|
}
|
|
108410
108374
|
function cancelRunningTask(runningTask) {
|
|
108411
108375
|
if (runningTask === null || runningTask === void 0 ? void 0 : runningTask.cancel)
|
|
@@ -108543,12 +108507,12 @@ const Document$1 = forwardRef(function Document(_a, ref) {
|
|
|
108543
108507
|
const prevFile = useRef(undefined);
|
|
108544
108508
|
const prevOptions = useRef(undefined);
|
|
108545
108509
|
if (file && file !== prevFile.current && isParameterObject(file)) {
|
|
108546
|
-
warning
|
|
108510
|
+
warning(!dequal(file, prevFile.current), `File prop passed to <Document /> changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "file" prop.`);
|
|
108547
108511
|
prevFile.current = file;
|
|
108548
108512
|
}
|
|
108549
108513
|
// Detect non-memoized changes in options prop
|
|
108550
108514
|
if (options && options !== prevOptions.current) {
|
|
108551
|
-
warning
|
|
108515
|
+
warning(!dequal(options, prevOptions.current), `Options prop passed to <Document /> changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "options" prop.`);
|
|
108552
108516
|
prevOptions.current = options;
|
|
108553
108517
|
}
|
|
108554
108518
|
const viewer = useRef({
|
|
@@ -108567,7 +108531,7 @@ const Document$1 = forwardRef(function Document(_a, ref) {
|
|
|
108567
108531
|
page.scrollIntoView();
|
|
108568
108532
|
return;
|
|
108569
108533
|
}
|
|
108570
|
-
warning
|
|
108534
|
+
warning(false, `An internal link leading to page ${pageNumber} was clicked, but neither <Document> was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to <Document> and handle navigating by yourself or ensure that all pages are rendered within <Document>.`);
|
|
108571
108535
|
},
|
|
108572
108536
|
});
|
|
108573
108537
|
useImperativeHandle(ref, () => ({
|
|
@@ -108591,7 +108555,7 @@ const Document$1 = forwardRef(function Document(_a, ref) {
|
|
|
108591
108555
|
// Impossible, but TypeScript doesn't know that
|
|
108592
108556
|
return;
|
|
108593
108557
|
}
|
|
108594
|
-
warning
|
|
108558
|
+
warning(false, sourceError.toString());
|
|
108595
108559
|
if (onSourceErrorProps) {
|
|
108596
108560
|
onSourceErrorProps(sourceError);
|
|
108597
108561
|
}
|
|
@@ -108693,7 +108657,7 @@ const Document$1 = forwardRef(function Document(_a, ref) {
|
|
|
108693
108657
|
// Impossible, but TypeScript doesn't know that
|
|
108694
108658
|
return;
|
|
108695
108659
|
}
|
|
108696
|
-
warning
|
|
108660
|
+
warning(false, pdfError.toString());
|
|
108697
108661
|
if (onLoadErrorProps) {
|
|
108698
108662
|
onLoadErrorProps(pdfError);
|
|
108699
108663
|
}
|
|
@@ -108990,7 +108954,7 @@ function StructTree() {
|
|
|
108990
108954
|
// Impossible, but TypeScript doesn't know that
|
|
108991
108955
|
return;
|
|
108992
108956
|
}
|
|
108993
|
-
warning
|
|
108957
|
+
warning(false, structTreeError.toString());
|
|
108994
108958
|
if (onGetStructTreeErrorProps) {
|
|
108995
108959
|
onGetStructTreeErrorProps(structTreeError);
|
|
108996
108960
|
}
|
|
@@ -109063,7 +109027,7 @@ function Canvas(props) {
|
|
|
109063
109027
|
if (isCancelException(error)) {
|
|
109064
109028
|
return;
|
|
109065
109029
|
}
|
|
109066
|
-
warning
|
|
109030
|
+
warning(false, error.toString());
|
|
109067
109031
|
if (onRenderErrorProps) {
|
|
109068
109032
|
onRenderErrorProps(error);
|
|
109069
109033
|
}
|
|
@@ -109133,7 +109097,7 @@ function TextLayer() {
|
|
|
109133
109097
|
const [textContentState, textContentDispatch] = useResolver();
|
|
109134
109098
|
const { value: textContent, error: textContentError } = textContentState;
|
|
109135
109099
|
const layerElement = useRef(null);
|
|
109136
|
-
warning
|
|
109100
|
+
warning(Number.parseInt(window.getComputedStyle(document.body).getPropertyValue('--react-pdf-text-layer'), 10) === 1, 'TextLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-text-layer');
|
|
109137
109101
|
/**
|
|
109138
109102
|
* Called when a page text content is read successfully
|
|
109139
109103
|
*/
|
|
@@ -109154,7 +109118,7 @@ function TextLayer() {
|
|
|
109154
109118
|
// Impossible, but TypeScript doesn't know that
|
|
109155
109119
|
return;
|
|
109156
109120
|
}
|
|
109157
|
-
warning
|
|
109121
|
+
warning(false, textContentError.toString());
|
|
109158
109122
|
if (onGetTextError) {
|
|
109159
109123
|
onGetTextError(textContentError);
|
|
109160
109124
|
}
|
|
@@ -109201,7 +109165,7 @@ function TextLayer() {
|
|
|
109201
109165
|
* Called when a text layer failed to render successfully
|
|
109202
109166
|
*/
|
|
109203
109167
|
const onRenderError = useCallback((error) => {
|
|
109204
|
-
warning
|
|
109168
|
+
warning(false, error.toString());
|
|
109205
109169
|
if (onRenderTextLayerError) {
|
|
109206
109170
|
onRenderTextLayerError(error);
|
|
109207
109171
|
}
|
|
@@ -109292,7 +109256,7 @@ function AnnotationLayer() {
|
|
|
109292
109256
|
const [annotationsState, annotationsDispatch] = useResolver();
|
|
109293
109257
|
const { value: annotations, error: annotationsError } = annotationsState;
|
|
109294
109258
|
const layerElement = useRef(null);
|
|
109295
|
-
warning
|
|
109259
|
+
warning(Number.parseInt(window.getComputedStyle(document.body).getPropertyValue('--react-pdf-annotation-layer'), 10) === 1, 'AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations');
|
|
109296
109260
|
function onLoadSuccess() {
|
|
109297
109261
|
if (!annotations) {
|
|
109298
109262
|
// Impossible, but TypeScript doesn't know that
|
|
@@ -109307,7 +109271,7 @@ function AnnotationLayer() {
|
|
|
109307
109271
|
// Impossible, but TypeScript doesn't know that
|
|
109308
109272
|
return;
|
|
109309
109273
|
}
|
|
109310
|
-
warning
|
|
109274
|
+
warning(false, annotationsError.toString());
|
|
109311
109275
|
if (onGetAnnotationsErrorProps) {
|
|
109312
109276
|
onGetAnnotationsErrorProps(annotationsError);
|
|
109313
109277
|
}
|
|
@@ -109350,7 +109314,7 @@ function AnnotationLayer() {
|
|
|
109350
109314
|
}
|
|
109351
109315
|
}
|
|
109352
109316
|
function onRenderError(error) {
|
|
109353
|
-
warning
|
|
109317
|
+
warning(false, `${error}`);
|
|
109354
109318
|
if (onRenderAnnotationLayerErrorProps) {
|
|
109355
109319
|
onRenderAnnotationLayerErrorProps(error);
|
|
109356
109320
|
}
|
|
@@ -109489,7 +109453,7 @@ function Page(props) {
|
|
|
109489
109453
|
// Impossible, but TypeScript doesn't know that
|
|
109490
109454
|
return;
|
|
109491
109455
|
}
|
|
109492
|
-
warning
|
|
109456
|
+
warning(false, pageError.toString());
|
|
109493
109457
|
if (onLoadErrorProps) {
|
|
109494
109458
|
onLoadErrorProps(pageError);
|
|
109495
109459
|
}
|
|
@@ -110269,7 +110233,7 @@ function Profile({ tenant, username, tenants, onClose, customization = {}, isAdm
|
|
|
110269
110233
|
return (jsxs("div", { className: "flex flex-col lg:flex-row h-full", children: [jsx("div", { className: "lg:hidden", children: jsx("div", { className: "px-6 py-4 border-b border-gray-200", children: jsx("h2", { className: "text-lg font-semibold text-gray-900", children: t('profileIndex.profileHeading') }) }) }), jsxs("div", { className: "hidden lg:flex bg-white border-r border-gray-200 dark:border-gray-700 flex-col overflow-hidden", style: {
|
|
110270
110234
|
width: '320px',
|
|
110271
110235
|
height: '100%',
|
|
110272
|
-
}, children: [jsxs("div", { className: "flex flex-col items-center justify-center py-6 px-6 border-b border-gray-200 dark:border-gray-700 flex-shrink-0", children: [isUserMetadataEdxLoading || isUploadingProfileImage ? (jsx(Skeleton, { className: "h-20 w-20 mb-6 rounded-full", "aria-label": t('profileIndex.ariaLoadingProfileImage') })) : (jsxs("button", { type: "button", className: "relative w-20 h-20 mb-4 cursor-pointer group rounded-full focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2", onMouseEnter: () => setIsHovering(true), onMouseLeave: () => setIsHovering(false), onClick: handleAvatarClick, "aria-label": t('profileIndex.ariaUploadProfilePicture'), children: [jsxs(Avatar, { className: "h-20 w-20", children: [((_b = userMetadataEdx === null || userMetadataEdx === void 0 ? void 0 : userMetadataEdx.profile_image) === null || _b === void 0 ? void 0 : _b.has_image) ? (jsx(AvatarImage, { src: (_c = userMetadataEdx === null || userMetadataEdx === void 0 ? void 0 : userMetadataEdx.profile_image) === null || _c === void 0 ? void 0 : _c.image_url_full, alt: t('profileIndex.altProfilePicture'), className: "rounded-full object-cover w-full h-full group-hover:opacity-80 transition-opacity" })) : customization.useGravatarPicFallback ? (jsx(Gravatar
|
|
110236
|
+
}, children: [jsxs("div", { className: "flex flex-col items-center justify-center py-6 px-6 border-b border-gray-200 dark:border-gray-700 flex-shrink-0", children: [isUserMetadataEdxLoading || isUploadingProfileImage ? (jsx(Skeleton, { className: "h-20 w-20 mb-6 rounded-full", "aria-label": t('profileIndex.ariaLoadingProfileImage') })) : (jsxs("button", { type: "button", className: "relative w-20 h-20 mb-4 cursor-pointer group rounded-full focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2", onMouseEnter: () => setIsHovering(true), onMouseLeave: () => setIsHovering(false), onClick: handleAvatarClick, "aria-label": t('profileIndex.ariaUploadProfilePicture'), children: [jsxs(Avatar, { className: "h-20 w-20", children: [((_b = userMetadataEdx === null || userMetadataEdx === void 0 ? void 0 : userMetadataEdx.profile_image) === null || _b === void 0 ? void 0 : _b.has_image) ? (jsx(AvatarImage, { src: (_c = userMetadataEdx === null || userMetadataEdx === void 0 ? void 0 : userMetadataEdx.profile_image) === null || _c === void 0 ? void 0 : _c.image_url_full, alt: t('profileIndex.altProfilePicture'), className: "rounded-full object-cover w-full h-full group-hover:opacity-80 transition-opacity" })) : customization.useGravatarPicFallback ? (jsx(Gravatar, { className: "w-full h-full rounded-full object-cover group-hover:opacity-80 transition-opacity", email: userMetadata === null || userMetadata === void 0 ? void 0 : userMetadata.email, size: 80, alt: t('profileIndex.altProfilePictureGravatar') })) : (jsx(Fragment$1, {})), jsx(AvatarFallback, { className: cn('bg-blue-800 text-white text-xl rounded-full', customization.useGravatarPicFallback &&
|
|
110273
110237
|
!((_d = userMetadataEdx === null || userMetadataEdx === void 0 ? void 0 : userMetadataEdx.profile_image) === null || _d === void 0 ? void 0 : _d.image_url_full)
|
|
110274
110238
|
? 'hidden'
|
|
110275
110239
|
: ''), children: getInitials((userMetadata === null || userMetadata === void 0 ? void 0 : userMetadata.name) || (userMetadata === null || userMetadata === void 0 ? void 0 : userMetadata.username) || (userMetadata === null || userMetadata === void 0 ? void 0 : userMetadata.email) || '') })] }), isHovering && (jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-blue-800 rounded-full border-4 border-white/20", "aria-hidden": "true", children: jsx("span", { className: "text-white text-xs font-medium text-center px-2", children: t('profileIndex.uploadOverlay') }) })), jsx("input", { ref: fileInputRef, type: "file", accept: "image/*", onChange: handleFileUpload, className: "hidden", "aria-label": t('profileIndex.ariaChooseProfilePicture'), tabIndex: -1 })] })), jsx("h2", { className: "text-base font-semibold text-gray-900 dark:text-gray-100 text-center mb-3 break-all px-2", title: userMetadata === null || userMetadata === void 0 ? void 0 : userMetadata.email, children: userMetadata === null || userMetadata === void 0 ? void 0 : userMetadata.email }), jsxs("div", { className: "flex justify-center space-x-3", children: [jsxs("div", { className: "bg-blue-100 text-blue-700 px-2 py-1 rounded font-medium flex items-center text-sm", children: [jsx(RoleIcon, { className: "h-4 w-4 mr-2", "aria-hidden": "true" }), jsx("span", { children: isAdmin ? t('profileIndex.roleAdmin') : t('profileIndex.roleUser') })] }), customization.showPlatformName && (jsx("div", { className: "bg-gray-100 text-gray-600 px-4 py-2 rounded text-xs font-medium", children: tenant.toUpperCase() }))] })] }), jsx("nav", { className: "flex-1 overflow-y-auto", style: { minHeight: 0 }, "aria-label": t('profileIndex.ariaProfileTabs'), children: jsx("div", { className: "p-4", children: jsx("div", { className: "flex flex-col space-y-1.5", role: "tablist", "aria-orientation": "vertical", children: TABS.map((tab) => (jsxs("button", { role: "tab", "aria-selected": activeTab === tab.id, "aria-controls": `${tab.id}-tabpanel`, id: `${tab.id}-tab`, onClick: () => setActiveTab(tab.id), className: `w-full justify-start px-4 py-2.5 text-left rounded-lg transition-all flex items-center text-base ${activeTab === tab.id
|
|
@@ -110714,7 +110678,7 @@ function getElementRef$1(element) {
|
|
|
110714
110678
|
}
|
|
110715
110679
|
|
|
110716
110680
|
var TABS_NAME = "Tabs";
|
|
110717
|
-
var [createTabsContext
|
|
110681
|
+
var [createTabsContext] = createContextScope$1(TABS_NAME, [
|
|
110718
110682
|
createRovingFocusGroupScope$1
|
|
110719
110683
|
]);
|
|
110720
110684
|
var useRovingFocusGroupScope$2 = createRovingFocusGroupScope$1();
|
|
@@ -111227,7 +111191,7 @@ function UsersTab$1({ tenant, currentPage, itemsPerPage, onInviteSuccess }) {
|
|
|
111227
111191
|
}
|
|
111228
111192
|
|
|
111229
111193
|
var CHECKBOX_NAME = "Checkbox";
|
|
111230
|
-
var [createCheckboxContext
|
|
111194
|
+
var [createCheckboxContext] = createContextScope$1(CHECKBOX_NAME);
|
|
111231
111195
|
var [CheckboxProvider, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME);
|
|
111232
111196
|
var Checkbox$1 = React.forwardRef(
|
|
111233
111197
|
(props, forwardedRef) => {
|
|
@@ -112305,7 +112269,7 @@ const AdvancedPagination = ({ currentPage, totalPages, onPageChange, totalCount,
|
|
|
112305
112269
|
};
|
|
112306
112270
|
|
|
112307
112271
|
var POPOVER_NAME = "Popover";
|
|
112308
|
-
var [createPopoverContext
|
|
112272
|
+
var [createPopoverContext] = createContextScope$1(POPOVER_NAME, [
|
|
112309
112273
|
createPopperScope$1
|
|
112310
112274
|
]);
|
|
112311
112275
|
var usePopperScope$1 = createPopperScope$1();
|
|
@@ -124572,7 +124536,7 @@ function wsOptionsFor(type, preserveWhitespace, base) {
|
|
|
124572
124536
|
if (preserveWhitespace != null)
|
|
124573
124537
|
return (preserveWhitespace ? OPT_PRESERVE_WS : 0) |
|
|
124574
124538
|
(preserveWhitespace === "full" ? OPT_PRESERVE_WS_FULL : 0);
|
|
124575
|
-
return type && type.whitespace == "pre" ? OPT_PRESERVE_WS | OPT_PRESERVE_WS_FULL : base &
|
|
124539
|
+
return type && type.whitespace == "pre" ? OPT_PRESERVE_WS | OPT_PRESERVE_WS_FULL : base & ~OPT_OPEN_LEFT;
|
|
124576
124540
|
}
|
|
124577
124541
|
class NodeContext {
|
|
124578
124542
|
constructor(type, attrs, marks, solid, match, options) {
|
|
@@ -128046,7 +128010,7 @@ class Transaction extends Transform {
|
|
|
128046
128010
|
throw new RangeError("Selection passed to setSelection must point at the current document");
|
|
128047
128011
|
this.curSelection = selection;
|
|
128048
128012
|
this.curSelectionFor = this.steps.length;
|
|
128049
|
-
this.updated = (this.updated | UPDATED_SEL) &
|
|
128013
|
+
this.updated = (this.updated | UPDATED_SEL) & ~UPDATED_MARKS;
|
|
128050
128014
|
this.storedMarks = null;
|
|
128051
128015
|
return this;
|
|
128052
128016
|
}
|
|
@@ -128097,7 +128061,7 @@ class Transaction extends Transform {
|
|
|
128097
128061
|
*/
|
|
128098
128062
|
addStep(step, doc) {
|
|
128099
128063
|
super.addStep(step, doc);
|
|
128100
|
-
this.updated = this.updated &
|
|
128064
|
+
this.updated = this.updated & ~UPDATED_MARKS;
|
|
128101
128065
|
this.storedMarks = null;
|
|
128102
128066
|
}
|
|
128103
128067
|
/**
|
|
@@ -150679,7 +150643,7 @@ var SubTrigger = MenuSubTrigger;
|
|
|
150679
150643
|
var SubContent = MenuSubContent;
|
|
150680
150644
|
|
|
150681
150645
|
var DROPDOWN_MENU_NAME = "DropdownMenu";
|
|
150682
|
-
var [createDropdownMenuContext
|
|
150646
|
+
var [createDropdownMenuContext] = createContextScope$1(
|
|
150683
150647
|
DROPDOWN_MENU_NAME,
|
|
150684
150648
|
[createMenuScope]
|
|
150685
150649
|
);
|
|
@@ -151654,7 +151618,7 @@ function getState(checked) {
|
|
|
151654
151618
|
}
|
|
151655
151619
|
var ARROW_KEYS = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"];
|
|
151656
151620
|
var RADIO_GROUP_NAME = "RadioGroup";
|
|
151657
|
-
var [createRadioGroupContext
|
|
151621
|
+
var [createRadioGroupContext] = createContextScope(RADIO_GROUP_NAME, [
|
|
151658
151622
|
createRovingFocusGroupScope,
|
|
151659
151623
|
createRadioScope
|
|
151660
151624
|
]);
|
|
@@ -153898,14 +153862,14 @@ var _isKey = isKey$3;
|
|
|
153898
153862
|
* // => false
|
|
153899
153863
|
*/
|
|
153900
153864
|
|
|
153901
|
-
function isObject$
|
|
153865
|
+
function isObject$8(value) {
|
|
153902
153866
|
var type = typeof value;
|
|
153903
153867
|
return value != null && (type == 'object' || type == 'function');
|
|
153904
153868
|
}
|
|
153905
153869
|
|
|
153906
|
-
var isObject_1 = isObject$
|
|
153870
|
+
var isObject_1 = isObject$8;
|
|
153907
153871
|
|
|
153908
|
-
var isObject$
|
|
153872
|
+
var isObject$7 = /*@__PURE__*/getDefaultExportFromCjs(isObject_1);
|
|
153909
153873
|
|
|
153910
153874
|
var baseGetTag$7 = _baseGetTag,
|
|
153911
153875
|
isObject$6 = isObject_1;
|
|
@@ -153933,7 +153897,7 @@ var asyncTag = '[object AsyncFunction]',
|
|
|
153933
153897
|
* _.isFunction(/abc/);
|
|
153934
153898
|
* // => false
|
|
153935
153899
|
*/
|
|
153936
|
-
function isFunction$
|
|
153900
|
+
function isFunction$3(value) {
|
|
153937
153901
|
if (!isObject$6(value)) {
|
|
153938
153902
|
return false;
|
|
153939
153903
|
}
|
|
@@ -153943,9 +153907,9 @@ function isFunction$2(value) {
|
|
|
153943
153907
|
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
153944
153908
|
}
|
|
153945
153909
|
|
|
153946
|
-
var isFunction_1 = isFunction$
|
|
153910
|
+
var isFunction_1 = isFunction$3;
|
|
153947
153911
|
|
|
153948
|
-
var isFunction$
|
|
153912
|
+
var isFunction$2 = /*@__PURE__*/getDefaultExportFromCjs(isFunction_1);
|
|
153949
153913
|
|
|
153950
153914
|
var root$8 = _root;
|
|
153951
153915
|
|
|
@@ -154671,7 +154635,7 @@ var FUNC_ERROR_TEXT$2 = 'Expected a function';
|
|
|
154671
154635
|
* // Replace `_.memoize.Cache`.
|
|
154672
154636
|
* _.memoize.Cache = WeakMap;
|
|
154673
154637
|
*/
|
|
154674
|
-
function memoize$
|
|
154638
|
+
function memoize$3(func, resolver) {
|
|
154675
154639
|
if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
|
|
154676
154640
|
throw new TypeError(FUNC_ERROR_TEXT$2);
|
|
154677
154641
|
}
|
|
@@ -154687,16 +154651,16 @@ function memoize$2(func, resolver) {
|
|
|
154687
154651
|
memoized.cache = cache.set(key, result) || cache;
|
|
154688
154652
|
return result;
|
|
154689
154653
|
};
|
|
154690
|
-
memoized.cache = new (memoize$
|
|
154654
|
+
memoized.cache = new (memoize$3.Cache || MapCache$2);
|
|
154691
154655
|
return memoized;
|
|
154692
154656
|
}
|
|
154693
154657
|
|
|
154694
154658
|
// Expose `MapCache`.
|
|
154695
|
-
memoize$
|
|
154659
|
+
memoize$3.Cache = MapCache$2;
|
|
154696
154660
|
|
|
154697
|
-
var memoize_1 = memoize$
|
|
154661
|
+
var memoize_1 = memoize$3;
|
|
154698
154662
|
|
|
154699
|
-
var memoize$
|
|
154663
|
+
var memoize$2 = /*@__PURE__*/getDefaultExportFromCjs(memoize_1);
|
|
154700
154664
|
|
|
154701
154665
|
var memoize$1 = memoize_1;
|
|
154702
154666
|
|
|
@@ -154933,14 +154897,14 @@ var baseGet$2 = _baseGet;
|
|
|
154933
154897
|
* _.get(object, 'a.b.c', 'default');
|
|
154934
154898
|
* // => 'default'
|
|
154935
154899
|
*/
|
|
154936
|
-
function get$
|
|
154900
|
+
function get$2(object, path, defaultValue) {
|
|
154937
154901
|
var result = object == null ? undefined : baseGet$2(object, path);
|
|
154938
154902
|
return result === undefined ? defaultValue : result;
|
|
154939
154903
|
}
|
|
154940
154904
|
|
|
154941
|
-
var get_1 = get$
|
|
154905
|
+
var get_1 = get$2;
|
|
154942
154906
|
|
|
154943
|
-
var get$
|
|
154907
|
+
var get$1 = /*@__PURE__*/getDefaultExportFromCjs(get_1);
|
|
154944
154908
|
|
|
154945
154909
|
/**
|
|
154946
154910
|
* Checks if `value` is `null` or `undefined`.
|
|
@@ -154963,13 +154927,13 @@ var get$2 = /*@__PURE__*/getDefaultExportFromCjs(get_1);
|
|
|
154963
154927
|
* // => false
|
|
154964
154928
|
*/
|
|
154965
154929
|
|
|
154966
|
-
function isNil(value) {
|
|
154930
|
+
function isNil$1(value) {
|
|
154967
154931
|
return value == null;
|
|
154968
154932
|
}
|
|
154969
154933
|
|
|
154970
|
-
var isNil_1 = isNil;
|
|
154934
|
+
var isNil_1 = isNil$1;
|
|
154971
154935
|
|
|
154972
|
-
var isNil
|
|
154936
|
+
var isNil = /*@__PURE__*/getDefaultExportFromCjs(isNil_1);
|
|
154973
154937
|
|
|
154974
154938
|
var baseGetTag$6 = _baseGetTag,
|
|
154975
154939
|
isArray$a = isArray_1,
|
|
@@ -154995,14 +154959,14 @@ var stringTag$2 = '[object String]';
|
|
|
154995
154959
|
* _.isString(1);
|
|
154996
154960
|
* // => false
|
|
154997
154961
|
*/
|
|
154998
|
-
function isString(value) {
|
|
154962
|
+
function isString$1(value) {
|
|
154999
154963
|
return typeof value == 'string' ||
|
|
155000
154964
|
(!isArray$a(value) && isObjectLike$7(value) && baseGetTag$6(value) == stringTag$2);
|
|
155001
154965
|
}
|
|
155002
154966
|
|
|
155003
|
-
var isString_1 = isString;
|
|
154967
|
+
var isString_1 = isString$1;
|
|
155004
154968
|
|
|
155005
|
-
var isString
|
|
154969
|
+
var isString = /*@__PURE__*/getDefaultExportFromCjs(isString_1);
|
|
155006
154970
|
|
|
155007
154971
|
var reactIs = {exports: {}};
|
|
155008
154972
|
|
|
@@ -155300,14 +155264,14 @@ var numberTag$2 = '[object Number]';
|
|
|
155300
155264
|
* _.isNumber('3');
|
|
155301
155265
|
* // => false
|
|
155302
155266
|
*/
|
|
155303
|
-
function isNumber$
|
|
155267
|
+
function isNumber$3(value) {
|
|
155304
155268
|
return typeof value == 'number' ||
|
|
155305
155269
|
(isObjectLike$6(value) && baseGetTag$5(value) == numberTag$2);
|
|
155306
155270
|
}
|
|
155307
155271
|
|
|
155308
|
-
var isNumber_1 = isNumber$
|
|
155272
|
+
var isNumber_1 = isNumber$3;
|
|
155309
155273
|
|
|
155310
|
-
var isNumber$
|
|
155274
|
+
var isNumber$2 = /*@__PURE__*/getDefaultExportFromCjs(isNumber_1);
|
|
155311
155275
|
|
|
155312
155276
|
var isNumber$1 = isNumber_1;
|
|
155313
155277
|
|
|
@@ -155360,13 +155324,13 @@ var mathSign = function mathSign(value) {
|
|
|
155360
155324
|
return -1;
|
|
155361
155325
|
};
|
|
155362
155326
|
var isPercent = function isPercent(value) {
|
|
155363
|
-
return isString
|
|
155327
|
+
return isString(value) && value.indexOf('%') === value.length - 1;
|
|
155364
155328
|
};
|
|
155365
155329
|
var isNumber = function isNumber(value) {
|
|
155366
|
-
return isNumber$
|
|
155330
|
+
return isNumber$2(value) && !isNan(value);
|
|
155367
155331
|
};
|
|
155368
155332
|
var isNumOrStr = function isNumOrStr(value) {
|
|
155369
|
-
return isNumber(value) || isString
|
|
155333
|
+
return isNumber(value) || isString(value);
|
|
155370
155334
|
};
|
|
155371
155335
|
var idCounter = 0;
|
|
155372
155336
|
var uniqueId = function uniqueId(prefix) {
|
|
@@ -155385,7 +155349,7 @@ var uniqueId = function uniqueId(prefix) {
|
|
|
155385
155349
|
var getPercentValue = function getPercentValue(percent, totalValue) {
|
|
155386
155350
|
var defaultValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
155387
155351
|
var validate = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
155388
|
-
if (!isNumber(percent) && !isString
|
|
155352
|
+
if (!isNumber(percent) && !isString(percent)) {
|
|
155389
155353
|
return defaultValue;
|
|
155390
155354
|
}
|
|
155391
155355
|
var value;
|
|
@@ -155445,7 +155409,7 @@ function findEntryInArray(ary, specifiedKey, specifiedValue) {
|
|
|
155445
155409
|
return null;
|
|
155446
155410
|
}
|
|
155447
155411
|
return ary.find(function (entry) {
|
|
155448
|
-
return entry && (typeof specifiedKey === 'function' ? specifiedKey(entry) : get$
|
|
155412
|
+
return entry && (typeof specifiedKey === 'function' ? specifiedKey(entry) : get$1(entry, specifiedKey)) === specifiedValue;
|
|
155449
155413
|
});
|
|
155450
155414
|
}
|
|
155451
155415
|
|
|
@@ -155555,7 +155519,7 @@ var adaptEventHandlers = function adaptEventHandlers(props, newHandler) {
|
|
|
155555
155519
|
if ( /*#__PURE__*/isValidElement(props)) {
|
|
155556
155520
|
inputProps = props.props;
|
|
155557
155521
|
}
|
|
155558
|
-
if (!isObject$
|
|
155522
|
+
if (!isObject$7(inputProps)) {
|
|
155559
155523
|
return null;
|
|
155560
155524
|
}
|
|
155561
155525
|
var out = {};
|
|
@@ -155575,7 +155539,7 @@ var getEventHandlerOfChild = function getEventHandlerOfChild(originalHandler, da
|
|
|
155575
155539
|
};
|
|
155576
155540
|
};
|
|
155577
155541
|
var adaptEventsOfChild = function adaptEventsOfChild(props, data, index) {
|
|
155578
|
-
if (!isObject$
|
|
155542
|
+
if (!isObject$7(props) || _typeof$N(props) !== 'object') {
|
|
155579
155543
|
return null;
|
|
155580
155544
|
}
|
|
155581
155545
|
var out = null;
|
|
@@ -155636,7 +155600,7 @@ var toArray = function toArray(children) {
|
|
|
155636
155600
|
}
|
|
155637
155601
|
var result = [];
|
|
155638
155602
|
Children.forEach(children, function (child) {
|
|
155639
|
-
if (isNil
|
|
155603
|
+
if (isNil(child)) return;
|
|
155640
155604
|
if (reactIsExports.isFragment(child)) {
|
|
155641
155605
|
result = result.concat(toArray(child.props.children));
|
|
155642
155606
|
} else {
|
|
@@ -155664,7 +155628,7 @@ function findAllByType(children, type) {
|
|
|
155664
155628
|
types = [getDisplayName(type)];
|
|
155665
155629
|
}
|
|
155666
155630
|
toArray(children).forEach(function (child) {
|
|
155667
|
-
var childType = get$
|
|
155631
|
+
var childType = get$1(child, 'type.displayName') || get$1(child, 'type.name');
|
|
155668
155632
|
if (types.indexOf(childType) !== -1) {
|
|
155669
155633
|
result.push(child);
|
|
155670
155634
|
}
|
|
@@ -155700,7 +155664,7 @@ var validateWidthHeight = function validateWidthHeight(el) {
|
|
|
155700
155664
|
};
|
|
155701
155665
|
var SVG_TAGS = ['a', 'altGlyph', 'altGlyphDef', 'altGlyphItem', 'animate', 'animateColor', 'animateMotion', 'animateTransform', 'circle', 'clipPath', 'color-profile', 'cursor', 'defs', 'desc', 'ellipse', 'feBlend', 'feColormatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence', 'filter', 'font', 'font-face', 'font-face-format', 'font-face-name', 'font-face-url', 'foreignObject', 'g', 'glyph', 'glyphRef', 'hkern', 'image', 'line', 'lineGradient', 'marker', 'mask', 'metadata', 'missing-glyph', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'script', 'set', 'stop', 'style', 'svg', 'switch', 'symbol', 'text', 'textPath', 'title', 'tref', 'tspan', 'use', 'view', 'vkern'];
|
|
155702
155666
|
var isSvgElement = function isSvgElement(child) {
|
|
155703
|
-
return child && child.type && isString
|
|
155667
|
+
return child && child.type && isString(child.type) && SVG_TAGS.indexOf(child.type) >= 0;
|
|
155704
155668
|
};
|
|
155705
155669
|
var hasClipDot = function hasClipDot(dot) {
|
|
155706
155670
|
return dot && _typeof$M(dot) === 'object' && 'clipDot' in dot;
|
|
@@ -155722,7 +155686,7 @@ var isValidSpreadableProp = function isValidSpreadableProp(property, key, includ
|
|
|
155722
155686
|
* @todo Add an internal cjs version of https://github.com/wooorm/svg-element-attributes for full coverage.
|
|
155723
155687
|
*/
|
|
155724
155688
|
var matchingElementTypeKeys = (_FilteredElementKeyMa = FilteredElementKeyMap === null || FilteredElementKeyMap === void 0 ? void 0 : FilteredElementKeyMap[svgElementType]) !== null && _FilteredElementKeyMa !== void 0 ? _FilteredElementKeyMa : [];
|
|
155725
|
-
return key.startsWith('data-') || !isFunction$
|
|
155689
|
+
return key.startsWith('data-') || !isFunction$2(property) && (svgElementType && matchingElementTypeKeys.includes(key) || SVGElementPropKeys.includes(key)) || includeEvents && EventKeys.includes(key);
|
|
155726
155690
|
};
|
|
155727
155691
|
var filterProps = function filterProps(props, includeEvents, svgElementType) {
|
|
155728
155692
|
if (!props || typeof props === 'function' || typeof props === 'boolean') {
|
|
@@ -155732,7 +155696,7 @@ var filterProps = function filterProps(props, includeEvents, svgElementType) {
|
|
|
155732
155696
|
if ( /*#__PURE__*/isValidElement(props)) {
|
|
155733
155697
|
inputProps = props.props;
|
|
155734
155698
|
}
|
|
155735
|
-
if (!isObject$
|
|
155699
|
+
if (!isObject$7(inputProps)) {
|
|
155736
155700
|
return null;
|
|
155737
155701
|
}
|
|
155738
155702
|
var out = {};
|
|
@@ -155789,10 +155753,10 @@ var isChildrenEqual = function isChildrenEqual(nextChildren, prevChildren) {
|
|
|
155789
155753
|
return true;
|
|
155790
155754
|
};
|
|
155791
155755
|
var isSingleChildEqual = function isSingleChildEqual(nextChild, prevChild) {
|
|
155792
|
-
if (isNil
|
|
155756
|
+
if (isNil(nextChild) && isNil(prevChild)) {
|
|
155793
155757
|
return true;
|
|
155794
155758
|
}
|
|
155795
|
-
if (!isNil
|
|
155759
|
+
if (!isNil(nextChild) && !isNil(prevChild)) {
|
|
155796
155760
|
var _ref = nextChild.props || {},
|
|
155797
155761
|
nextChildren = _ref.children,
|
|
155798
155762
|
nextProps = _objectWithoutProperties$k(_ref, _excluded$k);
|
|
@@ -156117,11 +156081,11 @@ var createCaseFirst = _createCaseFirst;
|
|
|
156117
156081
|
* _.upperFirst('FRED');
|
|
156118
156082
|
* // => 'FRED'
|
|
156119
156083
|
*/
|
|
156120
|
-
var upperFirst = createCaseFirst('toUpperCase');
|
|
156084
|
+
var upperFirst$1 = createCaseFirst('toUpperCase');
|
|
156121
156085
|
|
|
156122
|
-
var upperFirst_1 = upperFirst;
|
|
156086
|
+
var upperFirst_1 = upperFirst$1;
|
|
156123
156087
|
|
|
156124
|
-
var upperFirst
|
|
156088
|
+
var upperFirst = /*@__PURE__*/getDefaultExportFromCjs(upperFirst_1);
|
|
156125
156089
|
|
|
156126
156090
|
function constant$3(x) {
|
|
156127
156091
|
return function constant() {
|
|
@@ -157211,7 +157175,7 @@ var symbolFactories = {
|
|
|
157211
157175
|
};
|
|
157212
157176
|
var RADIAN$2 = Math.PI / 180;
|
|
157213
157177
|
var getSymbolFactory = function getSymbolFactory(type) {
|
|
157214
|
-
var name = "symbol".concat(upperFirst
|
|
157178
|
+
var name = "symbol".concat(upperFirst(type));
|
|
157215
157179
|
return symbolFactories[name] || symbolCircle;
|
|
157216
157180
|
};
|
|
157217
157181
|
var calculateAreaSize = function calculateAreaSize(size, sizeType, type) {
|
|
@@ -157239,7 +157203,7 @@ var calculateAreaSize = function calculateAreaSize(size, sizeType, type) {
|
|
|
157239
157203
|
}
|
|
157240
157204
|
};
|
|
157241
157205
|
var registerSymbol = function registerSymbol(key, factory) {
|
|
157242
|
-
symbolFactories["symbol".concat(upperFirst
|
|
157206
|
+
symbolFactories["symbol".concat(upperFirst(key))] = factory;
|
|
157243
157207
|
};
|
|
157244
157208
|
var Symbols = function Symbols(_ref) {
|
|
157245
157209
|
var _ref$type = _ref.type,
|
|
@@ -157343,7 +157307,7 @@ var DefaultLegendContent = /*#__PURE__*/function (_PureComponent) {
|
|
|
157343
157307
|
return /*#__PURE__*/React__default.createElement("path", {
|
|
157344
157308
|
stroke: "none",
|
|
157345
157309
|
fill: color,
|
|
157346
|
-
d: "M0,".concat(SIZE / 8, "h").concat(SIZE, "v").concat(SIZE * 3 / 4, "h").concat(-
|
|
157310
|
+
d: "M0,".concat(SIZE / 8, "h").concat(SIZE, "v").concat(SIZE * 3 / 4, "h").concat(-SIZE, "z"),
|
|
157347
157311
|
className: "recharts-legend-icon"
|
|
157348
157312
|
});
|
|
157349
157313
|
}
|
|
@@ -157401,8 +157365,8 @@ var DefaultLegendContent = /*#__PURE__*/function (_PureComponent) {
|
|
|
157401
157365
|
}
|
|
157402
157366
|
|
|
157403
157367
|
// Do not render entry.value as functions. Always require static string properties.
|
|
157404
|
-
var entryValue = !isFunction$
|
|
157405
|
-
warn$1(!isFunction$
|
|
157368
|
+
var entryValue = !isFunction$2(entry.value) ? entry.value : null;
|
|
157369
|
+
warn$1(!isFunction$2(entry.value), "The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name=\"Name of my Data\"/>" // eslint-disable-line max-len
|
|
157406
157370
|
);
|
|
157407
157371
|
var color = entry.inactive ? inactiveColor : entry.color;
|
|
157408
157372
|
return /*#__PURE__*/React__default.createElement("li", _extends$s({
|
|
@@ -158164,12 +158128,12 @@ var stubFalse_1 = stubFalse;
|
|
|
158164
158128
|
|
|
158165
158129
|
isBuffer$2.exports;
|
|
158166
158130
|
|
|
158167
|
-
(function (module, exports) {
|
|
158131
|
+
(function (module, exports$1) {
|
|
158168
158132
|
var root = _root,
|
|
158169
158133
|
stubFalse = stubFalse_1;
|
|
158170
158134
|
|
|
158171
158135
|
/** Detect free variable `exports`. */
|
|
158172
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
158136
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
158173
158137
|
|
|
158174
158138
|
/** Detect free variable `module`. */
|
|
158175
158139
|
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
@@ -158352,11 +158316,11 @@ var _nodeUtil = {exports: {}};
|
|
|
158352
158316
|
|
|
158353
158317
|
_nodeUtil.exports;
|
|
158354
158318
|
|
|
158355
|
-
(function (module, exports) {
|
|
158319
|
+
(function (module, exports$1) {
|
|
158356
158320
|
var freeGlobal = _freeGlobal;
|
|
158357
158321
|
|
|
158358
158322
|
/** Detect free variable `exports`. */
|
|
158359
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
158323
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
158360
158324
|
|
|
158361
158325
|
/** Detect free variable `module`. */
|
|
158362
158326
|
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
@@ -159584,13 +159548,13 @@ var baseIteratee$9 = _baseIteratee,
|
|
|
159584
159548
|
* _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
|
|
159585
159549
|
* // => [{ 'x': 1 }, { 'x': 2 }]
|
|
159586
159550
|
*/
|
|
159587
|
-
function uniqBy(array, iteratee) {
|
|
159551
|
+
function uniqBy$1(array, iteratee) {
|
|
159588
159552
|
return (array && array.length) ? baseUniq(array, baseIteratee$9(iteratee)) : [];
|
|
159589
159553
|
}
|
|
159590
159554
|
|
|
159591
|
-
var uniqBy_1 = uniqBy;
|
|
159555
|
+
var uniqBy_1 = uniqBy$1;
|
|
159592
159556
|
|
|
159593
|
-
var uniqBy
|
|
159557
|
+
var uniqBy = /*@__PURE__*/getDefaultExportFromCjs(uniqBy_1);
|
|
159594
159558
|
|
|
159595
159559
|
/**
|
|
159596
159560
|
* This is configuration option that decides how to filter for unique values only:
|
|
@@ -159602,10 +159566,10 @@ var uniqBy$1 = /*@__PURE__*/getDefaultExportFromCjs(uniqBy_1);
|
|
|
159602
159566
|
|
|
159603
159567
|
function getUniqPayload(payload, option, defaultUniqBy) {
|
|
159604
159568
|
if (option === true) {
|
|
159605
|
-
return uniqBy
|
|
159569
|
+
return uniqBy(payload, defaultUniqBy);
|
|
159606
159570
|
}
|
|
159607
|
-
if (isFunction$
|
|
159608
|
-
return uniqBy
|
|
159571
|
+
if (isFunction$2(option)) {
|
|
159572
|
+
return uniqBy(payload, option);
|
|
159609
159573
|
}
|
|
159610
159574
|
return payload;
|
|
159611
159575
|
}
|
|
@@ -160418,7 +160382,7 @@ var baseFlatten$1 = _baseFlatten,
|
|
|
160418
160382
|
* _.sortBy(users, ['user', 'age']);
|
|
160419
160383
|
* // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
|
|
160420
160384
|
*/
|
|
160421
|
-
var sortBy = baseRest(function(collection, iteratees) {
|
|
160385
|
+
var sortBy$1 = baseRest(function(collection, iteratees) {
|
|
160422
160386
|
if (collection == null) {
|
|
160423
160387
|
return [];
|
|
160424
160388
|
}
|
|
@@ -160431,9 +160395,9 @@ var sortBy = baseRest(function(collection, iteratees) {
|
|
|
160431
160395
|
return baseOrderBy(collection, baseFlatten$1(iteratees, 1), []);
|
|
160432
160396
|
});
|
|
160433
160397
|
|
|
160434
|
-
var sortBy_1 = sortBy;
|
|
160398
|
+
var sortBy_1 = sortBy$1;
|
|
160435
160399
|
|
|
160436
|
-
var sortBy
|
|
160400
|
+
var sortBy = /*@__PURE__*/getDefaultExportFromCjs(sortBy_1);
|
|
160437
160401
|
|
|
160438
160402
|
function _typeof$I(o) { "@babel/helpers - typeof"; return _typeof$I = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$I(o); }
|
|
160439
160403
|
function _extends$r() { _extends$r = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$r.apply(this, arguments); }
|
|
@@ -160475,7 +160439,7 @@ var DefaultTooltipContent = function DefaultTooltipContent(props) {
|
|
|
160475
160439
|
padding: 0,
|
|
160476
160440
|
margin: 0
|
|
160477
160441
|
};
|
|
160478
|
-
var items = (itemSorter ? sortBy
|
|
160442
|
+
var items = (itemSorter ? sortBy(payload, itemSorter) : payload).map(function (entry, i) {
|
|
160479
160443
|
if (entry.type === 'none') {
|
|
160480
160444
|
return null;
|
|
160481
160445
|
}
|
|
@@ -160535,7 +160499,7 @@ var DefaultTooltipContent = function DefaultTooltipContent(props) {
|
|
|
160535
160499
|
var finalLabelStyle = _objectSpread$B({
|
|
160536
160500
|
margin: 0
|
|
160537
160501
|
}, labelStyle);
|
|
160538
|
-
var hasLabel = !isNil
|
|
160502
|
+
var hasLabel = !isNil(label);
|
|
160539
160503
|
var finalLabel = hasLabel ? label : '';
|
|
160540
160504
|
var wrapperCN = clsx('recharts-default-tooltip', wrapperClassName);
|
|
160541
160505
|
var labelCN = clsx('recharts-tooltip-label', labelClassName);
|
|
@@ -161313,7 +161277,7 @@ var FUNC_ERROR_TEXT = 'Expected a function';
|
|
|
161313
161277
|
* // Cancel the trailing throttled invocation.
|
|
161314
161278
|
* jQuery(window).on('popstate', throttled.cancel);
|
|
161315
161279
|
*/
|
|
161316
|
-
function throttle(func, wait, options) {
|
|
161280
|
+
function throttle$1(func, wait, options) {
|
|
161317
161281
|
var leading = true,
|
|
161318
161282
|
trailing = true;
|
|
161319
161283
|
|
|
@@ -161331,9 +161295,9 @@ function throttle(func, wait, options) {
|
|
|
161331
161295
|
});
|
|
161332
161296
|
}
|
|
161333
161297
|
|
|
161334
|
-
var throttle_1 = throttle;
|
|
161298
|
+
var throttle_1 = throttle$1;
|
|
161335
161299
|
|
|
161336
|
-
var throttle
|
|
161300
|
+
var throttle = /*@__PURE__*/getDefaultExportFromCjs(throttle_1);
|
|
161337
161301
|
|
|
161338
161302
|
function _typeof$E(o) { "@babel/helpers - typeof"; return _typeof$E = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$E(o); }
|
|
161339
161303
|
function ownKeys$y(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -161413,7 +161377,7 @@ var ResponsiveContainer = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
161413
161377
|
(_onResizeRef$current = onResizeRef.current) === null || _onResizeRef$current === void 0 || _onResizeRef$current.call(onResizeRef, containerWidth, containerHeight);
|
|
161414
161378
|
};
|
|
161415
161379
|
if (debounce > 0) {
|
|
161416
|
-
callback = throttle
|
|
161380
|
+
callback = throttle(callback, debounce, {
|
|
161417
161381
|
trailing: true,
|
|
161418
161382
|
leading: false
|
|
161419
161383
|
});
|
|
@@ -161771,7 +161735,7 @@ var calculateWordWidths = function calculateWordWidths(_ref) {
|
|
|
161771
161735
|
style = _ref.style;
|
|
161772
161736
|
try {
|
|
161773
161737
|
var words = [];
|
|
161774
|
-
if (!isNil
|
|
161738
|
+
if (!isNil(children)) {
|
|
161775
161739
|
if (breakAll) {
|
|
161776
161740
|
words = children.toString().split('');
|
|
161777
161741
|
} else {
|
|
@@ -161874,7 +161838,7 @@ var calculateWordsByLines = function calculateWordsByLines(_ref2, initialWordsWi
|
|
|
161874
161838
|
return trimmedResult || originalResult;
|
|
161875
161839
|
};
|
|
161876
161840
|
var getWordsWithoutCalculate = function getWordsWithoutCalculate(children) {
|
|
161877
|
-
var words = !isNil
|
|
161841
|
+
var words = !isNil(children) ? children.toString().split(BREAKING_SPACES) : [];
|
|
161878
161842
|
return [{
|
|
161879
161843
|
words: words
|
|
161880
161844
|
}];
|
|
@@ -165587,15 +165551,15 @@ var baseExtremum$3 = _baseExtremum,
|
|
|
165587
165551
|
* _.max([]);
|
|
165588
165552
|
* // => undefined
|
|
165589
165553
|
*/
|
|
165590
|
-
function max(array) {
|
|
165554
|
+
function max$1(array) {
|
|
165591
165555
|
return (array && array.length)
|
|
165592
165556
|
? baseExtremum$3(array, identity$3, baseGt$1)
|
|
165593
165557
|
: undefined;
|
|
165594
165558
|
}
|
|
165595
165559
|
|
|
165596
|
-
var max_1 = max;
|
|
165560
|
+
var max_1 = max$1;
|
|
165597
165561
|
|
|
165598
|
-
var max
|
|
165562
|
+
var max = /*@__PURE__*/getDefaultExportFromCjs(max_1);
|
|
165599
165563
|
|
|
165600
165564
|
/**
|
|
165601
165565
|
* The base implementation of `_.lt` which doesn't coerce arguments.
|
|
@@ -165635,15 +165599,15 @@ var baseExtremum$2 = _baseExtremum,
|
|
|
165635
165599
|
* _.min([]);
|
|
165636
165600
|
* // => undefined
|
|
165637
165601
|
*/
|
|
165638
|
-
function min(array) {
|
|
165602
|
+
function min$1(array) {
|
|
165639
165603
|
return (array && array.length)
|
|
165640
165604
|
? baseExtremum$2(array, identity$2, baseLt$1)
|
|
165641
165605
|
: undefined;
|
|
165642
165606
|
}
|
|
165643
165607
|
|
|
165644
|
-
var min_1 = min;
|
|
165608
|
+
var min_1 = min$1;
|
|
165645
165609
|
|
|
165646
|
-
var min
|
|
165610
|
+
var min = /*@__PURE__*/getDefaultExportFromCjs(min_1);
|
|
165647
165611
|
|
|
165648
165612
|
var arrayMap = _arrayMap,
|
|
165649
165613
|
baseIteratee$7 = _baseIteratee,
|
|
@@ -165723,13 +165687,13 @@ var baseFlatten = _baseFlatten,
|
|
|
165723
165687
|
* _.flatMap([1, 2], duplicate);
|
|
165724
165688
|
* // => [1, 1, 2, 2]
|
|
165725
165689
|
*/
|
|
165726
|
-
function flatMap(collection, iteratee) {
|
|
165690
|
+
function flatMap$1(collection, iteratee) {
|
|
165727
165691
|
return baseFlatten(map$2(collection, iteratee), 1);
|
|
165728
165692
|
}
|
|
165729
165693
|
|
|
165730
|
-
var flatMap_1 = flatMap;
|
|
165694
|
+
var flatMap_1 = flatMap$1;
|
|
165731
165695
|
|
|
165732
|
-
var flatMap
|
|
165696
|
+
var flatMap = /*@__PURE__*/getDefaultExportFromCjs(flatMap_1);
|
|
165733
165697
|
|
|
165734
165698
|
var baseIsEqual = _baseIsEqual;
|
|
165735
165699
|
|
|
@@ -165761,13 +165725,13 @@ var baseIsEqual = _baseIsEqual;
|
|
|
165761
165725
|
* object === other;
|
|
165762
165726
|
* // => false
|
|
165763
165727
|
*/
|
|
165764
|
-
function isEqual(value, other) {
|
|
165728
|
+
function isEqual$1(value, other) {
|
|
165765
165729
|
return baseIsEqual(value, other);
|
|
165766
165730
|
}
|
|
165767
165731
|
|
|
165768
|
-
var isEqual_1 = isEqual;
|
|
165732
|
+
var isEqual_1 = isEqual$1;
|
|
165769
165733
|
|
|
165770
|
-
var isEqual
|
|
165734
|
+
var isEqual = /*@__PURE__*/getDefaultExportFromCjs(isEqual_1);
|
|
165771
165735
|
|
|
165772
165736
|
/*
|
|
165773
165737
|
* decimal.js-light v2.5.1
|
|
@@ -165831,7 +165795,7 @@ var MAX_DIGITS = 1e9, // 0 to 1e9
|
|
|
165831
165795
|
// ------------------------------------ END OF EDITABLE DEFAULTS -------------------------------- //
|
|
165832
165796
|
|
|
165833
165797
|
|
|
165834
|
-
Decimal,
|
|
165798
|
+
Decimal$1,
|
|
165835
165799
|
external = true,
|
|
165836
165800
|
|
|
165837
165801
|
decimalError = '[DecimalError] ',
|
|
@@ -167746,12 +167710,12 @@ function config(obj) {
|
|
|
167746
167710
|
|
|
167747
167711
|
|
|
167748
167712
|
// Create and configure initial Decimal constructor.
|
|
167749
|
-
var Decimal = clone(defaults$1);
|
|
167713
|
+
var Decimal$1 = clone(defaults$1);
|
|
167750
167714
|
|
|
167751
167715
|
// Internal constant.
|
|
167752
|
-
ONE = new Decimal(1);
|
|
167716
|
+
ONE = new Decimal$1(1);
|
|
167753
167717
|
|
|
167754
|
-
var Decimal
|
|
167718
|
+
var Decimal = Decimal$1;
|
|
167755
167719
|
|
|
167756
167720
|
function _toConsumableArray$c(arr) { return _arrayWithoutHoles$c(arr) || _iterableToArray$d(arr) || _unsupportedIterableToArray$i(arr) || _nonIterableSpread$c(); }
|
|
167757
167721
|
|
|
@@ -167906,7 +167870,7 @@ function getDigitCount(value) {
|
|
|
167906
167870
|
if (value === 0) {
|
|
167907
167871
|
result = 1;
|
|
167908
167872
|
} else {
|
|
167909
|
-
result = Math.floor(new Decimal
|
|
167873
|
+
result = Math.floor(new Decimal(value).abs().log(10).toNumber()) + 1;
|
|
167910
167874
|
}
|
|
167911
167875
|
|
|
167912
167876
|
return result;
|
|
@@ -167923,7 +167887,7 @@ function getDigitCount(value) {
|
|
|
167923
167887
|
|
|
167924
167888
|
|
|
167925
167889
|
function rangeStep(start, end, step) {
|
|
167926
|
-
var num = new Decimal
|
|
167890
|
+
var num = new Decimal(start);
|
|
167927
167891
|
var i = 0;
|
|
167928
167892
|
var result = []; // magic number to prevent infinite loop
|
|
167929
167893
|
|
|
@@ -168042,19 +168006,19 @@ function getValidInterval(_ref) {
|
|
|
168042
168006
|
|
|
168043
168007
|
function getFormatStep(roughStep, allowDecimals, correctionFactor) {
|
|
168044
168008
|
if (roughStep.lte(0)) {
|
|
168045
|
-
return new Decimal
|
|
168009
|
+
return new Decimal(0);
|
|
168046
168010
|
}
|
|
168047
168011
|
|
|
168048
168012
|
var digitCount = Arithmetic.getDigitCount(roughStep.toNumber()); // The ratio between the rough step and the smallest number which has a bigger
|
|
168049
168013
|
// order of magnitudes than the rough step
|
|
168050
168014
|
|
|
168051
|
-
var digitCountValue = new Decimal
|
|
168015
|
+
var digitCountValue = new Decimal(10).pow(digitCount);
|
|
168052
168016
|
var stepRatio = roughStep.div(digitCountValue); // When an integer and a float multiplied, the accuracy of result may be wrong
|
|
168053
168017
|
|
|
168054
168018
|
var stepRatioScale = digitCount !== 1 ? 0.05 : 0.1;
|
|
168055
|
-
var amendStepRatio = new Decimal
|
|
168019
|
+
var amendStepRatio = new Decimal(Math.ceil(stepRatio.div(stepRatioScale).toNumber())).add(correctionFactor).mul(stepRatioScale);
|
|
168056
168020
|
var formatStep = amendStepRatio.mul(digitCountValue);
|
|
168057
|
-
return allowDecimals ? formatStep : new Decimal
|
|
168021
|
+
return allowDecimals ? formatStep : new Decimal(Math.ceil(formatStep));
|
|
168058
168022
|
}
|
|
168059
168023
|
/**
|
|
168060
168024
|
* calculate the ticks when the minimum value equals to the maximum value
|
|
@@ -168069,28 +168033,28 @@ function getFormatStep(roughStep, allowDecimals, correctionFactor) {
|
|
|
168069
168033
|
function getTickOfSingleValue(value, tickCount, allowDecimals) {
|
|
168070
168034
|
var step = 1; // calculate the middle value of ticks
|
|
168071
168035
|
|
|
168072
|
-
var middle = new Decimal
|
|
168036
|
+
var middle = new Decimal(value);
|
|
168073
168037
|
|
|
168074
168038
|
if (!middle.isint() && allowDecimals) {
|
|
168075
168039
|
var absVal = Math.abs(value);
|
|
168076
168040
|
|
|
168077
168041
|
if (absVal < 1) {
|
|
168078
168042
|
// The step should be a float number when the difference is smaller than 1
|
|
168079
|
-
step = new Decimal
|
|
168080
|
-
middle = new Decimal
|
|
168043
|
+
step = new Decimal(10).pow(Arithmetic.getDigitCount(value) - 1);
|
|
168044
|
+
middle = new Decimal(Math.floor(middle.div(step).toNumber())).mul(step);
|
|
168081
168045
|
} else if (absVal > 1) {
|
|
168082
168046
|
// Return the maximum integer which is smaller than 'value' when 'value' is greater than 1
|
|
168083
|
-
middle = new Decimal
|
|
168047
|
+
middle = new Decimal(Math.floor(value));
|
|
168084
168048
|
}
|
|
168085
168049
|
} else if (value === 0) {
|
|
168086
|
-
middle = new Decimal
|
|
168050
|
+
middle = new Decimal(Math.floor((tickCount - 1) / 2));
|
|
168087
168051
|
} else if (!allowDecimals) {
|
|
168088
|
-
middle = new Decimal
|
|
168052
|
+
middle = new Decimal(Math.floor(value));
|
|
168089
168053
|
}
|
|
168090
168054
|
|
|
168091
168055
|
var middleIndex = Math.floor((tickCount - 1) / 2);
|
|
168092
168056
|
var fn = compose(map$1(function (n) {
|
|
168093
|
-
return middle.add(new Decimal
|
|
168057
|
+
return middle.add(new Decimal(n - middleIndex).mul(step)).toNumber();
|
|
168094
168058
|
}), range$3);
|
|
168095
168059
|
return fn(0, tickCount);
|
|
168096
168060
|
}
|
|
@@ -168112,28 +168076,28 @@ function calculateStep(min, max, tickCount, allowDecimals) {
|
|
|
168112
168076
|
// dirty hack (for recharts' test)
|
|
168113
168077
|
if (!Number.isFinite((max - min) / (tickCount - 1))) {
|
|
168114
168078
|
return {
|
|
168115
|
-
step: new Decimal
|
|
168116
|
-
tickMin: new Decimal
|
|
168117
|
-
tickMax: new Decimal
|
|
168079
|
+
step: new Decimal(0),
|
|
168080
|
+
tickMin: new Decimal(0),
|
|
168081
|
+
tickMax: new Decimal(0)
|
|
168118
168082
|
};
|
|
168119
168083
|
} // The step which is easy to understand between two ticks
|
|
168120
168084
|
|
|
168121
168085
|
|
|
168122
|
-
var step = getFormatStep(new Decimal
|
|
168086
|
+
var step = getFormatStep(new Decimal(max).sub(min).div(tickCount - 1), allowDecimals, correctionFactor); // A medial value of ticks
|
|
168123
168087
|
|
|
168124
168088
|
var middle; // When 0 is inside the interval, 0 should be a tick
|
|
168125
168089
|
|
|
168126
168090
|
if (min <= 0 && max >= 0) {
|
|
168127
|
-
middle = new Decimal
|
|
168091
|
+
middle = new Decimal(0);
|
|
168128
168092
|
} else {
|
|
168129
168093
|
// calculate the middle value
|
|
168130
|
-
middle = new Decimal
|
|
168094
|
+
middle = new Decimal(min).add(max).div(2); // minus modulo value
|
|
168131
168095
|
|
|
168132
|
-
middle = middle.sub(new Decimal
|
|
168096
|
+
middle = middle.sub(new Decimal(middle).mod(step));
|
|
168133
168097
|
}
|
|
168134
168098
|
|
|
168135
168099
|
var belowCount = Math.ceil(middle.sub(min).div(step).toNumber());
|
|
168136
|
-
var upCount = Math.ceil(new Decimal
|
|
168100
|
+
var upCount = Math.ceil(new Decimal(max).sub(middle).div(step).toNumber());
|
|
168137
168101
|
var scaleCount = belowCount + upCount + 1;
|
|
168138
168102
|
|
|
168139
168103
|
if (scaleCount > tickCount) {
|
|
@@ -168149,8 +168113,8 @@ function calculateStep(min, max, tickCount, allowDecimals) {
|
|
|
168149
168113
|
|
|
168150
168114
|
return {
|
|
168151
168115
|
step: step,
|
|
168152
|
-
tickMin: middle.sub(new Decimal
|
|
168153
|
-
tickMax: middle.add(new Decimal
|
|
168116
|
+
tickMin: middle.sub(new Decimal(belowCount).mul(step)),
|
|
168117
|
+
tickMax: middle.add(new Decimal(upCount).mul(step))
|
|
168154
168118
|
};
|
|
168155
168119
|
}
|
|
168156
168120
|
/**
|
|
@@ -168198,7 +168162,7 @@ function getNiceTickValuesFn(_ref3) {
|
|
|
168198
168162
|
tickMin = _calculateStep.tickMin,
|
|
168199
168163
|
tickMax = _calculateStep.tickMax;
|
|
168200
168164
|
|
|
168201
|
-
var values = Arithmetic.rangeStep(tickMin, tickMax.add(new Decimal
|
|
168165
|
+
var values = Arithmetic.rangeStep(tickMin, tickMax.add(new Decimal(0.1).mul(step)), step);
|
|
168202
168166
|
return min > max ? reverse(values) : values;
|
|
168203
168167
|
}
|
|
168204
168168
|
/**
|
|
@@ -168234,8 +168198,8 @@ function getTickValuesFixedDomainFn(_ref7, tickCount) {
|
|
|
168234
168198
|
}
|
|
168235
168199
|
|
|
168236
168200
|
var count = Math.max(tickCount, 2);
|
|
168237
|
-
var step = getFormatStep(new Decimal
|
|
168238
|
-
var values = [].concat(_toConsumableArray$b(Arithmetic.rangeStep(new Decimal
|
|
168201
|
+
var step = getFormatStep(new Decimal(cormax).sub(cormin).div(count - 1), allowDecimals, 0);
|
|
168202
|
+
var values = [].concat(_toConsumableArray$b(Arithmetic.rangeStep(new Decimal(cormin), new Decimal(cormax).sub(new Decimal(0.99).mul(step)), step)), [cormax]);
|
|
168239
168203
|
return min > max ? reverse(values) : values;
|
|
168240
168204
|
}
|
|
168241
168205
|
|
|
@@ -168466,13 +168430,13 @@ function _defineProperty$x(obj, key, value) { key = _toPropertyKey$w(key); if (k
|
|
|
168466
168430
|
function _toPropertyKey$w(t) { var i = _toPrimitive$w(t, "string"); return "symbol" == _typeof$z(i) ? i : i + ""; }
|
|
168467
168431
|
function _toPrimitive$w(t, r) { if ("object" != _typeof$z(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof$z(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
168468
168432
|
function getValueByDataKey(obj, dataKey, defaultValue) {
|
|
168469
|
-
if (isNil
|
|
168433
|
+
if (isNil(obj) || isNil(dataKey)) {
|
|
168470
168434
|
return defaultValue;
|
|
168471
168435
|
}
|
|
168472
168436
|
if (isNumOrStr(dataKey)) {
|
|
168473
|
-
return get$
|
|
168437
|
+
return get$1(obj, dataKey, defaultValue);
|
|
168474
168438
|
}
|
|
168475
|
-
if (isFunction$
|
|
168439
|
+
if (isFunction$2(dataKey)) {
|
|
168476
168440
|
return dataKey(obj);
|
|
168477
168441
|
}
|
|
168478
168442
|
return defaultValue;
|
|
@@ -168486,7 +168450,7 @@ function getValueByDataKey(obj, dataKey, defaultValue) {
|
|
|
168486
168450
|
* @return {Array} Domain of data
|
|
168487
168451
|
*/
|
|
168488
168452
|
function getDomainOfDataByKey(data, key, type, filterNil) {
|
|
168489
|
-
var flattenData = flatMap
|
|
168453
|
+
var flattenData = flatMap(data, function (entry) {
|
|
168490
168454
|
return getValueByDataKey(entry, key);
|
|
168491
168455
|
});
|
|
168492
168456
|
if (type === 'number') {
|
|
@@ -168494,10 +168458,10 @@ function getDomainOfDataByKey(data, key, type, filterNil) {
|
|
|
168494
168458
|
var domain = flattenData.filter(function (entry) {
|
|
168495
168459
|
return isNumber(entry) || parseFloat(entry);
|
|
168496
168460
|
});
|
|
168497
|
-
return domain.length ? [min
|
|
168461
|
+
return domain.length ? [min(domain), max(domain)] : [Infinity, -Infinity];
|
|
168498
168462
|
}
|
|
168499
168463
|
var validateData = filterNil ? flattenData.filter(function (entry) {
|
|
168500
|
-
return !isNil
|
|
168464
|
+
return !isNil(entry);
|
|
168501
168465
|
}) : flattenData;
|
|
168502
168466
|
|
|
168503
168467
|
// Supports x-axis of Date type
|
|
@@ -168624,11 +168588,11 @@ var getBarSizeList = function getBarSizeList(_ref2) {
|
|
|
168624
168588
|
if (!result[cateId]) {
|
|
168625
168589
|
result[cateId] = [];
|
|
168626
168590
|
}
|
|
168627
|
-
var barSize = isNil
|
|
168591
|
+
var barSize = isNil(selfSize) ? globalSize : selfSize;
|
|
168628
168592
|
result[cateId].push({
|
|
168629
168593
|
item: barItems[0],
|
|
168630
168594
|
stackList: barItems.slice(1),
|
|
168631
|
-
barSize: isNil
|
|
168595
|
+
barSize: isNil(barSize) ? undefined : getPercentValue(barSize, totalSize, 0)
|
|
168632
168596
|
});
|
|
168633
168597
|
}
|
|
168634
168598
|
}
|
|
@@ -168761,7 +168725,7 @@ var appendOffsetOfLegend = function appendOffsetOfLegend(offset, _unused, props,
|
|
|
168761
168725
|
return offset;
|
|
168762
168726
|
};
|
|
168763
168727
|
var isErrorBarRelevantForAxis = function isErrorBarRelevantForAxis(layout, axisType, direction) {
|
|
168764
|
-
if (isNil
|
|
168728
|
+
if (isNil(axisType)) {
|
|
168765
168729
|
return true;
|
|
168766
168730
|
}
|
|
168767
168731
|
if (layout === 'horizontal') {
|
|
@@ -168789,8 +168753,8 @@ var getDomainOfErrorBars = function getDomainOfErrorBars(data, item, dataKey, la
|
|
|
168789
168753
|
});
|
|
168790
168754
|
return data.reduce(function (result, entry) {
|
|
168791
168755
|
var entryValue = getValueByDataKey(entry, dataKey);
|
|
168792
|
-
if (isNil
|
|
168793
|
-
var mainValue = Array.isArray(entryValue) ? [min
|
|
168756
|
+
if (isNil(entryValue)) return result;
|
|
168757
|
+
var mainValue = Array.isArray(entryValue) ? [min(entryValue), max(entryValue)] : [entryValue, entryValue];
|
|
168794
168758
|
var errorDomain = keys.reduce(function (prevErrorArr, k) {
|
|
168795
168759
|
var errorValue = getValueByDataKey(entry, k, 0);
|
|
168796
168760
|
var lowerValue = mainValue[0] - Math.abs(Array.isArray(errorValue) ? errorValue[0] : errorValue);
|
|
@@ -168806,7 +168770,7 @@ var parseErrorBarsOfAxis = function parseErrorBarsOfAxis(data, items, dataKey, a
|
|
|
168806
168770
|
var domains = items.map(function (item) {
|
|
168807
168771
|
return getDomainOfErrorBars(data, item, dataKey, layout, axisType);
|
|
168808
168772
|
}).filter(function (entry) {
|
|
168809
|
-
return !isNil
|
|
168773
|
+
return !isNil(entry);
|
|
168810
168774
|
});
|
|
168811
168775
|
if (domains && domains.length) {
|
|
168812
168776
|
return domains.reduce(function (result, entry) {
|
|
@@ -169030,14 +168994,14 @@ var parseScale = function parseScale(axis, chartType, hasBar) {
|
|
|
169030
168994
|
realScaleType: 'linear'
|
|
169031
168995
|
};
|
|
169032
168996
|
}
|
|
169033
|
-
if (isString
|
|
169034
|
-
var name = "scale".concat(upperFirst
|
|
168997
|
+
if (isString(scale)) {
|
|
168998
|
+
var name = "scale".concat(upperFirst(scale));
|
|
169035
168999
|
return {
|
|
169036
169000
|
scale: (d3Scales[name] || point)(),
|
|
169037
169001
|
realScaleType: d3Scales[name] ? name : 'point'
|
|
169038
169002
|
};
|
|
169039
169003
|
}
|
|
169040
|
-
return isFunction$
|
|
169004
|
+
return isFunction$2(scale) ? {
|
|
169041
169005
|
scale: scale
|
|
169042
169006
|
} : {
|
|
169043
169007
|
scale: point(),
|
|
@@ -169289,7 +169253,7 @@ var getTicksOfScale = function getTicksOfScale(scale, opts) {
|
|
|
169289
169253
|
return null;
|
|
169290
169254
|
}
|
|
169291
169255
|
var tickValues = getNiceTickValues(domain, tickCount, allowDecimals);
|
|
169292
|
-
scale.domain([min
|
|
169256
|
+
scale.domain([min(tickValues), max(tickValues)]);
|
|
169293
169257
|
return {
|
|
169294
169258
|
niceTicks: tickValues
|
|
169295
169259
|
};
|
|
@@ -169313,7 +169277,7 @@ function getCateCoordinateOfLine(_ref5) {
|
|
|
169313
169277
|
if (axis.type === 'category') {
|
|
169314
169278
|
// find coordinate of category axis by the value of category
|
|
169315
169279
|
// @ts-expect-error why does this use direct object access instead of getValueByDataKey?
|
|
169316
|
-
if (!axis.allowDuplicatedCategory && axis.dataKey && !isNil
|
|
169280
|
+
if (!axis.allowDuplicatedCategory && axis.dataKey && !isNil(entry[axis.dataKey])) {
|
|
169317
169281
|
// @ts-expect-error why does this use direct object access instead of getValueByDataKey?
|
|
169318
169282
|
var matchedTick = findEntryInArray(ticks, 'value', entry[axis.dataKey]);
|
|
169319
169283
|
if (matchedTick) {
|
|
@@ -169322,8 +169286,8 @@ function getCateCoordinateOfLine(_ref5) {
|
|
|
169322
169286
|
}
|
|
169323
169287
|
return ticks[index] ? ticks[index].coordinate + bandSize / 2 : null;
|
|
169324
169288
|
}
|
|
169325
|
-
var value = getValueByDataKey(entry, !isNil
|
|
169326
|
-
return !isNil
|
|
169289
|
+
var value = getValueByDataKey(entry, !isNil(dataKey) ? dataKey : axis.dataKey);
|
|
169290
|
+
return !isNil(value) ? axis.scale(value) : null;
|
|
169327
169291
|
}
|
|
169328
169292
|
var getCateCoordinateOfBar = function getCateCoordinateOfBar(_ref6) {
|
|
169329
169293
|
var axis = _ref6.axis,
|
|
@@ -169336,7 +169300,7 @@ var getCateCoordinateOfBar = function getCateCoordinateOfBar(_ref6) {
|
|
|
169336
169300
|
return ticks[index] ? ticks[index].coordinate + offset : null;
|
|
169337
169301
|
}
|
|
169338
169302
|
var value = getValueByDataKey(entry, axis.dataKey, axis.domain[index]);
|
|
169339
|
-
return !isNil
|
|
169303
|
+
return !isNil(value) ? axis.scale(value) - bandSize / 2 + offset : null;
|
|
169340
169304
|
};
|
|
169341
169305
|
var getBaseValueOfBar = function getBaseValueOfBar(_ref7) {
|
|
169342
169306
|
var numericAxis = _ref7.numericAxis;
|
|
@@ -169369,7 +169333,7 @@ var getStackedDataOfItem = function getStackedDataOfItem(item, stackGroups) {
|
|
|
169369
169333
|
};
|
|
169370
169334
|
var getDomainOfSingle = function getDomainOfSingle(data) {
|
|
169371
169335
|
return data.reduce(function (result, entry) {
|
|
169372
|
-
return [min
|
|
169336
|
+
return [min(entry.concat([result[0]]).filter(isNumber)), max(entry.concat([result[1]]).filter(isNumber))];
|
|
169373
169337
|
}, [Infinity, -Infinity]);
|
|
169374
169338
|
};
|
|
169375
169339
|
var getDomainOfStackGroups = function getDomainOfStackGroups(stackGroups, startIndex, endIndex) {
|
|
@@ -169388,7 +169352,7 @@ var getDomainOfStackGroups = function getDomainOfStackGroups(stackGroups, startI
|
|
|
169388
169352
|
var MIN_VALUE_REG = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/;
|
|
169389
169353
|
var MAX_VALUE_REG = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/;
|
|
169390
169354
|
var parseSpecifiedDomain = function parseSpecifiedDomain(specifiedDomain, dataDomain, allowDataOverflow) {
|
|
169391
|
-
if (isFunction$
|
|
169355
|
+
if (isFunction$2(specifiedDomain)) {
|
|
169392
169356
|
return specifiedDomain(dataDomain, allowDataOverflow);
|
|
169393
169357
|
}
|
|
169394
169358
|
if (!Array.isArray(specifiedDomain)) {
|
|
@@ -169402,7 +169366,7 @@ var parseSpecifiedDomain = function parseSpecifiedDomain(specifiedDomain, dataDo
|
|
|
169402
169366
|
} else if (MIN_VALUE_REG.test(specifiedDomain[0])) {
|
|
169403
169367
|
var value = +MIN_VALUE_REG.exec(specifiedDomain[0])[1];
|
|
169404
169368
|
domain[0] = dataDomain[0] - value;
|
|
169405
|
-
} else if (isFunction$
|
|
169369
|
+
} else if (isFunction$2(specifiedDomain[0])) {
|
|
169406
169370
|
domain[0] = specifiedDomain[0](dataDomain[0]);
|
|
169407
169371
|
} else {
|
|
169408
169372
|
domain[0] = dataDomain[0];
|
|
@@ -169412,7 +169376,7 @@ var parseSpecifiedDomain = function parseSpecifiedDomain(specifiedDomain, dataDo
|
|
|
169412
169376
|
} else if (MAX_VALUE_REG.test(specifiedDomain[1])) {
|
|
169413
169377
|
var _value = +MAX_VALUE_REG.exec(specifiedDomain[1])[1];
|
|
169414
169378
|
domain[1] = dataDomain[1] + _value;
|
|
169415
|
-
} else if (isFunction$
|
|
169379
|
+
} else if (isFunction$2(specifiedDomain[1])) {
|
|
169416
169380
|
domain[1] = specifiedDomain[1](dataDomain[1]);
|
|
169417
169381
|
} else {
|
|
169418
169382
|
domain[1] = dataDomain[1];
|
|
@@ -169439,7 +169403,7 @@ var getBandSizeOfAxis = function getBandSizeOfAxis(axis, ticks, isBar) {
|
|
|
169439
169403
|
}
|
|
169440
169404
|
}
|
|
169441
169405
|
if (axis && ticks && ticks.length >= 2) {
|
|
169442
|
-
var orderedTicks = sortBy
|
|
169406
|
+
var orderedTicks = sortBy(ticks, function (o) {
|
|
169443
169407
|
return o.coordinate;
|
|
169444
169408
|
});
|
|
169445
169409
|
var bandSize = Infinity;
|
|
@@ -169463,7 +169427,7 @@ var parseDomainOfCategoryAxis = function parseDomainOfCategoryAxis(specifiedDoma
|
|
|
169463
169427
|
if (!specifiedDomain || !specifiedDomain.length) {
|
|
169464
169428
|
return calculatedDomain;
|
|
169465
169429
|
}
|
|
169466
|
-
if (isEqual
|
|
169430
|
+
if (isEqual(specifiedDomain, get$1(axisChild, 'type.defaultProps.domain'))) {
|
|
169467
169431
|
return calculatedDomain;
|
|
169468
169432
|
}
|
|
169469
169433
|
return specifiedDomain;
|
|
@@ -169548,7 +169512,7 @@ var formatAxisMap$1 = function formatAxisMap(props, axisMap, offset, axisType, c
|
|
|
169548
169512
|
var domain = axis.domain,
|
|
169549
169513
|
reversed = axis.reversed;
|
|
169550
169514
|
var range;
|
|
169551
|
-
if (isNil
|
|
169515
|
+
if (isNil(axis.range)) {
|
|
169552
169516
|
if (axisType === 'angleAxis') {
|
|
169553
169517
|
range = [startAngle, endAngle];
|
|
169554
169518
|
} else if (axisType === 'radiusAxis') {
|
|
@@ -169689,7 +169653,7 @@ var inRangeOfSector = function inRangeOfSector(_ref5, sector) {
|
|
|
169689
169653
|
return null;
|
|
169690
169654
|
};
|
|
169691
169655
|
var getTickClassName = function getTickClassName(tick) {
|
|
169692
|
-
return ! /*#__PURE__*/isValidElement(tick) && !isFunction$
|
|
169656
|
+
return ! /*#__PURE__*/isValidElement(tick) && !isFunction$2(tick) && typeof tick !== 'boolean' ? tick.className : '';
|
|
169693
169657
|
};
|
|
169694
169658
|
|
|
169695
169659
|
function _typeof$x(o) { "@babel/helpers - typeof"; return _typeof$x = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$x(o); }
|
|
@@ -169711,8 +169675,8 @@ function _extends$o() { _extends$o = Object.assign ? Object.assign.bind() : func
|
|
|
169711
169675
|
var getLabel = function getLabel(props) {
|
|
169712
169676
|
var value = props.value,
|
|
169713
169677
|
formatter = props.formatter;
|
|
169714
|
-
var label = isNil
|
|
169715
|
-
if (isFunction$
|
|
169678
|
+
var label = isNil(props.children) ? value : props.children;
|
|
169679
|
+
if (isFunction$2(formatter)) {
|
|
169716
169680
|
return formatter(label);
|
|
169717
169681
|
}
|
|
169718
169682
|
return label;
|
|
@@ -169753,7 +169717,7 @@ var renderRadialLabel = function renderRadialLabel(labelProps, label, attrs) {
|
|
|
169753
169717
|
var startPoint = polarToCartesian(cx, cy, radius, labelAngle);
|
|
169754
169718
|
var endPoint = polarToCartesian(cx, cy, radius, labelAngle + (direction ? 1 : -1) * 359);
|
|
169755
169719
|
var path = "M".concat(startPoint.x, ",").concat(startPoint.y, "\n A").concat(radius, ",").concat(radius, ",0,1,").concat(direction ? 0 : 1, ",\n ").concat(endPoint.x, ",").concat(endPoint.y);
|
|
169756
|
-
var id = isNil
|
|
169720
|
+
var id = isNil(labelProps.id) ? uniqueId('recharts-radial-line-') : labelProps.id;
|
|
169757
169721
|
return /*#__PURE__*/React__default.createElement("text", _extends$o({}, attrs, {
|
|
169758
169722
|
dominantBaseline: "central",
|
|
169759
169723
|
className: clsx('recharts-radial-bar-label', className)
|
|
@@ -169960,7 +169924,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
|
|
|
169960
169924
|
verticalAnchor: verticalEnd
|
|
169961
169925
|
}, sizeAttrs);
|
|
169962
169926
|
}
|
|
169963
|
-
if (isObject$
|
|
169927
|
+
if (isObject$7(position) && (isNumber(position.x) || isPercent(position.x)) && (isNumber(position.y) || isPercent(position.y))) {
|
|
169964
169928
|
return _objectSpread$t({
|
|
169965
169929
|
x: x + getPercentValue(position.x, width),
|
|
169966
169930
|
y: y + getPercentValue(position.y, height),
|
|
@@ -169993,14 +169957,14 @@ function Label(_ref4) {
|
|
|
169993
169957
|
_props$className = props.className,
|
|
169994
169958
|
className = _props$className === void 0 ? '' : _props$className,
|
|
169995
169959
|
textBreakAll = props.textBreakAll;
|
|
169996
|
-
if (!viewBox || isNil
|
|
169960
|
+
if (!viewBox || isNil(value) && isNil(children) && ! /*#__PURE__*/isValidElement(content) && !isFunction$2(content)) {
|
|
169997
169961
|
return null;
|
|
169998
169962
|
}
|
|
169999
169963
|
if ( /*#__PURE__*/isValidElement(content)) {
|
|
170000
169964
|
return /*#__PURE__*/cloneElement(content, props);
|
|
170001
169965
|
}
|
|
170002
169966
|
var label;
|
|
170003
|
-
if (isFunction$
|
|
169967
|
+
if (isFunction$2(content)) {
|
|
170004
169968
|
label = /*#__PURE__*/createElement$1(content, props);
|
|
170005
169969
|
if ( /*#__PURE__*/isValidElement(label)) {
|
|
170006
169970
|
return label;
|
|
@@ -170114,14 +170078,14 @@ var parseLabel = function parseLabel(label, viewBox) {
|
|
|
170114
170078
|
viewBox: viewBox
|
|
170115
170079
|
});
|
|
170116
170080
|
}
|
|
170117
|
-
if (isFunction$
|
|
170081
|
+
if (isFunction$2(label)) {
|
|
170118
170082
|
return /*#__PURE__*/React__default.createElement(Label, {
|
|
170119
170083
|
key: "label-implicit",
|
|
170120
170084
|
content: label,
|
|
170121
170085
|
viewBox: viewBox
|
|
170122
170086
|
});
|
|
170123
170087
|
}
|
|
170124
|
-
if (isObject$
|
|
170088
|
+
if (isObject$7(label)) {
|
|
170125
170089
|
return /*#__PURE__*/React__default.createElement(Label, _extends$o({
|
|
170126
170090
|
viewBox: viewBox
|
|
170127
170091
|
}, label, {
|
|
@@ -170168,14 +170132,14 @@ Label.renderCallByParent = renderCallByParent$1;
|
|
|
170168
170132
|
* // => 3
|
|
170169
170133
|
*/
|
|
170170
170134
|
|
|
170171
|
-
function last(array) {
|
|
170135
|
+
function last$1(array) {
|
|
170172
170136
|
var length = array == null ? 0 : array.length;
|
|
170173
170137
|
return length ? array[length - 1] : undefined;
|
|
170174
170138
|
}
|
|
170175
170139
|
|
|
170176
|
-
var last_1 = last;
|
|
170140
|
+
var last_1 = last$1;
|
|
170177
170141
|
|
|
170178
|
-
var last
|
|
170142
|
+
var last = /*@__PURE__*/getDefaultExportFromCjs(last_1);
|
|
170179
170143
|
|
|
170180
170144
|
function _typeof$w(o) { "@babel/helpers - typeof"; return _typeof$w = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$w(o); }
|
|
170181
170145
|
var _excluded$c = ["valueAccessor"],
|
|
@@ -170195,7 +170159,7 @@ function _toPrimitive$t(t, r) { if ("object" != _typeof$w(t) || !t) return t; va
|
|
|
170195
170159
|
function _objectWithoutProperties$c(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$c(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
170196
170160
|
function _objectWithoutPropertiesLoose$c(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
170197
170161
|
var defaultAccessor = function defaultAccessor(entry) {
|
|
170198
|
-
return Array.isArray(entry.value) ? last
|
|
170162
|
+
return Array.isArray(entry.value) ? last(entry.value) : entry.value;
|
|
170199
170163
|
};
|
|
170200
170164
|
function LabelList(_ref) {
|
|
170201
170165
|
var _ref$valueAccessor = _ref.valueAccessor,
|
|
@@ -170213,15 +170177,15 @@ function LabelList(_ref) {
|
|
|
170213
170177
|
return /*#__PURE__*/React__default.createElement(Layer, {
|
|
170214
170178
|
className: "recharts-label-list"
|
|
170215
170179
|
}, data.map(function (entry, index) {
|
|
170216
|
-
var value = isNil
|
|
170217
|
-
var idProps = isNil
|
|
170180
|
+
var value = isNil(dataKey) ? valueAccessor(entry, index) : getValueByDataKey(entry && entry.payload, dataKey);
|
|
170181
|
+
var idProps = isNil(id) ? {} : {
|
|
170218
170182
|
id: "".concat(id, "-").concat(index)
|
|
170219
170183
|
};
|
|
170220
170184
|
return /*#__PURE__*/React__default.createElement(Label, _extends$n({}, filterProps(entry, true), others, idProps, {
|
|
170221
170185
|
parentViewBox: entry.parentViewBox,
|
|
170222
170186
|
value: value,
|
|
170223
170187
|
textBreakAll: textBreakAll,
|
|
170224
|
-
viewBox: Label.parseViewBox(isNil
|
|
170188
|
+
viewBox: Label.parseViewBox(isNil(clockWise) ? entry : _objectSpread$s(_objectSpread$s({}, entry), {}, {
|
|
170225
170189
|
clockWise: clockWise
|
|
170226
170190
|
})),
|
|
170227
170191
|
key: "label-".concat(index) // eslint-disable-line react/no-array-index-key
|
|
@@ -170241,14 +170205,14 @@ function parseLabelList(label, data) {
|
|
|
170241
170205
|
data: data
|
|
170242
170206
|
});
|
|
170243
170207
|
}
|
|
170244
|
-
if ( /*#__PURE__*/React__default.isValidElement(label) || isFunction$
|
|
170208
|
+
if ( /*#__PURE__*/React__default.isValidElement(label) || isFunction$2(label)) {
|
|
170245
170209
|
return /*#__PURE__*/React__default.createElement(LabelList, {
|
|
170246
170210
|
key: "labelList-implicit",
|
|
170247
170211
|
data: data,
|
|
170248
170212
|
content: label
|
|
170249
170213
|
});
|
|
170250
170214
|
}
|
|
170251
|
-
if (isObject$
|
|
170215
|
+
if (isObject$7(label)) {
|
|
170252
170216
|
return /*#__PURE__*/React__default.createElement(LabelList, _extends$n({
|
|
170253
170217
|
data: data
|
|
170254
170218
|
}, label, {
|
|
@@ -170516,10 +170480,10 @@ var getY = function getY(p) {
|
|
|
170516
170480
|
return p.y;
|
|
170517
170481
|
};
|
|
170518
170482
|
var getCurveFactory = function getCurveFactory(type, layout) {
|
|
170519
|
-
if (isFunction$
|
|
170483
|
+
if (isFunction$2(type)) {
|
|
170520
170484
|
return type;
|
|
170521
170485
|
}
|
|
170522
|
-
var name = "curve".concat(upperFirst
|
|
170486
|
+
var name = "curve".concat(upperFirst(type));
|
|
170523
170487
|
if ((name === 'curveMonotone' || name === 'curveBump') && layout) {
|
|
170524
170488
|
return CURVE_FACTORIES["".concat(name).concat(layout === 'vertical' ? 'Y' : 'X')];
|
|
170525
170489
|
}
|
|
@@ -171750,15 +171714,15 @@ var baseExtremum$1 = _baseExtremum,
|
|
|
171750
171714
|
* _.maxBy(objects, 'n');
|
|
171751
171715
|
* // => { 'n': 2 }
|
|
171752
171716
|
*/
|
|
171753
|
-
function maxBy(array, iteratee) {
|
|
171717
|
+
function maxBy$1(array, iteratee) {
|
|
171754
171718
|
return (array && array.length)
|
|
171755
171719
|
? baseExtremum$1(array, baseIteratee$6(iteratee), baseGt)
|
|
171756
171720
|
: undefined;
|
|
171757
171721
|
}
|
|
171758
171722
|
|
|
171759
|
-
var maxBy_1 = maxBy;
|
|
171723
|
+
var maxBy_1 = maxBy$1;
|
|
171760
171724
|
|
|
171761
|
-
var maxBy
|
|
171725
|
+
var maxBy = /*@__PURE__*/getDefaultExportFromCjs(maxBy_1);
|
|
171762
171726
|
|
|
171763
171727
|
var baseExtremum = _baseExtremum,
|
|
171764
171728
|
baseIteratee$5 = _baseIteratee,
|
|
@@ -171787,15 +171751,15 @@ var baseExtremum = _baseExtremum,
|
|
|
171787
171751
|
* _.minBy(objects, 'n');
|
|
171788
171752
|
* // => { 'n': 1 }
|
|
171789
171753
|
*/
|
|
171790
|
-
function minBy(array, iteratee) {
|
|
171754
|
+
function minBy$1(array, iteratee) {
|
|
171791
171755
|
return (array && array.length)
|
|
171792
171756
|
? baseExtremum(array, baseIteratee$5(iteratee), baseLt)
|
|
171793
171757
|
: undefined;
|
|
171794
171758
|
}
|
|
171795
171759
|
|
|
171796
|
-
var minBy_1 = minBy;
|
|
171760
|
+
var minBy_1 = minBy$1;
|
|
171797
171761
|
|
|
171798
|
-
var minBy
|
|
171762
|
+
var minBy = /*@__PURE__*/getDefaultExportFromCjs(minBy_1);
|
|
171799
171763
|
|
|
171800
171764
|
var _excluded$8 = ["cx", "cy", "angle", "ticks", "axisLine"],
|
|
171801
171765
|
_excluded2$4 = ["ticks", "tick", "angle", "tickFormatter", "stroke"];
|
|
@@ -171817,7 +171781,7 @@ function _inherits$c(subClass, superClass) { if (typeof superClass !== "function
|
|
|
171817
171781
|
function _setPrototypeOf$c(o, p) { _setPrototypeOf$c = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$c(o, p); }
|
|
171818
171782
|
function _defineProperty$m(obj, key, value) { key = _toPropertyKey$l(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
171819
171783
|
function _toPropertyKey$l(t) { var i = _toPrimitive$l(t, "string"); return "symbol" == _typeof$n(i) ? i : i + ""; }
|
|
171820
|
-
function _toPrimitive$l(t, r) { if ("object" != _typeof$n(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof$n(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return (String )(t); }
|
|
171784
|
+
function _toPrimitive$l(t, r) { if ("object" != _typeof$n(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof$n(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
171821
171785
|
var PolarRadiusAxis = /*#__PURE__*/function (_PureComponent) {
|
|
171822
171786
|
function PolarRadiusAxis() {
|
|
171823
171787
|
_classCallCheck$e(this, PolarRadiusAxis);
|
|
@@ -171866,10 +171830,10 @@ var PolarRadiusAxis = /*#__PURE__*/function (_PureComponent) {
|
|
|
171866
171830
|
cy = _this$props2.cy,
|
|
171867
171831
|
angle = _this$props2.angle,
|
|
171868
171832
|
ticks = _this$props2.ticks;
|
|
171869
|
-
var maxRadiusTick = maxBy
|
|
171833
|
+
var maxRadiusTick = maxBy(ticks, function (entry) {
|
|
171870
171834
|
return entry.coordinate || 0;
|
|
171871
171835
|
});
|
|
171872
|
-
var minRadiusTick = minBy
|
|
171836
|
+
var minRadiusTick = minBy(ticks, function (entry) {
|
|
171873
171837
|
return entry.coordinate || 0;
|
|
171874
171838
|
});
|
|
171875
171839
|
return {
|
|
@@ -171964,7 +171928,7 @@ var PolarRadiusAxis = /*#__PURE__*/function (_PureComponent) {
|
|
|
171964
171928
|
var tickItem;
|
|
171965
171929
|
if ( /*#__PURE__*/React__default.isValidElement(option)) {
|
|
171966
171930
|
tickItem = /*#__PURE__*/React__default.cloneElement(option, props);
|
|
171967
|
-
} else if (isFunction$
|
|
171931
|
+
} else if (isFunction$2(option)) {
|
|
171968
171932
|
tickItem = option(props);
|
|
171969
171933
|
} else {
|
|
171970
171934
|
tickItem = /*#__PURE__*/React__default.createElement(Text, _extends$f({}, props, {
|
|
@@ -172009,7 +171973,7 @@ function _inherits$b(subClass, superClass) { if (typeof superClass !== "function
|
|
|
172009
171973
|
function _setPrototypeOf$b(o, p) { _setPrototypeOf$b = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$b(o, p); }
|
|
172010
171974
|
function _defineProperty$l(obj, key, value) { key = _toPropertyKey$k(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
172011
171975
|
function _toPropertyKey$k(t) { var i = _toPrimitive$k(t, "string"); return "symbol" == _typeof$m(i) ? i : i + ""; }
|
|
172012
|
-
function _toPrimitive$k(t, r) { if ("object" != _typeof$m(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof$m(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return (String )(t); }
|
|
171976
|
+
function _toPrimitive$k(t, r) { if ("object" != _typeof$m(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof$m(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
172013
171977
|
var RADIAN = Math.PI / 180;
|
|
172014
171978
|
var eps = 1e-5;
|
|
172015
171979
|
var PolarAngleAxis = /*#__PURE__*/function (_PureComponent) {
|
|
@@ -172059,7 +172023,7 @@ var PolarAngleAxis = /*#__PURE__*/function (_PureComponent) {
|
|
|
172059
172023
|
var textAnchor;
|
|
172060
172024
|
if (cos > eps) {
|
|
172061
172025
|
textAnchor = orientation === 'outer' ? 'start' : 'end';
|
|
172062
|
-
} else if (cos < -
|
|
172026
|
+
} else if (cos < -eps) {
|
|
172063
172027
|
textAnchor = orientation === 'outer' ? 'end' : 'start';
|
|
172064
172028
|
} else {
|
|
172065
172029
|
textAnchor = 'middle';
|
|
@@ -172157,7 +172121,7 @@ var PolarAngleAxis = /*#__PURE__*/function (_PureComponent) {
|
|
|
172157
172121
|
var tickItem;
|
|
172158
172122
|
if ( /*#__PURE__*/React__default.isValidElement(option)) {
|
|
172159
172123
|
tickItem = /*#__PURE__*/React__default.cloneElement(option, props);
|
|
172160
|
-
} else if (isFunction$
|
|
172124
|
+
} else if (isFunction$2(option)) {
|
|
172161
172125
|
tickItem = option(props);
|
|
172162
172126
|
} else {
|
|
172163
172127
|
tickItem = /*#__PURE__*/React__default.createElement(Text, _extends$e({}, props, {
|
|
@@ -172240,7 +172204,7 @@ var objectCtorString = funcToString.call(Object);
|
|
|
172240
172204
|
* _.isPlainObject(Object.create(null));
|
|
172241
172205
|
* // => true
|
|
172242
172206
|
*/
|
|
172243
|
-
function isPlainObject(value) {
|
|
172207
|
+
function isPlainObject$1(value) {
|
|
172244
172208
|
if (!isObjectLike$1(value) || baseGetTag$1(value) != objectTag) {
|
|
172245
172209
|
return false;
|
|
172246
172210
|
}
|
|
@@ -172253,9 +172217,9 @@ function isPlainObject(value) {
|
|
|
172253
172217
|
funcToString.call(Ctor) == objectCtorString;
|
|
172254
172218
|
}
|
|
172255
172219
|
|
|
172256
|
-
var isPlainObject_1 = isPlainObject;
|
|
172220
|
+
var isPlainObject_1 = isPlainObject$1;
|
|
172257
172221
|
|
|
172258
|
-
var isPlainObject
|
|
172222
|
+
var isPlainObject = /*@__PURE__*/getDefaultExportFromCjs(isPlainObject_1);
|
|
172259
172223
|
|
|
172260
172224
|
var baseGetTag = _baseGetTag,
|
|
172261
172225
|
isObjectLike = isObjectLike_1;
|
|
@@ -172280,14 +172244,14 @@ var boolTag = '[object Boolean]';
|
|
|
172280
172244
|
* _.isBoolean(null);
|
|
172281
172245
|
* // => false
|
|
172282
172246
|
*/
|
|
172283
|
-
function isBoolean(value) {
|
|
172247
|
+
function isBoolean$1(value) {
|
|
172284
172248
|
return value === true || value === false ||
|
|
172285
172249
|
(isObjectLike(value) && baseGetTag(value) == boolTag);
|
|
172286
172250
|
}
|
|
172287
172251
|
|
|
172288
|
-
var isBoolean_1 = isBoolean;
|
|
172252
|
+
var isBoolean_1 = isBoolean$1;
|
|
172289
172253
|
|
|
172290
|
-
var isBoolean
|
|
172254
|
+
var isBoolean = /*@__PURE__*/getDefaultExportFromCjs(isBoolean_1);
|
|
172291
172255
|
|
|
172292
172256
|
function _typeof$l(o) { "@babel/helpers - typeof"; return _typeof$l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$l(o); }
|
|
172293
172257
|
function _extends$d() { _extends$d = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
|
|
@@ -172470,9 +172434,9 @@ function Shape(_ref2) {
|
|
|
172470
172434
|
var shape;
|
|
172471
172435
|
if ( /*#__PURE__*/isValidElement(option)) {
|
|
172472
172436
|
shape = /*#__PURE__*/cloneElement(option, _objectSpread$h(_objectSpread$h({}, props), getPropsFromShapeOption(option)));
|
|
172473
|
-
} else if (isFunction$
|
|
172437
|
+
} else if (isFunction$2(option)) {
|
|
172474
172438
|
shape = option(props);
|
|
172475
|
-
} else if (isPlainObject
|
|
172439
|
+
} else if (isPlainObject(option) && !isBoolean(option)) {
|
|
172476
172440
|
var nextProps = propTransformer(option, props);
|
|
172477
172441
|
shape = /*#__PURE__*/React__default.createElement(ShapeSelector, {
|
|
172478
172442
|
shapeType: shapeType,
|
|
@@ -172576,7 +172540,7 @@ function getActiveShapeIndexForTooltip(_ref3) {
|
|
|
172576
172540
|
var shapeKey = getShapeDataKey(graphicalItem, activeTooltipItem);
|
|
172577
172541
|
var tooltipPayload = getActiveShapeTooltipPayload(graphicalItem, activeTooltipItem);
|
|
172578
172542
|
var activeItemMatches = itemData.filter(function (datum, dataIndex) {
|
|
172579
|
-
var valuesMatch = isEqual
|
|
172543
|
+
var valuesMatch = isEqual(tooltipPayload, datum);
|
|
172580
172544
|
var mouseCoordinateMatches = graphicalItem.props[shapeKey].filter(function (shapeData) {
|
|
172581
172545
|
var comparison = getComparisonFn(graphicalItem, activeTooltipItem);
|
|
172582
172546
|
return comparison(shapeData, activeTooltipItem);
|
|
@@ -172624,7 +172588,7 @@ var Pie = /*#__PURE__*/function (_PureComponent) {
|
|
|
172624
172588
|
_this.setState({
|
|
172625
172589
|
isAnimationFinished: true
|
|
172626
172590
|
});
|
|
172627
|
-
if (isFunction$
|
|
172591
|
+
if (isFunction$2(onAnimationEnd)) {
|
|
172628
172592
|
onAnimationEnd();
|
|
172629
172593
|
}
|
|
172630
172594
|
});
|
|
@@ -172633,7 +172597,7 @@ var Pie = /*#__PURE__*/function (_PureComponent) {
|
|
|
172633
172597
|
_this.setState({
|
|
172634
172598
|
isAnimationFinished: false
|
|
172635
172599
|
});
|
|
172636
|
-
if (isFunction$
|
|
172600
|
+
if (isFunction$2(onAnimationStart)) {
|
|
172637
172601
|
onAnimationStart();
|
|
172638
172602
|
}
|
|
172639
172603
|
});
|
|
@@ -172695,9 +172659,9 @@ var Pie = /*#__PURE__*/function (_PureComponent) {
|
|
|
172695
172659
|
});
|
|
172696
172660
|
var realDataKey = dataKey;
|
|
172697
172661
|
// TODO: compatible to lower versions
|
|
172698
|
-
if (isNil
|
|
172662
|
+
if (isNil(dataKey) && isNil(valueKey)) {
|
|
172699
172663
|
realDataKey = 'value';
|
|
172700
|
-
} else if (isNil
|
|
172664
|
+
} else if (isNil(dataKey)) {
|
|
172701
172665
|
realDataKey = valueKey;
|
|
172702
172666
|
}
|
|
172703
172667
|
return (
|
|
@@ -172782,7 +172746,7 @@ var Pie = /*#__PURE__*/function (_PureComponent) {
|
|
|
172782
172746
|
var curAngle = first.startAngle;
|
|
172783
172747
|
sectors.forEach(function (entry, index) {
|
|
172784
172748
|
var prev = prevSectors && prevSectors[index];
|
|
172785
|
-
var paddingAngle = index > 0 ? get$
|
|
172749
|
+
var paddingAngle = index > 0 ? get$1(entry, 'paddingAngle', 0) : 0;
|
|
172786
172750
|
if (prev) {
|
|
172787
172751
|
var angleIp = interpolateNumber$2(prev.endAngle - prev.startAngle, entry.endAngle - entry.startAngle);
|
|
172788
172752
|
var latest = _objectSpread$g(_objectSpread$g({}, entry), {}, {
|
|
@@ -172852,7 +172816,7 @@ var Pie = /*#__PURE__*/function (_PureComponent) {
|
|
|
172852
172816
|
sectors = _this$props4.sectors,
|
|
172853
172817
|
isAnimationActive = _this$props4.isAnimationActive;
|
|
172854
172818
|
var prevSectors = this.state.prevSectors;
|
|
172855
|
-
if (isAnimationActive && sectors && sectors.length && (!prevSectors || !isEqual
|
|
172819
|
+
if (isAnimationActive && sectors && sectors.length && (!prevSectors || !isEqual(prevSectors, sectors))) {
|
|
172856
172820
|
return this.renderSectorsWithAnimation();
|
|
172857
172821
|
}
|
|
172858
172822
|
return this.renderSectorsStatically(sectors);
|
|
@@ -172936,7 +172900,7 @@ var Pie = /*#__PURE__*/function (_PureComponent) {
|
|
|
172936
172900
|
if ( /*#__PURE__*/React__default.isValidElement(option)) {
|
|
172937
172901
|
return /*#__PURE__*/React__default.cloneElement(option, props);
|
|
172938
172902
|
}
|
|
172939
|
-
if (isFunction$
|
|
172903
|
+
if (isFunction$2(option)) {
|
|
172940
172904
|
return option(props);
|
|
172941
172905
|
}
|
|
172942
172906
|
var className = clsx('recharts-pie-label-line', typeof option !== 'boolean' ? option.className : '');
|
|
@@ -172953,13 +172917,13 @@ var Pie = /*#__PURE__*/function (_PureComponent) {
|
|
|
172953
172917
|
return /*#__PURE__*/React__default.cloneElement(option, props);
|
|
172954
172918
|
}
|
|
172955
172919
|
var label = value;
|
|
172956
|
-
if (isFunction$
|
|
172920
|
+
if (isFunction$2(option)) {
|
|
172957
172921
|
label = option(props);
|
|
172958
172922
|
if ( /*#__PURE__*/React__default.isValidElement(label)) {
|
|
172959
172923
|
return label;
|
|
172960
172924
|
}
|
|
172961
172925
|
}
|
|
172962
|
-
var className = clsx('recharts-pie-label-text', typeof option !== 'boolean' && !isFunction$
|
|
172926
|
+
var className = clsx('recharts-pie-label-text', typeof option !== 'boolean' && !isFunction$2(option) ? option.className : '');
|
|
172963
172927
|
return /*#__PURE__*/React__default.createElement(Text, _extends$c({}, props, {
|
|
172964
172928
|
alignmentBaseline: "middle",
|
|
172965
172929
|
className: className
|
|
@@ -173055,10 +173019,10 @@ _defineProperty$i(Pie, "getComposedData", function (_ref4) {
|
|
|
173055
173019
|
var deltaAngle = _Pie.parseDeltaAngle(startAngle, endAngle);
|
|
173056
173020
|
var absDeltaAngle = Math.abs(deltaAngle);
|
|
173057
173021
|
var realDataKey = dataKey;
|
|
173058
|
-
if (isNil
|
|
173022
|
+
if (isNil(dataKey) && isNil(valueKey)) {
|
|
173059
173023
|
warn$1(false, "Use \"dataKey\" to specify the value of pie,\n the props \"valueKey\" will be deprecated in 1.1.0");
|
|
173060
173024
|
realDataKey = 'value';
|
|
173061
|
-
} else if (isNil
|
|
173025
|
+
} else if (isNil(dataKey)) {
|
|
173062
173026
|
warn$1(false, "Use \"dataKey\" to specify the value of pie,\n the props \"valueKey\" will be deprecated in 1.1.0");
|
|
173063
173027
|
realDataKey = valueKey;
|
|
173064
173028
|
}
|
|
@@ -173183,7 +173147,7 @@ function toFinite$2(value) {
|
|
|
173183
173147
|
return value === 0 ? value : 0;
|
|
173184
173148
|
}
|
|
173185
173149
|
value = toNumber(value);
|
|
173186
|
-
if (value === INFINITY || value === -
|
|
173150
|
+
if (value === INFINITY || value === -INFINITY) {
|
|
173187
173151
|
var sign = (value < 0 ? -1 : 1);
|
|
173188
173152
|
return sign * MAX_INTEGER;
|
|
173189
173153
|
}
|
|
@@ -173266,11 +173230,11 @@ var createRange = _createRange;
|
|
|
173266
173230
|
* _.range(0);
|
|
173267
173231
|
* // => []
|
|
173268
173232
|
*/
|
|
173269
|
-
var range$
|
|
173233
|
+
var range$2 = createRange();
|
|
173270
173234
|
|
|
173271
|
-
var range_1 = range$
|
|
173235
|
+
var range_1 = range$2;
|
|
173272
173236
|
|
|
173273
|
-
var range$
|
|
173237
|
+
var range$1 = /*@__PURE__*/getDefaultExportFromCjs(range_1);
|
|
173274
173238
|
|
|
173275
173239
|
function _typeof$i(o) { "@babel/helpers - typeof"; return _typeof$i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$i(o); }
|
|
173276
173240
|
function ownKeys$f(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -173318,7 +173282,7 @@ var createScale = function createScale(_ref) {
|
|
|
173318
173282
|
return {};
|
|
173319
173283
|
}
|
|
173320
173284
|
var len = data.length;
|
|
173321
|
-
var scale = point().domain(range$
|
|
173285
|
+
var scale = point().domain(range$1(0, len)).range([x, x + width - travellerWidth]);
|
|
173322
173286
|
var scaleValues = scale.domain().map(function (entry) {
|
|
173323
173287
|
return scale(entry);
|
|
173324
173288
|
});
|
|
@@ -173441,7 +173405,7 @@ var Brush = /*#__PURE__*/function (_PureComponent) {
|
|
|
173441
173405
|
tickFormatter = _this$props3.tickFormatter,
|
|
173442
173406
|
dataKey = _this$props3.dataKey;
|
|
173443
173407
|
var text = getValueByDataKey(data[index], dataKey, index);
|
|
173444
|
-
return isFunction$
|
|
173408
|
+
return isFunction$2(tickFormatter) ? tickFormatter(text, index) : text;
|
|
173445
173409
|
}
|
|
173446
173410
|
}, {
|
|
173447
173411
|
key: "attachDragEndListener",
|
|
@@ -173809,7 +173773,7 @@ var Brush = /*#__PURE__*/function (_PureComponent) {
|
|
|
173809
173773
|
var rectangle;
|
|
173810
173774
|
if ( /*#__PURE__*/React__default.isValidElement(option)) {
|
|
173811
173775
|
rectangle = /*#__PURE__*/React__default.cloneElement(option, props);
|
|
173812
|
-
} else if (isFunction$
|
|
173776
|
+
} else if (isFunction$2(option)) {
|
|
173813
173777
|
rectangle = option(props);
|
|
173814
173778
|
} else {
|
|
173815
173779
|
rectangle = Brush.renderDefaultTraveller(props);
|
|
@@ -173963,7 +173927,7 @@ var arraySome = _arraySome,
|
|
|
173963
173927
|
* _.some(users, 'active');
|
|
173964
173928
|
* // => true
|
|
173965
173929
|
*/
|
|
173966
|
-
function some(collection, predicate, guard) {
|
|
173930
|
+
function some$1(collection, predicate, guard) {
|
|
173967
173931
|
var func = isArray$1(collection) ? arraySome : baseSome;
|
|
173968
173932
|
if (guard && isIterateeCall$1(collection, predicate, guard)) {
|
|
173969
173933
|
predicate = undefined;
|
|
@@ -173971,9 +173935,9 @@ function some(collection, predicate, guard) {
|
|
|
173971
173935
|
return func(collection, baseIteratee$4(predicate));
|
|
173972
173936
|
}
|
|
173973
173937
|
|
|
173974
|
-
var some_1 = some;
|
|
173938
|
+
var some_1 = some$1;
|
|
173975
173939
|
|
|
173976
|
-
var some
|
|
173940
|
+
var some = /*@__PURE__*/getDefaultExportFromCjs(some_1);
|
|
173977
173941
|
|
|
173978
173942
|
var ifOverflowMatches = function ifOverflowMatches(props, value) {
|
|
173979
173943
|
var alwaysShow = props.alwaysShow;
|
|
@@ -174042,7 +174006,7 @@ var baseAssignValue = _baseAssignValue,
|
|
|
174042
174006
|
* _.mapValues(users, 'age');
|
|
174043
174007
|
* // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
|
|
174044
174008
|
*/
|
|
174045
|
-
function mapValues(object, iteratee) {
|
|
174009
|
+
function mapValues$1(object, iteratee) {
|
|
174046
174010
|
var result = {};
|
|
174047
174011
|
iteratee = baseIteratee$3(iteratee);
|
|
174048
174012
|
|
|
@@ -174052,9 +174016,9 @@ function mapValues(object, iteratee) {
|
|
|
174052
174016
|
return result;
|
|
174053
174017
|
}
|
|
174054
174018
|
|
|
174055
|
-
var mapValues_1 = mapValues;
|
|
174019
|
+
var mapValues_1 = mapValues$1;
|
|
174056
174020
|
|
|
174057
|
-
var mapValues
|
|
174021
|
+
var mapValues = /*@__PURE__*/getDefaultExportFromCjs(mapValues_1);
|
|
174058
174022
|
|
|
174059
174023
|
/**
|
|
174060
174024
|
* A specialized version of `_.every` for arrays without support for
|
|
@@ -174150,7 +174114,7 @@ var arrayEvery = _arrayEvery,
|
|
|
174150
174114
|
* _.every(users, 'active');
|
|
174151
174115
|
* // => false
|
|
174152
174116
|
*/
|
|
174153
|
-
function every(collection, predicate, guard) {
|
|
174117
|
+
function every$1(collection, predicate, guard) {
|
|
174154
174118
|
var func = isArray(collection) ? arrayEvery : baseEvery;
|
|
174155
174119
|
if (guard && isIterateeCall(collection, predicate, guard)) {
|
|
174156
174120
|
predicate = undefined;
|
|
@@ -174158,9 +174122,9 @@ function every(collection, predicate, guard) {
|
|
|
174158
174122
|
return func(collection, baseIteratee$2(predicate));
|
|
174159
174123
|
}
|
|
174160
174124
|
|
|
174161
|
-
var every_1 = every;
|
|
174125
|
+
var every_1 = every$1;
|
|
174162
174126
|
|
|
174163
|
-
var every
|
|
174127
|
+
var every = /*@__PURE__*/getDefaultExportFromCjs(every_1);
|
|
174164
174128
|
|
|
174165
174129
|
var _excluded$6 = ["x", "y"];
|
|
174166
174130
|
function _typeof$g(o) { "@babel/helpers - typeof"; return _typeof$g = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$g(o); }
|
|
@@ -174378,7 +174342,7 @@ var Bar = /*#__PURE__*/function (_PureComponent) {
|
|
|
174378
174342
|
data = _this$props3.data,
|
|
174379
174343
|
isAnimationActive = _this$props3.isAnimationActive;
|
|
174380
174344
|
var prevData = this.state.prevData;
|
|
174381
|
-
if (isAnimationActive && data && data.length && (!prevData || !isEqual
|
|
174345
|
+
if (isAnimationActive && data && data.length && (!prevData || !isEqual(prevData, data))) {
|
|
174382
174346
|
return this.renderRectanglesWithAnimation();
|
|
174383
174347
|
}
|
|
174384
174348
|
return this.renderRectanglesStatically(data);
|
|
@@ -174484,7 +174448,7 @@ var Bar = /*#__PURE__*/function (_PureComponent) {
|
|
|
174484
174448
|
var needClipX = xAxis && xAxis.allowDataOverflow;
|
|
174485
174449
|
var needClipY = yAxis && yAxis.allowDataOverflow;
|
|
174486
174450
|
var needClip = needClipX || needClipY;
|
|
174487
|
-
var clipPathId = isNil
|
|
174451
|
+
var clipPathId = isNil(id) ? this.id : id;
|
|
174488
174452
|
return /*#__PURE__*/React__default.createElement(Layer, {
|
|
174489
174453
|
className: layerClass
|
|
174490
174454
|
}, needClipX || needClipY ? /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("clipPath", {
|
|
@@ -174895,7 +174859,7 @@ var createLabeledScales = function createLabeledScales(options) {
|
|
|
174895
174859
|
var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
174896
174860
|
bandAware = _ref5.bandAware,
|
|
174897
174861
|
position = _ref5.position;
|
|
174898
|
-
return mapValues
|
|
174862
|
+
return mapValues(coord, function (value, label) {
|
|
174899
174863
|
return scales[label].apply(value, {
|
|
174900
174864
|
bandAware: bandAware,
|
|
174901
174865
|
position: position
|
|
@@ -174903,7 +174867,7 @@ var createLabeledScales = function createLabeledScales(options) {
|
|
|
174903
174867
|
});
|
|
174904
174868
|
},
|
|
174905
174869
|
isInRange: function isInRange(coord) {
|
|
174906
|
-
return every
|
|
174870
|
+
return every(coord, function (value, label) {
|
|
174907
174871
|
return scales[label].isInRange(value);
|
|
174908
174872
|
});
|
|
174909
174873
|
}
|
|
@@ -175095,11 +175059,11 @@ var createFind = _createFind,
|
|
|
175095
175059
|
* _.find(users, 'active');
|
|
175096
175060
|
* // => object for 'barney'
|
|
175097
175061
|
*/
|
|
175098
|
-
var find$
|
|
175062
|
+
var find$3 = createFind(findIndex);
|
|
175099
175063
|
|
|
175100
|
-
var find_1$1 = find$
|
|
175064
|
+
var find_1$1 = find$3;
|
|
175101
175065
|
|
|
175102
|
-
var find$
|
|
175066
|
+
var find$2 = /*@__PURE__*/getDefaultExportFromCjs(find_1$1);
|
|
175103
175067
|
|
|
175104
175068
|
/**
|
|
175105
175069
|
* This is memoized because the viewBox is unlikely to change often
|
|
@@ -175108,7 +175072,7 @@ var find$3 = /*@__PURE__*/getDefaultExportFromCjs(find_1$1);
|
|
|
175108
175072
|
* And because we have many readers of the viewBox, and update it only rarely,
|
|
175109
175073
|
* then let's optimize with memoization.
|
|
175110
175074
|
*/
|
|
175111
|
-
var calculateViewBox = memoize$
|
|
175075
|
+
var calculateViewBox = memoize$2(function (offset) {
|
|
175112
175076
|
return {
|
|
175113
175077
|
x: offset.left,
|
|
175114
175078
|
y: offset.top,
|
|
@@ -175229,8 +175193,8 @@ var useArbitraryXAxis = function useArbitraryXAxis() {
|
|
|
175229
175193
|
*/
|
|
175230
175194
|
var useYAxisWithFiniteDomainOrRandom = function useYAxisWithFiniteDomainOrRandom() {
|
|
175231
175195
|
var yAxisMap = useContext(YAxisContext);
|
|
175232
|
-
var yAxisWithFiniteDomain = find$
|
|
175233
|
-
return every
|
|
175196
|
+
var yAxisWithFiniteDomain = find$2(yAxisMap, function (axis) {
|
|
175197
|
+
return every(axis.domain, Number.isFinite);
|
|
175234
175198
|
});
|
|
175235
175199
|
return yAxisWithFiniteDomain || getAnyElementOfObject(yAxisMap);
|
|
175236
175200
|
};
|
|
@@ -175298,7 +175262,7 @@ var renderLine = function renderLine(option, props) {
|
|
|
175298
175262
|
var line;
|
|
175299
175263
|
if ( /*#__PURE__*/React__default.isValidElement(option)) {
|
|
175300
175264
|
line = /*#__PURE__*/React__default.cloneElement(option, props);
|
|
175301
|
-
} else if (isFunction$
|
|
175265
|
+
} else if (isFunction$2(option)) {
|
|
175302
175266
|
line = option(props);
|
|
175303
175267
|
} else {
|
|
175304
175268
|
line = /*#__PURE__*/React__default.createElement("line", _extends$8({}, props, {
|
|
@@ -175354,7 +175318,7 @@ var getEndPoints = function getEndPoints(scales, isFixedX, isFixedY, isSegment,
|
|
|
175354
175318
|
position: position
|
|
175355
175319
|
});
|
|
175356
175320
|
});
|
|
175357
|
-
if (ifOverflowMatches(props, 'discard') && some
|
|
175321
|
+
if (ifOverflowMatches(props, 'discard') && some(_points2, function (p) {
|
|
175358
175322
|
return !scales.isInRange(p);
|
|
175359
175323
|
})) {
|
|
175360
175324
|
return null;
|
|
@@ -175547,7 +175511,7 @@ _defineProperty$b(ReferenceDot, "renderDot", function (option, props) {
|
|
|
175547
175511
|
var dot;
|
|
175548
175512
|
if ( /*#__PURE__*/React__default.isValidElement(option)) {
|
|
175549
175513
|
dot = /*#__PURE__*/React__default.cloneElement(option, props);
|
|
175550
|
-
} else if (isFunction$
|
|
175514
|
+
} else if (isFunction$2(option)) {
|
|
175551
175515
|
dot = option(props);
|
|
175552
175516
|
} else {
|
|
175553
175517
|
dot = /*#__PURE__*/React__default.createElement(Dot$1, _extends$7({}, props, {
|
|
@@ -175666,7 +175630,7 @@ _defineProperty$a(ReferenceArea, "renderRect", function (option, props) {
|
|
|
175666
175630
|
var rect;
|
|
175667
175631
|
if ( /*#__PURE__*/React__default.isValidElement(option)) {
|
|
175668
175632
|
rect = /*#__PURE__*/React__default.cloneElement(option, props);
|
|
175669
|
-
} else if (isFunction$
|
|
175633
|
+
} else if (isFunction$2(option)) {
|
|
175670
175634
|
rect = option(props);
|
|
175671
175635
|
} else {
|
|
175672
175636
|
rect = /*#__PURE__*/React__default.createElement(Rectangle, _extends$6({}, props, {
|
|
@@ -175917,7 +175881,7 @@ function getTicks(props, fontSize, letterSpacing) {
|
|
|
175917
175881
|
height: 0
|
|
175918
175882
|
};
|
|
175919
175883
|
var getTickSize = function getTickSize(content, index) {
|
|
175920
|
-
var value = isFunction$
|
|
175884
|
+
var value = isFunction$2(tickFormatter) ? tickFormatter(content.value, index) : content.value;
|
|
175921
175885
|
// Recharts only supports angles when sizeKey === 'width'
|
|
175922
175886
|
return sizeKey === 'width' ? getAngledTickWidth(getStringSize(value, {
|
|
175923
175887
|
fontSize: fontSize,
|
|
@@ -176147,7 +176111,7 @@ var CartesianAxis = /*#__PURE__*/function (_Component) {
|
|
|
176147
176111
|
});
|
|
176148
176112
|
}
|
|
176149
176113
|
return /*#__PURE__*/React__default.createElement("line", _extends$5({}, props, {
|
|
176150
|
-
className: clsx('recharts-cartesian-axis-line', get$
|
|
176114
|
+
className: clsx('recharts-cartesian-axis-line', get$1(axisLine, 'className'))
|
|
176151
176115
|
}));
|
|
176152
176116
|
}
|
|
176153
176117
|
}, {
|
|
@@ -176198,8 +176162,8 @@ var CartesianAxis = /*#__PURE__*/function (_Component) {
|
|
|
176198
176162
|
className: "recharts-cartesian-axis-tick",
|
|
176199
176163
|
key: "tick-".concat(entry.value, "-").concat(entry.coordinate, "-").concat(entry.tickCoord)
|
|
176200
176164
|
}, adaptEventsOfChild(_this2.props, entry, i)), tickLine && /*#__PURE__*/React__default.createElement("line", _extends$5({}, tickLineProps, lineCoord, {
|
|
176201
|
-
className: clsx('recharts-cartesian-axis-tick-line', get$
|
|
176202
|
-
})), tick && CartesianAxis.renderTickItem(tick, tickProps, "".concat(isFunction$
|
|
176165
|
+
className: clsx('recharts-cartesian-axis-tick-line', get$1(tickLine, 'className'))
|
|
176166
|
+
})), tick && CartesianAxis.renderTickItem(tick, tickProps, "".concat(isFunction$2(tickFormatter) ? tickFormatter(entry.value, i) : entry.value).concat(unit || '')));
|
|
176203
176167
|
});
|
|
176204
176168
|
return /*#__PURE__*/React__default.createElement("g", {
|
|
176205
176169
|
className: "recharts-cartesian-axis-ticks"
|
|
@@ -176223,7 +176187,7 @@ var CartesianAxis = /*#__PURE__*/function (_Component) {
|
|
|
176223
176187
|
ticks = _this$props8.ticks,
|
|
176224
176188
|
noTicksProps = _objectWithoutProperties$4(_this$props8, _excluded3);
|
|
176225
176189
|
var finalTicks = ticks;
|
|
176226
|
-
if (isFunction$
|
|
176190
|
+
if (isFunction$2(ticksGenerator)) {
|
|
176227
176191
|
finalTicks = ticks && ticks.length > 0 ? ticksGenerator(this.props) : ticksGenerator(noTicksProps);
|
|
176228
176192
|
}
|
|
176229
176193
|
if (width <= 0 || height <= 0 || !finalTicks || !finalTicks.length) {
|
|
@@ -176242,7 +176206,7 @@ var CartesianAxis = /*#__PURE__*/function (_Component) {
|
|
|
176242
176206
|
var tickItem;
|
|
176243
176207
|
if ( /*#__PURE__*/React__default.isValidElement(option)) {
|
|
176244
176208
|
tickItem = /*#__PURE__*/React__default.cloneElement(option, props);
|
|
176245
|
-
} else if (isFunction$
|
|
176209
|
+
} else if (isFunction$2(option)) {
|
|
176246
176210
|
tickItem = option(props);
|
|
176247
176211
|
} else {
|
|
176248
176212
|
tickItem = /*#__PURE__*/React__default.createElement(Text, _extends$5({}, props, {
|
|
@@ -176325,7 +176289,7 @@ function renderLineItem(option, props) {
|
|
|
176325
176289
|
if ( /*#__PURE__*/React__default.isValidElement(option)) {
|
|
176326
176290
|
// @ts-expect-error typescript does not see the props type when cloning an element
|
|
176327
176291
|
lineItem = /*#__PURE__*/React__default.cloneElement(option, props);
|
|
176328
|
-
} else if (isFunction$
|
|
176292
|
+
} else if (isFunction$2(option)) {
|
|
176329
176293
|
lineItem = option(props);
|
|
176330
176294
|
} else {
|
|
176331
176295
|
var x1 = props.x1,
|
|
@@ -176575,7 +176539,7 @@ function CartesianGrid(props) {
|
|
|
176575
176539
|
verticalPoints = propsIncludingDefaults.verticalPoints;
|
|
176576
176540
|
|
|
176577
176541
|
// No horizontal points are specified
|
|
176578
|
-
if ((!horizontalPoints || !horizontalPoints.length) && isFunction$
|
|
176542
|
+
if ((!horizontalPoints || !horizontalPoints.length) && isFunction$2(horizontalCoordinatesGenerator)) {
|
|
176579
176543
|
var isHorizontalValues = horizontalValues && horizontalValues.length;
|
|
176580
176544
|
var generatorResult = horizontalCoordinatesGenerator({
|
|
176581
176545
|
yAxis: yAxis ? _objectSpread$5(_objectSpread$5({}, yAxis), {}, {
|
|
@@ -176592,7 +176556,7 @@ function CartesianGrid(props) {
|
|
|
176592
176556
|
}
|
|
176593
176557
|
|
|
176594
176558
|
// No vertical points are specified
|
|
176595
|
-
if ((!verticalPoints || !verticalPoints.length) && isFunction$
|
|
176559
|
+
if ((!verticalPoints || !verticalPoints.length) && isFunction$2(verticalCoordinatesGenerator)) {
|
|
176596
176560
|
var isVerticalValues = verticalValues && verticalValues.length;
|
|
176597
176561
|
var _generatorResult = verticalCoordinatesGenerator({
|
|
176598
176562
|
xAxis: xAxis ? _objectSpread$5(_objectSpread$5({}, xAxis), {}, {
|
|
@@ -176944,7 +176908,7 @@ var Line = /*#__PURE__*/function (_PureComponent) {
|
|
|
176944
176908
|
var _this$state2 = this.state,
|
|
176945
176909
|
prevPoints = _this$state2.prevPoints,
|
|
176946
176910
|
totalLength = _this$state2.totalLength;
|
|
176947
|
-
if (isAnimationActive && points && points.length && (!prevPoints && totalLength > 0 || !isEqual
|
|
176911
|
+
if (isAnimationActive && points && points.length && (!prevPoints && totalLength > 0 || !isEqual(prevPoints, points))) {
|
|
176948
176912
|
return this.renderCurveWithAnimation(needClip, clipPathId);
|
|
176949
176913
|
}
|
|
176950
176914
|
return this.renderCurveStatically(points, needClip, clipPathId);
|
|
@@ -176975,7 +176939,7 @@ var Line = /*#__PURE__*/function (_PureComponent) {
|
|
|
176975
176939
|
var needClipX = xAxis && xAxis.allowDataOverflow;
|
|
176976
176940
|
var needClipY = yAxis && yAxis.allowDataOverflow;
|
|
176977
176941
|
var needClip = needClipX || needClipY;
|
|
176978
|
-
var clipPathId = isNil
|
|
176942
|
+
var clipPathId = isNil(id) ? this.id : id;
|
|
176979
176943
|
var _ref2 = (_filterProps = filterProps(dot, false)) !== null && _filterProps !== void 0 ? _filterProps : {
|
|
176980
176944
|
r: 3,
|
|
176981
176945
|
strokeWidth: 2
|
|
@@ -177039,7 +177003,7 @@ var Line = /*#__PURE__*/function (_PureComponent) {
|
|
|
177039
177003
|
var dotItem;
|
|
177040
177004
|
if ( /*#__PURE__*/React__default.isValidElement(option)) {
|
|
177041
177005
|
dotItem = /*#__PURE__*/React__default.cloneElement(option, props);
|
|
177042
|
-
} else if (isFunction$
|
|
177006
|
+
} else if (isFunction$2(option)) {
|
|
177043
177007
|
dotItem = option(props);
|
|
177044
177008
|
} else {
|
|
177045
177009
|
var key = props.key,
|
|
@@ -177105,13 +177069,13 @@ _defineProperty$6(Line, "getComposedData", function (_ref4) {
|
|
|
177105
177069
|
entry: entry,
|
|
177106
177070
|
index: index
|
|
177107
177071
|
}),
|
|
177108
|
-
y: isNil
|
|
177072
|
+
y: isNil(value) ? null : yAxis.scale(value),
|
|
177109
177073
|
value: value,
|
|
177110
177074
|
payload: entry
|
|
177111
177075
|
};
|
|
177112
177076
|
}
|
|
177113
177077
|
return {
|
|
177114
|
-
x: isNil
|
|
177078
|
+
x: isNil(value) ? null : xAxis.scale(value),
|
|
177115
177079
|
y: getCateCoordinateOfLine({
|
|
177116
177080
|
axis: yAxis,
|
|
177117
177081
|
ticks: yAxisTicks,
|
|
@@ -178242,7 +178206,7 @@ var getAxisMapByAxes = function getAxisMapByAxes(props, _ref2) {
|
|
|
178242
178206
|
if (allowDuplicatedCategory && duplicate) {
|
|
178243
178207
|
duplicateDomain = domain;
|
|
178244
178208
|
// When category axis has duplicated text, serial numbers are used to generate scale
|
|
178245
|
-
domain = range$
|
|
178209
|
+
domain = range$1(0, len);
|
|
178246
178210
|
} else if (!allowDuplicatedCategory) {
|
|
178247
178211
|
// remove duplicated category
|
|
178248
178212
|
domain = parseDomainOfCategoryAxis(childDomain, domain, child).reduce(function (finalDomain, entry) {
|
|
@@ -178253,12 +178217,12 @@ var getAxisMapByAxes = function getAxisMapByAxes(props, _ref2) {
|
|
|
178253
178217
|
// the field type is category data and this axis is numerical axis
|
|
178254
178218
|
if (!allowDuplicatedCategory) {
|
|
178255
178219
|
domain = parseDomainOfCategoryAxis(childDomain, domain, child).reduce(function (finalDomain, entry) {
|
|
178256
|
-
return finalDomain.indexOf(entry) >= 0 || entry === '' || isNil
|
|
178220
|
+
return finalDomain.indexOf(entry) >= 0 || entry === '' || isNil(entry) ? finalDomain : [].concat(_toConsumableArray$1(finalDomain), [entry]);
|
|
178257
178221
|
}, []);
|
|
178258
178222
|
} else {
|
|
178259
178223
|
// eliminate undefined or null or empty string
|
|
178260
178224
|
domain = domain.filter(function (entry) {
|
|
178261
|
-
return entry !== '' && !isNil
|
|
178225
|
+
return entry !== '' && !isNil(entry);
|
|
178262
178226
|
});
|
|
178263
178227
|
}
|
|
178264
178228
|
} else if (type === 'number') {
|
|
@@ -178278,7 +178242,7 @@ var getAxisMapByAxes = function getAxisMapByAxes(props, _ref2) {
|
|
|
178278
178242
|
}
|
|
178279
178243
|
} else if (isCategorical) {
|
|
178280
178244
|
// the axis is a categorical axis
|
|
178281
|
-
domain = range$
|
|
178245
|
+
domain = range$1(0, len);
|
|
178282
178246
|
} else if (stackGroups && stackGroups[axisId] && stackGroups[axisId].hasStack && type === 'number') {
|
|
178283
178247
|
// when stackOffset is 'expand', the domain may be calculated as [0, 1.000000000002]
|
|
178284
178248
|
domain = stackOffset === 'expand' ? [0, 1] : getDomainOfStackGroups(stackGroups[axisId].stackGroups, dataStartIndex, dataEndIndex);
|
|
@@ -178361,7 +178325,7 @@ var getAxisMapByItems = function getAxisMapByItems(props, _ref3) {
|
|
|
178361
178325
|
index++;
|
|
178362
178326
|
var domain;
|
|
178363
178327
|
if (isCategorical) {
|
|
178364
|
-
domain = range$
|
|
178328
|
+
domain = range$1(0, len);
|
|
178365
178329
|
} else if (stackGroups && stackGroups[axisId] && stackGroups[axisId].hasStack) {
|
|
178366
178330
|
domain = getDomainOfStackGroups(stackGroups[axisId].stackGroups, dataStartIndex, dataEndIndex);
|
|
178367
178331
|
domain = detectReferenceElementsDomain(children, domain, axisId, axisType);
|
|
@@ -178378,7 +178342,7 @@ var getAxisMapByItems = function getAxisMapByItems(props, _ref3) {
|
|
|
178378
178342
|
axisType: axisType
|
|
178379
178343
|
}, Axis.defaultProps), {}, {
|
|
178380
178344
|
hide: true,
|
|
178381
|
-
orientation: get$
|
|
178345
|
+
orientation: get$1(ORIENT_MAP, "".concat(axisType, ".").concat(index % 2), null),
|
|
178382
178346
|
domain: domain,
|
|
178383
178347
|
originalDomain: originalDomain,
|
|
178384
178348
|
isCategorical: isCategorical,
|
|
@@ -178443,7 +178407,7 @@ var tooltipTicksGenerator = function tooltipTicksGenerator(axisMap) {
|
|
|
178443
178407
|
var tooltipTicks = getTicksOfAxis(axis, false, true);
|
|
178444
178408
|
return {
|
|
178445
178409
|
tooltipTicks: tooltipTicks,
|
|
178446
|
-
orderedTooltipTicks: sortBy
|
|
178410
|
+
orderedTooltipTicks: sortBy(tooltipTicks, function (o) {
|
|
178447
178411
|
return o.coordinate;
|
|
178448
178412
|
}),
|
|
178449
178413
|
tooltipAxis: axis,
|
|
@@ -178553,7 +178517,7 @@ var calculateOffset = function calculateOffset(_ref5, prevLegendBBox) {
|
|
|
178553
178517
|
var entry = xAxisMap[id];
|
|
178554
178518
|
var orientation = entry.orientation;
|
|
178555
178519
|
if (!entry.mirror && !entry.hide) {
|
|
178556
|
-
return _objectSpread$2(_objectSpread$2({}, result), {}, _defineProperty$1({}, orientation, get$
|
|
178520
|
+
return _objectSpread$2(_objectSpread$2({}, result), {}, _defineProperty$1({}, orientation, get$1(result, "".concat(orientation)) + entry.height));
|
|
178557
178521
|
}
|
|
178558
178522
|
return result;
|
|
178559
178523
|
}, {
|
|
@@ -178666,7 +178630,7 @@ var generateCategoricalChart = function generateCategoricalChart(_ref6) {
|
|
|
178666
178630
|
if (itemIsBar) {
|
|
178667
178631
|
var _ref7, _getBandSizeOfAxis;
|
|
178668
178632
|
// If it is bar, calculate the position of bar
|
|
178669
|
-
var maxBarSize = isNil
|
|
178633
|
+
var maxBarSize = isNil(childMaxBarSize) ? globalMaxBarSize : childMaxBarSize;
|
|
178670
178634
|
var barBandSize = (_ref7 = (_getBandSizeOfAxis = getBandSizeOfAxis(cateAxis, cateTicks, true)) !== null && _getBandSizeOfAxis !== void 0 ? _getBandSizeOfAxis : maxBarSize) !== null && _ref7 !== void 0 ? _ref7 : 0;
|
|
178671
178635
|
barPosition = getBarPosition({
|
|
178672
178636
|
barGap: barGap,
|
|
@@ -178850,7 +178814,7 @@ var generateCategoricalChart = function generateCategoricalChart(_ref6) {
|
|
|
178850
178814
|
_this.setState(_nextState);
|
|
178851
178815
|
_this.triggerSyncEvent(_nextState);
|
|
178852
178816
|
var onMouseEnter = _this.props.onMouseEnter;
|
|
178853
|
-
if (isFunction$
|
|
178817
|
+
if (isFunction$2(onMouseEnter)) {
|
|
178854
178818
|
onMouseEnter(_nextState, e);
|
|
178855
178819
|
}
|
|
178856
178820
|
}
|
|
@@ -178865,7 +178829,7 @@ var generateCategoricalChart = function generateCategoricalChart(_ref6) {
|
|
|
178865
178829
|
_this.setState(nextState);
|
|
178866
178830
|
_this.triggerSyncEvent(nextState);
|
|
178867
178831
|
var onMouseMove = _this.props.onMouseMove;
|
|
178868
|
-
if (isFunction$
|
|
178832
|
+
if (isFunction$2(onMouseMove)) {
|
|
178869
178833
|
onMouseMove(nextState, e);
|
|
178870
178834
|
}
|
|
178871
178835
|
});
|
|
@@ -178920,14 +178884,14 @@ var generateCategoricalChart = function generateCategoricalChart(_ref6) {
|
|
|
178920
178884
|
_this.setState(nextState);
|
|
178921
178885
|
_this.triggerSyncEvent(nextState);
|
|
178922
178886
|
var onMouseLeave = _this.props.onMouseLeave;
|
|
178923
|
-
if (isFunction$
|
|
178887
|
+
if (isFunction$2(onMouseLeave)) {
|
|
178924
178888
|
onMouseLeave(nextState, e);
|
|
178925
178889
|
}
|
|
178926
178890
|
});
|
|
178927
178891
|
_defineProperty$1(_this, "handleOuterEvent", function (e) {
|
|
178928
178892
|
var eventName = getReactEventByType(e);
|
|
178929
|
-
var event = get$
|
|
178930
|
-
if (eventName && isFunction$
|
|
178893
|
+
var event = get$1(_this.props, "".concat(eventName));
|
|
178894
|
+
if (eventName && isFunction$2(event)) {
|
|
178931
178895
|
var _mouse;
|
|
178932
178896
|
var mouse;
|
|
178933
178897
|
if (/.*touch.*/i.test(eventName)) {
|
|
@@ -178947,21 +178911,21 @@ var generateCategoricalChart = function generateCategoricalChart(_ref6) {
|
|
|
178947
178911
|
_this.setState(_nextState2);
|
|
178948
178912
|
_this.triggerSyncEvent(_nextState2);
|
|
178949
178913
|
var onClick = _this.props.onClick;
|
|
178950
|
-
if (isFunction$
|
|
178914
|
+
if (isFunction$2(onClick)) {
|
|
178951
178915
|
onClick(_nextState2, e);
|
|
178952
178916
|
}
|
|
178953
178917
|
}
|
|
178954
178918
|
});
|
|
178955
178919
|
_defineProperty$1(_this, "handleMouseDown", function (e) {
|
|
178956
178920
|
var onMouseDown = _this.props.onMouseDown;
|
|
178957
|
-
if (isFunction$
|
|
178921
|
+
if (isFunction$2(onMouseDown)) {
|
|
178958
178922
|
var _nextState3 = _this.getMouseInfo(e);
|
|
178959
178923
|
onMouseDown(_nextState3, e);
|
|
178960
178924
|
}
|
|
178961
178925
|
});
|
|
178962
178926
|
_defineProperty$1(_this, "handleMouseUp", function (e) {
|
|
178963
178927
|
var onMouseUp = _this.props.onMouseUp;
|
|
178964
|
-
if (isFunction$
|
|
178928
|
+
if (isFunction$2(onMouseUp)) {
|
|
178965
178929
|
var _nextState4 = _this.getMouseInfo(e);
|
|
178966
178930
|
onMouseUp(_nextState4, e);
|
|
178967
178931
|
}
|
|
@@ -178983,14 +178947,14 @@ var generateCategoricalChart = function generateCategoricalChart(_ref6) {
|
|
|
178983
178947
|
});
|
|
178984
178948
|
_defineProperty$1(_this, "handleDoubleClick", function (e) {
|
|
178985
178949
|
var onDoubleClick = _this.props.onDoubleClick;
|
|
178986
|
-
if (isFunction$
|
|
178950
|
+
if (isFunction$2(onDoubleClick)) {
|
|
178987
178951
|
var _nextState5 = _this.getMouseInfo(e);
|
|
178988
178952
|
onDoubleClick(_nextState5, e);
|
|
178989
178953
|
}
|
|
178990
178954
|
});
|
|
178991
178955
|
_defineProperty$1(_this, "handleContextMenu", function (e) {
|
|
178992
178956
|
var onContextMenu = _this.props.onContextMenu;
|
|
178993
|
-
if (isFunction$
|
|
178957
|
+
if (isFunction$2(onContextMenu)) {
|
|
178994
178958
|
var _nextState6 = _this.getMouseInfo(e);
|
|
178995
178959
|
onContextMenu(_nextState6, e);
|
|
178996
178960
|
}
|
|
@@ -179094,8 +179058,8 @@ var generateCategoricalChart = function generateCategoricalChart(_ref6) {
|
|
|
179094
179058
|
});
|
|
179095
179059
|
});
|
|
179096
179060
|
_defineProperty$1(_this, "renderPolarAxis", function (element, displayName, index) {
|
|
179097
|
-
var axisType = get$
|
|
179098
|
-
var axisMap = get$
|
|
179061
|
+
var axisType = get$1(element, 'type.axisType');
|
|
179062
|
+
var axisMap = get$1(_this.state, "".concat(axisType, "Map"));
|
|
179099
179063
|
var elementDefaultProps = element.type.defaultProps;
|
|
179100
179064
|
var elementProps = elementDefaultProps !== undefined ? _objectSpread$2(_objectSpread$2({}, elementDefaultProps), element.props) : element.props;
|
|
179101
179065
|
var axisOption = axisMap && axisMap[elementProps["".concat(axisType, "Id")]];
|
|
@@ -179345,7 +179309,7 @@ var generateCategoricalChart = function generateCategoricalChart(_ref6) {
|
|
|
179345
179309
|
activeIndex: activeIndex
|
|
179346
179310
|
})), null, null];
|
|
179347
179311
|
}
|
|
179348
|
-
if (!isNil
|
|
179312
|
+
if (!isNil(activePoint)) {
|
|
179349
179313
|
return [graphicalItem].concat(_toConsumableArray$1(_this.renderActivePoints({
|
|
179350
179314
|
item: item,
|
|
179351
179315
|
activePoint: activePoint,
|
|
@@ -179455,7 +179419,7 @@ var generateCategoricalChart = function generateCategoricalChart(_ref6) {
|
|
|
179455
179419
|
_this.clipPathId = "".concat((_props$id = _props.id) !== null && _props$id !== void 0 ? _props$id : uniqueId('recharts'), "-clip");
|
|
179456
179420
|
|
|
179457
179421
|
// trigger 60fps
|
|
179458
|
-
_this.throttleTriggeredAfterMouseMove = throttle
|
|
179422
|
+
_this.throttleTriggeredAfterMouseMove = throttle(_this.triggeredAfterMouseMove, (_props$throttleDelay = _props.throttleDelay) !== null && _props$throttleDelay !== void 0 ? _props$throttleDelay : 1000 / 60);
|
|
179459
179423
|
_this.state = {};
|
|
179460
179424
|
return _this;
|
|
179461
179425
|
}
|
|
@@ -179977,7 +179941,7 @@ var generateCategoricalChart = function generateCategoricalChart(_ref6) {
|
|
|
179977
179941
|
var hasDifferentStartOrEndIndex = startIndex !== dataStartIndex || endIndex !== dataEndIndex;
|
|
179978
179942
|
|
|
179979
179943
|
// update configuration in children
|
|
179980
|
-
var hasGlobalData = !isNil
|
|
179944
|
+
var hasGlobalData = !isNil(data);
|
|
179981
179945
|
var newUpdateId = hasGlobalData && !hasDifferentStartOrEndIndex ? prevState.updateId : prevState.updateId + 1;
|
|
179982
179946
|
return _objectSpread$2(_objectSpread$2({
|
|
179983
179947
|
updateId: newUpdateId
|
|
@@ -179999,7 +179963,7 @@ var generateCategoricalChart = function generateCategoricalChart(_ref6) {
|
|
|
179999
179963
|
var dot;
|
|
180000
179964
|
if ( /*#__PURE__*/isValidElement(option)) {
|
|
180001
179965
|
dot = /*#__PURE__*/cloneElement(option, props);
|
|
180002
|
-
} else if (isFunction$
|
|
179966
|
+
} else if (isFunction$2(option)) {
|
|
180003
179967
|
dot = option(props);
|
|
180004
179968
|
} else {
|
|
180005
179969
|
dot = /*#__PURE__*/React__default.createElement(Dot$1, props);
|
|
@@ -215237,287 +215201,287 @@ function requireZig () {
|
|
|
215237
215201
|
return zig_1;
|
|
215238
215202
|
}
|
|
215239
215203
|
|
|
215240
|
-
var refractor = core;
|
|
215241
|
-
|
|
215242
|
-
var refractor_1 = refractor;
|
|
215243
|
-
|
|
215244
|
-
refractor.register(requireAbap());
|
|
215245
|
-
refractor.register(requireAbnf());
|
|
215246
|
-
refractor.register(requireActionscript());
|
|
215247
|
-
refractor.register(requireAda());
|
|
215248
|
-
refractor.register(requireAgda());
|
|
215249
|
-
refractor.register(requireAl());
|
|
215250
|
-
refractor.register(requireAntlr4());
|
|
215251
|
-
refractor.register(requireApacheconf());
|
|
215252
|
-
refractor.register(requireApex());
|
|
215253
|
-
refractor.register(requireApl());
|
|
215254
|
-
refractor.register(requireApplescript());
|
|
215255
|
-
refractor.register(requireAql());
|
|
215256
|
-
refractor.register(requireArduino());
|
|
215257
|
-
refractor.register(requireArff());
|
|
215258
|
-
refractor.register(requireAsciidoc());
|
|
215259
|
-
refractor.register(requireAsm6502());
|
|
215260
|
-
refractor.register(requireAsmatmel());
|
|
215261
|
-
refractor.register(requireAspnet());
|
|
215262
|
-
refractor.register(requireAutohotkey());
|
|
215263
|
-
refractor.register(requireAutoit());
|
|
215264
|
-
refractor.register(requireAvisynth());
|
|
215265
|
-
refractor.register(requireAvroIdl());
|
|
215266
|
-
refractor.register(requireBash());
|
|
215267
|
-
refractor.register(requireBasic());
|
|
215268
|
-
refractor.register(requireBatch());
|
|
215269
|
-
refractor.register(requireBbcode());
|
|
215270
|
-
refractor.register(requireBicep());
|
|
215271
|
-
refractor.register(requireBirb());
|
|
215272
|
-
refractor.register(requireBison());
|
|
215273
|
-
refractor.register(requireBnf());
|
|
215274
|
-
refractor.register(requireBrainfuck());
|
|
215275
|
-
refractor.register(requireBrightscript());
|
|
215276
|
-
refractor.register(requireBro());
|
|
215277
|
-
refractor.register(requireBsl());
|
|
215278
|
-
refractor.register(requireC());
|
|
215279
|
-
refractor.register(requireCfscript());
|
|
215280
|
-
refractor.register(requireChaiscript());
|
|
215281
|
-
refractor.register(requireCil());
|
|
215282
|
-
refractor.register(requireClojure());
|
|
215283
|
-
refractor.register(requireCmake());
|
|
215284
|
-
refractor.register(requireCobol());
|
|
215285
|
-
refractor.register(requireCoffeescript());
|
|
215286
|
-
refractor.register(requireConcurnas());
|
|
215287
|
-
refractor.register(requireCoq());
|
|
215288
|
-
refractor.register(requireCpp());
|
|
215289
|
-
refractor.register(requireCrystal());
|
|
215290
|
-
refractor.register(requireCsharp());
|
|
215291
|
-
refractor.register(requireCshtml());
|
|
215292
|
-
refractor.register(requireCsp());
|
|
215293
|
-
refractor.register(requireCssExtras());
|
|
215294
|
-
refractor.register(requireCsv());
|
|
215295
|
-
refractor.register(requireCypher());
|
|
215296
|
-
refractor.register(requireD());
|
|
215297
|
-
refractor.register(requireDart());
|
|
215298
|
-
refractor.register(requireDataweave());
|
|
215299
|
-
refractor.register(requireDax());
|
|
215300
|
-
refractor.register(requireDhall());
|
|
215301
|
-
refractor.register(requireDiff());
|
|
215302
|
-
refractor.register(requireDjango());
|
|
215303
|
-
refractor.register(requireDnsZoneFile());
|
|
215304
|
-
refractor.register(requireDocker());
|
|
215305
|
-
refractor.register(requireDot());
|
|
215306
|
-
refractor.register(requireEbnf());
|
|
215307
|
-
refractor.register(requireEditorconfig());
|
|
215308
|
-
refractor.register(requireEiffel());
|
|
215309
|
-
refractor.register(requireEjs());
|
|
215310
|
-
refractor.register(requireElixir());
|
|
215311
|
-
refractor.register(requireElm());
|
|
215312
|
-
refractor.register(requireErb());
|
|
215313
|
-
refractor.register(requireErlang());
|
|
215314
|
-
refractor.register(requireEtlua());
|
|
215315
|
-
refractor.register(requireExcelFormula());
|
|
215316
|
-
refractor.register(requireFactor());
|
|
215317
|
-
refractor.register(require_false());
|
|
215318
|
-
refractor.register(requireFirestoreSecurityRules());
|
|
215319
|
-
refractor.register(requireFlow());
|
|
215320
|
-
refractor.register(requireFortran());
|
|
215321
|
-
refractor.register(requireFsharp());
|
|
215322
|
-
refractor.register(requireFtl());
|
|
215323
|
-
refractor.register(requireGap());
|
|
215324
|
-
refractor.register(requireGcode());
|
|
215325
|
-
refractor.register(requireGdscript());
|
|
215326
|
-
refractor.register(requireGedcom());
|
|
215327
|
-
refractor.register(requireGherkin());
|
|
215328
|
-
refractor.register(requireGit());
|
|
215329
|
-
refractor.register(requireGlsl());
|
|
215330
|
-
refractor.register(requireGml());
|
|
215331
|
-
refractor.register(requireGn());
|
|
215332
|
-
refractor.register(requireGoModule());
|
|
215333
|
-
refractor.register(requireGo());
|
|
215334
|
-
refractor.register(requireGraphql());
|
|
215335
|
-
refractor.register(requireGroovy());
|
|
215336
|
-
refractor.register(requireHaml());
|
|
215337
|
-
refractor.register(requireHandlebars());
|
|
215338
|
-
refractor.register(requireHaskell());
|
|
215339
|
-
refractor.register(requireHaxe());
|
|
215340
|
-
refractor.register(requireHcl());
|
|
215341
|
-
refractor.register(requireHlsl());
|
|
215342
|
-
refractor.register(requireHoon());
|
|
215343
|
-
refractor.register(requireHpkp());
|
|
215344
|
-
refractor.register(requireHsts());
|
|
215345
|
-
refractor.register(requireHttp());
|
|
215346
|
-
refractor.register(requireIchigojam());
|
|
215347
|
-
refractor.register(requireIcon());
|
|
215348
|
-
refractor.register(requireIcuMessageFormat());
|
|
215349
|
-
refractor.register(requireIdris());
|
|
215350
|
-
refractor.register(requireIecst());
|
|
215351
|
-
refractor.register(requireIgnore());
|
|
215352
|
-
refractor.register(requireInform7());
|
|
215353
|
-
refractor.register(requireIni());
|
|
215354
|
-
refractor.register(requireIo());
|
|
215355
|
-
refractor.register(requireJ());
|
|
215356
|
-
refractor.register(requireJava());
|
|
215357
|
-
refractor.register(requireJavadoc());
|
|
215358
|
-
refractor.register(requireJavadoclike());
|
|
215359
|
-
refractor.register(requireJavastacktrace());
|
|
215360
|
-
refractor.register(requireJexl());
|
|
215361
|
-
refractor.register(requireJolie());
|
|
215362
|
-
refractor.register(requireJq());
|
|
215363
|
-
refractor.register(requireJsExtras());
|
|
215364
|
-
refractor.register(requireJsTemplates());
|
|
215365
|
-
refractor.register(requireJsdoc());
|
|
215366
|
-
refractor.register(requireJson());
|
|
215367
|
-
refractor.register(requireJson5());
|
|
215368
|
-
refractor.register(requireJsonp());
|
|
215369
|
-
refractor.register(requireJsstacktrace());
|
|
215370
|
-
refractor.register(requireJsx());
|
|
215371
|
-
refractor.register(requireJulia());
|
|
215372
|
-
refractor.register(requireKeepalived());
|
|
215373
|
-
refractor.register(requireKeyman());
|
|
215374
|
-
refractor.register(requireKotlin());
|
|
215375
|
-
refractor.register(requireKumir());
|
|
215376
|
-
refractor.register(requireKusto());
|
|
215377
|
-
refractor.register(requireLatex());
|
|
215378
|
-
refractor.register(requireLatte());
|
|
215379
|
-
refractor.register(requireLess());
|
|
215380
|
-
refractor.register(requireLilypond());
|
|
215381
|
-
refractor.register(requireLiquid());
|
|
215382
|
-
refractor.register(requireLisp());
|
|
215383
|
-
refractor.register(requireLivescript());
|
|
215384
|
-
refractor.register(requireLlvm());
|
|
215385
|
-
refractor.register(requireLog());
|
|
215386
|
-
refractor.register(requireLolcode());
|
|
215387
|
-
refractor.register(requireLua());
|
|
215388
|
-
refractor.register(requireMagma());
|
|
215389
|
-
refractor.register(requireMakefile());
|
|
215390
|
-
refractor.register(requireMarkdown());
|
|
215391
|
-
refractor.register(requireMarkupTemplating());
|
|
215392
|
-
refractor.register(requireMatlab());
|
|
215393
|
-
refractor.register(requireMaxscript());
|
|
215394
|
-
refractor.register(requireMel());
|
|
215395
|
-
refractor.register(requireMermaid());
|
|
215396
|
-
refractor.register(requireMizar());
|
|
215397
|
-
refractor.register(requireMongodb());
|
|
215398
|
-
refractor.register(requireMonkey());
|
|
215399
|
-
refractor.register(requireMoonscript());
|
|
215400
|
-
refractor.register(requireN1ql());
|
|
215401
|
-
refractor.register(requireN4js());
|
|
215402
|
-
refractor.register(requireNand2tetrisHdl());
|
|
215403
|
-
refractor.register(requireNaniscript());
|
|
215404
|
-
refractor.register(requireNasm());
|
|
215405
|
-
refractor.register(requireNeon());
|
|
215406
|
-
refractor.register(requireNevod());
|
|
215407
|
-
refractor.register(requireNginx());
|
|
215408
|
-
refractor.register(requireNim());
|
|
215409
|
-
refractor.register(requireNix());
|
|
215410
|
-
refractor.register(requireNsis());
|
|
215411
|
-
refractor.register(requireObjectivec());
|
|
215412
|
-
refractor.register(requireOcaml());
|
|
215413
|
-
refractor.register(requireOpencl());
|
|
215414
|
-
refractor.register(requireOpenqasm());
|
|
215415
|
-
refractor.register(requireOz());
|
|
215416
|
-
refractor.register(requireParigp());
|
|
215417
|
-
refractor.register(requireParser());
|
|
215418
|
-
refractor.register(requirePascal());
|
|
215419
|
-
refractor.register(requirePascaligo());
|
|
215420
|
-
refractor.register(requirePcaxis());
|
|
215421
|
-
refractor.register(requirePeoplecode());
|
|
215422
|
-
refractor.register(requirePerl());
|
|
215423
|
-
refractor.register(requirePhpExtras());
|
|
215424
|
-
refractor.register(requirePhp());
|
|
215425
|
-
refractor.register(requirePhpdoc());
|
|
215426
|
-
refractor.register(requirePlsql());
|
|
215427
|
-
refractor.register(requirePowerquery());
|
|
215428
|
-
refractor.register(requirePowershell());
|
|
215429
|
-
refractor.register(requireProcessing());
|
|
215430
|
-
refractor.register(requireProlog());
|
|
215431
|
-
refractor.register(requirePromql());
|
|
215432
|
-
refractor.register(requireProperties());
|
|
215433
|
-
refractor.register(requireProtobuf());
|
|
215434
|
-
refractor.register(requirePsl());
|
|
215435
|
-
refractor.register(requirePug());
|
|
215436
|
-
refractor.register(requirePuppet());
|
|
215437
|
-
refractor.register(requirePure());
|
|
215438
|
-
refractor.register(requirePurebasic());
|
|
215439
|
-
refractor.register(requirePurescript());
|
|
215440
|
-
refractor.register(requirePython());
|
|
215441
|
-
refractor.register(requireQ());
|
|
215442
|
-
refractor.register(requireQml());
|
|
215443
|
-
refractor.register(requireQore());
|
|
215444
|
-
refractor.register(requireQsharp());
|
|
215445
|
-
refractor.register(requireR());
|
|
215446
|
-
refractor.register(requireRacket());
|
|
215447
|
-
refractor.register(requireReason());
|
|
215448
|
-
refractor.register(requireRegex());
|
|
215449
|
-
refractor.register(requireRego());
|
|
215450
|
-
refractor.register(requireRenpy());
|
|
215451
|
-
refractor.register(requireRest());
|
|
215452
|
-
refractor.register(requireRip());
|
|
215453
|
-
refractor.register(requireRoboconf());
|
|
215454
|
-
refractor.register(requireRobotframework());
|
|
215455
|
-
refractor.register(requireRuby());
|
|
215456
|
-
refractor.register(requireRust());
|
|
215457
|
-
refractor.register(requireSas());
|
|
215458
|
-
refractor.register(requireSass());
|
|
215459
|
-
refractor.register(requireScala());
|
|
215460
|
-
refractor.register(requireScheme());
|
|
215461
|
-
refractor.register(requireScss());
|
|
215462
|
-
refractor.register(requireShellSession());
|
|
215463
|
-
refractor.register(requireSmali());
|
|
215464
|
-
refractor.register(requireSmalltalk());
|
|
215465
|
-
refractor.register(requireSmarty());
|
|
215466
|
-
refractor.register(requireSml());
|
|
215467
|
-
refractor.register(requireSolidity());
|
|
215468
|
-
refractor.register(requireSolutionFile());
|
|
215469
|
-
refractor.register(requireSoy());
|
|
215470
|
-
refractor.register(requireSparql());
|
|
215471
|
-
refractor.register(requireSplunkSpl());
|
|
215472
|
-
refractor.register(requireSqf());
|
|
215473
|
-
refractor.register(requireSql());
|
|
215474
|
-
refractor.register(requireSquirrel());
|
|
215475
|
-
refractor.register(requireStan());
|
|
215476
|
-
refractor.register(requireStylus());
|
|
215477
|
-
refractor.register(requireSwift());
|
|
215478
|
-
refractor.register(requireSystemd());
|
|
215479
|
-
refractor.register(requireT4Cs());
|
|
215480
|
-
refractor.register(requireT4Templating());
|
|
215481
|
-
refractor.register(requireT4Vb());
|
|
215482
|
-
refractor.register(requireTap());
|
|
215483
|
-
refractor.register(requireTcl());
|
|
215484
|
-
refractor.register(requireTextile());
|
|
215485
|
-
refractor.register(requireToml());
|
|
215486
|
-
refractor.register(requireTremor());
|
|
215487
|
-
refractor.register(requireTsx());
|
|
215488
|
-
refractor.register(requireTt2());
|
|
215489
|
-
refractor.register(requireTurtle());
|
|
215490
|
-
refractor.register(requireTwig());
|
|
215491
|
-
refractor.register(requireTypescript());
|
|
215492
|
-
refractor.register(requireTyposcript());
|
|
215493
|
-
refractor.register(requireUnrealscript());
|
|
215494
|
-
refractor.register(requireUorazor());
|
|
215495
|
-
refractor.register(requireUri());
|
|
215496
|
-
refractor.register(requireV());
|
|
215497
|
-
refractor.register(requireVala());
|
|
215498
|
-
refractor.register(requireVbnet());
|
|
215499
|
-
refractor.register(requireVelocity());
|
|
215500
|
-
refractor.register(requireVerilog());
|
|
215501
|
-
refractor.register(requireVhdl());
|
|
215502
|
-
refractor.register(requireVim());
|
|
215503
|
-
refractor.register(requireVisualBasic());
|
|
215504
|
-
refractor.register(requireWarpscript());
|
|
215505
|
-
refractor.register(requireWasm());
|
|
215506
|
-
refractor.register(requireWebIdl());
|
|
215507
|
-
refractor.register(requireWiki());
|
|
215508
|
-
refractor.register(requireWolfram());
|
|
215509
|
-
refractor.register(requireWren());
|
|
215510
|
-
refractor.register(requireXeora());
|
|
215511
|
-
refractor.register(requireXmlDoc());
|
|
215512
|
-
refractor.register(requireXojo());
|
|
215513
|
-
refractor.register(requireXquery());
|
|
215514
|
-
refractor.register(requireYaml());
|
|
215515
|
-
refractor.register(requireYang());
|
|
215516
|
-
refractor.register(requireZig());
|
|
215517
|
-
|
|
215518
|
-
var refractor
|
|
215519
|
-
|
|
215520
|
-
var highlighter = highlight$1(refractor
|
|
215204
|
+
var refractor$1 = core;
|
|
215205
|
+
|
|
215206
|
+
var refractor_1 = refractor$1;
|
|
215207
|
+
|
|
215208
|
+
refractor$1.register(requireAbap());
|
|
215209
|
+
refractor$1.register(requireAbnf());
|
|
215210
|
+
refractor$1.register(requireActionscript());
|
|
215211
|
+
refractor$1.register(requireAda());
|
|
215212
|
+
refractor$1.register(requireAgda());
|
|
215213
|
+
refractor$1.register(requireAl());
|
|
215214
|
+
refractor$1.register(requireAntlr4());
|
|
215215
|
+
refractor$1.register(requireApacheconf());
|
|
215216
|
+
refractor$1.register(requireApex());
|
|
215217
|
+
refractor$1.register(requireApl());
|
|
215218
|
+
refractor$1.register(requireApplescript());
|
|
215219
|
+
refractor$1.register(requireAql());
|
|
215220
|
+
refractor$1.register(requireArduino());
|
|
215221
|
+
refractor$1.register(requireArff());
|
|
215222
|
+
refractor$1.register(requireAsciidoc());
|
|
215223
|
+
refractor$1.register(requireAsm6502());
|
|
215224
|
+
refractor$1.register(requireAsmatmel());
|
|
215225
|
+
refractor$1.register(requireAspnet());
|
|
215226
|
+
refractor$1.register(requireAutohotkey());
|
|
215227
|
+
refractor$1.register(requireAutoit());
|
|
215228
|
+
refractor$1.register(requireAvisynth());
|
|
215229
|
+
refractor$1.register(requireAvroIdl());
|
|
215230
|
+
refractor$1.register(requireBash());
|
|
215231
|
+
refractor$1.register(requireBasic());
|
|
215232
|
+
refractor$1.register(requireBatch());
|
|
215233
|
+
refractor$1.register(requireBbcode());
|
|
215234
|
+
refractor$1.register(requireBicep());
|
|
215235
|
+
refractor$1.register(requireBirb());
|
|
215236
|
+
refractor$1.register(requireBison());
|
|
215237
|
+
refractor$1.register(requireBnf());
|
|
215238
|
+
refractor$1.register(requireBrainfuck());
|
|
215239
|
+
refractor$1.register(requireBrightscript());
|
|
215240
|
+
refractor$1.register(requireBro());
|
|
215241
|
+
refractor$1.register(requireBsl());
|
|
215242
|
+
refractor$1.register(requireC());
|
|
215243
|
+
refractor$1.register(requireCfscript());
|
|
215244
|
+
refractor$1.register(requireChaiscript());
|
|
215245
|
+
refractor$1.register(requireCil());
|
|
215246
|
+
refractor$1.register(requireClojure());
|
|
215247
|
+
refractor$1.register(requireCmake());
|
|
215248
|
+
refractor$1.register(requireCobol());
|
|
215249
|
+
refractor$1.register(requireCoffeescript());
|
|
215250
|
+
refractor$1.register(requireConcurnas());
|
|
215251
|
+
refractor$1.register(requireCoq());
|
|
215252
|
+
refractor$1.register(requireCpp());
|
|
215253
|
+
refractor$1.register(requireCrystal());
|
|
215254
|
+
refractor$1.register(requireCsharp());
|
|
215255
|
+
refractor$1.register(requireCshtml());
|
|
215256
|
+
refractor$1.register(requireCsp());
|
|
215257
|
+
refractor$1.register(requireCssExtras());
|
|
215258
|
+
refractor$1.register(requireCsv());
|
|
215259
|
+
refractor$1.register(requireCypher());
|
|
215260
|
+
refractor$1.register(requireD());
|
|
215261
|
+
refractor$1.register(requireDart());
|
|
215262
|
+
refractor$1.register(requireDataweave());
|
|
215263
|
+
refractor$1.register(requireDax());
|
|
215264
|
+
refractor$1.register(requireDhall());
|
|
215265
|
+
refractor$1.register(requireDiff());
|
|
215266
|
+
refractor$1.register(requireDjango());
|
|
215267
|
+
refractor$1.register(requireDnsZoneFile());
|
|
215268
|
+
refractor$1.register(requireDocker());
|
|
215269
|
+
refractor$1.register(requireDot());
|
|
215270
|
+
refractor$1.register(requireEbnf());
|
|
215271
|
+
refractor$1.register(requireEditorconfig());
|
|
215272
|
+
refractor$1.register(requireEiffel());
|
|
215273
|
+
refractor$1.register(requireEjs());
|
|
215274
|
+
refractor$1.register(requireElixir());
|
|
215275
|
+
refractor$1.register(requireElm());
|
|
215276
|
+
refractor$1.register(requireErb());
|
|
215277
|
+
refractor$1.register(requireErlang());
|
|
215278
|
+
refractor$1.register(requireEtlua());
|
|
215279
|
+
refractor$1.register(requireExcelFormula());
|
|
215280
|
+
refractor$1.register(requireFactor());
|
|
215281
|
+
refractor$1.register(require_false());
|
|
215282
|
+
refractor$1.register(requireFirestoreSecurityRules());
|
|
215283
|
+
refractor$1.register(requireFlow());
|
|
215284
|
+
refractor$1.register(requireFortran());
|
|
215285
|
+
refractor$1.register(requireFsharp());
|
|
215286
|
+
refractor$1.register(requireFtl());
|
|
215287
|
+
refractor$1.register(requireGap());
|
|
215288
|
+
refractor$1.register(requireGcode());
|
|
215289
|
+
refractor$1.register(requireGdscript());
|
|
215290
|
+
refractor$1.register(requireGedcom());
|
|
215291
|
+
refractor$1.register(requireGherkin());
|
|
215292
|
+
refractor$1.register(requireGit());
|
|
215293
|
+
refractor$1.register(requireGlsl());
|
|
215294
|
+
refractor$1.register(requireGml());
|
|
215295
|
+
refractor$1.register(requireGn());
|
|
215296
|
+
refractor$1.register(requireGoModule());
|
|
215297
|
+
refractor$1.register(requireGo());
|
|
215298
|
+
refractor$1.register(requireGraphql());
|
|
215299
|
+
refractor$1.register(requireGroovy());
|
|
215300
|
+
refractor$1.register(requireHaml());
|
|
215301
|
+
refractor$1.register(requireHandlebars());
|
|
215302
|
+
refractor$1.register(requireHaskell());
|
|
215303
|
+
refractor$1.register(requireHaxe());
|
|
215304
|
+
refractor$1.register(requireHcl());
|
|
215305
|
+
refractor$1.register(requireHlsl());
|
|
215306
|
+
refractor$1.register(requireHoon());
|
|
215307
|
+
refractor$1.register(requireHpkp());
|
|
215308
|
+
refractor$1.register(requireHsts());
|
|
215309
|
+
refractor$1.register(requireHttp());
|
|
215310
|
+
refractor$1.register(requireIchigojam());
|
|
215311
|
+
refractor$1.register(requireIcon());
|
|
215312
|
+
refractor$1.register(requireIcuMessageFormat());
|
|
215313
|
+
refractor$1.register(requireIdris());
|
|
215314
|
+
refractor$1.register(requireIecst());
|
|
215315
|
+
refractor$1.register(requireIgnore());
|
|
215316
|
+
refractor$1.register(requireInform7());
|
|
215317
|
+
refractor$1.register(requireIni());
|
|
215318
|
+
refractor$1.register(requireIo());
|
|
215319
|
+
refractor$1.register(requireJ());
|
|
215320
|
+
refractor$1.register(requireJava());
|
|
215321
|
+
refractor$1.register(requireJavadoc());
|
|
215322
|
+
refractor$1.register(requireJavadoclike());
|
|
215323
|
+
refractor$1.register(requireJavastacktrace());
|
|
215324
|
+
refractor$1.register(requireJexl());
|
|
215325
|
+
refractor$1.register(requireJolie());
|
|
215326
|
+
refractor$1.register(requireJq());
|
|
215327
|
+
refractor$1.register(requireJsExtras());
|
|
215328
|
+
refractor$1.register(requireJsTemplates());
|
|
215329
|
+
refractor$1.register(requireJsdoc());
|
|
215330
|
+
refractor$1.register(requireJson());
|
|
215331
|
+
refractor$1.register(requireJson5());
|
|
215332
|
+
refractor$1.register(requireJsonp());
|
|
215333
|
+
refractor$1.register(requireJsstacktrace());
|
|
215334
|
+
refractor$1.register(requireJsx());
|
|
215335
|
+
refractor$1.register(requireJulia());
|
|
215336
|
+
refractor$1.register(requireKeepalived());
|
|
215337
|
+
refractor$1.register(requireKeyman());
|
|
215338
|
+
refractor$1.register(requireKotlin());
|
|
215339
|
+
refractor$1.register(requireKumir());
|
|
215340
|
+
refractor$1.register(requireKusto());
|
|
215341
|
+
refractor$1.register(requireLatex());
|
|
215342
|
+
refractor$1.register(requireLatte());
|
|
215343
|
+
refractor$1.register(requireLess());
|
|
215344
|
+
refractor$1.register(requireLilypond());
|
|
215345
|
+
refractor$1.register(requireLiquid());
|
|
215346
|
+
refractor$1.register(requireLisp());
|
|
215347
|
+
refractor$1.register(requireLivescript());
|
|
215348
|
+
refractor$1.register(requireLlvm());
|
|
215349
|
+
refractor$1.register(requireLog());
|
|
215350
|
+
refractor$1.register(requireLolcode());
|
|
215351
|
+
refractor$1.register(requireLua());
|
|
215352
|
+
refractor$1.register(requireMagma());
|
|
215353
|
+
refractor$1.register(requireMakefile());
|
|
215354
|
+
refractor$1.register(requireMarkdown());
|
|
215355
|
+
refractor$1.register(requireMarkupTemplating());
|
|
215356
|
+
refractor$1.register(requireMatlab());
|
|
215357
|
+
refractor$1.register(requireMaxscript());
|
|
215358
|
+
refractor$1.register(requireMel());
|
|
215359
|
+
refractor$1.register(requireMermaid());
|
|
215360
|
+
refractor$1.register(requireMizar());
|
|
215361
|
+
refractor$1.register(requireMongodb());
|
|
215362
|
+
refractor$1.register(requireMonkey());
|
|
215363
|
+
refractor$1.register(requireMoonscript());
|
|
215364
|
+
refractor$1.register(requireN1ql());
|
|
215365
|
+
refractor$1.register(requireN4js());
|
|
215366
|
+
refractor$1.register(requireNand2tetrisHdl());
|
|
215367
|
+
refractor$1.register(requireNaniscript());
|
|
215368
|
+
refractor$1.register(requireNasm());
|
|
215369
|
+
refractor$1.register(requireNeon());
|
|
215370
|
+
refractor$1.register(requireNevod());
|
|
215371
|
+
refractor$1.register(requireNginx());
|
|
215372
|
+
refractor$1.register(requireNim());
|
|
215373
|
+
refractor$1.register(requireNix());
|
|
215374
|
+
refractor$1.register(requireNsis());
|
|
215375
|
+
refractor$1.register(requireObjectivec());
|
|
215376
|
+
refractor$1.register(requireOcaml());
|
|
215377
|
+
refractor$1.register(requireOpencl());
|
|
215378
|
+
refractor$1.register(requireOpenqasm());
|
|
215379
|
+
refractor$1.register(requireOz());
|
|
215380
|
+
refractor$1.register(requireParigp());
|
|
215381
|
+
refractor$1.register(requireParser());
|
|
215382
|
+
refractor$1.register(requirePascal());
|
|
215383
|
+
refractor$1.register(requirePascaligo());
|
|
215384
|
+
refractor$1.register(requirePcaxis());
|
|
215385
|
+
refractor$1.register(requirePeoplecode());
|
|
215386
|
+
refractor$1.register(requirePerl());
|
|
215387
|
+
refractor$1.register(requirePhpExtras());
|
|
215388
|
+
refractor$1.register(requirePhp());
|
|
215389
|
+
refractor$1.register(requirePhpdoc());
|
|
215390
|
+
refractor$1.register(requirePlsql());
|
|
215391
|
+
refractor$1.register(requirePowerquery());
|
|
215392
|
+
refractor$1.register(requirePowershell());
|
|
215393
|
+
refractor$1.register(requireProcessing());
|
|
215394
|
+
refractor$1.register(requireProlog());
|
|
215395
|
+
refractor$1.register(requirePromql());
|
|
215396
|
+
refractor$1.register(requireProperties());
|
|
215397
|
+
refractor$1.register(requireProtobuf());
|
|
215398
|
+
refractor$1.register(requirePsl());
|
|
215399
|
+
refractor$1.register(requirePug());
|
|
215400
|
+
refractor$1.register(requirePuppet());
|
|
215401
|
+
refractor$1.register(requirePure());
|
|
215402
|
+
refractor$1.register(requirePurebasic());
|
|
215403
|
+
refractor$1.register(requirePurescript());
|
|
215404
|
+
refractor$1.register(requirePython());
|
|
215405
|
+
refractor$1.register(requireQ());
|
|
215406
|
+
refractor$1.register(requireQml());
|
|
215407
|
+
refractor$1.register(requireQore());
|
|
215408
|
+
refractor$1.register(requireQsharp());
|
|
215409
|
+
refractor$1.register(requireR());
|
|
215410
|
+
refractor$1.register(requireRacket());
|
|
215411
|
+
refractor$1.register(requireReason());
|
|
215412
|
+
refractor$1.register(requireRegex());
|
|
215413
|
+
refractor$1.register(requireRego());
|
|
215414
|
+
refractor$1.register(requireRenpy());
|
|
215415
|
+
refractor$1.register(requireRest());
|
|
215416
|
+
refractor$1.register(requireRip());
|
|
215417
|
+
refractor$1.register(requireRoboconf());
|
|
215418
|
+
refractor$1.register(requireRobotframework());
|
|
215419
|
+
refractor$1.register(requireRuby());
|
|
215420
|
+
refractor$1.register(requireRust());
|
|
215421
|
+
refractor$1.register(requireSas());
|
|
215422
|
+
refractor$1.register(requireSass());
|
|
215423
|
+
refractor$1.register(requireScala());
|
|
215424
|
+
refractor$1.register(requireScheme());
|
|
215425
|
+
refractor$1.register(requireScss());
|
|
215426
|
+
refractor$1.register(requireShellSession());
|
|
215427
|
+
refractor$1.register(requireSmali());
|
|
215428
|
+
refractor$1.register(requireSmalltalk());
|
|
215429
|
+
refractor$1.register(requireSmarty());
|
|
215430
|
+
refractor$1.register(requireSml());
|
|
215431
|
+
refractor$1.register(requireSolidity());
|
|
215432
|
+
refractor$1.register(requireSolutionFile());
|
|
215433
|
+
refractor$1.register(requireSoy());
|
|
215434
|
+
refractor$1.register(requireSparql());
|
|
215435
|
+
refractor$1.register(requireSplunkSpl());
|
|
215436
|
+
refractor$1.register(requireSqf());
|
|
215437
|
+
refractor$1.register(requireSql());
|
|
215438
|
+
refractor$1.register(requireSquirrel());
|
|
215439
|
+
refractor$1.register(requireStan());
|
|
215440
|
+
refractor$1.register(requireStylus());
|
|
215441
|
+
refractor$1.register(requireSwift());
|
|
215442
|
+
refractor$1.register(requireSystemd());
|
|
215443
|
+
refractor$1.register(requireT4Cs());
|
|
215444
|
+
refractor$1.register(requireT4Templating());
|
|
215445
|
+
refractor$1.register(requireT4Vb());
|
|
215446
|
+
refractor$1.register(requireTap());
|
|
215447
|
+
refractor$1.register(requireTcl());
|
|
215448
|
+
refractor$1.register(requireTextile());
|
|
215449
|
+
refractor$1.register(requireToml());
|
|
215450
|
+
refractor$1.register(requireTremor());
|
|
215451
|
+
refractor$1.register(requireTsx());
|
|
215452
|
+
refractor$1.register(requireTt2());
|
|
215453
|
+
refractor$1.register(requireTurtle());
|
|
215454
|
+
refractor$1.register(requireTwig());
|
|
215455
|
+
refractor$1.register(requireTypescript());
|
|
215456
|
+
refractor$1.register(requireTyposcript());
|
|
215457
|
+
refractor$1.register(requireUnrealscript());
|
|
215458
|
+
refractor$1.register(requireUorazor());
|
|
215459
|
+
refractor$1.register(requireUri());
|
|
215460
|
+
refractor$1.register(requireV());
|
|
215461
|
+
refractor$1.register(requireVala());
|
|
215462
|
+
refractor$1.register(requireVbnet());
|
|
215463
|
+
refractor$1.register(requireVelocity());
|
|
215464
|
+
refractor$1.register(requireVerilog());
|
|
215465
|
+
refractor$1.register(requireVhdl());
|
|
215466
|
+
refractor$1.register(requireVim());
|
|
215467
|
+
refractor$1.register(requireVisualBasic());
|
|
215468
|
+
refractor$1.register(requireWarpscript());
|
|
215469
|
+
refractor$1.register(requireWasm());
|
|
215470
|
+
refractor$1.register(requireWebIdl());
|
|
215471
|
+
refractor$1.register(requireWiki());
|
|
215472
|
+
refractor$1.register(requireWolfram());
|
|
215473
|
+
refractor$1.register(requireWren());
|
|
215474
|
+
refractor$1.register(requireXeora());
|
|
215475
|
+
refractor$1.register(requireXmlDoc());
|
|
215476
|
+
refractor$1.register(requireXojo());
|
|
215477
|
+
refractor$1.register(requireXquery());
|
|
215478
|
+
refractor$1.register(requireYaml());
|
|
215479
|
+
refractor$1.register(requireYang());
|
|
215480
|
+
refractor$1.register(requireZig());
|
|
215481
|
+
|
|
215482
|
+
var refractor = /*@__PURE__*/getDefaultExportFromCjs(refractor_1);
|
|
215483
|
+
|
|
215484
|
+
var highlighter = highlight$1(refractor, defaultStyle);
|
|
215521
215485
|
highlighter.supportedLanguages = supportedLanguages;
|
|
215522
215486
|
|
|
215523
215487
|
var syntaxHighlighter = {
|
|
@@ -218406,7 +218370,7 @@ const UserAvatar = ({ size = 32, containerClassName = '', enableGravatar = true,
|
|
|
218406
218370
|
const { userMetaData, userMetaDataLoading } = useUserMetadata();
|
|
218407
218371
|
const data = userMetaData;
|
|
218408
218372
|
const hasImage = !!((_a = data === null || data === void 0 ? void 0 : data.profile_image) === null || _a === void 0 ? void 0 : _a.has_image);
|
|
218409
|
-
return (jsx(Avatar, { className: containerClassName, children: userMetaDataLoading ? (jsx(Skeleton, { className: "h-8 w-8 rounded-full" })) : (jsxs(Fragment$1, { children: [hasImage ? (jsx(AvatarImage, { src: (_b = data === null || data === void 0 ? void 0 : data.profile_image) === null || _b === void 0 ? void 0 : _b.image_url_large, alt: (_c = data === null || data === void 0 ? void 0 : data.name) !== null && _c !== void 0 ? _c : '', className: "w-full" })) : enableGravatar ? (jsx(Gravatar
|
|
218373
|
+
return (jsx(Avatar, { className: containerClassName, children: userMetaDataLoading ? (jsx(Skeleton, { className: "h-8 w-8 rounded-full" })) : (jsxs(Fragment$1, { children: [hasImage ? (jsx(AvatarImage, { src: (_b = data === null || data === void 0 ? void 0 : data.profile_image) === null || _b === void 0 ? void 0 : _b.image_url_large, alt: (_c = data === null || data === void 0 ? void 0 : data.name) !== null && _c !== void 0 ? _c : '', className: "w-full" })) : enableGravatar ? (jsx(Gravatar, { className: "w-full", email: (_d = data === null || data === void 0 ? void 0 : data.email) !== null && _d !== void 0 ? _d : '', size: size })) : null, jsx(AvatarFallback, { className: cn(enableGravatar && !hasImage ? 'hidden' : ''), children: getInitials((data === null || data === void 0 ? void 0 : data.name) || (data === null || data === void 0 ? void 0 : data.username) || (data === null || data === void 0 ? void 0 : data.email) || '') })] })) }));
|
|
218410
218374
|
};
|
|
218411
218375
|
|
|
218412
218376
|
/**
|
|
@@ -219003,7 +218967,7 @@ const useProfileCredentials = ({ search = '', maxCredentials, }) => {
|
|
|
219003
218967
|
|
|
219004
218968
|
var duration$1 = {exports: {}};
|
|
219005
218969
|
|
|
219006
|
-
(function (module, exports) {
|
|
218970
|
+
(function (module, exports$1) {
|
|
219007
218971
|
!function(t,s){module.exports=s();}(commonjsGlobal,(function(){var t,s,n=1e3,i=6e4,e=36e5,r=864e5,o=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,u=31536e6,d=2628e6,a=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,h={years:u,months:d,days:r,hours:e,minutes:i,seconds:n,milliseconds:1,weeks:6048e5},c=function(t){return t instanceof g},f=function(t,s,n){return new g(t,n,s.$l)},m=function(t){return s.p(t)+"s"},l=function(t){return t<0},$=function(t){return l(t)?Math.ceil(t):Math.floor(t)},y=function(t){return Math.abs(t)},v=function(t,s){return t?l(t)?{negative:true,format:""+y(t)+s}:{negative:false,format:""+t+s}:{negative:false,format:""}},g=function(){function l(t,s,n){var i=this;if(this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),s)return f(t*h[m(s)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach((function(s){i.$d[m(s)]=t[s];})),this.calMilliseconds(),this;if("string"==typeof t){var e=t.match(a);if(e){var r=e.slice(2).map((function(t){return null!=t?Number(t):0}));return this.$d.years=r[0],this.$d.months=r[1],this.$d.weeks=r[2],this.$d.days=r[3],this.$d.hours=r[4],this.$d.minutes=r[5],this.$d.seconds=r[6],this.calMilliseconds(),this}}return this}var y=l.prototype;return y.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce((function(s,n){return s+(t.$d[n]||0)*h[n]}),0);},y.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=$(t/u),t%=u,this.$d.months=$(t/d),t%=d,this.$d.days=$(t/r),t%=r,this.$d.hours=$(t/e),t%=e,this.$d.minutes=$(t/i),t%=i,this.$d.seconds=$(t/n),t%=n,this.$d.milliseconds=t;},y.toISOString=function(){var t=v(this.$d.years,"Y"),s=v(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var i=v(n,"D"),e=v(this.$d.hours,"H"),r=v(this.$d.minutes,"M"),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var u=v(o,"S"),d=t.negative||s.negative||i.negative||e.negative||r.negative||u.negative,a=e.format||r.format||u.format?"T":"",h=(d?"-":"")+"P"+t.format+s.format+i.format+a+e.format+r.format+u.format;return "P"===h||"-P"===h?"P0D":h},y.toJSON=function(){return this.toISOString()},y.format=function(t){var n=t||"YYYY-MM-DDTHH:mm:ss",i={Y:this.$d.years,YY:s.s(this.$d.years,2,"0"),YYYY:s.s(this.$d.years,4,"0"),M:this.$d.months,MM:s.s(this.$d.months,2,"0"),D:this.$d.days,DD:s.s(this.$d.days,2,"0"),H:this.$d.hours,HH:s.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:s.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:s.s(this.$d.seconds,2,"0"),SSS:s.s(this.$d.milliseconds,3,"0")};return n.replace(o,(function(t,s){return s||String(i[t])}))},y.as=function(t){return this.$ms/h[m(t)]},y.get=function(t){var s=this.$ms,n=m(t);return "milliseconds"===n?s%=1e3:s="weeks"===n?$(s/h[n]):this.$d[n],s||0},y.add=function(t,s,n){var i;return i=s?t*h[m(s)]:c(t)?t.$ms:f(t,this).$ms,f(this.$ms+i*(n?-1:1),this)},y.subtract=function(t,s){return this.add(t,s,true)},y.locale=function(t){var s=this.clone();return s.$l=t,s},y.clone=function(){return f(this.$ms,this)},y.humanize=function(s){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!s)},y.valueOf=function(){return this.asMilliseconds()},y.milliseconds=function(){return this.get("milliseconds")},y.asMilliseconds=function(){return this.as("milliseconds")},y.seconds=function(){return this.get("seconds")},y.asSeconds=function(){return this.as("seconds")},y.minutes=function(){return this.get("minutes")},y.asMinutes=function(){return this.as("minutes")},y.hours=function(){return this.get("hours")},y.asHours=function(){return this.as("hours")},y.days=function(){return this.get("days")},y.asDays=function(){return this.as("days")},y.weeks=function(){return this.get("weeks")},y.asWeeks=function(){return this.as("weeks")},y.months=function(){return this.get("months")},y.asMonths=function(){return this.as("months")},y.years=function(){return this.get("years")},y.asYears=function(){return this.as("years")},l}(),p=function(t,s,n){return t.add(s.years()*n,"y").add(s.months()*n,"M").add(s.days()*n,"d").add(s.hours()*n,"h").add(s.minutes()*n,"m").add(s.seconds()*n,"s").add(s.milliseconds()*n,"ms")};return function(n,i,e){t=e,s=e().$utils(),e.duration=function(t,s){var n=e.locale();return f(t,{$l:n},s)},e.isDuration=c;var r=i.prototype.add,o=i.prototype.subtract;i.prototype.add=function(t,s){return c(t)?p(this,t,1):r.bind(this)(t,s)},i.prototype.subtract=function(t,s){return c(t)?p(this,t,-1):o.bind(this)(t,s)};}}));
|
|
219008
218972
|
} (duration$1));
|
|
219009
218973
|
|
|
@@ -221061,7 +221025,7 @@ const Footer = ({ menus = [], copyright, chatOpen = false, renderLink = defaultR
|
|
|
221061
221025
|
|
|
221062
221026
|
var reactPaginate = {exports: {}};
|
|
221063
221027
|
|
|
221064
|
-
(function (module, exports) {
|
|
221028
|
+
(function (module, exports$1) {
|
|
221065
221029
|
!function(e,a){module.exports=a(React__default);}(commonjsGlobal,(e=>(()=>{var a={703:(e,a,t)=>{var r=t(414);function n(){}function i(){}i.resetWarningCache=n,e.exports=function(){function e(e,a,t,n,i,s){if(s!==r){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function a(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:a,element:e,elementType:e,instanceOf:a,node:e,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:i,resetWarningCache:n};return t.PropTypes=t,t};},697:(e,a,t)=>{e.exports=t(703)();},414:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";},98:a=>{a.exports=e;}},t={};function r(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return a[e](i,i.exports,r),i.exports}r.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a}),a},r.d=(e,a)=>{for(var t in a)r.o(a,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:true,get:a[t]});},r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:true});};var n={};return (()=>{r.r(n),r.d(n,{default:()=>k});var e=r(98),a=r.n(e),t=r(697),i=r.n(t);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);}return e},s.apply(this,arguments)}var o=function(e){var t=e.pageClassName,r=e.pageLinkClassName,n=e.page,i=e.selected,o=e.activeClassName,l=e.activeLinkClassName,c=e.getEventListener,p=e.pageSelectedHandler,u=e.href,g=e.extraAriaContext,d=e.pageLabelBuilder,f=e.rel,b=e.ariaLabel||"Page "+n+(g?" "+g:""),v=null;return i&&(v="page",b=e.ariaLabel||"Page "+n+" is your current page",t=void 0!==t?t+" "+o:o,void 0!==r?void 0!==l&&(r=r+" "+l):r=l),a().createElement("li",{className:t},a().createElement("a",s({rel:f,role:u?void 0:"button",className:r,href:u,tabIndex:i?"-1":"0","aria-label":b,"aria-current":v,onKeyPress:p},c(p)),d(n)))};o.propTypes={pageSelectedHandler:i().func.isRequired,selected:i().bool.isRequired,pageClassName:i().string,pageLinkClassName:i().string,activeClassName:i().string,activeLinkClassName:i().string,extraAriaContext:i().string,href:i().string,ariaLabel:i().string,page:i().number.isRequired,getEventListener:i().func.isRequired,pageLabelBuilder:i().func.isRequired,rel:i().string};const l=o;function c(){return c=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);}return e},c.apply(this,arguments)}var p=function(e){var t=e.breakLabel,r=e.breakAriaLabel,n=e.breakClassName,i=e.breakLinkClassName,s=e.breakHandler,o=e.getEventListener,l=n||"break";return a().createElement("li",{className:l},a().createElement("a",c({className:i,role:"button",tabIndex:"0","aria-label":r,onKeyPress:s},o(s)),t))};p.propTypes={breakLabel:i().oneOfType([i().string,i().node]),breakAriaLabel:i().string,breakClassName:i().string,breakLinkClassName:i().string,breakHandler:i().func.isRequired,getEventListener:i().func.isRequired};const u=p;function g(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!=e?e:a}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);}return e},f.apply(this,arguments)}function b(e,a){for(var t=0;t<a.length;t++){var r=a[t];r.enumerable=r.enumerable||false,r.configurable=true,"value"in r&&(r.writable=true),Object.defineProperty(e,r.key,r);}}function v(e,a){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,a){return e.__proto__=a,e},v(e,a)}function h(e,a){if(a&&("object"===d(a)||"function"==typeof a))return a;if(void 0!==a)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function C(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:true,configurable:true,writable:true}):e[a]=t,e}var P=function(e){!function(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,writable:true,configurable:true}}),Object.defineProperty(e,"prototype",{writable:false}),a&&v(e,a);}(o,e);var t,r,n,i,s=(n=o,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if("function"==typeof Proxy)return true;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return false}}(),function(){var e,a=y(n);if(i){var t=y(this).constructor;e=Reflect.construct(a,arguments,t);}else e=a.apply(this,arguments);return h(this,e)});function o(e){var t,r;return function(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}(this,o),C(m(t=s.call(this,e)),"handlePreviousPage",(function(e){var a=t.state.selected;t.handleClick(e,null,a>0?a-1:void 0,{isPrevious:true});})),C(m(t),"handleNextPage",(function(e){var a=t.state.selected,r=t.props.pageCount;t.handleClick(e,null,a<r-1?a+1:void 0,{isNext:true});})),C(m(t),"handlePageSelected",(function(e,a){if(t.state.selected===e)return t.callActiveCallback(e),void t.handleClick(a,null,void 0,{isActive:true});t.handleClick(a,null,e);})),C(m(t),"handlePageChange",(function(e){t.state.selected!==e&&(t.setState({selected:e}),t.callCallback(e));})),C(m(t),"getEventListener",(function(e){return C({},t.props.eventListener,e)})),C(m(t),"handleClick",(function(e,a,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n.isPrevious,s=void 0!==i&&i,o=n.isNext,l=void 0!==o&&o,c=n.isBreak,p=void 0!==c&&c,u=n.isActive,g=void 0!==u&&u;e.preventDefault?e.preventDefault():e.returnValue=false;var d=t.state.selected,f=t.props.onClick,b=r;if(f){var v=f({index:a,selected:d,nextSelectedPage:r,event:e,isPrevious:s,isNext:l,isBreak:p,isActive:g});if(false===v)return;Number.isInteger(v)&&(b=v);} void 0!==b&&t.handlePageChange(b);})),C(m(t),"handleBreakClick",(function(e,a){var r=t.state.selected;t.handleClick(a,e,r<e?t.getForwardJump():t.getBackwardJump(),{isBreak:true});})),C(m(t),"callCallback",(function(e){ void 0!==t.props.onPageChange&&"function"==typeof t.props.onPageChange&&t.props.onPageChange({selected:e});})),C(m(t),"callActiveCallback",(function(e){ void 0!==t.props.onPageActive&&"function"==typeof t.props.onPageActive&&t.props.onPageActive({selected:e});})),C(m(t),"getElementPageRel",(function(e){var a=t.state.selected,r=t.props,n=r.nextPageRel,i=r.prevPageRel,s=r.selectedPageRel;return a-1===e?i:a===e?s:a+1===e?n:void 0})),C(m(t),"pagination",(function(){var e=[],r=t.props,n=r.pageRangeDisplayed,i=r.pageCount,s=r.marginPagesDisplayed,o=r.breakLabel,l=r.breakClassName,c=r.breakLinkClassName,p=r.breakAriaLabels,g=t.state.selected;if(i<=n)for(var d=0;d<i;d++)e.push(t.getPageElement(d));else {var f=n/2,b=n-f;g>i-n/2?f=n-(b=i-g):g<n/2&&(b=n-(f=g));var v,h,m=function(e){return t.getPageElement(e)},y=[];for(v=0;v<i;v++){var C=v+1;if(C<=s)y.push({type:"page",index:v,display:m(v)});else if(C>i-s)y.push({type:"page",index:v,display:m(v)});else if(v>=g-f&&v<=g+(0===g&&n>1?b-1:b))y.push({type:"page",index:v,display:m(v)});else if(o&&y.length>0&&y[y.length-1].display!==h&&(n>0||s>0)){var P=v<g?p.backward:p.forward;h=a().createElement(u,{key:v,breakAriaLabel:P,breakLabel:o,breakClassName:l,breakLinkClassName:c,breakHandler:t.handleBreakClick.bind(null,v),getEventListener:t.getEventListener}),y.push({type:"break",index:v,display:h});}}y.forEach((function(a,t){var r=a;"break"===a.type&&y[t-1]&&"page"===y[t-1].type&&y[t+1]&&"page"===y[t+1].type&&y[t+1].index-y[t-1].index<=2&&(r={type:"page",index:a.index,display:m(a.index)}),e.push(r.display);}));}return e})),void 0!==e.initialPage&&void 0!==e.forcePage&&console.warn("(react-paginate): Both initialPage (".concat(e.initialPage,") and forcePage (").concat(e.forcePage,") props are provided, which is discouraged.")+" Use exclusively forcePage prop for a controlled component.\nSee https://reactjs.org/docs/forms.html#controlled-components"),r=e.initialPage?e.initialPage:e.forcePage?e.forcePage:0,t.state={selected:r},t}return t=o,(r=[{key:"componentDidMount",value:function(){var e=this.props,a=e.initialPage,t=e.disableInitialCallback,r=e.extraAriaContext,n=e.pageCount,i=e.forcePage;void 0===a||t||this.callCallback(a),r&&console.warn("DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead."),Number.isInteger(n)||console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(n,"). Did you forget a Math.ceil()?")),void 0!==a&&a>n-1&&console.warn("(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (".concat(a," > ").concat(n-1,").")),void 0!==i&&i>n-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(i," > ").concat(n-1,")."));}},{key:"componentDidUpdate",value:function(e){ void 0!==this.props.forcePage&&this.props.forcePage!==e.forcePage&&(this.props.forcePage>this.props.pageCount-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(this.props.forcePage," > ").concat(this.props.pageCount-1,").")),this.setState({selected:this.props.forcePage})),Number.isInteger(e.pageCount)&&!Number.isInteger(this.props.pageCount)&&console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(this.props.pageCount,"). Did you forget a Math.ceil()?"));}},{key:"getForwardJump",value:function(){var e=this.state.selected,a=this.props,t=a.pageCount,r=e+a.pageRangeDisplayed;return r>=t?t-1:r}},{key:"getBackwardJump",value:function(){var e=this.state.selected-this.props.pageRangeDisplayed;return e<0?0:e}},{key:"getElementHref",value:function(e){var a=this.props,t=a.hrefBuilder,r=a.pageCount,n=a.hrefAllControls;if(t)return n||e>=0&&e<r?t(e+1,r,this.state.selected):void 0}},{key:"ariaLabelBuilder",value:function(e){var a=e===this.state.selected;if(this.props.ariaLabelBuilder&&e>=0&&e<this.props.pageCount){var t=this.props.ariaLabelBuilder(e+1,a);return this.props.extraAriaContext&&!a&&(t=t+" "+this.props.extraAriaContext),t}}},{key:"getPageElement",value:function(e){var t=this.state.selected,r=this.props,n=r.pageClassName,i=r.pageLinkClassName,s=r.activeClassName,o=r.activeLinkClassName,c=r.extraAriaContext,p=r.pageLabelBuilder;return a().createElement(l,{key:e,pageSelectedHandler:this.handlePageSelected.bind(null,e),selected:t===e,rel:this.getElementPageRel(e),pageClassName:n,pageLinkClassName:i,activeClassName:s,activeLinkClassName:o,extraAriaContext:c,href:this.getElementHref(e),ariaLabel:this.ariaLabelBuilder(e),page:e+1,pageLabelBuilder:p,getEventListener:this.getEventListener})}},{key:"render",value:function(){var e=this.props.renderOnZeroPageCount;if(0===this.props.pageCount&&void 0!==e)return e?e(this.props):e;var t=this.props,r=t.disabledClassName,n=t.disabledLinkClassName,i=t.pageCount,s=t.className,o=t.containerClassName,l=t.previousLabel,c=t.previousClassName,p=t.previousLinkClassName,u=t.previousAriaLabel,d=t.prevRel,b=t.nextLabel,v=t.nextClassName,h=t.nextLinkClassName,m=t.nextAriaLabel,y=t.nextRel,C=this.state.selected,P=0===C,k=C===i-1,x="".concat(g(c)).concat(P?" ".concat(g(r)):""),L="".concat(g(v)).concat(k?" ".concat(g(r)):""),N="".concat(g(p)).concat(P?" ".concat(g(n)):""),O="".concat(g(h)).concat(k?" ".concat(g(n)):""),R=P?"true":"false",E=k?"true":"false";return a().createElement("ul",{className:s||o,role:"navigation","aria-label":"Pagination"},a().createElement("li",{className:x},a().createElement("a",f({className:N,href:this.getElementHref(C-1),tabIndex:P?"-1":"0",role:"button",onKeyPress:this.handlePreviousPage,"aria-disabled":R,"aria-label":u,rel:d},this.getEventListener(this.handlePreviousPage)),l)),this.pagination(),a().createElement("li",{className:L},a().createElement("a",f({className:O,href:this.getElementHref(C+1),tabIndex:k?"-1":"0",role:"button",onKeyPress:this.handleNextPage,"aria-disabled":E,"aria-label":m,rel:y},this.getEventListener(this.handleNextPage)),b)))}}])&&b(t.prototype,r),Object.defineProperty(t,"prototype",{writable:false}),o}(e.Component);C(P,"propTypes",{pageCount:i().number.isRequired,pageRangeDisplayed:i().number,marginPagesDisplayed:i().number,previousLabel:i().node,previousAriaLabel:i().string,prevPageRel:i().string,prevRel:i().string,nextLabel:i().node,nextAriaLabel:i().string,nextPageRel:i().string,nextRel:i().string,breakLabel:i().oneOfType([i().string,i().node]),breakAriaLabels:i().shape({forward:i().string,backward:i().string}),hrefBuilder:i().func,hrefAllControls:i().bool,onPageChange:i().func,onPageActive:i().func,onClick:i().func,initialPage:i().number,forcePage:i().number,disableInitialCallback:i().bool,containerClassName:i().string,className:i().string,pageClassName:i().string,pageLinkClassName:i().string,pageLabelBuilder:i().func,activeClassName:i().string,activeLinkClassName:i().string,previousClassName:i().string,nextClassName:i().string,previousLinkClassName:i().string,nextLinkClassName:i().string,disabledClassName:i().string,disabledLinkClassName:i().string,breakClassName:i().string,breakLinkClassName:i().string,extraAriaContext:i().string,ariaLabelBuilder:i().func,eventListener:i().string,renderOnZeroPageCount:i().func,selectedPageRel:i().string}),C(P,"defaultProps",{pageRangeDisplayed:2,marginPagesDisplayed:3,activeClassName:"selected",previousLabel:"Previous",previousClassName:"previous",previousAriaLabel:"Previous page",prevPageRel:"prev",prevRel:"prev",nextLabel:"Next",nextClassName:"next",nextAriaLabel:"Next page",nextPageRel:"next",nextRel:"next",breakLabel:"...",breakAriaLabels:{forward:"Jump forward",backward:"Jump backward"},disabledClassName:"disabled",disableInitialCallback:false,pageLabelBuilder:function(e){return e},eventListener:"onClick",renderOnZeroPageCount:void 0,selectedPageRel:"canonical",hrefAllControls:false});const k=P;})(),n})()));
|
|
221066
221030
|
|
|
221067
221031
|
} (reactPaginate));
|
|
@@ -223144,13 +223108,13 @@ function Mql(query, values, forceStatic){
|
|
|
223144
223108
|
}
|
|
223145
223109
|
}
|
|
223146
223110
|
|
|
223147
|
-
function matchMedia(query, values, forceStatic){
|
|
223111
|
+
function matchMedia$1(query, values, forceStatic){
|
|
223148
223112
|
return new Mql(query, values, forceStatic);
|
|
223149
223113
|
}
|
|
223150
223114
|
|
|
223151
|
-
var matchmediaquery = matchMedia;
|
|
223115
|
+
var matchmediaquery = matchMedia$1;
|
|
223152
223116
|
|
|
223153
|
-
var matchMedia
|
|
223117
|
+
var matchMedia = /*@__PURE__*/getDefaultExportFromCjs(matchmediaquery);
|
|
223154
223118
|
|
|
223155
223119
|
/* eslint-disable no-var, prefer-template */
|
|
223156
223120
|
var uppercasePattern = /[A-Z]/g;
|
|
@@ -223323,7 +223287,7 @@ const useQuery = (settings) => {
|
|
|
223323
223287
|
return query;
|
|
223324
223288
|
};
|
|
223325
223289
|
const useMatchMedia = (query, device) => {
|
|
223326
|
-
const getMatchMedia = () => matchMedia
|
|
223290
|
+
const getMatchMedia = () => matchMedia(query, device || {}, !!device);
|
|
223327
223291
|
const [mq, setMq] = useState(getMatchMedia);
|
|
223328
223292
|
const isUpdate = useIsUpdate();
|
|
223329
223293
|
useEffect(() => {
|
|
@@ -225607,8 +225571,8 @@ function ResourceModal({ resource, isOpen, onClose }) {
|
|
|
225607
225571
|
|
|
225608
225572
|
var bundle = {exports: {}};
|
|
225609
225573
|
|
|
225610
|
-
(function (module, exports) {
|
|
225611
|
-
!function(e,t){t(exports,React__default);}(commonjsGlobal,(function(e,t){var o=function(){return o=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},o.apply(this,arguments)};function r(e,t,o){for(var r,n=0,i=t.length;n<i;n++)!r&&n in t||(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var n={clientId:"",developerKey:"",viewId:"DOCS",callbackFunction:function(){return null}},i={queue:{},injectorMap:{},scriptMap:{}};function c(e){var o=t.useState({loaded:false,error:false}),r=o[0],n=o[1];return t.useEffect((function(){var t,o,r,c,a;if((null===(t=i.injectorMap)||void 0===t?void 0:t[e])||(i.injectorMap[e]="init"),"loaded"!==i.injectorMap[e]){if("error"!==i.injectorMap[e]){var l=function(t){var o,r,n,c;t&&console.log("error loading the script"),null===(r=null===(o=i.queue)||void 0===o?void 0:o[e])||void 0===r||r.forEach((function(e){return e(t)})),t&&i.scriptMap[e]?(null===(c=null===(n=i.scriptMap)||void 0===n?void 0:n[e])||void 0===c||c.remove(),i.injectorMap[e]="error"):i.injectorMap[e]="loaded",delete i.scriptMap[e];},s=function(e){n({loaded:true,error:e});};return (null===(o=i.scriptMap)||void 0===o?void 0:o[e])||(i.scriptMap[e]=document.createElement("script"),i.scriptMap[e]&&(i.scriptMap[e].src=e,i.scriptMap[e].async=true,document.body.append(i.scriptMap[e]),i.scriptMap[e].addEventListener("load",(function(){return l(false)})),i.scriptMap[e].addEventListener("error",(function(){return l(true)})),i.injectorMap[e]="loading")),(null===(r=i.queue)||void 0===r?void 0:r[e])?null===(a=null===(c=i.queue)||void 0===c?void 0:c[e])||void 0===a||a.push(s):i.queue[e]=[s],function(){var t,o;i.scriptMap[e]&&(null===(t=i.scriptMap[e])||void 0===t||t.removeEventListener("load",(function(){return l(true)})),null===(o=i.scriptMap[e])||void 0===o||o.removeEventListener("error",(function(){return l(true)})));}}n({loaded:true,error:true});}else n({loaded:true,error:false});}),[e]),[r.loaded,r.error]}e.default=function(){var e,i=t.useState(),a=i[0],l=i[1],s=t.useState(n),u=s[0],d=s[1],p=c("https://apis.google.com/js/api.js"),f=p[0],v=p[1],g=c("https://accounts.google.com/gsi/client"),M=g[0],w=g[1],k=t.useState(false),y=k[0],b=k[1],h=t.useState(false),m=h[0],E=h[1],S=["https://www.googleapis.com/auth/drive.readonly"];t.useEffect((function(){!f||v||!M||w||m||j();}),[f,v,M,w,m]),t.useEffect((function(){y&&u.token&&f&&!v&&M&&!w&&m&&(I(u),b(false));}),[y,u.token,f,v,M,w,m]);var j=function(){window.gapi.load("auth"),window.gapi.load("picker",{callback:F});},F=function(){E(true);},I=function(t){var o=t.token,r=t.appId,n=void 0===r?"":r,i=t.supportDrives,c=void 0!==i&&i,a=t.developerKey,l=t.viewId,s=void 0===l?"DOCS":l,u=t.disabled,d=t.multiselect,p=t.setOrigin,f=t.showUploadView,v=void 0!==f&&f,g=t.showUploadFolders,M=t.setParentFolder,w=void 0===M?"":M,k=t.viewMimeTypes,y=t.customViews,b=t.locale,h=void 0===b?"en":b,m=t.setIncludeFolders,E=t.setSelectFolderEnabled,S=t.disableDefaultView,j=void 0!==S&&S,F=t.callbackFunction;if(u)return false;var I=new google.picker.DocsView(google.picker.ViewId[s]);k&&I.setMimeTypes(k),m&&I.setIncludeFolders(true),E&&I.setSelectFolderEnabled(true);var T=new google.picker.DocsUploadView;return k&&T.setMimeTypes(k),g&&T.setIncludeFolders(true),w&&T.setParent(w),w&&I.setParent(w),e=(new google.picker.PickerBuilder).setAppId(n).setOAuthToken(o).setDeveloperKey(a).setLocale(h).setCallback(F),p&&e.setOrigin(p),j||e.addView(I),y&&y.map((function(t){return e.addView(t)})),d&&e.enableFeature(google.picker.Feature.MULTISELECT_ENABLED),v&&e.addView(T),c&&e.enableFeature(google.picker.Feature.SUPPORT_DRIVES),e.build().setVisible(true),true};return [function(e){(d(e),e.token)||google.accounts.oauth2.initTokenClient({client_id:e.clientId,scope:(e.customScopes?r(r([],S,true),e.customScopes):S).join(" "),callback:function(t){l(t),I(o(o({},e),{token:t.access_token}));}}).requestAccessToken();if(e.token&&f&&!v&&m)return I(e)},a]},Object.defineProperty(e,"__esModule",{value:true});}));
|
|
225574
|
+
(function (module, exports$1) {
|
|
225575
|
+
!function(e,t){t(exports$1,React__default);}(commonjsGlobal,(function(e,t){var o=function(){return o=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},o.apply(this,arguments)};function r(e,t,o){for(var r,n=0,i=t.length;n<i;n++)!r&&n in t||(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var n={clientId:"",developerKey:"",viewId:"DOCS",callbackFunction:function(){return null}},i={queue:{},injectorMap:{},scriptMap:{}};function c(e){var o=t.useState({loaded:false,error:false}),r=o[0],n=o[1];return t.useEffect((function(){var t,o,r,c,a;if((null===(t=i.injectorMap)||void 0===t?void 0:t[e])||(i.injectorMap[e]="init"),"loaded"!==i.injectorMap[e]){if("error"!==i.injectorMap[e]){var l=function(t){var o,r,n,c;t&&console.log("error loading the script"),null===(r=null===(o=i.queue)||void 0===o?void 0:o[e])||void 0===r||r.forEach((function(e){return e(t)})),t&&i.scriptMap[e]?(null===(c=null===(n=i.scriptMap)||void 0===n?void 0:n[e])||void 0===c||c.remove(),i.injectorMap[e]="error"):i.injectorMap[e]="loaded",delete i.scriptMap[e];},s=function(e){n({loaded:true,error:e});};return (null===(o=i.scriptMap)||void 0===o?void 0:o[e])||(i.scriptMap[e]=document.createElement("script"),i.scriptMap[e]&&(i.scriptMap[e].src=e,i.scriptMap[e].async=true,document.body.append(i.scriptMap[e]),i.scriptMap[e].addEventListener("load",(function(){return l(false)})),i.scriptMap[e].addEventListener("error",(function(){return l(true)})),i.injectorMap[e]="loading")),(null===(r=i.queue)||void 0===r?void 0:r[e])?null===(a=null===(c=i.queue)||void 0===c?void 0:c[e])||void 0===a||a.push(s):i.queue[e]=[s],function(){var t,o;i.scriptMap[e]&&(null===(t=i.scriptMap[e])||void 0===t||t.removeEventListener("load",(function(){return l(true)})),null===(o=i.scriptMap[e])||void 0===o||o.removeEventListener("error",(function(){return l(true)})));}}n({loaded:true,error:true});}else n({loaded:true,error:false});}),[e]),[r.loaded,r.error]}e.default=function(){var e,i=t.useState(),a=i[0],l=i[1],s=t.useState(n),u=s[0],d=s[1],p=c("https://apis.google.com/js/api.js"),f=p[0],v=p[1],g=c("https://accounts.google.com/gsi/client"),M=g[0],w=g[1],k=t.useState(false),y=k[0],b=k[1],h=t.useState(false),m=h[0],E=h[1],S=["https://www.googleapis.com/auth/drive.readonly"];t.useEffect((function(){!f||v||!M||w||m||j();}),[f,v,M,w,m]),t.useEffect((function(){y&&u.token&&f&&!v&&M&&!w&&m&&(I(u),b(false));}),[y,u.token,f,v,M,w,m]);var j=function(){window.gapi.load("auth"),window.gapi.load("picker",{callback:F});},F=function(){E(true);},I=function(t){var o=t.token,r=t.appId,n=void 0===r?"":r,i=t.supportDrives,c=void 0!==i&&i,a=t.developerKey,l=t.viewId,s=void 0===l?"DOCS":l,u=t.disabled,d=t.multiselect,p=t.setOrigin,f=t.showUploadView,v=void 0!==f&&f,g=t.showUploadFolders,M=t.setParentFolder,w=void 0===M?"":M,k=t.viewMimeTypes,y=t.customViews,b=t.locale,h=void 0===b?"en":b,m=t.setIncludeFolders,E=t.setSelectFolderEnabled,S=t.disableDefaultView,j=void 0!==S&&S,F=t.callbackFunction;if(u)return false;var I=new google.picker.DocsView(google.picker.ViewId[s]);k&&I.setMimeTypes(k),m&&I.setIncludeFolders(true),E&&I.setSelectFolderEnabled(true);var T=new google.picker.DocsUploadView;return k&&T.setMimeTypes(k),g&&T.setIncludeFolders(true),w&&T.setParent(w),w&&I.setParent(w),e=(new google.picker.PickerBuilder).setAppId(n).setOAuthToken(o).setDeveloperKey(a).setLocale(h).setCallback(F),p&&e.setOrigin(p),j||e.addView(I),y&&y.map((function(t){return e.addView(t)})),d&&e.enableFeature(google.picker.Feature.MULTISELECT_ENABLED),v&&e.addView(T),c&&e.enableFeature(google.picker.Feature.SUPPORT_DRIVES),e.build().setVisible(true),true};return [function(e){(d(e),e.token)||google.accounts.oauth2.initTokenClient({client_id:e.clientId,scope:(e.customScopes?r(r([],S,true),e.customScopes):S).join(" "),callback:function(t){l(t),I(o(o({},e),{token:t.access_token}));}}).requestAccessToken();if(e.token&&f&&!v&&m)return I(e)},a]},Object.defineProperty(e,"__esModule",{value:true});}));
|
|
225612
225576
|
|
|
225613
225577
|
} (bundle, bundle.exports));
|
|
225614
225578
|
|
|
@@ -225880,7 +225844,7 @@ const useGoogleDrivePicker = ({ tenantKey, mentorId }) => {
|
|
|
225880
225844
|
};
|
|
225881
225845
|
};
|
|
225882
225846
|
|
|
225883
|
-
var loadScript = function load (src, opts, cb) {
|
|
225847
|
+
var loadScript$1 = function load (src, opts, cb) {
|
|
225884
225848
|
var head = document.head || document.getElementsByTagName('head')[0];
|
|
225885
225849
|
var script = document.createElement('script');
|
|
225886
225850
|
|
|
@@ -225945,7 +225909,7 @@ function ieOnEnd (script, cb) {
|
|
|
225945
225909
|
};
|
|
225946
225910
|
}
|
|
225947
225911
|
|
|
225948
|
-
var loadScript
|
|
225912
|
+
var loadScript = /*@__PURE__*/getDefaultExportFromCjs(loadScript$1);
|
|
225949
225913
|
|
|
225950
225914
|
const DROPBOX_EXTENSIONS = [
|
|
225951
225915
|
'.pdf',
|
|
@@ -226057,7 +226021,7 @@ const useDropboxPicker = ({ tenantKey, mentorId, cancel = () => { }, linkType =
|
|
|
226057
226021
|
useEffect(() => {
|
|
226058
226022
|
if (!isDropboxReady() && !scriptLoadingStarted && appKey) {
|
|
226059
226023
|
scriptLoadingStarted = true;
|
|
226060
|
-
loadScript
|
|
226024
|
+
loadScript(DROPBOX_SDK_URL, {
|
|
226061
226025
|
attrs: {
|
|
226062
226026
|
id: SCRIPT_ID,
|
|
226063
226027
|
'data-app-key': appKey,
|