ember-source 6.4.0-alpha.3 → 6.4.0-alpha.4

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.
Files changed (128) hide show
  1. package/build-metadata.json +3 -3
  2. package/dist/ember-template-compiler.js +88 -92
  3. package/dist/ember-template-compiler.js.map +1 -0
  4. package/dist/ember-testing.js +1 -1
  5. package/dist/ember-testing.js.map +1 -0
  6. package/dist/ember.debug.js +223 -233
  7. package/dist/ember.debug.js.map +1 -0
  8. package/dist/ember.prod.js +212 -221
  9. package/dist/ember.prod.js.map +1 -0
  10. package/dist/packages/@ember/-internals/container/index.js +1 -1
  11. package/dist/packages/@ember/-internals/glimmer/index.js +2 -2
  12. package/dist/packages/@ember/-internals/meta/lib/meta.js +2 -2
  13. package/dist/packages/@ember/-internals/metal/index.js +9 -9
  14. package/dist/packages/@ember/-internals/routing/index.js +4 -4
  15. package/dist/packages/@ember/-internals/runtime/index.js +1 -1
  16. package/dist/packages/@ember/-internals/runtime/lib/ext/rsvp.js +2 -2
  17. package/dist/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +4 -4
  18. package/dist/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +2 -2
  19. package/dist/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +2 -2
  20. package/dist/packages/@ember/-internals/string/index.js +1 -1
  21. package/dist/packages/@ember/-internals/utils/index.js +4 -4
  22. package/dist/packages/@ember/-internals/views/lib/compat/fallback-view-registry.js +1 -1
  23. package/dist/packages/@ember/-internals/views/lib/mixins/action_support.js +2 -2
  24. package/dist/packages/@ember/-internals/views/lib/mixins/child_views_support.js +2 -2
  25. package/dist/packages/@ember/-internals/views/lib/mixins/class_names_support.js +2 -2
  26. package/dist/packages/@ember/-internals/views/lib/mixins/view_support.js +2 -2
  27. package/dist/packages/@ember/-internals/views/lib/system/event_dispatcher.js +3 -3
  28. package/dist/packages/@ember/-internals/views/lib/system/utils.js +1 -1
  29. package/dist/packages/@ember/-internals/views/lib/views/core_view.js +2 -2
  30. package/dist/packages/@ember/-internals/views/lib/views/states.js +2 -4
  31. package/dist/packages/@ember/application/index.js +7 -7
  32. package/dist/packages/@ember/application/instance.js +5 -5
  33. package/dist/packages/@ember/application/namespace.js +4 -4
  34. package/dist/packages/@ember/array/index.js +4 -4
  35. package/dist/packages/@ember/array/proxy.js +4 -4
  36. package/dist/packages/@ember/component/helper.js +2 -2
  37. package/dist/packages/@ember/component/index.js +2 -2
  38. package/dist/packages/@ember/controller/index.js +3 -3
  39. package/dist/packages/@ember/debug/container-debug-adapter.js +2 -2
  40. package/dist/packages/@ember/debug/data-adapter.js +2 -2
  41. package/dist/packages/@ember/engine/index.js +8 -8
  42. package/dist/packages/@ember/engine/instance.js +3 -3
  43. package/dist/packages/@ember/helper/index.js +2 -2
  44. package/dist/packages/@ember/modifier/index.js +2 -2
  45. package/dist/packages/@ember/object/-internals.js +3 -3
  46. package/dist/packages/@ember/object/compat.js +2 -2
  47. package/dist/packages/@ember/object/computed.js +3 -3
  48. package/dist/packages/@ember/object/core.js +6 -6
  49. package/dist/packages/@ember/object/evented.js +3 -3
  50. package/dist/packages/@ember/object/events.js +2 -2
  51. package/dist/packages/@ember/object/index.js +6 -6
  52. package/dist/packages/@ember/object/internals.js +1 -1
  53. package/dist/packages/@ember/object/lib/computed/computed_macros.js +6 -6
  54. package/dist/packages/@ember/object/lib/computed/reduce_computed_macros.js +3 -3
  55. package/dist/packages/@ember/object/mixin.js +5 -5
  56. package/dist/packages/@ember/object/observable.js +4 -4
  57. package/dist/packages/@ember/object/observers.js +2 -2
  58. package/dist/packages/@ember/object/promise-proxy-mixin.js +3 -3
  59. package/dist/packages/@ember/renderer/index.js +2 -2
  60. package/dist/packages/@ember/routing/index.js +2 -2
  61. package/dist/packages/@ember/routing/lib/generate_controller.js +2 -2
  62. package/dist/packages/@ember/routing/lib/routing-service.js +2 -2
  63. package/dist/packages/@ember/routing/lib/utils.js +4 -4
  64. package/dist/packages/@ember/routing/route.js +10 -10
  65. package/dist/packages/@ember/routing/router-service.js +2 -2
  66. package/dist/packages/@ember/routing/router.js +8 -8
  67. package/dist/packages/@ember/runloop/index.js +2 -2
  68. package/dist/packages/@ember/service/index.js +2 -2
  69. package/dist/packages/@ember/template/index.js +2 -2
  70. package/dist/packages/@ember/template-compiler/lib/dasherize-component-name.js +1 -1
  71. package/dist/packages/@ember/template-compiler/lib/plugins/assert-against-attrs.js +2 -2
  72. package/dist/packages/@ember/template-compiler/lib/plugins/assert-against-named-outlets.js +1 -1
  73. package/dist/packages/@ember/template-compiler/lib/plugins/assert-input-helper-without-block.js +2 -2
  74. package/dist/packages/@ember/template-compiler/lib/plugins/assert-reserved-named-arguments.js +3 -3
  75. package/dist/packages/@ember/template-compiler/lib/plugins/index.js +1 -1
  76. package/dist/packages/@ember/template-compiler/lib/plugins/transform-each-track-array.js +1 -1
  77. package/dist/packages/@ember/template-compiler/lib/plugins/transform-quoted-bindings-into-just-bindings.js +1 -1
  78. package/dist/packages/@ember/template-compiler/lib/plugins/transform-resolutions.js +1 -1
  79. package/dist/packages/@ember/template-compiler/lib/plugins/transform-wrap-mount-and-outlet.js +1 -1
  80. package/dist/packages/@ember/template-compiler/lib/template.js +10 -10
  81. package/dist/packages/@ember/utils/lib/is_empty.js +2 -2
  82. package/dist/packages/@glimmer/destroyable/index.js +5 -5
  83. package/dist/packages/@glimmer/global-context/index.js +2 -2
  84. package/dist/packages/@glimmer/manager/index.js +22 -22
  85. package/dist/packages/@glimmer/node/index.js +2 -2
  86. package/dist/packages/@glimmer/opcode-compiler/index.js +65 -63
  87. package/dist/packages/@glimmer/program/index.js +3 -3
  88. package/dist/packages/@glimmer/reference/index.js +3 -3
  89. package/dist/packages/@glimmer/runtime/index.js +78 -78
  90. package/dist/packages/@glimmer/tracking/index.js +2 -2
  91. package/dist/packages/@glimmer/tracking/primitives/cache.js +2 -2
  92. package/dist/packages/@glimmer/util/index.js +1 -1
  93. package/dist/packages/@glimmer/validator/index.js +8 -8
  94. package/dist/packages/ember/barrel.js +21 -21
  95. package/dist/packages/ember/version.js +1 -1
  96. package/dist/packages/ember-testing/lib/ext/rsvp.js +1 -1
  97. package/dist/packages/ember-testing/lib/helpers/current_path.js +4 -4
  98. package/dist/packages/ember-testing/lib/helpers/current_route_name.js +4 -4
  99. package/dist/packages/ember-testing/lib/helpers/current_url.js +2 -2
  100. package/dist/packages/ember-testing/lib/helpers/pause_test.js +1 -1
  101. package/dist/packages/ember-testing/lib/helpers/wait.js +1 -1
  102. package/dist/packages/ember-testing/lib/initializers.js +6 -6
  103. package/dist/packages/ember-testing/lib/test/promise.js +1 -1
  104. package/dist/packages/ember-testing/lib/test/run.js +1 -1
  105. package/dist/packages/ember-testing/lib/test.js +4 -4
  106. package/dist/packages/router_js/index.js +2 -2
  107. package/dist/packages/rsvp/index.js +1 -1
  108. package/dist/packages/shared-chunks/{alias-B6fcydrB.js → alias-EKWHcUzN.js} +2 -2
  109. package/dist/packages/shared-chunks/{array-QJXVmB_W.js → array-Bwx-l2QI.js} +1 -1
  110. package/dist/packages/shared-chunks/{cache-Djf2I3Za.js → cache-DNQMcXNz.js} +5 -5
  111. package/dist/packages/shared-chunks/{index-y5ClupI2.js → index-CMZ-vfn1.js} +15 -25
  112. package/dist/packages/shared-chunks/{is_proxy-DjvCKvd5.js → is_proxy-D0K6dwtr.js} +1 -1
  113. package/dist/packages/shared-chunks/{mandatory-setter-BiXq-dpN.js → mandatory-setter-DzWEWEXy.js} +1 -1
  114. package/dist/packages/shared-chunks/{name-Dx2bGFVv.js → name-StEEeReb.js} +1 -1
  115. package/dist/packages/shared-chunks/{namespace_search-Ddzb9tZD.js → namespace_search-_taJ9-jZ.js} +2 -2
  116. package/dist/packages/shared-chunks/{property_set-DS4X3Soy.js → property_set-CZ11v306.js} +3 -3
  117. package/dist/packages/shared-chunks/{registry-B8WARvkP.js → registry-C1P1Zime.js} +1 -1
  118. package/dist/packages/shared-chunks/{router-DrLZsJeE.js → router-BViwI_oJ.js} +2 -2
  119. package/dist/packages/shared-chunks/{rsvp-DaQAFb0W.js → rsvp-ziM3qQyS.js} +25 -26
  120. package/dist/packages/shared-chunks/{set_properties-CeGJ0G9T.js → set_properties-DdgpJ3dD.js} +2 -2
  121. package/dist/packages/shared-chunks/{setup-registry-8yPevDL_.js → setup-registry-DqcicBVa.js} +2 -2
  122. package/dist/packages/shared-chunks/{to-string-B1BmwUkt.js → to-string-DQLo5iod.js} +1 -1
  123. package/dist/packages/shared-chunks/{transform-resolutions-Dpc2ClA0.js → transform-resolutions-DckM6u9N.js} +54 -54
  124. package/dist/packages/shared-chunks/{unrecognized-url-error-zpz-JEoG.js → unrecognized-url-error-Csk7hcJF.js} +7 -6
  125. package/docs/data.json +471 -7
  126. package/lib/index.js +7 -2
  127. package/package.json +15 -13
  128. package/types/publish.mjs +0 -514
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "6.4.0-alpha.3",
2
+ "version": "6.4.0-alpha.4",
3
3
  "buildType": "tag",
