ember-source 7.3.0-alpha.4 → 7.3.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/build-metadata.json +3 -3
  2. package/dist/dev/packages/@ember/-internals/deprecations/index.js +9 -0
  3. package/dist/dev/packages/@ember/-internals/glimmer/index.js +7 -7
  4. package/dist/dev/packages/@ember/-internals/metal/index.js +8 -8
  5. package/dist/dev/packages/@ember/-internals/routing/index.js +3 -3
  6. package/dist/dev/packages/@ember/-internals/runtime/index.js +1 -1
  7. package/dist/dev/packages/@ember/-internals/runtime/lib/ext/rsvp.js +1 -1
  8. package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +2 -2
  9. package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +5 -1
  10. package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +4 -1
  11. package/dist/dev/packages/@ember/-internals/views/lib/mixins/action_support.js +3 -1
  12. package/dist/dev/packages/@ember/-internals/views/lib/system/event_dispatcher.js +2 -2
  13. package/dist/dev/packages/@ember/application/index.js +5 -5
  14. package/dist/dev/packages/@ember/application/instance.js +11 -11
  15. package/dist/dev/packages/@ember/application/namespace.js +1 -1
  16. package/dist/dev/packages/@ember/array/index.js +2 -2
  17. package/dist/dev/packages/@ember/array/lib/is-array.js +1 -1
  18. package/dist/dev/packages/@ember/array/proxy.js +2 -2
  19. package/dist/dev/packages/@ember/component/helper.js +2 -2
  20. package/dist/dev/packages/@ember/component/index.js +4 -4
  21. package/dist/dev/packages/@ember/controller/index.js +1 -1
  22. package/dist/dev/packages/@ember/debug/data-adapter.js +1 -1
  23. package/dist/dev/packages/@ember/engine/index.js +5 -5
  24. package/dist/dev/packages/@ember/engine/instance.js +1 -1
  25. package/dist/dev/packages/@ember/helper/index.js +1132 -79
  26. package/dist/dev/packages/@ember/modifier/on.js +1 -1
  27. package/dist/dev/packages/@ember/object/compat.js +0 -32
  28. package/dist/dev/packages/@ember/object/computed.js +1 -1
  29. package/dist/dev/packages/@ember/object/core.js +1 -1
  30. package/dist/dev/packages/@ember/object/index.js +4 -4
  31. package/dist/dev/packages/@ember/object/lib/computed/computed_macros.js +3 -3
  32. package/dist/dev/packages/@ember/object/lib/computed/reduce_computed_macros.js +1 -1
  33. package/dist/dev/packages/@ember/object/observable.js +4 -4
  34. package/dist/dev/packages/@ember/object/promise-proxy-mixin.js +2 -2
  35. package/dist/dev/packages/@ember/renderer/index.js +1 -1
  36. package/dist/dev/packages/@ember/routing/-internals.js +3 -3
  37. package/dist/dev/packages/@ember/routing/history-location.js +2 -2
  38. package/dist/dev/packages/@ember/routing/index.js +11 -28
  39. package/dist/dev/packages/@ember/routing/lib/generate_controller.js +1 -1
  40. package/dist/dev/packages/@ember/routing/lib/location-utils.js +14 -11
  41. package/dist/dev/packages/@ember/routing/lib/routing-service.js +1 -1
  42. package/dist/dev/packages/@ember/routing/lib/utils.js +3 -3
  43. package/dist/dev/packages/@ember/routing/none-location.js +2 -1
  44. package/dist/dev/packages/@ember/routing/route.js +17 -6
  45. package/dist/dev/packages/@ember/routing/router-service.js +10 -10
  46. package/dist/dev/packages/@ember/routing/router.js +4 -4
  47. package/dist/dev/packages/@ember/template-compiler/lib/compile-options.js +3 -3
  48. package/dist/dev/packages/@ember/template-compiler/lib/template.js +2 -2
  49. package/dist/dev/packages/@ember/template-factory/index.js +1 -1
  50. package/dist/dev/packages/@ember/utils/lib/is_empty.js +1 -1
  51. package/dist/dev/packages/@glimmer/opcode-compiler/index.js +2 -2
  52. package/dist/dev/packages/@glimmer/program/index.js +3 -3
  53. package/dist/dev/packages/@glimmer/runtime/index.js +7 -7
  54. package/dist/dev/packages/@glimmer/wire-format/index.js +2 -5
  55. package/dist/dev/packages/ember/version.js +1 -1
  56. package/dist/dev/packages/ember-template-compiler/index.js +2 -2
  57. package/dist/dev/packages/router_js/index.js +17 -9
  58. package/dist/dev/packages/rsvp/index.js +1 -2281
  59. package/dist/dev/packages/shared-chunks/{alias-CT_thCad.js → alias-3DBxvoim.js} +2 -2
  60. package/dist/dev/packages/shared-chunks/{arguments-CDkbOqTS.js → arguments-DniR8eF2.js} +5 -18
  61. package/dist/dev/packages/shared-chunks/{compiler-QUSl_urU.js → compiler-BHFFl-fv.js} +1 -1
  62. package/dist/dev/packages/shared-chunks/{curly-DGUCLOud.js → curly-BCD_vyHq.js} +2 -2
  63. package/dist/dev/packages/shared-chunks/{element-BYLB-q7a.js → element-Cgoi4ldD.js} +0 -24
  64. package/dist/dev/packages/shared-chunks/get-zsePWrJL.js +40 -0
  65. package/dist/dev/packages/shared-chunks/{get_properties-Cm2sWt5f.js → get_properties-BlyZny5J.js} +1 -1
  66. package/dist/dev/packages/shared-chunks/hash-BFu91gtE.js +57 -0
  67. package/dist/dev/packages/shared-chunks/{index-D1AjYv31.js → index-B5gBbO_p.js} +195 -79
  68. package/dist/dev/packages/shared-chunks/{index-DaFzpTIE.js → index-BYUSIu_W.js} +3 -3
  69. package/dist/dev/packages/shared-chunks/{invoke-d9sqa50M.js → invoke-CgF42joE.js} +1 -1
  70. package/dist/dev/packages/shared-chunks/{libraries-DwffpMGE.js → libraries-BrYKoqoK.js} +1 -1
  71. package/dist/dev/packages/shared-chunks/{not-DYh6AY9Z.js → not-0cVb-rLf.js} +1 -1
  72. package/dist/dev/packages/shared-chunks/{on-DlF0Wy7P.js → on-CVIjn2C-.js} +22 -11
  73. package/dist/dev/packages/shared-chunks/{opcodes-CplRyHl_.js → opcodes-DDajoGhq.js} +0 -4
  74. package/dist/dev/packages/shared-chunks/{outlet-CHFL7tun.js → outlet-BO5-QFmm.js} +3 -3
  75. package/dist/dev/packages/shared-chunks/{program-context-Dq8xN2HI.js → program-context-BBB1Ga5h.js} +2 -2
  76. package/dist/dev/packages/shared-chunks/{property_get-CRP7MFz_.js → property_get-DXwpgTe7.js} +1 -1
  77. package/dist/dev/packages/shared-chunks/{property_set-CVlVgdor.js → property_set-DezUwDX4.js} +1 -1
  78. package/dist/dev/packages/shared-chunks/{render-CtH73XOv.js → render-D_Rawf-r.js} +2 -2
  79. package/dist/{prod/packages/shared-chunks/rsvp.es-DR7yS7qg.js → dev/packages/shared-chunks/rsvp-aLN_pQtn.js} +152 -148
  80. package/dist/dev/packages/shared-chunks/{set_properties-CEUT_EJn.js → set_properties-BzM_irwA.js} +1 -1
  81. package/dist/dev/packages/shared-chunks/{setup-registry-DQ3c4Juo.js → setup-registry-Dp5dtaLa.js} +35 -13
  82. package/dist/{prod/packages/shared-chunks/syscall-ops-CN7STuUn.js → dev/packages/shared-chunks/syscall-ops-CkPT1Kfx.js} +1 -2
  83. package/dist/dev/packages/shared-chunks/{textarea-DEvw4ezm.js → textarea-DvS6Xmdh.js} +3 -23
  84. package/dist/dev/packages/shared-chunks/{unique-id-DQOhouG1.js → unique-id-Csxuh1I7.js} +0 -4
  85. package/dist/dev/packages/shared-chunks/{unrecognized-url-error-B8loxkay.js → unrecognized-url-error-cXUp-SK3.js} +1 -1
  86. package/dist/prod/packages/@ember/-internals/deprecations/index.js +9 -0
  87. package/dist/prod/packages/@ember/-internals/glimmer/index.js +7 -7
  88. package/dist/prod/packages/@ember/-internals/metal/index.js +8 -8
  89. package/dist/prod/packages/@ember/-internals/routing/index.js +3 -3
  90. package/dist/prod/packages/@ember/-internals/runtime/index.js +1 -1
  91. package/dist/prod/packages/@ember/-internals/runtime/lib/ext/rsvp.js +1 -1
  92. package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +2 -2
  93. package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +5 -1
  94. package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +4 -1
  95. package/dist/prod/packages/@ember/-internals/views/lib/mixins/action_support.js +3 -1
  96. package/dist/prod/packages/@ember/-internals/views/lib/system/event_dispatcher.js +2 -2
  97. package/dist/prod/packages/@ember/application/index.js +5 -5
  98. package/dist/prod/packages/@ember/application/instance.js +11 -11
  99. package/dist/prod/packages/@ember/application/namespace.js +1 -1
  100. package/dist/prod/packages/@ember/array/index.js +2 -2
  101. package/dist/prod/packages/@ember/array/lib/is-array.js +1 -1
  102. package/dist/prod/packages/@ember/array/proxy.js +2 -2
  103. package/dist/prod/packages/@ember/component/helper.js +2 -2
  104. package/dist/prod/packages/@ember/component/index.js +4 -4
  105. package/dist/prod/packages/@ember/controller/index.js +1 -1
  106. package/dist/prod/packages/@ember/debug/data-adapter.js +1 -1
  107. package/dist/prod/packages/@ember/engine/index.js +5 -5
  108. package/dist/prod/packages/@ember/engine/instance.js +1 -1
  109. package/dist/prod/packages/@ember/helper/index.js +1132 -79
  110. package/dist/prod/packages/@ember/modifier/on.js +1 -1
  111. package/dist/prod/packages/@ember/object/compat.js +0 -32
  112. package/dist/prod/packages/@ember/object/computed.js +1 -1
  113. package/dist/prod/packages/@ember/object/core.js +1 -1
  114. package/dist/prod/packages/@ember/object/index.js +4 -4
  115. package/dist/prod/packages/@ember/object/lib/computed/computed_macros.js +3 -3
  116. package/dist/prod/packages/@ember/object/lib/computed/reduce_computed_macros.js +1 -1
  117. package/dist/prod/packages/@ember/object/observable.js +4 -4
  118. package/dist/prod/packages/@ember/object/promise-proxy-mixin.js +2 -2
  119. package/dist/prod/packages/@ember/renderer/index.js +1 -1
  120. package/dist/prod/packages/@ember/routing/history-location.js +2 -2
  121. package/dist/prod/packages/@ember/routing/index.js +10 -27
  122. package/dist/prod/packages/@ember/routing/lib/generate_controller.js +1 -1
  123. package/dist/prod/packages/@ember/routing/lib/location-utils.js +14 -11
  124. package/dist/prod/packages/@ember/routing/lib/routing-service.js +1 -1
  125. package/dist/prod/packages/@ember/routing/lib/utils.js +3 -3
  126. package/dist/prod/packages/@ember/routing/none-location.js +2 -1
  127. package/dist/prod/packages/@ember/routing/route.js +17 -6
  128. package/dist/prod/packages/@ember/routing/router-service.js +10 -10
  129. package/dist/prod/packages/@ember/routing/router.js +4 -4
  130. package/dist/prod/packages/@ember/template-compiler/lib/compile-options.js +3 -3
  131. package/dist/prod/packages/@ember/template-compiler/lib/template.js +2 -2
  132. package/dist/prod/packages/@ember/template-factory/index.js +1 -1
  133. package/dist/prod/packages/@ember/utils/lib/is_empty.js +1 -1
  134. package/dist/prod/packages/@glimmer/opcode-compiler/index.js +2 -2
  135. package/dist/prod/packages/@glimmer/program/index.js +3 -3
  136. package/dist/prod/packages/@glimmer/runtime/index.js +7 -7
  137. package/dist/prod/packages/@glimmer/wire-format/index.js +2 -5
  138. package/dist/prod/packages/ember/version.js +1 -1
  139. package/dist/prod/packages/ember-template-compiler/index.js +2 -2
  140. package/dist/prod/packages/router_js/index.js +17 -9
  141. package/dist/prod/packages/rsvp/index.js +1 -2281
  142. package/dist/prod/packages/shared-chunks/{alias-CHHuE0LE.js → alias-IFzw6sv_.js} +2 -2
  143. package/dist/prod/packages/shared-chunks/{arguments-BzAkZVBa.js → arguments-CCYATlEH.js} +1 -18
  144. package/dist/prod/packages/shared-chunks/{compiler-lBSssiWp.js → compiler-Wt5SWcrF.js} +1 -1
  145. package/dist/prod/packages/shared-chunks/{curly-a6DP7r87.js → curly-CdvJuTyW.js} +2 -2
  146. package/dist/prod/packages/shared-chunks/{element-DgHdPZ8u.js → element-BmBjPjkQ.js} +0 -24
  147. package/dist/prod/packages/shared-chunks/get-CEjFJzGs.js +40 -0
  148. package/dist/prod/packages/shared-chunks/{get_properties-Dg3xFpiS.js → get_properties-CkJ_mhLz.js} +1 -1
  149. package/dist/prod/packages/shared-chunks/hash-BitfXhCx.js +57 -0
  150. package/dist/prod/packages/shared-chunks/{index-CvQQ6l11.js → index-C4VEqlp7.js} +195 -79
  151. package/dist/prod/packages/shared-chunks/{index-Bf53M8eS.js → index-kwuZeaNz.js} +3 -3
  152. package/dist/prod/packages/shared-chunks/{invoke-DhQ5QRp2.js → invoke-4JGJYH7Z.js} +1 -1
  153. package/dist/prod/packages/shared-chunks/{libraries-DBql0hdn.js → libraries-Dx5DiBJv.js} +1 -1
  154. package/dist/prod/packages/shared-chunks/{not-BOIVROuv.js → not-Dn5s9qVZ.js} +1 -1
  155. package/dist/prod/packages/shared-chunks/{on-BZHAxzdq.js → on-ov4KAucw.js} +22 -11
  156. package/dist/prod/packages/shared-chunks/{opcodes-CplRyHl_.js → opcodes-DDajoGhq.js} +0 -4
  157. package/dist/prod/packages/shared-chunks/{outlet--lIm3q7t.js → outlet-BWnaVOrA.js} +3 -3
  158. package/dist/prod/packages/shared-chunks/{program-context-COSioH46.js → program-context-WVlzpPdi.js} +2 -2
  159. package/dist/prod/packages/shared-chunks/{property_get-DAKgbeJX.js → property_get-DuDs6rLg.js} +1 -1
  160. package/dist/prod/packages/shared-chunks/{property_set-CkLe4ht8.js → property_set-BmAQ0MGK.js} +1 -1
  161. package/dist/prod/packages/shared-chunks/{render-Bf7GviCY.js → render-BAVl5E6X.js} +2 -2
  162. package/dist/{dev/packages/shared-chunks/rsvp.es-DR7yS7qg.js → prod/packages/shared-chunks/rsvp-aLN_pQtn.js} +152 -148
  163. package/dist/prod/packages/shared-chunks/{set_properties-Cs3rVemD.js → set_properties-DYiBfzdk.js} +1 -1
  164. package/dist/prod/packages/shared-chunks/{setup-registry-kOGgOucf.js → setup-registry-DI1Agp-0.js} +35 -13
  165. package/dist/{dev/packages/shared-chunks/syscall-ops-CN7STuUn.js → prod/packages/shared-chunks/syscall-ops-CkPT1Kfx.js} +1 -2
  166. package/dist/prod/packages/shared-chunks/{textarea-DMmdvgk2.js → textarea-B-sssXGa.js} +3 -23
  167. package/dist/prod/packages/shared-chunks/{unique-id-o2pS74go.js → unique-id-BJb1p8EG.js} +0 -4
  168. package/dist/prod/packages/shared-chunks/{unrecognized-url-error-jjQ-FqKB.js → unrecognized-url-error-xC654tCo.js} +1 -1
  169. package/docs/data.json +1249 -1408
  170. package/package.json +7 -4
  171. package/types/stable/@ember/-internals/deprecations/index.d.ts +6 -0
  172. package/types/stable/@ember/-internals/glimmer/index.d.ts +7 -380
  173. package/types/stable/@ember/-internals/glimmer/lib/component.d.ts +1 -1
  174. package/types/stable/@ember/-internals/glimmer/lib/helper.d.ts +2 -2
  175. package/types/stable/@ember/-internals/glimmer/lib/helpers/each-in.d.ts +171 -62
  176. package/types/stable/@ember/-internals/glimmer/lib/helpers/element.d.ts +0 -24
  177. package/types/stable/@ember/-internals/glimmer/lib/helpers/mut.d.ts +3 -2
  178. package/types/stable/@ember/-internals/glimmer/lib/helpers/readonly.d.ts +3 -1
  179. package/types/stable/@ember/-internals/glimmer/lib/helpers/unbound.d.ts +6 -2
  180. package/types/stable/@ember/-internals/glimmer/lib/helpers/unique-id.d.ts +0 -3
  181. package/types/stable/@ember/-internals/glimmer/lib/syntax/mount.d.ts +4 -2
  182. package/types/stable/@ember/-internals/glimmer/lib/syntax/outlet.d.ts +7 -2
  183. package/types/stable/@ember/helper/index.d.ts +1113 -73
  184. package/types/stable/@ember/object/compat.d.ts +0 -32
  185. package/types/stable/@ember/object/core.d.ts +1 -1
  186. package/types/stable/@ember/routing/lib/location-utils.d.ts +10 -7
  187. package/types/stable/@ember/routing/router-service.d.ts +9 -9
  188. package/types/stable/@glimmer/interfaces/lib/compile/wire-format/api.d.ts +1 -9
  189. package/types/stable/@glimmer/interfaces/lib/compile/wire-format/opcodes.d.ts +0 -4
  190. package/types/stable/@glimmer/interfaces/lib/vm-opcodes.d.ts +0 -4
  191. package/types/stable/@glimmer/opcode-compiler/lib/opcode-builder/helpers/conditional.d.ts +1 -1
  192. package/types/stable/@glimmer/opcode-compiler/lib/syntax/statements.d.ts +1 -1
  193. package/types/stable/@glimmer/runtime/lib/helpers/array.d.ts +0 -33
  194. package/types/stable/@glimmer/runtime/lib/helpers/concat.d.ts +0 -25
  195. package/types/stable/@glimmer/runtime/lib/helpers/fn.d.ts +0 -70
  196. package/types/stable/@glimmer/runtime/lib/helpers/get.d.ts +0 -69
  197. package/types/stable/@glimmer/runtime/lib/helpers/hash.d.ts +0 -36
  198. package/types/stable/index.d.ts +0 -14
  199. package/dist/dev/packages/shared-chunks/get-6I3sjd-I.js +0 -135
  200. package/dist/dev/packages/shared-chunks/hash-6NDs_5_f.js +0 -198
  201. package/dist/prod/packages/shared-chunks/get-Dago5uGl.js +0 -135
  202. package/dist/prod/packages/shared-chunks/hash-gEXIsSO4.js +0 -198
  203. package/types/stable/@ember/-internals/glimmer/lib/helpers/array.d.ts +0 -43
  204. package/types/stable/@ember/-internals/glimmer/lib/helpers/component.d.ts +0 -93
  205. package/types/stable/@ember/-internals/glimmer/lib/helpers/concat.d.ts +0 -32
  206. package/types/stable/@ember/-internals/glimmer/lib/helpers/fn.d.ts +0 -77
  207. package/types/stable/@ember/-internals/glimmer/lib/helpers/get.d.ts +0 -94
  208. package/types/stable/@ember/-internals/glimmer/lib/helpers/hash.d.ts +0 -46
  209. package/types/stable/@ember/-internals/glimmer/lib/helpers/helper.d.ts +0 -43
  210. package/types/stable/@ember/-internals/glimmer/lib/helpers/if-unless.d.ts +0 -228
  211. package/types/stable/@ember/-internals/glimmer/lib/helpers/log.d.ts +0 -19
  212. package/types/stable/@ember/-internals/glimmer/lib/helpers/modifier.d.ts +0 -42
  213. package/types/stable/@ember/-internals/glimmer/lib/helpers/page-title.d.ts +0 -24
  214. package/types/stable/@ember/-internals/glimmer/lib/modifiers/on.d.ts +0 -95
  215. package/types/stable/@ember/-internals/glimmer/lib/syntax/in-element.d.ts +0 -49
  216. package/types/stable/@ember/-internals/glimmer/lib/syntax/let.d.ts +0 -43
