@player-ui/reference-assets-plugin 0.15.3-next.1 → 0.15.3-next.2

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.
@@ -118,6 +118,7 @@ function _inherits(subClass, superClass) {
118
118
  if (superClass) _set_prototype_of(subClass, superClass);
119
119
  }
120
120
  function _instanceof(left, right) {
121
+ "@swc/helpers - instanceof";
121
122
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
122
123
  return !!right[Symbol.hasInstance](left);
123
124
  } else {
@@ -201,12 +202,22 @@ function _object_spread_props(target, source) {
201
202
  }
202
203
  function _object_without_properties(source, excluded) {
203
204
  if (source == null) return {};
204
- var target = _object_without_properties_loose(source, excluded);
205
- var key, i;
205
+ var target = {}, sourceKeys, key, i;
206
+ if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
207
+ sourceKeys = Reflect.ownKeys(Object(source));
208
+ for(i = 0; i < sourceKeys.length; i++){
209
+ key = sourceKeys[i];
210
+ if (excluded.indexOf(key) >= 0) continue;
211
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
212
+ target[key] = source[key];
213
+ }
214
+ return target;
215
+ }
216
+ target = _object_without_properties_loose(source, excluded);
206
217
  if (Object.getOwnPropertySymbols) {
207
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
208
- for(i = 0; i < sourceSymbolKeys.length; i++){
209
- key = sourceSymbolKeys[i];
218
+ sourceKeys = Object.getOwnPropertySymbols(source);
219
+ for(i = 0; i < sourceKeys.length; i++){
220
+ key = sourceKeys[i];
210
221
  if (excluded.indexOf(key) >= 0) continue;
211
222
  if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
212
223
  target[key] = source[key];
@@ -216,12 +227,11 @@ function _object_without_properties(source, excluded) {
216
227
  }
217
228
  function _object_without_properties_loose(source, excluded) {
218
229
  if (source == null) return {};
219
- var target = {};
220
- var sourceKeys = Object.keys(source);
221
- var key, i;
230
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
222
231
  for(i = 0; i < sourceKeys.length; i++){
223
232
  key = sourceKeys[i];
224
233
  if (excluded.indexOf(key) >= 0) continue;
234
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
225
235
  target[key] = source[key];
226
236
  }
227
237
  return target;
@@ -303,9 +313,17 @@ function _ts_generator(thisArg, body) {
303
313
  },
304
314
  trys: [],
305
315
  ops: []
306
- }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
307
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
308
- return this;
316
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
317
+ return d(g, "next", {
318
+ value: verb(0)
319
+ }), d(g, "throw", {
320
+ value: verb(1)
321
+ }), d(g, "return", {
322
+ value: verb(2)
323
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
324
+ value: function() {
325
+ return this;
326
+ }
309
327
  }), g;
310
328
  function verb(n) {
311
329
  return function(v) {
@@ -393,7 +411,7 @@ var ReferenceAssetsPlugin = function() {
393
411
  };
394
412
  var createObjectMatcher = function createObjectMatcher(partialObj) {
395
413
  var pairs = traverseObj(partialObj);
396
- var matchFunction = function(searchObj) {
414
+ var matchFunction = function matchFunction(searchObj) {
397
415
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
398
416
  try {
399
417
  for(var _iterator = Array.from(pairs)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
@@ -423,7 +441,7 @@ var ReferenceAssetsPlugin = function() {
423
441
  return matchFunction;
424
442
  };
425
443
  var createBasicMatcher = function createBasicMatcher(seed) {
426
- var matcher = function(match) {
444
+ var matcher = function matcher(match) {
427
445
  return seed === match;
428
446
  };
429
447
  matcher.count = 1;
@@ -622,21 +640,21 @@ var ReferenceAssetsPlugin = function() {
622
640
  return middleware;
623
641
  }
624
642
  return {
625
- get: function(binding, options) {
643
+ get: function get(binding, options) {
626
644
  var resolvedOptions = options !== null && options !== void 0 ? options : defaultOptions;
627
645
  if (middleware.get) {
628
646
  return middleware.get(binding, resolvedOptions, next);
629
647
  }
630
648
  return next === null || next === void 0 ? void 0 : next.get(binding, resolvedOptions);
631
649
  },
632
- set: function(transaction, options) {
650
+ set: function set(transaction, options) {
633
651
  var resolvedOptions = options !== null && options !== void 0 ? options : defaultOptions;
634
652
  if (middleware.set) {
635
653
  return middleware.set(transaction, resolvedOptions, next);
636
654
  }
637
655
  return next === null || next === void 0 ? void 0 : next.set(transaction, resolvedOptions);
638
656
  },
639
- delete: function(binding, options) {
657
+ delete: function _delete(binding, options) {
640
658
  var resolvedOptions = options !== null && options !== void 0 ? options : defaultOptions;
641
659
  if (middleware.delete) {
642
660
  return middleware.delete(binding, resolvedOptions, next);
@@ -660,15 +678,15 @@ var ReferenceAssetsPlugin = function() {
660
678
  return model;
661
679
  }
662
680
  return {
663
- get: function(binding, options) {
681
+ get: function get(binding, options) {
664
682
  var _createModelWithOptions;
665
683
  return (_createModelWithOptions = createModelWithOptions(options)) === null || _createModelWithOptions === void 0 ? void 0 : _createModelWithOptions.get(binding, options);
666
684
  },
667
- set: function(transaction, options) {
685
+ set: function set(transaction, options) {
668
686
  var _createModelWithOptions;
669
687
  return (_createModelWithOptions = createModelWithOptions(options)) === null || _createModelWithOptions === void 0 ? void 0 : _createModelWithOptions.set(transaction, options);
670
688
  },
671
- delete: function(binding, options) {
689
+ delete: function _delete(binding, options) {
672
690
  var _createModelWithOptions;
673
691
  return (_createModelWithOptions = createModelWithOptions(options)) === null || _createModelWithOptions === void 0 ? void 0 : _createModelWithOptions.delete(binding, options);
674
692
  }
@@ -742,13 +760,13 @@ var ReferenceAssetsPlugin = function() {
742
760
  return ch0 === OCURL_CODE && ch1 === OCURL_CODE;
743
761
  };
744
762
  var parseExpression = function parseExpression(expr, options) {
745
- var _options_strict;
746
- var strictMode = (_options_strict = options === null || options === void 0 ? void 0 : options.strict) !== null && _options_strict !== void 0 ? _options_strict : true;
763
+ var _ref;
764
+ var strictMode = (_ref = options === null || options === void 0 ? void 0 : options.strict) !== null && _ref !== void 0 ? _ref : true;
747
765
  var charAtFunc = expr.charAt;
748
766
  var charCodeAtFunc = expr.charCodeAt;
749
767
  var length = expr.length;
750
768
  var index = 0;
751
- var getLocation = function(startChar) {
769
+ var getLocation = function getLocation(startChar) {
752
770
  return {
753
771
  start: {
754
772
  character: startChar
@@ -1515,17 +1533,17 @@ var ReferenceAssetsPlugin = function() {
1515
1533
  return _object_spread_props(_object_spread({}, resolverOptions), {
1516
1534
  data: {
1517
1535
  model: resolverOptions.model,
1518
- formatValue: function(ref, value) {
1536
+ formatValue: function formatValue(ref, value) {
1519
1537
  if (resolverOptions.formatValue) {
1520
1538
  return resolverOptions.formatValue(ref, value);
1521
1539
  }
1522
1540
  return value;
1523
1541
  },
1524
- format: function(bindingLike, value) {
1542
+ format: function format(bindingLike, value) {
1525
1543
  return resolverOptions.format ? resolverOptions.format(isBinding(bindingLike) ? bindingLike : resolverOptions.parseBinding(bindingLike), value) : value;
1526
1544
  }
1527
1545
  },
1528
- evaluate: function(exp) {
1546
+ evaluate: function evaluate(exp) {
1529
1547
  return resolverOptions.evaluator.evaluate(exp, resolverOptions);
1530
1548
  }
1531
1549
  });
@@ -1593,27 +1611,27 @@ var ReferenceAssetsPlugin = function() {
1593
1611
  var __getOwnPropNames = Object.getOwnPropertyNames;
1594
1612
  var __getProtoOf = Object.getPrototypeOf;
1595
1613
  var __hasOwnProp = Object.prototype.hasOwnProperty;
1596
- var __commonJS = function(cb, mod) {
1614
+ var __commonJS = function __commonJS(cb, mod) {
1597
1615
  return function __require() {
1598
1616
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = {
1599
1617
  exports: {}
1600
1618
  }).exports, mod), mod.exports;
1601
1619
  };
1602
1620
  };
1603
- var __export = function(target, all) {
1621
+ var __export = function __export(target, all) {
1604
1622
  for(var name in all)__defProp(target, name, {
1605
1623
  get: all[name],
1606
1624
  enumerable: true
1607
1625
  });
1608
1626
  };
1609
- var __copyProps = function(to, from, except, desc) {
1627
+ var __copyProps = function __copyProps(to, from, except, desc) {
1610
1628
  if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
1611
1629
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1612
1630
  try {
1613
1631
  var _loop = function() {
1614
1632
  var key = _step.value;
1615
1633
  if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
1616
- get: function() {
1634
+ get: function get() {
1617
1635
  return from[key];
1618
1636
  },
1619
1637
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
@@ -1637,7 +1655,7 @@ var ReferenceAssetsPlugin = function() {
1637
1655
  }
1638
1656
  return to;
1639
1657
  };
1640
- var __toESM = function(mod, isNodeMode, target) {
1658
+ var __toESM = function __toESM(mod, isNodeMode, target) {
1641
1659
  return target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(// If the importer is in node compatibility mode or this is not an ESM
1642
1660
  // file that has been converted to a CommonJS file using a Babel-
1643
1661
  // compatible transform (i.e. "__esModule" has not been set), then set
@@ -1647,7 +1665,7 @@ var ReferenceAssetsPlugin = function() {
1647
1665
  enumerable: true
1648
1666
  }) : target, mod);
1649
1667
  };
1650
- var __toCommonJS = function(mod) {
1668
+ var __toCommonJS = function __toCommonJS(mod) {
1651
1669
  return __copyProps(__defProp({}, "__esModule", {
1652
1670
  value: true
1653
1671
  }), mod);
@@ -1830,7 +1848,7 @@ var ReferenceAssetsPlugin = function() {
1830
1848
  function toError(err) {
1831
1849
  try {
1832
1850
  return _instanceof(err, Error) ? err : new Error("Value that is not an instance of Error was thrown: ".concat(err));
1833
- } catch (e) {
1851
+ } catch (unused) {
1834
1852
  return new Error("Failed to stringify non-instance of Error that was thrown.This is possibly due to the fact that toString() method of the valuedoesn't return a primitive value.");
1835
1853
  }
1836
1854
  }
@@ -2131,7 +2149,7 @@ var ReferenceAssetsPlugin = function() {
2131
2149
  var require_p_defer = __commonJS({
2132
2150
  "../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/p-defer@3.0.0/node_modules/p-defer/index.js": function(exports, module) {
2133
2151
  "use strict";
2134
- var pDefer = function() {
2152
+ var pDefer = function pDefer() {
2135
2153
  var deferred2 = {};
2136
2154
  deferred2.promise = new Promise(function(resolve, reject) {
2137
2155
  deferred2.resolve = resolve;
@@ -2159,39 +2177,39 @@ var ReferenceAssetsPlugin = function() {
2159
2177
  // ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/index.ts
2160
2178
  var src_exports = {};
2161
2179
  __export(src_exports, {
2162
- ReferenceAssetsPlugin: function() {
2180
+ ReferenceAssetsPlugin: function ReferenceAssetsPlugin1() {
2163
2181
  return ReferenceAssetsPlugin;
2164
2182
  },
2165
- actionTransform: function() {
2183
+ actionTransform: function actionTransform1() {
2166
2184
  return actionTransform;
2167
2185
  },
2168
- chatMessageTransform: function() {
2186
+ chatMessageTransform: function chatMessageTransform1() {
2169
2187
  return chatMessageTransform;
2170
2188
  },
2171
- choiceTransform: function() {
2189
+ choiceTransform: function choiceTransform1() {
2172
2190
  return choiceTransform;
2173
2191
  },
2174
- expPropTransform: function() {
2192
+ expPropTransform: function expPropTransform1() {
2175
2193
  return expPropTransform;
2176
2194
  },
2177
- imageTransform: function() {
2195
+ imageTransform: function imageTransform1() {
2178
2196
  return imageTransform;
2179
2197
  },
2180
- infoTransform: function() {
2198
+ infoTransform: function infoTransform1() {
2181
2199
  return infoTransform;
2182
2200
  },
2183
- inputTransform: function() {
2201
+ inputTransform: function inputTransform1() {
2184
2202
  return inputTransform;
2185
2203
  },
2186
- isBackAction: function() {
2204
+ isBackAction: function isBackAction1() {
2187
2205
  return isBackAction;
2188
2206
  },
2189
- transform: function() {
2207
+ transform: function transform() {
2190
2208
  return transform2;
2191
2209
  }
2192
2210
  });
2193
2211
  // ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/assets/input/transform.ts
2194
- var inputTransform = function(asset, options) {
2212
+ var inputTransform = function inputTransform(asset, options) {
2195
2213
  var _options_validation, _options_validation1;
2196
2214
  return _object_spread_props(_object_spread({}, asset), {
2197
2215
  format: function format(val) {
@@ -2258,7 +2276,7 @@ var ReferenceAssetsPlugin = function() {
2258
2276
  }
2259
2277
  return pairs;
2260
2278
  }
2261
- var createSortedArray = function() {
2279
+ var createSortedArray = function createSortedArray() {
2262
2280
  return new import_sorted_array.default([], function(c) {
2263
2281
  return c.matcher.count;
2264
2282
  });
@@ -2374,7 +2392,7 @@ var ReferenceAssetsPlugin = function() {
2374
2392
  ]);
2375
2393
  return AssetTransformPlugin;
2376
2394
  }();
2377
- var transform = function(action, options) {
2395
+ var transform = function transform(action, options) {
2378
2396
  return _object_spread_props(_object_spread({}, action), {
2379
2397
  run: function run() {
2380
2398
  if (action.exp) {
@@ -2390,7 +2408,7 @@ var ReferenceAssetsPlugin = function() {
2390
2408
  }
2391
2409
  });
2392
2410
  };
2393
- var backIconTransform = function(action) {
2411
+ var backIconTransform = function backIconTransform(action) {
2394
2412
  var _action_metaData;
2395
2413
  if (isBackAction(action) && (action === null || action === void 0 ? void 0 : (_action_metaData = action.metaData) === null || _action_metaData === void 0 ? void 0 : _action_metaData.role) === void 0) {
2396
2414
  return _object_spread_props(_object_spread({}, action), {
@@ -2401,17 +2419,17 @@ var ReferenceAssetsPlugin = function() {
2401
2419
  }
2402
2420
  return action;
2403
2421
  };
2404
- var expPropTransform = function(asset) {
2422
+ var expPropTransform = function expPropTransform(asset) {
2423
+ var _ref;
2405
2424
  var _asset_plugins_stringResolver, _asset_plugins, _asset_plugins1, _asset_plugins_stringResolver1, _asset_plugins2;
2406
2425
  var skipArray = (_asset_plugins = asset.plugins) === null || _asset_plugins === void 0 ? void 0 : (_asset_plugins_stringResolver = _asset_plugins.stringResolver) === null || _asset_plugins_stringResolver === void 0 ? void 0 : _asset_plugins_stringResolver.propertiesToSkip;
2407
2426
  if (skipArray && skipArray.indexOf("exp") > 1) {
2408
2427
  return asset;
2409
2428
  }
2410
- var _asset_plugins_stringResolver_propertiesToSkip;
2411
2429
  return _object_spread_props(_object_spread({}, asset), {
2412
2430
  plugins: _object_spread_props(_object_spread({}, asset.plugins), {
2413
2431
  stringResolver: _object_spread_props(_object_spread({}, asset === null || asset === void 0 ? void 0 : (_asset_plugins1 = asset.plugins) === null || _asset_plugins1 === void 0 ? void 0 : _asset_plugins1.stringResolver), {
2414
- propertiesToSkip: _to_consumable_array((_asset_plugins_stringResolver_propertiesToSkip = (_asset_plugins2 = asset.plugins) === null || _asset_plugins2 === void 0 ? void 0 : (_asset_plugins_stringResolver1 = _asset_plugins2.stringResolver) === null || _asset_plugins_stringResolver1 === void 0 ? void 0 : _asset_plugins_stringResolver1.propertiesToSkip) !== null && _asset_plugins_stringResolver_propertiesToSkip !== void 0 ? _asset_plugins_stringResolver_propertiesToSkip : []).concat([
2432
+ propertiesToSkip: _to_consumable_array((_ref = (_asset_plugins2 = asset.plugins) === null || _asset_plugins2 === void 0 ? void 0 : (_asset_plugins_stringResolver1 = _asset_plugins2.stringResolver) === null || _asset_plugins_stringResolver1 === void 0 ? void 0 : _asset_plugins_stringResolver1.propertiesToSkip) !== null && _ref !== void 0 ? _ref : []).concat([
2415
2433
  "exp"
2416
2434
  ])
2417
2435
  })
@@ -2420,7 +2438,7 @@ var ReferenceAssetsPlugin = function() {
2420
2438
  };
2421
2439
  var actionTransform = compose(transform, backIconTransform, composeBefore(expPropTransform));
2422
2440
  // ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/assets/info/transform.ts
2423
- var infoTransform = function(infoAsset) {
2441
+ var infoTransform = function infoTransform(infoAsset) {
2424
2442
  var actions = infoAsset === null || infoAsset === void 0 ? void 0 : infoAsset.actions;
2425
2443
  var segmentedActions = actions === null || actions === void 0 ? void 0 : actions.reduce(function(segmentedActionsArray, action) {
2426
2444
  segmentedActionsArray[isBackAction(action.asset) ? "prev" : "next"].push(action);
@@ -2434,13 +2452,13 @@ var ReferenceAssetsPlugin = function() {
2434
2452
  });
2435
2453
  };
2436
2454
  // ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/assets/image/transform.ts
2437
- var getImageAlt = function(props) {
2455
+ var getImageAlt = function getImageAlt(props) {
2438
2456
  var metaData = props.metaData, placeholder = props.placeholder;
2439
2457
  if (metaData.accessibility) return metaData.accessibility;
2440
2458
  if (placeholder) return placeholder;
2441
2459
  return "Image";
2442
2460
  };
2443
- var imageTransform = function(props) {
2461
+ var imageTransform = function imageTransform(props) {
2444
2462
  var altText = getImageAlt(props);
2445
2463
  var newImage = _object_spread_props(_object_spread({}, props), {
2446
2464
  altText: altText
@@ -2448,7 +2466,7 @@ var ReferenceAssetsPlugin = function() {
2448
2466
  return newImage;
2449
2467
  };
2450
2468
  // ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/assets/choice/transform.ts
2451
- var choiceTransform = function(asset, options) {
2469
+ var choiceTransform = function choiceTransform(asset, options) {
2452
2470
  var _options_validation, _options_validation1;
2453
2471
  var items = asset.items, binding = asset.binding, rest = _object_without_properties(asset, [
2454
2472
  "items",
@@ -2458,7 +2476,7 @@ var ReferenceAssetsPlugin = function() {
2458
2476
  var currentValue = assetHasBinding ? options.data.model.get(binding, {
2459
2477
  includeInvalid: true
2460
2478
  }) : void 0;
2461
- var resetValue = function() {
2479
+ var resetValue = function resetValue() {
2462
2480
  if (assetHasBinding) {
2463
2481
  return options.data.model.set([
2464
2482
  [
@@ -2983,38 +3001,38 @@ var ReferenceAssetsPlugin = function() {
2983
3001
  var import_timm9 = __toESM(require_timm(), 1);
2984
3002
  var import_queue_microtask2 = __toESM(require_queue_microtask(), 1);
2985
3003
  var __defProp2 = Object.defineProperty;
2986
- var __export2 = function(target, all) {
3004
+ var __export2 = function __export2(target, all) {
2987
3005
  for(var name in all)__defProp2(target, name, {
2988
3006
  get: all[name],
2989
3007
  enumerable: true
2990
3008
  });
2991
3009
  };
2992
- var toValue = function(value) {
3010
+ var toValue = function toValue(value) {
2993
3011
  return {
2994
3012
  name: "Value",
2995
3013
  value: value
2996
3014
  };
2997
3015
  };
2998
- var toExpression = function(value) {
3016
+ var toExpression = function toExpression(value) {
2999
3017
  return {
3000
3018
  name: "Expression",
3001
3019
  value: value
3002
3020
  };
3003
3021
  };
3004
- var toPath = function(path) {
3022
+ var toPath = function toPath(path) {
3005
3023
  return {
3006
3024
  name: "PathNode",
3007
3025
  path: path
3008
3026
  };
3009
3027
  };
3010
- var toQuery = function(key, value) {
3028
+ var toQuery = function toQuery(key, value) {
3011
3029
  return {
3012
3030
  name: "Query",
3013
3031
  key: key,
3014
3032
  value: value
3015
3033
  };
3016
3034
  };
3017
- var toConcatenatedNode = function(values) {
3035
+ var toConcatenatedNode = function toConcatenatedNode(values) {
3018
3036
  if (values.length === 1) {
3019
3037
  return values[0];
3020
3038
  }
@@ -3032,7 +3050,7 @@ var ReferenceAssetsPlugin = function() {
3032
3050
  var SINGLE_QUOTE = "'";
3033
3051
  var DOUBLE_QUOTE = '"';
3034
3052
  var BACK_TICK = "`";
3035
- var isIdentifierChar = function(char) {
3053
+ var isIdentifierChar = function isIdentifierChar(char) {
3036
3054
  if (!char) {
3037
3055
  return false;
3038
3056
  }
@@ -3052,10 +3070,10 @@ var ReferenceAssetsPlugin = function() {
3052
3070
  charCode === 125;
3053
3071
  return !matches;
3054
3072
  };
3055
- var parse = function(path) {
3073
+ var parse = function parse(path) {
3056
3074
  var index = 1;
3057
3075
  var ch = path.charAt(0);
3058
- var next = function(expected) {
3076
+ var next = function next(expected) {
3059
3077
  if (expected && ch !== expected) {
3060
3078
  throw new Error("Expected char: ".concat(expected, " but got: ").concat(ch));
3061
3079
  }
@@ -3063,12 +3081,12 @@ var ReferenceAssetsPlugin = function() {
3063
3081
  index += 1;
3064
3082
  return ch;
3065
3083
  };
3066
- var whitespace = function() {
3084
+ var whitespace = function whitespace() {
3067
3085
  while(ch === " "){
3068
3086
  next();
3069
3087
  }
3070
3088
  };
3071
- var identifier = function() {
3089
+ var identifier = function identifier() {
3072
3090
  var allowBoolValue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
3073
3091
  if (!isIdentifierChar(ch)) {
3074
3092
  return;
@@ -3094,7 +3112,7 @@ var ReferenceAssetsPlugin = function() {
3094
3112
  return toValue(value);
3095
3113
  }
3096
3114
  };
3097
- var expression = function() {
3115
+ var expression = function expression() {
3098
3116
  if (ch === BACK_TICK) {
3099
3117
  next(BACK_TICK);
3100
3118
  var exp = ch;
@@ -3110,7 +3128,7 @@ var ReferenceAssetsPlugin = function() {
3110
3128
  }
3111
3129
  }
3112
3130
  };
3113
- var regex = function(match) {
3131
+ var regex = function regex(match) {
3114
3132
  if (!(ch === null || ch === void 0 ? void 0 : ch.match(match))) {
3115
3133
  return;
3116
3134
  }
@@ -3125,7 +3143,7 @@ var ReferenceAssetsPlugin = function() {
3125
3143
  return toValue(value);
3126
3144
  }
3127
3145
  };
3128
- var nestedPath = function() {
3146
+ var nestedPath = function nestedPath() {
3129
3147
  if (ch === OPEN_CURL) {
3130
3148
  next(OPEN_CURL);
3131
3149
  next(OPEN_CURL);
@@ -3135,12 +3153,12 @@ var ReferenceAssetsPlugin = function() {
3135
3153
  return modelRef;
3136
3154
  }
3137
3155
  };
3138
- var simpleSegment = function() {
3156
+ var simpleSegment = function simpleSegment() {
3139
3157
  var allowBoolValue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
3140
- var _nestedPath, _ref;
3158
+ var _ref, _nestedPath;
3141
3159
  return (_ref = (_nestedPath = nestedPath()) !== null && _nestedPath !== void 0 ? _nestedPath : expression()) !== null && _ref !== void 0 ? _ref : identifier(allowBoolValue);
3142
3160
  };
3143
- var segment = function() {
3161
+ var segment = function segment() {
3144
3162
  var segments = [];
3145
3163
  var nextSegment = simpleSegment();
3146
3164
  while(nextSegment !== void 0){
@@ -3152,7 +3170,7 @@ var ReferenceAssetsPlugin = function() {
3152
3170
  }
3153
3171
  return toConcatenatedNode(segments);
3154
3172
  };
3155
- var optionallyQuotedSegment = function() {
3173
+ var optionallyQuotedSegment = function optionallyQuotedSegment() {
3156
3174
  var allowBoolValue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
3157
3175
  whitespace();
3158
3176
  if (ch === SINGLE_QUOTE || ch === DOUBLE_QUOTE) {
@@ -3164,7 +3182,7 @@ var ReferenceAssetsPlugin = function() {
3164
3182
  }
3165
3183
  return simpleSegment(allowBoolValue);
3166
3184
  };
3167
- var equals = function() {
3185
+ var equals = function equals() {
3168
3186
  if (ch !== EQUALS) {
3169
3187
  return false;
3170
3188
  }
@@ -3173,7 +3191,7 @@ var ReferenceAssetsPlugin = function() {
3173
3191
  }
3174
3192
  return true;
3175
3193
  };
3176
- var parseBracket = function() {
3194
+ var parseBracket = function parseBracket() {
3177
3195
  if (ch === OPEN_BRACKET) {
3178
3196
  next(OPEN_BRACKET);
3179
3197
  whitespace();
@@ -3195,7 +3213,7 @@ var ReferenceAssetsPlugin = function() {
3195
3213
  return value;
3196
3214
  }
3197
3215
  };
3198
- var parseSegmentAndBrackets = function() {
3216
+ var parseSegmentAndBrackets = function parseSegmentAndBrackets() {
3199
3217
  var parsed = [];
3200
3218
  var firstSegment = segment();
3201
3219
  if (firstSegment) {
@@ -3212,7 +3230,7 @@ var ReferenceAssetsPlugin = function() {
3212
3230
  }
3213
3231
  return parsed;
3214
3232
  };
3215
- var parsePath = function() {
3233
+ var parsePath = function parsePath() {
3216
3234
  var parts = [];
3217
3235
  var nextSegment = parseSegmentAndBrackets();
3218
3236
  while(nextSegment !== void 0){
@@ -3323,6 +3341,7 @@ var ReferenceAssetsPlugin = function() {
3323
3341
  return _BindingInstance;
3324
3342
  }();
3325
3343
  function resolveBindingAST(bindingPathNode, options, hooks) {
3344
+ var _context_updates;
3326
3345
  var context = {
3327
3346
  updates: {},
3328
3347
  path: []
@@ -3362,8 +3381,8 @@ var ReferenceAssetsPlugin = function() {
3362
3381
  }
3363
3382
  }
3364
3383
  function resolveNode(_node) {
3365
- var _hooks_beforeResolveNode_call;
3366
- var resolvedNode = (_hooks_beforeResolveNode_call = hooks === null || hooks === void 0 ? void 0 : hooks.beforeResolveNode.call(_node, _object_spread({}, context, options))) !== null && _hooks_beforeResolveNode_call !== void 0 ? _hooks_beforeResolveNode_call : _node;
3384
+ var _ref;
3385
+ var resolvedNode = (_ref = hooks === null || hooks === void 0 ? void 0 : hooks.beforeResolveNode.call(_node, _object_spread({}, context, options))) !== null && _ref !== void 0 ? _ref : _node;
3367
3386
  switch(resolvedNode.name){
3368
3387
  case "Expression":
3369
3388
  case "PathNode":
@@ -3399,7 +3418,6 @@ var ReferenceAssetsPlugin = function() {
3399
3418
  }
3400
3419
  }
3401
3420
  bindingPathNode.path.forEach(resolveNode);
3402
- var _context_updates;
3403
3421
  return {
3404
3422
  path: context.path,
3405
3423
  updates: Object.keys((_context_updates = context.updates) !== null && _context_updates !== void 0 ? _context_updates : {}).length > 0 ? context.updates : void 0
@@ -3408,13 +3426,13 @@ var ReferenceAssetsPlugin = function() {
3408
3426
  var BINDING_BRACKETS_REGEX = /[\s()*=`{}'"[\]]/;
3409
3427
  var LAZY_BINDING_REGEX = /^[^.]+(\..+)*$/;
3410
3428
  var DEFAULT_OPTIONS = {
3411
- get: function() {
3429
+ get: function get() {
3412
3430
  throw new Error("Not Implemented");
3413
3431
  },
3414
- set: function() {
3432
+ set: function set() {
3415
3433
  throw new Error("Not Implemented");
3416
3434
  },
3417
- evaluate: function() {
3435
+ evaluate: function evaluate() {
3418
3436
  throw new Error("Not Implemented");
3419
3437
  }
3420
3438
  };
@@ -3437,18 +3455,18 @@ var ReferenceAssetsPlugin = function() {
3437
3455
  * representation of that path.
3438
3456
  */ key: "normalizePath",
3439
3457
  value: function normalizePath(path, resolveOptions) {
3458
+ var _this_parseCache_path;
3440
3459
  if (!BINDING_BRACKETS_REGEX.test(path) && LAZY_BINDING_REGEX.test(path) && this.hooks.skipOptimization.call(path) !== true) {
3441
3460
  return {
3442
3461
  path: path.split("."),
3443
3462
  updates: void 0
3444
3463
  };
3445
3464
  }
3446
- var _this_parseCache_path;
3447
3465
  var ast = (_this_parseCache_path = this.parseCache[path]) !== null && _this_parseCache_path !== void 0 ? _this_parseCache_path : parse(path);
3448
3466
  this.parseCache[path] = ast;
3449
3467
  if ((typeof ast === "undefined" ? "undefined" : _type_of(ast)) !== "object" || !(ast === null || ast === void 0 ? void 0 : ast.status)) {
3450
- var _ast_error;
3451
- throw new TypeError('Cannot normalize path "'.concat(path, '": ').concat((_ast_error = ast === null || ast === void 0 ? void 0 : ast.error) !== null && _ast_error !== void 0 ? _ast_error : "Unknown Error."));
3468
+ var _ref;
3469
+ throw new TypeError('Cannot normalize path "'.concat(path, '": ').concat((_ref = ast === null || ast === void 0 ? void 0 : ast.error) !== null && _ref !== void 0 ? _ref : "Unknown Error."));
3452
3470
  }
3453
3471
  try {
3454
3472
  return resolveBindingAST(ast.path, resolveOptions, this.hooks);
@@ -3481,14 +3499,14 @@ var ReferenceAssetsPlugin = function() {
3481
3499
  var updates = {};
3482
3500
  var joined = Array.isArray(rawBinding) ? rawBinding.join(".") : String(rawBinding);
3483
3501
  var normalizeConfig = {
3484
- getValue: function(path) {
3502
+ getValue: function getValue(path) {
3485
3503
  var normalized2 = _this.normalizePath(path.join("."), normalizeConfig);
3486
3504
  return options.get(_this.getBindingForNormalizedResult(normalized2));
3487
3505
  },
3488
- evaluate: function(exp) {
3506
+ evaluate: function evaluate(exp) {
3489
3507
  return options.evaluate(exp);
3490
3508
  },
3491
- convertToPath: function(path) {
3509
+ convertToPath: function convertToPath(path) {
3492
3510
  if (path === void 0) {
3493
3511
  throw new Error("Attempted to convert undefined value to binding path");
3494
3512
  }
@@ -3553,9 +3571,9 @@ var ReferenceAssetsPlugin = function() {
3553
3571
  /** Grab all of the bindings that this depended on */ key: "getDependencies",
3554
3572
  value: function getDependencies(name) {
3555
3573
  if (name !== void 0) {
3574
+ var _ref;
3556
3575
  var _this_namedDependencySets_name, _this_namedDependencySets;
3557
- var _this_namedDependencySets_name_readDeps;
3558
- return (_this_namedDependencySets_name_readDeps = (_this_namedDependencySets = this.namedDependencySets) === null || _this_namedDependencySets === void 0 ? void 0 : (_this_namedDependencySets_name = _this_namedDependencySets[name]) === null || _this_namedDependencySets_name === void 0 ? void 0 : _this_namedDependencySets_name.readDeps) !== null && _this_namedDependencySets_name_readDeps !== void 0 ? _this_namedDependencySets_name_readDeps : /* @__PURE__ */ new Set();
3576
+ return (_ref = (_this_namedDependencySets = this.namedDependencySets) === null || _this_namedDependencySets === void 0 ? void 0 : (_this_namedDependencySets_name = _this_namedDependencySets[name]) === null || _this_namedDependencySets_name === void 0 ? void 0 : _this_namedDependencySets_name.readDeps) !== null && _ref !== void 0 ? _ref : /* @__PURE__ */ new Set();
3559
3577
  }
3560
3578
  return this.readDeps;
3561
3579
  }
@@ -3577,9 +3595,9 @@ var ReferenceAssetsPlugin = function() {
3577
3595
  /** Grab all of the bindings this wrote to */ key: "getModified",
3578
3596
  value: function getModified(name) {
3579
3597
  if (name !== void 0) {
3598
+ var _ref;
3580
3599
  var _this_namedDependencySets_name, _this_namedDependencySets;
3581
- var _this_namedDependencySets_name_writeDeps;
3582
- return (_this_namedDependencySets_name_writeDeps = (_this_namedDependencySets = this.namedDependencySets) === null || _this_namedDependencySets === void 0 ? void 0 : (_this_namedDependencySets_name = _this_namedDependencySets[name]) === null || _this_namedDependencySets_name === void 0 ? void 0 : _this_namedDependencySets_name.writeDeps) !== null && _this_namedDependencySets_name_writeDeps !== void 0 ? _this_namedDependencySets_name_writeDeps : /* @__PURE__ */ new Set();
3600
+ return (_ref = (_this_namedDependencySets = this.namedDependencySets) === null || _this_namedDependencySets === void 0 ? void 0 : (_this_namedDependencySets_name = _this_namedDependencySets[name]) === null || _this_namedDependencySets_name === void 0 ? void 0 : _this_namedDependencySets_name.writeDeps) !== null && _ref !== void 0 ? _ref : /* @__PURE__ */ new Set();
3583
3601
  }
3584
3602
  return this.writeDeps;
3585
3603
  }
@@ -3901,19 +3919,19 @@ var ReferenceAssetsPlugin = function() {
3901
3919
  var thisStr = "this";
3902
3920
  var evaluator_functions_exports = {};
3903
3921
  __export2(evaluator_functions_exports, {
3904
- conditional: function() {
3922
+ conditional: function conditional1() {
3905
3923
  return conditional;
3906
3924
  },
3907
- deleteDataVal: function() {
3925
+ deleteDataVal: function deleteDataVal1() {
3908
3926
  return deleteDataVal;
3909
3927
  },
3910
- getDataVal: function() {
3928
+ getDataVal: function getDataVal1() {
3911
3929
  return getDataVal;
3912
3930
  },
3913
- setDataVal: function() {
3931
+ setDataVal: function setDataVal1() {
3914
3932
  return setDataVal;
3915
3933
  },
3916
- waitFor: function() {
3934
+ waitFor: function waitFor1() {
3917
3935
  return waitFor;
3918
3936
  }
3919
3937
  });
@@ -3925,7 +3943,7 @@ var ReferenceAssetsPlugin = function() {
3925
3943
  };
3926
3944
  return promise;
3927
3945
  }
3928
- var setDataVal = function(_context, binding, value) {
3946
+ var setDataVal = function setDataVal(_context, binding, value) {
3929
3947
  _context.model.set([
3930
3948
  [
3931
3949
  binding,
@@ -3933,13 +3951,13 @@ var ReferenceAssetsPlugin = function() {
3933
3951
  ]
3934
3952
  ]);
3935
3953
  };
3936
- var getDataVal = function(_context, binding) {
3954
+ var getDataVal = function getDataVal(_context, binding) {
3937
3955
  return _context.model.get(binding);
3938
3956
  };
3939
- var deleteDataVal = function(_context, binding) {
3957
+ var deleteDataVal = function deleteDataVal(_context, binding) {
3940
3958
  return _context.model.delete(binding);
3941
3959
  };
3942
- var conditional = function(ctx, condition, ifTrue, ifFalse) {
3960
+ var conditional = function conditional(ctx, condition, ifTrue, ifFalse) {
3943
3961
  var testResult = ctx.evaluate(condition);
3944
3962
  if (isAwaitable(testResult)) {
3945
3963
  return testResult.awaitableThen(function(resolvedTest) {
@@ -3961,14 +3979,14 @@ var ReferenceAssetsPlugin = function() {
3961
3979
  return null;
3962
3980
  };
3963
3981
  conditional.resolveParams = false;
3964
- var waitFor = function(ctx, promise) {
3982
+ var waitFor = function waitFor(ctx, promise) {
3965
3983
  return makeAwaitable(promise);
3966
3984
  };
3967
- var andandOperator = function(ctx, a, b, async) {
3985
+ var andandOperator = function andandOperator(ctx, a, b, async) {
3968
3986
  return LogicalOperators.and(ctx, a, b, async);
3969
3987
  };
3970
3988
  andandOperator.resolveParams = false;
3971
- var ororOperator = function(ctx, a, b, async) {
3989
+ var ororOperator = function ororOperator(ctx, a, b, async) {
3972
3990
  return LogicalOperators.or(ctx, a, b, async);
3973
3991
  };
3974
3992
  ororOperator.resolveParams = false;
@@ -4094,7 +4112,7 @@ var ReferenceAssetsPlugin = function() {
4094
4112
  }
4095
4113
  };
4096
4114
  var LogicalOperators = {
4097
- and: function(ctx, leftNode, rightNode, async) {
4115
+ and: function and(ctx, leftNode, rightNode, async) {
4098
4116
  var leftResult = ctx.evaluate(leftNode);
4099
4117
  if (async && isAwaitable(leftResult)) {
4100
4118
  return leftResult.awaitableThen(function(awaitedLeft) {
@@ -4105,7 +4123,7 @@ var ReferenceAssetsPlugin = function() {
4105
4123
  }
4106
4124
  return leftResult && ctx.evaluate(rightNode);
4107
4125
  },
4108
- or: function(ctx, leftNode, rightNode, async) {
4126
+ or: function or(ctx, leftNode, rightNode, async) {
4109
4127
  var leftResult = ctx.evaluate(leftNode);
4110
4128
  if (async && isAwaitable(leftResult)) {
4111
4129
  return leftResult.awaitableThen(function(awaitedLeft) {
@@ -4143,10 +4161,10 @@ var ReferenceAssetsPlugin = function() {
4143
4161
  ]))
4144
4162
  };
4145
4163
  this.defaultHookOptions = _object_spread_props(_object_spread({}, defaultOptions), {
4146
- evaluate: function(expr) {
4164
+ evaluate: function evaluate(expr) {
4147
4165
  return _this.evaluate(expr, _this.defaultHookOptions);
4148
4166
  },
4149
- resolveNode: function(node) {
4167
+ resolveNode: function resolveNode(node) {
4150
4168
  return _this._execAST(node, _this.defaultHookOptions);
4151
4169
  }
4152
4170
  });
@@ -4166,12 +4184,12 @@ var ReferenceAssetsPlugin = function() {
4166
4184
  key: "evaluate",
4167
4185
  value: function evaluate(expr, options) {
4168
4186
  var _this = this;
4187
+ var _this_hooks_beforeEvaluate_call;
4169
4188
  var resolvedOpts = this.hooks.resolveOptions.call(_object_spread_props(_object_spread({}, this.defaultHookOptions, options), {
4170
- resolveNode: function(node) {
4189
+ resolveNode: function resolveNode(node) {
4171
4190
  return _this._execAST(node, resolvedOpts);
4172
4191
  }
4173
4192
  }));
4174
- var _this_hooks_beforeEvaluate_call;
4175
4193
  var expression = (_this_hooks_beforeEvaluate_call = this.hooks.beforeEvaluate.call(expr, resolvedOpts)) !== null && _this_hooks_beforeEvaluate_call !== void 0 ? _this_hooks_beforeEvaluate_call : expr;
4176
4194
  while(isObjectExpression(expression)){
4177
4195
  expression = expression.value;
@@ -4295,11 +4313,11 @@ var ReferenceAssetsPlugin = function() {
4295
4313
  key: "_resolveNode",
4296
4314
  value: function _resolveNode(_currentValue, node, options) {
4297
4315
  var _this = this;
4298
- var resolveNode = options.resolveNode, model = options.model;
4299
4316
  var _options_async;
4317
+ var resolveNode = options.resolveNode, model = options.model;
4300
4318
  var isAsync = (_options_async = options.async) !== null && _options_async !== void 0 ? _options_async : false;
4301
4319
  var expressionContext = _object_spread_props(_object_spread({}, options), {
4302
- evaluate: function(expr) {
4320
+ evaluate: function evaluate(expr) {
4303
4321
  return _this.evaluate(expr, options);
4304
4322
  }
4305
4323
  });
@@ -4633,7 +4651,7 @@ var ReferenceAssetsPlugin = function() {
4633
4651
  ]);
4634
4652
  return ProxyLogger;
4635
4653
  }();
4636
- var identify = function(val) {
4654
+ var identify = function identify(val) {
4637
4655
  return val;
4638
4656
  };
4639
4657
  var SchemaController = /*#__PURE__*/ function() {
@@ -4721,6 +4739,7 @@ var ReferenceAssetsPlugin = function() {
4721
4739
  {
4722
4740
  key: "getApparentType",
4723
4741
  value: function getApparentType(binding) {
4742
+ var _schemaType_validation, _baseType_validation;
4724
4743
  var schemaType = this.getType(binding);
4725
4744
  if (schemaType === void 0) {
4726
4745
  return void 0;
@@ -4729,7 +4748,6 @@ var ReferenceAssetsPlugin = function() {
4729
4748
  if (baseType === void 0) {
4730
4749
  return schemaType;
4731
4750
  }
4732
- var _schemaType_validation, _baseType_validation;
4733
4751
  return _object_spread_props(_object_spread({}, baseType, schemaType), {
4734
4752
  validation: _to_consumable_array((_schemaType_validation = schemaType.validation) !== null && _schemaType_validation !== void 0 ? _schemaType_validation : []).concat(_to_consumable_array((_baseType_validation = baseType.validation) !== null && _baseType_validation !== void 0 ? _baseType_validation : []))
4735
4753
  });
@@ -4878,10 +4896,10 @@ var ReferenceAssetsPlugin = function() {
4878
4896
  {
4879
4897
  key: "get",
4880
4898
  value: function get(binding, options, next) {
4899
+ var _ref;
4881
4900
  var _this_shouldIncludeInvalid, _this;
4882
4901
  var val = next === null || next === void 0 ? void 0 : next.get(binding, options);
4883
- var _this_shouldIncludeInvalid1;
4884
- if ((_this_shouldIncludeInvalid1 = (_this_shouldIncludeInvalid = (_this = this).shouldIncludeInvalid) === null || _this_shouldIncludeInvalid === void 0 ? void 0 : _this_shouldIncludeInvalid.call(_this, options)) !== null && _this_shouldIncludeInvalid1 !== void 0 ? _this_shouldIncludeInvalid1 : (options === null || options === void 0 ? void 0 : options.includeInvalid) === true) {
4902
+ if ((_ref = (_this_shouldIncludeInvalid = (_this = this).shouldIncludeInvalid) === null || _this_shouldIncludeInvalid === void 0 ? void 0 : _this_shouldIncludeInvalid.call(_this, options)) !== null && _ref !== void 0 ? _ref : (options === null || options === void 0 ? void 0 : options.includeInvalid) === true) {
4885
4903
  this.shadowModelPaths.forEach(function(shadowValue, shadowBinding) {
4886
4904
  if (shadowBinding === binding) {
4887
4905
  val = shadowValue;
@@ -4979,11 +4997,12 @@ var ReferenceAssetsPlugin = function() {
4979
4997
  templateDepth: 0
4980
4998
  };
4981
4999
  var _this = this;
5000
+ var _this_hooks_onCreateASTNode_call;
4982
5001
  var parsedNode = this.hooks.parseNode.call(obj, type, options);
4983
5002
  if (parsedNode || parsedNode === null) {
4984
5003
  return parsedNode;
4985
5004
  }
4986
- var parseLocalObject = function(currentValue, objToParse) {
5005
+ var parseLocalObject = function parseLocalObject1(currentValue, objToParse) {
4987
5006
  var path = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
4988
5007
  if ((typeof objToParse === "undefined" ? "undefined" : _type_of(objToParse)) !== "object" || objToParse === null) {
4989
5008
  return {
@@ -5053,30 +5072,29 @@ var ReferenceAssetsPlugin = function() {
5053
5072
  child.value.parent = parent;
5054
5073
  });
5055
5074
  }
5056
- var _this_hooks_onCreateASTNode_call;
5057
5075
  return (_this_hooks_onCreateASTNode_call = this.hooks.onCreateASTNode.call(baseAst, obj)) !== null && _this_hooks_onCreateASTNode_call !== void 0 ? _this_hooks_onCreateASTNode_call : null;
5058
5076
  }
5059
5077
  }
5060
5078
  ]);
5061
5079
  return Parser;
5062
5080
  }();
5063
- var withContext = function(model) {
5081
+ var withContext = function withContext(model) {
5064
5082
  return {
5065
- get: function(binding, options) {
5083
+ get: function get(binding, options) {
5066
5084
  return model.get(binding, _object_spread({
5067
5085
  context: {
5068
5086
  model: model
5069
5087
  }
5070
5088
  }, options));
5071
5089
  },
5072
- set: function(transaction, options) {
5090
+ set: function set(transaction, options) {
5073
5091
  return model.set(transaction, _object_spread({
5074
5092
  context: {
5075
5093
  model: model
5076
5094
  }
5077
5095
  }, options));
5078
5096
  },
5079
- delete: function(binding, options) {
5097
+ delete: function _delete(binding, options) {
5080
5098
  return model.delete(binding, _object_spread({
5081
5099
  context: {
5082
5100
  model: model
@@ -5115,16 +5133,16 @@ var ReferenceAssetsPlugin = function() {
5115
5133
  {
5116
5134
  key: "update",
5117
5135
  value: function update(dataChanges, nodeChanges) {
5136
+ var _ref;
5118
5137
  this.hooks.beforeUpdate.call(dataChanges);
5119
5138
  var resolveCache = /* @__PURE__ */ new Map();
5120
5139
  this.idCache.clear();
5121
5140
  var prevASTMap = new Map(this.ASTMap);
5122
5141
  this.ASTMap.clear();
5123
5142
  var realNodeChanges = /* @__PURE__ */ new Set();
5124
- var _nodeChanges_values;
5125
5143
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
5126
5144
  try {
5127
- for(var _iterator = ((_nodeChanges_values = nodeChanges === null || nodeChanges === void 0 ? void 0 : nodeChanges.values()) !== null && _nodeChanges_values !== void 0 ? _nodeChanges_values : [])[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
5145
+ for(var _iterator = ((_ref = nodeChanges === null || nodeChanges === void 0 ? void 0 : nodeChanges.values()) !== null && _ref !== void 0 ? _ref : [])[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
5128
5146
  var node = _step.value;
5129
5147
  var current = node;
5130
5148
  while(current){
@@ -5207,6 +5225,7 @@ var ReferenceAssetsPlugin = function() {
5207
5225
  key: "computeTree",
5208
5226
  value: function computeTree(node, rawParent, dataChanges, cacheUpdate, options, partiallyResolvedParent, prevASTMap, nodeChanges) {
5209
5227
  var _this = this;
5228
+ var _this_hooks_beforeResolve_call;
5210
5229
  var dependencyModel = new DependencyModel(options.data.model);
5211
5230
  dependencyModel.trackSubset("core");
5212
5231
  var depModelWithParser = withContext(withParser(dependencyModel, this.options.parseBinding));
@@ -5214,7 +5233,7 @@ var ReferenceAssetsPlugin = function() {
5214
5233
  data: _object_spread_props(_object_spread({}, options.data), {
5215
5234
  model: depModelWithParser
5216
5235
  }),
5217
- evaluate: function(exp) {
5236
+ evaluate: function evaluate(exp) {
5218
5237
  return _this.options.evaluator.evaluate(exp, {
5219
5238
  model: depModelWithParser
5220
5239
  });
@@ -5230,14 +5249,14 @@ var ReferenceAssetsPlugin = function() {
5230
5249
  var update2 = _object_spread_props(_object_spread({}, previousResult), {
5231
5250
  updated: false
5232
5251
  });
5233
- var repopulateASTMapFromCache = function(resolvedNode, AST, ASTParent) {
5252
+ var repopulateASTMapFromCache = function repopulateASTMapFromCache1(resolvedNode, AST, ASTParent) {
5234
5253
  var resolvedASTLocal = resolvedNode.node;
5235
5254
  _this.ASTMap.set(resolvedASTLocal, AST);
5236
5255
  var resolvedUpdate = _object_spread_props(_object_spread({}, resolvedNode), {
5237
5256
  updated: false
5238
5257
  });
5239
5258
  cacheUpdate.set(AST, resolvedUpdate);
5240
- var handleChildNode = function(childNode) {
5259
+ var handleChildNode = function handleChildNode(childNode) {
5241
5260
  var _prevASTMap_get;
5242
5261
  var originalChildNode = (_prevASTMap_get = prevASTMap.get(childNode)) !== null && _prevASTMap_get !== void 0 ? _prevASTMap_get : childNode;
5243
5262
  var previousChildResult = _this.getPreviousResult(originalChildNode);
@@ -5262,7 +5281,6 @@ var ReferenceAssetsPlugin = function() {
5262
5281
  var clonedNode = _object_spread_props(_object_spread({}, this.cloneNode(node)), {
5263
5282
  parent: partiallyResolvedParent
5264
5283
  });
5265
- var _this_hooks_beforeResolve_call;
5266
5284
  var resolvedAST = (_this_hooks_beforeResolve_call = this.hooks.beforeResolve.call(clonedNode, resolveOptions)) !== null && _this_hooks_beforeResolve_call !== void 0 ? _this_hooks_beforeResolve_call : {
5267
5285
  type: "empty"
5268
5286
  };
@@ -5322,7 +5340,7 @@ var ReferenceAssetsPlugin = function() {
5322
5340
  resolved = previousResult === null || previousResult === void 0 ? void 0 : previousResult.value;
5323
5341
  }
5324
5342
  resolved = this.hooks.afterResolve.call(resolved, resolvedAST, _object_spread_props(_object_spread({}, resolveOptions), {
5325
- getDependencies: function(scope) {
5343
+ getDependencies: function getDependencies(scope) {
5326
5344
  return dependencyModel.getDependencies(scope);
5327
5345
  }
5328
5346
  }));
@@ -5760,7 +5778,7 @@ var ReferenceAssetsPlugin = function() {
5760
5778
  ]);
5761
5779
  return TemplatePlugin;
5762
5780
  }();
5763
- var createPatternMatcher = function(start, end) {
5781
+ var createPatternMatcher = function createPatternMatcher(start, end) {
5764
5782
  return function(testStr) {
5765
5783
  var startLocation = testStr.indexOf(start);
5766
5784
  if (startLocation === -1) {
@@ -5800,18 +5818,18 @@ var ReferenceAssetsPlugin = function() {
5800
5818
  });
5801
5819
  return newNode;
5802
5820
  }
5803
- var findBasePath = function(node, resolver) {
5821
+ var findBasePath = function findBasePath1(node, resolver) {
5804
5822
  var parentNode = node.parent;
5805
5823
  if (!parentNode) {
5806
5824
  return [];
5807
5825
  }
5808
5826
  if ("children" in parentNode) {
5827
+ var _ref;
5809
5828
  var _parentNode_children_find, _parentNode_children;
5810
5829
  var original = resolver.getSourceNode(node);
5811
- var _parentNode_children_find_path;
5812
- return (_parentNode_children_find_path = (_parentNode_children = parentNode.children) === null || _parentNode_children === void 0 ? void 0 : (_parentNode_children_find = _parentNode_children.find(function(child) {
5830
+ return (_ref = (_parentNode_children = parentNode.children) === null || _parentNode_children === void 0 ? void 0 : (_parentNode_children_find = _parentNode_children.find(function(child) {
5813
5831
  return child.value === original;
5814
- })) === null || _parentNode_children_find === void 0 ? void 0 : _parentNode_children_find.path) !== null && _parentNode_children_find_path !== void 0 ? _parentNode_children_find_path : [];
5832
+ })) === null || _parentNode_children_find === void 0 ? void 0 : _parentNode_children_find.path) !== null && _ref !== void 0 ? _ref : [];
5815
5833
  }
5816
5834
  if (parentNode.type !== "multi-node") {
5817
5835
  return [];
@@ -5836,9 +5854,9 @@ var ReferenceAssetsPlugin = function() {
5836
5854
  var _node_parent, _node_parent_parent, _node_parent1, _node_parent_parent1, _node_parent2, _node_parent_parent_value;
5837
5855
  var propsToSkip;
5838
5856
  if (node.type === "asset" || node.type === "view") {
5857
+ var _ref;
5839
5858
  var _node_plugins_stringResolver, _node_plugins, _node_value;
5840
- var _node_plugins_stringResolver_propertiesToSkip;
5841
- propsToSkip = new Set((_node_plugins_stringResolver_propertiesToSkip = (_node_plugins = node.plugins) === null || _node_plugins === void 0 ? void 0 : (_node_plugins_stringResolver = _node_plugins.stringResolver) === null || _node_plugins_stringResolver === void 0 ? void 0 : _node_plugins_stringResolver.propertiesToSkip) !== null && _node_plugins_stringResolver_propertiesToSkip !== void 0 ? _node_plugins_stringResolver_propertiesToSkip : [
5859
+ propsToSkip = new Set((_ref = (_node_plugins = node.plugins) === null || _node_plugins === void 0 ? void 0 : (_node_plugins_stringResolver = _node_plugins.stringResolver) === null || _node_plugins_stringResolver === void 0 ? void 0 : _node_plugins_stringResolver.propertiesToSkip) !== null && _ref !== void 0 ? _ref : [
5842
5860
  "exp"
5843
5861
  ]);
5844
5862
  if ((_node_value = node.value) === null || _node_value === void 0 ? void 0 : _node_value.id) {
@@ -6259,11 +6277,11 @@ var ReferenceAssetsPlugin = function() {
6259
6277
  this.stateStore.clear();
6260
6278
  view.hooks.resolver.tap("asset-transform", function(resolver) {
6261
6279
  var lastUpdatedNode;
6262
- var updateState = function(node) {
6280
+ var updateState = function updateState(node) {
6263
6281
  lastUpdatedNode = node;
6264
6282
  view.update(/* @__PURE__ */ new Set());
6265
6283
  };
6266
- var getStore = function(node, stepKey) {
6284
+ var getStore = function getStore(node, stepKey) {
6267
6285
  var store;
6268
6286
  var countKey = stepKey === _this.resolveSymbol ? _this.resolveCountSymbol : _this.beforeResolveCountSymbol;
6269
6287
  var storedState = _this.stateStore.get(node);
@@ -6277,10 +6295,10 @@ var ReferenceAssetsPlugin = function() {
6277
6295
  _this.stateStore.set(node, store);
6278
6296
  }
6279
6297
  return {
6280
- useSharedState: function(key) {
6298
+ useSharedState: function useSharedState(key) {
6281
6299
  return store.useSharedState(key);
6282
6300
  },
6283
- useLocalState: function(initialState) {
6301
+ useLocalState: function useLocalState(initialState) {
6284
6302
  return store.getLocalStateFunction(stepKey, countKey)(initialState);
6285
6303
  }
6286
6304
  };
@@ -6642,7 +6660,7 @@ var ReferenceAssetsPlugin = function() {
6642
6660
  return options;
6643
6661
  }
6644
6662
  tracked.delete(node);
6645
- var track = function(binding) {
6663
+ var track = function track(binding) {
6646
6664
  var _this_options_callbacks_onAdd, _this_options_callbacks;
6647
6665
  var parsed = isBinding(binding) ? binding : _this.options.parseBinding(binding);
6648
6666
  if (tracked.has(node)) {
@@ -6668,7 +6686,7 @@ var ReferenceAssetsPlugin = function() {
6668
6686
  };
6669
6687
  return _object_spread_props(_object_spread({}, options), {
6670
6688
  validation: _object_spread_props(_object_spread({}, options.validation), {
6671
- get: function(binding, getOptions) {
6689
+ get: function get(binding, getOptions) {
6672
6690
  var _options_validation__getValidationForBinding, _options_validation;
6673
6691
  if (getOptions === null || getOptions === void 0 ? void 0 : getOptions.track) {
6674
6692
  track(binding);
@@ -6680,14 +6698,14 @@ var ReferenceAssetsPlugin = function() {
6680
6698
  return firstFieldEOW;
6681
6699
  },
6682
6700
  getValidationsForBinding: function getValidationsForBinding(binding, getOptions) {
6701
+ var _ref;
6683
6702
  var _options_validation__getValidationForBinding, _options_validation;
6684
6703
  if (getOptions === null || getOptions === void 0 ? void 0 : getOptions.track) {
6685
6704
  track(binding);
6686
6705
  }
6687
- var _options_validation__getValidationForBinding_getAll;
6688
- return (_options_validation__getValidationForBinding_getAll = (_options_validation = options.validation) === null || _options_validation === void 0 ? void 0 : (_options_validation__getValidationForBinding = _options_validation._getValidationForBinding(binding)) === null || _options_validation__getValidationForBinding === void 0 ? void 0 : _options_validation__getValidationForBinding.getAll(getOptions)) !== null && _options_validation__getValidationForBinding_getAll !== void 0 ? _options_validation__getValidationForBinding_getAll : [];
6706
+ return (_ref = (_options_validation = options.validation) === null || _options_validation === void 0 ? void 0 : (_options_validation__getValidationForBinding = _options_validation._getValidationForBinding(binding)) === null || _options_validation__getValidationForBinding === void 0 ? void 0 : _options_validation__getValidationForBinding.getAll(getOptions)) !== null && _ref !== void 0 ? _ref : [];
6689
6707
  },
6690
- getChildren: function(type) {
6708
+ getChildren: function getChildren(type) {
6691
6709
  var _lastComputedBindingTree_get;
6692
6710
  var validations = new Array();
6693
6711
  (_lastComputedBindingTree_get = lastComputedBindingTree.get(node)) === null || _lastComputedBindingTree_get === void 0 ? void 0 : _lastComputedBindingTree_get.forEach(function(binding) {
@@ -6699,7 +6717,7 @@ var ReferenceAssetsPlugin = function() {
6699
6717
  });
6700
6718
  return validations;
6701
6719
  },
6702
- getValidationsForSection: function() {
6720
+ getValidationsForSection: function getValidationsForSection() {
6703
6721
  var _lastSectionBindingTree_get;
6704
6722
  var validations = new Array();
6705
6723
  (_lastSectionBindingTree_get = lastSectionBindingTree.get(node)) === null || _lastSectionBindingTree_get === void 0 ? void 0 : _lastSectionBindingTree_get.forEach(function(binding) {
@@ -6711,7 +6729,7 @@ var ReferenceAssetsPlugin = function() {
6711
6729
  });
6712
6730
  return validations;
6713
6731
  },
6714
- register: function(registerOptions) {
6732
+ register: function register(registerOptions) {
6715
6733
  if ((registerOptions === null || registerOptions === void 0 ? void 0 : registerOptions.type) === "section") {
6716
6734
  if (!sections.has(node)) {
6717
6735
  sections.set(node, /* @__PURE__ */ new Set());
@@ -6856,10 +6874,10 @@ var ReferenceAssetsPlugin = function() {
6856
6874
  value: function runApplicableValidations(runner, canDismiss, phase) {
6857
6875
  var _this = this;
6858
6876
  this.applicableValidations = this.applicableValidations.map(function(originalValue) {
6877
+ var _originalValue_value_blocking, _response_message, _obj_value_displayTarget;
6859
6878
  if (originalValue.state === "dismissed") {
6860
6879
  return originalValue;
6861
6880
  }
6862
- var _originalValue_value_blocking;
6863
6881
  var blocking = (_originalValue_value_blocking = originalValue.value.blocking) !== null && _originalValue_value_blocking !== void 0 ? _originalValue_value_blocking : originalValue.value.severity === "warning" && "once" || true;
6864
6882
  var obj = (0, import_timm9.setIn)(originalValue, [
6865
6883
  "value",
@@ -6881,7 +6899,6 @@ var ReferenceAssetsPlugin = function() {
6881
6899
  }
6882
6900
  }
6883
6901
  var response = runner(obj.value);
6884
- var _response_message, _obj_value_displayTarget;
6885
6902
  var newState = {
6886
6903
  type: obj.type,
6887
6904
  value: obj.value,
@@ -6966,14 +6983,14 @@ var ReferenceAssetsPlugin = function() {
6966
6983
  var _this = this;
6967
6984
  return [
6968
6985
  {
6969
- set: function(transaction, options, next) {
6970
- var _next_set;
6971
- return (_next_set = next === null || next === void 0 ? void 0 : next.set(transaction, options)) !== null && _next_set !== void 0 ? _next_set : [];
6986
+ set: function set(transaction, options, next) {
6987
+ var _ref;
6988
+ return (_ref = next === null || next === void 0 ? void 0 : next.set(transaction, options)) !== null && _ref !== void 0 ? _ref : [];
6972
6989
  },
6973
- get: function(binding, options, next) {
6990
+ get: function get(binding, options, next) {
6974
6991
  return next === null || next === void 0 ? void 0 : next.get(binding, options);
6975
6992
  },
6976
- delete: function(binding, options, next) {
6993
+ delete: function _delete(binding, options, next) {
6977
6994
  _this.validations = removeBindingAndChildrenFromMap(_this.validations, binding);
6978
6995
  return next === null || next === void 0 ? void 0 : next.delete(binding, options);
6979
6996
  }
@@ -7036,11 +7053,11 @@ var ReferenceAssetsPlugin = function() {
7036
7053
  {
7037
7054
  source: VIEW_VALIDATION_PROVIDER_NAME,
7038
7055
  provider: {
7039
- getValidationsForBinding: function(binding) {
7056
+ getValidationsForBinding: function getValidationsForBinding(binding) {
7040
7057
  var _this_viewValidationProvider_getValidationsForBinding, _this_viewValidationProvider;
7041
7058
  return (_this_viewValidationProvider = _this.viewValidationProvider) === null || _this_viewValidationProvider === void 0 ? void 0 : (_this_viewValidationProvider_getValidationsForBinding = _this_viewValidationProvider.getValidationsForBinding) === null || _this_viewValidationProvider_getValidationsForBinding === void 0 ? void 0 : _this_viewValidationProvider_getValidationsForBinding.call(_this_viewValidationProvider, binding);
7042
7059
  },
7043
- getValidationsForView: function() {
7060
+ getValidationsForView: function getValidationsForView() {
7044
7061
  var _this_viewValidationProvider_getValidationsForView, _this_viewValidationProvider;
7045
7062
  return (_this_viewValidationProvider = _this.viewValidationProvider) === null || _this_viewValidationProvider === void 0 ? void 0 : (_this_viewValidationProvider_getValidationsForView = _this_viewValidationProvider.getValidationsForView) === null || _this_viewValidationProvider_getValidationsForView === void 0 ? void 0 : _this_viewValidationProvider_getValidationsForView.call(_this_viewValidationProvider);
7046
7063
  }
@@ -7067,7 +7084,7 @@ var ReferenceAssetsPlugin = function() {
7067
7084
  }
7068
7085
  var bindingTrackerPlugin = new ValidationBindingTrackerViewPlugin(_object_spread_props(_object_spread({}, this.options), {
7069
7086
  callbacks: {
7070
- onAdd: function(binding) {
7087
+ onAdd: function onAdd(binding) {
7071
7088
  if (!_this.options || _this.getValidationForBinding(binding) !== void 0) {
7072
7089
  return;
7073
7090
  }
@@ -7111,11 +7128,11 @@ var ReferenceAssetsPlugin = function() {
7111
7128
  var _this_options;
7112
7129
  var possibleValidations = this.getValidationProviders().reduce(function(vals, provider) {
7113
7130
  var _vals;
7131
+ var _ref;
7114
7132
  var _provider_provider_getValidationsForBinding, _provider_provider_getValidationsForBinding1, _provider_provider;
7115
- var _provider_provider_getValidationsForBinding_map;
7116
- (_vals = vals).push.apply(_vals, _to_consumable_array((_provider_provider_getValidationsForBinding_map = (_provider_provider_getValidationsForBinding1 = (_provider_provider = provider.provider).getValidationsForBinding) === null || _provider_provider_getValidationsForBinding1 === void 0 ? void 0 : (_provider_provider_getValidationsForBinding = _provider_provider_getValidationsForBinding1.call(_provider_provider, binding)) === null || _provider_provider_getValidationsForBinding === void 0 ? void 0 : _provider_provider_getValidationsForBinding.map(function(valObj) {
7133
+ (_vals = vals).push.apply(_vals, _to_consumable_array((_ref = (_provider_provider_getValidationsForBinding1 = (_provider_provider = provider.provider).getValidationsForBinding) === null || _provider_provider_getValidationsForBinding1 === void 0 ? void 0 : (_provider_provider_getValidationsForBinding = _provider_provider_getValidationsForBinding1.call(_provider_provider, binding)) === null || _provider_provider_getValidationsForBinding === void 0 ? void 0 : _provider_provider_getValidationsForBinding.map(function(valObj) {
7117
7134
  return _object_spread_props(_object_spread({}, valObj), _define_property({}, VALIDATION_PROVIDER_NAME_SYMBOL, provider.source));
7118
- })) !== null && _provider_provider_getValidationsForBinding_map !== void 0 ? _provider_provider_getValidationsForBinding_map : []));
7135
+ })) !== null && _ref !== void 0 ? _ref : []));
7119
7136
  return vals;
7120
7137
  }, []);
7121
7138
  if (possibleValidations.length === 0) {
@@ -7156,10 +7173,10 @@ var ReferenceAssetsPlugin = function() {
7156
7173
  key: "validationRunner",
7157
7174
  value: function validationRunner(validationObj, binding) {
7158
7175
  var context = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : this.options;
7176
+ var _validationObj_handler;
7159
7177
  if (!context) {
7160
7178
  throw new Error("No context provided to validation runner");
7161
7179
  }
7162
- var _validationObj_handler;
7163
7180
  var handler = (_validationObj_handler = validationObj.handler) !== null && _validationObj_handler !== void 0 ? _validationObj_handler : this.getValidator(validationObj.type);
7164
7181
  var weakBindings = /* @__PURE__ */ new Set();
7165
7182
  var model = {
@@ -7173,7 +7190,7 @@ var ReferenceAssetsPlugin = function() {
7173
7190
  delete: context.model.delete
7174
7191
  };
7175
7192
  var result = handler === null || handler === void 0 ? void 0 : handler(_object_spread_props(_object_spread({}, context), {
7176
- evaluate: function(exp) {
7193
+ evaluate: function evaluate(exp) {
7177
7194
  var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
7178
7195
  model: model
7179
7196
  };
@@ -7211,7 +7228,7 @@ var ReferenceAssetsPlugin = function() {
7211
7228
  var _this = this;
7212
7229
  var isNavigationTrigger = trigger === "navigation";
7213
7230
  var lastActiveBindings = this.activeBindings;
7214
- var updateValidations = function(dismissValidations) {
7231
+ var updateValidations = function updateValidations(dismissValidations) {
7215
7232
  _this.getBindings().forEach(function(binding) {
7216
7233
  var _this_validations_get;
7217
7234
  (_this_validations_get = _this.validations.get(binding)) === null || _this_validations_get === void 0 ? void 0 : _this_validations_get.update(trigger, dismissValidations, function(obj) {
@@ -7256,9 +7273,9 @@ var ReferenceAssetsPlugin = function() {
7256
7273
  {
7257
7274
  key: "getBindings",
7258
7275
  value: function getBindings() {
7276
+ var _ref;
7259
7277
  var _this_tracker;
7260
- var _this_tracker_getBindings;
7261
- return (_this_tracker_getBindings = (_this_tracker = this.tracker) === null || _this_tracker === void 0 ? void 0 : _this_tracker.getBindings()) !== null && _this_tracker_getBindings !== void 0 ? _this_tracker_getBindings : /* @__PURE__ */ new Set();
7278
+ return (_ref = (_this_tracker = this.tracker) === null || _this_tracker === void 0 ? void 0 : _this_tracker.getBindings()) !== null && _ref !== void 0 ? _ref : /* @__PURE__ */ new Set();
7262
7279
  }
7263
7280
  },
7264
7281
  {
@@ -7307,10 +7324,10 @@ var ReferenceAssetsPlugin = function() {
7307
7324
  value: function forView(parser) {
7308
7325
  var _this = this;
7309
7326
  return {
7310
- _getValidationForBinding: function(binding) {
7327
+ _getValidationForBinding: function _getValidationForBinding(binding) {
7311
7328
  return _this.getValidationForBinding(isBinding(binding) ? binding : parser(binding));
7312
7329
  },
7313
- getAll: function() {
7330
+ getAll: function getAll() {
7314
7331
  var bindings = _this.getBindings();
7315
7332
  if (bindings.size === 0) {
7316
7333
  return void 0;
@@ -7337,13 +7354,13 @@ var ReferenceAssetsPlugin = function() {
7337
7354
  getValidationsForSection: function getValidationsForSection() {
7338
7355
  throw new Error("Error rollup should be provided by the view plugin");
7339
7356
  },
7340
- track: function() {
7357
+ track: function track() {
7341
7358
  throw new Error("Tracking should be provided by the view plugin");
7342
7359
  },
7343
- register: function() {
7360
+ register: function register() {
7344
7361
  throw new Error("Section functionality should be provided by the view plugin");
7345
7362
  },
7346
- type: function(binding) {
7363
+ type: function type(binding) {
7347
7364
  return _this.schema.getType(isBinding(binding) ? binding : parser(binding));
7348
7365
  }
7349
7366
  };
@@ -7352,9 +7369,9 @@ var ReferenceAssetsPlugin = function() {
7352
7369
  ]);
7353
7370
  return ValidationController;
7354
7371
  }();
7355
- var mergeSets = function(setA, setB) {
7356
- var _setA_values, _setB_values;
7357
- return /* @__PURE__ */ new Set(_to_consumable_array((_setA_values = setA === null || setA === void 0 ? void 0 : setA.values()) !== null && _setA_values !== void 0 ? _setA_values : []).concat(_to_consumable_array((_setB_values = setB === null || setB === void 0 ? void 0 : setB.values()) !== null && _setB_values !== void 0 ? _setB_values : [])));
7372
+ var mergeSets = function mergeSets(setA, setB) {
7373
+ var _ref, _ref1;
7374
+ return /* @__PURE__ */ new Set(_to_consumable_array((_ref = setA === null || setA === void 0 ? void 0 : setA.values()) !== null && _ref !== void 0 ? _ref : []).concat(_to_consumable_array((_ref1 = setB === null || setB === void 0 ? void 0 : setB.values()) !== null && _ref1 !== void 0 ? _ref1 : [])));
7358
7375
  };
7359
7376
  var ViewController = /*#__PURE__*/ function() {
7360
7377
  function ViewController(initialViews, options) {
@@ -7381,7 +7398,7 @@ var ReferenceAssetsPlugin = function() {
7381
7398
  }
7382
7399
  });
7383
7400
  });
7384
- var update = function(updates) {
7401
+ var update = function update(updates) {
7385
7402
  var silent = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
7386
7403
  if (_this1.currentView) {
7387
7404
  if (_this1.optimizeUpdates) {
@@ -7392,10 +7409,10 @@ var ReferenceAssetsPlugin = function() {
7392
7409
  }
7393
7410
  };
7394
7411
  options.model.hooks.onUpdate.tap("viewController", function(updates, updateOptions) {
7395
- var _updateOptions_silent;
7412
+ var _ref;
7396
7413
  update(new Set(updates.map(function(t2) {
7397
7414
  return t2.binding;
7398
- })), (_updateOptions_silent = updateOptions === null || updateOptions === void 0 ? void 0 : updateOptions.silent) !== null && _updateOptions_silent !== void 0 ? _updateOptions_silent : false);
7415
+ })), (_ref = updateOptions === null || updateOptions === void 0 ? void 0 : updateOptions.silent) !== null && _ref !== void 0 ? _ref : false);
7399
7416
  });
7400
7417
  options.model.hooks.onDelete.tap("viewController", function(binding) {
7401
7418
  var parentBinding = binding.parent();
@@ -7430,8 +7447,8 @@ var ReferenceAssetsPlugin = function() {
7430
7447
  if (!this.pendingUpdate.scheduled && !silent) {
7431
7448
  this.pendingUpdate.scheduled = true;
7432
7449
  (0, import_queue_microtask2.default)(function() {
7433
- var _this_currentView;
7434
7450
  var _this_pendingUpdate;
7451
+ var _this_currentView;
7435
7452
  var _ref = (_this_pendingUpdate = _this.pendingUpdate) !== null && _this_pendingUpdate !== void 0 ? _this_pendingUpdate : {}, changedBindings = _ref.changedBindings, changedNodes = _ref.changedNodes;
7436
7453
  _this.pendingUpdate = void 0;
7437
7454
  (_this_currentView = _this.currentView) === null || _this_currentView === void 0 ? void 0 : _this_currentView.update(changedBindings, changedNodes);
@@ -7756,10 +7773,10 @@ var ReferenceAssetsPlugin = function() {
7756
7773
  {
7757
7774
  key: "getConstants",
7758
7775
  value: function getConstants(key, namespace, fallback) {
7776
+ var _ref, _ref1;
7759
7777
  var _this_tempStore_get, _this_store_get;
7760
7778
  var path = new BindingInstance(key);
7761
- var _this_tempStore_get_get, _ref;
7762
- return (_ref = (_this_tempStore_get_get = (_this_tempStore_get = this.tempStore.get(namespace)) === null || _this_tempStore_get === void 0 ? void 0 : _this_tempStore_get.get(path)) !== null && _this_tempStore_get_get !== void 0 ? _this_tempStore_get_get : (_this_store_get = this.store.get(namespace)) === null || _this_store_get === void 0 ? void 0 : _this_store_get.get(path)) !== null && _ref !== void 0 ? _ref : fallback;
7779
+ return (_ref = (_ref1 = (_this_tempStore_get = this.tempStore.get(namespace)) === null || _this_tempStore_get === void 0 ? void 0 : _this_tempStore_get.get(path)) !== null && _ref1 !== void 0 ? _ref1 : (_this_store_get = this.store.get(namespace)) === null || _this_store_get === void 0 ? void 0 : _this_store_get.get(path)) !== null && _ref !== void 0 ? _ref : fallback;
7763
7780
  }
7764
7781
  },
7765
7782
  {
@@ -7800,7 +7817,7 @@ var ReferenceAssetsPlugin = function() {
7800
7817
  value: function apply(player) {
7801
7818
  var _this = this;
7802
7819
  var expressionEvaluator;
7803
- var handleEval = function(exp) {
7820
+ var handleEval = function handleEval(exp) {
7804
7821
  if (exp) {
7805
7822
  if ((typeof exp === "undefined" ? "undefined" : _type_of(exp)) === "object" && "exp" in exp) {
7806
7823
  expressionEvaluator === null || expressionEvaluator === void 0 ? void 0 : expressionEvaluator.evaluate(exp.exp);
@@ -7821,7 +7838,7 @@ var ReferenceAssetsPlugin = function() {
7821
7838
  return handleEval(exp);
7822
7839
  });
7823
7840
  flow.hooks.resolveTransitionNode.intercept({
7824
- call: function(nextState) {
7841
+ call: function call(nextState) {
7825
7842
  if (nextState === null || nextState === void 0 ? void 0 : nextState.onStart) {
7826
7843
  handleEval(nextState.onStart);
7827
7844
  }
@@ -7834,13 +7851,13 @@ var ReferenceAssetsPlugin = function() {
7834
7851
  ]);
7835
7852
  return FlowExpPlugin;
7836
7853
  }();
7837
- var createFormatFunction = function(schema) {
7838
- var handler = function(ctx, value, formatName) {
7854
+ var createFormatFunction = function createFormatFunction(schema) {
7855
+ var handler = function handler(ctx, value, formatName) {
7856
+ var _ref;
7839
7857
  var _schema_getFormatterForType;
7840
- var _schema_getFormatterForType_format;
7841
- return (_schema_getFormatterForType_format = (_schema_getFormatterForType = schema.getFormatterForType({
7858
+ return (_ref = (_schema_getFormatterForType = schema.getFormatterForType({
7842
7859
  type: formatName
7843
- })) === null || _schema_getFormatterForType === void 0 ? void 0 : _schema_getFormatterForType.format(value)) !== null && _schema_getFormatterForType_format !== void 0 ? _schema_getFormatterForType_format : value;
7860
+ })) === null || _schema_getFormatterForType === void 0 ? void 0 : _schema_getFormatterForType.format(value)) !== null && _ref !== void 0 ? _ref : value;
7844
7861
  };
7845
7862
  return handler;
7846
7863
  };
@@ -7892,8 +7909,8 @@ var ReferenceAssetsPlugin = function() {
7892
7909
  ref: Symbol("not-started"),
7893
7910
  status: "not-started"
7894
7911
  };
7895
- var PLAYER_VERSION = true ? "0.15.3-next.1" : "unknown";
7896
- var COMMIT = true ? "7b6765274489b704ad1f1bac010582c227381c78" : "unknown";
7912
+ var PLAYER_VERSION = true ? "0.15.3-next.2" : "unknown";
7913
+ var COMMIT = true ? "21f4b09d55c325c5fe951d2fd08caaebb81db483" : "unknown";
7897
7914
  var _Player = /*#__PURE__*/ function() {
7898
7915
  function _Player2(config) {
7899
7916
  var _this = this;
@@ -8008,13 +8025,13 @@ var ReferenceAssetsPlugin = function() {
8008
8025
  var expressionEvaluator;
8009
8026
  var dataController;
8010
8027
  var pathResolver = new BindingParser({
8011
- get: function(binding) {
8028
+ get: function get(binding) {
8012
8029
  return dataController.get(binding);
8013
8030
  },
8014
- set: function(transaction) {
8031
+ set: function set(transaction) {
8015
8032
  return dataController.set(transaction);
8016
8033
  },
8017
- evaluate: function(expression) {
8034
+ evaluate: function evaluate(expression) {
8018
8035
  return expressionEvaluator.evaluate(expression);
8019
8036
  }
8020
8037
  });
@@ -8158,23 +8175,23 @@ var ReferenceAssetsPlugin = function() {
8158
8175
  transition: flowController.transition,
8159
8176
  model: dataController,
8160
8177
  utils: {
8161
- findPlugin: function(pluginSymbol) {
8178
+ findPlugin: function findPlugin(pluginSymbol) {
8162
8179
  return _this.findPlugin(pluginSymbol);
8163
8180
  }
8164
8181
  },
8165
8182
  logger: this.logger,
8166
8183
  flowController: flowController,
8167
8184
  schema: schema,
8168
- format: function(binding, value) {
8185
+ format: function format(binding, value) {
8169
8186
  var formatter = schema.getFormatter(binding);
8170
8187
  return (formatter === null || formatter === void 0 ? void 0 : formatter.format) ? formatter.format(value) : value;
8171
8188
  },
8172
- formatValue: function(ref, value) {
8189
+ formatValue: function formatValue(ref, value) {
8173
8190
  var formatter = schema.getFormatterForType(ref);
8174
8191
  return (formatter === null || formatter === void 0 ? void 0 : formatter.format) ? formatter.format(value) : value;
8175
8192
  },
8176
8193
  validation: _object_spread_props(_object_spread({}, validationController.forView(parseBinding)), {
8177
- type: function(b) {
8194
+ type: function type(b) {
8178
8195
  return schema.getType(parseBinding(b));
8179
8196
  }
8180
8197
  }),
@@ -8186,7 +8203,7 @@ var ReferenceAssetsPlugin = function() {
8186
8203
  });
8187
8204
  this.hooks.viewController.call(viewController);
8188
8205
  return {
8189
- start: function() {
8206
+ start: function start() {
8190
8207
  flowController.start().then(function(endState) {
8191
8208
  var flowResult = {
8192
8209
  endState: resolveStrings(endState, false),
@@ -8223,13 +8240,13 @@ var ReferenceAssetsPlugin = function() {
8223
8240
  key: "start",
8224
8241
  value: function start(payload) {
8225
8242
  return _async_to_generator(function() {
8226
- var _this, _payload_id, ref, maybeUpdateState, _this_setupFlow, state, start, endProps, _tmp, error, errorState;
8243
+ var _this, _ref, ref, maybeUpdateState, _this_setupFlow, state, start, endProps, _tmp, error, errorState;
8227
8244
  return _ts_generator(this, function(_state) {
8228
8245
  switch(_state.label){
8229
8246
  case 0:
8230
8247
  _this = this;
8231
- ref = Symbol((_payload_id = payload === null || payload === void 0 ? void 0 : payload.id) !== null && _payload_id !== void 0 ? _payload_id : "payload");
8232
- maybeUpdateState = function(newState) {
8248
+ ref = Symbol((_ref = payload === null || payload === void 0 ? void 0 : payload.id) !== null && _ref !== void 0 ? _ref : "payload");
8249
+ maybeUpdateState = function maybeUpdateState(newState) {
8233
8250
  if (_this.state.ref !== ref) {
8234
8251
  _this.logger.warn("Received update for a flow that's not the current one");
8235
8252
  return newState;
@@ -8307,7 +8324,7 @@ var ReferenceAssetsPlugin = function() {
8307
8324
  };
8308
8325
  // ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@player-ui+async-node-plugin@0.0.0/node_modules/@player-ui/async-node-plugin/dist/index.mjs
8309
8326
  var import_queue_microtask3 = __toESM(require_queue_microtask(), 1);
8310
- var getMatchValue = function(pathA, pathB) {
8327
+ var getMatchValue = function getMatchValue(pathA, pathB) {
8311
8328
  if (pathA.length > pathB.length) {
8312
8329
  return 0;
8313
8330
  }
@@ -8321,7 +8338,7 @@ var ReferenceAssetsPlugin = function() {
8321
8338
  }
8322
8339
  return matchCount;
8323
8340
  };
8324
- var extractNodeFromPath = function(node, path) {
8341
+ var extractNodeFromPath = function extractNodeFromPath1(node, path) {
8325
8342
  if (path === void 0 || path.length === 0) {
8326
8343
  return node;
8327
8344
  }
@@ -8362,7 +8379,7 @@ var ReferenceAssetsPlugin = function() {
8362
8379
  }
8363
8380
  return extractNodeFromPath(bestMatch.value, path.slice(matchResult));
8364
8381
  };
8365
- var traverseAndReplace = function(node, replaceFn) {
8382
+ var traverseAndReplace = function traverseAndReplace(node, replaceFn) {
8366
8383
  if (node.type === NodeType.MultiNode) {
8367
8384
  var index = 0;
8368
8385
  while(index < node.values.length){
@@ -8383,7 +8400,7 @@ var ReferenceAssetsPlugin = function() {
8383
8400
  }
8384
8401
  return replaceFn(node);
8385
8402
  };
8386
- var unwrapAsset = function(node) {
8403
+ var unwrapAsset = function unwrapAsset(node) {
8387
8404
  var _node_children;
8388
8405
  if (node.type !== NodeType.Value) {
8389
8406
  return node;
@@ -8396,7 +8413,7 @@ var ReferenceAssetsPlugin = function() {
8396
8413
  }
8397
8414
  return child.value;
8398
8415
  };
8399
- var requiresAssetWrapper = function(node) {
8416
+ var requiresAssetWrapper = function requiresAssetWrapper(node) {
8400
8417
  if (node.type === NodeType.Asset) {
8401
8418
  return true;
8402
8419
  }
@@ -8405,26 +8422,26 @@ var ReferenceAssetsPlugin = function() {
8405
8422
  }
8406
8423
  return node.value.type === NodeType.Asset;
8407
8424
  };
8408
- var defaultGetNodeId = function(node) {
8425
+ var defaultGetNodeId = function defaultGetNodeId(node) {
8409
8426
  return "async-".concat(node.value.id);
8410
8427
  };
8411
- var createAsyncTransform = function(options) {
8428
+ var createAsyncTransform = function createAsyncTransform(options) {
8412
8429
  var transformAssetType = options.transformAssetType, wrapperAssetType = options.wrapperAssetType, getNestedAsset = options.getNestedAsset, _options_getAsyncNodeId = options.getAsyncNodeId, getAsyncNodeId = _options_getAsyncNodeId === void 0 ? defaultGetNodeId : _options_getAsyncNodeId, _options_path = options.path, path = _options_path === void 0 ? [
8413
8430
  "values"
8414
8431
  ] : _options_path, tmp = options.flatten, flatten2 = tmp === void 0 ? true : tmp, _options_asyncNodePosition = options.asyncNodePosition, asyncNodePosition = _options_asyncNodePosition === void 0 ? "append" : _options_asyncNodePosition;
8415
- var replaceNode = function(node) {
8432
+ var replaceNode = function replaceNode(node) {
8433
+ var _extractNodeFromPath;
8416
8434
  var unwrapped = unwrapAsset(node);
8417
8435
  if (unwrapped.type !== NodeType.Asset || unwrapped.value.type !== transformAssetType) {
8418
8436
  return node;
8419
8437
  }
8420
8438
  var transformed = asyncTransform2(unwrapped);
8421
- var _extractNodeFromPath;
8422
8439
  return (_extractNodeFromPath = extractNodeFromPath(transformed, path)) !== null && _extractNodeFromPath !== void 0 ? _extractNodeFromPath : node;
8423
8440
  };
8424
- var replacer = function(node) {
8441
+ var replacer = function replacer(node) {
8425
8442
  return traverseAndReplace(node, replaceNode);
8426
8443
  };
8427
- var asyncTransform2 = function(node) {
8444
+ var asyncTransform2 = function asyncTransform2(node) {
8428
8445
  var _Builder;
8429
8446
  var id = getAsyncNodeId(node);
8430
8447
  var asset = getNestedAsset === null || getNestedAsset === void 0 ? void 0 : getNestedAsset(node);
@@ -8566,8 +8583,8 @@ var ReferenceAssetsPlugin = function() {
8566
8583
  value: function handleAsyncUpdate(node, context, newNode) {
8567
8584
  var nodeResolveCache = context.nodeResolveCache, viewController = context.viewController, originalNodeCache = context.originalNodeCache;
8568
8585
  if (nodeResolveCache.get(node.id) !== newNode) {
8569
- nodeResolveCache.set(node.id, newNode ? newNode : node);
8570
8586
  var _originalNodeCache_get;
8587
+ nodeResolveCache.set(node.id, newNode ? newNode : node);
8571
8588
  var originalNode = (_originalNodeCache_get = originalNodeCache.get(node.id)) !== null && _originalNodeCache_get !== void 0 ? _originalNodeCache_get : /* @__PURE__ */ new Set([
8572
8589
  node
8573
8590
  ]);
@@ -8813,7 +8830,7 @@ var ReferenceAssetsPlugin = function() {
8813
8830
  var transform2 = createAsyncTransform({
8814
8831
  transformAssetType: "chat-message",
8815
8832
  wrapperAssetType: "collection",
8816
- getNestedAsset: function(node) {
8833
+ getNestedAsset: function getNestedAsset(node) {
8817
8834
  var _node_children_, _node_children;
8818
8835
  return (_node_children = node.children) === null || _node_children === void 0 ? void 0 : (_node_children_ = _node_children[0]) === null || _node_children_ === void 0 ? void 0 : _node_children_.value;
8819
8836
  }
@@ -8862,7 +8879,7 @@ var ReferenceAssetsPlugin = function() {
8862
8879
  return ExpressionPlugin;
8863
8880
  }();
8864
8881
  // ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/plugins/chat-ui-demo-plugin.ts
8865
- var createContentFromMessage = function(message, id) {
8882
+ var createContentFromMessage = function createContentFromMessage(message, id) {
8866
8883
  return {
8867
8884
  asset: {
8868
8885
  type: "chat-message",
@@ -8894,7 +8911,7 @@ var ReferenceAssetsPlugin = function() {
8894
8911
  var deferredPromises = {};
8895
8912
  var allPromiseKeys = [];
8896
8913
  var counter = 0;
8897
- var sendMessage = function(context, message, nodeId) {
8914
+ var sendMessage = function sendMessage(context, message, nodeId) {
8898
8915
  if (nodeId && !(nodeId in deferredPromises)) {
8899
8916
  var _context_logger;
8900
8917
  (_context_logger = context.logger) === null || _context_logger === void 0 ? void 0 : _context_logger.warn("'send' expression called with unrecognized id '".concat(nodeId, "'"));