@dreamerbird/theatric 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -47,24 +47,24 @@ __export(exports, {
47
47
  var import_core = __toModule(require("@dreamerbird/core"));
48
48
  var import_core2 = __toModule(require("@dreamerbird/core"));
49
49
 
50
- // ../../node_modules/lodash-es/isArray.js
50
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js
51
51
  var isArray = Array.isArray;
52
52
  var isArray_default = isArray;
53
53
 
54
- // ../../node_modules/lodash-es/_freeGlobal.js
54
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js
55
55
  var freeGlobal = typeof window == "object" && window && window.Object === Object && window;
56
56
  var freeGlobal_default = freeGlobal;
57
57
 
58
- // ../../node_modules/lodash-es/_root.js
58
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js
59
59
  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
60
60
  var root = freeGlobal_default || freeSelf || Function("return this")();
61
61
  var root_default = root;
62
62
 
63
- // ../../node_modules/lodash-es/_Symbol.js
63
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js
64
64
  var Symbol2 = root_default.Symbol;
65
65
  var Symbol_default = Symbol2;
66
66
 
67
- // ../../node_modules/lodash-es/_getRawTag.js
67
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js
68
68
  var objectProto = Object.prototype;
69
69
  var hasOwnProperty = objectProto.hasOwnProperty;
70
70
  var nativeObjectToString = objectProto.toString;
@@ -88,7 +88,7 @@ function getRawTag(value) {
88
88
  }
89
89
  var getRawTag_default = getRawTag;
90
90
 
91
- // ../../node_modules/lodash-es/_objectToString.js
91
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js
92
92
  var objectProto2 = Object.prototype;
93
93
  var nativeObjectToString2 = objectProto2.toString;
94
94
  function objectToString(value) {
@@ -96,7 +96,7 @@ function objectToString(value) {
96
96
  }
97
97
  var objectToString_default = objectToString;
98
98
 
99
- // ../../node_modules/lodash-es/_baseGetTag.js
99
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js
100
100
  var nullTag = "[object Null]";
101
101
  var undefinedTag = "[object Undefined]";
102
102
  var symToStringTag2 = Symbol_default ? Symbol_default.toStringTag : void 0;
@@ -108,20 +108,20 @@ function baseGetTag(value) {
108
108
  }
109
109
  var baseGetTag_default = baseGetTag;
110
110
 
111
- // ../../node_modules/lodash-es/isObjectLike.js
111
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js
112
112
  function isObjectLike(value) {
113
113
  return value != null && typeof value == "object";
114
114
  }
115
115
  var isObjectLike_default = isObjectLike;
116
116
 
117
- // ../../node_modules/lodash-es/isObject.js
117
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js
118
118
  function isObject(value) {
119
119
  var type = typeof value;
120
120
  return value != null && (type == "object" || type == "function");
121
121
  }
122
122
  var isObject_default = isObject;
123
123
 
124
- // ../../node_modules/lodash-es/isFunction.js
124
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js
125
125
  var asyncTag = "[object AsyncFunction]";
126
126
  var funcTag = "[object Function]";
127
127
  var genTag = "[object GeneratorFunction]";
@@ -135,11 +135,11 @@ function isFunction(value) {
135
135
  }
136
136
  var isFunction_default = isFunction;
137
137
 
138
- // ../../node_modules/lodash-es/_coreJsData.js
138
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.js
139
139
  var coreJsData = root_default["__core-js_shared__"];
140
140
  var coreJsData_default = coreJsData;
141
141
 
142
- // ../../node_modules/lodash-es/_isMasked.js
142
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.js
143
143
  var maskSrcKey = function() {
144
144
  var uid = /[^.]+$/.exec(coreJsData_default && coreJsData_default.keys && coreJsData_default.keys.IE_PROTO || "");
145
145
  return uid ? "Symbol(src)_1." + uid : "";
@@ -149,7 +149,7 @@ function isMasked(func) {
149
149
  }
150
150
  var isMasked_default = isMasked;
151
151
 
152
- // ../../node_modules/lodash-es/_toSource.js
152
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.js
153
153
  var funcProto = Function.prototype;
154
154
  var funcToString = funcProto.toString;
155
155
  function toSource(func) {
@@ -167,7 +167,7 @@ function toSource(func) {
167
167
  }
168
168
  var toSource_default = toSource;
169
169
 
170
- // ../../node_modules/lodash-es/_baseIsNative.js
170
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.js
171
171
  var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
172
172
  var reIsHostCtor = /^\[object .+?Constructor\]$/;
173
173
  var funcProto2 = Function.prototype;
@@ -184,31 +184,31 @@ function baseIsNative(value) {
184
184
  }
185
185
  var baseIsNative_default = baseIsNative;
186
186
 
187
- // ../../node_modules/lodash-es/_getValue.js
187
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.js
188
188
  function getValue(object, key) {
189
189
  return object == null ? void 0 : object[key];
190
190
  }
191
191
  var getValue_default = getValue;
192
192
 
193
- // ../../node_modules/lodash-es/_getNative.js
193
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.js
194
194
  function getNative(object, key) {
195
195
  var value = getValue_default(object, key);
196
196
  return baseIsNative_default(value) ? value : void 0;
197
197
  }
198
198
  var getNative_default = getNative;
199
199
 
200
- // ../../node_modules/lodash-es/_nativeCreate.js
200
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js
201
201
  var nativeCreate = getNative_default(Object, "create");
202
202
  var nativeCreate_default = nativeCreate;
203
203
 
204
- // ../../node_modules/lodash-es/_hashClear.js
204
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js
205
205
  function hashClear() {
206
206
  this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {};
207
207
  this.size = 0;
208
208
  }
209
209
  var hashClear_default = hashClear;
210
210
 
211
- // ../../node_modules/lodash-es/_hashDelete.js
211
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js
212
212
  function hashDelete(key) {
213
213
  var result = this.has(key) && delete this.__data__[key];
214
214
  this.size -= result ? 1 : 0;
@@ -216,7 +216,7 @@ function hashDelete(key) {
216
216
  }
217
217
  var hashDelete_default = hashDelete;
218
218
 
219
- // ../../node_modules/lodash-es/_hashGet.js
219
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js
220
220
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
221
221
  var objectProto4 = Object.prototype;
222
222
  var hasOwnProperty3 = objectProto4.hasOwnProperty;
@@ -230,7 +230,7 @@ function hashGet(key) {
230
230
  }
231
231
  var hashGet_default = hashGet;
232
232
 
233
- // ../../node_modules/lodash-es/_hashHas.js
233
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js
234
234
  var objectProto5 = Object.prototype;
235
235
  var hasOwnProperty4 = objectProto5.hasOwnProperty;
236
236
  function hashHas(key) {
@@ -239,7 +239,7 @@ function hashHas(key) {
239
239
  }
240
240
  var hashHas_default = hashHas;
241
241
 
242
- // ../../node_modules/lodash-es/_hashSet.js
242
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js
243
243
  var HASH_UNDEFINED2 = "__lodash_hash_undefined__";
244
244
  function hashSet(key, value) {
245
245
  var data = this.__data__;
@@ -249,7 +249,7 @@ function hashSet(key, value) {
249
249
  }
250
250
  var hashSet_default = hashSet;
251
251
 
252
- // ../../node_modules/lodash-es/_Hash.js
252
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js
253
253
  function Hash(entries) {
254
254
  var index = -1, length = entries == null ? 0 : entries.length;
255
255
  this.clear();
@@ -265,20 +265,20 @@ Hash.prototype.has = hashHas_default;
265
265
  Hash.prototype.set = hashSet_default;
266
266
  var Hash_default = Hash;
267
267
 
268
- // ../../node_modules/lodash-es/_listCacheClear.js
268
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js
269
269
  function listCacheClear() {
270
270
  this.__data__ = [];
271
271
  this.size = 0;
272
272
  }
273
273
  var listCacheClear_default = listCacheClear;
274
274
 
275
- // ../../node_modules/lodash-es/eq.js
275
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js
276
276
  function eq(value, other) {
277
277
  return value === other || value !== value && other !== other;
278
278
  }
279
279
  var eq_default = eq;
280
280
 
281
- // ../../node_modules/lodash-es/_assocIndexOf.js
281
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js
282
282
  function assocIndexOf(array, key) {
283
283
  var length = array.length;
284
284
  while (length--) {
@@ -290,7 +290,7 @@ function assocIndexOf(array, key) {
290
290
  }
291
291
  var assocIndexOf_default = assocIndexOf;
292
292
 
293
- // ../../node_modules/lodash-es/_listCacheDelete.js
293
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js
294
294
  var arrayProto = Array.prototype;
295
295
  var splice = arrayProto.splice;
296
296
  function listCacheDelete(key) {
@@ -309,20 +309,20 @@ function listCacheDelete(key) {
309
309
  }
310
310
  var listCacheDelete_default = listCacheDelete;
311
311
 
312
- // ../../node_modules/lodash-es/_listCacheGet.js
312
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js
313
313
  function listCacheGet(key) {
314
314
  var data = this.__data__, index = assocIndexOf_default(data, key);
315
315
  return index < 0 ? void 0 : data[index][1];
316
316
  }
317
317
  var listCacheGet_default = listCacheGet;
318
318
 
319
- // ../../node_modules/lodash-es/_listCacheHas.js
319
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js
320
320
  function listCacheHas(key) {
321
321
  return assocIndexOf_default(this.__data__, key) > -1;
322
322
  }
323
323
  var listCacheHas_default = listCacheHas;
324
324
 
325
- // ../../node_modules/lodash-es/_listCacheSet.js
325
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js
326
326
  function listCacheSet(key, value) {
327
327
  var data = this.__data__, index = assocIndexOf_default(data, key);
328
328
  if (index < 0) {
@@ -335,7 +335,7 @@ function listCacheSet(key, value) {
335
335
  }
336
336
  var listCacheSet_default = listCacheSet;
337
337
 
338
- // ../../node_modules/lodash-es/_ListCache.js
338
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js
339
339
  function ListCache(entries) {
340
340
  var index = -1, length = entries == null ? 0 : entries.length;
341
341
  this.clear();
@@ -351,11 +351,11 @@ ListCache.prototype.has = listCacheHas_default;
351
351
  ListCache.prototype.set = listCacheSet_default;
352
352
  var ListCache_default = ListCache;
353
353
 
354
- // ../../node_modules/lodash-es/_Map.js
354
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js
355
355
  var Map2 = getNative_default(root_default, "Map");
356
356
  var Map_default = Map2;
357
357
 
358
- // ../../node_modules/lodash-es/_mapCacheClear.js
358
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js
359
359
  function mapCacheClear() {
360
360
  this.size = 0;
361
361
  this.__data__ = {
@@ -366,21 +366,21 @@ function mapCacheClear() {
366
366
  }
367
367
  var mapCacheClear_default = mapCacheClear;
368
368
 
369
- // ../../node_modules/lodash-es/_isKeyable.js
369
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js
370
370
  function isKeyable(value) {
371
371
  var type = typeof value;
372
372
  return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
373
373
  }
374
374
  var isKeyable_default = isKeyable;
375
375
 
376
- // ../../node_modules/lodash-es/_getMapData.js
376
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js
377
377
  function getMapData(map, key) {
378
378
  var data = map.__data__;
379
379
  return isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
380
380
  }
381
381
  var getMapData_default = getMapData;
382
382
 
383
- // ../../node_modules/lodash-es/_mapCacheDelete.js
383
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js
384
384
  function mapCacheDelete(key) {
385
385
  var result = getMapData_default(this, key)["delete"](key);
386
386
  this.size -= result ? 1 : 0;
@@ -388,19 +388,19 @@ function mapCacheDelete(key) {
388
388
  }
389
389
  var mapCacheDelete_default = mapCacheDelete;
390
390
 
391
- // ../../node_modules/lodash-es/_mapCacheGet.js
391
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js
392
392
  function mapCacheGet(key) {
393
393
  return getMapData_default(this, key).get(key);
394
394
  }
395
395
  var mapCacheGet_default = mapCacheGet;
396
396
 
397
- // ../../node_modules/lodash-es/_mapCacheHas.js
397
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js
398
398
  function mapCacheHas(key) {
399
399
  return getMapData_default(this, key).has(key);
400
400
  }
401
401
  var mapCacheHas_default = mapCacheHas;
402
402
 
403
- // ../../node_modules/lodash-es/_mapCacheSet.js
403
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js
404
404
  function mapCacheSet(key, value) {
405
405
  var data = getMapData_default(this, key), size = data.size;
406
406
  data.set(key, value);
@@ -409,7 +409,7 @@ function mapCacheSet(key, value) {
409
409
  }
410
410
  var mapCacheSet_default = mapCacheSet;
411
411
 
412
- // ../../node_modules/lodash-es/_MapCache.js
412
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js
413
413
  function MapCache(entries) {
414
414
  var index = -1, length = entries == null ? 0 : entries.length;
415
415
  this.clear();
@@ -425,7 +425,7 @@ MapCache.prototype.has = mapCacheHas_default;
425
425
  MapCache.prototype.set = mapCacheSet_default;
426
426
  var MapCache_default = MapCache;
427
427
 
428
- // ../../node_modules/lodash-es/_overArg.js
428
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.js
429
429
  function overArg(func, transform) {
430
430
  return function(arg) {
431
431
  return func(transform(arg));
@@ -997,14 +997,14 @@ var identifyPrismWeakMap = new WeakMap();
997
997
  // ../dataverse/src/Ticker.ts
998
998
  var EMPTY_TICKS_BEFORE_GOING_DORMANT = 60 * 3;
999
999
 
1000
- // ../../node_modules/lodash-es/_stackClear.js
1000
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.js
1001
1001
  function stackClear() {
1002
1002
  this.__data__ = new ListCache_default();
1003
1003
  this.size = 0;
1004
1004
  }
1005
1005
  var stackClear_default = stackClear;
1006
1006
 
1007
- // ../../node_modules/lodash-es/_stackDelete.js
1007
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.js
1008
1008
  function stackDelete(key) {
1009
1009
  var data = this.__data__, result = data["delete"](key);
1010
1010
  this.size = data.size;
@@ -1012,19 +1012,19 @@ function stackDelete(key) {
1012
1012
  }
1013
1013
  var stackDelete_default = stackDelete;
1014
1014
 
1015
- // ../../node_modules/lodash-es/_stackGet.js
1015
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.js
1016
1016
  function stackGet(key) {
1017
1017
  return this.__data__.get(key);
1018
1018
  }
1019
1019
  var stackGet_default = stackGet;
1020
1020
 
1021
- // ../../node_modules/lodash-es/_stackHas.js
1021
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.js
1022
1022
  function stackHas(key) {
1023
1023
  return this.__data__.has(key);
1024
1024
  }
1025
1025
  var stackHas_default = stackHas;
1026
1026
 
1027
- // ../../node_modules/lodash-es/_stackSet.js
1027
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.js
1028
1028
  var LARGE_ARRAY_SIZE = 200;
1029
1029
  function stackSet(key, value) {
1030
1030
  var data = this.__data__;
@@ -1043,7 +1043,7 @@ function stackSet(key, value) {
1043
1043
  }
1044
1044
  var stackSet_default = stackSet;
1045
1045
 
1046
- // ../../node_modules/lodash-es/_Stack.js
1046
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.js
1047
1047
  function Stack2(entries) {
1048
1048
  var data = this.__data__ = new ListCache_default(entries);
1049
1049
  this.size = data.size;
@@ -1055,7 +1055,7 @@ Stack2.prototype.has = stackHas_default;
1055
1055
  Stack2.prototype.set = stackSet_default;
1056
1056
  var Stack_default = Stack2;
1057
1057
 
1058
- // ../../node_modules/lodash-es/_setCacheAdd.js
1058
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.js
1059
1059
  var HASH_UNDEFINED3 = "__lodash_hash_undefined__";
1060
1060
  function setCacheAdd(value) {
1061
1061
  this.__data__.set(value, HASH_UNDEFINED3);
@@ -1063,13 +1063,13 @@ function setCacheAdd(value) {
1063
1063
  }
1064
1064
  var setCacheAdd_default = setCacheAdd;
1065
1065
 
1066
- // ../../node_modules/lodash-es/_setCacheHas.js
1066
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.js
1067
1067
  function setCacheHas(value) {
1068
1068
  return this.__data__.has(value);
1069
1069
  }
1070
1070
  var setCacheHas_default = setCacheHas;
1071
1071
 
1072
- // ../../node_modules/lodash-es/_SetCache.js
1072
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.js
1073
1073
  function SetCache(values) {
1074
1074
  var index = -1, length = values == null ? 0 : values.length;
1075
1075
  this.__data__ = new MapCache_default();
@@ -1081,7 +1081,7 @@ SetCache.prototype.add = SetCache.prototype.push = setCacheAdd_default;
1081
1081
  SetCache.prototype.has = setCacheHas_default;
1082
1082
  var SetCache_default = SetCache;
1083
1083
 
1084
- // ../../node_modules/lodash-es/_arraySome.js
1084
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arraySome.js
1085
1085
  function arraySome(array, predicate) {
1086
1086
  var index = -1, length = array == null ? 0 : array.length;
1087
1087
  while (++index < length) {
@@ -1093,13 +1093,13 @@ function arraySome(array, predicate) {
1093
1093
  }
1094
1094
  var arraySome_default = arraySome;
1095
1095
 
1096
- // ../../node_modules/lodash-es/_cacheHas.js
1096
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.js
1097
1097
  function cacheHas(cache, key) {
1098
1098
  return cache.has(key);
1099
1099
  }
1100
1100
  var cacheHas_default = cacheHas;
1101
1101
 
1102
- // ../../node_modules/lodash-es/_equalArrays.js
1102
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalArrays.js
1103
1103
  var COMPARE_PARTIAL_FLAG = 1;
1104
1104
  var COMPARE_UNORDERED_FLAG = 2;
1105
1105
  function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
@@ -1147,11 +1147,11 @@ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
1147
1147
  }
1148
1148
  var equalArrays_default = equalArrays;
1149
1149
 
1150
- // ../../node_modules/lodash-es/_Uint8Array.js
1150
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.js
1151
1151
  var Uint8Array2 = root_default.Uint8Array;
1152
1152
  var Uint8Array_default = Uint8Array2;
1153
1153
 
1154
- // ../../node_modules/lodash-es/_mapToArray.js
1154
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapToArray.js
1155
1155
  function mapToArray(map) {
1156
1156
  var index = -1, result = Array(map.size);
1157
1157
  map.forEach(function(value, key) {
@@ -1161,7 +1161,7 @@ function mapToArray(map) {
1161
1161
  }
1162
1162
  var mapToArray_default = mapToArray;
1163
1163
 
1164
- // ../../node_modules/lodash-es/_setToArray.js
1164
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.js
1165
1165
  function setToArray(set) {
1166
1166
  var index = -1, result = Array(set.size);
1167
1167
  set.forEach(function(value) {
@@ -1171,7 +1171,7 @@ function setToArray(set) {
1171
1171
  }
1172
1172
  var setToArray_default = setToArray;
1173
1173
 
1174
- // ../../node_modules/lodash-es/_equalByTag.js
1174
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalByTag.js
1175
1175
  var COMPARE_PARTIAL_FLAG2 = 1;
1176
1176
  var COMPARE_UNORDERED_FLAG2 = 2;
1177
1177
  var boolTag = "[object Boolean]";
@@ -1235,7 +1235,7 @@ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
1235
1235
  }
1236
1236
  var equalByTag_default = equalByTag;
1237
1237
 
1238
- // ../../node_modules/lodash-es/_arrayPush.js
1238
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.js
1239
1239
  function arrayPush(array, values) {
1240
1240
  var index = -1, length = values.length, offset = array.length;
1241
1241
  while (++index < length) {
@@ -1245,14 +1245,14 @@ function arrayPush(array, values) {
1245
1245
  }
1246
1246
  var arrayPush_default = arrayPush;
1247
1247
 
1248
- // ../../node_modules/lodash-es/_baseGetAllKeys.js
1248
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.js
1249
1249
  function baseGetAllKeys(object, keysFunc, symbolsFunc) {
1250
1250
  var result = keysFunc(object);
1251
1251
  return isArray_default(object) ? result : arrayPush_default(result, symbolsFunc(object));
1252
1252
  }
1253
1253
  var baseGetAllKeys_default = baseGetAllKeys;
1254
1254
 
1255
- // ../../node_modules/lodash-es/_arrayFilter.js
1255
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.js
1256
1256
  function arrayFilter(array, predicate) {
1257
1257
  var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
1258
1258
  while (++index < length) {
@@ -1265,13 +1265,13 @@ function arrayFilter(array, predicate) {
1265
1265
  }
1266
1266
  var arrayFilter_default = arrayFilter;
1267
1267
 
1268
- // ../../node_modules/lodash-es/stubArray.js
1268
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.js
1269
1269
  function stubArray() {
1270
1270
  return [];
1271
1271
  }
1272
1272
  var stubArray_default = stubArray;
1273
1273
 
1274
- // ../../node_modules/lodash-es/_getSymbols.js
1274
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.js
1275
1275
  var objectProto6 = Object.prototype;
1276
1276
  var propertyIsEnumerable = objectProto6.propertyIsEnumerable;
1277
1277
  var nativeGetSymbols = Object.getOwnPropertySymbols;
@@ -1286,7 +1286,7 @@ var getSymbols = !nativeGetSymbols ? stubArray_default : function(object) {
1286
1286
  };
1287
1287
  var getSymbols_default = getSymbols;
1288
1288
 
1289
- // ../../node_modules/lodash-es/_baseTimes.js
1289
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.js
1290
1290
  function baseTimes(n, iteratee) {
1291
1291
  var index = -1, result = Array(n);
1292
1292
  while (++index < n) {
@@ -1296,14 +1296,14 @@ function baseTimes(n, iteratee) {
1296
1296
  }
1297
1297
  var baseTimes_default = baseTimes;
1298
1298
 
1299
- // ../../node_modules/lodash-es/_baseIsArguments.js
1299
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.js
1300
1300
  var argsTag = "[object Arguments]";
1301
1301
  function baseIsArguments(value) {
1302
1302
  return isObjectLike_default(value) && baseGetTag_default(value) == argsTag;
1303
1303
  }
1304
1304
  var baseIsArguments_default = baseIsArguments;
1305
1305
 
1306
- // ../../node_modules/lodash-es/isArguments.js
1306
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.js
1307
1307
  var objectProto7 = Object.prototype;
1308
1308
  var hasOwnProperty5 = objectProto7.hasOwnProperty;
1309
1309
  var propertyIsEnumerable2 = objectProto7.propertyIsEnumerable;
@@ -1314,13 +1314,13 @@ var isArguments = baseIsArguments_default(function() {
1314
1314
  };
1315
1315
  var isArguments_default = isArguments;
1316
1316
 
1317
- // ../../node_modules/lodash-es/stubFalse.js
1317
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.js
1318
1318
  function stubFalse() {
1319
1319
  return false;
1320
1320
  }
1321
1321
  var stubFalse_default = stubFalse;
1322
1322
 
1323
- // ../../node_modules/lodash-es/isBuffer.js
1323
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.js
1324
1324
  var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
1325
1325
  var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
1326
1326
  var moduleExports = freeModule && freeModule.exports === freeExports;
@@ -1329,7 +1329,7 @@ var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;
1329
1329
  var isBuffer = nativeIsBuffer || stubFalse_default;
1330
1330
  var isBuffer_default = isBuffer;
1331
1331
 
1332
- // ../../node_modules/lodash-es/_isIndex.js
1332
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.js
1333
1333
  var MAX_SAFE_INTEGER = 9007199254740991;
1334
1334
  var reIsUint = /^(?:0|[1-9]\d*)$/;
1335
1335
  function isIndex(value, length) {
@@ -1339,14 +1339,14 @@ function isIndex(value, length) {
1339
1339
  }
1340
1340
  var isIndex_default = isIndex;
1341
1341
 
1342
- // ../../node_modules/lodash-es/isLength.js
1342
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.js
1343
1343
  var MAX_SAFE_INTEGER2 = 9007199254740991;
1344
1344
  function isLength(value) {
1345
1345
  return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2;
1346
1346
  }
1347
1347
  var isLength_default = isLength;
1348
1348
 
1349
- // ../../node_modules/lodash-es/_baseIsTypedArray.js
1349
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.js
1350
1350
  var argsTag2 = "[object Arguments]";
1351
1351
  var arrayTag = "[object Array]";
1352
1352
  var boolTag2 = "[object Boolean]";
@@ -1379,7 +1379,7 @@ function baseIsTypedArray(value) {
1379
1379
  }
1380
1380
  var baseIsTypedArray_default = baseIsTypedArray;
1381
1381
 
1382
- // ../../node_modules/lodash-es/_baseUnary.js
1382
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.js
1383
1383
  function baseUnary(func) {
1384
1384
  return function(value) {
1385
1385
  return func(value);
@@ -1387,7 +1387,7 @@ function baseUnary(func) {
1387
1387
  }
1388
1388
  var baseUnary_default = baseUnary;
1389
1389
 
1390
- // ../../node_modules/lodash-es/_nodeUtil.js
1390
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.js
1391
1391
  var freeExports2 = typeof exports == "object" && exports && !exports.nodeType && exports;
1392
1392
  var freeModule2 = freeExports2 && typeof module == "object" && module && !module.nodeType && module;
1393
1393
  var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
@@ -1404,12 +1404,12 @@ var nodeUtil = function() {
1404
1404
  }();
1405
1405
  var nodeUtil_default = nodeUtil;
1406
1406
 
1407
- // ../../node_modules/lodash-es/isTypedArray.js
1407
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.js
1408
1408
  var nodeIsTypedArray = nodeUtil_default && nodeUtil_default.isTypedArray;
1409
1409
  var isTypedArray = nodeIsTypedArray ? baseUnary_default(nodeIsTypedArray) : baseIsTypedArray_default;
1410
1410
  var isTypedArray_default = isTypedArray;
1411
1411
 
1412
- // ../../node_modules/lodash-es/_arrayLikeKeys.js
1412
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.js
1413
1413
  var objectProto8 = Object.prototype;
1414
1414
  var hasOwnProperty6 = objectProto8.hasOwnProperty;
1415
1415
  function arrayLikeKeys(value, inherited) {
@@ -1423,7 +1423,7 @@ function arrayLikeKeys(value, inherited) {
1423
1423
  }
1424
1424
  var arrayLikeKeys_default = arrayLikeKeys;
1425
1425
 
1426
- // ../../node_modules/lodash-es/_isPrototype.js
1426
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.js
1427
1427
  var objectProto9 = Object.prototype;
1428
1428
  function isPrototype(value) {
1429
1429
  var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto9;
@@ -1431,11 +1431,11 @@ function isPrototype(value) {
1431
1431
  }
1432
1432
  var isPrototype_default = isPrototype;
1433
1433
 
1434
- // ../../node_modules/lodash-es/_nativeKeys.js
1434
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.js
1435
1435
  var nativeKeys = overArg_default(Object.keys, Object);
1436
1436
  var nativeKeys_default = nativeKeys;
1437
1437
 
1438
- // ../../node_modules/lodash-es/_baseKeys.js
1438
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.js
1439
1439
  var objectProto10 = Object.prototype;
1440
1440
  var hasOwnProperty7 = objectProto10.hasOwnProperty;
1441
1441
  function baseKeys(object) {
@@ -1452,25 +1452,25 @@ function baseKeys(object) {
1452
1452
  }
1453
1453
  var baseKeys_default = baseKeys;
1454
1454
 
1455
- // ../../node_modules/lodash-es/isArrayLike.js
1455
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.js
1456
1456
  function isArrayLike(value) {
1457
1457
  return value != null && isLength_default(value.length) && !isFunction_default(value);
1458
1458
  }
1459
1459
  var isArrayLike_default = isArrayLike;
1460
1460
 
1461
- // ../../node_modules/lodash-es/keys.js
1461
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.js
1462
1462
  function keys(object) {
1463
1463
  return isArrayLike_default(object) ? arrayLikeKeys_default(object) : baseKeys_default(object);
1464
1464
  }
1465
1465
  var keys_default = keys;
1466
1466
 
1467
- // ../../node_modules/lodash-es/_getAllKeys.js
1467
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.js
1468
1468
  function getAllKeys(object) {
1469
1469
  return baseGetAllKeys_default(object, keys_default, getSymbols_default);
1470
1470
  }
1471
1471
  var getAllKeys_default = getAllKeys;
1472
1472
 
1473
- // ../../node_modules/lodash-es/_equalObjects.js
1473
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalObjects.js
1474
1474
  var COMPARE_PARTIAL_FLAG3 = 1;
1475
1475
  var objectProto11 = Object.prototype;
1476
1476
  var hasOwnProperty8 = objectProto11.hasOwnProperty;
@@ -1519,23 +1519,23 @@ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
1519
1519
  }
1520
1520
  var equalObjects_default = equalObjects;
1521
1521
 
1522
- // ../../node_modules/lodash-es/_DataView.js
1522
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.js
1523
1523
  var DataView = getNative_default(root_default, "DataView");
1524
1524
  var DataView_default = DataView;
1525
1525
 
1526
- // ../../node_modules/lodash-es/_Promise.js
1526
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.js
1527
1527
  var Promise2 = getNative_default(root_default, "Promise");
1528
1528
  var Promise_default = Promise2;
1529
1529
 
1530
- // ../../node_modules/lodash-es/_Set.js
1530
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.js
1531
1531
  var Set2 = getNative_default(root_default, "Set");
1532
1532
  var Set_default = Set2;
1533
1533
 
1534
- // ../../node_modules/lodash-es/_WeakMap.js
1534
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.js
1535
1535
  var WeakMap2 = getNative_default(root_default, "WeakMap");
1536
1536
  var WeakMap_default = WeakMap2;
1537
1537
 
1538
- // ../../node_modules/lodash-es/_getTag.js
1538
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.js
1539
1539
  var mapTag3 = "[object Map]";
1540
1540
  var objectTag2 = "[object Object]";
1541
1541
  var promiseTag = "[object Promise]";
@@ -1570,7 +1570,7 @@ if (DataView_default && getTag(new DataView_default(new ArrayBuffer(1))) != data
1570
1570
  }
1571
1571
  var getTag_default = getTag;
1572
1572
 
1573
- // ../../node_modules/lodash-es/_baseIsEqualDeep.js
1573
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqualDeep.js
1574
1574
  var COMPARE_PARTIAL_FLAG4 = 1;
1575
1575
  var argsTag3 = "[object Arguments]";
1576
1576
  var arrayTag2 = "[object Array]";
@@ -1609,7 +1609,7 @@ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
1609
1609
  }
1610
1610
  var baseIsEqualDeep_default = baseIsEqualDeep;
1611
1611
 
1612
- // ../../node_modules/lodash-es/_baseIsEqual.js
1612
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqual.js
1613
1613
  function baseIsEqual(value, other, bitmask, customizer, stack) {
1614
1614
  if (value === other) {
1615
1615
  return true;
@@ -1621,7 +1621,7 @@ function baseIsEqual(value, other, bitmask, customizer, stack) {
1621
1621
  }
1622
1622
  var baseIsEqual_default = baseIsEqual;
1623
1623
 
1624
- // ../../node_modules/lodash-es/isEqualWith.js
1624
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqualWith.js
1625
1625
  function isEqualWith(value, other, customizer) {
1626
1626
  customizer = typeof customizer == "function" ? customizer : void 0;
1627
1627
  var result = customizer ? customizer(value, other) : void 0;
@@ -1629,7 +1629,7 @@ function isEqualWith(value, other, customizer) {
1629
1629
  }
1630
1630
  var isEqualWith_default = isEqualWith;
1631
1631
 
1632
- // ../../node_modules/lodash-es/isEqual.js
1632
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqual.js
1633
1633
  function isEqual(value, other) {
1634
1634
  return baseIsEqual_default(value, other);
1635
1635
  }
package/dist/index.js.map CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/index.ts", "../../../node_modules/lodash-es/isArray.js", "../../../node_modules/lodash-es/_freeGlobal.js", "../../../node_modules/lodash-es/_root.js", "../../../node_modules/lodash-es/_Symbol.js", "../../../node_modules/lodash-es/_getRawTag.js", "../../../node_modules/lodash-es/_objectToString.js", "../../../node_modules/lodash-es/_baseGetTag.js", "../../../node_modules/lodash-es/isObjectLike.js", "../../../node_modules/lodash-es/isObject.js", "../../../node_modules/lodash-es/isFunction.js", "../../../node_modules/lodash-es/_coreJsData.js", "../../../node_modules/lodash-es/_isMasked.js", "../../../node_modules/lodash-es/_toSource.js", "../../../node_modules/lodash-es/_baseIsNative.js", "../../../node_modules/lodash-es/_getValue.js", "../../../node_modules/lodash-es/_getNative.js", "../../../node_modules/lodash-es/_nativeCreate.js", "../../../node_modules/lodash-es/_hashClear.js", "../../../node_modules/lodash-es/_hashDelete.js", "../../../node_modules/lodash-es/_hashGet.js", "../../../node_modules/lodash-es/_hashHas.js", "../../../node_modules/lodash-es/_hashSet.js", "../../../node_modules/lodash-es/_Hash.js", "../../../node_modules/lodash-es/_listCacheClear.js", "../../../node_modules/lodash-es/eq.js", "../../../node_modules/lodash-es/_assocIndexOf.js", "../../../node_modules/lodash-es/_listCacheDelete.js", "../../../node_modules/lodash-es/_listCacheGet.js", "../../../node_modules/lodash-es/_listCacheHas.js", "../../../node_modules/lodash-es/_listCacheSet.js", "../../../node_modules/lodash-es/_ListCache.js", "../../../node_modules/lodash-es/_Map.js", "../../../node_modules/lodash-es/_mapCacheClear.js", "../../../node_modules/lodash-es/_isKeyable.js", "../../../node_modules/lodash-es/_getMapData.js", "../../../node_modules/lodash-es/_mapCacheDelete.js", "../../../node_modules/lodash-es/_mapCacheGet.js", "../../../node_modules/lodash-es/_mapCacheHas.js", "../../../node_modules/lodash-es/_mapCacheSet.js", "../../../node_modules/lodash-es/_MapCache.js", "../../../node_modules/lodash-es/_overArg.js", "../../dataverse/src/pointer.ts", "../../dataverse/src/utils/Stack.ts", "../../dataverse/src/prism/discoveryMechanism.ts", "../../dataverse/src/prism/prism.ts", "../../dataverse/src/Atom.ts", "../../dataverse/src/pointerToPrism.ts", "../../dataverse/src/Ticker.ts", "../../../node_modules/lodash-es/_stackClear.js", "../../../node_modules/lodash-es/_stackDelete.js", "../../../node_modules/lodash-es/_stackGet.js", "../../../node_modules/lodash-es/_stackHas.js", "../../../node_modules/lodash-es/_stackSet.js", "../../../node_modules/lodash-es/_Stack.js", "../../../node_modules/lodash-es/_setCacheAdd.js", "../../../node_modules/lodash-es/_setCacheHas.js", "../../../node_modules/lodash-es/_SetCache.js", "../../../node_modules/lodash-es/_arraySome.js", "../../../node_modules/lodash-es/_cacheHas.js", "../../../node_modules/lodash-es/_equalArrays.js", "../../../node_modules/lodash-es/_Uint8Array.js", "../../../node_modules/lodash-es/_mapToArray.js", "../../../node_modules/lodash-es/_setToArray.js", "../../../node_modules/lodash-es/_equalByTag.js", "../../../node_modules/lodash-es/_arrayPush.js", "../../../node_modules/lodash-es/_baseGetAllKeys.js", "../../../node_modules/lodash-es/_arrayFilter.js", "../../../node_modules/lodash-es/stubArray.js", "../../../node_modules/lodash-es/_getSymbols.js", "../../../node_modules/lodash-es/_baseTimes.js", "../../../node_modules/lodash-es/_baseIsArguments.js", "../../../node_modules/lodash-es/isArguments.js", "../../../node_modules/lodash-es/stubFalse.js", "../../../node_modules/lodash-es/isBuffer.js", "../../../node_modules/lodash-es/_isIndex.js", "../../../node_modules/lodash-es/isLength.js", "../../../node_modules/lodash-es/_baseIsTypedArray.js", "../../../node_modules/lodash-es/_baseUnary.js", "../../../node_modules/lodash-es/_nodeUtil.js", "../../../node_modules/lodash-es/isTypedArray.js", "../../../node_modules/lodash-es/_arrayLikeKeys.js", "../../../node_modules/lodash-es/_isPrototype.js", "../../../node_modules/lodash-es/_nativeKeys.js", "../../../node_modules/lodash-es/_baseKeys.js", "../../../node_modules/lodash-es/isArrayLike.js", "../../../node_modules/lodash-es/keys.js", "../../../node_modules/lodash-es/_getAllKeys.js", "../../../node_modules/lodash-es/_equalObjects.js", "../../../node_modules/lodash-es/_DataView.js", "../../../node_modules/lodash-es/_Promise.js", "../../../node_modules/lodash-es/_Set.js", "../../../node_modules/lodash-es/_WeakMap.js", "../../../node_modules/lodash-es/_getTag.js", "../../../node_modules/lodash-es/_baseIsEqualDeep.js", "../../../node_modules/lodash-es/_baseIsEqual.js", "../../../node_modules/lodash-es/isEqualWith.js", "../../../node_modules/lodash-es/isEqual.js"],
3
+ "sources": ["../src/index.ts", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.js", "../../dataverse/src/pointer.ts", "../../dataverse/src/utils/Stack.ts", "../../dataverse/src/prism/discoveryMechanism.ts", "../../dataverse/src/prism/prism.ts", "../../dataverse/src/Atom.ts", "../../dataverse/src/pointerToPrism.ts", "../../dataverse/src/Ticker.ts", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arraySome.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalArrays.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapToArray.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalByTag.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalObjects.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqualDeep.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqual.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqualWith.js", "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqual.js"],
4
4
  "sourcesContent": ["import type {\n IProject,\n IProjectConfig,\n ISheetObject,\n UnknownShorthandCompoundProps,\n IStudio,\n} from '@dreamerbird/core'\nimport {val, init, getStudioSync} from '@dreamerbird/core'\nimport {getProject} from '@dreamerbird/core'\nimport type {Pointer} from '@dreamerbird/dataverse'\nimport {isPointer} from '@dreamerbird/dataverse'\nimport isEqualWith from 'lodash-es/isEqualWith'\nimport isEqual from 'lodash-es/isEqual'\nimport {useEffect, useMemo, useState, useRef} from 'react'\n\ntype KeysMatching<T extends object, V> = {\n [K in keyof T]-?: T[K] extends V ? K : never\n}[keyof T]\n\ntype OmitMatching<T extends object, V> = Omit<T, KeysMatching<T, V>>\n\n// Because treeshaking studio relies on static checks like the following, we can't make including studio configurable at runtime.\n// What we can do, if there arises a need to use studio in production with theatric, is to let users provide their own studio instance.\n// That way we can treeshake our own, and the user can give us theirs, if they want to.\n\nif (process.env.NODE_ENV === 'development') {\n // Load the studio bundle (importing it registers the bundle with core), and\n // only then call init() \u2014 calling getStudio() before init() throws.\n // Kept behind the NODE_ENV check so production builds treeshake the studio.\n void import('@dreamerbird/studio').then(() => {\n void init({studio: true})\n })\n}\n\n// Just to be able to treeshake studio out of the bundle\nconst maybeTransaction: IStudio['transaction'] =\n process.env.NODE_ENV === 'development'\n ? (...args: Parameters<IStudio['transaction']>) => {\n // the studio loads asynchronously; edits that land before it has\n // attached can't be transacted (same as production, where this whole\n // function is a no-op)\n const studio = getStudioSync()\n if (!studio) return\n return studio.transaction(...args)\n }\n : () => {}\n\nlet _projectConfig: IProjectConfig['state'] | undefined = undefined\n\n// used for comparing config objects, to avoid re-rendering when the config object is recreated\n// but the values are the same except for functions\nfunction equalityCheckWithFunctionsAlwaysEqual(\n a: unknown,\n b: unknown,\n): boolean | undefined {\n if (typeof a === 'function' && typeof b === 'function') {\n return true\n }\n}\n\nexport function initialize(config: IProjectConfig): Promise<void> {\n if (_project) {\n console.warn(\n 'Theatric has already been initialized, either through another initialize call, or by calling useControls() before calling initialize().',\n )\n return _project.ready.then(() => {})\n }\n _projectConfig = config\n const project = callGetProject()\n return project.ready.then(() => {})\n}\n\nexport function getAssetUrl(asset: {\n type: 'image' | 'file'\n id: string | undefined\n}): string | undefined {\n if (!_project) {\n throw new Error(\n 'Theatric has not been initialized yet. Please call initialize() before calling getAssetUrl().',\n )\n }\n if (!_project.isReady) {\n throw new Error(\n 'Calling `getAssetUrl()` before `initialize()` is resolved.\\n' +\n 'The best way to solve this is to delay rendering your react app until `project.ready` is resolved, like this: \\n\\n' +\n '```\\n' +\n 'project.ready.then(() => {ReactDom.render(...)})\\n' +\n '```',\n )\n }\n return _project.getAssetUrl(asset)\n}\n\nconst allProps: Record<string, UnknownShorthandCompoundProps[]> = {}\nconst allActions: Record<string, Record<string, () => void>[]> = {}\n\ntype Button = {\n type: 'button'\n onClick: () => void\n}\ntype Buttons = {\n [key: string]: Button\n}\n\ntype ControlsAndButtons = {\n [key: string]: {type: 'button'} | UnknownShorthandCompoundProps[string]\n}\n\n/**\n * The type of the `$set()` function returned by `useControls()`.\n */\ntype Setter<Config extends UnknownShorthandCompoundProps> = <S>(\n pointer: (p: ISheetObject<Config>['props']) => Pointer<S>,\n value: S,\n) => void\n\n/**\n * The type of the `$get()` function returned by `useControls()`.\n */\ntype Getter<Config extends UnknownShorthandCompoundProps> = <S>(\n pointer: (p: ISheetObject<Config>['props']) => Pointer<S>,\n) => S\n\nexport function useControls<Config extends ControlsAndButtons>(\n config: Config,\n options: {panel?: string; folder?: string} = {},\n): ISheetObject<OmitMatching<Config, {type: 'button'}>>['value'] & {\n $set: Setter<OmitMatching<Config, {type: 'button'}>>\n $get: Getter<OmitMatching<Config, {type: 'button'}>>\n} {\n // initialize state to null, if it hasn't been initialized yet\n if (_projectConfig === undefined) {\n _projectConfig = null\n }\n\n /*\n * This is a performance hack just to avoid a bunch of unnecessary calculations and effect runs whenever the hook is called,\n * since the config object is very likely not memoized by the user.\n * Since the config object can include functions, we can't rely for correctness on just deep comparing the config object,\n * we also have to perform a deep comparison on the theatre object values in onValuesChange before calling setState in order\n * to truly make sure we avoid infinite loops in this case, since then the config object will always be reported to be different by isEqual.\n *\n * Note: normally object.onValuesChange wouldn't be called twice with the same values, but when the object is reconfigured (which it is),\n * this doesn't seem to be the case.\n *\n * Also note: normally it'd be illegal to set refs during render (since renders might not be committed), but it is fine here\n * because we are only using it for memoization, _config is never going to be stale.\n */\n const configRef = useRef(config)\n const _config = useMemo(() => {\n let currentConfig = configRef.current\n\n if (\n !isEqualWith(\n config,\n configRef.current,\n equalityCheckWithFunctionsAlwaysEqual,\n )\n ) {\n configRef.current = config\n currentConfig = config\n }\n\n return currentConfig\n }, [config])\n\n const {folder} = options\n\n const controlsWithoutButtons = useMemo(\n () =>\n Object.fromEntries(\n Object.entries(_config).filter(\n ([key, value]) => (value as any).type !== 'button',\n ),\n ) as UnknownShorthandCompoundProps,\n [_config],\n )\n\n const buttons = useMemo(\n () =>\n Object.fromEntries(\n Object.entries(_config).filter(\n ([key, value]) => (value as any).type === 'button',\n ),\n ) as unknown as Buttons,\n [_config],\n )\n\n const props = useMemo(\n () =>\n folder ? {[folder]: controlsWithoutButtons} : controlsWithoutButtons,\n [folder, controlsWithoutButtons],\n )\n\n const actions = useMemo(\n () =>\n Object.fromEntries(\n Object.entries(buttons).map(([key, value]) => [\n `${folder ? `${folder}: ` : ''}${key}`,\n () => {\n // the value of the button is a function, so we can't use it as a dependency, but we can use it as a ref\n // @ts-ignore\n configRef.current[key].onClick?.()\n },\n ]),\n ),\n [buttons, folder],\n )\n\n const sheet = useMemo(() => callGetProject().sheet('Panels'), [])\n\n const panel = options.panel ?? 'Default panel'\n const allPanelProps = allProps[panel] ?? (allProps[panel] = [])\n const allPanelActions = allActions[panel] ?? (allActions[panel] = [])\n\n // have to do this to make sure the values are immediately available\n const object = useMemo(\n () =>\n sheet.object(panel, Object.assign({}, ...allProps[panel], props), {\n reconfigure: true,\n __actions__THIS_API_IS_UNSTABLE_AND_WILL_CHANGE_IN_THE_NEXT_VERSION:\n Object.assign({}, ...allActions[panel], actions),\n }),\n [panel, props, actions],\n )\n\n useEffect(() => {\n allPanelProps.push(props)\n allPanelActions.push(actions)\n // cleanup runs after render, so we have to reconfigure with the new props here too, doing it during render just makes sure that\n // the very first values returned are not undefined\n let obj = sheet.object(panel, Object.assign({}, ...allPanelProps), {\n reconfigure: true,\n __actions__THIS_API_IS_UNSTABLE_AND_WILL_CHANGE_IN_THE_NEXT_VERSION:\n Object.assign({}, ...allPanelActions),\n })\n\n selectObjectIfNecessary(obj)\n\n return () => {\n allPanelProps.splice(allPanelProps.indexOf(props), 1)\n allActions[panel].splice(allPanelActions.indexOf(actions), 1)\n sheet.object(panel, Object.assign({}, ...allPanelProps), {\n reconfigure: true,\n __actions__THIS_API_IS_UNSTABLE_AND_WILL_CHANGE_IN_THE_NEXT_VERSION:\n Object.assign({}, ...allPanelActions),\n })\n }\n }, [props, actions, allPanelActions, allPanelProps, sheet, panel])\n\n const [values, setValues] = useState(\n (folder ? object.value[folder] : object.value) as ISheetObject<\n OmitMatching<Config, {type: 'button'}>\n >['value'],\n )\n\n const valuesRef = useRef(object.value)\n\n useEffect(() => {\n const unsub = object.onValuesChange((newValues) => {\n if (folder) newValues = newValues[folder]\n\n // Normally object.onValuesChange wouldn't be called twice with the same values, but when the object is reconfigured (like we do above),\n // this doesn't seem to be the case, so we need to explicitly do this here to avoid infinite loops.\n if (isEqual(newValues, valuesRef.current)) return\n\n valuesRef.current = newValues\n setValues(newValues as any)\n })\n\n return unsub\n }, [object])\n\n const $setAndGet = useMemo(() => {\n const rootPointer = folder\n ? (object as ISheetObject).props[folder]\n : object.props\n\n const $set: Setter<OmitMatching<Config, {type: 'button'}>> = (\n getPointer,\n value,\n ) => {\n if (typeof getPointer !== 'function') {\n throw new Error(\n `The first argument to $set must be a function that returns a pointer. Instead, it was ${typeof getPointer}`,\n )\n }\n\n const pointer = getPointer(rootPointer as any)\n if (!isPointer(pointer)) {\n throw new Error(\n `The function passed to $set must return a pointer. Instead, it returned ${pointer}`,\n )\n }\n // this is not ideal because it will create a separate undo level for each set call,\n // but this is the only thing that theatre's public API allows us to do.\n // Wrapping the whole thing in a transaction wouldn't work either because side effects\n // would be run twice.\n maybeTransaction((api) => {\n api.set(pointer, value)\n })\n }\n\n const $get: Getter<OmitMatching<Config, {type: 'button'}>> = (\n getPointer,\n ) => {\n if (typeof getPointer !== 'function') {\n throw new Error(\n `The first argument to $get must be a function that returns a pointer. Instead, it was ${typeof getPointer}`,\n )\n }\n\n const pointer = getPointer(rootPointer as any)\n if (!isPointer(pointer)) {\n throw new Error(\n `The function passed to $get must return a pointer. Instead, it returned ${pointer}`,\n )\n }\n\n return val(pointer)\n }\n\n return {$set, $get}\n }, [folder, object])\n\n return {...values, ...$setAndGet}\n}\n\nexport {types} from '@dreamerbird/core'\n\nexport const button = (onClick: Button['onClick']) => {\n return {\n type: 'button' as const,\n onClick,\n }\n}\n\nlet _project: undefined | IProject\n\nfunction callGetProject() {\n if (_project) return _project\n _project = getProject('Theatric', _projectConfig ?? undefined)\n return _project\n}\n\nlet objAlreadySelected = false\n// When the user first opens the page, no object will be selected, which for users\n// unfamiliar with theatre can be confusing. Let's help the user by selecting the first object\n// that is created using `useControls()`.\nfunction selectObjectIfNecessary(obj: ISheetObject) {\n if (objAlreadySelected) return\n objAlreadySelected = true\n if (process.env.NODE_ENV === 'development') {\n // the studio loads asynchronously; it may not have attached yet when the\n // first object is created\n const studio = getStudioSync()\n if (!studio) return\n if (studio.selection.length === 0) {\n studio.setSelection([obj])\n }\n }\n}\n", "/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nexport default isArray;\n", "/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nexport default freeGlobal;\n", "import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nexport default root;\n", "import root from './_root.js';\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nexport default Symbol;\n", "import Symbol from './_Symbol.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nexport default getRawTag;\n", "/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nexport default objectToString;\n", "import Symbol from './_Symbol.js';\nimport getRawTag from './_getRawTag.js';\nimport objectToString from './_objectToString.js';\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nexport default baseGetTag;\n", "/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nexport default isObjectLike;\n", "/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nexport default isObject;\n", "import baseGetTag from './_baseGetTag.js';\nimport isObject from './isObject.js';\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nexport default isFunction;\n", "import root from './_root.js';\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nexport default coreJsData;\n", "import coreJsData from './_coreJsData.js';\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nexport default isMasked;\n", "/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nexport default toSource;\n", "import isFunction from './isFunction.js';\nimport isMasked from './_isMasked.js';\nimport isObject from './isObject.js';\nimport toSource from './_toSource.js';\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nexport default baseIsNative;\n", "/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nexport default getValue;\n", "import baseIsNative from './_baseIsNative.js';\nimport getValue from './_getValue.js';\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nexport default getNative;\n", "import getNative from './_getNative.js';\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nexport default nativeCreate;\n", "import nativeCreate from './_nativeCreate.js';\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nexport default hashClear;\n", "/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nexport default hashDelete;\n", "import nativeCreate from './_nativeCreate.js';\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nexport default hashGet;\n", "import nativeCreate from './_nativeCreate.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nexport default hashHas;\n", "import nativeCreate from './_nativeCreate.js';\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nexport default hashSet;\n", "import hashClear from './_hashClear.js';\nimport hashDelete from './_hashDelete.js';\nimport hashGet from './_hashGet.js';\nimport hashHas from './_hashHas.js';\nimport hashSet from './_hashSet.js';\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nexport default Hash;\n", "/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nexport default listCacheClear;\n", "/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nexport default eq;\n", "import eq from './eq.js';\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nexport default assocIndexOf;\n", "import assocIndexOf from './_assocIndexOf.js';\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nexport default listCacheDelete;\n", "import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nexport default listCacheGet;\n", "import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nexport default listCacheHas;\n", "import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nexport default listCacheSet;\n", "import listCacheClear from './_listCacheClear.js';\nimport listCacheDelete from './_listCacheDelete.js';\nimport listCacheGet from './_listCacheGet.js';\nimport listCacheHas from './_listCacheHas.js';\nimport listCacheSet from './_listCacheSet.js';\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nexport default ListCache;\n", "import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nexport default Map;\n", "import Hash from './_Hash.js';\nimport ListCache from './_ListCache.js';\nimport Map from './_Map.js';\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nexport default mapCacheClear;\n", "/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nexport default isKeyable;\n", "import isKeyable from './_isKeyable.js';\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nexport default getMapData;\n", "import getMapData from './_getMapData.js';\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nexport default mapCacheDelete;\n", "import getMapData from './_getMapData.js';\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nexport default mapCacheGet;\n", "import getMapData from './_getMapData.js';\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nexport default mapCacheHas;\n", "import getMapData from './_getMapData.js';\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nexport default mapCacheSet;\n", "import mapCacheClear from './_mapCacheClear.js';\nimport mapCacheDelete from './_mapCacheDelete.js';\nimport mapCacheGet from './_mapCacheGet.js';\nimport mapCacheHas from './_mapCacheHas.js';\nimport mapCacheSet from './_mapCacheSet.js';\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nexport default MapCache;\n", "/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nexport default overArg;\n", "import type {$IntentionalAny} from './types'\n\ntype PathToProp = Array<string | number>\n\nexport type PointerMeta = {\n root: {}\n path: (string | number)[]\n}\n\n/** We are using an empty object as a WeakMap key for storing pointer meta data */\ntype WeakPointerKey = {}\n\nexport type UnindexableTypesForPointer =\n | number\n | string\n | boolean\n | null\n | void\n | undefined\n | Function // eslint-disable-line @typescript-eslint/ban-types\n\nexport type UnindexablePointer = {\n [K in $IntentionalAny]: Pointer<undefined>\n}\n\nconst pointerMetaWeakMap = new WeakMap<WeakPointerKey, PointerMeta>()\nconst cachedSubPathPointersWeakMap = new WeakMap<\n WeakPointerKey,\n Map<string | number, Pointer<unknown>>\n>()\n\n/**\n * A wrapper type for the type a `Pointer` points to.\n */\nexport type PointerType<O> = {\n /**\n * Only accessible via the type system.\n * This is a helper for getting the underlying pointer type\n * via the type space.\n */\n $$__pointer_type: O\n}\n\n/**\n * The type of {@link Atom} pointers. See {@link pointer|pointer()} for an\n * explanation of pointers.\n *\n * @see Atom\n *\n * @remarks\n * The Pointer type is quite tricky because it doesn't play well with `any` and other inexact types.\n * Here is an example that one would expect to work, but currently doesn't:\n * ```ts\n * declare function expectAnyPointer(pointer: Pointer<any>): void\n *\n * expectAnyPointer(null as Pointer<{}>) // this shows as a type error because Pointer<{}> is not assignable to Pointer<any>, even though it should\n * ```\n *\n * The current solution is to just avoid using `any` with pointer-related code (or type-test it well).\n * But if you enjoy solving typescript puzzles, consider fixing this :)\n * Potentially, [TypeScript variance annotations in 4.7+](https://devblogs.microsoft.com/typescript/announcing-typescript-4-7-beta/#optional-variance-annotations-for-type-parameters)\n * might be able to help us.\n */\nexport type Pointer<O> = PointerType<O> &\n // `Exclude<O, undefined>` will remove `undefined` from the first type\n // `undefined extends O ? undefined : never` will give us `undefined` if `O` is `... | undefined`\n PointerInner<Exclude<O, undefined>, undefined extends O ? undefined : never>\n\n// By separating the `O` (non-undefined) from the `undefined` or `never`, we\n// can properly use `O extends ...` to determine the kind of potential value\n// without actually discarding optionality information.\ntype PointerInner<O, Optional> = O extends UnindexableTypesForPointer\n ? UnindexablePointer\n : unknown extends O\n ? UnindexablePointer\n : O extends (infer T)[]\n ? Pointer<T>[]\n : O extends {}\n ? {\n [K in keyof O]-?: Pointer<O[K] | Optional>\n }\n : UnindexablePointer\n\nconst pointerMetaSymbol = Symbol('pointerMeta')\n\nconst proxyHandler = {\n get(\n pointerKey: WeakPointerKey,\n prop: string | typeof pointerMetaSymbol,\n ): $IntentionalAny {\n if (prop === pointerMetaSymbol) return pointerMetaWeakMap.get(pointerKey)!\n\n let subPathPointers = cachedSubPathPointersWeakMap.get(pointerKey)\n if (!subPathPointers) {\n subPathPointers = new Map()\n cachedSubPathPointersWeakMap.set(pointerKey, subPathPointers)\n }\n\n const existing = subPathPointers.get(prop)\n if (existing !== undefined) return existing\n\n const meta = pointerMetaWeakMap.get(pointerKey)!\n\n const subPointer = pointer({root: meta.root, path: [...meta.path, prop]})\n subPathPointers.set(prop, subPointer)\n return subPointer\n },\n}\n\n/**\n * Returns the metadata associated with the pointer. Usually the root object and\n * the path.\n *\n * @param p - The pointer.\n */\nexport const getPointerMeta = <_>(p: PointerType<_>): PointerMeta => {\n // @ts-ignore @todo\n const meta: PointerMeta = p[\n pointerMetaSymbol as unknown as $IntentionalAny\n ] as $IntentionalAny\n return meta\n}\n\n/**\n * Returns the root object and the path of the pointer.\n *\n * @example\n * ```ts\n * const {root, path} = getPointerParts(pointer)\n * ```\n *\n * @param p - The pointer.\n *\n * @returns An object with two properties: `root`-the root object or the pointer, and `path`-the path of the pointer. `path` is an array of the property-chain.\n */\nexport const getPointerParts = <_>(\n p: Pointer<_>,\n): {root: {}; path: PathToProp} => {\n const {root, path} = getPointerMeta(p)\n return {root, path}\n}\n\n/**\n * Creates a pointer to a (nested) property of an {@link Atom}.\n *\n * @remarks\n * Pointers are used to make prisms of properties or nested properties of\n * {@link Atom|Atoms}.\n *\n * Pointers also allow easy construction of new pointers pointing to nested members\n * of the root object, by simply using property chaining. E.g. `somePointer.a.b` will\n * create a new pointer that has `'a'` and `'b'` added to the path of `somePointer`.\n *\n * @example\n * ```ts\n * // Here, sum is a prism that updates whenever the a or b prop of someAtom does.\n * const sum = prism(() => {\n * return val(pointer({root: someAtom, path: ['a']})) + val(pointer({root: someAtom, path: ['b']}));\n * });\n *\n * // Note, atoms have a convenience Atom.pointer property that points to the root,\n * // which you would normally use in this situation.\n * const sum = prism(() => {\n * return val(someAtom.pointer.a) + val(someAtom.pointer.b);\n * });\n * ```\n *\n * @param args - The pointer parameters.\n *\n * @typeParam O - The type of the value being pointed to.\n */\nfunction pointer<O>(args: {root: {}; path?: Array<string | number>}) {\n const meta: PointerMeta = {\n root: args.root as $IntentionalAny,\n path: args.path ?? [],\n }\n const pointerKey: WeakPointerKey = {}\n pointerMetaWeakMap.set(pointerKey, meta)\n return new Proxy(pointerKey, proxyHandler) as Pointer<O>\n}\n\nexport default pointer\n\n/**\n * Returns whether `p` is a pointer.\n */\nexport const isPointer = (p: $IntentionalAny): p is Pointer<unknown> => {\n return p && !!getPointerMeta(p)\n}\n", "interface Node<Data> {\n next: undefined | Node<Data>\n data: Data\n}\n\n/**\n * Just a simple LinkedList\n */\nexport default class Stack<Data> {\n _head: undefined | Node<Data>\n\n constructor() {\n this._head = undefined\n }\n\n peek() {\n return this._head && this._head.data\n }\n\n pop() {\n const head = this._head\n if (!head) {\n return undefined\n }\n this._head = head.next\n return head.data\n }\n\n push(data: Data) {\n const node = {next: this._head, data}\n this._head = node\n }\n}\n", "import type {$IntentionalAny} from '../types'\nimport Stack from '../utils/Stack'\nimport type {Prism} from './Interface'\n\nfunction createMechanism() {\n const noop = () => {}\n\n const stack = new Stack<Collector>()\n const noopCollector: Collector = noop\n\n type Collector = (d: Prism<$IntentionalAny>) => void\n\n const pushCollector = (collector: Collector): void => {\n stack.push(collector)\n }\n\n const popCollector = (collector: Collector): void => {\n const existing = stack.peek()\n if (existing !== collector) {\n throw new Error(`Popped collector is not on top of the stack`)\n }\n stack.pop()\n }\n\n const startIgnoringDependencies = () => {\n stack.push(noopCollector)\n }\n\n const stopIgnoringDependencies = () => {\n if (stack.peek() !== noopCollector) {\n if (process.env.NODE_ENV === 'development') {\n console.warn('This should never happen')\n }\n } else {\n stack.pop()\n }\n }\n\n const reportResolutionStart = (d: Prism<$IntentionalAny>) => {\n const possibleCollector = stack.peek()\n if (possibleCollector) {\n possibleCollector(d)\n }\n\n stack.push(noopCollector)\n }\n\n const reportResolutionEnd = (_d: Prism<$IntentionalAny>) => {\n stack.pop()\n }\n\n return {\n type: 'Dataverse_discoveryMechanism' as 'Dataverse_discoveryMechanism',\n startIgnoringDependencies,\n stopIgnoringDependencies,\n reportResolutionStart,\n reportResolutionEnd,\n pushCollector,\n popCollector,\n }\n}\n\nfunction getSharedMechanism(): ReturnType<typeof createMechanism> {\n const varName = '__dataverse_discoveryMechanism_sharedStack'\n const root =\n typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {}\n if (root) {\n const existingMechanism: ReturnType<typeof createMechanism> | undefined =\n // @ts-ignore ignore\n root[varName]\n if (\n existingMechanism &&\n typeof existingMechanism === 'object' &&\n existingMechanism.type === 'Dataverse_discoveryMechanism'\n ) {\n return existingMechanism\n } else {\n const mechanism = createMechanism()\n // @ts-ignore ignore\n root[varName] = mechanism\n return mechanism\n }\n } else {\n return createMechanism()\n }\n}\n\nexport const {\n startIgnoringDependencies,\n stopIgnoringDependencies,\n reportResolutionEnd,\n reportResolutionStart,\n pushCollector,\n popCollector,\n} = getSharedMechanism()\n", "import type Ticker from '../Ticker'\nimport type {$IntentionalAny, VoidFn} from '../types'\nimport Stack from '../utils/Stack'\nimport type {Prism} from './Interface'\nimport {isPrism} from './Interface'\nimport {\n startIgnoringDependencies,\n stopIgnoringDependencies,\n pushCollector,\n popCollector,\n reportResolutionStart,\n reportResolutionEnd,\n} from './discoveryMechanism'\n\ntype IDependent = (msgComingFrom: Prism<$IntentionalAny>) => void\n\nconst voidFn = () => {}\n\nclass HotHandle<V> {\n private _didMarkDependentsAsStale: boolean = false\n private _isFresh: boolean = false\n protected _cacheOfDendencyValues: Map<Prism<unknown>, unknown> = new Map()\n\n /**\n * @internal\n */\n protected _dependents: Set<IDependent> = new Set()\n\n /**\n * @internal\n */\n protected _dependencies: Set<Prism<$IntentionalAny>> = new Set()\n\n protected _possiblyStaleDeps = new Set<Prism<unknown>>()\n\n private _scope: HotScope = new HotScope(\n this as $IntentionalAny as HotHandle<unknown>,\n )\n\n /**\n * @internal\n */\n protected _lastValue: undefined | V = undefined\n\n /**\n * If true, the prism is stale even though its dependencies aren't\n * marked as such. This is used by `prism.source()` and `prism.state()`\n * to mark the prism as stale.\n */\n private _forciblySetToStale: boolean = false\n\n constructor(\n private readonly _fn: () => V,\n private readonly _prismInstance: PrismInstance<V>,\n ) {\n for (const d of this._dependencies) {\n d._addDependent(this._reactToDependencyGoingStale)\n }\n\n startIgnoringDependencies()\n this.getValue()\n stopIgnoringDependencies()\n }\n\n get hasDependents(): boolean {\n return this._dependents.size > 0\n }\n removeDependent(d: IDependent) {\n this._dependents.delete(d)\n }\n addDependent(d: IDependent) {\n this._dependents.add(d)\n }\n\n destroy() {\n for (const d of this._dependencies) {\n d._removeDependent(this._reactToDependencyGoingStale)\n }\n cleanupScopeStack(this._scope)\n }\n\n getValue(): V {\n if (!this._isFresh) {\n const newValue = this._recalculate()\n this._lastValue = newValue\n this._isFresh = true\n this._didMarkDependentsAsStale = false\n this._forciblySetToStale = false\n }\n return this._lastValue!\n }\n\n _recalculate() {\n let value: V\n\n if (!this._forciblySetToStale) {\n if (this._possiblyStaleDeps.size > 0) {\n let anActuallyStaleDepWasFound = false\n startIgnoringDependencies()\n for (const dep of this._possiblyStaleDeps) {\n if (this._cacheOfDendencyValues.get(dep) !== dep.getValue()) {\n anActuallyStaleDepWasFound = true\n break\n }\n }\n stopIgnoringDependencies()\n this._possiblyStaleDeps.clear()\n if (!anActuallyStaleDepWasFound) {\n return this._lastValue!\n }\n }\n }\n\n const newDeps: Set<Prism<unknown>> = new Set()\n this._cacheOfDendencyValues.clear()\n\n const collector = (observedDep: Prism<unknown>): void => {\n newDeps.add(observedDep)\n this._addDependency(observedDep)\n }\n\n pushCollector(collector)\n\n hookScopeStack.push(this._scope)\n try {\n value = this._fn()\n } catch (error) {\n console.error(error)\n } finally {\n const topOfTheStack = hookScopeStack.pop()\n if (topOfTheStack !== this._scope) {\n console.warn(\n // @todo guide the user to report the bug in an issue\n `The Prism hook stack has slipped. This is a bug.`,\n )\n }\n }\n\n popCollector(collector)\n\n for (const dep of this._dependencies) {\n if (!newDeps.has(dep)) {\n this._removeDependency(dep)\n }\n }\n\n this._dependencies = newDeps\n\n startIgnoringDependencies()\n for (const dep of newDeps) {\n this._cacheOfDendencyValues.set(dep, dep.getValue())\n }\n stopIgnoringDependencies()\n\n return value!\n }\n\n forceStale() {\n this._forciblySetToStale = true\n this._markAsStale()\n }\n\n protected _reactToDependencyGoingStale = (which: Prism<$IntentionalAny>) => {\n this._possiblyStaleDeps.add(which)\n\n this._markAsStale()\n }\n\n private _markAsStale() {\n if (this._didMarkDependentsAsStale) return\n\n this._didMarkDependentsAsStale = true\n this._isFresh = false\n\n for (const dependent of this._dependents) {\n dependent(this._prismInstance)\n }\n }\n\n /**\n * @internal\n */\n protected _addDependency(d: Prism<$IntentionalAny>) {\n if (this._dependencies.has(d)) return\n this._dependencies.add(d)\n d._addDependent(this._reactToDependencyGoingStale)\n }\n\n /**\n * @internal\n */\n protected _removeDependency(d: Prism<$IntentionalAny>) {\n if (!this._dependencies.has(d)) return\n this._dependencies.delete(d)\n d._removeDependent(this._reactToDependencyGoingStale)\n }\n}\n\nconst emptyObject = {}\n\nclass PrismInstance<V> implements Prism<V> {\n /**\n * Whether the object is a prism.\n */\n readonly isPrism: true = true\n\n private _state:\n | {hot: false; handle: undefined}\n | {hot: true; handle: HotHandle<V>} = {\n hot: false,\n handle: undefined,\n }\n\n constructor(private readonly _fn: () => V) {}\n\n /**\n * Whether the prism is hot.\n */\n get isHot(): boolean {\n return this._state.hot\n }\n\n onChange(\n ticker: Ticker,\n listener: (v: V) => void,\n immediate: boolean = false,\n ): VoidFn {\n // the prism will call this function every time it goes from fresh to stale\n const dependent = () => {\n // schedule the listener to be called on the next tick, unless\n // we're already on a tick, in which case it'll be called on the current tick.\n ticker.onThisOrNextTick(refresh)\n }\n\n // let's cache the last value so we don't call the listener if the value hasn't changed\n let lastValue: V | typeof emptyObject =\n // use an empty object as the initial value so that the listener is called on the first tick.\n // if we were to use, say, undefined, and this.getValue() also returned undefined, the listener\n // would never be called.\n emptyObject\n\n // this function will be _scheduled_ to be called on the currently running, or next tick,\n // after the prism has gone from fresh to stale.\n const refresh = () => {\n const newValue = this.getValue()\n // if the value hasn't changed, don't call the listener\n if (newValue === lastValue) return\n\n // the value has changed - cache it\n lastValue = newValue\n\n // and let the listener know\n listener(newValue)\n }\n\n // add the dependent to the prism's list of dependents (which will make it go hot)\n this._addDependent(dependent)\n\n // if the caller wants the listener to be called immediately, call it now\n if (immediate) {\n lastValue = this.getValue()\n listener(lastValue as $IntentionalAny as V)\n }\n\n // the unsubscribe function\n const unsubscribe = () => {\n // remove the dependent from the prism's list of dependents (and if it was the last dependent, the prism will go cold)\n this._removeDependent(dependent)\n // in case we're scheduled for a tick, cancel that\n ticker.offThisOrNextTick(refresh)\n ticker.offNextTick(refresh)\n }\n\n return unsubscribe\n }\n\n /**\n * Calls `callback` every time the prism's state goes from `fresh-\\>stale.` Returns an `unsubscribe()` function.\n */\n onStale(callback: () => void): VoidFn {\n const untap = () => {\n this._removeDependent(onStaleCallback)\n }\n const onStaleCallback = () => callback()\n this._addDependent(onStaleCallback)\n return untap\n }\n\n /**\n * Keep the prism hot, even if there are no tappers (subscribers).\n */\n keepHot() {\n return this.onStale(() => {})\n }\n\n /**\n * Add a prism as a dependent of this prism.\n *\n * @param d - The prism to be made a dependent of this prism.\n *\n * @see _removeDependent\n */\n _addDependent(d: IDependent) {\n if (!this._state.hot) {\n this._goHot()\n }\n this._state.handle!.addDependent(d)\n }\n\n private _goHot() {\n const hotHandle = new HotHandle(this._fn, this)\n this._state = {\n hot: true,\n handle: hotHandle,\n }\n }\n\n /**\n * Remove a prism as a dependent of this prism.\n *\n * @param d - The prism to be removed from as a dependent of this prism.\n *\n * @see _addDependent\n */\n _removeDependent(d: IDependent) {\n const state = this._state\n if (!state.hot) {\n return\n }\n const handle = state.handle\n handle.removeDependent(d)\n if (!handle.hasDependents) {\n this._state = {hot: false, handle: undefined}\n handle.destroy()\n }\n }\n\n /**\n * Gets the current value of the prism. If the value is stale, it causes the prism to freshen.\n */\n getValue(): V {\n /**\n * TODO We should prevent (or warn about) a common mistake users make, which is reading the value of\n * a prism in the body of a react component (e.g. `der.getValue()` (often via `val()`) instead of `useVal()`\n * or `uesPrism()`).\n *\n * Although that's the most common example of this mistake, you can also find it outside of react components.\n * Basically the user runs `der.getValue()` assuming the read is detected by a wrapping prism when it's not.\n *\n * Sometiems the prism isn't even hot when the user assumes it is.\n *\n * We can fix this type of mistake by:\n * 1. Warning the user when they call `getValue()` on a cold prism.\n * 2. Warning the user about calling `getValue()` on a hot-but-stale prism\n * if `getValue()` isn't called by a known mechanism like a `PrismEmitter`.\n *\n * Design constraints:\n * - This fix should not have a perf-penalty in production. Perhaps use a global flag + `process.env.NODE_ENV !== 'production'`\n * to enable it.\n * - In the case of `onStale()`, we don't control when the user calls\n * `getValue()` (as opposed to `onChange()` which calls `getValue()` directly).\n * Perhaps we can disable the check in that case.\n * - Probably the best place to add this check is right here in this method plus some changes to `reportResulutionStart()`,\n * which would have to be changed to let the caller know if there is an actual collector (a prism)\n * present in its stack.\n */\n reportResolutionStart(this)\n\n const state = this._state\n\n let val: V\n if (state.hot) {\n val = state.handle.getValue()\n } else {\n val = calculateColdPrism(this._fn)\n }\n\n reportResolutionEnd(this)\n return val\n }\n}\n\ninterface PrismScope {\n effect(key: string, cb: () => () => void, deps?: unknown[]): void\n memo<T>(\n key: string,\n fn: () => T,\n deps: undefined | $IntentionalAny[] | ReadonlyArray<$IntentionalAny>,\n ): T\n state<T>(key: string, initialValue: T): [T, (val: T) => void]\n ref<T>(key: string, initialValue: T): IRef<T>\n sub(key: string): PrismScope\n source<V>(subscribe: (fn: (val: V) => void) => VoidFn, getValue: () => V): V\n}\n\nclass HotScope implements PrismScope {\n constructor(private readonly _hotHandle: HotHandle<unknown>) {}\n\n protected readonly _refs: Map<string, IRef<unknown>> = new Map()\n ref<T>(key: string, initialValue: T): IRef<T> {\n let ref = this._refs.get(key)\n if (ref !== undefined) {\n return ref as $IntentionalAny as IRef<T>\n } else {\n const ref = {\n current: initialValue,\n }\n this._refs.set(key, ref)\n return ref\n }\n }\n isPrismScope = true\n\n // NOTE probably not a great idea to eager-allocate all of these objects/maps for every scope,\n // especially because most wouldn't get used in the majority of cases. However, back when these\n // were stored on weakmaps, they were uncomfortable to inspect in the debugger.\n readonly subs: Record<string, HotScope> = {}\n readonly effects: Map<string, IEffect> = new Map()\n\n effect(key: string, cb: () => () => void, deps?: unknown[]): void {\n let effect = this.effects.get(key)\n if (effect === undefined) {\n effect = {\n cleanup: voidFn,\n deps: undefined,\n }\n this.effects.set(key, effect)\n }\n\n if (depsHaveChanged(effect.deps, deps)) {\n effect.cleanup()\n\n startIgnoringDependencies()\n effect.cleanup = safelyRun(cb, voidFn).value\n stopIgnoringDependencies()\n effect.deps = deps\n }\n /**\n * TODO: we should cleanup dangling effects too.\n * Example:\n * ```ts\n * let i = 0\n * prism(() => {\n * if (i === 0) prism.effect(\"this effect will only run once\", () => {}, [])\n * i++\n * })\n * ```\n */\n }\n\n readonly memos: Map<string, IMemo> = new Map()\n\n memo<T>(\n key: string,\n fn: () => T,\n deps: undefined | $IntentionalAny[] | ReadonlyArray<$IntentionalAny>,\n ): T {\n let memo = this.memos.get(key)\n if (memo === undefined) {\n memo = {\n cachedValue: null,\n // undefined will always indicate \"deps have changed\", so we set its initial value as such\n deps: undefined,\n }\n this.memos.set(key, memo)\n }\n\n if (depsHaveChanged(memo.deps, deps)) {\n startIgnoringDependencies()\n\n memo.cachedValue = safelyRun(fn, undefined).value\n stopIgnoringDependencies()\n memo.deps = deps\n }\n\n return memo.cachedValue as $IntentionalAny as T\n }\n\n state<T>(key: string, initialValue: T): [T, (val: T) => void] {\n const {value, setValue} = this.memo(\n 'state/' + key,\n () => {\n const value = {current: initialValue}\n const setValue = (newValue: T) => {\n value.current = newValue\n this._hotHandle.forceStale()\n }\n return {value, setValue}\n },\n [],\n )\n\n return [value.current, setValue]\n }\n\n sub(key: string): HotScope {\n if (!this.subs[key]) {\n this.subs[key] = new HotScope(this._hotHandle)\n }\n return this.subs[key]\n }\n\n cleanupEffects() {\n for (const effect of this.effects.values()) {\n safelyRun(effect.cleanup, undefined)\n }\n this.effects.clear()\n }\n\n source<V>(subscribe: (fn: (val: V) => void) => VoidFn, getValue: () => V): V {\n const sourceKey = '$$source/blah'\n this.effect(\n sourceKey,\n () => {\n const unsub = subscribe(() => {\n this._hotHandle.forceStale()\n })\n return unsub\n },\n [subscribe],\n )\n return getValue()\n }\n}\n\nfunction cleanupScopeStack(scope: HotScope) {\n for (const sub of Object.values(scope.subs)) {\n cleanupScopeStack(sub)\n }\n scope.cleanupEffects()\n}\n\nfunction safelyRun<T, U>(\n fn: () => T,\n returnValueInCaseOfError: U,\n): {ok: true; value: T} | {ok: false; value: U} {\n try {\n return {value: fn(), ok: true}\n } catch (error) {\n // Naming this function can allow the error reporter additional context to the user on where this error came from\n setTimeout(function PrismReportThrow() {\n // ensure that the error gets reported, but does not crash the current execution scope\n throw error\n })\n return {value: returnValueInCaseOfError, ok: false}\n }\n}\n\nconst hookScopeStack = new Stack<PrismScope>()\n\ntype IRef<T> = {\n current: T\n}\n\ntype IEffect = {\n deps: undefined | unknown[]\n cleanup: VoidFn\n}\n\ntype IMemo = {\n deps: undefined | unknown[] | ReadonlyArray<unknown>\n cachedValue: unknown\n}\n\n/**\n * Just like React's `useRef()`, `prism.ref()` allows us to create a prism that holds a reference to some value.\n * The only difference is that `prism.ref()` requires a key to be passed into it, whlie `useRef()` doesn't.\n * This means that we can call `prism.ref()` in any order, and we can call it multiple times with the same key.\n * @param key - The key for the ref. Should be unique inside of the prism.\n * @param initialValue - The initial value for the ref.\n * @returns `{current: V}` - The ref object.\n *\n * Note that the ref object will always return its initial value if the prism is cold. It'll only record\n * its current value if the prism is hot (and will forget again if the prism goes cold again).\n *\n * @example\n * ```ts\n * const pr = prism(() => {\n * const ref1 = prism.ref(\"ref1\", 0)\n * console.log(ref1.current) // will print 0, and if the prism is hot, it'll print the current value\n * ref1.current++ // changing the current value of the ref\n * })\n * ```\n */\nfunction ref<T>(key: string, initialValue: T): IRef<T> {\n const scope = hookScopeStack.peek()\n if (!scope) {\n throw new Error(`prism.ref() is called outside of a prism() call.`)\n }\n\n return scope.ref(key, initialValue)\n}\n\n/**\n * An effect hook, similar to React's `useEffect()`, but is not sensitive to call order by using `key`.\n *\n * @param key - the key for the effect. Should be uniqe inside of the prism.\n * @param cb - the callback function. Requires returning a cleanup function.\n * @param deps - the dependency array\n */\nfunction effect(key: string, cb: () => () => void, deps?: unknown[]): void {\n const scope = hookScopeStack.peek()\n if (!scope) {\n throw new Error(`prism.effect() is called outside of a prism() call.`)\n }\n\n return scope.effect(key, cb, deps)\n}\n\nfunction depsHaveChanged(\n oldDeps: undefined | unknown[] | ReadonlyArray<unknown>,\n newDeps: undefined | unknown[] | ReadonlyArray<unknown>,\n): boolean {\n if (oldDeps === undefined || newDeps === undefined) {\n return true\n }\n\n const len = oldDeps.length\n if (len !== newDeps.length) return true\n\n for (let i = 0; i < len; i++) {\n if (oldDeps[i] !== newDeps[i]) return true\n }\n\n return false\n}\n\n/**\n * `prism.memo()` works just like React's `useMemo()` hook. It's a way to cache the result of a function call.\n * The only difference is that `prism.memo()` requires a key to be passed into it, whlie `useMemo()` doesn't.\n * This means that we can call `prism.memo()` in any order, and we can call it multiple times with the same key.\n *\n * @param key - The key for the memo. Should be unique inside of the prism\n * @param fn - The function to memoize\n * @param deps - The dependency array. Provide `[]` if you want to the value to be memoized only once and never re-calculated.\n * @returns The result of the function call\n *\n * @example\n * ```ts\n * const pr = prism(() => {\n * const memoizedReturnValueOfExpensiveFn = prism.memo(\"memo1\", expensiveFn, [])\n * })\n * ```\n */\nfunction memo<T>(\n key: string,\n fn: () => T,\n deps: undefined | $IntentionalAny[] | ReadonlyArray<$IntentionalAny>,\n): T {\n const scope = hookScopeStack.peek()\n if (!scope) {\n throw new Error(`prism.memo() is called outside of a prism() call.`)\n }\n\n return scope.memo(key, fn, deps)\n}\n\n/**\n * A state hook, similar to react's `useState()`.\n *\n * @param key - the key for the state\n * @param initialValue - the initial value\n * @returns [currentState, setState]\n *\n * @example\n * ```ts\n * import {prism} from 'dataverse'\n *\n * // This prism holds the current mouse position and updates when the mouse moves\n * const mousePositionD = prism(() => {\n * const [pos, setPos] = prism.state<[x: number, y: number]>('pos', [0, 0])\n *\n * prism.effect(\n * 'setupListeners',\n * () => {\n * const handleMouseMove = (e: MouseEvent) => {\n * setPos([e.screenX, e.screenY])\n * }\n * document.addEventListener('mousemove', handleMouseMove)\n *\n * return () => {\n * document.removeEventListener('mousemove', handleMouseMove)\n * }\n * },\n * [],\n * )\n *\n * return pos\n * })\n * ```\n */\nfunction state<T>(key: string, initialValue: T): [T, (val: T) => void] {\n const scope = hookScopeStack.peek()\n if (!scope) {\n throw new Error(`prism.state() is called outside of a prism() call.`)\n }\n\n return scope.state(key, initialValue)\n}\n\n/**\n * This is useful to make sure your code is running inside a `prism()` call.\n *\n * @example\n * ```ts\n * import {prism} from '@dreamerbird/dataverse'\n *\n * function onlyUsefulInAPrism() {\n * prism.ensurePrism()\n * }\n *\n * prism(() => {\n * onlyUsefulInAPrism() // will run fine\n * })\n *\n * setTimeout(() => {\n * onlyUsefulInAPrism() // throws an error\n * console.log('This will never get logged')\n * }, 0)\n * ```\n */\nfunction ensurePrism(): void {\n const scope = hookScopeStack.peek()\n if (!scope) {\n throw new Error(`The parent function is called outside of a prism() call.`)\n }\n}\n\nfunction scope<T>(key: string, fn: () => T): T {\n const parentScope = hookScopeStack.peek()\n if (!parentScope) {\n throw new Error(`prism.scope() is called outside of a prism() call.`)\n }\n const subScope = parentScope.sub(key)\n hookScopeStack.push(subScope)\n const ret = safelyRun(fn, undefined).value\n hookScopeStack.pop()\n return ret as $IntentionalAny as T\n}\n\n/**\n * Just an alias for `prism.memo(key, () => prism(fn), deps).getValue()`. It creates a new prism, memoizes it, and returns the value.\n * `prism.sub()` is useful when you want to divide your prism into smaller prisms, each of which\n * would _only_ recalculate when _certain_ dependencies change. In other words, it's an optimization tool.\n *\n * @param key - The key for the memo. Should be unique inside of the prism\n * @param fn - The function to run inside the prism\n * @param deps - The dependency array. Provide `[]` if you want to the value to be memoized only once and never re-calculated.\n * @returns The value of the inner prism\n */\nfunction sub<T>(\n key: string,\n fn: () => T,\n deps: undefined | $IntentionalAny[],\n): T {\n return memo(key, () => prism(fn), deps).getValue()\n}\n\n/**\n * @returns true if the current function is running inside a `prism()` call.\n */\nfunction inPrism(): boolean {\n return !!hookScopeStack.peek()\n}\n\nconst possiblePrismToValue = <P extends Prism<$IntentionalAny> | unknown>(\n input: P,\n): P extends Prism<infer T> ? T : P => {\n if (isPrism(input)) {\n return input.getValue() as $IntentionalAny\n } else {\n return input as $IntentionalAny\n }\n}\n\n/**\n * `prism.source()` allow a prism to react to changes in some external source (other than other prisms).\n * For example, `Atom.pointerToPrism()` uses `prism.source()` to create a prism that reacts to changes in the atom's value.\n \n * @param subscribe - The prism will call this function as soon as the prism goes hot. This function should return an unsubscribe function function which the prism will call when it goes cold.\n * @param getValue - A function that returns the current value of the external source.\n * @returns The current value of the source\n * \n * Example:\n * ```ts\n * function prismFromInputElement(input: HTMLInputElement): Prism<string> {\n * function listen(cb: (value: string) => void) {\n * const listener = () => {\n * cb(input.value)\n * }\n * input.addEventListener('input', listener)\n * return () => {\n * input.removeEventListener('input', listener)\n * }\n * }\n * \n * function get() {\n * return input.value\n * }\n * return prism(() => prism.source(listen, get))\n * }\n * ```\n */\nfunction source<V>(\n subscribe: (fn: (val: V) => void) => VoidFn,\n getValue: () => V,\n): V {\n const scope = hookScopeStack.peek()\n if (!scope) {\n throw new Error(`prism.source() is called outside of a prism() call.`)\n }\n\n return scope.source(subscribe, getValue)\n}\n\ntype IPrismFn = {\n <T>(fn: () => T): Prism<T>\n ref: typeof ref\n effect: typeof effect\n memo: typeof memo\n ensurePrism: typeof ensurePrism\n state: typeof state\n scope: typeof scope\n sub: typeof sub\n inPrism: typeof inPrism\n source: typeof source\n}\n\n/**\n * Creates a prism from the passed function that adds all prisms referenced\n * in it as dependencies, and reruns the function when these change.\n *\n * @param fn - The function to rerun when the prisms referenced in it change.\n */\nconst prism: IPrismFn = (fn) => {\n return new PrismInstance(fn)\n}\n\nclass ColdScope implements PrismScope {\n effect(key: string, cb: () => () => void, deps?: unknown[]): void {\n console.warn(`prism.effect() does not run in cold prisms`)\n }\n memo<T>(\n key: string,\n fn: () => T,\n deps: any[] | readonly any[] | undefined,\n ): T {\n return fn()\n }\n state<T>(key: string, initialValue: T): [T, (val: T) => void] {\n return [initialValue, () => {}]\n }\n ref<T>(key: string, initialValue: T): IRef<T> {\n return {current: initialValue}\n }\n sub(key: string): ColdScope {\n return new ColdScope()\n }\n source<V>(subscribe: (fn: (val: V) => void) => VoidFn, getValue: () => V): V {\n return getValue()\n }\n}\n\nfunction calculateColdPrism<V>(fn: () => V): V {\n const scope = new ColdScope()\n hookScopeStack.push(scope)\n let value: V\n try {\n value = fn()\n } catch (error) {\n console.error(error)\n } finally {\n const topOfTheStack = hookScopeStack.pop()\n if (topOfTheStack !== scope) {\n console.warn(\n // @todo guide the user to report the bug in an issue\n `The Prism hook stack has slipped. This is a bug.`,\n )\n }\n }\n return value!\n}\n\nprism.ref = ref\nprism.effect = effect\nprism.memo = memo\nprism.ensurePrism = ensurePrism\nprism.state = state\nprism.scope = scope\nprism.sub = sub\nprism.inPrism = inPrism\nprism.source = source\n\nexport default prism\n", "import get from 'lodash-es/get'\nimport isPlainObject from 'lodash-es/isPlainObject'\nimport last from 'lodash-es/last'\nimport type {Prism} from './prism/Interface'\nimport type {Pointer} from './pointer'\nimport {getPointerParts} from './pointer'\nimport {isPointer} from './pointer'\nimport pointer from './pointer'\nimport type {$FixMe, $IntentionalAny} from './types'\nimport updateDeep from './utils/updateDeep'\nimport prism from './prism/prism'\nimport type {PointerToPrismProvider} from './pointerToPrism'\n\ntype Listener = (newVal: unknown) => void\n\nenum ValueTypes {\n Dict,\n Array,\n Other,\n}\n\nconst getTypeOfValue = (v: unknown): ValueTypes => {\n if (Array.isArray(v)) return ValueTypes.Array\n if (isPlainObject(v)) return ValueTypes.Dict\n return ValueTypes.Other\n}\n\nconst getKeyOfValue = (\n v: unknown,\n key: string | number,\n vType: ValueTypes = getTypeOfValue(v),\n): unknown => {\n if (vType === ValueTypes.Dict && typeof key === 'string') {\n return (v as $IntentionalAny)[key]\n } else if (vType === ValueTypes.Array && isValidArrayIndex(key)) {\n return (v as $IntentionalAny)[key]\n } else {\n return undefined\n }\n}\n\nconst isValidArrayIndex = (key: string | number): boolean => {\n const inNumber = typeof key === 'number' ? key : parseInt(key, 10)\n return (\n !isNaN(inNumber) &&\n inNumber >= 0 &&\n inNumber < Infinity &&\n (inNumber | 0) === inNumber\n )\n}\n\nclass Scope {\n children: Map<string | number, Scope> = new Map()\n identityChangeListeners: Set<Listener> = new Set()\n constructor(\n readonly _parent: undefined | Scope,\n readonly _path: (string | number)[],\n ) {}\n\n addIdentityChangeListener(cb: Listener) {\n this.identityChangeListeners.add(cb)\n }\n\n removeIdentityChangeListener(cb: Listener) {\n this.identityChangeListeners.delete(cb)\n this._checkForGC()\n }\n\n removeChild(key: string | number) {\n this.children.delete(key)\n this._checkForGC()\n }\n\n getChild(key: string | number) {\n return this.children.get(key)\n }\n\n getOrCreateChild(key: string | number) {\n let child = this.children.get(key)\n if (!child) {\n child = child = new Scope(this, this._path.concat([key]))\n this.children.set(key, child)\n }\n return child\n }\n\n _checkForGC() {\n if (this.identityChangeListeners.size > 0) return\n if (this.children.size > 0) return\n\n if (this._parent) {\n this._parent.removeChild(last(this._path) as string | number)\n }\n }\n}\n\n/**\n * Wraps an object whose (sub)properties can be individually tracked.\n */\nexport default class Atom<State> implements PointerToPrismProvider {\n private _currentState: State\n /**\n * @internal\n */\n readonly $$isPointerToPrismProvider = true\n private readonly _rootScope: Scope\n /**\n * Convenience property that gives you a pointer to the root of the atom.\n *\n * @remarks\n * Equivalent to `pointer({ root: thisAtom, path: [] })`.\n */\n readonly pointer: Pointer<State> = pointer({root: this as $FixMe, path: []})\n\n readonly prism: Prism<State> = this.pointerToPrism(\n this.pointer,\n ) as $IntentionalAny\n\n constructor(initialState: State) {\n this._currentState = initialState\n this._rootScope = new Scope(undefined, [])\n }\n\n /**\n * Sets the state of the atom.\n *\n * @param newState - The new state of the atom.\n */\n set(newState: State) {\n const oldState = this._currentState\n this._currentState = newState\n\n this._checkUpdates(this._rootScope, oldState, newState)\n }\n\n /**\n * Returns the current state of the atom.\n */\n get(): State {\n return this._currentState\n }\n\n /**\n * Returns the value at the given pointer\n *\n * @param pointerOrFn - A pointer to the desired path. Could also be a function returning a pointer\n *\n * Example\n * ```ts\n * const atom = atom({ a: { b: 1 } })\n * atom.getByPointer(atom.pointer.a.b) // 1\n * atom.getByPointer((p) => p.a.b) // 1\n * ```\n */\n getByPointer<S>(\n pointerOrFn: Pointer<S> | ((p: Pointer<State>) => Pointer<S>),\n ): S {\n const pointer = isPointer(pointerOrFn)\n ? pointerOrFn\n : (pointerOrFn as $IntentionalAny)(this.pointer)\n\n const path = getPointerParts(pointer).path\n return this._getIn(path) as S\n }\n\n /**\n * Gets the state of the atom at `path`.\n */\n private _getIn(path: (string | number)[]): unknown {\n return path.length === 0 ? this.get() : get(this.get(), path)\n }\n\n reduce(fn: (state: State) => State) {\n this.set(fn(this.get()))\n }\n\n /**\n * Reduces the value at the given pointer\n *\n * @param pointerOrFn - A pointer to the desired path. Could also be a function returning a pointer\n *\n * Example\n * ```ts\n * const atom = atom({ a: { b: 1 } })\n * atom.reduceByPointer(atom.pointer.a.b, (b) => b + 1) // atom.get().a.b === 2\n * atom.reduceByPointer((p) => p.a.b, (b) => b + 1) // atom.get().a.b === 2\n * ```\n */\n reduceByPointer<S>(\n pointerOrFn: Pointer<S> | ((p: Pointer<State>) => Pointer<S>),\n reducer: (s: S) => S,\n ) {\n const pointer = isPointer(pointerOrFn)\n ? pointerOrFn\n : (pointerOrFn as $IntentionalAny)(this.pointer)\n\n const path = getPointerParts(pointer).path\n const newState = updateDeep(this.get(), path, reducer)\n this.set(newState)\n }\n\n /**\n * Sets the value at the given pointer\n *\n * @param pointerOrFn - A pointer to the desired path. Could also be a function returning a pointer\n *\n * Example\n * ```ts\n * const atom = atom({ a: { b: 1 } })\n * atom.setByPointer(atom.pointer.a.b, 2) // atom.get().a.b === 2\n * atom.setByPointer((p) => p.a.b, 2) // atom.get().a.b === 2\n * ```\n */\n setByPointer<S>(\n pointerOrFn: Pointer<S> | ((p: Pointer<State>) => Pointer<S>),\n val: S,\n ) {\n this.reduceByPointer(pointerOrFn, () => val)\n }\n\n private _checkUpdates(scope: Scope, oldState: unknown, newState: unknown) {\n if (oldState === newState) return\n for (const cb of scope.identityChangeListeners) {\n cb(newState)\n }\n\n if (scope.children.size === 0) return\n\n // @todo we can probably skip checking value types\n const oldValueType = getTypeOfValue(oldState)\n const newValueType = getTypeOfValue(newState)\n\n if (oldValueType === ValueTypes.Other && oldValueType === newValueType)\n return\n\n for (const [childKey, childScope] of scope.children) {\n const oldChildVal = getKeyOfValue(oldState, childKey, oldValueType)\n const newChildVal = getKeyOfValue(newState, childKey, newValueType)\n this._checkUpdates(childScope, oldChildVal, newChildVal)\n }\n }\n\n private _getOrCreateScopeForPath(path: (string | number)[]): Scope {\n let curScope = this._rootScope\n for (const pathEl of path) {\n curScope = curScope.getOrCreateChild(pathEl)\n }\n return curScope\n }\n\n /**\n * Adds a listener that will be called whenever the value at the given pointer changes.\n * @param pointer - The pointer to listen to\n * @param cb - The callback to call when the value changes\n * @returns A function that can be called to unsubscribe from the listener\n *\n * **NOTE** Unlike {@link prism}s, `onChangeByPointer` and `onChange()` are traditional event listeners. They don't\n * provide any of the benefits of prisms. They don't compose, they can't be coordinated via a Ticker, their derivations\n * aren't cached, etc. You're almost always better off using a prism (which will internally use `onChangeByPointer`).\n *\n * ```ts\n * const a = atom({foo: 1})\n * const unsubscribe = a.onChangeByPointer(a.pointer.foo, (v) => {\n * console.log('foo changed to', v)\n * })\n * a.setByPointer(a.pointer.foo, 2) // logs 'foo changed to 2'\n * a.set({foo: 3}) // logs 'foo changed to 3'\n * unsubscribe()\n * ```\n */\n onChangeByPointer = <S>(\n pointerOrFn: Pointer<S> | ((p: Pointer<State>) => Pointer<S>),\n cb: (v: S) => void,\n ): (() => void) => {\n const pointer = isPointer(pointerOrFn)\n ? pointerOrFn\n : (pointerOrFn as $IntentionalAny)(this.pointer)\n const {path} = getPointerParts(pointer)\n const scope = this._getOrCreateScopeForPath(path)\n scope.identityChangeListeners.add(cb as $IntentionalAny)\n const unsubscribe = () => {\n scope.identityChangeListeners.delete(cb as $IntentionalAny)\n }\n return unsubscribe\n }\n\n /**\n * Adds a listener that will be called whenever the state of the atom changes.\n * @param cb - The callback to call when the value changes\n * @returns A function that can be called to unsubscribe from the listener\n *\n * **NOTE** Unlike {@link prism}s, `onChangeByPointer` and `onChange()` are traditional event listeners. They don't\n * provide any of the benefits of prisms. They don't compose, they can't be coordinated via a Ticker, their derivations\n * aren't cached, etc. You're almost always better off using a prism (which will internally use `onChangeByPointer`).\n *\n * ```ts\n * const a = atom({foo: 1})\n * const unsubscribe = a.onChange((v) => {\n * console.log('a changed to', v)\n * })\n * a.set({foo: 3}) // logs 'a changed to {foo: 3}'\n * unsubscribe()\n * ```\n */\n onChange(cb: (v: State) => void): () => void {\n return this.onChangeByPointer(this.pointer, cb)\n }\n\n /**\n * Returns a new prism of the value at the provided path.\n *\n * @param pointer - The path to create the prism at.\n *\n * ```ts\n * const pr = atom({ a: { b: 1 } }).pointerToPrism(atom.pointer.a.b)\n * pr.getValue() // 1\n * ```\n */\n pointerToPrism<P>(pointer: Pointer<P>): Prism<P> {\n const {path} = getPointerParts(pointer)\n const subscribe = (listener: (val: unknown) => void) =>\n this.onChangeByPointer(pointer, listener)\n\n const getValue = () => this._getIn(path)\n\n return prism(() => {\n return prism.source(subscribe, getValue)\n }) as Prism<P>\n }\n}\n", "import type {Prism} from './prism/Interface'\nimport type {Pointer, PointerType} from './pointer'\nimport {getPointerMeta} from './pointer'\nimport type {$IntentionalAny} from './types'\n\nconst identifyPrismWeakMap = new WeakMap<{}, Prism<unknown>>()\n\n/**\n * Interface for objects that can provide a prism at a certain path.\n */\nexport interface PointerToPrismProvider {\n /**\n * @internal\n * Future: We could consider using a `Symbol.for(\"dataverse/PointerToPrismProvider\")` as a key here, similar to\n * how {@link Iterable} works for `of`.\n */\n readonly $$isPointerToPrismProvider: true\n /**\n * Returns a prism of the value at the provided pointer.\n */\n pointerToPrism<P>(pointer: Pointer<P>): Prism<P>\n}\n\nexport function isPointerToPrismProvider(\n val: unknown,\n): val is PointerToPrismProvider {\n return (\n typeof val === 'object' &&\n val !== null &&\n (val as $IntentionalAny)['$$isPointerToPrismProvider'] === true\n )\n}\n\n/**\n * Returns a prism of the value at the provided pointer. Prisms are\n * cached per pointer.\n *\n * @param pointer - The pointer to return the prism at.\n */\n\nexport const pointerToPrism = <P extends PointerType<$IntentionalAny>>(\n pointer: P,\n): Prism<P extends PointerType<infer T> ? T : void> => {\n const meta = getPointerMeta(pointer)\n\n let prismInstance = identifyPrismWeakMap.get(meta)\n if (!prismInstance) {\n const root = meta.root\n if (!isPointerToPrismProvider(root)) {\n throw new Error(\n `Cannot run pointerToPrism() on a pointer whose root is not an PointerToPrismProvider`,\n )\n }\n prismInstance = root.pointerToPrism(pointer as $IntentionalAny)\n identifyPrismWeakMap.set(meta, prismInstance)\n }\n return prismInstance as $IntentionalAny\n}\n", "type ICallback = (t: number) => void\n\n/**\n * The number of ticks that can pass without any scheduled callbacks before the Ticker goes dormant. This is to prevent\n * the Ticker from staying active forever, even if there are no scheduled callbacks.\n *\n * Perhaps counting ticks vs. time is not the best way to do this. But it's a start.\n */\nexport const EMPTY_TICKS_BEFORE_GOING_DORMANT = 60 /*fps*/ * 3 /*seconds*/ // on a 60fps screen, 3 seconds should pass before the ticker goes dormant\n\n/**\n * The Ticker class helps schedule callbacks. Scheduled callbacks are executed per tick. Ticks can be triggered by an\n * external scheduling strategy, e.g. a raf.\n */\nexport default class Ticker {\n private _scheduledForThisOrNextTick: Set<ICallback>\n private _scheduledForNextTick: Set<ICallback>\n private _timeAtCurrentTick: number\n private _ticking: boolean = false\n\n /**\n * Whether the Ticker is dormant\n */\n private _dormant: boolean = true\n\n private _numberOfDormantTicks = 0\n\n /**\n * Whether the Ticker is dormant\n */\n get dormant(): boolean {\n return this._dormant\n }\n /**\n * Counts up for every tick executed.\n * Internally, this is used to measure ticks per second.\n *\n * This is \"public\" to TypeScript, because it's a tool for performance measurements.\n * Consider this as experimental, and do not rely on it always being here in future releases.\n */\n public __ticks = 0\n\n constructor(\n private _conf?: {\n /**\n * This is called when the Ticker goes dormant.\n */\n onDormant?: () => void\n /**\n * This is called when the Ticker goes active.\n */\n onActive?: () => void\n },\n ) {\n this._scheduledForThisOrNextTick = new Set()\n this._scheduledForNextTick = new Set()\n this._timeAtCurrentTick = 0\n }\n\n /**\n * Registers for fn to be called either on this tick or the next tick.\n *\n * If `onThisOrNextTick()` is called while `Ticker.tick()` is running, the\n * side effect _will_ be called within the running tick. If you don't want this\n * behavior, you can use `onNextTick()`.\n *\n * Note that `fn` will be added to a `Set()`. Which means, if you call `onThisOrNextTick(fn)`\n * with the same fn twice in a single tick, it'll only run once.\n *\n * @param fn - The function to be registered.\n *\n * @see offThisOrNextTick\n */\n onThisOrNextTick(fn: ICallback) {\n this._scheduledForThisOrNextTick.add(fn)\n if (this._dormant) {\n this._goActive()\n }\n }\n\n /**\n * Registers a side effect to be called on the next tick.\n *\n * @param fn - The function to be registered.\n *\n * @see onThisOrNextTick\n * @see offNextTick\n */\n onNextTick(fn: ICallback) {\n this._scheduledForNextTick.add(fn)\n if (this._dormant) {\n this._goActive()\n }\n }\n\n /**\n * De-registers a fn to be called either on this tick or the next tick.\n *\n * @param fn - The function to be de-registered.\n *\n * @see onThisOrNextTick\n */\n offThisOrNextTick(fn: ICallback) {\n this._scheduledForThisOrNextTick.delete(fn)\n }\n\n /**\n * De-registers a fn to be called on the next tick.\n *\n * @param fn - The function to be de-registered.\n *\n * @see onNextTick\n */\n offNextTick(fn: ICallback) {\n this._scheduledForNextTick.delete(fn)\n }\n\n /**\n * The time at the start of the current tick if there is a tick in progress, otherwise defaults to\n * `performance.now()`.\n */\n get time() {\n if (this._ticking) {\n return this._timeAtCurrentTick\n } else return performance.now()\n }\n\n private _goActive() {\n if (!this._dormant) return\n this._dormant = false\n this._conf?.onActive?.()\n }\n\n private _goDormant() {\n if (this._dormant) return\n this._dormant = true\n this._numberOfDormantTicks = 0\n this._conf?.onDormant?.()\n }\n\n /**\n * Triggers a tick which starts executing the callbacks scheduled for this tick.\n *\n * @param t - The time at the tick.\n *\n * @see onThisOrNextTick\n * @see onNextTick\n */\n tick(t: number = performance.now()) {\n if (process.env.NODE_ENV === 'development') {\n if (!(this instanceof Ticker)) {\n throw new Error(\n 'ticker.tick must be called while bound to the ticker. As in, \"ticker.tick(time)\" or \"requestAnimationFrame((t) => ticker.tick(t))\" for performance.',\n )\n }\n }\n\n this.__ticks++\n\n if (!this._dormant) {\n if (\n this._scheduledForNextTick.size === 0 &&\n this._scheduledForThisOrNextTick.size === 0\n ) {\n this._numberOfDormantTicks++\n if (this._numberOfDormantTicks >= EMPTY_TICKS_BEFORE_GOING_DORMANT) {\n this._goDormant()\n return\n }\n }\n }\n\n this._ticking = true\n this._timeAtCurrentTick = t\n for (const v of this._scheduledForNextTick) {\n this._scheduledForThisOrNextTick.add(v)\n }\n\n this._scheduledForNextTick.clear()\n this._tick(0)\n this._ticking = false\n }\n\n private _tick(iterationNumber: number): void {\n const time = this.time\n\n if (iterationNumber > 10) {\n console.warn('_tick() recursing for 10 times')\n }\n\n if (iterationNumber > 100) {\n throw new Error(`Maximum recursion limit for _tick()`)\n }\n\n const oldSet = this._scheduledForThisOrNextTick\n this._scheduledForThisOrNextTick = new Set()\n for (const fn of oldSet) {\n fn(time)\n }\n\n if (this._scheduledForThisOrNextTick.size > 0) {\n return this._tick(iterationNumber + 1)\n }\n }\n}\n", "import ListCache from './_ListCache.js';\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nexport default stackClear;\n", "/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\nexport default stackDelete;\n", "/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nexport default stackGet;\n", "/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nexport default stackHas;\n", "import ListCache from './_ListCache.js';\nimport Map from './_Map.js';\nimport MapCache from './_MapCache.js';\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nexport default stackSet;\n", "import ListCache from './_ListCache.js';\nimport stackClear from './_stackClear.js';\nimport stackDelete from './_stackDelete.js';\nimport stackGet from './_stackGet.js';\nimport stackHas from './_stackHas.js';\nimport stackSet from './_stackSet.js';\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nexport default Stack;\n", "/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\nexport default setCacheAdd;\n", "/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nexport default setCacheHas;\n", "import MapCache from './_MapCache.js';\nimport setCacheAdd from './_setCacheAdd.js';\nimport setCacheHas from './_setCacheHas.js';\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nexport default SetCache;\n", "/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\nexport default arraySome;\n", "/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nexport default cacheHas;\n", "import SetCache from './_SetCache.js';\nimport arraySome from './_arraySome.js';\nimport cacheHas from './_cacheHas.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Check that cyclic values are equal.\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\nexport default equalArrays;\n", "import root from './_root.js';\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nexport default Uint8Array;\n", "/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\nexport default mapToArray;\n", "/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\nexport default setToArray;\n", "import Symbol from './_Symbol.js';\nimport Uint8Array from './_Uint8Array.js';\nimport eq from './eq.js';\nimport equalArrays from './_equalArrays.js';\nimport mapToArray from './_mapToArray.js';\nimport setToArray from './_setToArray.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\nexport default equalByTag;\n", "/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nexport default arrayPush;\n", "import arrayPush from './_arrayPush.js';\nimport isArray from './isArray.js';\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nexport default baseGetAllKeys;\n", "/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nexport default arrayFilter;\n", "/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\nexport default stubArray;\n", "import arrayFilter from './_arrayFilter.js';\nimport stubArray from './stubArray.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\nexport default getSymbols;\n", "/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nexport default baseTimes;\n", "import baseGetTag from './_baseGetTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nexport default baseIsArguments;\n", "import baseIsArguments from './_baseIsArguments.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nexport default isArguments;\n", "/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nexport default stubFalse;\n", "import root from './_root.js';\nimport stubFalse from './stubFalse.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nexport default isBuffer;\n", "/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nexport default isIndex;\n", "/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nexport default isLength;\n", "import baseGetTag from './_baseGetTag.js';\nimport isLength from './isLength.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nexport default baseIsTypedArray;\n", "/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nexport default baseUnary;\n", "import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nexport default nodeUtil;\n", "import baseIsTypedArray from './_baseIsTypedArray.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nexport default isTypedArray;\n", "import baseTimes from './_baseTimes.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isIndex from './_isIndex.js';\nimport isTypedArray from './isTypedArray.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nexport default arrayLikeKeys;\n", "/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nexport default isPrototype;\n", "import overArg from './_overArg.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nexport default nativeKeys;\n", "import isPrototype from './_isPrototype.js';\nimport nativeKeys from './_nativeKeys.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nexport default baseKeys;\n", "import isFunction from './isFunction.js';\nimport isLength from './isLength.js';\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nexport default isArrayLike;\n", "import arrayLikeKeys from './_arrayLikeKeys.js';\nimport baseKeys from './_baseKeys.js';\nimport isArrayLike from './isArrayLike.js';\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nexport default keys;\n", "import baseGetAllKeys from './_baseGetAllKeys.js';\nimport getSymbols from './_getSymbols.js';\nimport keys from './keys.js';\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\nexport default getAllKeys;\n", "import getAllKeys from './_getAllKeys.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Check that cyclic values are equal.\n var objStacked = stack.get(object);\n var othStacked = stack.get(other);\n if (objStacked && othStacked) {\n return objStacked == other && othStacked == object;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\n\nexport default equalObjects;\n", "import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nexport default DataView;\n", "import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nexport default Promise;\n", "import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nexport default Set;\n", "import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nexport default WeakMap;\n", "import DataView from './_DataView.js';\nimport Map from './_Map.js';\nimport Promise from './_Promise.js';\nimport Set from './_Set.js';\nimport WeakMap from './_WeakMap.js';\nimport baseGetTag from './_baseGetTag.js';\nimport toSource from './_toSource.js';\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nexport default getTag;\n", "import Stack from './_Stack.js';\nimport equalArrays from './_equalArrays.js';\nimport equalByTag from './_equalByTag.js';\nimport equalObjects from './_equalObjects.js';\nimport getTag from './_getTag.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isTypedArray from './isTypedArray.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\nexport default baseIsEqualDeep;\n", "import baseIsEqualDeep from './_baseIsEqualDeep.js';\nimport isObjectLike from './isObjectLike.js';\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nexport default baseIsEqual;\n", "import baseIsEqual from './_baseIsEqual.js';\n\n/**\n * This method is like `_.isEqual` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with up to\n * six arguments: (objValue, othValue [, index|key, object, other, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, othValue) {\n * if (isGreeting(objValue) && isGreeting(othValue)) {\n * return true;\n * }\n * }\n *\n * var array = ['hello', 'goodbye'];\n * var other = ['hi', 'goodbye'];\n *\n * _.isEqualWith(array, other, customizer);\n * // => true\n */\nfunction isEqualWith(value, other, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n var result = customizer ? customizer(value, other) : undefined;\n return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;\n}\n\nexport default isEqualWith;\n", "import baseIsEqual from './_baseIsEqual.js';\n\n/**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\nfunction isEqual(value, other) {\n return baseIsEqual(value, other);\n}\n\nexport default isEqual;\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA,kBAAuC;AACvC,mBAAyB;;;ACezB,IAAI,UAAU,MAAM;AAEpB,IAAO,kBAAQ;;;ACxBf,IAAI,aAAa,OAAO,UAAU,YAAY,UAAU,OAAO,WAAW,UAAU;AAEpF,IAAO,qBAAQ;;;ACAf,IAAI,WAAW,OAAO,QAAQ,YAAY,QAAQ,KAAK,WAAW,UAAU;AAG5E,IAAI,OAAO,sBAAc,YAAY,SAAS;AAE9C,IAAO,eAAQ;;;ACLf,IAAI,UAAS,aAAK;AAElB,IAAO,iBAAQ;;;ACFf,IAAI,cAAc,OAAO;AAGzB,IAAI,iBAAiB,Y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,OAAO,UAAU,WAAW,GAAG;AACjC,aAAO,aAAa,CAAC;AAAA;AAAA;AAAA;",
6
6
  "names": []
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.18.11"
8
+ "packageVersion": "7.36.4"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreamerbird/theatric",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "license": "Apache-2.0",
5
5
  "author": {
6
6
  "name": "Andrew Prifer",
@@ -17,18 +17,7 @@
17
17
  "files": [
18
18
  "dist/**/*"
19
19
  ],
20
- "scripts": {
21
- "prepack": "node ../../devEnv/ensurePublishing.js",
22
- "typecheck": "yarn run build",
23
- "build": "run-s build:ts build:js build:api-json",
24
- "build:ts": "tsc --build ./tsconfig.json",
25
- "build:js": "tsx ./devEnv/build.ts",
26
- "build:api-json": "api-extractor run --local --config devEnv/api-extractor.json",
27
- "prepublish": "node ../../devEnv/ensurePublishing.js",
28
- "clean": "rm -rf ./dist && rm -f tsconfig.tsbuildinfo"
29
- },
30
20
  "devDependencies": {
31
- "@dreamerbird/dataverse": "1.0.0",
32
21
  "@microsoft/api-extractor": "^7.18.11",
33
22
  "@types/jest": "^26.0.23",
34
23
  "@types/node": "^15.6.2",
@@ -37,15 +26,24 @@
37
26
  "lodash-es": "^4.17.21",
38
27
  "npm-run-all": "^4.1.5",
39
28
  "tsx": "4.7.0",
40
- "typescript": "5.6.3"
29
+ "typescript": "5.6.3",
30
+ "@dreamerbird/dataverse": "1.0.1"
41
31
  },
42
32
  "dependencies": {
43
- "@dreamerbird/core": "1.0.0",
44
- "@dreamerbird/react": "1.0.0",
45
- "@dreamerbird/studio": "1.0.0",
46
- "oauth4webapi": "^2.4.0"
33
+ "oauth4webapi": "^2.4.0",
34
+ "@dreamerbird/core": "1.0.1",
35
+ "@dreamerbird/react": "1.0.1",
36
+ "@dreamerbird/studio": "1.0.1"
47
37
  },
48
38
  "peerDependencies": {
49
39
  "react": "*"
40
+ },
41
+ "scripts": {
42
+ "typecheck": "pnpm run build",
43
+ "build": "run-s build:ts build:js build:api-json",
44
+ "build:ts": "tsc --build ./tsconfig.json",
45
+ "build:js": "tsx ./devEnv/build.ts",
46
+ "build:api-json": "api-extractor run --local --config devEnv/api-extractor.json",
47
+ "clean": "rm -rf ./dist && rm -f tsconfig.tsbuildinfo"
50
48
  }
51
49
  }