4
- "SHA": "33ff3243880745f0f8ab5c30414ed9fc1e48f36c",
5
- "assetPath": "/tag/shas/33ff3243880745f0f8ab5c30414ed9fc1e48f36c.tgz"
4
+ "SHA": "be20bd3f8ea066050eb91862af5180e10ba37134",
5
+ "assetPath": "/tag/shas/be20bd3f8ea066050eb91862af5180e10ba37134.tgz"
6
6
  }
@@ -5,7 +5,7 @@
5
5
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
6
6
  * @license Licensed under MIT license
7
7
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
8
- * @version 6.4.0-alpha.3
8
+ * @version 6.4.0-alpha.4
9
9
  */
10
10
  /* eslint-disable no-var */
11
11
  /* globals global globalThis self */
@@ -1973,7 +1973,7 @@ var define, require;
1973
1973
  }
1974
1974
  function strip(strings, ...args) {
1975
1975
  let out = "";
1976
- for (const [i, string] of enumerate(strings)) out += `${string}${void 0 !== args[i] ? String(args[i]) : ""}`;
1976
+ for (const [i, string] of enumerate(strings)) out += `${string}${ void 0 !== args[i] ? String(args[i]) : ""}`;
1977
1977
  let lines = out.split("\n");
1978
1978
  for (; isPresentArray$2(lines) && /^\s*$/u.test(0 === (list = lines).length ? void 0 : list[0]);) lines.shift();
1979
1979
  for (var list; isPresentArray$2(lines) && /^\s*$/u.test(getLast$1(lines));) lines.pop();
@@ -7464,12 +7464,12 @@ var define, require;
7464
7464
  For example, ember-template-recast attempts to always preserve the original string
7465
7465
  formatting in each AST node if no modifications are made to it.
7466
7466
  */
7467
- handledByOverride(node, ensureLeadingWhitespace = !1) {
7467
+ handledByOverride(node, ensureLeadingWhitespace = false) {
7468
7468
  if (void 0 !== this.options.override) {
7469
7469
  let result = this.options.override(node, this.options);
7470
- if ("string" == typeof result) return ensureLeadingWhitespace && NON_WHITESPACE.test(result) && (result = ` ${result}`), this.buffer += result, !0;
7470
+ if ("string" == typeof result) return ensureLeadingWhitespace && NON_WHITESPACE.test(result) && (result = ` ${result}`), this.buffer += result, true;
7471
7471
  }
7472
- return !1;
7472
+ return false;
7473
7473
  }
7474
7474
  Node(node) {
7475
7475
  switch (node.type) {
@@ -7586,7 +7586,7 @@ var define, require;
7586
7586
  This "forwards" the `chained` setting so that we can check
7587
7587
  it later when processing the `BlockStatement`.
7588
7588
  */
7589
- block.chained && (block.body[0].chained = !0), this.handledByOverride(block) || this.TopLevelStatements(block.body);
7589
+ block.chained && (block.body[0].chained = true), this.handledByOverride(block) || this.TopLevelStatements(block.body);
7590
7590
  }
7591
7591
  TopLevelStatements(statements) {
7592
7592
  statements.forEach(statement => this.TopLevelStatement(statement));
@@ -7621,7 +7621,7 @@ var define, require;
7621
7621
  this.buffer += name, ("TextNode" !== value.type || value.chars.length > 0) && (this.buffer += "=", this.AttrNodeValue(value));
7622
7622
  }
7623
7623
  AttrNodeValue(value) {
7624
- "TextNode" === value.type ? (this.buffer += '"', this.TextNode(value, !0), this.buffer += '"') : this.Node(value);
7624
+ "TextNode" === value.type ? (this.buffer += '"', this.TextNode(value, true), this.buffer += '"') : this.Node(value);
7625
7625
  }
7626
7626
  TextNode(text, isAttr) {
7627
7627
  var attrValue;
@@ -7640,7 +7640,7 @@ var define, require;
7640
7640
  }
7641
7641
  ConcatStatement(concat) {
7642
7642
  this.handledByOverride(concat) || (this.buffer += '"', concat.parts.forEach(part => {
7643
- "TextNode" === part.type ? this.TextNode(part, !0) : this.Node(part);
7643
+ "TextNode" === part.type ? this.TextNode(part, true) : this.Node(part);
7644
7644
  }), this.buffer += '"');
7645
7645
  }
7646
7646
  MustacheCommentStatement(comment) {
@@ -7666,7 +7666,7 @@ var define, require;
7666
7666
  });
7667
7667
  }
7668
7668
  Hash(hash) {
7669
- this.handledByOverride(hash, !0) || hash.pairs.forEach(pair => {
7669
+ this.handledByOverride(hash, true) || hash.pairs.forEach(pair => {
7670
7670
  this.buffer += " ", this.HashPair(pair);
7671
7671
  });
7672
7672
  }
@@ -8462,7 +8462,7 @@ var define, require;
8462
8462
  offset: left
8463
8463
  }, right) => left === right.toCharPos()?.offset).when("HbsPosition", "CharPosition", (left, {
8464
8464
  offset: right
8465
- }) => left.toCharPos()?.offset === right).when("MATCH_ANY", "MATCH_ANY", () => !1));
8465
+ }) => left.toCharPos()?.offset === right).when("MATCH_ANY", "MATCH_ANY", () => false));
8466
8466
  class Source {
8467
8467
  static from(source, options = {}) {
8468
8468
  return new Source(source, options.meta?.moduleName);
@@ -8661,10 +8661,10 @@ var define, require;
8661
8661
  }
8662
8662
  next() {
8663
8663
  return this.path.parent ? (this.path = this.path.parent, {
8664
- done: !1,
8664
+ done: false,
8665
8665
  value: this.path
8666
8666
  }) : {
8667
- done: !0,
8667
+ done: true,
8668
8668
  value: null
8669
8669
  };
8670
8670
  }
@@ -8871,7 +8871,7 @@ var define, require;
8871
8871
  loc: SourceSpan.synthetic(p)
8872
8872
  }) : p);