@@ -1,6 +1,6 @@
1
1
  import { a as assign } from './object-utils-AijlD-JH.js';
2
2
  import { b as EMPTY_STRING_ARRAY, E as EMPTY_ARRAY, e as enumerate, r as reverse } from './array-utils-CZQxrdD3.js';
3
- import { r as VM_PRIMITIVE_OP, aE as encodeHandle, au as VM_CONCAT_OP, al as VM_GET_VARIABLE_OP, q as VM_CONSTANT_REFERENCE_OP, ap as VM_GET_PROPERTY_OP, as as VM_HAS_BLOCK_OP, ar as VM_SPREAD_BLOCK_OP, E as VM_COMPILE_BLOCK_OP, at as VM_HAS_BLOCK_PARAMS_OP, av as VM_IF_INLINE_OP, aw as VM_NOT_OP, ax as VM_GET_DYNAMIC_VAR_OP, ay as VM_LOG_OP, y as VM_FETCH_OP, u as VM_PRIMITIVE_REFERENCE_OP, ak as VM_HELPER_OP, v as VM_DUP_OP, aj as VM_DYNAMIC_HELPER_OP, w as VM_POP_OP, $ as VM_CAPTURE_ARGS_OP, ai as VM_CURRY_OP, aF as isSmallInt, aG as encodeImmediate, m as VM_PUSH_DYNAMIC_SCOPE_OP, z as VM_BIND_DYNAMIC_SCOPE_OP, n as VM_POP_DYNAMIC_SCOPE_OP, aq as VM_GET_BLOCK_OP, F as VM_INVOKE_YIELD_OP, l as VM_POP_SCOPE_OP, k as VM_CHILD_SCOPE_OP, am as VM_SET_VARIABLE_OP, o as VM_CONSTANT_OP, D as VM_PUSH_BLOCK_SCOPE_OP, C as VM_PUSH_SYMBOL_TABLE_OP, _ as VM_PUSH_EMPTY_ARGS_OP, Z as VM_PUSH_ARGS_OP, A as VM_ENTER_OP, I as VM_JUMP_EQ_OP, B as VM_EXIT_OP, H as VM_JUMP_UNLESS_OP, X as VM_PUSH_COMPONENT_DEFINITION_OP, x as VM_LOAD_OP, a3 as VM_BEGIN_COMPONENT_TRANSACTION_OP, a1 as VM_CREATE_COMPONENT_OP, a2 as VM_REGISTER_COMPONENT_DESTRUCTOR_OP, a8 as VM_GET_COMPONENT_SELF_OP, ao as VM_ROOT_SCOPE_OP, an as VM_SET_BLOCK_OP, ag as VM_DID_RENDER_LAYOUT_OP, ah as VM_COMMIT_COMPONENT_TRANSACTION_OP, a0 as VM_PREPARE_ARGS_OP, ac as VM_VIRTUAL_ROOT_SCOPE_OP, ad as VM_SET_NAMED_VARIABLES_OP, ae as VM_SET_BLOCKS_OP, af as VM_INVOKE_COMPONENT_LAYOUT_OP, a4 as VM_PUT_COMPONENT_OPERATIONS_OP, N as VM_OPEN_DYNAMIC_ELEMENT_OP, a7 as VM_DID_CREATE_ELEMENT_OP, Q as VM_FLUSH_ELEMENT_OP, R as VM_CLOSE_ELEMENT_OP, e as VM_RESOLVE_CURRIED_COMPONENT_OP, Y as VM_RESOLVE_DYNAMIC_COMPONENT_OP, f as VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, aa as VM_GET_COMPONENT_LAYOUT_OP, ab as VM_POPULATE_LAYOUT_OP, a9 as VM_GET_COMPONENT_TAG_NAME_OP, L as VM_COMMENT_OP, S as VM_MODIFIER_OP, T as VM_DYNAMIC_MODIFIER_OP, U as VM_STATIC_ATTR_OP, a6 as VM_STATIC_COMPONENT_ATTR_OP, W as VM_DYNAMIC_ATTR_OP, a5 as VM_COMPONENT_ATTR_OP, M as VM_OPEN_ELEMENT_OP, aA as VM_DEBUGGER_OP, K as VM_TEXT_OP, b as VM_ASSERT_SAME_OP, az as VM_DYNAMIC_CONTENT_TYPE_OP, O as VM_PUSH_REMOTE_ELEMENT_OP, P as VM_POP_REMOTE_ELEMENT_OP, J as VM_TO_BOOLEAN_OP, aB as VM_ENTER_LIST_OP, aD as VM_ITERATE_OP, aC as VM_EXIT_LIST_OP } from './syscall-ops-CN7STuUn.js';
3
+ import { r as VM_PRIMITIVE_OP, aD as encodeHandle, at as VM_CONCAT_OP, ak as VM_GET_VARIABLE_OP, q as VM_CONSTANT_REFERENCE_OP, ao as VM_GET_PROPERTY_OP, ar as VM_HAS_BLOCK_OP, aq as VM_SPREAD_BLOCK_OP, E as VM_COMPILE_BLOCK_OP, as as VM_HAS_BLOCK_PARAMS_OP, au as VM_IF_INLINE_OP, av as VM_NOT_OP, aw as VM_GET_DYNAMIC_VAR_OP, ax as VM_LOG_OP, y as VM_FETCH_OP, u as VM_PRIMITIVE_REFERENCE_OP, aj as VM_HELPER_OP, v as VM_DUP_OP, ai as VM_DYNAMIC_HELPER_OP, w as VM_POP_OP, _ as VM_CAPTURE_ARGS_OP, ah as VM_CURRY_OP, aE as isSmallInt, aF as encodeImmediate, m as VM_PUSH_DYNAMIC_SCOPE_OP, z as VM_BIND_DYNAMIC_SCOPE_OP, n as VM_POP_DYNAMIC_SCOPE_OP, ap as VM_GET_BLOCK_OP, F as VM_INVOKE_YIELD_OP, l as VM_POP_SCOPE_OP, k as VM_CHILD_SCOPE_OP, al as VM_SET_VARIABLE_OP, o as VM_CONSTANT_OP, D as VM_PUSH_BLOCK_SCOPE_OP, C as VM_PUSH_SYMBOL_TABLE_OP, Z as VM_PUSH_EMPTY_ARGS_OP, Y as VM_PUSH_ARGS_OP, A as VM_ENTER_OP, H as VM_JUMP_EQ_OP, B as VM_EXIT_OP, G as VM_JUMP_UNLESS_OP, W as VM_PUSH_COMPONENT_DEFINITION_OP, x as VM_LOAD_OP, a2 as VM_BEGIN_COMPONENT_TRANSACTION_OP, a0 as VM_CREATE_COMPONENT_OP, a1 as VM_REGISTER_COMPONENT_DESTRUCTOR_OP, a7 as VM_GET_COMPONENT_SELF_OP, an as VM_ROOT_SCOPE_OP, am as VM_SET_BLOCK_OP, af as VM_DID_RENDER_LAYOUT_OP, ag as VM_COMMIT_COMPONENT_TRANSACTION_OP, $ as VM_PREPARE_ARGS_OP, ab as VM_VIRTUAL_ROOT_SCOPE_OP, ac as VM_SET_NAMED_VARIABLES_OP, ad as VM_SET_BLOCKS_OP, ae as VM_INVOKE_COMPONENT_LAYOUT_OP, a3 as VM_PUT_COMPONENT_OPERATIONS_OP, M as VM_OPEN_DYNAMIC_ELEMENT_OP, a6 as VM_DID_CREATE_ELEMENT_OP, P as VM_FLUSH_ELEMENT_OP, Q as VM_CLOSE_ELEMENT_OP, e as VM_RESOLVE_CURRIED_COMPONENT_OP, X as VM_RESOLVE_DYNAMIC_COMPONENT_OP, f as VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, a9 as VM_GET_COMPONENT_LAYOUT_OP, aa as VM_POPULATE_LAYOUT_OP, a8 as VM_GET_COMPONENT_TAG_NAME_OP, K as VM_COMMENT_OP, R as VM_MODIFIER_OP, S as VM_DYNAMIC_MODIFIER_OP, T as VM_STATIC_ATTR_OP, a5 as VM_STATIC_COMPONENT_ATTR_OP, U as VM_DYNAMIC_ATTR_OP, a4 as VM_COMPONENT_ATTR_OP, L as VM_OPEN_ELEMENT_OP, az as VM_DEBUGGER_OP, J as VM_TEXT_OP, b as VM_ASSERT_SAME_OP, ay as VM_DYNAMIC_CONTENT_TYPE_OP, N as VM_PUSH_REMOTE_ELEMENT_OP, O as VM_POP_REMOTE_ELEMENT_OP, I as VM_TO_BOOLEAN_OP, aA as VM_ENTER_LIST_OP, aC as VM_ITERATE_OP, aB as VM_EXIT_LIST_OP } from './syscall-ops-CkPT1Kfx.js';
4
4
  import { b as VM_RETURN_OP, i as isMachineOp, f as VM_PUSH_FRAME_OP, e as VM_POP_FRAME_OP, d as VM_INVOKE_VIRTUAL_OP, c as VM_JUMP_OP, a as VM_RETURN_TO_OP, V as VM_INVOKE_STATIC_OP } from './vm-ops-ImHv0Wtg.js';
