dara-core 1.16.18__py3-none-any.whl → 1.16.20a1__py3-none-any.whl

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.
@@ -7528,6 +7528,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
7528
7528
  retentionZone: retentionZone$1
7529
7529
  };
7530
7530
  var Recoil_index_1 = Recoil_index.DefaultValue;
7531
+ var Recoil_index_2 = Recoil_index.isRecoilValue;
7531
7532
  var Recoil_index_5 = Recoil_index.RecoilRoot;
7532
7533
  var Recoil_index_8 = Recoil_index.atom;
7533
7534
  var Recoil_index_10 = Recoil_index.atomFamily;
@@ -11100,7 +11101,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
11100
11101
  failure: failure$1$1,
11101
11102
  success: success$1$1
11102
11103
  } = Refine_Checkers$1$1;
11103
- function isPlainObject$1(value) {
11104
+ function isPlainObject$2(value) {
11104
11105
  if (Object.prototype.toString.call(value) !== "[object Object]") {
11105
11106
  return false;
11106
11107
  }
@@ -11151,7 +11152,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
11151
11152
  }
11152
11153
  function dict$2(valueChecker) {
11153
11154
  return (value, path = new Path$1$1()) => {
11154
- if (typeof value !== "object" || value === null || !isPlainObject$1(value)) {
11155
+ if (typeof value !== "object" || value === null || !isPlainObject$2(value)) {
11155
11156
  return failure$1$1("value is not an object", path);
11156
11157
  }
11157
11158
  const out = {};
@@ -11191,7 +11192,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
11191
11192
  function object$2(checkers) {
11192
11193
  const checkerProperties = Object.keys(checkers);
11193
11194
  return (value, path = new Path$1$1()) => {
11194
- if (typeof value !== "object" || value === null || !isPlainObject$1(value)) {
11195
+ if (typeof value !== "object" || value === null || !isPlainObject$2(value)) {
11195
11196
  return failure$1$1("value is not an object", path);
11196
11197
  }
11197
11198
  const out = {};
@@ -11589,7 +11590,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
11589
11590
  map: map$1$1,
11590
11591
  object: object$1$1,
11591
11592
  optional: optional$1$1,
11592
- set: set$1$1,
11593
+ set: set$1$2,
11593
11594
  tuple: tuple$1$1,
11594
11595
  writableArray: writableArray$1$1,
11595
11596
  writableDict: writableDict$1$1,
@@ -11652,7 +11653,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
11652
11653
  dict: dict$1$1,
11653
11654
  object: object$1$1,
11654
11655
  optional: optional$1$1,
11655
- set: set$1$1,
11656
+ set: set$1$2,
11656
11657
  map: map$1$1,
11657
11658
  writableArray: writableArray$1$1,
11658
11659
  writableDict: writableDict$1$1,
@@ -14335,7 +14336,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
14335
14336
  disabled = false;
14336
14337
  }
14337
14338
  var mo = null;
14338
- function observe(options) {
14339
+ function observe$1(options) {
14339
14340
  if (!MUTATION_OBSERVER) {
14340
14341
  return;
14341
14342
  }
@@ -14967,7 +14968,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
14967
14968
  hooks: function hooks() {
14968
14969
  return {
14969
14970
  bootstrap: function bootstrap() {
14970
- observe(chainHooks("mutationObserverCallbacks", {}));
14971
+ observe$1(chainHooks("mutationObserverCallbacks", {}));
14971
14972
  },
14972
14973
  noAuto: function noAuto2() {
14973
14974
  disconnect();
@@ -14977,7 +14978,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
14977
14978
  if (_unwatched) {
14978
14979
  enableObservation();
14979
14980
  } else {
14980
- observe(chainHooks("mutationObserverCallbacks", {
14981
+ observe$1(chainHooks("mutationObserverCallbacks", {
14981
14982
  observeMutationsRoot
14982
14983
  }));
14983
14984
  }
@@ -16148,12 +16149,12 @@ var __privateWrapper = (obj, member, setter, getter) => ({
16148
16149
  var Symbol$6 = root$d.Symbol;
16149
16150
  var _Symbol = Symbol$6;
16150
16151
  var Symbol$5 = _Symbol;
16151
- var objectProto$g = Object.prototype;
16152
- var hasOwnProperty$d = objectProto$g.hasOwnProperty;
16153
- var nativeObjectToString$1 = objectProto$g.toString;
16152
+ var objectProto$h = Object.prototype;
16153
+ var hasOwnProperty$f = objectProto$h.hasOwnProperty;
16154
+ var nativeObjectToString$1 = objectProto$h.toString;
16154
16155
  var symToStringTag$1 = Symbol$5 ? Symbol$5.toStringTag : void 0;
16155
16156
  function getRawTag$1(value) {
16156
- var isOwn = hasOwnProperty$d.call(value, symToStringTag$1), tag = value[symToStringTag$1];
16157
+ var isOwn = hasOwnProperty$f.call(value, symToStringTag$1), tag = value[symToStringTag$1];
16157
16158
  try {
16158
16159
  value[symToStringTag$1] = void 0;
16159
16160
  var unmasked = true;
@@ -16170,8 +16171,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
16170
16171
  return result;
16171
16172
  }
16172
16173
  var _getRawTag = getRawTag$1;
16173
- var objectProto$f = Object.prototype;
16174
- var nativeObjectToString = objectProto$f.toString;
16174
+ var objectProto$g = Object.prototype;
16175
+ var nativeObjectToString = objectProto$g.toString;
16175
16176
  function objectToString$1(value) {
16176
16177
  return nativeObjectToString.call(value);
16177
16178
  }
@@ -16179,25 +16180,25 @@ var __privateWrapper = (obj, member, setter, getter) => ({
16179
16180
  var Symbol$4 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
16180
16181
  var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
16181
16182
  var symToStringTag = Symbol$4 ? Symbol$4.toStringTag : void 0;
16182
- function baseGetTag$5(value) {
16183
+ function baseGetTag$6(value) {
16183
16184
  if (value == null) {
16184
16185
  return value === void 0 ? undefinedTag : nullTag;
16185
16186
  }
16186
16187
  return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
16187
16188
  }
16188
- var _baseGetTag = baseGetTag$5;
16189
+ var _baseGetTag = baseGetTag$6;
16189
16190
  function isObject$b(value) {
16190
16191
  var type = typeof value;
16191
16192
  return value != null && (type == "object" || type == "function");
16192
16193
  }
16193
16194
  var isObject_1 = isObject$b;
16194
- var baseGetTag$4 = _baseGetTag, isObject$a = isObject_1;
16195
+ var baseGetTag$5 = _baseGetTag, isObject$a = isObject_1;
16195
16196
  var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
16196
16197
  function isFunction$3(value) {
16197
16198
  if (!isObject$a(value)) {
16198
16199
  return false;
16199
16200
  }
16200
- var tag = baseGetTag$4(value);
16201
+ var tag = baseGetTag$5(value);
16201
16202
  return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
16202
16203
  }
16203
16204
  var isFunction_1 = isFunction$3;
@@ -16213,12 +16214,12 @@ var __privateWrapper = (obj, member, setter, getter) => ({
16213
16214
  return !!maskSrcKey && maskSrcKey in func;
16214
16215
  }
16215
16216
  var _isMasked = isMasked$1;
16216
- var funcProto$1 = Function.prototype;
16217
- var funcToString$1 = funcProto$1.toString;
16217
+ var funcProto$2 = Function.prototype;
16218
+ var funcToString$2 = funcProto$2.toString;
16218
16219
  function toSource$2(func) {
16219
16220
  if (func != null) {
16220
16221
  try {
16221
- return funcToString$1.call(func);
16222
+ return funcToString$2.call(func);
16222
16223
  } catch (e2) {
16223
16224
  }
16224
16225
  try {
@@ -16232,11 +16233,11 @@ var __privateWrapper = (obj, member, setter, getter) => ({
16232
16233
  var isFunction$2 = isFunction_1, isMasked = _isMasked, isObject$9 = isObject_1, toSource$1 = _toSource;
16233
16234
  var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
16234
16235
  var reIsHostCtor = /^\[object .+?Constructor\]$/;
16235
- var funcProto = Function.prototype, objectProto$e = Object.prototype;
16236
- var funcToString = funcProto.toString;
16237
- var hasOwnProperty$c = objectProto$e.hasOwnProperty;
16236
+ var funcProto$1 = Function.prototype, objectProto$f = Object.prototype;
16237
+ var funcToString$1 = funcProto$1.toString;
16238
+ var hasOwnProperty$e = objectProto$f.hasOwnProperty;
16238
16239
  var reIsNative = RegExp(
16239
- "^" + funcToString.call(hasOwnProperty$c).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
16240
+ "^" + funcToString$1.call(hasOwnProperty$e).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
16240
16241
  );
16241
16242
  function baseIsNative$1(value) {
16242
16243
  if (!isObject$9(value) || isMasked(value)) {
@@ -16276,23 +16277,23 @@ var __privateWrapper = (obj, member, setter, getter) => ({
16276
16277
  var _hashDelete = hashDelete$1;
16277
16278
  var nativeCreate$2 = _nativeCreate;
16278
16279
  var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
16279
- var objectProto$d = Object.prototype;
16280
- var hasOwnProperty$b = objectProto$d.hasOwnProperty;
16280
+ var objectProto$e = Object.prototype;
16281
+ var hasOwnProperty$d = objectProto$e.hasOwnProperty;
16281
16282
  function hashGet$1(key) {
16282
16283
  var data = this.__data__;
16283
16284
  if (nativeCreate$2) {
16284
16285
  var result = data[key];
16285
16286
  return result === HASH_UNDEFINED$2 ? void 0 : result;
16286
16287
  }
16287
- return hasOwnProperty$b.call(data, key) ? data[key] : void 0;
16288
+ return hasOwnProperty$d.call(data, key) ? data[key] : void 0;
16288
16289
  }
16289
16290
  var _hashGet = hashGet$1;
16290
16291
  var nativeCreate$1 = _nativeCreate;
16291
- var objectProto$c = Object.prototype;
16292
- var hasOwnProperty$a = objectProto$c.hasOwnProperty;
16292
+ var objectProto$d = Object.prototype;
16293
+ var hasOwnProperty$c = objectProto$d.hasOwnProperty;
16293
16294
  function hashHas$1(key) {
16294
16295
  var data = this.__data__;
16295
- return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$a.call(data, key);
16296
+ return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$c.call(data, key);
16296
16297
  }
16297
16298
  var _hashHas = hashHas$1;
16298
16299
  var nativeCreate = _nativeCreate;
@@ -16593,8 +16594,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
16593
16594
  }
16594
16595
  var stubArray_1 = stubArray$2;
16595
16596
  var arrayFilter = _arrayFilter, stubArray$1 = stubArray_1;
16596
- var objectProto$b = Object.prototype;
16597
- var propertyIsEnumerable$1 = objectProto$b.propertyIsEnumerable;
16597
+ var objectProto$c = Object.prototype;
16598
+ var propertyIsEnumerable$1 = objectProto$c.propertyIsEnumerable;
16598
16599
  var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
16599
16600
  var getSymbols$3 = !nativeGetSymbols$1 ? stubArray$1 : function(object2) {
16600
16601
  if (object2 == null) {
@@ -16614,24 +16615,24 @@ var __privateWrapper = (obj, member, setter, getter) => ({
16614
16615
  return result;
16615
16616
  }
16616
16617
  var _baseTimes = baseTimes$1;
16617
- function isObjectLike$8(value) {
16618
+ function isObjectLike$9(value) {
16618
16619
  return value != null && typeof value == "object";
16619
16620
  }
16620
- var isObjectLike_1 = isObjectLike$8;
16621
- var baseGetTag$3 = _baseGetTag, isObjectLike$7 = isObjectLike_1;
16621
+ var isObjectLike_1 = isObjectLike$9;
16622
+ var baseGetTag$4 = _baseGetTag, isObjectLike$8 = isObjectLike_1;
16622
16623
  var argsTag$3 = "[object Arguments]";
16623
16624
  function baseIsArguments$1(value) {
16624
- return isObjectLike$7(value) && baseGetTag$3(value) == argsTag$3;
16625
+ return isObjectLike$8(value) && baseGetTag$4(value) == argsTag$3;
16625
16626
  }
16626
16627
  var _baseIsArguments = baseIsArguments$1;
16627
- var baseIsArguments = _baseIsArguments, isObjectLike$6 = isObjectLike_1;
16628
- var objectProto$a = Object.prototype;
16629
- var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
16630
- var propertyIsEnumerable = objectProto$a.propertyIsEnumerable;
16628
+ var baseIsArguments = _baseIsArguments, isObjectLike$7 = isObjectLike_1;
16629
+ var objectProto$b = Object.prototype;
16630
+ var hasOwnProperty$b = objectProto$b.hasOwnProperty;
16631
+ var propertyIsEnumerable = objectProto$b.propertyIsEnumerable;
16631
16632
  var isArguments$2 = baseIsArguments(function() {
16632
16633
  return arguments;
16633
16634
  }()) ? baseIsArguments : function(value) {
16634
- return isObjectLike$6(value) && hasOwnProperty$9.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
16635
+ return isObjectLike$7(value) && hasOwnProperty$b.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
16635
16636
  };
16636
16637
  var isArguments_1 = isArguments$2;
16637
16638
  var isBuffer$3 = { exports: {} };
@@ -16662,14 +16663,14 @@ var __privateWrapper = (obj, member, setter, getter) => ({
16662
16663
  return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
16663
16664
  }
16664
16665
  var isLength_1 = isLength$3;
16665
- var baseGetTag$2 = _baseGetTag, isLength$2 = isLength_1, isObjectLike$5 = isObjectLike_1;
16666
- var argsTag$2 = "[object Arguments]", arrayTag$2 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", errorTag$1 = "[object Error]", funcTag$1 = "[object Function]", mapTag$4 = "[object Map]", numberTag$2 = "[object Number]", objectTag$3 = "[object Object]", regexpTag$2 = "[object RegExp]", setTag$4 = "[object Set]", stringTag$2 = "[object String]", weakMapTag$2 = "[object WeakMap]";
16666
+ var baseGetTag$3 = _baseGetTag, isLength$2 = isLength_1, isObjectLike$6 = isObjectLike_1;
16667
+ var argsTag$2 = "[object Arguments]", arrayTag$2 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", errorTag$1 = "[object Error]", funcTag$1 = "[object Function]", mapTag$4 = "[object Map]", numberTag$2 = "[object Number]", objectTag$4 = "[object Object]", regexpTag$2 = "[object RegExp]", setTag$4 = "[object Set]", stringTag$2 = "[object String]", weakMapTag$2 = "[object WeakMap]";
16667
16668
  var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$3 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
16668
16669
  var typedArrayTags = {};
16669
16670
  typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true;
16670
- typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] = typedArrayTags[arrayBufferTag$2] = typedArrayTags[boolTag$2] = typedArrayTags[dataViewTag$3] = typedArrayTags[dateTag$2] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$4] = typedArrayTags[numberTag$2] = typedArrayTags[objectTag$3] = typedArrayTags[regexpTag$2] = typedArrayTags[setTag$4] = typedArrayTags[stringTag$2] = typedArrayTags[weakMapTag$2] = false;
16671
+ typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] = typedArrayTags[arrayBufferTag$2] = typedArrayTags[boolTag$2] = typedArrayTags[dataViewTag$3] = typedArrayTags[dateTag$2] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$4] = typedArrayTags[numberTag$2] = typedArrayTags[objectTag$4] = typedArrayTags[regexpTag$2] = typedArrayTags[setTag$4] = typedArrayTags[stringTag$2] = typedArrayTags[weakMapTag$2] = false;
16671
16672
  function baseIsTypedArray$1(value) {
16672
- return isObjectLike$5(value) && isLength$2(value.length) && !!typedArrayTags[baseGetTag$2(value)];
16673
+ return isObjectLike$6(value) && isLength$2(value.length) && !!typedArrayTags[baseGetTag$3(value)];
16673
16674
  }
16674
16675
  var _baseIsTypedArray = baseIsTypedArray$1;
16675
16676
  function baseUnary$3(func) {
@@ -16702,21 +16703,21 @@ var __privateWrapper = (obj, member, setter, getter) => ({
16702
16703
  var isTypedArray$2 = nodeIsTypedArray ? baseUnary$2(nodeIsTypedArray) : baseIsTypedArray;
16703
16704
  var isTypedArray_1 = isTypedArray$2;
16704
16705
  var baseTimes = _baseTimes, isArguments$1 = isArguments_1, isArray$8 = isArray_1, isBuffer$2 = isBuffer$3.exports, isIndex$3 = _isIndex, isTypedArray$1 = isTypedArray_1;
16705
- var objectProto$9 = Object.prototype;
16706
- var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
16706
+ var objectProto$a = Object.prototype;
16707
+ var hasOwnProperty$a = objectProto$a.hasOwnProperty;
16707
16708
  function arrayLikeKeys$2(value, inherited) {
16708
16709
  var isArr = isArray$8(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$2(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
16709
16710
  for (var key in value) {
16710
- if ((inherited || hasOwnProperty$8.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex$3(key, length)))) {
16711
+ if ((inherited || hasOwnProperty$a.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex$3(key, length)))) {
16711
16712
  result.push(key);
16712
16713
  }
16713
16714
  }
16714
16715
  return result;
16715
16716
  }
16716
16717
  var _arrayLikeKeys = arrayLikeKeys$2;
16717
- var objectProto$8 = Object.prototype;
16718
+ var objectProto$9 = Object.prototype;
16718
16719
  function isPrototype$3(value) {
16719
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$8;
16720
+ var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$9;
16720
16721
  return value === proto;
16721
16722
  }
16722
16723
  var _isPrototype = isPrototype$3;
@@ -16730,15 +16731,15 @@ var __privateWrapper = (obj, member, setter, getter) => ({
16730
16731
  var nativeKeys$1 = overArg$1(Object.keys, Object);
16731
16732
  var _nativeKeys = nativeKeys$1;
16732
16733
  var isPrototype$2 = _isPrototype, nativeKeys = _nativeKeys;
16733
- var objectProto$7 = Object.prototype;
16734
- var hasOwnProperty$7 = objectProto$7.hasOwnProperty;
16734
+ var objectProto$8 = Object.prototype;
16735
+ var hasOwnProperty$9 = objectProto$8.hasOwnProperty;
16735
16736
  function baseKeys$1(object2) {
16736
16737
  if (!isPrototype$2(object2)) {
16737
16738
  return nativeKeys(object2);
16738
16739
  }
16739
16740
  var result = [];
16740
16741
  for (var key in Object(object2)) {
16741
- if (hasOwnProperty$7.call(object2, key) && key != "constructor") {
16742
+ if (hasOwnProperty$9.call(object2, key) && key != "constructor") {
16742
16743
  result.push(key);
16743
16744
  }
16744
16745
  }
@@ -16762,8 +16763,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
16762
16763
  var _getAllKeys = getAllKeys$2;
16763
16764
  var getAllKeys$1 = _getAllKeys;
16764
16765
  var COMPARE_PARTIAL_FLAG$3 = 1;
16765
- var objectProto$6 = Object.prototype;
16766
- var hasOwnProperty$6 = objectProto$6.hasOwnProperty;
16766
+ var objectProto$7 = Object.prototype;
16767
+ var hasOwnProperty$8 = objectProto$7.hasOwnProperty;
16767
16768
  function equalObjects$1(object2, other, bitmask, customizer, equalFunc, stack) {
16768
16769
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, objProps = getAllKeys$1(object2), objLength = objProps.length, othProps = getAllKeys$1(other), othLength = othProps.length;
16769
16770
  if (objLength != othLength && !isPartial) {
@@ -16772,7 +16773,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
16772
16773
  var index2 = objLength;
16773
16774
  while (index2--) {
16774
16775
  var key = objProps[index2];
16775
- if (!(isPartial ? key in other : hasOwnProperty$6.call(other, key))) {
16776
+ if (!(isPartial ? key in other : hasOwnProperty$8.call(other, key))) {
16776
16777
  return false;
16777
16778
  }
16778
16779
  }
@@ -16820,14 +16821,14 @@ var __privateWrapper = (obj, member, setter, getter) => ({
16820
16821
  var getNative$1 = _getNative, root$6 = _root;
16821
16822
  var WeakMap$3 = getNative$1(root$6, "WeakMap");
16822
16823
  var _WeakMap = WeakMap$3;
16823
- var DataView$1 = _DataView, Map$1 = _Map, Promise$1 = _Promise, Set$1 = _Set, WeakMap$2 = _WeakMap, baseGetTag$1 = _baseGetTag, toSource = _toSource;
16824
- var mapTag$3 = "[object Map]", objectTag$2 = "[object Object]", promiseTag = "[object Promise]", setTag$3 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
16824
+ var DataView$1 = _DataView, Map$1 = _Map, Promise$1 = _Promise, Set$1 = _Set, WeakMap$2 = _WeakMap, baseGetTag$2 = _baseGetTag, toSource = _toSource;
16825
+ var mapTag$3 = "[object Map]", objectTag$3 = "[object Object]", promiseTag = "[object Promise]", setTag$3 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
16825
16826
  var dataViewTag$2 = "[object DataView]";
16826
16827
  var dataViewCtorString = toSource(DataView$1), mapCtorString = toSource(Map$1), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set$1), weakMapCtorString = toSource(WeakMap$2);
16827
- var getTag$4 = baseGetTag$1;
16828
+ var getTag$4 = baseGetTag$2;
16828
16829
  if (DataView$1 && getTag$4(new DataView$1(new ArrayBuffer(1))) != dataViewTag$2 || Map$1 && getTag$4(new Map$1()) != mapTag$3 || Promise$1 && getTag$4(Promise$1.resolve()) != promiseTag || Set$1 && getTag$4(new Set$1()) != setTag$3 || WeakMap$2 && getTag$4(new WeakMap$2()) != weakMapTag$1) {
16829
16830
  getTag$4 = function(value) {
16830
- var result = baseGetTag$1(value), Ctor = result == objectTag$2 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
16831
+ var result = baseGetTag$2(value), Ctor = result == objectTag$3 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
16831
16832
  if (ctorString) {
16832
16833
  switch (ctorString) {
16833
16834
  case dataViewCtorString:
@@ -16848,14 +16849,14 @@ var __privateWrapper = (obj, member, setter, getter) => ({
16848
16849
  var _getTag = getTag$4;
16849
16850
  var Stack$2 = _Stack, equalArrays = _equalArrays, equalByTag = _equalByTag, equalObjects = _equalObjects, getTag$3 = _getTag, isArray$7 = isArray_1, isBuffer$1 = isBuffer$3.exports, isTypedArray = isTypedArray_1;
16850
16851
  var COMPARE_PARTIAL_FLAG$2 = 1;
16851
- var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", objectTag$1 = "[object Object]";
16852
- var objectProto$5 = Object.prototype;
16853
- var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
16852
+ var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", objectTag$2 = "[object Object]";
16853
+ var objectProto$6 = Object.prototype;
16854
+ var hasOwnProperty$7 = objectProto$6.hasOwnProperty;
16854
16855
  function baseIsEqualDeep$1(object2, other, bitmask, customizer, equalFunc, stack) {
16855
16856
  var objIsArr = isArray$7(object2), othIsArr = isArray$7(other), objTag = objIsArr ? arrayTag$1 : getTag$3(object2), othTag = othIsArr ? arrayTag$1 : getTag$3(other);
16856
- objTag = objTag == argsTag$1 ? objectTag$1 : objTag;
16857
- othTag = othTag == argsTag$1 ? objectTag$1 : othTag;
16858
- var objIsObj = objTag == objectTag$1, othIsObj = othTag == objectTag$1, isSameTag = objTag == othTag;
16857
+ objTag = objTag == argsTag$1 ? objectTag$2 : objTag;
16858
+ othTag = othTag == argsTag$1 ? objectTag$2 : othTag;
16859
+ var objIsObj = objTag == objectTag$2, othIsObj = othTag == objectTag$2, isSameTag = objTag == othTag;
16859
16860
  if (isSameTag && isBuffer$1(object2)) {
16860
16861
  if (!isBuffer$1(other)) {
16861
16862
  return false;
@@ -16868,7 +16869,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
16868
16869
  return objIsArr || isTypedArray(object2) ? equalArrays(object2, other, bitmask, customizer, equalFunc, stack) : equalByTag(object2, other, objTag, bitmask, customizer, equalFunc, stack);
16869
16870
  }
16870
16871
  if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
16871
- var objIsWrapped = objIsObj && hasOwnProperty$5.call(object2, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$5.call(other, "__wrapped__");
16872
+ var objIsWrapped = objIsObj && hasOwnProperty$7.call(object2, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$7.call(other, "__wrapped__");
16872
16873
  if (objIsWrapped || othIsWrapped) {
16873
16874
  var objUnwrapped = objIsWrapped ? object2.value() : object2, othUnwrapped = othIsWrapped ? other.value() : other;
16874
16875
  stack || (stack = new Stack$2());
@@ -16882,12 +16883,12 @@ var __privateWrapper = (obj, member, setter, getter) => ({
16882
16883
  return equalObjects(object2, other, bitmask, customizer, equalFunc, stack);
16883
16884
  }
16884
16885
  var _baseIsEqualDeep = baseIsEqualDeep$1;
16885
- var baseIsEqualDeep = _baseIsEqualDeep, isObjectLike$4 = isObjectLike_1;
16886
+ var baseIsEqualDeep = _baseIsEqualDeep, isObjectLike$5 = isObjectLike_1;
16886
16887
  function baseIsEqual$3(value, other, bitmask, customizer, stack) {
16887
16888
  if (value === other) {
16888
16889
  return true;
16889
16890
  }
16890
- if (value == null || other == null || !isObjectLike$4(value) && !isObjectLike$4(other)) {
16891
+ if (value == null || other == null || !isObjectLike$5(value) && !isObjectLike$5(other)) {
16891
16892
  return value !== value && other !== other;
16892
16893
  }
16893
16894
  return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual$3, stack);
@@ -16924,10 +16925,10 @@ var __privateWrapper = (obj, member, setter, getter) => ({
16924
16925
  return string2 ? string2.slice(0, trimmedEndIndex(string2) + 1).replace(reTrimStart, "") : string2;
16925
16926
  }
16926
16927
  var _baseTrim = baseTrim$1;
16927
- var baseGetTag = _baseGetTag, isObjectLike$3 = isObjectLike_1;
16928
+ var baseGetTag$1 = _baseGetTag, isObjectLike$4 = isObjectLike_1;
16928
16929
  var symbolTag$2 = "[object Symbol]";
16929
16930
  function isSymbol$4(value) {
16930
- return typeof value == "symbol" || isObjectLike$3(value) && baseGetTag(value) == symbolTag$2;
16931
+ return typeof value == "symbol" || isObjectLike$4(value) && baseGetTag$1(value) == symbolTag$2;
16931
16932
  }
16932
16933
  var isSymbol_1 = isSymbol$4;
16933
16934
  var baseTrim = _baseTrim, isObject$8 = isObject_1, isSymbol$3 = isSymbol_1;
@@ -17777,7 +17778,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
17777
17778
  return uid2 ? "Symbol(src)_1." + uid2 : "";
17778
17779
  }();
17779
17780
  var nativeObjectToString2 = objectProto2.toString;
17780
- var objectCtorString = funcToString2.call(Object2);
17781
+ var objectCtorString2 = funcToString2.call(Object2);
17781
17782
  var oldDash = root2._;
17782
17783
  var reIsNative2 = RegExp2(
17783
17784
  "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
@@ -21143,7 +21144,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
21143
21144
  var tag = baseGetTag2(value);
21144
21145
  return tag == funcTag2 || tag == genTag2 || tag == asyncTag2 || tag == proxyTag2;
21145
21146
  }
21146
- function isInteger(value) {
21147
+ function isInteger2(value) {
21147
21148
  return typeof value == "number" && value == toInteger2(value);
21148
21149
  }
21149
21150
  function isLength2(value) {
@@ -21191,11 +21192,11 @@ var __privateWrapper = (obj, member, setter, getter) => ({
21191
21192
  return true;
21192
21193
  }
21193
21194
  var Ctor = hasOwnProperty2.call(proto, "constructor") && proto.constructor;
21194
- return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString2.call(Ctor) == objectCtorString;
21195
+ return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString2.call(Ctor) == objectCtorString2;
21195
21196
  }
21196
21197
  var isRegExp = nodeIsRegExp ? baseUnary2(nodeIsRegExp) : baseIsRegExp;
21197
21198
  function isSafeInteger(value) {
21198
- return isInteger(value) && value >= -MAX_SAFE_INTEGER2 && value <= MAX_SAFE_INTEGER2;
21199
+ return isInteger2(value) && value >= -MAX_SAFE_INTEGER2 && value <= MAX_SAFE_INTEGER2;
21199
21200
  }
21200
21201
  var isSet2 = nodeIsSet2 ? baseUnary2(nodeIsSet2) : baseIsSet2;
21201
21202
  function isString(value) {
@@ -22236,7 +22237,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
22236
22237
  lodash2.isError = isError2;
22237
22238
  lodash2.isFinite = isFinite2;
22238
22239
  lodash2.isFunction = isFunction2;
22239
- lodash2.isInteger = isInteger;
22240
+ lodash2.isInteger = isInteger2;
22240
22241
  lodash2.isLength = isLength2;
22241
22242
  lodash2.isMap = isMap2;
22242
22243
  lodash2.isMatch = isMatch;
@@ -31833,7 +31834,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
31833
31834
  };
31834
31835
  return extendStatics(d2, b2);
31835
31836
  };
31836
- function __extends(d2, b2) {
31837
+ function __extends$1(d2, b2) {
31837
31838
  if (typeof b2 !== "function" && b2 !== null)
31838
31839
  throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
31839
31840
  extendStatics(d2, b2);
@@ -36090,7 +36091,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
36090
36091
  }
36091
36092
  _createClass(Setter2, [{
36092
36093
  key: "validate",
36093
- value: function validate(_utcDate, _options) {
36094
+ value: function validate2(_utcDate, _options) {
36094
36095
  return true;
36095
36096
  }
36096
36097
  }]);
@@ -36114,7 +36115,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
36114
36115
  }
36115
36116
  _createClass(ValueSetter2, [{
36116
36117
  key: "validate",
36117
- value: function validate(utcDate, options) {
36118
+ value: function validate2(utcDate, options) {
36118
36119
  return this.validateValue(utcDate, this.value, options);
36119
36120
  }
36120
36121
  }, {
@@ -36174,7 +36175,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
36174
36175
  }
36175
36176
  }, {
36176
36177
  key: "validate",
36177
- value: function validate(_utcDate, _value, _options) {
36178
+ value: function validate2(_utcDate, _value, _options) {
36178
36179
  return true;
36179
36180
  }
36180
36181
  }]);
@@ -36403,7 +36404,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
36403
36404
  }
36404
36405
  }, {
36405
36406
  key: "validate",
36406
- value: function validate(_date, value) {
36407
+ value: function validate2(_date, value) {
36407
36408
  return value.isTwoDigitYear || value.year > 0;
36408
36409
  }
36409
36410
  }, {
@@ -36460,7 +36461,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
36460
36461
  }
36461
36462
  }, {
36462
36463
  key: "validate",
36463
- value: function validate(_date, value) {
36464
+ value: function validate2(_date, value) {
36464
36465
  return value.isTwoDigitYear || value.year > 0;
36465
36466
  }
36466
36467
  }, {
@@ -36600,7 +36601,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
36600
36601
  }
36601
36602
  }, {
36602
36603
  key: "validate",
36603
- value: function validate(_date, value) {
36604
+ value: function validate2(_date, value) {
36604
36605
  return value >= 1 && value <= 4;
36605
36606
  }
36606
36607
  }, {
@@ -36667,7 +36668,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
36667
36668
  }
36668
36669
  }, {
36669
36670
  key: "validate",
36670
- value: function validate(_date, value) {
36671
+ value: function validate2(_date, value) {
36671
36672
  return value >= 1 && value <= 4;
36672
36673
  }
36673
36674
  }, {
@@ -36738,7 +36739,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
36738
36739
  }
36739
36740
  }, {
36740
36741
  key: "validate",
36741
- value: function validate(_date, value) {
36742
+ value: function validate2(_date, value) {
36742
36743
  return value >= 0 && value <= 11;
36743
36744
  }
36744
36745
  }, {
@@ -36809,7 +36810,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
36809
36810
  }
36810
36811
  }, {
36811
36812
  key: "validate",
36812
- value: function validate(_date, value) {
36813
+ value: function validate2(_date, value) {
36813
36814
  return value >= 0 && value <= 11;
36814
36815
  }
36815
36816
  }, {
@@ -36860,7 +36861,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
36860
36861
  }
36861
36862
  }, {
36862
36863
  key: "validate",
36863
- value: function validate(_date, value) {
36864
+ value: function validate2(_date, value) {
36864
36865
  return value >= 1 && value <= 53;
36865
36866
  }
36866
36867
  }, {
@@ -36909,7 +36910,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
36909
36910
  }
36910
36911
  }, {
36911
36912
  key: "validate",
36912
- value: function validate(_date, value) {
36913
+ value: function validate2(_date, value) {
36913
36914
  return value >= 1 && value <= 53;
36914
36915
  }
36915
36916
  }, {
@@ -36953,7 +36954,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
36953
36954
  }
36954
36955
  }, {
36955
36956
  key: "validate",
36956
- value: function validate(date2, value) {
36957
+ value: function validate2(date2, value) {
36957
36958
  var year = date2.getUTCFullYear();
36958
36959
  var isLeapYear = isLeapYearIndex$1(year);
36959
36960
  var month = date2.getUTCMonth();
@@ -37005,7 +37006,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
37005
37006
  }
37006
37007
  }, {
37007
37008
  key: "validate",
37008
- value: function validate(date2, value) {
37009
+ value: function validate2(date2, value) {
37009
37010
  var year = date2.getUTCFullYear();
37010
37011
  var isLeapYear = isLeapYearIndex$1(year);
37011
37012
  if (isLeapYear) {
@@ -37104,7 +37105,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
37104
37105
  }
37105
37106
  }, {
37106
37107
  key: "validate",
37107
- value: function validate(_date, value) {
37108
+ value: function validate2(_date, value) {
37108
37109
  return value >= 0 && value <= 6;
37109
37110
  }
37110
37111
  }, {
@@ -37189,7 +37190,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
37189
37190
  }
37190
37191
  }, {
37191
37192
  key: "validate",
37192
- value: function validate(_date, value) {
37193
+ value: function validate2(_date, value) {
37193
37194
  return value >= 0 && value <= 6;
37194
37195
  }
37195
37196
  }, {
@@ -37274,7 +37275,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
37274
37275
  }
37275
37276
  }, {
37276
37277
  key: "validate",
37277
- value: function validate(_date, value) {
37278
+ value: function validate2(_date, value) {
37278
37279
  return value >= 0 && value <= 6;
37279
37280
  }
37280
37281
  }, {
@@ -37376,7 +37377,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
37376
37377
  }
37377
37378
  }, {
37378
37379
  key: "validate",
37379
- value: function validate(_date, value) {
37380
+ value: function validate2(_date, value) {
37380
37381
  return value >= 1 && value <= 7;
37381
37382
  }
37382
37383
  }, {
@@ -37587,7 +37588,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
37587
37588
  }
37588
37589
  }, {
37589
37590
  key: "validate",
37590
- value: function validate(_date, value) {
37591
+ value: function validate2(_date, value) {
37591
37592
  return value >= 1 && value <= 12;
37592
37593
  }
37593
37594
  }, {
@@ -37636,7 +37637,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
37636
37637
  }
37637
37638
  }, {
37638
37639
  key: "validate",
37639
- value: function validate(_date, value) {
37640
+ value: function validate2(_date, value) {
37640
37641
  return value >= 0 && value <= 23;
37641
37642
  }
37642
37643
  }, {
@@ -37678,7 +37679,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
37678
37679
  }
37679
37680
  }, {
37680
37681
  key: "validate",
37681
- value: function validate(_date, value) {
37682
+ value: function validate2(_date, value) {
37682
37683
  return value >= 0 && value <= 11;
37683
37684
  }
37684
37685
  }, {
@@ -37725,7 +37726,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
37725
37726
  }
37726
37727
  }, {
37727
37728
  key: "validate",
37728
- value: function validate(_date, value) {
37729
+ value: function validate2(_date, value) {
37729
37730
  return value >= 1 && value <= 24;
37730
37731
  }
37731
37732
  }, {
@@ -37768,7 +37769,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
37768
37769
  }
37769
37770
  }, {
37770
37771
  key: "validate",
37771
- value: function validate(_date, value) {
37772
+ value: function validate2(_date, value) {
37772
37773
  return value >= 0 && value <= 59;
37773
37774
  }
37774
37775
  }, {
@@ -37810,7 +37811,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
37810
37811
  }
37811
37812
  }, {
37812
37813
  key: "validate",
37813
- value: function validate(_date, value) {
37814
+ value: function validate2(_date, value) {
37814
37815
  return value >= 0 && value <= 59;
37815
37816
  }
37816
37817
  }, {
@@ -49701,7 +49702,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
49701
49702
  };
49702
49703
  function createListComponent(_ref2) {
49703
49704
  var _class;
49704
- var getItemOffset = _ref2.getItemOffset, getEstimatedTotalSize = _ref2.getEstimatedTotalSize, getItemSize = _ref2.getItemSize, getOffsetForIndexAndAlignment = _ref2.getOffsetForIndexAndAlignment, getStartIndexForOffset = _ref2.getStartIndexForOffset, getStopIndexForStartIndex = _ref2.getStopIndexForStartIndex, initInstanceProps = _ref2.initInstanceProps, shouldResetStyleCacheOnItemSizeChange = _ref2.shouldResetStyleCacheOnItemSizeChange, validateProps = _ref2.validateProps;
49705
+ var getItemOffset = _ref2.getItemOffset, getEstimatedTotalSize2 = _ref2.getEstimatedTotalSize, getItemSize = _ref2.getItemSize, getOffsetForIndexAndAlignment = _ref2.getOffsetForIndexAndAlignment, getStartIndexForOffset = _ref2.getStartIndexForOffset, getStopIndexForStartIndex = _ref2.getStopIndexForStartIndex, initInstanceProps = _ref2.initInstanceProps, shouldResetStyleCacheOnItemSizeChange = _ref2.shouldResetStyleCacheOnItemSizeChange, validateProps = _ref2.validateProps;
49705
49706
  return _class = /* @__PURE__ */ function(_PureComponent) {
49706
49707
  _inheritsLoose$1(List2, _PureComponent);
49707
49708
  function List2(props) {
@@ -49929,7 +49930,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
49929
49930
  }));
49930
49931
  }
49931
49932
  }
49932
- var estimatedTotalSize = getEstimatedTotalSize(this.props, this._instanceProps);
49933
+ var estimatedTotalSize = getEstimatedTotalSize2(this.props, this._instanceProps);
49933
49934
  return React.createElement(outerElementType || outerTagName || "div", {
49934
49935
  className,
49935
49936
  onScroll,
@@ -49997,6 +49998,161 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
49997
49998
  _ref2.width;
49998
49999
  _ref3.instance;
49999
50000
  };
50001
+ var DEFAULT_ESTIMATED_ITEM_SIZE$1 = 50;
50002
+ var getItemMetadata$1 = function getItemMetadata(props, index2, instanceProps) {
50003
+ var _ref2 = props, itemSize = _ref2.itemSize;
50004
+ var itemMetadataMap = instanceProps.itemMetadataMap, lastMeasuredIndex = instanceProps.lastMeasuredIndex;
50005
+ if (index2 > lastMeasuredIndex) {
50006
+ var offset2 = 0;
50007
+ if (lastMeasuredIndex >= 0) {
50008
+ var itemMetadata = itemMetadataMap[lastMeasuredIndex];
50009
+ offset2 = itemMetadata.offset + itemMetadata.size;
50010
+ }
50011
+ for (var i2 = lastMeasuredIndex + 1; i2 <= index2; i2++) {
50012
+ var size2 = itemSize(i2);
50013
+ itemMetadataMap[i2] = {
50014
+ offset: offset2,
50015
+ size: size2
50016
+ };
50017
+ offset2 += size2;
50018
+ }
50019
+ instanceProps.lastMeasuredIndex = index2;
50020
+ }
50021
+ return itemMetadataMap[index2];
50022
+ };
50023
+ var findNearestItem$1 = function findNearestItem(props, instanceProps, offset2) {
50024
+ var itemMetadataMap = instanceProps.itemMetadataMap, lastMeasuredIndex = instanceProps.lastMeasuredIndex;
50025
+ var lastMeasuredItemOffset = lastMeasuredIndex > 0 ? itemMetadataMap[lastMeasuredIndex].offset : 0;
50026
+ if (lastMeasuredItemOffset >= offset2) {
50027
+ return findNearestItemBinarySearch$1(props, instanceProps, lastMeasuredIndex, 0, offset2);
50028
+ } else {
50029
+ return findNearestItemExponentialSearch$1(props, instanceProps, Math.max(0, lastMeasuredIndex), offset2);
50030
+ }
50031
+ };
50032
+ var findNearestItemBinarySearch$1 = function findNearestItemBinarySearch(props, instanceProps, high, low, offset2) {
50033
+ while (low <= high) {
50034
+ var middle = low + Math.floor((high - low) / 2);
50035
+ var currentOffset = getItemMetadata$1(props, middle, instanceProps).offset;
50036
+ if (currentOffset === offset2) {
50037
+ return middle;
50038
+ } else if (currentOffset < offset2) {
50039
+ low = middle + 1;
50040
+ } else if (currentOffset > offset2) {
50041
+ high = middle - 1;
50042
+ }
50043
+ }
50044
+ if (low > 0) {
50045
+ return low - 1;
50046
+ } else {
50047
+ return 0;
50048
+ }
50049
+ };
50050
+ var findNearestItemExponentialSearch$1 = function findNearestItemExponentialSearch(props, instanceProps, index2, offset2) {
50051
+ var itemCount = props.itemCount;
50052
+ var interval = 1;
50053
+ while (index2 < itemCount && getItemMetadata$1(props, index2, instanceProps).offset < offset2) {
50054
+ index2 += interval;
50055
+ interval *= 2;
50056
+ }
50057
+ return findNearestItemBinarySearch$1(props, instanceProps, Math.min(index2, itemCount - 1), Math.floor(index2 / 2), offset2);
50058
+ };
50059
+ var getEstimatedTotalSize = function getEstimatedTotalSize2(_ref2, _ref3) {
50060
+ var itemCount = _ref2.itemCount;
50061
+ var itemMetadataMap = _ref3.itemMetadataMap, estimatedItemSize = _ref3.estimatedItemSize, lastMeasuredIndex = _ref3.lastMeasuredIndex;
50062
+ var totalSizeOfMeasuredItems = 0;
50063
+ if (lastMeasuredIndex >= itemCount) {
50064
+ lastMeasuredIndex = itemCount - 1;
50065
+ }
50066
+ if (lastMeasuredIndex >= 0) {
50067
+ var itemMetadata = itemMetadataMap[lastMeasuredIndex];
50068
+ totalSizeOfMeasuredItems = itemMetadata.offset + itemMetadata.size;
50069
+ }
50070
+ var numUnmeasuredItems = itemCount - lastMeasuredIndex - 1;
50071
+ var totalSizeOfUnmeasuredItems = numUnmeasuredItems * estimatedItemSize;
50072
+ return totalSizeOfMeasuredItems + totalSizeOfUnmeasuredItems;
50073
+ };
50074
+ var VariableSizeList = /* @__PURE__ */ createListComponent({
50075
+ getItemOffset: function getItemOffset(props, index2, instanceProps) {
50076
+ return getItemMetadata$1(props, index2, instanceProps).offset;
50077
+ },
50078
+ getItemSize: function getItemSize(props, index2, instanceProps) {
50079
+ return instanceProps.itemMetadataMap[index2].size;
50080
+ },
50081
+ getEstimatedTotalSize,
50082
+ getOffsetForIndexAndAlignment: function getOffsetForIndexAndAlignment(props, index2, align, scrollOffset, instanceProps, scrollbarSize) {
50083
+ var direction = props.direction, height = props.height, layout = props.layout, width = props.width;
50084
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
50085
+ var size2 = isHorizontal ? width : height;
50086
+ var itemMetadata = getItemMetadata$1(props, index2, instanceProps);
50087
+ var estimatedTotalSize = getEstimatedTotalSize(props, instanceProps);
50088
+ var maxOffset = Math.max(0, Math.min(estimatedTotalSize - size2, itemMetadata.offset));
50089
+ var minOffset = Math.max(0, itemMetadata.offset - size2 + itemMetadata.size + scrollbarSize);
50090
+ if (align === "smart") {
50091
+ if (scrollOffset >= minOffset - size2 && scrollOffset <= maxOffset + size2) {
50092
+ align = "auto";
50093
+ } else {
50094
+ align = "center";
50095
+ }
50096
+ }
50097
+ switch (align) {
50098
+ case "start":
50099
+ return maxOffset;
50100
+ case "end":
50101
+ return minOffset;
50102
+ case "center":
50103
+ return Math.round(minOffset + (maxOffset - minOffset) / 2);
50104
+ case "auto":
50105
+ default:
50106
+ if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {
50107
+ return scrollOffset;
50108
+ } else if (scrollOffset < minOffset) {
50109
+ return minOffset;
50110
+ } else {
50111
+ return maxOffset;
50112
+ }
50113
+ }
50114
+ },
50115
+ getStartIndexForOffset: function getStartIndexForOffset(props, offset2, instanceProps) {
50116
+ return findNearestItem$1(props, instanceProps, offset2);
50117
+ },
50118
+ getStopIndexForStartIndex: function getStopIndexForStartIndex(props, startIndex, scrollOffset, instanceProps) {
50119
+ var direction = props.direction, height = props.height, itemCount = props.itemCount, layout = props.layout, width = props.width;
50120
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
50121
+ var size2 = isHorizontal ? width : height;
50122
+ var itemMetadata = getItemMetadata$1(props, startIndex, instanceProps);
50123
+ var maxOffset = scrollOffset + size2;
50124
+ var offset2 = itemMetadata.offset + itemMetadata.size;
50125
+ var stopIndex = startIndex;
50126
+ while (stopIndex < itemCount - 1 && offset2 < maxOffset) {
50127
+ stopIndex++;
50128
+ offset2 += getItemMetadata$1(props, stopIndex, instanceProps).size;
50129
+ }
50130
+ return stopIndex;
50131
+ },
50132
+ initInstanceProps: function initInstanceProps(props, instance) {
50133
+ var _ref4 = props, estimatedItemSize = _ref4.estimatedItemSize;
50134
+ var instanceProps = {
50135
+ itemMetadataMap: {},
50136
+ estimatedItemSize: estimatedItemSize || DEFAULT_ESTIMATED_ITEM_SIZE$1,
50137
+ lastMeasuredIndex: -1
50138
+ };
50139
+ instance.resetAfterIndex = function(index2, shouldForceUpdate) {
50140
+ if (shouldForceUpdate === void 0) {
50141
+ shouldForceUpdate = true;
50142
+ }
50143
+ instanceProps.lastMeasuredIndex = Math.min(instanceProps.lastMeasuredIndex, index2 - 1);
50144
+ instance._getItemStyleCache(-1);
50145
+ if (shouldForceUpdate) {
50146
+ instance.forceUpdate();
50147
+ }
50148
+ };
50149
+ return instanceProps;
50150
+ },
50151
+ shouldResetStyleCacheOnItemSizeChange: false,
50152
+ validateProps: function validateProps(_ref5) {
50153
+ _ref5.itemSize;
50154
+ }
50155
+ });
50000
50156
  var FixedSizeList = /* @__PURE__ */ createListComponent({
50001
50157
  getItemOffset: function getItemOffset(_ref2, index2) {
50002
50158
  var itemSize = _ref2.itemSize;
@@ -50006,7 +50162,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
50006
50162
  var itemSize = _ref2.itemSize;
50007
50163
  return itemSize;
50008
50164
  },
50009
- getEstimatedTotalSize: function getEstimatedTotalSize(_ref3) {
50165
+ getEstimatedTotalSize: function getEstimatedTotalSize2(_ref3) {
50010
50166
  var itemCount = _ref3.itemCount, itemSize = _ref3.itemSize;
50011
50167
  return itemSize * itemCount;
50012
50168
  },
@@ -50989,7 +51145,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
50989
51145
  EDIT_INPUT: EditInputCell,
50990
51146
  EDIT_SELECT: EditSelectCell
50991
51147
  };
50992
- const createItemData = memoizeOne$1((width, currentEditCell, headerGroups, rows, prepareRow, getItem, totalColumnsWidth, onClickRow, throttledClickRow, backgroundColor, mappedColumns) => ({
51148
+ const createItemData$1 = memoizeOne$1((width, currentEditCell, headerGroups, rows, prepareRow, getItem, totalColumnsWidth, onClickRow, throttledClickRow, backgroundColor, mappedColumns) => ({
50993
51149
  backgroundColor,
50994
51150
  currentEditCell,
50995
51151
  getItem,
@@ -51099,7 +51255,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
51099
51255
  useDeepCompare([tableProps, totalColumnsWidth, headerGroups])
51100
51256
  );
51101
51257
  return jsxRuntime.exports.jsx(Wrapper$3, Object.assign({}, getTableProps(), { "$hasMaxRows": !!maxRows, className: `${className} ${hasFixedColumns ? "sticky" : ""}`, style: Object.assign({ height: maxRows ? (Math.min(rows.length, maxRows) + 1) * ROW_HEIGHT : "100%" }, style), children: jsxRuntime.exports.jsx(AutoSizer, { children: ({ height, width }) => {
51102
- return jsxRuntime.exports.jsx(StyledFixedSizeList, { height, innerElementType: renderTable, itemCount: itemCount || rows.length, itemData: createItemData(width, currentEditCell, headerGroups, rows, prepareRow, getItem, totalColumnsWidth, onClickRow, throttledClickRow, backgroundColor, mappedColumns), itemSize: ROW_HEIGHT, onItemsRendered, style: {
51258
+ return jsxRuntime.exports.jsx(StyledFixedSizeList, { height, innerElementType: renderTable, itemCount: itemCount || rows.length, itemData: createItemData$1(width, currentEditCell, headerGroups, rows, prepareRow, getItem, totalColumnsWidth, onClickRow, throttledClickRow, backgroundColor, mappedColumns), itemSize: ROW_HEIGHT, onItemsRendered, style: {
51103
51259
  overflowX: width < totalColumnsWidth ? "auto" : "hidden",
51104
51260
  overflowY: height < (rows.length + 1) * ROW_HEIGHT ? "auto" : "hidden"
51105
51261
  }, width, children: RenderRow }, "table-list");
@@ -51391,7 +51547,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
51391
51547
  }
51392
51548
  }
51393
51549
  var Subscriber = function(_super) {
51394
- __extends(Subscriber2, _super);
51550
+ __extends$1(Subscriber2, _super);
51395
51551
  function Subscriber2(destination) {
51396
51552
  var _this = _super.call(this) || this;
51397
51553
  _this.isStopped = false;
@@ -51500,7 +51656,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
51500
51656
  return ConsumerObserver2;
51501
51657
  }();
51502
51658
  var SafeSubscriber = function(_super) {
51503
- __extends(SafeSubscriber2, _super);
51659
+ __extends$1(SafeSubscriber2, _super);
51504
51660
  function SafeSubscriber2(observerOrNext, error, complete) {
51505
51661
  var _this = _super.call(this) || this;
51506
51662
  var partialObserver;
@@ -51675,7 +51831,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
51675
51831
  return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);
51676
51832
  }
51677
51833
  var OperatorSubscriber = function(_super) {
51678
- __extends(OperatorSubscriber2, _super);
51834
+ __extends$1(OperatorSubscriber2, _super);
51679
51835
  function OperatorSubscriber2(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
51680
51836
  var _this = _super.call(this, destination) || this;
51681
51837
  _this.onFinalize = onFinalize;
@@ -51725,7 +51881,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
51725
51881
  };
51726
51882
  });
51727
51883
  var Subject = function(_super) {
51728
- __extends(Subject2, _super);
51884
+ __extends$1(Subject2, _super);
51729
51885
  function Subject2() {
51730
51886
  var _this = _super.call(this) || this;
51731
51887
  _this.closed = false;
@@ -51854,7 +52010,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
51854
52010
  return Subject2;
51855
52011
  }(Observable);
51856
52012
  var AnonymousSubject = function(_super) {
51857
- __extends(AnonymousSubject2, _super);
52013
+ __extends$1(AnonymousSubject2, _super);
51858
52014
  function AnonymousSubject2(destination, source) {
51859
52015
  var _this = _super.call(this) || this;
51860
52016
  _this.destination = destination;
@@ -51880,7 +52036,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
51880
52036
  return AnonymousSubject2;
51881
52037
  }(Subject);
51882
52038
  var BehaviorSubject = function(_super) {
51883
- __extends(BehaviorSubject2, _super);
52039
+ __extends$1(BehaviorSubject2, _super);
51884
52040
  function BehaviorSubject2(_value) {
51885
52041
  var _this = _super.call(this) || this;
51886
52042
  _this._value = _value;
@@ -51918,7 +52074,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
51918
52074
  delegate: void 0
51919
52075
  };
51920
52076
  var Action = function(_super) {
51921
- __extends(Action2, _super);
52077
+ __extends$1(Action2, _super);
51922
52078
  function Action2(scheduler, work) {
51923
52079
  return _super.call(this) || this;
51924
52080
  }
@@ -51946,7 +52102,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
51946
52102
  delegate: void 0
51947
52103
  };
51948
52104
  var AsyncAction = function(_super) {
51949
- __extends(AsyncAction2, _super);
52105
+ __extends$1(AsyncAction2, _super);
51950
52106
  function AsyncAction2(scheduler, work) {
51951
52107
  var _this = _super.call(this, scheduler, work) || this;
51952
52108
  _this.scheduler = scheduler;
@@ -52051,7 +52207,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
52051
52207
  return Scheduler2;
52052
52208
  }();
52053
52209
  var AsyncScheduler = function(_super) {
52054
- __extends(AsyncScheduler2, _super);
52210
+ __extends$1(AsyncScheduler2, _super);
52055
52211
  function AsyncScheduler2(SchedulerAction, now2) {
52056
52212
  if (now2 === void 0) {
52057
52213
  now2 = Scheduler.now;
@@ -53694,10 +53850,10 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
53694
53850
  var realNames$1 = {};
53695
53851
  var _realNames = realNames$1;
53696
53852
  var realNames = _realNames;
53697
- var objectProto$4 = Object.prototype;
53698
- var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
53853
+ var objectProto$5 = Object.prototype;
53854
+ var hasOwnProperty$6 = objectProto$5.hasOwnProperty;
53699
53855
  function getFuncName$1(func) {
53700
- var result = func.name + "", array2 = realNames[result], length = hasOwnProperty$4.call(realNames, result) ? array2.length : 0;
53856
+ var result = func.name + "", array2 = realNames[result], length = hasOwnProperty$6.call(realNames, result) ? array2.length : 0;
53701
53857
  while (length--) {
53702
53858
  var data = array2[length], otherFunc = data.func;
53703
53859
  if (otherFunc == null || otherFunc == func) {
@@ -53739,15 +53895,15 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
53739
53895
  return result;
53740
53896
  }
53741
53897
  var _wrapperClone = wrapperClone$1;
53742
- var LazyWrapper$1 = _LazyWrapper, LodashWrapper = _LodashWrapper, baseLodash = _baseLodash, isArray$5 = isArray_1, isObjectLike$2 = isObjectLike_1, wrapperClone = _wrapperClone;
53743
- var objectProto$3 = Object.prototype;
53744
- var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
53898
+ var LazyWrapper$1 = _LazyWrapper, LodashWrapper = _LodashWrapper, baseLodash = _baseLodash, isArray$5 = isArray_1, isObjectLike$3 = isObjectLike_1, wrapperClone = _wrapperClone;
53899
+ var objectProto$4 = Object.prototype;
53900
+ var hasOwnProperty$5 = objectProto$4.hasOwnProperty;
53745
53901
  function lodash$1(value) {
53746
- if (isObjectLike$2(value) && !isArray$5(value) && !(value instanceof LazyWrapper$1)) {
53902
+ if (isObjectLike$3(value) && !isArray$5(value) && !(value instanceof LazyWrapper$1)) {
53747
53903
  if (value instanceof LodashWrapper) {
53748
53904
  return value;
53749
53905
  }
53750
- if (hasOwnProperty$3.call(value, "__wrapped__")) {
53906
+ if (hasOwnProperty$5.call(value, "__wrapped__")) {
53751
53907
  return wrapperClone(value);
53752
53908
  }
53753
53909
  }
@@ -54204,353 +54360,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
54204
54360
  useNotifications,
54205
54361
  Notification
54206
54362
  }, Symbol.toStringTag, { value: "Module" }));
54207
- function cleanSessionCache(sessionToken) {
54208
- for (const storage of [sessionStorage, localStorage]) {
54209
- const keys2 = Object.keys(storage);
54210
- keys2.forEach((key) => {
54211
- if (key.startsWith("dara-session") && !key.startsWith(`dara-session-${sessionToken}`)) {
54212
- storage.removeItem(key);
54213
- }
54214
- });
54215
- }
54216
- }
54217
- const DARA_JWT_TOKEN = "dara-jwt-token";
54218
- function isEmbedded() {
54219
- var _a;
54220
- const frame = window.frameElement;
54221
- return frame && ((_a = frame == null ? void 0 : frame.dataset) == null ? void 0 : _a.daraPageId) !== "";
54222
- }
54223
- function getEmbedTokenKey() {
54224
- var _a;
54225
- const frame = window.frameElement;
54226
- return (_a = frame == null ? void 0 : frame.dataset) == null ? void 0 : _a.daraPageId;
54227
- }
54228
- function getEmbedToken() {
54229
- return localStorage.getItem(getEmbedTokenKey());
54230
- }
54231
- function getToken() {
54232
- if (isEmbedded()) {
54233
- const embedToken = getEmbedToken();
54234
- return embedToken;
54235
- }
54236
- return localStorage.getItem(DARA_JWT_TOKEN);
54237
- }
54238
- function getTokenKey() {
54239
- if (isEmbedded()) {
54240
- return getEmbedTokenKey();
54241
- }
54242
- return DARA_JWT_TOKEN;
54243
- }
54244
- var ComponentType = /* @__PURE__ */ ((ComponentType2) => {
54245
- ComponentType2["JS"] = "js";
54246
- ComponentType2["PY"] = "py";
54247
- return ComponentType2;
54248
- })(ComponentType || {});
54249
- function isRawString(instance) {
54250
- return instance.name === "RawString";
54251
- }
54252
- function isInvalidComponent(instance) {
54253
- return instance.name === "InvalidComponent";
54254
- }
54255
- var ConditionOperator = /* @__PURE__ */ ((ConditionOperator2) => {
54256
- ConditionOperator2["EQUAL"] = "equal";
54257
- ConditionOperator2["GREATER_EQUAL"] = "greater_equal";
54258
- ConditionOperator2["GREATER_THAN"] = "greater_than";
54259
- ConditionOperator2["LESS_EQUAL"] = "less_equal";
54260
- ConditionOperator2["LESS_THAN"] = "less_than";
54261
- ConditionOperator2["NOT_EQUAL"] = "not_equal";
54262
- ConditionOperator2["TRUTHY"] = "truthy";
54263
- return ConditionOperator2;
54264
- })(ConditionOperator || {});
54265
- function isVariable(variable) {
54266
- return variable && typeof variable == "object" && variable.hasOwnProperty("uid") && variable.hasOwnProperty("__typename") && variable.__typename.includes("Variable");
54267
- }
54268
- function isUrlVariable(variable) {
54269
- return isVariable(variable) && variable.__typename === "UrlVariable";
54270
- }
54271
- function isDerivedVariable(variable) {
54272
- return isVariable(variable) && variable.__typename === "DerivedVariable";
54273
- }
54274
- function isDataVariable(variable) {
54275
- return isVariable(variable) && variable.__typename === "DataVariable";
54276
- }
54277
- function isDerivedDataVariable(variable) {
54278
- return isVariable(variable) && variable.__typename === "DerivedDataVariable";
54279
- }
54280
- function isResolvedDerivedVariable(value) {
54281
- return value && typeof value === "object" && "values" in value && "type" in value && value.type === "derived" && "uid" in value;
54282
- }
54283
- function isResolvedDataVariable(value) {
54284
- return value && typeof value === "object" && "filters" in value && "type" in value && value.type === "data" && "uid" in value;
54285
- }
54286
- function isResolvedDerivedDataVariable(value) {
54287
- return value && typeof value === "object" && "filters" in value && "values" in value && "type" in value && value.type === "derived-data" && "uid" in value;
54288
- }
54289
- function isActionImpl(action) {
54290
- return action && typeof action === "object" && action.__typename === "ActionImpl";
54291
- }
54292
- function isJsComponent(component) {
54293
- return component.type === ComponentType.JS;
54294
- }
54295
- function isNull(value) {
54296
- return value === null;
54297
- }
54298
- var isNull_1 = isNull;
54299
- var Stack$1 = _Stack, baseIsEqual$1 = _baseIsEqual;
54300
- var COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
54301
- function baseIsMatch$1(object2, source, matchData, customizer) {
54302
- var index2 = matchData.length, length = index2, noCustomizer = !customizer;
54303
- if (object2 == null) {
54304
- return !length;
54305
- }
54306
- object2 = Object(object2);
54307
- while (index2--) {
54308
- var data = matchData[index2];
54309
- if (noCustomizer && data[2] ? data[1] !== object2[data[0]] : !(data[0] in object2)) {
54310
- return false;
54311
- }
54312
- }
54313
- while (++index2 < length) {
54314
- data = matchData[index2];
54315
- var key = data[0], objValue = object2[key], srcValue = data[1];
54316
- if (noCustomizer && data[2]) {
54317
- if (objValue === void 0 && !(key in object2)) {
54318
- return false;
54319
- }
54320
- } else {
54321
- var stack = new Stack$1();
54322
- if (customizer) {
54323
- var result = customizer(objValue, srcValue, key, object2, source, stack);
54324
- }
54325
- if (!(result === void 0 ? baseIsEqual$1(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack) : result)) {
54326
- return false;
54327
- }
54328
- }
54329
- }
54330
- return true;
54331
- }
54332
- var _baseIsMatch = baseIsMatch$1;
54333
- var isObject$3 = isObject_1;
54334
- function isStrictComparable$2(value) {
54335
- return value === value && !isObject$3(value);
54336
- }
54337
- var _isStrictComparable = isStrictComparable$2;
54338
- var isStrictComparable$1 = _isStrictComparable, keys$2 = keys_1;
54339
- function getMatchData$1(object2) {
54340
- var result = keys$2(object2), length = result.length;
54341
- while (length--) {
54342
- var key = result[length], value = object2[key];
54343
- result[length] = [key, value, isStrictComparable$1(value)];
54344
- }
54345
- return result;
54346
- }
54347
- var _getMatchData = getMatchData$1;
54348
- function matchesStrictComparable$2(key, srcValue) {
54349
- return function(object2) {
54350
- if (object2 == null) {
54351
- return false;
54352
- }
54353
- return object2[key] === srcValue && (srcValue !== void 0 || key in Object(object2));
54354
- };
54355
- }
54356
- var _matchesStrictComparable = matchesStrictComparable$2;
54357
- var baseIsMatch = _baseIsMatch, getMatchData = _getMatchData, matchesStrictComparable$1 = _matchesStrictComparable;
54358
- function baseMatches$1(source) {
54359
- var matchData = getMatchData(source);
54360
- if (matchData.length == 1 && matchData[0][2]) {
54361
- return matchesStrictComparable$1(matchData[0][0], matchData[0][1]);
54362
- }
54363
- return function(object2) {
54364
- return object2 === source || baseIsMatch(object2, source, matchData);
54365
- };
54366
- }
54367
- var _baseMatches = baseMatches$1;
54368
- var isArray$4 = isArray_1, isSymbol$1 = isSymbol_1;
54369
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
54370
- function isKey$3(value, object2) {
54371
- if (isArray$4(value)) {
54372
- return false;
54373
- }
54374
- var type = typeof value;
54375
- if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol$1(value)) {
54376
- return true;
54377
- }
54378
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object2 != null && value in Object(object2);
54379
- }
54380
- var _isKey = isKey$3;
54381
- var MapCache = _MapCache;
54382
- var FUNC_ERROR_TEXT$1 = "Expected a function";
54383
- function memoize$1(func, resolver) {
54384
- if (typeof func != "function" || resolver != null && typeof resolver != "function") {
54385
- throw new TypeError(FUNC_ERROR_TEXT$1);
54386
- }
54387
- var memoized = function() {
54388
- var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache2 = memoized.cache;
54389
- if (cache2.has(key)) {
54390
- return cache2.get(key);
54391
- }
54392
- var result = func.apply(this, args);
54393
- memoized.cache = cache2.set(key, result) || cache2;
54394
- return result;
54395
- };
54396
- memoized.cache = new (memoize$1.Cache || MapCache)();
54397
- return memoized;
54398
- }
54399
- memoize$1.Cache = MapCache;
54400
- var memoize_1 = memoize$1;
54401
- var memoize = memoize_1;
54402
- var MAX_MEMOIZE_SIZE = 500;
54403
- function memoizeCapped$1(func) {
54404
- var result = memoize(func, function(key) {
54405
- if (cache2.size === MAX_MEMOIZE_SIZE) {
54406
- cache2.clear();
54407
- }
54408
- return key;
54409
- });
54410
- var cache2 = result.cache;
54411
- return result;
54412
- }
54413
- var _memoizeCapped = memoizeCapped$1;
54414
- var memoizeCapped = _memoizeCapped;
54415
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
54416
- var reEscapeChar = /\\(\\)?/g;
54417
- var stringToPath$1 = memoizeCapped(function(string2) {
54418
- var result = [];
54419
- if (string2.charCodeAt(0) === 46) {
54420
- result.push("");
54421
- }
54422
- string2.replace(rePropName, function(match2, number2, quote, subString) {
54423
- result.push(quote ? subString.replace(reEscapeChar, "$1") : number2 || match2);
54424
- });
54425
- return result;
54426
- });
54427
- var _stringToPath = stringToPath$1;
54428
- var isArray$3 = isArray_1, isKey$2 = _isKey, stringToPath = _stringToPath, toString = toString_1;
54429
- function castPath$4(value, object2) {
54430
- if (isArray$3(value)) {
54431
- return value;
54432
- }
54433
- return isKey$2(value, object2) ? [value] : stringToPath(toString(value));
54434
- }
54435
- var _castPath = castPath$4;
54436
- var isSymbol = isSymbol_1;
54437
- var INFINITY = 1 / 0;
54438
- function toKey$5(value) {
54439
- if (typeof value == "string" || isSymbol(value)) {
54440
- return value;
54441
- }
54442
- var result = value + "";
54443
- return result == "0" && 1 / value == -INFINITY ? "-0" : result;
54444
- }
54445
- var _toKey = toKey$5;
54446
- var castPath$3 = _castPath, toKey$4 = _toKey;
54447
- function baseGet$3(object2, path) {
54448
- path = castPath$3(path, object2);
54449
- var index2 = 0, length = path.length;
54450
- while (object2 != null && index2 < length) {
54451
- object2 = object2[toKey$4(path[index2++])];
54452
- }
54453
- return index2 && index2 == length ? object2 : void 0;
54454
- }
54455
- var _baseGet = baseGet$3;
54456
- var baseGet$2 = _baseGet;
54457
- function get$1(object2, path, defaultValue) {
54458
- var result = object2 == null ? void 0 : baseGet$2(object2, path);
54459
- return result === void 0 ? defaultValue : result;
54460
- }
54461
- var get_1 = get$1;
54462
- function baseHasIn$1(object2, key) {
54463
- return object2 != null && key in Object(object2);
54464
- }
54465
- var _baseHasIn = baseHasIn$1;
54466
- var castPath$2 = _castPath, isArguments = isArguments_1, isArray$2 = isArray_1, isIndex$1 = _isIndex, isLength = isLength_1, toKey$3 = _toKey;
54467
- function hasPath$1(object2, path, hasFunc) {
54468
- path = castPath$2(path, object2);
54469
- var index2 = -1, length = path.length, result = false;
54470
- while (++index2 < length) {
54471
- var key = toKey$3(path[index2]);
54472
- if (!(result = object2 != null && hasFunc(object2, key))) {
54473
- break;
54474
- }
54475
- object2 = object2[key];
54476
- }
54477
- if (result || ++index2 != length) {
54478
- return result;
54479
- }
54480
- length = object2 == null ? 0 : object2.length;
54481
- return !!length && isLength(length) && isIndex$1(key, length) && (isArray$2(object2) || isArguments(object2));
54482
- }
54483
- var _hasPath = hasPath$1;
54484
- var baseHasIn = _baseHasIn, hasPath = _hasPath;
54485
- function hasIn$1(object2, path) {
54486
- return object2 != null && hasPath(object2, path, baseHasIn);
54487
- }
54488
- var hasIn_1 = hasIn$1;
54489
- var baseIsEqual = _baseIsEqual, get = get_1, hasIn = hasIn_1, isKey$1 = _isKey, isStrictComparable = _isStrictComparable, matchesStrictComparable = _matchesStrictComparable, toKey$2 = _toKey;
54490
- var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
54491
- function baseMatchesProperty$1(path, srcValue) {
54492
- if (isKey$1(path) && isStrictComparable(srcValue)) {
54493
- return matchesStrictComparable(toKey$2(path), srcValue);
54494
- }
54495
- return function(object2) {
54496
- var objValue = get(object2, path);
54497
- return objValue === void 0 && objValue === srcValue ? hasIn(object2, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
54498
- };
54499
- }
54500
- var _baseMatchesProperty = baseMatchesProperty$1;
54501
- function baseProperty$1(key) {
54502
- return function(object2) {
54503
- return object2 == null ? void 0 : object2[key];
54504
- };
54505
- }
54506
- var _baseProperty = baseProperty$1;
54507
- var baseGet$1 = _baseGet;
54508
- function basePropertyDeep$1(path) {
54509
- return function(object2) {
54510
- return baseGet$1(object2, path);
54511
- };
54512
- }
54513
- var _basePropertyDeep = basePropertyDeep$1;
54514
- var baseProperty = _baseProperty, basePropertyDeep = _basePropertyDeep, isKey = _isKey, toKey$1 = _toKey;
54515
- function property$1(path) {
54516
- return isKey(path) ? baseProperty(toKey$1(path)) : basePropertyDeep(path);
54517
- }
54518
- var property_1 = property$1;
54519
- var baseMatches = _baseMatches, baseMatchesProperty = _baseMatchesProperty, identity = identity_1, isArray$1 = isArray_1, property = property_1;
54520
- function baseIteratee$2(value) {
54521
- if (typeof value == "function") {
54522
- return value;
54523
- }
54524
- if (value == null) {
54525
- return identity;
54526
- }
54527
- if (typeof value == "object") {
54528
- return isArray$1(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
54529
- }
54530
- return property(value);
54531
- }
54532
- var _baseIteratee = baseIteratee$2;
54533
- var FUNC_ERROR_TEXT = "Expected a function";
54534
- function negate$1(predicate) {
54535
- if (typeof predicate != "function") {
54536
- throw new TypeError(FUNC_ERROR_TEXT);
54537
- }
54538
- return function() {
54539
- var args = arguments;
54540
- switch (args.length) {
54541
- case 0:
54542
- return !predicate.call(this);
54543
- case 1:
54544
- return !predicate.call(this, args[0]);
54545
- case 2:
54546
- return !predicate.call(this, args[0], args[1]);
54547
- case 3:
54548
- return !predicate.call(this, args[0], args[1], args[2]);
54549
- }
54550
- return !predicate.apply(this, args);
54551
- };
54552
- }
54553
- var negate_1 = negate$1;
54363
+ const directionCtx = React.createContext({ direction: "row" });
54364
+ const importersCtx = React.createContext({});
54554
54365
  var defineProperty = _defineProperty$1;
54555
54366
  function baseAssignValue$2(object2, key, value) {
54556
54367
  if (key == "__proto__" && defineProperty) {
@@ -54566,66 +54377,40 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
54566
54377
  }
54567
54378
  var _baseAssignValue = baseAssignValue$2;
54568
54379
  var baseAssignValue$1 = _baseAssignValue, eq = eq_1;
54569
- var objectProto$2 = Object.prototype;
54570
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
54380
+ var objectProto$3 = Object.prototype;
54381
+ var hasOwnProperty$4 = objectProto$3.hasOwnProperty;
54571
54382
  function assignValue$3(object2, key, value) {
54572
54383
  var objValue = object2[key];
54573
- if (!(hasOwnProperty$2.call(object2, key) && eq(objValue, value)) || value === void 0 && !(key in object2)) {
54384
+ if (!(hasOwnProperty$4.call(object2, key) && eq(objValue, value)) || value === void 0 && !(key in object2)) {
54574
54385
  baseAssignValue$1(object2, key, value);
54575
54386
  }
54576
54387
  }
54577
54388
  var _assignValue = assignValue$3;
54578
- var assignValue$2 = _assignValue, castPath$1 = _castPath, isIndex = _isIndex, isObject$2 = isObject_1, toKey = _toKey;
54579
- function baseSet$1(object2, path, value, customizer) {
54580
- if (!isObject$2(object2)) {
54581
- return object2;
54582
- }
54583
- path = castPath$1(path, object2);
54584
- var index2 = -1, length = path.length, lastIndex = length - 1, nested = object2;
54585
- while (nested != null && ++index2 < length) {
54586
- var key = toKey(path[index2]), newValue = value;
54587
- if (key === "__proto__" || key === "constructor" || key === "prototype") {
54588
- return object2;
54389
+ var assignValue$2 = _assignValue, baseAssignValue = _baseAssignValue;
54390
+ function copyObject$4(source, props, object2, customizer) {
54391
+ var isNew = !object2;
54392
+ object2 || (object2 = {});
54393
+ var index2 = -1, length = props.length;
54394
+ while (++index2 < length) {
54395
+ var key = props[index2];
54396
+ var newValue = customizer ? customizer(object2[key], source[key], key, object2, source) : void 0;
54397
+ if (newValue === void 0) {
54398
+ newValue = source[key];
54589
54399
  }
54590
- if (index2 != lastIndex) {
54591
- var objValue = nested[key];
54592
- newValue = customizer ? customizer(objValue, key, nested) : void 0;
54593
- if (newValue === void 0) {
54594
- newValue = isObject$2(objValue) ? objValue : isIndex(path[index2 + 1]) ? [] : {};
54595
- }
54400
+ if (isNew) {
54401
+ baseAssignValue(object2, key, newValue);
54402
+ } else {
54403
+ assignValue$2(object2, key, newValue);
54596
54404
  }
54597
- assignValue$2(nested, key, newValue);
54598
- nested = nested[key];
54599
54405
  }
54600
54406
  return object2;
54601
54407
  }
54602
- var _baseSet = baseSet$1;
54603
- var baseGet = _baseGet, baseSet = _baseSet, castPath = _castPath;
54604
- function basePickBy$1(object2, paths, predicate) {
54605
- var index2 = -1, length = paths.length, result = {};
54606
- while (++index2 < length) {
54607
- var path = paths[index2], value = baseGet(object2, path);
54608
- if (predicate(value, path)) {
54609
- baseSet(result, castPath(path, object2), value);
54610
- }
54611
- }
54612
- return result;
54408
+ var _copyObject = copyObject$4;
54409
+ var copyObject$3 = _copyObject, keys$2 = keys_1;
54410
+ function baseAssign$1(object2, source) {
54411
+ return object2 && copyObject$3(source, keys$2(source), object2);
54613
54412
  }
54614
- var _basePickBy = basePickBy$1;
54615
- var overArg = _overArg;
54616
- var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
54617
- var _getPrototype = getPrototype$2;
54618
- var arrayPush = _arrayPush, getPrototype$1 = _getPrototype, getSymbols$1 = _getSymbols, stubArray = stubArray_1;
54619
- var nativeGetSymbols = Object.getOwnPropertySymbols;
54620
- var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function(object2) {
54621
- var result = [];
54622
- while (object2) {
54623
- arrayPush(result, getSymbols$1(object2));
54624
- object2 = getPrototype$1(object2);
54625
- }
54626
- return result;
54627
- };
54628
- var _getSymbolsIn = getSymbolsIn$2;
54413
+ var _baseAssign = baseAssign$1;
54629
54414
  function nativeKeysIn$1(object2) {
54630
54415
  var result = [];
54631
54416
  if (object2 != null) {
@@ -54636,16 +54421,16 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
54636
54421
  return result;
54637
54422
  }
54638
54423
  var _nativeKeysIn = nativeKeysIn$1;
54639
- var isObject$1 = isObject_1, isPrototype$1 = _isPrototype, nativeKeysIn = _nativeKeysIn;
54640
- var objectProto$1 = Object.prototype;
54641
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
54424
+ var isObject$3 = isObject_1, isPrototype$1 = _isPrototype, nativeKeysIn = _nativeKeysIn;
54425
+ var objectProto$2 = Object.prototype;
54426
+ var hasOwnProperty$3 = objectProto$2.hasOwnProperty;
54642
54427
  function baseKeysIn$1(object2) {
54643
- if (!isObject$1(object2)) {
54428
+ if (!isObject$3(object2)) {
54644
54429
  return nativeKeysIn(object2);
54645
54430
  }
54646
54431
  var isProto = isPrototype$1(object2), result = [];
54647
54432
  for (var key in object2) {
54648
- if (!(key == "constructor" && (isProto || !hasOwnProperty$1.call(object2, key)))) {
54433
+ if (!(key == "constructor" && (isProto || !hasOwnProperty$3.call(object2, key)))) {
54649
54434
  result.push(key);
54650
54435
  }
54651
54436
  }
@@ -54657,90 +54442,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
54657
54442
  return isArrayLike(object2) ? arrayLikeKeys(object2, true) : baseKeysIn(object2);
54658
54443
  }
54659
54444
  var keysIn_1 = keysIn$3;
54660
- var baseGetAllKeys = _baseGetAllKeys, getSymbolsIn$1 = _getSymbolsIn, keysIn$2 = keysIn_1;
54661
- function getAllKeysIn$2(object2) {
54662
- return baseGetAllKeys(object2, keysIn$2, getSymbolsIn$1);
54663
- }
54664
- var _getAllKeysIn = getAllKeysIn$2;
54665
- var arrayMap = _arrayMap, baseIteratee$1 = _baseIteratee, basePickBy = _basePickBy, getAllKeysIn$1 = _getAllKeysIn;
54666
- function pickBy$1(object2, predicate) {
54667
- if (object2 == null) {
54668
- return {};
54669
- }
54670
- var props = arrayMap(getAllKeysIn$1(object2), function(prop) {
54671
- return [prop];
54672
- });
54673
- predicate = baseIteratee$1(predicate);
54674
- return basePickBy(object2, props, function(value, path) {
54675
- return predicate(value, path[0]);
54676
- });
54677
- }
54678
- var pickBy_1 = pickBy$1;
54679
- var baseIteratee = _baseIteratee, negate = negate_1, pickBy = pickBy_1;
54680
- function omitBy(object2, predicate) {
54681
- return pickBy(object2, negate(baseIteratee(predicate)));
54682
- }
54683
- var omitBy_1 = omitBy;
54684
- function isTheme(configTheme) {
54685
- return typeof configTheme !== "string";
54686
- }
54687
- function resolveTheme(configTheme, baseTheme) {
54688
- if (!configTheme || configTheme === "light") {
54689
- return theme;
54690
- }
54691
- if (configTheme === "dark") {
54692
- return darkTheme;
54693
- }
54694
- if (isTheme(configTheme)) {
54695
- const original = baseTheme === "dark" ? darkTheme : theme;
54696
- return {
54697
- ...original,
54698
- ...omitBy_1(configTheme, isNull_1),
54699
- colors: {
54700
- ...original.colors,
54701
- ...omitBy_1(configTheme.colors, isNull_1)
54702
- },
54703
- font: {
54704
- ...original.font,
54705
- ...omitBy_1(configTheme.font, isNull_1)
54706
- },
54707
- shadow: {
54708
- ...original.shadow,
54709
- ...omitBy_1(configTheme.shadow, isNull_1)
54710
- }
54711
- };
54712
- }
54713
- console.warn("No valid theme was found. Defaulting to light theme.");
54714
- return theme;
54715
- }
54716
- var assignValue$1 = _assignValue, baseAssignValue = _baseAssignValue;
54717
- function copyObject$4(source, props, object2, customizer) {
54718
- var isNew = !object2;
54719
- object2 || (object2 = {});
54720
- var index2 = -1, length = props.length;
54721
- while (++index2 < length) {
54722
- var key = props[index2];
54723
- var newValue = customizer ? customizer(object2[key], source[key], key, object2, source) : void 0;
54724
- if (newValue === void 0) {
54725
- newValue = source[key];
54726
- }
54727
- if (isNew) {
54728
- baseAssignValue(object2, key, newValue);
54729
- } else {
54730
- assignValue$1(object2, key, newValue);
54731
- }
54732
- }
54733
- return object2;
54734
- }
54735
- var _copyObject = copyObject$4;
54736
- var copyObject$3 = _copyObject, keys$1 = keys_1;
54737
- function baseAssign$1(object2, source) {
54738
- return object2 && copyObject$3(source, keys$1(source), object2);
54739
- }
54740
- var _baseAssign = baseAssign$1;
54741
- var copyObject$2 = _copyObject, keysIn$1 = keysIn_1;
54445
+ var copyObject$2 = _copyObject, keysIn$2 = keysIn_1;
54742
54446
  function baseAssignIn$1(object2, source) {
54743
- return object2 && copyObject$2(source, keysIn$1(source), object2);
54447
+ return object2 && copyObject$2(source, keysIn$2(source), object2);
54744
54448
  }
54745
54449
  var _baseAssignIn = baseAssignIn$1;
54746
54450
  var _cloneBuffer = { exports: {} };
@@ -54760,21 +54464,40 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
54760
54464
  }
54761
54465
  module2.exports = cloneBuffer2;
54762
54466
  })(_cloneBuffer, _cloneBuffer.exports);
54763
- var copyObject$1 = _copyObject, getSymbols = _getSymbols;
54467
+ var copyObject$1 = _copyObject, getSymbols$1 = _getSymbols;
54764
54468
  function copySymbols$1(source, object2) {
54765
- return copyObject$1(source, getSymbols(source), object2);
54469
+ return copyObject$1(source, getSymbols$1(source), object2);
54766
54470
  }
54767
54471
  var _copySymbols = copySymbols$1;
54768
- var copyObject = _copyObject, getSymbolsIn = _getSymbolsIn;
54472
+ var overArg = _overArg;
54473
+ var getPrototype$3 = overArg(Object.getPrototypeOf, Object);
54474
+ var _getPrototype = getPrototype$3;
54475
+ var arrayPush = _arrayPush, getPrototype$2 = _getPrototype, getSymbols = _getSymbols, stubArray = stubArray_1;
54476
+ var nativeGetSymbols = Object.getOwnPropertySymbols;
54477
+ var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function(object2) {
54478
+ var result = [];
54479
+ while (object2) {
54480
+ arrayPush(result, getSymbols(object2));
54481
+ object2 = getPrototype$2(object2);
54482
+ }
54483
+ return result;
54484
+ };
54485
+ var _getSymbolsIn = getSymbolsIn$2;
54486
+ var copyObject = _copyObject, getSymbolsIn$1 = _getSymbolsIn;
54769
54487
  function copySymbolsIn$1(source, object2) {
54770
- return copyObject(source, getSymbolsIn(source), object2);
54488
+ return copyObject(source, getSymbolsIn$1(source), object2);
54771
54489
  }
54772
54490
  var _copySymbolsIn = copySymbolsIn$1;
54773
- var objectProto = Object.prototype;
54774
- var hasOwnProperty = objectProto.hasOwnProperty;
54491
+ var baseGetAllKeys = _baseGetAllKeys, getSymbolsIn = _getSymbolsIn, keysIn$1 = keysIn_1;
54492
+ function getAllKeysIn$2(object2) {
54493
+ return baseGetAllKeys(object2, keysIn$1, getSymbolsIn);
54494
+ }
54495
+ var _getAllKeysIn = getAllKeysIn$2;
54496
+ var objectProto$1 = Object.prototype;
54497
+ var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
54775
54498
  function initCloneArray$1(array2) {
54776
54499
  var length = array2.length, result = new array2.constructor(length);
54777
- if (length && typeof array2[0] == "string" && hasOwnProperty.call(array2, "index")) {
54500
+ if (length && typeof array2[0] == "string" && hasOwnProperty$2.call(array2, "index")) {
54778
54501
  result.index = array2.index;
54779
54502
  result.input = array2.input;
54780
54503
  }
@@ -54850,37 +54573,37 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
54850
54573
  }
54851
54574
  }
54852
54575
  var _initCloneByTag = initCloneByTag$1;
54853
- var baseCreate = _baseCreate, getPrototype = _getPrototype, isPrototype = _isPrototype;
54576
+ var baseCreate = _baseCreate, getPrototype$1 = _getPrototype, isPrototype = _isPrototype;
54854
54577
  function initCloneObject$1(object2) {
54855
- return typeof object2.constructor == "function" && !isPrototype(object2) ? baseCreate(getPrototype(object2)) : {};
54578
+ return typeof object2.constructor == "function" && !isPrototype(object2) ? baseCreate(getPrototype$1(object2)) : {};
54856
54579
  }
54857
54580
  var _initCloneObject = initCloneObject$1;
54858
- var getTag$2 = _getTag, isObjectLike$1 = isObjectLike_1;
54581
+ var getTag$2 = _getTag, isObjectLike$2 = isObjectLike_1;
54859
54582
  var mapTag$1 = "[object Map]";
54860
54583
  function baseIsMap$1(value) {
54861
- return isObjectLike$1(value) && getTag$2(value) == mapTag$1;
54584
+ return isObjectLike$2(value) && getTag$2(value) == mapTag$1;
54862
54585
  }
54863
54586
  var _baseIsMap = baseIsMap$1;
54864
54587
  var baseIsMap = _baseIsMap, baseUnary$1 = _baseUnary, nodeUtil$1 = _nodeUtil.exports;
54865
54588
  var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
54866
54589
  var isMap$1 = nodeIsMap ? baseUnary$1(nodeIsMap) : baseIsMap;
54867
54590
  var isMap_1 = isMap$1;
54868
- var getTag$1 = _getTag, isObjectLike = isObjectLike_1;
54591
+ var getTag$1 = _getTag, isObjectLike$1 = isObjectLike_1;
54869
54592
  var setTag$1 = "[object Set]";
54870
54593
  function baseIsSet$1(value) {
54871
- return isObjectLike(value) && getTag$1(value) == setTag$1;
54594
+ return isObjectLike$1(value) && getTag$1(value) == setTag$1;
54872
54595
  }
54873
54596
  var _baseIsSet = baseIsSet$1;
54874
54597
  var baseIsSet = _baseIsSet, baseUnary = _baseUnary, nodeUtil = _nodeUtil.exports;
54875
54598
  var nodeIsSet = nodeUtil && nodeUtil.isSet;
54876
54599
  var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
54877
54600
  var isSet_1 = isSet$1;
54878
- var Stack = _Stack, arrayEach = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, baseAssignIn = _baseAssignIn, cloneBuffer = _cloneBuffer.exports, copyArray = _copyArray, copySymbols = _copySymbols, copySymbolsIn = _copySymbolsIn, getAllKeys = _getAllKeys, getAllKeysIn = _getAllKeysIn, getTag = _getTag, initCloneArray = _initCloneArray, initCloneByTag = _initCloneByTag, initCloneObject = _initCloneObject, isArray = isArray_1, isBuffer = isBuffer$3.exports, isMap = isMap_1, isObject = isObject_1, isSet = isSet_1, keys = keys_1, keysIn = keysIn_1;
54601
+ var Stack$1 = _Stack, arrayEach = _arrayEach, assignValue$1 = _assignValue, baseAssign = _baseAssign, baseAssignIn = _baseAssignIn, cloneBuffer = _cloneBuffer.exports, copyArray = _copyArray, copySymbols = _copySymbols, copySymbolsIn = _copySymbolsIn, getAllKeys = _getAllKeys, getAllKeysIn$1 = _getAllKeysIn, getTag = _getTag, initCloneArray = _initCloneArray, initCloneByTag = _initCloneByTag, initCloneObject = _initCloneObject, isArray$4 = isArray_1, isBuffer = isBuffer$3.exports, isMap = isMap_1, isObject$2 = isObject_1, isSet = isSet_1, keys$1 = keys_1, keysIn = keysIn_1;
54879
54602
  var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$2 = 4;
54880
- var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
54603
+ var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag$1 = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
54881
54604
  var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
54882
54605
  var cloneableTags = {};
54883
- cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
54606
+ cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag$1] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
54884
54607
  cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
54885
54608
  function baseClone$2(value, bitmask, customizer, key, object2, stack) {
54886
54609
  var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$2;
@@ -54890,10 +54613,10 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
54890
54613
  if (result !== void 0) {
54891
54614
  return result;
54892
54615
  }
54893
- if (!isObject(value)) {
54616
+ if (!isObject$2(value)) {
54894
54617
  return value;
54895
54618
  }
54896
- var isArr = isArray(value);
54619
+ var isArr = isArray$4(value);
54897
54620
  if (isArr) {
54898
54621
  result = initCloneArray(value);
54899
54622
  if (!isDeep) {
@@ -54904,7 +54627,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
54904
54627
  if (isBuffer(value)) {
54905
54628
  return cloneBuffer(value, isDeep);
54906
54629
  }
54907
- if (tag == objectTag || tag == argsTag || isFunc && !object2) {
54630
+ if (tag == objectTag$1 || tag == argsTag || isFunc && !object2) {
54908
54631
  result = isFlat || isFunc ? {} : initCloneObject(value);
54909
54632
  if (!isDeep) {
54910
54633
  return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
@@ -54916,7 +54639,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
54916
54639
  result = initCloneByTag(value, tag, isDeep);
54917
54640
  }
54918
54641
  }
54919
- stack || (stack = new Stack());
54642
+ stack || (stack = new Stack$1());
54920
54643
  var stacked = stack.get(value);
54921
54644
  if (stacked) {
54922
54645
  return stacked;
@@ -54931,14 +54654,14 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
54931
54654
  result.set(key2, baseClone$2(subValue, bitmask, customizer, key2, value, stack));
54932
54655
  });
54933
54656
  }
54934
- var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys;
54657
+ var keysFunc = isFull ? isFlat ? getAllKeysIn$1 : getAllKeys : isFlat ? keysIn : keys$1;
54935
54658
  var props = isArr ? void 0 : keysFunc(value);
54936
54659
  arrayEach(props || value, function(subValue, key2) {
54937
54660
  if (props) {
54938
54661
  key2 = subValue;
54939
54662
  subValue = value[key2];
54940
54663
  }
54941
- assignValue(result, key2, baseClone$2(subValue, bitmask, customizer, key2, value, stack));
54664
+ assignValue$1(result, key2, baseClone$2(subValue, bitmask, customizer, key2, value, stack));
54942
54665
  });
54943
54666
  return result;
54944
54667
  }
@@ -55014,8 +54737,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
55014
54737
  __privateGet(this, _subscribers)[key].push(callback);
55015
54738
  window.addEventListener("storage", subFunc);
55016
54739
  return () => {
54740
+ var _a;
55017
54741
  window.removeEventListener("storage", subFunc);
55018
- __privateGet(this, _subscribers)[key].splice(
54742
+ (_a = __privateGet(this, _subscribers)[key]) == null ? void 0 : _a.splice(
55019
54743
  __privateGet(this, _subscribers)[key].findIndex((val) => val === callback),
55020
54744
  1
55021
54745
  );
@@ -55025,6 +54749,37 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
55025
54749
  _locks = new WeakMap();
55026
54750
  _subscribers = new WeakMap();
55027
54751
  const store = new GlobalStore();
54752
+ const DARA_JWT_TOKEN = "dara-jwt-token";
54753
+ function isEmbedded() {
54754
+ var _a;
54755
+ const frame = window.frameElement;
54756
+ return frame && ((_a = frame == null ? void 0 : frame.dataset) == null ? void 0 : _a.daraPageId) !== "";
54757
+ }
54758
+ function getEmbedTokenKey() {
54759
+ var _a;
54760
+ const frame = window.frameElement;
54761
+ return (_a = frame == null ? void 0 : frame.dataset) == null ? void 0 : _a.daraPageId;
54762
+ }
54763
+ function getEmbedToken() {
54764
+ const key = getEmbedTokenKey();
54765
+ if (!key) {
54766
+ return null;
54767
+ }
54768
+ return localStorage.getItem(key);
54769
+ }
54770
+ function getToken() {
54771
+ if (isEmbedded()) {
54772
+ const embedToken = getEmbedToken();
54773
+ return embedToken;
54774
+ }
54775
+ return localStorage.getItem(DARA_JWT_TOKEN);
54776
+ }
54777
+ function getTokenKey() {
54778
+ if (isEmbedded()) {
54779
+ return getEmbedTokenKey();
54780
+ }
54781
+ return DARA_JWT_TOKEN;
54782
+ }
55028
54783
  class RequestExtrasSerializable {
55029
54784
  constructor(extras) {
55030
54785
  __publicField(this, "extras");
@@ -55176,6 +54931,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
55176
54931
  } catch (e2) {
55177
54932
  console.error("Failed to revoke session", e2);
55178
54933
  }
54934
+ return null;
55179
54935
  }
55180
54936
  function resolveReferrer() {
55181
54937
  if (!window.dara.base_url) {
@@ -55192,7 +54948,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
55192
54948
  async function handleAuthErrors(res, toLogin = false, ignoreErrors = null) {
55193
54949
  var _a;
55194
54950
  const content = await res.clone().json();
55195
- if (isAuthenticationError(content == null ? void 0 : content.detail) && !shouldIgnoreError(content == null ? void 0 : content.detail, ignoreErrors)) {
54951
+ if (isAuthenticationError(content == null ? void 0 : content.detail) && !shouldIgnoreError(content == null ? void 0 : content.detail, ignoreErrors != null ? ignoreErrors : [])) {
55196
54952
  localStorage.removeItem(getTokenKey());
55197
54953
  const queryParams = new URLSearchParams(window.location.search);
55198
54954
  const referrer = (_a = queryParams.get("referrer")) != null ? _a : resolveReferrer();
@@ -55236,6 +54992,63 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
55236
54992
  });
55237
54993
  return res.ok;
55238
54994
  }
54995
+ var ComponentType = /* @__PURE__ */ ((ComponentType2) => {
54996
+ ComponentType2["JS"] = "js";
54997
+ ComponentType2["PY"] = "py";
54998
+ return ComponentType2;
54999
+ })(ComponentType || {});
55000
+ function isRawString(instance) {
55001
+ return instance.name === "RawString";
55002
+ }
55003
+ function isInvalidComponent(instance) {
55004
+ return instance.name === "InvalidComponent";
55005
+ }
55006
+ var ConditionOperator = /* @__PURE__ */ ((ConditionOperator2) => {
55007
+ ConditionOperator2["EQUAL"] = "equal";
55008
+ ConditionOperator2["GREATER_EQUAL"] = "greater_equal";
55009
+ ConditionOperator2["GREATER_THAN"] = "greater_than";
55010
+ ConditionOperator2["LESS_EQUAL"] = "less_equal";
55011
+ ConditionOperator2["LESS_THAN"] = "less_than";
55012
+ ConditionOperator2["NOT_EQUAL"] = "not_equal";
55013
+ ConditionOperator2["TRUTHY"] = "truthy";
55014
+ return ConditionOperator2;
55015
+ })(ConditionOperator || {});
55016
+ class UserError extends Error {
55017
+ }
55018
+ function isVariable(variable) {
55019
+ return variable && typeof variable == "object" && variable.hasOwnProperty("uid") && variable.hasOwnProperty("__typename") && variable.__typename.includes("Variable");
55020
+ }
55021
+ function isUrlVariable(variable) {
55022
+ return isVariable(variable) && variable.__typename === "UrlVariable";
55023
+ }
55024
+ function isDerivedVariable(variable) {
55025
+ return isVariable(variable) && variable.__typename === "DerivedVariable";
55026
+ }
55027
+ function isDataVariable(variable) {
55028
+ return isVariable(variable) && variable.__typename === "DataVariable";
55029
+ }
55030
+ function isDerivedDataVariable(variable) {
55031
+ return isVariable(variable) && variable.__typename === "DerivedDataVariable";
55032
+ }
55033
+ function isLoopVariable(variable) {
55034
+ return variable && typeof variable == "object" && variable.hasOwnProperty("uid") && variable.hasOwnProperty("__typename") && variable.__typename === "LoopVariable";
55035
+ }
55036
+ function isResolvedDerivedVariable(value) {
55037
+ return value && typeof value === "object" && "values" in value && "type" in value && value.type === "derived" && "uid" in value;
55038
+ }
55039
+ function isResolvedDataVariable(value) {
55040
+ return value && typeof value === "object" && "filters" in value && "type" in value && value.type === "data" && "uid" in value;
55041
+ }
55042
+ function isResolvedDerivedDataVariable(value) {
55043
+ return value && typeof value === "object" && "filters" in value && "values" in value && "type" in value && value.type === "derived-data" && "uid" in value;
55044
+ }
55045
+ function isActionImpl(action) {
55046
+ return action && typeof action === "object" && action.__typename === "ActionImpl";
55047
+ }
55048
+ function isAnnotatedAction(action) {
55049
+ return action && "uid" in action && "definition_uid" in action && "dynamic_kwargs" in action;
55050
+ }
55051
+ const isPyComponent = (value) => lodash$2.exports.isObject(value) && "props" in value && lodash$2.exports.isObject(value.props) && "func_name" in value.props && "dynamic_kwargs" in value.props;
55239
55052
  function commonjsRequire(path) {
55240
55053
  throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
55241
55054
  }
@@ -56278,8 +56091,6 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
56278
56091
  await validateResponse(res, `Failed to cancel task with id: ${taskId}`);
56279
56092
  return true;
56280
56093
  }
56281
- const directionCtx = React.createContext({ direction: "row" });
56282
- const importersCtx = React.createContext({});
56283
56094
  const dataRegistry = /* @__PURE__ */ new Map();
56284
56095
  const atomRegistry = /* @__PURE__ */ new Map();
56285
56096
  const atomFamilyRegistry = /* @__PURE__ */ new Map();
@@ -56288,10 +56099,14 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
56288
56099
  const selectorFamilyMembersRegistry = /* @__PURE__ */ new Map();
56289
56100
  const depsRegistry = /* @__PURE__ */ new Map();
56290
56101
  function getRegistryKey(variable, type) {
56291
- return `${getUniqueIdentifier(variable)}-${type}`;
56102
+ var _a;
56103
+ let extras = "";
56104
+ if (isDerivedVariable(variable)) {
56105
+ extras = (_a = variable.loop_instance_uid) != null ? _a : "";
56106
+ }
56107
+ return `${getUniqueIdentifier(variable)}-${type}-${extras}`;
56292
56108
  }
56293
56109
  function isRegistered(variable) {
56294
- var _a;
56295
56110
  if (!isVariable(variable)) {
56296
56111
  return false;
56297
56112
  }
@@ -56301,7 +56116,10 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
56301
56116
  return true;
56302
56117
  }
56303
56118
  const family = atomFamilyRegistry.get(variable.uid);
56304
- return ((_a = atomFamilyMembersRegistry.get(family)) == null ? void 0 : _a.size) > 0;
56119
+ if (!family) {
56120
+ return false;
56121
+ }
56122
+ return atomFamilyMembersRegistry.get(family).size > 0;
56305
56123
  }
56306
56124
  case "UrlVariable":
56307
56125
  case "DataVariable":
@@ -56323,7 +56141,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
56323
56141
  const tasksRef = React__namespace.useRef(tasks != null ? tasks : /* @__PURE__ */ new Set());
56324
56142
  const mapRef = React__namespace.useRef(variableTaskMap != null ? variableTaskMap : /* @__PURE__ */ new Map());
56325
56143
  const extras = useRequestExtras();
56326
- const extrasRef = React__namespace.useRef();
56144
+ const extrasRef = React__namespace.useRef(extras);
56327
56145
  extrasRef.current = extras;
56328
56146
  const refreshSelector = Recoil_index_31(({ set: set2 }) => (key) => {
56329
56147
  set2(atomRegistry.get(key), (prev) => ({ ...prev, inc: prev.inc + 1 }));
@@ -56336,7 +56154,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
56336
56154
  if (taskToCancel) {
56337
56155
  cancelTask(runningTask, extrasRef.current);
56338
56156
  tasksRef.current.delete(runningTask);
56339
- refreshSelector(taskToCancel.triggerKey);
56157
+ if (taskToCancel.triggerKey) {
56158
+ refreshSelector(taskToCancel.triggerKey);
56159
+ }
56340
56160
  }
56341
56161
  }
56342
56162
  }
@@ -56366,17 +56186,27 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
56366
56186
  const hasRunningTasks = React__namespace.useCallback(() => {
56367
56187
  return tasksRef.current.size > 0;
56368
56188
  }, []);
56369
- return /* @__PURE__ */ React__namespace.createElement(GlobalTaskCtx.Provider, { value: { cleanupRunningTasks, endTask, getVariableTasks, hasRunningTasks, startTask } }, children);
56189
+ const value = React__namespace.useMemo(
56190
+ () => ({
56191
+ cleanupRunningTasks,
56192
+ endTask,
56193
+ getVariableTasks,
56194
+ hasRunningTasks,
56195
+ startTask
56196
+ }),
56197
+ [cleanupRunningTasks, endTask, getVariableTasks, hasRunningTasks, startTask]
56198
+ );
56199
+ return /* @__PURE__ */ React__namespace.createElement(GlobalTaskCtx.Provider, { value }, children);
56370
56200
  }
56371
56201
  function useTaskContext() {
56372
56202
  const taskCtx = React__namespace.useContext(GlobalTaskCtx);
56373
- if (taskCtx === void 0) {
56203
+ if (!taskCtx) {
56374
56204
  throw new Error("useTaskContext must be used within GlobalTaskProvider");
56375
56205
  }
56376
56206
  return taskCtx;
56377
56207
  }
56378
56208
  const variablesCtx = React__namespace.createContext(null);
56379
- const websocketCtx = React.createContext({});
56209
+ const websocketCtx = React.createContext({ client: void 0 });
56380
56210
  const registriesCtx = React.createContext({
56381
56211
  actionRegistry: {},
56382
56212
  componentRegistry: {},
@@ -56384,6 +56214,373 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
56384
56214
  });
56385
56215
  const displayCtx = React.createContext({ component: null, direction: "horizontal" });
56386
56216
  const fallbackCtx = React__namespace.createContext(null);
56217
+ function useFallbackCtx() {
56218
+ const ctx = React__namespace.useContext(fallbackCtx);
56219
+ if (!ctx) {
56220
+ throw new Error("useFallback must be used within FallbackCtx");
56221
+ }
56222
+ return ctx;
56223
+ }
56224
+ function cleanSessionCache(sessionToken) {
56225
+ for (const storage of [sessionStorage, localStorage]) {
56226
+ const keys2 = Object.keys(storage);
56227
+ keys2.forEach((key) => {
56228
+ if (key.startsWith("dara-session") && !key.startsWith(`dara-session-${sessionToken}`)) {
56229
+ storage.removeItem(key);
56230
+ }
56231
+ });
56232
+ }
56233
+ }
56234
+ function isJsComponent(component) {
56235
+ return component.type === ComponentType.JS;
56236
+ }
56237
+ function isNull(value) {
56238
+ return value === null;
56239
+ }
56240
+ var isNull_1 = isNull;
56241
+ var Stack = _Stack, baseIsEqual$1 = _baseIsEqual;
56242
+ var COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
56243
+ function baseIsMatch$1(object2, source, matchData, customizer) {
56244
+ var index2 = matchData.length, length = index2, noCustomizer = !customizer;
56245
+ if (object2 == null) {
56246
+ return !length;
56247
+ }
56248
+ object2 = Object(object2);
56249
+ while (index2--) {
56250
+ var data = matchData[index2];
56251
+ if (noCustomizer && data[2] ? data[1] !== object2[data[0]] : !(data[0] in object2)) {
56252
+ return false;
56253
+ }
56254
+ }
56255
+ while (++index2 < length) {
56256
+ data = matchData[index2];
56257
+ var key = data[0], objValue = object2[key], srcValue = data[1];
56258
+ if (noCustomizer && data[2]) {
56259
+ if (objValue === void 0 && !(key in object2)) {
56260
+ return false;
56261
+ }
56262
+ } else {
56263
+ var stack = new Stack();
56264
+ if (customizer) {
56265
+ var result = customizer(objValue, srcValue, key, object2, source, stack);
56266
+ }
56267
+ if (!(result === void 0 ? baseIsEqual$1(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack) : result)) {
56268
+ return false;
56269
+ }
56270
+ }
56271
+ }
56272
+ return true;
56273
+ }
56274
+ var _baseIsMatch = baseIsMatch$1;
56275
+ var isObject$1 = isObject_1;
56276
+ function isStrictComparable$2(value) {
56277
+ return value === value && !isObject$1(value);
56278
+ }
56279
+ var _isStrictComparable = isStrictComparable$2;
56280
+ var isStrictComparable$1 = _isStrictComparable, keys = keys_1;
56281
+ function getMatchData$1(object2) {
56282
+ var result = keys(object2), length = result.length;
56283
+ while (length--) {
56284
+ var key = result[length], value = object2[key];
56285
+ result[length] = [key, value, isStrictComparable$1(value)];
56286
+ }
56287
+ return result;
56288
+ }
56289
+ var _getMatchData = getMatchData$1;
56290
+ function matchesStrictComparable$2(key, srcValue) {
56291
+ return function(object2) {
56292
+ if (object2 == null) {
56293
+ return false;
56294
+ }
56295
+ return object2[key] === srcValue && (srcValue !== void 0 || key in Object(object2));
56296
+ };
56297
+ }
56298
+ var _matchesStrictComparable = matchesStrictComparable$2;
56299
+ var baseIsMatch = _baseIsMatch, getMatchData = _getMatchData, matchesStrictComparable$1 = _matchesStrictComparable;
56300
+ function baseMatches$1(source) {
56301
+ var matchData = getMatchData(source);
56302
+ if (matchData.length == 1 && matchData[0][2]) {
56303
+ return matchesStrictComparable$1(matchData[0][0], matchData[0][1]);
56304
+ }
56305
+ return function(object2) {
56306
+ return object2 === source || baseIsMatch(object2, source, matchData);
56307
+ };
56308
+ }
56309
+ var _baseMatches = baseMatches$1;
56310
+ var isArray$3 = isArray_1, isSymbol$1 = isSymbol_1;
56311
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
56312
+ function isKey$3(value, object2) {
56313
+ if (isArray$3(value)) {
56314
+ return false;
56315
+ }
56316
+ var type = typeof value;
56317
+ if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol$1(value)) {
56318
+ return true;
56319
+ }
56320
+ return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object2 != null && value in Object(object2);
56321
+ }
56322
+ var _isKey = isKey$3;
56323
+ var MapCache = _MapCache;
56324
+ var FUNC_ERROR_TEXT$1 = "Expected a function";
56325
+ function memoize$1(func, resolver) {
56326
+ if (typeof func != "function" || resolver != null && typeof resolver != "function") {
56327
+ throw new TypeError(FUNC_ERROR_TEXT$1);
56328
+ }
56329
+ var memoized = function() {
56330
+ var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache2 = memoized.cache;
56331
+ if (cache2.has(key)) {
56332
+ return cache2.get(key);
56333
+ }
56334
+ var result = func.apply(this, args);
56335
+ memoized.cache = cache2.set(key, result) || cache2;
56336
+ return result;
56337
+ };
56338
+ memoized.cache = new (memoize$1.Cache || MapCache)();
56339
+ return memoized;
56340
+ }
56341
+ memoize$1.Cache = MapCache;
56342
+ var memoize_1 = memoize$1;
56343
+ var memoize = memoize_1;
56344
+ var MAX_MEMOIZE_SIZE = 500;
56345
+ function memoizeCapped$1(func) {
56346
+ var result = memoize(func, function(key) {
56347
+ if (cache2.size === MAX_MEMOIZE_SIZE) {
56348
+ cache2.clear();
56349
+ }
56350
+ return key;
56351
+ });
56352
+ var cache2 = result.cache;
56353
+ return result;
56354
+ }
56355
+ var _memoizeCapped = memoizeCapped$1;
56356
+ var memoizeCapped = _memoizeCapped;
56357
+ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
56358
+ var reEscapeChar = /\\(\\)?/g;
56359
+ var stringToPath$1 = memoizeCapped(function(string2) {
56360
+ var result = [];
56361
+ if (string2.charCodeAt(0) === 46) {
56362
+ result.push("");
56363
+ }
56364
+ string2.replace(rePropName, function(match2, number2, quote, subString) {
56365
+ result.push(quote ? subString.replace(reEscapeChar, "$1") : number2 || match2);
56366
+ });
56367
+ return result;
56368
+ });
56369
+ var _stringToPath = stringToPath$1;
56370
+ var isArray$2 = isArray_1, isKey$2 = _isKey, stringToPath = _stringToPath, toString = toString_1;
56371
+ function castPath$4(value, object2) {
56372
+ if (isArray$2(value)) {
56373
+ return value;
56374
+ }
56375
+ return isKey$2(value, object2) ? [value] : stringToPath(toString(value));
56376
+ }
56377
+ var _castPath = castPath$4;
56378
+ var isSymbol = isSymbol_1;
56379
+ var INFINITY = 1 / 0;
56380
+ function toKey$5(value) {
56381
+ if (typeof value == "string" || isSymbol(value)) {
56382
+ return value;
56383
+ }
56384
+ var result = value + "";
56385
+ return result == "0" && 1 / value == -INFINITY ? "-0" : result;
56386
+ }
56387
+ var _toKey = toKey$5;
56388
+ var castPath$3 = _castPath, toKey$4 = _toKey;
56389
+ function baseGet$3(object2, path) {
56390
+ path = castPath$3(path, object2);
56391
+ var index2 = 0, length = path.length;
56392
+ while (object2 != null && index2 < length) {
56393
+ object2 = object2[toKey$4(path[index2++])];
56394
+ }
56395
+ return index2 && index2 == length ? object2 : void 0;
56396
+ }
56397
+ var _baseGet = baseGet$3;
56398
+ var baseGet$2 = _baseGet;
56399
+ function get$1(object2, path, defaultValue) {
56400
+ var result = object2 == null ? void 0 : baseGet$2(object2, path);
56401
+ return result === void 0 ? defaultValue : result;
56402
+ }
56403
+ var get_1 = get$1;
56404
+ function baseHasIn$1(object2, key) {
56405
+ return object2 != null && key in Object(object2);
56406
+ }
56407
+ var _baseHasIn = baseHasIn$1;
56408
+ var castPath$2 = _castPath, isArguments = isArguments_1, isArray$1 = isArray_1, isIndex$1 = _isIndex, isLength = isLength_1, toKey$3 = _toKey;
56409
+ function hasPath$1(object2, path, hasFunc) {
56410
+ path = castPath$2(path, object2);
56411
+ var index2 = -1, length = path.length, result = false;
56412
+ while (++index2 < length) {
56413
+ var key = toKey$3(path[index2]);
56414
+ if (!(result = object2 != null && hasFunc(object2, key))) {
56415
+ break;
56416
+ }
56417
+ object2 = object2[key];
56418
+ }
56419
+ if (result || ++index2 != length) {
56420
+ return result;
56421
+ }
56422
+ length = object2 == null ? 0 : object2.length;
56423
+ return !!length && isLength(length) && isIndex$1(key, length) && (isArray$1(object2) || isArguments(object2));
56424
+ }
56425
+ var _hasPath = hasPath$1;
56426
+ var baseHasIn = _baseHasIn, hasPath = _hasPath;
56427
+ function hasIn$1(object2, path) {
56428
+ return object2 != null && hasPath(object2, path, baseHasIn);
56429
+ }
56430
+ var hasIn_1 = hasIn$1;
56431
+ var baseIsEqual = _baseIsEqual, get = get_1, hasIn = hasIn_1, isKey$1 = _isKey, isStrictComparable = _isStrictComparable, matchesStrictComparable = _matchesStrictComparable, toKey$2 = _toKey;
56432
+ var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
56433
+ function baseMatchesProperty$1(path, srcValue) {
56434
+ if (isKey$1(path) && isStrictComparable(srcValue)) {
56435
+ return matchesStrictComparable(toKey$2(path), srcValue);
56436
+ }
56437
+ return function(object2) {
56438
+ var objValue = get(object2, path);
56439
+ return objValue === void 0 && objValue === srcValue ? hasIn(object2, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
56440
+ };
56441
+ }
56442
+ var _baseMatchesProperty = baseMatchesProperty$1;
56443
+ function baseProperty$1(key) {
56444
+ return function(object2) {
56445
+ return object2 == null ? void 0 : object2[key];
56446
+ };
56447
+ }
56448
+ var _baseProperty = baseProperty$1;
56449
+ var baseGet$1 = _baseGet;
56450
+ function basePropertyDeep$1(path) {
56451
+ return function(object2) {
56452
+ return baseGet$1(object2, path);
56453
+ };
56454
+ }
56455
+ var _basePropertyDeep = basePropertyDeep$1;
56456
+ var baseProperty = _baseProperty, basePropertyDeep = _basePropertyDeep, isKey = _isKey, toKey$1 = _toKey;
56457
+ function property$1(path) {
56458
+ return isKey(path) ? baseProperty(toKey$1(path)) : basePropertyDeep(path);
56459
+ }
56460
+ var property_1 = property$1;
56461
+ var baseMatches = _baseMatches, baseMatchesProperty = _baseMatchesProperty, identity = identity_1, isArray = isArray_1, property = property_1;
56462
+ function baseIteratee$2(value) {
56463
+ if (typeof value == "function") {
56464
+ return value;
56465
+ }
56466
+ if (value == null) {
56467
+ return identity;
56468
+ }
56469
+ if (typeof value == "object") {
56470
+ return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
56471
+ }
56472
+ return property(value);
56473
+ }
56474
+ var _baseIteratee = baseIteratee$2;
56475
+ var FUNC_ERROR_TEXT = "Expected a function";
56476
+ function negate$1(predicate) {
56477
+ if (typeof predicate != "function") {
56478
+ throw new TypeError(FUNC_ERROR_TEXT);
56479
+ }
56480
+ return function() {
56481
+ var args = arguments;
56482
+ switch (args.length) {
56483
+ case 0:
56484
+ return !predicate.call(this);
56485
+ case 1:
56486
+ return !predicate.call(this, args[0]);
56487
+ case 2:
56488
+ return !predicate.call(this, args[0], args[1]);
56489
+ case 3:
56490
+ return !predicate.call(this, args[0], args[1], args[2]);
56491
+ }
56492
+ return !predicate.apply(this, args);
56493
+ };
56494
+ }
56495
+ var negate_1 = negate$1;
56496
+ var assignValue = _assignValue, castPath$1 = _castPath, isIndex = _isIndex, isObject = isObject_1, toKey = _toKey;
56497
+ function baseSet$2(object2, path, value, customizer) {
56498
+ if (!isObject(object2)) {
56499
+ return object2;
56500
+ }
56501
+ path = castPath$1(path, object2);
56502
+ var index2 = -1, length = path.length, lastIndex = length - 1, nested = object2;
56503
+ while (nested != null && ++index2 < length) {
56504
+ var key = toKey(path[index2]), newValue = value;
56505
+ if (key === "__proto__" || key === "constructor" || key === "prototype") {
56506
+ return object2;
56507
+ }
56508
+ if (index2 != lastIndex) {
56509
+ var objValue = nested[key];
56510
+ newValue = customizer ? customizer(objValue, key, nested) : void 0;
56511
+ if (newValue === void 0) {
56512
+ newValue = isObject(objValue) ? objValue : isIndex(path[index2 + 1]) ? [] : {};
56513
+ }
56514
+ }
56515
+ assignValue(nested, key, newValue);
56516
+ nested = nested[key];
56517
+ }
56518
+ return object2;
56519
+ }
56520
+ var _baseSet = baseSet$2;
56521
+ var baseGet = _baseGet, baseSet$1 = _baseSet, castPath = _castPath;
56522
+ function basePickBy$1(object2, paths, predicate) {
56523
+ var index2 = -1, length = paths.length, result = {};
56524
+ while (++index2 < length) {
56525
+ var path = paths[index2], value = baseGet(object2, path);
56526
+ if (predicate(value, path)) {
56527
+ baseSet$1(result, castPath(path, object2), value);
56528
+ }
56529
+ }
56530
+ return result;
56531
+ }
56532
+ var _basePickBy = basePickBy$1;
56533
+ var arrayMap = _arrayMap, baseIteratee$1 = _baseIteratee, basePickBy = _basePickBy, getAllKeysIn = _getAllKeysIn;
56534
+ function pickBy$1(object2, predicate) {
56535
+ if (object2 == null) {
56536
+ return {};
56537
+ }
56538
+ var props = arrayMap(getAllKeysIn(object2), function(prop) {
56539
+ return [prop];
56540
+ });
56541
+ predicate = baseIteratee$1(predicate);
56542
+ return basePickBy(object2, props, function(value, path) {
56543
+ return predicate(value, path[0]);
56544
+ });
56545
+ }
56546
+ var pickBy_1 = pickBy$1;
56547
+ var baseIteratee = _baseIteratee, negate = negate_1, pickBy = pickBy_1;
56548
+ function omitBy(object2, predicate) {
56549
+ return pickBy(object2, negate(baseIteratee(predicate)));
56550
+ }
56551
+ var omitBy_1 = omitBy;
56552
+ function isTheme(configTheme) {
56553
+ return typeof configTheme !== "string";
56554
+ }
56555
+ function resolveTheme(configTheme, baseTheme) {
56556
+ if (!configTheme || configTheme === "light") {
56557
+ return theme;
56558
+ }
56559
+ if (configTheme === "dark") {
56560
+ return darkTheme;
56561
+ }
56562
+ if (isTheme(configTheme)) {
56563
+ const original = baseTheme === "dark" ? darkTheme : theme;
56564
+ return {
56565
+ ...original,
56566
+ ...omitBy_1(configTheme, isNull_1),
56567
+ colors: {
56568
+ ...original.colors,
56569
+ ...omitBy_1(configTheme.colors, isNull_1)
56570
+ },
56571
+ font: {
56572
+ ...original.font,
56573
+ ...omitBy_1(configTheme.font, isNull_1)
56574
+ },
56575
+ shadow: {
56576
+ ...original.shadow,
56577
+ ...omitBy_1(configTheme.shadow, isNull_1)
56578
+ }
56579
+ };
56580
+ }
56581
+ console.warn("No valid theme was found. Defaulting to light theme.");
56582
+ return theme;
56583
+ }
56387
56584
  class EventBus {
56388
56585
  constructor(parentBus) {
56389
56586
  __privateAdd(this, _events$, new Subject());
@@ -56535,7 +56732,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
56535
56732
  failure: failure$1,
56536
56733
  success: success$1
56537
56734
  } = Refine_Checkers$1;
56538
- function isPlainObject(value) {
56735
+ function isPlainObject$1(value) {
56539
56736
  if (Object.prototype.toString.call(value) !== "[object Object]") {
56540
56737
  return false;
56541
56738
  }
@@ -56586,7 +56783,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
56586
56783
  }
56587
56784
  function dict(valueChecker) {
56588
56785
  return (value, path = new Path$1()) => {
56589
- if (typeof value !== "object" || value === null || !isPlainObject(value)) {
56786
+ if (typeof value !== "object" || value === null || !isPlainObject$1(value)) {
56590
56787
  return failure$1("value is not an object", path);
56591
56788
  }
56592
56789
  const out = {};
@@ -56626,7 +56823,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
56626
56823
  function object(checkers) {
56627
56824
  const checkerProperties = Object.keys(checkers);
56628
56825
  return (value, path = new Path$1()) => {
56629
- if (typeof value !== "object" || value === null || !isPlainObject(value)) {
56826
+ if (typeof value !== "object" || value === null || !isPlainObject$1(value)) {
56630
56827
  return failure$1("value is not an object", path);
56631
56828
  }
56632
56829
  const out = {};
@@ -56657,7 +56854,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
56657
56854
  return success$1(out, warnings);
56658
56855
  };
56659
56856
  }
56660
- function set(checker) {
56857
+ function set$1(checker) {
56661
56858
  return (value, path = new Path$1()) => {
56662
56859
  if (!(value instanceof Set)) {
56663
56860
  return failure$1("value is not a Set", path);
@@ -56727,7 +56924,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
56727
56924
  object,
56728
56925
  optional,
56729
56926
  dict,
56730
- set,
56927
+ set: set$1,
56731
56928
  map,
56732
56929
  writableArray,
56733
56930
  writableDict,
@@ -57009,7 +57206,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
57009
57206
  map: map$1,
57010
57207
  object: object$1,
57011
57208
  optional: optional$1,
57012
- set: set$1,
57209
+ set: set$1$1,
57013
57210
  tuple: tuple$1,
57014
57211
  writableArray: writableArray$1,
57015
57212
  writableDict: writableDict$1,
@@ -57070,7 +57267,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
57070
57267
  dict: dict$1,
57071
57268
  object: object$1,
57072
57269
  optional: optional$1,
57073
- set: set$1,
57270
+ set: set$1$1,
57074
57271
  map: map$1,
57075
57272
  writableArray: writableArray$1,
57076
57273
  writableDict: writableDict$1,
@@ -57118,7 +57315,10 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
57118
57315
  return message.type === "message" && "action" in message.message;
57119
57316
  }
57120
57317
  function isBackendStoreMessage(message) {
57121
- return message.type === "message" && "store_uid" in message.message;
57318
+ return message.type === "message" && "store_uid" in message.message && "value" in message.message;
57319
+ }
57320
+ function isBackendStorePatchMessage(message) {
57321
+ return message.type === "message" && "store_uid" in message.message && "patches" in message.message;
57122
57322
  }
57123
57323
  function isCustomMessage(message) {
57124
57324
  return message.type === "custom";
@@ -57147,6 +57347,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
57147
57347
  __privateSet(this, _socketUrl, _socketUrl2);
57148
57348
  __privateSet(this, _reconnectCount, 0);
57149
57349
  __privateSet(this, _pingInterval, null);
57350
+ this.channel = Promise.resolve("");
57150
57351
  this.socket = this.initialize();
57151
57352
  }
57152
57353
  initialize(isReconnect = false) {
@@ -57206,7 +57407,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
57206
57407
  }, interAttemptTimeout);
57207
57408
  }
57208
57409
  close() {
57209
- clearInterval(__privateGet(this, _pingInterval));
57410
+ if (__privateGet(this, _pingInterval)) {
57411
+ clearInterval(__privateGet(this, _pingInterval));
57412
+ }
57210
57413
  this.socket.removeEventListener("close", this.closeHandler);
57211
57414
  this.socket.close();
57212
57415
  }
@@ -57219,6 +57422,12 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
57219
57422
  map$2((msg) => msg.message)
57220
57423
  );
57221
57424
  }
57425
+ backendStorePatchMessages$() {
57426
+ return this.messages$.pipe(
57427
+ filter(isBackendStorePatchMessage),
57428
+ map$2((msg) => msg.message)
57429
+ );
57430
+ }
57222
57431
  channel$() {
57223
57432
  return this.messages$.pipe(
57224
57433
  filter((msg) => isInitMessage(msg)),
@@ -57227,7 +57436,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
57227
57436
  }
57228
57437
  taskStatusUpdates$(...task_ids) {
57229
57438
  return this.messages$.pipe(
57230
- filter((msg) => isTaskNotification(msg) && task_ids.includes(msg.message.task_id)),
57439
+ filter(
57440
+ (msg) => isTaskNotification(msg) && task_ids.includes(msg.message.task_id)
57441
+ ),
57231
57442
  map$2((msg) => msg.message.status)
57232
57443
  );
57233
57444
  }
@@ -57341,6 +57552,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
57341
57552
  );
57342
57553
  return Promise.resolve(null);
57343
57554
  }
57555
+ return Promise.resolve(null);
57344
57556
  }
57345
57557
  }
57346
57558
  _pingInterval = new WeakMap();
@@ -57617,7 +57829,10 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
57617
57829
  if (isResolvedDataVariable(value)) {
57618
57830
  return value;
57619
57831
  }
57620
- return getter(value);
57832
+ if (Recoil_index_2(value)) {
57833
+ return getter(value);
57834
+ }
57835
+ return value;
57621
57836
  }
57622
57837
  function getDeps(values, deps) {
57623
57838
  return values.map((val, idx) => {
@@ -57634,15 +57849,17 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
57634
57849
  }
57635
57850
  const values = resolvedVariables.map((v2) => resolveValue$1(v2, get2));
57636
57851
  const depsValues = getDeps(values);
57637
- const variableValueMap = variables.reduce(
57638
- (acc, v2, idx) => acc.set(getUniqueIdentifier(v2), depsValues[idx]),
57639
- /* @__PURE__ */ new Map()
57640
- );
57852
+ const variableValueMap = variables.reduce((acc, v2, idx) => {
57853
+ if (!isVariable(v2)) {
57854
+ return acc;
57855
+ }
57856
+ return acc.set(getUniqueIdentifier(v2), depsValues[idx]);
57857
+ }, /* @__PURE__ */ new Map());
57641
57858
  let recalculateForced = false;
57642
57859
  let wasTriggered = false;
57643
57860
  let wasTriggeredItself = false;
57644
57861
  const previousEntry = depsRegistry.get(key);
57645
- const relevantValues = deps.map((dep) => variableValueMap.get(getUniqueIdentifier(dep))).concat(triggers.map((trigger) => trigger.inc));
57862
+ const relevantValues = deps.filter(isVariable).map((dep) => variableValueMap.get(getUniqueIdentifier(dep))).concat(triggers.map((trigger) => trigger.inc));
57646
57863
  if (previousEntry) {
57647
57864
  const areArgsTheSame = lodash$2.exports.isEqual(previousEntry.args, relevantValues);
57648
57865
  if (areArgsTheSame) {
@@ -57686,9 +57903,12 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
57686
57903
  eviction: "most-recent"
57687
57904
  },
57688
57905
  get: (extrasSerializable) => async ({ get: get2 }) => {
57689
- const resolvedVariables = variable.variables.map(
57690
- (v2) => resolveVariable(v2, wsClient, taskContext, currentExtras)
57691
- );
57906
+ const resolvedVariables = variable.variables.map((v2) => {
57907
+ if (!isVariable(v2)) {
57908
+ return v2;
57909
+ }
57910
+ return resolveVariable(v2, wsClient, taskContext, currentExtras);
57911
+ });
57692
57912
  const selfTrigger = get2(getOrRegisterTrigger(variable));
57693
57913
  const { extras } = extrasSerializable;
57694
57914
  const selectorKey = key + extrasSerializable.toJSON();
@@ -57846,7 +58066,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
57846
58066
  return cloneDeep_1(obj);
57847
58067
  }
57848
58068
  const cloned = clone_1(obj);
57849
- const [key] = nested;
58069
+ const key = nested[0];
57850
58070
  if (!Object.keys(obj).includes(key)) {
57851
58071
  cloned[key] = {};
57852
58072
  }
@@ -57963,6 +58183,633 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
57963
58183
  }
57964
58184
  return resolver(getOrRegisterPlainVariable(variable, client, taskContext, extras));
57965
58185
  }
58186
+ /*!
58187
+ * https://github.com/Starcounter-Jack/JSON-Patch
58188
+ * (c) 2017-2022 Joachim Wester
58189
+ * MIT licensed
58190
+ */
58191
+ var __extends = globalThis && globalThis.__extends || function() {
58192
+ var extendStatics2 = function(d2, b2) {
58193
+ extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
58194
+ d3.__proto__ = b3;
58195
+ } || function(d3, b3) {
58196
+ for (var p2 in b3)
58197
+ if (b3.hasOwnProperty(p2))
58198
+ d3[p2] = b3[p2];
58199
+ };
58200
+ return extendStatics2(d2, b2);
58201
+ };
58202
+ return function(d2, b2) {
58203
+ extendStatics2(d2, b2);
58204
+ function __() {
58205
+ this.constructor = d2;
58206
+ }
58207
+ d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
58208
+ };
58209
+ }();
58210
+ var _hasOwnProperty = Object.prototype.hasOwnProperty;
58211
+ function hasOwnProperty$1(obj, key) {
58212
+ return _hasOwnProperty.call(obj, key);
58213
+ }
58214
+ function _objectKeys(obj) {
58215
+ if (Array.isArray(obj)) {
58216
+ var keys_12 = new Array(obj.length);
58217
+ for (var k2 = 0; k2 < keys_12.length; k2++) {
58218
+ keys_12[k2] = "" + k2;
58219
+ }
58220
+ return keys_12;
58221
+ }
58222
+ if (Object.keys) {
58223
+ return Object.keys(obj);
58224
+ }
58225
+ var keys2 = [];
58226
+ for (var i2 in obj) {
58227
+ if (hasOwnProperty$1(obj, i2)) {
58228
+ keys2.push(i2);
58229
+ }
58230
+ }
58231
+ return keys2;
58232
+ }
58233
+ function _deepClone(obj) {
58234
+ switch (typeof obj) {
58235
+ case "object":
58236
+ return JSON.parse(JSON.stringify(obj));
58237
+ case "undefined":
58238
+ return null;
58239
+ default:
58240
+ return obj;
58241
+ }
58242
+ }
58243
+ function isInteger(str) {
58244
+ var i2 = 0;
58245
+ var len = str.length;
58246
+ var charCode;
58247
+ while (i2 < len) {
58248
+ charCode = str.charCodeAt(i2);
58249
+ if (charCode >= 48 && charCode <= 57) {
58250
+ i2++;
58251
+ continue;
58252
+ }
58253
+ return false;
58254
+ }
58255
+ return true;
58256
+ }
58257
+ function escapePathComponent(path) {
58258
+ if (path.indexOf("/") === -1 && path.indexOf("~") === -1)
58259
+ return path;
58260
+ return path.replace(/~/g, "~0").replace(/\//g, "~1");
58261
+ }
58262
+ function unescapePathComponent(path) {
58263
+ return path.replace(/~1/g, "/").replace(/~0/g, "~");
58264
+ }
58265
+ function hasUndefined(obj) {
58266
+ if (obj === void 0) {
58267
+ return true;
58268
+ }
58269
+ if (obj) {
58270
+ if (Array.isArray(obj)) {
58271
+ for (var i_1 = 0, len = obj.length; i_1 < len; i_1++) {
58272
+ if (hasUndefined(obj[i_1])) {
58273
+ return true;
58274
+ }
58275
+ }
58276
+ } else if (typeof obj === "object") {
58277
+ var objKeys = _objectKeys(obj);
58278
+ var objKeysLength = objKeys.length;
58279
+ for (var i2 = 0; i2 < objKeysLength; i2++) {
58280
+ if (hasUndefined(obj[objKeys[i2]])) {
58281
+ return true;
58282
+ }
58283
+ }
58284
+ }
58285
+ }
58286
+ return false;
58287
+ }
58288
+ function patchErrorMessageFormatter(message, args) {
58289
+ var messageParts = [message];
58290
+ for (var key in args) {
58291
+ var value = typeof args[key] === "object" ? JSON.stringify(args[key], null, 2) : args[key];
58292
+ if (typeof value !== "undefined") {
58293
+ messageParts.push(key + ": " + value);
58294
+ }
58295
+ }
58296
+ return messageParts.join("\n");
58297
+ }
58298
+ var PatchError = function(_super) {
58299
+ __extends(PatchError2, _super);
58300
+ function PatchError2(message, name, index2, operation, tree) {
58301
+ var _newTarget = this.constructor;
58302
+ var _this = _super.call(this, patchErrorMessageFormatter(message, { name, index: index2, operation, tree })) || this;
58303
+ _this.name = name;
58304
+ _this.index = index2;
58305
+ _this.operation = operation;
58306
+ _this.tree = tree;
58307
+ Object.setPrototypeOf(_this, _newTarget.prototype);
58308
+ _this.message = patchErrorMessageFormatter(message, { name, index: index2, operation, tree });
58309
+ return _this;
58310
+ }
58311
+ return PatchError2;
58312
+ }(Error);
58313
+ var JsonPatchError = PatchError;
58314
+ var deepClone = _deepClone;
58315
+ var objOps = {
58316
+ add: function(obj, key, document2) {
58317
+ obj[key] = this.value;
58318
+ return { newDocument: document2 };
58319
+ },
58320
+ remove: function(obj, key, document2) {
58321
+ var removed = obj[key];
58322
+ delete obj[key];
58323
+ return { newDocument: document2, removed };
58324
+ },
58325
+ replace: function(obj, key, document2) {
58326
+ var removed = obj[key];
58327
+ obj[key] = this.value;
58328
+ return { newDocument: document2, removed };
58329
+ },
58330
+ move: function(obj, key, document2) {
58331
+ var removed = getValueByPointer(document2, this.path);
58332
+ if (removed) {
58333
+ removed = _deepClone(removed);
58334
+ }
58335
+ var originalValue = applyOperation(document2, { op: "remove", path: this.from }).removed;
58336
+ applyOperation(document2, { op: "add", path: this.path, value: originalValue });
58337
+ return { newDocument: document2, removed };
58338
+ },
58339
+ copy: function(obj, key, document2) {
58340
+ var valueToCopy = getValueByPointer(document2, this.from);
58341
+ applyOperation(document2, { op: "add", path: this.path, value: _deepClone(valueToCopy) });
58342
+ return { newDocument: document2 };
58343
+ },
58344
+ test: function(obj, key, document2) {
58345
+ return { newDocument: document2, test: _areEquals(obj[key], this.value) };
58346
+ },
58347
+ _get: function(obj, key, document2) {
58348
+ this.value = obj[key];
58349
+ return { newDocument: document2 };
58350
+ }
58351
+ };
58352
+ var arrOps = {
58353
+ add: function(arr, i2, document2) {
58354
+ if (isInteger(i2)) {
58355
+ arr.splice(i2, 0, this.value);
58356
+ } else {
58357
+ arr[i2] = this.value;
58358
+ }
58359
+ return { newDocument: document2, index: i2 };
58360
+ },
58361
+ remove: function(arr, i2, document2) {
58362
+ var removedList = arr.splice(i2, 1);
58363
+ return { newDocument: document2, removed: removedList[0] };
58364
+ },
58365
+ replace: function(arr, i2, document2) {
58366
+ var removed = arr[i2];
58367
+ arr[i2] = this.value;
58368
+ return { newDocument: document2, removed };
58369
+ },
58370
+ move: objOps.move,
58371
+ copy: objOps.copy,
58372
+ test: objOps.test,
58373
+ _get: objOps._get
58374
+ };
58375
+ function getValueByPointer(document2, pointer) {
58376
+ if (pointer == "") {
58377
+ return document2;
58378
+ }
58379
+ var getOriginalDestination = { op: "_get", path: pointer };
58380
+ applyOperation(document2, getOriginalDestination);
58381
+ return getOriginalDestination.value;
58382
+ }
58383
+ function applyOperation(document2, operation, validateOperation, mutateDocument, banPrototypeModifications, index2) {
58384
+ if (validateOperation === void 0) {
58385
+ validateOperation = false;
58386
+ }
58387
+ if (mutateDocument === void 0) {
58388
+ mutateDocument = true;
58389
+ }
58390
+ if (banPrototypeModifications === void 0) {
58391
+ banPrototypeModifications = true;
58392
+ }
58393
+ if (index2 === void 0) {
58394
+ index2 = 0;
58395
+ }
58396
+ if (validateOperation) {
58397
+ if (typeof validateOperation == "function") {
58398
+ validateOperation(operation, 0, document2, operation.path);
58399
+ } else {
58400
+ validator(operation, 0);
58401
+ }
58402
+ }
58403
+ if (operation.path === "") {
58404
+ var returnValue = { newDocument: document2 };
58405
+ if (operation.op === "add") {
58406
+ returnValue.newDocument = operation.value;
58407
+ return returnValue;
58408
+ } else if (operation.op === "replace") {
58409
+ returnValue.newDocument = operation.value;
58410
+ returnValue.removed = document2;
58411
+ return returnValue;
58412
+ } else if (operation.op === "move" || operation.op === "copy") {
58413
+ returnValue.newDocument = getValueByPointer(document2, operation.from);
58414
+ if (operation.op === "move") {
58415
+ returnValue.removed = document2;
58416
+ }
58417
+ return returnValue;
58418
+ } else if (operation.op === "test") {
58419
+ returnValue.test = _areEquals(document2, operation.value);
58420
+ if (returnValue.test === false) {
58421
+ throw new JsonPatchError("Test operation failed", "TEST_OPERATION_FAILED", index2, operation, document2);
58422
+ }
58423
+ returnValue.newDocument = document2;
58424
+ return returnValue;
58425
+ } else if (operation.op === "remove") {
58426
+ returnValue.removed = document2;
58427
+ returnValue.newDocument = null;
58428
+ return returnValue;
58429
+ } else if (operation.op === "_get") {
58430
+ operation.value = document2;
58431
+ return returnValue;
58432
+ } else {
58433
+ if (validateOperation) {
58434
+ throw new JsonPatchError("Operation `op` property is not one of operations defined in RFC-6902", "OPERATION_OP_INVALID", index2, operation, document2);
58435
+ } else {
58436
+ return returnValue;
58437
+ }
58438
+ }
58439
+ } else {
58440
+ if (!mutateDocument) {
58441
+ document2 = _deepClone(document2);
58442
+ }
58443
+ var path = operation.path || "";
58444
+ var keys2 = path.split("/");
58445
+ var obj = document2;
58446
+ var t2 = 1;
58447
+ var len = keys2.length;
58448
+ var existingPathFragment = void 0;
58449
+ var key = void 0;
58450
+ var validateFunction = void 0;
58451
+ if (typeof validateOperation == "function") {
58452
+ validateFunction = validateOperation;
58453
+ } else {
58454
+ validateFunction = validator;
58455
+ }
58456
+ while (true) {
58457
+ key = keys2[t2];
58458
+ if (key && key.indexOf("~") != -1) {
58459
+ key = unescapePathComponent(key);
58460
+ }
58461
+ if (banPrototypeModifications && (key == "__proto__" || key == "prototype" && t2 > 0 && keys2[t2 - 1] == "constructor")) {
58462
+ throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");
58463
+ }
58464
+ if (validateOperation) {
58465
+ if (existingPathFragment === void 0) {
58466
+ if (obj[key] === void 0) {
58467
+ existingPathFragment = keys2.slice(0, t2).join("/");
58468
+ } else if (t2 == len - 1) {
58469
+ existingPathFragment = operation.path;
58470
+ }
58471
+ if (existingPathFragment !== void 0) {
58472
+ validateFunction(operation, 0, document2, existingPathFragment);
58473
+ }
58474
+ }
58475
+ }
58476
+ t2++;
58477
+ if (Array.isArray(obj)) {
58478
+ if (key === "-") {
58479
+ key = obj.length;
58480
+ } else {
58481
+ if (validateOperation && !isInteger(key)) {
58482
+ throw new JsonPatchError("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index", "OPERATION_PATH_ILLEGAL_ARRAY_INDEX", index2, operation, document2);
58483
+ } else if (isInteger(key)) {
58484
+ key = ~~key;
58485
+ }
58486
+ }
58487
+ if (t2 >= len) {
58488
+ if (validateOperation && operation.op === "add" && key > obj.length) {
58489
+ throw new JsonPatchError("The specified index MUST NOT be greater than the number of elements in the array", "OPERATION_VALUE_OUT_OF_BOUNDS", index2, operation, document2);
58490
+ }
58491
+ var returnValue = arrOps[operation.op].call(operation, obj, key, document2);
58492
+ if (returnValue.test === false) {
58493
+ throw new JsonPatchError("Test operation failed", "TEST_OPERATION_FAILED", index2, operation, document2);
58494
+ }
58495
+ return returnValue;
58496
+ }
58497
+ } else {
58498
+ if (t2 >= len) {
58499
+ var returnValue = objOps[operation.op].call(operation, obj, key, document2);
58500
+ if (returnValue.test === false) {
58501
+ throw new JsonPatchError("Test operation failed", "TEST_OPERATION_FAILED", index2, operation, document2);
58502
+ }
58503
+ return returnValue;
58504
+ }
58505
+ }
58506
+ obj = obj[key];
58507
+ if (validateOperation && t2 < len && (!obj || typeof obj !== "object")) {
58508
+ throw new JsonPatchError("Cannot perform operation at the desired path", "OPERATION_PATH_UNRESOLVABLE", index2, operation, document2);
58509
+ }
58510
+ }
58511
+ }
58512
+ }
58513
+ function applyPatch(document2, patch, validateOperation, mutateDocument, banPrototypeModifications) {
58514
+ if (mutateDocument === void 0) {
58515
+ mutateDocument = true;
58516
+ }
58517
+ if (banPrototypeModifications === void 0) {
58518
+ banPrototypeModifications = true;
58519
+ }
58520
+ if (validateOperation) {
58521
+ if (!Array.isArray(patch)) {
58522
+ throw new JsonPatchError("Patch sequence must be an array", "SEQUENCE_NOT_AN_ARRAY");
58523
+ }
58524
+ }
58525
+ if (!mutateDocument) {
58526
+ document2 = _deepClone(document2);
58527
+ }
58528
+ var results = new Array(patch.length);
58529
+ for (var i2 = 0, length_1 = patch.length; i2 < length_1; i2++) {
58530
+ results[i2] = applyOperation(document2, patch[i2], validateOperation, true, banPrototypeModifications, i2);
58531
+ document2 = results[i2].newDocument;
58532
+ }
58533
+ results.newDocument = document2;
58534
+ return results;
58535
+ }
58536
+ function applyReducer(document2, operation, index2) {
58537
+ var operationResult = applyOperation(document2, operation);
58538
+ if (operationResult.test === false) {
58539
+ throw new JsonPatchError("Test operation failed", "TEST_OPERATION_FAILED", index2, operation, document2);
58540
+ }
58541
+ return operationResult.newDocument;
58542
+ }
58543
+ function validator(operation, index2, document2, existingPathFragment) {
58544
+ if (typeof operation !== "object" || operation === null || Array.isArray(operation)) {
58545
+ throw new JsonPatchError("Operation is not an object", "OPERATION_NOT_AN_OBJECT", index2, operation, document2);
58546
+ } else if (!objOps[operation.op]) {
58547
+ throw new JsonPatchError("Operation `op` property is not one of operations defined in RFC-6902", "OPERATION_OP_INVALID", index2, operation, document2);
58548
+ } else if (typeof operation.path !== "string") {
58549
+ throw new JsonPatchError("Operation `path` property is not a string", "OPERATION_PATH_INVALID", index2, operation, document2);
58550
+ } else if (operation.path.indexOf("/") !== 0 && operation.path.length > 0) {
58551
+ throw new JsonPatchError('Operation `path` property must start with "/"', "OPERATION_PATH_INVALID", index2, operation, document2);
58552
+ } else if ((operation.op === "move" || operation.op === "copy") && typeof operation.from !== "string") {
58553
+ throw new JsonPatchError("Operation `from` property is not present (applicable in `move` and `copy` operations)", "OPERATION_FROM_REQUIRED", index2, operation, document2);
58554
+ } else if ((operation.op === "add" || operation.op === "replace" || operation.op === "test") && operation.value === void 0) {
58555
+ throw new JsonPatchError("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)", "OPERATION_VALUE_REQUIRED", index2, operation, document2);
58556
+ } else if ((operation.op === "add" || operation.op === "replace" || operation.op === "test") && hasUndefined(operation.value)) {
58557
+ throw new JsonPatchError("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)", "OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED", index2, operation, document2);
58558
+ } else if (document2) {
58559
+ if (operation.op == "add") {
58560
+ var pathLen = operation.path.split("/").length;
58561
+ var existingPathLen = existingPathFragment.split("/").length;
58562
+ if (pathLen !== existingPathLen + 1 && pathLen !== existingPathLen) {
58563
+ throw new JsonPatchError("Cannot perform an `add` operation at the desired path", "OPERATION_PATH_CANNOT_ADD", index2, operation, document2);
58564
+ }
58565
+ } else if (operation.op === "replace" || operation.op === "remove" || operation.op === "_get") {
58566
+ if (operation.path !== existingPathFragment) {
58567
+ throw new JsonPatchError("Cannot perform the operation at a path that does not exist", "OPERATION_PATH_UNRESOLVABLE", index2, operation, document2);
58568
+ }
58569
+ } else if (operation.op === "move" || operation.op === "copy") {
58570
+ var existingValue = { op: "_get", path: operation.from, value: void 0 };
58571
+ var error = validate([existingValue], document2);
58572
+ if (error && error.name === "OPERATION_PATH_UNRESOLVABLE") {
58573
+ throw new JsonPatchError("Cannot perform the operation from a path that does not exist", "OPERATION_FROM_UNRESOLVABLE", index2, operation, document2);
58574
+ }
58575
+ }
58576
+ }
58577
+ }
58578
+ function validate(sequence, document2, externalValidator) {
58579
+ try {
58580
+ if (!Array.isArray(sequence)) {
58581
+ throw new JsonPatchError("Patch sequence must be an array", "SEQUENCE_NOT_AN_ARRAY");
58582
+ }
58583
+ if (document2) {
58584
+ applyPatch(_deepClone(document2), _deepClone(sequence), externalValidator || true);
58585
+ } else {
58586
+ externalValidator = externalValidator || validator;
58587
+ for (var i2 = 0; i2 < sequence.length; i2++) {
58588
+ externalValidator(sequence[i2], i2, document2, void 0);
58589
+ }
58590
+ }
58591
+ } catch (e2) {
58592
+ if (e2 instanceof JsonPatchError) {
58593
+ return e2;
58594
+ } else {
58595
+ throw e2;
58596
+ }
58597
+ }
58598
+ }
58599
+ function _areEquals(a2, b2) {
58600
+ if (a2 === b2)
58601
+ return true;
58602
+ if (a2 && b2 && typeof a2 == "object" && typeof b2 == "object") {
58603
+ var arrA = Array.isArray(a2), arrB = Array.isArray(b2), i2, length, key;
58604
+ if (arrA && arrB) {
58605
+ length = a2.length;
58606
+ if (length != b2.length)
58607
+ return false;
58608
+ for (i2 = length; i2-- !== 0; )
58609
+ if (!_areEquals(a2[i2], b2[i2]))
58610
+ return false;
58611
+ return true;
58612
+ }
58613
+ if (arrA != arrB)
58614
+ return false;
58615
+ var keys2 = Object.keys(a2);
58616
+ length = keys2.length;
58617
+ if (length !== Object.keys(b2).length)
58618
+ return false;
58619
+ for (i2 = length; i2-- !== 0; )
58620
+ if (!b2.hasOwnProperty(keys2[i2]))
58621
+ return false;
58622
+ for (i2 = length; i2-- !== 0; ) {
58623
+ key = keys2[i2];
58624
+ if (!_areEquals(a2[key], b2[key]))
58625
+ return false;
58626
+ }
58627
+ return true;
58628
+ }
58629
+ return a2 !== a2 && b2 !== b2;
58630
+ }
58631
+ const core = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
58632
+ __proto__: null,
58633
+ JsonPatchError,
58634
+ deepClone,
58635
+ getValueByPointer,
58636
+ applyOperation,
58637
+ applyPatch,
58638
+ applyReducer,
58639
+ validator,
58640
+ validate,
58641
+ _areEquals
58642
+ }, Symbol.toStringTag, { value: "Module" }));
58643
+ /*!
58644
+ * https://github.com/Starcounter-Jack/JSON-Patch
58645
+ * (c) 2017-2021 Joachim Wester
58646
+ * MIT license
58647
+ */
58648
+ var beforeDict = /* @__PURE__ */ new WeakMap();
58649
+ var Mirror = function() {
58650
+ function Mirror2(obj) {
58651
+ this.observers = /* @__PURE__ */ new Map();
58652
+ this.obj = obj;
58653
+ }
58654
+ return Mirror2;
58655
+ }();
58656
+ var ObserverInfo = function() {
58657
+ function ObserverInfo2(callback, observer) {
58658
+ this.callback = callback;
58659
+ this.observer = observer;
58660
+ }
58661
+ return ObserverInfo2;
58662
+ }();
58663
+ function getMirror(obj) {
58664
+ return beforeDict.get(obj);
58665
+ }
58666
+ function getObserverFromMirror(mirror, callback) {
58667
+ return mirror.observers.get(callback);
58668
+ }
58669
+ function removeObserverFromMirror(mirror, observer) {
58670
+ mirror.observers.delete(observer.callback);
58671
+ }
58672
+ function unobserve(root2, observer) {
58673
+ observer.unobserve();
58674
+ }
58675
+ function observe(obj, callback) {
58676
+ var patches = [];
58677
+ var observer;
58678
+ var mirror = getMirror(obj);
58679
+ if (!mirror) {
58680
+ mirror = new Mirror(obj);
58681
+ beforeDict.set(obj, mirror);
58682
+ } else {
58683
+ var observerInfo = getObserverFromMirror(mirror, callback);
58684
+ observer = observerInfo && observerInfo.observer;
58685
+ }
58686
+ if (observer) {
58687
+ return observer;
58688
+ }
58689
+ observer = {};
58690
+ mirror.value = _deepClone(obj);
58691
+ if (callback) {
58692
+ observer.callback = callback;
58693
+ observer.next = null;
58694
+ var dirtyCheck = function() {
58695
+ generate(observer);
58696
+ };
58697
+ var fastCheck = function() {
58698
+ clearTimeout(observer.next);
58699
+ observer.next = setTimeout(dirtyCheck);
58700
+ };
58701
+ if (typeof window !== "undefined") {
58702
+ window.addEventListener("mouseup", fastCheck);
58703
+ window.addEventListener("keyup", fastCheck);
58704
+ window.addEventListener("mousedown", fastCheck);
58705
+ window.addEventListener("keydown", fastCheck);
58706
+ window.addEventListener("change", fastCheck);
58707
+ }
58708
+ }
58709
+ observer.patches = patches;
58710
+ observer.object = obj;
58711
+ observer.unobserve = function() {
58712
+ generate(observer);
58713
+ clearTimeout(observer.next);
58714
+ removeObserverFromMirror(mirror, observer);
58715
+ if (typeof window !== "undefined") {
58716
+ window.removeEventListener("mouseup", fastCheck);
58717
+ window.removeEventListener("keyup", fastCheck);
58718
+ window.removeEventListener("mousedown", fastCheck);
58719
+ window.removeEventListener("keydown", fastCheck);
58720
+ window.removeEventListener("change", fastCheck);
58721
+ }
58722
+ };
58723
+ mirror.observers.set(callback, new ObserverInfo(callback, observer));
58724
+ return observer;
58725
+ }
58726
+ function generate(observer, invertible) {
58727
+ if (invertible === void 0) {
58728
+ invertible = false;
58729
+ }
58730
+ var mirror = beforeDict.get(observer.object);
58731
+ _generate(mirror.value, observer.object, observer.patches, "", invertible);
58732
+ if (observer.patches.length) {
58733
+ applyPatch(mirror.value, observer.patches);
58734
+ }
58735
+ var temp = observer.patches;
58736
+ if (temp.length > 0) {
58737
+ observer.patches = [];
58738
+ if (observer.callback) {
58739
+ observer.callback(temp);
58740
+ }
58741
+ }
58742
+ return temp;
58743
+ }
58744
+ function _generate(mirror, obj, patches, path, invertible) {
58745
+ if (obj === mirror) {
58746
+ return;
58747
+ }
58748
+ if (typeof obj.toJSON === "function") {
58749
+ obj = obj.toJSON();
58750
+ }
58751
+ var newKeys = _objectKeys(obj);
58752
+ var oldKeys = _objectKeys(mirror);
58753
+ var deleted = false;
58754
+ for (var t2 = oldKeys.length - 1; t2 >= 0; t2--) {
58755
+ var key = oldKeys[t2];
58756
+ var oldVal = mirror[key];
58757
+ if (hasOwnProperty$1(obj, key) && !(obj[key] === void 0 && oldVal !== void 0 && Array.isArray(obj) === false)) {
58758
+ var newVal = obj[key];
58759
+ if (typeof oldVal == "object" && oldVal != null && typeof newVal == "object" && newVal != null && Array.isArray(oldVal) === Array.isArray(newVal)) {
58760
+ _generate(oldVal, newVal, patches, path + "/" + escapePathComponent(key), invertible);
58761
+ } else {
58762
+ if (oldVal !== newVal) {
58763
+ if (invertible) {
58764
+ patches.push({ op: "test", path: path + "/" + escapePathComponent(key), value: _deepClone(oldVal) });
58765
+ }
58766
+ patches.push({ op: "replace", path: path + "/" + escapePathComponent(key), value: _deepClone(newVal) });
58767
+ }
58768
+ }
58769
+ } else if (Array.isArray(mirror) === Array.isArray(obj)) {
58770
+ if (invertible) {
58771
+ patches.push({ op: "test", path: path + "/" + escapePathComponent(key), value: _deepClone(oldVal) });
58772
+ }
58773
+ patches.push({ op: "remove", path: path + "/" + escapePathComponent(key) });
58774
+ deleted = true;
58775
+ } else {
58776
+ if (invertible) {
58777
+ patches.push({ op: "test", path, value: mirror });
58778
+ }
58779
+ patches.push({ op: "replace", path, value: obj });
58780
+ }
58781
+ }
58782
+ if (!deleted && newKeys.length == oldKeys.length) {
58783
+ return;
58784
+ }
58785
+ for (var t2 = 0; t2 < newKeys.length; t2++) {
58786
+ var key = newKeys[t2];
58787
+ if (!hasOwnProperty$1(mirror, key) && obj[key] !== void 0) {
58788
+ patches.push({ op: "add", path: path + "/" + escapePathComponent(key), value: _deepClone(obj[key]) });
58789
+ }
58790
+ }
58791
+ }
58792
+ function compare(tree1, tree2, invertible) {
58793
+ if (invertible === void 0) {
58794
+ invertible = false;
58795
+ }
58796
+ var patches = [];
58797
+ _generate(tree1, tree2, patches, "", invertible);
58798
+ return patches;
58799
+ }
58800
+ const duplex = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
58801
+ __proto__: null,
58802
+ unobserve,
58803
+ observe,
58804
+ generate,
58805
+ compare
58806
+ }, Symbol.toStringTag, { value: "Module" }));
58807
+ Object.assign({}, core, duplex, {
58808
+ JsonPatchError: PatchError,
58809
+ deepClone: _deepClone,
58810
+ escapePathComponent,
58811
+ unescapePathComponent
58812
+ });
57966
58813
  function onTokenChange(cb) {
57967
58814
  return store.subscribe(getTokenKey(), cb);
57968
58815
  }
@@ -57976,26 +58823,34 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
57976
58823
  return React__namespace.useSyncExternalStore(onTokenChange, getSessionToken);
57977
58824
  }
57978
58825
  const STORE_EXTRAS_MAP = /* @__PURE__ */ new Map();
58826
+ const STORE_VARIABLE_MAP = /* @__PURE__ */ new Map();
58827
+ const STORE_SEQUENCE_MAP = /* @__PURE__ */ new Map();
58828
+ const STORE_LATEST_VALUE_MAP = /* @__PURE__ */ new Map();
57979
58829
  function BackendStoreSync({ children }) {
57980
58830
  const { client } = React__namespace.useContext(websocketCtx);
57981
58831
  const getStoreValue = React__namespace.useCallback(async (itemKey) => {
58832
+ var _a;
57982
58833
  const serializableExtras = STORE_EXTRAS_MAP.get(itemKey);
57983
- const response = await request(`/api/core/store/${itemKey}`, {}, serializableExtras.extras);
58834
+ const response = await request(`/api/core/store/${itemKey}`, {}, (_a = serializableExtras == null ? void 0 : serializableExtras.extras) != null ? _a : {});
57984
58835
  await handleAuthErrors(response, true);
57985
58836
  await validateResponse(response, `Failed to fetch the store value for key: ${itemKey}`);
57986
- const val = await response.json();
57987
- return val;
58837
+ const { value, sequence_number } = await response.json();
58838
+ STORE_SEQUENCE_MAP.set(itemKey, sequence_number);
58839
+ return value;
57988
58840
  }, []);
57989
58841
  const syncStoreValues = React__namespace.useCallback(
57990
58842
  async ({ diff }) => {
57991
58843
  const extrasMap = /* @__PURE__ */ new Map();
57992
- for (const [itemKey, value] of diff.entries()) {
58844
+ Array.from(diff.entries()).filter(
58845
+ ([itemKey, value]) => !STORE_LATEST_VALUE_MAP.has(itemKey) || STORE_LATEST_VALUE_MAP.get(itemKey) !== value
58846
+ ).forEach(([itemKey, value]) => {
58847
+ STORE_LATEST_VALUE_MAP.set(itemKey, value);
57993
58848
  const extras = STORE_EXTRAS_MAP.get(itemKey);
57994
58849
  if (!extrasMap.has(extras)) {
57995
58850
  extrasMap.set(extras, {});
57996
58851
  }
57997
58852
  extrasMap.get(extras)[itemKey] = value;
57998
- }
58853
+ });
57999
58854
  async function sendRequest(serializableExtras, storeDiff) {
58000
58855
  const response = await request(
58001
58856
  `/api/core/store`,
@@ -58019,22 +58874,104 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
58019
58874
  },
58020
58875
  [client]
58021
58876
  );
58877
+ const applyPatchesToAtoms = Recoil_index_31(
58878
+ ({ snapshot, set: set2 }) => async (storeUid, patches, sequenceNumber) => {
58879
+ const expectedSequence = STORE_SEQUENCE_MAP.get(storeUid) || 0;
58880
+ if (sequenceNumber !== expectedSequence + 1) {
58881
+ console.warn(
58882
+ `Sequence number mismatch for store ${storeUid}. Expected: ${expectedSequence + 1}, Got: ${sequenceNumber}. Rejecting patch.`
58883
+ );
58884
+ return;
58885
+ }
58886
+ STORE_SEQUENCE_MAP.set(storeUid, sequenceNumber);
58887
+ const variableUids = STORE_VARIABLE_MAP.get(storeUid);
58888
+ if (!variableUids) {
58889
+ return;
58890
+ }
58891
+ const atomsToUpdate = [];
58892
+ for (const variableUid of variableUids) {
58893
+ const directAtom = atomRegistry.get(variableUid);
58894
+ if (directAtom) {
58895
+ atomsToUpdate.push({ atom: directAtom, variableUid });
58896
+ continue;
58897
+ }
58898
+ const atomFamily2 = atomFamilyRegistry.get(variableUid);
58899
+ if (atomFamily2) {
58900
+ const familyMembers = atomFamilyMembersRegistry.get(atomFamily2);
58901
+ if (familyMembers) {
58902
+ for (const [, atomInstance] of familyMembers) {
58903
+ atomsToUpdate.push({ atom: atomInstance, variableUid });
58904
+ }
58905
+ }
58906
+ }
58907
+ }
58908
+ const currentValues = await Promise.all(
58909
+ atomsToUpdate.map(async ({ atom: atom2, variableUid }) => {
58910
+ try {
58911
+ return {
58912
+ atom: atom2,
58913
+ variableUid,
58914
+ currentValue: await snapshot.getPromise(atom2),
58915
+ error: null
58916
+ };
58917
+ } catch (error) {
58918
+ return {
58919
+ atom: atom2,
58920
+ variableUid,
58921
+ currentValue: null,
58922
+ error
58923
+ };
58924
+ }
58925
+ })
58926
+ );
58927
+ const applyPatchToValue = (currentValue, variableUid) => {
58928
+ try {
58929
+ return applyPatch(currentValue, patches, false, false).newDocument;
58930
+ } catch (error) {
58931
+ console.warn(`Failed to apply patch to atom ${variableUid}:`, error);
58932
+ return currentValue;
58933
+ }
58934
+ };
58935
+ currentValues.forEach(({ atom: atom2, variableUid, currentValue, error }) => {
58936
+ if (error) {
58937
+ console.warn(`Failed to read current value for atom ${variableUid}:`, error);
58938
+ return;
58939
+ }
58940
+ const patchedValue = applyPatchToValue(currentValue, variableUid);
58941
+ set2(atom2, patchedValue);
58942
+ STORE_LATEST_VALUE_MAP.set(storeUid, patchedValue);
58943
+ });
58944
+ },
58945
+ []
58946
+ );
58022
58947
  const listenToStoreChanges = React__namespace.useCallback(
58023
58948
  ({ updateItem }) => {
58024
58949
  if (!client) {
58025
58950
  return;
58026
58951
  }
58027
- const sub = client.backendStoreMessages$().subscribe((message) => {
58952
+ const valueSub = client.backendStoreMessages$().subscribe((message) => {
58953
+ STORE_SEQUENCE_MAP.set(message.store_uid, message.sequence_number);
58028
58954
  updateItem(message.store_uid, message.value);
58955
+ STORE_LATEST_VALUE_MAP.set(message.store_uid, message.value);
58029
58956
  });
58030
- return () => sub.unsubscribe();
58957
+ const patchSub = client.backendStorePatchMessages$().subscribe((message) => {
58958
+ applyPatchesToAtoms(message.store_uid, message.patches, message.sequence_number);
58959
+ });
58960
+ return () => {
58961
+ valueSub.unsubscribe();
58962
+ patchSub.unsubscribe();
58963
+ };
58031
58964
  },
58032
- [client]
58965
+ [client, applyPatchesToAtoms]
58033
58966
  );
58034
58967
  return /* @__PURE__ */ React__namespace.createElement(RecoilSync_index_1, { listen: listenToStoreChanges, read: getStoreValue, storeKey: "BackendStore", write: syncStoreValues }, children);
58035
58968
  }
58036
58969
  function backendStoreEffect(variable, requestExtras) {
58037
58970
  STORE_EXTRAS_MAP.set(variable.store.uid, requestExtras);
58971
+ if (!STORE_VARIABLE_MAP.has(variable.store.uid)) {
58972
+ STORE_VARIABLE_MAP.set(variable.store.uid, /* @__PURE__ */ new Set());
58973
+ }
58974
+ STORE_VARIABLE_MAP.get(variable.store.uid).add(variable.uid);
58038
58975
  return RecoilSync_index_2({
58039
58976
  itemKey: variable.store.uid,
58040
58977
  refine: Refine_index_6(),
@@ -58125,12 +59062,12 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
58125
59062
  }
58126
59063
  };
58127
59064
  function getEffect(variable) {
58128
- var _a, _b;
59065
+ var _a, _b, _c;
58129
59066
  const storeName = (_a = variable.store) == null ? void 0 : _a.__typename;
58130
59067
  if (!storeName) {
58131
59068
  return null;
58132
59069
  }
58133
- return (_b = STORES[storeName].effect) != null ? _b : null;
59070
+ return (_c = (_b = STORES[storeName]) == null ? void 0 : _b.effect) != null ? _c : null;
58134
59071
  }
58135
59072
  function StoreProviders({ children }) {
58136
59073
  return /* @__PURE__ */ React__namespace.createElement(BackendStoreSync, null, /* @__PURE__ */ React__namespace.createElement(BrowserStoreSync, null, children));
@@ -58286,7 +59223,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
58286
59223
  return atomInstance;
58287
59224
  }
58288
59225
  function useDeferLoadable(loadable) {
58289
- const { suspend } = React.useContext(fallbackCtx);
59226
+ const { suspend } = useFallbackCtx();
58290
59227
  const [availableState, setAvailableState] = React.useState(() => loadable.getValue());
58291
59228
  const timerId = React.useRef(null);
58292
59229
  const isFirstRender = React.useRef(true);
@@ -58302,12 +59239,16 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
58302
59239
  }, suspend);
58303
59240
  }
58304
59241
  return () => {
58305
- clearTimeout(timerId.current);
59242
+ if (timerId.current) {
59243
+ clearTimeout(timerId.current);
59244
+ }
58306
59245
  };
58307
59246
  }, [loadable.state, suspend]);
58308
59247
  React.useEffect(() => {
58309
59248
  if (loadable.state === "hasValue") {
58310
- clearTimeout(timerId.current);
59249
+ if (timerId.current) {
59250
+ clearTimeout(timerId.current);
59251
+ }
58311
59252
  setShowFallback(false);
58312
59253
  setAvailableState(loadable.valueOrThrow());
58313
59254
  }
@@ -58322,24 +59263,24 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
58322
59263
  }
58323
59264
  function useVariable(variable) {
58324
59265
  const extras = useRequestExtras();
58325
- const { client: WsClient } = React.useContext(websocketCtx);
59266
+ const { client: wsClient } = React.useContext(websocketCtx);
58326
59267
  const taskContext = useTaskContext();
58327
59268
  const variablesContext = React.useContext(variablesCtx);
58328
59269
  const bus = useEventBus();
58329
59270
  if (!isVariable(variable)) {
58330
59271
  return React.useState(variable);
58331
59272
  }
58332
- variablesContext.variables.current.add(variable.uid);
59273
+ variablesContext == null ? void 0 : variablesContext.variables.current.add(variable.uid);
58333
59274
  React.useEffect(() => {
58334
59275
  return () => {
58335
- variablesContext.variables.current.delete(variable.uid);
59276
+ variablesContext == null ? void 0 : variablesContext.variables.current.delete(variable.uid);
58336
59277
  };
58337
59278
  }, []);
58338
59279
  if (isDataVariable(variable) || isDerivedDataVariable(variable)) {
58339
59280
  throw new Error(`Non-data variable expected, got ${variable.__typename}`);
58340
59281
  }
58341
59282
  if (isDerivedVariable(variable)) {
58342
- const selector2 = useDerivedVariable(variable, WsClient, taskContext, extras);
59283
+ const selector2 = useDerivedVariable(variable, wsClient, taskContext, extras);
58343
59284
  const selectorLoadable = Recoil_index_28(selector2);
58344
59285
  React.useEffect(() => {
58345
59286
  if (selectorLoadable.state !== "loading") {
@@ -58356,7 +59297,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
58356
59297
  }, [urlValue]);
58357
59298
  return [urlValue, setUrlValue];
58358
59299
  }
58359
- const recoilState = getOrRegisterPlainVariable(variable, WsClient, taskContext, extras);
59300
+ const recoilState = getOrRegisterPlainVariable(variable, wsClient, taskContext, extras);
58360
59301
  if (!isDerivedVariable(variable.default)) {
58361
59302
  const [value, setValue] = Recoil_index_22(recoilState);
58362
59303
  React.useEffect(() => {
@@ -58390,13 +59331,13 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
58390
59331
  const resolvedKwargs = Object.keys(annotatedAction.dynamic_kwargs).reduce(
58391
59332
  (acc, k2) => {
58392
59333
  const value = annotatedAction.dynamic_kwargs[k2];
58393
- acc[k2] = resolveVariable(
59334
+ acc[k2] = isVariable(value) ? resolveVariable(
58394
59335
  value,
58395
59336
  actionCtx.wsClient,
58396
59337
  actionCtx.taskCtx,
58397
59338
  actionCtx.extras,
58398
59339
  (v2) => actionCtx.snapshot.getLoadable(v2).getValue()
58399
- );
59340
+ ) : value;
58400
59341
  return acc;
58401
59342
  },
58402
59343
  {}
@@ -58537,7 +59478,15 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
58537
59478
  const taskCtx = useTaskContext();
58538
59479
  const location2 = useLocation();
58539
59480
  const eventBus = useEventBus();
58540
- const actionCtx = React.useRef();
59481
+ const actionCtx = React.useRef({
59482
+ extras,
59483
+ history: history2,
59484
+ location: location2,
59485
+ notificationCtx,
59486
+ taskCtx,
59487
+ wsClient,
59488
+ eventBus
59489
+ });
58541
59490
  const optionsRef = React.useRef(options);
58542
59491
  React.useLayoutEffect(() => {
58543
59492
  actionCtx.current = {
@@ -58556,6 +59505,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
58556
59505
  var _a;
58557
59506
  const actionsToExecute = Array.isArray(action) ? action : [action];
58558
59507
  for (const actionToExecute of actionsToExecute) {
59508
+ if (!actionToExecute) {
59509
+ continue;
59510
+ }
58559
59511
  const loadingVariable = !isActionImpl(actionToExecute) ? getOrRegisterPlainVariable(actionToExecute.loading, wsClient, taskCtx, extras) : null;
58560
59512
  if (loadingVariable) {
58561
59513
  cbInterface.set(loadingVariable, true);
@@ -58639,12 +59591,15 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
58639
59591
  function useWindowTitle(pageTitle) {
58640
59592
  const { data: config2 } = useConfig();
58641
59593
  React.useEffect(() => {
59594
+ if (!config2) {
59595
+ return;
59596
+ }
58642
59597
  if (!pageTitle) {
58643
- document.title = config2 == null ? void 0 : config2.title;
59598
+ document.title = config2.title;
58644
59599
  return;
58645
59600
  }
58646
- document.title = `${config2 == null ? void 0 : config2.title} - ${pageTitle}`;
58647
- }, [config2 == null ? void 0 : config2.title, pageTitle]);
59601
+ document.title = `${config2.title} - ${pageTitle}`;
59602
+ }, [config2, config2 == null ? void 0 : config2.title, pageTitle]);
58648
59603
  }
58649
59604
  const all_min = "";
58650
59605
  const BaseRawCssInject = styled__default.default.div`
@@ -58900,7 +59855,7 @@ Inferred class string: "${iconClasses}."`
58900
59855
  const { search } = useLocation();
58901
59856
  const query = React.useMemo(() => new URLSearchParams(search), [search]);
58902
59857
  const code = query.get("code");
58903
- const errorConfig = errorMessages[code] || errorMessages.default;
59858
+ const errorConfig = code && errorMessages[code] || errorMessages.default;
58904
59859
  return /* @__PURE__ */ React__default.default.createElement(CenteredDivWithGap, null, /* @__PURE__ */ React__default.default.createElement("h1", null, errorConfig.title), /* @__PURE__ */ React__default.default.createElement("p", null, errorConfig.description), /* @__PURE__ */ React__default.default.createElement(Button$1, { href: "/login", styling: errorConfig.styling }, "Retry"));
58905
59860
  }
58906
59861
  function PrivateRoute({ children, on_load, name }) {
@@ -58930,6 +59885,9 @@ Inferred class string: "${iconClasses}."`
58930
59885
  const [component, setComponent] = React.useState(() => /* @__PURE__ */ React__default.default.createElement(DefaultFallback, null));
58931
59886
  React.useEffect(() => {
58932
59887
  const importer = importers[props.component.py_module];
59888
+ if (!importer) {
59889
+ throw new Error(`Missing importer for module ${props.component.py_module}`);
59890
+ }
58933
59891
  importer().then((moduleContent) => {
58934
59892
  if (!moduleContent) {
58935
59893
  throw new Error(`Failed to import module ${props.component.py_module}`);
@@ -59056,6 +60014,112 @@ Inferred class string: "${iconClasses}."`
59056
60014
  let b2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
59057
60015
  return a2.length !== b2.length || a2.some((item, index2) => !Object.is(item, b2[index2]));
59058
60016
  }
60017
+ var baseGetTag = _baseGetTag, getPrototype = _getPrototype, isObjectLike = isObjectLike_1;
60018
+ var objectTag = "[object Object]";
60019
+ var funcProto = Function.prototype, objectProto = Object.prototype;
60020
+ var funcToString = funcProto.toString;
60021
+ var hasOwnProperty = objectProto.hasOwnProperty;
60022
+ var objectCtorString = funcToString.call(Object);
60023
+ function isPlainObject(value) {
60024
+ if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
60025
+ return false;
60026
+ }
60027
+ var proto = getPrototype(value);
60028
+ if (proto === null) {
60029
+ return true;
60030
+ }
60031
+ var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
60032
+ return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
60033
+ }
60034
+ var isPlainObject_1 = isPlainObject;
60035
+ var baseSet = _baseSet;
60036
+ function set(object2, path, value) {
60037
+ return object2 == null ? object2 : baseSet(object2, path, value);
60038
+ }
60039
+ var set_1 = set;
60040
+ function createMarkers(scope, loopInstanceUid) {
60041
+ const markers = [];
60042
+ if (scope.action) {
60043
+ markers.push({ type: "action", path: scope.action });
60044
+ }
60045
+ if (scope.derivedVariable) {
60046
+ markers.push({ type: "derived_var", path: scope.derivedVariable, loopInstanceUid });
60047
+ }
60048
+ if (scope.serverComponent) {
60049
+ markers.push({ type: "server_component", path: scope.serverComponent, loopInstanceUid });
60050
+ }
60051
+ return markers;
60052
+ }
60053
+ function updateScope(scope, value, path) {
60054
+ const newScope = { ...scope };
60055
+ if (!scope.action && isAnnotatedAction(value)) {
60056
+ newScope.action = path;
60057
+ }
60058
+ if (!scope.derivedVariable && isDerivedVariable(value)) {
60059
+ newScope.derivedVariable = path;
60060
+ }
60061
+ if (!scope.serverComponent && isPyComponent(value)) {
60062
+ newScope.serverComponent = path;
60063
+ }
60064
+ return newScope;
60065
+ }
60066
+ function getInjectionMarkers(renderer) {
60067
+ const markers = [];
60068
+ function walk(obj, pathSegments, scope = {}) {
60069
+ for (const [key, value] of Object.entries(obj)) {
60070
+ const currentPath = [...pathSegments, key];
60071
+ const dotPath = currentPath.join(".");
60072
+ if (isLoopVariable(value)) {
60073
+ markers.push(
60074
+ { path: dotPath, nested: value.nested, type: "loop_var" },
60075
+ ...createMarkers(scope, value.uid)
60076
+ );
60077
+ continue;
60078
+ }
60079
+ if (isPlainObject_1(value) || Array.isArray(value)) {
60080
+ const newScope = updateScope(scope, value, dotPath);
60081
+ walk(value, [...pathSegments, key], newScope);
60082
+ }
60083
+ }
60084
+ }
60085
+ walk(renderer, []);
60086
+ return markers;
60087
+ }
60088
+ function applyMarkers(renderer, markers, loopValue, itemKey) {
60089
+ if (markers.length === 0) {
60090
+ return renderer;
60091
+ }
60092
+ const clonedRenderer = cloneDeep_1(renderer);
60093
+ for (const marker of markers) {
60094
+ switch (marker.type) {
60095
+ case "loop_var": {
60096
+ set_1(clonedRenderer, marker.path, resolveNested(loopValue, marker.nested));
60097
+ break;
60098
+ }
60099
+ case "action": {
60100
+ set_1(clonedRenderer, `${marker.path}.loading.uid`, nanoid());
60101
+ break;
60102
+ }
60103
+ case "derived_var": {
60104
+ set_1(clonedRenderer, `${marker.path}.loop_instance_uid`, `${marker.loopInstanceUid}:${itemKey}`);
60105
+ break;
60106
+ }
60107
+ case "server_component": {
60108
+ set_1(clonedRenderer, `${marker.path}.loop_instance_uid`, `${marker.loopInstanceUid}:${itemKey}`);
60109
+ break;
60110
+ }
60111
+ }
60112
+ }
60113
+ return clonedRenderer;
60114
+ }
60115
+ function hasMarkers(component) {
60116
+ for (const [key, value] of Object.entries(component.props)) {
60117
+ if (isLoopVariable(value)) {
60118
+ return key;
60119
+ }
60120
+ }
60121
+ return null;
60122
+ }
59059
60123
  const POLLING_INTERVAL = 100;
59060
60124
  const FAKE_PROGRESS_INTERVAL = 100;
59061
60125
  const ESTIMATE_RATIO = 0.85;
@@ -59110,7 +60174,7 @@ Inferred class string: "${iconClasses}."`
59110
60174
  `;
59111
60175
  function findRunningTasks(tasksContext, variablesRef) {
59112
60176
  var _a;
59113
- if (!(((_a = variablesRef == null ? void 0 : variablesRef.current) == null ? void 0 : _a.size) > 0 && tasksContext.hasRunningTasks())) {
60177
+ if (!(variablesRef && ((_a = variablesRef == null ? void 0 : variablesRef.current) == null ? void 0 : _a.size) > 0 && tasksContext.hasRunningTasks())) {
59114
60178
  return [];
59115
60179
  }
59116
60180
  return tasksContext.getVariableTasks(...variablesRef.current.values());
@@ -59118,12 +60182,17 @@ Inferred class string: "${iconClasses}."`
59118
60182
  function ProgressTracker(props) {
59119
60183
  const taskContext = useTaskContext();
59120
60184
  const { client: wsClient } = React.useContext(websocketCtx);
59121
- const [latestProgressUpdate, setLatestProgressUpdate] = React.useState(null);
60185
+ const [latestProgressUpdate, setLatestProgressUpdate] = React.useState(
60186
+ null
60187
+ );
59122
60188
  const [progress, setProgress] = React.useState(null);
59123
60189
  const fakeInterval = React.useRef(null);
59124
60190
  const [subscribedTaskIds, setSubscribedTaskIds] = React.useState([]);
59125
60191
  const [restartTrigger, setRestartTrigger] = React.useState(0);
59126
60192
  React.useEffect(() => {
60193
+ if (!wsClient) {
60194
+ return;
60195
+ }
59127
60196
  let progressSubscription = null;
59128
60197
  const timer2 = setInterval(() => {
59129
60198
  const taskIds = findRunningTasks(taskContext, props.variablesRef);
@@ -59140,8 +60209,11 @@ Inferred class string: "${iconClasses}."`
59140
60209
  }
59141
60210
  progressSubscription == null ? void 0 : progressSubscription.unsubscribe();
59142
60211
  };
59143
- }, [restartTrigger]);
60212
+ }, [restartTrigger, wsClient]);
59144
60213
  React.useEffect(() => {
60214
+ if (!wsClient) {
60215
+ return;
60216
+ }
59145
60217
  let subscription = null;
59146
60218
  if (subscribedTaskIds.length > 0) {
59147
60219
  subscription = wsClient.taskStatusUpdates$(...subscribedTaskIds).subscribe((newStatus) => {
@@ -59159,7 +60231,7 @@ Inferred class string: "${iconClasses}."`
59159
60231
  return () => {
59160
60232
  subscription == null ? void 0 : subscription.unsubscribe();
59161
60233
  };
59162
- }, [subscribedTaskIds]);
60234
+ }, [subscribedTaskIds, wsClient]);
59163
60235
  React.useEffect(() => {
59164
60236
  var _a, _b;
59165
60237
  if (!latestProgressUpdate) {
@@ -59288,7 +60360,8 @@ Inferred class string: "${iconClasses}."`
59288
60360
  function ErrorDisplay$1(props) {
59289
60361
  var _a, _b, _c, _d, _e2;
59290
60362
  const [styles2, css2] = parseRawCss((_a = props.config) == null ? void 0 : _a.raw_css);
59291
- return /* @__PURE__ */ React__default.default.createElement(ErrorDisplayWrapper, { $rawCss: css2, style: styles2 }, /* @__PURE__ */ React__default.default.createElement(ContentWrapper, null, /* @__PURE__ */ React__default.default.createElement(ErrorContent, null, /* @__PURE__ */ React__default.default.createElement(ErrorTitle$1, null, /* @__PURE__ */ React__default.default.createElement(IconWrapper, null, /* @__PURE__ */ React__default.default.createElement(ErrorIcon, { "aria-hidden": true, className: "fa-solid fa-circle-xmark fa-lg" })), (_c = (_b = props == null ? void 0 : props.config) == null ? void 0 : _b.title) != null ? _c : "Error"), /* @__PURE__ */ React__default.default.createElement(ErrorText$1, null, (_e2 = (_d = props == null ? void 0 : props.config) == null ? void 0 : _d.description) != null ? _e2 : "Try again or contact the application owner."))), props.resetErrorBoundary && /* @__PURE__ */ React__default.default.createElement(RetryButton, { onClick: () => props.resetErrorBoundary(props.error), type: "button" }, /* @__PURE__ */ React__default.default.createElement("i", { "aria-hidden": true, className: "fa-solid fa-rotate fa-xl" })));
60363
+ const defaultMessage = props.error instanceof UserError ? props.error.message : "Try again or contact the application owner.";
60364
+ return /* @__PURE__ */ React__default.default.createElement(ErrorDisplayWrapper, { $rawCss: css2, style: styles2 }, /* @__PURE__ */ React__default.default.createElement(ContentWrapper, null, /* @__PURE__ */ React__default.default.createElement(ErrorContent, null, /* @__PURE__ */ React__default.default.createElement(ErrorTitle$1, null, /* @__PURE__ */ React__default.default.createElement(IconWrapper, null, /* @__PURE__ */ React__default.default.createElement(ErrorIcon, { "aria-hidden": true, className: "fa-solid fa-circle-xmark fa-lg" })), (_c = (_b = props == null ? void 0 : props.config) == null ? void 0 : _b.title) != null ? _c : "Error"), /* @__PURE__ */ React__default.default.createElement(ErrorText$1, null, (_e2 = (_d = props == null ? void 0 : props.config) == null ? void 0 : _d.description) != null ? _e2 : defaultMessage))), props.resetErrorBoundary && /* @__PURE__ */ React__default.default.createElement(RetryButton, { onClick: () => props.resetErrorBoundary(props.error), type: "button" }, /* @__PURE__ */ React__default.default.createElement("i", { "aria-hidden": true, className: "fa-solid fa-rotate fa-xl" })));
59292
60365
  }
59293
60366
  function useDataVariable(variable) {
59294
60367
  const extras = useRequestExtras();
@@ -59305,10 +60378,10 @@ Inferred class string: "${iconClasses}."`
59305
60378
  return fetchDataVariable2;
59306
60379
  }
59307
60380
  const variablesContext = React.useContext(variablesCtx);
59308
- variablesContext.variables.current.add(variable.uid);
60381
+ variablesContext == null ? void 0 : variablesContext.variables.current.add(variable.uid);
59309
60382
  React.useEffect(() => {
59310
60383
  return () => {
59311
- variablesContext.variables.current.delete(variable.uid);
60384
+ variablesContext == null ? void 0 : variablesContext.variables.current.delete(variable.uid);
59312
60385
  };
59313
60386
  }, []);
59314
60387
  const taskContext = useTaskContext();
@@ -59339,7 +60412,7 @@ Inferred class string: "${iconClasses}."`
59339
60412
  React.useEffect(() => {
59340
60413
  refetch();
59341
60414
  }, [getData2]);
59342
- return data;
60415
+ return data != null ? data : void 0;
59343
60416
  }
59344
60417
  return useVariable(variable)[0];
59345
60418
  }
@@ -59458,11 +60531,14 @@ Inferred class string: "${iconClasses}."`
59458
60531
  function isTaskResponse(response) {
59459
60532
  return response && typeof response === "object" && "task_id" in response;
59460
60533
  }
59461
- function getComponentRegistryKey(uid2, trigger) {
60534
+ function getComponentRegistryKey(uid2, trigger, loopInstanceUid) {
59462
60535
  let key = `_COMPONENT_${uid2}`;
59463
60536
  if (trigger) {
59464
60537
  key += "_TRIGGER";
59465
60538
  }
60539
+ if (loopInstanceUid) {
60540
+ key += `_${loopInstanceUid}`;
60541
+ }
59466
60542
  return key;
59467
60543
  }
59468
60544
  async function fetchFunctionComponent(component, values, uid2, extras, wsClient) {
@@ -59501,8 +60577,8 @@ Inferred class string: "${iconClasses}."`
59501
60577
  {}
59502
60578
  );
59503
60579
  }
59504
- function getOrRegisterComponentTrigger(uid2) {
59505
- const triggerKey = getComponentRegistryKey(uid2, true);
60580
+ function getOrRegisterComponentTrigger(uid2, loop_instance_uid) {
60581
+ const triggerKey = getComponentRegistryKey(uid2, true, loop_instance_uid);
59506
60582
  if (!atomRegistry.has(triggerKey)) {
59507
60583
  atomRegistry.set(
59508
60584
  triggerKey,
@@ -59517,8 +60593,16 @@ Inferred class string: "${iconClasses}."`
59517
60593
  }
59518
60594
  return atomRegistry.get(triggerKey);
59519
60595
  }
59520
- function getOrRegisterServerComponent(name, uid2, dynamicKwargs, wsClient, taskContext, currentExtras) {
59521
- const key = getComponentRegistryKey(uid2);
60596
+ function getOrRegisterServerComponent({
60597
+ name,
60598
+ uid: uid2,
60599
+ dynamicKwargs,
60600
+ wsClient,
60601
+ taskContext,
60602
+ currentExtras,
60603
+ loop_instance_uid
60604
+ }) {
60605
+ const key = getComponentRegistryKey(uid2, false, loop_instance_uid);
59522
60606
  if (!selectorFamilyRegistry.has(key)) {
59523
60607
  selectorFamilyRegistry.set(
59524
60608
  key,
@@ -59530,7 +60614,7 @@ Inferred class string: "${iconClasses}."`
59530
60614
  const resolvedKwargs = Object.keys(dynamicKwargs).reduce(
59531
60615
  (acc, k2) => {
59532
60616
  const value = dynamicKwargs[k2];
59533
- acc[k2] = resolveVariable(value, wsClient, taskContext, currentExtras);
60617
+ acc[k2] = isVariable(value) ? resolveVariable(value, wsClient, taskContext, currentExtras) : value;
59534
60618
  return acc;
59535
60619
  },
59536
60620
  {}
@@ -59618,19 +60702,27 @@ Inferred class string: "${iconClasses}."`
59618
60702
  selectorFamilyMembersRegistry.get(family).set(serializableExtras.toJSON(), selectorInstance);
59619
60703
  return selectorInstance;
59620
60704
  }
59621
- function useServerComponent(name, uid2, dynamicKwargs) {
60705
+ function useServerComponent(name, uid2, dynamicKwargs, loop_instance_uid) {
59622
60706
  const extras = useRequestExtras();
59623
60707
  const { client: wsClient } = React.useContext(websocketCtx);
59624
60708
  const taskContext = useTaskContext();
59625
60709
  const variablesContext = React.useContext(variablesCtx);
59626
60710
  const bus = useEventBus();
59627
- variablesContext.variables.current.add(getComponentRegistryKey(uid2));
60711
+ variablesContext == null ? void 0 : variablesContext.variables.current.add(getComponentRegistryKey(uid2));
59628
60712
  React.useEffect(() => {
59629
60713
  return () => {
59630
- variablesContext.variables.current.delete(getComponentRegistryKey(uid2));
60714
+ variablesContext == null ? void 0 : variablesContext.variables.current.delete(getComponentRegistryKey(uid2));
59631
60715
  };
59632
60716
  }, []);
59633
- const componentSelector = getOrRegisterServerComponent(name, uid2, dynamicKwargs, wsClient, taskContext, extras);
60717
+ const componentSelector = getOrRegisterServerComponent({
60718
+ name,
60719
+ uid: uid2,
60720
+ dynamicKwargs,
60721
+ wsClient,
60722
+ taskContext,
60723
+ currentExtras: extras,
60724
+ loop_instance_uid
60725
+ });
59634
60726
  const componentLoadable = Recoil_index_21(componentSelector);
59635
60727
  React.useEffect(() => {
59636
60728
  if (componentLoadable.state === "hasValue") {
@@ -59640,10 +60732,10 @@ Inferred class string: "${iconClasses}."`
59640
60732
  const deferred = useDeferLoadable(componentLoadable);
59641
60733
  return deferred;
59642
60734
  }
59643
- function useRefreshServerComponent(uid2) {
60735
+ function useRefreshServerComponent(uid2, loop_instance_uid) {
59644
60736
  return Recoil_index_31(
59645
60737
  ({ set: set2 }) => () => {
59646
- const triggerAtom = getOrRegisterComponentTrigger(uid2);
60738
+ const triggerAtom = getOrRegisterComponentTrigger(uid2, loop_instance_uid);
59647
60739
  set2(triggerAtom, (triggerIndexValue) => ({
59648
60740
  force: false,
59649
60741
  inc: triggerIndexValue.inc + 1
@@ -59690,71 +60782,92 @@ Inferred class string: "${iconClasses}."`
59690
60782
  }
59691
60783
  return pollingInterval;
59692
60784
  }
59693
- async function resolveComponent(component, getComponentEntry, importers) {
60785
+ const MODULE_CACHE = /* @__PURE__ */ new Map();
60786
+ const COMPONENT_METADATA_CACHE = /* @__PURE__ */ new Map();
60787
+ function resolveComponentSync(component) {
59694
60788
  var _a;
59695
- const componentEntry = await getComponentEntry(component);
59696
- if (isJsComponent(componentEntry)) {
59697
- const importer = importers[componentEntry.py_module];
59698
- if (!importer) {
59699
- const errorDescription = componentEntry.py_module === "LOCAL" ? `This is a local component so make sure you are in production mode and dara.config.json is present.
60789
+ if ((component == null ? void 0 : component.name) === "RawString") {
60790
+ return component.props.content;
60791
+ }
60792
+ const metadata = COMPONENT_METADATA_CACHE.get(component.name);
60793
+ if (!metadata) {
60794
+ return null;
60795
+ }
60796
+ if (metadata.type === "py") {
60797
+ return /* @__PURE__ */ React__default.default.createElement(
60798
+ PythonWrapper,
60799
+ {
60800
+ component,
60801
+ dynamic_kwargs: component.props.dynamic_kwargs,
60802
+ func_name: component.props.func_name,
60803
+ name: component.name,
60804
+ polling_interval: component.props.polling_interval,
60805
+ uid: component.uid
60806
+ }
60807
+ );
60808
+ }
60809
+ const moduleContent = MODULE_CACHE.get(metadata.py_module);
60810
+ if (!moduleContent) {
60811
+ return null;
60812
+ }
60813
+ const ResolvedComponent = moduleContent[(_a = metadata.js_component) != null ? _a : metadata.name];
60814
+ if (!ResolvedComponent) {
60815
+ return /* @__PURE__ */ React__default.default.createElement(
60816
+ ErrorDisplay$1,
60817
+ {
60818
+ config: {
60819
+ description: `The JavaScript module was imported successfully but the component was not found within the module.`,
60820
+ title: `Component "${metadata.name}" could not be resolved`
60821
+ }
60822
+ }
60823
+ );
60824
+ }
60825
+ const props = cleanProps(component.props);
60826
+ return /* @__PURE__ */ React__default.default.createElement(ResolvedComponent, { uid: component.uid, ...props });
60827
+ }
60828
+ class ComponentLoadError extends Error {
60829
+ constructor(message, title) {
60830
+ super(message);
60831
+ __publicField(this, "title");
60832
+ this.title = title;
60833
+ }
60834
+ }
60835
+ async function resolveComponentAsync(component, getComponent, importers) {
60836
+ const entry = await getComponent(component);
60837
+ if (!isJsComponent(entry)) {
60838
+ COMPONENT_METADATA_CACHE.set(component.name, entry);
60839
+ return;
60840
+ }
60841
+ COMPONENT_METADATA_CACHE.set(component.name, entry);
60842
+ if (MODULE_CACHE.has(entry.py_module)) {
60843
+ return;
60844
+ }
60845
+ const importer = importers[entry.py_module];
60846
+ if (!importer) {
60847
+ const errorDescription = entry.py_module === "LOCAL" ? `This is a local component so make sure you are in production mode and dara.config.json is present.
59700
60848
  You can try re-building JavaScript by running Dara with the --rebuild flag.` : `This means that the JavaScript module for the component was not included by the discovery system.
59701
60849
  You can try re-building JavaScript by running Dara with the --rebuild flag
59702
60850
  and/or explicitly registering the component with "config.add_component(MyComponentClass)".`;
59703
- return /* @__PURE__ */ React__default.default.createElement(
59704
- ErrorDisplay$1,
59705
- {
59706
- config: {
59707
- description: `Importer for module "${componentEntry.py_module}" was not found. ${errorDescription}`,
59708
- title: `Component "${componentEntry.name}" could not be resolved`
59709
- }
59710
- }
59711
- );
59712
- }
59713
- let moduleContent = null;
59714
- try {
59715
- moduleContent = await importer();
59716
- } catch (e2) {
59717
- console.error(e2);
60851
+ throw new ComponentLoadError(errorDescription, `Component ${entry.name} could not be resolved`);
60852
+ }
60853
+ let moduleContent = null;
60854
+ try {
60855
+ moduleContent = await importer();
60856
+ if (moduleContent) {
60857
+ MODULE_CACHE.set(entry.py_module, moduleContent);
59718
60858
  }
59719
- if (!moduleContent) {
59720
- return /* @__PURE__ */ React__default.default.createElement(
59721
- ErrorDisplay$1,
59722
- {
59723
- config: {
59724
- description: `Failed to import the JavaScript module for the component.
60859
+ } catch (e2) {
60860
+ console.error(`Failed to load module ${entry.py_module}:`, e2);
60861
+ }
60862
+ if (!moduleContent) {
60863
+ throw new ComponentLoadError(
60864
+ `Failed to import the JavaScript module for the component.
59725
60865
  This likely means that the module was not installed properly.
59726
60866
  You can try re-building JavaScript by running Dara with the --rebuild flag
59727
60867
  and/or explicitly registering the component with "config.add_component(MyComponentClass)".`,
59728
- title: `Component "${componentEntry.name}" could not be resolved`
59729
- }
59730
- }
59731
- );
59732
- }
59733
- const ResolvedComponent = moduleContent[(_a = componentEntry.js_component) != null ? _a : componentEntry.name];
59734
- if (!ResolvedComponent) {
59735
- return /* @__PURE__ */ React__default.default.createElement(
59736
- ErrorDisplay$1,
59737
- {
59738
- config: {
59739
- description: `The JavaScript module was imported successfully but the component was not found within the module.`,
59740
- title: `Component "${componentEntry.name}" could not be resolved`
59741
- }
59742
- }
59743
- );
59744
- }
59745
- const props = cleanProps(component.props);
59746
- return /* @__PURE__ */ React__default.default.createElement(ResolvedComponent, { uid: component.uid, ...props });
60868
+ `Component ${entry.name} could not be resolved`
60869
+ );
59747
60870
  }
59748
- return /* @__PURE__ */ React__default.default.createElement(
59749
- PythonWrapper,
59750
- {
59751
- dynamic_kwargs: component.props.dynamic_kwargs,
59752
- func_name: component.props.func_name,
59753
- name: component.name,
59754
- polling_interval: component.props.polling_interval,
59755
- uid: component.uid
59756
- }
59757
- );
59758
60871
  }
59759
60872
  function getFallbackComponent(fallback, track_progress, variablesRef) {
59760
60873
  let fallbackComponent = /* @__PURE__ */ React__default.default.createElement(DefaultFallback, null);
@@ -59768,40 +60881,53 @@ Inferred class string: "${iconClasses}."`
59768
60881
  }
59769
60882
  function DynamicComponent(props) {
59770
60883
  var _a, _b, _c, _d, _e2, _f;
59771
- const [isLoading, setIsLoading] = React.useState(true);
59772
- const [component, setComponent] = React.useState();
59773
- const { get: getComponent } = useComponentRegistry();
59774
60884
  const importers = React.useContext(importersCtx);
59775
60885
  const fallbackCtx$1 = React.useContext(fallbackCtx);
60886
+ const { get: getComponent } = useComponentRegistry();
60887
+ const [component, setComponent] = React.useState(() => resolveComponentSync(props.component));
60888
+ const [isLoading, setIsLoading] = React.useState(() => component === null);
60889
+ const [loadingStarted, setLoadingStarted] = React.useState(false);
60890
+ React.useLayoutEffect(() => {
60891
+ const markerProp = hasMarkers(props.component);
60892
+ if (markerProp) {
60893
+ throw new UserError(
60894
+ `Component "${props.component.name}" has a loop variable in its "${markerProp}" property
60895
+ LoopVariable (aka "Variable.list_item") can only be used within the For component's "renderer" property.`
60896
+ );
60897
+ }
60898
+ }, [props.component]);
59776
60899
  React.useEffect(() => {
59777
- var _a2;
59778
- if (((_a2 = props.component) == null ? void 0 : _a2.name) === "RawString") {
59779
- setComponent(props.component.props.content);
59780
- setIsLoading(false);
60900
+ if (!isLoading || loadingStarted) {
59781
60901
  return;
59782
60902
  }
59783
- if (props.component) {
59784
- resolveComponent(props.component, getComponent, importers).then((ResolvedComponent) => {
59785
- setComponent(ResolvedComponent);
59786
- setIsLoading(false);
59787
- });
59788
- }
59789
- }, [props.component, getComponent]);
60903
+ setLoadingStarted(true);
60904
+ resolveComponentAsync(props.component, getComponent, importers).then(() => {
60905
+ const resolvedComponent = resolveComponentSync(props.component);
60906
+ setIsLoading(false);
60907
+ setComponent(resolvedComponent);
60908
+ }).catch((error) => {
60909
+ console.error("Failed to resolve component:", error);
60910
+ setIsLoading(false);
60911
+ if (error instanceof ComponentLoadError) {
60912
+ setComponent(/* @__PURE__ */ React__default.default.createElement(ErrorDisplay$1, { config: { title: error.title, description: error.message } }));
60913
+ }
60914
+ });
60915
+ }, [props.component, getComponent, importers, isLoading, loadingStarted]);
59790
60916
  const refreshSelector = useRefreshSelector();
59791
60917
  function onResetErrorBoundary(error) {
59792
60918
  if (isSelectorError(error)) {
59793
60919
  refreshSelector(error.selectorId, error.selectorExtras);
59794
60920
  }
59795
60921
  }
59796
- const taskCtx = useTaskContext();
60922
+ const { hasRunningTasks, cleanupRunningTasks } = useTaskContext();
59797
60923
  const variables = React.useRef(/* @__PURE__ */ new Set());
59798
60924
  React.useEffect(() => {
59799
60925
  return () => {
59800
- if (variables.current.size > 0 && taskCtx.hasRunningTasks()) {
59801
- taskCtx.cleanupRunningTasks(...variables.current.values());
60926
+ if (variables.current.size > 0 && hasRunningTasks()) {
60927
+ cleanupRunningTasks(...variables.current.values());
59802
60928
  }
59803
60929
  };
59804
- }, []);
60930
+ }, [cleanupRunningTasks, hasRunningTasks]);
59805
60931
  const [fallback] = React.useState(
59806
60932
  () => {
59807
60933
  var _a2, _b2, _c2, _d2;
@@ -59809,7 +60935,7 @@ Inferred class string: "${iconClasses}."`
59809
60935
  }
59810
60936
  );
59811
60937
  if (isLoading) {
59812
- return null;
60938
+ return fallback;
59813
60939
  }
59814
60940
  const suspend = (_f = (_e2 = (_d = (_c = (_b = (_a = props.component) == null ? void 0 : _a.props) == null ? void 0 : _b.fallback) == null ? void 0 : _c.props) == null ? void 0 : _d.suspend_render) != null ? _e2 : fallbackCtx$1 == null ? void 0 : fallbackCtx$1.suspend) != null ? _f : 200;
59815
60941
  return /* @__PURE__ */ React__default.default.createElement(
@@ -59825,11 +60951,16 @@ Inferred class string: "${iconClasses}."`
59825
60951
  );
59826
60952
  }
59827
60953
  function PythonWrapper(props) {
59828
- const component = useServerComponent(props.name, props.uid, props.dynamic_kwargs);
59829
- const refresh = useRefreshServerComponent(props.uid);
60954
+ const component = useServerComponent(
60955
+ props.name,
60956
+ props.uid,
60957
+ props.dynamic_kwargs,
60958
+ props.component.loop_instance_uid
60959
+ );
60960
+ const refresh = useRefreshServerComponent(props.uid, props.component.loop_instance_uid);
59830
60961
  const pollingInterval = React.useMemo(
59831
60962
  () => computePollingInterval(props.dynamic_kwargs, props.polling_interval),
59832
- [props.polling_interval]
60963
+ [props.dynamic_kwargs, props.polling_interval]
59833
60964
  );
59834
60965
  useInterval(refresh, pollingInterval);
59835
60966
  if (component === null) {
@@ -59854,17 +60985,21 @@ Inferred class string: "${iconClasses}."`
59854
60985
  }
59855
60986
  return /* @__PURE__ */ React__default.default.createElement(DynamicComponent, { component, key: component.uid });
59856
60987
  }
60988
+ const DynamicComponent$1 = React.memo(DynamicComponent);
59857
60989
  function useBackendErrorsSubscription() {
59858
60990
  const [errors, setErrors] = React.useState([]);
59859
60991
  const { client } = React.useContext(websocketCtx);
59860
60992
  React.useEffect(() => {
60993
+ if (!client) {
60994
+ return;
60995
+ }
59861
60996
  const sub = client.serverErrors$().subscribe((err2) => {
59862
60997
  setErrors((prev) => [...prev, err2.message]);
59863
60998
  });
59864
60999
  return () => {
59865
61000
  sub.unsubscribe();
59866
61001
  };
59867
- });
61002
+ }, [client]);
59868
61003
  const clearErrors = React.useCallback(() => {
59869
61004
  setErrors([]);
59870
61005
  }, []);
@@ -59876,7 +61011,11 @@ Inferred class string: "${iconClasses}."`
59876
61011
  return /* @__PURE__ */ React__default.default.createElement(BackendErrorsCtx.Provider, { value: { clearErrors, errors } }, props.children);
59877
61012
  }
59878
61013
  function useBackendErrors() {
59879
- return React.useContext(BackendErrorsCtx);
61014
+ const ctx = React.useContext(BackendErrorsCtx);
61015
+ if (!ctx) {
61016
+ throw new Error("useBackendErrors must be used within BackendErrorsProvider");
61017
+ }
61018
+ return ctx;
59880
61019
  }
59881
61020
  const ErrorWrapper = styled__default.default.div`
59882
61021
  display: flex;
@@ -60306,7 +61445,7 @@ Inferred class string: "${iconClasses}."`
60306
61445
  const variableValue = getVariableState(req.message.variable);
60307
61446
  props.wsClient.sendVariable(variableValue, req.message.__rchan);
60308
61447
  } catch (err2) {
60309
- console.warn(`Error when processing a getVariableValue request: ${err2}`);
61448
+ console.warn(`Error when processing a getVariableValue request: ${String(err2)}`);
60310
61449
  }
60311
61450
  });
60312
61451
  return () => {
@@ -60321,7 +61460,7 @@ Inferred class string: "${iconClasses}."`
60321
61460
  ...component,
60322
61461
  props: {
60323
61462
  ...component.props,
60324
- children: rest.length === 0 ? children : /* @__PURE__ */ React__namespace.createElement(DynamicComponent, { component: mergeContext(rest, children) })
61463
+ children: rest.length === 0 ? children : /* @__PURE__ */ React__namespace.createElement(DynamicComponent$1, { component: mergeContext(rest, children) })
60325
61464
  }
60326
61465
  };
60327
61466
  }
@@ -60335,7 +61474,7 @@ Inferred class string: "${iconClasses}."`
60335
61474
  if (!mergedContext) {
60336
61475
  return /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, null, props.children);
60337
61476
  }
60338
- return /* @__PURE__ */ React__namespace.createElement(DynamicComponent, { component: mergedContext });
61477
+ return /* @__PURE__ */ React__namespace.createElement(DynamicComponent$1, { component: mergedContext });
60339
61478
  }
60340
61479
  const RootWrapper = styled__default.default.div`
60341
61480
  scrollbar-color: ${(props) => `${props.theme.colors.grey5} ${props.theme.colors.grey2}`};
@@ -60374,22 +61513,24 @@ Inferred class string: "${iconClasses}."`
60374
61513
  function TemplateRoot(props) {
60375
61514
  var _a, _b, _c;
60376
61515
  const token = useSessionToken();
60377
- const tokenRef = React.useRef(token);
60378
61516
  const { data: config2 } = useConfig();
60379
61517
  const { data: template, isLoading: templateLoading } = useTemplate(config2 == null ? void 0 : config2.template);
60380
61518
  const { data: actions, isLoading: actionsLoading } = useActions();
60381
61519
  const { data: components, isLoading: componentsLoading, refetch: refetchComponents } = useComponents();
60382
- const [wsClient, setWsClient] = React.useState(props.initialWebsocketClient);
61520
+ const [wsClient, setWsClient] = React.useState(() => props.initialWebsocketClient);
60383
61521
  React.useEffect(() => {
60384
- cleanSessionCache(token);
61522
+ if (token) {
61523
+ cleanSessionCache(token);
61524
+ }
60385
61525
  }, [token]);
60386
61526
  React.useEffect(() => {
60387
61527
  if (!wsClient) {
60388
61528
  return;
60389
61529
  }
60390
61530
  return onTokenChange((newToken) => {
60391
- tokenRef.current = newToken;
60392
- wsClient.updateToken(newToken);
61531
+ if (newToken) {
61532
+ wsClient.updateToken(newToken);
61533
+ }
60393
61534
  });
60394
61535
  }, [wsClient]);
60395
61536
  React.useEffect(() => {
@@ -60398,14 +61539,16 @@ Inferred class string: "${iconClasses}."`
60398
61539
  }
60399
61540
  }, [config2 == null ? void 0 : config2.title]);
60400
61541
  React.useEffect(() => {
60401
- if (config2) {
60402
- setWsClient(setupWebsocket(tokenRef.current, config2.live_reload));
61542
+ if (wsClient || !config2) {
61543
+ return;
60403
61544
  }
61545
+ const newWsClient = setupWebsocket(token, config2.live_reload);
61546
+ setWsClient(newWsClient);
60404
61547
  return () => {
60405
- wsClient == null ? void 0 : wsClient.close();
61548
+ newWsClient.close();
60406
61549
  };
60407
- }, [tokenRef, config2 == null ? void 0 : config2.live_reload]);
60408
- if (templateLoading || actionsLoading || componentsLoading) {
61550
+ }, [token, config2 == null ? void 0 : config2.live_reload]);
61551
+ if (templateLoading || actionsLoading || componentsLoading || !wsClient) {
60409
61552
  return null;
60410
61553
  }
60411
61554
  return /* @__PURE__ */ React__default.default.createElement(styled.ThemeProvider, { theme: resolveTheme((_a = config2 == null ? void 0 : config2.theme) == null ? void 0 : _a.main, (_b = config2 == null ? void 0 : config2.theme) == null ? void 0 : _b.base) }, /* @__PURE__ */ React__default.default.createElement(websocketCtx.Provider, { value: { client: wsClient } }, /* @__PURE__ */ React__default.default.createElement(
@@ -60413,7 +61556,7 @@ Inferred class string: "${iconClasses}."`
60413
61556
  {
60414
61557
  value: { actionRegistry: actions, componentRegistry: components, refetchComponents }
60415
61558
  },
60416
- /* @__PURE__ */ React__default.default.createElement(GlobalTaskProvider, null, /* @__PURE__ */ React__default.default.createElement(DynamicContext, { contextComponents: (_c = config2 == null ? void 0 : config2.context_components) != null ? _c : [] }, /* @__PURE__ */ React__default.default.createElement(StoreProviders, null, /* @__PURE__ */ React__default.default.createElement(RootWrapper, null, /* @__PURE__ */ React__default.default.createElement(DynamicComponent, { component: template == null ? void 0 : template.layout }), /* @__PURE__ */ React__default.default.createElement(VariableStateProvider, { wsClient }), (config2 == null ? void 0 : config2.enable_devtools) && /* @__PURE__ */ React__default.default.createElement(DevTools, null)))))
61559
+ /* @__PURE__ */ React__default.default.createElement(DynamicContext, { contextComponents: (_c = config2 == null ? void 0 : config2.context_components) != null ? _c : [] }, /* @__PURE__ */ React__default.default.createElement(StoreProviders, null, /* @__PURE__ */ React__default.default.createElement(RootWrapper, null, /* @__PURE__ */ React__default.default.createElement(DynamicComponent$1, { component: template.layout }), /* @__PURE__ */ React__default.default.createElement(VariableStateProvider, { wsClient }), (config2 == null ? void 0 : config2.enable_devtools) && /* @__PURE__ */ React__default.default.createElement(DevTools, null))))
60417
61560
  )));
60418
61561
  }
60419
61562
  const Wrapper$1 = styled__default.default.div`
@@ -60436,7 +61579,7 @@ Inferred class string: "${iconClasses}."`
60436
61579
  function Root() {
60437
61580
  const history2 = createBrowserHistory({ basename });
60438
61581
  const syncOptions = useUrlSync({ history: history2 });
60439
- return /* @__PURE__ */ React__default.default.createElement(reactQuery.QueryClientProvider, { client: queryClient }, /* @__PURE__ */ React__default.default.createElement(styled.ThemeProvider, { theme }, /* @__PURE__ */ React__default.default.createElement(ErrorBoundary$1, null, /* @__PURE__ */ React__default.default.createElement(importersCtx.Provider, { value: importers }, /* @__PURE__ */ React__default.default.createElement(directionCtx.Provider, { value: { direction: "row" } }, /* @__PURE__ */ React__default.default.createElement(Recoil_index_5, null, /* @__PURE__ */ React__default.default.createElement(RecoilSync_index_3, { ...syncOptions }, /* @__PURE__ */ React__default.default.createElement(Router, { history: history2 }, /* @__PURE__ */ React__default.default.createElement(AuthWrapper, null, /* @__PURE__ */ React__default.default.createElement(NotificationWrapper, null), /* @__PURE__ */ React__default.default.createElement(TemplateRoot, null))))))))));
61582
+ return /* @__PURE__ */ React__default.default.createElement(reactQuery.QueryClientProvider, { client: queryClient }, /* @__PURE__ */ React__default.default.createElement(styled.ThemeProvider, { theme }, /* @__PURE__ */ React__default.default.createElement(ErrorBoundary$1, null, /* @__PURE__ */ React__default.default.createElement(importersCtx.Provider, { value: importers }, /* @__PURE__ */ React__default.default.createElement(directionCtx.Provider, { value: { direction: "row" } }, /* @__PURE__ */ React__default.default.createElement(Recoil_index_5, null, /* @__PURE__ */ React__default.default.createElement(RecoilSync_index_3, { ...syncOptions }, /* @__PURE__ */ React__default.default.createElement(GlobalTaskProvider, null, /* @__PURE__ */ React__default.default.createElement(Router, { history: history2 }, /* @__PURE__ */ React__default.default.createElement(AuthWrapper, null, /* @__PURE__ */ React__default.default.createElement(NotificationWrapper, null), /* @__PURE__ */ React__default.default.createElement(TemplateRoot, null)))))))))));
60440
61583
  }
60441
61584
  const container = document.getElementById("dara_root");
60442
61585
  const root2 = createRoot(container);
@@ -85825,7 +86968,7 @@ Inferred class string: "${iconClasses}."`
85825
86968
  if (isMatrix) {
85826
86969
  return val;
85827
86970
  }
85828
- return void 0;
86971
+ return null;
85829
86972
  };
85830
86973
  const DownloadVariable = async (ctx, actionImpl) => {
85831
86974
  let value = getVariableValue(actionImpl.variable, true, {
@@ -85853,7 +86996,7 @@ Inferred class string: "${iconClasses}."`
85853
86996
  return Promise.resolve();
85854
86997
  }
85855
86998
  const matrix = createMatrixFromValue(value);
85856
- if (!matrix) {
86999
+ if (matrix === null) {
85857
87000
  throw new Error("Unable to create matrix from value");
85858
87001
  }
85859
87002
  const notExcel = !actionImpl.type || actionImpl.type !== "xlsx";
@@ -86131,8 +87274,8 @@ Inferred class string: "${iconClasses}."`
86131
87274
  function Menu(props) {
86132
87275
  const directionCtx$1 = React.useContext(directionCtx);
86133
87276
  return /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, props.routes.map(({ icon: icon2, name, route }) => {
86134
- const Icon2 = getIcon(icon2);
86135
- return /* @__PURE__ */ React__default.default.createElement(MenuItem, { activeClassName: "selected", direction: directionCtx$1.direction, key: name, to: route }, /* @__PURE__ */ React__default.default.createElement(Icon2, { style: { marginRight: "0.5rem" } }), name);
87277
+ const Icon2 = icon2 ? getIcon(icon2) : null;
87278
+ return /* @__PURE__ */ React__default.default.createElement(MenuItem, { activeClassName: "selected", direction: directionCtx$1.direction, key: name, to: route }, Icon2 && /* @__PURE__ */ React__default.default.createElement(Icon2, { style: { marginRight: "0.5rem" } }), name);
86136
87279
  }));
86137
87280
  }
86138
87281
  const PageNotFound = () => {
@@ -86144,7 +87287,7 @@ Inferred class string: "${iconClasses}."`
86144
87287
  {
86145
87288
  key: route,
86146
87289
  path: route,
86147
- render: () => /* @__PURE__ */ React__default.default.createElement(PrivateRoute, { name, on_load }, /* @__PURE__ */ React__default.default.createElement(DynamicComponent, { component: content }))
87290
+ render: () => /* @__PURE__ */ React__default.default.createElement(PrivateRoute, { name, on_load }, /* @__PURE__ */ React__default.default.createElement(DynamicComponent$1, { component: content }))
86148
87291
  }
86149
87292
  )), /* @__PURE__ */ React__default.default.createElement(Route, { exact: true, path: "/", render: () => /* @__PURE__ */ React__default.default.createElement(Redirect, { to: props.routes[0].route }) }), /* @__PURE__ */ React__default.default.createElement(Route, { component: PageNotFound }));
86150
87293
  }
@@ -86243,7 +87386,7 @@ Inferred class string: "${iconClasses}."`
86243
87386
  const causalensLogoSrc = theme2.themeType === "dark" ? CausalensDark : CausalensLight;
86244
87387
  const daraLogo = /* @__PURE__ */ React__default.default.createElement("img", { alt: "Dara Logo", src: logoSrc });
86245
87388
  const causalensLogo = /* @__PURE__ */ React__default.default.createElement("img", { alt: "causaLens Logo", src: causalensLogoSrc });
86246
- return /* @__PURE__ */ React__default.default.createElement(Wrapper$1, { backgroundColor: theme2.colors.background }, props.side_bar_position === "right" && /* @__PURE__ */ React__default.default.createElement(Wrapper$1, null, props.content && /* @__PURE__ */ React__default.default.createElement(DynamicComponent, { component: props.content })), /* @__PURE__ */ React__default.default.createElement(styled.ThemeContext.Provider, { value: resolveTheme((_a = config2 == null ? void 0 : config2.theme) == null ? void 0 : _a.main, (_b = config2 == null ? void 0 : config2.theme) == null ? void 0 : _b.base) }, /* @__PURE__ */ React__default.default.createElement(SideBar, { style: { padding: props.side_bar_padding }, width: props.side_bar_width }, !props.hide_logo && props.logo_position !== "bottom" && logo, /* @__PURE__ */ React__default.default.createElement(Wrapper$1, { direction: "column" }, /* @__PURE__ */ React__default.default.createElement(directionCtx.Provider, { value: { direction: "column" } }, props.side_bar && /* @__PURE__ */ React__default.default.createElement(DynamicComponent, { component: props.side_bar }))), !props.hide_logo && props.logo_position === "bottom" && logo, /* @__PURE__ */ React__default.default.createElement(LogoutButton$1, { href: "/logout", styling: "error" }, /* @__PURE__ */ React__default.default.createElement(LogoutArrow$1, { style: { marginRight: "0.5rem" } }), "Logout"), /* @__PURE__ */ React__default.default.createElement(BuiltWithLink, { href: "https://github.com/causalens/dara", target: "_blank", rel: "noopener noreferrer" }, "Built with ", daraLogo), (config2 == null ? void 0 : config2.powered_by_causalens) && /* @__PURE__ */ React__default.default.createElement(
87389
+ return /* @__PURE__ */ React__default.default.createElement(Wrapper$1, { backgroundColor: theme2.colors.background }, props.side_bar_position === "right" && /* @__PURE__ */ React__default.default.createElement(Wrapper$1, null, props.content && /* @__PURE__ */ React__default.default.createElement(DynamicComponent$1, { component: props.content })), /* @__PURE__ */ React__default.default.createElement(styled.ThemeContext.Provider, { value: resolveTheme((_a = config2 == null ? void 0 : config2.theme) == null ? void 0 : _a.main, (_b = config2 == null ? void 0 : config2.theme) == null ? void 0 : _b.base) }, /* @__PURE__ */ React__default.default.createElement(SideBar, { style: { padding: props.side_bar_padding }, width: props.side_bar_width }, !props.hide_logo && props.logo_position !== "bottom" && logo, /* @__PURE__ */ React__default.default.createElement(Wrapper$1, { direction: "column" }, /* @__PURE__ */ React__default.default.createElement(directionCtx.Provider, { value: { direction: "column" } }, props.side_bar && /* @__PURE__ */ React__default.default.createElement(DynamicComponent$1, { component: props.side_bar }))), !props.hide_logo && props.logo_position === "bottom" && logo, /* @__PURE__ */ React__default.default.createElement(LogoutButton$1, { href: "/logout", styling: "error" }, /* @__PURE__ */ React__default.default.createElement(LogoutArrow$1, { style: { marginRight: "0.5rem" } }), "Logout"), /* @__PURE__ */ React__default.default.createElement(BuiltWithLink, { href: "https://github.com/causalens/dara", target: "_blank", rel: "noopener noreferrer" }, "Built with ", daraLogo), (config2 == null ? void 0 : config2.powered_by_causalens) && /* @__PURE__ */ React__default.default.createElement(
86247
87390
  BuiltWithLink,
86248
87391
  {
86249
87392
  href: "https://causalens.com/?utm_source=dara&utm_medium=direct&utm_campaign=dara_platform",
@@ -86253,7 +87396,7 @@ Inferred class string: "${iconClasses}."`
86253
87396
  /* @__PURE__ */ React__default.default.createElement("span", { style: { marginTop: "0.4375rem" } }, "Powered by"),
86254
87397
  " ",
86255
87398
  causalensLogo
86256
- ))), props.side_bar_position !== "right" && /* @__PURE__ */ React__default.default.createElement(Wrapper$1, { style: { padding: "2rem 3rem" } }, props.content && /* @__PURE__ */ React__default.default.createElement(DynamicComponent, { component: props.content })));
87399
+ ))), props.side_bar_position !== "right" && /* @__PURE__ */ React__default.default.createElement(Wrapper$1, { style: { padding: "2rem 3rem" } }, props.content && /* @__PURE__ */ React__default.default.createElement(DynamicComponent$1, { component: props.content })));
86257
87400
  }
86258
87401
  const shouldForwardProp = (prop) => !["width"].includes(prop);
86259
87402
  const TopBar = styled__default.default.div.withConfig({ shouldForwardProp })`
@@ -86337,7 +87480,7 @@ Inferred class string: "${iconClasses}."`
86337
87480
  const logo = props.logo_path && /* @__PURE__ */ React__default.default.createElement(LogoImage, { alt: "Logo", src: prependBaseUrl(props.logo_path), width: props.logo_width });
86338
87481
  const logoSrc = theme2.themeType === "dark" ? DaraDark : DaraLight;
86339
87482
  const daraLogo = /* @__PURE__ */ React__default.default.createElement("img", { alt: "Dara", src: logoSrc });
86340
- return /* @__PURE__ */ React__default.default.createElement(Wrapper$1, { backgroundColor: theme2.colors.background, direction: "column" }, /* @__PURE__ */ React__default.default.createElement(styled.ThemeContext.Provider, { value: resolveTheme((_a = config2 == null ? void 0 : config2.theme) == null ? void 0 : _a.main, (_b = config2 == null ? void 0 : config2.theme) == null ? void 0 : _b.base) }, /* @__PURE__ */ React__default.default.createElement(TopBar, { height: props.top_bar_height, style: { padding: props.top_bar_padding } }, /* @__PURE__ */ React__default.default.createElement(TopBarContent, null, !props.hide_logo && logo, props.top_bar && /* @__PURE__ */ React__default.default.createElement(RouteButtons, { direction: "row" }, /* @__PURE__ */ React__default.default.createElement(directionCtx.Provider, { value: { direction: "row" } }, props.top_bar && /* @__PURE__ */ React__default.default.createElement(DynamicComponent, { component: props.top_bar }))), /* @__PURE__ */ React__default.default.createElement(LogoutButton, { href: "/logout", styling: "error" }, /* @__PURE__ */ React__default.default.createElement(LogoutArrow, { style: { marginRight: "0.5rem" } }), "Logout")), /* @__PURE__ */ React__default.default.createElement(BuiltWithSpan, null, "Built with ", daraLogo))), /* @__PURE__ */ React__default.default.createElement(Wrapper$1, { style: { padding: "2rem 3rem" } }, props.content && /* @__PURE__ */ React__default.default.createElement(DynamicComponent, { component: props.content })));
87483
+ return /* @__PURE__ */ React__default.default.createElement(Wrapper$1, { backgroundColor: theme2.colors.background, direction: "column" }, /* @__PURE__ */ React__default.default.createElement(styled.ThemeContext.Provider, { value: resolveTheme((_a = config2 == null ? void 0 : config2.theme) == null ? void 0 : _a.main, (_b = config2 == null ? void 0 : config2.theme) == null ? void 0 : _b.base) }, /* @__PURE__ */ React__default.default.createElement(TopBar, { height: props.top_bar_height, style: { padding: props.top_bar_padding } }, /* @__PURE__ */ React__default.default.createElement(TopBarContent, null, !props.hide_logo && logo, props.top_bar && /* @__PURE__ */ React__default.default.createElement(RouteButtons, { direction: "row" }, /* @__PURE__ */ React__default.default.createElement(directionCtx.Provider, { value: { direction: "row" } }, props.top_bar && /* @__PURE__ */ React__default.default.createElement(DynamicComponent$1, { component: props.top_bar }))), /* @__PURE__ */ React__default.default.createElement(LogoutButton, { href: "/logout", styling: "error" }, /* @__PURE__ */ React__default.default.createElement(LogoutArrow, { style: { marginRight: "0.5rem" } }), "Logout")), /* @__PURE__ */ React__default.default.createElement(BuiltWithSpan, null, "Built with ", daraLogo))), /* @__PURE__ */ React__default.default.createElement(Wrapper$1, { style: { padding: "2rem 3rem" } }, props.content && /* @__PURE__ */ React__default.default.createElement(DynamicComponent$1, { component: props.content })));
86341
87484
  }
86342
87485
  const RowDots = styled__default.default(Dots)`
86343
87486
  height: 2.5rem;
@@ -86347,6 +87490,76 @@ Inferred class string: "${iconClasses}."`
86347
87490
  const [style, css2] = useComponentStyles(props);
86348
87491
  return /* @__PURE__ */ React__default.default.createElement(StyledDots, { $rawCss: css2, style });
86349
87492
  }
87493
+ const createItemData = (items, renderer, markers, getItemKey) => ({
87494
+ items,
87495
+ renderer,
87496
+ markers,
87497
+ getItemKey
87498
+ });
87499
+ const ForChild = React__namespace.memo((props) => {
87500
+ const transformedRenderer = React__namespace.useMemo(() => {
87501
+ let component;
87502
+ try {
87503
+ component = applyMarkers(
87504
+ props.data.renderer,
87505
+ props.data.markers,
87506
+ props.data.items[props.index],
87507
+ props.data.getItemKey(props.index, props.data)
87508
+ );
87509
+ } catch (e2) {
87510
+ console.error("Failed to apply markers", e2);
87511
+ component = cloneDeep_1(props.data.renderer);
87512
+ }
87513
+ component.props.style = { ...component.props.style, ...props.style };
87514
+ return component;
87515
+ }, [props.data, props.index, props.style]);
87516
+ return /* @__PURE__ */ React__namespace.createElement(DynamicComponent$1, { component: transformedRenderer });
87517
+ }, isEqual_1);
87518
+ function ForImpl(props) {
87519
+ const items = useAnyVariable(props.items);
87520
+ const markers = React__namespace.useMemo(() => getInjectionMarkers(props.renderer), [props.renderer]);
87521
+ const key = React__namespace.useMemo(() => {
87522
+ var _a, _b;
87523
+ return (_b = (_a = props.key_accessor) == null ? void 0 : _a.split(".")) != null ? _b : null;
87524
+ }, [props.key_accessor]);
87525
+ const getItemKey = React__namespace.useCallback(
87526
+ (index2, data) => key ? resolveNested(data.items[index2], key) : index2,
87527
+ [key]
87528
+ );
87529
+ const itemData = React__namespace.useMemo(
87530
+ () => createItemData(items, props.renderer, markers, getItemKey),
87531
+ [items, props.renderer, markers, getItemKey]
87532
+ );
87533
+ const getItemSize = React__namespace.useCallback(
87534
+ (index2) => {
87535
+ if (typeof props.virtualization.size === "string") {
87536
+ return items[index2][props.virtualization.size];
87537
+ }
87538
+ return props.virtualization.size;
87539
+ },
87540
+ [props.virtualization, items]
87541
+ );
87542
+ if (props.virtualization === null) {
87543
+ return /* @__PURE__ */ React__namespace.createElement(fallbackCtx.Provider, { value: { suspend: props.suspend } }, items.map((_, index2) => /* @__PURE__ */ React__namespace.createElement(ForChild, { key: getItemKey(index2, itemData), data: itemData, index: index2, style: {} })));
87544
+ }
87545
+ return /* @__PURE__ */ React__namespace.createElement(fallbackCtx.Provider, { value: { suspend: props.suspend } }, /* @__PURE__ */ React__namespace.createElement(AutoSizer, null, ({ width, height }) => /* @__PURE__ */ React__namespace.createElement(
87546
+ VariableSizeList,
87547
+ {
87548
+ height,
87549
+ width,
87550
+ itemCount: items.length,
87551
+ itemData,
87552
+ itemKey: getItemKey,
87553
+ itemSize: getItemSize,
87554
+ layout: props.virtualization.direction
87555
+ },
87556
+ ForChild
87557
+ )));
87558
+ }
87559
+ function For(props) {
87560
+ const { suspend } = useFallbackCtx();
87561
+ return /* @__PURE__ */ React__namespace.createElement(fallbackCtx.Provider, { value: { suspend: false } }, /* @__PURE__ */ React__namespace.createElement(ForImpl, { ...props, suspend }));
87562
+ }
86350
87563
  exports.BasicAuthLogin = BasicAuthLogin;
86351
87564
  exports.BasicAuthLogout = BasicAuthLogout;
86352
87565
  exports.Center = Center;
@@ -86356,9 +87569,10 @@ Inferred class string: "${iconClasses}."`
86356
87569
  exports.DefaultFallback = DefaultFallback;
86357
87570
  exports.DisplayCtx = displayCtx;
86358
87571
  exports.DownloadVariable = DownloadVariable;
86359
- exports.DynamicComponent = DynamicComponent;
87572
+ exports.DynamicComponent = DynamicComponent$1;
86360
87573
  exports.EventBus = EventBus;
86361
87574
  exports.EventCapturer = EventCapturer;
87575
+ exports.For = For;
86362
87576
  exports.Menu = Menu;
86363
87577
  exports.NavigateTo = NavigateTo;
86364
87578
  exports.Notifications = index$1;
@@ -86377,7 +87591,9 @@ Inferred class string: "${iconClasses}."`
86377
87591
  exports.WebSocketCtx = websocketCtx;
86378
87592
  exports.combineFilters = combineFilters;
86379
87593
  exports.default = run;
87594
+ exports.getComponentRegistryKey = getComponentRegistryKey;
86380
87595
  exports.getIcon = getIcon;
87596
+ exports.getRegistryKey = getRegistryKey;
86381
87597
  exports.getSessionToken = getSessionToken;
86382
87598
  exports.getToken = getToken;
86383
87599
  exports.getTokenKey = getTokenKey;
@@ -86396,6 +87612,8 @@ Inferred class string: "${iconClasses}."`
86396
87612
  exports.useComponentStyles = useComponentStyles;
86397
87613
  exports.useDataVariable = useDataVariable;
86398
87614
  exports.useEventBus = useEventBus;
87615
+ exports.useRefreshSelector = useRefreshSelector;
87616
+ exports.useRefreshServerComponent = useRefreshServerComponent;
86399
87617
  exports.useRequestExtras = useRequestExtras;
86400
87618
  exports.useSessionToken = useSessionToken;
86401
87619
  exports.useUser = useUser;