8873
8873
  }
8874
- function buildBlockItself(body = [], params = [], chained = !1, loc) {
8874
+ function buildBlockItself(body = [], params = [], chained = false, loc) {
8875
8875
  return b.blockItself({
8876
8876
  body: body,
8877
8877
  params: buildBlockParams(params),
@@ -8907,7 +8907,7 @@ var define, require;
8907
8907
  }
8908
8908
  }
8909
8909
  var publicBuilder = {
8910
- mustache: function (path, params = [], hash = buildHash$1([]), trusting = !1, loc, strip) {
8910
+ mustache: function (path, params = [], hash = buildHash$1([]), trusting = false, loc, strip) {
8911
8911
  return b.mustache({
8912
8912
  path: buildPath(path),
8913
8913
  params: params,
@@ -8966,12 +8966,12 @@ var define, require;
8966
8966
  loc: loc
8967
8967
  } = options;
8968
8968
  // this is used for backwards compat, prior to `selfClosing` being part of the ElementNode AST
8969
- "string" == typeof tag ? tag.endsWith("/") ? (path = buildPath(tag.slice(0, -1)), selfClosing = !0) : path = buildPath(tag) : "type" in tag ? (tag.type, tag.type, path = tag) : "path" in tag ? (tag.path.type, tag.path.type, path = tag.path, selfClosing = tag.selfClosing) : (path = buildPath(tag.name), selfClosing = tag.selfClosing);
8969
+ "string" == typeof tag ? tag.endsWith("/") ? (path = buildPath(tag.slice(0, -1)), selfClosing = true) : path = buildPath(tag) : "type" in tag ? (tag.type, tag.type, path = tag) : "path" in tag ? (tag.path.type, tag.path.type, path = tag.path, selfClosing = tag.selfClosing) : (path = buildPath(tag.name), selfClosing = tag.selfClosing);
8970
8970
  let params = blockParams?.map(param => "string" == typeof param ? buildVar$1(param) : param),
8971
8971
  closeTag = null;
8972
8972
  return _closeTag ? closeTag = buildLoc(_closeTag) : void 0 === _closeTag && (closeTag = selfClosing || isVoidTag(path.original) ? null : buildLoc(null)), b.element({
8973
8973
  path: path,
8974
- selfClosing: selfClosing || !1,
8974
+ selfClosing: selfClosing || false,
8975
8975
  attributes: attrs || [],
8976
8976
  params: params || [],
8977
8977
  modifiers: modifiers || [],
@@ -9031,7 +9031,7 @@ var define, require;
9031
9031
  },
9032
9032
  literal: buildLiteral,
9033
9033
  program: function (body, blockParams, loc) {
9034
- return blockParams && blockParams.length ? buildBlockItself(body, blockParams, !1, loc) : buildTemplate(body, [], loc);
9034
+ return blockParams && blockParams.length ? buildBlockItself(body, blockParams, false, loc) : buildTemplate(body, [], loc);
9035
9035
  },
9036
9036
  blockItself: buildBlockItself,
9037
9037
  template: buildTemplate,
@@ -9080,8 +9080,8 @@ var define, require;
9080
9080
  };
9081
9081
  }
9082
9082
  const DEFAULT_STRIP = {
9083
- close: !1,
9084
- open: !1
9083
+ close: false,
9084
+ open: false
9085
9085
  },
9086
9086
  b = new
9087
9087
  /**
@@ -9103,7 +9103,7 @@ var define, require;
9103
9103
  blockItself({
9104
9104
  body: body,
9105
9105
  params: params1,
9106
- chained = !1,
9106
+ chained = false,
9107
9107
  loc: loc
9108
9108
  }) {
9109
9109
  return {
@@ -9161,7 +9161,7 @@ var define, require;
9161
9161
  loc: loc
9162
9162
  };
9163
9163
  return Object.defineProperty(node, "escaped", {
9164
- enumerable: !1,
9164
+ enumerable: false,
9165
9165
  get() {
9166
9166
  return !this.trusting;
9167
9167
  },
@@ -9353,7 +9353,7 @@ var define, require;
9353
9353
  loc: loc
9354
9354
  };
9355
9355
  return Object.defineProperty(node, "parts", {
9356
- enumerable: !1,
9356
+ enumerable: false,
9357
9357
  get() {
9358
9358
  let parts = this.original.split(".");
9359
9359
  return "this" === parts[0] ?
@@ -9369,12 +9369,12 @@ var define, require;
9369
9369
  "this" === parts[0] || parts[0]?.startsWith("@") || ("ThisHead" === this.head.type ? parts.unshift("this") : "AtHead" === this.head.type && (parts[0] = `@${parts[0]}`)), this.original = parts.join(".");
9370
9370
  }
9371
9371
  }), Object.defineProperty(node, "this", {
9372
- enumerable: !1,
9372
+ enumerable: false,
9373
9373
  get() {
9374
9374
  return "ThisHead" === this.head.type;
9375
9375
  }
9376
9376
  }), Object.defineProperty(node, "data", {
9377
- enumerable: !1,
9377
+ enumerable: false,
9378
9378
  get() {
9379
9379
  return "AtHead" === this.head.type;
9380
9380
  }
@@ -9496,7 +9496,7 @@ var define, require;
9496
9496
  loc: loc
9497
9497
  };
9498
9498
  return Object.defineProperty(node, "original", {
9499
- enumerable: !1,
9499
+ enumerable: false,
9500
9500
  get() {
9501
9501
  return this.value;
9502
9502
  },
@@ -9718,7 +9718,7 @@ var define, require;
9718
9718
  break;
9719
9719
  case "attributeName":
9720
9720
  case "afterAttributeName":
9721
- this.beginAttributeValue(!1), this.finishAttributeValue(), addElementModifier(this.currentStartTag, mustache), tokenizer.transitionTo("beforeAttributeName");
9721
+ this.beginAttributeValue(false), this.finishAttributeValue(), addElementModifier(this.currentStartTag, mustache), tokenizer.transitionTo("beforeAttributeName");
9722
9722
  break;
9723
9723
  case "afterAttributeValueQuoted":
9724
9724
  addElementModifier(this.currentStartTag, mustache), tokenizer.transitionTo("beforeAttributeName");
@@ -9726,7 +9726,7 @@ var define, require;
9726
9726
 
9727
9727
  // Attribute values
9728
9728
  case "beforeAttributeValue":
9729
- this.beginAttributeValue(!1), this.appendDynamicAttributeValuePart(mustache), tokenizer.transitionTo("attributeValueUnquoted");
9729
+ this.beginAttributeValue(false), this.appendDynamicAttributeValuePart(mustache), tokenizer.transitionTo("attributeValueUnquoted");
9730
9730
  break;
9731
9731
  case "attributeValueDoubleQuoted":
9732
9732
  case "attributeValueSingleQuoted":
@@ -9744,7 +9744,7 @@ var define, require;
9744
9744
  appendDynamicAttributeValuePart(part) {
9745
9745
  this.finalizeTextPart();
9746
9746
  const attr = this.currentAttr;
9747
- attr.isDynamic = !0, attr.parts.push(part);
9747
+ attr.isDynamic = true, attr.parts.push(part);
9748
9748
  }
9749
9749
  finalizeTextPart() {
9750
9750
  const text = this.currentAttr.currentPart;
@@ -9845,7 +9845,7 @@ var define, require;
9845
9845
  parts = path.parts;
9846
9846
  }
9847
9847
  let pathHead,
9848
- thisHead = !1;
9848
+ thisHead = false;
9849
9849
  // This is to fix a bug in the Handlebars AST where the path expressions in
9850
9850
  // `{{this.foo}}` (and similarly `{{foo-bar this.foo named=this.foo}}` etc)
9851
9851
  // are simply turned into `{{foo}}`. The fix is to push it back onto the
@@ -9856,7 +9856,7 @@ var define, require;
9856
9856
  // escaping – such as `{{foo.["bar.baz"]}}` would mean lookup a property
9857
9857
  // named literally "bar.baz" on `this.foo`). By convention, we use `null`
9858
9858
  // for this purpose.
9859
- if (/^this(?:\..+)?$/u.test(original) && (thisHead = !0), thisHead) pathHead = b.this({
9859
+ if (/^this(?:\..+)?$/u.test(original) && (thisHead = true), thisHead) pathHead = b.this({
9860
9860
  loc: this.source.spanFor({
9861
9861
  start: path.loc.start,
9862
9862
  end: {
@@ -10075,7 +10075,7 @@ var define, require;
10075
10075
  modifiers: [],
10076
10076
  comments: [],
10077
10077
  params: [],
10078
- selfClosing: !1,
10078
+ selfClosing: false,
10079
10079
  start: this.source.offsetFor(this.tagOpenLine, this.tagOpenColumn)
10080
10080
  };
10081
10081
  }
@@ -10093,8 +10093,8 @@ var define, require;
10093
10093
  start: this.currentTag.start.toJSON(),
10094
10094
  end: this.offset().toJSON()
10095
10095
  }));
10096
- (voidMap.has(tag.name) || tag.selfClosing) && this.finishEndTag(!0);
10097
- } else tag.type, tag.type, this.finishEndTag(!1);
10096
+ (voidMap.has(tag.name) || tag.selfClosing) && this.finishEndTag(true);
10097
+ } else tag.type, tag.type, this.finishEndTag(false);
10098
10098
  }
10099
10099
  finishStartTag() {
10100
10100
  let {
@@ -10152,7 +10152,7 @@ var define, require;
10152
10152
  start: tag.start.toJSON(),
10153
10153
  end: this.offset().toJSON()
10154
10154
  }));
10155
- tag.selfClosing = !0;
10155
+ tag.selfClosing = true;
10156
10156
  }
10157
10157
  // Tags - name
10158
10158
  appendToTagName(char) {
@@ -10171,8 +10171,8 @@ var define, require;
10171
10171
  name: "",
10172
10172
  parts: [],
10173
10173
  currentPart: null,
10174
- isQuoted: !1,
10175
- isDynamic: !1,
10174
+ isQuoted: false,
10175
+ isDynamic: false,
10176
10176
  start: offset,
10177
10177
  valueSpan: offset.collapsed()
10178
10178
  };
@@ -10486,8 +10486,8 @@ var define, require;
10486
10486
  * optionally.
10487
10487
  */
10488
10488
  function getTemplateLocals(html, options = {
10489
- includeHtmlElements: !1,
10490
- includeKeywords: !1
10489
+ includeHtmlElements: false,
10490
+ includeKeywords: false
10491
10491
  }) {
10492
10492
  const ast = preprocess(html),
10493
10493
  tokensSet = new Set(),
@@ -10849,11 +10849,11 @@ var define, require;
10849
10849
  const STRICT_RESOLUTION = {
10850
10850
  resolution: () => opcodes.GetStrictKeyword,
10851
10851
  serialize: () => "Strict",
10852
- isAngleBracket: !1
10852
+ isAngleBracket: false
10853
10853
  },
10854
10854
  HTML_RESOLUTION = {
10855
10855
  ...STRICT_RESOLUTION,
10856
- isAngleBracket: !0
10856
+ isAngleBracket: true
10857
10857
  };
10858
10858
 
10859
10859
  /**
@@ -10871,7 +10871,7 @@ var define, require;
10871
10871
  * 3. `<a {{modifier}}>` (namespace: `Modifier`)
10872
10872
  * 4. `<Component />` (namespace: `Component`)
10873
10873
  */
10874
- static namespaced(namespace, isAngleBracket = !1) {
10874
+ static namespaced(namespace, isAngleBracket = false) {
10875
10875
  return new LooseModeResolution([namespace], isAngleBracket);
10876
10876
  }
10877
10877
  /**
@@ -10908,7 +10908,7 @@ var define, require;
10908
10908
  static trustingAppend() {
10909
10909
  return this.namespaced("Helper");
10910
10910
  }
10911
- constructor(namespaces, isAngleBracket = !1) {
10911
+ constructor(namespaces, isAngleBracket = false) {
10912
10912
  this.namespaces = namespaces, this.isAngleBracket = isAngleBracket;
10913
10913
  }
10914
10914
  resolution() {
@@ -11006,7 +11006,7 @@ var define, require;
11006
11006
  }
11007
11007
  get(name) {
11008
11008
  let index = this.usedTemplateLocals.indexOf(name);
11009
- return -1 !== index || (index = this.usedTemplateLocals.length, this.usedTemplateLocals.push(name)), [index, !0];
11009
+ return -1 !== index || (index = this.usedTemplateLocals.length, this.usedTemplateLocals.push(name)), [index, true];
11010
11010
  }
11011
11011
  getLocalsMap() {
11012
11012
  return dict();
@@ -11058,7 +11058,7 @@ var define, require;
11058
11058
  }
11059
11059
  get(name) {
11060
11060
  let local = this.#get(name);
11061
- return local ? [local, !1] : this.parent.get(name);
11061
+ return local ? [local, false] : this.parent.get(name);
11062
11062
  }
11063
11063
  #get(name) {
11064
11064
  let slot = this.symbols.indexOf(name);
@@ -11118,7 +11118,7 @@ var define, require;
11118
11118
  }
11119
11119
  simpleNamedBlock(name, block, loc) {
11120
11120
  return new BuildElement({
11121
- selfClosing: !1,
11121
+ selfClosing: false,
11122
11122
  attrs: [],
11123
11123
  componentArgs: [],
11124
11124
  modifiers: [],
@@ -11365,7 +11365,7 @@ var define, require;
11365
11365
  return isSimpleCallee(node) ? LooseModeResolution.namespaced("Component") : null;
11366
11366
  }
11367
11367
  function ComponentSyntaxContext(node) {
11368
- return isSimplePath(node) ? LooseModeResolution.namespaced("Component", !0) : null;
11368
+ return isSimplePath(node) ? LooseModeResolution.namespaced("Component", true) : null;
11369
11369
  }
11370
11370
 
11371
11371
  /**
@@ -11418,11 +11418,11 @@ var define, require;
11418
11418
  return "PathExpression" === node.type && "VarHead" === node.head.type && 0 === node.tail.length;
11419
11419
  }
11420
11420
  function normalize(source, options = {
11421
- lexicalScope: () => !1
11421
+ lexicalScope: () => false
11422
11422
  }) {
11423
11423
  let ast = preprocess(source, options),
11424
11424
  normalizeOptions = {
11425
- strictMode: !1,
11425
+ strictMode: false,
11426
11426
  ...options,
11427
11427
  locals: ast.blockParams,
11428
11428
  keywords: options.keywords ?? []
@@ -11453,7 +11453,7 @@ var define, require;
11453
11453
  this.source = source, this.options = options, this.table = table, this.builder = new Builder();
11454
11454
  }
11455
11455
  get strict() {
11456
- return this.options.strictMode || !1;
11456
+ return this.options.strictMode || false;
11457
11457
  }
11458
11458
  loc(loc) {
11459
11459
  return this.source.spanFor(loc);
@@ -11846,7 +11846,7 @@ var define, require;
11846
11846
  case "TextNode":
11847
11847
  return {
11848
11848
  expr: this.ctx.builder.literal(part.chars, this.ctx.loc(part.loc)),
11849
- trusting: !0
11849
+ trusting: true
11850
11850
  };
11851
11851
  }
11852
11852
  }
@@ -11855,7 +11855,7 @@ var define, require;
11855
11855
  let parts = part.parts.map(p => this.attrPart(p).expr);
11856
11856
  return {
11857
11857
  expr: this.ctx.builder.interpolate(parts, this.ctx.loc(part.loc)),
11858
- trusting: !1
11858
+ trusting: false
11859
11859
  };
11860
11860
  }
11861
11861
  return this.attrPart(part);
@@ -11964,15 +11964,15 @@ var define, require;
11964
11964
  class Children {
11965
11965
  constructor(loc, children, block) {
11966
11966
  this.loc = loc, this.children = children, this.block = block, this.namedBlocks = children.filter(c => c instanceof NamedBlock$1), this.hasSemanticContent = Boolean(children.filter(c => {
11967
- if (c instanceof NamedBlock$1) return !1;
11967
+ if (c instanceof NamedBlock$1) return false;
11968
11968
  switch (c.type) {
11969
11969
  case "GlimmerComment":
11970
11970
  case "HtmlComment":
11971
- return !1;
11971
+ return false;
11972
11972
  case "HtmlText":
11973
11973
  return !/^\s*$/u.test(c.chars);
11974
11974
  default:
11975
- return !0;
11975
+ return true;
11976
11976
  }
11977
11977
  }).length), this.nonBlockChildren = children.filter(c => !(c instanceof NamedBlock$1));
11978
11978
  }
@@ -12037,9 +12037,9 @@ var define, require;
12037
12037
  case "NumberLiteral":
12038
12038
  case "UndefinedLiteral":
12039
12039
  case "NullLiteral":
12040
- return !0;
12040
+ return true;
12041
12041
  default:
12042
- return !1;
12042
+ return false;
12043
12043
  }
12044
12044
  }
12045
12045
  function assertIllegalLiteral(node, loc) {
@@ -12105,7 +12105,7 @@ var define, require;
12105
12105
  }
12106
12106
  function normalizeStatement(statement) {
12107
12107
  return Array.isArray(statement) ? function (statement) {
12108
- if (!Array.isArray(statement)) return !1;
12108
+ if (!Array.isArray(statement)) return false;
12109
12109
  const name = statement[0];
12110
12110
  if ("number" == typeof name) switch (name) {
12111
12111
  case 0:
@@ -12113,9 +12113,9 @@ var define, require;
12113
12113
  case 6:
12114
12114
  case 7:
12115
12115
  case 8:
12116
- return !0;
12116
+ return true;
12117
12117
  default:
12118
- return !1;
12118
+ return false;
12119
12119
  }
12120
12120
  return "(" === name[0];
12121
12121
  }(statement) ? normalizeAppendExpression(statement) : function (statement) {
@@ -12124,11 +12124,11 @@ var define, require;
12124
12124
  case "#":
12125
12125
  case "<":
12126
12126
  case "!":
12127
- return !0;
12127
+ return true;
12128
12128
  default:
12129
- return !1;
12129
+ return false;
12130
12130
  }
12131
- return !1;
12131
+ return false;
12132
12132
  }(statement) ? function (statement) {
12133
12133
  const name = statement[0];
12134
12134
  switch (name[0]) {
@@ -12141,7 +12141,7 @@ var define, require;
12141
12141
  head: normalizeCallHead(name),
12142
12142
  params: params,
12143
12143
  hash: hash,
12144
- trusted: !1
12144
+ trusted: false
12145
12145
  };
12146
12146
  }
12147
12147
  case "#":
@@ -12222,7 +12222,7 @@ var define, require;
12222
12222
  value: statement[1]
12223
12223
  };
12224
12224
  }
12225
- }(statement) : "string" == typeof statement ? normalizeAppendHead(normalizeDottedPath(statement), !1) : void assertNever(statement);
12225
+ }(statement) : "string" == typeof statement ? normalizeAppendHead(normalizeDottedPath(statement), false) : void assertNever(statement);
12226
12226
  }
12227
12227
  function normalizeAppendHead(head, trusted) {
12228
12228
  return "GetPath" === head.type ? {
@@ -12312,13 +12312,13 @@ var define, require;
12312
12312
  params = null,
12313
12313
  hash = null,
12314
12314
  blockParams = null;
12315
- return 2 === statement.length ? blocks = normalizeBlocks(statement[1]) : 3 === statement.length ? (Array.isArray(statement[1]) ? params = normalizeParams(statement[1]) : ({
12315
+ return 2 === statement.length ? blocks = normalizeBlocks(statement[1]) : 3 === statement.length ? (Array.isArray(statement[1]) ? params = normalizeParams(statement[1]) : {
12316
12316
  hash: hash,
12317
12317
  blockParams: blockParams
12318
- } = normalizeBlockHash(statement[1])), blocks = normalizeBlocks(statement[2])) : (params = normalizeParams(statement[1]), ({
12318
+ } = normalizeBlockHash(statement[1]), blocks = normalizeBlocks(statement[2])) : (params = normalizeParams(statement[1]), {
12319
12319
  hash: hash,
12320
12320
  blockParams: blockParams
12321
- } = normalizeBlockHash(statement[2])), blocks = normalizeBlocks(statement[3])), {
12321
+ } = normalizeBlockHash(statement[2]), blocks = normalizeBlocks(statement[3])), {
12322
12322
  head: extractBlockHead(head),
12323
12323
  params: params,
12324
12324
  hash: hash,
@@ -12356,12 +12356,8 @@ var define, require;
12356
12356
  function normalizeAttrs(attrs) {
12357
12357
  return mapObject(attrs, a => {
12358
12358
  return (attr = a, "splat" === attr ? {
12359
- expr: "Splat",
12360
- trusted: !1
12361
- } : {
12362
- expr: normalizeExpression(attr),
12363
- trusted: !1
12364
- }).expr;
12359
+ expr: "Splat"} : {
12360
+ expr: normalizeExpression(attr)}).expr;
12365
12361
  var attr;
12366
12362
  });
12367
12363
  }
@@ -12375,14 +12371,14 @@ var define, require;
12375
12371
  const match = /^<([\d\-a-z][\d\-A-Za-z]*)>$/u.exec(input);
12376
12372
  return match?.[1] ?? null;
12377
12373
  }
12378
- function normalizeAppendExpression(expression, forceTrusted = !1) {
12374
+ function normalizeAppendExpression(expression, forceTrusted = false) {
12379
12375
  if (null == expression) return {
12380
12376
  expr: {
12381
12377
  type: "Literal",
12382
12378
  value: expression
12383
12379
  },
12384
12380
  kind: "AppendExpr",
12385
- trusted: !1
12381
+ trusted: false
12386
12382
  };
12387
12383
  if (Array.isArray(expression)) switch (expression[0]) {
12388
12384
  case 0:
@@ -12392,7 +12388,7 @@ var define, require;
12392
12388
  value: expression[1]
12393
12389
  },
12394
12390
  kind: "AppendExpr",
12395
- trusted: !1
12391
+ trusted: false
12396
12392
  };
12397
12393
  case 5:
12398
12394
  return normalizeAppendHead(normalizePath(expression[1], expression[2]), forceTrusted);
@@ -12441,7 +12437,7 @@ var define, require;
12441
12437
  value: expression
12442
12438
  },
12443
12439
  kind: "AppendExpr",
12444
- trusted: !0
12440
+ trusted: true
12445
12441
  };
12446
12442
  default:
12447
12443
  assertNever(expression);
@@ -12553,7 +12549,7 @@ var define, require;
12553
12549
  return 0;
12554
12550
  }
12555
12551
  hasLocal(_name) {
12556
- return !1;
12552
+ return false;
12557
12553
  }
12558
12554
  // any symbol
12559
12555
  symbol(name) {
@@ -12746,8 +12742,8 @@ var define, require;
12746
12742
  function buildAttributeValue(name, value, namespace, symbols) {
12747
12743
  if ("Literal" === value.type) {
12748
12744
  let val = value.value;
12749
- if (!1 === val) return [];
12750
- if (!0 === val) return [[opcodes.StaticAttr, name, "", namespace ?? void 0]];
12745
+ if (false === val) return [];
12746
+ if (true === val) return [[opcodes.StaticAttr, name, "", namespace ?? void 0]];
12751
12747
  if ("string" == typeof val) return [[opcodes.StaticAttr, name, val, namespace ?? void 0]];
12752
12748
  throw new Error(`Unexpected/unimplemented literal attribute ${JSON.stringify(val)}`);
12753
12749
  }
@@ -12770,14 +12766,14 @@ var define, require;
12770
12766
  case "GetPath":
12771
12767
  return buildGetPath(expr, symbols);
12772
12768
  case "GetVar":
12773
- return buildVar(expr.variable, varContext(context, !0), symbols);
12769
+ return buildVar(expr.variable, varContext(context, true), symbols);
12774
12770
  case "Concat":
12775
12771
  return [opcodes.Concat, buildConcat(expr.params, symbols)];
12776
12772
  case "Call":
12777
12773
  {
12778
12774
  let builtParams = buildParams(expr.params, symbols),
12779
12775
  builtHash = buildHash(expr.hash, symbols),
12780
- builtExpr = buildCallHead(expr.head, "Strict" === context ? "SubExpression" : varContext(context, !1), symbols);
12776
+ builtExpr = buildCallHead(expr.head, "Strict" === context ? "SubExpression" : varContext(context, false), symbols);
12781
12777
  return [opcodes.Call, builtExpr, builtParams, builtHash];
12782
12778
  }
12783
12779
  case "HasBlock":
@@ -12953,7 +12949,7 @@ var define, require;
12953
12949
  const Result = ResultImpl;
12954
12950
  class OkImpl extends ResultImpl {
12955
12951
  constructor(value) {
12956
- super(), this.value = value, this.isOk = !0, this.isErr = !1;
12952
+ super(), this.value = value, this.isOk = true, this.isErr = false;
12957
12953
  }
12958
12954
  expect(_message) {
12959
12955
  return this.value;
@@ -12976,7 +12972,7 @@ var define, require;
12976
12972
  }
12977
12973
  class ErrImpl extends ResultImpl {
12978
12974
  constructor(reason) {
12979
- super(), this.reason = reason, this.isOk = !1, this.isErr = !0;
12975
+ super(), this.reason = reason, this.isOk = false, this.isErr = true;
12980
12976
  }
12981
12977
  expect(message) {
12982
12978
  throw new Error(message || "expected an Ok, got Err");
@@ -13138,7 +13134,7 @@ var define, require;
13138
13134
  this.types = nodes;
13139
13135
  }
13140
13136
  match(node) {
13141
- if (!this.types.has(node.type)) return !1;
13137
+ if (!this.types.has(node.type)) return false;
13142
13138
  let path = getCalleeExpression(node);
13143
13139
  return null !== path && "Path" === path.type && "Free" === path.ref.type && path.ref.name === this.keyword;
13144
13140
  }
@@ -13927,7 +13923,7 @@ var define, require;
13927
13923
  }
13928
13924
  class ClassifiedComponent {
13929
13925
  constructor(tag, element) {
13930
- this.tag = tag, this.element = element, this.dynamicFeatures = !0;
13926
+ this.tag = tag, this.element = element, this.dynamicFeatures = true;
13931
13927
  }
13932
13928
  arg(attr, {
13933
13929
  state: state
@@ -13961,7 +13957,7 @@ var define, require;
13961
13957
  }
13962
13958
  class ClassifiedSimpleElement {
13963
13959
  constructor(tag, element, dynamicFeatures) {
13964
- this.tag = tag, this.element = element, this.dynamicFeatures = dynamicFeatures, this.isComponent = !1;
13960
+ this.tag = tag, this.element = element, this.dynamicFeatures = dynamicFeatures, this.isComponent = false;
13965
13961
  }
13966
13962
  arg(attr) {
13967
13963
  return Err(generateSyntaxError(`${attr.name.chars} is not a valid attribute name. @arguments are only allowed on components, but the tag for this element (\`${this.tag.chars}\`) is a regular, non-component HTML element.`, attr.loc));
@@ -14863,7 +14859,7 @@ var define, require;
14863
14859
  function precompileJSON(string, options = defaultOptions) {
14864
14860
  const source = new api$1.Source(string ?? "", options.meta?.moduleName),
14865
14861
  [ast, locals] = normalize(source, {
14866
- lexicalScope: () => !1,
14862
+ lexicalScope: () => false,
14867
14863
  ...options
14868
14864
  }),
14869
14865
  block = function (source, root, isStrict) {
@@ -14875,7 +14871,7 @@ var define, require;
14875
14871
  body: body.toArray()
14876
14872
  }));
14877
14873
  return isStrict && (template = template.andThen(template => StrictModeValidationPass.validate(template))), template;
14878
- }(0, ast, options.strictMode ?? !1).mapOk(pass2In => function (template) {
14874
+ }(0, ast, options.strictMode ?? false).mapOk(pass2In => function (template) {
14879
14875
  let statements = CONTENT.list(template.body),
14880
14876
  scope = template.scope;
14881
14877
  return [statements, scope.symbols, scope.upvars];
@@ -14913,7 +14909,7 @@ var define, require;
14913
14909
  // lying to the type checker here because we're going to
14914
14910
  // replace it just below, after stringification
14915
14911
  scope: "796d24e6-2450-4fb0-8cdf-b65638b5ef70",
14916
- isStrictMode: options.strictMode ?? !1
14912
+ isStrictMode: options.strictMode ?? false
14917
14913
  };
14918
14914
  0 === usedLocals.length && delete templateJSONObject.scope;
14919
14915
  // JSON is javascript
@@ -15018,7 +15014,7 @@ var define, require;
15018
15014
  }, Symbol.toStringTag, { value: 'Module' });
15019
15015
 
15020
15016
  // this file gets replaced with the real value during the build
15021
- const version = '6.4.0-alpha.3';
15017
+ const version = '6.4.0-alpha.4';
15022
15018
 
15023
15019
  const emberVersion = /*#__PURE__*/Object.defineProperty({
15024
15020
  __proto__: null,
@@ -15466,7 +15462,7 @@ var define, require;
15466
15462
  };
15467
15463
  }
15468
15464
 
15469
- function transformQuotedBindingsIntoJustBindings( /* env */
15465
+ function transformQuotedBindingsIntoJustBindings(/* env */
15470
15466
  ) {
15471
15467
  return {
15472
15468
  name: 'transform-quoted-bindings-into-just-bindings',