@inditextech/weave-sdk 2.8.1 → 2.9.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/sdk.js CHANGED
@@ -2,6 +2,7 @@ import Konva from "konva";
2
2
  import pino from "pino";
3
3
  import { WEAVE_AWARENESS_LAYER_ID, WEAVE_EXPORT_BACKGROUND_COLOR, WEAVE_EXPORT_FORMATS, WEAVE_INSTANCE_STATUS, WEAVE_KONVA_BACKEND, WEAVE_NODE_CUSTOM_EVENTS, WEAVE_NODE_LAYER_ID, WEAVE_NODE_POSITION, WEAVE_STORE_CONNECTION_STATUS, WEAVE_UTILITY_LAYER_ID } from "@inditextech/weave-types";
4
4
  import { getYjsDoc, getYjsValue, observeDeep, syncedStore } from "@syncedstore/core";
5
+ import * as Y$1 from "yjs";
5
6
  import * as Y from "yjs";
6
7
  import React from "react";
7
8
  import ReactReconciler from "react-reconciler";
@@ -1836,7 +1837,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
1836
1837
  * // => true
1837
1838
  */
1838
1839
  function lodash(value) {
1839
- if (isObjectLike$7(value) && !isArray$3(value) && !(value instanceof LazyWrapper)) {
1840
+ if (isObjectLike$7(value) && !isArray$4(value) && !(value instanceof LazyWrapper)) {
1840
1841
  if (value instanceof LodashWrapper) return value;
1841
1842
  if (hasOwnProperty$9.call(value, "__wrapped__")) return wrapperClone(value);
1842
1843
  }
@@ -1853,7 +1854,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
1853
1854
  var baseCreate$2 = function() {
1854
1855
  function object() {}
1855
1856
  return function(proto) {
1856
- if (!isObject$11(proto)) return {};
1857
+ if (!isObject$12(proto)) return {};
1857
1858
  if (objectCreate$1) return objectCreate$1(proto);
1858
1859
  object.prototype = proto;
1859
1860
  var result$1 = new object();
@@ -1963,7 +1964,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
1963
1964
  * @returns {*} Returns the unwrapped value.
1964
1965
  */
1965
1966
  function lazyValue() {
1966
- var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray$3(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end, length = end - start, index = isRight ? end : start - 1, iteratees = this.__iteratees__, iterLength = iteratees.length, resIndex = 0, takeCount = nativeMin$1(length, this.__takeCount__);
1967
+ var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray$4(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end, length = end - start, index = isRight ? end : start - 1, iteratees = this.__iteratees__, iterLength = iteratees.length, resIndex = 0, takeCount = nativeMin$1(length, this.__takeCount__);
1967
1968
  if (!isArr || !isRight && arrLength == length && takeCount == length) return baseWrapperValue(array, this.__actions__);
1968
1969
  var result$1 = [];
1969
1970
  outer: while (length-- && resIndex < takeCount) {
@@ -2394,7 +2395,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
2394
2395
  * @returns {Array} Returns the array of property names.
2395
2396
  */
2396
2397
  function arrayLikeKeys$2(value, inherited) {
2397
- var isArr = isArray$3(value), isArg = !isArr && isArguments$3(value), isBuff = !isArr && !isArg && isBuffer$3(value), isType = !isArr && !isArg && !isBuff && isTypedArray$3(value), skipIndexes = isArr || isArg || isBuff || isType, result$1 = skipIndexes ? baseTimes$2(value.length, String$1) : [], length = result$1.length;
2398
+ var isArr = isArray$4(value), isArg = !isArr && isArguments$3(value), isBuff = !isArr && !isArg && isBuffer$3(value), isType = !isArr && !isArg && !isBuff && isTypedArray$3(value), skipIndexes = isArr || isArg || isBuff || isType, result$1 = skipIndexes ? baseTimes$2(value.length, String$1) : [], length = result$1.length;
2398
2399
  for (var key in value) if ((inherited || hasOwnProperty$9.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex$3(key, length)))) result$1.push(key);
2399
2400
  return result$1;
2400
2401
  }
@@ -2577,8 +2578,8 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
2577
2578
  var result$1, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG;
2578
2579
  if (customizer) result$1 = object ? customizer(value, key, object, stack) : customizer(value);
2579
2580
  if (result$1 !== undefined$1) return result$1;
2580
- if (!isObject$11(value)) return value;
2581
- var isArr = isArray$3(value);
2581
+ if (!isObject$12(value)) return value;
2582
+ var isArr = isArray$4(value);
2582
2583
  if (isArr) {
2583
2584
  result$1 = initCloneArray(value);
2584
2585
  if (!isDeep) return copyArray$2(value, result$1);
@@ -2892,7 +2893,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
2892
2893
  */
2893
2894
  function baseGetAllKeys(object, keysFunc, symbolsFunc) {
2894
2895
  var result$1 = keysFunc(object);
2895
- return isArray$3(object) ? result$1 : arrayPush(result$1, symbolsFunc(object));
2896
+ return isArray$4(object) ? result$1 : arrayPush(result$1, symbolsFunc(object));
2896
2897
  }
2897
2898
  /**
2898
2899
  * The base implementation of `getTag` without fallbacks for buggy environments.
@@ -3083,7 +3084,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
3083
3084
  * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
3084
3085
  */
3085
3086
  function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
3086
- var objIsArr = isArray$3(object), othIsArr = isArray$3(other), objTag = objIsArr ? arrayTag$1 : getTag(object), othTag = othIsArr ? arrayTag$1 : getTag(other);
3087
+ var objIsArr = isArray$4(object), othIsArr = isArray$4(other), objTag = objIsArr ? arrayTag$1 : getTag(object), othTag = othIsArr ? arrayTag$1 : getTag(other);
3087
3088
  objTag = objTag == argsTag$2 ? objectTag$2 : objTag;
3088
3089
  othTag = othTag == argsTag$2 ? objectTag$2 : othTag;
3089
3090
  var objIsObj = objTag == objectTag$2, othIsObj = othTag == objectTag$2, isSameTag = objTag == othTag;
@@ -3158,7 +3159,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
3158
3159
  * else `false`.
3159
3160
  */
3160
3161
  function baseIsNative$2(value) {
3161
- if (!isObject$11(value) || isMasked$2(value)) return false;
3162
+ if (!isObject$12(value) || isMasked$2(value)) return false;
3162
3163
  var pattern = isFunction$4(value) ? reIsNative$1 : reIsHostCtor$1;
3163
3164
  return pattern.test(toSource$2(value));
3164
3165
  }
@@ -3202,7 +3203,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
3202
3203
  function baseIteratee(value) {
3203
3204
  if (typeof value == "function") return value;
3204
3205
  if (value == null) return identity$3;
3205
- if (typeof value == "object") return isArray$3(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
3206
+ if (typeof value == "object") return isArray$4(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
3206
3207
  return property(value);
3207
3208
  }
3208
3209
  /**
@@ -3226,7 +3227,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
3226
3227
  * @returns {Array} Returns the array of property names.
3227
3228
  */
3228
3229
  function baseKeysIn$2(object) {
3229
- if (!isObject$11(object)) return nativeKeysIn$2(object);
3230
+ if (!isObject$12(object)) return nativeKeysIn$2(object);
3230
3231
  var isProto = isPrototype$3(object), result$1 = [];
3231
3232
  for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty$9.call(object, key)))) result$1.push(key);
3232
3233
  return result$1;
@@ -3302,7 +3303,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
3302
3303
  if (object === source) return;
3303
3304
  baseFor$2(source, function(srcValue, key) {
3304
3305
  stack || (stack = new Stack$2());
3305
- if (isObject$11(srcValue)) baseMergeDeep$2(object, source, key, srcIndex, baseMerge$2, customizer, stack);
3306
+ if (isObject$12(srcValue)) baseMergeDeep$2(object, source, key, srcIndex, baseMerge$2, customizer, stack);
3306
3307
  else {
3307
3308
  var newValue = customizer ? customizer(safeGet$3(object, key), srcValue, key + "", object, source, stack) : undefined$1;
3308
3309
  if (newValue === undefined$1) newValue = srcValue;
@@ -3334,9 +3335,9 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
3334
3335
  var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : undefined$1;
3335
3336
  var isCommon = newValue === undefined$1;
3336
3337
  if (isCommon) {
3337
- var isArr = isArray$3(srcValue), isBuff = !isArr && isBuffer$3(srcValue), isTyped = !isArr && !isBuff && isTypedArray$3(srcValue);
3338
+ var isArr = isArray$4(srcValue), isBuff = !isArr && isBuffer$3(srcValue), isTyped = !isArr && !isBuff && isTypedArray$3(srcValue);
3338
3339
  newValue = srcValue;
3339
- if (isArr || isBuff || isTyped) if (isArray$3(objValue)) newValue = objValue;
3340
+ if (isArr || isBuff || isTyped) if (isArray$4(objValue)) newValue = objValue;
3340
3341
  else if (isArrayLikeObject$2(objValue)) newValue = copyArray$2(objValue);
3341
3342
  else if (isBuff) {
3342
3343
  isCommon = false;
@@ -3348,7 +3349,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
3348
3349
  else if (isPlainObject$2(srcValue) || isArguments$3(srcValue)) {
3349
3350
  newValue = objValue;
3350
3351
  if (isArguments$3(objValue)) newValue = toPlainObject$2(objValue);
3351
- else if (!isObject$11(objValue) || isFunction$4(objValue)) newValue = initCloneObject$2(srcValue);
3352
+ else if (!isObject$12(objValue) || isFunction$4(objValue)) newValue = initCloneObject$2(srcValue);
3352
3353
  } else isCommon = false;
3353
3354
  }
3354
3355
  if (isCommon) {
@@ -3383,7 +3384,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
3383
3384
  */
3384
3385
  function baseOrderBy(collection, iteratees, orders) {
3385
3386
  if (iteratees.length) iteratees = arrayMap(iteratees, function(iteratee$1) {
3386
- if (isArray$3(iteratee$1)) return function(value) {
3387
+ if (isArray$4(iteratee$1)) return function(value) {
3387
3388
  return baseGet(value, iteratee$1.length === 1 ? iteratee$1[0] : iteratee$1);
3388
3389
  };
3389
3390
  return iteratee$1;
@@ -3586,7 +3587,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
3586
3587
  * @returns {Object} Returns `object`.
3587
3588
  */
3588
3589
  function baseSet(object, path, value, customizer) {
3589
- if (!isObject$11(object)) return object;
3590
+ if (!isObject$12(object)) return object;
3590
3591
  path = castPath(path, object);
3591
3592
  var index = -1, length = path.length, lastIndex = length - 1, nested = object;
3592
3593
  while (nested != null && ++index < length) {
@@ -3595,7 +3596,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
3595
3596
  if (index != lastIndex) {
3596
3597
  var objValue = nested[key];
3597
3598
  newValue = customizer ? customizer(objValue, key, nested) : undefined$1;
3598
- if (newValue === undefined$1) newValue = isObject$11(objValue) ? objValue : isIndex$3(path[index + 1]) ? [] : {};
3599
+ if (newValue === undefined$1) newValue = isObject$12(objValue) ? objValue : isIndex$3(path[index + 1]) ? [] : {};
3599
3600
  }
3600
3601
  assignValue$2(nested, key, newValue);
3601
3602
  nested = nested[key];
@@ -3775,7 +3776,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
3775
3776
  */
3776
3777
  function baseToString(value) {
3777
3778
  if (typeof value == "string") return value;
3778
- if (isArray$3(value)) return arrayMap(value, baseToString) + "";
3779
+ if (isArray$4(value)) return arrayMap(value, baseToString) + "";
3779
3780
  if (isSymbol$2(value)) return symbolToString ? symbolToString.call(value) : "";
3780
3781
  var result$1 = value + "";
3781
3782
  return result$1 == "0" && 1 / value == -INFINITY ? "-0" : result$1;
@@ -3941,7 +3942,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
3941
3942
  * @returns {Array} Returns the cast property path array.
3942
3943
  */
3943
3944
  function castPath(value, object) {
3944
- if (isArray$3(value)) return value;
3945
+ if (isArray$4(value)) return value;
3945
3946
  return isKey(value, object) ? [value] : stringToPath(toString(value));
3946
3947
  }
3947
3948
  /**
@@ -4198,7 +4199,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
4198
4199
  */
4199
4200
  function createAggregator(setter, initializer) {
4200
4201
  return function(collection, iteratee$1) {
4201
- var func = isArray$3(collection) ? arrayAggregator : baseAggregator, accumulator = initializer ? initializer() : {};
4202
+ var func = isArray$4(collection) ? arrayAggregator : baseAggregator, accumulator = initializer ? initializer() : {};
4202
4203
  return func(collection, setter, getIteratee(iteratee$1, 2), accumulator);
4203
4204
  };
4204
4205
  }
@@ -4327,7 +4328,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
4327
4328
  case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
4328
4329
  }
4329
4330
  var thisBinding = baseCreate$2(Ctor.prototype), result$1 = Ctor.apply(thisBinding, args);
4330
- return isObject$11(result$1) ? result$1 : thisBinding;
4331
+ return isObject$12(result$1) ? result$1 : thisBinding;
4331
4332
  };
4332
4333
  }
4333
4334
  /**
@@ -4398,7 +4399,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
4398
4399
  }
4399
4400
  return function() {
4400
4401
  var args = arguments, value = args[0];
4401
- if (wrapper && args.length == 1 && isArray$3(value)) return wrapper.plant(value).value();
4402
+ if (wrapper && args.length == 1 && isArray$4(value)) return wrapper.plant(value).value();
4402
4403
  var index$1 = 0, result$1 = length ? funcs[index$1].apply(this, args) : value;
4403
4404
  while (++index$1 < length) result$1 = funcs[index$1].call(this, result$1);
4404
4405
  return result$1;
@@ -4761,7 +4762,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
4761
4762
  * @returns {*} Returns the value to assign.
4762
4763
  */
4763
4764
  function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
4764
- if (isObject$11(objValue) && isObject$11(srcValue)) {
4765
+ if (isObject$12(objValue) && isObject$12(srcValue)) {
4765
4766
  stack.set(srcValue, objValue);
4766
4767
  baseMerge$2(objValue, srcValue, undefined$1, customDefaultsMerge, stack);
4767
4768
  stack["delete"](srcValue);
@@ -5176,7 +5177,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
5176
5177
  }
5177
5178
  if (result$1 || ++index != length) return result$1;
5178
5179
  length = object == null ? 0 : object.length;
5179
- return !!length && isLength$3(length) && isIndex$3(key, length) && (isArray$3(object) || isArguments$3(object));
5180
+ return !!length && isLength$3(length) && isIndex$3(key, length) && (isArray$4(object) || isArguments$3(object));
5180
5181
  }
5181
5182
  /**
5182
5183
  * Initializes an array clone.
@@ -5263,7 +5264,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
5263
5264
  * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
5264
5265
  */
5265
5266
  function isFlattenable(value) {
5266
- return isArray$3(value) || isArguments$3(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
5267
+ return isArray$4(value) || isArguments$3(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
5267
5268
  }
5268
5269
  /**
5269
5270
  * Checks if `value` is a valid array-like index.
@@ -5289,7 +5290,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
5289
5290
  * else `false`.
5290
5291
  */
5291
5292
  function isIterateeCall$2(value, index, object) {
5292
- if (!isObject$11(object)) return false;
5293
+ if (!isObject$12(object)) return false;
5293
5294
  var type = typeof index;
5294
5295
  if (type == "number" ? isArrayLike$4(object) && isIndex$3(index, object.length) : type == "string" && index in object) return eq$5(object[index], value);
5295
5296
  return false;
@@ -5303,7 +5304,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
5303
5304
  * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
5304
5305
  */
5305
5306
  function isKey(value, object) {
5306
- if (isArray$3(value)) return false;
5307
+ if (isArray$4(value)) return false;
5307
5308
  var type = typeof value;
5308
5309
  if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol$2(value)) return true;
5309
5310
  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object$1(object);
@@ -5372,7 +5373,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
5372
5373
  * equality comparisons, else `false`.
5373
5374
  */
5374
5375
  function isStrictComparable(value) {
5375
- return value === value && !isObject$11(value);
5376
+ return value === value && !isObject$12(value);
5376
5377
  }
5377
5378
  /**
5378
5379
  * A specialized version of `matchesProperty` for source values suitable
@@ -5779,7 +5780,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
5779
5780
  if (!length) return [];
5780
5781
  var args = Array$1(length - 1), array = arguments[0], index = length;
5781
5782
  while (index--) args[index - 1] = arguments[index];
5782
- return arrayPush(isArray$3(array) ? copyArray$2(array) : [array], baseFlatten(args, 1));
5783
+ return arrayPush(isArray$4(array) ? copyArray$2(array) : [array], baseFlatten(args, 1));
5783
5784
  }
5784
5785
  /**
5785
5786
  * Creates an array of `array` values not included in the other given arrays
@@ -7784,7 +7785,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
7784
7785
  * // => false
7785
7786
  */
7786
7787
  function every(collection, predicate, guard) {
7787
- var func = isArray$3(collection) ? arrayEvery : baseEvery;
7788
+ var func = isArray$4(collection) ? arrayEvery : baseEvery;
7788
7789
  if (guard && isIterateeCall$2(collection, predicate, guard)) predicate = undefined$1;
7789
7790
  return func(collection, getIteratee(predicate, 3));
7790
7791
  }
@@ -7830,7 +7831,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
7830
7831
  * // => objects for ['fred', 'barney']
7831
7832
  */
7832
7833
  function filter(collection, predicate) {
7833
- var func = isArray$3(collection) ? arrayFilter : baseFilter;
7834
+ var func = isArray$4(collection) ? arrayFilter : baseFilter;
7834
7835
  return func(collection, getIteratee(predicate, 3));
7835
7836
  }
7836
7837
  /**
@@ -7993,7 +7994,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
7993
7994
  * // => Logs 'a' then 'b' (iteration order is not guaranteed).
7994
7995
  */
7995
7996
  function forEach(collection, iteratee$1) {
7996
- var func = isArray$3(collection) ? arrayEach : baseEach;
7997
+ var func = isArray$4(collection) ? arrayEach : baseEach;
7997
7998
  return func(collection, getIteratee(iteratee$1, 3));
7998
7999
  }
7999
8000
  /**
@@ -8017,7 +8018,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
8017
8018
  * // => Logs `2` then `1`.
8018
8019
  */
8019
8020
  function forEachRight(collection, iteratee$1) {
8020
- var func = isArray$3(collection) ? arrayEachRight : baseEachRight;
8021
+ var func = isArray$4(collection) ? arrayEachRight : baseEachRight;
8021
8022
  return func(collection, getIteratee(iteratee$1, 3));
8022
8023
  }
8023
8024
  /**
@@ -8188,7 +8189,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
8188
8189
  * // => ['barney', 'fred']
8189
8190
  */
8190
8191
  function map(collection, iteratee$1) {
8191
- var func = isArray$3(collection) ? arrayMap : baseMap;
8192
+ var func = isArray$4(collection) ? arrayMap : baseMap;
8192
8193
  return func(collection, getIteratee(iteratee$1, 3));
8193
8194
  }
8194
8195
  /**
@@ -8222,9 +8223,9 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
8222
8223
  */
8223
8224
  function orderBy(collection, iteratees, orders, guard) {
8224
8225
  if (collection == null) return [];
8225
- if (!isArray$3(iteratees)) iteratees = iteratees == null ? [] : [iteratees];
8226
+ if (!isArray$4(iteratees)) iteratees = iteratees == null ? [] : [iteratees];
8226
8227
  orders = guard ? undefined$1 : orders;
8227
- if (!isArray$3(orders)) orders = orders == null ? [] : [orders];
8228
+ if (!isArray$4(orders)) orders = orders == null ? [] : [orders];
8228
8229
  return baseOrderBy(collection, iteratees, orders);
8229
8230
  }
8230
8231
  /**
@@ -8306,7 +8307,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
8306
8307
  * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
8307
8308
  */
8308
8309
  function reduce(collection, iteratee$1, accumulator) {
8309
- var func = isArray$3(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3;
8310
+ var func = isArray$4(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3;
8310
8311
  return func(collection, getIteratee(iteratee$1, 4), accumulator, initAccum, baseEach);
8311
8312
  }
8312
8313
  /**
@@ -8332,7 +8333,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
8332
8333
  * // => [4, 5, 2, 3, 0, 1]
8333
8334
  */
8334
8335
  function reduceRight(collection, iteratee$1, accumulator) {
8335
- var func = isArray$3(collection) ? arrayReduceRight : baseReduce, initAccum = arguments.length < 3;
8336
+ var func = isArray$4(collection) ? arrayReduceRight : baseReduce, initAccum = arguments.length < 3;
8336
8337
  return func(collection, getIteratee(iteratee$1, 4), accumulator, initAccum, baseEachRight);
8337
8338
  }
8338
8339
  /**
@@ -8370,7 +8371,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
8370
8371
  * // => objects for ['barney']
8371
8372
  */
8372
8373
  function reject(collection, predicate) {
8373
- var func = isArray$3(collection) ? arrayFilter : baseFilter;
8374
+ var func = isArray$4(collection) ? arrayFilter : baseFilter;
8374
8375
  return func(collection, negate(getIteratee(predicate, 3)));
8375
8376
  }
8376
8377
  /**
@@ -8388,7 +8389,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
8388
8389
  * // => 2
8389
8390
  */
8390
8391
  function sample(collection) {
8391
- var func = isArray$3(collection) ? arraySample : baseSample;
8392
+ var func = isArray$4(collection) ? arraySample : baseSample;
8392
8393
  return func(collection);
8393
8394
  }
8394
8395
  /**
@@ -8414,7 +8415,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
8414
8415
  function sampleSize(collection, n, guard) {
8415
8416
  if (guard ? isIterateeCall$2(collection, n, guard) : n === undefined$1) n = 1;
8416
8417
  else n = toInteger(n);
8417
- var func = isArray$3(collection) ? arraySampleSize : baseSampleSize;
8418
+ var func = isArray$4(collection) ? arraySampleSize : baseSampleSize;
8418
8419
  return func(collection, n);
8419
8420
  }
8420
8421
  /**
@@ -8433,7 +8434,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
8433
8434
  * // => [4, 1, 3, 2]
8434
8435
  */
8435
8436
  function shuffle(collection) {
8436
- var func = isArray$3(collection) ? arrayShuffle : baseShuffle;
8437
+ var func = isArray$4(collection) ? arrayShuffle : baseShuffle;
8437
8438
  return func(collection);
8438
8439
  }
8439
8440
  /**
@@ -8501,7 +8502,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
8501
8502
  * // => true
8502
8503
  */
8503
8504
  function some(collection, predicate, guard) {
8504
- var func = isArray$3(collection) ? arraySome : baseSome;
8505
+ var func = isArray$4(collection) ? arraySome : baseSome;
8505
8506
  if (guard && isIterateeCall$2(collection, predicate, guard)) predicate = undefined$1;
8506
8507
  return func(collection, getIteratee(predicate, 3));
8507
8508
  }
@@ -8885,7 +8886,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
8885
8886
  var lastArgs, lastThis, maxWait, result$1, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
8886
8887
  if (typeof func != "function") throw new TypeError$1(FUNC_ERROR_TEXT$2);
8887
8888
  wait = toNumber$2(wait) || 0;
8888
- if (isObject$11(options)) {
8889
+ if (isObject$12(options)) {
8889
8890
  leading = !!options.leading;
8890
8891
  maxing = "maxWait" in options;
8891
8892
  maxWait = maxing ? nativeMax$2(toNumber$2(options.maxWait) || 0, wait) : maxWait;
@@ -9157,7 +9158,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
9157
9158
  * // => [100, 10]
9158
9159
  */
9159
9160
  var overArgs = castRest(function(func, transforms) {
9160
- transforms = transforms.length == 1 && isArray$3(transforms[0]) ? arrayMap(transforms[0], baseUnary$2(getIteratee())) : arrayMap(baseFlatten(transforms, 1), baseUnary$2(getIteratee()));
9161
+ transforms = transforms.length == 1 && isArray$4(transforms[0]) ? arrayMap(transforms[0], baseUnary$2(getIteratee())) : arrayMap(baseFlatten(transforms, 1), baseUnary$2(getIteratee()));
9161
9162
  var funcsLength = transforms.length;
9162
9163
  return baseRest$2(function(args) {
9163
9164
  var index = -1, length = nativeMin$1(args.length, funcsLength);
@@ -9383,7 +9384,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
9383
9384
  function throttle$1(func, wait, options) {
9384
9385
  var leading = true, trailing = true;
9385
9386
  if (typeof func != "function") throw new TypeError$1(FUNC_ERROR_TEXT$2);
9386
- if (isObject$11(options)) {
9387
+ if (isObject$12(options)) {
9387
9388
  leading = "leading" in options ? !!options.leading : leading;
9388
9389
  trailing = "trailing" in options ? !!options.trailing : trailing;
9389
9390
  }
@@ -9472,7 +9473,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
9472
9473
  function castArray() {
9473
9474
  if (!arguments.length) return [];
9474
9475
  var value = arguments[0];
9475
- return isArray$3(value) ? value : [value];
9476
+ return isArray$4(value) ? value : [value];
9476
9477
  }
9477
9478
  /**
9478
9479
  * Creates a shallow clone of `value`.
@@ -9749,7 +9750,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
9749
9750
  * _.isArray(_.noop);
9750
9751
  * // => false
9751
9752
  */
9752
- var isArray$3 = Array$1.isArray;
9753
+ var isArray$4 = Array$1.isArray;
9753
9754
  /**
9754
9755
  * Checks if `value` is classified as an `ArrayBuffer` object.
9755
9756
  *
@@ -9935,7 +9936,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
9935
9936
  */
9936
9937
  function isEmpty(value) {
9937
9938
  if (value == null) return true;
9938
- if (isArrayLike$4(value) && (isArray$3(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer$3(value) || isTypedArray$3(value) || isArguments$3(value))) return !value.length;
9939
+ if (isArrayLike$4(value) && (isArray$4(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer$3(value) || isTypedArray$3(value) || isArguments$3(value))) return !value.length;
9939
9940
  var tag = getTag(value);
9940
9941
  if (tag == mapTag$1 || tag == setTag$1) return !value.size;
9941
9942
  if (isPrototype$3(value)) return !baseKeys(value).length;
@@ -10080,7 +10081,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
10080
10081
  * // => false
10081
10082
  */
10082
10083
  function isFunction$4(value) {
10083
- if (!isObject$11(value)) return false;
10084
+ if (!isObject$12(value)) return false;
10084
10085
  var tag = baseGetTag$6(value);
10085
10086
  return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag$1 || tag == proxyTag$1;
10086
10087
  }
@@ -10167,7 +10168,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
10167
10168
  * _.isObject(null);
10168
10169
  * // => false
10169
10170
  */
10170
- function isObject$11(value) {
10171
+ function isObject$12(value) {
10171
10172
  var type = typeof value;
10172
10173
  return value != null && (type == "object" || type == "function");
10173
10174
  }
@@ -10535,7 +10536,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
10535
10536
  * // => false
10536
10537
  */
10537
10538
  function isString(value) {
10538
- return typeof value == "string" || !isArray$3(value) && isObjectLike$7(value) && baseGetTag$6(value) == stringTag$1;
10539
+ return typeof value == "string" || !isArray$4(value) && isObjectLike$7(value) && baseGetTag$6(value) == stringTag$1;
10539
10540
  }
10540
10541
  /**
10541
10542
  * Checks if `value` is classified as a `Symbol` primitive or object.
@@ -10833,9 +10834,9 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
10833
10834
  function toNumber$2(value) {
10834
10835
  if (typeof value == "number") return value;
10835
10836
  if (isSymbol$2(value)) return NAN$1;
10836
- if (isObject$11(value)) {
10837
+ if (isObject$12(value)) {
10837
10838
  var other = typeof value.valueOf == "function" ? value.valueOf() : value;
10838
- value = isObject$11(other) ? other + "" : other;
10839
+ value = isObject$12(other) ? other + "" : other;
10839
10840
  }
10840
10841
  if (typeof value != "string") return value === 0 ? value : +value;
10841
10842
  value = baseTrim$2(value);
@@ -12065,12 +12066,12 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
12065
12066
  * // => { '1': ['a', 'c'], '2': ['b'] }
12066
12067
  */
12067
12068
  function transform(object, iteratee$1, accumulator) {
12068
- var isArr = isArray$3(object), isArrLike = isArr || isBuffer$3(object) || isTypedArray$3(object);
12069
+ var isArr = isArray$4(object), isArrLike = isArr || isBuffer$3(object) || isTypedArray$3(object);
12069
12070
  iteratee$1 = getIteratee(iteratee$1, 4);
12070
12071
  if (accumulator == null) {
12071
12072
  var Ctor = object && object.constructor;
12072
12073
  if (isArrLike) accumulator = isArr ? new Ctor() : [];
12073
- else if (isObject$11(object)) accumulator = isFunction$4(Ctor) ? baseCreate$2(getPrototype$3(object)) : {};
12074
+ else if (isObject$12(object)) accumulator = isFunction$4(Ctor) ? baseCreate$2(getPrototype$3(object)) : {};
12074
12075
  else accumulator = {};
12075
12076
  }
12076
12077
  (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object$1) {
@@ -13162,7 +13163,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
13162
13163
  */
13163
13164
  function truncate(string, options) {
13164
13165
  var length = DEFAULT_TRUNC_LENGTH, omission = DEFAULT_TRUNC_OMISSION;
13165
- if (isObject$11(options)) {
13166
+ if (isObject$12(options)) {
13166
13167
  var separator = "separator" in options ? options.separator : separator;
13167
13168
  length = "length" in options ? toInteger(options.length) : length;
13168
13169
  omission = "omission" in options ? baseToString(options.omission) : omission;
@@ -13739,13 +13740,13 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
13739
13740
  */
13740
13741
  function mixin(object, source, options) {
13741
13742
  var props = keys(source), methodNames = baseFunctions(source, props);
13742
- if (options == null && !(isObject$11(source) && (methodNames.length || !props.length))) {
13743
+ if (options == null && !(isObject$12(source) && (methodNames.length || !props.length))) {
13743
13744
  options = source;
13744
13745
  source = object;
13745
13746
  object = this;
13746
13747
  methodNames = baseFunctions(source, keys(source));
13747
13748
  }
13748
- var chain$1 = !(isObject$11(options) && "chain" in options) || !!options.chain, isFunc = isFunction$4(object);
13749
+ var chain$1 = !(isObject$12(options) && "chain" in options) || !!options.chain, isFunc = isFunction$4(object);
13749
13750
  arrayEach(methodNames, function(methodName) {
13750
13751
  var func = source[methodName];
13751
13752
  object[methodName] = func;
@@ -14169,7 +14170,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
14169
14170
  * // => ['a', '0', 'b', 'c']
14170
14171
  */
14171
14172
  function toPath(value) {
14172
- if (isArray$3(value)) return arrayMap(value, toKey);
14173
+ if (isArray$4(value)) return arrayMap(value, toKey);
14173
14174
  return isSymbol$2(value) ? [value] : copyArray$2(stringToPath(toString(value)));
14174
14175
  }
14175
14176
  /**
@@ -14709,7 +14710,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
14709
14710
  lodash.inRange = inRange;
14710
14711
  lodash.invoke = invoke;
14711
14712
  lodash.isArguments = isArguments$3;
14712
- lodash.isArray = isArray$3;
14713
+ lodash.isArray = isArray$4;
14713
14714
  lodash.isArrayBuffer = isArrayBuffer;
14714
14715
  lodash.isArrayLike = isArrayLike$4;
14715
14716
  lodash.isArrayLikeObject = isArrayLikeObject$2;
@@ -14733,7 +14734,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
14733
14734
  lodash.isNil = isNil;
14734
14735
  lodash.isNull = isNull;
14735
14736
  lodash.isNumber = isNumber;
14736
- lodash.isObject = isObject$11;
14737
+ lodash.isObject = isObject$12;
14737
14738
  lodash.isObjectLike = isObjectLike$7;
14738
14739
  lodash.isPlainObject = isPlainObject$2;
14739
14740
  lodash.isRegExp = isRegExp;
@@ -14925,7 +14926,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
14925
14926
  var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName), isTaker = /^(?:head|last)$/.test(methodName), lodashFunc = lodash[isTaker ? "take" + (methodName == "last" ? "Right" : "") : methodName], retUnwrapped = isTaker || /^find/.test(methodName);
14926
14927
  if (!lodashFunc) return;
14927
14928
  lodash.prototype[methodName] = function() {
14928
- var value = this.__wrapped__, args = isTaker ? [1] : arguments, isLazy = value instanceof LazyWrapper, iteratee$1 = args[0], useLazy = isLazy || isArray$3(value);
14929
+ var value = this.__wrapped__, args = isTaker ? [1] : arguments, isLazy = value instanceof LazyWrapper, iteratee$1 = args[0], useLazy = isLazy || isArray$4(value);
14929
14930
  var interceptor = function(value$1) {
14930
14931
  var result$2 = lodashFunc.apply(lodash, arrayPush([value$1], args));
14931
14932
  return isTaker && chainAll ? result$2[0] : result$2;
@@ -14960,10 +14961,10 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
14960
14961
  var args = arguments;
14961
14962
  if (retUnwrapped && !this.__chain__) {
14962
14963
  var value = this.value();
14963
- return func.apply(isArray$3(value) ? value : [], args);
14964
+ return func.apply(isArray$4(value) ? value : [], args);
14964
14965
  }
14965
14966
  return this[chainName](function(value$1) {
14966
- return func.apply(isArray$3(value$1) ? value$1 : [], args);
14967
+ return func.apply(isArray$4(value$1) ? value$1 : [], args);
14967
14968
  });
14968
14969
  };
14969
14970
  });
@@ -15012,7 +15013,7 @@ var import_lodash = __toESM(require_lodash(), 1);
15012
15013
 
15013
15014
  //#endregion
15014
15015
  //#region src/yjs.ts
15015
- var yjs_default = Y;
15016
+ var yjs_default = Y$1;
15016
15017
 
15017
15018
  //#endregion
15018
15019
  //#region src/stores/default-initial-state.ts
@@ -15712,17 +15713,17 @@ var require_isObject = __commonJS({ "../../node_modules/lodash/isObject.js"(expo
15712
15713
  * _.isObject(null);
15713
15714
  * // => false
15714
15715
  */
15715
- function isObject$10(value) {
15716
+ function isObject$11(value) {
15716
15717
  var type = typeof value;
15717
15718
  return value != null && (type == "object" || type == "function");
15718
15719
  }
15719
- module.exports = isObject$10;
15720
+ module.exports = isObject$11;
15720
15721
  } });
15721
15722
 
15722
15723
  //#endregion
15723
15724
  //#region ../../node_modules/lodash/isFunction.js
15724
15725
  var require_isFunction = __commonJS({ "../../node_modules/lodash/isFunction.js"(exports, module) {
15725
- var baseGetTag$4 = require__baseGetTag(), isObject$9 = require_isObject();
15726
+ var baseGetTag$4 = require__baseGetTag(), isObject$10 = require_isObject();
15726
15727
  /** `Object#toString` result references. */
15727
15728
  var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
15728
15729
  /**
@@ -15743,7 +15744,7 @@ var require_isFunction = __commonJS({ "../../node_modules/lodash/isFunction.js"(
15743
15744
  * // => false
15744
15745
  */
15745
15746
  function isFunction$3(value) {
15746
- if (!isObject$9(value)) return false;
15747
+ if (!isObject$10(value)) return false;
15747
15748
  var tag = baseGetTag$4(value);
15748
15749
  return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
15749
15750
  }
@@ -15812,7 +15813,7 @@ var require__toSource = __commonJS({ "../../node_modules/lodash/_toSource.js"(ex
15812
15813
  //#endregion
15813
15814
  //#region ../../node_modules/lodash/_baseIsNative.js
15814
15815
  var require__baseIsNative = __commonJS({ "../../node_modules/lodash/_baseIsNative.js"(exports, module) {
15815
- var isFunction$2 = require_isFunction(), isMasked = require__isMasked(), isObject$8 = require_isObject(), toSource = require__toSource();
15816
+ var isFunction$2 = require_isFunction(), isMasked = require__isMasked(), isObject$9 = require_isObject(), toSource = require__toSource();
15816
15817
  /**
15817
15818
  * Used to match `RegExp`
15818
15819
  * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
@@ -15837,7 +15838,7 @@ var require__baseIsNative = __commonJS({ "../../node_modules/lodash/_baseIsNativ
15837
15838
  * else `false`.
15838
15839
  */
15839
15840
  function baseIsNative$1(value) {
15840
- if (!isObject$8(value) || isMasked(value)) return false;
15841
+ if (!isObject$9(value) || isMasked(value)) return false;
15841
15842
  var pattern = isFunction$2(value) ? reIsNative : reIsHostCtor;
15842
15843
  return pattern.test(toSource(value));
15843
15844
  }
@@ -16464,7 +16465,7 @@ var require__copyArray = __commonJS({ "../../node_modules/lodash/_copyArray.js"(
16464
16465
  //#endregion
16465
16466
  //#region ../../node_modules/lodash/_baseCreate.js
16466
16467
  var require__baseCreate = __commonJS({ "../../node_modules/lodash/_baseCreate.js"(exports, module) {
16467
- var isObject$7 = require_isObject();
16468
+ var isObject$8 = require_isObject();
16468
16469
  /** Built-in value references. */
16469
16470
  var objectCreate = Object.create;
16470
16471
  /**
@@ -16478,7 +16479,7 @@ var require__baseCreate = __commonJS({ "../../node_modules/lodash/_baseCreate.js
16478
16479
  var baseCreate$1 = function() {
16479
16480
  function object() {}
16480
16481
  return function(proto) {
16481
- if (!isObject$7(proto)) return {};
16482
+ if (!isObject$8(proto)) return {};
16482
16483
  if (objectCreate) return objectCreate(proto);
16483
16484
  object.prototype = proto;
16484
16485
  var result = new object();
@@ -16667,8 +16668,8 @@ var require_isArray = __commonJS({ "../../node_modules/lodash/isArray.js"(export
16667
16668
  * _.isArray(_.noop);
16668
16669
  * // => false
16669
16670
  */
16670
- var isArray$2 = Array.isArray;
16671
- module.exports = isArray$2;
16671
+ var isArray$3 = Array.isArray;
16672
+ module.exports = isArray$3;
16672
16673
  } });
16673
16674
 
16674
16675
  //#endregion
@@ -17097,7 +17098,7 @@ var require__isIndex = __commonJS({ "../../node_modules/lodash/_isIndex.js"(expo
17097
17098
  //#endregion
17098
17099
  //#region ../../node_modules/lodash/_arrayLikeKeys.js
17099
17100
  var require__arrayLikeKeys = __commonJS({ "../../node_modules/lodash/_arrayLikeKeys.js"(exports, module) {
17100
- var baseTimes = require__baseTimes(), isArguments$1 = require_isArguments(), isArray$1 = require_isArray(), isBuffer$1 = require_isBuffer(), isIndex$1 = require__isIndex(), isTypedArray$1 = require_isTypedArray();
17101
+ var baseTimes = require__baseTimes(), isArguments$1 = require_isArguments(), isArray$2 = require_isArray(), isBuffer$1 = require_isBuffer(), isIndex$1 = require__isIndex(), isTypedArray$1 = require_isTypedArray();
17101
17102
  /** Used for built-in method references. */
17102
17103
  var objectProto$1 = Object.prototype;
17103
17104
  /** Used to check objects for own properties. */
@@ -17111,7 +17112,7 @@ var require__arrayLikeKeys = __commonJS({ "../../node_modules/lodash/_arrayLikeK
17111
17112
  * @returns {Array} Returns the array of property names.
17112
17113
  */
17113
17114
  function arrayLikeKeys$1(value, inherited) {
17114
- var isArr = isArray$1(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
17115
+ var isArr = isArray$2(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
17115
17116
  for (var key in value) if ((inherited || hasOwnProperty$1.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex$1(key, length)))) result.push(key);
17116
17117
  return result;
17117
17118
  }
@@ -17141,7 +17142,7 @@ var require__nativeKeysIn = __commonJS({ "../../node_modules/lodash/_nativeKeysI
17141
17142
  //#endregion
17142
17143
  //#region ../../node_modules/lodash/_baseKeysIn.js
17143
17144
  var require__baseKeysIn = __commonJS({ "../../node_modules/lodash/_baseKeysIn.js"(exports, module) {
17144
- var isObject$6 = require_isObject(), isPrototype = require__isPrototype(), nativeKeysIn = require__nativeKeysIn();
17145
+ var isObject$7 = require_isObject(), isPrototype = require__isPrototype(), nativeKeysIn = require__nativeKeysIn();
17145
17146
  /** Used for built-in method references. */
17146
17147
  var objectProto = Object.prototype;
17147
17148
  /** Used to check objects for own properties. */
@@ -17154,7 +17155,7 @@ var require__baseKeysIn = __commonJS({ "../../node_modules/lodash/_baseKeysIn.js
17154
17155
  * @returns {Array} Returns the array of property names.
17155
17156
  */
17156
17157
  function baseKeysIn$1(object) {
17157
- if (!isObject$6(object)) return nativeKeysIn(object);
17158
+ if (!isObject$7(object)) return nativeKeysIn(object);
17158
17159
  var isProto = isPrototype(object), result = [];
17159
17160
  for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) result.push(key);
17160
17161
  return result;
@@ -17232,7 +17233,7 @@ var require_toPlainObject = __commonJS({ "../../node_modules/lodash/toPlainObjec
17232
17233
  //#endregion
17233
17234
  //#region ../../node_modules/lodash/_baseMergeDeep.js
17234
17235
  var require__baseMergeDeep = __commonJS({ "../../node_modules/lodash/_baseMergeDeep.js"(exports, module) {
17235
- var assignMergeValue$1 = require__assignMergeValue(), cloneBuffer = require__cloneBuffer(), cloneTypedArray = require__cloneTypedArray(), copyArray = require__copyArray(), initCloneObject = require__initCloneObject(), isArguments = require_isArguments(), isArray = require_isArray(), isArrayLikeObject = require_isArrayLikeObject(), isBuffer = require_isBuffer(), isFunction = require_isFunction(), isObject$5 = require_isObject(), isPlainObject = require_isPlainObject(), isTypedArray = require_isTypedArray(), safeGet$1 = require__safeGet(), toPlainObject = require_toPlainObject();
17236
+ var assignMergeValue$1 = require__assignMergeValue(), cloneBuffer = require__cloneBuffer(), cloneTypedArray = require__cloneTypedArray(), copyArray = require__copyArray(), initCloneObject = require__initCloneObject(), isArguments = require_isArguments(), isArray$1 = require_isArray(), isArrayLikeObject = require_isArrayLikeObject(), isBuffer = require_isBuffer(), isFunction = require_isFunction(), isObject$6 = require_isObject(), isPlainObject = require_isPlainObject(), isTypedArray = require_isTypedArray(), safeGet$1 = require__safeGet(), toPlainObject = require_toPlainObject();
17236
17237
  /**
17237
17238
  * A specialized version of `baseMerge` for arrays and objects which performs
17238
17239
  * deep merges and tracks traversed objects enabling objects with circular
@@ -17257,9 +17258,9 @@ var require__baseMergeDeep = __commonJS({ "../../node_modules/lodash/_baseMergeD
17257
17258
  var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0;
17258
17259
  var isCommon = newValue === void 0;
17259
17260
  if (isCommon) {
17260
- var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
17261
+ var isArr = isArray$1(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
17261
17262
  newValue = srcValue;
17262
- if (isArr || isBuff || isTyped) if (isArray(objValue)) newValue = objValue;
17263
+ if (isArr || isBuff || isTyped) if (isArray$1(objValue)) newValue = objValue;
17263
17264
  else if (isArrayLikeObject(objValue)) newValue = copyArray(objValue);
17264
17265
  else if (isBuff) {
17265
17266
  isCommon = false;
@@ -17271,7 +17272,7 @@ var require__baseMergeDeep = __commonJS({ "../../node_modules/lodash/_baseMergeD
17271
17272
  else if (isPlainObject(srcValue) || isArguments(srcValue)) {
17272
17273
  newValue = objValue;
17273
17274
  if (isArguments(objValue)) newValue = toPlainObject(objValue);
17274
- else if (!isObject$5(objValue) || isFunction(objValue)) newValue = initCloneObject(srcValue);
17275
+ else if (!isObject$6(objValue) || isFunction(objValue)) newValue = initCloneObject(srcValue);
17275
17276
  } else isCommon = false;
17276
17277
  }
17277
17278
  if (isCommon) {
@@ -17287,7 +17288,7 @@ var require__baseMergeDeep = __commonJS({ "../../node_modules/lodash/_baseMergeD
17287
17288
  //#endregion
17288
17289
  //#region ../../node_modules/lodash/_baseMerge.js
17289
17290
  var require__baseMerge = __commonJS({ "../../node_modules/lodash/_baseMerge.js"(exports, module) {
17290
- var Stack = require__Stack(), assignMergeValue = require__assignMergeValue(), baseFor = require__baseFor(), baseMergeDeep = require__baseMergeDeep(), isObject$4 = require_isObject(), keysIn = require_keysIn(), safeGet = require__safeGet();
17291
+ var Stack = require__Stack(), assignMergeValue = require__assignMergeValue(), baseFor = require__baseFor(), baseMergeDeep = require__baseMergeDeep(), isObject$5 = require_isObject(), keysIn = require_keysIn(), safeGet = require__safeGet();
17291
17292
  /**
17292
17293
  * The base implementation of `_.merge` without support for multiple sources.
17293
17294
  *
@@ -17303,7 +17304,7 @@ var require__baseMerge = __commonJS({ "../../node_modules/lodash/_baseMerge.js"(
17303
17304
  if (object === source) return;
17304
17305
  baseFor(source, function(srcValue, key) {
17305
17306
  stack || (stack = new Stack());
17306
- if (isObject$4(srcValue)) baseMergeDeep(object, source, key, srcIndex, baseMerge$1, customizer, stack);
17307
+ if (isObject$5(srcValue)) baseMergeDeep(object, source, key, srcIndex, baseMerge$1, customizer, stack);
17307
17308
  else {
17308
17309
  var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0;
17309
17310
  if (newValue === void 0) newValue = srcValue;
@@ -17512,7 +17513,7 @@ var require__baseRest = __commonJS({ "../../node_modules/lodash/_baseRest.js"(ex
17512
17513
  //#endregion
17513
17514
  //#region ../../node_modules/lodash/_isIterateeCall.js
17514
17515
  var require__isIterateeCall = __commonJS({ "../../node_modules/lodash/_isIterateeCall.js"(exports, module) {
17515
- var eq = require_eq(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject$3 = require_isObject();
17516
+ var eq = require_eq(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject$4 = require_isObject();
17516
17517
  /**
17517
17518
  * Checks if the given arguments are from an iteratee call.
17518
17519
  *
@@ -17524,7 +17525,7 @@ var require__isIterateeCall = __commonJS({ "../../node_modules/lodash/_isIterate
17524
17525
  * else `false`.
17525
17526
  */
17526
17527
  function isIterateeCall$1(value, index, object) {
17527
- if (!isObject$3(object)) return false;
17528
+ if (!isObject$4(object)) return false;
17528
17529
  var type = typeof index;
17529
17530
  if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) return eq(object[index], value);
17530
17531
  return false;
@@ -18225,7 +18226,7 @@ var require_isSymbol = __commonJS({ "../../node_modules/lodash/isSymbol.js"(expo
18225
18226
  //#endregion
18226
18227
  //#region ../../node_modules/lodash/toNumber.js
18227
18228
  var require_toNumber = __commonJS({ "../../node_modules/lodash/toNumber.js"(exports, module) {
18228
- var baseTrim = require__baseTrim(), isObject$2 = require_isObject(), isSymbol = require_isSymbol();
18229
+ var baseTrim = require__baseTrim(), isObject$3 = require_isObject(), isSymbol = require_isSymbol();
18229
18230
  /** Used as references for various `Number` constants. */
18230
18231
  var NAN = NaN;
18231
18232
  /** Used to detect bad signed hexadecimal string values. */
@@ -18262,9 +18263,9 @@ var require_toNumber = __commonJS({ "../../node_modules/lodash/toNumber.js"(expo
18262
18263
  function toNumber$1(value) {
18263
18264
  if (typeof value == "number") return value;
18264
18265
  if (isSymbol(value)) return NAN;
18265
- if (isObject$2(value)) {
18266
+ if (isObject$3(value)) {
18266
18267
  var other = typeof value.valueOf == "function" ? value.valueOf() : value;
18267
- value = isObject$2(other) ? other + "" : other;
18268
+ value = isObject$3(other) ? other + "" : other;
18268
18269
  }
18269
18270
  if (typeof value != "string") return value === 0 ? value : +value;
18270
18271
  value = baseTrim(value);
@@ -18277,7 +18278,7 @@ var require_toNumber = __commonJS({ "../../node_modules/lodash/toNumber.js"(expo
18277
18278
  //#endregion
18278
18279
  //#region ../../node_modules/lodash/debounce.js
18279
18280
  var require_debounce = __commonJS({ "../../node_modules/lodash/debounce.js"(exports, module) {
18280
- var isObject$1 = require_isObject(), now = require_now(), toNumber = require_toNumber();
18281
+ var isObject$2 = require_isObject(), now = require_now(), toNumber = require_toNumber();
18281
18282
  /** Error message constants. */
18282
18283
  var FUNC_ERROR_TEXT$1 = "Expected a function";
18283
18284
  var nativeMax = Math.max, nativeMin = Math.min;
@@ -18339,7 +18340,7 @@ var require_debounce = __commonJS({ "../../node_modules/lodash/debounce.js"(expo
18339
18340
  var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
18340
18341
  if (typeof func != "function") throw new TypeError(FUNC_ERROR_TEXT$1);
18341
18342
  wait = toNumber(wait) || 0;
18342
- if (isObject$1(options)) {
18343
+ if (isObject$2(options)) {
18343
18344
  leading = !!options.leading;
18344
18345
  maxing = "maxWait" in options;
18345
18346
  maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
@@ -18410,7 +18411,7 @@ var require_debounce = __commonJS({ "../../node_modules/lodash/debounce.js"(expo
18410
18411
  //#endregion
18411
18412
  //#region ../../node_modules/lodash/throttle.js
18412
18413
  var require_throttle = __commonJS({ "../../node_modules/lodash/throttle.js"(exports, module) {
18413
- var debounce = require_debounce(), isObject = require_isObject();
18414
+ var debounce = require_debounce(), isObject$1 = require_isObject();
18414
18415
  /** Error message constants. */
18415
18416
  var FUNC_ERROR_TEXT = "Expected a function";
18416
18417
  /**
@@ -18460,7 +18461,7 @@ var require_throttle = __commonJS({ "../../node_modules/lodash/throttle.js"(expo
18460
18461
  function throttle(func, wait, options) {
18461
18462
  var leading = true, trailing = true;
18462
18463
  if (typeof func != "function") throw new TypeError(FUNC_ERROR_TEXT);
18463
- if (isObject(options)) {
18464
+ if (isObject$1(options)) {
18464
18465
  leading = "leading" in options ? !!options.leading : leading;
18465
18466
  trailing = "trailing" in options ? !!options.trailing : trailing;
18466
18467
  }
@@ -22004,7 +22005,6 @@ var WeaveTextNode = class extends WeaveNode {
22004
22005
  this.instance.emitEvent("onExitTextNodeEditMode", { node: textNode });
22005
22006
  }
22006
22007
  triggerEditMode(textNode) {
22007
- const stage = this.instance.getStage();
22008
22008
  this.editing = true;
22009
22009
  textNode.visible(false);
22010
22010
  const selectionPlugin = this.instance.getPlugin("nodesSelection");
@@ -22014,11 +22014,9 @@ var WeaveTextNode = class extends WeaveNode {
22014
22014
  tr.hide();
22015
22015
  }
22016
22016
  const textPosition = textNode.absolutePosition();
22017
- const stageContainer = stage.container();
22018
- const stageRect = stageContainer.getBoundingClientRect();
22019
22017
  const areaPosition = {
22020
- x: stageRect.x + stageContainer.offsetLeft + textPosition.x,
22021
- y: stageRect.y + stageContainer.offsetTop + textPosition.y
22018
+ x: textPosition.x,
22019
+ y: textPosition.y
22022
22020
  };
22023
22021
  this.createTextAreaDOM(textNode, areaPosition);
22024
22022
  this.instance.emitEvent("onEnterTextNodeEditMode", { node: textNode });
@@ -22303,7 +22301,7 @@ var WeaveImageCrop = class WeaveImageCrop {
22303
22301
  this.cropRect.rotation(0);
22304
22302
  const clipRectGroup = this.cropRect.getClientRect({ relativeTo: this.cropGroup });
22305
22303
  if (!intersectionRect) return;
22306
- const imageAttrs = this.internalImage.getAttrs();
22304
+ const imageAttrs = this.image.getAttrs();
22307
22305
  const actualScale = imageAttrs.uncroppedImage.width / imageAttrs.imageInfo.width;
22308
22306
  const realClipRect = {
22309
22307
  scaleX: actualScale,
@@ -32095,7 +32093,7 @@ var WeaveRegisterManager = class {
32095
32093
 
32096
32094
  //#endregion
32097
32095
  //#region package.json
32098
- var version = "2.8.1";
32096
+ var version = "2.9.1";
32099
32097
 
32100
32098
  //#endregion
32101
32099
  //#region src/managers/setup.ts
@@ -32613,6 +32611,9 @@ var Weave = class {
32613
32611
  initialized = false;
32614
32612
  status = WEAVE_INSTANCE_STATUS.IDLE;
32615
32613
  constructor(weaveConfig, stageConfig) {
32614
+ globalThis._weave_isServerSide = false;
32615
+ globalThis._weave_serverSideBackend = void 0;
32616
+ if (typeof window === "undefined") globalThis._weave_isServerSide = true;
32616
32617
  this.emitter = new Emittery();
32617
32618
  Konva.showWarnings = false;
32618
32619
  this.id = v4_default();
@@ -33140,11 +33141,56 @@ var Weave = class {
33140
33141
  this.asyncElements.set(nodeId, element);
33141
33142
  }
33142
33143
  isServerSide() {
33143
- if (typeof window !== "undefined") return window._weave_isServerSide === true;
33144
- return global._weave_isServerSide === true;
33144
+ return globalThis._weave_isServerSide === true;
33145
33145
  }
33146
33146
  };
33147
33147
 
33148
+ //#endregion
33149
+ //#region src/utils/mapping.ts
33150
+ const isArray = (val) => {
33151
+ return Array.isArray(val);
33152
+ };
33153
+ const isObject = (val) => {
33154
+ return val !== null && typeof val === "object" && !Array.isArray(val);
33155
+ };
33156
+ const mapJsonToYjsMap = (jsonData) => {
33157
+ const map = new Y.Map();
33158
+ const keys = Object.keys(jsonData);
33159
+ for (const key of keys) {
33160
+ const value = jsonData[key];
33161
+ if (isArray(value)) map.set(key, mapJsonToYjsArray(value));
33162
+ else if (isObject(value)) map.set(key, mapJsonToYjsMap(value));
33163
+ else map.set(key, value);
33164
+ }
33165
+ return map;
33166
+ };
33167
+ const mapJsonToYjsArray = (jsonData) => {
33168
+ const array = new Y.Array();
33169
+ for (const item of jsonData) if (isArray(item)) array.push([mapJsonToYjsArray(item)]);
33170
+ else if (isObject(item)) array.push([mapJsonToYjsMap(item)]);
33171
+ else array.push(item);
33172
+ return array;
33173
+ };
33174
+ const mapJsonToYjsElements = (jsonData) => {
33175
+ if (isArray(jsonData)) return mapJsonToYjsArray(jsonData);
33176
+ else if (isObject(jsonData)) return mapJsonToYjsMap(jsonData);
33177
+ };
33178
+ const weavejsToYjsBinary = (weavejsData) => {
33179
+ const doc = new Y.Doc();
33180
+ doc.getMap("weave").set("key", weavejsData.weave.key);
33181
+ doc.getMap("weave").set("type", weavejsData.weave.type);
33182
+ doc.getMap("weave").set("props", mapJsonToYjsElements(weavejsData.weave.props));
33183
+ const actualState = Y.encodeStateAsUpdate(doc);
33184
+ return actualState;
33185
+ };
33186
+ function getJSONFromYjsBinary(actualState) {
33187
+ const document$1 = new Y.Doc();
33188
+ Y.applyUpdate(document$1, actualState);
33189
+ const actualStateString = JSON.stringify(document$1.getMap("weave").toJSON());
33190
+ const actualStateJson = JSON.parse(actualStateString);
33191
+ return actualStateJson;
33192
+ }
33193
+
33148
33194
  //#endregion
33149
33195
  //#region src/actions/line-tool/constants.ts
33150
33196
  const LINE_TOOL_ACTION_NAME = "lineTool";
@@ -33430,5 +33476,5 @@ globalThis._weave_isServerSide = false;
33430
33476
  globalThis._weave_serverSideBackend = void 0;
33431
33477
 
33432
33478
  //#endregion
33433
- export { ALIGN_NODES_ALIGN_TO, ALIGN_NODES_TOOL_ACTION_NAME, ALIGN_NODES_TOOL_STATE, ARROW_TOOL_ACTION_NAME, ARROW_TOOL_STATE, BRUSH_TOOL_ACTION_NAME, BRUSH_TOOL_DEFAULT_CONFIG, BRUSH_TOOL_STATE, COPY_PASTE_NODES_PLUGIN_STATE, ELLIPSE_TOOL_ACTION_NAME, ELLIPSE_TOOL_STATE, ERASER_TOOL_ACTION_NAME, ERASER_TOOL_STATE, FRAME_TOOL_ACTION_NAME, FRAME_TOOL_STATE, GUIDE_DISTANCE_LINE_DEFAULT_CONFIG, GUIDE_ENTER_SNAPPING_TOLERANCE, GUIDE_EXIT_SNAPPING_TOLERANCE, GUIDE_HORIZONTAL_LINE_NAME, GUIDE_LINE_DEFAULT_CONFIG, GUIDE_LINE_DRAG_SNAPPING_THRESHOLD, GUIDE_LINE_NAME, GUIDE_LINE_TRANSFORM_SNAPPING_THRESHOLD, GUIDE_ORIENTATION, GUIDE_VERTICAL_LINE_NAME, IMAGE_TOOL_ACTION_NAME, IMAGE_TOOL_STATE, LINE_TOOL_ACTION_NAME, LINE_TOOL_DEFAULT_CONFIG, LINE_TOOL_STATE, MOVE_TOOL_ACTION_NAME, MOVE_TOOL_STATE, NODE_SNAP, NODE_SNAP_HORIZONTAL, NODE_SNAP_VERTICAL, PEN_TOOL_ACTION_NAME, PEN_TOOL_STATE, RECTANGLE_TOOL_ACTION_NAME, RECTANGLE_TOOL_STATE, REGULAR_POLYGON_TOOL_ACTION_NAME, REGULAR_POLYGON_TOOL_STATE, SELECTION_TOOL_ACTION_NAME, SELECTION_TOOL_STATE, STAGE_MINIMAP_DEFAULT_CONFIG, STAR_TOOL_ACTION_NAME, STAR_TOOL_STATE, TEXT_LAYOUT, TEXT_TOOL_ACTION_NAME, TEXT_TOOL_STATE, VIDEO_TOOL_ACTION_NAME, VIDEO_TOOL_STATE, WEAVE_ARROW_NODE_TYPE, WEAVE_COMMENTS_RENDERER_KEY, WEAVE_COMMENTS_TOOL_LAYER_ID, WEAVE_COMMENT_CREATE_ACTION, WEAVE_COMMENT_NODE_ACTION, WEAVE_COMMENT_NODE_DEFAULTS, WEAVE_COMMENT_NODE_TYPE, WEAVE_COMMENT_STATUS, WEAVE_COMMENT_TOOL_ACTION_NAME, WEAVE_COMMENT_TOOL_DEFAULT_CONFIG, WEAVE_COMMENT_TOOL_STATE, WEAVE_COMMENT_VIEW_ACTION, WEAVE_COPY_PASTE_CONFIG_DEFAULT, WEAVE_COPY_PASTE_NODES_KEY, WEAVE_COPY_PASTE_PASTE_CATCHER_ID, WEAVE_COPY_PASTE_PASTE_MODES, WEAVE_DEFAULT_USER_INFO_FUNCTION, WEAVE_ELLIPSE_NODE_TYPE, WEAVE_FRAME_DEFAULT_BACKGROUND_COLOR, WEAVE_FRAME_NODE_DEFAULT_CONFIG, WEAVE_FRAME_NODE_DEFAULT_PROPS, WEAVE_FRAME_NODE_TYPE, WEAVE_GRID_DEFAULT_COLOR, WEAVE_GRID_DEFAULT_DOT_MAX_DOTS_PER_AXIS, WEAVE_GRID_DEFAULT_MAJOR_DOT_RATIO, WEAVE_GRID_DEFAULT_MAJOR_EVERY, WEAVE_GRID_DEFAULT_MAJOR_LINE_RATIO, WEAVE_GRID_DEFAULT_ORIGIN_COLOR, WEAVE_GRID_DEFAULT_RADIUS, WEAVE_GRID_DEFAULT_SIZE, WEAVE_GRID_DEFAULT_STROKE, WEAVE_GRID_DEFAULT_TYPE, WEAVE_GRID_LAYER_ID, WEAVE_GRID_TYPES, WEAVE_GROUP_NODE_TYPE, WEAVE_IMAGE_CROP_END_TYPE, WEAVE_IMAGE_DEFAULT_CONFIG, WEAVE_IMAGE_NODE_TYPE, WEAVE_LAYER_NODE_TYPE, WEAVE_LINE_NODE_DEFAULT_CONFIG, WEAVE_LINE_NODE_TYPE, WEAVE_NODES_DISTANCE_SNAPPING_PLUGIN_KEY, WEAVE_NODES_EDGE_SNAPPING_PLUGIN_KEY, WEAVE_NODES_MULTI_SELECTION_FEEDBACK_PLUGIN_DEFAULT_CONFIG, WEAVE_NODES_MULTI_SELECTION_FEEDBACK_PLUGIN_KEY, WEAVE_NODES_MULTI_SELECTION_FEEDBACK_PLUGIN_LAYER_ID, WEAVE_NODES_SELECTION_DEFAULT_CONFIG, WEAVE_NODES_SELECTION_KEY, WEAVE_NODES_SELECTION_LAYER_ID, WEAVE_RECTANGLE_NODE_TYPE, WEAVE_REGULAR_POLYGON_NODE_TYPE, WEAVE_STAGE_DEFAULT_MODE, WEAVE_STAGE_GRID_PLUGIN_KEY, WEAVE_STAGE_KEYBOARD_MOVE_DEFAULT_CONFIG, WEAVE_STAGE_KEYBOARD_MOVE_KEY, WEAVE_STAGE_MINIMAP_KEY, WEAVE_STAGE_NODE_TYPE, WEAVE_STAGE_PANNING_DEFAULT_CONFIG, WEAVE_STAGE_PANNING_KEY, WEAVE_STAR_NODE_TYPE, WEAVE_STROKE_NODE_DEFAULT_CONFIG, WEAVE_STROKE_NODE_TYPE, WEAVE_TEXT_NODE_TYPE, WEAVE_USERS_POINTERS_CONFIG_DEFAULT_PROPS, WEAVE_USERS_POINTERS_KEY, WEAVE_USERS_SELECTION_KEY, WEAVE_USER_POINTER_KEY, WEAVE_USER_SELECTION_KEY, WEAVE_VIDEO_DEFAULT_CONFIG, WEAVE_VIDEO_NODE_TYPE, Weave, WeaveAction, WeaveAlignNodesToolAction, WeaveArrowNode, WeaveArrowToolAction, WeaveBrushToolAction, WeaveCommentNode, WeaveCommentToolAction, WeaveCommentsRendererPlugin, WeaveConnectedUsersPlugin, WeaveContextMenuPlugin, WeaveCopyPasteNodesPlugin, WeaveEllipseNode, WeaveEllipseToolAction, WeaveEraserToolAction, WeaveExportNodesToolAction, WeaveExportStageToolAction, WeaveFitToScreenToolAction, WeaveFitToSelectionToolAction, WeaveFrameNode, WeaveFrameToolAction, WeaveGroupNode, WeaveImageNode, WeaveImageToolAction, WeaveLayerNode, WeaveLineNode, WeaveLineToolAction, WeaveMoveToolAction, WeaveNode, WeaveNodesDistanceSnappingPlugin, WeaveNodesEdgeSnappingPlugin, WeaveNodesMultiSelectionFeedbackPlugin, WeaveNodesSelectionPlugin, WeavePenToolAction, WeavePlugin, WeaveRectangleNode, WeaveRectangleToolAction, WeaveRegularPolygonNode, WeaveRegularPolygonToolAction, WeaveSelectionToolAction, WeaveStageDropAreaPlugin, WeaveStageGridPlugin, WeaveStageKeyboardMovePlugin, WeaveStageMinimapPlugin, WeaveStageNode, WeaveStagePanningPlugin, WeaveStageResizePlugin, WeaveStageZoomPlugin, WeaveStarNode, WeaveStarToolAction, WeaveStore, WeaveStrokeNode, WeaveTextNode, WeaveTextToolAction, WeaveUsersPointersPlugin, WeaveUsersSelectionPlugin, WeaveVideoNode, WeaveVideoToolAction, WeaveZoomInToolAction, WeaveZoomOutToolAction, canComposite, clearContainerTargets, containerOverCursor, containsNodeDeep, defaultInitialState, getBoundingBox, getExportBoundingBox, getPositionRelativeToContainerOnPosition, getSelectedNodesMetadata, getStageClickPoint, getTargetAndSkipNodes, getTargetedNode, getTopmostShadowHost, getVisibleNodes, getVisibleNodesInViewport, hasFrames, hasImages, intersectArrays, isIOS, isInShadowDOM, isNodeInSelection, isServer, memoize, mergeExceptArrays, moveNodeToContainer, resetScale };
33479
+ export { ALIGN_NODES_ALIGN_TO, ALIGN_NODES_TOOL_ACTION_NAME, ALIGN_NODES_TOOL_STATE, ARROW_TOOL_ACTION_NAME, ARROW_TOOL_STATE, BRUSH_TOOL_ACTION_NAME, BRUSH_TOOL_DEFAULT_CONFIG, BRUSH_TOOL_STATE, COPY_PASTE_NODES_PLUGIN_STATE, ELLIPSE_TOOL_ACTION_NAME, ELLIPSE_TOOL_STATE, ERASER_TOOL_ACTION_NAME, ERASER_TOOL_STATE, FRAME_TOOL_ACTION_NAME, FRAME_TOOL_STATE, GUIDE_DISTANCE_LINE_DEFAULT_CONFIG, GUIDE_ENTER_SNAPPING_TOLERANCE, GUIDE_EXIT_SNAPPING_TOLERANCE, GUIDE_HORIZONTAL_LINE_NAME, GUIDE_LINE_DEFAULT_CONFIG, GUIDE_LINE_DRAG_SNAPPING_THRESHOLD, GUIDE_LINE_NAME, GUIDE_LINE_TRANSFORM_SNAPPING_THRESHOLD, GUIDE_ORIENTATION, GUIDE_VERTICAL_LINE_NAME, IMAGE_TOOL_ACTION_NAME, IMAGE_TOOL_STATE, LINE_TOOL_ACTION_NAME, LINE_TOOL_DEFAULT_CONFIG, LINE_TOOL_STATE, MOVE_TOOL_ACTION_NAME, MOVE_TOOL_STATE, NODE_SNAP, NODE_SNAP_HORIZONTAL, NODE_SNAP_VERTICAL, PEN_TOOL_ACTION_NAME, PEN_TOOL_STATE, RECTANGLE_TOOL_ACTION_NAME, RECTANGLE_TOOL_STATE, REGULAR_POLYGON_TOOL_ACTION_NAME, REGULAR_POLYGON_TOOL_STATE, SELECTION_TOOL_ACTION_NAME, SELECTION_TOOL_STATE, STAGE_MINIMAP_DEFAULT_CONFIG, STAR_TOOL_ACTION_NAME, STAR_TOOL_STATE, TEXT_LAYOUT, TEXT_TOOL_ACTION_NAME, TEXT_TOOL_STATE, VIDEO_TOOL_ACTION_NAME, VIDEO_TOOL_STATE, WEAVE_ARROW_NODE_TYPE, WEAVE_COMMENTS_RENDERER_KEY, WEAVE_COMMENTS_TOOL_LAYER_ID, WEAVE_COMMENT_CREATE_ACTION, WEAVE_COMMENT_NODE_ACTION, WEAVE_COMMENT_NODE_DEFAULTS, WEAVE_COMMENT_NODE_TYPE, WEAVE_COMMENT_STATUS, WEAVE_COMMENT_TOOL_ACTION_NAME, WEAVE_COMMENT_TOOL_DEFAULT_CONFIG, WEAVE_COMMENT_TOOL_STATE, WEAVE_COMMENT_VIEW_ACTION, WEAVE_COPY_PASTE_CONFIG_DEFAULT, WEAVE_COPY_PASTE_NODES_KEY, WEAVE_COPY_PASTE_PASTE_CATCHER_ID, WEAVE_COPY_PASTE_PASTE_MODES, WEAVE_DEFAULT_USER_INFO_FUNCTION, WEAVE_ELLIPSE_NODE_TYPE, WEAVE_FRAME_DEFAULT_BACKGROUND_COLOR, WEAVE_FRAME_NODE_DEFAULT_CONFIG, WEAVE_FRAME_NODE_DEFAULT_PROPS, WEAVE_FRAME_NODE_TYPE, WEAVE_GRID_DEFAULT_COLOR, WEAVE_GRID_DEFAULT_DOT_MAX_DOTS_PER_AXIS, WEAVE_GRID_DEFAULT_MAJOR_DOT_RATIO, WEAVE_GRID_DEFAULT_MAJOR_EVERY, WEAVE_GRID_DEFAULT_MAJOR_LINE_RATIO, WEAVE_GRID_DEFAULT_ORIGIN_COLOR, WEAVE_GRID_DEFAULT_RADIUS, WEAVE_GRID_DEFAULT_SIZE, WEAVE_GRID_DEFAULT_STROKE, WEAVE_GRID_DEFAULT_TYPE, WEAVE_GRID_LAYER_ID, WEAVE_GRID_TYPES, WEAVE_GROUP_NODE_TYPE, WEAVE_IMAGE_CROP_END_TYPE, WEAVE_IMAGE_DEFAULT_CONFIG, WEAVE_IMAGE_NODE_TYPE, WEAVE_LAYER_NODE_TYPE, WEAVE_LINE_NODE_DEFAULT_CONFIG, WEAVE_LINE_NODE_TYPE, WEAVE_NODES_DISTANCE_SNAPPING_PLUGIN_KEY, WEAVE_NODES_EDGE_SNAPPING_PLUGIN_KEY, WEAVE_NODES_MULTI_SELECTION_FEEDBACK_PLUGIN_DEFAULT_CONFIG, WEAVE_NODES_MULTI_SELECTION_FEEDBACK_PLUGIN_KEY, WEAVE_NODES_MULTI_SELECTION_FEEDBACK_PLUGIN_LAYER_ID, WEAVE_NODES_SELECTION_DEFAULT_CONFIG, WEAVE_NODES_SELECTION_KEY, WEAVE_NODES_SELECTION_LAYER_ID, WEAVE_RECTANGLE_NODE_TYPE, WEAVE_REGULAR_POLYGON_NODE_TYPE, WEAVE_STAGE_DEFAULT_MODE, WEAVE_STAGE_GRID_PLUGIN_KEY, WEAVE_STAGE_KEYBOARD_MOVE_DEFAULT_CONFIG, WEAVE_STAGE_KEYBOARD_MOVE_KEY, WEAVE_STAGE_MINIMAP_KEY, WEAVE_STAGE_NODE_TYPE, WEAVE_STAGE_PANNING_DEFAULT_CONFIG, WEAVE_STAGE_PANNING_KEY, WEAVE_STAR_NODE_TYPE, WEAVE_STROKE_NODE_DEFAULT_CONFIG, WEAVE_STROKE_NODE_TYPE, WEAVE_TEXT_NODE_TYPE, WEAVE_USERS_POINTERS_CONFIG_DEFAULT_PROPS, WEAVE_USERS_POINTERS_KEY, WEAVE_USERS_SELECTION_KEY, WEAVE_USER_POINTER_KEY, WEAVE_USER_SELECTION_KEY, WEAVE_VIDEO_DEFAULT_CONFIG, WEAVE_VIDEO_NODE_TYPE, Weave, WeaveAction, WeaveAlignNodesToolAction, WeaveArrowNode, WeaveArrowToolAction, WeaveBrushToolAction, WeaveCommentNode, WeaveCommentToolAction, WeaveCommentsRendererPlugin, WeaveConnectedUsersPlugin, WeaveContextMenuPlugin, WeaveCopyPasteNodesPlugin, WeaveEllipseNode, WeaveEllipseToolAction, WeaveEraserToolAction, WeaveExportNodesToolAction, WeaveExportStageToolAction, WeaveFitToScreenToolAction, WeaveFitToSelectionToolAction, WeaveFrameNode, WeaveFrameToolAction, WeaveGroupNode, WeaveImageNode, WeaveImageToolAction, WeaveLayerNode, WeaveLineNode, WeaveLineToolAction, WeaveMoveToolAction, WeaveNode, WeaveNodesDistanceSnappingPlugin, WeaveNodesEdgeSnappingPlugin, WeaveNodesMultiSelectionFeedbackPlugin, WeaveNodesSelectionPlugin, WeavePenToolAction, WeavePlugin, WeaveRectangleNode, WeaveRectangleToolAction, WeaveRegularPolygonNode, WeaveRegularPolygonToolAction, WeaveSelectionToolAction, WeaveStageDropAreaPlugin, WeaveStageGridPlugin, WeaveStageKeyboardMovePlugin, WeaveStageMinimapPlugin, WeaveStageNode, WeaveStagePanningPlugin, WeaveStageResizePlugin, WeaveStageZoomPlugin, WeaveStarNode, WeaveStarToolAction, WeaveStore, WeaveStrokeNode, WeaveTextNode, WeaveTextToolAction, WeaveUsersPointersPlugin, WeaveUsersSelectionPlugin, WeaveVideoNode, WeaveVideoToolAction, WeaveZoomInToolAction, WeaveZoomOutToolAction, canComposite, clearContainerTargets, containerOverCursor, containsNodeDeep, defaultInitialState, getBoundingBox, getExportBoundingBox, getJSONFromYjsBinary, getPositionRelativeToContainerOnPosition, getSelectedNodesMetadata, getStageClickPoint, getTargetAndSkipNodes, getTargetedNode, getTopmostShadowHost, getVisibleNodes, getVisibleNodesInViewport, hasFrames, hasImages, intersectArrays, isArray, isIOS, isInShadowDOM, isNodeInSelection, isObject, isServer, mapJsonToYjsArray, mapJsonToYjsElements, mapJsonToYjsMap, memoize, mergeExceptArrays, moveNodeToContainer, resetScale, weavejsToYjsBinary };
33434
33480
  //# sourceMappingURL=sdk.js.map