@player-ui/player 0.7.0 → 0.7.1-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -346,19 +346,19 @@ class BindingInstance {
346
346
  }
347
347
  }
348
348
 
349
- var __defProp$e = Object.defineProperty;
350
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
351
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
352
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
353
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
354
- var __spreadValues$e = (a, b) => {
349
+ var __defProp$d = Object.defineProperty;
350
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
351
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
352
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
353
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
354
+ var __spreadValues$d = (a, b) => {
355
355
  for (var prop in b || (b = {}))
356
- if (__hasOwnProp$f.call(b, prop))
357
- __defNormalProp$e(a, prop, b[prop]);
358
- if (__getOwnPropSymbols$f)
359
- for (var prop of __getOwnPropSymbols$f(b)) {
360
- if (__propIsEnum$f.call(b, prop))
361
- __defNormalProp$e(a, prop, b[prop]);
356
+ if (__hasOwnProp$e.call(b, prop))
357
+ __defNormalProp$d(a, prop, b[prop]);
358
+ if (__getOwnPropSymbols$e)
359
+ for (var prop of __getOwnPropSymbols$e(b)) {
360
+ if (__propIsEnum$e.call(b, prop))
361
+ __defNormalProp$d(a, prop, b[prop]);
362
362
  }
363
363
  return a;
364
364
  };
@@ -375,7 +375,7 @@ function resolveBindingAST(bindingPathNode, options, hooks) {
375
375
  if (node.name === "PathNode") {
376
376
  const nestedResolvedValue = resolveBindingAST(node, options);
377
377
  if (nestedResolvedValue.updates) {
378
- context.updates = __spreadValues$e(__spreadValues$e({}, context.updates), nestedResolvedValue.updates);
378
+ context.updates = __spreadValues$d(__spreadValues$d({}, context.updates), nestedResolvedValue.updates);
379
379
  }
380
380
  try {
381
381
  return options.convertToPath(options.getValue(nestedResolvedValue.path));
@@ -404,7 +404,7 @@ function resolveBindingAST(bindingPathNode, options, hooks) {
404
404
  }
405
405
  function resolveNode(_node) {
406
406
  var _a2, _b;
407
- const resolvedNode = (_a2 = hooks == null ? void 0 : hooks.beforeResolveNode.call(_node, __spreadValues$e(__spreadValues$e({}, context), options))) != null ? _a2 : _node;
407
+ const resolvedNode = (_a2 = hooks == null ? void 0 : hooks.beforeResolveNode.call(_node, __spreadValues$d(__spreadValues$d({}, context), options))) != null ? _a2 : _node;
408
408
  switch (resolvedNode.name) {
409
409
  case "Expression":
410
410
  case "PathNode":
@@ -441,19 +441,19 @@ function resolveBindingAST(bindingPathNode, options, hooks) {
441
441
  };
442
442
  }
443
443
 
444
- var __defProp$d = Object.defineProperty;
445
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
446
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
447
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
448
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
449
- var __spreadValues$d = (a, b) => {
444
+ var __defProp$c = Object.defineProperty;
445
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
446
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
447
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
448
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
449
+ var __spreadValues$c = (a, b) => {
450
450
  for (var prop in b || (b = {}))
451
- if (__hasOwnProp$e.call(b, prop))
452
- __defNormalProp$d(a, prop, b[prop]);
453
- if (__getOwnPropSymbols$e)
454
- for (var prop of __getOwnPropSymbols$e(b)) {
455
- if (__propIsEnum$e.call(b, prop))
456
- __defNormalProp$d(a, prop, b[prop]);
451
+ if (__hasOwnProp$d.call(b, prop))
452
+ __defNormalProp$c(a, prop, b[prop]);
453
+ if (__getOwnPropSymbols$d)
454
+ for (var prop of __getOwnPropSymbols$d(b)) {
455
+ if (__propIsEnum$d.call(b, prop))
456
+ __defNormalProp$c(a, prop, b[prop]);
457
457
  }
458
458
  return a;
459
459
  };
@@ -477,7 +477,7 @@ class BindingParser {
477
477
  skipOptimization: new SyncBailHook(),
478
478
  beforeResolveNode: new SyncWaterfallHook()
479
479
  };
480
- this.parserOptions = __spreadValues$d(__spreadValues$d({}, DEFAULT_OPTIONS), options);
480
+ this.parserOptions = __spreadValues$c(__spreadValues$c({}, DEFAULT_OPTIONS), options);
481
481
  this.cache = {};
482
482
  this.parseCache = {};
483
483
  this.parse = this.parse.bind(this);
@@ -511,7 +511,7 @@ class BindingParser {
511
511
  if (isBinding(rawBinding)) {
512
512
  return rawBinding;
513
513
  }
514
- const options = __spreadValues$d(__spreadValues$d({}, this.parserOptions), overrides);
514
+ const options = __spreadValues$c(__spreadValues$c({}, this.parserOptions), overrides);
515
515
  let updates = {};
516
516
  const joined = Array.isArray(rawBinding) ? rawBinding.join(".") : String(rawBinding);
517
517
  const normalizeConfig = {
@@ -531,7 +531,7 @@ class BindingParser {
531
531
  }
532
532
  const normalized2 = this.normalizePath(String(path), normalizeConfig);
533
533
  if (normalized2.updates) {
534
- updates = __spreadValues$d(__spreadValues$d({}, updates), normalized2.updates);
534
+ updates = __spreadValues$c(__spreadValues$c({}, updates), normalized2.updates);
535
535
  }
536
536
  const joinedNormalizedPath = normalized2.path.join(".");
537
537
  if (joinedNormalizedPath === "") {
@@ -542,7 +542,7 @@ class BindingParser {
542
542
  };
543
543
  const normalized = this.normalizePath(joined, normalizeConfig);
544
544
  if (normalized.updates) {
545
- updates = __spreadValues$d(__spreadValues$d({}, updates), normalized.updates);
545
+ updates = __spreadValues$c(__spreadValues$c({}, updates), normalized.updates);
546
546
  }
547
547
  const updateKeys = Object.keys(updates);
548
548
  if (!options.readOnly && updateKeys.length > 0) {
@@ -1567,25 +1567,25 @@ function isObjectExpression(expr) {
1567
1567
  return typeof expr === "object" && expr !== null && !Array.isArray(expr) && "value" in expr;
1568
1568
  }
1569
1569
 
1570
- var __defProp$c = Object.defineProperty;
1571
- var __defProps$a = Object.defineProperties;
1572
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
1573
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
1574
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
1575
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
1576
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1577
- var __spreadValues$c = (a, b) => {
1570
+ var __defProp$b = Object.defineProperty;
1571
+ var __defProps$9 = Object.defineProperties;
1572
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
1573
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
1574
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
1575
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
1576
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1577
+ var __spreadValues$b = (a, b) => {
1578
1578
  for (var prop in b || (b = {}))
1579
- if (__hasOwnProp$d.call(b, prop))
1580
- __defNormalProp$c(a, prop, b[prop]);
1581
- if (__getOwnPropSymbols$d)
1582
- for (var prop of __getOwnPropSymbols$d(b)) {
1583
- if (__propIsEnum$d.call(b, prop))
1584
- __defNormalProp$c(a, prop, b[prop]);
1579
+ if (__hasOwnProp$c.call(b, prop))
1580
+ __defNormalProp$b(a, prop, b[prop]);
1581
+ if (__getOwnPropSymbols$c)
1582
+ for (var prop of __getOwnPropSymbols$c(b)) {
1583
+ if (__propIsEnum$c.call(b, prop))
1584
+ __defNormalProp$b(a, prop, b[prop]);
1585
1585
  }
1586
1586
  return a;
1587
1587
  };
1588
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
1588
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
1589
1589
  const andandOperator = (ctx, a, b) => {
1590
1590
  return ctx.evaluate(a) && ctx.evaluate(b);
1591
1591
  };
@@ -1637,7 +1637,7 @@ class ExpressionEvaluator {
1637
1637
  unary: new Map(Object.entries(DEFAULT_UNARY_OPERATORS)),
1638
1638
  expressions: new Map(Object.entries(DEFAULT_EXPRESSION_HANDLERS))
1639
1639
  };
1640
- this.defaultHookOptions = __spreadProps$a(__spreadValues$c({}, defaultOptions), {
1640
+ this.defaultHookOptions = __spreadProps$9(__spreadValues$b({}, defaultOptions), {
1641
1641
  evaluate: (expr) => this.evaluate(expr, this.defaultHookOptions),
1642
1642
  resolveNode: (node) => this._execAST(node, this.defaultHookOptions)
1643
1643
  });
@@ -1649,7 +1649,7 @@ class ExpressionEvaluator {
1649
1649
  }
1650
1650
  evaluate(expr, options) {
1651
1651
  var _a;
1652
- const resolvedOpts = this.hooks.resolveOptions.call(__spreadProps$a(__spreadValues$c(__spreadValues$c({}, this.defaultHookOptions), options), {
1652
+ const resolvedOpts = this.hooks.resolveOptions.call(__spreadProps$9(__spreadValues$b(__spreadValues$b({}, this.defaultHookOptions), options), {
1653
1653
  resolveNode: (node) => this._execAST(node, resolvedOpts)
1654
1654
  }));
1655
1655
  let expression = (_a = this.hooks.beforeEvaluate.call(expr, resolvedOpts)) != null ? _a : expr;
@@ -1715,7 +1715,7 @@ class ExpressionEvaluator {
1715
1715
  }
1716
1716
  _resolveNode(_currentValue, node, options) {
1717
1717
  const { resolveNode, model } = options;
1718
- const expressionContext = __spreadProps$a(__spreadValues$c({}, options), {
1718
+ const expressionContext = __spreadProps$9(__spreadValues$b({}, options), {
1719
1719
  evaluate: (expr) => this.evaluate(expr, options)
1720
1720
  });
1721
1721
  if (node.type === "Literal") {
@@ -1924,33 +1924,33 @@ class ProxyLogger {
1924
1924
  }
1925
1925
  }
1926
1926
 
1927
- var __defProp$b = Object.defineProperty;
1928
- var __defProps$9 = Object.defineProperties;
1929
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
1930
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
1931
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
1932
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
1933
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1934
- var __spreadValues$b = (a, b) => {
1927
+ var __defProp$a = Object.defineProperty;
1928
+ var __defProps$8 = Object.defineProperties;
1929
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
1930
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
1931
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
1932
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
1933
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1934
+ var __spreadValues$a = (a, b) => {
1935
1935
  for (var prop in b || (b = {}))
1936
- if (__hasOwnProp$c.call(b, prop))
1937
- __defNormalProp$b(a, prop, b[prop]);
1938
- if (__getOwnPropSymbols$c)
1939
- for (var prop of __getOwnPropSymbols$c(b)) {
1940
- if (__propIsEnum$c.call(b, prop))
1941
- __defNormalProp$b(a, prop, b[prop]);
1936
+ if (__hasOwnProp$b.call(b, prop))
1937
+ __defNormalProp$a(a, prop, b[prop]);
1938
+ if (__getOwnPropSymbols$b)
1939
+ for (var prop of __getOwnPropSymbols$b(b)) {
1940
+ if (__propIsEnum$b.call(b, prop))
1941
+ __defNormalProp$a(a, prop, b[prop]);
1942
1942
  }
1943
1943
  return a;
1944
1944
  };
1945
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
1945
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
1946
1946
  var __objRest$2 = (source, exclude) => {
1947
1947
  var target = {};
1948
1948
  for (var prop in source)
1949
- if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
1949
+ if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
1950
1950
  target[prop] = source[prop];
1951
- if (source != null && __getOwnPropSymbols$c)
1952
- for (var prop of __getOwnPropSymbols$c(source)) {
1953
- if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
1951
+ if (source != null && __getOwnPropSymbols$b)
1952
+ for (var prop of __getOwnPropSymbols$b(source)) {
1953
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
1954
1954
  target[prop] = source[prop];
1955
1955
  }
1956
1956
  return target;
@@ -2022,7 +2022,7 @@ class SchemaController {
2022
2022
  if (!((_a = typeDef == null ? void 0 : typeDef.validation) == null ? void 0 : _a.length)) {
2023
2023
  return void 0;
2024
2024
  }
2025
- return typeDef.validation.map((vRef) => __spreadValues$b({
2025
+ return typeDef.validation.map((vRef) => __spreadValues$a({
2026
2026
  severity: "error",
2027
2027
  trigger: "change"
2028
2028
  }, vRef));
@@ -2061,7 +2061,7 @@ class SchemaController {
2061
2061
  if (baseType === void 0) {
2062
2062
  return schemaType;
2063
2063
  }
2064
- return __spreadProps$9(__spreadValues$b(__spreadValues$b({}, baseType), schemaType), {
2064
+ return __spreadProps$8(__spreadValues$a(__spreadValues$a({}, baseType), schemaType), {
2065
2065
  validation: [
2066
2066
  ...(_a = schemaType.validation) != null ? _a : [],
2067
2067
  ...(_b = baseType.validation) != null ? _b : []
@@ -2227,25 +2227,25 @@ function removeBindingAndChildrenFromMap(sourceMap, binding) {
2227
2227
  return targetMap;
2228
2228
  }
2229
2229
 
2230
- var __defProp$a = Object.defineProperty;
2231
- var __defProps$8 = Object.defineProperties;
2232
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
2233
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
2234
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
2235
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
2236
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2237
- var __spreadValues$a = (a, b) => {
2230
+ var __defProp$9 = Object.defineProperty;
2231
+ var __defProps$7 = Object.defineProperties;
2232
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
2233
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
2234
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
2235
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
2236
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2237
+ var __spreadValues$9 = (a, b) => {
2238
2238
  for (var prop in b || (b = {}))
2239
- if (__hasOwnProp$b.call(b, prop))
2240
- __defNormalProp$a(a, prop, b[prop]);
2241
- if (__getOwnPropSymbols$b)
2242
- for (var prop of __getOwnPropSymbols$b(b)) {
2243
- if (__propIsEnum$b.call(b, prop))
2244
- __defNormalProp$a(a, prop, b[prop]);
2239
+ if (__hasOwnProp$a.call(b, prop))
2240
+ __defNormalProp$9(a, prop, b[prop]);
2241
+ if (__getOwnPropSymbols$a)
2242
+ for (var prop of __getOwnPropSymbols$a(b)) {
2243
+ if (__propIsEnum$a.call(b, prop))
2244
+ __defNormalProp$9(a, prop, b[prop]);
2245
2245
  }
2246
2246
  return a;
2247
2247
  };
2248
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
2248
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
2249
2249
  class ValidationMiddleware {
2250
2250
  constructor(validator, options) {
2251
2251
  this.validator = validator;
@@ -2254,7 +2254,7 @@ class ValidationMiddleware {
2254
2254
  this.shouldIncludeInvalid = options == null ? void 0 : options.shouldIncludeInvalid;
2255
2255
  }
2256
2256
  set(transaction, options, next) {
2257
- const asModel = toModel(this, __spreadProps$8(__spreadValues$a({}, options), { includeInvalid: true }), next);
2257
+ const asModel = toModel(this, __spreadProps$7(__spreadValues$9({}, options), { includeInvalid: true }), next);
2258
2258
  const nextTransaction = [];
2259
2259
  const includedBindings = new Set();
2260
2260
  transaction.forEach(([binding, value]) => {
@@ -2359,33 +2359,33 @@ function getNodeID(node) {
2359
2359
  }
2360
2360
  }
2361
2361
 
2362
- var __defProp$9 = Object.defineProperty;
2363
- var __defProps$7 = Object.defineProperties;
2364
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
2365
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
2366
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
2367
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
2368
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2369
- var __spreadValues$9 = (a, b) => {
2362
+ var __defProp$8 = Object.defineProperty;
2363
+ var __defProps$6 = Object.defineProperties;
2364
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
2365
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
2366
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
2367
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
2368
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2369
+ var __spreadValues$8 = (a, b) => {
2370
2370
  for (var prop in b || (b = {}))
2371
- if (__hasOwnProp$a.call(b, prop))
2372
- __defNormalProp$9(a, prop, b[prop]);
2373
- if (__getOwnPropSymbols$a)
2374
- for (var prop of __getOwnPropSymbols$a(b)) {
2375
- if (__propIsEnum$a.call(b, prop))
2376
- __defNormalProp$9(a, prop, b[prop]);
2371
+ if (__hasOwnProp$9.call(b, prop))
2372
+ __defNormalProp$8(a, prop, b[prop]);
2373
+ if (__getOwnPropSymbols$9)
2374
+ for (var prop of __getOwnPropSymbols$9(b)) {
2375
+ if (__propIsEnum$9.call(b, prop))
2376
+ __defNormalProp$8(a, prop, b[prop]);
2377
2377
  }
2378
2378
  return a;
2379
2379
  };
2380
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
2380
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
2381
2381
  var __objRest$1 = (source, exclude) => {
2382
2382
  var target = {};
2383
2383
  for (var prop in source)
2384
- if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
2384
+ if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
2385
2385
  target[prop] = source[prop];
2386
- if (source != null && __getOwnPropSymbols$a)
2387
- for (var prop of __getOwnPropSymbols$a(source)) {
2388
- if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
2386
+ if (source != null && __getOwnPropSymbols$9)
2387
+ for (var prop of __getOwnPropSymbols$9(source)) {
2388
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
2389
2389
  target[prop] = source[prop];
2390
2390
  }
2391
2391
  return target;
@@ -2466,7 +2466,7 @@ class Parser {
2466
2466
  if (localKey === "asset" && typeof localValue === "object") {
2467
2467
  const assetAST = this.parseObject(localValue, NodeType.Asset, options);
2468
2468
  if (assetAST) {
2469
- return __spreadProps$7(__spreadValues$9({}, rest), {
2469
+ return __spreadProps$6(__spreadValues$8({}, rest), {
2470
2470
  children: [
2471
2471
  ...children2,
2472
2472
  {
@@ -2499,14 +2499,14 @@ class Parser {
2499
2499
  }
2500
2500
  return;
2501
2501
  }).filter((element) => !!element);
2502
- return __spreadProps$7(__spreadValues$9({}, rest), {
2502
+ return __spreadProps$6(__spreadValues$8({}, rest), {
2503
2503
  children: [...children2, ...templateChildren]
2504
2504
  });
2505
2505
  } else if (localValue && this.hooks.determineNodeType.call(localValue) === NodeType.Switch) {
2506
2506
  const localSwitch = this.hooks.parseNode.call(localValue, NodeType.Value, options, NodeType.Switch);
2507
2507
  if (localSwitch && localSwitch.type === NodeType.Value && ((_b = localSwitch.children) == null ? void 0 : _b.length) === 1 && localSwitch.value === void 0) {
2508
2508
  const firstChild = localSwitch.children[0];
2509
- return __spreadProps$7(__spreadValues$9({}, rest), {
2509
+ return __spreadProps$6(__spreadValues$8({}, rest), {
2510
2510
  children: [
2511
2511
  ...children2,
2512
2512
  {
@@ -2517,7 +2517,7 @@ class Parser {
2517
2517
  });
2518
2518
  }
2519
2519
  if (localSwitch) {
2520
- return __spreadProps$7(__spreadValues$9({}, rest), {
2520
+ return __spreadProps$6(__spreadValues$8({}, rest), {
2521
2521
  children: [
2522
2522
  ...children2,
2523
2523
  {
@@ -2549,7 +2549,7 @@ class Parser {
2549
2549
  });
2550
2550
  }
2551
2551
  if (multiNode) {
2552
- return __spreadProps$7(__spreadValues$9({}, rest), {
2552
+ return __spreadProps$6(__spreadValues$8({}, rest), {
2553
2553
  children: [
2554
2554
  ...children2,
2555
2555
  {
@@ -2565,7 +2565,7 @@ class Parser {
2565
2565
  if (determineNodeType === NodeType.Applicability) {
2566
2566
  const parsedNode = this.hooks.parseNode.call(localValue, NodeType.Value, options, determineNodeType);
2567
2567
  if (parsedNode) {
2568
- return __spreadProps$7(__spreadValues$9({}, rest), {
2568
+ return __spreadProps$6(__spreadValues$8({}, rest), {
2569
2569
  children: [
2570
2570
  ...children2,
2571
2571
  {
@@ -2612,25 +2612,25 @@ class Parser {
2612
2612
  }
2613
2613
  }
2614
2614
 
2615
- var __defProp$8 = Object.defineProperty;
2616
- var __defProps$6 = Object.defineProperties;
2617
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
2618
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
2619
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
2620
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
2621
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2622
- var __spreadValues$8 = (a, b) => {
2615
+ var __defProp$7 = Object.defineProperty;
2616
+ var __defProps$5 = Object.defineProperties;
2617
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
2618
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
2619
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
2620
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
2621
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2622
+ var __spreadValues$7 = (a, b) => {
2623
2623
  for (var prop in b || (b = {}))
2624
- if (__hasOwnProp$9.call(b, prop))
2625
- __defNormalProp$8(a, prop, b[prop]);
2626
- if (__getOwnPropSymbols$9)
2627
- for (var prop of __getOwnPropSymbols$9(b)) {
2628
- if (__propIsEnum$9.call(b, prop))
2629
- __defNormalProp$8(a, prop, b[prop]);
2624
+ if (__hasOwnProp$8.call(b, prop))
2625
+ __defNormalProp$7(a, prop, b[prop]);
2626
+ if (__getOwnPropSymbols$8)
2627
+ for (var prop of __getOwnPropSymbols$8(b)) {
2628
+ if (__propIsEnum$8.call(b, prop))
2629
+ __defNormalProp$7(a, prop, b[prop]);
2630
2630
  }
2631
2631
  return a;
2632
2632
  };
2633
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
2633
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
2634
2634
  function caresAboutDataChanges(dataChanges, dependencies) {
2635
2635
  if (!dataChanges || !dependencies) {
2636
2636
  return true;
@@ -2640,7 +2640,7 @@ function caresAboutDataChanges(dataChanges, dependencies) {
2640
2640
  return depArray.find((dep) => !!dataChangeArray.find((change) => change === dep || change.contains(dep) || dep.contains(change))) !== void 0;
2641
2641
  }
2642
2642
  function toNodeResolveOptions(resolverOptions) {
2643
- return __spreadProps$6(__spreadValues$8({}, resolverOptions), {
2643
+ return __spreadProps$5(__spreadValues$7({}, resolverOptions), {
2644
2644
  data: {
2645
2645
  model: resolverOptions.model,
2646
2646
  formatValue: (ref, value) => {
@@ -2664,39 +2664,39 @@ function unpackAndPush(item, initial) {
2664
2664
  }
2665
2665
  }
2666
2666
 
2667
- var __defProp$7 = Object.defineProperty;
2668
- var __defProps$5 = Object.defineProperties;
2669
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
2670
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
2671
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
2672
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
2673
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2674
- var __spreadValues$7 = (a, b) => {
2667
+ var __defProp$6 = Object.defineProperty;
2668
+ var __defProps$4 = Object.defineProperties;
2669
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
2670
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
2671
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
2672
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
2673
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2674
+ var __spreadValues$6 = (a, b) => {
2675
2675
  for (var prop in b || (b = {}))
2676
- if (__hasOwnProp$8.call(b, prop))
2677
- __defNormalProp$7(a, prop, b[prop]);
2678
- if (__getOwnPropSymbols$8)
2679
- for (var prop of __getOwnPropSymbols$8(b)) {
2680
- if (__propIsEnum$8.call(b, prop))
2681
- __defNormalProp$7(a, prop, b[prop]);
2676
+ if (__hasOwnProp$7.call(b, prop))
2677
+ __defNormalProp$6(a, prop, b[prop]);
2678
+ if (__getOwnPropSymbols$7)
2679
+ for (var prop of __getOwnPropSymbols$7(b)) {
2680
+ if (__propIsEnum$7.call(b, prop))
2681
+ __defNormalProp$6(a, prop, b[prop]);
2682
2682
  }
2683
2683
  return a;
2684
2684
  };
2685
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
2685
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
2686
2686
  const withContext = (model) => {
2687
2687
  return {
2688
2688
  get: (binding, options) => {
2689
- return model.get(binding, __spreadValues$7({
2689
+ return model.get(binding, __spreadValues$6({
2690
2690
  context: { model }
2691
2691
  }, options));
2692
2692
  },
2693
2693
  set: (transaction, options) => {
2694
- return model.set(transaction, __spreadValues$7({
2694
+ return model.set(transaction, __spreadValues$6({
2695
2695
  context: { model }
2696
2696
  }, options));
2697
2697
  },
2698
2698
  delete: (binding, options) => {
2699
- return model.delete(binding, __spreadValues$7({
2699
+ return model.delete(binding, __spreadValues$6({
2700
2700
  context: { model }
2701
2701
  }, options));
2702
2702
  }
@@ -2767,7 +2767,7 @@ class Resolver {
2767
2767
  return;
2768
2768
  const value = clonedNode[key];
2769
2769
  if (typeof value === "object" && value !== null) {
2770
- clonedNode[key] = Array.isArray(value) ? [...value] : __spreadValues$7({}, value);
2770
+ clonedNode[key] = Array.isArray(value) ? [...value] : __spreadValues$6({}, value);
2771
2771
  }
2772
2772
  });
2773
2773
  return clonedNode;
@@ -2777,8 +2777,8 @@ class Resolver {
2777
2777
  const dependencyModel = new DependencyModel(options.data.model);
2778
2778
  dependencyModel.trackSubset("core");
2779
2779
  const depModelWithParser = withContext(withParser(dependencyModel, this.options.parseBinding));
2780
- const resolveOptions = this.hooks.resolveOptions.call(__spreadProps$5(__spreadValues$7({}, options), {
2781
- data: __spreadProps$5(__spreadValues$7({}, options.data), {
2780
+ const resolveOptions = this.hooks.resolveOptions.call(__spreadProps$4(__spreadValues$6({}, options), {
2781
+ data: __spreadProps$4(__spreadValues$6({}, options.data), {
2782
2782
  model: depModelWithParser
2783
2783
  }),
2784
2784
  evaluate: (exp) => this.options.evaluator.evaluate(exp, { model: depModelWithParser }),
@@ -2788,7 +2788,7 @@ class Resolver {
2788
2788
  const previousDeps = previousResult == null ? void 0 : previousResult.dependencies;
2789
2789
  const dataChanged = caresAboutDataChanges(dataChanges, previousDeps);
2790
2790
  const shouldUseLastValue = this.hooks.skipResolve.call(!dataChanged, node, resolveOptions);
2791
- const clonedNode = __spreadProps$5(__spreadValues$7({}, this.cloneNode(node)), {
2791
+ const clonedNode = __spreadProps$4(__spreadValues$6({}, this.cloneNode(node)), {
2792
2792
  parent: partiallyResolvedParent
2793
2793
  });
2794
2794
  const resolvedAST = (_a = this.hooks.beforeResolve.call(clonedNode, resolveOptions)) != null ? _a : {
@@ -2796,14 +2796,14 @@ class Resolver {
2796
2796
  };
2797
2797
  const isNestedMultiNode = resolvedAST.type === NodeType.MultiNode && ((_b = partiallyResolvedParent == null ? void 0 : partiallyResolvedParent.parent) == null ? void 0 : _b.type) === NodeType.MultiNode && partiallyResolvedParent.type === NodeType.Value;
2798
2798
  if (previousResult && shouldUseLastValue) {
2799
- const update2 = __spreadProps$5(__spreadValues$7({}, previousResult), {
2799
+ const update2 = __spreadProps$4(__spreadValues$6({}, previousResult), {
2800
2800
  updated: false
2801
2801
  });
2802
2802
  const repopulateASTMapFromCache = (resolvedNode, AST, ASTParent) => {
2803
2803
  var _a2;
2804
2804
  const { node: resolvedASTLocal } = resolvedNode;
2805
2805
  this.ASTMap.set(resolvedASTLocal, AST);
2806
- const resolvedUpdate = __spreadProps$5(__spreadValues$7({}, resolvedNode), {
2806
+ const resolvedUpdate = __spreadProps$4(__spreadValues$6({}, resolvedNode), {
2807
2807
  updated: false
2808
2808
  });
2809
2809
  cacheUpdate.set(AST, resolvedUpdate);
@@ -2855,7 +2855,7 @@ class Resolver {
2855
2855
  }
2856
2856
  }
2857
2857
  updated = updated || childUpdated;
2858
- return __spreadProps$5(__spreadValues$7({}, child), { value: childNode });
2858
+ return __spreadProps$4(__spreadValues$6({}, child), { value: childNode });
2859
2859
  });
2860
2860
  resolvedAST.children = newChildren;
2861
2861
  } else if (resolvedAST.type === NodeType.MultiNode) {
@@ -2885,7 +2885,7 @@ class Resolver {
2885
2885
  if (previousResult && !updated) {
2886
2886
  resolved = previousResult == null ? void 0 : previousResult.value;
2887
2887
  }
2888
- resolved = this.hooks.afterResolve.call(resolved, resolvedAST, __spreadProps$5(__spreadValues$7({}, resolveOptions), {
2888
+ resolved = this.hooks.afterResolve.call(resolved, resolvedAST, __spreadProps$4(__spreadValues$6({}, resolveOptions), {
2889
2889
  getDependencies: (scope) => dependencyModel.getDependencies(scope)
2890
2890
  }));
2891
2891
  const update = {
@@ -3138,17 +3138,17 @@ class ApplicabilityPlugin {
3138
3138
  }
3139
3139
  }
3140
3140
 
3141
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
3142
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
3143
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
3141
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
3142
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
3143
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
3144
3144
  var __objRest = (source, exclude) => {
3145
3145
  var target = {};
3146
3146
  for (var prop in source)
3147
- if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
3147
+ if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
3148
3148
  target[prop] = source[prop];
3149
- if (source != null && __getOwnPropSymbols$7)
3150
- for (var prop of __getOwnPropSymbols$7(source)) {
3151
- if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
3149
+ if (source != null && __getOwnPropSymbols$6)
3150
+ for (var prop of __getOwnPropSymbols$6(source)) {
3151
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
3152
3152
  target[prop] = source[prop];
3153
3153
  }
3154
3154
  return target;
@@ -3224,25 +3224,25 @@ class SwitchPlugin {
3224
3224
  }
3225
3225
  }
3226
3226
 
3227
- var __defProp$6 = Object.defineProperty;
3228
- var __defProps$4 = Object.defineProperties;
3229
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
3230
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
3231
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
3232
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
3233
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3234
- var __spreadValues$6 = (a, b) => {
3227
+ var __defProp$5 = Object.defineProperty;
3228
+ var __defProps$3 = Object.defineProperties;
3229
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
3230
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
3231
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
3232
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
3233
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3234
+ var __spreadValues$5 = (a, b) => {
3235
3235
  for (var prop in b || (b = {}))
3236
- if (__hasOwnProp$6.call(b, prop))
3237
- __defNormalProp$6(a, prop, b[prop]);
3238
- if (__getOwnPropSymbols$6)
3239
- for (var prop of __getOwnPropSymbols$6(b)) {
3240
- if (__propIsEnum$6.call(b, prop))
3241
- __defNormalProp$6(a, prop, b[prop]);
3236
+ if (__hasOwnProp$5.call(b, prop))
3237
+ __defNormalProp$5(a, prop, b[prop]);
3238
+ if (__getOwnPropSymbols$5)
3239
+ for (var prop of __getOwnPropSymbols$5(b)) {
3240
+ if (__propIsEnum$5.call(b, prop))
3241
+ __defNormalProp$5(a, prop, b[prop]);
3242
3242
  }
3243
3243
  return a;
3244
3244
  };
3245
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
3245
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
3246
3246
  class CrossfieldProvider {
3247
3247
  constructor(initialView, parser, logger) {
3248
3248
  this.allValidations = new Set();
@@ -3262,7 +3262,7 @@ class CrossfieldProvider {
3262
3262
  }
3263
3263
  xfieldRefs.forEach((vRef) => {
3264
3264
  var _a2;
3265
- const withDefaults = __spreadValues$6({
3265
+ const withDefaults = __spreadValues$5({
3266
3266
  trigger: "navigation",
3267
3267
  severity: "error"
3268
3268
  }, vRef);
@@ -3313,7 +3313,7 @@ class ViewInstance {
3313
3313
  const parser = new Parser();
3314
3314
  this.hooks.parser.call(parser);
3315
3315
  this.rootNode = parser.parseView(this.initialView);
3316
- this.resolver = new Resolver(this.rootNode, __spreadProps$4(__spreadValues$6({}, this.resolverOptions), {
3316
+ this.resolver = new Resolver(this.rootNode, __spreadProps$3(__spreadValues$5({}, this.resolverOptions), {
3317
3317
  parseNode: parser.parseObject.bind(parser)
3318
3318
  }));
3319
3319
  this.hooks.resolver.call(this.resolver);
@@ -3368,19 +3368,19 @@ class Builder {
3368
3368
  }
3369
3369
  }
3370
3370
 
3371
- var __defProp$5 = Object.defineProperty;
3372
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
3373
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
3374
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
3375
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3376
- var __spreadValues$5 = (a, b) => {
3371
+ var __defProp$4 = Object.defineProperty;
3372
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
3373
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
3374
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
3375
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3376
+ var __spreadValues$4 = (a, b) => {
3377
3377
  for (var prop in b || (b = {}))
3378
- if (__hasOwnProp$5.call(b, prop))
3379
- __defNormalProp$5(a, prop, b[prop]);
3380
- if (__getOwnPropSymbols$5)
3381
- for (var prop of __getOwnPropSymbols$5(b)) {
3382
- if (__propIsEnum$5.call(b, prop))
3383
- __defNormalProp$5(a, prop, b[prop]);
3378
+ if (__hasOwnProp$4.call(b, prop))
3379
+ __defNormalProp$4(a, prop, b[prop]);
3380
+ if (__getOwnPropSymbols$4)
3381
+ for (var prop of __getOwnPropSymbols$4(b)) {
3382
+ if (__propIsEnum$4.call(b, prop))
3383
+ __defNormalProp$4(a, prop, b[prop]);
3384
3384
  }
3385
3385
  return a;
3386
3386
  };
@@ -3504,7 +3504,7 @@ class FlowInstance {
3504
3504
  if (newCurrentState.value.state_type === "END" && this.flow.onEnd) {
3505
3505
  this.hooks.onEnd.call(this.flow.onEnd);
3506
3506
  }
3507
- this.hooks.transition.call(prevState, __spreadValues$5({}, newCurrentState));
3507
+ this.hooks.transition.call(prevState, __spreadValues$4({}, newCurrentState));
3508
3508
  this.isTransitioning = false;
3509
3509
  this.hooks.afterTransition.call(this);
3510
3510
  }
@@ -3603,25 +3603,25 @@ function replaceParams(message, params) {
3603
3603
  return message.slice().replace(ANY_CHAR_REGEX, (keyExpr) => params[keyExpr.slice(1)] || keyExpr);
3604
3604
  }
3605
3605
 
3606
- var __defProp$4 = Object.defineProperty;
3607
- var __defProps$3 = Object.defineProperties;
3608
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
3609
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
3610
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
3611
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
3612
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3613
- var __spreadValues$4 = (a, b) => {
3606
+ var __defProp$3 = Object.defineProperty;
3607
+ var __defProps$2 = Object.defineProperties;
3608
+ var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
3609
+ var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
3610
+ var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
3611
+ var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
3612
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3613
+ var __spreadValues$3 = (a, b) => {
3614
3614
  for (var prop in b || (b = {}))
3615
- if (__hasOwnProp$4.call(b, prop))
3616
- __defNormalProp$4(a, prop, b[prop]);
3617
- if (__getOwnPropSymbols$4)
3618
- for (var prop of __getOwnPropSymbols$4(b)) {
3619
- if (__propIsEnum$4.call(b, prop))
3620
- __defNormalProp$4(a, prop, b[prop]);
3615
+ if (__hasOwnProp$3.call(b, prop))
3616
+ __defNormalProp$3(a, prop, b[prop]);
3617
+ if (__getOwnPropSymbols$3)
3618
+ for (var prop of __getOwnPropSymbols$3(b)) {
3619
+ if (__propIsEnum$3.call(b, prop))
3620
+ __defNormalProp$3(a, prop, b[prop]);
3621
3621
  }
3622
3622
  return a;
3623
3623
  };
3624
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
3624
+ var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
3625
3625
  const CONTEXT = "validation-binding-tracker";
3626
3626
  class ValidationBindingTrackerViewPlugin {
3627
3627
  constructor(options) {
@@ -3692,8 +3692,8 @@ class ValidationBindingTrackerViewPlugin {
3692
3692
  this.trackedBindings.add(parsed);
3693
3693
  (_d = (_c = this.options.callbacks) == null ? void 0 : _c.onAdd) == null ? void 0 : _d.call(_c, parsed);
3694
3694
  };
3695
- return __spreadProps$3(__spreadValues$4({}, options), {
3696
- validation: __spreadProps$3(__spreadValues$4({}, options.validation), {
3695
+ return __spreadProps$2(__spreadValues$3({}, options), {
3696
+ validation: __spreadProps$2(__spreadValues$3({}, options.validation), {
3697
3697
  get: (binding, getOptions) => {
3698
3698
  var _a, _b;
3699
3699
  if (getOptions == null ? void 0 : getOptions.track) {
@@ -3784,25 +3784,25 @@ class ValidationBindingTrackerViewPlugin {
3784
3784
  }
3785
3785
  }
3786
3786
 
3787
- var __defProp$3 = Object.defineProperty;
3788
- var __defProps$2 = Object.defineProperties;
3789
- var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
3790
- var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
3791
- var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
3792
- var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
3793
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3794
- var __spreadValues$3 = (a, b) => {
3787
+ var __defProp$2 = Object.defineProperty;
3788
+ var __defProps$1 = Object.defineProperties;
3789
+ var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
3790
+ var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
3791
+ var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
3792
+ var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
3793
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3794
+ var __spreadValues$2 = (a, b) => {
3795
3795
  for (var prop in b || (b = {}))
3796
- if (__hasOwnProp$3.call(b, prop))
3797
- __defNormalProp$3(a, prop, b[prop]);
3798
- if (__getOwnPropSymbols$3)
3799
- for (var prop of __getOwnPropSymbols$3(b)) {
3800
- if (__propIsEnum$3.call(b, prop))
3801
- __defNormalProp$3(a, prop, b[prop]);
3796
+ if (__hasOwnProp$2.call(b, prop))
3797
+ __defNormalProp$2(a, prop, b[prop]);
3798
+ if (__getOwnPropSymbols$2)
3799
+ for (var prop of __getOwnPropSymbols$2(b)) {
3800
+ if (__propIsEnum$2.call(b, prop))
3801
+ __defNormalProp$2(a, prop, b[prop]);
3802
3802
  }
3803
3803
  return a;
3804
3804
  };
3805
- var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
3805
+ var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
3806
3806
  const SCHEMA_VALIDATION_PROVIDER_NAME = "schema";
3807
3807
  const VIEW_VALIDATION_PROVIDER_NAME = "view";
3808
3808
  const VALIDATION_PROVIDER_NAME_SYMBOL = Symbol.for("validation-provider-name");
@@ -3855,12 +3855,9 @@ class ValidatedBinding {
3855
3855
  getAll() {
3856
3856
  return this.applicableValidations.reduce((all, statefulObj) => {
3857
3857
  if (statefulObj.state === "active" && statefulObj.response) {
3858
- return [
3859
- ...all,
3860
- __spreadProps$2(__spreadValues$3({}, statefulObj.response), {
3861
- blocking: this.checkIfBlocking(statefulObj)
3862
- })
3863
- ];
3858
+ all.push(__spreadProps$1(__spreadValues$2({}, statefulObj.response), {
3859
+ blocking: this.checkIfBlocking(statefulObj)
3860
+ }));
3864
3861
  }
3865
3862
  return all;
3866
3863
  }, []);
@@ -3870,7 +3867,7 @@ class ValidatedBinding {
3870
3867
  return statefulObj.state === "active" && statefulObj.response;
3871
3868
  });
3872
3869
  if ((firstInvalid == null ? void 0 : firstInvalid.state) === "active") {
3873
- return __spreadProps$2(__spreadValues$3({}, firstInvalid.response), {
3870
+ return __spreadProps$1(__spreadValues$2({}, firstInvalid.response), {
3874
3871
  blocking: this.checkIfBlocking(firstInvalid)
3875
3872
  });
3876
3873
  }
@@ -3905,7 +3902,7 @@ class ValidatedBinding {
3905
3902
  state: response ? "active" : "none",
3906
3903
  isBlockingNavigation,
3907
3904
  dismissable: obj.value.severity === "warning" && phase === "navigation",
3908
- response: response ? __spreadProps$2(__spreadValues$3({}, obj.value), {
3905
+ response: response ? __spreadProps$1(__spreadValues$2({}, obj.value), {
3909
3906
  message: (_b = response.message) != null ? _b : "Something is broken",
3910
3907
  severity: obj.value.severity,
3911
3908
  displayTarget: (_c = obj.value.displayTarget) != null ? _c : "field"
@@ -4060,7 +4057,7 @@ class ValidationController {
4060
4057
  if (!this.options) {
4061
4058
  return;
4062
4059
  }
4063
- const bindingTrackerPlugin = new ValidationBindingTrackerViewPlugin(__spreadProps$2(__spreadValues$3({}, this.options), {
4060
+ const bindingTrackerPlugin = new ValidationBindingTrackerViewPlugin(__spreadProps$1(__spreadValues$2({}, this.options), {
4064
4061
  callbacks: {
4065
4062
  onAdd: (binding) => {
4066
4063
  if (!this.options || this.getValidationForBinding(binding) !== void 0) {
@@ -4095,12 +4092,10 @@ class ValidationController {
4095
4092
  if (trigger === "load") {
4096
4093
  const possibleValidations = this.getValidationProviders().reduce((vals, provider) => {
4097
4094
  var _a2, _b, _c, _d;
4098
- return [
4099
- ...vals,
4100
- ...(_d = (_c = (_b = (_a2 = provider.provider).getValidationsForBinding) == null ? void 0 : _b.call(_a2, binding)) == null ? void 0 : _c.map((valObj) => __spreadProps$2(__spreadValues$3({}, valObj), {
4101
- [VALIDATION_PROVIDER_NAME_SYMBOL]: provider.source
4102
- }))) != null ? _d : []
4103
- ];
4095
+ vals.push(...(_d = (_c = (_b = (_a2 = provider.provider).getValidationsForBinding) == null ? void 0 : _b.call(_a2, binding)) == null ? void 0 : _c.map((valObj) => __spreadProps$1(__spreadValues$2({}, valObj), {
4096
+ [VALIDATION_PROVIDER_NAME_SYMBOL]: provider.source
4097
+ }))) != null ? _d : []);
4098
+ return vals;
4104
4099
  }, []);
4105
4100
  if (possibleValidations.length === 0) {
4106
4101
  return;
@@ -4137,12 +4132,12 @@ class ValidationController {
4137
4132
  const model = {
4138
4133
  get(b, options) {
4139
4134
  weakBindings.add(isBinding(b) ? binding : context.parseBinding(b));
4140
- return context.model.get(b, __spreadProps$2(__spreadValues$3({}, options), { includeInvalid: true }));
4135
+ return context.model.get(b, __spreadProps$1(__spreadValues$2({}, options), { includeInvalid: true }));
4141
4136
  },
4142
4137
  set: context.model.set,
4143
4138
  delete: context.model.delete
4144
4139
  };
4145
- const result = handler == null ? void 0 : handler(__spreadProps$2(__spreadValues$3({}, context), {
4140
+ const result = handler == null ? void 0 : handler(__spreadProps$1(__spreadValues$2({}, context), {
4146
4141
  evaluate: (exp, options = { model }) => context.evaluate(exp, options),
4147
4142
  model,
4148
4143
  validation: validationObj,
@@ -4433,25 +4428,6 @@ class AssetTransformCorePlugin {
4433
4428
  }
4434
4429
  }
4435
4430
 
4436
- var __defProp$2 = Object.defineProperty;
4437
- var __defProps$1 = Object.defineProperties;
4438
- var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
4439
- var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
4440
- var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
4441
- var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
4442
- var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4443
- var __spreadValues$2 = (a, b) => {
4444
- for (var prop in b || (b = {}))
4445
- if (__hasOwnProp$2.call(b, prop))
4446
- __defNormalProp$2(a, prop, b[prop]);
4447
- if (__getOwnPropSymbols$2)
4448
- for (var prop of __getOwnPropSymbols$2(b)) {
4449
- if (__propIsEnum$2.call(b, prop))
4450
- __defNormalProp$2(a, prop, b[prop]);
4451
- }
4452
- return a;
4453
- };
4454
- var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
4455
4431
  class ViewController {
4456
4432
  constructor(initialViews, options) {
4457
4433
  this.hooks = {
@@ -4461,9 +4437,10 @@ class ViewController {
4461
4437
  this.transformRegistry = new Registry();
4462
4438
  this.optimizeUpdates = true;
4463
4439
  this.viewOptions = options;
4464
- this.viewMap = initialViews.reduce((viewMap, view) => __spreadProps$1(__spreadValues$2({}, viewMap), {
4465
- [view.id]: view
4466
- }), {});
4440
+ this.viewMap = initialViews.reduce((viewMap, view) => {
4441
+ viewMap[view.id] = view;
4442
+ return viewMap;
4443
+ }, {});
4467
4444
  new AssetTransformCorePlugin(this.transformRegistry).apply(this);
4468
4445
  options.flowController.hooks.flow.tap("viewController", (flow) => {
4469
4446
  flow.hooks.transition.tap("viewController", (_oldState, newState) => {
@@ -4474,17 +4451,18 @@ class ViewController {
4474
4451
  }
4475
4452
  });
4476
4453
  });
4477
- const update = (updates) => {
4454
+ const update = (updates, silent = false) => {
4478
4455
  if (this.currentView) {
4479
4456
  if (this.optimizeUpdates) {
4480
- this.queueUpdate(updates);
4457
+ this.queueUpdate(updates, silent);
4481
4458
  } else {
4482
4459
  this.currentView.update();
4483
4460
  }
4484
4461
  }
4485
4462
  };
4486
- options.model.hooks.onUpdate.tap("viewController", (updates) => {
4487
- update(new Set(updates.map((t) => t.binding)));
4463
+ options.model.hooks.onUpdate.tap("viewController", (updates, updateOptions) => {
4464
+ var _a;
4465
+ update(new Set(updates.map((t) => t.binding)), (_a = updateOptions == null ? void 0 : updateOptions.silent) != null ? _a : false);
4488
4466
  });
4489
4467
  options.model.hooks.onDelete.tap("viewController", (binding) => {
4490
4468
  const parentBinding = binding.parent();
@@ -4496,7 +4474,7 @@ class ViewController {
4496
4474
  }
4497
4475
  });
4498
4476
  }
4499
- queueUpdate(bindings) {
4477
+ queueUpdate(bindings, silent = false) {
4500
4478
  var _a;
4501
4479
  if ((_a = this.pendingUpdate) == null ? void 0 : _a.changedBindings) {
4502
4480
  this.pendingUpdate.changedBindings = new Set([
@@ -4504,7 +4482,10 @@ class ViewController {
4504
4482
  ...bindings
4505
4483
  ]);
4506
4484
  } else {
4507
- this.pendingUpdate = { changedBindings: bindings };
4485
+ this.pendingUpdate = { changedBindings: bindings, scheduled: false };
4486
+ }
4487
+ if (!this.pendingUpdate.scheduled && !silent) {
4488
+ this.pendingUpdate.scheduled = true;
4508
4489
  queueMicrotask(() => {
4509
4490
  var _a2, _b;
4510
4491
  const updates = (_a2 = this.pendingUpdate) == null ? void 0 : _a2.changedBindings;
@@ -4863,8 +4844,8 @@ var __async = (__this, __arguments, generator) => {
4863
4844
  step((generator = generator.apply(__this, __arguments)).next());
4864
4845
  });
4865
4846
  };
4866
- const PLAYER_VERSION = "0.7.0";
4867
- const COMMIT = "00b3c9d34a6983cf364452a8b24b30e0c369a222";
4847
+ const PLAYER_VERSION = "0.7.1-next.0";
4848
+ const COMMIT = "b0282a1b53e7a91069e97814edec091b3de9ec5f";
4868
4849
  const _Player = class {
4869
4850
  constructor(config) {
4870
4851
  this.logger = new TapableLogger();