5
5
  import { e as expect, u as unwrap, S as StackImpl, d as dict } from './collections-DPkjqeA3.js';
6
6
  import { i as isPresentArray } from './present-B1rrjAVM.js';
@@ -8,7 +8,7 @@ import { a as assert } from './assert-Zqc4wiAV.js';
8
8
  import { InstructionEncoderImpl } from '../@glimmer/encoder/index.js';
9
9
  import { a as TYPE_SIZE, A as ARG_SHIFT, M as MACHINE_MASK, I as InternalComponentCapabilities } from './flags-BZxHQ0yn.js';
10
10
  import { d as debugToString } from './debug-to-string-C6LsA_qz.js';
11
- import { o as opcodes } from './opcodes-CplRyHl_.js';
11
+ import { o as opcodes } from './opcodes-DDajoGhq.js';
12
12
  import { a as $v0, f as $fp, $ as $s0, g as $sp, h as $s1 } from './registers-C_W2qYHJ.js';
13
13
  import { ContentType } from '../@glimmer/vm/index.js';
14
14
  import { h as hasCapability } from './capabilities-CajW4QjE.js';
@@ -1054,7 +1054,7 @@ function SwitchCases(op, bootstrap, matcher) {
1054
1054
  * # Updating Execution
1055
1055
  *
1056
1056
  * Updating execution for this `replayable` occurs if the `body` added an
1057
- * assertion, via one of the `JumpIf`, `JumpUnless` or `AssertSame` opcodes.
1057
+ * assertion, via one of the `JumpUnless`, `JumpEq` or `AssertSame` opcodes.
1058
1058
  *
1059
1059
  * If, during updating executon, the assertion fails, the initial VM is
1060
1060
  * restored, and the stored arguments are pushed onto the stack. The DOM
@@ -2,7 +2,7 @@ import { isDestroying, isDestroyed, associateDestroyableChild } from '../@glimme
2
2
  import { a as getInternalHelperManager, f as hasValue, h as hasDestroyable } from './api-DuLOZMO_.js';
3
3
  import { getOwner } from '../@glimmer/owner/index.js';
4
4
  import { g as createCache, h as getValue } from './cache-DGDPVCpC.js';
5
- import { E as EMPTY_ARGS, a as EMPTY_NAMED, b as EMPTY_POSITIONAL } from './arguments-CDkbOqTS.js';
5
+ import { E as EMPTY_ARGS, a as EMPTY_NAMED, b as EMPTY_POSITIONAL } from './arguments-DniR8eF2.js';
6
6
 
7
7
  let ARGS_CACHES = new WeakMap() ;
8
8
  function getArgs(proxy) {
@@ -1,6 +1,6 @@
1
1
  import { warn, debug } from '../@ember/debug/index.js';
2
2
  import VERSION from '../ember/version.js';
3
- import { g as get } from './property_get-CRP7MFz_.js';
3
+ import { g as get } from './property_get-DXwpgTe7.js';
4
4
  import { assert } from '../@ember/debug/lib/assert.js';
5
5
 
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import { toBool } from '../@glimmer/global-context/index.js';
2
2
  import { c as createComputeRef, v as valueForRef } from './reference-BqOLhKFy.js';
3
- import { i as internalHelper } from './hash-6NDs_5_f.js';
3
+ import { i as internalHelper } from './hash-BFu91gtE.js';
4
4
 
5
5
  /**
6
6
  * Performs a strict equality comparison.
@@ -1,4 +1,4 @@
1
- import { g as buildUntouchableThis, h as check, e as reifyNamed } from './arguments-CDkbOqTS.js';
1
+ import { g as buildUntouchableThis, h as check, e as reifyNamed } from './arguments-DniR8eF2.js';
2
2
  import { registerDestructor } from '../@glimmer/destroyable/index.js';
3
3
  import { k as setInternalModifierManager } from './api-DuLOZMO_.js';
4
4
  import { v as valueForRef } from './reference-BqOLhKFy.js';
@@ -131,6 +131,10 @@ function addEventListener(element, eventName, callback, options) {
131
131
  element.addEventListener(eventName, callback, options);
132
132
  }
133
133
 
134
+ /**
135
+ @module @ember/helper
136
+ */
137
+
134
138
  /**
135
139
  The `{{on}}` modifier lets you easily add event listeners (it uses
136
140
  [EventTarget.addEventListener](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)
@@ -139,12 +143,13 @@ function addEventListener(element, eventName, callback, options) {
139
143
  For example, if you'd like to run a function on your component when a `<button>`
140
144
  in the components template is clicked you might do something like:
141
145
 
142
- ```app/components/like-post.gjs
146
+ ```gjs {data-filename="app/components/like-post.gjs"}
143
147
  import Component from '@glimmer/component';
144
148
  import { action } from '@ember/object';
145
149
 
146
- export default class LikePostComponent extends Component {
147
- saveLike = () => {
150
+ export default class LikePost extends Component {
151
+ @action
152
+ saveLike() {
148
153
  // someone likes your post!
149
154
  // better send a request off to your server...
150
155
  }
@@ -186,7 +191,7 @@ function addEventListener(element, eventName, callback, options) {
186
191
  For example, in our example case above if you'd like to pass in the post that
187
192
  was being liked when the button is clicked you could do something like:
188
193
 
189
- ```app/components/like-post.hbs
194
+ ```hbs
190
195
  <button {{on 'click' (fn this.saveLike @post)}}>Like this post!</button>
191
196
  ```
192
197
 
@@ -195,14 +200,14 @@ function addEventListener(element, eventName, callback, options) {
195
200
 
196
201
  ### Function Context
197
202
 
198
- In the example above, we used an arrow function to ensure that `likePost` is
199
- properly bound to the `items-list`, but let's explore what happens if we
200
- left out the arrow function:
203
+ In the example above, we used `@action` to ensure that `likePost` is
204
+ properly bound to the `LikePost` Component, but let's explore what happens if we
205
+ left out `@action`:
201
206
 
202
- ```app/components/like-post.gjs
207
+ ```gjs {data-filename="app/components/like-post.gjs"}
203
208
  import Component from '@glimmer/component';
204
209
 
205
- export default class LikePostComponent extends Component {
210
+ export default class LikePost extends Component {
206
211
  saveLike() {
207
212
  // ...snip...
208
213
  }
@@ -212,10 +217,16 @@ function addEventListener(element, eventName, callback, options) {
212
217
  In this example, when the button is clicked `saveLike` will be invoked,
213
218
  it will **not** have access to the component instance. In other
214
219
  words, it will have no `this` context, so please make sure your functions
215
- are bound (via an arrow function or other means) before passing into `on`!
220
+ are bound (via `@action` or other means) before passing into `on`!
221
+
222
+ The `on` modifier is a keyword and does not need to be imported.
216
223
 
217
224
  @method on
225
+ @static
226
+ @for Keywords
227
+ @noimport
218
228
  @public
229
+ @since 3.11.0
219
230
  */
220
231
  class OnModifierManager {
221
232
  getDebugName() {
@@ -3,9 +3,7 @@ const opcodes = {
3
3
  TrustingAppend: 2,
4
4
  Comment: 3,
5
5
  Modifier: 4,
6
- StrictModifier: 5,
7
6
  Block: 6,
8
- StrictBlock: 7,
9
7
  Component: 8,
10
8
  OpenElement: 10,
11
9
  OpenElementWithSplat: 11,
@@ -16,8 +14,6 @@ const opcodes = {
16
14
  ComponentAttr: 16,
17
15
  AttrSplat: 17,
18
16
  Yield: 18,
19
- DynamicArg: 20,
20
- StaticArg: 21,
21
17
  TrustingDynamicAttr: 22,
22
18
  TrustingComponentAttr: 23,
23
19
  StaticComponentAttr: 24,
@@ -2,9 +2,9 @@ import '../@ember/debug/index.js';
2
2
  import { _instrumentStart } from '../@ember/instrumentation/index.js';
3
3
  import { c as capabilityFlagsFrom } from './capabilities-CajW4QjE.js';
4
4
  import { v as valueForRef, U as UNDEFINED_REFERENCE } from './reference-BqOLhKFy.js';
5
- import { E as EMPTY_ARGS } from './arguments-CDkbOqTS.js';
6
- import { u as unwrapTemplate } from './curly-DGUCLOud.js';
7
- import { t as templateFactory } from './index-DaFzpTIE.js';
5
+ import { E as EMPTY_ARGS } from './arguments-DniR8eF2.js';
6
+ import { u as unwrapTemplate } from './curly-BCD_vyHq.js';
7
+ import { t as templateFactory } from './index-BYUSIu_W.js';
8
8
  import { assert } from '../@ember/debug/lib/assert.js';
9
9
 
10
10
  function instrumentationPayload(def) {
@@ -1,8 +1,8 @@
1
- import { V as VM_MAIN_OP, a as VM_CONTENT_TYPE_OP, b as VM_ASSERT_SAME_OP, c as VM_APPEND_HTML_OP, d as VM_APPEND_TEXT_OP, e as VM_RESOLVE_CURRIED_COMPONENT_OP, f as VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, g as VM_APPEND_SAFE_HTML_OP, h as VM_APPEND_DOCUMENT_FRAGMENT_OP, i as VM_APPEND_NODE_OP } from './syscall-ops-CN7STuUn.js';
1
+ import { V as VM_MAIN_OP, a as VM_CONTENT_TYPE_OP, b as VM_ASSERT_SAME_OP, c as VM_APPEND_HTML_OP, d as VM_APPEND_TEXT_OP, e as VM_RESOLVE_CURRIED_COMPONENT_OP, f as VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, g as VM_APPEND_SAFE_HTML_OP, h as VM_APPEND_DOCUMENT_FRAGMENT_OP, i as VM_APPEND_NODE_OP } from './syscall-ops-CkPT1Kfx.js';
2
2
  import { V as VM_INVOKE_STATIC_OP } from './vm-ops-ImHv0Wtg.js';
3
3
  import { $ as $s0 } from './registers-C_W2qYHJ.js';
4
4
  import { ContentType } from '../@glimmer/vm/index.js';
5
- import { f as EncoderImpl, g as encodeOp, i as invokePreparedComponent, S as SwitchCases, h as InvokeBareComponent, C as CallDynamic } from './index-DaFzpTIE.js';
5
+ import { f as EncoderImpl, g as encodeOp, i as invokePreparedComponent, S as SwitchCases, h as InvokeBareComponent, C as CallDynamic } from './index-BYUSIu_W.js';
6
6
 
7
7
  class StdLib {
8
8
  constructor(main, trustingGuardedAppend, cautiousGuardedAppend, trustingNonDynamicAppend, cautiousNonDynamicAppend) {
@@ -104,7 +104,7 @@ function _getPath(obj, path, forSet) {
104
104
  if (obj === undefined || obj === null || obj.isDestroyed) {
105
105
  return undefined;
106
106
  }
107
- if (forSet && (part === '__proto__' || part === 'constructor')) {
107
+ if (forSet && (part === '__proto__' || part === 'constructor' || part === 'prototype')) {
108
108
  return;
109
109
  }
110
110
  obj = _getProp(obj, part);
@@ -2,7 +2,7 @@ import { s as setWithMandatorySetter, l as lookupDescriptor } from './mandatory-
2
2
  import { t as toString } from './to-string-C7M8LBLH.js';
3
3
  import '../@ember/debug/index.js';
4
4
  import { C as COMPUTED_SETTERS } from './decorator-B5Uh5NFI.js';
5
- import { i as isPath, _ as _getPath, a as getPossibleMandatoryProxyValue } from './property_get-CRP7MFz_.js';
5
+ import { i as isPath, _ as _getPath, a as getPossibleMandatoryProxyValue } from './property_get-DXwpgTe7.js';
6
6
  import { n as notifyPropertyChange } from './computed-DGxbeUbf.js';
7
7
  import { assert } from '../@ember/debug/lib/assert.js';
8
8
 
@@ -4,7 +4,7 @@ import { U as UNDEFINED_REFERENCE, c as createComputeRef, v as valueForRef, f as
4
4
  import { t as track, U as UPDATE_TAG, e as debug, B as resetTracking, o as beginTrackFrame, s as endTrackFrame } from './cache-DGDPVCpC.js';
5
5
  import { a as assert } from './assert-Zqc4wiAV.js';
6
6
  import { P as ProgramImpl } from './program-DlgjqLa6.js';
7
- import { D as DebugRenderTreeImpl, i as isArgumentError, j as isCurriedType, d as curry, A as APPEND_OPCODES, h as check, k as resolveCurriedValue, f as reifyPositional, l as AssertFilter, V as VMArgumentsImpl, m as externs, J as JumpIfNotModifiedOpcode, B as BeginTrackFrameOpcode, n as EndTrackFrameOpcode } from './arguments-CDkbOqTS.js';
7
+ import { D as DebugRenderTreeImpl, i as isArgumentError, j as isCurriedType, d as curry, A as APPEND_OPCODES, h as check, k as resolveCurriedValue, f as reifyPositional, l as AssertFilter, V as VMArgumentsImpl, m as externs, J as JumpIfNotModifiedOpcode, B as BeginTrackFrameOpcode, n as EndTrackFrameOpcode } from './arguments-DniR8eF2.js';
8
8
  import { B as BLACKLIST_TABLE, f as DOMOperations, D as DOMTreeConstruction, N as NewTreeBuilder } from './api-Dz70AUL_.js';
9
9
  import { a as assign } from './object-utils-AijlD-JH.js';
10
10
  import { associateDestroyableChild, _hasDestroyableChildren, destroy, destroyChildren, registerDestructor } from '../@glimmer/destroyable/index.js';
@@ -14,7 +14,7 @@ import { r as reverse } from './array-utils-CZQxrdD3.js';
14
14
  import { a as $v0, d as $pc, e as $ra, f as $fp, g as $sp, i as isLowLevelRegister } from './registers-C_W2qYHJ.js';
15
15
  import { a as VM_RETURN_TO_OP, b as VM_RETURN_OP, c as VM_JUMP_OP, d as VM_INVOKE_VIRTUAL_OP, V as VM_INVOKE_STATIC_OP, e as VM_POP_FRAME_OP, f as VM_PUSH_FRAME_OP } from './vm-ops-ImHv0Wtg.js';
16
16
  import { a as CURRIED_COMPONENT, b as CURRIED_HELPER } from './curried-BZnYakIg.js';
17
- import { ai as VM_CURRY_OP, p as decodeHandle, aj as VM_DYNAMIC_HELPER_OP, ak as VM_HELPER_OP, al as VM_GET_VARIABLE_OP, am as VM_SET_VARIABLE_OP, an as VM_SET_BLOCK_OP, ao as VM_ROOT_SCOPE_OP, ap as VM_GET_PROPERTY_OP, aq as VM_GET_BLOCK_OP, ar as VM_SPREAD_BLOCK_OP, as as VM_HAS_BLOCK_OP, at as VM_HAS_BLOCK_PARAMS_OP, au as VM_CONCAT_OP, av as VM_IF_INLINE_OP, aw as VM_NOT_OP, ax as VM_GET_DYNAMIC_VAR_OP, ay as VM_LOG_OP, a as VM_CONTENT_TYPE_OP, az as VM_DYNAMIC_CONTENT_TYPE_OP, c as VM_APPEND_HTML_OP, g as VM_APPEND_SAFE_HTML_OP, d as VM_APPEND_TEXT_OP, h as VM_APPEND_DOCUMENT_FRAGMENT_OP, i as VM_APPEND_NODE_OP, aA as VM_DEBUGGER_OP, aB as VM_ENTER_LIST_OP, aC as VM_EXIT_LIST_OP, aD as VM_ITERATE_OP } from './syscall-ops-CN7STuUn.js';
17
+ import { ah as VM_CURRY_OP, p as decodeHandle, ai as VM_DYNAMIC_HELPER_OP, aj as VM_HELPER_OP, ak as VM_GET_VARIABLE_OP, al as VM_SET_VARIABLE_OP, am as VM_SET_BLOCK_OP, an as VM_ROOT_SCOPE_OP, ao as VM_GET_PROPERTY_OP, ap as VM_GET_BLOCK_OP, aq as VM_SPREAD_BLOCK_OP, ar as VM_HAS_BLOCK_OP, as as VM_HAS_BLOCK_PARAMS_OP, at as VM_CONCAT_OP, au as VM_IF_INLINE_OP, av as VM_NOT_OP, aw as VM_GET_DYNAMIC_VAR_OP, ax as VM_LOG_OP, a as VM_CONTENT_TYPE_OP, ay as VM_DYNAMIC_CONTENT_TYPE_OP, c as VM_APPEND_HTML_OP, g as VM_APPEND_SAFE_HTML_OP, d as VM_APPEND_TEXT_OP, h as VM_APPEND_DOCUMENT_FRAGMENT_OP, i as VM_APPEND_NODE_OP, az as VM_DEBUGGER_OP, aA as VM_ENTER_LIST_OP, aB as VM_EXIT_LIST_OP, aC as VM_ITERATE_OP } from './syscall-ops-CkPT1Kfx.js';
18
18
  import { d as debugToString } from './debug-to-string-C6LsA_qz.js';
19
19
  import { a as getInternalHelperManager, c as hasInternalComponentManager, d as hasInternalHelperManager } from './api-DuLOZMO_.js';
20
20
  import { ContentType } from '../@glimmer/vm/index.js';